From 228fe69288afe0ad5d7e3b71ccd55866955bad91 Mon Sep 17 00:00:00 2001 From: Dan Caddigan Date: Mon, 15 Jan 2018 16:29:51 -0500 Subject: [PATCH] docs(storybook): use gh-pages branch instead of docs folder --- docs/favicon.ico | Bin 5430 -> 0 bytes docs/iframe.html | 20 - docs/index.html | 44 - .../manager.9302da27691ac9480cee.bundle.js | 78032 ---------------- .../preview.727e21043d067579d316.bundle.js | 40497 -------- package.json | 4 +- yarn.lock | 55 +- 7 files changed, 39 insertions(+), 118613 deletions(-) delete mode 100755 docs/favicon.ico delete mode 100644 docs/iframe.html delete mode 100644 docs/index.html delete mode 100644 docs/static/manager.9302da27691ac9480cee.bundle.js delete mode 100644 docs/static/preview.727e21043d067579d316.bundle.js diff --git a/docs/favicon.ico b/docs/favicon.ico deleted file mode 100755 index e1cf7f1c59fdb6822478f168d62f887a12babef8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5430 zcmZQzU}Ruo5D;Jh(h3Y2EDQ{43=9kk3K0GZpm-lpOamweWCB${#DUbH2cq1963Sx6 zX1eme0mdqkan>5CSx&lzWu8X0Edl0T6T)q#&0}O_X2Ru>FnyP}+MwO1dJ;eW$Ay`g zSb?E~9mE-XWmE+21MBZg`S^c%+n4{Vy1x9Mn1L`4pZ;`d&+cE~*Tz&pP}rT_^#g40=XZbqub=c49-jEzpJMKx z(-!;U%hbG2|Ns5_2M&X!Enog0-SFf8oN~hUC!6_abtilPhxhMa|Neh^`xk5m$gKI* zg!QLeMi#;1edCm`|6kny^Z)geKmYeH|4x+qvuu*8VEU2i{?w2E_W{iS#VbDlD+a19Yh09W0*KEr6+IgVJ|LB>jkW053BJVzHk9+kA zSU&whE*oHMRu(QcLiXU2Um4rFqrjzQ8q6$mXiDtgkl1}7+qr$f?B9_(@l?8F*MQl7 zAZx~@WQSf1`$6^C&IRB8pWgA~|G7Os{~ucO{r}nO;_WA(*uSp- z>;IqM|G}CNa2iw>UOoEre=o3(M|J}x_FpPq_9WVN65Rd?=^y`p|AJ{Z+z~*=p2d*% z2+R$X*nhKp^($c8ZWhd}HN9Vut@^)v(YODzNHp%!&u}~`>mxYMk=+Dp zpTX3FXmZ1!hmDi#NY3nQSzg=sA)5zdZ<_WM+zvyw8eG4{Y;`>`I$- zs?hH+O1mA@=DK$L7qYcrHYg3O==g%-cS`&(D8NmS#ey6~HiU}jAN+5u{_!@&DjfB!G4|NOrX7$%^$ zJxm=kO|JdA63TirLn@cG#5{QiGjDl2YW`b45z_v@b>;stv zYUh7=jj#*m4j2t8gF$YjhW)N;=3Z^yWhnN8%mt-!T;>0XEvR{)694;Y+XXdxRbto= zGIM6}r~k(`{`i0A!ms}iuKWh4|5e?Xd5;qNfo-ptT90b1_JhpDhC%fcs82pQ8xmKP z*bnUUr&PMvkz_xp40!YO&;M7C{`?1(Q*tL7@ zu`fVvO|1S0*$D%b+K;PE3K9qADGq*aX$dJI9UT=(J3BpvfFMitq!eep;<5z`7S7qQ zVZ)kK_f;EmymuX9Vdfya{fo~HqjJL|1YqeEg>GQ@{|`8nKuruD&iMZU#TpO?05L5d AcK`qY diff --git a/docs/iframe.html b/docs/iframe.html deleted file mode 100644 index a1a17d8..0000000 --- a/docs/iframe.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - Storybook - - - -
-
- - diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index ca96c5d..0000000 --- a/docs/index.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - Storybook - - - - - -
- - diff --git a/docs/static/manager.9302da27691ac9480cee.bundle.js b/docs/static/manager.9302da27691ac9480cee.bundle.js deleted file mode 100644 index b5feb74..0000000 --- a/docs/static/manager.9302da27691ac9480cee.bundle.js +++ /dev/null @@ -1,78032 +0,0 @@ -!(function(modules) { - var installedModules = {}; - function __webpack_require__(moduleId) { - if (installedModules[moduleId]) return installedModules[moduleId].exports; - var module = (installedModules[moduleId] = { i: moduleId, l: !1, exports: {} }); - return ( - modules[moduleId].call(module.exports, module, module.exports, __webpack_require__), - (module.l = !0), - module.exports - ); - } - (__webpack_require__.m = modules), - (__webpack_require__.c = installedModules), - (__webpack_require__.d = function(exports, name, getter) { - __webpack_require__.o(exports, name) || - Object.defineProperty(exports, name, { configurable: !1, enumerable: !0, get: getter }); - }), - (__webpack_require__.n = function(module) { - var getter = - module && module.__esModule - ? function getDefault() { - return module.default; - } - : function getModuleExports() { - return module; - }; - return __webpack_require__.d(getter, 'a', getter), getter; - }), - (__webpack_require__.o = function(object, property) { - return Object.prototype.hasOwnProperty.call(object, property); - }), - (__webpack_require__.p = ''), - __webpack_require__((__webpack_require__.s = 946)); -})([ - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = __webpack_require__(56); - }, - function(module, exports, __webpack_require__) { - (function(module) { - var factory; - (factory = function() { - 'use strict'; - var hookCallback, some; - function hooks() { - return hookCallback.apply(null, arguments); - } - function isArray(input) { - return ( - input instanceof Array || '[object Array]' === Object.prototype.toString.call(input) - ); - } - function isObject(input) { - return null != input && '[object Object]' === Object.prototype.toString.call(input); - } - function isUndefined(input) { - return void 0 === input; - } - function isNumber(input) { - return ( - 'number' == typeof input || '[object Number]' === Object.prototype.toString.call(input) - ); - } - function isDate(input) { - return input instanceof Date || '[object Date]' === Object.prototype.toString.call(input); - } - function map(arr, fn) { - var i, - res = []; - for (i = 0; i < arr.length; ++i) res.push(fn(arr[i], i)); - return res; - } - function hasOwnProp(a, b) { - return Object.prototype.hasOwnProperty.call(a, b); - } - function extend(a, b) { - for (var i in b) hasOwnProp(b, i) && (a[i] = b[i]); - return ( - hasOwnProp(b, 'toString') && (a.toString = b.toString), - hasOwnProp(b, 'valueOf') && (a.valueOf = b.valueOf), - a - ); - } - function createUTC(input, format, locale, strict) { - return createLocalOrUTC(input, format, locale, strict, !0).utc(); - } - function getParsingFlags(m) { - return ( - null == m._pf && - (m._pf = { - empty: !1, - unusedTokens: [], - unusedInput: [], - overflow: -2, - charsLeftOver: 0, - nullInput: !1, - invalidMonth: null, - invalidFormat: !1, - userInvalidated: !1, - iso: !1, - parsedDateParts: [], - meridiem: null, - rfc2822: !1, - weekdayMismatch: !1 - }), - m._pf - ); - } - function isValid(m) { - if (null == m._isValid) { - var flags = getParsingFlags(m), - parsedParts = some.call(flags.parsedDateParts, function(i) { - return null != i; - }), - isNowValid = - !isNaN(m._d.getTime()) && - flags.overflow < 0 && - !flags.empty && - !flags.invalidMonth && - !flags.invalidWeekday && - !flags.weekdayMismatch && - !flags.nullInput && - !flags.invalidFormat && - !flags.userInvalidated && - (!flags.meridiem || (flags.meridiem && parsedParts)); - if ( - (m._strict && - (isNowValid = - isNowValid && - 0 === flags.charsLeftOver && - 0 === flags.unusedTokens.length && - void 0 === flags.bigHour), - null != Object.isFrozen && Object.isFrozen(m)) - ) - return isNowValid; - m._isValid = isNowValid; - } - return m._isValid; - } - function createInvalid(flags) { - var m = createUTC(NaN); - return ( - null != flags - ? extend(getParsingFlags(m), flags) - : (getParsingFlags(m).userInvalidated = !0), - m - ); - } - some = Array.prototype.some - ? Array.prototype.some - : function(fun) { - for (var t = Object(this), len = t.length >>> 0, i = 0; i < len; i++) - if (i in t && fun.call(this, t[i], i, t)) return !0; - return !1; - }; - var momentProperties = (hooks.momentProperties = []); - function copyConfig(to, from) { - var i, prop, val; - if ( - (isUndefined(from._isAMomentObject) || (to._isAMomentObject = from._isAMomentObject), - isUndefined(from._i) || (to._i = from._i), - isUndefined(from._f) || (to._f = from._f), - isUndefined(from._l) || (to._l = from._l), - isUndefined(from._strict) || (to._strict = from._strict), - isUndefined(from._tzm) || (to._tzm = from._tzm), - isUndefined(from._isUTC) || (to._isUTC = from._isUTC), - isUndefined(from._offset) || (to._offset = from._offset), - isUndefined(from._pf) || (to._pf = getParsingFlags(from)), - isUndefined(from._locale) || (to._locale = from._locale), - momentProperties.length > 0) - ) - for (i = 0; i < momentProperties.length; i++) - isUndefined((val = from[(prop = momentProperties[i])])) || (to[prop] = val); - return to; - } - var updateInProgress = !1; - function Moment(config) { - copyConfig(this, config), - (this._d = new Date(null != config._d ? config._d.getTime() : NaN)), - this.isValid() || (this._d = new Date(NaN)), - !1 === updateInProgress && - ((updateInProgress = !0), hooks.updateOffset(this), (updateInProgress = !1)); - } - function isMoment(obj) { - return obj instanceof Moment || (null != obj && null != obj._isAMomentObject); - } - function absFloor(number) { - return number < 0 ? Math.ceil(number) || 0 : Math.floor(number); - } - function toInt(argumentForCoercion) { - var coercedNumber = +argumentForCoercion, - value = 0; - return ( - 0 !== coercedNumber && isFinite(coercedNumber) && (value = absFloor(coercedNumber)), - value - ); - } - function compareArrays(array1, array2, dontConvert) { - var i, - len = Math.min(array1.length, array2.length), - lengthDiff = Math.abs(array1.length - array2.length), - diffs = 0; - for (i = 0; i < len; i++) - ((dontConvert && array1[i] !== array2[i]) || - (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) && - diffs++; - return diffs + lengthDiff; - } - function warn(msg) { - !1 === hooks.suppressDeprecationWarnings && - 'undefined' != typeof console && - console.warn && - console.warn('Deprecation warning: ' + msg); - } - function deprecate(msg, fn) { - var firstTime = !0; - return extend(function() { - if ( - (null != hooks.deprecationHandler && hooks.deprecationHandler(null, msg), firstTime) - ) { - for (var arg, args = [], i = 0; i < arguments.length; i++) { - if (((arg = ''), 'object' == typeof arguments[i])) { - arg += '\n[' + i + '] '; - for (var key in arguments[0]) arg += key + ': ' + arguments[0][key] + ', '; - arg = arg.slice(0, -2); - } else arg = arguments[i]; - args.push(arg); - } - warn( - msg + - '\nArguments: ' + - Array.prototype.slice.call(args).join('') + - '\n' + - new Error().stack - ), - (firstTime = !1); - } - return fn.apply(this, arguments); - }, fn); - } - var keys, - deprecations = {}; - function deprecateSimple(name, msg) { - null != hooks.deprecationHandler && hooks.deprecationHandler(name, msg), - deprecations[name] || (warn(msg), (deprecations[name] = !0)); - } - function isFunction(input) { - return ( - input instanceof Function || - '[object Function]' === Object.prototype.toString.call(input) - ); - } - function mergeConfigs(parentConfig, childConfig) { - var prop, - res = extend({}, parentConfig); - for (prop in childConfig) - hasOwnProp(childConfig, prop) && - (isObject(parentConfig[prop]) && isObject(childConfig[prop]) - ? ((res[prop] = {}), - extend(res[prop], parentConfig[prop]), - extend(res[prop], childConfig[prop])) - : null != childConfig[prop] ? (res[prop] = childConfig[prop]) : delete res[prop]); - for (prop in parentConfig) - hasOwnProp(parentConfig, prop) && - !hasOwnProp(childConfig, prop) && - isObject(parentConfig[prop]) && - (res[prop] = extend({}, res[prop])); - return res; - } - function Locale(config) { - null != config && this.set(config); - } - (hooks.suppressDeprecationWarnings = !1), - (hooks.deprecationHandler = null), - (keys = Object.keys - ? Object.keys - : function(obj) { - var i, - res = []; - for (i in obj) hasOwnProp(obj, i) && res.push(i); - return res; - }); - var aliases = {}; - function addUnitAlias(unit, shorthand) { - var lowerCase = unit.toLowerCase(); - aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit; - } - function normalizeUnits(units) { - return 'string' == typeof units ? aliases[units] || aliases[units.toLowerCase()] : void 0; - } - function normalizeObjectUnits(inputObject) { - var normalizedProp, - prop, - normalizedInput = {}; - for (prop in inputObject) - hasOwnProp(inputObject, prop) && - (normalizedProp = normalizeUnits(prop)) && - (normalizedInput[normalizedProp] = inputObject[prop]); - return normalizedInput; - } - var priorities = {}; - function addUnitPriority(unit, priority) { - priorities[unit] = priority; - } - function zeroFill(number, targetLength, forceSign) { - var absNumber = '' + Math.abs(number), - zerosToFill = targetLength - absNumber.length; - return ( - (number >= 0 ? (forceSign ? '+' : '') : '-') + - Math.pow(10, Math.max(0, zerosToFill)) - .toString() - .substr(1) + - absNumber - ); - } - var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, - localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, - formatFunctions = {}, - formatTokenFunctions = {}; - function addFormatToken(token, padded, ordinal, callback) { - var func = callback; - 'string' == typeof callback && - (func = function() { - return this[callback](); - }), - token && (formatTokenFunctions[token] = func), - padded && - (formatTokenFunctions[padded[0]] = function() { - return zeroFill(func.apply(this, arguments), padded[1], padded[2]); - }), - ordinal && - (formatTokenFunctions[ordinal] = function() { - return this.localeData().ordinal(func.apply(this, arguments), token); - }); - } - function formatMoment(m, format) { - return m.isValid() - ? ((format = expandFormat(format, m.localeData())), - (formatFunctions[format] = - formatFunctions[format] || - (function makeFormatFunction(format) { - var i, - length, - input, - array = format.match(formattingTokens); - for (i = 0, length = array.length; i < length; i++) - formatTokenFunctions[array[i]] - ? (array[i] = formatTokenFunctions[array[i]]) - : (array[i] = (input = array[i]).match(/\[[\s\S]/) - ? input.replace(/^\[|\]$/g, '') - : input.replace(/\\/g, '')); - return function(mom) { - var i, - output = ''; - for (i = 0; i < length; i++) - output += isFunction(array[i]) ? array[i].call(mom, format) : array[i]; - return output; - }; - })(format)), - formatFunctions[format](m)) - : m.localeData().invalidDate(); - } - function expandFormat(format, locale) { - var i = 5; - function replaceLongDateFormatTokens(input) { - return locale.longDateFormat(input) || input; - } - for (localFormattingTokens.lastIndex = 0; i >= 0 && localFormattingTokens.test(format); ) - (format = format.replace(localFormattingTokens, replaceLongDateFormatTokens)), - (localFormattingTokens.lastIndex = 0), - (i -= 1); - return format; - } - var match1 = /\d/, - match2 = /\d\d/, - match3 = /\d{3}/, - match4 = /\d{4}/, - match6 = /[+-]?\d{6}/, - match1to2 = /\d\d?/, - match3to4 = /\d\d\d\d?/, - match5to6 = /\d\d\d\d\d\d?/, - match1to3 = /\d{1,3}/, - match1to4 = /\d{1,4}/, - match1to6 = /[+-]?\d{1,6}/, - matchUnsigned = /\d+/, - matchSigned = /[+-]?\d+/, - matchOffset = /Z|[+-]\d\d:?\d\d/gi, - matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, - matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, - regexes = {}; - function addRegexToken(token, regex, strictRegex) { - regexes[token] = isFunction(regex) - ? regex - : function(isStrict, localeData) { - return isStrict && strictRegex ? strictRegex : regex; - }; - } - function getParseRegexForToken(token, config) { - return hasOwnProp(regexes, token) - ? regexes[token](config._strict, config._locale) - : new RegExp( - (function unescapeFormat(s) { - return regexEscape( - s - .replace('\\', '') - .replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function( - matched, - p1, - p2, - p3, - p4 - ) { - return p1 || p2 || p3 || p4; - }) - ); - })(token) - ); - } - function regexEscape(s) { - return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); - } - var tokens = {}; - function addParseToken(token, callback) { - var i, - func = callback; - for ( - 'string' == typeof token && (token = [token]), - isNumber(callback) && - (func = function(input, array) { - array[callback] = toInt(input); - }), - i = 0; - i < token.length; - i++ - ) - tokens[token[i]] = func; - } - function addWeekParseToken(token, callback) { - addParseToken(token, function(input, array, config, token) { - (config._w = config._w || {}), callback(input, config._w, config, token); - }); - } - function addTimeToArrayFromToken(token, input, config) { - null != input && - hasOwnProp(tokens, token) && - tokens[token](input, config._a, config, token); - } - var YEAR = 0, - MONTH = 1, - DATE = 2, - HOUR = 3, - MINUTE = 4, - SECOND = 5, - MILLISECOND = 6, - WEEK = 7, - WEEKDAY = 8; - function daysInYear(year) { - return isLeapYear(year) ? 366 : 365; - } - function isLeapYear(year) { - return (year % 4 == 0 && year % 100 != 0) || year % 400 == 0; - } - addFormatToken('Y', 0, 0, function() { - var y = this.year(); - return y <= 9999 ? '' + y : '+' + y; - }), - addFormatToken(0, ['YY', 2], 0, function() { - return this.year() % 100; - }), - addFormatToken(0, ['YYYY', 4], 0, 'year'), - addFormatToken(0, ['YYYYY', 5], 0, 'year'), - addFormatToken(0, ['YYYYYY', 6, !0], 0, 'year'), - addUnitAlias('year', 'y'), - addUnitPriority('year', 1), - addRegexToken('Y', matchSigned), - addRegexToken('YY', match1to2, match2), - addRegexToken('YYYY', match1to4, match4), - addRegexToken('YYYYY', match1to6, match6), - addRegexToken('YYYYYY', match1to6, match6), - addParseToken(['YYYYY', 'YYYYYY'], YEAR), - addParseToken('YYYY', function(input, array) { - array[YEAR] = 2 === input.length ? hooks.parseTwoDigitYear(input) : toInt(input); - }), - addParseToken('YY', function(input, array) { - array[YEAR] = hooks.parseTwoDigitYear(input); - }), - addParseToken('Y', function(input, array) { - array[YEAR] = parseInt(input, 10); - }), - (hooks.parseTwoDigitYear = function(input) { - return toInt(input) + (toInt(input) > 68 ? 1900 : 2e3); - }); - var indexOf, - getSetYear = makeGetSet('FullYear', !0); - function makeGetSet(unit, keepTime) { - return function(value) { - return null != value - ? (set$1(this, unit, value), hooks.updateOffset(this, keepTime), this) - : get(this, unit); - }; - } - function get(mom, unit) { - return mom.isValid() ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN; - } - function set$1(mom, unit, value) { - mom.isValid() && - !isNaN(value) && - ('FullYear' === unit && isLeapYear(mom.year()) && 1 === mom.month() && 29 === mom.date() - ? mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit]( - value, - mom.month(), - daysInMonth(value, mom.month()) - ) - : mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value)); - } - function daysInMonth(year, month) { - if (isNaN(year) || isNaN(month)) return NaN; - var modMonth = (function mod(n, x) { - return (n % x + x) % x; - })(month, 12); - return ( - (year += (month - modMonth) / 12), - 1 === modMonth ? (isLeapYear(year) ? 29 : 28) : 31 - (modMonth % 7) % 2 - ); - } - (indexOf = Array.prototype.indexOf - ? Array.prototype.indexOf - : function(o) { - var i; - for (i = 0; i < this.length; ++i) if (this[i] === o) return i; - return -1; - }), - addFormatToken('M', ['MM', 2], 'Mo', function() { - return this.month() + 1; - }), - addFormatToken('MMM', 0, 0, function(format) { - return this.localeData().monthsShort(this, format); - }), - addFormatToken('MMMM', 0, 0, function(format) { - return this.localeData().months(this, format); - }), - addUnitAlias('month', 'M'), - addUnitPriority('month', 8), - addRegexToken('M', match1to2), - addRegexToken('MM', match1to2, match2), - addRegexToken('MMM', function(isStrict, locale) { - return locale.monthsShortRegex(isStrict); - }), - addRegexToken('MMMM', function(isStrict, locale) { - return locale.monthsRegex(isStrict); - }), - addParseToken(['M', 'MM'], function(input, array) { - array[MONTH] = toInt(input) - 1; - }), - addParseToken(['MMM', 'MMMM'], function(input, array, config, token) { - var month = config._locale.monthsParse(input, token, config._strict); - null != month ? (array[MONTH] = month) : (getParsingFlags(config).invalidMonth = input); - }); - var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, - defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ); - var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'); - function setMonth(mom, value) { - var dayOfMonth; - if (!mom.isValid()) return mom; - if ('string' == typeof value) - if (/^\d+$/.test(value)) value = toInt(value); - else if (!isNumber((value = mom.localeData().monthsParse(value)))) return mom; - return ( - (dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value))), - mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth), - mom - ); - } - function getSetMonth(value) { - return null != value - ? (setMonth(this, value), hooks.updateOffset(this, !0), this) - : get(this, 'Month'); - } - var defaultMonthsShortRegex = matchWord; - var defaultMonthsRegex = matchWord; - function computeMonthsParse() { - function cmpLenRev(a, b) { - return b.length - a.length; - } - var i, - mom, - shortPieces = [], - longPieces = [], - mixedPieces = []; - for (i = 0; i < 12; i++) - (mom = createUTC([2e3, i])), - shortPieces.push(this.monthsShort(mom, '')), - longPieces.push(this.months(mom, '')), - mixedPieces.push(this.months(mom, '')), - mixedPieces.push(this.monthsShort(mom, '')); - for ( - shortPieces.sort(cmpLenRev), - longPieces.sort(cmpLenRev), - mixedPieces.sort(cmpLenRev), - i = 0; - i < 12; - i++ - ) - (shortPieces[i] = regexEscape(shortPieces[i])), - (longPieces[i] = regexEscape(longPieces[i])); - for (i = 0; i < 24; i++) mixedPieces[i] = regexEscape(mixedPieces[i]); - (this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i')), - (this._monthsShortRegex = this._monthsRegex), - (this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i')), - (this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i')); - } - function createUTCDate(y) { - var date = new Date(Date.UTC.apply(null, arguments)); - return ( - y < 100 && y >= 0 && isFinite(date.getUTCFullYear()) && date.setUTCFullYear(y), date - ); - } - function firstWeekOffset(year, dow, doy) { - var fwd = 7 + dow - doy; - return -((7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7) + fwd - 1; - } - function dayOfYearFromWeeks(year, week, weekday, dow, doy) { - var resYear, - resDayOfYear, - dayOfYear = - 1 + 7 * (week - 1) + (7 + weekday - dow) % 7 + firstWeekOffset(year, dow, doy); - return ( - dayOfYear <= 0 - ? (resDayOfYear = daysInYear((resYear = year - 1)) + dayOfYear) - : dayOfYear > daysInYear(year) - ? ((resYear = year + 1), (resDayOfYear = dayOfYear - daysInYear(year))) - : ((resYear = year), (resDayOfYear = dayOfYear)), - { year: resYear, dayOfYear: resDayOfYear } - ); - } - function weekOfYear(mom, dow, doy) { - var resWeek, - resYear, - weekOffset = firstWeekOffset(mom.year(), dow, doy), - week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1; - return ( - week < 1 - ? (resWeek = week + weeksInYear((resYear = mom.year() - 1), dow, doy)) - : week > weeksInYear(mom.year(), dow, doy) - ? ((resWeek = week - weeksInYear(mom.year(), dow, doy)), (resYear = mom.year() + 1)) - : ((resYear = mom.year()), (resWeek = week)), - { week: resWeek, year: resYear } - ); - } - function weeksInYear(year, dow, doy) { - var weekOffset = firstWeekOffset(year, dow, doy), - weekOffsetNext = firstWeekOffset(year + 1, dow, doy); - return (daysInYear(year) - weekOffset + weekOffsetNext) / 7; - } - addFormatToken('w', ['ww', 2], 'wo', 'week'), - addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek'), - addUnitAlias('week', 'w'), - addUnitAlias('isoWeek', 'W'), - addUnitPriority('week', 5), - addUnitPriority('isoWeek', 5), - addRegexToken('w', match1to2), - addRegexToken('ww', match1to2, match2), - addRegexToken('W', match1to2), - addRegexToken('WW', match1to2, match2), - addWeekParseToken(['w', 'ww', 'W', 'WW'], function(input, week, config, token) { - week[token.substr(0, 1)] = toInt(input); - }); - addFormatToken('d', 0, 'do', 'day'), - addFormatToken('dd', 0, 0, function(format) { - return this.localeData().weekdaysMin(this, format); - }), - addFormatToken('ddd', 0, 0, function(format) { - return this.localeData().weekdaysShort(this, format); - }), - addFormatToken('dddd', 0, 0, function(format) { - return this.localeData().weekdays(this, format); - }), - addFormatToken('e', 0, 0, 'weekday'), - addFormatToken('E', 0, 0, 'isoWeekday'), - addUnitAlias('day', 'd'), - addUnitAlias('weekday', 'e'), - addUnitAlias('isoWeekday', 'E'), - addUnitPriority('day', 11), - addUnitPriority('weekday', 11), - addUnitPriority('isoWeekday', 11), - addRegexToken('d', match1to2), - addRegexToken('e', match1to2), - addRegexToken('E', match1to2), - addRegexToken('dd', function(isStrict, locale) { - return locale.weekdaysMinRegex(isStrict); - }), - addRegexToken('ddd', function(isStrict, locale) { - return locale.weekdaysShortRegex(isStrict); - }), - addRegexToken('dddd', function(isStrict, locale) { - return locale.weekdaysRegex(isStrict); - }), - addWeekParseToken(['dd', 'ddd', 'dddd'], function(input, week, config, token) { - var weekday = config._locale.weekdaysParse(input, token, config._strict); - null != weekday ? (week.d = weekday) : (getParsingFlags(config).invalidWeekday = input); - }), - addWeekParseToken(['d', 'e', 'E'], function(input, week, config, token) { - week[token] = toInt(input); - }); - var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ); - var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'); - var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'); - var defaultWeekdaysRegex = matchWord; - var defaultWeekdaysShortRegex = matchWord; - var defaultWeekdaysMinRegex = matchWord; - function computeWeekdaysParse() { - function cmpLenRev(a, b) { - return b.length - a.length; - } - var i, - mom, - minp, - shortp, - longp, - minPieces = [], - shortPieces = [], - longPieces = [], - mixedPieces = []; - for (i = 0; i < 7; i++) - (mom = createUTC([2e3, 1]).day(i)), - (minp = this.weekdaysMin(mom, '')), - (shortp = this.weekdaysShort(mom, '')), - (longp = this.weekdays(mom, '')), - minPieces.push(minp), - shortPieces.push(shortp), - longPieces.push(longp), - mixedPieces.push(minp), - mixedPieces.push(shortp), - mixedPieces.push(longp); - for ( - minPieces.sort(cmpLenRev), - shortPieces.sort(cmpLenRev), - longPieces.sort(cmpLenRev), - mixedPieces.sort(cmpLenRev), - i = 0; - i < 7; - i++ - ) - (shortPieces[i] = regexEscape(shortPieces[i])), - (longPieces[i] = regexEscape(longPieces[i])), - (mixedPieces[i] = regexEscape(mixedPieces[i])); - (this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i')), - (this._weekdaysShortRegex = this._weekdaysRegex), - (this._weekdaysMinRegex = this._weekdaysRegex), - (this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i')), - (this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i')), - (this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i')); - } - function hFormat() { - return this.hours() % 12 || 12; - } - function meridiem(token, lowercase) { - addFormatToken(token, 0, 0, function() { - return this.localeData().meridiem(this.hours(), this.minutes(), lowercase); - }); - } - function matchMeridiem(isStrict, locale) { - return locale._meridiemParse; - } - addFormatToken('H', ['HH', 2], 0, 'hour'), - addFormatToken('h', ['hh', 2], 0, hFormat), - addFormatToken('k', ['kk', 2], 0, function kFormat() { - return this.hours() || 24; - }), - addFormatToken('hmm', 0, 0, function() { - return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2); - }), - addFormatToken('hmmss', 0, 0, function() { - return ( - '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2) - ); - }), - addFormatToken('Hmm', 0, 0, function() { - return '' + this.hours() + zeroFill(this.minutes(), 2); - }), - addFormatToken('Hmmss', 0, 0, function() { - return '' + this.hours() + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2); - }), - meridiem('a', !0), - meridiem('A', !1), - addUnitAlias('hour', 'h'), - addUnitPriority('hour', 13), - addRegexToken('a', matchMeridiem), - addRegexToken('A', matchMeridiem), - addRegexToken('H', match1to2), - addRegexToken('h', match1to2), - addRegexToken('k', match1to2), - addRegexToken('HH', match1to2, match2), - addRegexToken('hh', match1to2, match2), - addRegexToken('kk', match1to2, match2), - addRegexToken('hmm', match3to4), - addRegexToken('hmmss', match5to6), - addRegexToken('Hmm', match3to4), - addRegexToken('Hmmss', match5to6), - addParseToken(['H', 'HH'], HOUR), - addParseToken(['k', 'kk'], function(input, array, config) { - var kInput = toInt(input); - array[HOUR] = 24 === kInput ? 0 : kInput; - }), - addParseToken(['a', 'A'], function(input, array, config) { - (config._isPm = config._locale.isPM(input)), (config._meridiem = input); - }), - addParseToken(['h', 'hh'], function(input, array, config) { - (array[HOUR] = toInt(input)), (getParsingFlags(config).bigHour = !0); - }), - addParseToken('hmm', function(input, array, config) { - var pos = input.length - 2; - (array[HOUR] = toInt(input.substr(0, pos))), - (array[MINUTE] = toInt(input.substr(pos))), - (getParsingFlags(config).bigHour = !0); - }), - addParseToken('hmmss', function(input, array, config) { - var pos1 = input.length - 4, - pos2 = input.length - 2; - (array[HOUR] = toInt(input.substr(0, pos1))), - (array[MINUTE] = toInt(input.substr(pos1, 2))), - (array[SECOND] = toInt(input.substr(pos2))), - (getParsingFlags(config).bigHour = !0); - }), - addParseToken('Hmm', function(input, array, config) { - var pos = input.length - 2; - (array[HOUR] = toInt(input.substr(0, pos))), (array[MINUTE] = toInt(input.substr(pos))); - }), - addParseToken('Hmmss', function(input, array, config) { - var pos1 = input.length - 4, - pos2 = input.length - 2; - (array[HOUR] = toInt(input.substr(0, pos1))), - (array[MINUTE] = toInt(input.substr(pos1, 2))), - (array[SECOND] = toInt(input.substr(pos2))); - }); - var globalLocale, - getSetHour = makeGetSet('Hours', !0), - baseConfig = { - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L' - }, - longDateFormat: { - 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' - }, - invalidDate: 'Invalid date', - ordinal: '%d', - dayOfMonthOrdinalParse: /\d{1,2}/, - relativeTime: { - 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', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years' - }, - months: defaultLocaleMonths, - monthsShort: defaultLocaleMonthsShort, - week: { dow: 0, doy: 6 }, - weekdays: defaultLocaleWeekdays, - weekdaysMin: defaultLocaleWeekdaysMin, - weekdaysShort: defaultLocaleWeekdaysShort, - meridiemParse: /[ap]\.?m?\.?/i - }, - locales = {}, - localeFamilies = {}; - function normalizeLocale(key) { - return key ? key.toLowerCase().replace('_', '-') : key; - } - function loadLocale(name) { - var oldLocale = null; - if (!locales[name] && void 0 !== module && module && module.exports) - try { - oldLocale = globalLocale._abbr; - __webpack_require__(1118)('./' + name), getSetGlobalLocale(oldLocale); - } catch (e) {} - return locales[name]; - } - function getSetGlobalLocale(key, values) { - var data; - return ( - key && - (data = isUndefined(values) ? getLocale(key) : defineLocale(key, values)) && - (globalLocale = data), - globalLocale._abbr - ); - } - function defineLocale(name, config) { - if (null !== config) { - var parentConfig = baseConfig; - if (((config.abbr = name), null != locales[name])) - deprecateSimple( - '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.' - ), - (parentConfig = locales[name]._config); - else if (null != config.parentLocale) { - if (null == locales[config.parentLocale]) - return ( - localeFamilies[config.parentLocale] || (localeFamilies[config.parentLocale] = []), - localeFamilies[config.parentLocale].push({ name: name, config: config }), - null - ); - parentConfig = locales[config.parentLocale]._config; - } - return ( - (locales[name] = new Locale(mergeConfigs(parentConfig, config))), - localeFamilies[name] && - localeFamilies[name].forEach(function(x) { - defineLocale(x.name, x.config); - }), - getSetGlobalLocale(name), - locales[name] - ); - } - return delete locales[name], null; - } - function getLocale(key) { - var locale; - if ((key && key._locale && key._locale._abbr && (key = key._locale._abbr), !key)) - return globalLocale; - if (!isArray(key)) { - if ((locale = loadLocale(key))) return locale; - key = [key]; - } - return (function chooseLocale(names) { - for (var j, next, locale, split, i = 0; i < names.length; ) { - for ( - j = (split = normalizeLocale(names[i]).split('-')).length, - next = (next = normalizeLocale(names[i + 1])) ? next.split('-') : null; - j > 0; - - ) { - if ((locale = loadLocale(split.slice(0, j).join('-')))) return locale; - if (next && next.length >= j && compareArrays(split, next, !0) >= j - 1) break; - j--; - } - i++; - } - return null; - })(key); - } - function checkOverflow(m) { - var overflow, - a = m._a; - return ( - a && - -2 === getParsingFlags(m).overflow && - ((overflow = - a[MONTH] < 0 || a[MONTH] > 11 - ? MONTH - : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) - ? DATE - : a[HOUR] < 0 || - a[HOUR] > 24 || - (24 === a[HOUR] && - (0 !== a[MINUTE] || 0 !== a[SECOND] || 0 !== a[MILLISECOND])) - ? HOUR - : a[MINUTE] < 0 || a[MINUTE] > 59 - ? MINUTE - : a[SECOND] < 0 || a[SECOND] > 59 - ? SECOND - : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND : -1), - getParsingFlags(m)._overflowDayOfYear && - (overflow < YEAR || overflow > DATE) && - (overflow = DATE), - getParsingFlags(m)._overflowWeeks && -1 === overflow && (overflow = WEEK), - getParsingFlags(m)._overflowWeekday && -1 === overflow && (overflow = WEEKDAY), - (getParsingFlags(m).overflow = overflow)), - m - ); - } - function defaults(a, b, c) { - return null != a ? a : null != b ? b : c; - } - function configFromArray(config) { - var i, - date, - currentDate, - expectedWeekday, - yearToUse, - input = []; - if (!config._d) { - for ( - currentDate = (function currentDateArray(config) { - var nowValue = new Date(hooks.now()); - return config._useUTC - ? [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()] - : [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()]; - })(config), - config._w && - null == config._a[DATE] && - null == config._a[MONTH] && - (function dayOfYearFromWeekInfo(config) { - var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow; - if (null != (w = config._w).GG || null != w.W || null != w.E) - (dow = 1), - (doy = 4), - (weekYear = defaults( - w.GG, - config._a[YEAR], - weekOfYear(createLocal(), 1, 4).year - )), - (week = defaults(w.W, 1)), - ((weekday = defaults(w.E, 1)) < 1 || weekday > 7) && (weekdayOverflow = !0); - else { - (dow = config._locale._week.dow), (doy = config._locale._week.doy); - var curWeek = weekOfYear(createLocal(), dow, doy); - (weekYear = defaults(w.gg, config._a[YEAR], curWeek.year)), - (week = defaults(w.w, curWeek.week)), - null != w.d - ? ((weekday = w.d) < 0 || weekday > 6) && (weekdayOverflow = !0) - : null != w.e - ? ((weekday = w.e + dow), - (w.e < 0 || w.e > 6) && (weekdayOverflow = !0)) - : (weekday = dow); - } - week < 1 || week > weeksInYear(weekYear, dow, doy) - ? (getParsingFlags(config)._overflowWeeks = !0) - : null != weekdayOverflow - ? (getParsingFlags(config)._overflowWeekday = !0) - : ((temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy)), - (config._a[YEAR] = temp.year), - (config._dayOfYear = temp.dayOfYear)); - })(config), - null != config._dayOfYear && - ((yearToUse = defaults(config._a[YEAR], currentDate[YEAR])), - (config._dayOfYear > daysInYear(yearToUse) || 0 === config._dayOfYear) && - (getParsingFlags(config)._overflowDayOfYear = !0), - (date = createUTCDate(yearToUse, 0, config._dayOfYear)), - (config._a[MONTH] = date.getUTCMonth()), - (config._a[DATE] = date.getUTCDate())), - i = 0; - i < 3 && null == config._a[i]; - ++i - ) - config._a[i] = input[i] = currentDate[i]; - for (; i < 7; i++) - config._a[i] = input[i] = null == config._a[i] ? (2 === i ? 1 : 0) : config._a[i]; - 24 === config._a[HOUR] && - 0 === config._a[MINUTE] && - 0 === config._a[SECOND] && - 0 === config._a[MILLISECOND] && - ((config._nextDay = !0), (config._a[HOUR] = 0)), - (config._d = (config._useUTC - ? createUTCDate - : function createDate(y, m, d, h, M, s, ms) { - var date = new Date(y, m, d, h, M, s, ms); - return ( - y < 100 && y >= 0 && isFinite(date.getFullYear()) && date.setFullYear(y), date - ); - } - ).apply(null, input)), - (expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay()), - null != config._tzm && - config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm), - config._nextDay && (config._a[HOUR] = 24), - config._w && - void 0 !== config._w.d && - config._w.d !== expectedWeekday && - (getParsingFlags(config).weekdayMismatch = !0); - } - } - var extendedIsoRegex = /^\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)?)?$/, - basicIsoRegex = /^\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)?)?$/, - tzRegex = /Z|[+-]\d\d(?::?\d\d)?/, - isoDates = [ - ['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}/] - ], - isoTimes = [ - ['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/] - ], - aspNetJsonRegex = /^\/?Date\((\-?\d+)/i; - function configFromISO(config) { - var i, - l, - allowTime, - dateFormat, - timeFormat, - tzFormat, - string = config._i, - match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string); - if (match) { - for (getParsingFlags(config).iso = !0, i = 0, l = isoDates.length; i < l; i++) - if (isoDates[i][1].exec(match[1])) { - (dateFormat = isoDates[i][0]), (allowTime = !1 !== isoDates[i][2]); - break; - } - if (null == dateFormat) return void (config._isValid = !1); - if (match[3]) { - for (i = 0, l = isoTimes.length; i < l; i++) - if (isoTimes[i][1].exec(match[3])) { - timeFormat = (match[2] || ' ') + isoTimes[i][0]; - break; - } - if (null == timeFormat) return void (config._isValid = !1); - } - if (!allowTime && null != timeFormat) return void (config._isValid = !1); - if (match[4]) { - if (!tzRegex.exec(match[4])) return void (config._isValid = !1); - tzFormat = 'Z'; - } - (config._f = dateFormat + (timeFormat || '') + (tzFormat || '')), - configFromStringAndFormat(config); - } else config._isValid = !1; - } - var rfc2822 = /^(?:(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}))$/; - function extractFromRFC2822Strings( - yearStr, - monthStr, - dayStr, - hourStr, - minuteStr, - secondStr - ) { - var result = [ - (function untruncateYear(yearStr) { - var year = parseInt(yearStr, 10); - if (year <= 49) return 2e3 + year; - if (year <= 999) return 1900 + year; - return year; - })(yearStr), - defaultLocaleMonthsShort.indexOf(monthStr), - parseInt(dayStr, 10), - parseInt(hourStr, 10), - parseInt(minuteStr, 10) - ]; - return secondStr && result.push(parseInt(secondStr, 10)), result; - } - var obsOffsets = { - UT: 0, - GMT: 0, - EDT: -240, - EST: -300, - CDT: -300, - CST: -360, - MDT: -360, - MST: -420, - PDT: -420, - PST: -480 - }; - function configFromRFC2822(config) { - var match = rfc2822.exec( - (function preprocessRFC2822(s) { - return s - .replace(/\([^)]*\)|[\n\t]/g, ' ') - .replace(/(\s\s+)/g, ' ') - .trim(); - })(config._i) - ); - if (match) { - var parsedArray = extractFromRFC2822Strings( - match[4], - match[3], - match[2], - match[5], - match[6], - match[7] - ); - if ( - !(function checkWeekday(weekdayStr, parsedInput, config) { - return ( - !weekdayStr || - defaultLocaleWeekdaysShort.indexOf(weekdayStr) === - new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay() || - ((getParsingFlags(config).weekdayMismatch = !0), (config._isValid = !1), !1) - ); - })(match[1], parsedArray, config) - ) - return; - (config._a = parsedArray), - (config._tzm = (function calculateOffset(obsOffset, militaryOffset, numOffset) { - if (obsOffset) return obsOffsets[obsOffset]; - if (militaryOffset) return 0; - var hm = parseInt(numOffset, 10), - m = hm % 100; - return (hm - m) / 100 * 60 + m; - })(match[8], match[9], match[10])), - (config._d = createUTCDate.apply(null, config._a)), - config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm), - (getParsingFlags(config).rfc2822 = !0); - } else config._isValid = !1; - } - function configFromStringAndFormat(config) { - if (config._f !== hooks.ISO_8601) - if (config._f !== hooks.RFC_2822) { - (config._a = []), (getParsingFlags(config).empty = !0); - var i, - parsedInput, - tokens, - token, - skipped, - string = '' + config._i, - stringLength = string.length, - totalParsedInputLength = 0; - for ( - tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [], - i = 0; - i < tokens.length; - i++ - ) - (token = tokens[i]), - (parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0]) && - ((skipped = string.substr(0, string.indexOf(parsedInput))).length > 0 && - getParsingFlags(config).unusedInput.push(skipped), - (string = string.slice(string.indexOf(parsedInput) + parsedInput.length)), - (totalParsedInputLength += parsedInput.length)), - formatTokenFunctions[token] - ? (parsedInput - ? (getParsingFlags(config).empty = !1) - : getParsingFlags(config).unusedTokens.push(token), - addTimeToArrayFromToken(token, parsedInput, config)) - : config._strict && - !parsedInput && - getParsingFlags(config).unusedTokens.push(token); - (getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength), - string.length > 0 && getParsingFlags(config).unusedInput.push(string), - config._a[HOUR] <= 12 && - !0 === getParsingFlags(config).bigHour && - config._a[HOUR] > 0 && - (getParsingFlags(config).bigHour = void 0), - (getParsingFlags(config).parsedDateParts = config._a.slice(0)), - (getParsingFlags(config).meridiem = config._meridiem), - (config._a[HOUR] = (function meridiemFixWrap(locale, hour, meridiem) { - var isPm; - if (null == meridiem) return hour; - return null != locale.meridiemHour - ? locale.meridiemHour(hour, meridiem) - : null != locale.isPM - ? ((isPm = locale.isPM(meridiem)) && hour < 12 && (hour += 12), - isPm || 12 !== hour || (hour = 0), - hour) - : hour; - })(config._locale, config._a[HOUR], config._meridiem)), - configFromArray(config), - checkOverflow(config); - } else configFromRFC2822(config); - else configFromISO(config); - } - function prepareConfig(config) { - var input = config._i, - format = config._f; - return ( - (config._locale = config._locale || getLocale(config._l)), - null === input || (void 0 === format && '' === input) - ? createInvalid({ nullInput: !0 }) - : ('string' == typeof input && (config._i = input = config._locale.preparse(input)), - isMoment(input) - ? new Moment(checkOverflow(input)) - : (isDate(input) - ? (config._d = input) - : isArray(format) - ? (function configFromStringAndArray(config) { - var tempConfig, bestMoment, scoreToBeat, i, currentScore; - if (0 === config._f.length) - return ( - (getParsingFlags(config).invalidFormat = !0), - void (config._d = new Date(NaN)) - ); - for (i = 0; i < config._f.length; i++) - (currentScore = 0), - (tempConfig = copyConfig({}, config)), - null != config._useUTC && (tempConfig._useUTC = config._useUTC), - (tempConfig._f = config._f[i]), - configFromStringAndFormat(tempConfig), - isValid(tempConfig) && - ((currentScore += getParsingFlags(tempConfig).charsLeftOver), - (currentScore += - 10 * getParsingFlags(tempConfig).unusedTokens.length), - (getParsingFlags(tempConfig).score = currentScore), - (null == scoreToBeat || currentScore < scoreToBeat) && - ((scoreToBeat = currentScore), (bestMoment = tempConfig))); - extend(config, bestMoment || tempConfig); - })(config) - : format - ? configFromStringAndFormat(config) - : (function configFromInput(config) { - var input = config._i; - isUndefined(input) - ? (config._d = new Date(hooks.now())) - : isDate(input) - ? (config._d = new Date(input.valueOf())) - : 'string' == typeof input - ? (function configFromString(config) { - var matched = aspNetJsonRegex.exec(config._i); - null === matched - ? (configFromISO(config), - !1 === config._isValid && - (delete config._isValid, - configFromRFC2822(config), - !1 === config._isValid && - (delete config._isValid, - hooks.createFromInputFallback(config)))) - : (config._d = new Date(+matched[1])); - })(config) - : isArray(input) - ? ((config._a = map(input.slice(0), function(obj) { - return parseInt(obj, 10); - })), - configFromArray(config)) - : isObject(input) - ? (function configFromObject(config) { - if (!config._d) { - var i = normalizeObjectUnits(config._i); - (config._a = map( - [ - i.year, - i.month, - i.day || i.date, - i.hour, - i.minute, - i.second, - i.millisecond - ], - function(obj) { - return obj && parseInt(obj, 10); - } - )), - configFromArray(config); - } - })(config) - : isNumber(input) - ? (config._d = new Date(input)) - : hooks.createFromInputFallback(config); - })(config), - isValid(config) || (config._d = null), - config)) - ); - } - function createLocalOrUTC(input, format, locale, strict, isUTC) { - var c = {}; - return ( - (!0 !== locale && !1 !== locale) || ((strict = locale), (locale = void 0)), - ((isObject(input) && - (function isObjectEmpty(obj) { - if (Object.getOwnPropertyNames) return 0 === Object.getOwnPropertyNames(obj).length; - var k; - for (k in obj) if (obj.hasOwnProperty(k)) return !1; - return !0; - })(input)) || - (isArray(input) && 0 === input.length)) && - (input = void 0), - (c._isAMomentObject = !0), - (c._useUTC = c._isUTC = isUTC), - (c._l = locale), - (c._i = input), - (c._f = format), - (c._strict = strict), - (function createFromConfig(config) { - var res = new Moment(checkOverflow(prepareConfig(config))); - return res._nextDay && (res.add(1, 'd'), (res._nextDay = void 0)), res; - })(c) - ); - } - function createLocal(input, format, locale, strict) { - return createLocalOrUTC(input, format, locale, strict, !1); - } - (hooks.createFromInputFallback = deprecate( - 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.', - function(config) { - config._d = new Date(config._i + (config._useUTC ? ' UTC' : '')); - } - )), - (hooks.ISO_8601 = function() {}), - (hooks.RFC_2822 = function() {}); - var prototypeMin = deprecate( - 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', - function() { - var other = createLocal.apply(null, arguments); - return this.isValid() && other.isValid() - ? other < this ? this : other - : createInvalid(); - } - ), - prototypeMax = deprecate( - 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', - function() { - var other = createLocal.apply(null, arguments); - return this.isValid() && other.isValid() - ? other > this ? this : other - : createInvalid(); - } - ); - function pickBy(fn, moments) { - var res, i; - if ( - (1 === moments.length && isArray(moments[0]) && (moments = moments[0]), !moments.length) - ) - return createLocal(); - for (res = moments[0], i = 1; i < moments.length; ++i) - (moments[i].isValid() && !moments[i][fn](res)) || (res = moments[i]); - return res; - } - var ordering = [ - 'year', - 'quarter', - 'month', - 'week', - 'day', - 'hour', - 'minute', - 'second', - 'millisecond' - ]; - function Duration(duration) { - var normalizedInput = normalizeObjectUnits(duration), - years = normalizedInput.year || 0, - quarters = normalizedInput.quarter || 0, - months = normalizedInput.month || 0, - weeks = normalizedInput.week || 0, - days = normalizedInput.day || 0, - hours = normalizedInput.hour || 0, - minutes = normalizedInput.minute || 0, - seconds = normalizedInput.second || 0, - milliseconds = normalizedInput.millisecond || 0; - (this._isValid = (function isDurationValid(m) { - for (var key in m) - if (-1 === indexOf.call(ordering, key) || (null != m[key] && isNaN(m[key]))) - return !1; - for (var unitHasDecimal = !1, i = 0; i < ordering.length; ++i) - if (m[ordering[i]]) { - if (unitHasDecimal) return !1; - parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]]) && (unitHasDecimal = !0); - } - return !0; - })(normalizedInput)), - (this._milliseconds = - +milliseconds + 1e3 * seconds + 6e4 * minutes + 1e3 * hours * 60 * 60), - (this._days = +days + 7 * weeks), - (this._months = +months + 3 * quarters + 12 * years), - (this._data = {}), - (this._locale = getLocale()), - this._bubble(); - } - function isDuration(obj) { - return obj instanceof Duration; - } - function absRound(number) { - return number < 0 ? -1 * Math.round(-1 * number) : Math.round(number); - } - function offset(token, separator) { - addFormatToken(token, 0, 0, function() { - var offset = this.utcOffset(), - sign = '+'; - return ( - offset < 0 && ((offset = -offset), (sign = '-')), - sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~offset % 60, 2) - ); - }); - } - offset('Z', ':'), - offset('ZZ', ''), - addRegexToken('Z', matchShortOffset), - addRegexToken('ZZ', matchShortOffset), - addParseToken(['Z', 'ZZ'], function(input, array, config) { - (config._useUTC = !0), (config._tzm = offsetFromString(matchShortOffset, input)); - }); - var chunkOffset = /([\+\-]|\d\d)/gi; - function offsetFromString(matcher, string) { - var matches = (string || '').match(matcher); - if (null === matches) return null; - var parts = ((matches[matches.length - 1] || []) + '').match(chunkOffset) || ['-', 0, 0], - minutes = 60 * parts[1] + toInt(parts[2]); - return 0 === minutes ? 0 : '+' === parts[0] ? minutes : -minutes; - } - function cloneWithOffset(input, model) { - var res, diff; - return model._isUTC - ? ((res = model.clone()), - (diff = - (isMoment(input) || isDate(input) - ? input.valueOf() - : createLocal(input).valueOf()) - res.valueOf()), - res._d.setTime(res._d.valueOf() + diff), - hooks.updateOffset(res, !1), - res) - : createLocal(input).local(); - } - function getDateOffset(m) { - return 15 * -Math.round(m._d.getTimezoneOffset() / 15); - } - function isUtc() { - return !!this.isValid() && (this._isUTC && 0 === this._offset); - } - hooks.updateOffset = function() {}; - var aspNetRegex = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/, - isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; - function createDuration(input, key) { - var sign, - ret, - diffRes, - duration = input, - match = null; - return ( - isDuration(input) - ? (duration = { ms: input._milliseconds, d: input._days, M: input._months }) - : isNumber(input) - ? ((duration = {}), key ? (duration[key] = input) : (duration.milliseconds = input)) - : (match = aspNetRegex.exec(input)) - ? ((sign = '-' === match[1] ? -1 : 1), - (duration = { - y: 0, - d: toInt(match[DATE]) * sign, - h: toInt(match[HOUR]) * sign, - m: toInt(match[MINUTE]) * sign, - s: toInt(match[SECOND]) * sign, - ms: toInt(absRound(1e3 * match[MILLISECOND])) * sign - })) - : (match = isoRegex.exec(input)) - ? ((sign = '-' === match[1] ? -1 : (match[1], 1)), - (duration = { - y: parseIso(match[2], sign), - M: parseIso(match[3], sign), - w: parseIso(match[4], sign), - d: parseIso(match[5], sign), - h: parseIso(match[6], sign), - m: parseIso(match[7], sign), - s: parseIso(match[8], sign) - })) - : null == duration - ? (duration = {}) - : 'object' == typeof duration && - ('from' in duration || 'to' in duration) && - ((diffRes = (function momentsDifference(base, other) { - var res; - if (!base.isValid() || !other.isValid()) - return { milliseconds: 0, months: 0 }; - (other = cloneWithOffset(other, base)), - base.isBefore(other) - ? (res = positiveMomentsDifference(base, other)) - : (((res = positiveMomentsDifference( - other, - base - )).milliseconds = -res.milliseconds), - (res.months = -res.months)); - return res; - })(createLocal(duration.from), createLocal(duration.to))), - ((duration = {}).ms = diffRes.milliseconds), - (duration.M = diffRes.months)), - (ret = new Duration(duration)), - isDuration(input) && hasOwnProp(input, '_locale') && (ret._locale = input._locale), - ret - ); - } - function parseIso(inp, sign) { - var res = inp && parseFloat(inp.replace(',', '.')); - return (isNaN(res) ? 0 : res) * sign; - } - function positiveMomentsDifference(base, other) { - var res = { milliseconds: 0, months: 0 }; - return ( - (res.months = other.month() - base.month() + 12 * (other.year() - base.year())), - base - .clone() - .add(res.months, 'M') - .isAfter(other) && --res.months, - (res.milliseconds = +other - +base.clone().add(res.months, 'M')), - res - ); - } - function createAdder(direction, name) { - return function(val, period) { - var tmp; - return ( - null === period || - isNaN(+period) || - (deprecateSimple( - name, - 'moment().' + - name + - '(period, number) is deprecated. Please use moment().' + - name + - '(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.' - ), - (tmp = val), - (val = period), - (period = tmp)), - addSubtract( - this, - createDuration((val = 'string' == typeof val ? +val : val), period), - direction - ), - this - ); - }; - } - function addSubtract(mom, duration, isAdding, updateOffset) { - var milliseconds = duration._milliseconds, - days = absRound(duration._days), - months = absRound(duration._months); - mom.isValid() && - ((updateOffset = null == updateOffset || updateOffset), - months && setMonth(mom, get(mom, 'Month') + months * isAdding), - days && set$1(mom, 'Date', get(mom, 'Date') + days * isAdding), - milliseconds && mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding), - updateOffset && hooks.updateOffset(mom, days || months)); - } - (createDuration.fn = Duration.prototype), - (createDuration.invalid = function createInvalid$1() { - return createDuration(NaN); - }); - var add = createAdder(1, 'add'), - subtract = createAdder(-1, 'subtract'); - function monthDiff(a, b) { - var wholeMonthDiff = 12 * (b.year() - a.year()) + (b.month() - a.month()), - anchor = a.clone().add(wholeMonthDiff, 'months'); - return ( - -( - wholeMonthDiff + - (b - anchor < 0 - ? (b - anchor) / (anchor - a.clone().add(wholeMonthDiff - 1, 'months')) - : (b - anchor) / (a.clone().add(wholeMonthDiff + 1, 'months') - anchor)) - ) || 0 - ); - } - function locale(key) { - var newLocaleData; - return void 0 === key - ? this._locale._abbr - : (null != (newLocaleData = getLocale(key)) && (this._locale = newLocaleData), this); - } - (hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'), - (hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]'); - var lang = deprecate( - 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', - function(key) { - return void 0 === key ? this.localeData() : this.locale(key); - } - ); - function localeData() { - return this._locale; - } - function addWeekYearFormatToken(token, getter) { - addFormatToken(0, [token, token.length], 0, getter); - } - function getSetWeekYearHelper(input, week, weekday, dow, doy) { - var weeksTarget; - return null == input - ? weekOfYear(this, dow, doy).year - : (week > (weeksTarget = weeksInYear(input, dow, doy)) && (week = weeksTarget), - function setWeekAll(weekYear, week, weekday, dow, doy) { - var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), - date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear); - return ( - this.year(date.getUTCFullYear()), - this.month(date.getUTCMonth()), - this.date(date.getUTCDate()), - this - ); - }.call(this, input, week, weekday, dow, doy)); - } - addFormatToken(0, ['gg', 2], 0, function() { - return this.weekYear() % 100; - }), - addFormatToken(0, ['GG', 2], 0, function() { - return this.isoWeekYear() % 100; - }), - addWeekYearFormatToken('gggg', 'weekYear'), - addWeekYearFormatToken('ggggg', 'weekYear'), - addWeekYearFormatToken('GGGG', 'isoWeekYear'), - addWeekYearFormatToken('GGGGG', 'isoWeekYear'), - addUnitAlias('weekYear', 'gg'), - addUnitAlias('isoWeekYear', 'GG'), - addUnitPriority('weekYear', 1), - addUnitPriority('isoWeekYear', 1), - addRegexToken('G', matchSigned), - addRegexToken('g', matchSigned), - addRegexToken('GG', match1to2, match2), - addRegexToken('gg', match1to2, match2), - addRegexToken('GGGG', match1to4, match4), - addRegexToken('gggg', match1to4, match4), - addRegexToken('GGGGG', match1to6, match6), - addRegexToken('ggggg', match1to6, match6), - addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function( - input, - week, - config, - token - ) { - week[token.substr(0, 2)] = toInt(input); - }), - addWeekParseToken(['gg', 'GG'], function(input, week, config, token) { - week[token] = hooks.parseTwoDigitYear(input); - }), - addFormatToken('Q', 0, 'Qo', 'quarter'), - addUnitAlias('quarter', 'Q'), - addUnitPriority('quarter', 7), - addRegexToken('Q', match1), - addParseToken('Q', function(input, array) { - array[MONTH] = 3 * (toInt(input) - 1); - }), - addFormatToken('D', ['DD', 2], 'Do', 'date'), - addUnitAlias('date', 'D'), - addUnitPriority('date', 9), - addRegexToken('D', match1to2), - addRegexToken('DD', match1to2, match2), - addRegexToken('Do', function(isStrict, locale) { - return isStrict - ? locale._dayOfMonthOrdinalParse || locale._ordinalParse - : locale._dayOfMonthOrdinalParseLenient; - }), - addParseToken(['D', 'DD'], DATE), - addParseToken('Do', function(input, array) { - array[DATE] = toInt(input.match(match1to2)[0]); - }); - var getSetDayOfMonth = makeGetSet('Date', !0); - addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'), - addUnitAlias('dayOfYear', 'DDD'), - addUnitPriority('dayOfYear', 4), - addRegexToken('DDD', match1to3), - addRegexToken('DDDD', match3), - addParseToken(['DDD', 'DDDD'], function(input, array, config) { - config._dayOfYear = toInt(input); - }), - addFormatToken('m', ['mm', 2], 0, 'minute'), - addUnitAlias('minute', 'm'), - addUnitPriority('minute', 14), - addRegexToken('m', match1to2), - addRegexToken('mm', match1to2, match2), - addParseToken(['m', 'mm'], MINUTE); - var getSetMinute = makeGetSet('Minutes', !1); - addFormatToken('s', ['ss', 2], 0, 'second'), - addUnitAlias('second', 's'), - addUnitPriority('second', 15), - addRegexToken('s', match1to2), - addRegexToken('ss', match1to2, match2), - addParseToken(['s', 'ss'], SECOND); - var token, - getSetSecond = makeGetSet('Seconds', !1); - for ( - addFormatToken('S', 0, 0, function() { - return ~~(this.millisecond() / 100); - }), - addFormatToken(0, ['SS', 2], 0, function() { - return ~~(this.millisecond() / 10); - }), - addFormatToken(0, ['SSS', 3], 0, 'millisecond'), - addFormatToken(0, ['SSSS', 4], 0, function() { - return 10 * this.millisecond(); - }), - addFormatToken(0, ['SSSSS', 5], 0, function() { - return 100 * this.millisecond(); - }), - addFormatToken(0, ['SSSSSS', 6], 0, function() { - return 1e3 * this.millisecond(); - }), - addFormatToken(0, ['SSSSSSS', 7], 0, function() { - return 1e4 * this.millisecond(); - }), - addFormatToken(0, ['SSSSSSSS', 8], 0, function() { - return 1e5 * this.millisecond(); - }), - addFormatToken(0, ['SSSSSSSSS', 9], 0, function() { - return 1e6 * this.millisecond(); - }), - addUnitAlias('millisecond', 'ms'), - addUnitPriority('millisecond', 16), - addRegexToken('S', match1to3, match1), - addRegexToken('SS', match1to3, match2), - addRegexToken('SSS', match1to3, match3), - token = 'SSSS'; - token.length <= 9; - token += 'S' - ) - addRegexToken(token, matchUnsigned); - function parseMs(input, array) { - array[MILLISECOND] = toInt(1e3 * ('0.' + input)); - } - for (token = 'S'; token.length <= 9; token += 'S') addParseToken(token, parseMs); - var getSetMillisecond = makeGetSet('Milliseconds', !1); - addFormatToken('z', 0, 0, 'zoneAbbr'), addFormatToken('zz', 0, 0, 'zoneName'); - var proto = Moment.prototype; - function preParsePostFormat(string) { - return string; - } - (proto.add = add), - (proto.calendar = function calendar$1(time, formats) { - var now = time || createLocal(), - sod = cloneWithOffset(now, this).startOf('day'), - format = hooks.calendarFormat(this, sod) || 'sameElse', - output = - formats && - (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]); - return this.format( - output || this.localeData().calendar(format, this, createLocal(now)) - ); - }), - (proto.clone = function clone() { - return new Moment(this); - }), - (proto.diff = function diff(input, units, asFloat) { - var that, zoneDelta, output; - if (!this.isValid()) return NaN; - if (!(that = cloneWithOffset(input, this)).isValid()) return NaN; - switch (((zoneDelta = 6e4 * (that.utcOffset() - this.utcOffset())), - (units = normalizeUnits(units)))) { - case 'year': - output = monthDiff(this, that) / 12; - break; - case 'month': - output = monthDiff(this, that); - break; - case 'quarter': - output = monthDiff(this, that) / 3; - break; - case 'second': - output = (this - that) / 1e3; - break; - case 'minute': - output = (this - that) / 6e4; - break; - case 'hour': - output = (this - that) / 36e5; - break; - case 'day': - output = (this - that - zoneDelta) / 864e5; - break; - case 'week': - output = (this - that - zoneDelta) / 6048e5; - break; - default: - output = this - that; - } - return asFloat ? output : absFloor(output); - }), - (proto.endOf = function endOf(units) { - return void 0 === (units = normalizeUnits(units)) || 'millisecond' === units - ? this - : ('date' === units && (units = 'day'), - this.startOf(units) - .add(1, 'isoWeek' === units ? 'week' : units) - .subtract(1, 'ms')); - }), - (proto.format = function format(inputString) { - inputString || - (inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat); - var output = formatMoment(this, inputString); - return this.localeData().postformat(output); - }), - (proto.from = function from(time, withoutSuffix) { - return this.isValid() && - ((isMoment(time) && time.isValid()) || createLocal(time).isValid()) - ? createDuration({ to: this, from: time }) - .locale(this.locale()) - .humanize(!withoutSuffix) - : this.localeData().invalidDate(); - }), - (proto.fromNow = function fromNow(withoutSuffix) { - return this.from(createLocal(), withoutSuffix); - }), - (proto.to = function to(time, withoutSuffix) { - return this.isValid() && - ((isMoment(time) && time.isValid()) || createLocal(time).isValid()) - ? createDuration({ from: this, to: time }) - .locale(this.locale()) - .humanize(!withoutSuffix) - : this.localeData().invalidDate(); - }), - (proto.toNow = function toNow(withoutSuffix) { - return this.to(createLocal(), withoutSuffix); - }), - (proto.get = function stringGet(units) { - return isFunction(this[(units = normalizeUnits(units))]) ? this[units]() : this; - }), - (proto.invalidAt = function invalidAt() { - return getParsingFlags(this).overflow; - }), - (proto.isAfter = function isAfter(input, units) { - var localInput = isMoment(input) ? input : createLocal(input); - return ( - !(!this.isValid() || !localInput.isValid()) && - ('millisecond' === - (units = normalizeUnits(isUndefined(units) ? 'millisecond' : units)) - ? this.valueOf() > localInput.valueOf() - : localInput.valueOf() < - this.clone() - .startOf(units) - .valueOf()) - ); - }), - (proto.isBefore = function isBefore(input, units) { - var localInput = isMoment(input) ? input : createLocal(input); - return ( - !(!this.isValid() || !localInput.isValid()) && - ('millisecond' === - (units = normalizeUnits(isUndefined(units) ? 'millisecond' : units)) - ? this.valueOf() < localInput.valueOf() - : this.clone() - .endOf(units) - .valueOf() < localInput.valueOf()) - ); - }), - (proto.isBetween = function isBetween(from, to, units, inclusivity) { - return ( - ('(' === (inclusivity = inclusivity || '()')[0] - ? this.isAfter(from, units) - : !this.isBefore(from, units)) && - (')' === inclusivity[1] ? this.isBefore(to, units) : !this.isAfter(to, units)) - ); - }), - (proto.isSame = function isSame(input, units) { - var inputMs, - localInput = isMoment(input) ? input : createLocal(input); - return ( - !(!this.isValid() || !localInput.isValid()) && - ('millisecond' === (units = normalizeUnits(units || 'millisecond')) - ? this.valueOf() === localInput.valueOf() - : ((inputMs = localInput.valueOf()), - this.clone() - .startOf(units) - .valueOf() <= inputMs && - inputMs <= - this.clone() - .endOf(units) - .valueOf())) - ); - }), - (proto.isSameOrAfter = function isSameOrAfter(input, units) { - return this.isSame(input, units) || this.isAfter(input, units); - }), - (proto.isSameOrBefore = function isSameOrBefore(input, units) { - return this.isSame(input, units) || this.isBefore(input, units); - }), - (proto.isValid = function isValid$2() { - return isValid(this); - }), - (proto.lang = lang), - (proto.locale = locale), - (proto.localeData = localeData), - (proto.max = prototypeMax), - (proto.min = prototypeMin), - (proto.parsingFlags = function parsingFlags() { - return extend({}, getParsingFlags(this)); - }), - (proto.set = function stringSet(units, value) { - if ('object' == typeof units) - for ( - var prioritized = (function getPrioritizedUnits(unitsObj) { - var units = []; - for (var u in unitsObj) units.push({ unit: u, priority: priorities[u] }); - return ( - units.sort(function(a, b) { - return a.priority - b.priority; - }), - units - ); - })((units = normalizeObjectUnits(units))), - i = 0; - i < prioritized.length; - i++ - ) - this[prioritized[i].unit](units[prioritized[i].unit]); - else if (isFunction(this[(units = normalizeUnits(units))])) return this[units](value); - return this; - }), - (proto.startOf = function startOf(units) { - switch ((units = normalizeUnits(units))) { - case 'year': - this.month(0); - case 'quarter': - case 'month': - this.date(1); - case 'week': - case 'isoWeek': - case 'day': - case 'date': - this.hours(0); - case 'hour': - this.minutes(0); - case 'minute': - this.seconds(0); - case 'second': - this.milliseconds(0); - } - return ( - 'week' === units && this.weekday(0), - 'isoWeek' === units && this.isoWeekday(1), - 'quarter' === units && this.month(3 * Math.floor(this.month() / 3)), - this - ); - }), - (proto.subtract = subtract), - (proto.toArray = function toArray() { - var m = this; - return [ - m.year(), - m.month(), - m.date(), - m.hour(), - m.minute(), - m.second(), - m.millisecond() - ]; - }), - (proto.toObject = function toObject() { - var m = this; - return { - years: m.year(), - months: m.month(), - date: m.date(), - hours: m.hours(), - minutes: m.minutes(), - seconds: m.seconds(), - milliseconds: m.milliseconds() - }; - }), - (proto.toDate = function toDate() { - return new Date(this.valueOf()); - }), - (proto.toISOString = function toISOString(keepOffset) { - if (!this.isValid()) return null; - var utc = !0 !== keepOffset, - m = utc ? this.clone().utc() : this; - return m.year() < 0 || m.year() > 9999 - ? formatMoment( - m, - utc ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ' - ) - : isFunction(Date.prototype.toISOString) - ? utc - ? this.toDate().toISOString() - : new Date(this._d.valueOf()).toISOString().replace('Z', formatMoment(m, 'Z')) - : formatMoment( - m, - utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ' - ); - }), - (proto.inspect = function inspect() { - if (!this.isValid()) return 'moment.invalid(/* ' + this._i + ' */)'; - var func = 'moment', - zone = ''; - this.isLocal() || - ((func = 0 === this.utcOffset() ? 'moment.utc' : 'moment.parseZone'), (zone = 'Z')); - var prefix = '[' + func + '("]', - year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY', - suffix = zone + '[")]'; - return this.format(prefix + year + '-MM-DD[T]HH:mm:ss.SSS' + suffix); - }), - (proto.toJSON = function toJSON() { - return this.isValid() ? this.toISOString() : null; - }), - (proto.toString = function toString() { - return this.clone() - .locale('en') - .format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); - }), - (proto.unix = function unix() { - return Math.floor(this.valueOf() / 1e3); - }), - (proto.valueOf = function valueOf() { - return this._d.valueOf() - 6e4 * (this._offset || 0); - }), - (proto.creationData = function creationData() { - return { - input: this._i, - format: this._f, - locale: this._locale, - isUTC: this._isUTC, - strict: this._strict - }; - }), - (proto.year = getSetYear), - (proto.isLeapYear = function getIsLeapYear() { - return isLeapYear(this.year()); - }), - (proto.weekYear = function getSetWeekYear(input) { - return getSetWeekYearHelper.call( - this, - input, - this.week(), - this.weekday(), - this.localeData()._week.dow, - this.localeData()._week.doy - ); - }), - (proto.isoWeekYear = function getSetISOWeekYear(input) { - return getSetWeekYearHelper.call(this, input, this.isoWeek(), this.isoWeekday(), 1, 4); - }), - (proto.quarter = proto.quarters = function getSetQuarter(input) { - return null == input - ? Math.ceil((this.month() + 1) / 3) - : this.month(3 * (input - 1) + this.month() % 3); - }), - (proto.month = getSetMonth), - (proto.daysInMonth = function getDaysInMonth() { - return daysInMonth(this.year(), this.month()); - }), - (proto.week = proto.weeks = function getSetWeek(input) { - var week = this.localeData().week(this); - return null == input ? week : this.add(7 * (input - week), 'd'); - }), - (proto.isoWeek = proto.isoWeeks = function getSetISOWeek(input) { - var week = weekOfYear(this, 1, 4).week; - return null == input ? week : this.add(7 * (input - week), 'd'); - }), - (proto.weeksInYear = function getWeeksInYear() { - var weekInfo = this.localeData()._week; - return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); - }), - (proto.isoWeeksInYear = function getISOWeeksInYear() { - return weeksInYear(this.year(), 1, 4); - }), - (proto.date = getSetDayOfMonth), - (proto.day = proto.days = function getSetDayOfWeek(input) { - if (!this.isValid()) return null != input ? this : NaN; - var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); - return null != input - ? ((input = (function parseWeekday(input, locale) { - return 'string' != typeof input - ? input - : isNaN(input) - ? 'number' == typeof (input = locale.weekdaysParse(input)) ? input : null - : parseInt(input, 10); - })(input, this.localeData())), - this.add(input - day, 'd')) - : day; - }), - (proto.weekday = function getSetLocaleDayOfWeek(input) { - if (!this.isValid()) return null != input ? this : NaN; - var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; - return null == input ? weekday : this.add(input - weekday, 'd'); - }), - (proto.isoWeekday = function getSetISODayOfWeek(input) { - if (!this.isValid()) return null != input ? this : NaN; - if (null != input) { - var weekday = (function parseIsoWeekday(input, locale) { - return 'string' == typeof input - ? locale.weekdaysParse(input) % 7 || 7 - : isNaN(input) ? null : input; - })(input, this.localeData()); - return this.day(this.day() % 7 ? weekday : weekday - 7); - } - return this.day() || 7; - }), - (proto.dayOfYear = function getSetDayOfYear(input) { - var dayOfYear = - Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1; - return null == input ? dayOfYear : this.add(input - dayOfYear, 'd'); - }), - (proto.hour = proto.hours = getSetHour), - (proto.minute = proto.minutes = getSetMinute), - (proto.second = proto.seconds = getSetSecond), - (proto.millisecond = proto.milliseconds = getSetMillisecond), - (proto.utcOffset = function getSetOffset(input, keepLocalTime, keepMinutes) { - var localAdjust, - offset = this._offset || 0; - if (!this.isValid()) return null != input ? this : NaN; - if (null != input) { - if ('string' == typeof input) { - if (null === (input = offsetFromString(matchShortOffset, input))) return this; - } else Math.abs(input) < 16 && !keepMinutes && (input *= 60); - return ( - !this._isUTC && keepLocalTime && (localAdjust = getDateOffset(this)), - (this._offset = input), - (this._isUTC = !0), - null != localAdjust && this.add(localAdjust, 'm'), - offset !== input && - (!keepLocalTime || this._changeInProgress - ? addSubtract(this, createDuration(input - offset, 'm'), 1, !1) - : this._changeInProgress || - ((this._changeInProgress = !0), - hooks.updateOffset(this, !0), - (this._changeInProgress = null))), - this - ); - } - return this._isUTC ? offset : getDateOffset(this); - }), - (proto.utc = function setOffsetToUTC(keepLocalTime) { - return this.utcOffset(0, keepLocalTime); - }), - (proto.local = function setOffsetToLocal(keepLocalTime) { - return ( - this._isUTC && - (this.utcOffset(0, keepLocalTime), - (this._isUTC = !1), - keepLocalTime && this.subtract(getDateOffset(this), 'm')), - this - ); - }), - (proto.parseZone = function setOffsetToParsedOffset() { - if (null != this._tzm) this.utcOffset(this._tzm, !1, !0); - else if ('string' == typeof this._i) { - var tZone = offsetFromString(matchOffset, this._i); - null != tZone ? this.utcOffset(tZone) : this.utcOffset(0, !0); - } - return this; - }), - (proto.hasAlignedHourOffset = function hasAlignedHourOffset(input) { - return ( - !!this.isValid() && - ((input = input ? createLocal(input).utcOffset() : 0), - (this.utcOffset() - input) % 60 == 0) - ); - }), - (proto.isDST = function isDaylightSavingTime() { - return ( - this.utcOffset() > - this.clone() - .month(0) - .utcOffset() || - this.utcOffset() > - this.clone() - .month(5) - .utcOffset() - ); - }), - (proto.isLocal = function isLocal() { - return !!this.isValid() && !this._isUTC; - }), - (proto.isUtcOffset = function isUtcOffset() { - return !!this.isValid() && this._isUTC; - }), - (proto.isUtc = isUtc), - (proto.isUTC = isUtc), - (proto.zoneAbbr = function getZoneAbbr() { - return this._isUTC ? 'UTC' : ''; - }), - (proto.zoneName = function getZoneName() { - return this._isUTC ? 'Coordinated Universal Time' : ''; - }), - (proto.dates = deprecate( - 'dates accessor is deprecated. Use date instead.', - getSetDayOfMonth - )), - (proto.months = deprecate( - 'months accessor is deprecated. Use month instead', - getSetMonth - )), - (proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear)), - (proto.zone = deprecate( - 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', - function getSetZone(input, keepLocalTime) { - return null != input - ? ('string' != typeof input && (input = -input), - this.utcOffset(input, keepLocalTime), - this) - : -this.utcOffset(); - } - )), - (proto.isDSTShifted = deprecate( - 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', - function isDaylightSavingTimeShifted() { - if (!isUndefined(this._isDSTShifted)) return this._isDSTShifted; - var c = {}; - if ((copyConfig(c, this), (c = prepareConfig(c))._a)) { - var other = c._isUTC ? createUTC(c._a) : createLocal(c._a); - this._isDSTShifted = this.isValid() && compareArrays(c._a, other.toArray()) > 0; - } else this._isDSTShifted = !1; - return this._isDSTShifted; - } - )); - var proto$1 = Locale.prototype; - function get$1(format, index, field, setter) { - var locale = getLocale(), - utc = createUTC().set(setter, index); - return locale[field](utc, format); - } - function listMonthsImpl(format, index, field) { - if ( - (isNumber(format) && ((index = format), (format = void 0)), - (format = format || ''), - null != index) - ) - return get$1(format, index, field, 'month'); - var i, - out = []; - for (i = 0; i < 12; i++) out[i] = get$1(format, i, field, 'month'); - return out; - } - function listWeekdaysImpl(localeSorted, format, index, field) { - 'boolean' == typeof localeSorted - ? (isNumber(format) && ((index = format), (format = void 0)), (format = format || '')) - : ((index = format = localeSorted), - (localeSorted = !1), - isNumber(format) && ((index = format), (format = void 0)), - (format = format || '')); - var i, - locale = getLocale(), - shift = localeSorted ? locale._week.dow : 0; - if (null != index) return get$1(format, (index + shift) % 7, field, 'day'); - var out = []; - for (i = 0; i < 7; i++) out[i] = get$1(format, (i + shift) % 7, field, 'day'); - return out; - } - (proto$1.calendar = function calendar(key, mom, now) { - var output = this._calendar[key] || this._calendar.sameElse; - return isFunction(output) ? output.call(mom, now) : output; - }), - (proto$1.longDateFormat = function longDateFormat(key) { - var format = this._longDateFormat[key], - formatUpper = this._longDateFormat[key.toUpperCase()]; - return format || !formatUpper - ? format - : ((this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function( - val - ) { - return val.slice(1); - })), - this._longDateFormat[key]); - }), - (proto$1.invalidDate = function invalidDate() { - return this._invalidDate; - }), - (proto$1.ordinal = function ordinal(number) { - return this._ordinal.replace('%d', number); - }), - (proto$1.preparse = preParsePostFormat), - (proto$1.postformat = preParsePostFormat), - (proto$1.relativeTime = function relativeTime(number, withoutSuffix, string, isFuture) { - var output = this._relativeTime[string]; - return isFunction(output) - ? output(number, withoutSuffix, string, isFuture) - : output.replace(/%d/i, number); - }), - (proto$1.pastFuture = function pastFuture(diff, output) { - var format = this._relativeTime[diff > 0 ? 'future' : 'past']; - return isFunction(format) ? format(output) : format.replace(/%s/i, output); - }), - (proto$1.set = function set(config) { - var prop, i; - for (i in config) - isFunction((prop = config[i])) ? (this[i] = prop) : (this['_' + i] = prop); - (this._config = config), - (this._dayOfMonthOrdinalParseLenient = new RegExp( - (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + - '|' + - /\d{1,2}/.source - )); - }), - (proto$1.months = function localeMonths(m, format) { - return m - ? isArray(this._months) - ? this._months[m.month()] - : this._months[ - (this._months.isFormat || MONTHS_IN_FORMAT).test(format) - ? 'format' - : 'standalone' - ][m.month()] - : isArray(this._months) ? this._months : this._months.standalone; - }), - (proto$1.monthsShort = function localeMonthsShort(m, format) { - return m - ? isArray(this._monthsShort) - ? this._monthsShort[m.month()] - : this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][ - m.month() - ] - : isArray(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone; - }), - (proto$1.monthsParse = function localeMonthsParse(monthName, format, strict) { - var i, mom, regex; - if (this._monthsParseExact) - return function handleStrictParse(monthName, format, strict) { - var i, - ii, - mom, - llc = monthName.toLocaleLowerCase(); - if (!this._monthsParse) - for ( - this._monthsParse = [], - this._longMonthsParse = [], - this._shortMonthsParse = [], - i = 0; - i < 12; - ++i - ) - (mom = createUTC([2e3, i])), - (this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase()), - (this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase()); - return strict - ? 'MMM' === format - ? -1 !== (ii = indexOf.call(this._shortMonthsParse, llc)) ? ii : null - : -1 !== (ii = indexOf.call(this._longMonthsParse, llc)) ? ii : null - : 'MMM' === format - ? -1 !== (ii = indexOf.call(this._shortMonthsParse, llc)) - ? ii - : -1 !== (ii = indexOf.call(this._longMonthsParse, llc)) ? ii : null - : -1 !== (ii = indexOf.call(this._longMonthsParse, llc)) - ? ii - : -1 !== (ii = indexOf.call(this._shortMonthsParse, llc)) ? ii : null; - }.call(this, monthName, format, strict); - for ( - this._monthsParse || - ((this._monthsParse = []), - (this._longMonthsParse = []), - (this._shortMonthsParse = [])), - i = 0; - i < 12; - i++ - ) { - if ( - ((mom = createUTC([2e3, i])), - strict && - !this._longMonthsParse[i] && - ((this._longMonthsParse[i] = new RegExp( - '^' + this.months(mom, '').replace('.', '') + '$', - 'i' - )), - (this._shortMonthsParse[i] = new RegExp( - '^' + this.monthsShort(mom, '').replace('.', '') + '$', - 'i' - ))), - strict || - this._monthsParse[i] || - ((regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '')), - (this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i'))), - strict && 'MMMM' === format && this._longMonthsParse[i].test(monthName)) - ) - return i; - if (strict && 'MMM' === format && this._shortMonthsParse[i].test(monthName)) return i; - if (!strict && this._monthsParse[i].test(monthName)) return i; - } - }), - (proto$1.monthsRegex = function monthsRegex(isStrict) { - return this._monthsParseExact - ? (hasOwnProp(this, '_monthsRegex') || computeMonthsParse.call(this), - isStrict ? this._monthsStrictRegex : this._monthsRegex) - : (hasOwnProp(this, '_monthsRegex') || (this._monthsRegex = defaultMonthsRegex), - this._monthsStrictRegex && isStrict ? this._monthsStrictRegex : this._monthsRegex); - }), - (proto$1.monthsShortRegex = function monthsShortRegex(isStrict) { - return this._monthsParseExact - ? (hasOwnProp(this, '_monthsRegex') || computeMonthsParse.call(this), - isStrict ? this._monthsShortStrictRegex : this._monthsShortRegex) - : (hasOwnProp(this, '_monthsShortRegex') || - (this._monthsShortRegex = defaultMonthsShortRegex), - this._monthsShortStrictRegex && isStrict - ? this._monthsShortStrictRegex - : this._monthsShortRegex); - }), - (proto$1.week = function localeWeek(mom) { - return weekOfYear(mom, this._week.dow, this._week.doy).week; - }), - (proto$1.firstDayOfYear = function localeFirstDayOfYear() { - return this._week.doy; - }), - (proto$1.firstDayOfWeek = function localeFirstDayOfWeek() { - return this._week.dow; - }), - (proto$1.weekdays = function localeWeekdays(m, format) { - return m - ? isArray(this._weekdays) - ? this._weekdays[m.day()] - : this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][ - m.day() - ] - : isArray(this._weekdays) ? this._weekdays : this._weekdays.standalone; - }), - (proto$1.weekdaysMin = function localeWeekdaysMin(m) { - return m ? this._weekdaysMin[m.day()] : this._weekdaysMin; - }), - (proto$1.weekdaysShort = function localeWeekdaysShort(m) { - return m ? this._weekdaysShort[m.day()] : this._weekdaysShort; - }), - (proto$1.weekdaysParse = function localeWeekdaysParse(weekdayName, format, strict) { - var i, mom, regex; - if (this._weekdaysParseExact) - return function handleStrictParse$1(weekdayName, format, strict) { - var i, - ii, - mom, - llc = weekdayName.toLocaleLowerCase(); - if (!this._weekdaysParse) - for ( - this._weekdaysParse = [], - this._shortWeekdaysParse = [], - this._minWeekdaysParse = [], - i = 0; - i < 7; - ++i - ) - (mom = createUTC([2e3, 1]).day(i)), - (this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase()), - (this._shortWeekdaysParse[i] = this.weekdaysShort( - mom, - '' - ).toLocaleLowerCase()), - (this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase()); - return strict - ? 'dddd' === format - ? -1 !== (ii = indexOf.call(this._weekdaysParse, llc)) ? ii : null - : 'ddd' === format - ? -1 !== (ii = indexOf.call(this._shortWeekdaysParse, llc)) ? ii : null - : -1 !== (ii = indexOf.call(this._minWeekdaysParse, llc)) ? ii : null - : 'dddd' === format - ? -1 !== (ii = indexOf.call(this._weekdaysParse, llc)) - ? ii - : -1 !== (ii = indexOf.call(this._shortWeekdaysParse, llc)) - ? ii - : -1 !== (ii = indexOf.call(this._minWeekdaysParse, llc)) ? ii : null - : 'ddd' === format - ? -1 !== (ii = indexOf.call(this._shortWeekdaysParse, llc)) - ? ii - : -1 !== (ii = indexOf.call(this._weekdaysParse, llc)) - ? ii - : -1 !== (ii = indexOf.call(this._minWeekdaysParse, llc)) ? ii : null - : -1 !== (ii = indexOf.call(this._minWeekdaysParse, llc)) - ? ii - : -1 !== (ii = indexOf.call(this._weekdaysParse, llc)) - ? ii - : -1 !== (ii = indexOf.call(this._shortWeekdaysParse, llc)) ? ii : null; - }.call(this, weekdayName, format, strict); - for ( - this._weekdaysParse || - ((this._weekdaysParse = []), - (this._minWeekdaysParse = []), - (this._shortWeekdaysParse = []), - (this._fullWeekdaysParse = [])), - i = 0; - i < 7; - i++ - ) { - if ( - ((mom = createUTC([2e3, 1]).day(i)), - strict && - !this._fullWeekdaysParse[i] && - ((this._fullWeekdaysParse[i] = new RegExp( - '^' + this.weekdays(mom, '').replace('.', '.?') + '$', - 'i' - )), - (this._shortWeekdaysParse[i] = new RegExp( - '^' + this.weekdaysShort(mom, '').replace('.', '.?') + '$', - 'i' - )), - (this._minWeekdaysParse[i] = new RegExp( - '^' + this.weekdaysMin(mom, '').replace('.', '.?') + '$', - 'i' - ))), - this._weekdaysParse[i] || - ((regex = - '^' + - this.weekdays(mom, '') + - '|^' + - this.weekdaysShort(mom, '') + - '|^' + - this.weekdaysMin(mom, '')), - (this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i'))), - strict && 'dddd' === format && this._fullWeekdaysParse[i].test(weekdayName)) - ) - return i; - if (strict && 'ddd' === format && this._shortWeekdaysParse[i].test(weekdayName)) - return i; - if (strict && 'dd' === format && this._minWeekdaysParse[i].test(weekdayName)) - return i; - if (!strict && this._weekdaysParse[i].test(weekdayName)) return i; - } - }), - (proto$1.weekdaysRegex = function weekdaysRegex(isStrict) { - return this._weekdaysParseExact - ? (hasOwnProp(this, '_weekdaysRegex') || computeWeekdaysParse.call(this), - isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex) - : (hasOwnProp(this, '_weekdaysRegex') || (this._weekdaysRegex = defaultWeekdaysRegex), - this._weekdaysStrictRegex && isStrict - ? this._weekdaysStrictRegex - : this._weekdaysRegex); - }), - (proto$1.weekdaysShortRegex = function weekdaysShortRegex(isStrict) { - return this._weekdaysParseExact - ? (hasOwnProp(this, '_weekdaysRegex') || computeWeekdaysParse.call(this), - isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) - : (hasOwnProp(this, '_weekdaysShortRegex') || - (this._weekdaysShortRegex = defaultWeekdaysShortRegex), - this._weekdaysShortStrictRegex && isStrict - ? this._weekdaysShortStrictRegex - : this._weekdaysShortRegex); - }), - (proto$1.weekdaysMinRegex = function weekdaysMinRegex(isStrict) { - return this._weekdaysParseExact - ? (hasOwnProp(this, '_weekdaysRegex') || computeWeekdaysParse.call(this), - isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) - : (hasOwnProp(this, '_weekdaysMinRegex') || - (this._weekdaysMinRegex = defaultWeekdaysMinRegex), - this._weekdaysMinStrictRegex && isStrict - ? this._weekdaysMinStrictRegex - : this._weekdaysMinRegex); - }), - (proto$1.isPM = function localeIsPM(input) { - return 'p' === (input + '').toLowerCase().charAt(0); - }), - (proto$1.meridiem = function localeMeridiem(hours, minutes, isLower) { - return hours > 11 ? (isLower ? 'pm' : 'PM') : isLower ? 'am' : 'AM'; - }), - getSetGlobalLocale('en', { - dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, - ordinal: function(number) { - var b = number % 10; - return ( - number + - (1 === toInt((number % 100) / 10) - ? 'th' - : 1 === b ? 'st' : 2 === b ? 'nd' : 3 === b ? 'rd' : 'th') - ); - } - }), - (hooks.lang = deprecate( - 'moment.lang is deprecated. Use moment.locale instead.', - getSetGlobalLocale - )), - (hooks.langData = deprecate( - 'moment.langData is deprecated. Use moment.localeData instead.', - getLocale - )); - var mathAbs = Math.abs; - function addSubtract$1(duration, input, value, direction) { - var other = createDuration(input, value); - return ( - (duration._milliseconds += direction * other._milliseconds), - (duration._days += direction * other._days), - (duration._months += direction * other._months), - duration._bubble() - ); - } - function absCeil(number) { - return number < 0 ? Math.floor(number) : Math.ceil(number); - } - function daysToMonths(days) { - return 4800 * days / 146097; - } - function monthsToDays(months) { - return 146097 * months / 4800; - } - function makeAs(alias) { - return function() { - return this.as(alias); - }; - } - var asMilliseconds = makeAs('ms'), - asSeconds = makeAs('s'), - asMinutes = makeAs('m'), - asHours = makeAs('h'), - asDays = makeAs('d'), - asWeeks = makeAs('w'), - asMonths = makeAs('M'), - asYears = makeAs('y'); - function makeGetter(name) { - return function() { - return this.isValid() ? this._data[name] : NaN; - }; - } - var milliseconds = makeGetter('milliseconds'), - seconds = makeGetter('seconds'), - minutes = makeGetter('minutes'), - hours = makeGetter('hours'), - days = makeGetter('days'), - months = makeGetter('months'), - years = makeGetter('years'); - var round = Math.round, - thresholds = { ss: 44, s: 45, m: 45, h: 22, d: 26, M: 11 }; - var abs$1 = Math.abs; - function sign(x) { - return (x > 0) - (x < 0) || +x; - } - function toISOString$1() { - if (!this.isValid()) return this.localeData().invalidDate(); - var minutes, - hours, - seconds = abs$1(this._milliseconds) / 1e3, - days = abs$1(this._days), - months = abs$1(this._months); - (hours = absFloor((minutes = absFloor(seconds / 60)) / 60)), - (seconds %= 60), - (minutes %= 60); - var Y = absFloor(months / 12), - M = (months %= 12), - D = days, - h = hours, - m = minutes, - s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '', - total = this.asSeconds(); - if (!total) return 'P0D'; - var totalSign = total < 0 ? '-' : '', - ymSign = sign(this._months) !== sign(total) ? '-' : '', - daysSign = sign(this._days) !== sign(total) ? '-' : '', - hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : ''; - return ( - totalSign + - 'P' + - (Y ? ymSign + Y + 'Y' : '') + - (M ? ymSign + M + 'M' : '') + - (D ? daysSign + D + 'D' : '') + - (h || m || s ? 'T' : '') + - (h ? hmsSign + h + 'H' : '') + - (m ? hmsSign + m + 'M' : '') + - (s ? hmsSign + s + 'S' : '') - ); - } - var proto$2 = Duration.prototype; - return ( - (proto$2.isValid = function isValid$1() { - return this._isValid; - }), - (proto$2.abs = function abs() { - var data = this._data; - return ( - (this._milliseconds = mathAbs(this._milliseconds)), - (this._days = mathAbs(this._days)), - (this._months = mathAbs(this._months)), - (data.milliseconds = mathAbs(data.milliseconds)), - (data.seconds = mathAbs(data.seconds)), - (data.minutes = mathAbs(data.minutes)), - (data.hours = mathAbs(data.hours)), - (data.months = mathAbs(data.months)), - (data.years = mathAbs(data.years)), - this - ); - }), - (proto$2.add = function add$1(input, value) { - return addSubtract$1(this, input, value, 1); - }), - (proto$2.subtract = function subtract$1(input, value) { - return addSubtract$1(this, input, value, -1); - }), - (proto$2.as = function as(units) { - if (!this.isValid()) return NaN; - var days, - months, - milliseconds = this._milliseconds; - if ('month' === (units = normalizeUnits(units)) || 'year' === units) - return ( - (days = this._days + milliseconds / 864e5), - (months = this._months + daysToMonths(days)), - 'month' === units ? months : months / 12 - ); - switch (((days = this._days + Math.round(monthsToDays(this._months))), units)) { - case 'week': - return days / 7 + milliseconds / 6048e5; - case 'day': - return days + milliseconds / 864e5; - case 'hour': - return 24 * days + milliseconds / 36e5; - case 'minute': - return 1440 * days + milliseconds / 6e4; - case 'second': - return 86400 * days + milliseconds / 1e3; - case 'millisecond': - return Math.floor(864e5 * days) + milliseconds; - default: - throw new Error('Unknown unit ' + units); - } - }), - (proto$2.asMilliseconds = asMilliseconds), - (proto$2.asSeconds = asSeconds), - (proto$2.asMinutes = asMinutes), - (proto$2.asHours = asHours), - (proto$2.asDays = asDays), - (proto$2.asWeeks = asWeeks), - (proto$2.asMonths = asMonths), - (proto$2.asYears = asYears), - (proto$2.valueOf = function valueOf$1() { - return this.isValid() - ? this._milliseconds + - 864e5 * this._days + - (this._months % 12) * 2592e6 + - 31536e6 * toInt(this._months / 12) - : NaN; - }), - (proto$2._bubble = function bubble() { - var seconds, - minutes, - hours, - years, - monthsFromDays, - milliseconds = this._milliseconds, - days = this._days, - months = this._months, - data = this._data; - return ( - (milliseconds >= 0 && days >= 0 && months >= 0) || - (milliseconds <= 0 && days <= 0 && months <= 0) || - ((milliseconds += 864e5 * absCeil(monthsToDays(months) + days)), - (days = 0), - (months = 0)), - (data.milliseconds = milliseconds % 1e3), - (seconds = absFloor(milliseconds / 1e3)), - (data.seconds = seconds % 60), - (minutes = absFloor(seconds / 60)), - (data.minutes = minutes % 60), - (hours = absFloor(minutes / 60)), - (data.hours = hours % 24), - (months += monthsFromDays = absFloor(daysToMonths((days += absFloor(hours / 24))))), - (days -= absCeil(monthsToDays(monthsFromDays))), - (years = absFloor(months / 12)), - (months %= 12), - (data.days = days), - (data.months = months), - (data.years = years), - this - ); - }), - (proto$2.clone = function clone$1() { - return createDuration(this); - }), - (proto$2.get = function get$2(units) { - return (units = normalizeUnits(units)), this.isValid() ? this[units + 's']() : NaN; - }), - (proto$2.milliseconds = milliseconds), - (proto$2.seconds = seconds), - (proto$2.minutes = minutes), - (proto$2.hours = hours), - (proto$2.days = days), - (proto$2.weeks = function weeks() { - return absFloor(this.days() / 7); - }), - (proto$2.months = months), - (proto$2.years = years), - (proto$2.humanize = function humanize(withSuffix) { - if (!this.isValid()) return this.localeData().invalidDate(); - var locale = this.localeData(), - output = (function relativeTime$1(posNegDuration, withoutSuffix, locale) { - var duration = createDuration(posNegDuration).abs(), - seconds = round(duration.as('s')), - minutes = round(duration.as('m')), - hours = round(duration.as('h')), - days = round(duration.as('d')), - months = round(duration.as('M')), - years = round(duration.as('y')), - a = (seconds <= thresholds.ss && ['s', seconds]) || - (seconds < thresholds.s && ['ss', seconds]) || - (minutes <= 1 && ['m']) || - (minutes < thresholds.m && ['mm', minutes]) || - (hours <= 1 && ['h']) || - (hours < thresholds.h && ['hh', hours]) || - (days <= 1 && ['d']) || - (days < thresholds.d && ['dd', days]) || - (months <= 1 && ['M']) || - (months < thresholds.M && ['MM', months]) || - (years <= 1 && ['y']) || ['yy', years]; - return ( - (a[2] = withoutSuffix), - (a[3] = +posNegDuration > 0), - (a[4] = locale), - function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) { - return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture); - }.apply(null, a) - ); - })(this, !withSuffix, locale); - return ( - withSuffix && (output = locale.pastFuture(+this, output)), locale.postformat(output) - ); - }), - (proto$2.toISOString = toISOString$1), - (proto$2.toString = toISOString$1), - (proto$2.toJSON = toISOString$1), - (proto$2.locale = locale), - (proto$2.localeData = localeData), - (proto$2.toIsoString = deprecate( - 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', - toISOString$1 - )), - (proto$2.lang = lang), - addFormatToken('X', 0, 0, 'unix'), - addFormatToken('x', 0, 0, 'valueOf'), - addRegexToken('x', matchSigned), - addRegexToken('X', /[+-]?\d+(\.\d{1,3})?/), - addParseToken('X', function(input, array, config) { - config._d = new Date(1e3 * parseFloat(input, 10)); - }), - addParseToken('x', function(input, array, config) { - config._d = new Date(toInt(input)); - }), - (hooks.version = '2.20.1'), - (function setHookCallback(callback) { - hookCallback = callback; - })(createLocal), - (hooks.fn = proto), - (hooks.min = function min() { - return pickBy('isBefore', [].slice.call(arguments, 0)); - }), - (hooks.max = function max() { - return pickBy('isAfter', [].slice.call(arguments, 0)); - }), - (hooks.now = function() { - return Date.now ? Date.now() : +new Date(); - }), - (hooks.utc = createUTC), - (hooks.unix = function createUnix(input) { - return createLocal(1e3 * input); - }), - (hooks.months = function listMonths(format, index) { - return listMonthsImpl(format, index, 'months'); - }), - (hooks.isDate = isDate), - (hooks.locale = getSetGlobalLocale), - (hooks.invalid = createInvalid), - (hooks.duration = createDuration), - (hooks.isMoment = isMoment), - (hooks.weekdays = function listWeekdays(localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdays'); - }), - (hooks.parseZone = function createInZone() { - return createLocal.apply(null, arguments).parseZone(); - }), - (hooks.localeData = getLocale), - (hooks.isDuration = isDuration), - (hooks.monthsShort = function listMonthsShort(format, index) { - return listMonthsImpl(format, index, 'monthsShort'); - }), - (hooks.weekdaysMin = function listWeekdaysMin(localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin'); - }), - (hooks.defineLocale = defineLocale), - (hooks.updateLocale = function updateLocale(name, config) { - if (null != config) { - var locale, - tmpLocale, - parentConfig = baseConfig; - null != (tmpLocale = loadLocale(name)) && (parentConfig = tmpLocale._config), - ((locale = new Locale((config = mergeConfigs(parentConfig, config)))).parentLocale = - locales[name]), - (locales[name] = locale), - getSetGlobalLocale(name); - } else - null != locales[name] && - (null != locales[name].parentLocale - ? (locales[name] = locales[name].parentLocale) - : null != locales[name] && delete locales[name]); - return locales[name]; - }), - (hooks.locales = function listLocales() { - return keys(locales); - }), - (hooks.weekdaysShort = function listWeekdaysShort(localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort'); - }), - (hooks.normalizeUnits = normalizeUnits), - (hooks.relativeTimeRounding = function getSetRelativeTimeRounding(roundingFunction) { - return void 0 === roundingFunction - ? round - : 'function' == typeof roundingFunction && ((round = roundingFunction), !0); - }), - (hooks.relativeTimeThreshold = function getSetRelativeTimeThreshold(threshold, limit) { - return ( - void 0 !== thresholds[threshold] && - (void 0 === limit - ? thresholds[threshold] - : ((thresholds[threshold] = limit), - 's' === threshold && (thresholds.ss = limit - 1), - !0)) - ); - }), - (hooks.calendarFormat = function getCalendarFormat(myMoment, now) { - var diff = myMoment.diff(now, 'days', !0); - return diff < -6 - ? 'sameElse' - : diff < -1 - ? 'lastWeek' - : diff < 0 - ? 'lastDay' - : diff < 1 - ? 'sameDay' - : diff < 2 ? 'nextDay' : diff < 7 ? 'nextWeek' : 'sameElse'; - }), - (hooks.prototype = proto), - (hooks.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: 'YYYY-[W]WW', - MONTH: 'YYYY-MM' - }), - hooks - ); - }), - (module.exports = factory()); - }.call(exports, __webpack_require__(118)(module))); - }, - function(module, exports, __webpack_require__) { - module.exports = __webpack_require__(424)(); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var validateFormat = function validateFormat(format) {}; - module.exports = function invariant(condition, format, a, b, c, d, e, f) { - if ((validateFormat(format), !condition)) { - var error; - if (void 0 === format) - error = new Error( - 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.' - ); - else { - var args = [a, b, c, d, e, f], - argIndex = 0; - (error = new Error( - format.replace(/%s/g, function() { - return args[argIndex++]; - }) - )).name = - 'Invariant Violation'; - } - throw ((error.framesToPop = 1), error); - } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - (exports.__esModule = !0), - (exports.default = function(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = !0; - var _defineProperty2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(115)); - exports.default = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - (0, _defineProperty2.default)(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var warning = __webpack_require__(22); - module.exports = warning; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function reactProdInvariant(code) { - for ( - var argCount = arguments.length - 1, - message = - 'Minified React error #' + - code + - '; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=' + - code, - argIdx = 0; - argIdx < argCount; - argIdx++ - ) - message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]); - message += - ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.'; - var error = new Error(message); - throw ((error.name = 'Invariant Violation'), (error.framesToPop = 1), error); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = !0; - var _assign2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(86)); - exports.default = - _assign2.default || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var getOwnPropertySymbols = Object.getOwnPropertySymbols, - hasOwnProperty = Object.prototype.hasOwnProperty, - propIsEnumerable = Object.prototype.propertyIsEnumerable; - module.exports = (function shouldUseNative() { - try { - if (!Object.assign) return !1; - var test1 = new String('abc'); - if (((test1[5] = 'de'), '5' === Object.getOwnPropertyNames(test1)[0])) return !1; - for (var test2 = {}, i = 0; i < 10; i++) test2['_' + String.fromCharCode(i)] = i; - if ( - '0123456789' !== - Object.getOwnPropertyNames(test2) - .map(function(n) { - return test2[n]; - }) - .join('') - ) - return !1; - var test3 = {}; - return ( - 'abcdefghijklmnopqrst'.split('').forEach(function(letter) { - test3[letter] = letter; - }), - 'abcdefghijklmnopqrst' === Object.keys(Object.assign({}, test3)).join('') - ); - } catch (err) { - return !1; - } - })() - ? Object.assign - : function(target, source) { - for ( - var from, - symbols, - to = (function toObject(val) { - if (null === val || void 0 === val) - throw new TypeError('Object.assign cannot be called with null or undefined'); - return Object(val); - })(target), - s = 1; - s < arguments.length; - s++ - ) { - from = Object(arguments[s]); - for (var key in from) hasOwnProperty.call(from, key) && (to[key] = from[key]); - if (getOwnPropertySymbols) { - symbols = getOwnPropertySymbols(from); - for (var i = 0; i < symbols.length; i++) - propIsEnumerable.call(from, symbols[i]) && (to[symbols[i]] = from[symbols[i]]); - } - } - return to; - }; - }, - function(module, exports) { - var core = (module.exports = { version: '2.5.3' }); - 'number' == typeof __e && (__e = core); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = !0; - var _typeof3 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(21)); - exports.default = function(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || - ('object' !== (void 0 === call ? 'undefined' : (0, _typeof3.default)(call)) && - 'function' != typeof call) - ? self - : call; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = !0; - var _setPrototypeOf2 = _interopRequireDefault(__webpack_require__(278)), - _create2 = _interopRequireDefault(__webpack_require__(279)), - _typeof3 = _interopRequireDefault(__webpack_require__(21)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - exports.default = function(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - (void 0 === superClass ? 'undefined' : (0, _typeof3.default)(superClass)) - ); - (subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { - constructor: { value: subClass, enumerable: !1, writable: !0, configurable: !0 } - })), - superClass && - (_setPrototypeOf2.default - ? (0, _setPrototypeOf2.default)(subClass, superClass) - : (subClass.__proto__ = superClass)); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - DOMProperty = __webpack_require__(60), - ReactDOMComponentFlags = __webpack_require__(234), - ATTR_NAME = (__webpack_require__(3), DOMProperty.ID_ATTRIBUTE_NAME), - Flags = ReactDOMComponentFlags, - internalInstanceKey = - '__reactInternalInstance$' + - Math.random() - .toString(36) - .slice(2); - function shouldPrecacheNode(node, nodeID) { - return ( - (1 === node.nodeType && node.getAttribute(ATTR_NAME) === String(nodeID)) || - (8 === node.nodeType && node.nodeValue === ' react-text: ' + nodeID + ' ') || - (8 === node.nodeType && node.nodeValue === ' react-empty: ' + nodeID + ' ') - ); - } - function getRenderedHostOrTextFromComponent(component) { - for (var rendered; (rendered = component._renderedComponent); ) component = rendered; - return component; - } - function precacheNode(inst, node) { - var hostInst = getRenderedHostOrTextFromComponent(inst); - (hostInst._hostNode = node), (node[internalInstanceKey] = hostInst); - } - function precacheChildNodes(inst, node) { - if (!(inst._flags & Flags.hasCachedChildNodes)) { - var children = inst._renderedChildren, - childNode = node.firstChild; - outer: for (var name in children) - if (children.hasOwnProperty(name)) { - var childInst = children[name], - childID = getRenderedHostOrTextFromComponent(childInst)._domID; - if (0 !== childID) { - for (; null !== childNode; childNode = childNode.nextSibling) - if (shouldPrecacheNode(childNode, childID)) { - precacheNode(childInst, childNode); - continue outer; - } - _prodInvariant('32', childID); - } - } - inst._flags |= Flags.hasCachedChildNodes; - } - } - function getClosestInstanceFromNode(node) { - if (node[internalInstanceKey]) return node[internalInstanceKey]; - for (var closest, inst, parents = []; !node[internalInstanceKey]; ) { - if ((parents.push(node), !node.parentNode)) return null; - node = node.parentNode; - } - for (; node && (inst = node[internalInstanceKey]); node = parents.pop()) - (closest = inst), parents.length && precacheChildNodes(inst, node); - return closest; - } - var ReactDOMComponentTree = { - getClosestInstanceFromNode: getClosestInstanceFromNode, - getInstanceFromNode: function getInstanceFromNode(node) { - var inst = getClosestInstanceFromNode(node); - return null != inst && inst._hostNode === node ? inst : null; - }, - getNodeFromInstance: function getNodeFromInstance(inst) { - if ((void 0 === inst._hostNode && _prodInvariant('33'), inst._hostNode)) - return inst._hostNode; - for (var parents = []; !inst._hostNode; ) - parents.push(inst), inst._hostParent || _prodInvariant('34'), (inst = inst._hostParent); - for (; parents.length; inst = parents.pop()) precacheChildNodes(inst, inst._hostNode); - return inst._hostNode; - }, - precacheChildNodes: precacheChildNodes, - precacheNode: precacheNode, - uncacheNode: function uncacheNode(inst) { - var node = inst._hostNode; - node && (delete node[internalInstanceKey], (inst._hostNode = null)); - } - }; - module.exports = ReactDOMComponentTree; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.ReactCSS = exports.loop = exports.handleActive = exports.handleHover = exports.hover = void 0); - var _flattenNames2 = _interopRequireDefault(__webpack_require__(959)), - _mergeClasses2 = _interopRequireDefault(__webpack_require__(1032)), - _autoprefix2 = _interopRequireDefault(__webpack_require__(1057)), - _hover3 = _interopRequireDefault(__webpack_require__(1058)), - _active2 = _interopRequireDefault(__webpack_require__(1059)), - _loop3 = _interopRequireDefault(__webpack_require__(1060)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - (exports.hover = _hover3.default), - (exports.handleHover = _hover3.default), - (exports.handleActive = _active2.default), - (exports.loop = _loop3.default); - var ReactCSS = (exports.ReactCSS = function ReactCSS(classes) { - for ( - var _len = arguments.length, activations = Array(_len > 1 ? _len - 1 : 0), _key = 1; - _key < _len; - _key++ - ) - activations[_key - 1] = arguments[_key]; - var activeNames = (0, _flattenNames2.default)(activations), - merged = (0, _mergeClasses2.default)(classes, activeNames); - return (0, _autoprefix2.default)(merged); - }); - exports.default = ReactCSS; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(406), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - var global = __webpack_require__(17), - core = __webpack_require__(10), - ctx = __webpack_require__(35), - hide = __webpack_require__(42), - $export = function(type, name, source) { - var key, - own, - out, - IS_FORCED = type & $export.F, - IS_GLOBAL = type & $export.G, - IS_STATIC = type & $export.S, - IS_PROTO = type & $export.P, - IS_BIND = type & $export.B, - IS_WRAP = type & $export.W, - exports = IS_GLOBAL ? core : core[name] || (core[name] = {}), - expProto = exports.prototype, - target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {}).prototype; - IS_GLOBAL && (source = name); - for (key in source) - ((own = !IS_FORCED && target && void 0 !== target[key]) && key in exports) || - ((out = own ? target[key] : source[key]), - (exports[key] = - IS_GLOBAL && 'function' != typeof target[key] - ? source[key] - : IS_BIND && own - ? ctx(out, global) - : IS_WRAP && target[key] == out - ? (function(C) { - var F = function(a, b, c) { - if (this instanceof C) { - switch (arguments.length) { - case 0: - return new C(); - case 1: - return new C(a); - case 2: - return new C(a, b); - } - return new C(a, b, c); - } - return C.apply(this, arguments); - }; - return (F.prototype = C.prototype), F; - })(out) - : IS_PROTO && 'function' == typeof out ? ctx(Function.call, out) : out), - IS_PROTO && - (((exports.virtual || (exports.virtual = {}))[key] = out), - type & $export.R && expProto && !expProto[key] && hide(expProto, key, out))); - }; - ($export.F = 1), - ($export.G = 2), - ($export.S = 4), - ($export.P = 8), - ($export.B = 16), - ($export.W = 32), - ($export.U = 64), - ($export.R = 128), - (module.exports = $export); - }, - function(module, exports) { - var global = (module.exports = - 'undefined' != typeof window && window.Math == Math - ? window - : 'undefined' != typeof self && self.Math == Math ? self : Function('return this')()); - 'number' == typeof __g && (__g = global); - }, - function(module, exports, __webpack_require__) { - var store = __webpack_require__(141)('wks'), - uid = __webpack_require__(95), - Symbol = __webpack_require__(17).Symbol, - USE_SYMBOL = 'function' == typeof Symbol; - (module.exports = function(name) { - return ( - store[name] || - (store[name] = - (USE_SYMBOL && Symbol[name]) || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)) - ); - }).store = store; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var canUseDOM = !( - 'undefined' == typeof window || - !window.document || - !window.document.createElement - ), - ExecutionEnvironment = { - canUseDOM: canUseDOM, - canUseWorkers: 'undefined' != typeof Worker, - canUseEventListeners: canUseDOM && !(!window.addEventListener && !window.attachEvent), - canUseViewport: canUseDOM && !!window.screen, - isInWorker: !canUseDOM - }; - module.exports = ExecutionEnvironment; - }, - function(module, exports) { - module.exports = function(it) { - return 'object' == typeof it ? null !== it : 'function' == typeof it; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = !0; - var _iterator2 = _interopRequireDefault(__webpack_require__(275)), - _symbol2 = _interopRequireDefault(__webpack_require__(185)), - _typeof = - 'function' == typeof _symbol2.default && 'symbol' == typeof _iterator2.default - ? function(obj) { - return typeof obj; - } - : function(obj) { - return obj && - 'function' == typeof _symbol2.default && - obj.constructor === _symbol2.default && - obj !== _symbol2.default.prototype - ? 'symbol' - : typeof obj; - }; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - exports.default = - 'function' == typeof _symbol2.default && 'symbol' === _typeof(_iterator2.default) - ? function(obj) { - return void 0 === obj ? 'undefined' : _typeof(obj); - } - : function(obj) { - return obj && - 'function' == typeof _symbol2.default && - obj.constructor === _symbol2.default && - obj !== _symbol2.default.prototype - ? 'symbol' - : void 0 === obj ? 'undefined' : _typeof(obj); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - function makeEmptyFunction(arg) { - return function() { - return arg; - }; - } - var emptyFunction = function emptyFunction() {}; - (emptyFunction.thatReturns = makeEmptyFunction), - (emptyFunction.thatReturnsFalse = makeEmptyFunction(!1)), - (emptyFunction.thatReturnsTrue = makeEmptyFunction(!0)), - (emptyFunction.thatReturnsNull = makeEmptyFunction(null)), - (emptyFunction.thatReturnsThis = function() { - return this; - }), - (emptyFunction.thatReturnsArgument = function(arg) { - return arg; - }), - (module.exports = emptyFunction); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _Alpha = __webpack_require__(1061); - Object.defineProperty(exports, 'Alpha', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_Alpha).default; - } - }); - var _Checkboard = __webpack_require__(673); - Object.defineProperty(exports, 'Checkboard', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_Checkboard).default; - } - }); - var _EditableInput = __webpack_require__(1064); - Object.defineProperty(exports, 'EditableInput', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_EditableInput).default; - } - }); - var _Hue = __webpack_require__(1065); - Object.defineProperty(exports, 'Hue', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_Hue).default; - } - }); - var _Raised = __webpack_require__(1067); - Object.defineProperty(exports, 'Raised', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_Raised).default; - } - }); - var _Saturation = __webpack_require__(1068); - Object.defineProperty(exports, 'Saturation', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_Saturation).default; - } - }); - var _ColorWrap = __webpack_require__(675); - Object.defineProperty(exports, 'ColorWrap', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_ColorWrap).default; - } - }); - var _Swatch = __webpack_require__(1076); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - Object.defineProperty(exports, 'Swatch', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_Swatch).default; - } - }); - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(20); - module.exports = function(it) { - if (!isObject(it)) throw TypeError(it + ' is not an object!'); - return it; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var debugTool = null; - module.exports = { debugTool: debugTool }; - }, - function(module, exports, __webpack_require__) { - var anObject = __webpack_require__(24), - IE8_DOM_DEFINE = __webpack_require__(217), - toPrimitive = __webpack_require__(144), - dP = Object.defineProperty; - exports.f = __webpack_require__(29) - ? Object.defineProperty - : function defineProperty(O, P, Attributes) { - if ((anObject(O), (P = toPrimitive(P, !0)), anObject(Attributes), IE8_DOM_DEFINE)) - try { - return dP(O, P, Attributes); - } catch (e) {} - if ('get' in Attributes || 'set' in Attributes) - throw TypeError('Accessors not supported!'); - return 'value' in Attributes && (O[P] = Attributes.value), O; - }; - }, - function(module, exports) { - var g; - g = (function() { - return this; - })(); - try { - g = g || Function('return this')() || (0, eval)('this'); - } catch (e) { - 'object' == typeof window && (g = window); - } - module.exports = g; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var keys = __webpack_require__(338), - foreach = __webpack_require__(340), - hasSymbols = 'function' == typeof Symbol && 'symbol' == typeof Symbol(), - toStr = Object.prototype.toString, - supportsDescriptors = - Object.defineProperty && - (function() { - var obj = {}; - try { - Object.defineProperty(obj, 'x', { enumerable: !1, value: obj }); - for (var _ in obj) return !1; - return obj.x === obj; - } catch (e) { - return !1; - } - })(), - defineProperty = function(object, name, value, predicate) { - var fn; - (name in object && - ('function' != typeof (fn = predicate) || - '[object Function]' !== toStr.call(fn) || - !predicate())) || - (supportsDescriptors - ? Object.defineProperty(object, name, { - configurable: !0, - enumerable: !1, - value: value, - writable: !0 - }) - : (object[name] = value)); - }, - defineProperties = function(object, map) { - var predicates = arguments.length > 2 ? arguments[2] : {}, - props = keys(map); - hasSymbols && (props = props.concat(Object.getOwnPropertySymbols(map))), - foreach(props, function(name) { - defineProperty(object, name, map[name], predicates[name]); - }); - }; - (defineProperties.supportsDescriptors = !!supportsDescriptors), - (module.exports = defineProperties); - }, - function(module, exports, __webpack_require__) { - module.exports = !__webpack_require__(43)(function() { - return ( - 7 != - Object.defineProperty({}, 'a', { - get: function() { - return 7; - } - }).a - ); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - _assign = __webpack_require__(9), - CallbackQueue = __webpack_require__(238), - PooledClass = __webpack_require__(47), - ReactFeatureFlags = __webpack_require__(239), - ReactReconciler = __webpack_require__(61), - Transaction = __webpack_require__(98), - invariant = __webpack_require__(3), - dirtyComponents = [], - updateBatchNumber = 0, - asapCallbackQueue = CallbackQueue.getPooled(), - asapEnqueued = !1, - batchingStrategy = null; - function ensureInjected() { - (ReactUpdates.ReactReconcileTransaction && batchingStrategy) || _prodInvariant('123'); - } - var TRANSACTION_WRAPPERS = [ - { - initialize: function() { - this.dirtyComponentsLength = dirtyComponents.length; - }, - close: function() { - this.dirtyComponentsLength !== dirtyComponents.length - ? (dirtyComponents.splice(0, this.dirtyComponentsLength), flushBatchedUpdates()) - : (dirtyComponents.length = 0); - } - }, - { - initialize: function() { - this.callbackQueue.reset(); - }, - close: function() { - this.callbackQueue.notifyAll(); - } - } - ]; - function ReactUpdatesFlushTransaction() { - this.reinitializeTransaction(), - (this.dirtyComponentsLength = null), - (this.callbackQueue = CallbackQueue.getPooled()), - (this.reconcileTransaction = ReactUpdates.ReactReconcileTransaction.getPooled(!0)); - } - function mountOrderComparator(c1, c2) { - return c1._mountOrder - c2._mountOrder; - } - function runBatchedUpdates(transaction) { - var len = transaction.dirtyComponentsLength; - len !== dirtyComponents.length && _prodInvariant('124', len, dirtyComponents.length), - dirtyComponents.sort(mountOrderComparator), - updateBatchNumber++; - for (var i = 0; i < len; i++) { - var markerName, - component = dirtyComponents[i], - callbacks = component._pendingCallbacks; - if (((component._pendingCallbacks = null), ReactFeatureFlags.logTopLevelRenders)) { - var namedComponent = component; - component._currentElement.type.isReactTopLevelWrapper && - (namedComponent = component._renderedComponent), - (markerName = 'React update: ' + namedComponent.getName()), - console.time(markerName); - } - if ( - (ReactReconciler.performUpdateIfNecessary( - component, - transaction.reconcileTransaction, - updateBatchNumber - ), - markerName && console.timeEnd(markerName), - callbacks) - ) - for (var j = 0; j < callbacks.length; j++) - transaction.callbackQueue.enqueue(callbacks[j], component.getPublicInstance()); - } - } - _assign(ReactUpdatesFlushTransaction.prototype, Transaction, { - getTransactionWrappers: function() { - return TRANSACTION_WRAPPERS; - }, - destructor: function() { - (this.dirtyComponentsLength = null), - CallbackQueue.release(this.callbackQueue), - (this.callbackQueue = null), - ReactUpdates.ReactReconcileTransaction.release(this.reconcileTransaction), - (this.reconcileTransaction = null); - }, - perform: function(method, scope, a) { - return Transaction.perform.call( - this, - this.reconcileTransaction.perform, - this.reconcileTransaction, - method, - scope, - a - ); - } - }), - PooledClass.addPoolingTo(ReactUpdatesFlushTransaction); - var flushBatchedUpdates = function() { - for (; dirtyComponents.length || asapEnqueued; ) { - if (dirtyComponents.length) { - var transaction = ReactUpdatesFlushTransaction.getPooled(); - transaction.perform(runBatchedUpdates, null, transaction), - ReactUpdatesFlushTransaction.release(transaction); - } - if (asapEnqueued) { - asapEnqueued = !1; - var queue = asapCallbackQueue; - (asapCallbackQueue = CallbackQueue.getPooled()), - queue.notifyAll(), - CallbackQueue.release(queue); - } - } - }; - var ReactUpdates = { - ReactReconcileTransaction: null, - batchedUpdates: function batchedUpdates(callback, a, b, c, d, e) { - return ensureInjected(), batchingStrategy.batchedUpdates(callback, a, b, c, d, e); - }, - enqueueUpdate: function enqueueUpdate(component) { - ensureInjected(), - batchingStrategy.isBatchingUpdates - ? (dirtyComponents.push(component), - null == component._updateBatchNumber && - (component._updateBatchNumber = updateBatchNumber + 1)) - : batchingStrategy.batchedUpdates(enqueueUpdate, component); - }, - flushBatchedUpdates: flushBatchedUpdates, - injection: { - injectReconcileTransaction: function(ReconcileTransaction) { - ReconcileTransaction || _prodInvariant('126'), - (ReactUpdates.ReactReconcileTransaction = ReconcileTransaction); - }, - injectBatchingStrategy: function(_batchingStrategy) { - _batchingStrategy || _prodInvariant('127'), - 'function' != typeof _batchingStrategy.batchedUpdates && _prodInvariant('128'), - 'boolean' != typeof _batchingStrategy.isBatchingUpdates && _prodInvariant('129'), - (batchingStrategy = _batchingStrategy); - } - }, - asap: function asap(callback, context) { - invariant( - batchingStrategy.isBatchingUpdates, - "ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched." - ), - asapCallbackQueue.enqueue(callback, context), - (asapEnqueued = !0); - } - }; - module.exports = ReactUpdates; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = !0; - var _defineProperty2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(115)); - exports.default = function(obj, key, value) { - return ( - key in obj - ? (0, _defineProperty2.default)(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (obj[key] = value), - obj - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = { current: null }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - PooledClass = __webpack_require__(47), - emptyFunction = __webpack_require__(22), - shouldBeReleasedProperties = (__webpack_require__(6), - [ - 'dispatchConfig', - '_targetInst', - 'nativeEvent', - 'isDefaultPrevented', - 'isPropagationStopped', - '_dispatchListeners', - '_dispatchInstances' - ]), - EventInterface = { - type: null, - target: null, - currentTarget: emptyFunction.thatReturnsNull, - eventPhase: null, - bubbles: null, - cancelable: null, - timeStamp: function(event) { - return event.timeStamp || Date.now(); - }, - defaultPrevented: null, - isTrusted: null - }; - function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { - (this.dispatchConfig = dispatchConfig), - (this._targetInst = targetInst), - (this.nativeEvent = nativeEvent); - var Interface = this.constructor.Interface; - for (var propName in Interface) - if (Interface.hasOwnProperty(propName)) { - 0; - var normalize = Interface[propName]; - normalize - ? (this[propName] = normalize(nativeEvent)) - : 'target' === propName - ? (this.target = nativeEventTarget) - : (this[propName] = nativeEvent[propName]); - } - var defaultPrevented = - null != nativeEvent.defaultPrevented - ? nativeEvent.defaultPrevented - : !1 === nativeEvent.returnValue; - return ( - (this.isDefaultPrevented = defaultPrevented - ? emptyFunction.thatReturnsTrue - : emptyFunction.thatReturnsFalse), - (this.isPropagationStopped = emptyFunction.thatReturnsFalse), - this - ); - } - _assign(SyntheticEvent.prototype, { - preventDefault: function() { - this.defaultPrevented = !0; - var event = this.nativeEvent; - event && - (event.preventDefault - ? event.preventDefault() - : 'unknown' != typeof event.returnValue && (event.returnValue = !1), - (this.isDefaultPrevented = emptyFunction.thatReturnsTrue)); - }, - stopPropagation: function() { - var event = this.nativeEvent; - event && - (event.stopPropagation - ? event.stopPropagation() - : 'unknown' != typeof event.cancelBubble && (event.cancelBubble = !0), - (this.isPropagationStopped = emptyFunction.thatReturnsTrue)); - }, - persist: function() { - this.isPersistent = emptyFunction.thatReturnsTrue; - }, - isPersistent: emptyFunction.thatReturnsFalse, - destructor: function() { - var Interface = this.constructor.Interface; - for (var propName in Interface) this[propName] = null; - for (var i = 0; i < shouldBeReleasedProperties.length; i++) - this[shouldBeReleasedProperties[i]] = null; - } - }), - (SyntheticEvent.Interface = EventInterface), - (SyntheticEvent.augmentClass = function(Class, Interface) { - var E = function() {}; - E.prototype = this.prototype; - var prototype = new E(); - _assign(prototype, Class.prototype), - (Class.prototype = prototype), - (Class.prototype.constructor = Class), - (Class.Interface = _assign({}, this.Interface, Interface)), - (Class.augmentClass = this.augmentClass), - PooledClass.addPoolingTo(Class, PooledClass.fourArgumentPooler); - }), - PooledClass.addPoolingTo(SyntheticEvent, PooledClass.fourArgumentPooler), - (module.exports = SyntheticEvent); - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(395), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - var aFunction = __webpack_require__(74); - module.exports = function(fn, that, length) { - if ((aFunction(fn), void 0 === that)) return fn; - switch (length) { - case 1: - return function(a) { - return fn.call(that, a); - }; - case 2: - return function(a, b) { - return fn.call(that, a, b); - }; - case 3: - return function(a, b, c) { - return fn.call(that, a, b, c); - }; - } - return function() { - return fn.apply(that, arguments); - }; - }; - }, - function(module, exports) { - var global = (module.exports = - 'undefined' != typeof window && window.Math == Math - ? window - : 'undefined' != typeof self && self.Math == Math ? self : Function('return this')()); - 'number' == typeof __g && (__g = global); - }, - function(module, exports) { - var hasOwnProperty = {}.hasOwnProperty; - module.exports = function(it, key) { - return hasOwnProperty.call(it, key); - }; - }, - function(module, exports, __webpack_require__) { - var store = __webpack_require__(126)('wks'), - uid = __webpack_require__(69), - Symbol = __webpack_require__(36).Symbol, - USE_SYMBOL = 'function' == typeof Symbol; - (module.exports = function(name) { - return ( - store[name] || - (store[name] = - (USE_SYMBOL && Symbol[name]) || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)) - ); - }).store = store; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(343); - module.exports = Function.prototype.bind || implementation; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.AddonStore = void 0); - var _keys2 = _interopRequireDefault(__webpack_require__(34)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var AddonStore = (exports.AddonStore = (function() { - function AddonStore() { - (0, _classCallCheck3.default)(this, AddonStore), - (this.loaders = {}), - (this.panels = {}), - (this.channel = null), - (this.preview = null), - (this.database = null); - } - return ( - (0, _createClass3.default)(AddonStore, [ - { - key: 'getChannel', - value: function getChannel() { - if (!this.channel) - throw new Error( - 'Accessing nonexistent addons channel, see https://storybook.js.org/basics/faq/#why-is-there-no-addons-channel' - ); - return this.channel; - } - }, - { - key: 'setChannel', - value: function setChannel(channel) { - this.channel = channel; - } - }, - { - key: 'getPreview', - value: function getPreview() { - return this.preview; - } - }, - { - key: 'setPreview', - value: function setPreview(preview) { - this.preview = preview; - } - }, - { - key: 'getDatabase', - value: function getDatabase() { - return this.database; - } - }, - { - key: 'setDatabase', - value: function setDatabase(database) { - this.database = database; - } - }, - { - key: 'getPanels', - value: function getPanels() { - return this.panels; - } - }, - { - key: 'addPanel', - value: function addPanel(name, panel) { - this.panels[name] = panel; - } - }, - { - key: 'register', - value: function register(name, loader) { - this.loaders[name] = loader; - } - }, - { - key: 'loadAddons', - value: function loadAddons(api) { - var _this = this; - (0, _keys2.default)(this.loaders) - .map(function(name) { - return _this.loaders[name]; - }) - .forEach(function(loader) { - return loader(api); - }); - } - } - ]), - AddonStore - ); - })()); - exports.default = new AddonStore(); - }, - function(module, exports) { - var hasOwnProperty = {}.hasOwnProperty; - module.exports = function(it, key) { - return hasOwnProperty.call(it, key); - }; - }, - function(module, exports, __webpack_require__) { - var dP = __webpack_require__(26), - createDesc = __webpack_require__(75); - module.exports = __webpack_require__(29) - ? function(object, key, value) { - return dP.f(object, key, createDesc(1, value)); - } - : function(object, key, value) { - return (object[key] = value), object; - }; - }, - function(module, exports) { - module.exports = function(exec) { - try { - return !!exec(); - } catch (e) { - return !0; - } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _typeof3 = _interopRequireDefault(__webpack_require__(21)), - themes = (function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) return obj; - var newObj = {}; - if (null != obj) - for (var key in obj) - Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); - return (newObj.default = obj), newObj; - })(__webpack_require__(262)), - _base2 = _interopRequireDefault(__webpack_require__(575)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var styles = Object.keys(themes).reduce(function(styles, themeName) { - return (styles[themeName] = (0, _base2.default)(themes[themeName])), styles; - }, {}); - exports.default = function createStyles(key, theme) { - return 'string' == typeof theme - ? styles[theme][key] - : 'object' === (void 0 === theme ? 'undefined' : (0, _typeof3.default)(theme)) - ? (0, _base2.default)(theme)[key] - : styles.chromeLight[key]; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = !0; - var _from2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(281)); - exports.default = function(arr) { - if (Array.isArray(arr)) { - for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; - return arr2; - } - return (0, _from2.default)(arr); - }; - }, - function(module, exports, __webpack_require__) { - var IObject = __webpack_require__(138), - defined = __webpack_require__(137); - module.exports = function(it) { - return IObject(defined(it)); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - oneArgumentPooler = (__webpack_require__(3), - function(copyFieldsFrom) { - if (this.instancePool.length) { - var instance = this.instancePool.pop(); - return this.call(instance, copyFieldsFrom), instance; - } - return new this(copyFieldsFrom); - }), - standardReleaser = function(instance) { - instance instanceof this || _prodInvariant('25'), - instance.destructor(), - this.instancePool.length < this.poolSize && this.instancePool.push(instance); - }, - DEFAULT_POOLER = oneArgumentPooler, - PooledClass = { - addPoolingTo: function(CopyConstructor, pooler) { - var NewKlass = CopyConstructor; - return ( - (NewKlass.instancePool = []), - (NewKlass.getPooled = pooler || DEFAULT_POOLER), - NewKlass.poolSize || (NewKlass.poolSize = 10), - (NewKlass.release = standardReleaser), - NewKlass - ); - }, - oneArgumentPooler: oneArgumentPooler, - twoArgumentPooler: function(a1, a2) { - if (this.instancePool.length) { - var instance = this.instancePool.pop(); - return this.call(instance, a1, a2), instance; - } - return new this(a1, a2); - }, - threeArgumentPooler: function(a1, a2, a3) { - if (this.instancePool.length) { - var instance = this.instancePool.pop(); - return this.call(instance, a1, a2, a3), instance; - } - return new this(a1, a2, a3); - }, - fourArgumentPooler: function(a1, a2, a3, a4) { - if (this.instancePool.length) { - var instance = this.instancePool.pop(); - return this.call(instance, a1, a2, a3, a4), instance; - } - return new this(a1, a2, a3, a4); - } - }; - module.exports = PooledClass; - }, - , - , - function(module, exports, __webpack_require__) { - (function(global) { - var win; - (win = - 'undefined' != typeof window - ? window - : void 0 !== global ? global : 'undefined' != typeof self ? self : {}), - (module.exports = win); - }.call(exports, __webpack_require__(27))); - }, - function(module, exports, __webpack_require__) { - module.exports = !__webpack_require__(88)(function() { - return ( - 7 != - Object.defineProperty({}, 'a', { - get: function() { - return 7; - } - }).a - ); - }); - }, - function(module, exports, __webpack_require__) { - var dP = __webpack_require__(53), - createDesc = __webpack_require__(90); - module.exports = __webpack_require__(51) - ? function(object, key, value) { - return dP.f(object, key, createDesc(1, value)); - } - : function(object, key, value) { - return (object[key] = value), object; - }; - }, - function(module, exports, __webpack_require__) { - var anObject = __webpack_require__(89), - IE8_DOM_DEFINE = __webpack_require__(191), - toPrimitive = __webpack_require__(125), - dP = Object.defineProperty; - exports.f = __webpack_require__(51) - ? Object.defineProperty - : function defineProperty(O, P, Attributes) { - if ((anObject(O), (P = toPrimitive(P, !0)), anObject(Attributes), IE8_DOM_DEFINE)) - try { - return dP(O, P, Attributes); - } catch (e) {} - if ('get' in Attributes || 'set' in Attributes) - throw TypeError('Accessors not supported!'); - return 'value' in Attributes && (O[P] = Attributes.value), O; - }; - }, - function(module, exports, __webpack_require__) { - var IObject = __webpack_require__(312), - defined = __webpack_require__(195); - module.exports = function(it) { - return IObject(defined(it)); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = __webpack_require__(208); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - ReactBaseClasses = __webpack_require__(210), - ReactChildren = __webpack_require__(383), - ReactDOMFactories = __webpack_require__(388), - ReactElement = __webpack_require__(57), - ReactPropTypes = __webpack_require__(389), - ReactVersion = __webpack_require__(392), - createReactClass = __webpack_require__(393), - onlyChild = __webpack_require__(394), - createElement = ReactElement.createElement, - createFactory = ReactElement.createFactory, - cloneElement = ReactElement.cloneElement, - __spread = _assign, - createMixin = function(mixin) { - return mixin; - }, - React = { - Children: { - map: ReactChildren.map, - forEach: ReactChildren.forEach, - count: ReactChildren.count, - toArray: ReactChildren.toArray, - only: onlyChild - }, - Component: ReactBaseClasses.Component, - PureComponent: ReactBaseClasses.PureComponent, - createElement: createElement, - cloneElement: cloneElement, - isValidElement: ReactElement.isValidElement, - PropTypes: ReactPropTypes, - createClass: createReactClass, - createFactory: createFactory, - createMixin: createMixin, - DOM: ReactDOMFactories, - version: ReactVersion, - __spread: __spread - }; - module.exports = React; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - ReactCurrentOwner = __webpack_require__(32), - hasOwnProperty = (__webpack_require__(6), - __webpack_require__(212), - Object.prototype.hasOwnProperty), - REACT_ELEMENT_TYPE = __webpack_require__(213), - RESERVED_PROPS = { key: !0, ref: !0, __self: !0, __source: !0 }; - function hasValidRef(config) { - return void 0 !== config.ref; - } - function hasValidKey(config) { - return void 0 !== config.key; - } - var ReactElement = function(type, key, ref, self, source, owner, props) { - var element = { - $$typeof: REACT_ELEMENT_TYPE, - type: type, - key: key, - ref: ref, - props: props, - _owner: owner - }; - return element; - }; - (ReactElement.createElement = function(type, config, children) { - var propName, - props = {}, - key = null, - ref = null; - if (null != config) { - hasValidRef(config) && (ref = config.ref), - hasValidKey(config) && (key = '' + config.key), - void 0 === config.__self ? null : config.__self, - void 0 === config.__source ? null : config.__source; - for (propName in config) - hasOwnProperty.call(config, propName) && - !RESERVED_PROPS.hasOwnProperty(propName) && - (props[propName] = config[propName]); - } - var childrenLength = arguments.length - 2; - if (1 === childrenLength) props.children = children; - else if (childrenLength > 1) { - for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) - childArray[i] = arguments[i + 2]; - 0, (props.children = childArray); - } - if (type && type.defaultProps) { - var defaultProps = type.defaultProps; - for (propName in defaultProps) - void 0 === props[propName] && (props[propName] = defaultProps[propName]); - } - return ReactElement(type, key, ref, 0, 0, ReactCurrentOwner.current, props); - }), - (ReactElement.createFactory = function(type) { - var factory = ReactElement.createElement.bind(null, type); - return (factory.type = type), factory; - }), - (ReactElement.cloneAndReplaceKey = function(oldElement, newKey) { - return ReactElement( - oldElement.type, - newKey, - oldElement.ref, - oldElement._self, - oldElement._source, - oldElement._owner, - oldElement.props - ); - }), - (ReactElement.cloneElement = function(element, config, children) { - var propName, - props = _assign({}, element.props), - key = element.key, - ref = element.ref, - owner = (element._self, element._source, element._owner); - if (null != config) { - var defaultProps; - hasValidRef(config) && ((ref = config.ref), (owner = ReactCurrentOwner.current)), - hasValidKey(config) && (key = '' + config.key), - element.type && element.type.defaultProps && (defaultProps = element.type.defaultProps); - for (propName in config) - hasOwnProperty.call(config, propName) && - !RESERVED_PROPS.hasOwnProperty(propName) && - (void 0 === config[propName] && void 0 !== defaultProps - ? (props[propName] = defaultProps[propName]) - : (props[propName] = config[propName])); - } - var childrenLength = arguments.length - 2; - if (1 === childrenLength) props.children = children; - else if (childrenLength > 1) { - for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) - childArray[i] = arguments[i + 2]; - props.children = childArray; - } - return ReactElement(element.type, key, ref, 0, 0, owner, props); - }), - (ReactElement.isValidElement = function(object) { - return ( - 'object' == typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE - ); - }), - (module.exports = ReactElement); - }, - function(module, exports, __webpack_require__) { - var defined = __webpack_require__(137); - module.exports = function(it) { - return Object(defined(it)); - }; - }, - function(module, exports) { - module.exports = {}; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7); - __webpack_require__(3); - function checkMask(value, bitmask) { - return (value & bitmask) === bitmask; - } - var DOMPropertyInjection = { - MUST_USE_PROPERTY: 1, - HAS_BOOLEAN_VALUE: 4, - HAS_NUMERIC_VALUE: 8, - HAS_POSITIVE_NUMERIC_VALUE: 24, - HAS_OVERLOADED_BOOLEAN_VALUE: 32, - injectDOMPropertyConfig: function(domPropertyConfig) { - var Injection = DOMPropertyInjection, - Properties = domPropertyConfig.Properties || {}, - DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {}, - DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {}, - DOMPropertyNames = domPropertyConfig.DOMPropertyNames || {}, - DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {}; - domPropertyConfig.isCustomAttribute && - DOMProperty._isCustomAttributeFunctions.push(domPropertyConfig.isCustomAttribute); - for (var propName in Properties) { - DOMProperty.properties.hasOwnProperty(propName) && _prodInvariant('48', propName); - var lowerCased = propName.toLowerCase(), - propConfig = Properties[propName], - propertyInfo = { - attributeName: lowerCased, - attributeNamespace: null, - propertyName: propName, - mutationMethod: null, - mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY), - hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE), - hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE), - hasPositiveNumericValue: checkMask( - propConfig, - Injection.HAS_POSITIVE_NUMERIC_VALUE - ), - hasOverloadedBooleanValue: checkMask( - propConfig, - Injection.HAS_OVERLOADED_BOOLEAN_VALUE - ) - }; - if ( - (propertyInfo.hasBooleanValue + - propertyInfo.hasNumericValue + - propertyInfo.hasOverloadedBooleanValue <= - 1 || _prodInvariant('50', propName), - DOMAttributeNames.hasOwnProperty(propName)) - ) { - var attributeName = DOMAttributeNames[propName]; - propertyInfo.attributeName = attributeName; - } - DOMAttributeNamespaces.hasOwnProperty(propName) && - (propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName]), - DOMPropertyNames.hasOwnProperty(propName) && - (propertyInfo.propertyName = DOMPropertyNames[propName]), - DOMMutationMethods.hasOwnProperty(propName) && - (propertyInfo.mutationMethod = DOMMutationMethods[propName]), - (DOMProperty.properties[propName] = propertyInfo); - } - } - }, - ATTRIBUTE_NAME_START_CHAR = - ':A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD', - DOMProperty = { - ID_ATTRIBUTE_NAME: 'data-reactid', - ROOT_ATTRIBUTE_NAME: 'data-reactroot', - ATTRIBUTE_NAME_START_CHAR: ATTRIBUTE_NAME_START_CHAR, - ATTRIBUTE_NAME_CHAR: - ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040', - properties: {}, - getPossibleStandardName: null, - _isCustomAttributeFunctions: [], - isCustomAttribute: function(attributeName) { - for (var i = 0; i < DOMProperty._isCustomAttributeFunctions.length; i++) { - if ((0, DOMProperty._isCustomAttributeFunctions[i])(attributeName)) return !0; - } - return !1; - }, - injection: DOMPropertyInjection - }; - module.exports = DOMProperty; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactRef = __webpack_require__(448); - __webpack_require__(25), __webpack_require__(6); - function attachRefs() { - ReactRef.attachRefs(this, this._currentElement); - } - var ReactReconciler = { - mountComponent: function( - internalInstance, - transaction, - hostParent, - hostContainerInfo, - context, - parentDebugID - ) { - var markup = internalInstance.mountComponent( - transaction, - hostParent, - hostContainerInfo, - context, - parentDebugID - ); - return ( - internalInstance._currentElement && - null != internalInstance._currentElement.ref && - transaction.getReactMountReady().enqueue(attachRefs, internalInstance), - markup - ); - }, - getHostNode: function(internalInstance) { - return internalInstance.getHostNode(); - }, - unmountComponent: function(internalInstance, safely) { - ReactRef.detachRefs(internalInstance, internalInstance._currentElement), - internalInstance.unmountComponent(safely); - }, - receiveComponent: function(internalInstance, nextElement, transaction, context) { - var prevElement = internalInstance._currentElement; - if (nextElement !== prevElement || context !== internalInstance._context) { - 0; - var refsChanged = ReactRef.shouldUpdateRefs(prevElement, nextElement); - refsChanged && ReactRef.detachRefs(internalInstance, prevElement), - internalInstance.receiveComponent(nextElement, transaction, context), - refsChanged && - internalInstance._currentElement && - null != internalInstance._currentElement.ref && - transaction.getReactMountReady().enqueue(attachRefs, internalInstance); - } - }, - performUpdateIfNecessary: function(internalInstance, transaction, updateBatchNumber) { - internalInstance._updateBatchNumber === updateBatchNumber && - internalInstance.performUpdateIfNecessary(transaction); - } - }; - module.exports = ReactReconciler; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var DOMNamespaces = __webpack_require__(160), - setInnerHTML = __webpack_require__(100), - createMicrosoftUnsafeLocalFunction = __webpack_require__(161), - setTextContent = __webpack_require__(243), - enableLazy = - ('undefined' != typeof document && 'number' == typeof document.documentMode) || - ('undefined' != typeof navigator && - 'string' == typeof navigator.userAgent && - /\bEdge\/\d/.test(navigator.userAgent)); - function insertTreeChildren(tree) { - if (enableLazy) { - var node = tree.node, - children = tree.children; - if (children.length) - for (var i = 0; i < children.length; i++) insertTreeBefore(node, children[i], null); - else - null != tree.html - ? setInnerHTML(node, tree.html) - : null != tree.text && setTextContent(node, tree.text); - } - } - var insertTreeBefore = createMicrosoftUnsafeLocalFunction(function( - parentNode, - tree, - referenceNode - ) { - 11 === tree.node.nodeType || - (1 === tree.node.nodeType && - 'object' === tree.node.nodeName.toLowerCase() && - (null == tree.node.namespaceURI || tree.node.namespaceURI === DOMNamespaces.html)) - ? (insertTreeChildren(tree), parentNode.insertBefore(tree.node, referenceNode)) - : (parentNode.insertBefore(tree.node, referenceNode), insertTreeChildren(tree)); - }); - function toString() { - return this.node.nodeName; - } - function DOMLazyTree(node) { - return { node: node, children: [], html: null, text: null, toString: toString }; - } - (DOMLazyTree.insertTreeBefore = insertTreeBefore), - (DOMLazyTree.replaceChildWithTree = function replaceChildWithTree(oldNode, newTree) { - oldNode.parentNode.replaceChild(newTree.node, oldNode), insertTreeChildren(newTree); - }), - (DOMLazyTree.queueChild = function queueChild(parentTree, childTree) { - enableLazy - ? parentTree.children.push(childTree) - : parentTree.node.appendChild(childTree.node); - }), - (DOMLazyTree.queueHTML = function queueHTML(tree, html) { - enableLazy ? (tree.html = html) : setInnerHTML(tree.node, html); - }), - (DOMLazyTree.queueText = function queueText(tree, text) { - enableLazy ? (tree.text = text) : setTextContent(tree.node, text); - }), - (module.exports = DOMLazyTree); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var $at = __webpack_require__(409)(!0); - __webpack_require__(184)( - String, - 'String', - function(iterated) { - (this._t = String(iterated)), (this._i = 0); - }, - function() { - var point, - O = this._t, - index = this._i; - return index >= O.length - ? { value: void 0, done: !0 } - : ((point = $at(O, index)), (this._i += point.length), { value: point, done: !1 }); - } - ); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(411); - for ( - var global = __webpack_require__(17), - hide = __webpack_require__(42), - Iterators = __webpack_require__(59), - TO_STRING_TAG = __webpack_require__(18)('toStringTag'), - DOMIterables = 'CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList'.split( - ',' - ), - i = 0; - i < DOMIterables.length; - i++ - ) { - var NAME = DOMIterables[i], - Collection = global[NAME], - proto = Collection && Collection.prototype; - proto && !proto[TO_STRING_TAG] && hide(proto, TO_STRING_TAG, NAME), - (Iterators[NAME] = Iterators.Array); - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - (exports.__esModule = !0), - (exports.default = function(obj, keys) { - var target = {}; - for (var i in obj) - keys.indexOf(i) >= 0 || - (Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i])); - return target; - }); - }, - function(module, exports) { - var isArray = Array.isArray; - module.exports = isArray; - }, - function(module, exports) { - var core = (module.exports = { version: '2.5.3' }); - 'number' == typeof __e && (__e = core); - }, - function(module, exports) { - module.exports = function(it) { - return 'object' == typeof it ? null !== it : 'function' == typeof it; - }; - }, - function(module, exports) { - var id = 0, - px = Math.random(); - module.exports = function(key) { - return 'Symbol('.concat(void 0 === key ? '' : key, ')_', (++id + px).toString(36)); - }; - }, - function(module, exports, __webpack_require__) { - var bind = __webpack_require__(39); - module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function reactProdInvariant(code) { - for ( - var argCount = arguments.length - 1, - message = - 'Minified React error #' + - code + - '; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=' + - code, - argIdx = 0; - argIdx < argCount; - argIdx++ - ) - message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]); - message += - ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.'; - var error = new Error(message); - throw ((error.name = 'Invariant Violation'), (error.framesToPop = 1), error); - }; - }, - function(module, exports, __webpack_require__) { - var $keys = __webpack_require__(216), - enumBugKeys = __webpack_require__(142); - module.exports = - Object.keys || - function keys(O) { - return $keys(O, enumBugKeys); - }; - }, - function(module, exports) { - var toString = {}.toString; - module.exports = function(it) { - return toString.call(it).slice(8, -1); - }; - }, - function(module, exports) { - module.exports = function(it) { - if ('function' != typeof it) throw TypeError(it + ' is not a function!'); - return it; - }; - }, - function(module, exports) { - module.exports = function(bitmap, value) { - return { - enumerable: !(1 & bitmap), - configurable: !(2 & bitmap), - writable: !(4 & bitmap), - value: value - }; - }; - }, - function(module, exports, __webpack_require__) { - var def = __webpack_require__(26).f, - has = __webpack_require__(41), - TAG = __webpack_require__(18)('toStringTag'); - module.exports = function(it, tag, stat) { - it && - !has((it = stat ? it : it.prototype), TAG) && - def(it, TAG, { configurable: !0, value: tag }); - }; - }, - function(module, exports, __webpack_require__) { - var META = __webpack_require__(95)('meta'), - isObject = __webpack_require__(20), - has = __webpack_require__(41), - setDesc = __webpack_require__(26).f, - id = 0, - isExtensible = - Object.isExtensible || - function() { - return !0; - }, - FREEZE = !__webpack_require__(43)(function() { - return isExtensible(Object.preventExtensions({})); - }), - setMeta = function(it) { - setDesc(it, META, { value: { i: 'O' + ++id, w: {} } }); - }, - meta = (module.exports = { - KEY: META, - NEED: !1, - fastKey: function(it, create) { - if (!isObject(it)) - return 'symbol' == typeof it ? it : ('string' == typeof it ? 'S' : 'P') + it; - if (!has(it, META)) { - if (!isExtensible(it)) return 'F'; - if (!create) return 'E'; - setMeta(it); - } - return it[META].i; - }, - getWeak: function(it, create) { - if (!has(it, META)) { - if (!isExtensible(it)) return !0; - if (!create) return !1; - setMeta(it); - } - return it[META].w; - }, - onFreeze: function(it) { - return FREEZE && meta.NEED && isExtensible(it) && !has(it, META) && setMeta(it), it; - } - }); - }, - function(module, exports, __webpack_require__) { - var ctx = __webpack_require__(35), - call = __webpack_require__(224), - isArrayIter = __webpack_require__(225), - anObject = __webpack_require__(24), - toLength = __webpack_require__(94), - getIterFn = __webpack_require__(151), - BREAK = {}, - RETURN = {}; - ((exports = module.exports = function(iterable, entries, fn, that, ITERATOR) { - var length, - step, - iterator, - result, - iterFn = ITERATOR - ? function() { - return iterable; - } - : getIterFn(iterable), - f = ctx(fn, that, entries ? 2 : 1), - index = 0; - if ('function' != typeof iterFn) throw TypeError(iterable + ' is not iterable!'); - if (isArrayIter(iterFn)) { - for (length = toLength(iterable.length); length > index; index++) - if ( - (result = entries - ? f(anObject((step = iterable[index]))[0], step[1]) - : f(iterable[index])) === BREAK || - result === RETURN - ) - return result; - } else - for (iterator = iterFn.call(iterable); !(step = iterator.next()).done; ) - if ((result = call(iterator, f, step.value, entries)) === BREAK || result === RETURN) - return result; - }).BREAK = BREAK), - (exports.RETURN = RETURN); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var EventPluginHub = __webpack_require__(80), - EventPluginUtils = __webpack_require__(154), - accumulateInto = __webpack_require__(235), - forEachAccumulated = __webpack_require__(236), - getListener = (__webpack_require__(6), EventPluginHub.getListener); - function accumulateDirectionalDispatches(inst, phase, event) { - var listener = (function listenerAtPhase(inst, event, propagationPhase) { - var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase]; - return getListener(inst, registrationName); - })(inst, event, phase); - listener && - ((event._dispatchListeners = accumulateInto(event._dispatchListeners, listener)), - (event._dispatchInstances = accumulateInto(event._dispatchInstances, inst))); - } - function accumulateTwoPhaseDispatchesSingle(event) { - event && - event.dispatchConfig.phasedRegistrationNames && - EventPluginUtils.traverseTwoPhase( - event._targetInst, - accumulateDirectionalDispatches, - event - ); - } - function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { - if (event && event.dispatchConfig.phasedRegistrationNames) { - var targetInst = event._targetInst, - parentInst = targetInst ? EventPluginUtils.getParentInstance(targetInst) : null; - EventPluginUtils.traverseTwoPhase(parentInst, accumulateDirectionalDispatches, event); - } - } - function accumulateDispatches(inst, ignoredDirection, event) { - if (event && event.dispatchConfig.registrationName) { - var registrationName = event.dispatchConfig.registrationName, - listener = getListener(inst, registrationName); - listener && - ((event._dispatchListeners = accumulateInto(event._dispatchListeners, listener)), - (event._dispatchInstances = accumulateInto(event._dispatchInstances, inst))); - } - } - function accumulateDirectDispatchesSingle(event) { - event && - event.dispatchConfig.registrationName && - accumulateDispatches(event._targetInst, 0, event); - } - var EventPropagators = { - accumulateTwoPhaseDispatches: function accumulateTwoPhaseDispatches(events) { - forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle); - }, - accumulateTwoPhaseDispatchesSkipTarget: function accumulateTwoPhaseDispatchesSkipTarget( - events - ) { - forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget); - }, - accumulateDirectDispatches: function accumulateDirectDispatches(events) { - forEachAccumulated(events, accumulateDirectDispatchesSingle); - }, - accumulateEnterLeaveDispatches: function accumulateEnterLeaveDispatches( - leave, - enter, - from, - to - ) { - EventPluginUtils.traverseEnterLeave(from, to, accumulateDispatches, leave, enter); - } - }; - module.exports = EventPropagators; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - EventPluginRegistry = __webpack_require__(153), - EventPluginUtils = __webpack_require__(154), - ReactErrorUtils = __webpack_require__(155), - accumulateInto = __webpack_require__(235), - forEachAccumulated = __webpack_require__(236), - listenerBank = (__webpack_require__(3), {}), - eventQueue = null, - executeDispatchesAndRelease = function(event, simulated) { - event && - (EventPluginUtils.executeDispatchesInOrder(event, simulated), - event.isPersistent() || event.constructor.release(event)); - }, - executeDispatchesAndReleaseSimulated = function(e) { - return executeDispatchesAndRelease(e, !0); - }, - executeDispatchesAndReleaseTopLevel = function(e) { - return executeDispatchesAndRelease(e, !1); - }, - getDictionaryKey = function(inst) { - return '.' + inst._rootNodeID; - }; - var EventPluginHub = { - injection: { - injectEventPluginOrder: EventPluginRegistry.injectEventPluginOrder, - injectEventPluginsByName: EventPluginRegistry.injectEventPluginsByName - }, - putListener: function(inst, registrationName, listener) { - 'function' != typeof listener && _prodInvariant('94', registrationName, typeof listener); - var key = getDictionaryKey(inst); - (listenerBank[registrationName] || (listenerBank[registrationName] = {}))[key] = listener; - var PluginModule = EventPluginRegistry.registrationNameModules[registrationName]; - PluginModule && - PluginModule.didPutListener && - PluginModule.didPutListener(inst, registrationName, listener); - }, - getListener: function(inst, registrationName) { - var bankForRegistrationName = listenerBank[registrationName]; - if ( - (function shouldPreventMouseEvent(name, type, props) { - switch (name) { - case 'onClick': - case 'onClickCapture': - case 'onDoubleClick': - case 'onDoubleClickCapture': - case 'onMouseDown': - case 'onMouseDownCapture': - case 'onMouseMove': - case 'onMouseMoveCapture': - case 'onMouseUp': - case 'onMouseUpCapture': - return !( - !props.disabled || - !(function isInteractive(tag) { - return ( - 'button' === tag || 'input' === tag || 'select' === tag || 'textarea' === tag - ); - })(type) - ); - default: - return !1; - } - })(registrationName, inst._currentElement.type, inst._currentElement.props) - ) - return null; - var key = getDictionaryKey(inst); - return bankForRegistrationName && bankForRegistrationName[key]; - }, - deleteListener: function(inst, registrationName) { - var PluginModule = EventPluginRegistry.registrationNameModules[registrationName]; - PluginModule && - PluginModule.willDeleteListener && - PluginModule.willDeleteListener(inst, registrationName); - var bankForRegistrationName = listenerBank[registrationName]; - bankForRegistrationName && delete bankForRegistrationName[getDictionaryKey(inst)]; - }, - deleteAllListeners: function(inst) { - var key = getDictionaryKey(inst); - for (var registrationName in listenerBank) - if ( - listenerBank.hasOwnProperty(registrationName) && - listenerBank[registrationName][key] - ) { - var PluginModule = EventPluginRegistry.registrationNameModules[registrationName]; - PluginModule && - PluginModule.willDeleteListener && - PluginModule.willDeleteListener(inst, registrationName), - delete listenerBank[registrationName][key]; - } - }, - extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - for (var events, plugins = EventPluginRegistry.plugins, i = 0; i < plugins.length; i++) { - var possiblePlugin = plugins[i]; - if (possiblePlugin) { - var extractedEvents = possiblePlugin.extractEvents( - topLevelType, - targetInst, - nativeEvent, - nativeEventTarget - ); - extractedEvents && (events = accumulateInto(events, extractedEvents)); - } - } - return events; - }, - enqueueEvents: function(events) { - events && (eventQueue = accumulateInto(eventQueue, events)); - }, - processEventQueue: function(simulated) { - var processingEventQueue = eventQueue; - (eventQueue = null), - forEachAccumulated( - processingEventQueue, - simulated ? executeDispatchesAndReleaseSimulated : executeDispatchesAndReleaseTopLevel - ), - eventQueue && _prodInvariant('95'), - ReactErrorUtils.rethrowCaughtError(); - }, - __purge: function() { - listenerBank = {}; - }, - __getListenerBank: function() { - return listenerBank; - } - }; - module.exports = EventPluginHub; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticEvent = __webpack_require__(33), - getEventTarget = __webpack_require__(156), - UIEventInterface = { - view: function(event) { - if (event.view) return event.view; - var target = getEventTarget(event); - if (target.window === target) return target; - var doc = target.ownerDocument; - return doc ? doc.defaultView || doc.parentWindow : window; - }, - detail: function(event) { - return event.detail || 0; - } - }; - function SyntheticUIEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { - return SyntheticEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticEvent.augmentClass(SyntheticUIEvent, UIEventInterface), - (module.exports = SyntheticUIEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactInstanceMap = { - remove: function(key) { - key._reactInternalInstance = void 0; - }, - get: function(key) { - return key._reactInternalInstance; - }, - has: function(key) { - return void 0 !== key._reactInternalInstance; - }, - set: function(key, value) { - key._reactInternalInstance = value; - } - }; - module.exports = ReactInstanceMap; - }, - , - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.typeReplacer = exports.typeReviver = exports.prepareArguments = exports.muteProperty = exports.isObject = exports.getPropertiesList = exports.canConfigureName = void 0); - var _canConfigureName3 = _interopRequireDefault(__webpack_require__(260)), - _getPropertiesList3 = _interopRequireDefault(__webpack_require__(540)), - _isObject3 = _interopRequireDefault(__webpack_require__(541)), - _muteProperty3 = _interopRequireDefault(__webpack_require__(542)), - _prepareArguments3 = _interopRequireDefault(__webpack_require__(543)), - _typeReviver3 = _interopRequireDefault(__webpack_require__(544)), - _typeReplacer3 = _interopRequireDefault(__webpack_require__(565)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - (exports.canConfigureName = _canConfigureName3.default), - (exports.getPropertiesList = _getPropertiesList3.default), - (exports.isObject = _isObject3.default), - (exports.muteProperty = _muteProperty3.default), - (exports.prepareArguments = _prepareArguments3.default), - (exports.typeReviver = _typeReviver3.default), - (exports.typeReplacer = _typeReplacer3.default); - }, - function(module, exports, __webpack_require__) { - var freeGlobal = __webpack_require__(640), - freeSelf = 'object' == typeof self && self && self.Object === Object && self, - root = freeGlobal || freeSelf || Function('return this')(); - module.exports = root; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(402), __esModule: !0 }; - }, - function(module, exports) { - module.exports = function isObject(value) { - var type = typeof value; - return !!value && ('object' == type || 'function' == type); - }; - }, - function(module, exports) { - module.exports = function(exec) { - try { - return !!exec(); - } catch (e) { - return !0; - } - }; - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(68); - module.exports = function(it) { - if (!isObject(it)) throw TypeError(it + ' is not an object!'); - return it; - }; - }, - function(module, exports) { - module.exports = function(bitmap, value) { - return { - enumerable: !(1 & bitmap), - configurable: !(2 & bitmap), - writable: !(4 & bitmap), - value: value - }; - }; - }, - function(module, exports, __webpack_require__) { - var global = __webpack_require__(36), - hide = __webpack_require__(52), - has = __webpack_require__(37), - SRC = __webpack_require__(69)('src'), - $toString = Function.toString, - TPL = ('' + $toString).split('toString'); - (__webpack_require__(67).inspectSource = function(it) { - return $toString.call(it); - }), - (module.exports = function(O, key, val, safe) { - var isFunction = 'function' == typeof val; - isFunction && (has(val, 'name') || hide(val, 'name', key)), - O[key] !== val && - (isFunction && - (has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)))), - O === global - ? (O[key] = val) - : safe - ? O[key] ? (O[key] = val) : hide(O, key, val) - : (delete O[key], hide(O, key, val))); - })(Function.prototype, 'toString', function toString() { - return ('function' == typeof this && this[SRC]) || $toString.call(this); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var fnToStr = Function.prototype.toString, - constructorRegex = /^\s*class /, - isES6ClassFn = function isES6ClassFn(value) { - try { - var spaceStripped = fnToStr - .call(value) - .replace(/\/\/.*\n/g, '') - .replace(/\/\*[.\s\S]*\*\//g, '') - .replace(/\n/gm, ' ') - .replace(/ {2}/g, ' '); - return constructorRegex.test(spaceStripped); - } catch (e) { - return !1; - } - }, - toStr = Object.prototype.toString, - hasToStringTag = 'function' == typeof Symbol && 'symbol' == typeof Symbol.toStringTag; - module.exports = function isCallable(value) { - if (!value) return !1; - if ('function' != typeof value && 'object' != typeof value) return !1; - if (hasToStringTag) - return (function tryFunctionObject(value) { - try { - return !isES6ClassFn(value) && (fnToStr.call(value), !0); - } catch (e) { - return !1; - } - })(value); - if (isES6ClassFn(value)) return !1; - var strClass = toStr.call(value); - return '[object Function]' === strClass || '[object GeneratorFunction]' === strClass; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var emptyObject = {}; - module.exports = emptyObject; - }, - function(module, exports, __webpack_require__) { - var toInteger = __webpack_require__(139), - min = Math.min; - module.exports = function(it) { - return it > 0 ? min(toInteger(it), 9007199254740991) : 0; - }; - }, - function(module, exports) { - var id = 0, - px = Math.random(); - module.exports = function(key) { - return 'Symbol('.concat(void 0 === key ? '' : key, ')_', (++id + px).toString(36)); - }; - }, - function(module, exports) { - exports.f = {}.propertyIsEnumerable; - }, - function(module, exports) { - module.exports = !0; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - OBSERVED_ERROR = (__webpack_require__(3), {}), - TransactionImpl = { - reinitializeTransaction: function() { - (this.transactionWrappers = this.getTransactionWrappers()), - this.wrapperInitData ? (this.wrapperInitData.length = 0) : (this.wrapperInitData = []), - (this._isInTransaction = !1); - }, - _isInTransaction: !1, - getTransactionWrappers: null, - isInTransaction: function() { - return !!this._isInTransaction; - }, - perform: function(method, scope, a, b, c, d, e, f) { - var errorThrown, ret; - this.isInTransaction() && _prodInvariant('27'); - try { - (this._isInTransaction = !0), - (errorThrown = !0), - this.initializeAll(0), - (ret = method.call(scope, a, b, c, d, e, f)), - (errorThrown = !1); - } finally { - try { - if (errorThrown) - try { - this.closeAll(0); - } catch (err) {} - else this.closeAll(0); - } finally { - this._isInTransaction = !1; - } - } - return ret; - }, - initializeAll: function(startIndex) { - for ( - var transactionWrappers = this.transactionWrappers, i = startIndex; - i < transactionWrappers.length; - i++ - ) { - var wrapper = transactionWrappers[i]; - try { - (this.wrapperInitData[i] = OBSERVED_ERROR), - (this.wrapperInitData[i] = wrapper.initialize - ? wrapper.initialize.call(this) - : null); - } finally { - if (this.wrapperInitData[i] === OBSERVED_ERROR) - try { - this.initializeAll(i + 1); - } catch (err) {} - } - } - }, - closeAll: function(startIndex) { - this.isInTransaction() || _prodInvariant('28'); - for ( - var transactionWrappers = this.transactionWrappers, i = startIndex; - i < transactionWrappers.length; - i++ - ) { - var errorThrown, - wrapper = transactionWrappers[i], - initData = this.wrapperInitData[i]; - try { - (errorThrown = !0), - initData !== OBSERVED_ERROR && wrapper.close && wrapper.close.call(this, initData), - (errorThrown = !1); - } finally { - if (errorThrown) - try { - this.closeAll(i + 1); - } catch (e) {} - } - } - this.wrapperInitData.length = 0; - } - }; - module.exports = TransactionImpl; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticUIEvent = __webpack_require__(81), - ViewportMetrics = __webpack_require__(242), - MouseEventInterface = { - screenX: null, - screenY: null, - clientX: null, - clientY: null, - ctrlKey: null, - shiftKey: null, - altKey: null, - metaKey: null, - getModifierState: __webpack_require__(158), - button: function(event) { - var button = event.button; - return 'which' in event ? button : 2 === button ? 2 : 4 === button ? 1 : 0; - }, - buttons: null, - relatedTarget: function(event) { - return ( - event.relatedTarget || - (event.fromElement === event.srcElement ? event.toElement : event.fromElement) - ); - }, - pageX: function(event) { - return 'pageX' in event ? event.pageX : event.clientX + ViewportMetrics.currentScrollLeft; - }, - pageY: function(event) { - return 'pageY' in event ? event.pageY : event.clientY + ViewportMetrics.currentScrollTop; - } - }; - function SyntheticMouseEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { - return SyntheticUIEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticUIEvent.augmentClass(SyntheticMouseEvent, MouseEventInterface), - (module.exports = SyntheticMouseEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var reusableSVGContainer, - ExecutionEnvironment = __webpack_require__(19), - DOMNamespaces = __webpack_require__(160), - WHITESPACE_TEST = /^[ \r\n\t\f]/, - NONVISIBLE_TEST = /<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/, - setInnerHTML = __webpack_require__(161)(function(node, html) { - if (node.namespaceURI !== DOMNamespaces.svg || 'innerHTML' in node) node.innerHTML = html; - else { - (reusableSVGContainer = reusableSVGContainer || document.createElement('div')).innerHTML = - '' + html + ''; - for (var svgNode = reusableSVGContainer.firstChild; svgNode.firstChild; ) - node.appendChild(svgNode.firstChild); - } - }); - if (ExecutionEnvironment.canUseDOM) { - var testElement = document.createElement('div'); - (testElement.innerHTML = ' '), - '' === testElement.innerHTML && - (setInnerHTML = function(node, html) { - if ( - (node.parentNode && node.parentNode.replaceChild(node, node), - WHITESPACE_TEST.test(html) || ('<' === html[0] && NONVISIBLE_TEST.test(html))) - ) { - node.innerHTML = String.fromCharCode(65279) + html; - var textNode = node.firstChild; - 1 === textNode.data.length ? node.removeChild(textNode) : textNode.deleteData(0, 1); - } else node.innerHTML = html; - }), - (testElement = null); - } - module.exports = setInnerHTML; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var matchHtmlRegExp = /["'&<>]/; - module.exports = function escapeTextContentForBrowser(text) { - return 'boolean' == typeof text || 'number' == typeof text - ? '' + text - : (function escapeHtml(string) { - var escape, - str = '' + string, - match = matchHtmlRegExp.exec(str); - if (!match) return str; - var html = '', - index = 0, - lastIndex = 0; - for (index = match.index; index < str.length; index++) { - switch (str.charCodeAt(index)) { - case 34: - escape = '"'; - break; - case 38: - escape = '&'; - break; - case 39: - escape = '''; - break; - case 60: - escape = '<'; - break; - case 62: - escape = '>'; - break; - default: - continue; - } - lastIndex !== index && (html += str.substring(lastIndex, index)), - (lastIndex = index + 1), - (html += escape); - } - return lastIndex !== index ? html + str.substring(lastIndex, index) : html; - })(text); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var hasEventPageXY, - _assign = __webpack_require__(9), - EventPluginRegistry = __webpack_require__(153), - ReactEventEmitterMixin = __webpack_require__(466), - ViewportMetrics = __webpack_require__(242), - getVendorPrefixedEventName = __webpack_require__(467), - isEventSupported = __webpack_require__(157), - alreadyListeningTo = {}, - isMonitoringScrollValue = !1, - reactTopListenersCounter = 0, - topEventMapping = { - topAbort: 'abort', - topAnimationEnd: getVendorPrefixedEventName('animationend') || 'animationend', - topAnimationIteration: - getVendorPrefixedEventName('animationiteration') || 'animationiteration', - topAnimationStart: getVendorPrefixedEventName('animationstart') || 'animationstart', - topBlur: 'blur', - topCanPlay: 'canplay', - topCanPlayThrough: 'canplaythrough', - topChange: 'change', - topClick: 'click', - topCompositionEnd: 'compositionend', - topCompositionStart: 'compositionstart', - topCompositionUpdate: 'compositionupdate', - topContextMenu: 'contextmenu', - topCopy: 'copy', - topCut: 'cut', - topDoubleClick: 'dblclick', - topDrag: 'drag', - topDragEnd: 'dragend', - topDragEnter: 'dragenter', - topDragExit: 'dragexit', - topDragLeave: 'dragleave', - topDragOver: 'dragover', - topDragStart: 'dragstart', - topDrop: 'drop', - topDurationChange: 'durationchange', - topEmptied: 'emptied', - topEncrypted: 'encrypted', - topEnded: 'ended', - topError: 'error', - topFocus: 'focus', - topInput: 'input', - topKeyDown: 'keydown', - topKeyPress: 'keypress', - topKeyUp: 'keyup', - topLoadedData: 'loadeddata', - topLoadedMetadata: 'loadedmetadata', - topLoadStart: 'loadstart', - topMouseDown: 'mousedown', - topMouseMove: 'mousemove', - topMouseOut: 'mouseout', - topMouseOver: 'mouseover', - topMouseUp: 'mouseup', - topPaste: 'paste', - topPause: 'pause', - topPlay: 'play', - topPlaying: 'playing', - topProgress: 'progress', - topRateChange: 'ratechange', - topScroll: 'scroll', - topSeeked: 'seeked', - topSeeking: 'seeking', - topSelectionChange: 'selectionchange', - topStalled: 'stalled', - topSuspend: 'suspend', - topTextInput: 'textInput', - topTimeUpdate: 'timeupdate', - topTouchCancel: 'touchcancel', - topTouchEnd: 'touchend', - topTouchMove: 'touchmove', - topTouchStart: 'touchstart', - topTransitionEnd: getVendorPrefixedEventName('transitionend') || 'transitionend', - topVolumeChange: 'volumechange', - topWaiting: 'waiting', - topWheel: 'wheel' - }, - topListenersIDKey = '_reactListenersID' + String(Math.random()).slice(2); - var ReactBrowserEventEmitter = _assign({}, ReactEventEmitterMixin, { - ReactEventListener: null, - injection: { - injectReactEventListener: function(ReactEventListener) { - ReactEventListener.setHandleTopLevel(ReactBrowserEventEmitter.handleTopLevel), - (ReactBrowserEventEmitter.ReactEventListener = ReactEventListener); - } - }, - setEnabled: function(enabled) { - ReactBrowserEventEmitter.ReactEventListener && - ReactBrowserEventEmitter.ReactEventListener.setEnabled(enabled); - }, - isEnabled: function() { - return !( - !ReactBrowserEventEmitter.ReactEventListener || - !ReactBrowserEventEmitter.ReactEventListener.isEnabled() - ); - }, - listenTo: function(registrationName, contentDocumentHandle) { - for ( - var mountAt = contentDocumentHandle, - isListening = (function getListeningForDocument(mountAt) { - return ( - Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey) || - ((mountAt[topListenersIDKey] = reactTopListenersCounter++), - (alreadyListeningTo[mountAt[topListenersIDKey]] = {})), - alreadyListeningTo[mountAt[topListenersIDKey]] - ); - })(mountAt), - dependencies = EventPluginRegistry.registrationNameDependencies[registrationName], - i = 0; - i < dependencies.length; - i++ - ) { - var dependency = dependencies[i]; - (isListening.hasOwnProperty(dependency) && isListening[dependency]) || - ('topWheel' === dependency - ? isEventSupported('wheel') - ? ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent( - 'topWheel', - 'wheel', - mountAt - ) - : isEventSupported('mousewheel') - ? ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent( - 'topWheel', - 'mousewheel', - mountAt - ) - : ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent( - 'topWheel', - 'DOMMouseScroll', - mountAt - ) - : 'topScroll' === dependency - ? isEventSupported('scroll', !0) - ? ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent( - 'topScroll', - 'scroll', - mountAt - ) - : ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent( - 'topScroll', - 'scroll', - ReactBrowserEventEmitter.ReactEventListener.WINDOW_HANDLE - ) - : 'topFocus' === dependency || 'topBlur' === dependency - ? (isEventSupported('focus', !0) - ? (ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent( - 'topFocus', - 'focus', - mountAt - ), - ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent( - 'topBlur', - 'blur', - mountAt - )) - : isEventSupported('focusin') && - (ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent( - 'topFocus', - 'focusin', - mountAt - ), - ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent( - 'topBlur', - 'focusout', - mountAt - )), - (isListening.topBlur = !0), - (isListening.topFocus = !0)) - : topEventMapping.hasOwnProperty(dependency) && - ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent( - dependency, - topEventMapping[dependency], - mountAt - ), - (isListening[dependency] = !0)); - } - }, - trapBubbledEvent: function(topLevelType, handlerBaseName, handle) { - return ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent( - topLevelType, - handlerBaseName, - handle - ); - }, - trapCapturedEvent: function(topLevelType, handlerBaseName, handle) { - return ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent( - topLevelType, - handlerBaseName, - handle - ); - }, - supportsEventPageXY: function() { - if (!document.createEvent) return !1; - var ev = document.createEvent('MouseEvent'); - return null != ev && 'pageX' in ev; - }, - ensureScrollValueMonitoring: function() { - if ( - (void 0 === hasEventPageXY && - (hasEventPageXY = ReactBrowserEventEmitter.supportsEventPageXY()), - !hasEventPageXY && !isMonitoringScrollValue) - ) { - var refresh = ViewportMetrics.refreshScrollValues; - ReactBrowserEventEmitter.ReactEventListener.monitorScrollValue(refresh), - (isMonitoringScrollValue = !0); - } - } - }); - module.exports = ReactBrowserEventEmitter; - }, - , - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _manager = __webpack_require__(523); - Object.defineProperty(exports, 'register', { - enumerable: !0, - get: function get() { - return _manager.register; - } - }); - var _preview = __webpack_require__(588); - Object.defineProperty(exports, 'action', { - enumerable: !0, - get: function get() { - return _preview.action; - } - }), - Object.defineProperty(exports, 'decorateAction', { - enumerable: !0, - get: function get() { - return _preview.decorateAction; - } - }); - var ADDON_ID = (exports.ADDON_ID = 'storybook/actions'); - (exports.PANEL_ID = ADDON_ID + '/actions-panel'), - (exports.EVENT_ID = ADDON_ID + '/action-event'); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.reviver = exports.retrocycle = exports.decycle = exports.CYCLIC_KEY = void 0); - var _decycle3 = _interopRequireDefault(__webpack_require__(525)), - _retrocycle3 = _interopRequireDefault(__webpack_require__(566)), - _reviver3 = _interopRequireDefault(__webpack_require__(261)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - exports.CYCLIC_KEY = '$___storybook.isCyclic'; - (exports.decycle = _decycle3.default), - (exports.retrocycle = _retrocycle3.default), - (exports.reviver = _reviver3.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _createStyles2 = _interopRequireDefault(__webpack_require__(44)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ObjectName = function ObjectName(_ref, _ref2) { - var name = _ref.name, - dimmed = _ref.dimmed, - styles = _ref.styles, - theme = _ref2.theme, - themeStyles = (0, _createStyles2.default)('ObjectName', theme), - appliedStyles = (0, _extends3.default)( - {}, - themeStyles.base, - dimmed ? themeStyles.dimmed : {}, - styles - ); - return _react2.default.createElement('span', { style: appliedStyles }, name); - }; - (ObjectName.propTypes = { name: _propTypes2.default.string, dimmed: _propTypes2.default.bool }), - (ObjectName.defaultProps = { dimmed: !1 }), - (ObjectName.contextTypes = { - theme: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.object - ]) - }), - (exports.default = ObjectName); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _typeof3 = _interopRequireDefault(__webpack_require__(21)), - _extends3 = _interopRequireDefault(__webpack_require__(8)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _createStyles2 = _interopRequireDefault(__webpack_require__(44)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ObjectValue = function ObjectValue(_ref, _ref2) { - var object = _ref.object, - styles = _ref.styles, - theme = _ref2.theme, - themeStyles = (0, _createStyles2.default)('ObjectValue', theme), - mkStyle = function mkStyle(key) { - return (0, _extends3.default)({}, themeStyles[key], styles); - }; - switch (void 0 === object ? 'undefined' : (0, _typeof3.default)(object)) { - case 'number': - return _react2.default.createElement( - 'span', - { style: mkStyle('objectValueNumber') }, - String(object) - ); - case 'string': - return _react2.default.createElement( - 'span', - { style: mkStyle('objectValueString') }, - '"', - object, - '"' - ); - case 'boolean': - return _react2.default.createElement( - 'span', - { style: mkStyle('objectValueBoolean') }, - String(object) - ); - case 'undefined': - return _react2.default.createElement( - 'span', - { style: mkStyle('objectValueUndefined') }, - 'undefined' - ); - case 'object': - return null === object - ? _react2.default.createElement('span', { style: mkStyle('objectValueNull') }, 'null') - : object instanceof Date - ? _react2.default.createElement('span', null, object.toString()) - : object instanceof RegExp - ? _react2.default.createElement( - 'span', - { style: mkStyle('objectValueRegExp') }, - object.toString() - ) - : Array.isArray(object) - ? _react2.default.createElement('span', null, 'Array[' + object.length + ']') - : _react2.default.createElement('span', null, object.constructor.name); - case 'function': - return _react2.default.createElement( - 'span', - null, - _react2.default.createElement( - 'span', - { style: mkStyle('objectValueFunctionKeyword') }, - 'function' - ), - _react2.default.createElement( - 'span', - { style: mkStyle('objectValueFunctionName') }, - ' ', - object.name, - '()' - ) - ); - case 'symbol': - return _react2.default.createElement( - 'span', - { style: mkStyle('objectValueSymbol') }, - object.toString() - ); - default: - return _react2.default.createElement('span', null); - } - }; - (ObjectValue.propTypes = { object: _propTypes2.default.any }), - (ObjectValue.contextTypes = { - theme: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.object - ]) - }), - (exports.default = ObjectValue); - }, - function(module, exports) { - module.exports = function isObject(value) { - var type = typeof value; - return null != value && ('object' == type || 'function' == type); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.red = void 0); - var _each2 = _interopRequireDefault(__webpack_require__(1073)), - _tinycolor2 = _interopRequireDefault(__webpack_require__(1075)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - exports.default = { - simpleCheckForValidColor: function simpleCheckForValidColor(data) { - var checked = 0, - passed = 0; - return ( - (0, _each2.default)(['r', 'g', 'b', 'a', 'h', 's', 'l', 'v'], function(letter) { - data[letter] && ((checked += 1), isNaN(data[letter]) || (passed += 1)); - }), - checked === passed && data - ); - }, - toState: function toState(data, oldHue) { - var color = data.hex ? (0, _tinycolor2.default)(data.hex) : (0, _tinycolor2.default)(data), - hsl = color.toHsl(), - hsv = color.toHsv(), - rgb = color.toRgb(), - hex = color.toHex(); - return ( - 0 === hsl.s && ((hsl.h = oldHue || 0), (hsv.h = oldHue || 0)), - { - hsl: hsl, - hex: '000000' === hex && 0 === rgb.a ? 'transparent' : '#' + hex, - rgb: rgb, - hsv: hsv, - oldHue: data.h || oldHue || hsl.h, - source: data.source - } - ); - }, - isValidHex: function isValidHex(hex) { - return (0, _tinycolor2.default)(hex).isValid(); - } - }; - exports.red = { - hsl: { a: 1, h: 0, l: 0.5, s: 1 }, - hex: '#ff0000', - rgb: { r: 255, g: 0, b: 0, a: 1 }, - hsv: { h: 0, s: 1, v: 1, a: 1 } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function getPrefixedValue(prefixedValue, value, keepUnprefixed) { - if (keepUnprefixed) return [prefixedValue, value]; - return prefixedValue; - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(87); - module.exports = function toObject(value) { - return isObject(value) ? value : Object(value); - }; - }, - function(module, exports, __webpack_require__) { - var getNative = __webpack_require__(302), - isLength = __webpack_require__(189), - isObjectLike = __webpack_require__(188), - objToString = Object.prototype.toString, - isArray = - getNative(Array, 'isArray') || - function(value) { - return ( - isObjectLike(value) && - isLength(value.length) && - '[object Array]' == objToString.call(value) - ); - }; - module.exports = isArray; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function(prefixedValue, value, keepUnprefixed) { - return keepUnprefixed ? [prefixedValue, value] : prefixedValue; - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - var $export = __webpack_require__(16), - core = __webpack_require__(10), - fails = __webpack_require__(43); - module.exports = function(KEY, exec) { - var fn = (core.Object || {})[KEY] || Object[KEY], - exp = {}; - (exp[KEY] = exec(fn)), - $export( - $export.S + - $export.F * - fails(function() { - fn(1); - }), - 'Object', - exp - ); - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(399), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - var anObject = __webpack_require__(24), - dPs = __webpack_require__(276), - enumBugKeys = __webpack_require__(142), - IE_PROTO = __webpack_require__(140)('IE_PROTO'), - Empty = function() {}, - createDict = function() { - var iframeDocument, - iframe = __webpack_require__(143)('iframe'), - i = enumBugKeys.length; - for ( - iframe.style.display = 'none', - __webpack_require__(220).appendChild(iframe), - iframe.src = 'javascript:', - (iframeDocument = iframe.contentWindow.document).open(), - iframeDocument.write(''), - iframeDocument.close(), - createDict = iframeDocument.F; - i--; - - ) - delete createDict.prototype[enumBugKeys[i]]; - return createDict(); - }; - module.exports = - Object.create || - function create(O, Properties) { - var result; - return ( - null !== O - ? ((Empty.prototype = anObject(O)), - (result = new Empty()), - (Empty.prototype = null), - (result[IE_PROTO] = O)) - : (result = createDict()), - void 0 === Properties ? result : dPs(result, Properties) - ); - }; - }, - function(module, exports) {}, - function(module, exports) { - module.exports = function(module) { - return ( - module.webpackPolyfill || - ((module.deprecate = function() {}), - (module.paths = []), - module.children || (module.children = []), - Object.defineProperty(module, 'loaded', { - enumerable: !0, - get: function() { - return module.l; - } - }), - Object.defineProperty(module, 'id', { - enumerable: !0, - get: function() { - return module.i; - } - }), - (module.webpackPolyfill = 1)), - module - ); - }; - }, - function(module, exports, __webpack_require__) { - var cof = __webpack_require__(73), - TAG = __webpack_require__(18)('toStringTag'), - ARG = - 'Arguments' == - cof( - (function() { - return arguments; - })() - ); - module.exports = function(it) { - var O, T, B; - return void 0 === it - ? 'Undefined' - : null === it - ? 'Null' - : 'string' == - typeof (T = (function(it, key) { - try { - return it[key]; - } catch (e) {} - })((O = Object(it)), TAG)) - ? T - : ARG - ? cof(O) - : 'Object' == (B = cof(O)) && 'function' == typeof O.callee ? 'Arguments' : B; - }; - }, - function(module, exports) { - module.exports = function(it, Constructor, name, forbiddenField) { - if (!(it instanceof Constructor) || (void 0 !== forbiddenField && forbiddenField in it)) - throw TypeError(name + ': incorrect invocation!'); - return it; - }; - }, - function(module, exports, __webpack_require__) { - var hide = __webpack_require__(42); - module.exports = function(target, src, safe) { - for (var key in src) - safe && target[key] ? (target[key] = src[key]) : hide(target, key, src[key]); - return target; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = __webpack_require__(440); - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(526), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - var arrayMap = __webpack_require__(650), - baseIteratee = __webpack_require__(974), - baseMap = __webpack_require__(1030), - isArray = __webpack_require__(66); - module.exports = function map(collection, iteratee) { - return (isArray(collection) ? arrayMap : baseMap)(collection, baseIteratee(iteratee, 3)); - }; - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(68); - module.exports = function(it, S) { - if (!isObject(it)) return it; - var fn, val; - if (S && 'function' == typeof (fn = it.toString) && !isObject((val = fn.call(it)))) - return val; - if ('function' == typeof (fn = it.valueOf) && !isObject((val = fn.call(it)))) return val; - if (!S && 'function' == typeof (fn = it.toString) && !isObject((val = fn.call(it)))) - return val; - throw TypeError("Can't convert object to primitive value"); - }; - }, - function(module, exports, __webpack_require__) { - var global = __webpack_require__(36), - store = global['__core-js_shared__'] || (global['__core-js_shared__'] = {}); - module.exports = function(key) { - return store[key] || (store[key] = {}); - }; - }, - function(module, exports, __webpack_require__) { - var def = __webpack_require__(53).f, - has = __webpack_require__(37), - TAG = __webpack_require__(38)('toStringTag'); - module.exports = function(it, tag, stat) { - it && - !has((it = stat ? it : it.prototype), TAG) && - def(it, TAG, { configurable: !0, value: tag }); - }; - }, - function(module, exports) { - module.exports = !1; - }, - function(module, exports, __webpack_require__) { - var $keys = __webpack_require__(194), - enumBugKeys = __webpack_require__(132); - module.exports = - Object.keys || - function keys(O) { - return $keys(O, enumBugKeys); - }; - }, - function(module, exports) { - var toString = {}.toString; - module.exports = function(it) { - return toString.call(it).slice(8, -1); - }; - }, - function(module, exports, __webpack_require__) { - var shared = __webpack_require__(126)('keys'), - uid = __webpack_require__(69); - module.exports = function(key) { - return shared[key] || (shared[key] = uid(key)); - }; - }, - function(module, exports) { - module.exports = 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split( - ',' - ); - }, - function(module, exports) { - exports.f = {}.propertyIsEnumerable; - }, - function(module, exports) { - var cachedSetTimeout, - cachedClearTimeout, - process = (module.exports = {}); - function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); - } - function defaultClearTimeout() { - throw new Error('clearTimeout has not been defined'); - } - function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) return setTimeout(fun, 0); - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) - return (cachedSetTimeout = setTimeout), setTimeout(fun, 0); - try { - return cachedSetTimeout(fun, 0); - } catch (e) { - try { - return cachedSetTimeout.call(null, fun, 0); - } catch (e) { - return cachedSetTimeout.call(this, fun, 0); - } - } - } - !(function() { - try { - cachedSetTimeout = 'function' == typeof setTimeout ? setTimeout : defaultSetTimout; - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - cachedClearTimeout = 'function' == typeof clearTimeout ? clearTimeout : defaultClearTimeout; - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } - })(); - var currentQueue, - queue = [], - draining = !1, - queueIndex = -1; - function cleanUpNextTick() { - draining && - currentQueue && - ((draining = !1), - currentQueue.length ? (queue = currentQueue.concat(queue)) : (queueIndex = -1), - queue.length && drainQueue()); - } - function drainQueue() { - if (!draining) { - var timeout = runTimeout(cleanUpNextTick); - draining = !0; - for (var len = queue.length; len; ) { - for (currentQueue = queue, queue = []; ++queueIndex < len; ) - currentQueue && currentQueue[queueIndex].run(); - (queueIndex = -1), (len = queue.length); - } - (currentQueue = null), - (draining = !1), - (function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) return clearTimeout(marker); - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) - return (cachedClearTimeout = clearTimeout), clearTimeout(marker); - try { - return cachedClearTimeout(marker); - } catch (e) { - try { - return cachedClearTimeout.call(null, marker); - } catch (e) { - return cachedClearTimeout.call(this, marker); - } - } - })(timeout); - } - } - function Item(fun, array) { - (this.fun = fun), (this.array = array); - } - function noop() {} - (process.nextTick = function(fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) - for (var i = 1; i < arguments.length; i++) args[i - 1] = arguments[i]; - queue.push(new Item(fun, args)), 1 !== queue.length || draining || runTimeout(drainQueue); - }), - (Item.prototype.run = function() { - this.fun.apply(null, this.array); - }), - (process.title = 'browser'), - (process.browser = !0), - (process.env = {}), - (process.argv = []), - (process.version = ''), - (process.versions = {}), - (process.on = noop), - (process.addListener = noop), - (process.once = noop), - (process.off = noop), - (process.removeListener = noop), - (process.removeAllListeners = noop), - (process.emit = noop), - (process.prependListener = noop), - (process.prependOnceListener = noop), - (process.listeners = function(name) { - return []; - }), - (process.binding = function(name) { - throw new Error('process.binding is not supported'); - }), - (process.cwd = function() { - return '/'; - }), - (process.chdir = function(dir) { - throw new Error('process.chdir is not supported'); - }), - (process.umask = function() { - return 0; - }); - }, - function(module, exports) { - var has = Object.prototype.hasOwnProperty; - module.exports = function assign(target, source) { - if (Object.assign) return Object.assign(target, source); - for (var key in source) has.call(source, key) && (target[key] = source[key]); - return target; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function requirePromise() { - if ('function' != typeof Promise) - throw new TypeError( - '`Promise.prototype.finally` requires a global `Promise` be available.' - ); - }; - }, - function(module, exports) { - module.exports = function(it) { - if (void 0 == it) throw TypeError("Can't call method on " + it); - return it; - }; - }, - function(module, exports, __webpack_require__) { - var cof = __webpack_require__(73); - module.exports = Object('z').propertyIsEnumerable(0) - ? Object - : function(it) { - return 'String' == cof(it) ? it.split('') : Object(it); - }; - }, - function(module, exports) { - var ceil = Math.ceil, - floor = Math.floor; - module.exports = function(it) { - return isNaN((it = +it)) ? 0 : (it > 0 ? floor : ceil)(it); - }; - }, - function(module, exports, __webpack_require__) { - var shared = __webpack_require__(141)('keys'), - uid = __webpack_require__(95); - module.exports = function(key) { - return shared[key] || (shared[key] = uid(key)); - }; - }, - function(module, exports, __webpack_require__) { - var global = __webpack_require__(17), - store = global['__core-js_shared__'] || (global['__core-js_shared__'] = {}); - module.exports = function(key) { - return store[key] || (store[key] = {}); - }; - }, - function(module, exports) { - module.exports = 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split( - ',' - ); - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(20), - document = __webpack_require__(17).document, - is = isObject(document) && isObject(document.createElement); - module.exports = function(it) { - return is ? document.createElement(it) : {}; - }; - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(20); - module.exports = function(it, S) { - if (!isObject(it)) return it; - var fn, val; - if (S && 'function' == typeof (fn = it.toString) && !isObject((val = fn.call(it)))) - return val; - if ('function' == typeof (fn = it.valueOf) && !isObject((val = fn.call(it)))) return val; - if (!S && 'function' == typeof (fn = it.toString) && !isObject((val = fn.call(it)))) - return val; - throw TypeError("Can't convert object to primitive value"); - }; - }, - function(module, exports) { - exports.f = Object.getOwnPropertySymbols; - }, - function(module, exports, __webpack_require__) { - var pSlice = Array.prototype.slice, - objectKeys = __webpack_require__(404), - isArguments = __webpack_require__(405), - deepEqual = (module.exports = function(actual, expected, opts) { - return ( - opts || (opts = {}), - actual === expected || - (actual instanceof Date && expected instanceof Date - ? actual.getTime() === expected.getTime() - : !actual || !expected || ('object' != typeof actual && 'object' != typeof expected) - ? opts.strict ? actual === expected : actual == expected - : (function objEquiv(a, b, opts) { - var i, key; - if (isUndefinedOrNull(a) || isUndefinedOrNull(b)) return !1; - if (a.prototype !== b.prototype) return !1; - if (isArguments(a)) - return ( - !!isArguments(b) && - ((a = pSlice.call(a)), (b = pSlice.call(b)), deepEqual(a, b, opts)) - ); - if (isBuffer(a)) { - if (!isBuffer(b)) return !1; - if (a.length !== b.length) return !1; - for (i = 0; i < a.length; i++) if (a[i] !== b[i]) return !1; - return !0; - } - try { - var ka = objectKeys(a), - kb = objectKeys(b); - } catch (e) { - return !1; - } - if (ka.length != kb.length) return !1; - for (ka.sort(), kb.sort(), i = ka.length - 1; i >= 0; i--) - if (ka[i] != kb[i]) return !1; - for (i = ka.length - 1; i >= 0; i--) - if (((key = ka[i]), !deepEqual(a[key], b[key], opts))) return !1; - return typeof a == typeof b; - })(actual, expected, opts)) - ); - }); - function isUndefinedOrNull(value) { - return null === value || void 0 === value; - } - function isBuffer(x) { - return ( - !(!x || 'object' != typeof x || 'number' != typeof x.length) && - ('function' == typeof x.copy && - 'function' == typeof x.slice && - !(x.length > 0 && 'number' != typeof x[0])) - ); - } - }, - function(module, exports, __webpack_require__) { - module.exports = __webpack_require__(42); - }, - function(module, exports, __webpack_require__) { - exports.f = __webpack_require__(18); - }, - function(module, exports, __webpack_require__) { - var global = __webpack_require__(17), - core = __webpack_require__(10), - LIBRARY = __webpack_require__(97), - wksExt = __webpack_require__(148), - defineProperty = __webpack_require__(26).f; - module.exports = function(name) { - var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); - '_' == name.charAt(0) || - name in $Symbol || - defineProperty($Symbol, name, { value: wksExt.f(name) }); - }; - }, - function(module, exports, __webpack_require__) { - var pIE = __webpack_require__(96), - createDesc = __webpack_require__(75), - toIObject = __webpack_require__(46), - toPrimitive = __webpack_require__(144), - has = __webpack_require__(41), - IE8_DOM_DEFINE = __webpack_require__(217), - gOPD = Object.getOwnPropertyDescriptor; - exports.f = __webpack_require__(29) - ? gOPD - : function getOwnPropertyDescriptor(O, P) { - if (((O = toIObject(O)), (P = toPrimitive(P, !0)), IE8_DOM_DEFINE)) - try { - return gOPD(O, P); - } catch (e) {} - if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); - }; - }, - function(module, exports, __webpack_require__) { - var classof = __webpack_require__(119), - ITERATOR = __webpack_require__(18)('iterator'), - Iterators = __webpack_require__(59); - module.exports = __webpack_require__(10).getIteratorMethod = function(it) { - if (void 0 != it) return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)]; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var aFunction = __webpack_require__(74); - module.exports.f = function(C) { - return new function PromiseCapability(C) { - var resolve, reject; - (this.promise = new C(function($$resolve, $$reject) { - if (void 0 !== resolve || void 0 !== reject) throw TypeError('Bad Promise constructor'); - (resolve = $$resolve), (reject = $$reject); - })), - (this.resolve = aFunction(resolve)), - (this.reject = aFunction(reject)); - }(C); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - eventPluginOrder = (__webpack_require__(3), null), - namesToPlugins = {}; - function recomputePluginOrdering() { - if (eventPluginOrder) - for (var pluginName in namesToPlugins) { - var pluginModule = namesToPlugins[pluginName], - pluginIndex = eventPluginOrder.indexOf(pluginName); - if ( - (pluginIndex > -1 || _prodInvariant('96', pluginName), - !EventPluginRegistry.plugins[pluginIndex]) - ) { - pluginModule.extractEvents || _prodInvariant('97', pluginName), - (EventPluginRegistry.plugins[pluginIndex] = pluginModule); - var publishedEvents = pluginModule.eventTypes; - for (var eventName in publishedEvents) - publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) || - _prodInvariant('98', eventName, pluginName); - } - } - } - function publishEventForPlugin(dispatchConfig, pluginModule, eventName) { - EventPluginRegistry.eventNameDispatchConfigs.hasOwnProperty(eventName) && - _prodInvariant('99', eventName), - (EventPluginRegistry.eventNameDispatchConfigs[eventName] = dispatchConfig); - var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; - if (phasedRegistrationNames) { - for (var phaseName in phasedRegistrationNames) { - if (phasedRegistrationNames.hasOwnProperty(phaseName)) - publishRegistrationName(phasedRegistrationNames[phaseName], pluginModule, eventName); - } - return !0; - } - return ( - !!dispatchConfig.registrationName && - (publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName), !0) - ); - } - function publishRegistrationName(registrationName, pluginModule, eventName) { - EventPluginRegistry.registrationNameModules[registrationName] && - _prodInvariant('100', registrationName), - (EventPluginRegistry.registrationNameModules[registrationName] = pluginModule), - (EventPluginRegistry.registrationNameDependencies[registrationName] = - pluginModule.eventTypes[eventName].dependencies); - } - var EventPluginRegistry = { - plugins: [], - eventNameDispatchConfigs: {}, - registrationNameModules: {}, - registrationNameDependencies: {}, - possibleRegistrationNames: null, - injectEventPluginOrder: function(injectedEventPluginOrder) { - eventPluginOrder && _prodInvariant('101'), - (eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder)), - recomputePluginOrdering(); - }, - injectEventPluginsByName: function(injectedNamesToPlugins) { - var isOrderingDirty = !1; - for (var pluginName in injectedNamesToPlugins) - if (injectedNamesToPlugins.hasOwnProperty(pluginName)) { - var pluginModule = injectedNamesToPlugins[pluginName]; - (namesToPlugins.hasOwnProperty(pluginName) && - namesToPlugins[pluginName] === pluginModule) || - (namesToPlugins[pluginName] && _prodInvariant('102', pluginName), - (namesToPlugins[pluginName] = pluginModule), - (isOrderingDirty = !0)); - } - isOrderingDirty && recomputePluginOrdering(); - }, - getPluginModuleForEvent: function(event) { - var dispatchConfig = event.dispatchConfig; - if (dispatchConfig.registrationName) - return ( - EventPluginRegistry.registrationNameModules[dispatchConfig.registrationName] || null - ); - if (void 0 !== dispatchConfig.phasedRegistrationNames) { - var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; - for (var phase in phasedRegistrationNames) - if (phasedRegistrationNames.hasOwnProperty(phase)) { - var pluginModule = - EventPluginRegistry.registrationNameModules[phasedRegistrationNames[phase]]; - if (pluginModule) return pluginModule; - } - } - return null; - }, - _resetEventPlugins: function() { - eventPluginOrder = null; - for (var pluginName in namesToPlugins) - namesToPlugins.hasOwnProperty(pluginName) && delete namesToPlugins[pluginName]; - EventPluginRegistry.plugins.length = 0; - var eventNameDispatchConfigs = EventPluginRegistry.eventNameDispatchConfigs; - for (var eventName in eventNameDispatchConfigs) - eventNameDispatchConfigs.hasOwnProperty(eventName) && - delete eventNameDispatchConfigs[eventName]; - var registrationNameModules = EventPluginRegistry.registrationNameModules; - for (var registrationName in registrationNameModules) - registrationNameModules.hasOwnProperty(registrationName) && - delete registrationNameModules[registrationName]; - } - }; - module.exports = EventPluginRegistry; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ComponentTree, - TreeTraversal, - _prodInvariant = __webpack_require__(7), - ReactErrorUtils = __webpack_require__(155); - __webpack_require__(3), __webpack_require__(6); - function executeDispatch(event, simulated, listener, inst) { - var type = event.type || 'unknown-event'; - (event.currentTarget = EventPluginUtils.getNodeFromInstance(inst)), - simulated - ? ReactErrorUtils.invokeGuardedCallbackWithCatch(type, listener, event) - : ReactErrorUtils.invokeGuardedCallback(type, listener, event), - (event.currentTarget = null); - } - var EventPluginUtils = { - isEndish: function isEndish(topLevelType) { - return ( - 'topMouseUp' === topLevelType || - 'topTouchEnd' === topLevelType || - 'topTouchCancel' === topLevelType - ); - }, - isMoveish: function isMoveish(topLevelType) { - return 'topMouseMove' === topLevelType || 'topTouchMove' === topLevelType; - }, - isStartish: function isStartish(topLevelType) { - return 'topMouseDown' === topLevelType || 'topTouchStart' === topLevelType; - }, - executeDirectDispatch: function executeDirectDispatch(event) { - var dispatchListener = event._dispatchListeners, - dispatchInstance = event._dispatchInstances; - Array.isArray(dispatchListener) && _prodInvariant('103'), - (event.currentTarget = dispatchListener - ? EventPluginUtils.getNodeFromInstance(dispatchInstance) - : null); - var res = dispatchListener ? dispatchListener(event) : null; - return ( - (event.currentTarget = null), - (event._dispatchListeners = null), - (event._dispatchInstances = null), - res - ); - }, - executeDispatchesInOrder: function executeDispatchesInOrder(event, simulated) { - var dispatchListeners = event._dispatchListeners, - dispatchInstances = event._dispatchInstances; - if (Array.isArray(dispatchListeners)) - for (var i = 0; i < dispatchListeners.length && !event.isPropagationStopped(); i++) - executeDispatch(event, simulated, dispatchListeners[i], dispatchInstances[i]); - else - dispatchListeners && - executeDispatch(event, simulated, dispatchListeners, dispatchInstances); - (event._dispatchListeners = null), (event._dispatchInstances = null); - }, - executeDispatchesInOrderStopAtTrue: function executeDispatchesInOrderStopAtTrue(event) { - var ret = (function executeDispatchesInOrderStopAtTrueImpl(event) { - var dispatchListeners = event._dispatchListeners, - dispatchInstances = event._dispatchInstances; - if (Array.isArray(dispatchListeners)) { - for (var i = 0; i < dispatchListeners.length && !event.isPropagationStopped(); i++) - if (dispatchListeners[i](event, dispatchInstances[i])) return dispatchInstances[i]; - } else if (dispatchListeners && dispatchListeners(event, dispatchInstances)) - return dispatchInstances; - return null; - })(event); - return (event._dispatchInstances = null), (event._dispatchListeners = null), ret; - }, - hasDispatches: function hasDispatches(event) { - return !!event._dispatchListeners; - }, - getInstanceFromNode: function(node) { - return ComponentTree.getInstanceFromNode(node); - }, - getNodeFromInstance: function(node) { - return ComponentTree.getNodeFromInstance(node); - }, - isAncestor: function(a, b) { - return TreeTraversal.isAncestor(a, b); - }, - getLowestCommonAncestor: function(a, b) { - return TreeTraversal.getLowestCommonAncestor(a, b); - }, - getParentInstance: function(inst) { - return TreeTraversal.getParentInstance(inst); - }, - traverseTwoPhase: function(target, fn, arg) { - return TreeTraversal.traverseTwoPhase(target, fn, arg); - }, - traverseEnterLeave: function(from, to, fn, argFrom, argTo) { - return TreeTraversal.traverseEnterLeave(from, to, fn, argFrom, argTo); - }, - injection: { - injectComponentTree: function(Injected) { - ComponentTree = Injected; - }, - injectTreeTraversal: function(Injected) { - TreeTraversal = Injected; - } - } - }; - module.exports = EventPluginUtils; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var caughtError = null; - function invokeGuardedCallback(name, func, a) { - try { - func(a); - } catch (x) { - null === caughtError && (caughtError = x); - } - } - var ReactErrorUtils = { - invokeGuardedCallback: invokeGuardedCallback, - invokeGuardedCallbackWithCatch: invokeGuardedCallback, - rethrowCaughtError: function() { - if (caughtError) { - var error = caughtError; - throw ((caughtError = null), error); - } - } - }; - module.exports = ReactErrorUtils; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function getEventTarget(nativeEvent) { - var target = nativeEvent.target || nativeEvent.srcElement || window; - return ( - target.correspondingUseElement && (target = target.correspondingUseElement), - 3 === target.nodeType ? target.parentNode : target - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var useHasFeature, - ExecutionEnvironment = __webpack_require__(19); - ExecutionEnvironment.canUseDOM && - (useHasFeature = - document.implementation && - document.implementation.hasFeature && - !0 !== document.implementation.hasFeature('', '')), - (module.exports = function isEventSupported(eventNameSuffix, capture) { - if (!ExecutionEnvironment.canUseDOM || (capture && !('addEventListener' in document))) - return !1; - var eventName = 'on' + eventNameSuffix, - isSupported = eventName in document; - if (!isSupported) { - var element = document.createElement('div'); - element.setAttribute(eventName, 'return;'), - (isSupported = 'function' == typeof element[eventName]); - } - return ( - !isSupported && - useHasFeature && - 'wheel' === eventNameSuffix && - (isSupported = document.implementation.hasFeature('Events.wheel', '3.0')), - isSupported - ); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var modifierKeyToProp = { - Alt: 'altKey', - Control: 'ctrlKey', - Meta: 'metaKey', - Shift: 'shiftKey' - }; - function modifierStateGetter(keyArg) { - var nativeEvent = this.nativeEvent; - if (nativeEvent.getModifierState) return nativeEvent.getModifierState(keyArg); - var keyProp = modifierKeyToProp[keyArg]; - return !!keyProp && !!nativeEvent[keyProp]; - } - module.exports = function getEventModifierState(nativeEvent) { - return modifierStateGetter; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var DOMLazyTree = __webpack_require__(62), - Danger = __webpack_require__(454), - createMicrosoftUnsafeLocalFunction = (__webpack_require__(13), - __webpack_require__(25), - __webpack_require__(161)), - setInnerHTML = __webpack_require__(100), - setTextContent = __webpack_require__(243); - function getNodeAfter(parentNode, node) { - return ( - Array.isArray(node) && (node = node[1]), node ? node.nextSibling : parentNode.firstChild - ); - } - var insertChildAt = createMicrosoftUnsafeLocalFunction(function( - parentNode, - childNode, - referenceNode - ) { - parentNode.insertBefore(childNode, referenceNode); - }); - function insertLazyTreeChildAt(parentNode, childTree, referenceNode) { - DOMLazyTree.insertTreeBefore(parentNode, childTree, referenceNode); - } - function moveChild(parentNode, childNode, referenceNode) { - Array.isArray(childNode) - ? (function moveDelimitedText(parentNode, openingComment, closingComment, referenceNode) { - var node = openingComment; - for (;;) { - var nextNode = node.nextSibling; - if ((insertChildAt(parentNode, node, referenceNode), node === closingComment)) break; - node = nextNode; - } - })(parentNode, childNode[0], childNode[1], referenceNode) - : insertChildAt(parentNode, childNode, referenceNode); - } - function removeChild(parentNode, childNode) { - if (Array.isArray(childNode)) { - var closingComment = childNode[1]; - removeDelimitedText(parentNode, (childNode = childNode[0]), closingComment), - parentNode.removeChild(closingComment); - } - parentNode.removeChild(childNode); - } - function removeDelimitedText(parentNode, startNode, closingComment) { - for (;;) { - var node = startNode.nextSibling; - if (node === closingComment) break; - parentNode.removeChild(node); - } - } - var dangerouslyReplaceNodeWithMarkup = Danger.dangerouslyReplaceNodeWithMarkup; - var DOMChildrenOperations = { - dangerouslyReplaceNodeWithMarkup: dangerouslyReplaceNodeWithMarkup, - replaceDelimitedText: function replaceDelimitedText( - openingComment, - closingComment, - stringText - ) { - var parentNode = openingComment.parentNode, - nodeAfterComment = openingComment.nextSibling; - nodeAfterComment === closingComment - ? stringText && - insertChildAt(parentNode, document.createTextNode(stringText), nodeAfterComment) - : stringText - ? (setTextContent(nodeAfterComment, stringText), - removeDelimitedText(parentNode, nodeAfterComment, closingComment)) - : removeDelimitedText(parentNode, openingComment, closingComment); - }, - processUpdates: function(parentNode, updates) { - for (var k = 0; k < updates.length; k++) { - var update = updates[k]; - switch (update.type) { - case 'INSERT_MARKUP': - insertLazyTreeChildAt( - parentNode, - update.content, - getNodeAfter(parentNode, update.afterNode) - ); - break; - case 'MOVE_EXISTING': - moveChild(parentNode, update.fromNode, getNodeAfter(parentNode, update.afterNode)); - break; - case 'SET_MARKUP': - setInnerHTML(parentNode, update.content); - break; - case 'TEXT_CONTENT': - setTextContent(parentNode, update.content); - break; - case 'REMOVE_NODE': - removeChild(parentNode, update.fromNode); - } - } - } - }; - module.exports = DOMChildrenOperations; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = { - html: 'http://www.w3.org/1999/xhtml', - mathml: 'http://www.w3.org/1998/Math/MathML', - svg: 'http://www.w3.org/2000/svg' - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function(func) { - return 'undefined' != typeof MSApp && MSApp.execUnsafeLocalFunction - ? function(arg0, arg1, arg2, arg3) { - MSApp.execUnsafeLocalFunction(function() { - return func(arg0, arg1, arg2, arg3); - }); - } - : func; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - ReactPropTypesSecret = __webpack_require__(469), - PropTypes = __webpack_require__(214)(__webpack_require__(56).isValidElement), - hasReadOnlyValue = (__webpack_require__(3), - __webpack_require__(6), - { button: !0, checkbox: !0, image: !0, hidden: !0, radio: !0, reset: !0, submit: !0 }); - function _assertSingleLink(inputProps) { - null != inputProps.checkedLink && null != inputProps.valueLink && _prodInvariant('87'); - } - function _assertValueLink(inputProps) { - _assertSingleLink(inputProps), - (null != inputProps.value || null != inputProps.onChange) && _prodInvariant('88'); - } - function _assertCheckedLink(inputProps) { - _assertSingleLink(inputProps), - (null != inputProps.checked || null != inputProps.onChange) && _prodInvariant('89'); - } - var propTypes = { - value: function(props, propName, componentName) { - return !props[propName] || - hasReadOnlyValue[props.type] || - props.onChange || - props.readOnly || - props.disabled - ? null - : new Error( - 'You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.' - ); - }, - checked: function(props, propName, componentName) { - return !props[propName] || props.onChange || props.readOnly || props.disabled - ? null - : new Error( - 'You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.' - ); - }, - onChange: PropTypes.func - }, - loggedTypeFailures = {}; - function getDeclarationErrorAddendum(owner) { - if (owner) { - var name = owner.getName(); - if (name) return ' Check the render method of `' + name + '`.'; - } - return ''; - } - var LinkedValueUtils = { - checkPropTypes: function(tagName, props, owner) { - for (var propName in propTypes) { - if (propTypes.hasOwnProperty(propName)) - var error = propTypes[propName]( - props, - propName, - tagName, - 'prop', - null, - ReactPropTypesSecret - ); - if (error instanceof Error && !(error.message in loggedTypeFailures)) { - loggedTypeFailures[error.message] = !0; - getDeclarationErrorAddendum(owner); - } - } - }, - getValue: function(inputProps) { - return inputProps.valueLink - ? (_assertValueLink(inputProps), inputProps.valueLink.value) - : inputProps.value; - }, - getChecked: function(inputProps) { - return inputProps.checkedLink - ? (_assertCheckedLink(inputProps), inputProps.checkedLink.value) - : inputProps.checked; - }, - executeOnChange: function(inputProps, event) { - return inputProps.valueLink - ? (_assertValueLink(inputProps), inputProps.valueLink.requestChange(event.target.value)) - : inputProps.checkedLink - ? (_assertCheckedLink(inputProps), - inputProps.checkedLink.requestChange(event.target.checked)) - : inputProps.onChange ? inputProps.onChange.call(void 0, event) : void 0; - } - }; - module.exports = LinkedValueUtils; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - injected = (__webpack_require__(3), !1), - ReactComponentEnvironment = { - replaceNodeWithMarkup: null, - processChildrenUpdates: null, - injection: { - injectEnvironment: function(environment) { - injected && _prodInvariant('104'), - (ReactComponentEnvironment.replaceNodeWithMarkup = environment.replaceNodeWithMarkup), - (ReactComponentEnvironment.processChildrenUpdates = - environment.processChildrenUpdates), - (injected = !0); - } - } - }; - module.exports = ReactComponentEnvironment; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var hasOwnProperty = Object.prototype.hasOwnProperty; - function is(x, y) { - return x === y ? 0 !== x || 0 !== y || 1 / x == 1 / y : x != x && y != y; - } - module.exports = function shallowEqual(objA, objB) { - if (is(objA, objB)) return !0; - if ('object' != typeof objA || null === objA || 'object' != typeof objB || null === objB) - return !1; - var keysA = Object.keys(objA), - keysB = Object.keys(objB); - if (keysA.length !== keysB.length) return !1; - for (var i = 0; i < keysA.length; i++) - if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) return !1; - return !0; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function shouldUpdateReactComponent(prevElement, nextElement) { - var prevEmpty = null === prevElement || !1 === prevElement, - nextEmpty = null === nextElement || !1 === nextElement; - if (prevEmpty || nextEmpty) return prevEmpty === nextEmpty; - var prevType = typeof prevElement, - nextType = typeof nextElement; - return 'string' === prevType || 'number' === prevType - ? 'string' === nextType || 'number' === nextType - : 'object' === nextType && - prevElement.type === nextElement.type && - prevElement.key === nextElement.key; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var KeyEscapeUtils = { - escape: function escape(key) { - var escaperLookup = { '=': '=0', ':': '=2' }; - return ( - '$' + - ('' + key).replace(/[=:]/g, function(match) { - return escaperLookup[match]; - }) - ); - }, - unescape: function unescape(key) { - var unescaperLookup = { '=0': '=', '=2': ':' }; - return ( - '' + ('.' === key[0] && '$' === key[1] ? key.substring(2) : key.substring(1)) - ).replace(/(=0|=2)/g, function(match) { - return unescaperLookup[match]; - }); - } - }; - module.exports = KeyEscapeUtils; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - ReactInstanceMap = (__webpack_require__(32), __webpack_require__(82)), - ReactUpdates = (__webpack_require__(25), __webpack_require__(30)); - __webpack_require__(3), __webpack_require__(6); - function enqueueUpdate(internalInstance) { - ReactUpdates.enqueueUpdate(internalInstance); - } - function formatUnexpectedArgument(arg) { - var type = typeof arg; - if ('object' !== type) return type; - var displayName = (arg.constructor && arg.constructor.name) || type, - keys = Object.keys(arg); - return keys.length > 0 && keys.length < 20 - ? displayName + ' (keys: ' + keys.join(', ') + ')' - : displayName; - } - function getInternalInstanceReadyForUpdate(publicInstance, callerName) { - var internalInstance = ReactInstanceMap.get(publicInstance); - return internalInstance || null; - } - var ReactUpdateQueue = { - isMounted: function(publicInstance) { - var internalInstance = ReactInstanceMap.get(publicInstance); - return !!internalInstance && !!internalInstance._renderedComponent; - }, - enqueueCallback: function(publicInstance, callback, callerName) { - ReactUpdateQueue.validateCallback(callback, callerName); - var internalInstance = getInternalInstanceReadyForUpdate(publicInstance); - if (!internalInstance) return null; - internalInstance._pendingCallbacks - ? internalInstance._pendingCallbacks.push(callback) - : (internalInstance._pendingCallbacks = [callback]), - enqueueUpdate(internalInstance); - }, - enqueueCallbackInternal: function(internalInstance, callback) { - internalInstance._pendingCallbacks - ? internalInstance._pendingCallbacks.push(callback) - : (internalInstance._pendingCallbacks = [callback]), - enqueueUpdate(internalInstance); - }, - enqueueForceUpdate: function(publicInstance) { - var internalInstance = getInternalInstanceReadyForUpdate(publicInstance); - internalInstance && - ((internalInstance._pendingForceUpdate = !0), enqueueUpdate(internalInstance)); - }, - enqueueReplaceState: function(publicInstance, completeState, callback) { - var internalInstance = getInternalInstanceReadyForUpdate(publicInstance); - internalInstance && - ((internalInstance._pendingStateQueue = [completeState]), - (internalInstance._pendingReplaceState = !0), - void 0 !== callback && - null !== callback && - (ReactUpdateQueue.validateCallback(callback, 'replaceState'), - internalInstance._pendingCallbacks - ? internalInstance._pendingCallbacks.push(callback) - : (internalInstance._pendingCallbacks = [callback])), - enqueueUpdate(internalInstance)); - }, - enqueueSetState: function(publicInstance, partialState) { - var internalInstance = getInternalInstanceReadyForUpdate(publicInstance); - internalInstance && - ((internalInstance._pendingStateQueue || (internalInstance._pendingStateQueue = [])).push( - partialState - ), - enqueueUpdate(internalInstance)); - }, - enqueueElementInternal: function(internalInstance, nextElement, nextContext) { - (internalInstance._pendingElement = nextElement), - (internalInstance._context = nextContext), - enqueueUpdate(internalInstance); - }, - validateCallback: function(callback, callerName) { - callback && - 'function' != typeof callback && - _prodInvariant('122', callerName, formatUnexpectedArgument(callback)); - } - }; - module.exports = ReactUpdateQueue; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(9); - var emptyFunction = __webpack_require__(22), - validateDOMNesting = (__webpack_require__(6), emptyFunction); - module.exports = validateDOMNesting; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function getEventCharCode(nativeEvent) { - var charCode, - keyCode = nativeEvent.keyCode; - return ( - 'charCode' in nativeEvent - ? 0 === (charCode = nativeEvent.charCode) && 13 === keyCode && (charCode = 13) - : (charCode = keyCode), - charCode >= 32 || 13 === charCode ? charCode : 0 - ); - }; - }, - , - function(module, exports, __webpack_require__) { - var ctx = __webpack_require__(35), - IObject = __webpack_require__(138), - toObject = __webpack_require__(58), - toLength = __webpack_require__(94), - asc = __webpack_require__(530); - module.exports = function(TYPE, $create) { - var IS_MAP = 1 == TYPE, - IS_FILTER = 2 == TYPE, - IS_SOME = 3 == TYPE, - IS_EVERY = 4 == TYPE, - IS_FIND_INDEX = 6 == TYPE, - NO_HOLES = 5 == TYPE || IS_FIND_INDEX, - create = $create || asc; - return function($this, callbackfn, that) { - for ( - var val, - res, - O = toObject($this), - self = IObject(O), - f = ctx(callbackfn, that, 3), - length = toLength(self.length), - index = 0, - result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : void 0; - length > index; - index++ - ) - if ((NO_HOLES || index in self) && ((res = f((val = self[index]), index, O)), TYPE)) - if (IS_MAP) result[index] = res; - else if (res) - switch (TYPE) { - case 3: - return !0; - case 5: - return val; - case 6: - return index; - case 2: - result.push(val); - } - else if (IS_EVERY) return !1; - return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; - }; - }; - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(20); - module.exports = function(it, TYPE) { - if (!isObject(it) || it._t !== TYPE) - throw TypeError('Incompatible receiver, ' + TYPE + ' required!'); - return it; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.types = exports.undefinedType = exports.symbolType = exports.regexpType = exports.nanType = exports.infinityType = exports.functionType = exports.dateType = exports.objectType = void 0); - var _object2 = _interopRequireDefault(__webpack_require__(545)), - _date2 = _interopRequireDefault(__webpack_require__(552)), - _function2 = _interopRequireDefault(__webpack_require__(553)), - _infinity2 = _interopRequireDefault(__webpack_require__(555)), - _nan2 = _interopRequireDefault(__webpack_require__(559)), - _regexp2 = _interopRequireDefault(__webpack_require__(560)), - _symbol2 = _interopRequireDefault(__webpack_require__(562)), - _undefined2 = _interopRequireDefault(__webpack_require__(564)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - (exports.objectType = _object2.default), - (exports.dateType = _date2.default), - (exports.functionType = _function2.default), - (exports.infinityType = _infinity2.default), - (exports.nanType = _nan2.default), - (exports.regexpType = _regexp2.default), - (exports.symbolType = _symbol2.default), - (exports.undefinedType = _undefined2.default); - exports.types = [ - _date2.default, - _function2.default, - _nan2.default, - _infinity2.default, - _regexp2.default, - _symbol2.default, - _undefined2.default - ]; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function createFunction() { - var name = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ''; - if (_canConfigureName2.default) { - var func = function unnamed() {}; - return Object.defineProperty(func, 'name', { value: name }), func; - } - return (0, _createFunctionEval2.default)(name); - }); - var _canConfigureName2 = _interopRequireDefault(__webpack_require__(260)), - _createFunctionEval2 = _interopRequireDefault(__webpack_require__(547)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _react = __webpack_require__(0), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ThemeProvider = (function(_Component) { - function ThemeProvider() { - return ( - (0, _classCallCheck3.default)(this, ThemeProvider), - (0, _possibleConstructorReturn3.default)( - this, - (ThemeProvider.__proto__ || Object.getPrototypeOf(ThemeProvider)).apply(this, arguments) - ) - ); - } - return ( - (0, _inherits3.default)(ThemeProvider, _Component), - (0, _createClass3.default)(ThemeProvider, [ - { - key: 'getChildContext', - value: function getChildContext() { - return { theme: this.props.theme }; - } - }, - { - key: 'render', - value: function render() { - return this.props.children; - } - } - ]), - ThemeProvider - ); - })(_react.Component); - (ThemeProvider.childContextTypes = { - theme: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object]) - }), - (exports.default = ThemeProvider); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _manager = __webpack_require__(592); - Object.defineProperty(exports, 'register', { - enumerable: !0, - get: function get() { - return _manager.register; - } - }); - var _preview = __webpack_require__(593); - Object.defineProperty(exports, 'linkTo', { - enumerable: !0, - get: function get() { - return _preview.linkTo; - } - }), - Object.defineProperty(exports, 'hrefTo', { - enumerable: !0, - get: function get() { - return _preview.hrefTo; - } - }), - (exports.LinkTo = function LinkTo() { - hasWarned || - (console.error( - "\nLinkTo has moved to addon-links/react:\n\nimport LinkTo from '@storybook/addon-links/react';\n " - ), - (hasWarned = !0)); - return null; - }); - var ADDON_ID = (exports.ADDON_ID = 'storybook/links'), - hasWarned = ((exports.EVENT_ID = ADDON_ID + '/link-event'), - (exports.REQUEST_HREF_EVENT_ID = ADDON_ID + '/request-href-event'), - (exports.RECEIVE_HREF_EVENT_ID = ADDON_ID + '/receive-href-event'), - !1); - }, - function(module, exports, __webpack_require__) { - var Symbol = __webpack_require__(268), - getRawTag = __webpack_require__(961), - objectToString = __webpack_require__(962), - nullTag = '[object Null]', - undefinedTag = '[object Undefined]', - symToStringTag = Symbol ? Symbol.toStringTag : void 0; - module.exports = function baseGetTag(value) { - return null == value - ? void 0 === value ? undefinedTag : nullTag - : symToStringTag && symToStringTag in Object(value) - ? getRawTag(value) - : objectToString(value); - }; - }, - function(module, exports) { - module.exports = function isObjectLike(value) { - return null != value && 'object' == typeof value; - }; - }, - function(module, exports, __webpack_require__) { - var baseIsNative = __webpack_require__(987), - getValue = __webpack_require__(990); - module.exports = function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : void 0; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var React = __webpack_require__(0), - factory = __webpack_require__(274); - if (void 0 === React) - throw Error( - 'create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.' - ); - var ReactNoopUpdateQueue = new React.Component().updater; - module.exports = factory(React.Component, React.isValidElement, ReactNoopUpdateQueue); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _theme = __webpack_require__(1185); - Object.defineProperty(exports, 'baseFonts', { - enumerable: !0, - get: function get() { - return _theme.baseFonts; - } - }), - Object.defineProperty(exports, 'monoFonts', { - enumerable: !0, - get: function get() { - return _theme.monoFonts; - } - }); - var _routed_link = __webpack_require__(826); - Object.defineProperty(exports, 'RoutedLink', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_routed_link).default; - } - }); - var _menu_link = __webpack_require__(1186); - Object.defineProperty(exports, 'MenuLink', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_menu_link).default; - } - }); - var _highlight_button = __webpack_require__(1195); - Object.defineProperty(exports, 'HighlightButton', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_highlight_button).default; - } - }); - var _table = __webpack_require__(1196); - Object.defineProperty(exports, 'Table', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_table).default; - } - }); - var _cell = __webpack_require__(1197); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - Object.defineProperty(exports, 'Td', { - enumerable: !0, - get: function get() { - return _cell.td; - } - }), - Object.defineProperty(exports, 'Th', { - enumerable: !0, - get: function get() { - return _cell.th; - } - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.setActions = exports.setContext = void 0); - var _reactKomposer = __webpack_require__(800), - _context = void 0, - _actions = void 0, - compose = ((exports.setContext = function setContext(c) { - _context = c; - }), - (exports.setActions = function setActions(a) { - _actions = a; - }), - (0, _reactKomposer.setDefaults)({ - propsToWatch: [], - pure: !0, - env: { - context: function context() { - return _context; - }, - actions: function actions() { - return _actions; - } - } - })); - exports.default = compose; - }, - function(module, exports, __webpack_require__) { - var getNative = __webpack_require__(302), - isArrayLike = __webpack_require__(272), - isObject = __webpack_require__(87), - shimKeys = __webpack_require__(1211), - nativeKeys = getNative(Object, 'keys'), - keys = nativeKeys - ? function(object) { - var Ctor = null == object ? void 0 : object.constructor; - return ('function' == typeof Ctor && Ctor.prototype === object) || - ('function' != typeof object && isArrayLike(object)) - ? shimKeys(object) - : isObject(object) ? nativeKeys(object) : []; - } - : shimKeys; - module.exports = keys; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var LIBRARY = __webpack_require__(97), - $export = __webpack_require__(16), - redefine = __webpack_require__(147), - hide = __webpack_require__(42), - has = __webpack_require__(41), - Iterators = __webpack_require__(59), - $iterCreate = __webpack_require__(410), - setToStringTag = __webpack_require__(76), - getPrototypeOf = __webpack_require__(219), - ITERATOR = __webpack_require__(18)('iterator'), - BUGGY = !([].keys && 'next' in [].keys()), - returnThis = function() { - return this; - }; - module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { - $iterCreate(Constructor, NAME, next); - var methods, - key, - IteratorPrototype, - getMethod = function(kind) { - if (!BUGGY && kind in proto) return proto[kind]; - switch (kind) { - case 'keys': - return function keys() { - return new Constructor(this, kind); - }; - case 'values': - return function values() { - return new Constructor(this, kind); - }; - } - return function entries() { - return new Constructor(this, kind); - }; - }, - TAG = NAME + ' Iterator', - DEF_VALUES = 'values' == DEFAULT, - VALUES_BUG = !1, - proto = Base.prototype, - $native = proto[ITERATOR] || proto['@@iterator'] || (DEFAULT && proto[DEFAULT]), - $default = (!BUGGY && $native) || getMethod(DEFAULT), - $entries = DEFAULT ? (DEF_VALUES ? getMethod('entries') : $default) : void 0, - $anyNative = ('Array' == NAME && proto.entries) || $native; - if ( - ($anyNative && - (IteratorPrototype = getPrototypeOf($anyNative.call(new Base()))) !== Object.prototype && - IteratorPrototype.next && - (setToStringTag(IteratorPrototype, TAG, !0), - LIBRARY || - has(IteratorPrototype, ITERATOR) || - hide(IteratorPrototype, ITERATOR, returnThis)), - DEF_VALUES && - $native && - 'values' !== $native.name && - ((VALUES_BUG = !0), - ($default = function values() { - return $native.call(this); - })), - (LIBRARY && !FORCED) || - (!BUGGY && !VALUES_BUG && proto[ITERATOR]) || - hide(proto, ITERATOR, $default), - (Iterators[NAME] = $default), - (Iterators[TAG] = returnThis), - DEFAULT) - ) - if ( - ((methods = { - values: DEF_VALUES ? $default : getMethod('values'), - keys: IS_SET ? $default : getMethod('keys'), - entries: $entries - }), - FORCED) - ) - for (key in methods) key in proto || redefine(proto, key, methods[key]); - else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); - return methods; - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(413), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = !0; - var _isIterable3 = _interopRequireDefault(__webpack_require__(517)), - _getIterator3 = _interopRequireDefault(__webpack_require__(259)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - exports.default = (function() { - return function(arr, i) { - if (Array.isArray(arr)) return arr; - if ((0, _isIterable3.default)(Object(arr))) - return (function sliceIterator(arr, i) { - var _arr = [], - _n = !0, - _d = !1, - _e = void 0; - try { - for ( - var _s, _i = (0, _getIterator3.default)(arr); - !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); - _n = !0 - ); - } catch (err) { - (_d = !0), (_e = err); - } finally { - try { - !_n && _i.return && _i.return(); - } finally { - if (_d) throw _e; - } - } - return _arr; - })(arr, i); - throw new TypeError('Invalid attempt to destructure non-iterable instance'); - }; - })(); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function genPoddaLoader(fn) { - return function(props, onData, env) { - var _env$context = env.context(), - clientStore = _env$context.clientStore, - processState = function processState() { - try { - var state = clientStore.getAll(), - data = fn(state, props, env); - onData(null, data); - } catch (ex) { - onData(ex); - } - }; - return processState(), clientStore.subscribe(processState); - }; - }); - }, - function(module, exports) { - module.exports = function isObjectLike(value) { - return !!value && 'object' == typeof value; - }; - }, - function(module, exports) { - var MAX_SAFE_INTEGER = 9007199254740991; - module.exports = function isLength(value) { - return 'number' == typeof value && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; - }; - }, - function(module, exports, __webpack_require__) { - var global = __webpack_require__(36), - core = __webpack_require__(67), - hide = __webpack_require__(52), - redefine = __webpack_require__(91), - ctx = __webpack_require__(307), - $export = function(type, name, source) { - var key, - own, - out, - exp, - IS_FORCED = type & $export.F, - IS_GLOBAL = type & $export.G, - IS_STATIC = type & $export.S, - IS_PROTO = type & $export.P, - IS_BIND = type & $export.B, - target = IS_GLOBAL - ? global - : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {}).prototype, - exports = IS_GLOBAL ? core : core[name] || (core[name] = {}), - expProto = exports.prototype || (exports.prototype = {}); - IS_GLOBAL && (source = name); - for (key in source) - (out = ((own = !IS_FORCED && target && void 0 !== target[key]) ? target : source)[key]), - (exp = - IS_BIND && own - ? ctx(out, global) - : IS_PROTO && 'function' == typeof out ? ctx(Function.call, out) : out), - target && redefine(target, key, out, type & $export.U), - exports[key] != out && hide(exports, key, exp), - IS_PROTO && expProto[key] != out && (expProto[key] = out); - }; - (global.core = core), - ($export.F = 1), - ($export.G = 2), - ($export.S = 4), - ($export.P = 8), - ($export.B = 16), - ($export.W = 32), - ($export.U = 64), - ($export.R = 128), - (module.exports = $export); - }, - function(module, exports, __webpack_require__) { - module.exports = - !__webpack_require__(51) && - !__webpack_require__(88)(function() { - return ( - 7 != - Object.defineProperty(__webpack_require__(192)('div'), 'a', { - get: function() { - return 7; - } - }).a - ); - }); - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(68), - document = __webpack_require__(36).document, - is = isObject(document) && isObject(document.createElement); - module.exports = function(it) { - return is ? document.createElement(it) : {}; - }; - }, - function(module, exports, __webpack_require__) { - exports.f = __webpack_require__(38); - }, - function(module, exports, __webpack_require__) { - var has = __webpack_require__(37), - toIObject = __webpack_require__(54), - arrayIndexOf = __webpack_require__(313)(!1), - IE_PROTO = __webpack_require__(131)('IE_PROTO'); - module.exports = function(object, names) { - var key, - O = toIObject(object), - i = 0, - result = []; - for (key in O) key != IE_PROTO && has(O, key) && result.push(key); - for (; names.length > i; ) - has(O, (key = names[i++])) && (~arrayIndexOf(result, key) || result.push(key)); - return result; - }; - }, - function(module, exports) { - module.exports = function(it) { - if (void 0 == it) throw TypeError("Can't call method on " + it); - return it; - }; - }, - function(module, exports) { - var ceil = Math.ceil, - floor = Math.floor; - module.exports = function(it) { - return isNaN((it = +it)) ? 0 : (it > 0 ? floor : ceil)(it); - }; - }, - function(module, exports) { - exports.f = Object.getOwnPropertySymbols; - }, - function(module, exports, __webpack_require__) { - var anObject = __webpack_require__(89), - dPs = __webpack_require__(317), - enumBugKeys = __webpack_require__(132), - IE_PROTO = __webpack_require__(131)('IE_PROTO'), - Empty = function() {}, - createDict = function() { - var iframeDocument, - iframe = __webpack_require__(192)('iframe'), - i = enumBugKeys.length; - for ( - iframe.style.display = 'none', - __webpack_require__(318).appendChild(iframe), - iframe.src = 'javascript:', - (iframeDocument = iframe.contentWindow.document).open(), - iframeDocument.write(''), - iframeDocument.close(), - createDict = iframeDocument.F; - i--; - - ) - delete createDict.prototype[enumBugKeys[i]]; - return createDict(); - }; - module.exports = - Object.create || - function create(O, Properties) { - var result; - return ( - null !== O - ? ((Empty.prototype = anObject(O)), - (result = new Empty()), - (Empty.prototype = null), - (result[IE_PROTO] = O)) - : (result = createDict()), - void 0 === Properties ? result : dPs(result, Properties) - ); - }; - }, - function(module, exports, __webpack_require__) { - var $keys = __webpack_require__(194), - hiddenKeys = __webpack_require__(132).concat('length', 'prototype'); - exports.f = - Object.getOwnPropertyNames || - function getOwnPropertyNames(O) { - return $keys(O, hiddenKeys); - }; - }, - function(module, exports) { - module.exports = {}; - }, - function(module, exports) { - module.exports = 'string' == typeof function foo() {}.name; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var has = __webpack_require__(70), - toPrimitive = __webpack_require__(349), - toStr = Object.prototype.toString, - hasSymbols = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator, - $isNaN = __webpack_require__(204), - $isFinite = __webpack_require__(205), - MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1, - assign = __webpack_require__(135), - sign = __webpack_require__(206), - mod = __webpack_require__(207), - isPrimitive = __webpack_require__(352), - parseInteger = parseInt, - bind = __webpack_require__(39), - arraySlice = bind.call(Function.call, Array.prototype.slice), - strSlice = bind.call(Function.call, String.prototype.slice), - isBinary = bind.call(Function.call, RegExp.prototype.test, /^0b[01]+$/i), - isOctal = bind.call(Function.call, RegExp.prototype.test, /^0o[0-7]+$/i), - regexExec = bind.call(Function.call, RegExp.prototype.exec), - nonWS = ['…', '​', '￾'].join(''), - nonWSregex = new RegExp('[' + nonWS + ']', 'g'), - hasNonWS = bind.call(Function.call, RegExp.prototype.test, nonWSregex), - isInvalidHexLiteral = bind.call(Function.call, RegExp.prototype.test, /^[-+]0x[0-9a-f]+$/i), - ws = ['\t\n\v\f\r   ᠎    ', '          \u2028', '\u2029\ufeff'].join(''), - trimRegex = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g'), - replace = bind.call(Function.call, String.prototype.replace), - ES5 = __webpack_require__(353), - hasRegExpMatcher = __webpack_require__(355), - ES6 = assign(assign({}, ES5), { - Call: function Call(F, V) { - var args = arguments.length > 2 ? arguments[2] : []; - if (!this.IsCallable(F)) throw new TypeError(F + ' is not a function'); - return F.apply(V, args); - }, - ToPrimitive: toPrimitive, - ToNumber: function ToNumber(argument) { - var value = isPrimitive(argument) ? argument : toPrimitive(argument, Number); - if ('symbol' == typeof value) - throw new TypeError('Cannot convert a Symbol value to a number'); - if ('string' == typeof value) { - if (isBinary(value)) return this.ToNumber(parseInteger(strSlice(value, 2), 2)); - if (isOctal(value)) return this.ToNumber(parseInteger(strSlice(value, 2), 8)); - if (hasNonWS(value) || isInvalidHexLiteral(value)) return NaN; - var trimmed = (function(value) { - return replace(value, trimRegex, ''); - })(value); - if (trimmed !== value) return this.ToNumber(trimmed); - } - return Number(value); - }, - ToInt16: function ToInt16(argument) { - var int16bit = this.ToUint16(argument); - return int16bit >= 32768 ? int16bit - 65536 : int16bit; - }, - ToInt8: function ToInt8(argument) { - var int8bit = this.ToUint8(argument); - return int8bit >= 128 ? int8bit - 256 : int8bit; - }, - ToUint8: function ToUint8(argument) { - var number = this.ToNumber(argument); - if ($isNaN(number) || 0 === number || !$isFinite(number)) return 0; - var posInt = sign(number) * Math.floor(Math.abs(number)); - return mod(posInt, 256); - }, - ToUint8Clamp: function ToUint8Clamp(argument) { - var number = this.ToNumber(argument); - if ($isNaN(number) || number <= 0) return 0; - if (number >= 255) return 255; - var f = Math.floor(argument); - return f + 0.5 < number ? f + 1 : number < f + 0.5 ? f : f % 2 != 0 ? f + 1 : f; - }, - ToString: function ToString(argument) { - if ('symbol' == typeof argument) - throw new TypeError('Cannot convert a Symbol value to a string'); - return String(argument); - }, - ToObject: function ToObject(value) { - return this.RequireObjectCoercible(value), Object(value); - }, - ToPropertyKey: function ToPropertyKey(argument) { - var key = this.ToPrimitive(argument, String); - return 'symbol' == typeof key ? key : this.ToString(key); - }, - ToLength: function ToLength(argument) { - var len = this.ToInteger(argument); - return len <= 0 ? 0 : len > MAX_SAFE_INTEGER ? MAX_SAFE_INTEGER : len; - }, - CanonicalNumericIndexString: function CanonicalNumericIndexString(argument) { - if ('[object String]' !== toStr.call(argument)) throw new TypeError('must be a string'); - if ('-0' === argument) return -0; - var n = this.ToNumber(argument); - return this.SameValue(this.ToString(n), argument) ? n : void 0; - }, - RequireObjectCoercible: ES5.CheckObjectCoercible, - IsArray: - Array.isArray || - function IsArray(argument) { - return '[object Array]' === toStr.call(argument); - }, - IsConstructor: function IsConstructor(argument) { - return 'function' == typeof argument && !!argument.prototype; - }, - IsExtensible: function IsExtensible(obj) { - return !Object.preventExtensions || (!isPrimitive(obj) && Object.isExtensible(obj)); - }, - IsInteger: function IsInteger(argument) { - if ('number' != typeof argument || $isNaN(argument) || !$isFinite(argument)) return !1; - var abs = Math.abs(argument); - return Math.floor(abs) === abs; - }, - IsPropertyKey: function IsPropertyKey(argument) { - return 'string' == typeof argument || 'symbol' == typeof argument; - }, - IsRegExp: function IsRegExp(argument) { - if (!argument || 'object' != typeof argument) return !1; - if (hasSymbols) { - var isRegExp = argument[Symbol.match]; - if (void 0 !== isRegExp) return ES5.ToBoolean(isRegExp); - } - return hasRegExpMatcher(argument); - }, - SameValueZero: function SameValueZero(x, y) { - return x === y || ($isNaN(x) && $isNaN(y)); - }, - GetV: function GetV(V, P) { - if (!this.IsPropertyKey(P)) - throw new TypeError('Assertion failed: IsPropertyKey(P) is not true'); - return this.ToObject(V)[P]; - }, - GetMethod: function GetMethod(O, P) { - if (!this.IsPropertyKey(P)) - throw new TypeError('Assertion failed: IsPropertyKey(P) is not true'); - var func = this.GetV(O, P); - if (null != func) { - if (!this.IsCallable(func)) throw new TypeError(P + 'is not a function'); - return func; - } - }, - Get: function Get(O, P) { - if ('Object' !== this.Type(O)) - throw new TypeError('Assertion failed: Type(O) is not Object'); - if (!this.IsPropertyKey(P)) - throw new TypeError('Assertion failed: IsPropertyKey(P) is not true'); - return O[P]; - }, - Type: function Type(x) { - return 'symbol' == typeof x ? 'Symbol' : ES5.Type(x); - }, - SpeciesConstructor: function SpeciesConstructor(O, defaultConstructor) { - if ('Object' !== this.Type(O)) - throw new TypeError('Assertion failed: Type(O) is not Object'); - var C = O.constructor; - if (void 0 === C) return defaultConstructor; - if ('Object' !== this.Type(C)) throw new TypeError('O.constructor is not an Object'); - var S = hasSymbols && Symbol.species ? C[Symbol.species] : void 0; - if (null == S) return defaultConstructor; - if (this.IsConstructor(S)) return S; - throw new TypeError('no constructor found'); - }, - CompletePropertyDescriptor: function CompletePropertyDescriptor(Desc) { - if (!this.IsPropertyDescriptor(Desc)) - throw new TypeError('Desc must be a Property Descriptor'); - return ( - this.IsGenericDescriptor(Desc) || this.IsDataDescriptor(Desc) - ? (has(Desc, '[[Value]]') || (Desc['[[Value]]'] = void 0), - has(Desc, '[[Writable]]') || (Desc['[[Writable]]'] = !1)) - : (has(Desc, '[[Get]]') || (Desc['[[Get]]'] = void 0), - has(Desc, '[[Set]]') || (Desc['[[Set]]'] = void 0)), - has(Desc, '[[Enumerable]]') || (Desc['[[Enumerable]]'] = !1), - has(Desc, '[[Configurable]]') || (Desc['[[Configurable]]'] = !1), - Desc - ); - }, - Set: function Set(O, P, V, Throw) { - if ('Object' !== this.Type(O)) throw new TypeError('O must be an Object'); - if (!this.IsPropertyKey(P)) throw new TypeError('P must be a Property Key'); - if ('Boolean' !== this.Type(Throw)) throw new TypeError('Throw must be a Boolean'); - if (Throw) return (O[P] = V), !0; - try { - O[P] = V; - } catch (e) { - return !1; - } - }, - HasOwnProperty: function HasOwnProperty(O, P) { - if ('Object' !== this.Type(O)) throw new TypeError('O must be an Object'); - if (!this.IsPropertyKey(P)) throw new TypeError('P must be a Property Key'); - return has(O, P); - }, - HasProperty: function HasProperty(O, P) { - if ('Object' !== this.Type(O)) throw new TypeError('O must be an Object'); - if (!this.IsPropertyKey(P)) throw new TypeError('P must be a Property Key'); - return P in O; - }, - IsConcatSpreadable: function IsConcatSpreadable(O) { - if ('Object' !== this.Type(O)) return !1; - if (hasSymbols && 'symbol' == typeof Symbol.isConcatSpreadable) { - var spreadable = this.Get(O, Symbol.isConcatSpreadable); - if (void 0 !== spreadable) return this.ToBoolean(spreadable); - } - return this.IsArray(O); - }, - Invoke: function Invoke(O, P) { - if (!this.IsPropertyKey(P)) throw new TypeError('P must be a Property Key'); - var argumentsList = arraySlice(arguments, 2), - func = this.GetV(O, P); - return this.Call(func, O, argumentsList); - }, - CreateIterResultObject: function CreateIterResultObject(value, done) { - if ('Boolean' !== this.Type(done)) - throw new TypeError('Assertion failed: Type(done) is not Boolean'); - return { value: value, done: done }; - }, - RegExpExec: function RegExpExec(R, S) { - if ('Object' !== this.Type(R)) throw new TypeError('R must be an Object'); - if ('String' !== this.Type(S)) throw new TypeError('S must be a String'); - var exec = this.Get(R, 'exec'); - if (this.IsCallable(exec)) { - var result = this.Call(exec, R, [S]); - if (null === result || 'Object' === this.Type(result)) return result; - throw new TypeError('"exec" method must return `null` or an Object'); - } - return regexExec(R, S); - }, - ArraySpeciesCreate: function ArraySpeciesCreate(originalArray, length) { - if (!this.IsInteger(length) || length < 0) - throw new TypeError('Assertion failed: length must be an integer >= 0'); - var C, - len = 0 === length ? 0 : length; - if ( - (this.IsArray(originalArray) && - ((C = this.Get(originalArray, 'constructor')), - 'Object' === this.Type(C) && - hasSymbols && - Symbol.species && - null === (C = this.Get(C, Symbol.species)) && - (C = void 0)), - void 0 === C) - ) - return Array(len); - if (!this.IsConstructor(C)) throw new TypeError('C must be a constructor'); - return new C(len); - }, - CreateDataProperty: function CreateDataProperty(O, P, V) { - if ('Object' !== this.Type(O)) - throw new TypeError('Assertion failed: Type(O) is not Object'); - if (!this.IsPropertyKey(P)) - throw new TypeError('Assertion failed: IsPropertyKey(P) is not true'); - var oldDesc = Object.getOwnPropertyDescriptor(O, P), - extensible = - oldDesc || 'function' != typeof Object.isExtensible || Object.isExtensible(O); - if ((oldDesc && (!oldDesc.writable || !oldDesc.configurable)) || !extensible) return !1; - var newDesc = { configurable: !0, enumerable: !0, value: V, writable: !0 }; - return Object.defineProperty(O, P, newDesc), !0; - }, - CreateDataPropertyOrThrow: function CreateDataPropertyOrThrow(O, P, V) { - if ('Object' !== this.Type(O)) - throw new TypeError('Assertion failed: Type(O) is not Object'); - if (!this.IsPropertyKey(P)) - throw new TypeError('Assertion failed: IsPropertyKey(P) is not true'); - var success = this.CreateDataProperty(O, P, V); - if (!success) throw new TypeError('unable to create data property'); - return success; - }, - AdvanceStringIndex: function AdvanceStringIndex(S, index, unicode) { - if ('String' !== this.Type(S)) - throw new TypeError('Assertion failed: Type(S) is not String'); - if (!this.IsInteger(index)) - throw new TypeError( - 'Assertion failed: length must be an integer >= 0 and <= (2**53 - 1)' - ); - if (index < 0 || index > MAX_SAFE_INTEGER) - throw new RangeError( - 'Assertion failed: length must be an integer >= 0 and <= (2**53 - 1)' - ); - if ('Boolean' !== this.Type(unicode)) - throw new TypeError('Assertion failed: Type(unicode) is not Boolean'); - if (!unicode) return index + 1; - if (index + 1 >= S.length) return index + 1; - var first = S.charCodeAt(index); - if (first < 55296 || first > 56319) return index + 1; - var second = S.charCodeAt(index + 1); - return second < 56320 || second > 57343 ? index + 1 : index + 2; - } - }); - delete ES6.CheckObjectCoercible, (module.exports = ES6); - }, - function(module, exports) { - module.exports = function isPrimitive(value) { - return null === value || ('function' != typeof value && 'object' != typeof value); - }; - }, - function(module, exports) { - module.exports = - Number.isNaN || - function isNaN(a) { - return a != a; - }; - }, - function(module, exports) { - var $isNaN = - Number.isNaN || - function(a) { - return a != a; - }; - module.exports = - Number.isFinite || - function(x) { - return 'number' == typeof x && !$isNaN(x) && x !== 1 / 0 && x !== -1 / 0; - }; - }, - function(module, exports) { - module.exports = function sign(number) { - return number >= 0 ? 1 : -1; - }; - }, - function(module, exports) { - module.exports = function mod(number, modulo) { - var remain = number % modulo; - return Math.floor(remain >= 0 ? remain : remain + modulo); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ES2015 = __webpack_require__(202), - assign = __webpack_require__(135), - ES2016 = assign(assign({}, ES2015), { - SameValueNonNumber: function SameValueNonNumber(x, y) { - if ('number' == typeof x || typeof x != typeof y) - throw new TypeError( - 'SameValueNonNumber requires two non-number values of the same type.' - ); - return this.SameValue(x, y); - } - }); - module.exports = ES2016; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ES2016 = __webpack_require__(208), - assign = __webpack_require__(135), - ES2017 = assign(assign({}, ES2016), { - ToIndex: function ToIndex(value) { - if (void 0 === value) return 0; - var integerIndex = this.ToInteger(value); - if (integerIndex < 0) throw new RangeError('index must be >= 0'); - var index = this.ToLength(integerIndex); - if (!this.SameValueZero(integerIndex, index)) - throw new RangeError('index must be >= 0 and < 2 ** 53 - 1'); - return index; - } - }); - delete ES2017.EnumerableOwnNames, (module.exports = ES2017); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(71), - _assign = __webpack_require__(9), - ReactNoopUpdateQueue = __webpack_require__(211), - emptyObject = (__webpack_require__(212), __webpack_require__(93)); - __webpack_require__(3), __webpack_require__(382); - function ReactComponent(props, context, updater) { - (this.props = props), - (this.context = context), - (this.refs = emptyObject), - (this.updater = updater || ReactNoopUpdateQueue); - } - function ReactPureComponent(props, context, updater) { - (this.props = props), - (this.context = context), - (this.refs = emptyObject), - (this.updater = updater || ReactNoopUpdateQueue); - } - function ComponentDummy() {} - (ReactComponent.prototype.isReactComponent = {}), - (ReactComponent.prototype.setState = function(partialState, callback) { - 'object' != typeof partialState && - 'function' != typeof partialState && - null != partialState && - _prodInvariant('85'), - this.updater.enqueueSetState(this, partialState), - callback && this.updater.enqueueCallback(this, callback, 'setState'); - }), - (ReactComponent.prototype.forceUpdate = function(callback) { - this.updater.enqueueForceUpdate(this), - callback && this.updater.enqueueCallback(this, callback, 'forceUpdate'); - }), - (ComponentDummy.prototype = ReactComponent.prototype), - (ReactPureComponent.prototype = new ComponentDummy()), - (ReactPureComponent.prototype.constructor = ReactPureComponent), - _assign(ReactPureComponent.prototype, ReactComponent.prototype), - (ReactPureComponent.prototype.isPureReactComponent = !0), - (module.exports = { Component: ReactComponent, PureComponent: ReactPureComponent }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(6); - var ReactNoopUpdateQueue = { - isMounted: function(publicInstance) { - return !1; - }, - enqueueCallback: function(publicInstance, callback) {}, - enqueueForceUpdate: function(publicInstance) {}, - enqueueReplaceState: function(publicInstance, completeState) {}, - enqueueSetState: function(publicInstance, partialState) {} - }; - module.exports = ReactNoopUpdateQueue; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var canDefineProperty = !1; - module.exports = canDefineProperty; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var REACT_ELEMENT_TYPE = - ('function' == typeof Symbol && Symbol.for && Symbol.for('react.element')) || 60103; - module.exports = REACT_ELEMENT_TYPE; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var factory = __webpack_require__(390); - module.exports = function(isValidElement) { - return factory(isValidElement, !1); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - }, - function(module, exports, __webpack_require__) { - var has = __webpack_require__(41), - toIObject = __webpack_require__(46), - arrayIndexOf = __webpack_require__(397)(!1), - IE_PROTO = __webpack_require__(140)('IE_PROTO'); - module.exports = function(object, names) { - var key, - O = toIObject(object), - i = 0, - result = []; - for (key in O) key != IE_PROTO && has(O, key) && result.push(key); - for (; names.length > i; ) - has(O, (key = names[i++])) && (~arrayIndexOf(result, key) || result.push(key)); - return result; - }; - }, - function(module, exports, __webpack_require__) { - module.exports = - !__webpack_require__(29) && - !__webpack_require__(43)(function() { - return ( - 7 != - Object.defineProperty(__webpack_require__(143)('div'), 'a', { - get: function() { - return 7; - } - }).a - ); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var getKeys = __webpack_require__(72), - gOPS = __webpack_require__(145), - pIE = __webpack_require__(96), - toObject = __webpack_require__(58), - IObject = __webpack_require__(138), - $assign = Object.assign; - module.exports = - !$assign || - __webpack_require__(43)(function() { - var A = {}, - B = {}, - S = Symbol(), - K = 'abcdefghijklmnopqrst'; - return ( - (A[S] = 7), - K.split('').forEach(function(k) { - B[k] = k; - }), - 7 != $assign({}, A)[S] || Object.keys($assign({}, B)).join('') != K - ); - }) - ? function assign(target, source) { - for ( - var T = toObject(target), - aLen = arguments.length, - index = 1, - getSymbols = gOPS.f, - isEnum = pIE.f; - aLen > index; - - ) - for ( - var key, - S = IObject(arguments[index++]), - keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S), - length = keys.length, - j = 0; - length > j; - - ) - isEnum.call(S, (key = keys[j++])) && (T[key] = S[key]); - return T; - } - : $assign; - }, - function(module, exports, __webpack_require__) { - var has = __webpack_require__(41), - toObject = __webpack_require__(58), - IE_PROTO = __webpack_require__(140)('IE_PROTO'), - ObjectProto = Object.prototype; - module.exports = - Object.getPrototypeOf || - function(O) { - return ( - (O = toObject(O)), - has(O, IE_PROTO) - ? O[IE_PROTO] - : 'function' == typeof O.constructor && O instanceof O.constructor - ? O.constructor.prototype - : O instanceof Object ? ObjectProto : null - ); - }; - }, - function(module, exports, __webpack_require__) { - var document = __webpack_require__(17).document; - module.exports = document && document.documentElement; - }, - function(module, exports, __webpack_require__) { - var cof = __webpack_require__(73); - module.exports = - Array.isArray || - function isArray(arg) { - return 'Array' == cof(arg); - }; - }, - function(module, exports, __webpack_require__) { - var $keys = __webpack_require__(216), - hiddenKeys = __webpack_require__(142).concat('length', 'prototype'); - exports.f = - Object.getOwnPropertyNames || - function getOwnPropertyNames(O) { - return $keys(O, hiddenKeys); - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(427), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - var anObject = __webpack_require__(24); - module.exports = function(iterator, fn, value, entries) { - try { - return entries ? fn(anObject(value)[0], value[1]) : fn(value); - } catch (e) { - var ret = iterator.return; - throw (void 0 !== ret && anObject(ret.call(iterator)), e); - } - }; - }, - function(module, exports, __webpack_require__) { - var Iterators = __webpack_require__(59), - ITERATOR = __webpack_require__(18)('iterator'), - ArrayProto = Array.prototype; - module.exports = function(it) { - return void 0 !== it && (Iterators.Array === it || ArrayProto[ITERATOR] === it); - }; - }, - function(module, exports, __webpack_require__) { - var anObject = __webpack_require__(24), - aFunction = __webpack_require__(74), - SPECIES = __webpack_require__(18)('species'); - module.exports = function(O, D) { - var S, - C = anObject(O).constructor; - return void 0 === C || void 0 == (S = anObject(C)[SPECIES]) ? D : aFunction(S); - }; - }, - function(module, exports, __webpack_require__) { - var defer, - channel, - port, - ctx = __webpack_require__(35), - invoke = __webpack_require__(429), - html = __webpack_require__(220), - cel = __webpack_require__(143), - global = __webpack_require__(17), - process = global.process, - setTask = global.setImmediate, - clearTask = global.clearImmediate, - MessageChannel = global.MessageChannel, - Dispatch = global.Dispatch, - counter = 0, - queue = {}, - run = function() { - var id = +this; - if (queue.hasOwnProperty(id)) { - var fn = queue[id]; - delete queue[id], fn(); - } - }, - listener = function(event) { - run.call(event.data); - }; - (setTask && clearTask) || - ((setTask = function setImmediate(fn) { - for (var args = [], i = 1; arguments.length > i; ) args.push(arguments[i++]); - return ( - (queue[++counter] = function() { - invoke('function' == typeof fn ? fn : Function(fn), args); - }), - defer(counter), - counter - ); - }), - (clearTask = function clearImmediate(id) { - delete queue[id]; - }), - 'process' == __webpack_require__(73)(process) - ? (defer = function(id) { - process.nextTick(ctx(run, id, 1)); - }) - : Dispatch && Dispatch.now - ? (defer = function(id) { - Dispatch.now(ctx(run, id, 1)); - }) - : MessageChannel - ? ((port = (channel = new MessageChannel()).port2), - (channel.port1.onmessage = listener), - (defer = ctx(port.postMessage, port, 1))) - : global.addEventListener && 'function' == typeof postMessage && !global.importScripts - ? ((defer = function(id) { - global.postMessage(id + '', '*'); - }), - global.addEventListener('message', listener, !1)) - : (defer = - 'onreadystatechange' in cel('script') - ? function(id) { - html.appendChild(cel('script')).onreadystatechange = function() { - html.removeChild(this), run.call(id); - }; - } - : function(id) { - setTimeout(ctx(run, id, 1), 0); - })), - (module.exports = { set: setTask, clear: clearTask }); - }, - function(module, exports) { - module.exports = function(exec) { - try { - return { e: !1, v: exec() }; - } catch (e) { - return { e: !0, v: e }; - } - }; - }, - function(module, exports, __webpack_require__) { - var anObject = __webpack_require__(24), - isObject = __webpack_require__(20), - newPromiseCapability = __webpack_require__(152); - module.exports = function(C, x) { - if ((anObject(C), isObject(x) && x.constructor === C)) return x; - var promiseCapability = newPromiseCapability.f(C); - return (0, promiseCapability.resolve)(x), promiseCapability.promise; - }; - }, - function(module, exports, __webpack_require__) { - var ITERATOR = __webpack_require__(18)('iterator'), - SAFE_CLOSING = !1; - try { - var riter = [7][ITERATOR](); - (riter.return = function() { - SAFE_CLOSING = !0; - }), - Array.from(riter, function() { - throw 2; - }); - } catch (e) {} - module.exports = function(exec, skipClosing) { - if (!skipClosing && !SAFE_CLOSING) return !1; - var safe = !1; - try { - var arr = [7], - iter = arr[ITERATOR](); - (iter.next = function() { - return { done: (safe = !0) }; - }), - (arr[ITERATOR] = function() { - return iter; - }), - exec(arr); - } catch (e) {} - return safe; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var stringify = __webpack_require__(438), - parse = __webpack_require__(439), - formats = __webpack_require__(233); - module.exports = { formats: formats, parse: parse, stringify: stringify }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var has = Object.prototype.hasOwnProperty, - hexTable = (function() { - for (var array = [], i = 0; i < 256; ++i) - array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); - return array; - })(); - (exports.arrayToObject = function arrayToObject(source, options) { - for ( - var obj = options && options.plainObjects ? Object.create(null) : {}, i = 0; - i < source.length; - ++i - ) - void 0 !== source[i] && (obj[i] = source[i]); - return obj; - }), - (exports.merge = function merge(target, source, options) { - if (!source) return target; - if ('object' != typeof source) { - if (Array.isArray(target)) target.push(source); - else { - if ('object' != typeof target) return [target, source]; - (options.plainObjects || - options.allowPrototypes || - !has.call(Object.prototype, source)) && - (target[source] = !0); - } - return target; - } - if ('object' != typeof target) return [target].concat(source); - var mergeTarget = target; - return ( - Array.isArray(target) && - !Array.isArray(source) && - (mergeTarget = exports.arrayToObject(target, options)), - Array.isArray(target) && Array.isArray(source) - ? (source.forEach(function(item, i) { - has.call(target, i) - ? target[i] && 'object' == typeof target[i] - ? (target[i] = exports.merge(target[i], item, options)) - : target.push(item) - : (target[i] = item); - }), - target) - : Object.keys(source).reduce(function(acc, key) { - var value = source[key]; - return ( - has.call(acc, key) - ? (acc[key] = exports.merge(acc[key], value, options)) - : (acc[key] = value), - acc - ); - }, mergeTarget) - ); - }), - (exports.assign = function assignSingleSource(target, source) { - return Object.keys(source).reduce(function(acc, key) { - return (acc[key] = source[key]), acc; - }, target); - }), - (exports.decode = function(str) { - try { - return decodeURIComponent(str.replace(/\+/g, ' ')); - } catch (e) { - return str; - } - }), - (exports.encode = function encode(str) { - if (0 === str.length) return str; - for ( - var string = 'string' == typeof str ? str : String(str), out = '', i = 0; - i < string.length; - ++i - ) { - var c = string.charCodeAt(i); - 45 === c || - 46 === c || - 95 === c || - 126 === c || - (c >= 48 && c <= 57) || - (c >= 65 && c <= 90) || - (c >= 97 && c <= 122) - ? (out += string.charAt(i)) - : c < 128 - ? (out += hexTable[c]) - : c < 2048 - ? (out += hexTable[192 | (c >> 6)] + hexTable[128 | (63 & c)]) - : c < 55296 || c >= 57344 - ? (out += - hexTable[224 | (c >> 12)] + - hexTable[128 | ((c >> 6) & 63)] + - hexTable[128 | (63 & c)]) - : ((i += 1), - (c = 65536 + (((1023 & c) << 10) | (1023 & string.charCodeAt(i)))), - (out += - hexTable[240 | (c >> 18)] + - hexTable[128 | ((c >> 12) & 63)] + - hexTable[128 | ((c >> 6) & 63)] + - hexTable[128 | (63 & c)])); - } - return out; - }), - (exports.compact = function compact(value) { - for ( - var queue = [{ obj: { o: value }, prop: 'o' }], refs = [], i = 0; - i < queue.length; - ++i - ) - for ( - var item = queue[i], obj = item.obj[item.prop], keys = Object.keys(obj), j = 0; - j < keys.length; - ++j - ) { - var key = keys[j], - val = obj[key]; - 'object' == typeof val && - null !== val && - -1 === refs.indexOf(val) && - (queue.push({ obj: obj, prop: key }), refs.push(val)); - } - return (function compactQueue(queue) { - for (var obj; queue.length; ) { - var item = queue.pop(); - if (((obj = item.obj[item.prop]), Array.isArray(obj))) { - for (var compacted = [], j = 0; j < obj.length; ++j) - void 0 !== obj[j] && compacted.push(obj[j]); - item.obj[item.prop] = compacted; - } - } - return obj; - })(queue); - }), - (exports.isRegExp = function isRegExp(obj) { - return '[object RegExp]' === Object.prototype.toString.call(obj); - }), - (exports.isBuffer = function isBuffer(obj) { - return ( - null !== obj && - void 0 !== obj && - !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)) - ); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var replace = String.prototype.replace, - percentTwenties = /%20/g; - module.exports = { - default: 'RFC3986', - formatters: { - RFC1738: function(value) { - return replace.call(value, percentTwenties, '+'); - }, - RFC3986: function(value) { - return value; - } - }, - RFC1738: 'RFC1738', - RFC3986: 'RFC3986' - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = { hasCachedChildNodes: 1 }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7); - __webpack_require__(3); - module.exports = function accumulateInto(current, next) { - return ( - null == next && _prodInvariant('30'), - null == current - ? next - : Array.isArray(current) - ? Array.isArray(next) - ? (current.push.apply(current, next), current) - : (current.push(next), current) - : Array.isArray(next) ? [current].concat(next) : [current, next] - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function forEachAccumulated(arr, cb, scope) { - Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ExecutionEnvironment = __webpack_require__(19), - contentKey = null; - module.exports = function getTextContentAccessor() { - return ( - !contentKey && - ExecutionEnvironment.canUseDOM && - (contentKey = 'textContent' in document.documentElement ? 'textContent' : 'innerText'), - contentKey - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7); - var PooledClass = __webpack_require__(47), - CallbackQueue = (__webpack_require__(3), - (function() { - function CallbackQueue(arg) { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, CallbackQueue), - (this._callbacks = null), - (this._contexts = null), - (this._arg = arg); - } - return ( - (CallbackQueue.prototype.enqueue = function enqueue(callback, context) { - (this._callbacks = this._callbacks || []), - this._callbacks.push(callback), - (this._contexts = this._contexts || []), - this._contexts.push(context); - }), - (CallbackQueue.prototype.notifyAll = function notifyAll() { - var callbacks = this._callbacks, - contexts = this._contexts, - arg = this._arg; - if (callbacks && contexts) { - callbacks.length !== contexts.length && _prodInvariant('24'), - (this._callbacks = null), - (this._contexts = null); - for (var i = 0; i < callbacks.length; i++) callbacks[i].call(contexts[i], arg); - (callbacks.length = 0), (contexts.length = 0); - } - }), - (CallbackQueue.prototype.checkpoint = function checkpoint() { - return this._callbacks ? this._callbacks.length : 0; - }), - (CallbackQueue.prototype.rollback = function rollback(len) { - this._callbacks && - this._contexts && - ((this._callbacks.length = len), (this._contexts.length = len)); - }), - (CallbackQueue.prototype.reset = function reset() { - (this._callbacks = null), (this._contexts = null); - }), - (CallbackQueue.prototype.destructor = function destructor() { - this.reset(); - }), - CallbackQueue - ); - })()); - module.exports = PooledClass.addPoolingTo(CallbackQueue); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = { logTopLevelRenders: !1 }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactDOMComponentTree = __webpack_require__(13); - function isCheckable(elem) { - var type = elem.type, - nodeName = elem.nodeName; - return ( - nodeName && 'input' === nodeName.toLowerCase() && ('checkbox' === type || 'radio' === type) - ); - } - function getTracker(inst) { - return inst._wrapperState.valueTracker; - } - var inputValueTracking = { - _getTrackerFromNode: function(node) { - return getTracker(ReactDOMComponentTree.getInstanceFromNode(node)); - }, - track: function(inst) { - if (!getTracker(inst)) { - var node = ReactDOMComponentTree.getNodeFromInstance(inst), - valueField = isCheckable(node) ? 'checked' : 'value', - descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField), - currentValue = '' + node[valueField]; - node.hasOwnProperty(valueField) || - 'function' != typeof descriptor.get || - 'function' != typeof descriptor.set || - (Object.defineProperty(node, valueField, { - enumerable: descriptor.enumerable, - configurable: !0, - get: function() { - return descriptor.get.call(this); - }, - set: function(value) { - (currentValue = '' + value), descriptor.set.call(this, value); - } - }), - (function attachTracker(inst, tracker) { - inst._wrapperState.valueTracker = tracker; - })(inst, { - getValue: function() { - return currentValue; - }, - setValue: function(value) { - currentValue = '' + value; - }, - stopTracking: function() { - !(function detachTracker(inst) { - inst._wrapperState.valueTracker = null; - })(inst), - delete node[valueField]; - } - })); - } - }, - updateValueIfChanged: function(inst) { - if (!inst) return !1; - var tracker = getTracker(inst); - if (!tracker) return inputValueTracking.track(inst), !0; - var lastValue = tracker.getValue(), - nextValue = (function getValueFromNode(node) { - var value; - return node && (value = isCheckable(node) ? '' + node.checked : node.value), value; - })(ReactDOMComponentTree.getNodeFromInstance(inst)); - return nextValue !== lastValue && (tracker.setValue(nextValue), !0); - }, - stopTracking: function(inst) { - var tracker = getTracker(inst); - tracker && tracker.stopTracking(); - } - }; - module.exports = inputValueTracking; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var supportedInputTypes = { - 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 - }; - module.exports = function isTextInputElement(elem) { - var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); - return 'input' === nodeName ? !!supportedInputTypes[elem.type] : 'textarea' === nodeName; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ViewportMetrics = { - currentScrollLeft: 0, - currentScrollTop: 0, - refreshScrollValues: function(scrollPosition) { - (ViewportMetrics.currentScrollLeft = scrollPosition.x), - (ViewportMetrics.currentScrollTop = scrollPosition.y); - } - }; - module.exports = ViewportMetrics; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ExecutionEnvironment = __webpack_require__(19), - escapeTextContentForBrowser = __webpack_require__(101), - setInnerHTML = __webpack_require__(100), - setTextContent = function(node, text) { - if (text) { - var firstChild = node.firstChild; - if (firstChild && firstChild === node.lastChild && 3 === firstChild.nodeType) - return void (firstChild.nodeValue = text); - } - node.textContent = text; - }; - ExecutionEnvironment.canUseDOM && - ('textContent' in document.documentElement || - (setTextContent = function(node, text) { - 3 !== node.nodeType - ? setInnerHTML(node, escapeTextContentForBrowser(text)) - : (node.nodeValue = text); - })), - (module.exports = setTextContent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function focusNode(node) { - try { - node.focus(); - } catch (e) {} - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var isUnitlessNumber = { - animationIterationCount: !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, - 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 - }; - var prefixes = ['Webkit', 'ms', 'Moz', 'O']; - Object.keys(isUnitlessNumber).forEach(function(prop) { - prefixes.forEach(function(prefix) { - isUnitlessNumber[ - (function prefixKey(prefix, key) { - return prefix + key.charAt(0).toUpperCase() + key.substring(1); - })(prefix, prop) - ] = - isUnitlessNumber[prop]; - }); - }); - var CSSProperty = { - isUnitlessNumber: isUnitlessNumber, - shorthandPropertyExpansions: { - background: { - backgroundAttachment: !0, - backgroundColor: !0, - backgroundImage: !0, - backgroundPositionX: !0, - backgroundPositionY: !0, - backgroundRepeat: !0 - }, - backgroundPosition: { backgroundPositionX: !0, backgroundPositionY: !0 }, - border: { borderWidth: !0, borderStyle: !0, borderColor: !0 }, - borderBottom: { borderBottomWidth: !0, borderBottomStyle: !0, borderBottomColor: !0 }, - borderLeft: { borderLeftWidth: !0, borderLeftStyle: !0, borderLeftColor: !0 }, - borderRight: { borderRightWidth: !0, borderRightStyle: !0, borderRightColor: !0 }, - borderTop: { borderTopWidth: !0, borderTopStyle: !0, borderTopColor: !0 }, - font: { - fontStyle: !0, - fontVariant: !0, - fontWeight: !0, - fontSize: !0, - lineHeight: !0, - fontFamily: !0 - }, - outline: { outlineWidth: !0, outlineStyle: !0, outlineColor: !0 } - } - }; - module.exports = CSSProperty; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var DOMProperty = __webpack_require__(60), - quoteAttributeValueForBrowser = (__webpack_require__(13), - __webpack_require__(25), - __webpack_require__(465)), - VALID_ATTRIBUTE_NAME_REGEX = (__webpack_require__(6), - new RegExp( - '^[' + - DOMProperty.ATTRIBUTE_NAME_START_CHAR + - '][' + - DOMProperty.ATTRIBUTE_NAME_CHAR + - ']*$' - )), - illegalAttributeNameCache = {}, - validatedAttributeNameCache = {}; - function isAttributeNameSafe(attributeName) { - return ( - !!validatedAttributeNameCache.hasOwnProperty(attributeName) || - (!illegalAttributeNameCache.hasOwnProperty(attributeName) && - (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName) - ? ((validatedAttributeNameCache[attributeName] = !0), !0) - : ((illegalAttributeNameCache[attributeName] = !0), !1))) - ); - } - function shouldIgnoreValue(propertyInfo, value) { - return ( - null == value || - (propertyInfo.hasBooleanValue && !value) || - (propertyInfo.hasNumericValue && isNaN(value)) || - (propertyInfo.hasPositiveNumericValue && value < 1) || - (propertyInfo.hasOverloadedBooleanValue && !1 === value) - ); - } - var DOMPropertyOperations = { - createMarkupForID: function(id) { - return DOMProperty.ID_ATTRIBUTE_NAME + '=' + quoteAttributeValueForBrowser(id); - }, - setAttributeForID: function(node, id) { - node.setAttribute(DOMProperty.ID_ATTRIBUTE_NAME, id); - }, - createMarkupForRoot: function() { - return DOMProperty.ROOT_ATTRIBUTE_NAME + '=""'; - }, - setAttributeForRoot: function(node) { - node.setAttribute(DOMProperty.ROOT_ATTRIBUTE_NAME, ''); - }, - createMarkupForProperty: function(name, value) { - var propertyInfo = DOMProperty.properties.hasOwnProperty(name) - ? DOMProperty.properties[name] - : null; - if (propertyInfo) { - if (shouldIgnoreValue(propertyInfo, value)) return ''; - var attributeName = propertyInfo.attributeName; - return propertyInfo.hasBooleanValue || - (propertyInfo.hasOverloadedBooleanValue && !0 === value) - ? attributeName + '=""' - : attributeName + '=' + quoteAttributeValueForBrowser(value); - } - return DOMProperty.isCustomAttribute(name) - ? null == value ? '' : name + '=' + quoteAttributeValueForBrowser(value) - : null; - }, - createMarkupForCustomAttribute: function(name, value) { - return isAttributeNameSafe(name) && null != value - ? name + '=' + quoteAttributeValueForBrowser(value) - : ''; - }, - setValueForProperty: function(node, name, value) { - var propertyInfo = DOMProperty.properties.hasOwnProperty(name) - ? DOMProperty.properties[name] - : null; - if (propertyInfo) { - var mutationMethod = propertyInfo.mutationMethod; - if (mutationMethod) mutationMethod(node, value); - else { - if (shouldIgnoreValue(propertyInfo, value)) - return void this.deleteValueForProperty(node, name); - if (propertyInfo.mustUseProperty) node[propertyInfo.propertyName] = value; - else { - var attributeName = propertyInfo.attributeName, - namespace = propertyInfo.attributeNamespace; - namespace - ? node.setAttributeNS(namespace, attributeName, '' + value) - : propertyInfo.hasBooleanValue || - (propertyInfo.hasOverloadedBooleanValue && !0 === value) - ? node.setAttribute(attributeName, '') - : node.setAttribute(attributeName, '' + value); - } - } - } else if (DOMProperty.isCustomAttribute(name)) - return void DOMPropertyOperations.setValueForAttribute(node, name, value); - }, - setValueForAttribute: function(node, name, value) { - isAttributeNameSafe(name) && - (null == value ? node.removeAttribute(name) : node.setAttribute(name, '' + value)); - }, - deleteValueForAttribute: function(node, name) { - node.removeAttribute(name); - }, - deleteValueForProperty: function(node, name) { - var propertyInfo = DOMProperty.properties.hasOwnProperty(name) - ? DOMProperty.properties[name] - : null; - if (propertyInfo) { - var mutationMethod = propertyInfo.mutationMethod; - if (mutationMethod) mutationMethod(node, void 0); - else if (propertyInfo.mustUseProperty) { - var propName = propertyInfo.propertyName; - propertyInfo.hasBooleanValue ? (node[propName] = !1) : (node[propName] = ''); - } else node.removeAttribute(propertyInfo.attributeName); - } else DOMProperty.isCustomAttribute(name) && node.removeAttribute(name); - } - }; - module.exports = DOMPropertyOperations; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - LinkedValueUtils = __webpack_require__(162), - ReactDOMComponentTree = __webpack_require__(13), - ReactUpdates = __webpack_require__(30), - didWarnValueDefaultValue = (__webpack_require__(6), !1); - function updateOptionsIfPendingUpdateAndMounted() { - if (this._rootNodeID && this._wrapperState.pendingUpdate) { - this._wrapperState.pendingUpdate = !1; - var props = this._currentElement.props, - value = LinkedValueUtils.getValue(props); - null != value && updateOptions(this, Boolean(props.multiple), value); - } - } - function updateOptions(inst, multiple, propValue) { - var selectedValue, - i, - options = ReactDOMComponentTree.getNodeFromInstance(inst).options; - if (multiple) { - for (selectedValue = {}, i = 0; i < propValue.length; i++) - selectedValue['' + propValue[i]] = !0; - for (i = 0; i < options.length; i++) { - var selected = selectedValue.hasOwnProperty(options[i].value); - options[i].selected !== selected && (options[i].selected = selected); - } - } else { - for (selectedValue = '' + propValue, i = 0; i < options.length; i++) - if (options[i].value === selectedValue) return void (options[i].selected = !0); - options.length && (options[0].selected = !0); - } - } - var ReactDOMSelect = { - getHostProps: function(inst, props) { - return _assign({}, props, { onChange: inst._wrapperState.onChange, value: void 0 }); - }, - mountWrapper: function(inst, props) { - var value = LinkedValueUtils.getValue(props); - (inst._wrapperState = { - pendingUpdate: !1, - initialValue: null != value ? value : props.defaultValue, - listeners: null, - onChange: function _handleChange(event) { - var props = this._currentElement.props, - returnValue = LinkedValueUtils.executeOnChange(props, event); - this._rootNodeID && (this._wrapperState.pendingUpdate = !0); - return ReactUpdates.asap(updateOptionsIfPendingUpdateAndMounted, this), returnValue; - }.bind(inst), - wasMultiple: Boolean(props.multiple) - }), - void 0 === props.value || - void 0 === props.defaultValue || - didWarnValueDefaultValue || - (didWarnValueDefaultValue = !0); - }, - getSelectValueContext: function(inst) { - return inst._wrapperState.initialValue; - }, - postUpdateWrapper: function(inst) { - var props = inst._currentElement.props; - inst._wrapperState.initialValue = void 0; - var wasMultiple = inst._wrapperState.wasMultiple; - inst._wrapperState.wasMultiple = Boolean(props.multiple); - var value = LinkedValueUtils.getValue(props); - null != value - ? ((inst._wrapperState.pendingUpdate = !1), - updateOptions(inst, Boolean(props.multiple), value)) - : wasMultiple !== Boolean(props.multiple) && - (null != props.defaultValue - ? updateOptions(inst, Boolean(props.multiple), props.defaultValue) - : updateOptions(inst, Boolean(props.multiple), props.multiple ? [] : '')); - } - }; - module.exports = ReactDOMSelect; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - _assign = __webpack_require__(9), - ReactCompositeComponent = __webpack_require__(474), - ReactEmptyComponent = __webpack_require__(250), - ReactHostComponent = __webpack_require__(251), - ReactCompositeComponentWrapper = (__webpack_require__(475), - __webpack_require__(3), - __webpack_require__(6), - function(element) { - this.construct(element); - }); - function instantiateReactComponent(node, shouldHaveDebugID) { - var instance; - if (null === node || !1 === node) - instance = ReactEmptyComponent.create(instantiateReactComponent); - else if ('object' == typeof node) { - var element = node, - type = element.type; - if ('function' != typeof type && 'string' != typeof type) { - var info = ''; - 0, - (info += (function getDeclarationErrorAddendum(owner) { - if (owner) { - var name = owner.getName(); - if (name) return ' Check the render method of `' + name + '`.'; - } - return ''; - })(element._owner)), - _prodInvariant('130', null == type ? type : typeof type, info); - } - 'string' == typeof element.type - ? (instance = ReactHostComponent.createInternalComponent(element)) - : !(function isInternalComponentType(type) { - return ( - 'function' == typeof type && - void 0 !== type.prototype && - 'function' == typeof type.prototype.mountComponent && - 'function' == typeof type.prototype.receiveComponent - ); - })(element.type) - ? (instance = new ReactCompositeComponentWrapper(element)) - : (instance = new element.type(element)).getHostNode || - (instance.getHostNode = instance.getNativeNode); - } else - 'string' == typeof node || 'number' == typeof node - ? (instance = ReactHostComponent.createInstanceForText(node)) - : _prodInvariant('131', typeof node); - return (instance._mountIndex = 0), (instance._mountImage = null), instance; - } - _assign(ReactCompositeComponentWrapper.prototype, ReactCompositeComponent, { - _instantiateReactComponent: instantiateReactComponent - }), - (module.exports = instantiateReactComponent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - React = __webpack_require__(56), - ReactNodeTypes = (__webpack_require__(3), - { - HOST: 0, - COMPOSITE: 1, - EMPTY: 2, - getType: function(node) { - return null === node || !1 === node - ? ReactNodeTypes.EMPTY - : React.isValidElement(node) - ? 'function' == typeof node.type ? ReactNodeTypes.COMPOSITE : ReactNodeTypes.HOST - : void _prodInvariant('26', node); - } - }); - module.exports = ReactNodeTypes; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var emptyComponentFactory, - ReactEmptyComponentInjection = { - injectEmptyComponentFactory: function(factory) { - emptyComponentFactory = factory; - } - }, - ReactEmptyComponent = { - create: function(instantiate) { - return emptyComponentFactory(instantiate); - } - }; - (ReactEmptyComponent.injection = ReactEmptyComponentInjection), - (module.exports = ReactEmptyComponent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - genericComponentClass = (__webpack_require__(3), null), - textComponentClass = null; - var ReactHostComponent = { - createInternalComponent: function createInternalComponent(element) { - return ( - genericComponentClass || _prodInvariant('111', element.type), - new genericComponentClass(element) - ); - }, - createInstanceForText: function createInstanceForText(text) { - return new textComponentClass(text); - }, - isTextComponent: function isTextComponent(component) { - return component instanceof textComponentClass; - }, - injection: { - injectGenericComponentClass: function(componentClass) { - genericComponentClass = componentClass; - }, - injectTextComponentClass: function(componentClass) { - textComponentClass = componentClass; - } - } - }; - module.exports = ReactHostComponent; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - REACT_ELEMENT_TYPE = (__webpack_require__(32), __webpack_require__(476)), - getIteratorFn = __webpack_require__(477), - KeyEscapeUtils = (__webpack_require__(3), __webpack_require__(166)), - SEPARATOR = (__webpack_require__(6), '.'), - SUBSEPARATOR = ':'; - function getComponentKey(component, index) { - return component && 'object' == typeof component && null != component.key - ? KeyEscapeUtils.escape(component.key) - : index.toString(36); - } - module.exports = function traverseAllChildren(children, callback, traverseContext) { - return null == children - ? 0 - : (function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) { - var child, - type = typeof children; - if ( - (('undefined' !== type && 'boolean' !== type) || (children = null), - null === children || - 'string' === type || - 'number' === type || - ('object' === type && children.$$typeof === REACT_ELEMENT_TYPE)) - ) - return ( - callback( - traverseContext, - children, - '' === nameSoFar ? SEPARATOR + getComponentKey(children, 0) : nameSoFar - ), - 1 - ); - var subtreeCount = 0, - nextNamePrefix = '' === nameSoFar ? SEPARATOR : nameSoFar + SUBSEPARATOR; - if (Array.isArray(children)) - for (var i = 0; i < children.length; i++) - subtreeCount += traverseAllChildrenImpl( - (child = children[i]), - nextNamePrefix + getComponentKey(child, i), - callback, - traverseContext - ); - else { - var iteratorFn = getIteratorFn(children); - if (iteratorFn) { - var step, - iterator = iteratorFn.call(children); - if (iteratorFn !== children.entries) - for (var ii = 0; !(step = iterator.next()).done; ) - subtreeCount += traverseAllChildrenImpl( - (child = step.value), - nextNamePrefix + getComponentKey(child, ii++), - callback, - traverseContext - ); - else - for (; !(step = iterator.next()).done; ) { - var entry = step.value; - entry && - (subtreeCount += traverseAllChildrenImpl( - (child = entry[1]), - nextNamePrefix + - KeyEscapeUtils.escape(entry[0]) + - SUBSEPARATOR + - getComponentKey(child, 0), - callback, - traverseContext - )); - } - } else if ('object' === type) { - var addendum = '', - childrenString = String(children); - _prodInvariant( - '31', - '[object Object]' === childrenString - ? 'object with keys {' + Object.keys(children).join(', ') + '}' - : childrenString, - addendum - ); - } - } - return subtreeCount; - })(children, '', callback, traverseContext); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var setItem, - getItem, - removeItem, - getItemIDs, - addRoot, - removeRoot, - getRootIDs, - _prodInvariant = __webpack_require__(71), - ReactCurrentOwner = __webpack_require__(32); - __webpack_require__(3), __webpack_require__(6); - function isNative(fn) { - var funcToString = Function.prototype.toString, - hasOwnProperty = Object.prototype.hasOwnProperty, - reIsNative = RegExp( - '^' + - funcToString - .call(hasOwnProperty) - .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + - '$' - ); - try { - var source = funcToString.call(fn); - return reIsNative.test(source); - } catch (err) { - return !1; - } - } - if ( - 'function' == typeof Array.from && - 'function' == typeof Map && - isNative(Map) && - null != Map.prototype && - 'function' == typeof Map.prototype.keys && - isNative(Map.prototype.keys) && - 'function' == typeof Set && - isNative(Set) && - null != Set.prototype && - 'function' == typeof Set.prototype.keys && - isNative(Set.prototype.keys) - ) { - var itemMap = new Map(), - rootIDSet = new Set(); - (setItem = function(id, item) { - itemMap.set(id, item); - }), - (getItem = function(id) { - return itemMap.get(id); - }), - (removeItem = function(id) { - itemMap.delete(id); - }), - (getItemIDs = function() { - return Array.from(itemMap.keys()); - }), - (addRoot = function(id) { - rootIDSet.add(id); - }), - (removeRoot = function(id) { - rootIDSet.delete(id); - }), - (getRootIDs = function() { - return Array.from(rootIDSet.keys()); - }); - } else { - var itemByKey = {}, - rootByKey = {}, - getKeyFromID = function(id) { - return '.' + id; - }, - getIDFromKey = function(key) { - return parseInt(key.substr(1), 10); - }; - (setItem = function(id, item) { - var key = getKeyFromID(id); - itemByKey[key] = item; - }), - (getItem = function(id) { - var key = getKeyFromID(id); - return itemByKey[key]; - }), - (removeItem = function(id) { - var key = getKeyFromID(id); - delete itemByKey[key]; - }), - (getItemIDs = function() { - return Object.keys(itemByKey).map(getIDFromKey); - }), - (addRoot = function(id) { - var key = getKeyFromID(id); - rootByKey[key] = !0; - }), - (removeRoot = function(id) { - var key = getKeyFromID(id); - delete rootByKey[key]; - }), - (getRootIDs = function() { - return Object.keys(rootByKey).map(getIDFromKey); - }); - } - var unmountedIDs = []; - function purgeDeep(id) { - var item = getItem(id); - if (item) { - var childIDs = item.childIDs; - removeItem(id), childIDs.forEach(purgeDeep); - } - } - function describeComponentFrame(name, source, ownerName) { - return ( - '\n in ' + - (name || 'Unknown') + - (source - ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' - : ownerName ? ' (created by ' + ownerName + ')' : '') - ); - } - function getDisplayName(element) { - return null == element - ? '#empty' - : 'string' == typeof element || 'number' == typeof element - ? '#text' - : 'string' == typeof element.type - ? element.type - : element.type.displayName || element.type.name || 'Unknown'; - } - function describeID(id) { - var ownerName, - name = ReactComponentTreeHook.getDisplayName(id), - element = ReactComponentTreeHook.getElement(id), - ownerID = ReactComponentTreeHook.getOwnerID(id); - return ( - ownerID && (ownerName = ReactComponentTreeHook.getDisplayName(ownerID)), - describeComponentFrame(name, element && element._source, ownerName) - ); - } - var ReactComponentTreeHook = { - onSetChildren: function(id, nextChildIDs) { - var item = getItem(id); - item || _prodInvariant('144'), (item.childIDs = nextChildIDs); - for (var i = 0; i < nextChildIDs.length; i++) { - var nextChildID = nextChildIDs[i], - nextChild = getItem(nextChildID); - nextChild || _prodInvariant('140'), - null == nextChild.childIDs && - 'object' == typeof nextChild.element && - null != nextChild.element && - _prodInvariant('141'), - nextChild.isMounted || _prodInvariant('71'), - null == nextChild.parentID && (nextChild.parentID = id), - nextChild.parentID !== id && _prodInvariant('142', nextChildID, nextChild.parentID, id); - } - }, - onBeforeMountComponent: function(id, element, parentID) { - setItem(id, { - element: element, - parentID: parentID, - text: null, - childIDs: [], - isMounted: !1, - updateCount: 0 - }); - }, - onBeforeUpdateComponent: function(id, element) { - var item = getItem(id); - item && item.isMounted && (item.element = element); - }, - onMountComponent: function(id) { - var item = getItem(id); - item || _prodInvariant('144'), (item.isMounted = !0), 0 === item.parentID && addRoot(id); - }, - onUpdateComponent: function(id) { - var item = getItem(id); - item && item.isMounted && item.updateCount++; - }, - onUnmountComponent: function(id) { - var item = getItem(id); - item && ((item.isMounted = !1), 0 === item.parentID && removeRoot(id)); - unmountedIDs.push(id); - }, - purgeUnmountedComponents: function() { - if (!ReactComponentTreeHook._preventPurging) { - for (var i = 0; i < unmountedIDs.length; i++) { - purgeDeep(unmountedIDs[i]); - } - unmountedIDs.length = 0; - } - }, - isMounted: function(id) { - var item = getItem(id); - return !!item && item.isMounted; - }, - getCurrentStackAddendum: function(topElement) { - var info = ''; - if (topElement) { - var name = getDisplayName(topElement), - owner = topElement._owner; - info += describeComponentFrame(name, topElement._source, owner && owner.getName()); - } - var currentOwner = ReactCurrentOwner.current, - id = currentOwner && currentOwner._debugID; - return (info += ReactComponentTreeHook.getStackAddendumByID(id)); - }, - getStackAddendumByID: function(id) { - for (var info = ''; id; ) - (info += describeID(id)), (id = ReactComponentTreeHook.getParentID(id)); - return info; - }, - getChildIDs: function(id) { - var item = getItem(id); - return item ? item.childIDs : []; - }, - getDisplayName: function(id) { - var element = ReactComponentTreeHook.getElement(id); - return element ? getDisplayName(element) : null; - }, - getElement: function(id) { - var item = getItem(id); - return item ? item.element : null; - }, - getOwnerID: function(id) { - var element = ReactComponentTreeHook.getElement(id); - return element && element._owner ? element._owner._debugID : null; - }, - getParentID: function(id) { - var item = getItem(id); - return item ? item.parentID : null; - }, - getSource: function(id) { - var item = getItem(id), - element = item ? item.element : null; - return null != element ? element._source : null; - }, - getText: function(id) { - var element = ReactComponentTreeHook.getElement(id); - return 'string' == typeof element - ? element - : 'number' == typeof element ? '' + element : null; - }, - getUpdateCount: function(id) { - var item = getItem(id); - return item ? item.updateCount : 0; - }, - getRootIDs: getRootIDs, - getRegisteredIDs: getItemIDs, - pushNonStandardWarningStack: function(isCreatingElement, currentSource) { - if ('function' == typeof console.reactStack) { - var stack = [], - currentOwner = ReactCurrentOwner.current, - id = currentOwner && currentOwner._debugID; - try { - for ( - isCreatingElement && - stack.push({ - name: id ? ReactComponentTreeHook.getDisplayName(id) : null, - fileName: currentSource ? currentSource.fileName : null, - lineNumber: currentSource ? currentSource.lineNumber : null - }); - id; - - ) { - var element = ReactComponentTreeHook.getElement(id), - parentID = ReactComponentTreeHook.getParentID(id), - ownerID = ReactComponentTreeHook.getOwnerID(id), - ownerName = ownerID ? ReactComponentTreeHook.getDisplayName(ownerID) : null, - source = element && element._source; - stack.push({ - name: ownerName, - fileName: source ? source.fileName : null, - lineNumber: source ? source.lineNumber : null - }), - (id = parentID); - } - } catch (err) {} - console.reactStack(stack); - } - }, - popNonStandardWarningStack: function() { - 'function' == typeof console.reactStackEnd && console.reactStackEnd(); - } - }; - module.exports = ReactComponentTreeHook; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var emptyFunction = __webpack_require__(22), - EventListener = { - listen: function listen(target, eventType, callback) { - return target.addEventListener - ? (target.addEventListener(eventType, callback, !1), - { - remove: function remove() { - target.removeEventListener(eventType, callback, !1); - } - }) - : target.attachEvent - ? (target.attachEvent('on' + eventType, callback), - { - remove: function remove() { - target.detachEvent('on' + eventType, callback); - } - }) - : void 0; - }, - capture: function capture(target, eventType, callback) { - return target.addEventListener - ? (target.addEventListener(eventType, callback, !0), - { - remove: function remove() { - target.removeEventListener(eventType, callback, !0); - } - }) - : { remove: emptyFunction }; - }, - registerDefault: function registerDefault() {} - }; - module.exports = EventListener; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactDOMSelection = __webpack_require__(489), - containsNode = __webpack_require__(491), - focusNode = __webpack_require__(244), - getActiveElement = __webpack_require__(256); - var ReactInputSelection = { - hasSelectionCapabilities: function(elem) { - var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); - return ( - nodeName && - (('input' === nodeName && 'text' === elem.type) || - 'textarea' === nodeName || - 'true' === elem.contentEditable) - ); - }, - getSelectionInformation: function() { - var focusedElem = getActiveElement(); - return { - focusedElem: focusedElem, - selectionRange: ReactInputSelection.hasSelectionCapabilities(focusedElem) - ? ReactInputSelection.getSelection(focusedElem) - : null - }; - }, - restoreSelection: function(priorSelectionInformation) { - var curFocusedElem = getActiveElement(), - priorFocusedElem = priorSelectionInformation.focusedElem, - priorSelectionRange = priorSelectionInformation.selectionRange; - curFocusedElem !== priorFocusedElem && - (function isInDocument(node) { - return containsNode(document.documentElement, node); - })(priorFocusedElem) && - (ReactInputSelection.hasSelectionCapabilities(priorFocusedElem) && - ReactInputSelection.setSelection(priorFocusedElem, priorSelectionRange), - focusNode(priorFocusedElem)); - }, - getSelection: function(input) { - var selection; - if ('selectionStart' in input) - selection = { start: input.selectionStart, end: input.selectionEnd }; - else if (document.selection && input.nodeName && 'input' === input.nodeName.toLowerCase()) { - var range = document.selection.createRange(); - range.parentElement() === input && - (selection = { - start: -range.moveStart('character', -input.value.length), - end: -range.moveEnd('character', -input.value.length) - }); - } else selection = ReactDOMSelection.getOffsets(input); - return selection || { start: 0, end: 0 }; - }, - setSelection: function(input, offsets) { - var start = offsets.start, - end = offsets.end; - if ((void 0 === end && (end = start), 'selectionStart' in input)) - (input.selectionStart = start), (input.selectionEnd = Math.min(end, input.value.length)); - else if (document.selection && input.nodeName && 'input' === input.nodeName.toLowerCase()) { - var range = input.createTextRange(); - range.collapse(!0), - range.moveStart('character', start), - range.moveEnd('character', end - start), - range.select(); - } else ReactDOMSelection.setOffsets(input, offsets); - } - }; - module.exports = ReactInputSelection; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function getActiveElement(doc) { - if (void 0 === (doc = doc || ('undefined' != typeof document ? document : void 0))) - return null; - try { - return doc.activeElement || doc.body; - } catch (e) { - return doc.body; - } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - DOMLazyTree = __webpack_require__(62), - DOMProperty = __webpack_require__(60), - React = __webpack_require__(56), - ReactBrowserEventEmitter = __webpack_require__(102), - ReactDOMComponentTree = (__webpack_require__(32), __webpack_require__(13)), - ReactDOMContainerInfo = __webpack_require__(506), - ReactDOMFeatureFlags = __webpack_require__(507), - ReactFeatureFlags = __webpack_require__(239), - ReactInstanceMap = __webpack_require__(82), - ReactMarkupChecksum = (__webpack_require__(25), __webpack_require__(508)), - ReactReconciler = __webpack_require__(61), - ReactUpdateQueue = __webpack_require__(167), - ReactUpdates = __webpack_require__(30), - emptyObject = __webpack_require__(93), - instantiateReactComponent = __webpack_require__(248), - setInnerHTML = (__webpack_require__(3), __webpack_require__(100)), - shouldUpdateReactComponent = __webpack_require__(165), - ATTR_NAME = (__webpack_require__(6), DOMProperty.ID_ATTRIBUTE_NAME), - ROOT_ATTR_NAME = DOMProperty.ROOT_ATTRIBUTE_NAME, - ELEMENT_NODE_TYPE = 1, - DOC_NODE_TYPE = 9, - DOCUMENT_FRAGMENT_NODE_TYPE = 11, - instancesByReactRootID = {}; - function getReactRootElementInContainer(container) { - return container - ? container.nodeType === DOC_NODE_TYPE ? container.documentElement : container.firstChild - : null; - } - function internalGetID(node) { - return (node.getAttribute && node.getAttribute(ATTR_NAME)) || ''; - } - function mountComponentIntoNode( - wrapperInstance, - container, - transaction, - shouldReuseMarkup, - context - ) { - var markerName; - if (ReactFeatureFlags.logTopLevelRenders) { - var type = wrapperInstance._currentElement.props.child.type; - (markerName = - 'React mount: ' + ('string' == typeof type ? type : type.displayName || type.name)), - console.time(markerName); - } - var markup = ReactReconciler.mountComponent( - wrapperInstance, - transaction, - null, - ReactDOMContainerInfo(wrapperInstance, container), - context, - 0 - ); - markerName && console.timeEnd(markerName), - (wrapperInstance._renderedComponent._topLevelWrapper = wrapperInstance), - ReactMount._mountImageIntoNode( - markup, - container, - wrapperInstance, - shouldReuseMarkup, - transaction - ); - } - function batchedMountComponentIntoNode( - componentInstance, - container, - shouldReuseMarkup, - context - ) { - var transaction = ReactUpdates.ReactReconcileTransaction.getPooled( - !shouldReuseMarkup && ReactDOMFeatureFlags.useCreateElement - ); - transaction.perform( - mountComponentIntoNode, - null, - componentInstance, - container, - transaction, - shouldReuseMarkup, - context - ), - ReactUpdates.ReactReconcileTransaction.release(transaction); - } - function unmountComponentFromNode(instance, container, safely) { - for ( - 0, - ReactReconciler.unmountComponent(instance, safely), - container.nodeType === DOC_NODE_TYPE && (container = container.documentElement); - container.lastChild; - - ) - container.removeChild(container.lastChild); - } - function hasNonRootReactChild(container) { - var rootEl = getReactRootElementInContainer(container); - if (rootEl) { - var inst = ReactDOMComponentTree.getInstanceFromNode(rootEl); - return !(!inst || !inst._hostParent); - } - } - function isValidContainer(node) { - return !( - !node || - (node.nodeType !== ELEMENT_NODE_TYPE && - node.nodeType !== DOC_NODE_TYPE && - node.nodeType !== DOCUMENT_FRAGMENT_NODE_TYPE) - ); - } - function getTopLevelWrapperInContainer(container) { - var root = (function getHostRootInstanceInContainer(container) { - var rootEl = getReactRootElementInContainer(container), - prevHostInstance = rootEl && ReactDOMComponentTree.getInstanceFromNode(rootEl); - return prevHostInstance && !prevHostInstance._hostParent ? prevHostInstance : null; - })(container); - return root ? root._hostContainerInfo._topLevelWrapper : null; - } - var topLevelRootCounter = 1, - TopLevelWrapper = function() { - this.rootID = topLevelRootCounter++; - }; - (TopLevelWrapper.prototype.isReactComponent = {}), - (TopLevelWrapper.prototype.render = function() { - return this.props.child; - }), - (TopLevelWrapper.isReactTopLevelWrapper = !0); - var ReactMount = { - TopLevelWrapper: TopLevelWrapper, - _instancesByReactRootID: instancesByReactRootID, - scrollMonitor: function(container, renderCallback) { - renderCallback(); - }, - _updateRootComponent: function(prevComponent, nextElement, nextContext, container, callback) { - return ( - ReactMount.scrollMonitor(container, function() { - ReactUpdateQueue.enqueueElementInternal(prevComponent, nextElement, nextContext), - callback && ReactUpdateQueue.enqueueCallbackInternal(prevComponent, callback); - }), - prevComponent - ); - }, - _renderNewRootComponent: function(nextElement, container, shouldReuseMarkup, context) { - isValidContainer(container) || _prodInvariant('37'), - ReactBrowserEventEmitter.ensureScrollValueMonitoring(); - var componentInstance = instantiateReactComponent(nextElement, !1); - ReactUpdates.batchedUpdates( - batchedMountComponentIntoNode, - componentInstance, - container, - shouldReuseMarkup, - context - ); - var wrapperID = componentInstance._instance.rootID; - return (instancesByReactRootID[wrapperID] = componentInstance), componentInstance; - }, - renderSubtreeIntoContainer: function(parentComponent, nextElement, container, callback) { - return ( - (null != parentComponent && ReactInstanceMap.has(parentComponent)) || - _prodInvariant('38'), - ReactMount._renderSubtreeIntoContainer(parentComponent, nextElement, container, callback) - ); - }, - _renderSubtreeIntoContainer: function(parentComponent, nextElement, container, callback) { - ReactUpdateQueue.validateCallback(callback, 'ReactDOM.render'), - React.isValidElement(nextElement) || - _prodInvariant( - '39', - 'string' == typeof nextElement - ? " Instead of passing a string like 'div', pass React.createElement('div') or
." - : 'function' == typeof nextElement - ? ' Instead of passing a class like Foo, pass React.createElement(Foo) or .' - : null != nextElement && void 0 !== nextElement.props - ? ' This may be caused by unintentionally loading two independent copies of React.' - : '' - ); - var nextContext, - nextWrappedElement = React.createElement(TopLevelWrapper, { child: nextElement }); - if (parentComponent) { - var parentInst = ReactInstanceMap.get(parentComponent); - nextContext = parentInst._processChildContext(parentInst._context); - } else nextContext = emptyObject; - var prevComponent = getTopLevelWrapperInContainer(container); - if (prevComponent) { - var prevElement = prevComponent._currentElement.props.child; - if (shouldUpdateReactComponent(prevElement, nextElement)) { - var publicInst = prevComponent._renderedComponent.getPublicInstance(), - updatedCallback = - callback && - function() { - callback.call(publicInst); - }; - return ( - ReactMount._updateRootComponent( - prevComponent, - nextWrappedElement, - nextContext, - container, - updatedCallback - ), - publicInst - ); - } - ReactMount.unmountComponentAtNode(container); - } - var reactRootElement = getReactRootElementInContainer(container), - containerHasReactMarkup = reactRootElement && !!internalGetID(reactRootElement), - containerHasNonRootReactChild = hasNonRootReactChild(container), - shouldReuseMarkup = - containerHasReactMarkup && !prevComponent && !containerHasNonRootReactChild, - component = ReactMount._renderNewRootComponent( - nextWrappedElement, - container, - shouldReuseMarkup, - nextContext - )._renderedComponent.getPublicInstance(); - return callback && callback.call(component), component; - }, - render: function(nextElement, container, callback) { - return ReactMount._renderSubtreeIntoContainer(null, nextElement, container, callback); - }, - unmountComponentAtNode: function(container) { - isValidContainer(container) || _prodInvariant('40'); - var prevComponent = getTopLevelWrapperInContainer(container); - if (!prevComponent) { - hasNonRootReactChild(container), - 1 === container.nodeType && container.hasAttribute(ROOT_ATTR_NAME); - return !1; - } - return ( - delete instancesByReactRootID[prevComponent._instance.rootID], - ReactUpdates.batchedUpdates(unmountComponentFromNode, prevComponent, container, !1), - !0 - ); - }, - _mountImageIntoNode: function(markup, container, instance, shouldReuseMarkup, transaction) { - if ((isValidContainer(container) || _prodInvariant('41'), shouldReuseMarkup)) { - var rootElement = getReactRootElementInContainer(container); - if (ReactMarkupChecksum.canReuseMarkup(markup, rootElement)) - return void ReactDOMComponentTree.precacheNode(instance, rootElement); - var checksum = rootElement.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME); - rootElement.removeAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME); - var rootMarkup = rootElement.outerHTML; - rootElement.setAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME, checksum); - var normalizedMarkup = markup, - diffIndex = (function firstDifferenceIndex(string1, string2) { - for (var minLen = Math.min(string1.length, string2.length), i = 0; i < minLen; i++) - if (string1.charAt(i) !== string2.charAt(i)) return i; - return string1.length === string2.length ? -1 : minLen; - })(normalizedMarkup, rootMarkup), - difference = - ' (client) ' + - normalizedMarkup.substring(diffIndex - 20, diffIndex + 20) + - '\n (server) ' + - rootMarkup.substring(diffIndex - 20, diffIndex + 20); - container.nodeType === DOC_NODE_TYPE && _prodInvariant('42', difference); - } - if ( - (container.nodeType === DOC_NODE_TYPE && _prodInvariant('43'), - transaction.useCreateElement) - ) { - for (; container.lastChild; ) container.removeChild(container.lastChild); - DOMLazyTree.insertTreeBefore(container, markup, null); - } else - setInnerHTML(container, markup), - ReactDOMComponentTree.precacheNode(instance, container.firstChild); - } - }; - module.exports = ReactMount; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactNodeTypes = __webpack_require__(249); - module.exports = function getHostComponentFromComposite(inst) { - for (var type; (type = inst._renderedNodeType) === ReactNodeTypes.COMPOSITE; ) - inst = inst._renderedComponent; - return type === ReactNodeTypes.HOST - ? inst._renderedComponent - : type === ReactNodeTypes.EMPTY ? null : void 0; - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(520), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var nameDescriptor = (0, - (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(291)).default)(function unnamed() {}, 'name'), - canConfigureName = !nameDescriptor || nameDescriptor.configurable; - exports.default = canConfigureName; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _util = __webpack_require__(84); - exports.default = function reviver(key, value) { - if ((0, _util.isObject)(value)) { - var result = (0, _util.typeReviver)(value); - if (result) return result.value; - } - return value; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.chromeLight = exports.chromeDark = void 0); - var _chromeDark3 = _interopRequireDefault(__webpack_require__(569)), - _chromeLight3 = _interopRequireDefault(__webpack_require__(570)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - (exports.chromeDark = _chromeDark3.default), (exports.chromeLight = _chromeLight3.default); - }, - function(module, exports, __webpack_require__) { - module.exports = __webpack_require__(572); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _objectWithoutProperties3 = _interopRequireDefault(__webpack_require__(65)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _defineProperty3 = _interopRequireDefault(__webpack_require__(31)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _TreeNode2 = _interopRequireDefault(__webpack_require__(574)), - _pathUtils = __webpack_require__(577); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ConnectedTreeNode = (function(_Component) { - function ConnectedTreeNode(props, context) { - (0, _classCallCheck3.default)(this, ConnectedTreeNode); - var _this = (0, _possibleConstructorReturn3.default)( - this, - (ConnectedTreeNode.__proto__ || Object.getPrototypeOf(ConnectedTreeNode)).call( - this, - props - ) - ); - return (_this.state = context.store.storeState), _this; - } - return ( - (0, _inherits3.default)(ConnectedTreeNode, _Component), - (0, _createClass3.default)(ConnectedTreeNode, [ - { - key: 'shouldComponentUpdate', - value: function shouldComponentUpdate(nextProps, nextState) { - return ( - !!nextState.expandedPaths[nextProps.path] != - !!this.state.expandedPaths[this.props.path] || - nextProps.data !== this.props.data || - nextProps.name !== this.props.name - ); - } - }, - { - key: 'handleClick', - value: function handleClick(path) { - (this.context.store.storeState = (function reducer(state, action) { - switch (action.type) { - case 'TOGGLE_EXPAND': - var path = action.path, - expanded = !!state.expandedPaths[path]; - return Object.assign({}, state, { - expandedPaths: Object.assign( - {}, - state.expandedPaths, - (0, _defineProperty3.default)({}, path, !expanded) - ) - }); - default: - return state; - } - })(this.context.store.storeState, { type: 'TOGGLE_EXPAND', path: path })), - this.setState(this.context.store.storeState); - } - }, - { - key: 'renderChildNodes', - value: function renderChildNodes(parentData, parentPath) { - var dataIterator = this.props.dataIterator, - depth = this.props.depth, - nodeRenderer = this.props.nodeRenderer, - childNodes = [], - _iteratorNormalCompletion = !0, - _didIteratorError = !1, - _iteratorError = void 0; - try { - for ( - var _step, _iterator = dataIterator(parentData)[Symbol.iterator](); - !(_iteratorNormalCompletion = (_step = _iterator.next()).done); - _iteratorNormalCompletion = !0 - ) { - var _ref2 = _step.value, - name = _ref2.name, - data = _ref2.data, - props = (0, _objectWithoutProperties3.default)(_ref2, ['name', 'data']), - key = name, - path = parentPath + '.' + key; - childNodes.push( - _react2.default.createElement( - ConnectedTreeNode, - (0, _extends3.default)( - { - name: name, - data: data, - depth: depth + 1, - path: path, - key: key, - dataIterator: dataIterator, - nodeRenderer: nodeRenderer - }, - props - ) - ) - ); - } - } catch (err) { - (_didIteratorError = !0), (_iteratorError = err); - } finally { - try { - !_iteratorNormalCompletion && _iterator.return && _iterator.return(); - } finally { - if (_didIteratorError) throw _iteratorError; - } - } - return childNodes; - } - }, - { - key: 'render', - value: function render() { - var _props = this.props, - data = _props.data, - dataIterator = _props.dataIterator, - path = _props.path, - depth = _props.depth, - nodeHasChildNodes = (0, _pathUtils.hasChildNodes)(data, dataIterator), - expanded = !!this.state.expandedPaths[path], - nodeRenderer = this.props.nodeRenderer; - return _react2.default.createElement( - _TreeNode2.default, - (0, _extends3.default)( - { - expanded: expanded, - onClick: nodeHasChildNodes ? this.handleClick.bind(this, path) : function() {}, - shouldShowArrow: nodeHasChildNodes, - shouldShowPlaceholder: depth > 0, - nodeRenderer: nodeRenderer - }, - this.props - ), - expanded ? this.renderChildNodes(data, path) : void 0 - ); - } - } - ]), - ConnectedTreeNode - ); - })(_react.Component); - (ConnectedTreeNode.propTypes = { - name: _propTypes2.default.string, - data: _propTypes2.default.any, - dataIterator: _propTypes2.default.func, - depth: _propTypes2.default.number, - expanded: _propTypes2.default.bool, - nodeRenderer: _propTypes2.default.func - }), - (ConnectedTreeNode.contextTypes = { store: _propTypes2.default.any }); - var TreeView = (function(_Component2) { - function TreeView(props) { - (0, _classCallCheck3.default)(this, TreeView); - var _this2 = (0, _possibleConstructorReturn3.default)( - this, - (TreeView.__proto__ || Object.getPrototypeOf(TreeView)).call(this, props) - ); - return ( - (_this2.store = { - storeState: { - expandedPaths: (0, _pathUtils.getExpandedPaths)( - props.data, - props.dataIterator, - props.expandPaths, - props.expandLevel - ) - } - }), - _this2 - ); - } - return ( - (0, _inherits3.default)(TreeView, _Component2), - (0, _createClass3.default)(TreeView, [ - { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps) { - this.store = { - storeState: { - expandedPaths: (0, _pathUtils.getExpandedPaths)( - nextProps.data, - nextProps.dataIterator, - nextProps.expandPaths, - nextProps.expandLevel, - this.store.storeState.expandedPaths - ) - } - }; - } - }, - { - key: 'getChildContext', - value: function getChildContext() { - return { store: this.store }; - } - }, - { - key: 'render', - value: function render() { - var _props2 = this.props, - name = _props2.name, - data = _props2.data, - dataIterator = _props2.dataIterator, - nodeRenderer = this.props.nodeRenderer, - rootPath = _pathUtils.DEFAULT_ROOT_PATH; - return _react2.default.createElement(ConnectedTreeNode, { - name: name, - data: data, - dataIterator: dataIterator, - depth: 0, - path: rootPath, - nodeRenderer: nodeRenderer - }); - } - } - ]), - TreeView - ); - })(_react.Component); - (TreeView.defaultProps = { expandLevel: 0, expandPaths: [] }), - (TreeView.childContextTypes = { store: _propTypes2.default.any }), - (TreeView.propTypes = { - name: _propTypes2.default.string, - data: _propTypes2.default.any, - dataIterator: _propTypes2.default.func, - nodeRenderer: _propTypes2.default.func - }), - (TreeView.defaultProps = { name: void 0 }), - (exports.default = TreeView); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _ObjectName2 = _interopRequireDefault(__webpack_require__(106)), - _ObjectPreview2 = _interopRequireDefault(__webpack_require__(578)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - exports.default = function ObjectRootLabel(_ref) { - var name = _ref.name, - data = _ref.data; - return 'string' == typeof name - ? _react2.default.createElement( - 'span', - null, - _react2.default.createElement(_ObjectName2.default, { name: name }), - _react2.default.createElement('span', null, ': '), - _react2.default.createElement(_ObjectPreview2.default, { data: data }) - ) - : _react2.default.createElement(_ObjectPreview2.default, { data: data }); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _ObjectName2 = _interopRequireDefault(__webpack_require__(106)), - _ObjectValue2 = _interopRequireDefault(__webpack_require__(107)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ObjectLabel = function ObjectLabel(_ref) { - var name = _ref.name, - data = _ref.data, - isNonenumerable = _ref.isNonenumerable, - object = data; - return _react2.default.createElement( - 'span', - null, - _react2.default.createElement(_ObjectName2.default, { - name: name, - dimmed: isNonenumerable - }), - _react2.default.createElement('span', null, ': '), - _react2.default.createElement(_ObjectValue2.default, { object: object }) - ); - }; - (ObjectLabel.propTypes = { isNonenumerable: _propTypes2.default.bool }), - (ObjectLabel.defaultProps = { isNonenumerable: !1 }), - (exports.default = ObjectLabel); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - exports.default = function shouldInline(data) { - return ( - 0 === data.childNodes.length || - (1 === data.childNodes.length && - data.childNodes[0].nodeType === Node.TEXT_NODE && - data.textContent.length < 80) - ); - }; - }, - function(module, exports, __webpack_require__) { - var Symbol = __webpack_require__(85).Symbol; - module.exports = Symbol; - }, - function(module, exports, __webpack_require__) { - var arrayLikeKeys = __webpack_require__(642), - baseKeys = __webpack_require__(971), - isArrayLike = __webpack_require__(292); - module.exports = function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); - }; - }, - function(module, exports, __webpack_require__) { - (function(global) { - var INFINITY = 1 / 0, - MAX_SAFE_INTEGER = 9007199254740991, - argsTag = '[object Arguments]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - symbolTag = '[object Symbol]', - freeGlobal = 'object' == typeof global && global && global.Object === Object && global, - freeSelf = 'object' == typeof self && self && self.Object === Object && self, - root = freeGlobal || freeSelf || Function('return this')(); - function arrayPush(array, values) { - for (var index = -1, length = values.length, offset = array.length; ++index < length; ) - array[offset + index] = values[index]; - return array; - } - var objectProto = Object.prototype, - hasOwnProperty = objectProto.hasOwnProperty, - objectToString = objectProto.toString, - Symbol = root.Symbol, - propertyIsEnumerable = objectProto.propertyIsEnumerable, - spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : void 0, - nativeMax = Math.max; - function isFlattenable(value) { - return ( - isArray(value) || - (function isArguments(value) { - return ( - (function isArrayLikeObject(value) { - return ( - isObjectLike(value) && - (function isArrayLike(value) { - return ( - null != value && - (function isLength(value) { - return ( - 'number' == typeof value && - value > -1 && - value % 1 == 0 && - value <= MAX_SAFE_INTEGER - ); - })(value.length) && - !(function isFunction(value) { - var tag = (function isObject(value) { - var type = typeof value; - return !!value && ('object' == type || 'function' == type); - })(value) - ? objectToString.call(value) - : ''; - return tag == funcTag || tag == genTag; - })(value) - ); - })(value) - ); - })(value) && - hasOwnProperty.call(value, 'callee') && - (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag) - ); - })(value) || - !!(spreadableSymbol && value && value[spreadableSymbol]) - ); - } - function toKey(value) { - if ( - 'string' == typeof value || - (function isSymbol(value) { - return ( - 'symbol' == typeof value || - (isObjectLike(value) && objectToString.call(value) == symbolTag) - ); - })(value) - ) - return value; - var result = value + ''; - return '0' == result && 1 / value == -INFINITY ? '-0' : result; - } - var isArray = Array.isArray; - function isObjectLike(value) { - return !!value && 'object' == typeof value; - } - var pick = (function baseRest(func, start) { - return ( - (start = nativeMax(void 0 === start ? func.length - 1 : start, 0)), - function() { - for ( - var args = arguments, - index = -1, - length = nativeMax(args.length - start, 0), - array = Array(length); - ++index < length; - - ) - array[index] = args[start + index]; - index = -1; - for (var otherArgs = Array(start + 1); ++index < start; ) - otherArgs[index] = args[index]; - return ( - (otherArgs[start] = array), - (function apply(func, thisArg, args) { - switch (args.length) { - case 0: - return func.call(thisArg); - case 1: - return func.call(thisArg, args[0]); - case 2: - return func.call(thisArg, args[0], args[1]); - case 3: - return func.call(thisArg, args[0], args[1], args[2]); - } - return func.apply(thisArg, args); - })(func, this, otherArgs) - ); - } - ); - })(function(object, props) { - return null == object - ? {} - : (function basePick(object, props) { - return (function basePickBy(object, props, predicate) { - for (var index = -1, length = props.length, result = {}; ++index < length; ) { - var key = props[index], - value = object[key]; - predicate(value, key) && (result[key] = value); - } - return result; - })((object = Object(object)), props, function(value, key) { - return key in object; - }); - })( - object, - (function arrayMap(array, iteratee) { - for ( - var index = -1, length = array ? array.length : 0, result = Array(length); - ++index < length; - - ) - result[index] = iteratee(array[index], index, array); - return result; - })( - (function baseFlatten(array, depth, predicate, isStrict, result) { - var index = -1, - length = array.length; - for ( - predicate || (predicate = isFlattenable), result || (result = []); - ++index < length; - - ) { - var value = array[index]; - depth > 0 && predicate(value) - ? depth > 1 - ? baseFlatten(value, depth - 1, predicate, isStrict, result) - : arrayPush(result, value) - : isStrict || (result[result.length] = value); - } - return result; - })(props, 1), - toKey - ) - ); - }); - module.exports = pick; - }.call(exports, __webpack_require__(27))); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function isPrefixedValue(value) { - return 'string' == typeof value && regex.test(value); - }); - var regex = /-webkit-|-moz-|-ms-/; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - var getLength = __webpack_require__(832), - isLength = __webpack_require__(189); - module.exports = function isArrayLike(value) { - return null != value && isLength(getLength(value)); - }; - }, - function(module, exports, __webpack_require__) { - var identity = __webpack_require__(834); - module.exports = function bindCallback(func, thisArg, argCount) { - if ('function' != typeof func) return identity; - if (void 0 === thisArg) return func; - switch (argCount) { - case 1: - return function(value) { - return func.call(thisArg, value); - }; - case 3: - return function(value, index, collection) { - return func.call(thisArg, value, index, collection); - }; - case 4: - return function(accumulator, value, index, collection) { - return func.call(thisArg, accumulator, value, index, collection); - }; - case 5: - return function(value, other, key, object, source) { - return func.call(thisArg, value, other, key, object, source); - }; - } - return function() { - return func.apply(thisArg, arguments); - }; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - emptyObject = __webpack_require__(93), - _invariant = __webpack_require__(3), - MIXINS_KEY = 'mixins'; - module.exports = function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { - var injectedMixins = [], - ReactClassInterface = { - mixins: 'DEFINE_MANY', - statics: 'DEFINE_MANY', - propTypes: 'DEFINE_MANY', - contextTypes: 'DEFINE_MANY', - childContextTypes: 'DEFINE_MANY', - getDefaultProps: 'DEFINE_MANY_MERGED', - getInitialState: 'DEFINE_MANY_MERGED', - getChildContext: 'DEFINE_MANY_MERGED', - render: 'DEFINE_ONCE', - componentWillMount: 'DEFINE_MANY', - componentDidMount: 'DEFINE_MANY', - componentWillReceiveProps: 'DEFINE_MANY', - shouldComponentUpdate: 'DEFINE_ONCE', - componentWillUpdate: 'DEFINE_MANY', - componentDidUpdate: 'DEFINE_MANY', - componentWillUnmount: 'DEFINE_MANY', - updateComponent: 'OVERRIDE_BASE' - }, - RESERVED_SPEC_KEYS = { - displayName: function(Constructor, displayName) { - Constructor.displayName = displayName; - }, - mixins: function(Constructor, mixins) { - if (mixins) - for (var i = 0; i < mixins.length; i++) mixSpecIntoComponent(Constructor, mixins[i]); - }, - childContextTypes: function(Constructor, childContextTypes) { - Constructor.childContextTypes = _assign( - {}, - Constructor.childContextTypes, - childContextTypes - ); - }, - contextTypes: function(Constructor, contextTypes) { - Constructor.contextTypes = _assign({}, Constructor.contextTypes, contextTypes); - }, - getDefaultProps: function(Constructor, getDefaultProps) { - Constructor.getDefaultProps - ? (Constructor.getDefaultProps = createMergedResultFunction( - Constructor.getDefaultProps, - getDefaultProps - )) - : (Constructor.getDefaultProps = getDefaultProps); - }, - propTypes: function(Constructor, propTypes) { - Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes); - }, - statics: function(Constructor, statics) { - !(function mixStaticSpecIntoComponent(Constructor, statics) { - if (statics) - for (var name in statics) { - var property = statics[name]; - if (statics.hasOwnProperty(name)) { - var isReserved = name in RESERVED_SPEC_KEYS; - _invariant( - !isReserved, - 'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.', - name - ); - var isInherited = name in Constructor; - _invariant( - !isInherited, - 'ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', - name - ), - (Constructor[name] = property); - } - } - })(Constructor, statics); - }, - autobind: function() {} - }; - function validateMethodOverride(isAlreadyDefined, name) { - var specPolicy = ReactClassInterface.hasOwnProperty(name) - ? ReactClassInterface[name] - : null; - ReactClassMixin.hasOwnProperty(name) && - _invariant( - 'OVERRIDE_BASE' === specPolicy, - 'ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.', - name - ), - isAlreadyDefined && - _invariant( - 'DEFINE_MANY' === specPolicy || 'DEFINE_MANY_MERGED' === specPolicy, - 'ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', - name - ); - } - function mixSpecIntoComponent(Constructor, spec) { - if (spec) { - _invariant( - 'function' != typeof spec, - "ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object." - ), - _invariant( - !isValidElement(spec), - "ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object." - ); - var proto = Constructor.prototype, - autoBindPairs = proto.__reactAutoBindPairs; - spec.hasOwnProperty(MIXINS_KEY) && RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins); - for (var name in spec) - if (spec.hasOwnProperty(name) && name !== MIXINS_KEY) { - var property = spec[name], - isAlreadyDefined = proto.hasOwnProperty(name); - if ( - (validateMethodOverride(isAlreadyDefined, name), - RESERVED_SPEC_KEYS.hasOwnProperty(name)) - ) - RESERVED_SPEC_KEYS[name](Constructor, property); - else { - var isReactClassMethod = ReactClassInterface.hasOwnProperty(name); - if ( - 'function' != typeof property || - isReactClassMethod || - isAlreadyDefined || - !1 === spec.autobind - ) - if (isAlreadyDefined) { - var specPolicy = ReactClassInterface[name]; - _invariant( - isReactClassMethod && - ('DEFINE_MANY_MERGED' === specPolicy || 'DEFINE_MANY' === specPolicy), - 'ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.', - specPolicy, - name - ), - 'DEFINE_MANY_MERGED' === specPolicy - ? (proto[name] = createMergedResultFunction(proto[name], property)) - : 'DEFINE_MANY' === specPolicy && - (proto[name] = createChainedFunction(proto[name], property)); - } else proto[name] = property; - else autoBindPairs.push(name, property), (proto[name] = property); - } - } - } - } - function mergeIntoWithNoDuplicateKeys(one, two) { - _invariant( - one && two && 'object' == typeof one && 'object' == typeof two, - 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.' - ); - for (var key in two) - two.hasOwnProperty(key) && - (_invariant( - void 0 === one[key], - 'mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.', - key - ), - (one[key] = two[key])); - return one; - } - function createMergedResultFunction(one, two) { - return function mergedResult() { - var a = one.apply(this, arguments), - b = two.apply(this, arguments); - if (null == a) return b; - if (null == b) return a; - var c = {}; - return mergeIntoWithNoDuplicateKeys(c, a), mergeIntoWithNoDuplicateKeys(c, b), c; - }; - } - function createChainedFunction(one, two) { - return function chainedFunction() { - one.apply(this, arguments), two.apply(this, arguments); - }; - } - function bindAutoBindMethod(component, method) { - var boundMethod = method.bind(component); - return boundMethod; - } - var IsMountedPreMixin = { - componentDidMount: function() { - this.__isMounted = !0; - } - }, - IsMountedPostMixin = { - componentWillUnmount: function() { - this.__isMounted = !1; - } - }, - ReactClassMixin = { - replaceState: function(newState, callback) { - this.updater.enqueueReplaceState(this, newState, callback); - }, - isMounted: function() { - return !!this.__isMounted; - } - }, - ReactClassComponent = function() {}; - return ( - _assign(ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin), - function createClass(spec) { - var Constructor = (function identity(fn) { - return fn; - })(function(props, context, updater) { - this.__reactAutoBindPairs.length && - (function bindAutoBindMethods(component) { - for (var pairs = component.__reactAutoBindPairs, i = 0; i < pairs.length; i += 2) { - var autoBindKey = pairs[i], - method = pairs[i + 1]; - component[autoBindKey] = bindAutoBindMethod(component, method); - } - })(this), - (this.props = props), - (this.context = context), - (this.refs = emptyObject), - (this.updater = updater || ReactNoopUpdateQueue), - (this.state = null); - var initialState = this.getInitialState ? this.getInitialState() : null; - _invariant( - 'object' == typeof initialState && !Array.isArray(initialState), - '%s.getInitialState(): must return an object or null', - Constructor.displayName || 'ReactCompositeComponent' - ), - (this.state = initialState); - }); - (Constructor.prototype = new ReactClassComponent()), - (Constructor.prototype.constructor = Constructor), - (Constructor.prototype.__reactAutoBindPairs = []), - injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor)), - mixSpecIntoComponent(Constructor, IsMountedPreMixin), - mixSpecIntoComponent(Constructor, spec), - mixSpecIntoComponent(Constructor, IsMountedPostMixin), - Constructor.getDefaultProps && - (Constructor.defaultProps = Constructor.getDefaultProps()), - _invariant( - Constructor.prototype.render, - 'createClass(...): Class specification must implement a `render` method.' - ); - for (var methodName in ReactClassInterface) - Constructor.prototype[methodName] || (Constructor.prototype[methodName] = null); - return Constructor; - } - ); - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(408), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - var dP = __webpack_require__(26), - anObject = __webpack_require__(24), - getKeys = __webpack_require__(72); - module.exports = __webpack_require__(29) - ? Object.defineProperties - : function defineProperties(O, Properties) { - anObject(O); - for (var P, keys = getKeys(Properties), length = keys.length, i = 0; length > i; ) - dP.f(O, (P = keys[i++]), Properties[P]); - return O; - }; - }, - function(module, exports) { - module.exports = function(done, value) { - return { value: value, done: !!done }; - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(419), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(422), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var global = __webpack_require__(17), - core = __webpack_require__(10), - dP = __webpack_require__(26), - DESCRIPTORS = __webpack_require__(29), - SPECIES = __webpack_require__(18)('species'); - module.exports = function(KEY) { - var C = 'function' == typeof core[KEY] ? core[KEY] : global[KEY]; - DESCRIPTORS && - C && - !C[SPECIES] && - dP.f(C, SPECIES, { - configurable: !0, - get: function() { - return this; - } - }); - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(434), __esModule: !0 }; - }, - , - function(module, exports, __webpack_require__) { - 'use strict'; - var camelize = __webpack_require__(462), - msPattern = /^-ms-/; - module.exports = function camelizeStyleName(string) { - return camelize(string.replace(msPattern, 'ms-')); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var hyphenate = __webpack_require__(464), - msPattern = /^ms-/; - module.exports = function hyphenateStyleName(string) { - return hyphenate(string).replace(msPattern, '-ms-'); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function memoizeStringOnly(callback) { - var cache = {}; - return function(string) { - return ( - cache.hasOwnProperty(string) || (cache[string] = callback.call(this, string)), - cache[string] - ); - }; - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(514), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.features = void 0), - (exports.isModifierPressed = isModifierPressed), - (exports.default = function handle(e) { - if (e.keyCode === (0, _keycode2.default)('escape')) return features.ESCAPE; - if ( - (function focusInInput(e) { - return ( - /input|textarea/i.test(e.target.tagName) || - null !== e.target.getAttribute('contenteditable') - ); - })(e) - ) - return !1; - if (!isModifierPressed(e)) return !1; - switch (e.keyCode) { - case (0, _keycode2.default)('F'): - return e.preventDefault(), features.FULLSCREEN; - case (0, _keycode2.default)('C'): - case (0, _keycode2.default)('D'): - return e.preventDefault(), features.ADDON_PANEL; - case (0, _keycode2.default)('X'): - case (0, _keycode2.default)('L'): - return e.preventDefault(), features.STORIES_PANEL; - case (0, _keycode2.default)('right'): - return e.preventDefault(), features.NEXT_STORY; - case (0, _keycode2.default)('left'): - return e.preventDefault(), features.PREV_STORY; - case (0, _keycode2.default)('O'): - case (0, _keycode2.default)('P'): - return e.preventDefault(), features.SHOW_SEARCH; - case (0, _keycode2.default)('G'): - case (0, _keycode2.default)('J'): - return e.preventDefault(), features.ADDON_PANEL_IN_RIGHT; - default: - return !1; - } - }); - var _keycode2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(522)); - var features = (exports.features = { - FULLSCREEN: 'FULLSCREEN', - ADDON_PANEL: 'ADDON_PANEL', - STORIES_PANEL: 'STORIES_PANEL', - SHORTCUTS_HELP: 'SHORTCUTS_HELP', - ESCAPE: 'ESCAPE', - NEXT_STORY: 'NEXT_STORY', - PREV_STORY: 'PREV_STORY', - SHOW_SEARCH: 'SHOW_SEARCH', - ADDON_PANEL_IN_RIGHT: 'ADDON_PANEL_IN_RIGHT' - }); - function isModifierPressed(e) { - return (e.ctrlKey || 91 === e.keyCode || e.metaKey) && e.shiftKey; - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var global = __webpack_require__(17), - $export = __webpack_require__(16), - meta = __webpack_require__(77), - fails = __webpack_require__(43), - hide = __webpack_require__(42), - redefineAll = __webpack_require__(121), - forOf = __webpack_require__(78), - anInstance = __webpack_require__(120), - isObject = __webpack_require__(20), - setToStringTag = __webpack_require__(76), - dP = __webpack_require__(26).f, - each = __webpack_require__(171)(0), - DESCRIPTORS = __webpack_require__(29); - module.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { - var Base = global[NAME], - C = Base, - ADDER = IS_MAP ? 'set' : 'add', - proto = C && C.prototype, - O = {}; - return ( - DESCRIPTORS && - 'function' == typeof C && - (IS_WEAK || - (proto.forEach && - !fails(function() { - new C().entries().next(); - }))) - ? ((C = wrapper(function(target, iterable) { - anInstance(target, C, NAME, '_c'), - (target._c = new Base()), - void 0 != iterable && forOf(iterable, IS_MAP, target[ADDER], target); - })), - each( - 'add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), - function(KEY) { - var IS_ADDER = 'add' == KEY || 'set' == KEY; - KEY in proto && - (!IS_WEAK || 'clear' != KEY) && - hide(C.prototype, KEY, function(a, b) { - if ((anInstance(this, C, KEY), !IS_ADDER && IS_WEAK && !isObject(a))) - return 'get' == KEY && void 0; - var result = this._c[KEY](0 === a ? 0 : a, b); - return IS_ADDER ? this : result; - }); - } - ), - IS_WEAK || - dP(C.prototype, 'size', { - get: function() { - return this._c.size; - } - })) - : ((C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER)), - redefineAll(C.prototype, methods), - (meta.NEED = !0)), - setToStringTag(C, NAME), - (O[NAME] = C), - $export($export.G + $export.W + $export.F, O), - IS_WEAK || common.setStrong(C, NAME, IS_MAP), - C - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var $export = __webpack_require__(16); - module.exports = function(COLLECTION) { - $export($export.S, COLLECTION, { - of: function of() { - for (var length = arguments.length, A = new Array(length); length--; ) - A[length] = arguments[length]; - return new this(A); - } - }); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var $export = __webpack_require__(16), - aFunction = __webpack_require__(74), - ctx = __webpack_require__(35), - forOf = __webpack_require__(78); - module.exports = function(COLLECTION) { - $export($export.S, COLLECTION, { - from: function from(source) { - var mapping, - A, - n, - cb, - mapFn = arguments[1]; - return ( - aFunction(this), - (mapping = void 0 !== mapFn) && aFunction(mapFn), - void 0 == source - ? new this() - : ((A = []), - mapping - ? ((n = 0), - (cb = ctx(mapFn, arguments[2], 2)), - forOf(source, !1, function(nextItem) { - A.push(cb(nextItem, n++)); - })) - : forOf(source, !1, A.push, A), - new this(A)) - ); - } - }); - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(538), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - var isFunction = __webpack_require__(647), - isLength = __webpack_require__(597); - module.exports = function isArrayLike(value) { - return null != value && isLength(value.length) && !isFunction(value); - }; - }, - function(module, exports, __webpack_require__) { - var listCacheClear = __webpack_require__(977), - listCacheDelete = __webpack_require__(978), - listCacheGet = __webpack_require__(979), - listCacheHas = __webpack_require__(980), - listCacheSet = __webpack_require__(981); - function ListCache(entries) { - var index = -1, - length = null == entries ? 0 : entries.length; - for (this.clear(); ++index < length; ) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - (ListCache.prototype.clear = listCacheClear), - (ListCache.prototype.delete = listCacheDelete), - (ListCache.prototype.get = listCacheGet), - (ListCache.prototype.has = listCacheHas), - (ListCache.prototype.set = listCacheSet), - (module.exports = ListCache); - }, - function(module, exports, __webpack_require__) { - var eq = __webpack_require__(601); - module.exports = function assocIndexOf(array, key) { - for (var length = array.length; length--; ) if (eq(array[length][0], key)) return length; - return -1; - }; - }, - function(module, exports, __webpack_require__) { - var nativeCreate = __webpack_require__(179)(Object, 'create'); - module.exports = nativeCreate; - }, - function(module, exports, __webpack_require__) { - var isKeyable = __webpack_require__(999); - module.exports = function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) ? data['string' == typeof key ? 'string' : 'hash'] : data.map; - }; - }, - function(module, exports, __webpack_require__) { - var baseGetTag = __webpack_require__(177), - isObjectLike = __webpack_require__(178), - symbolTag = '[object Symbol]'; - module.exports = function isSymbol(value) { - return 'symbol' == typeof value || (isObjectLike(value) && baseGetTag(value) == symbolTag); - }; - }, - function(module, exports, __webpack_require__) { - var isSymbol = __webpack_require__(297), - INFINITY = 1 / 0; - module.exports = function toKey(value) { - if ('string' == typeof value || isSymbol(value)) return value; - var result = value + ''; - return '0' == result && 1 / value == -INFINITY ? '-0' : result; - }; - }, - function(module, exports, __webpack_require__) { - var assignValue = __webpack_require__(668), - baseAssignValue = __webpack_require__(669); - module.exports = function copyObject(source, props, object, customizer) { - var isNew = !object; - object || (object = {}); - for (var index = -1, length = props.length; ++index < length; ) { - var key = props[index], - newValue = customizer - ? customizer(object[key], source[key], key, object, source) - : void 0; - void 0 === newValue && (newValue = source[key]), - isNew ? baseAssignValue(object, key, newValue) : assignValue(object, key, newValue); - } - return object; - }; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - Object.defineProperty(__webpack_exports__, '__esModule', { value: !0 }), - __webpack_require__.d(__webpack_exports__, 'IGNORE_CLASS_NAME', function() { - return IGNORE_CLASS_NAME; - }); - var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), - __WEBPACK_IMPORTED_MODULE_1_react_dom__ = (__webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_0_react__ - ), - __webpack_require__(122)); - __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__); - function isNodeFound(current, componentNode, ignoreClass) { - return ( - current === componentNode || - (current.correspondingElement - ? current.correspondingElement.classList.contains(ignoreClass) - : current.classList.contains(ignoreClass)) - ); - } - var testPassiveEventSupport = function testPassiveEventSupport() { - if ('undefined' != typeof window && 'function' == typeof window.addEventListener) { - var passive = !1, - options = Object.defineProperty({}, 'passive', { - get: function get() { - passive = !0; - } - }), - noop = function noop() {}; - return ( - window.addEventListener('testPassiveEventSupport', noop, options), - window.removeEventListener('testPassiveEventSupport', noop, options), - passive - ); - } - }; - var passiveEventSupport, - uid = (function autoInc(seed) { - return ( - void 0 === seed && (seed = 0), - function() { - return ++seed; - } - ); - })(), - handlersMap = {}, - enabledInstances = {}, - touchEvents = ['touchstart', 'touchmove'], - IGNORE_CLASS_NAME = 'ignore-react-onclickoutside'; - __webpack_exports__.default = function onClickOutsideHOC(WrappedComponent, config) { - var _class, _temp; - return ( - (_temp = _class = (function(_Component) { - function onClickOutside(props) { - var _this; - return ( - ((_this = _Component.call(this, props) || this).__outsideClickHandler = function( - event - ) { - if ('function' != typeof _this.__clickOutsideHandlerProp) { - var instance = _this.getInstance(); - if ('function' != typeof instance.props.handleClickOutside) { - if ('function' != typeof instance.handleClickOutside) - throw new Error( - 'WrappedComponent lacks a handleClickOutside(event) function for processing outside click events.' - ); - instance.handleClickOutside(event); - } else instance.props.handleClickOutside(event); - } else _this.__clickOutsideHandlerProp(event); - }), - (_this.enableOnClickOutside = function() { - if ('undefined' != typeof document && !enabledInstances[_this._uid]) { - void 0 === passiveEventSupport && - (passiveEventSupport = testPassiveEventSupport()), - (enabledInstances[_this._uid] = !0); - var events = _this.props.eventTypes; - events.forEach || (events = [events]), - (handlersMap[_this._uid] = function(event) { - _this.props.disableOnClickOutside || - (null !== _this.componentNode && - (_this.props.preventDefault && event.preventDefault(), - _this.props.stopPropagation && event.stopPropagation(), - (_this.props.excludeScrollbar && - (function clickedScrollbar(evt) { - return ( - document.documentElement.clientWidth <= evt.clientX || - document.documentElement.clientHeight <= evt.clientY - ); - })(event)) || - ((function findHighest(current, componentNode, ignoreClass) { - if (current === componentNode) return !0; - for (; current.parentNode; ) { - if (isNodeFound(current, componentNode, ignoreClass)) return !0; - current = current.parentNode; - } - return current; - })( - event.target, - _this.componentNode, - _this.props.outsideClickIgnoreClass - ) === document && - _this.__outsideClickHandler(event)))); - }), - events.forEach(function(eventName) { - var handlerOptions = null; - -1 !== touchEvents.indexOf(eventName) && - passiveEventSupport && - (handlerOptions = { passive: !_this.props.preventDefault }), - document.addEventListener( - eventName, - handlersMap[_this._uid], - handlerOptions - ); - }); - } - }), - (_this.disableOnClickOutside = function() { - delete enabledInstances[_this._uid]; - var fn = handlersMap[_this._uid]; - if (fn && 'undefined' != typeof document) { - var events = _this.props.eventTypes; - events.forEach || (events = [events]), - events.forEach(function(eventName) { - return document.removeEventListener(eventName, fn); - }), - delete handlersMap[_this._uid]; - } - }), - (_this.getRef = function(ref) { - return (_this.instanceRef = ref); - }), - (_this._uid = uid()), - _this - ); - } - !(function _inheritsLoose(subClass, superClass) { - (subClass.prototype = Object.create(superClass.prototype)), - (subClass.prototype.constructor = subClass), - (subClass.__proto__ = superClass); - })(onClickOutside, _Component); - var _proto = onClickOutside.prototype; - return ( - (_proto.getInstance = function getInstance() { - if (!WrappedComponent.prototype.isReactComponent) return this; - var ref = this.instanceRef; - return ref.getInstance ? ref.getInstance() : ref; - }), - (_proto.componentDidMount = function componentDidMount() { - if ('undefined' != typeof document && document.createElement) { - var instance = this.getInstance(); - if ( - config && - 'function' == typeof config.handleClickOutside && - ((this.__clickOutsideHandlerProp = config.handleClickOutside(instance)), - 'function' != typeof this.__clickOutsideHandlerProp) - ) - throw new Error( - 'WrappedComponent lacks a function for processing outside click events specified by the handleClickOutside config option.' - ); - (this.componentNode = Object(__WEBPACK_IMPORTED_MODULE_1_react_dom__.findDOMNode)( - this.getInstance() - )), - this.enableOnClickOutside(); - } - }), - (_proto.componentDidUpdate = function componentDidUpdate() { - this.componentNode = Object(__WEBPACK_IMPORTED_MODULE_1_react_dom__.findDOMNode)( - this.getInstance() - ); - }), - (_proto.componentWillUnmount = function componentWillUnmount() { - this.disableOnClickOutside(); - }), - (_proto.render = function render() { - var _props = this.props, - props = (_props.excludeScrollbar, - (function _objectWithoutProperties(source, excluded) { - if (null == source) return {}; - var key, - i, - target = {}, - sourceKeys = Object.keys(source); - for (i = 0; i < sourceKeys.length; i++) - (key = sourceKeys[i]), - excluded.indexOf(key) >= 0 || (target[key] = source[key]); - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - for (i = 0; i < sourceSymbolKeys.length; i++) - (key = sourceSymbolKeys[i]), - excluded.indexOf(key) >= 0 || - (Object.prototype.propertyIsEnumerable.call(source, key) && - (target[key] = source[key])); - } - return target; - })(_props, ['excludeScrollbar'])); - return ( - WrappedComponent.prototype.isReactComponent - ? (props.ref = this.getRef) - : (props.wrappedRef = this.getRef), - (props.disableOnClickOutside = this.disableOnClickOutside), - (props.enableOnClickOutside = this.enableOnClickOutside), - Object(__WEBPACK_IMPORTED_MODULE_0_react__.createElement)(WrappedComponent, props) - ); - }), - onClickOutside - ); - })(__WEBPACK_IMPORTED_MODULE_0_react__.Component)), - (_class.displayName = - 'OnClickOutside(' + - (WrappedComponent.displayName || WrappedComponent.name || 'Component') + - ')'), - (_class.defaultProps = { - eventTypes: ['mousedown', 'touchstart'], - excludeScrollbar: (config && config.excludeScrollbar) || !1, - outsideClickIgnoreClass: IGNORE_CLASS_NAME, - preventDefault: !1, - stopPropagation: !1 - }), - (_class.getClass = function() { - return WrappedComponent.getClass ? WrappedComponent.getClass() : WrappedComponent; - }), - _temp - ); - }; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - Object.defineProperty(__webpack_exports__, '__esModule', { value: !0 }), - __webpack_require__.d(__webpack_exports__, 'ThemeProvider', function() { - return ThemeProvider; - }), - __webpack_require__.d(__webpack_exports__, 'withTheme', function() { - return withTheme; - }), - __webpack_require__.d(__webpack_exports__, 'A', function() { - return A; - }), - __webpack_require__.d(__webpack_exports__, 'Abbr', function() { - return Abbr; - }), - __webpack_require__.d(__webpack_exports__, 'Acronym', function() { - return Acronym; - }), - __webpack_require__.d(__webpack_exports__, 'Address', function() { - return Address; - }), - __webpack_require__.d(__webpack_exports__, 'Applet', function() { - return Applet; - }), - __webpack_require__.d(__webpack_exports__, 'Area', function() { - return Area; - }), - __webpack_require__.d(__webpack_exports__, 'Article', function() { - return Article; - }), - __webpack_require__.d(__webpack_exports__, 'Aside', function() { - return Aside; - }), - __webpack_require__.d(__webpack_exports__, 'Audio', function() { - return Audio; - }), - __webpack_require__.d(__webpack_exports__, 'B', function() { - return B; - }), - __webpack_require__.d(__webpack_exports__, 'Base', function() { - return Base; - }), - __webpack_require__.d(__webpack_exports__, 'Basefont', function() { - return Basefont; - }), - __webpack_require__.d(__webpack_exports__, 'Bdi', function() { - return Bdi; - }), - __webpack_require__.d(__webpack_exports__, 'Bdo', function() { - return Bdo; - }), - __webpack_require__.d(__webpack_exports__, 'Bgsound', function() { - return Bgsound; - }), - __webpack_require__.d(__webpack_exports__, 'Big', function() { - return Big; - }), - __webpack_require__.d(__webpack_exports__, 'Blink', function() { - return Blink; - }), - __webpack_require__.d(__webpack_exports__, 'Blockquote', function() { - return Blockquote; - }), - __webpack_require__.d(__webpack_exports__, 'Body', function() { - return Body; - }), - __webpack_require__.d(__webpack_exports__, 'Br', function() { - return Br; - }), - __webpack_require__.d(__webpack_exports__, 'Button', function() { - return Button; - }), - __webpack_require__.d(__webpack_exports__, 'Canvas', function() { - return Canvas; - }), - __webpack_require__.d(__webpack_exports__, 'Caption', function() { - return Caption; - }), - __webpack_require__.d(__webpack_exports__, 'Center', function() { - return Center; - }), - __webpack_require__.d(__webpack_exports__, 'Cite', function() { - return Cite; - }), - __webpack_require__.d(__webpack_exports__, 'Code', function() { - return Code; - }), - __webpack_require__.d(__webpack_exports__, 'Col', function() { - return Col; - }), - __webpack_require__.d(__webpack_exports__, 'Colgroup', function() { - return Colgroup; - }), - __webpack_require__.d(__webpack_exports__, 'Command', function() { - return Command; - }), - __webpack_require__.d(__webpack_exports__, 'Content', function() { - return Content; - }), - __webpack_require__.d(__webpack_exports__, 'Data', function() { - return Data; - }), - __webpack_require__.d(__webpack_exports__, 'Datalist', function() { - return Datalist; - }), - __webpack_require__.d(__webpack_exports__, 'Dd', function() { - return Dd; - }), - __webpack_require__.d(__webpack_exports__, 'Del', function() { - return Del; - }), - __webpack_require__.d(__webpack_exports__, 'Details', function() { - return Details; - }), - __webpack_require__.d(__webpack_exports__, 'Dfn', function() { - return Dfn; - }), - __webpack_require__.d(__webpack_exports__, 'Dialog', function() { - return Dialog; - }), - __webpack_require__.d(__webpack_exports__, 'Dir', function() { - return Dir; - }), - __webpack_require__.d(__webpack_exports__, 'Div', function() { - return Div; - }), - __webpack_require__.d(__webpack_exports__, 'Dl', function() { - return Dl; - }), - __webpack_require__.d(__webpack_exports__, 'Dt', function() { - return Dt; - }), - __webpack_require__.d(__webpack_exports__, 'Element', function() { - return Element; - }), - __webpack_require__.d(__webpack_exports__, 'Em', function() { - return Em; - }), - __webpack_require__.d(__webpack_exports__, 'Embed', function() { - return Embed; - }), - __webpack_require__.d(__webpack_exports__, 'Fieldset', function() { - return Fieldset; - }), - __webpack_require__.d(__webpack_exports__, 'Figcaption', function() { - return Figcaption; - }), - __webpack_require__.d(__webpack_exports__, 'Figure', function() { - return Figure; - }), - __webpack_require__.d(__webpack_exports__, 'Font', function() { - return Font; - }), - __webpack_require__.d(__webpack_exports__, 'Footer', function() { - return Footer; - }), - __webpack_require__.d(__webpack_exports__, 'Form', function() { - return Form; - }), - __webpack_require__.d(__webpack_exports__, 'Frame', function() { - return Frame; - }), - __webpack_require__.d(__webpack_exports__, 'Frameset', function() { - return Frameset; - }), - __webpack_require__.d(__webpack_exports__, 'H1', function() { - return H1; - }), - __webpack_require__.d(__webpack_exports__, 'H2', function() { - return H2; - }), - __webpack_require__.d(__webpack_exports__, 'H3', function() { - return H3; - }), - __webpack_require__.d(__webpack_exports__, 'H4', function() { - return H4; - }), - __webpack_require__.d(__webpack_exports__, 'H5', function() { - return H5; - }), - __webpack_require__.d(__webpack_exports__, 'H6', function() { - return H6; - }), - __webpack_require__.d(__webpack_exports__, 'Head', function() { - return Head; - }), - __webpack_require__.d(__webpack_exports__, 'Header', function() { - return Header; - }), - __webpack_require__.d(__webpack_exports__, 'Hgroup', function() { - return Hgroup; - }), - __webpack_require__.d(__webpack_exports__, 'Hr', function() { - return Hr; - }), - __webpack_require__.d(__webpack_exports__, 'Html', function() { - return Html; - }), - __webpack_require__.d(__webpack_exports__, 'I', function() { - return I; - }), - __webpack_require__.d(__webpack_exports__, 'Iframe', function() { - return Iframe; - }), - __webpack_require__.d(__webpack_exports__, 'Image', function() { - return Image; - }), - __webpack_require__.d(__webpack_exports__, 'Img', function() { - return Img; - }), - __webpack_require__.d(__webpack_exports__, 'Input', function() { - return Input; - }), - __webpack_require__.d(__webpack_exports__, 'Ins', function() { - return Ins; - }), - __webpack_require__.d(__webpack_exports__, 'Isindex', function() { - return Isindex; - }), - __webpack_require__.d(__webpack_exports__, 'Kbd', function() { - return Kbd; - }), - __webpack_require__.d(__webpack_exports__, 'Keygen', function() { - return Keygen; - }), - __webpack_require__.d(__webpack_exports__, 'Label', function() { - return Label; - }), - __webpack_require__.d(__webpack_exports__, 'Legend', function() { - return Legend; - }), - __webpack_require__.d(__webpack_exports__, 'Li', function() { - return Li; - }), - __webpack_require__.d(__webpack_exports__, 'Link', function() { - return Link; - }), - __webpack_require__.d(__webpack_exports__, 'Listing', function() { - return Listing; - }), - __webpack_require__.d(__webpack_exports__, 'Main', function() { - return Main; - }), - __webpack_require__.d(__webpack_exports__, 'MapTag', function() { - return MapTag; - }), - __webpack_require__.d(__webpack_exports__, 'Mark', function() { - return Mark; - }), - __webpack_require__.d(__webpack_exports__, 'Marquee', function() { - return Marquee; - }), - __webpack_require__.d(__webpack_exports__, 'MathTag', function() { - return MathTag; - }), - __webpack_require__.d(__webpack_exports__, 'Menu', function() { - return Menu; - }), - __webpack_require__.d(__webpack_exports__, 'Menuitem', function() { - return Menuitem; - }), - __webpack_require__.d(__webpack_exports__, 'Meta', function() { - return Meta; - }), - __webpack_require__.d(__webpack_exports__, 'Meter', function() { - return Meter; - }), - __webpack_require__.d(__webpack_exports__, 'Multicol', function() { - return Multicol; - }), - __webpack_require__.d(__webpack_exports__, 'Nav', function() { - return Nav; - }), - __webpack_require__.d(__webpack_exports__, 'Nextid', function() { - return Nextid; - }), - __webpack_require__.d(__webpack_exports__, 'Nobr', function() { - return Nobr; - }), - __webpack_require__.d(__webpack_exports__, 'Noembed', function() { - return Noembed; - }), - __webpack_require__.d(__webpack_exports__, 'Noframes', function() { - return Noframes; - }), - __webpack_require__.d(__webpack_exports__, 'Noscript', function() { - return Noscript; - }), - __webpack_require__.d(__webpack_exports__, 'ObjectTag', function() { - return ObjectTag; - }), - __webpack_require__.d(__webpack_exports__, 'Ol', function() { - return Ol; - }), - __webpack_require__.d(__webpack_exports__, 'Optgroup', function() { - return Optgroup; - }), - __webpack_require__.d(__webpack_exports__, 'Option', function() { - return Option; - }), - __webpack_require__.d(__webpack_exports__, 'Output', function() { - return Output; - }), - __webpack_require__.d(__webpack_exports__, 'P', function() { - return P; - }), - __webpack_require__.d(__webpack_exports__, 'Param', function() { - return Param; - }), - __webpack_require__.d(__webpack_exports__, 'Picture', function() { - return Picture; - }), - __webpack_require__.d(__webpack_exports__, 'Plaintext', function() { - return Plaintext; - }), - __webpack_require__.d(__webpack_exports__, 'Pre', function() { - return Pre; - }), - __webpack_require__.d(__webpack_exports__, 'Progress', function() { - return Progress; - }), - __webpack_require__.d(__webpack_exports__, 'Q', function() { - return Q; - }), - __webpack_require__.d(__webpack_exports__, 'Rb', function() { - return Rb; - }), - __webpack_require__.d(__webpack_exports__, 'Rbc', function() { - return Rbc; - }), - __webpack_require__.d(__webpack_exports__, 'Rp', function() { - return Rp; - }), - __webpack_require__.d(__webpack_exports__, 'Rt', function() { - return Rt; - }), - __webpack_require__.d(__webpack_exports__, 'Rtc', function() { - return Rtc; - }), - __webpack_require__.d(__webpack_exports__, 'Ruby', function() { - return Ruby; - }), - __webpack_require__.d(__webpack_exports__, 'S', function() { - return S; - }), - __webpack_require__.d(__webpack_exports__, 'Samp', function() { - return Samp; - }), - __webpack_require__.d(__webpack_exports__, 'Script', function() { - return Script; - }), - __webpack_require__.d(__webpack_exports__, 'Section', function() { - return Section; - }), - __webpack_require__.d(__webpack_exports__, 'Select', function() { - return Select; - }), - __webpack_require__.d(__webpack_exports__, 'Shadow', function() { - return Shadow; - }), - __webpack_require__.d(__webpack_exports__, 'Slot', function() { - return Slot; - }), - __webpack_require__.d(__webpack_exports__, 'Small', function() { - return Small; - }), - __webpack_require__.d(__webpack_exports__, 'Source', function() { - return Source; - }), - __webpack_require__.d(__webpack_exports__, 'Spacer', function() { - return Spacer; - }), - __webpack_require__.d(__webpack_exports__, 'Span', function() { - return Span; - }), - __webpack_require__.d(__webpack_exports__, 'Strike', function() { - return Strike; - }), - __webpack_require__.d(__webpack_exports__, 'Strong', function() { - return Strong; - }), - __webpack_require__.d(__webpack_exports__, 'Style', function() { - return Style; - }), - __webpack_require__.d(__webpack_exports__, 'Sub', function() { - return Sub; - }), - __webpack_require__.d(__webpack_exports__, 'Summary', function() { - return Summary; - }), - __webpack_require__.d(__webpack_exports__, 'Sup', function() { - return Sup; - }), - __webpack_require__.d(__webpack_exports__, 'Svg', function() { - return Svg; - }), - __webpack_require__.d(__webpack_exports__, 'Table', function() { - return Table; - }), - __webpack_require__.d(__webpack_exports__, 'Tbody', function() { - return Tbody; - }), - __webpack_require__.d(__webpack_exports__, 'Td', function() { - return Td; - }), - __webpack_require__.d(__webpack_exports__, 'Template', function() { - return Template; - }), - __webpack_require__.d(__webpack_exports__, 'Textarea', function() { - return Textarea; - }), - __webpack_require__.d(__webpack_exports__, 'Tfoot', function() { - return Tfoot; - }), - __webpack_require__.d(__webpack_exports__, 'Th', function() { - return Th; - }), - __webpack_require__.d(__webpack_exports__, 'Thead', function() { - return Thead; - }), - __webpack_require__.d(__webpack_exports__, 'Time', function() { - return Time; - }), - __webpack_require__.d(__webpack_exports__, 'Title', function() { - return Title; - }), - __webpack_require__.d(__webpack_exports__, 'Tr', function() { - return Tr; - }), - __webpack_require__.d(__webpack_exports__, 'Track', function() { - return Track; - }), - __webpack_require__.d(__webpack_exports__, 'Tt', function() { - return Tt; - }), - __webpack_require__.d(__webpack_exports__, 'U', function() { - return U; - }), - __webpack_require__.d(__webpack_exports__, 'Ul', function() { - return Ul; - }), - __webpack_require__.d(__webpack_exports__, 'Var', function() { - return Var; - }), - __webpack_require__.d(__webpack_exports__, 'Video', function() { - return Video; - }), - __webpack_require__.d(__webpack_exports__, 'Wbr', function() { - return Wbr; - }), - __webpack_require__.d(__webpack_exports__, 'Xmp', function() { - return Xmp; - }), - __webpack_require__.d(__webpack_exports__, 'AltGlyph', function() { - return AltGlyph; - }), - __webpack_require__.d(__webpack_exports__, 'AltGlyphDef', function() { - return AltGlyphDef; - }), - __webpack_require__.d(__webpack_exports__, 'AltGlyphItem', function() { - return AltGlyphItem; - }), - __webpack_require__.d(__webpack_exports__, 'Animate', function() { - return Animate; - }), - __webpack_require__.d(__webpack_exports__, 'AnimateColor', function() { - return AnimateColor; - }), - __webpack_require__.d(__webpack_exports__, 'AnimateMotion', function() { - return AnimateMotion; - }), - __webpack_require__.d(__webpack_exports__, 'AnimateTransform', function() { - return AnimateTransform; - }), - __webpack_require__.d(__webpack_exports__, 'Animation', function() { - return Animation; - }), - __webpack_require__.d(__webpack_exports__, 'Circle', function() { - return Circle; - }), - __webpack_require__.d(__webpack_exports__, 'ClipPath', function() { - return ClipPath; - }), - __webpack_require__.d(__webpack_exports__, 'ColorProfile', function() { - return ColorProfile; - }), - __webpack_require__.d(__webpack_exports__, 'Cursor', function() { - return Cursor; - }), - __webpack_require__.d(__webpack_exports__, 'Defs', function() { - return Defs; - }), - __webpack_require__.d(__webpack_exports__, 'Desc', function() { - return Desc; - }), - __webpack_require__.d(__webpack_exports__, 'Discard', function() { - return Discard; - }), - __webpack_require__.d(__webpack_exports__, 'Ellipse', function() { - return Ellipse; - }), - __webpack_require__.d(__webpack_exports__, 'FeBlend', function() { - return FeBlend; - }), - __webpack_require__.d(__webpack_exports__, 'FeColorMatrix', function() { - return FeColorMatrix; - }), - __webpack_require__.d(__webpack_exports__, 'FeComponentTransfer', function() { - return FeComponentTransfer; - }), - __webpack_require__.d(__webpack_exports__, 'FeComposite', function() { - return FeComposite; - }), - __webpack_require__.d(__webpack_exports__, 'FeConvolveMatrix', function() { - return FeConvolveMatrix; - }), - __webpack_require__.d(__webpack_exports__, 'FeDiffuseLighting', function() { - return FeDiffuseLighting; - }), - __webpack_require__.d(__webpack_exports__, 'FeDisplacementMap', function() { - return FeDisplacementMap; - }), - __webpack_require__.d(__webpack_exports__, 'FeDistantLight', function() { - return FeDistantLight; - }), - __webpack_require__.d(__webpack_exports__, 'FeDropShadow', function() { - return FeDropShadow; - }), - __webpack_require__.d(__webpack_exports__, 'FeFlood', function() { - return FeFlood; - }), - __webpack_require__.d(__webpack_exports__, 'FeFuncA', function() { - return FeFuncA; - }), - __webpack_require__.d(__webpack_exports__, 'FeFuncB', function() { - return FeFuncB; - }), - __webpack_require__.d(__webpack_exports__, 'FeFuncG', function() { - return FeFuncG; - }), - __webpack_require__.d(__webpack_exports__, 'FeFuncR', function() { - return FeFuncR; - }), - __webpack_require__.d(__webpack_exports__, 'FeGaussianBlur', function() { - return FeGaussianBlur; - }), - __webpack_require__.d(__webpack_exports__, 'FeImage', function() { - return FeImage; - }), - __webpack_require__.d(__webpack_exports__, 'FeMerge', function() { - return FeMerge; - }), - __webpack_require__.d(__webpack_exports__, 'FeMergeNode', function() { - return FeMergeNode; - }), - __webpack_require__.d(__webpack_exports__, 'FeMorphology', function() { - return FeMorphology; - }), - __webpack_require__.d(__webpack_exports__, 'FeOffset', function() { - return FeOffset; - }), - __webpack_require__.d(__webpack_exports__, 'FePointLight', function() { - return FePointLight; - }), - __webpack_require__.d(__webpack_exports__, 'FeSpecularLighting', function() { - return FeSpecularLighting; - }), - __webpack_require__.d(__webpack_exports__, 'FeSpotLight', function() { - return FeSpotLight; - }), - __webpack_require__.d(__webpack_exports__, 'FeTile', function() { - return FeTile; - }), - __webpack_require__.d(__webpack_exports__, 'FeTurbulence', function() { - return FeTurbulence; - }), - __webpack_require__.d(__webpack_exports__, 'Filter', function() { - return Filter; - }), - __webpack_require__.d(__webpack_exports__, 'FontFace', function() { - return FontFace; - }), - __webpack_require__.d(__webpack_exports__, 'FontFaceFormat', function() { - return FontFaceFormat; - }), - __webpack_require__.d(__webpack_exports__, 'FontFaceName', function() { - return FontFaceName; - }), - __webpack_require__.d(__webpack_exports__, 'FontFaceSrc', function() { - return FontFaceSrc; - }), - __webpack_require__.d(__webpack_exports__, 'FontFaceUri', function() { - return FontFaceUri; - }), - __webpack_require__.d(__webpack_exports__, 'ForeignObject', function() { - return ForeignObject; - }), - __webpack_require__.d(__webpack_exports__, 'G', function() { - return G; - }), - __webpack_require__.d(__webpack_exports__, 'Glyph', function() { - return Glyph; - }), - __webpack_require__.d(__webpack_exports__, 'GlyphRef', function() { - return GlyphRef; - }), - __webpack_require__.d(__webpack_exports__, 'Handler', function() { - return Handler; - }), - __webpack_require__.d(__webpack_exports__, 'Hatch', function() { - return Hatch; - }), - __webpack_require__.d(__webpack_exports__, 'Hatchpath', function() { - return Hatchpath; - }), - __webpack_require__.d(__webpack_exports__, 'Hkern', function() { - return Hkern; - }), - __webpack_require__.d(__webpack_exports__, 'Line', function() { - return Line; - }), - __webpack_require__.d(__webpack_exports__, 'LinearGradient', function() { - return LinearGradient; - }), - __webpack_require__.d(__webpack_exports__, 'Listener', function() { - return Listener; - }), - __webpack_require__.d(__webpack_exports__, 'Marker', function() { - return Marker; - }), - __webpack_require__.d(__webpack_exports__, 'Mask', function() { - return Mask; - }), - __webpack_require__.d(__webpack_exports__, 'Mesh', function() { - return Mesh; - }), - __webpack_require__.d(__webpack_exports__, 'Meshgradient', function() { - return Meshgradient; - }), - __webpack_require__.d(__webpack_exports__, 'Meshpatch', function() { - return Meshpatch; - }), - __webpack_require__.d(__webpack_exports__, 'Meshrow', function() { - return Meshrow; - }), - __webpack_require__.d(__webpack_exports__, 'Metadata', function() { - return Metadata; - }), - __webpack_require__.d(__webpack_exports__, 'MissingGlyph', function() { - return MissingGlyph; - }), - __webpack_require__.d(__webpack_exports__, 'Mpath', function() { - return Mpath; - }), - __webpack_require__.d(__webpack_exports__, 'Path', function() { - return Path; - }), - __webpack_require__.d(__webpack_exports__, 'Pattern', function() { - return Pattern; - }), - __webpack_require__.d(__webpack_exports__, 'Polygon', function() { - return Polygon; - }), - __webpack_require__.d(__webpack_exports__, 'Polyline', function() { - return Polyline; - }), - __webpack_require__.d(__webpack_exports__, 'Prefetch', function() { - return Prefetch; - }), - __webpack_require__.d(__webpack_exports__, 'RadialGradient', function() { - return RadialGradient; - }), - __webpack_require__.d(__webpack_exports__, 'Rect', function() { - return Rect; - }), - __webpack_require__.d(__webpack_exports__, 'SetTag', function() { - return SetTag; - }), - __webpack_require__.d(__webpack_exports__, 'SolidColor', function() { - return SolidColor; - }), - __webpack_require__.d(__webpack_exports__, 'Solidcolor', function() { - return Solidcolor; - }), - __webpack_require__.d(__webpack_exports__, 'Stop', function() { - return Stop; - }), - __webpack_require__.d(__webpack_exports__, 'Switch', function() { - return Switch; - }), - __webpack_require__.d(__webpack_exports__, 'SymbolTag', function() { - return SymbolTag; - }), - __webpack_require__.d(__webpack_exports__, 'Tbreak', function() { - return Tbreak; - }), - __webpack_require__.d(__webpack_exports__, 'Text', function() { - return Text; - }), - __webpack_require__.d(__webpack_exports__, 'TextArea', function() { - return TextArea; - }), - __webpack_require__.d(__webpack_exports__, 'TextPath', function() { - return TextPath; - }), - __webpack_require__.d(__webpack_exports__, 'Tref', function() { - return Tref; - }), - __webpack_require__.d(__webpack_exports__, 'Tspan', function() { - return Tspan; - }), - __webpack_require__.d(__webpack_exports__, 'Unknown', function() { - return Unknown; - }), - __webpack_require__.d(__webpack_exports__, 'Use', function() { - return Use; - }), - __webpack_require__.d(__webpack_exports__, 'View', function() { - return View; - }), - __webpack_require__.d(__webpack_exports__, 'Vkern', function() { - return Vkern; - }); - var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), - __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_0_react__ - ), - __WEBPACK_IMPORTED_MODULE_1_glamor__ = __webpack_require__(1187), - domElements = (__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_glamor__), - [ - 'a', - 'abbr', - 'acronym', - 'address', - 'applet', - 'area', - 'article', - 'aside', - 'audio', - 'b', - 'base', - 'basefont', - 'bdi', - 'bdo', - 'bgsound', - 'big', - 'blink', - 'blockquote', - 'body', - 'br', - 'button', - 'canvas', - 'caption', - 'center', - 'cite', - 'code', - 'col', - 'colgroup', - 'command', - 'content', - 'data', - 'datalist', - 'dd', - 'del', - 'details', - 'dfn', - 'dialog', - 'dir', - 'div', - 'dl', - 'dt', - 'element', - 'em', - 'embed', - 'fieldset', - 'figcaption', - 'figure', - 'font', - 'footer', - 'form', - 'frame', - 'frameset', - 'h1', - 'h2', - 'h3', - 'h4', - 'h5', - 'h6', - 'head', - 'header', - 'hgroup', - 'hr', - 'html', - 'i', - 'iframe', - 'image', - 'img', - 'input', - 'ins', - 'isindex', - 'kbd', - 'keygen', - 'label', - 'legend', - 'li', - 'link', - 'listing', - 'main', - 'map', - 'mark', - 'marquee', - 'math', - 'menu', - 'menuitem', - 'meta', - 'meter', - 'multicol', - 'nav', - 'nextid', - 'nobr', - 'noembed', - 'noframes', - 'noscript', - 'object', - 'ol', - 'optgroup', - 'option', - 'output', - 'p', - 'param', - 'picture', - 'plaintext', - 'pre', - 'progress', - 'q', - 'rb', - 'rbc', - 'rp', - 'rt', - 'rtc', - 'ruby', - 's', - 'samp', - 'script', - 'section', - 'select', - 'shadow', - 'slot', - 'small', - 'source', - 'spacer', - 'span', - 'strike', - 'strong', - 'style', - 'sub', - 'summary', - 'sup', - 'svg', - 'table', - 'tbody', - 'td', - 'template', - 'textarea', - 'tfoot', - 'th', - 'thead', - 'time', - 'title', - 'tr', - 'track', - 'tt', - 'u', - 'ul', - 'var', - 'video', - 'wbr', - 'xmp' - ] - .concat([ - 'a', - 'altGlyph', - 'altGlyphDef', - 'altGlyphItem', - 'animate', - 'animateColor', - 'animateMotion', - 'animateTransform', - 'animation', - 'audio', - 'canvas', - 'circle', - 'clipPath', - 'color-profile', - 'cursor', - 'defs', - 'desc', - 'discard', - 'ellipse', - 'feBlend', - 'feColorMatrix', - 'feComponentTransfer', - 'feComposite', - 'feConvolveMatrix', - 'feDiffuseLighting', - 'feDisplacementMap', - 'feDistantLight', - 'feDropShadow', - 'feFlood', - 'feFuncA', - 'feFuncB', - 'feFuncG', - 'feFuncR', - 'feGaussianBlur', - 'feImage', - 'feMerge', - 'feMergeNode', - 'feMorphology', - 'feOffset', - 'fePointLight', - 'feSpecularLighting', - 'feSpotLight', - 'feTile', - 'feTurbulence', - 'filter', - 'font', - 'font-face', - 'font-face-format', - 'font-face-name', - 'font-face-src', - 'font-face-uri', - 'foreignObject', - 'g', - 'glyph', - 'glyphRef', - 'handler', - 'hatch', - 'hatchpath', - 'hkern', - 'iframe', - 'image', - 'line', - 'linearGradient', - 'listener', - 'marker', - 'mask', - 'mesh', - 'meshgradient', - 'meshpatch', - 'meshrow', - 'metadata', - 'missing-glyph', - 'mpath', - 'path', - 'pattern', - 'polygon', - 'polyline', - 'prefetch', - 'radialGradient', - 'rect', - 'script', - 'set', - 'solidColor', - 'solidcolor', - 'stop', - 'style', - 'svg', - 'switch', - 'symbol', - 'tbreak', - 'text', - 'textArea', - 'textPath', - 'title', - 'tref', - 'tspan', - 'unknown', - 'use', - 'video', - 'view', - 'vkern' - ]) - .filter(function(tag, index, array) { - return array.indexOf(tag) === index; - })), - CHANNEL = '__glamorous__', - _PropTypes = void 0; - if (parseFloat(__WEBPACK_IMPORTED_MODULE_0_react___default.a.version.slice(0, 4)) >= 15.5) - try { - _PropTypes = __webpack_require__(2); - } catch (error) {} - _PropTypes = _PropTypes || __WEBPACK_IMPORTED_MODULE_0_react___default.a.PropTypes; - var classCallCheck = function(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - }, - createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - Object.defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(), - defineProperty = function(obj, key, value) { - return ( - key in obj - ? Object.defineProperty(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (obj[key] = value), - obj - ); - }, - _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }, - inherits = function(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - }, - objectWithoutProperties = function(obj, keys) { - var target = {}; - for (var i in obj) - keys.indexOf(i) >= 0 || - (Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i])); - return target; - }, - possibleConstructorReturn = function(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - }, - toConsumableArray = function(arr) { - if (Array.isArray(arr)) { - for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; - return arr2; - } - return Array.from(arr); - }; - function withTheme(ComponentToTheme) { - var _ref = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, - _ref$noWarn = _ref.noWarn, - noWarn = void 0 !== _ref$noWarn && _ref$noWarn, - _ref$createElement = _ref.createElement, - createElement = void 0 === _ref$createElement || _ref$createElement, - ThemedComponent = (function(_React$Component) { - function ThemedComponent() { - var _ref2, _temp, _this; - classCallCheck(this, ThemedComponent); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) - args[_key] = arguments[_key]; - return ( - (_temp = _this = possibleConstructorReturn( - this, - (_ref2 = - ThemedComponent.__proto__ || Object.getPrototypeOf(ThemedComponent)).call.apply( - _ref2, - [this].concat(args) - ) - )), - (_this.warned = noWarn), - (_this.state = { theme: {} }), - (_this.setTheme = function(theme) { - return _this.setState({ theme: theme }); - }), - possibleConstructorReturn(_this, _temp) - ); - } - return ( - inherits(ThemedComponent, _React$Component), - createClass(ThemedComponent, [ - { - key: 'componentWillMount', - value: function componentWillMount() { - this.context[CHANNEL]; - var theme = this.props.theme; - this.context[CHANNEL] - ? this.setTheme(theme || this.context[CHANNEL].getState()) - : this.setTheme(theme || {}); - } - }, - { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps) { - this.props.theme !== nextProps.theme && this.setTheme(nextProps.theme); - } - }, - { - key: 'componentDidMount', - value: function componentDidMount() { - this.context[CHANNEL] && - !this.props.theme && - (this.subscriptionId = this.context[CHANNEL].subscribe(this.setTheme)); - } - }, - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.subscriptionId && this.context[CHANNEL].unsubscribe(this.subscriptionId); - } - }, - { - key: 'render', - value: function render() { - return createElement - ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement( - ComponentToTheme, - _extends({}, this.props, this.state) - ) - : ComponentToTheme.call( - this, - _extends({}, this.props, this.state), - this.context - ); - } - } - ]), - ThemedComponent - ); - })(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component); - ThemedComponent.propTypes = { theme: _PropTypes.object }; - var defaultContextTypes = defineProperty({}, CHANNEL, _PropTypes.object), - userDefinedContextTypes = null; - return ( - Object.defineProperty(ThemedComponent, 'contextTypes', { - enumerable: !0, - configurable: !0, - set: function set$$1(value) { - userDefinedContextTypes = value; - }, - get: function get$$1() { - return userDefinedContextTypes - ? _extends({}, defaultContextTypes, userDefinedContextTypes) - : defaultContextTypes; - } - }), - ThemedComponent - ); - } - var isFunction_1 = function isFunction(fn) { - var string = toString.call(fn); - return ( - '[object Function]' === string || - ('function' == typeof fn && '[object RegExp]' !== string) || - ('undefined' != typeof window && - (fn === window.setTimeout || - fn === window.alert || - fn === window.confirm || - fn === window.prompt)) - ); - }, - toString = Object.prototype.toString; - var isobject = function isObject(val) { - return null != val && 'object' == typeof val && !1 === Array.isArray(val); - }; - function isObjectObject(o) { - return !0 === isobject(o) && '[object Object]' === Object.prototype.toString.call(o); - } - var ThemeProvider = (function(_React$Component) { - function ThemeProvider() { - var _ref, _temp, _this; - classCallCheck(this, ThemeProvider); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) - args[_key] = arguments[_key]; - return ( - (_temp = _this = possibleConstructorReturn( - this, - (_ref = ThemeProvider.__proto__ || Object.getPrototypeOf(ThemeProvider)).call.apply( - _ref, - [this].concat(args) - ) - )), - (_this.setOuterTheme = function(theme) { - (_this.outerTheme = theme), void 0 !== _this.broadcast && _this.publishTheme(); - }), - possibleConstructorReturn(_this, _temp) - ); - } - return ( - inherits(ThemeProvider, _React$Component), - createClass(ThemeProvider, [ - { - key: 'getTheme', - value: function getTheme(passedTheme) { - var theme = passedTheme || this.props.theme; - if (isFunction_1(theme)) { - var mergedTheme = theme(this.outerTheme); - if ( - !(function isPlainObject(o) { - var ctor, prot; - return ( - !1 !== isObjectObject(o) && - 'function' == typeof (ctor = o.constructor) && - !1 !== isObjectObject((prot = ctor.prototype)) && - !1 !== prot.hasOwnProperty('isPrototypeOf') - ); - })(mergedTheme) - ) - throw new Error( - '[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!' - ); - return mergedTheme; - } - return _extends({}, this.outerTheme, theme); - } - }, - { - key: 'getChildContext', - value: function getChildContext() { - return defineProperty({}, CHANNEL, this.broadcast); - } - }, - { - key: 'publishTheme', - value: function publishTheme(theme) { - this.broadcast.setState(this.getTheme(theme)); - } - }, - { - key: 'componentDidMount', - value: function componentDidMount() { - this.context[CHANNEL] && - (this.subscriptionId = this.context[CHANNEL].subscribe(this.setOuterTheme)); - } - }, - { - key: 'componentWillMount', - value: function componentWillMount() { - this.context[CHANNEL] && this.setOuterTheme(this.context[CHANNEL].getState()), - (this.broadcast = (function createBroadcast(initialState) { - var listeners = {}, - id = 1, - _state = initialState; - return { - getState: function getState() { - return _state; - }, - setState: function setState(state) { - _state = state; - for ( - var keys = Object.keys(listeners), i = 0, len = keys.length; - i < len; - i++ - ) - listeners[keys[i]] && listeners[keys[i]](state); - }, - subscribe: function subscribe(listener) { - if ('function' != typeof listener) - throw new Error('listener must be a function.'); - var currentId = id; - return (listeners[currentId] = listener), (id += 1), currentId; - }, - unsubscribe: function unsubscribe(id) { - listeners[id] = void 0; - } - }; - })(this.getTheme(this.props.theme))); - } - }, - { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps) { - this.props.theme !== nextProps.theme && this.publishTheme(nextProps.theme); - } - }, - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.subscriptionId && this.context[CHANNEL].unsubscribe(this.subscriptionId); - } - }, - { - key: 'render', - value: function render() { - return this.props.children - ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.only(this.props.children) - : null; - } - } - ]), - ThemeProvider - ); - })(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component); - function extractGlamorStyles(className) { - var glamorlessClassName = [], - glamorStyles = []; - return ( - className - .toString() - .split(' ') - .forEach(function(name) { - if (0 === name.indexOf('css-')) { - var style = (function buildGlamorSrcFromClassName(className) { - return defineProperty({}, 'data-' + className, ''); - })(name); - glamorStyles.push(style); - } else glamorlessClassName.push(name); - }), - { glamorlessClassName: glamorlessClassName, glamorStyles: glamorStyles } - ); - } - function getGlamorClassName$1(_ref2) { - var styles = _ref2.styles, - props = _ref2.props, - cssOverrides = _ref2.cssOverrides, - cssProp = _ref2.cssProp, - context = _ref2.context, - _handleStyles = (_ref2.displayName, - (function handleStyles(styles, props, context) { - var current = void 0; - var mappedArgs = []; - var nonGlamorClassNames = []; - for (var i = 0; i < styles.length; i++) - if ('function' == typeof (current = styles[i])) { - var result = current(props, context); - if ('string' == typeof result) { - var _extractGlamorStyles = extractGlamorStyles(result), - glamorStyles = _extractGlamorStyles.glamorStyles, - glamorlessClassName = _extractGlamorStyles.glamorlessClassName; - mappedArgs.push.apply(mappedArgs, toConsumableArray(glamorStyles)), - nonGlamorClassNames.push.apply( - nonGlamorClassNames, - toConsumableArray(glamorlessClassName) - ); - } else mappedArgs.push(result); - } else if ('string' == typeof current) { - var _extractGlamorStyles2 = extractGlamorStyles(current), - _glamorStyles = _extractGlamorStyles2.glamorStyles, - _glamorlessClassName = _extractGlamorStyles2.glamorlessClassName; - mappedArgs.push.apply(mappedArgs, toConsumableArray(_glamorStyles)), - nonGlamorClassNames.push.apply( - nonGlamorClassNames, - toConsumableArray(_glamorlessClassName) - ); - } else if (Array.isArray(current)) { - var recursed = handleStyles(current, props, context); - mappedArgs.push.apply(mappedArgs, toConsumableArray(recursed.mappedArgs)), - nonGlamorClassNames.push.apply( - nonGlamorClassNames, - toConsumableArray(recursed.nonGlamorClassNames) - ); - } else mappedArgs.push(current); - return { mappedArgs: mappedArgs, nonGlamorClassNames: nonGlamorClassNames }; - })( - [].concat(toConsumableArray(styles), [props.className, cssOverrides, cssProp]), - props, - context - )), - mappedArgs = _handleStyles.mappedArgs, - nonGlamorClassNames = _handleStyles.nonGlamorClassNames, - devRules = null; - return ( - __WEBPACK_IMPORTED_MODULE_1_glamor__.css - .apply(void 0, [devRules].concat(toConsumableArray(mappedArgs))) - .toString() + - ' ' + - nonGlamorClassNames.join(' ').trim() - ).trim(); - } - function arrayify() { - var x = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : []; - return Array.isArray(x) ? x : [x]; - } - function when(comp, prop) { - return comp ? comp.concat(prop) : prop; - } - function monadic(fn, cache, serializer, arg) { - var cacheKey = (function isPrimitive(value) { - return null == value || ('function' != typeof value && 'object' != typeof value); - })(arg) - ? arg - : serializer(arg); - if (!cache.has(cacheKey)) { - var computedValue = fn.call(this, arg); - return cache.set(cacheKey, computedValue), computedValue; - } - return cache.get(cacheKey); - } - function variadic(fn, cache, serializer) { - var args = Array.prototype.slice.call(arguments, 3), - cacheKey = serializer(args); - if (!cache.has(cacheKey)) { - var computedValue = fn.apply(this, args); - return cache.set(cacheKey, computedValue), computedValue; - } - return cache.get(cacheKey); - } - function assemble(fn, context, strategy, cache, serialize) { - return strategy.bind(context, fn, cache, serialize); - } - function strategyDefault(fn, options) { - return assemble( - fn, - this, - 1 === fn.length ? monadic : variadic, - options.cache.create(), - options.serializer - ); - } - function serializerDefault() { - return JSON.stringify(arguments); - } - function ObjectWithoutPrototypeCache() { - this.cache = Object.create(null); - } - (ThemeProvider.childContextTypes = defineProperty({}, CHANNEL, _PropTypes.object.isRequired)), - (ThemeProvider.contextTypes = defineProperty({}, CHANNEL, _PropTypes.object)), - (ThemeProvider.propTypes = { - theme: _PropTypes.oneOfType([_PropTypes.object, _PropTypes.func]).isRequired, - children: _PropTypes.node - }), - (ObjectWithoutPrototypeCache.prototype.has = function(key) { - return key in this.cache; - }), - (ObjectWithoutPrototypeCache.prototype.get = function(key) { - return this.cache[key]; - }), - (ObjectWithoutPrototypeCache.prototype.set = function(key, value) { - this.cache[key] = value; - }); - var cacheDefault = { - create: function create() { - return new ObjectWithoutPrototypeCache(); - } - }, - src$1 = function memoize(fn, options) { - var cache = options && options.cache ? options.cache : cacheDefault, - serializer = options && options.serializer ? options.serializer : serializerDefault; - return (options && options.strategy ? options.strategy : strategyDefault)(fn, { - cache: cache, - serializer: serializer - }); - }, - strategies = { - variadic: function strategyVariadic(fn, options) { - return assemble(fn, this, variadic, options.cache.create(), options.serializer); - }, - monadic: function strategyMonadic(fn, options) { - return assemble(fn, this, monadic, options.cache.create(), options.serializer); - } - }; - src$1.strategies = strategies; - var a = ['coords', 'download', 'href', 'name', 'rel', 'shape', 'target', 'type'], - abbr = ['title'], - applet = ['alt', 'height', 'name', 'width'], - area = ['alt', 'coords', 'download', 'href', 'rel', 'shape', 'target', 'type'], - audio = ['controls', 'loop', 'muted', 'preload', 'src'], - base = ['href', 'target'], - basefont = ['size'], - bdo = ['dir'], - blockquote = ['cite'], - button = ['disabled', 'form', 'name', 'type', 'value'], - canvas = ['height', 'width'], - col = ['span', 'width'], - colgroup = ['span', 'width'], - data = ['value'], - del = ['cite'], - details = ['open'], - dfn = ['title'], - dialog = ['open'], - embed = ['height', 'src', 'type', 'width'], - fieldset = ['disabled', 'form', 'name'], - font = ['size'], - form = ['accept', 'action', 'method', 'name', 'target'], - frame = ['name', 'scrolling', 'src'], - frameset = ['cols', 'rows'], - head = ['profile'], - hr = ['size', 'width'], - html = ['manifest'], - iframe = ['height', 'name', 'sandbox', 'scrolling', 'src', 'width'], - img = ['alt', 'height', 'name', 'sizes', 'src', 'width'], - input = [ - 'accept', - 'alt', - 'autoCapitalize', - 'autoCorrect', - 'autoSave', - 'checked', - 'defaultChecked', - 'defaultValue', - 'disabled', - 'form', - 'height', - 'list', - 'max', - 'min', - 'multiple', - 'name', - 'onChange', - 'pattern', - 'placeholder', - 'required', - 'results', - 'size', - 'src', - 'step', - 'title', - 'type', - 'value', - 'width' - ], - ins = ['cite'], - keygen = ['challenge', 'disabled', 'form', 'name'], - label = ['form'], - li = ['type', 'value'], - link = [ - 'color', - 'href', - 'integrity', - 'media', - 'nonce', - 'rel', - 'scope', - 'sizes', - 'target', - 'title', - 'type' - ], - map = ['name'], - meta = ['content', 'name'], - meter = ['high', 'low', 'max', 'min', 'optimum', 'value'], - object = ['data', 'form', 'height', 'name', 'type', 'width'], - ol = ['reversed', 'start', 'type'], - optgroup = ['disabled', 'label'], - option = ['disabled', 'label', 'selected', 'value'], - output = ['form', 'name'], - param = ['name', 'type', 'value'], - pre = ['width'], - progress = ['max', 'value'], - q = ['cite'], - script = ['async', 'defer', 'integrity', 'nonce', 'src', 'type'], - select = [ - 'defaultValue', - 'disabled', - 'form', - 'multiple', - 'name', - 'onChange', - 'required', - 'size', - 'value' - ], - slot = ['name'], - source = ['media', 'sizes', 'src', 'type'], - style = ['media', 'nonce', 'title', 'type'], - table = ['summary', 'width'], - td = ['headers', 'height', 'scope', 'width'], - textarea = [ - 'autoCapitalize', - 'autoCorrect', - 'cols', - 'defaultValue', - 'disabled', - 'form', - 'name', - 'onChange', - 'placeholder', - 'required', - 'rows', - 'value', - 'wrap' - ], - th = ['headers', 'height', 'scope', 'width'], - track = ['default', 'kind', 'label', 'src'], - ul = ['type'], - video = ['controls', 'height', 'loop', 'muted', 'poster', 'preload', 'src', 'width'], - svg = [ - 'accentHeight', - 'accumulate', - 'additive', - 'alignmentBaseline', - 'allowReorder', - 'alphabetic', - 'amplitude', - 'arabicForm', - 'ascent', - 'attributeName', - 'attributeType', - 'autoReverse', - 'azimuth', - 'baseFrequency', - 'baseProfile', - 'baselineShift', - 'bbox', - 'begin', - 'bias', - 'by', - 'calcMode', - 'capHeight', - 'clip', - 'clipPath', - 'clipPathUnits', - 'clipRule', - 'color', - 'colorInterpolation', - 'colorInterpolationFilters', - 'colorProfile', - 'colorRendering', - 'contentScriptType', - 'contentStyleType', - 'cursor', - 'cx', - 'cy', - 'd', - 'decelerate', - 'descent', - 'diffuseConstant', - 'direction', - 'display', - 'divisor', - 'dominantBaseline', - 'dur', - 'dx', - 'dy', - 'edgeMode', - 'elevation', - 'enableBackground', - 'end', - 'exponent', - 'externalResourcesRequired', - 'fill', - 'fillOpacity', - 'fillRule', - 'filter', - 'filterRes', - 'filterUnits', - 'floodColor', - 'floodOpacity', - 'focusable', - 'fontFamily', - 'fontSize', - 'fontSizeAdjust', - 'fontStretch', - 'fontStyle', - 'fontVariant', - 'fontWeight', - 'format', - 'from', - 'fx', - 'fy', - 'g1', - 'g2', - 'glyphName', - 'glyphOrientationHorizontal', - 'glyphOrientationVertical', - 'glyphRef', - 'gradientTransform', - 'gradientUnits', - 'hanging', - 'height', - 'horizAdvX', - 'horizOriginX', - 'ideographic', - 'imageRendering', - 'in', - 'in2', - 'intercept', - 'k', - 'k1', - 'k2', - 'k3', - 'k4', - 'kernelMatrix', - 'kernelUnitLength', - 'kerning', - 'keyPoints', - 'keySplines', - 'keyTimes', - 'lengthAdjust', - 'letterSpacing', - 'lightingColor', - 'limitingConeAngle', - 'local', - 'markerEnd', - 'markerHeight', - 'markerMid', - 'markerStart', - 'markerUnits', - 'markerWidth', - 'mask', - 'maskContentUnits', - 'maskUnits', - 'mathematical', - 'mode', - 'numOctaves', - 'offset', - 'opacity', - 'operator', - 'order', - 'orient', - 'orientation', - 'origin', - 'overflow', - 'overlinePosition', - 'overlineThickness', - 'paintOrder', - 'panose1', - 'pathLength', - 'patternContentUnits', - 'patternTransform', - 'patternUnits', - 'pointerEvents', - 'points', - 'pointsAtX', - 'pointsAtY', - 'pointsAtZ', - 'preserveAlpha', - 'preserveAspectRatio', - 'primitiveUnits', - 'r', - 'radius', - 'refX', - 'refY', - 'renderingIntent', - 'repeatCount', - 'repeatDur', - 'requiredExtensions', - 'requiredFeatures', - 'restart', - 'result', - 'rotate', - 'rx', - 'ry', - 'scale', - 'seed', - 'shapeRendering', - 'slope', - 'spacing', - 'specularConstant', - 'specularExponent', - 'speed', - 'spreadMethod', - 'startOffset', - 'stdDeviation', - 'stemh', - 'stemv', - 'stitchTiles', - 'stopColor', - 'stopOpacity', - 'strikethroughPosition', - 'strikethroughThickness', - 'string', - 'stroke', - 'strokeDasharray', - 'strokeDashoffset', - 'strokeLinecap', - 'strokeLinejoin', - 'strokeMiterlimit', - 'strokeOpacity', - 'strokeWidth', - 'surfaceScale', - 'systemLanguage', - 'tableValues', - 'targetX', - 'targetY', - 'textAnchor', - 'textDecoration', - 'textLength', - 'textRendering', - 'to', - 'transform', - 'u1', - 'u2', - 'underlinePosition', - 'underlineThickness', - 'unicode', - 'unicodeBidi', - 'unicodeRange', - 'unitsPerEm', - 'vAlphabetic', - 'vHanging', - 'vIdeographic', - 'vMathematical', - 'values', - 'vectorEffect', - 'version', - 'vertAdvY', - 'vertOriginX', - 'vertOriginY', - 'viewBox', - 'viewTarget', - 'visibility', - 'width', - 'widths', - 'wordSpacing', - 'writingMode', - 'x', - 'x1', - 'x2', - 'xChannelSelector', - 'xHeight', - 'xlinkActuate', - 'xlinkArcrole', - 'xlinkHref', - 'xlinkRole', - 'xlinkShow', - 'xlinkTitle', - 'xlinkType', - 'xmlBase', - 'xmlLang', - 'xmlSpace', - 'xmlns', - 'xmlnsXlink', - 'y', - 'y1', - 'y2', - 'yChannelSelector', - 'z', - 'zoomAndPan' - ], - elements = { - html: [ - 'a', - 'abbr', - 'address', - 'area', - 'article', - 'aside', - 'audio', - 'b', - 'base', - 'bdi', - 'bdo', - 'blockquote', - 'body', - 'br', - 'button', - 'canvas', - 'caption', - 'cite', - 'code', - 'col', - 'colgroup', - 'data', - 'datalist', - 'dd', - 'del', - 'details', - 'dfn', - 'dialog', - 'div', - 'dl', - 'dt', - 'em', - 'embed', - 'fieldset', - 'figcaption', - 'figure', - 'footer', - 'form', - 'h1', - 'h2', - 'h3', - 'h4', - 'h5', - 'h6', - 'head', - 'header', - 'hgroup', - 'hr', - 'html', - 'i', - 'iframe', - 'img', - 'input', - 'ins', - 'kbd', - 'keygen', - 'label', - 'legend', - 'li', - 'link', - 'main', - 'map', - 'mark', - 'math', - 'menu', - 'menuitem', - 'meta', - 'meter', - 'nav', - 'noscript', - 'object', - 'ol', - 'optgroup', - 'option', - 'output', - 'p', - 'param', - 'picture', - 'pre', - 'progress', - 'q', - 'rb', - 'rp', - 'rt', - 'rtc', - 'ruby', - 's', - 'samp', - 'script', - 'section', - 'select', - 'slot', - 'small', - 'source', - 'span', - 'strong', - 'style', - 'sub', - 'summary', - 'sup', - 'svg', - 'table', - 'tbody', - 'td', - 'template', - 'textarea', - 'tfoot', - 'th', - 'thead', - 'time', - 'title', - 'tr', - 'track', - 'u', - 'ul', - 'var', - 'video', - 'wbr' - ], - svg: [ - 'a', - 'altGlyph', - 'altGlyphDef', - 'altGlyphItem', - 'animate', - 'animateColor', - 'animateMotion', - 'animateTransform', - 'circle', - 'clipPath', - 'color-profile', - 'cursor', - 'defs', - 'desc', - 'ellipse', - 'feBlend', - 'feColorMatrix', - 'feComponentTransfer', - 'feComposite', - 'feConvolveMatrix', - 'feDiffuseLighting', - 'feDisplacementMap', - 'feDistantLight', - 'feFlood', - 'feFuncA', - 'feFuncB', - 'feFuncG', - 'feFuncR', - 'feGaussianBlur', - 'feImage', - 'feMerge', - 'feMergeNode', - 'feMorphology', - 'feOffset', - 'fePointLight', - 'feSpecularLighting', - 'feSpotLight', - 'feTile', - 'feTurbulence', - 'filter', - 'font', - 'font-face', - 'font-face-format', - 'font-face-name', - 'font-face-src', - 'font-face-uri', - 'foreignObject', - 'g', - 'glyph', - 'glyphRef', - 'hkern', - 'image', - 'line', - 'linearGradient', - 'marker', - 'mask', - 'metadata', - 'missing-glyph', - 'mpath', - 'path', - 'pattern', - 'polygon', - 'polyline', - 'radialGradient', - 'rect', - 'script', - 'set', - 'stop', - 'style', - 'svg', - 'switch', - 'symbol', - 'text', - 'textPath', - 'title', - 'tref', - 'tspan', - 'use', - 'view', - 'vkern' - ] - }, - reactHtmlAttributes = { - a: a, - abbr: abbr, - applet: applet, - area: area, - audio: audio, - base: base, - basefont: basefont, - bdo: bdo, - blockquote: blockquote, - button: button, - canvas: canvas, - col: col, - colgroup: colgroup, - data: data, - del: del, - details: details, - dfn: dfn, - dialog: dialog, - embed: embed, - fieldset: fieldset, - font: font, - form: form, - frame: frame, - frameset: frameset, - head: head, - hr: hr, - html: html, - iframe: iframe, - img: img, - input: input, - ins: ins, - keygen: keygen, - label: label, - li: li, - link: link, - map: map, - meta: meta, - meter: meter, - object: object, - ol: ol, - optgroup: optgroup, - option: option, - output: output, - param: param, - pre: pre, - progress: progress, - q: q, - script: script, - select: select, - slot: slot, - source: source, - style: style, - table: table, - td: td, - textarea: textarea, - th: th, - track: track, - ul: ul, - video: video, - svg: svg, - elements: elements, - '*': [ - 'about', - 'acceptCharset', - 'accessKey', - 'allowFullScreen', - 'allowTransparency', - 'autoComplete', - 'autoFocus', - 'autoPlay', - 'capture', - 'cellPadding', - 'cellSpacing', - 'charSet', - 'classID', - 'className', - 'colSpan', - 'contentEditable', - 'contextMenu', - 'crossOrigin', - 'dangerouslySetInnerHTML', - 'datatype', - 'dateTime', - 'dir', - 'draggable', - 'encType', - 'formAction', - 'formEncType', - 'formMethod', - 'formNoValidate', - 'formTarget', - 'frameBorder', - 'hidden', - 'hrefLang', - 'htmlFor', - 'httpEquiv', - 'icon', - 'id', - 'inlist', - 'inputMode', - 'is', - 'itemID', - 'itemProp', - 'itemRef', - 'itemScope', - 'itemType', - 'keyParams', - 'keyType', - 'lang', - 'marginHeight', - 'marginWidth', - 'maxLength', - 'mediaGroup', - 'minLength', - 'noValidate', - 'prefix', - 'property', - 'radioGroup', - 'readOnly', - 'resource', - 'role', - 'rowSpan', - 'scoped', - 'seamless', - 'security', - 'spellCheck', - 'srcDoc', - 'srcLang', - 'srcSet', - 'style', - 'suppressContentEditableWarning', - 'tabIndex', - 'title', - 'typeof', - 'unselectable', - 'useMap', - 'vocab', - 'wmode' - ] - }, - reactHtmlAttributes$1 = Object.freeze({ - a: a, - abbr: abbr, - applet: applet, - area: area, - audio: audio, - base: base, - basefont: basefont, - bdo: bdo, - blockquote: blockquote, - button: button, - canvas: canvas, - col: col, - colgroup: colgroup, - data: data, - del: del, - details: details, - dfn: dfn, - dialog: dialog, - embed: embed, - fieldset: fieldset, - font: font, - form: form, - frame: frame, - frameset: frameset, - head: head, - hr: hr, - html: html, - iframe: iframe, - img: img, - input: input, - ins: ins, - keygen: keygen, - label: label, - li: li, - link: link, - map: map, - meta: meta, - meter: meter, - object: object, - ol: ol, - optgroup: optgroup, - option: option, - output: output, - param: param, - pre: pre, - progress: progress, - q: q, - script: script, - select: select, - slot: slot, - source: source, - style: style, - table: table, - td: td, - textarea: textarea, - th: th, - track: track, - ul: ul, - video: video, - svg: svg, - elements: elements, - default: reactHtmlAttributes - }), - reactHtmlAttributes$2 = - (reactHtmlAttributes$1 && reactHtmlAttributes) || reactHtmlAttributes$1, - reactHTMLAttributes = (function unwrapExports(x) { - return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') - ? x.default - : x; - })( - (function createCommonjsModule(fn, module) { - return fn((module = { exports: {} }), module.exports), module.exports; - })(function(module, exports) { - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = reactHtmlAttributes$2), - (module.exports = reactHtmlAttributes$2); - }) - ), - reactProps = [ - 'children', - 'dangerouslySetInnerHTML', - 'key', - 'ref', - 'autoFocus', - 'defaultValue', - 'valueLink', - 'defaultChecked', - 'checkedLink', - 'innerHTML', - 'suppressContentEditableWarning', - 'onFocusIn', - 'onFocusOut', - 'className', - 'onCopy', - 'onCut', - 'onPaste', - 'onCompositionEnd', - 'onCompositionStart', - 'onCompositionUpdate', - 'onKeyDown', - 'onKeyPress', - 'onKeyUp', - 'onFocus', - 'onBlur', - 'onChange', - 'onInput', - 'onInvalid', - 'onSubmit', - 'onClick', - 'onContextMenu', - 'onDoubleClick', - 'onDrag', - 'onDragEnd', - 'onDragEnter', - 'onDragExit', - 'onDragLeave', - 'onDragOver', - 'onDragStart', - 'onDrop', - 'onMouseDown', - 'onMouseEnter', - 'onMouseLeave', - 'onMouseMove', - 'onMouseOut', - 'onMouseOver', - 'onMouseUp', - 'onSelect', - 'onTouchCancel', - 'onTouchEnd', - 'onTouchMove', - 'onTouchStart', - 'onScroll', - 'onWheel', - 'onAbort', - 'onCanPlay', - 'onCanPlayThrough', - 'onDurationChange', - 'onEmptied', - 'onEncrypted', - 'onEnded', - 'onError', - 'onLoadedData', - 'onLoadedMetadata', - 'onLoadStart', - 'onPause', - 'onPlay', - 'onPlaying', - 'onProgress', - 'onRateChange', - 'onSeeked', - 'onSeeking', - 'onStalled', - 'onSuspend', - 'onTimeUpdate', - 'onVolumeChange', - 'onWaiting', - 'onLoad', - 'onAnimationStart', - 'onAnimationEnd', - 'onAnimationIteration', - 'onTransitionEnd', - 'onCopyCapture', - 'onCutCapture', - 'onPasteCapture', - 'onCompositionEndCapture', - 'onCompositionStartCapture', - 'onCompositionUpdateCapture', - 'onKeyDownCapture', - 'onKeyPressCapture', - 'onKeyUpCapture', - 'onFocusCapture', - 'onBlurCapture', - 'onChangeCapture', - 'onInputCapture', - 'onSubmitCapture', - 'onClickCapture', - 'onContextMenuCapture', - 'onDoubleClickCapture', - 'onDragCapture', - 'onDragEndCapture', - 'onDragEnterCapture', - 'onDragExitCapture', - 'onDragLeaveCapture', - 'onDragOverCapture', - 'onDragStartCapture', - 'onDropCapture', - 'onMouseDownCapture', - 'onMouseEnterCapture', - 'onMouseLeaveCapture', - 'onMouseMoveCapture', - 'onMouseOutCapture', - 'onMouseOverCapture', - 'onMouseUpCapture', - 'onSelectCapture', - 'onTouchCancelCapture', - 'onTouchEndCapture', - 'onTouchMoveCapture', - 'onTouchStartCapture', - 'onScrollCapture', - 'onWheelCapture', - 'onAbortCapture', - 'onCanPlayCapture', - 'onCanPlayThroughCapture', - 'onDurationChangeCapture', - 'onEmptiedCapture', - 'onEncryptedCapture', - 'onEndedCapture', - 'onErrorCapture', - 'onLoadedDataCapture', - 'onLoadedMetadataCapture', - 'onLoadStartCapture', - 'onPauseCapture', - 'onPlayCapture', - 'onPlayingCapture', - 'onProgressCapture', - 'onRateChangeCapture', - 'onSeekedCapture', - 'onSeekingCapture', - 'onStalledCapture', - 'onSuspendCapture', - 'onTimeUpdateCapture', - 'onVolumeChangeCapture', - 'onWaitingCapture', - 'onLoadCapture', - 'onAnimationStartCapture', - 'onAnimationEndCapture', - 'onAnimationIterationCapture', - 'onTransitionEndCapture' - ]; - var globalReactHtmlProps = reactHTMLAttributes['*'], - supportedSVGTagNames = reactHTMLAttributes.elements.svg, - supportedHtmlTagNames = reactHTMLAttributes.elements.html, - cssProps = ['color', 'height', 'width'], - isCustomAttribute = RegExp.prototype.test.bind( - new RegExp( - '^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$' - ) - ), - isSvgTag = function(tagName) { - return ( - 'svg' === tagName || - (-1 === supportedHtmlTagNames.indexOf(tagName) && - -1 !== supportedSVGTagNames.indexOf(tagName)) - ); - }, - shouldForwardProperty$1 = src$1(function(tagName, name) { - return ( - 'string' != typeof tagName || - (((function(name, tagName) { - var elementAttributes = void 0; - return ( - (elementAttributes = isSvgTag(tagName) - ? reactHTMLAttributes.svg - : reactHTMLAttributes[tagName] || []), - -1 !== globalReactHtmlProps.indexOf(name) || -1 !== elementAttributes.indexOf(name) - ); - })(name, tagName) || - (function(name) { - return -1 !== reactProps.indexOf(name); - })(name) || - isCustomAttribute(name.toLowerCase())) && - (!(function(name) { - return -1 !== cssProps.indexOf(name); - })(name) || - isSvgTag(tagName))) - ); - }); - var glamorous = (function createGlamorous$1(splitProps) { - return function glamorous(comp) { - var config = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, - rootEl = config.rootEl, - displayName = config.displayName, - shouldClassNameUpdate = config.shouldClassNameUpdate, - _config$filterProps = config.filterProps, - filterProps = void 0 === _config$filterProps ? [] : _config$filterProps, - _config$forwardProps = config.forwardProps, - forwardProps = void 0 === _config$forwardProps ? [] : _config$forwardProps, - _config$propsAreCssOv = config.propsAreCssOverrides, - propsAreCssOverrides = - void 0 === _config$propsAreCssOv ? comp.propsAreCssOverrides : _config$propsAreCssOv, - basePropsToApply = config.withProps; - return ( - Object.assign(glamorousComponentFactory, { withConfig: withConfig }), - glamorousComponentFactory - ); - function withConfig(newConfig) { - return glamorous(comp, _extends({}, config, newConfig)); - } - function glamorousComponentFactory() { - for (var _len = arguments.length, styles = Array(_len), _key = 0; _key < _len; _key++) - styles[_key] = arguments[_key]; - var GlamorousComponent = withTheme( - function(props, context) { - var updateClassName = (function shouldUpdate(props, context, previous) { - if (!shouldClassNameUpdate) return !0; - var update = !0; - return ( - previous && - (shouldClassNameUpdate(previous.props, props, previous.context, context) || - (update = !1)), - update - ); - })( - (props = (function getPropsToApply(propsToApply, accumulator, props, context) { - return ( - propsToApply.forEach(function(propsToApplyItem) { - return 'function' == typeof propsToApplyItem - ? Object.assign( - accumulator, - propsToApplyItem(Object.assign({}, accumulator, props), context) - ) - : Array.isArray(propsToApplyItem) - ? Object.assign( - accumulator, - getPropsToApply(propsToApplyItem, accumulator, props, context) - ) - : Object.assign(accumulator, propsToApplyItem); - }), - Object.assign(accumulator, props) - ); - })(GlamorousComponent.propsToApply, {}, props, context)), - context, - this.previous - ); - shouldClassNameUpdate && (this.previous = { props: props, context: context }); - var _splitProps = splitProps(props, GlamorousComponent), - toForward = _splitProps.toForward, - cssOverrides = _splitProps.cssOverrides, - cssProp = _splitProps.cssProp; - return ( - (this.className = updateClassName - ? getGlamorClassName$1({ - styles: GlamorousComponent.styles, - props: props, - cssOverrides: cssOverrides, - cssProp: cssProp, - context: context, - displayName: GlamorousComponent.displayName - }) - : this.className), - __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement( - GlamorousComponent.comp, - _extends({ ref: 'innerRef' in toForward ? void 0 : props.innerRef }, toForward, { - className: this.className - }) - ) - ); - }, - { noWarn: !0, createElement: !1 } - ); - return ( - (GlamorousComponent.propTypes = { - className: _PropTypes.oneOfType([_PropTypes.string, _PropTypes.object]), - cssOverrides: _PropTypes.object, - innerRef: _PropTypes.func, - glam: _PropTypes.object - }), - Object.assign( - GlamorousComponent, - (function getGlamorousComponentMetadata(_ref) { - var comp = _ref.comp, - styles = _ref.styles, - rootEl = _ref.rootEl, - filterProps = _ref.filterProps, - forwardProps = _ref.forwardProps, - displayName = _ref.displayName, - basePropsToApply = _ref.propsToApply, - componentsComp = comp.comp ? comp.comp : comp, - propsToApply = comp.propsToApply - ? [].concat( - toConsumableArray(comp.propsToApply), - toConsumableArray(arrayify(basePropsToApply)) - ) - : arrayify(basePropsToApply); - return { - styles: when(comp.styles, styles), - comp: componentsComp, - rootEl: rootEl || componentsComp, - forwardProps: when(comp.forwardProps, forwardProps), - filterProps: when(comp.filterProps, filterProps), - displayName: - displayName || - 'glamorous(' + - (function getDisplayName(comp) { - return 'string' == typeof comp - ? comp - : comp.displayName || comp.name || 'unknown'; - })(comp) + - ')', - propsToApply: propsToApply - }; - })({ - comp: comp, - styles: styles, - rootEl: rootEl, - filterProps: filterProps, - forwardProps: forwardProps, - displayName: displayName, - propsToApply: basePropsToApply - }), - { - isGlamorousComponent: !0, - propsAreCssOverrides: propsAreCssOverrides, - withComponent: function(newComp) { - var options = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, - fwp = GlamorousComponent.forwardProps, - flp = GlamorousComponent.filterProps, - componentProperties = objectWithoutProperties(GlamorousComponent, [ - 'forwardProps', - 'filterProps' - ]); - return glamorous( - _extends({}, componentProperties, { comp: newComp }), - _extends({ forwardProps: fwp, filterProps: flp }, options) - )(); - }, - withProps: function() { - for ( - var _len2 = arguments.length, propsToApply = Array(_len2), _key2 = 0; - _key2 < _len2; - _key2++ - ) - propsToApply[_key2] = arguments[_key2]; - return glamorous(GlamorousComponent, { withProps: propsToApply })(); - }, - withConfig: withConfig - } - ), - GlamorousComponent - ); - } - }; - })(function splitProps(_ref, _ref2) { - var propsAreCssOverrides = _ref2.propsAreCssOverrides, - rootEl = _ref2.rootEl, - filterProps = _ref2.filterProps, - forwardProps = _ref2.forwardProps, - cssProp = _ref.css, - innerRef = _ref.innerRef, - rest = (_ref.theme, - _ref.className, - _ref.glam, - objectWithoutProperties(_ref, ['css', 'innerRef', 'theme', 'className', 'glam'])); - void 0 !== innerRef && -1 !== forwardProps.indexOf('innerRef') && (rest.innerRef = innerRef); - var returnValue = { toForward: {}, cssProp: cssProp, cssOverrides: {} }; - return propsAreCssOverrides || 'string' == typeof rootEl || 0 !== filterProps.length - ? Object.keys(rest).reduce(function(split, propName) { - return -1 !== filterProps.indexOf(propName) - ? split - : (-1 !== forwardProps.indexOf(propName) || shouldForwardProperty$1(rootEl, propName) - ? (split.toForward[propName] = rest[propName]) - : propsAreCssOverrides && (split.cssOverrides[propName] = rest[propName]), - split); - }, returnValue) - : ((returnValue.toForward = rest), returnValue); - }); - Object.assign( - glamorous, - domElements.reduce(function(getters, tag) { - return (getters[tag] = glamorous(tag)), getters; - }, {}) - ), - Object.assign( - glamorous, - domElements.reduce(function(comps, tag) { - var capitalTag = (function capitalize(s) { - return s.slice(0, 1).toUpperCase() + s.slice(1); - })(tag); - return ( - (comps[capitalTag] = glamorous[tag]()), - (comps[capitalTag].displayName = 'glamorous.' + capitalTag), - (comps[capitalTag].propsAreCssOverrides = !0), - comps - ); - }, {}) - ), - (glamorous.default = glamorous); - var A = glamorous.A, - Abbr = glamorous.Abbr, - Acronym = glamorous.Acronym, - Address = glamorous.Address, - Applet = glamorous.Applet, - Area = glamorous.Area, - Article = glamorous.Article, - Aside = glamorous.Aside, - Audio = glamorous.Audio, - B = glamorous.B, - Base = glamorous.Base, - Basefont = glamorous.Basefont, - Bdi = glamorous.Bdi, - Bdo = glamorous.Bdo, - Bgsound = glamorous.Bgsound, - Big = glamorous.Big, - Blink = glamorous.Blink, - Blockquote = glamorous.Blockquote, - Body = glamorous.Body, - Br = glamorous.Br, - Button = glamorous.Button, - Canvas = glamorous.Canvas, - Caption = glamorous.Caption, - Center = glamorous.Center, - Cite = glamorous.Cite, - Code = glamorous.Code, - Col = glamorous.Col, - Colgroup = glamorous.Colgroup, - Command = glamorous.Command, - Content = glamorous.Content, - Data = glamorous.Data, - Datalist = glamorous.Datalist, - Dd = glamorous.Dd, - Del = glamorous.Del, - Details = glamorous.Details, - Dfn = glamorous.Dfn, - Dialog = glamorous.Dialog, - Dir = glamorous.Dir, - Div = glamorous.Div, - Dl = glamorous.Dl, - Dt = glamorous.Dt, - Element = glamorous.Element, - Em = glamorous.Em, - Embed = glamorous.Embed, - Fieldset = glamorous.Fieldset, - Figcaption = glamorous.Figcaption, - Figure = glamorous.Figure, - Font = glamorous.Font, - Footer = glamorous.Footer, - Form = glamorous.Form, - Frame = glamorous.Frame, - Frameset = glamorous.Frameset, - H1 = glamorous.H1, - H2 = glamorous.H2, - H3 = glamorous.H3, - H4 = glamorous.H4, - H5 = glamorous.H5, - H6 = glamorous.H6, - Head = glamorous.Head, - Header = glamorous.Header, - Hgroup = glamorous.Hgroup, - Hr = glamorous.Hr, - Html = glamorous.Html, - I = glamorous.I, - Iframe = glamorous.Iframe, - Image = glamorous.Image, - Img = glamorous.Img, - Input = glamorous.Input, - Ins = glamorous.Ins, - Isindex = glamorous.Isindex, - Kbd = glamorous.Kbd, - Keygen = glamorous.Keygen, - Label = glamorous.Label, - Legend = glamorous.Legend, - Li = glamorous.Li, - Link = glamorous.Link, - Listing = glamorous.Listing, - Main = glamorous.Main, - MapTag = glamorous.Map, - Mark = glamorous.Mark, - Marquee = glamorous.Marquee, - MathTag = glamorous.Math, - Menu = glamorous.Menu, - Menuitem = glamorous.Menuitem, - Meta = glamorous.Meta, - Meter = glamorous.Meter, - Multicol = glamorous.Multicol, - Nav = glamorous.Nav, - Nextid = glamorous.Nextid, - Nobr = glamorous.Nobr, - Noembed = glamorous.Noembed, - Noframes = glamorous.Noframes, - Noscript = glamorous.Noscript, - ObjectTag = glamorous.Object, - Ol = glamorous.Ol, - Optgroup = glamorous.Optgroup, - Option = glamorous.Option, - Output = glamorous.Output, - P = glamorous.P, - Param = glamorous.Param, - Picture = glamorous.Picture, - Plaintext = glamorous.Plaintext, - Pre = glamorous.Pre, - Progress = glamorous.Progress, - Q = glamorous.Q, - Rb = glamorous.Rb, - Rbc = glamorous.Rbc, - Rp = glamorous.Rp, - Rt = glamorous.Rt, - Rtc = glamorous.Rtc, - Ruby = glamorous.Ruby, - S = glamorous.S, - Samp = glamorous.Samp, - Script = glamorous.Script, - Section = glamorous.Section, - Select = glamorous.Select, - Shadow = glamorous.Shadow, - Slot = glamorous.Slot, - Small = glamorous.Small, - Source = glamorous.Source, - Spacer = glamorous.Spacer, - Span = glamorous.Span, - Strike = glamorous.Strike, - Strong = glamorous.Strong, - Style = glamorous.Style, - Sub = glamorous.Sub, - Summary = glamorous.Summary, - Sup = glamorous.Sup, - Svg = glamorous.Svg, - Table = glamorous.Table, - Tbody = glamorous.Tbody, - Td = glamorous.Td, - Template = glamorous.Template, - Textarea = glamorous.Textarea, - Tfoot = glamorous.Tfoot, - Th = glamorous.Th, - Thead = glamorous.Thead, - Time = glamorous.Time, - Title = glamorous.Title, - Tr = glamorous.Tr, - Track = glamorous.Track, - Tt = glamorous.Tt, - U = glamorous.U, - Ul = glamorous.Ul, - Var = glamorous.Var, - Video = glamorous.Video, - Wbr = glamorous.Wbr, - Xmp = glamorous.Xmp, - AltGlyph = glamorous.AltGlyph, - AltGlyphDef = glamorous.AltGlyphDef, - AltGlyphItem = glamorous.AltGlyphItem, - Animate = glamorous.Animate, - AnimateColor = glamorous.AnimateColor, - AnimateMotion = glamorous.AnimateMotion, - AnimateTransform = glamorous.AnimateTransform, - Animation = glamorous.Animation, - Circle = glamorous.Circle, - ClipPath = glamorous.ClipPath, - ColorProfile = glamorous['Color-profile'], - Cursor = glamorous.Cursor, - Defs = glamorous.Defs, - Desc = glamorous.Desc, - Discard = glamorous.Discard, - Ellipse = glamorous.Ellipse, - FeBlend = glamorous.FeBlend, - FeColorMatrix = glamorous.FeColorMatrix, - FeComponentTransfer = glamorous.FeComponentTransfer, - FeComposite = glamorous.FeComposite, - FeConvolveMatrix = glamorous.FeConvolveMatrix, - FeDiffuseLighting = glamorous.FeDiffuseLighting, - FeDisplacementMap = glamorous.FeDisplacementMap, - FeDistantLight = glamorous.FeDistantLight, - FeDropShadow = glamorous.FeDropShadow, - FeFlood = glamorous.FeFlood, - FeFuncA = glamorous.FeFuncA, - FeFuncB = glamorous.FeFuncB, - FeFuncG = glamorous.FeFuncG, - FeFuncR = glamorous.FeFuncR, - FeGaussianBlur = glamorous.FeGaussianBlur, - FeImage = glamorous.FeImage, - FeMerge = glamorous.FeMerge, - FeMergeNode = glamorous.FeMergeNode, - FeMorphology = glamorous.FeMorphology, - FeOffset = glamorous.FeOffset, - FePointLight = glamorous.FePointLight, - FeSpecularLighting = glamorous.FeSpecularLighting, - FeSpotLight = glamorous.FeSpotLight, - FeTile = glamorous.FeTile, - FeTurbulence = glamorous.FeTurbulence, - Filter = glamorous.Filter, - FontFace = glamorous['Font-face'], - FontFaceFormat = glamorous['Font-face-format'], - FontFaceName = glamorous['Font-face-name'], - FontFaceSrc = glamorous['Font-face-src'], - FontFaceUri = glamorous['Font-face-uri'], - ForeignObject = glamorous.ForeignObject, - G = glamorous.G, - Glyph = glamorous.Glyph, - GlyphRef = glamorous.GlyphRef, - Handler = glamorous.Handler, - Hatch = glamorous.Hatch, - Hatchpath = glamorous.Hatchpath, - Hkern = glamorous.Hkern, - Line = glamorous.Line, - LinearGradient = glamorous.LinearGradient, - Listener = glamorous.Listener, - Marker = glamorous.Marker, - Mask = glamorous.Mask, - Mesh = glamorous.Mesh, - Meshgradient = glamorous.Meshgradient, - Meshpatch = glamorous.Meshpatch, - Meshrow = glamorous.Meshrow, - Metadata = glamorous.Metadata, - MissingGlyph = glamorous['Missing-glyph'], - Mpath = glamorous.Mpath, - Path = glamorous.Path, - Pattern = glamorous.Pattern, - Polygon = glamorous.Polygon, - Polyline = glamorous.Polyline, - Prefetch = glamorous.Prefetch, - RadialGradient = glamorous.RadialGradient, - Rect = glamorous.Rect, - SetTag = glamorous.Set, - SolidColor = glamorous.SolidColor, - Solidcolor = glamorous.Solidcolor, - Stop = glamorous.Stop, - Switch = glamorous.Switch, - SymbolTag = glamorous.Symbol, - Tbreak = glamorous.Tbreak, - Text = glamorous.Text, - TextArea = glamorous.TextArea, - TextPath = glamorous.TextPath, - Tref = glamorous.Tref, - Tspan = glamorous.Tspan, - Unknown = glamorous.Unknown, - Use = glamorous.Use, - View = glamorous.View, - Vkern = glamorous.Vkern; - __webpack_exports__.default = glamorous; - }, - function(module, exports, __webpack_require__) { - var isNative = __webpack_require__(1209); - module.exports = function getNative(object, key) { - var value = null == object ? void 0 : object[key]; - return isNative(value) ? value : void 0; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function(property, value) { - var replacer = - arguments.length <= 2 || void 0 === arguments[2] - ? function(prefix, value) { - return prefix + value; - } - : arguments[2]; - return (function _defineProperty(obj, key, value) { - return ( - key in obj - ? Object.defineProperty(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (obj[key] = value), - obj - ); - })( - {}, - property, - ['-webkit-', '-moz-', ''].map(function(prefix) { - return replacer(prefix, value); - }) - ); - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(305), __webpack_require__(323), __webpack_require__(331); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(306), - __webpack_require__(321), - (module.exports = __webpack_require__(67).Symbol); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var global = __webpack_require__(36), - has = __webpack_require__(37), - DESCRIPTORS = __webpack_require__(51), - $export = __webpack_require__(190), - redefine = __webpack_require__(91), - META = __webpack_require__(309).KEY, - $fails = __webpack_require__(88), - shared = __webpack_require__(126), - setToStringTag = __webpack_require__(127), - uid = __webpack_require__(69), - wks = __webpack_require__(38), - wksExt = __webpack_require__(193), - wksDefine = __webpack_require__(310), - enumKeys = __webpack_require__(311), - isArray = __webpack_require__(316), - anObject = __webpack_require__(89), - isObject = __webpack_require__(68), - toIObject = __webpack_require__(54), - toPrimitive = __webpack_require__(125), - createDesc = __webpack_require__(90), - _create = __webpack_require__(198), - gOPNExt = __webpack_require__(319), - $GOPD = __webpack_require__(320), - $DP = __webpack_require__(53), - $keys = __webpack_require__(129), - gOPD = $GOPD.f, - dP = $DP.f, - gOPN = gOPNExt.f, - $Symbol = global.Symbol, - $JSON = global.JSON, - _stringify = $JSON && $JSON.stringify, - HIDDEN = wks('_hidden'), - TO_PRIMITIVE = wks('toPrimitive'), - isEnum = {}.propertyIsEnumerable, - SymbolRegistry = shared('symbol-registry'), - AllSymbols = shared('symbols'), - OPSymbols = shared('op-symbols'), - ObjectProto = Object.prototype, - USE_NATIVE = 'function' == typeof $Symbol, - QObject = global.QObject, - setter = !QObject || !QObject.prototype || !QObject.prototype.findChild, - setSymbolDesc = - DESCRIPTORS && - $fails(function() { - return ( - 7 != - _create( - dP({}, 'a', { - get: function() { - return dP(this, 'a', { value: 7 }).a; - } - }) - ).a - ); - }) - ? function(it, key, D) { - var protoDesc = gOPD(ObjectProto, key); - protoDesc && delete ObjectProto[key], - dP(it, key, D), - protoDesc && it !== ObjectProto && dP(ObjectProto, key, protoDesc); - } - : dP, - wrap = function(tag) { - var sym = (AllSymbols[tag] = _create($Symbol.prototype)); - return (sym._k = tag), sym; - }, - isSymbol = - USE_NATIVE && 'symbol' == typeof $Symbol.iterator - ? function(it) { - return 'symbol' == typeof it; - } - : function(it) { - return it instanceof $Symbol; - }, - $defineProperty = function defineProperty(it, key, D) { - return ( - it === ObjectProto && $defineProperty(OPSymbols, key, D), - anObject(it), - (key = toPrimitive(key, !0)), - anObject(D), - has(AllSymbols, key) - ? (D.enumerable - ? (has(it, HIDDEN) && it[HIDDEN][key] && (it[HIDDEN][key] = !1), - (D = _create(D, { enumerable: createDesc(0, !1) }))) - : (has(it, HIDDEN) || dP(it, HIDDEN, createDesc(1, {})), (it[HIDDEN][key] = !0)), - setSymbolDesc(it, key, D)) - : dP(it, key, D) - ); - }, - $defineProperties = function defineProperties(it, P) { - anObject(it); - for (var key, keys = enumKeys((P = toIObject(P))), i = 0, l = keys.length; l > i; ) - $defineProperty(it, (key = keys[i++]), P[key]); - return it; - }, - $propertyIsEnumerable = function propertyIsEnumerable(key) { - var E = isEnum.call(this, (key = toPrimitive(key, !0))); - return ( - !(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) && - (!( - E || - !has(this, key) || - !has(AllSymbols, key) || - (has(this, HIDDEN) && this[HIDDEN][key]) - ) || - E) - ); - }, - $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { - if ( - ((it = toIObject(it)), - (key = toPrimitive(key, !0)), - it !== ObjectProto || !has(AllSymbols, key) || has(OPSymbols, key)) - ) { - var D = gOPD(it, key); - return ( - !D || - !has(AllSymbols, key) || - (has(it, HIDDEN) && it[HIDDEN][key]) || - (D.enumerable = !0), - D - ); - } - }, - $getOwnPropertyNames = function getOwnPropertyNames(it) { - for (var key, names = gOPN(toIObject(it)), result = [], i = 0; names.length > i; ) - has(AllSymbols, (key = names[i++])) || key == HIDDEN || key == META || result.push(key); - return result; - }, - $getOwnPropertySymbols = function getOwnPropertySymbols(it) { - for ( - var key, - IS_OP = it === ObjectProto, - names = gOPN(IS_OP ? OPSymbols : toIObject(it)), - result = [], - i = 0; - names.length > i; - - ) - !has(AllSymbols, (key = names[i++])) || - (IS_OP && !has(ObjectProto, key)) || - result.push(AllSymbols[key]); - return result; - }; - USE_NATIVE || - (redefine( - ($Symbol = function Symbol() { - if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); - var tag = uid(arguments.length > 0 ? arguments[0] : void 0), - $set = function(value) { - this === ObjectProto && $set.call(OPSymbols, value), - has(this, HIDDEN) && has(this[HIDDEN], tag) && (this[HIDDEN][tag] = !1), - setSymbolDesc(this, tag, createDesc(1, value)); - }; - return ( - DESCRIPTORS && - setter && - setSymbolDesc(ObjectProto, tag, { configurable: !0, set: $set }), - wrap(tag) - ); - }).prototype, - 'toString', - function toString() { - return this._k; - } - ), - ($GOPD.f = $getOwnPropertyDescriptor), - ($DP.f = $defineProperty), - (__webpack_require__(199).f = gOPNExt.f = $getOwnPropertyNames), - (__webpack_require__(133).f = $propertyIsEnumerable), - (__webpack_require__(197).f = $getOwnPropertySymbols), - DESCRIPTORS && - !__webpack_require__(128) && - redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, !0), - (wksExt.f = function(name) { - return wrap(wks(name)); - })), - $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); - for ( - var es6Symbols = 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'.split( - ',' - ), - j = 0; - es6Symbols.length > j; - - ) - wks(es6Symbols[j++]); - for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k; ) - wksDefine(wellKnownSymbols[k++]); - $export($export.S + $export.F * !USE_NATIVE, 'Symbol', { - for: function(key) { - return has(SymbolRegistry, (key += '')) - ? SymbolRegistry[key] - : (SymbolRegistry[key] = $Symbol(key)); - }, - keyFor: function keyFor(sym) { - if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); - for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; - }, - useSetter: function() { - setter = !0; - }, - useSimple: function() { - setter = !1; - } - }), - $export($export.S + $export.F * !USE_NATIVE, 'Object', { - create: function create(it, P) { - return void 0 === P ? _create(it) : $defineProperties(_create(it), P); - }, - defineProperty: $defineProperty, - defineProperties: $defineProperties, - getOwnPropertyDescriptor: $getOwnPropertyDescriptor, - getOwnPropertyNames: $getOwnPropertyNames, - getOwnPropertySymbols: $getOwnPropertySymbols - }), - $JSON && - $export( - $export.S + - $export.F * - (!USE_NATIVE || - $fails(function() { - var S = $Symbol(); - return ( - '[null]' != _stringify([S]) || - '{}' != _stringify({ a: S }) || - '{}' != _stringify(Object(S)) - ); - })), - 'JSON', - { - stringify: function stringify(it) { - for (var replacer, $replacer, args = [it], i = 1; arguments.length > i; ) - args.push(arguments[i++]); - if ( - (($replacer = replacer = args[1]), - (isObject(replacer) || void 0 !== it) && !isSymbol(it)) - ) - return ( - isArray(replacer) || - (replacer = function(key, value) { - if ( - ('function' == typeof $replacer && - (value = $replacer.call(this, key, value)), - !isSymbol(value)) - ) - return value; - }), - (args[1] = replacer), - _stringify.apply($JSON, args) - ); - } - } - ), - $Symbol.prototype[TO_PRIMITIVE] || - __webpack_require__(52)($Symbol.prototype, TO_PRIMITIVE, $Symbol.prototype.valueOf), - setToStringTag($Symbol, 'Symbol'), - setToStringTag(Math, 'Math', !0), - setToStringTag(global.JSON, 'JSON', !0); - }, - function(module, exports, __webpack_require__) { - var aFunction = __webpack_require__(308); - module.exports = function(fn, that, length) { - if ((aFunction(fn), void 0 === that)) return fn; - switch (length) { - case 1: - return function(a) { - return fn.call(that, a); - }; - case 2: - return function(a, b) { - return fn.call(that, a, b); - }; - case 3: - return function(a, b, c) { - return fn.call(that, a, b, c); - }; - } - return function() { - return fn.apply(that, arguments); - }; - }; - }, - function(module, exports) { - module.exports = function(it) { - if ('function' != typeof it) throw TypeError(it + ' is not a function!'); - return it; - }; - }, - function(module, exports, __webpack_require__) { - var META = __webpack_require__(69)('meta'), - isObject = __webpack_require__(68), - has = __webpack_require__(37), - setDesc = __webpack_require__(53).f, - id = 0, - isExtensible = - Object.isExtensible || - function() { - return !0; - }, - FREEZE = !__webpack_require__(88)(function() { - return isExtensible(Object.preventExtensions({})); - }), - setMeta = function(it) { - setDesc(it, META, { value: { i: 'O' + ++id, w: {} } }); - }, - meta = (module.exports = { - KEY: META, - NEED: !1, - fastKey: function(it, create) { - if (!isObject(it)) - return 'symbol' == typeof it ? it : ('string' == typeof it ? 'S' : 'P') + it; - if (!has(it, META)) { - if (!isExtensible(it)) return 'F'; - if (!create) return 'E'; - setMeta(it); - } - return it[META].i; - }, - getWeak: function(it, create) { - if (!has(it, META)) { - if (!isExtensible(it)) return !0; - if (!create) return !1; - setMeta(it); - } - return it[META].w; - }, - onFreeze: function(it) { - return FREEZE && meta.NEED && isExtensible(it) && !has(it, META) && setMeta(it), it; - } - }); - }, - function(module, exports, __webpack_require__) { - var global = __webpack_require__(36), - core = __webpack_require__(67), - LIBRARY = __webpack_require__(128), - wksExt = __webpack_require__(193), - defineProperty = __webpack_require__(53).f; - module.exports = function(name) { - var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); - '_' == name.charAt(0) || - name in $Symbol || - defineProperty($Symbol, name, { value: wksExt.f(name) }); - }; - }, - function(module, exports, __webpack_require__) { - var getKeys = __webpack_require__(129), - gOPS = __webpack_require__(197), - pIE = __webpack_require__(133); - module.exports = function(it) { - var result = getKeys(it), - getSymbols = gOPS.f; - if (getSymbols) - for (var key, symbols = getSymbols(it), isEnum = pIE.f, i = 0; symbols.length > i; ) - isEnum.call(it, (key = symbols[i++])) && result.push(key); - return result; - }; - }, - function(module, exports, __webpack_require__) { - var cof = __webpack_require__(130); - module.exports = Object('z').propertyIsEnumerable(0) - ? Object - : function(it) { - return 'String' == cof(it) ? it.split('') : Object(it); - }; - }, - function(module, exports, __webpack_require__) { - var toIObject = __webpack_require__(54), - toLength = __webpack_require__(314), - toAbsoluteIndex = __webpack_require__(315); - module.exports = function(IS_INCLUDES) { - return function($this, el, fromIndex) { - var value, - O = toIObject($this), - length = toLength(O.length), - index = toAbsoluteIndex(fromIndex, length); - if (IS_INCLUDES && el != el) { - for (; length > index; ) if ((value = O[index++]) != value) return !0; - } else - for (; length > index; index++) - if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; - return !IS_INCLUDES && -1; - }; - }; - }, - function(module, exports, __webpack_require__) { - var toInteger = __webpack_require__(196), - min = Math.min; - module.exports = function(it) { - return it > 0 ? min(toInteger(it), 9007199254740991) : 0; - }; - }, - function(module, exports, __webpack_require__) { - var toInteger = __webpack_require__(196), - max = Math.max, - min = Math.min; - module.exports = function(index, length) { - return (index = toInteger(index)) < 0 ? max(index + length, 0) : min(index, length); - }; - }, - function(module, exports, __webpack_require__) { - var cof = __webpack_require__(130); - module.exports = - Array.isArray || - function isArray(arg) { - return 'Array' == cof(arg); - }; - }, - function(module, exports, __webpack_require__) { - var dP = __webpack_require__(53), - anObject = __webpack_require__(89), - getKeys = __webpack_require__(129); - module.exports = __webpack_require__(51) - ? Object.defineProperties - : function defineProperties(O, Properties) { - anObject(O); - for (var P, keys = getKeys(Properties), length = keys.length, i = 0; length > i; ) - dP.f(O, (P = keys[i++]), Properties[P]); - return O; - }; - }, - function(module, exports, __webpack_require__) { - var document = __webpack_require__(36).document; - module.exports = document && document.documentElement; - }, - function(module, exports, __webpack_require__) { - var toIObject = __webpack_require__(54), - gOPN = __webpack_require__(199).f, - toString = {}.toString, - windowNames = - 'object' == typeof window && window && Object.getOwnPropertyNames - ? Object.getOwnPropertyNames(window) - : []; - module.exports.f = function getOwnPropertyNames(it) { - return windowNames && '[object Window]' == toString.call(it) - ? (function(it) { - try { - return gOPN(it); - } catch (e) { - return windowNames.slice(); - } - })(it) - : gOPN(toIObject(it)); - }; - }, - function(module, exports, __webpack_require__) { - var pIE = __webpack_require__(133), - createDesc = __webpack_require__(90), - toIObject = __webpack_require__(54), - toPrimitive = __webpack_require__(125), - has = __webpack_require__(37), - IE8_DOM_DEFINE = __webpack_require__(191), - gOPD = Object.getOwnPropertyDescriptor; - exports.f = __webpack_require__(51) - ? gOPD - : function getOwnPropertyDescriptor(O, P) { - if (((O = toIObject(O)), (P = toPrimitive(P, !0)), IE8_DOM_DEFINE)) - try { - return gOPD(O, P); - } catch (e) {} - if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var classof = __webpack_require__(322), - test = {}; - (test[__webpack_require__(38)('toStringTag')] = 'z'), - test + '' != '[object z]' && - __webpack_require__(91)( - Object.prototype, - 'toString', - function toString() { - return '[object ' + classof(this) + ']'; - }, - !0 - ); - }, - function(module, exports, __webpack_require__) { - var cof = __webpack_require__(130), - TAG = __webpack_require__(38)('toStringTag'), - ARG = - 'Arguments' == - cof( - (function() { - return arguments; - })() - ); - module.exports = function(it) { - var O, T, B; - return void 0 === it - ? 'Undefined' - : null === it - ? 'Null' - : 'string' == - typeof (T = (function(it, key) { - try { - return it[key]; - } catch (e) {} - })((O = Object(it)), TAG)) - ? T - : ARG - ? cof(O) - : 'Object' == (B = cof(O)) && 'function' == typeof O.callee ? 'Arguments' : B; - }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(324), (module.exports = __webpack_require__(67).Array.values); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var addToUnscopables = __webpack_require__(325), - step = __webpack_require__(326), - Iterators = __webpack_require__(200), - toIObject = __webpack_require__(54); - (module.exports = __webpack_require__(327)( - Array, - 'Array', - function(iterated, kind) { - (this._t = toIObject(iterated)), (this._i = 0), (this._k = kind); - }, - function() { - var O = this._t, - kind = this._k, - index = this._i++; - return !O || index >= O.length - ? ((this._t = void 0), step(1)) - : step(0, 'keys' == kind ? index : 'values' == kind ? O[index] : [index, O[index]]); - }, - 'values' - )), - (Iterators.Arguments = Iterators.Array), - addToUnscopables('keys'), - addToUnscopables('values'), - addToUnscopables('entries'); - }, - function(module, exports, __webpack_require__) { - var UNSCOPABLES = __webpack_require__(38)('unscopables'), - ArrayProto = Array.prototype; - void 0 == ArrayProto[UNSCOPABLES] && __webpack_require__(52)(ArrayProto, UNSCOPABLES, {}), - (module.exports = function(key) { - ArrayProto[UNSCOPABLES][key] = !0; - }); - }, - function(module, exports) { - module.exports = function(done, value) { - return { value: value, done: !!done }; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var LIBRARY = __webpack_require__(128), - $export = __webpack_require__(190), - redefine = __webpack_require__(91), - hide = __webpack_require__(52), - has = __webpack_require__(37), - Iterators = __webpack_require__(200), - $iterCreate = __webpack_require__(328), - setToStringTag = __webpack_require__(127), - getPrototypeOf = __webpack_require__(329), - ITERATOR = __webpack_require__(38)('iterator'), - BUGGY = !([].keys && 'next' in [].keys()), - returnThis = function() { - return this; - }; - module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { - $iterCreate(Constructor, NAME, next); - var methods, - key, - IteratorPrototype, - getMethod = function(kind) { - if (!BUGGY && kind in proto) return proto[kind]; - switch (kind) { - case 'keys': - return function keys() { - return new Constructor(this, kind); - }; - case 'values': - return function values() { - return new Constructor(this, kind); - }; - } - return function entries() { - return new Constructor(this, kind); - }; - }, - TAG = NAME + ' Iterator', - DEF_VALUES = 'values' == DEFAULT, - VALUES_BUG = !1, - proto = Base.prototype, - $native = proto[ITERATOR] || proto['@@iterator'] || (DEFAULT && proto[DEFAULT]), - $default = (!BUGGY && $native) || getMethod(DEFAULT), - $entries = DEFAULT ? (DEF_VALUES ? getMethod('entries') : $default) : void 0, - $anyNative = ('Array' == NAME && proto.entries) || $native; - if ( - ($anyNative && - (IteratorPrototype = getPrototypeOf($anyNative.call(new Base()))) !== Object.prototype && - IteratorPrototype.next && - (setToStringTag(IteratorPrototype, TAG, !0), - LIBRARY || - has(IteratorPrototype, ITERATOR) || - hide(IteratorPrototype, ITERATOR, returnThis)), - DEF_VALUES && - $native && - 'values' !== $native.name && - ((VALUES_BUG = !0), - ($default = function values() { - return $native.call(this); - })), - (LIBRARY && !FORCED) || - (!BUGGY && !VALUES_BUG && proto[ITERATOR]) || - hide(proto, ITERATOR, $default), - (Iterators[NAME] = $default), - (Iterators[TAG] = returnThis), - DEFAULT) - ) - if ( - ((methods = { - values: DEF_VALUES ? $default : getMethod('values'), - keys: IS_SET ? $default : getMethod('keys'), - entries: $entries - }), - FORCED) - ) - for (key in methods) key in proto || redefine(proto, key, methods[key]); - else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); - return methods; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var create = __webpack_require__(198), - descriptor = __webpack_require__(90), - setToStringTag = __webpack_require__(127), - IteratorPrototype = {}; - __webpack_require__(52)(IteratorPrototype, __webpack_require__(38)('iterator'), function() { - return this; - }), - (module.exports = function(Constructor, NAME, next) { - (Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) })), - setToStringTag(Constructor, NAME + ' Iterator'); - }); - }, - function(module, exports, __webpack_require__) { - var has = __webpack_require__(37), - toObject = __webpack_require__(330), - IE_PROTO = __webpack_require__(131)('IE_PROTO'), - ObjectProto = Object.prototype; - module.exports = - Object.getPrototypeOf || - function(O) { - return ( - (O = toObject(O)), - has(O, IE_PROTO) - ? O[IE_PROTO] - : 'function' == typeof O.constructor && O instanceof O.constructor - ? O.constructor.prototype - : O instanceof Object ? ObjectProto : null - ); - }; - }, - function(module, exports, __webpack_require__) { - var defined = __webpack_require__(195); - module.exports = function(it) { - return Object(defined(it)); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(332); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(333), __webpack_require__(334), __webpack_require__(335); - }, - function(module, exports, __webpack_require__) { - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__; - !(function(root, factory) { - 'use strict'; - void 0 === - (__WEBPACK_AMD_DEFINE_RESULT__ = - 'function' == typeof (__WEBPACK_AMD_DEFINE_FACTORY__ = factory) - ? __WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module) - : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); - })(0, function() { - var isRegex, - isString, - $Array = Array, - ArrayPrototype = $Array.prototype, - $Object = Object, - ObjectPrototype = $Object.prototype, - $Function = Function, - FunctionPrototype = $Function.prototype, - $String = String, - StringPrototype = $String.prototype, - $Number = Number, - NumberPrototype = $Number.prototype, - array_slice = ArrayPrototype.slice, - array_splice = ArrayPrototype.splice, - array_push = ArrayPrototype.push, - array_unshift = ArrayPrototype.unshift, - array_concat = ArrayPrototype.concat, - array_join = ArrayPrototype.join, - call = FunctionPrototype.call, - apply = FunctionPrototype.apply, - max = Math.max, - min = Math.min, - to_string = ObjectPrototype.toString, - hasToStringTag = 'function' == typeof Symbol && 'symbol' == typeof Symbol.toStringTag, - fnToStr = Function.prototype.toString, - constructorRegex = /^\s*class /, - isES6ClassFn = function isES6ClassFn(value) { - try { - var spaceStripped = fnToStr - .call(value) - .replace(/\/\/.*\n/g, '') - .replace(/\/\*[.\s\S]*\*\//g, '') - .replace(/\n/gm, ' ') - .replace(/ {2}/g, ' '); - return constructorRegex.test(spaceStripped); - } catch (e) { - return !1; - } - }, - isCallable = function isCallable(value) { - if (!value) return !1; - if ('function' != typeof value && 'object' != typeof value) return !1; - if (hasToStringTag) - return (function tryFunctionObject(value) { - try { - return !isES6ClassFn(value) && (fnToStr.call(value), !0); - } catch (e) { - return !1; - } - })(value); - if (isES6ClassFn(value)) return !1; - var strClass = to_string.call(value); - return '[object Function]' === strClass || '[object GeneratorFunction]' === strClass; - }, - regexExec = RegExp.prototype.exec; - isRegex = function isRegex(value) { - return ( - 'object' == typeof value && - (hasToStringTag - ? (function tryRegexExec(value) { - try { - return regexExec.call(value), !0; - } catch (e) { - return !1; - } - })(value) - : '[object RegExp]' === to_string.call(value)) - ); - }; - var strValue = String.prototype.valueOf; - isString = function isString(value) { - return ( - 'string' == typeof value || - ('object' == typeof value && - (hasToStringTag - ? (function tryStringObject(value) { - try { - return strValue.call(value), !0; - } catch (e) { - return !1; - } - })(value) - : '[object String]' === to_string.call(value))) - ); - }; - var has, - defineProperty, - supportsDescriptors = - $Object.defineProperty && - (function() { - try { - var obj = {}; - $Object.defineProperty(obj, 'x', { enumerable: !1, value: obj }); - for (var _ in obj) return !1; - return obj.x === obj; - } catch (e) { - return !1; - } - })(), - defineProperties = ((has = ObjectPrototype.hasOwnProperty), - (defineProperty = supportsDescriptors - ? function(object, name, method, forceAssign) { - (!forceAssign && name in object) || - $Object.defineProperty(object, name, { - configurable: !0, - enumerable: !1, - writable: !0, - value: method - }); - } - : function(object, name, method, forceAssign) { - (!forceAssign && name in object) || (object[name] = method); - }), - function defineProperties(object, map, forceAssign) { - for (var name in map) - has.call(map, name) && defineProperty(object, name, map[name], forceAssign); - }), - isPrimitive = function isPrimitive(input) { - var type = typeof input; - return null === input || ('object' !== type && 'function' !== type); - }, - isActualNaN = - $Number.isNaN || - function isActualNaN(x) { - return x != x; - }, - ES_ToInteger = function ToInteger(num) { - var n = +num; - return ( - isActualNaN(n) - ? (n = 0) - : 0 !== n && - n !== 1 / 0 && - n !== -1 / 0 && - (n = (n > 0 || -1) * Math.floor(Math.abs(n))), - n - ); - }, - ES_ToPrimitive = function ToPrimitive(input) { - var val, valueOf, toStr; - if (isPrimitive(input)) return input; - if ( - ((valueOf = input.valueOf), - isCallable(valueOf) && ((val = valueOf.call(input)), isPrimitive(val))) - ) - return val; - if ( - ((toStr = input.toString), - isCallable(toStr) && ((val = toStr.call(input)), isPrimitive(val))) - ) - return val; - throw new TypeError(); - }, - ES_ToObject = function(o) { - if (null == o) throw new TypeError("can't convert " + o + ' to object'); - return $Object(o); - }, - ES_ToUint_ = function ToUint32(x) { - return x >>> 0; - }, - Empty = function Empty() {}; - defineProperties(FunctionPrototype, { - bind: function bind(that) { - var target = this; - if (!isCallable(target)) - throw new TypeError('Function.prototype.bind called on incompatible ' + target); - for ( - var bound, - args = array_slice.call(arguments, 1), - boundLength = max(0, target.length - args.length), - boundArgs = [], - i = 0; - i < boundLength; - i++ - ) - array_push.call(boundArgs, '$' + i); - return ( - (bound = $Function( - 'binder', - 'return function (' + - array_join.call(boundArgs, ',') + - '){ return binder.apply(this, arguments); }' - )(function() { - if (this instanceof bound) { - var result = apply.call( - target, - this, - array_concat.call(args, array_slice.call(arguments)) - ); - return $Object(result) === result ? result : this; - } - return apply.call(target, that, array_concat.call(args, array_slice.call(arguments))); - })), - target.prototype && - ((Empty.prototype = target.prototype), - (bound.prototype = new Empty()), - (Empty.prototype = null)), - bound - ); - } - }); - var owns = call.bind(ObjectPrototype.hasOwnProperty), - toStr = call.bind(ObjectPrototype.toString), - arraySlice = call.bind(array_slice), - arraySliceApply = apply.bind(array_slice); - if ('object' == typeof document && document && document.documentElement) - try { - arraySlice(document.documentElement.childNodes); - } catch (e) { - var origArraySlice = arraySlice, - origArraySliceApply = arraySliceApply; - (arraySlice = function arraySliceIE(arr) { - for (var r = [], i = arr.length; i-- > 0; ) r[i] = arr[i]; - return origArraySliceApply(r, origArraySlice(arguments, 1)); - }), - (arraySliceApply = function arraySliceApplyIE(arr, args) { - return origArraySliceApply(arraySlice(arr), args); - }); - } - var strSlice = call.bind(StringPrototype.slice), - strSplit = call.bind(StringPrototype.split), - strIndexOf = call.bind(StringPrototype.indexOf), - pushCall = call.bind(array_push), - isEnum = call.bind(ObjectPrototype.propertyIsEnumerable), - arraySort = call.bind(ArrayPrototype.sort), - isArray = - $Array.isArray || - function isArray(obj) { - return '[object Array]' === toStr(obj); - }, - hasUnshiftReturnValueBug = 1 !== [].unshift(0); - defineProperties( - ArrayPrototype, - { - unshift: function() { - return array_unshift.apply(this, arguments), this.length; - } - }, - hasUnshiftReturnValueBug - ), - defineProperties($Array, { isArray: isArray }); - var boxedString = $Object('a'), - splitString = 'a' !== boxedString[0] || !(0 in boxedString), - properlyBoxesContext = function properlyBoxed(method) { - var properlyBoxesNonStrict = !0, - properlyBoxesStrict = !0, - threwException = !1; - if (method) - try { - method.call('foo', function(_, __, context) { - 'object' != typeof context && (properlyBoxesNonStrict = !1); - }), - method.call( - [1], - function() { - 'use strict'; - properlyBoxesStrict = 'string' == typeof this; - }, - 'x' - ); - } catch (e) { - threwException = !0; - } - return !!method && !threwException && properlyBoxesNonStrict && properlyBoxesStrict; - }; - defineProperties( - ArrayPrototype, - { - forEach: function forEach(callbackfn) { - var T, - object = ES_ToObject(this), - self = splitString && isString(this) ? strSplit(this, '') : object, - i = -1, - length = ES_ToUint_(self.length); - if ((arguments.length > 1 && (T = arguments[1]), !isCallable(callbackfn))) - throw new TypeError('Array.prototype.forEach callback must be a function'); - for (; ++i < length; ) - i in self && - (void 0 === T - ? callbackfn(self[i], i, object) - : callbackfn.call(T, self[i], i, object)); - } - }, - !properlyBoxesContext(ArrayPrototype.forEach) - ), - defineProperties( - ArrayPrototype, - { - map: function map(callbackfn) { - var T, - object = ES_ToObject(this), - self = splitString && isString(this) ? strSplit(this, '') : object, - length = ES_ToUint_(self.length), - result = $Array(length); - if ((arguments.length > 1 && (T = arguments[1]), !isCallable(callbackfn))) - throw new TypeError('Array.prototype.map callback must be a function'); - for (var i = 0; i < length; i++) - i in self && - (result[i] = - void 0 === T - ? callbackfn(self[i], i, object) - : callbackfn.call(T, self[i], i, object)); - return result; - } - }, - !properlyBoxesContext(ArrayPrototype.map) - ), - defineProperties( - ArrayPrototype, - { - filter: function filter(callbackfn) { - var value, - T, - object = ES_ToObject(this), - self = splitString && isString(this) ? strSplit(this, '') : object, - length = ES_ToUint_(self.length), - result = []; - if ((arguments.length > 1 && (T = arguments[1]), !isCallable(callbackfn))) - throw new TypeError('Array.prototype.filter callback must be a function'); - for (var i = 0; i < length; i++) - i in self && - ((value = self[i]), - (void 0 === T - ? callbackfn(value, i, object) - : callbackfn.call(T, value, i, object)) && pushCall(result, value)); - return result; - } - }, - !properlyBoxesContext(ArrayPrototype.filter) - ), - defineProperties( - ArrayPrototype, - { - every: function every(callbackfn) { - var T, - object = ES_ToObject(this), - self = splitString && isString(this) ? strSplit(this, '') : object, - length = ES_ToUint_(self.length); - if ((arguments.length > 1 && (T = arguments[1]), !isCallable(callbackfn))) - throw new TypeError('Array.prototype.every callback must be a function'); - for (var i = 0; i < length; i++) - if ( - i in self && - !(void 0 === T - ? callbackfn(self[i], i, object) - : callbackfn.call(T, self[i], i, object)) - ) - return !1; - return !0; - } - }, - !properlyBoxesContext(ArrayPrototype.every) - ), - defineProperties( - ArrayPrototype, - { - some: function some(callbackfn) { - var T, - object = ES_ToObject(this), - self = splitString && isString(this) ? strSplit(this, '') : object, - length = ES_ToUint_(self.length); - if ((arguments.length > 1 && (T = arguments[1]), !isCallable(callbackfn))) - throw new TypeError('Array.prototype.some callback must be a function'); - for (var i = 0; i < length; i++) - if ( - i in self && - (void 0 === T - ? callbackfn(self[i], i, object) - : callbackfn.call(T, self[i], i, object)) - ) - return !0; - return !1; - } - }, - !properlyBoxesContext(ArrayPrototype.some) - ); - var reduceCoercesToObject = !1; - ArrayPrototype.reduce && - (reduceCoercesToObject = - 'object' == - typeof ArrayPrototype.reduce.call('es5', function(_, __, ___, list) { - return list; - })), - defineProperties( - ArrayPrototype, - { - reduce: function reduce(callbackfn) { - var object = ES_ToObject(this), - self = splitString && isString(this) ? strSplit(this, '') : object, - length = ES_ToUint_(self.length); - if (!isCallable(callbackfn)) - throw new TypeError('Array.prototype.reduce callback must be a function'); - if (0 === length && 1 === arguments.length) - throw new TypeError('reduce of empty array with no initial value'); - var result, - i = 0; - if (arguments.length >= 2) result = arguments[1]; - else - for (;;) { - if (i in self) { - result = self[i++]; - break; - } - if (++i >= length) - throw new TypeError('reduce of empty array with no initial value'); - } - for (; i < length; i++) - i in self && (result = callbackfn(result, self[i], i, object)); - return result; - } - }, - !reduceCoercesToObject - ); - var reduceRightCoercesToObject = !1; - ArrayPrototype.reduceRight && - (reduceRightCoercesToObject = - 'object' == - typeof ArrayPrototype.reduceRight.call('es5', function(_, __, ___, list) { - return list; - })), - defineProperties( - ArrayPrototype, - { - reduceRight: function reduceRight(callbackfn) { - var result, - object = ES_ToObject(this), - self = splitString && isString(this) ? strSplit(this, '') : object, - length = ES_ToUint_(self.length); - if (!isCallable(callbackfn)) - throw new TypeError('Array.prototype.reduceRight callback must be a function'); - if (0 === length && 1 === arguments.length) - throw new TypeError('reduceRight of empty array with no initial value'); - var i = length - 1; - if (arguments.length >= 2) result = arguments[1]; - else - for (;;) { - if (i in self) { - result = self[i--]; - break; - } - if (--i < 0) - throw new TypeError('reduceRight of empty array with no initial value'); - } - if (i < 0) return result; - do { - i in self && (result = callbackfn(result, self[i], i, object)); - } while (i--); - return result; - } - }, - !reduceRightCoercesToObject - ); - var hasFirefox2IndexOfBug = ArrayPrototype.indexOf && -1 !== [0, 1].indexOf(1, 2); - defineProperties( - ArrayPrototype, - { - indexOf: function indexOf(searchElement) { - var self = splitString && isString(this) ? strSplit(this, '') : ES_ToObject(this), - length = ES_ToUint_(self.length); - if (0 === length) return -1; - var i = 0; - for ( - arguments.length > 1 && (i = ES_ToInteger(arguments[1])), - i = i >= 0 ? i : max(0, length + i); - i < length; - i++ - ) - if (i in self && self[i] === searchElement) return i; - return -1; - } - }, - hasFirefox2IndexOfBug - ); - var hasFirefox2LastIndexOfBug = - ArrayPrototype.lastIndexOf && -1 !== [0, 1].lastIndexOf(0, -3); - defineProperties( - ArrayPrototype, - { - lastIndexOf: function lastIndexOf(searchElement) { - var self = splitString && isString(this) ? strSplit(this, '') : ES_ToObject(this), - length = ES_ToUint_(self.length); - if (0 === length) return -1; - var i = length - 1; - for ( - arguments.length > 1 && (i = min(i, ES_ToInteger(arguments[1]))), - i = i >= 0 ? i : length - Math.abs(i); - i >= 0; - i-- - ) - if (i in self && searchElement === self[i]) return i; - return -1; - } - }, - hasFirefox2LastIndexOfBug - ); - var a, - result, - spliceNoopReturnsEmptyArray = ((result = (a = [1, 2]).splice()), - 2 === a.length && isArray(result) && 0 === result.length); - defineProperties( - ArrayPrototype, - { - splice: function splice(start, deleteCount) { - return 0 === arguments.length ? [] : array_splice.apply(this, arguments); - } - }, - !spliceNoopReturnsEmptyArray - ); - var obj, - spliceWorksWithEmptyObject = ((obj = {}), - ArrayPrototype.splice.call(obj, 0, 0, 1), - 1 === obj.length); - defineProperties( - ArrayPrototype, - { - splice: function splice(start, deleteCount) { - if (0 === arguments.length) return []; - var args = arguments; - return ( - (this.length = max(ES_ToInteger(this.length), 0)), - arguments.length > 0 && - 'number' != typeof deleteCount && - ((args = arraySlice(arguments)).length < 2 - ? pushCall(args, this.length - start) - : (args[1] = ES_ToInteger(deleteCount))), - array_splice.apply(this, args) - ); - } - }, - !spliceWorksWithEmptyObject - ); - var arr, - spliceWorksWithLargeSparseArrays = (((arr = new $Array(1e5))[8] = 'x'), - arr.splice(1, 1), - 7 === arr.indexOf('x')), - spliceWorksWithSmallSparseArrays = (function() { - var arr = []; - return (arr[256] = 'a'), arr.splice(257, 0, 'b'), 'a' === arr[256]; - })(); - defineProperties( - ArrayPrototype, - { - splice: function splice(start, deleteCount) { - for ( - var from, - O = ES_ToObject(this), - A = [], - len = ES_ToUint_(O.length), - relativeStart = ES_ToInteger(start), - actualStart = - relativeStart < 0 ? max(len + relativeStart, 0) : min(relativeStart, len), - actualDeleteCount = min(max(ES_ToInteger(deleteCount), 0), len - actualStart), - k = 0; - k < actualDeleteCount; - - ) - (from = $String(actualStart + k)), owns(O, from) && (A[k] = O[from]), (k += 1); - var to, - items = arraySlice(arguments, 2), - itemCount = items.length; - if (itemCount < actualDeleteCount) { - k = actualStart; - for (var maxK = len - actualDeleteCount; k < maxK; ) - (from = $String(k + actualDeleteCount)), - (to = $String(k + itemCount)), - owns(O, from) ? (O[to] = O[from]) : delete O[to], - (k += 1); - k = len; - for (var minK = len - actualDeleteCount + itemCount; k > minK; ) - delete O[k - 1], (k -= 1); - } else if (itemCount > actualDeleteCount) - for (k = len - actualDeleteCount; k > actualStart; ) - (from = $String(k + actualDeleteCount - 1)), - (to = $String(k + itemCount - 1)), - owns(O, from) ? (O[to] = O[from]) : delete O[to], - (k -= 1); - k = actualStart; - for (var i = 0; i < items.length; ++i) (O[k] = items[i]), (k += 1); - return (O.length = len - actualDeleteCount + itemCount), A; - } - }, - !spliceWorksWithLargeSparseArrays || !spliceWorksWithSmallSparseArrays - ); - var hasStringJoinBug, - originalJoin = ArrayPrototype.join; - try { - hasStringJoinBug = '1,2,3' !== Array.prototype.join.call('123', ','); - } catch (e) { - hasStringJoinBug = !0; - } - hasStringJoinBug && - defineProperties( - ArrayPrototype, - { - join: function join(separator) { - var sep = void 0 === separator ? ',' : separator; - return originalJoin.call(isString(this) ? strSplit(this, '') : this, sep); - } - }, - hasStringJoinBug - ); - var hasJoinUndefinedBug = '1,2' !== [1, 2].join(void 0); - hasJoinUndefinedBug && - defineProperties( - ArrayPrototype, - { - join: function join(separator) { - var sep = void 0 === separator ? ',' : separator; - return originalJoin.call(this, sep); - } - }, - hasJoinUndefinedBug - ); - var pushShim = function push(item) { - for (var O = ES_ToObject(this), n = ES_ToUint_(O.length), i = 0; i < arguments.length; ) - (O[n + i] = arguments[i]), (i += 1); - return (O.length = n + i), n + i; - }, - pushIsNotGeneric = (function() { - var obj = {}; - return ( - 1 !== Array.prototype.push.call(obj, void 0) || - 1 !== obj.length || - void 0 !== obj[0] || - !owns(obj, 0) - ); - })(); - defineProperties( - ArrayPrototype, - { - push: function push(item) { - return isArray(this) - ? array_push.apply(this, arguments) - : pushShim.apply(this, arguments); - } - }, - pushIsNotGeneric - ); - var pushUndefinedIsWeird = (function() { - var arr = []; - return 1 !== arr.push(void 0) || 1 !== arr.length || void 0 !== arr[0] || !owns(arr, 0); - })(); - defineProperties(ArrayPrototype, { push: pushShim }, pushUndefinedIsWeird), - defineProperties( - ArrayPrototype, - { - slice: function(start, end) { - var arr = isString(this) ? strSplit(this, '') : this; - return arraySliceApply(arr, arguments); - } - }, - splitString - ); - var sortIgnoresNonFunctions = (function() { - try { - [1, 2].sort(null); - } catch (e) { - try { - [1, 2].sort({}); - } catch (e2) { - return !1; - } - } - return !0; - })(), - sortThrowsOnRegex = (function() { - try { - return [1, 2].sort(/a/), !1; - } catch (e) {} - return !0; - })(), - sortIgnoresUndefined = (function() { - try { - return [1, 2].sort(void 0), !0; - } catch (e) {} - return !1; - })(); - defineProperties( - ArrayPrototype, - { - sort: function sort(compareFn) { - if (void 0 === compareFn) return arraySort(this); - if (!isCallable(compareFn)) - throw new TypeError('Array.prototype.sort callback must be a function'); - return arraySort(this, compareFn); - } - }, - sortIgnoresNonFunctions || !sortIgnoresUndefined || !sortThrowsOnRegex - ); - var hasDontEnumBug = !isEnum({ toString: null }, 'toString'), - hasProtoEnumBug = isEnum(function() {}, 'prototype'), - hasStringEnumBug = !owns('x', '0'), - equalsConstructorPrototype = function(o) { - var ctor = o.constructor; - return ctor && ctor.prototype === o; - }, - excludedKeys = { - $window: !0, - $console: !0, - $parent: !0, - $self: !0, - $frame: !0, - $frames: !0, - $frameElement: !0, - $webkitIndexedDB: !0, - $webkitStorageInfo: !0, - $external: !0, - $width: !0, - $height: !0, - $top: !0, - $localStorage: !0 - }, - hasAutomationEqualityBug = (function() { - if ('undefined' == typeof window) return !1; - for (var k in window) - try { - !excludedKeys['$' + k] && - owns(window, k) && - null !== window[k] && - 'object' == typeof window[k] && - equalsConstructorPrototype(window[k]); - } catch (e) { - return !0; - } - return !1; - })(), - dontEnums = [ - 'toString', - 'toLocaleString', - 'valueOf', - 'hasOwnProperty', - 'isPrototypeOf', - 'propertyIsEnumerable', - 'constructor' - ], - dontEnumsLength = dontEnums.length, - isStandardArguments = function isArguments(value) { - return '[object Arguments]' === toStr(value); - }, - isArguments = isStandardArguments(arguments) - ? isStandardArguments - : function isArguments(value) { - return ( - null !== value && - 'object' == typeof value && - 'number' == typeof value.length && - value.length >= 0 && - !isArray(value) && - isCallable(value.callee) - ); - }; - defineProperties($Object, { - keys: function keys(object) { - var isFn = isCallable(object), - isArgs = isArguments(object), - isObject = null !== object && 'object' == typeof object, - isStr = isObject && isString(object); - if (!isObject && !isFn && !isArgs) - throw new TypeError('Object.keys called on a non-object'); - var theKeys = [], - skipProto = hasProtoEnumBug && isFn; - if ((isStr && hasStringEnumBug) || isArgs) - for (var i = 0; i < object.length; ++i) pushCall(theKeys, $String(i)); - if (!isArgs) - for (var name in object) - (skipProto && 'prototype' === name) || - !owns(object, name) || - pushCall(theKeys, $String(name)); - if (hasDontEnumBug) - for ( - var skipConstructor = (function(object) { - if ('undefined' == typeof window || !hasAutomationEqualityBug) - return equalsConstructorPrototype(object); - try { - return equalsConstructorPrototype(object); - } catch (e) { - return !1; - } - })(object), - j = 0; - j < dontEnumsLength; - j++ - ) { - var dontEnum = dontEnums[j]; - (skipConstructor && 'constructor' === dontEnum) || - !owns(object, dontEnum) || - pushCall(theKeys, dontEnum); - } - return theKeys; - } - }); - var keysWorksWithArguments = - $Object.keys && - (function() { - return 2 === $Object.keys(arguments).length; - })(1, 2), - keysHasArgumentsLengthBug = - $Object.keys && - (function() { - var argKeys = $Object.keys(arguments); - return 1 !== arguments.length || 1 !== argKeys.length || 1 !== argKeys[0]; - })(1), - originalKeys = $Object.keys; - defineProperties( - $Object, - { - keys: function keys(object) { - return isArguments(object) ? originalKeys(arraySlice(object)) : originalKeys(object); - } - }, - !keysWorksWithArguments || keysHasArgumentsLengthBug - ); - var hasToDateStringFormatBug, - hasToStringFormatBug, - hasNegativeMonthYearBug = 0 !== new Date(-0xc782b5b342b24).getUTCMonth(), - aNegativeTestDate = new Date(-0x55d318d56a724), - aPositiveTestDate = new Date(14496624e5), - hasToUTCStringFormatBug = - 'Mon, 01 Jan -45875 11:59:59 GMT' !== aNegativeTestDate.toUTCString(); - aNegativeTestDate.getTimezoneOffset() < -720 - ? ((hasToDateStringFormatBug = 'Tue Jan 02 -45875' !== aNegativeTestDate.toDateString()), - (hasToStringFormatBug = !/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test( - String(aPositiveTestDate) - ))) - : ((hasToDateStringFormatBug = 'Mon Jan 01 -45875' !== aNegativeTestDate.toDateString()), - (hasToStringFormatBug = !/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test( - String(aPositiveTestDate) - ))); - var originalGetFullYear = call.bind(Date.prototype.getFullYear), - originalGetMonth = call.bind(Date.prototype.getMonth), - originalGetDate = call.bind(Date.prototype.getDate), - originalGetUTCFullYear = call.bind(Date.prototype.getUTCFullYear), - originalGetUTCMonth = call.bind(Date.prototype.getUTCMonth), - originalGetUTCDate = call.bind(Date.prototype.getUTCDate), - originalGetUTCDay = call.bind(Date.prototype.getUTCDay), - originalGetUTCHours = call.bind(Date.prototype.getUTCHours), - originalGetUTCMinutes = call.bind(Date.prototype.getUTCMinutes), - originalGetUTCSeconds = call.bind(Date.prototype.getUTCSeconds), - originalGetUTCMilliseconds = call.bind(Date.prototype.getUTCMilliseconds), - dayName = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], - monthName = [ - 'Jan', - 'Feb', - 'Mar', - 'Apr', - 'May', - 'Jun', - 'Jul', - 'Aug', - 'Sep', - 'Oct', - 'Nov', - 'Dec' - ], - daysInMonth = function daysInMonth(month, year) { - return originalGetDate(new Date(year, month, 0)); - }; - defineProperties( - Date.prototype, - { - getFullYear: function getFullYear() { - if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); - var year = originalGetFullYear(this); - return year < 0 && originalGetMonth(this) > 11 ? year + 1 : year; - }, - getMonth: function getMonth() { - if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); - var year = originalGetFullYear(this), - month = originalGetMonth(this); - return year < 0 && month > 11 ? 0 : month; - }, - getDate: function getDate() { - if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); - var year = originalGetFullYear(this), - month = originalGetMonth(this), - date = originalGetDate(this); - return year < 0 && month > 11 - ? 12 === month ? date : daysInMonth(0, year + 1) - date + 1 - : date; - }, - getUTCFullYear: function getUTCFullYear() { - if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); - var year = originalGetUTCFullYear(this); - return year < 0 && originalGetUTCMonth(this) > 11 ? year + 1 : year; - }, - getUTCMonth: function getUTCMonth() { - if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); - var year = originalGetUTCFullYear(this), - month = originalGetUTCMonth(this); - return year < 0 && month > 11 ? 0 : month; - }, - getUTCDate: function getUTCDate() { - if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); - var year = originalGetUTCFullYear(this), - month = originalGetUTCMonth(this), - date = originalGetUTCDate(this); - return year < 0 && month > 11 - ? 12 === month ? date : daysInMonth(0, year + 1) - date + 1 - : date; - } - }, - hasNegativeMonthYearBug - ), - defineProperties( - Date.prototype, - { - toUTCString: function toUTCString() { - if (!(this && this instanceof Date)) - throw new TypeError('this is not a Date object.'); - var day = originalGetUTCDay(this), - date = originalGetUTCDate(this), - month = originalGetUTCMonth(this), - year = originalGetUTCFullYear(this), - hour = originalGetUTCHours(this), - minute = originalGetUTCMinutes(this), - second = originalGetUTCSeconds(this); - return ( - dayName[day] + - ', ' + - (date < 10 ? '0' + date : date) + - ' ' + - monthName[month] + - ' ' + - year + - ' ' + - (hour < 10 ? '0' + hour : hour) + - ':' + - (minute < 10 ? '0' + minute : minute) + - ':' + - (second < 10 ? '0' + second : second) + - ' GMT' - ); - } - }, - hasNegativeMonthYearBug || hasToUTCStringFormatBug - ), - defineProperties( - Date.prototype, - { - toDateString: function toDateString() { - if (!(this && this instanceof Date)) - throw new TypeError('this is not a Date object.'); - var day = this.getDay(), - date = this.getDate(), - month = this.getMonth(), - year = this.getFullYear(); - return ( - dayName[day] + - ' ' + - monthName[month] + - ' ' + - (date < 10 ? '0' + date : date) + - ' ' + - year - ); - } - }, - hasNegativeMonthYearBug || hasToDateStringFormatBug - ), - (hasNegativeMonthYearBug || hasToStringFormatBug) && - ((Date.prototype.toString = function toString() { - if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); - var day = this.getDay(), - date = this.getDate(), - month = this.getMonth(), - year = this.getFullYear(), - hour = this.getHours(), - minute = this.getMinutes(), - second = this.getSeconds(), - timezoneOffset = this.getTimezoneOffset(), - hoursOffset = Math.floor(Math.abs(timezoneOffset) / 60), - minutesOffset = Math.floor(Math.abs(timezoneOffset) % 60); - return ( - dayName[day] + - ' ' + - monthName[month] + - ' ' + - (date < 10 ? '0' + date : date) + - ' ' + - year + - ' ' + - (hour < 10 ? '0' + hour : hour) + - ':' + - (minute < 10 ? '0' + minute : minute) + - ':' + - (second < 10 ? '0' + second : second) + - ' GMT' + - (timezoneOffset > 0 ? '-' : '+') + - (hoursOffset < 10 ? '0' + hoursOffset : hoursOffset) + - (minutesOffset < 10 ? '0' + minutesOffset : minutesOffset) - ); - }), - supportsDescriptors && - $Object.defineProperty(Date.prototype, 'toString', { - configurable: !0, - enumerable: !1, - writable: !0 - })); - var hasNegativeDateBug = - Date.prototype.toISOString && - -1 === new Date(-621987552e5).toISOString().indexOf('-000001'), - hasSafari51DateBug = - Date.prototype.toISOString && '1969-12-31T23:59:59.999Z' !== new Date(-1).toISOString(), - getTime = call.bind(Date.prototype.getTime); - defineProperties( - Date.prototype, - { - toISOString: function toISOString() { - if (!isFinite(this) || !isFinite(getTime(this))) - throw new RangeError('Date.prototype.toISOString called on non-finite value.'); - var year = originalGetUTCFullYear(this), - month = originalGetUTCMonth(this); - year += Math.floor(month / 12); - var result = [ - (month = (month % 12 + 12) % 12) + 1, - originalGetUTCDate(this), - originalGetUTCHours(this), - originalGetUTCMinutes(this), - originalGetUTCSeconds(this) - ]; - year = - (year < 0 ? '-' : year > 9999 ? '+' : '') + - strSlice('00000' + Math.abs(year), 0 <= year && year <= 9999 ? -4 : -6); - for (var i = 0; i < result.length; ++i) result[i] = strSlice('00' + result[i], -2); - return ( - year + - '-' + - arraySlice(result, 0, 2).join('-') + - 'T' + - arraySlice(result, 2).join(':') + - '.' + - strSlice('000' + originalGetUTCMilliseconds(this), -3) + - 'Z' - ); - } - }, - hasNegativeDateBug || hasSafari51DateBug - ), - (function() { - try { - return ( - Date.prototype.toJSON && - null === new Date(NaN).toJSON() && - -1 !== new Date(-621987552e5).toJSON().indexOf('-000001') && - Date.prototype.toJSON.call({ - toISOString: function() { - return !0; - } - }) - ); - } catch (e) { - return !1; - } - })() || - (Date.prototype.toJSON = function toJSON(key) { - var O = $Object(this), - tv = ES_ToPrimitive(O); - if ('number' == typeof tv && !isFinite(tv)) return null; - var toISO = O.toISOString; - if (!isCallable(toISO)) throw new TypeError('toISOString property is not callable'); - return toISO.call(O); - }); - var supportsExtendedYears = 1e15 === Date.parse('+033658-09-27T01:46:40.000Z'), - acceptsInvalidDates = - !isNaN(Date.parse('2012-04-04T24:00:00.500Z')) || - !isNaN(Date.parse('2012-11-31T23:59:59.000Z')) || - !isNaN(Date.parse('2012-12-31T23:59:60.000Z')); - if ( - isNaN(Date.parse('2000-01-01T00:00:00.000Z')) || - acceptsInvalidDates || - !supportsExtendedYears - ) { - var maxSafeUnsigned32Bit = Math.pow(2, 31) - 1, - hasSafariSignedIntBug = isActualNaN( - new Date(1970, 0, 1, 0, 0, 0, maxSafeUnsigned32Bit + 1).getTime() - ); - Date = (function(NativeDate) { - var DateShim = function Date(Y, M, D, h, m, s, ms) { - var date, - length = arguments.length; - if (this instanceof NativeDate) { - var seconds = s, - millis = ms; - if (hasSafariSignedIntBug && length >= 7 && ms > maxSafeUnsigned32Bit) { - var msToShift = Math.floor(ms / maxSafeUnsigned32Bit) * maxSafeUnsigned32Bit, - sToShift = Math.floor(msToShift / 1e3); - (seconds += sToShift), (millis -= 1e3 * sToShift); - } - date = - 1 === length && $String(Y) === Y - ? new NativeDate(DateShim.parse(Y)) - : length >= 7 - ? new NativeDate(Y, M, D, h, m, seconds, millis) - : length >= 6 - ? new NativeDate(Y, M, D, h, m, seconds) - : length >= 5 - ? new NativeDate(Y, M, D, h, m) - : length >= 4 - ? new NativeDate(Y, M, D, h) - : length >= 3 - ? new NativeDate(Y, M, D) - : length >= 2 - ? new NativeDate(Y, M) - : length >= 1 - ? new NativeDate(Y instanceof NativeDate ? +Y : Y) - : new NativeDate(); - } else date = NativeDate.apply(this, arguments); - return ( - isPrimitive(date) || defineProperties(date, { constructor: DateShim }, !0), date - ); - }, - isoDateExpression = new RegExp( - '^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$' - ), - months = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365], - dayFromMonth = function dayFromMonth(year, month) { - var t = month > 1 ? 1 : 0; - return ( - months[month] + - Math.floor((year - 1969 + t) / 4) - - Math.floor((year - 1901 + t) / 100) + - Math.floor((year - 1601 + t) / 400) + - 365 * (year - 1970) - ); - }; - for (var key in NativeDate) owns(NativeDate, key) && (DateShim[key] = NativeDate[key]); - defineProperties(DateShim, { now: NativeDate.now, UTC: NativeDate.UTC }, !0), - (DateShim.prototype = NativeDate.prototype), - defineProperties(DateShim.prototype, { constructor: DateShim }, !0); - return ( - defineProperties(DateShim, { - parse: function parse(string) { - var match = isoDateExpression.exec(string); - if (match) { - var result, - year = $Number(match[1]), - month = $Number(match[2] || 1) - 1, - day = $Number(match[3] || 1) - 1, - hour = $Number(match[4] || 0), - minute = $Number(match[5] || 0), - second = $Number(match[6] || 0), - millisecond = Math.floor(1e3 * $Number(match[7] || 0)), - isLocalTime = Boolean(match[4] && !match[8]), - signOffset = '-' === match[9] ? 1 : -1, - hourOffset = $Number(match[10] || 0), - minuteOffset = $Number(match[11] || 0); - return hour < (minute > 0 || second > 0 || millisecond > 0 ? 24 : 25) && - minute < 60 && - second < 60 && - millisecond < 1e3 && - month > -1 && - month < 12 && - hourOffset < 24 && - minuteOffset < 60 && - day > -1 && - day < dayFromMonth(year, month + 1) - dayFromMonth(year, month) && - ((result = - 1e3 * - (60 * - ((result = - 60 * - (24 * (dayFromMonth(year, month) + day) + - hour + - hourOffset * signOffset)) + - minute + - minuteOffset * signOffset) + - second) + - millisecond), - isLocalTime && - (result = (function toUTC(t) { - var s = 0, - ms = t; - if (hasSafariSignedIntBug && ms > maxSafeUnsigned32Bit) { - var msToShift = - Math.floor(ms / maxSafeUnsigned32Bit) * maxSafeUnsigned32Bit, - sToShift = Math.floor(msToShift / 1e3); - (s += sToShift), (ms -= 1e3 * sToShift); - } - return $Number(new NativeDate(1970, 0, 1, 0, 0, s, ms)); - })(result)), - -864e13 <= result && result <= 864e13) - ? result - : NaN; - } - return NativeDate.parse.apply(this, arguments); - } - }), - DateShim - ); - })(Date); - } - Date.now || - (Date.now = function now() { - return new Date().getTime(); - }); - var hasToFixedBugs = - NumberPrototype.toFixed && - ('0.000' !== (8e-5).toFixed(3) || - '1' !== (0.9).toFixed(0) || - '1.25' !== (1.255).toFixed(2) || - '1000000000000000128' !== (0xde0b6b3a7640080).toFixed(0)), - toFixedHelpers = { - base: 1e7, - size: 6, - data: [0, 0, 0, 0, 0, 0], - multiply: function multiply(n, c) { - for (var i = -1, c2 = c; ++i < toFixedHelpers.size; ) - (c2 += n * toFixedHelpers.data[i]), - (toFixedHelpers.data[i] = c2 % toFixedHelpers.base), - (c2 = Math.floor(c2 / toFixedHelpers.base)); - }, - divide: function divide(n) { - for (var i = toFixedHelpers.size, c = 0; --i >= 0; ) - (c += toFixedHelpers.data[i]), - (toFixedHelpers.data[i] = Math.floor(c / n)), - (c = (c % n) * toFixedHelpers.base); - }, - numToString: function numToString() { - for (var i = toFixedHelpers.size, s = ''; --i >= 0; ) - if ('' !== s || 0 === i || 0 !== toFixedHelpers.data[i]) { - var t = $String(toFixedHelpers.data[i]); - '' === s ? (s = t) : (s += strSlice('0000000', 0, 7 - t.length) + t); - } - return s; - }, - pow: function pow(x, n, acc) { - return 0 === n ? acc : n % 2 == 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc); - }, - log: function log(x) { - for (var n = 0, x2 = x; x2 >= 4096; ) (n += 12), (x2 /= 4096); - for (; x2 >= 2; ) (n += 1), (x2 /= 2); - return n; - } - }; - defineProperties( - NumberPrototype, - { - toFixed: function toFixed(fractionDigits) { - var f, x, s, m, e, z, j, k; - if ( - ((f = $Number(fractionDigits)), - (f = isActualNaN(f) ? 0 : Math.floor(f)) < 0 || f > 20) - ) - throw new RangeError('Number.toFixed called with invalid number of decimals'); - if (((x = $Number(this)), isActualNaN(x))) return 'NaN'; - if (x <= -1e21 || x >= 1e21) return $String(x); - if (((s = ''), x < 0 && ((s = '-'), (x = -x)), (m = '0'), x > 1e-21)) - if ( - ((z = - (e = toFixedHelpers.log(x * toFixedHelpers.pow(2, 69, 1)) - 69) < 0 - ? x * toFixedHelpers.pow(2, -e, 1) - : x / toFixedHelpers.pow(2, e, 1)), - (z *= 4503599627370496), - (e = 52 - e) > 0) - ) { - for (toFixedHelpers.multiply(0, z), j = f; j >= 7; ) - toFixedHelpers.multiply(1e7, 0), (j -= 7); - for (toFixedHelpers.multiply(toFixedHelpers.pow(10, j, 1), 0), j = e - 1; j >= 23; ) - toFixedHelpers.divide(1 << 23), (j -= 23); - toFixedHelpers.divide(1 << j), - toFixedHelpers.multiply(1, 1), - toFixedHelpers.divide(2), - (m = toFixedHelpers.numToString()); - } else - toFixedHelpers.multiply(0, z), - toFixedHelpers.multiply(1 << -e, 0), - (m = toFixedHelpers.numToString() + strSlice('0.00000000000000000000', 2, 2 + f)); - return (m = - f > 0 - ? (k = m.length) <= f - ? s + strSlice('0.0000000000000000000', 0, f - k + 2) + m - : s + strSlice(m, 0, k - f) + '.' + strSlice(m, k - f) - : s + m); - } - }, - hasToFixedBugs - ); - var compliantExecNpcg, - maxSafe32BitInt, - hasToPrecisionUndefinedBug = (function() { - try { - return '1' === (1).toPrecision(void 0); - } catch (e) { - return !0; - } - })(), - originalToPrecision = NumberPrototype.toPrecision; - defineProperties( - NumberPrototype, - { - toPrecision: function toPrecision(precision) { - return void 0 === precision - ? originalToPrecision.call(this) - : originalToPrecision.call(this, precision); - } - }, - hasToPrecisionUndefinedBug - ), - 2 !== 'ab'.split(/(?:ab)*/).length || - 4 !== '.'.split(/(.?)(.?)/).length || - 't' === 'tesst'.split(/(s)*/)[1] || - 4 !== 'test'.split(/(?:)/, -1).length || - ''.split(/.?/).length || - '.'.split(/()()/).length > 1 - ? ((compliantExecNpcg = void 0 === /()??/.exec('')[1]), - (maxSafe32BitInt = Math.pow(2, 32) - 1), - (StringPrototype.split = function(separator, limit) { - var string = String(this); - if (void 0 === separator && 0 === limit) return []; - if (!isRegex(separator)) return strSplit(this, separator, limit); - var separator2, - match, - lastIndex, - lastLength, - output = [], - flags = - (separator.ignoreCase ? 'i' : '') + - (separator.multiline ? 'm' : '') + - (separator.unicode ? 'u' : '') + - (separator.sticky ? 'y' : ''), - lastLastIndex = 0, - separatorCopy = new RegExp(separator.source, flags + 'g'); - compliantExecNpcg || - (separator2 = new RegExp('^' + separatorCopy.source + '$(?!\\s)', flags)); - var splitLimit = void 0 === limit ? maxSafe32BitInt : ES_ToUint_(limit); - for ( - match = separatorCopy.exec(string); - match && - !( - (lastIndex = match.index + match[0].length) > lastLastIndex && - (pushCall(output, strSlice(string, lastLastIndex, match.index)), - !compliantExecNpcg && - match.length > 1 && - match[0].replace(separator2, function() { - for (var i = 1; i < arguments.length - 2; i++) - void 0 === arguments[i] && (match[i] = void 0); - }), - match.length > 1 && - match.index < string.length && - array_push.apply(output, arraySlice(match, 1)), - (lastLength = match[0].length), - (lastLastIndex = lastIndex), - output.length >= splitLimit) - ); - - ) - separatorCopy.lastIndex === match.index && separatorCopy.lastIndex++, - (match = separatorCopy.exec(string)); - return ( - lastLastIndex === string.length - ? (!lastLength && separatorCopy.test('')) || pushCall(output, '') - : pushCall(output, strSlice(string, lastLastIndex)), - output.length > splitLimit ? arraySlice(output, 0, splitLimit) : output - ); - })) - : '0'.split(void 0, 0).length && - (StringPrototype.split = function split(separator, limit) { - return void 0 === separator && 0 === limit ? [] : strSplit(this, separator, limit); - }); - var groups, - str_replace = StringPrototype.replace; - ((groups = []), - 'x'.replace(/x(.)?/g, function(match, group) { - pushCall(groups, group); - }), - 1 === groups.length && void 0 === groups[0]) || - (StringPrototype.replace = function replace(searchValue, replaceValue) { - var isFn = isCallable(replaceValue), - hasCapturingGroups = isRegex(searchValue) && /\)[*?]/.test(searchValue.source); - if (isFn && hasCapturingGroups) { - return str_replace.call(this, searchValue, function(match) { - var length = arguments.length, - originalLastIndex = searchValue.lastIndex; - searchValue.lastIndex = 0; - var args = searchValue.exec(match) || []; - return ( - (searchValue.lastIndex = originalLastIndex), - pushCall(args, arguments[length - 2], arguments[length - 1]), - replaceValue.apply(this, args) - ); - }); - } - return str_replace.call(this, searchValue, replaceValue); - }); - var string_substr = StringPrototype.substr, - hasNegativeSubstrBug = ''.substr && 'b' !== '0b'.substr(-1); - defineProperties( - StringPrototype, - { - substr: function substr(start, length) { - var normalizedStart = start; - return ( - start < 0 && (normalizedStart = max(this.length + start, 0)), - string_substr.call(this, normalizedStart, length) - ); - } - }, - hasNegativeSubstrBug - ); - var ws = '\t\n\v\f\r   ᠎              \u2028\u2029\ufeff', - wsRegexChars = '[' + ws + ']', - trimBeginRegexp = new RegExp('^' + wsRegexChars + wsRegexChars + '*'), - trimEndRegexp = new RegExp(wsRegexChars + wsRegexChars + '*$'), - hasTrimWhitespaceBug = StringPrototype.trim && (ws.trim() || !'​'.trim()); - defineProperties( - StringPrototype, - { - trim: function trim() { - if (void 0 === this || null === this) - throw new TypeError("can't convert " + this + ' to object'); - return $String(this) - .replace(trimBeginRegexp, '') - .replace(trimEndRegexp, ''); - } - }, - hasTrimWhitespaceBug - ); - var trim = call.bind(String.prototype.trim), - hasLastIndexBug = StringPrototype.lastIndexOf && -1 !== 'abcあい'.lastIndexOf('あい', 2); - defineProperties( - StringPrototype, - { - lastIndexOf: function lastIndexOf(searchString) { - if (void 0 === this || null === this) - throw new TypeError("can't convert " + this + ' to object'); - for ( - var S = $String(this), - searchStr = $String(searchString), - numPos = arguments.length > 1 ? $Number(arguments[1]) : NaN, - pos = isActualNaN(numPos) ? 1 / 0 : ES_ToInteger(numPos), - start = min(max(pos, 0), S.length), - searchLen = searchStr.length, - k = start + searchLen; - k > 0; - - ) { - k = max(0, k - searchLen); - var index = strIndexOf(strSlice(S, k, start + searchLen), searchStr); - if (-1 !== index) return k + index; - } - return -1; - } - }, - hasLastIndexBug - ); - var origParseInt, - hexRegex, - origParseFloat, - originalLastIndexOf = StringPrototype.lastIndexOf; - if ( - (defineProperties( - StringPrototype, - { - lastIndexOf: function lastIndexOf(searchString) { - return originalLastIndexOf.apply(this, arguments); - } - }, - 1 !== StringPrototype.lastIndexOf.length - ), - (8 === parseInt(ws + '08') && 22 === parseInt(ws + '0x16')) || - (parseInt = ((origParseInt = parseInt), - (hexRegex = /^[-+]?0[xX]/), - function parseInt(str, radix) { - var string = trim(String(str)), - defaultedRadix = $Number(radix) || (hexRegex.test(string) ? 16 : 10); - return origParseInt(string, defaultedRadix); - })), - 1 / parseFloat('-0') != -1 / 0 && - (parseFloat = ((origParseFloat = parseFloat), - function parseFloat(string) { - var inputString = trim(String(string)), - result = origParseFloat(inputString); - return 0 === result && '-' === strSlice(inputString, 0, 1) ? -0 : result; - })), - 'RangeError: test' !== String(new RangeError('test'))) - ) { - Error.prototype.toString = function toString() { - if (void 0 === this || null === this) - throw new TypeError("can't convert " + this + ' to object'); - var name = this.name; - void 0 === name ? (name = 'Error') : 'string' != typeof name && (name = $String(name)); - var msg = this.message; - return ( - void 0 === msg ? (msg = '') : 'string' != typeof msg && (msg = $String(msg)), - name ? (msg ? name + ': ' + msg : name) : msg - ); - }; - } - if (supportsDescriptors) { - var ensureNonEnumerable = function(obj, prop) { - if (isEnum(obj, prop)) { - var desc = Object.getOwnPropertyDescriptor(obj, prop); - desc.configurable && ((desc.enumerable = !1), Object.defineProperty(obj, prop, desc)); - } - }; - ensureNonEnumerable(Error.prototype, 'message'), - '' !== Error.prototype.message && (Error.prototype.message = ''), - ensureNonEnumerable(Error.prototype, 'name'); - } - if ('/a/gim' !== String(/a/gim)) { - RegExp.prototype.toString = function toString() { - var str = '/' + this.source + '/'; - return ( - this.global && (str += 'g'), - this.ignoreCase && (str += 'i'), - this.multiline && (str += 'm'), - str - ); - }; - } - }); - }, - function(module, exports, __webpack_require__) { - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__; - !(function(root, factory) { - 'use strict'; - void 0 === - (__WEBPACK_AMD_DEFINE_RESULT__ = - 'function' == typeof (__WEBPACK_AMD_DEFINE_FACTORY__ = factory) - ? __WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module) - : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); - })(0, function() { - var defineGetter, - defineSetter, - lookupGetter, - lookupSetter, - call = Function.call, - prototypeOfObject = Object.prototype, - owns = call.bind(prototypeOfObject.hasOwnProperty), - isEnumerable = call.bind(prototypeOfObject.propertyIsEnumerable), - toStr = call.bind(prototypeOfObject.toString), - supportsAccessors = owns(prototypeOfObject, '__defineGetter__'); - supportsAccessors && - ((defineGetter = call.bind(prototypeOfObject.__defineGetter__)), - (defineSetter = call.bind(prototypeOfObject.__defineSetter__)), - (lookupGetter = call.bind(prototypeOfObject.__lookupGetter__)), - (lookupSetter = call.bind(prototypeOfObject.__lookupSetter__))); - var isPrimitive = function isPrimitive(o) { - return null == o || ('object' != typeof o && 'function' != typeof o); - }; - Object.getPrototypeOf || - (Object.getPrototypeOf = function getPrototypeOf(object) { - var proto = object.__proto__; - return proto || null === proto - ? proto - : '[object Function]' === toStr(object.constructor) - ? object.constructor.prototype - : object instanceof Object ? prototypeOfObject : null; - }); - var doesGetOwnPropertyDescriptorWork = function doesGetOwnPropertyDescriptorWork(object) { - try { - return ( - (object.sentinel = 0), 0 === Object.getOwnPropertyDescriptor(object, 'sentinel').value - ); - } catch (exception) { - return !1; - } - }; - if (Object.defineProperty) { - var getOwnPropertyDescriptorWorksOnObject = doesGetOwnPropertyDescriptorWork({}); - if ( - !( - 'undefined' == typeof document || - doesGetOwnPropertyDescriptorWork(document.createElement('div')) - ) || - !getOwnPropertyDescriptorWorksOnObject - ) - var getOwnPropertyDescriptorFallback = Object.getOwnPropertyDescriptor; - } - if (!Object.getOwnPropertyDescriptor || getOwnPropertyDescriptorFallback) { - Object.getOwnPropertyDescriptor = function getOwnPropertyDescriptor(object, property) { - if (isPrimitive(object)) - throw new TypeError( - 'Object.getOwnPropertyDescriptor called on a non-object: ' + object - ); - if (getOwnPropertyDescriptorFallback) - try { - return getOwnPropertyDescriptorFallback.call(Object, object, property); - } catch (exception) {} - var descriptor; - if (!owns(object, property)) return descriptor; - if ( - ((descriptor = { enumerable: isEnumerable(object, property), configurable: !0 }), - supportsAccessors) - ) { - var prototype = object.__proto__, - notPrototypeOfObject = object !== prototypeOfObject; - notPrototypeOfObject && (object.__proto__ = prototypeOfObject); - var getter = lookupGetter(object, property), - setter = lookupSetter(object, property); - if ((notPrototypeOfObject && (object.__proto__ = prototype), getter || setter)) - return ( - getter && (descriptor.get = getter), setter && (descriptor.set = setter), descriptor - ); - } - return (descriptor.value = object[property]), (descriptor.writable = !0), descriptor; - }; - } - if ( - (Object.getOwnPropertyNames || - (Object.getOwnPropertyNames = function getOwnPropertyNames(object) { - return Object.keys(object); - }), - !Object.create) - ) { - var createEmpty, - supportsProto = !({ __proto__: null } instanceof Object); - (createEmpty = - supportsProto || 'undefined' == typeof document - ? function() { - return { __proto__: null }; - } - : function() { - var empty = (function shouldUseActiveX() { - if (!document.domain) return !1; - try { - return !!new ActiveXObject('htmlfile'); - } catch (exception) { - return !1; - } - })() - ? (function getEmptyViaActiveX() { - var empty, xDoc; - return ( - (xDoc = new ActiveXObject('htmlfile')).write(''), - xDoc.close(), - (empty = xDoc.parentWindow.Object.prototype), - (xDoc = null), - empty - ); - })() - : (function getEmptyViaIFrame() { - var empty, - iframe = document.createElement('iframe'), - parent = document.body || document.documentElement; - return ( - (iframe.style.display = 'none'), - parent.appendChild(iframe), - (iframe.src = 'javascript:'), - (empty = iframe.contentWindow.Object.prototype), - parent.removeChild(iframe), - (iframe = null), - empty - ); - })(); - delete empty.constructor, - delete empty.hasOwnProperty, - delete empty.propertyIsEnumerable, - delete empty.isPrototypeOf, - delete empty.toLocaleString, - delete empty.toString, - delete empty.valueOf; - var Empty = function Empty() {}; - return ( - (Empty.prototype = empty), - (createEmpty = function() { - return new Empty(); - }), - new Empty() - ); - }), - (Object.create = function create(prototype, properties) { - var object, - Type = function Type() {}; - if (null === prototype) object = createEmpty(); - else { - if (null !== prototype && isPrimitive(prototype)) - throw new TypeError('Object prototype may only be an Object or null'); - (Type.prototype = prototype), ((object = new Type()).__proto__ = prototype); - } - return void 0 !== properties && Object.defineProperties(object, properties), object; - }); - } - var freezeObject, - doesDefinePropertyWork = function doesDefinePropertyWork(object) { - try { - return Object.defineProperty(object, 'sentinel', {}), 'sentinel' in object; - } catch (exception) { - return !1; - } - }; - if (Object.defineProperty) { - var definePropertyWorksOnObject = doesDefinePropertyWork({}), - definePropertyWorksOnDom = - 'undefined' == typeof document || doesDefinePropertyWork(document.createElement('div')); - if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) - var definePropertyFallback = Object.defineProperty, - definePropertiesFallback = Object.defineProperties; - } - if (!Object.defineProperty || definePropertyFallback) { - Object.defineProperty = function defineProperty(object, property, descriptor) { - if (isPrimitive(object)) - throw new TypeError('Object.defineProperty called on non-object: ' + object); - if (isPrimitive(descriptor)) - throw new TypeError('Property description must be an object: ' + descriptor); - if (definePropertyFallback) - try { - return definePropertyFallback.call(Object, object, property, descriptor); - } catch (exception) {} - if ('value' in descriptor) - if ( - supportsAccessors && - (lookupGetter(object, property) || lookupSetter(object, property)) - ) { - var prototype = object.__proto__; - (object.__proto__ = prototypeOfObject), - delete object[property], - (object[property] = descriptor.value), - (object.__proto__ = prototype); - } else object[property] = descriptor.value; - else { - var hasGetter = 'get' in descriptor, - hasSetter = 'set' in descriptor; - if (!supportsAccessors && (hasGetter || hasSetter)) - throw new TypeError('getters & setters can not be defined on this javascript engine'); - hasGetter && defineGetter(object, property, descriptor.get), - hasSetter && defineSetter(object, property, descriptor.set); - } - return object; - }; - } - (Object.defineProperties && !definePropertiesFallback) || - (Object.defineProperties = function defineProperties(object, properties) { - if (definePropertiesFallback) - try { - return definePropertiesFallback.call(Object, object, properties); - } catch (exception) {} - return ( - Object.keys(properties).forEach(function(property) { - '__proto__' !== property && - Object.defineProperty(object, property, properties[property]); - }), - object - ); - }), - Object.seal || - (Object.seal = function seal(object) { - if (Object(object) !== object) - throw new TypeError('Object.seal can only be called on Objects.'); - return object; - }), - Object.freeze || - (Object.freeze = function freeze(object) { - if (Object(object) !== object) - throw new TypeError('Object.freeze can only be called on Objects.'); - return object; - }); - try { - Object.freeze(function() {}); - } catch (exception) { - Object.freeze = ((freezeObject = Object.freeze), - function freeze(object) { - return 'function' == typeof object ? object : freezeObject(object); - }); - } - Object.preventExtensions || - (Object.preventExtensions = function preventExtensions(object) { - if (Object(object) !== object) - throw new TypeError('Object.preventExtensions can only be called on Objects.'); - return object; - }), - Object.isSealed || - (Object.isSealed = function isSealed(object) { - if (Object(object) !== object) - throw new TypeError('Object.isSealed can only be called on Objects.'); - return !1; - }), - Object.isFrozen || - (Object.isFrozen = function isFrozen(object) { - if (Object(object) !== object) - throw new TypeError('Object.isFrozen can only be called on Objects.'); - return !1; - }), - Object.isExtensible || - (Object.isExtensible = function isExtensible(object) { - if (Object(object) !== object) - throw new TypeError('Object.isExtensible can only be called on Objects.'); - for (var name = ''; owns(object, name); ) name += '?'; - object[name] = !0; - var returnValue = owns(object, name); - return delete object[name], returnValue; - }); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(336), __webpack_require__(337)(), __webpack_require__(344); - }, - function(module, exports, __webpack_require__) { - (function(global, process) { - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__; - void 0 === - (__WEBPACK_AMD_DEFINE_RESULT__ = - 'function' == - typeof (__WEBPACK_AMD_DEFINE_FACTORY__ = function() { - 'use strict'; - var ArrayIterator, - _apply = Function.call.bind(Function.apply), - _call = Function.call.bind(Function.call), - isArray = Array.isArray, - keys = Object.keys, - throwsError = function(func) { - try { - return func(), !1; - } catch (e) { - return !0; - } - }, - valueOrFalseIfThrows = function valueOrFalseIfThrows(func) { - try { - return func(); - } catch (e) { - return !1; - } - }, - isCallableWithoutNew = (function notThunker(func) { - return function notThunk() { - return !_apply(func, this, arguments); - }; - })(throwsError), - supportsDescriptors = - !!Object.defineProperty && - !throwsError(function() { - Object.defineProperty({}, 'x', { get: function() {} }); - }), - functionsHaveNames = 'foo' === function foo() {}.name, - _forEach = Function.call.bind(Array.prototype.forEach), - _reduce = Function.call.bind(Array.prototype.reduce), - _filter = Function.call.bind(Array.prototype.filter), - _some = Function.call.bind(Array.prototype.some), - defineProperty = function(object, name, value, force) { - (!force && name in object) || - (supportsDescriptors - ? Object.defineProperty(object, name, { - configurable: !0, - enumerable: !1, - writable: !0, - value: value - }) - : (object[name] = value)); - }, - defineProperties = function(object, map, forceOverride) { - _forEach(keys(map), function(name) { - var method = map[name]; - defineProperty(object, name, method, !!forceOverride); - }); - }, - _toString = Function.call.bind(Object.prototype.toString), - isCallable = function IsCallableFast(x) { - return 'function' == typeof x; - }, - Value_getter = function(object, name, getter) { - if (!supportsDescriptors) throw new TypeError('getters require true ES5 support'); - Object.defineProperty(object, name, { - configurable: !0, - enumerable: !1, - get: getter - }); - }, - Value_proxy = function(originalObject, key, targetObject) { - if (!supportsDescriptors) throw new TypeError('getters require true ES5 support'); - var originalDescriptor = Object.getOwnPropertyDescriptor(originalObject, key); - Object.defineProperty(targetObject, key, { - configurable: originalDescriptor.configurable, - enumerable: originalDescriptor.enumerable, - get: function getKey() { - return originalObject[key]; - }, - set: function setKey(value) { - originalObject[key] = value; - } - }); - }, - Value_redefine = function(object, property, newValue) { - if (supportsDescriptors) { - var descriptor = Object.getOwnPropertyDescriptor(object, property); - (descriptor.value = newValue), - Object.defineProperty(object, property, descriptor); - } else object[property] = newValue; - }, - Value_defineByDescriptor = function(object, property, descriptor) { - supportsDescriptors - ? Object.defineProperty(object, property, descriptor) - : 'value' in descriptor && (object[property] = descriptor.value); - }, - Value_preserveToString = function(target, source) { - source && - isCallable(source.toString) && - defineProperty(target, 'toString', source.toString.bind(source), !0); - }, - create = - Object.create || - function(prototype, properties) { - var Prototype = function Prototype() {}; - Prototype.prototype = prototype; - var object = new Prototype(); - return ( - void 0 !== properties && - keys(properties).forEach(function(key) { - Value_defineByDescriptor(object, key, properties[key]); - }), - object - ); - }, - supportsSubclassing = function(C, f) { - return ( - !!Object.setPrototypeOf && - valueOrFalseIfThrows(function() { - var Sub = function Subclass(arg) { - var o = new C(arg); - return Object.setPrototypeOf(o, Subclass.prototype), o; - }; - return ( - Object.setPrototypeOf(Sub, C), - (Sub.prototype = create(C.prototype, { constructor: { value: Sub } })), - f(Sub) - ); - }) - ); - }, - globals = (function() { - if ('undefined' != typeof self) return self; - if ('undefined' != typeof window) return window; - if (void 0 !== global) return global; - throw new Error('unable to locate global object'); - })(), - globalIsFinite = globals.isFinite, - _indexOf = Function.call.bind(String.prototype.indexOf), - _arrayIndexOfApply = Function.apply.bind(Array.prototype.indexOf), - _concat = Function.call.bind(Array.prototype.concat), - _strSlice = Function.call.bind(String.prototype.slice), - _push = Function.call.bind(Array.prototype.push), - _pushApply = Function.apply.bind(Array.prototype.push), - _shift = Function.call.bind(Array.prototype.shift), - _max = Math.max, - _min = Math.min, - _floor = Math.floor, - _abs = Math.abs, - _exp = Math.exp, - _log = Math.log, - _sqrt = Math.sqrt, - _hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty), - noop = function() {}, - OrigMap = globals.Map, - origMapDelete = OrigMap && OrigMap.prototype.delete, - origMapGet = OrigMap && OrigMap.prototype.get, - origMapHas = OrigMap && OrigMap.prototype.has, - origMapSet = OrigMap && OrigMap.prototype.set, - Symbol = globals.Symbol || {}, - symbolSpecies = Symbol.species || '@@species', - numberIsNaN = - Number.isNaN || - function isNaN(value) { - return value != value; - }, - numberIsFinite = - Number.isFinite || - function isFinite(value) { - return 'number' == typeof value && globalIsFinite(value); - }, - _sign = isCallable(Math.sign) - ? Math.sign - : function sign(value) { - var number = Number(value); - return 0 === number - ? number - : numberIsNaN(number) ? number : number < 0 ? -1 : 1; - }, - isStandardArguments = function isArguments(value) { - return '[object Arguments]' === _toString(value); - }, - isArguments = isStandardArguments(arguments) - ? isStandardArguments - : function isArguments(value) { - return ( - null !== value && - 'object' == typeof value && - 'number' == typeof value.length && - value.length >= 0 && - '[object Array]' !== _toString(value) && - '[object Function]' === _toString(value.callee) - ); - }, - Type_primitive = function(x) { - return null === x || ('function' != typeof x && 'object' != typeof x); - }, - Type_string = function(x) { - return '[object String]' === _toString(x); - }, - Type_regex = function(x) { - return '[object RegExp]' === _toString(x); - }, - Type_symbol = function(x) { - return 'function' == typeof globals.Symbol && 'symbol' == typeof x; - }, - overrideNative = function overrideNative(object, property, replacement) { - var original = object[property]; - defineProperty(object, property, replacement, !0), - Value_preserveToString(object[property], original); - }, - hasSymbols = - 'function' == typeof Symbol && - 'function' == typeof Symbol.for && - Type_symbol(Symbol()), - $iterator$ = Type_symbol(Symbol.iterator) ? Symbol.iterator : '_es6-shim iterator_'; - globals.Set && - 'function' == typeof new globals.Set()['@@iterator'] && - ($iterator$ = '@@iterator'), - globals.Reflect || defineProperty(globals, 'Reflect', {}, !0); - var o, - Reflect = globals.Reflect, - $String = String, - domAll = 'undefined' != typeof document && document ? document.all : null, - isNullOrUndefined = - null == domAll - ? function isNullOrUndefined(x) { - return null == x; - } - : function isNullOrUndefinedAndNotDocumentAll(x) { - return null == x && x !== domAll; - }, - ES = { - Call: function Call(F, V) { - var args = arguments.length > 2 ? arguments[2] : []; - if (!ES.IsCallable(F)) throw new TypeError(F + ' is not a function'); - return _apply(F, V, args); - }, - RequireObjectCoercible: function(x, optMessage) { - if (isNullOrUndefined(x)) - throw new TypeError(optMessage || 'Cannot call method on ' + x); - return x; - }, - TypeIsObject: function(x) { - return ( - void 0 !== x && - null !== x && - !0 !== x && - !1 !== x && - ('function' == typeof x || 'object' == typeof x || x === domAll) - ); - }, - ToObject: function(o, optMessage) { - return Object(ES.RequireObjectCoercible(o, optMessage)); - }, - IsCallable: isCallable, - IsConstructor: function(x) { - return ES.IsCallable(x); - }, - ToInt32: function(x) { - return ES.ToNumber(x) >> 0; - }, - ToUint32: function(x) { - return ES.ToNumber(x) >>> 0; - }, - ToNumber: function(value) { - if ('[object Symbol]' === _toString(value)) - throw new TypeError('Cannot convert a Symbol value to a number'); - return +value; - }, - ToInteger: function(value) { - var number = ES.ToNumber(value); - return numberIsNaN(number) - ? 0 - : 0 !== number && numberIsFinite(number) - ? (number > 0 ? 1 : -1) * _floor(_abs(number)) - : number; - }, - ToLength: function(value) { - var len = ES.ToInteger(value); - return len <= 0 - ? 0 - : len > Number.MAX_SAFE_INTEGER ? Number.MAX_SAFE_INTEGER : len; - }, - SameValue: function(a, b) { - return a === b ? 0 !== a || 1 / a == 1 / b : numberIsNaN(a) && numberIsNaN(b); - }, - SameValueZero: function(a, b) { - return a === b || (numberIsNaN(a) && numberIsNaN(b)); - }, - IsIterable: function(o) { - return ES.TypeIsObject(o) && (void 0 !== o[$iterator$] || isArguments(o)); - }, - GetIterator: function(o) { - if (isArguments(o)) return new ArrayIterator(o, 'value'); - var itFn = ES.GetMethod(o, $iterator$); - if (!ES.IsCallable(itFn)) throw new TypeError('value is not an iterable'); - var it = ES.Call(itFn, o); - if (!ES.TypeIsObject(it)) throw new TypeError('bad iterator'); - return it; - }, - GetMethod: function(o, p) { - var func = ES.ToObject(o)[p]; - if (!isNullOrUndefined(func)) { - if (!ES.IsCallable(func)) throw new TypeError('Method not callable: ' + p); - return func; - } - }, - IteratorComplete: function(iterResult) { - return !!iterResult.done; - }, - IteratorClose: function(iterator, completionIsThrow) { - var returnMethod = ES.GetMethod(iterator, 'return'); - if (void 0 !== returnMethod) { - var innerResult, innerException; - try { - innerResult = ES.Call(returnMethod, iterator); - } catch (e) { - innerException = e; - } - if (!completionIsThrow) { - if (innerException) throw innerException; - if (!ES.TypeIsObject(innerResult)) - throw new TypeError("Iterator's return method returned a non-object."); - } - } - }, - IteratorNext: function(it) { - var result = arguments.length > 1 ? it.next(arguments[1]) : it.next(); - if (!ES.TypeIsObject(result)) throw new TypeError('bad iterator'); - return result; - }, - IteratorStep: function(it) { - var result = ES.IteratorNext(it); - return !ES.IteratorComplete(result) && result; - }, - Construct: function(C, args, newTarget, isES6internal) { - var target = void 0 === newTarget ? C : newTarget; - if (!isES6internal && Reflect.construct) - return Reflect.construct(C, args, target); - var proto = target.prototype; - ES.TypeIsObject(proto) || (proto = Object.prototype); - var obj = create(proto), - result = ES.Call(C, obj, args); - return ES.TypeIsObject(result) ? result : obj; - }, - SpeciesConstructor: function(O, defaultConstructor) { - var C = O.constructor; - if (void 0 === C) return defaultConstructor; - if (!ES.TypeIsObject(C)) throw new TypeError('Bad constructor'); - var S = C[symbolSpecies]; - if (isNullOrUndefined(S)) return defaultConstructor; - if (!ES.IsConstructor(S)) throw new TypeError('Bad @@species'); - return S; - }, - CreateHTML: function(string, tag, attribute, value) { - var S = ES.ToString(string), - p1 = '<' + tag; - '' !== attribute && - (p1 += - ' ' + attribute + '="' + ES.ToString(value).replace(/"/g, '"') + '"'); - return p1 + '>' + S + ''; - }, - IsRegExp: function IsRegExp(argument) { - if (!ES.TypeIsObject(argument)) return !1; - var isRegExp = argument[Symbol.match]; - return void 0 !== isRegExp ? !!isRegExp : Type_regex(argument); - }, - ToString: function ToString(string) { - return $String(string); - } - }; - if (supportsDescriptors && hasSymbols) { - var defineWellKnownSymbol = function defineWellKnownSymbol(name) { - if (Type_symbol(Symbol[name])) return Symbol[name]; - var sym = Symbol.for('Symbol.' + name); - return ( - Object.defineProperty(Symbol, name, { - configurable: !1, - enumerable: !1, - writable: !1, - value: sym - }), - sym - ); - }; - if (!Type_symbol(Symbol.search)) { - var symbolSearch = defineWellKnownSymbol('search'), - originalSearch = String.prototype.search; - defineProperty(RegExp.prototype, symbolSearch, function search(string) { - return ES.Call(originalSearch, string, [this]); - }); - overrideNative(String.prototype, 'search', function search(regexp) { - var O = ES.RequireObjectCoercible(this); - if (!isNullOrUndefined(regexp)) { - var searcher = ES.GetMethod(regexp, symbolSearch); - if (void 0 !== searcher) return ES.Call(searcher, regexp, [O]); - } - return ES.Call(originalSearch, O, [ES.ToString(regexp)]); - }); - } - if (!Type_symbol(Symbol.replace)) { - var symbolReplace = defineWellKnownSymbol('replace'), - originalReplace = String.prototype.replace; - defineProperty(RegExp.prototype, symbolReplace, function replace( - string, - replaceValue - ) { - return ES.Call(originalReplace, string, [this, replaceValue]); - }); - overrideNative(String.prototype, 'replace', function replace( - searchValue, - replaceValue - ) { - var O = ES.RequireObjectCoercible(this); - if (!isNullOrUndefined(searchValue)) { - var replacer = ES.GetMethod(searchValue, symbolReplace); - if (void 0 !== replacer) - return ES.Call(replacer, searchValue, [O, replaceValue]); - } - return ES.Call(originalReplace, O, [ES.ToString(searchValue), replaceValue]); - }); - } - if (!Type_symbol(Symbol.split)) { - var symbolSplit = defineWellKnownSymbol('split'), - originalSplit = String.prototype.split; - defineProperty(RegExp.prototype, symbolSplit, function split(string, limit) { - return ES.Call(originalSplit, string, [this, limit]); - }); - overrideNative(String.prototype, 'split', function split(separator, limit) { - var O = ES.RequireObjectCoercible(this); - if (!isNullOrUndefined(separator)) { - var splitter = ES.GetMethod(separator, symbolSplit); - if (void 0 !== splitter) return ES.Call(splitter, separator, [O, limit]); - } - return ES.Call(originalSplit, O, [ES.ToString(separator), limit]); - }); - } - var symbolMatchExists = Type_symbol(Symbol.match), - stringMatchIgnoresSymbolMatch = - symbolMatchExists && - (((o = {})[Symbol.match] = function() { - return 42; - }), - 42 !== 'a'.match(o)); - if (!symbolMatchExists || stringMatchIgnoresSymbolMatch) { - var symbolMatch = defineWellKnownSymbol('match'), - originalMatch = String.prototype.match; - defineProperty(RegExp.prototype, symbolMatch, function match(string) { - return ES.Call(originalMatch, string, [this]); - }); - overrideNative(String.prototype, 'match', function match(regexp) { - var O = ES.RequireObjectCoercible(this); - if (!isNullOrUndefined(regexp)) { - var matcher = ES.GetMethod(regexp, symbolMatch); - if (void 0 !== matcher) return ES.Call(matcher, regexp, [O]); - } - return ES.Call(originalMatch, O, [ES.ToString(regexp)]); - }); - } - } - var wrapConstructor = function wrapConstructor(original, replacement, keysToSkip) { - Value_preserveToString(replacement, original), - Object.setPrototypeOf && Object.setPrototypeOf(original, replacement), - supportsDescriptors - ? _forEach(Object.getOwnPropertyNames(original), function(key) { - key in noop || keysToSkip[key] || Value_proxy(original, key, replacement); - }) - : _forEach(Object.keys(original), function(key) { - key in noop || keysToSkip[key] || (replacement[key] = original[key]); - }), - (replacement.prototype = original.prototype), - Value_redefine(original.prototype, 'constructor', replacement); - }, - defaultSpeciesGetter = function() { - return this; - }, - addDefaultSpecies = function(C) { - supportsDescriptors && - !_hasOwnProperty(C, symbolSpecies) && - Value_getter(C, symbolSpecies, defaultSpeciesGetter); - }, - addIterator = function(prototype, impl) { - var implementation = - impl || - function iterator() { - return this; - }; - defineProperty(prototype, $iterator$, implementation), - !prototype[$iterator$] && - Type_symbol($iterator$) && - (prototype[$iterator$] = implementation); - }, - createDataPropertyOrThrow = function createDataPropertyOrThrow(object, name, value) { - if ( - ((function createDataProperty(object, name, value) { - supportsDescriptors - ? Object.defineProperty(object, name, { - configurable: !0, - enumerable: !0, - writable: !0, - value: value - }) - : (object[name] = value); - })(object, name, value), - !ES.SameValue(object[name], value)) - ) - throw new TypeError('property is nonconfigurable'); - }, - emulateES6construct = function(o, defaultNewTarget, defaultProto, slots) { - if (!ES.TypeIsObject(o)) - throw new TypeError('Constructor requires `new`: ' + defaultNewTarget.name); - var proto = defaultNewTarget.prototype; - ES.TypeIsObject(proto) || (proto = defaultProto); - var obj = create(proto); - for (var name in slots) - if (_hasOwnProperty(slots, name)) { - var value = slots[name]; - defineProperty(obj, name, value, !0); - } - return obj; - }; - if (String.fromCodePoint && 1 !== String.fromCodePoint.length) { - var originalFromCodePoint = String.fromCodePoint; - overrideNative(String, 'fromCodePoint', function fromCodePoint(codePoints) { - return ES.Call(originalFromCodePoint, this, arguments); - }); - } - var StringShims = { - fromCodePoint: function fromCodePoint(codePoints) { - for (var next, result = [], i = 0, length = arguments.length; i < length; i++) { - if ( - ((next = Number(arguments[i])), - !ES.SameValue(next, ES.ToInteger(next)) || next < 0 || next > 1114111) - ) - throw new RangeError('Invalid code point ' + next); - next < 65536 - ? _push(result, String.fromCharCode(next)) - : ((next -= 65536), - _push(result, String.fromCharCode(55296 + (next >> 10))), - _push(result, String.fromCharCode(next % 1024 + 56320))); - } - return result.join(''); - }, - raw: function raw(callSite) { - var cooked = ES.ToObject(callSite, 'bad callSite'), - rawString = ES.ToObject(cooked.raw, 'bad raw value'), - len = rawString.length, - literalsegments = ES.ToLength(len); - if (literalsegments <= 0) return ''; - for ( - var nextKey, next, nextSeg, nextSub, stringElements = [], nextIndex = 0; - nextIndex < literalsegments && - ((nextKey = ES.ToString(nextIndex)), - (nextSeg = ES.ToString(rawString[nextKey])), - _push(stringElements, nextSeg), - !(nextIndex + 1 >= literalsegments)); - - ) - (next = nextIndex + 1 < arguments.length ? arguments[nextIndex + 1] : ''), - (nextSub = ES.ToString(next)), - _push(stringElements, nextSub), - (nextIndex += 1); - return stringElements.join(''); - } - }; - String.raw && - 'xy' !== String.raw({ raw: { 0: 'x', 1: 'y', length: 2 } }) && - overrideNative(String, 'raw', StringShims.raw), - defineProperties(String, StringShims); - var StringPrototypeShims = { - repeat: function repeat(times) { - var thisStr = ES.ToString(ES.RequireObjectCoercible(this)), - numTimes = ES.ToInteger(times); - if (numTimes < 0 || numTimes >= 1 / 0) - throw new RangeError( - 'repeat count must be less than infinity and not overflow maximum string size' - ); - return (function repeat(s, times) { - if (times < 1) return ''; - if (times % 2) return repeat(s, times - 1) + s; - var half = repeat(s, times / 2); - return half + half; - })(thisStr, numTimes); - }, - startsWith: function startsWith(searchString) { - var S = ES.ToString(ES.RequireObjectCoercible(this)); - if (ES.IsRegExp(searchString)) - throw new TypeError('Cannot call method "startsWith" with a regex'); - var position, - searchStr = ES.ToString(searchString); - arguments.length > 1 && (position = arguments[1]); - var start = _max(ES.ToInteger(position), 0); - return _strSlice(S, start, start + searchStr.length) === searchStr; - }, - endsWith: function endsWith(searchString) { - var S = ES.ToString(ES.RequireObjectCoercible(this)); - if (ES.IsRegExp(searchString)) - throw new TypeError('Cannot call method "endsWith" with a regex'); - var endPosition, - searchStr = ES.ToString(searchString), - len = S.length; - arguments.length > 1 && (endPosition = arguments[1]); - var pos = void 0 === endPosition ? len : ES.ToInteger(endPosition), - end = _min(_max(pos, 0), len); - return _strSlice(S, end - searchStr.length, end) === searchStr; - }, - includes: function includes(searchString) { - if (ES.IsRegExp(searchString)) - throw new TypeError('"includes" does not accept a RegExp'); - var position, - searchStr = ES.ToString(searchString); - return ( - arguments.length > 1 && (position = arguments[1]), - -1 !== _indexOf(this, searchStr, position) - ); - }, - codePointAt: function codePointAt(pos) { - var thisStr = ES.ToString(ES.RequireObjectCoercible(this)), - position = ES.ToInteger(pos), - length = thisStr.length; - if (position >= 0 && position < length) { - var first = thisStr.charCodeAt(position); - if (first < 55296 || first > 56319 || position + 1 === length) return first; - var second = thisStr.charCodeAt(position + 1); - return second < 56320 || second > 57343 - ? first - : 1024 * (first - 55296) + (second - 56320) + 65536; - } - } - }; - if ( - (String.prototype.includes && - !1 !== 'a'.includes('a', 1 / 0) && - overrideNative(String.prototype, 'includes', StringPrototypeShims.includes), - String.prototype.startsWith && String.prototype.endsWith) - ) { - var startsWithRejectsRegex = throwsError(function() { - '/a/'.startsWith(/a/); - }), - startsWithHandlesInfinity = valueOrFalseIfThrows(function() { - return !1 === 'abc'.startsWith('a', 1 / 0); - }); - (startsWithRejectsRegex && startsWithHandlesInfinity) || - (overrideNative(String.prototype, 'startsWith', StringPrototypeShims.startsWith), - overrideNative(String.prototype, 'endsWith', StringPrototypeShims.endsWith)); - } - hasSymbols && - (valueOrFalseIfThrows(function() { - var re = /a/; - return (re[Symbol.match] = !1), '/a/'.startsWith(re); - }) || overrideNative(String.prototype, 'startsWith', StringPrototypeShims.startsWith), - valueOrFalseIfThrows(function() { - var re = /a/; - return (re[Symbol.match] = !1), '/a/'.endsWith(re); - }) || overrideNative(String.prototype, 'endsWith', StringPrototypeShims.endsWith), - valueOrFalseIfThrows(function() { - var re = /a/; - return (re[Symbol.match] = !1), '/a/'.includes(re); - }) || overrideNative(String.prototype, 'includes', StringPrototypeShims.includes)); - defineProperties(String.prototype, StringPrototypeShims); - var ws = ['\t\n\v\f\r   ᠎    ', '          \u2028', '\u2029\ufeff'].join(''), - trimRegexp = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g'), - trimShim = function trim() { - return ES.ToString(ES.RequireObjectCoercible(this)).replace(trimRegexp, ''); - }, - nonWS = ['…', '​', '￾'].join(''), - nonWSregex = new RegExp('[' + nonWS + ']', 'g'), - isBadHexRegex = /^[-+]0x[0-9a-f]+$/i, - hasStringTrimBug = nonWS.trim().length !== nonWS.length; - defineProperty(String.prototype, 'trim', trimShim, hasStringTrimBug); - var iteratorResult = function(x) { - return { value: x, done: 0 === arguments.length }; - }, - StringIterator = function(s) { - ES.RequireObjectCoercible(s), (this._s = ES.ToString(s)), (this._i = 0); - }; - (StringIterator.prototype.next = function() { - var s = this._s, - i = this._i; - if (void 0 === s || i >= s.length) return (this._s = void 0), iteratorResult(); - var second, - len, - first = s.charCodeAt(i); - return ( - (len = - first < 55296 || first > 56319 || i + 1 === s.length - ? 1 - : (second = s.charCodeAt(i + 1)) < 56320 || second > 57343 ? 1 : 2), - (this._i = i + len), - iteratorResult(s.substr(i, len)) - ); - }), - addIterator(StringIterator.prototype), - addIterator(String.prototype, function() { - return new StringIterator(this); - }); - var ArrayShims = { - from: function from(items) { - var mapFn, - mapping, - T, - length, - result, - i, - C = this; - if ((arguments.length > 1 && (mapFn = arguments[1]), void 0 === mapFn)) - mapping = !1; - else { - if (!ES.IsCallable(mapFn)) - throw new TypeError( - 'Array.from: when provided, the second argument must be a function' - ); - arguments.length > 2 && (T = arguments[2]), (mapping = !0); - } - if (void 0 !== (isArguments(items) || ES.GetMethod(items, $iterator$))) { - result = ES.IsConstructor(C) ? Object(new C()) : []; - var next, - nextValue, - iterator = ES.GetIterator(items); - for (i = 0; !1 !== (next = ES.IteratorStep(iterator)); ) { - nextValue = next.value; - try { - mapping && - (nextValue = - void 0 === T ? mapFn(nextValue, i) : _call(mapFn, T, nextValue, i)), - (result[i] = nextValue); - } catch (e) { - throw (ES.IteratorClose(iterator, !0), e); - } - i += 1; - } - length = i; - } else { - var value, - arrayLike = ES.ToObject(items); - for ( - length = ES.ToLength(arrayLike.length), - result = ES.IsConstructor(C) ? Object(new C(length)) : new Array(length), - i = 0; - i < length; - ++i - ) - (value = arrayLike[i]), - mapping && - (value = void 0 === T ? mapFn(value, i) : _call(mapFn, T, value, i)), - createDataPropertyOrThrow(result, i, value); - } - return (result.length = length), result; - }, - of: function of() { - for ( - var len = arguments.length, - C = this, - A = isArray(C) || !ES.IsCallable(C) ? new Array(len) : ES.Construct(C, [len]), - k = 0; - k < len; - ++k - ) - createDataPropertyOrThrow(A, k, arguments[k]); - return (A.length = len), A; - } - }; - defineProperties(Array, ArrayShims), - addDefaultSpecies(Array), - defineProperties( - (ArrayIterator = function(array, kind) { - (this.i = 0), (this.array = array), (this.kind = kind); - }).prototype, - { - next: function() { - var i = this.i, - array = this.array; - if (!(this instanceof ArrayIterator)) - throw new TypeError('Not an ArrayIterator'); - if (void 0 !== array) - for (var len = ES.ToLength(array.length); i < len; i++) { - var retval, - kind = this.kind; - return ( - 'key' === kind - ? (retval = i) - : 'value' === kind - ? (retval = array[i]) - : 'entry' === kind && (retval = [i, array[i]]), - (this.i = i + 1), - iteratorResult(retval) - ); - } - return (this.array = void 0), iteratorResult(); - } - } - ), - addIterator(ArrayIterator.prototype), - Array.of === ArrayShims.of || - (function() { - var Foo = function Foo(len) { - this.length = len; - }; - Foo.prototype = []; - var fooArr = Array.of.apply(Foo, [1, 2]); - return fooArr instanceof Foo && 2 === fooArr.length; - })() || - overrideNative(Array, 'of', ArrayShims.of); - var ArrayPrototypeShims = { - copyWithin: function copyWithin(target, start) { - var end, - o = ES.ToObject(this), - len = ES.ToLength(o.length), - relativeTarget = ES.ToInteger(target), - relativeStart = ES.ToInteger(start), - to = - relativeTarget < 0 ? _max(len + relativeTarget, 0) : _min(relativeTarget, len), - from = - relativeStart < 0 ? _max(len + relativeStart, 0) : _min(relativeStart, len); - arguments.length > 2 && (end = arguments[2]); - var relativeEnd = void 0 === end ? len : ES.ToInteger(end), - finalItem = relativeEnd < 0 ? _max(len + relativeEnd, 0) : _min(relativeEnd, len), - count = _min(finalItem - from, len - to), - direction = 1; - for ( - from < to && - to < from + count && - ((direction = -1), (from += count - 1), (to += count - 1)); - count > 0; - - ) - from in o ? (o[to] = o[from]) : delete o[to], - (from += direction), - (to += direction), - (count -= 1); - return o; - }, - fill: function fill(value) { - var start, end; - arguments.length > 1 && (start = arguments[1]), - arguments.length > 2 && (end = arguments[2]); - var O = ES.ToObject(this), - len = ES.ToLength(O.length); - (start = ES.ToInteger(void 0 === start ? 0 : start)), - (end = ES.ToInteger(void 0 === end ? len : end)); - for ( - var relativeStart = start < 0 ? _max(len + start, 0) : _min(start, len), - relativeEnd = end < 0 ? len + end : end, - i = relativeStart; - i < len && i < relativeEnd; - ++i - ) - O[i] = value; - return O; - }, - find: function find(predicate) { - var list = ES.ToObject(this), - length = ES.ToLength(list.length); - if (!ES.IsCallable(predicate)) - throw new TypeError('Array#find: predicate must be a function'); - for ( - var value, thisArg = arguments.length > 1 ? arguments[1] : null, i = 0; - i < length; - i++ - ) - if (((value = list[i]), thisArg)) { - if (_call(predicate, thisArg, value, i, list)) return value; - } else if (predicate(value, i, list)) return value; - }, - findIndex: function findIndex(predicate) { - var list = ES.ToObject(this), - length = ES.ToLength(list.length); - if (!ES.IsCallable(predicate)) - throw new TypeError('Array#findIndex: predicate must be a function'); - for ( - var thisArg = arguments.length > 1 ? arguments[1] : null, i = 0; - i < length; - i++ - ) - if (thisArg) { - if (_call(predicate, thisArg, list[i], i, list)) return i; - } else if (predicate(list[i], i, list)) return i; - return -1; - }, - keys: function keys() { - return new ArrayIterator(this, 'key'); - }, - values: function values() { - return new ArrayIterator(this, 'value'); - }, - entries: function entries() { - return new ArrayIterator(this, 'entry'); - } - }; - if ( - (Array.prototype.keys && - !ES.IsCallable([1].keys().next) && - delete Array.prototype.keys, - Array.prototype.entries && - !ES.IsCallable([1].entries().next) && - delete Array.prototype.entries, - Array.prototype.keys && - Array.prototype.entries && - !Array.prototype.values && - Array.prototype[$iterator$] && - (defineProperties(Array.prototype, { values: Array.prototype[$iterator$] }), - Type_symbol(Symbol.unscopables) && - (Array.prototype[Symbol.unscopables].values = !0)), - functionsHaveNames && - Array.prototype.values && - 'values' !== Array.prototype.values.name) - ) { - var originalArrayPrototypeValues = Array.prototype.values; - overrideNative(Array.prototype, 'values', function values() { - return ES.Call(originalArrayPrototypeValues, this, arguments); - }), - defineProperty(Array.prototype, $iterator$, Array.prototype.values, !0); - } - defineProperties(Array.prototype, ArrayPrototypeShims), - 1 / [!0].indexOf(!0, -0) < 0 && - defineProperty( - Array.prototype, - 'indexOf', - function indexOf(searchElement) { - var value = _arrayIndexOfApply(this, arguments); - return 0 === value && 1 / value < 0 ? 0 : value; - }, - !0 - ), - addIterator(Array.prototype, function() { - return this.values(); - }), - Object.getPrototypeOf && addIterator(Object.getPrototypeOf([].values())); - var arr, - arrayFromSwallowsNegativeLengths = valueOrFalseIfThrows(function() { - return 0 === Array.from({ length: -1 }).length; - }), - arrayFromHandlesIterables = - 1 === (arr = Array.from([0].entries())).length && - isArray(arr[0]) && - 0 === arr[0][0] && - 0 === arr[0][1]; - if ( - ((arrayFromSwallowsNegativeLengths && arrayFromHandlesIterables) || - overrideNative(Array, 'from', ArrayShims.from), - !valueOrFalseIfThrows(function() { - return Array.from([0], void 0); - })) - ) { - var origArrayFrom = Array.from; - overrideNative(Array, 'from', function from(items) { - return arguments.length > 1 && void 0 !== arguments[1] - ? ES.Call(origArrayFrom, this, arguments) - : _call(origArrayFrom, this, items); - }); - } - var int32sAsOne = -(Math.pow(2, 32) - 1), - toLengthsCorrectly = function(method, reversed) { - var obj = { length: int32sAsOne }; - return ( - (obj[reversed ? (obj.length >>> 0) - 1 : 0] = !0), - valueOrFalseIfThrows(function() { - return ( - _call( - method, - obj, - function() { - throw new RangeError('should not reach here'); - }, - [] - ), - !0 - ); - }) - ); - }; - if (!toLengthsCorrectly(Array.prototype.forEach)) { - var originalForEach = Array.prototype.forEach; - overrideNative(Array.prototype, 'forEach', function forEach(callbackFn) { - return ES.Call(originalForEach, this.length >= 0 ? this : [], arguments); - }); - } - if (!toLengthsCorrectly(Array.prototype.map)) { - var originalMap = Array.prototype.map; - overrideNative(Array.prototype, 'map', function map(callbackFn) { - return ES.Call(originalMap, this.length >= 0 ? this : [], arguments); - }); - } - if (!toLengthsCorrectly(Array.prototype.filter)) { - var originalFilter = Array.prototype.filter; - overrideNative(Array.prototype, 'filter', function filter(callbackFn) { - return ES.Call(originalFilter, this.length >= 0 ? this : [], arguments); - }); - } - if (!toLengthsCorrectly(Array.prototype.some)) { - var originalSome = Array.prototype.some; - overrideNative(Array.prototype, 'some', function some(callbackFn) { - return ES.Call(originalSome, this.length >= 0 ? this : [], arguments); - }); - } - if (!toLengthsCorrectly(Array.prototype.every)) { - var originalEvery = Array.prototype.every; - overrideNative(Array.prototype, 'every', function every(callbackFn) { - return ES.Call(originalEvery, this.length >= 0 ? this : [], arguments); - }); - } - if (!toLengthsCorrectly(Array.prototype.reduce)) { - var originalReduce = Array.prototype.reduce; - overrideNative(Array.prototype, 'reduce', function reduce(callbackFn) { - return ES.Call(originalReduce, this.length >= 0 ? this : [], arguments); - }); - } - if (!toLengthsCorrectly(Array.prototype.reduceRight, !0)) { - var originalReduceRight = Array.prototype.reduceRight; - overrideNative(Array.prototype, 'reduceRight', function reduceRight(callbackFn) { - return ES.Call(originalReduceRight, this.length >= 0 ? this : [], arguments); - }); - } - var lacksOctalSupport = 8 !== Number('0o10'), - lacksBinarySupport = 2 !== Number('0b10'), - trimsNonWhitespace = _some(nonWS, function(c) { - return 0 === Number(c + 0 + c); - }); - if (lacksOctalSupport || lacksBinarySupport || trimsNonWhitespace) { - var OrigNumber = Number, - binaryRegex = /^0b[01]+$/i, - octalRegex = /^0o[0-7]+$/i, - isBinary = binaryRegex.test.bind(binaryRegex), - isOctal = octalRegex.test.bind(octalRegex), - hasNonWS = nonWSregex.test.bind(nonWSregex), - isBadHex = isBadHexRegex.test.bind(isBadHexRegex), - NumberShim = (function() { - var NumberShim = function Number(value) { - var primValue; - 'string' == - typeof (primValue = - arguments.length > 0 - ? Type_primitive(value) - ? value - : (function(O) { - var result; - if ( - 'function' == typeof O.valueOf && - ((result = O.valueOf()), Type_primitive(result)) - ) - return result; - if ( - 'function' == typeof O.toString && - ((result = O.toString()), Type_primitive(result)) - ) - return result; - throw new TypeError('No default value'); - })(value) - : 0) && - ((primValue = ES.Call(trimShim, primValue)), - isBinary(primValue) - ? (primValue = parseInt(_strSlice(primValue, 2), 2)) - : isOctal(primValue) - ? (primValue = parseInt(_strSlice(primValue, 2), 8)) - : (hasNonWS(primValue) || isBadHex(primValue)) && (primValue = NaN)); - var receiver = this, - valueOfSucceeds = valueOrFalseIfThrows(function() { - return OrigNumber.prototype.valueOf.call(receiver), !0; - }); - return receiver instanceof NumberShim && !valueOfSucceeds - ? new OrigNumber(primValue) - : OrigNumber(primValue); - }; - return NumberShim; - })(); - wrapConstructor(OrigNumber, NumberShim, {}), - defineProperties(NumberShim, { - NaN: OrigNumber.NaN, - MAX_VALUE: OrigNumber.MAX_VALUE, - MIN_VALUE: OrigNumber.MIN_VALUE, - NEGATIVE_INFINITY: OrigNumber.NEGATIVE_INFINITY, - POSITIVE_INFINITY: OrigNumber.POSITIVE_INFINITY - }), - (Number = NumberShim), - Value_redefine(globals, 'Number', NumberShim); - } - var maxSafeInteger = Math.pow(2, 53) - 1; - defineProperties(Number, { - MAX_SAFE_INTEGER: maxSafeInteger, - MIN_SAFE_INTEGER: -maxSafeInteger, - EPSILON: 2.220446049250313e-16, - parseInt: globals.parseInt, - parseFloat: globals.parseFloat, - isFinite: numberIsFinite, - isInteger: function isInteger(value) { - return numberIsFinite(value) && ES.ToInteger(value) === value; - }, - isSafeInteger: function isSafeInteger(value) { - return Number.isInteger(value) && _abs(value) <= Number.MAX_SAFE_INTEGER; - }, - isNaN: numberIsNaN - }), - defineProperty( - Number, - 'parseInt', - globals.parseInt, - Number.parseInt !== globals.parseInt - ), - 1 === - [, 1].find(function() { - return !0; - }) && overrideNative(Array.prototype, 'find', ArrayPrototypeShims.find), - 0 !== - [, 1].findIndex(function() { - return !0; - }) && overrideNative(Array.prototype, 'findIndex', ArrayPrototypeShims.findIndex); - var FAKENULL, - gpo, - spo, - isEnumerableOn = Function.bind.call( - Function.bind, - Object.prototype.propertyIsEnumerable - ), - ensureEnumerable = function ensureEnumerable(obj, prop) { - supportsDescriptors && - isEnumerableOn(obj, prop) && - Object.defineProperty(obj, prop, { enumerable: !1 }); - }, - sliceArgs = function sliceArgs() { - for ( - var initial = Number(this), - len = arguments.length, - desiredArgCount = len - initial, - args = new Array(desiredArgCount < 0 ? 0 : desiredArgCount), - i = initial; - i < len; - ++i - ) - args[i - initial] = arguments[i]; - return args; - }, - assignTo = function assignTo(source) { - return function assignToSource(target, key) { - return (target[key] = source[key]), target; - }; - }, - assignReducer = function(target, source) { - var symbols, - sourceKeys = keys(Object(source)); - return ( - ES.IsCallable(Object.getOwnPropertySymbols) && - (symbols = _filter( - Object.getOwnPropertySymbols(Object(source)), - isEnumerableOn(source) - )), - _reduce(_concat(sourceKeys, symbols || []), assignTo(source), target) - ); - }, - ObjectShims = { - assign: function(target, source) { - var to = ES.ToObject(target, 'Cannot convert undefined or null to object'); - return _reduce(ES.Call(sliceArgs, 1, arguments), assignReducer, to); - }, - is: function is(a, b) { - return ES.SameValue(a, b); - } - }; - if ( - (Object.assign && - Object.preventExtensions && - (function() { - var thrower = Object.preventExtensions({ 1: 2 }); - try { - Object.assign(thrower, 'xy'); - } catch (e) { - return 'y' === thrower[1]; - } - })() && - overrideNative(Object, 'assign', ObjectShims.assign), - defineProperties(Object, ObjectShims), - supportsDescriptors) - ) { - var ES5ObjectShims = { - setPrototypeOf: (function(Object, magic) { - var set, - setPrototypeOf = function(O, proto) { - return ( - (function(O, proto) { - if (!ES.TypeIsObject(O)) - throw new TypeError('cannot set prototype on a non-object'); - if (null !== proto && !ES.TypeIsObject(proto)) - throw new TypeError( - 'can only set prototype to an object or null' + proto - ); - })(O, proto), - _call(set, O, proto), - O - ); - }; - try { - (set = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set), - _call(set, {}, null); - } catch (e) { - if (Object.prototype !== {}.__proto__) return; - (set = function(proto) { - this.__proto__ = proto; - }), - (setPrototypeOf.polyfill = - setPrototypeOf(setPrototypeOf({}, null), Object.prototype) instanceof - Object); - } - return setPrototypeOf; - })(Object) - }; - defineProperties(Object, ES5ObjectShims); - } - if ( - (Object.setPrototypeOf && - Object.getPrototypeOf && - null !== Object.getPrototypeOf(Object.setPrototypeOf({}, null)) && - null === Object.getPrototypeOf(Object.create(null)) && - ((FAKENULL = Object.create(null)), - (gpo = Object.getPrototypeOf), - (spo = Object.setPrototypeOf), - (Object.getPrototypeOf = function(o) { - var result = gpo(o); - return result === FAKENULL ? null : result; - }), - (Object.setPrototypeOf = function(o, p) { - return spo(o, null === p ? FAKENULL : p); - }), - (Object.setPrototypeOf.polyfill = !1)), - !!throwsError(function() { - Object.keys('foo'); - })) - ) { - var originalObjectKeys = Object.keys; - overrideNative(Object, 'keys', function keys(value) { - return originalObjectKeys(ES.ToObject(value)); - }), - (keys = Object.keys); - } - if ( - throwsError(function() { - Object.keys(/a/g); - }) - ) { - var regexRejectingObjectKeys = Object.keys; - overrideNative(Object, 'keys', function keys(value) { - if (Type_regex(value)) { - var regexKeys = []; - for (var k in value) _hasOwnProperty(value, k) && _push(regexKeys, k); - return regexKeys; - } - return regexRejectingObjectKeys(value); - }), - (keys = Object.keys); - } - if ( - Object.getOwnPropertyNames && - !!throwsError(function() { - Object.getOwnPropertyNames('foo'); - }) - ) { - var cachedWindowNames = - 'object' == typeof window ? Object.getOwnPropertyNames(window) : [], - originalObjectGetOwnPropertyNames = Object.getOwnPropertyNames; - overrideNative(Object, 'getOwnPropertyNames', function getOwnPropertyNames(value) { - var val = ES.ToObject(value); - if ('[object Window]' === _toString(val)) - try { - return originalObjectGetOwnPropertyNames(val); - } catch (e) { - return _concat([], cachedWindowNames); - } - return originalObjectGetOwnPropertyNames(val); - }); - } - if ( - Object.getOwnPropertyDescriptor && - !!throwsError(function() { - Object.getOwnPropertyDescriptor('foo', 'bar'); - }) - ) { - var originalObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - overrideNative(Object, 'getOwnPropertyDescriptor', function getOwnPropertyDescriptor( - value, - property - ) { - return originalObjectGetOwnPropertyDescriptor(ES.ToObject(value), property); - }); - } - if ( - Object.seal && - !!throwsError(function() { - Object.seal('foo'); - }) - ) { - var originalObjectSeal = Object.seal; - overrideNative(Object, 'seal', function seal(value) { - return ES.TypeIsObject(value) ? originalObjectSeal(value) : value; - }); - } - if ( - Object.isSealed && - !!throwsError(function() { - Object.isSealed('foo'); - }) - ) { - var originalObjectIsSealed = Object.isSealed; - overrideNative(Object, 'isSealed', function isSealed(value) { - return !ES.TypeIsObject(value) || originalObjectIsSealed(value); - }); - } - if ( - Object.freeze && - !!throwsError(function() { - Object.freeze('foo'); - }) - ) { - var originalObjectFreeze = Object.freeze; - overrideNative(Object, 'freeze', function freeze(value) { - return ES.TypeIsObject(value) ? originalObjectFreeze(value) : value; - }); - } - if ( - Object.isFrozen && - !!throwsError(function() { - Object.isFrozen('foo'); - }) - ) { - var originalObjectIsFrozen = Object.isFrozen; - overrideNative(Object, 'isFrozen', function isFrozen(value) { - return !ES.TypeIsObject(value) || originalObjectIsFrozen(value); - }); - } - if ( - Object.preventExtensions && - !!throwsError(function() { - Object.preventExtensions('foo'); - }) - ) { - var originalObjectPreventExtensions = Object.preventExtensions; - overrideNative(Object, 'preventExtensions', function preventExtensions(value) { - return ES.TypeIsObject(value) ? originalObjectPreventExtensions(value) : value; - }); - } - if ( - Object.isExtensible && - !!throwsError(function() { - Object.isExtensible('foo'); - }) - ) { - var originalObjectIsExtensible = Object.isExtensible; - overrideNative(Object, 'isExtensible', function isExtensible(value) { - return !!ES.TypeIsObject(value) && originalObjectIsExtensible(value); - }); - } - if ( - Object.getPrototypeOf && - !!throwsError(function() { - Object.getPrototypeOf('foo'); - }) - ) { - var originalGetProto = Object.getPrototypeOf; - overrideNative(Object, 'getPrototypeOf', function getPrototypeOf(value) { - return originalGetProto(ES.ToObject(value)); - }); - } - var desc, - hasFlags = - supportsDescriptors && - ((desc = Object.getOwnPropertyDescriptor(RegExp.prototype, 'flags')) && - ES.IsCallable(desc.get)); - if (supportsDescriptors && !hasFlags) { - Value_getter(RegExp.prototype, 'flags', function flags() { - if (!ES.TypeIsObject(this)) - throw new TypeError('Method called on incompatible type: must be an object.'); - var result = ''; - return ( - this.global && (result += 'g'), - this.ignoreCase && (result += 'i'), - this.multiline && (result += 'm'), - this.unicode && (result += 'u'), - this.sticky && (result += 'y'), - result - ); - }); - } - var regex, - regExpSupportsFlagsWithRegex = - supportsDescriptors && - valueOrFalseIfThrows(function() { - return '/a/i' === String(new RegExp(/a/g, 'i')); - }), - regExpNeedsToSupportSymbolMatch = - hasSymbols && - supportsDescriptors && - (((regex = /./)[Symbol.match] = !1), RegExp(regex) === regex), - regexToStringIsGeneric = valueOrFalseIfThrows(function() { - return '/abc/' === RegExp.prototype.toString.call({ source: 'abc' }); - }), - regexToStringSupportsGenericFlags = - regexToStringIsGeneric && - valueOrFalseIfThrows(function() { - return '/a/b' === RegExp.prototype.toString.call({ source: 'a', flags: 'b' }); - }); - if (!regexToStringIsGeneric || !regexToStringSupportsGenericFlags) { - var origRegExpToString = RegExp.prototype.toString; - defineProperty( - RegExp.prototype, - 'toString', - function toString() { - var R = ES.RequireObjectCoercible(this); - return Type_regex(R) - ? _call(origRegExpToString, R) - : '/' + $String(R.source) + '/' + $String(R.flags); - }, - !0 - ), - Value_preserveToString(RegExp.prototype.toString, origRegExpToString); - } - if ( - supportsDescriptors && - (!regExpSupportsFlagsWithRegex || regExpNeedsToSupportSymbolMatch) - ) { - var flagsGetter = Object.getOwnPropertyDescriptor(RegExp.prototype, 'flags').get, - sourceDesc = Object.getOwnPropertyDescriptor(RegExp.prototype, 'source') || {}, - sourceGetter = ES.IsCallable(sourceDesc.get) - ? sourceDesc.get - : function() { - return this.source; - }, - OrigRegExp = RegExp, - RegExpShim = function RegExp(pattern, flags) { - var patternIsRegExp = ES.IsRegExp(pattern); - return this instanceof RegExp || - !patternIsRegExp || - void 0 !== flags || - pattern.constructor !== RegExp - ? Type_regex(pattern) - ? new RegExp( - ES.Call(sourceGetter, pattern), - void 0 === flags ? ES.Call(flagsGetter, pattern) : flags - ) - : (patternIsRegExp && (pattern.source, void 0 === flags && pattern.flags), - new OrigRegExp(pattern, flags)) - : pattern; - }; - wrapConstructor(OrigRegExp, RegExpShim, { $input: !0 }), - (RegExp = RegExpShim), - Value_redefine(globals, 'RegExp', RegExpShim); - } - if (supportsDescriptors) { - var regexGlobals = { - input: '$_', - lastMatch: '$&', - lastParen: '$+', - leftContext: '$`', - rightContext: "$'" - }; - _forEach(keys(regexGlobals), function(prop) { - prop in RegExp && - !(regexGlobals[prop] in RegExp) && - Value_getter(RegExp, regexGlobals[prop], function get() { - return RegExp[prop]; - }); - }); - } - addDefaultSpecies(RegExp); - var inverseEpsilon = 1 / Number.EPSILON, - BINARY_32_EPSILON = Math.pow(2, -23), - BINARY_32_MAX_VALUE = Math.pow(2, 127) * (2 - BINARY_32_EPSILON), - BINARY_32_MIN_VALUE = Math.pow(2, -126), - E = Math.E, - LOG2E = Math.LOG2E, - LOG10E = Math.LOG10E, - numberCLZ = Number.prototype.clz; - delete Number.prototype.clz; - var MathShims = { - acosh: function acosh(value) { - var x = Number(value); - return numberIsNaN(x) || value < 1 - ? NaN - : 1 === x - ? 0 - : x === 1 / 0 ? x : _log(x / E + _sqrt(x + 1) * _sqrt(x - 1) / E) + 1; - }, - asinh: function asinh(value) { - var x = Number(value); - return 0 !== x && globalIsFinite(x) - ? x < 0 ? -asinh(-x) : _log(x + _sqrt(x * x + 1)) - : x; - }, - atanh: function atanh(value) { - var x = Number(value); - return numberIsNaN(x) || x < -1 || x > 1 - ? NaN - : -1 === x - ? -1 / 0 - : 1 === x ? 1 / 0 : 0 === x ? x : 0.5 * _log((1 + x) / (1 - x)); - }, - cbrt: function cbrt(value) { - var x = Number(value); - if (0 === x) return x; - var result, - negate = x < 0; - return ( - negate && (x = -x), - (result = - x === 1 / 0 - ? 1 / 0 - : (x / ((result = _exp(_log(x) / 3)) * result) + 2 * result) / 3), - negate ? -result : result - ); - }, - clz32: function clz32(value) { - var x = Number(value), - number = ES.ToUint32(x); - return 0 === number - ? 32 - : numberCLZ - ? ES.Call(numberCLZ, number) - : 31 - _floor(_log(number + 0.5) * LOG2E); - }, - cosh: function cosh(value) { - var x = Number(value); - return 0 === x - ? 1 - : numberIsNaN(x) - ? NaN - : globalIsFinite(x) - ? (x < 0 && (x = -x), x > 21 ? _exp(x) / 2 : (_exp(x) + _exp(-x)) / 2) - : 1 / 0; - }, - expm1: function expm1(value) { - var x = Number(value); - if (x === -1 / 0) return -1; - if (!globalIsFinite(x) || 0 === x) return x; - if (_abs(x) > 0.5) return _exp(x) - 1; - for (var t = x, sum = 0, n = 1; sum + t !== sum; ) (sum += t), (t *= x / (n += 1)); - return sum; - }, - hypot: function hypot(x, y) { - for (var result = 0, largest = 0, i = 0; i < arguments.length; ++i) { - var value = _abs(Number(arguments[i])); - largest < value - ? ((result *= largest / value * (largest / value)), - (result += 1), - (largest = value)) - : (result += value > 0 ? value / largest * (value / largest) : value); - } - return largest === 1 / 0 ? 1 / 0 : largest * _sqrt(result); - }, - log2: function log2(value) { - return _log(value) * LOG2E; - }, - log10: function log10(value) { - return _log(value) * LOG10E; - }, - log1p: function log1p(value) { - var x = Number(value); - return x < -1 || numberIsNaN(x) - ? NaN - : 0 === x || x === 1 / 0 - ? x - : -1 === x ? -1 / 0 : 1 + x - 1 == 0 ? x : x * (_log(1 + x) / (1 + x - 1)); - }, - sign: _sign, - sinh: function sinh(value) { - var x = Number(value); - return globalIsFinite(x) && 0 !== x - ? _abs(x) < 1 - ? (Math.expm1(x) - Math.expm1(-x)) / 2 - : (_exp(x - 1) - _exp(-x - 1)) * E / 2 - : x; - }, - tanh: function tanh(value) { - var x = Number(value); - return numberIsNaN(x) || 0 === x - ? x - : x >= 20 - ? 1 - : x <= -20 ? -1 : (Math.expm1(x) - Math.expm1(-x)) / (_exp(x) + _exp(-x)); - }, - trunc: function trunc(value) { - var x = Number(value); - return x < 0 ? -_floor(-x) : _floor(x); - }, - imul: function imul(x, y) { - var a = ES.ToUint32(x), - b = ES.ToUint32(y), - al = 65535 & a, - bl = 65535 & b; - return ( - (al * bl + - (((((a >>> 16) & 65535) * bl + al * ((b >>> 16) & 65535)) << 16) >>> 0)) | - 0 - ); - }, - fround: function fround(x) { - var v = Number(x); - if (0 === v || v === 1 / 0 || v === -1 / 0 || numberIsNaN(v)) return v; - var sign = _sign(v), - abs = _abs(v); - if (abs < BINARY_32_MIN_VALUE) - return ( - sign * - (function roundTiesToEven(n) { - return n + inverseEpsilon - inverseEpsilon; - })(abs / BINARY_32_MIN_VALUE / BINARY_32_EPSILON) * - BINARY_32_MIN_VALUE * - BINARY_32_EPSILON - ); - var a = (1 + BINARY_32_EPSILON / Number.EPSILON) * abs, - result = a - (a - abs); - return result > BINARY_32_MAX_VALUE || numberIsNaN(result) - ? sign * (1 / 0) - : sign * result; - } - }; - defineProperties(Math, MathShims), - defineProperty(Math, 'log1p', MathShims.log1p, -1e-17 !== Math.log1p(-1e-17)), - defineProperty(Math, 'asinh', MathShims.asinh, Math.asinh(-1e7) !== -Math.asinh(1e7)), - defineProperty(Math, 'tanh', MathShims.tanh, -2e-17 !== Math.tanh(-2e-17)), - defineProperty( - Math, - 'acosh', - MathShims.acosh, - Math.acosh(Number.MAX_VALUE) === 1 / 0 - ), - defineProperty( - Math, - 'cbrt', - MathShims.cbrt, - Math.abs(1 - Math.cbrt(1e-300) / 1e-100) / Number.EPSILON > 8 - ), - defineProperty(Math, 'sinh', MathShims.sinh, -2e-17 !== Math.sinh(-2e-17)); - var expm1OfTen = Math.expm1(10); - defineProperty( - Math, - 'expm1', - MathShims.expm1, - expm1OfTen > 22025.465794806718 || expm1OfTen < 22025.465794806718 - ); - var origMathRound = Math.round, - roundHandlesBoundaryConditions = - 0 === Math.round(0.5 - Number.EPSILON / 4) && - 1 === Math.round(Number.EPSILON / 3.99 - 0.5), - roundDoesNotIncreaseIntegers = [inverseEpsilon + 1, 2 * inverseEpsilon - 1].every( - function(num) { - return Math.round(num) === num; - } - ); - defineProperty( - Math, - 'round', - function round(x) { - var floor = _floor(x); - return x - floor < 0.5 ? floor : -1 === floor ? -0 : floor + 1; - }, - !roundHandlesBoundaryConditions || !roundDoesNotIncreaseIntegers - ), - Value_preserveToString(Math.round, origMathRound); - var origImul = Math.imul; - -5 !== Math.imul(4294967295, 5) && - ((Math.imul = MathShims.imul), Value_preserveToString(Math.imul, origImul)), - 2 !== Math.imul.length && - overrideNative(Math, 'imul', function imul(x, y) { - return ES.Call(origImul, Math, arguments); - }); - var count, - thenable, - PromiseShim = (function() { - var setTimeout = globals.setTimeout; - if ('function' == typeof setTimeout || 'object' == typeof setTimeout) { - ES.IsPromise = function(promise) { - return !!ES.TypeIsObject(promise) && void 0 !== promise._promise; - }; - var makeZeroTimeout, - PromiseCapability = function(C) { - if (!ES.IsConstructor(C)) throw new TypeError('Bad promise constructor'); - var capability = this; - if ( - ((capability.resolve = void 0), - (capability.reject = void 0), - (capability.promise = new C(function(resolve, reject) { - if (void 0 !== capability.resolve || void 0 !== capability.reject) - throw new TypeError('Bad Promise implementation!'); - (capability.resolve = resolve), (capability.reject = reject); - })), - !ES.IsCallable(capability.resolve) || !ES.IsCallable(capability.reject)) - ) - throw new TypeError('Bad promise constructor'); - }; - 'undefined' != typeof window && - ES.IsCallable(window.postMessage) && - (makeZeroTimeout = function() { - var timeouts = []; - return ( - window.addEventListener( - 'message', - function(event) { - if (event.source === window && 'zero-timeout-message' === event.data) { - if ((event.stopPropagation(), 0 === timeouts.length)) return; - _shift(timeouts)(); - } - }, - !0 - ), - function(fn) { - _push(timeouts, fn), window.postMessage('zero-timeout-message', '*'); - } - ); - }); - var P, - pr, - Promise$prototype, - Promise$prototype$then, - PromiseShim, - enqueue = ES.IsCallable(globals.setImmediate) - ? globals.setImmediate - : 'object' == typeof process && process.nextTick - ? process.nextTick - : ((P = globals.Promise), - ((pr = P && P.resolve && P.resolve()) && - function(task) { - return pr.then(task); - }) || - (ES.IsCallable(makeZeroTimeout) - ? makeZeroTimeout() - : function(task) { - setTimeout(task, 0); - })), - PROMISE_IDENTITY = function(x) { - return x; - }, - PROMISE_THROWER = function(e) { - throw e; - }, - PROMISE_FAKE_CAPABILITY = {}, - enqueuePromiseReactionJob = function(handler, capability, argument) { - enqueue(function() { - promiseReactionJob(handler, capability, argument); - }); - }, - promiseReactionJob = function(handler, promiseCapability, argument) { - var handlerResult, f; - if (promiseCapability === PROMISE_FAKE_CAPABILITY) return handler(argument); - try { - (handlerResult = handler(argument)), (f = promiseCapability.resolve); - } catch (e) { - (handlerResult = e), (f = promiseCapability.reject); - } - f(handlerResult); - }, - fulfillPromise = function(promise, value) { - var _promise = promise._promise, - length = _promise.reactionLength; - if ( - length > 0 && - (enqueuePromiseReactionJob( - _promise.fulfillReactionHandler0, - _promise.reactionCapability0, - value - ), - (_promise.fulfillReactionHandler0 = void 0), - (_promise.rejectReactions0 = void 0), - (_promise.reactionCapability0 = void 0), - length > 1) - ) - for (var i = 1, idx = 0; i < length; i++, idx += 3) - enqueuePromiseReactionJob(_promise[idx + 0], _promise[idx + 2], value), - (promise[idx + 0] = void 0), - (promise[idx + 1] = void 0), - (promise[idx + 2] = void 0); - (_promise.result = value), - (_promise.state = 1), - (_promise.reactionLength = 0); - }, - rejectPromise = function(promise, reason) { - var _promise = promise._promise, - length = _promise.reactionLength; - if ( - length > 0 && - (enqueuePromiseReactionJob( - _promise.rejectReactionHandler0, - _promise.reactionCapability0, - reason - ), - (_promise.fulfillReactionHandler0 = void 0), - (_promise.rejectReactions0 = void 0), - (_promise.reactionCapability0 = void 0), - length > 1) - ) - for (var i = 1, idx = 0; i < length; i++, idx += 3) - enqueuePromiseReactionJob(_promise[idx + 1], _promise[idx + 2], reason), - (promise[idx + 0] = void 0), - (promise[idx + 1] = void 0), - (promise[idx + 2] = void 0); - (_promise.result = reason), - (_promise.state = 2), - (_promise.reactionLength = 0); - }, - createResolvingFunctions = function(promise) { - var alreadyResolved = !1; - return { - resolve: function(resolution) { - var then; - if (!alreadyResolved) { - if (((alreadyResolved = !0), resolution === promise)) - return rejectPromise(promise, new TypeError('Self resolution')); - if (!ES.TypeIsObject(resolution)) - return fulfillPromise(promise, resolution); - try { - then = resolution.then; - } catch (e) { - return rejectPromise(promise, e); - } - if (!ES.IsCallable(then)) return fulfillPromise(promise, resolution); - enqueue(function() { - promiseResolveThenableJob(promise, resolution, then); - }); - } - }, - reject: function(reason) { - if (!alreadyResolved) - return (alreadyResolved = !0), rejectPromise(promise, reason); - } - }; - }, - optimizedThen = function(then, thenable, resolve, reject) { - then === Promise$prototype$then - ? _call(then, thenable, resolve, reject, PROMISE_FAKE_CAPABILITY) - : _call(then, thenable, resolve, reject); - }, - promiseResolveThenableJob = function(promise, thenable, then) { - var resolvingFunctions = createResolvingFunctions(promise), - resolve = resolvingFunctions.resolve, - reject = resolvingFunctions.reject; - try { - optimizedThen(then, thenable, resolve, reject); - } catch (e) { - reject(e); - } - }, - Promise = (PromiseShim = function Promise(resolver) { - if (!(this instanceof PromiseShim)) - throw new TypeError('Constructor Promise requires "new"'); - if (this && this._promise) throw new TypeError('Bad construction'); - if (!ES.IsCallable(resolver)) throw new TypeError('not a valid resolver'); - var promise = emulateES6construct(this, PromiseShim, Promise$prototype, { - _promise: { - result: void 0, - state: 0, - reactionLength: 0, - fulfillReactionHandler0: void 0, - rejectReactionHandler0: void 0, - reactionCapability0: void 0 - } - }), - resolvingFunctions = createResolvingFunctions(promise), - reject = resolvingFunctions.reject; - try { - resolver(resolvingFunctions.resolve, reject); - } catch (e) { - reject(e); - } - return promise; - }); - Promise$prototype = Promise.prototype; - var _promiseAllResolver = function(index, values, capability, remaining) { - var alreadyCalled = !1; - return function(x) { - alreadyCalled || - ((alreadyCalled = !0), - (values[index] = x), - 0 == --remaining.count && (0, capability.resolve)(values)); - }; - }; - return ( - defineProperties(Promise, { - all: function all(iterable) { - var C = this; - if (!ES.TypeIsObject(C)) throw new TypeError('Promise is not object'); - var iterator, - iteratorRecord, - capability = new PromiseCapability(C); - try { - return (function(iteratorRecord, C, resultCapability) { - for ( - var next, - nextValue, - it = iteratorRecord.iterator, - values = [], - remaining = { count: 1 }, - index = 0; - ; - - ) { - try { - if (!1 === (next = ES.IteratorStep(it))) { - iteratorRecord.done = !0; - break; - } - nextValue = next.value; - } catch (e) { - throw ((iteratorRecord.done = !0), e); - } - values[index] = void 0; - var nextPromise = C.resolve(nextValue), - resolveElement = _promiseAllResolver( - index, - values, - resultCapability, - remaining - ); - (remaining.count += 1), - optimizedThen( - nextPromise.then, - nextPromise, - resolveElement, - resultCapability.reject - ), - (index += 1); - } - 0 == --remaining.count && (0, resultCapability.resolve)(values); - return resultCapability.promise; - })( - (iteratorRecord = { - iterator: (iterator = ES.GetIterator(iterable)), - done: !1 - }), - C, - capability - ); - } catch (e) { - var exception = e; - if (iteratorRecord && !iteratorRecord.done) - try { - ES.IteratorClose(iterator, !0); - } catch (ee) { - exception = ee; - } - return (0, capability.reject)(exception), capability.promise; - } - }, - race: function race(iterable) { - var C = this; - if (!ES.TypeIsObject(C)) throw new TypeError('Promise is not object'); - var iterator, - iteratorRecord, - capability = new PromiseCapability(C); - try { - return (function(iteratorRecord, C, resultCapability) { - for ( - var next, nextValue, nextPromise, it = iteratorRecord.iterator; - ; - - ) { - try { - if (!1 === (next = ES.IteratorStep(it))) { - iteratorRecord.done = !0; - break; - } - nextValue = next.value; - } catch (e) { - throw ((iteratorRecord.done = !0), e); - } - (nextPromise = C.resolve(nextValue)), - optimizedThen( - nextPromise.then, - nextPromise, - resultCapability.resolve, - resultCapability.reject - ); - } - return resultCapability.promise; - })( - (iteratorRecord = { - iterator: (iterator = ES.GetIterator(iterable)), - done: !1 - }), - C, - capability - ); - } catch (e) { - var exception = e; - if (iteratorRecord && !iteratorRecord.done) - try { - ES.IteratorClose(iterator, !0); - } catch (ee) { - exception = ee; - } - return (0, capability.reject)(exception), capability.promise; - } - }, - reject: function reject(reason) { - if (!ES.TypeIsObject(this)) throw new TypeError('Bad promise constructor'); - var capability = new PromiseCapability(this); - return (0, capability.reject)(reason), capability.promise; - }, - resolve: function resolve(v) { - var C = this; - if (!ES.TypeIsObject(C)) throw new TypeError('Bad promise constructor'); - if (ES.IsPromise(v) && v.constructor === C) return v; - var capability = new PromiseCapability(C); - return (0, capability.resolve)(v), capability.promise; - } - }), - defineProperties(Promise$prototype, { - catch: function(onRejected) { - return this.then(null, onRejected); - }, - then: function then(onFulfilled, onRejected) { - if (!ES.IsPromise(this)) throw new TypeError('not a promise'); - var resultCapability, - C = ES.SpeciesConstructor(this, Promise); - resultCapability = - arguments.length > 2 && - arguments[2] === PROMISE_FAKE_CAPABILITY && - C === Promise - ? PROMISE_FAKE_CAPABILITY - : new PromiseCapability(C); - var value, - fulfillReactionHandler = ES.IsCallable(onFulfilled) - ? onFulfilled - : PROMISE_IDENTITY, - rejectReactionHandler = ES.IsCallable(onRejected) - ? onRejected - : PROMISE_THROWER, - _promise = this._promise; - if (0 === _promise.state) { - if (0 === _promise.reactionLength) - (_promise.fulfillReactionHandler0 = fulfillReactionHandler), - (_promise.rejectReactionHandler0 = rejectReactionHandler), - (_promise.reactionCapability0 = resultCapability); - else { - var idx = 3 * (_promise.reactionLength - 1); - (_promise[idx + 0] = fulfillReactionHandler), - (_promise[idx + 1] = rejectReactionHandler), - (_promise[idx + 2] = resultCapability); - } - _promise.reactionLength += 1; - } else if (1 === _promise.state) - (value = _promise.result), - enqueuePromiseReactionJob( - fulfillReactionHandler, - resultCapability, - value - ); - else { - if (2 !== _promise.state) throw new TypeError('unexpected Promise state'); - (value = _promise.result), - enqueuePromiseReactionJob( - rejectReactionHandler, - resultCapability, - value - ); - } - return resultCapability.promise; - } - }), - (PROMISE_FAKE_CAPABILITY = new PromiseCapability(Promise)), - (Promise$prototype$then = Promise$prototype.then), - Promise - ); - } - })(); - if ( - (globals.Promise && - (delete globals.Promise.accept, - delete globals.Promise.defer, - delete globals.Promise.prototype.chain), - 'function' == typeof PromiseShim) - ) { - defineProperties(globals, { Promise: PromiseShim }); - var promiseSupportsSubclassing = supportsSubclassing(globals.Promise, function(S) { - return S.resolve(42).then(function() {}) instanceof S; - }), - promiseIgnoresNonFunctionThenCallbacks = !throwsError(function() { - globals.Promise.reject(42) - .then(null, 5) - .then(null, noop); - }), - promiseRequiresObjectContext = throwsError(function() { - globals.Promise.call(3, noop); - }), - promiseResolveBroken = (function(Promise) { - var p = Promise.resolve(5); - p.constructor = {}; - var p2 = Promise.resolve(p); - try { - p2.then(null, noop).then(null, noop); - } catch (e) { - return !0; - } - return p === p2; - })(globals.Promise), - getsThenSynchronously = - supportsDescriptors && - ((count = 0), - (thenable = Object.defineProperty({}, 'then', { - get: function() { - count += 1; - } - })), - Promise.resolve(thenable), - 1 === count), - BadResolverPromise = function BadResolverPromise(executor) { - var p = new Promise(executor); - executor(3, function() {}), - (this.then = p.then), - (this.constructor = BadResolverPromise); - }; - (BadResolverPromise.prototype = Promise.prototype), - (BadResolverPromise.all = Promise.all); - var hasBadResolverPromise = valueOrFalseIfThrows(function() { - return !!BadResolverPromise.all([1, 2]); - }); - if ( - ((promiseSupportsSubclassing && - promiseIgnoresNonFunctionThenCallbacks && - promiseRequiresObjectContext && - !promiseResolveBroken && - getsThenSynchronously && - !hasBadResolverPromise) || - ((Promise = PromiseShim), overrideNative(globals, 'Promise', PromiseShim)), - 1 !== Promise.all.length) - ) { - var origAll = Promise.all; - overrideNative(Promise, 'all', function all(iterable) { - return ES.Call(origAll, this, arguments); - }); - } - if (1 !== Promise.race.length) { - var origRace = Promise.race; - overrideNative(Promise, 'race', function race(iterable) { - return ES.Call(origRace, this, arguments); - }); - } - if (1 !== Promise.resolve.length) { - var origResolve = Promise.resolve; - overrideNative(Promise, 'resolve', function resolve(x) { - return ES.Call(origResolve, this, arguments); - }); - } - if (1 !== Promise.reject.length) { - var origReject = Promise.reject; - overrideNative(Promise, 'reject', function reject(r) { - return ES.Call(origReject, this, arguments); - }); - } - ensureEnumerable(Promise, 'all'), - ensureEnumerable(Promise, 'race'), - ensureEnumerable(Promise, 'resolve'), - ensureEnumerable(Promise, 'reject'), - addDefaultSpecies(Promise); - } - var s, - m, - testOrder = function(a) { - var b = keys( - _reduce( - a, - function(o, k) { - return (o[k] = !0), o; - }, - {} - ) - ); - return a.join(':') === b.join(':'); - }, - preservesInsertionOrder = testOrder(['z', 'a', 'bb']), - preservesNumericInsertionOrder = testOrder(['z', 1, 'a', '3', 2]); - if (supportsDescriptors) { - var fastkey = function fastkey(key, skipInsertionOrderCheck) { - return skipInsertionOrderCheck || preservesInsertionOrder - ? isNullOrUndefined(key) - ? '^' + ES.ToString(key) - : 'string' == typeof key - ? '$' + key - : 'number' == typeof key - ? preservesNumericInsertionOrder ? key : 'n' + key - : 'boolean' == typeof key ? 'b' + key : null - : null; - }, - emptyObject = function emptyObject() { - return Object.create ? Object.create(null) : {}; - }, - addIterableToMap = function addIterableToMap(MapConstructor, map, iterable) { - if (isArray(iterable) || Type_string(iterable)) - _forEach(iterable, function(entry) { - if (!ES.TypeIsObject(entry)) - throw new TypeError('Iterator value ' + entry + ' is not an entry object'); - map.set(entry[0], entry[1]); - }); - else if (iterable instanceof MapConstructor) - _call(MapConstructor.prototype.forEach, iterable, function(value, key) { - map.set(key, value); - }); - else { - var iter, adder; - if (!isNullOrUndefined(iterable)) { - if (((adder = map.set), !ES.IsCallable(adder))) - throw new TypeError('bad map'); - iter = ES.GetIterator(iterable); - } - if (void 0 !== iter) - for (;;) { - var next = ES.IteratorStep(iter); - if (!1 === next) break; - var nextItem = next.value; - try { - if (!ES.TypeIsObject(nextItem)) - throw new TypeError( - 'Iterator value ' + nextItem + ' is not an entry object' - ); - _call(adder, map, nextItem[0], nextItem[1]); - } catch (e) { - throw (ES.IteratorClose(iter, !0), e); - } - } - } - }, - addIterableToSet = function addIterableToSet(SetConstructor, set, iterable) { - if (isArray(iterable) || Type_string(iterable)) - _forEach(iterable, function(value) { - set.add(value); - }); - else if (iterable instanceof SetConstructor) - _call(SetConstructor.prototype.forEach, iterable, function(value) { - set.add(value); - }); - else { - var iter, adder; - if (!isNullOrUndefined(iterable)) { - if (((adder = set.add), !ES.IsCallable(adder))) - throw new TypeError('bad set'); - iter = ES.GetIterator(iterable); - } - if (void 0 !== iter) - for (;;) { - var next = ES.IteratorStep(iter); - if (!1 === next) break; - var nextValue = next.value; - try { - _call(adder, set, nextValue); - } catch (e) { - throw (ES.IteratorClose(iter, !0), e); - } - } - } - }, - collectionShims = { - Map: (function() { - var empty = {}, - MapEntry = function MapEntry(key, value) { - (this.key = key), - (this.value = value), - (this.next = null), - (this.prev = null); - }; - MapEntry.prototype.isRemoved = function isRemoved() { - return this.key === empty; - }; - var Map$prototype, - requireMapSlot = function requireMapSlot(map, method) { - if ( - !ES.TypeIsObject(map) || - !(function isMap(map) { - return !!map._es6map; - })(map) - ) - throw new TypeError( - 'Method Map.prototype.' + - method + - ' called on incompatible receiver ' + - ES.ToString(map) - ); - }, - MapIterator = function MapIterator(map, kind) { - requireMapSlot(map, '[[MapIterator]]'), - (this.head = map._head), - (this.i = this.head), - (this.kind = kind); - }; - addIterator( - (MapIterator.prototype = { - next: function next() { - var result, - i = this.i, - kind = this.kind, - head = this.head; - if (void 0 === this.i) return iteratorResult(); - for (; i.isRemoved() && i !== head; ) i = i.prev; - for (; i.next !== head; ) - if (!(i = i.next).isRemoved()) - return ( - (result = - 'key' === kind - ? i.key - : 'value' === kind ? i.value : [i.key, i.value]), - (this.i = i), - iteratorResult(result) - ); - return (this.i = void 0), iteratorResult(); - } - }) - ); - var MapShim = function Map() { - if (!(this instanceof Map)) - throw new TypeError('Constructor Map requires "new"'); - if (this && this._es6map) throw new TypeError('Bad construction'); - var map = emulateES6construct(this, Map, Map$prototype, { - _es6map: !0, - _head: null, - _map: OrigMap ? new OrigMap() : null, - _size: 0, - _storage: emptyObject() - }), - head = new MapEntry(null, null); - return ( - (head.next = head.prev = head), - (map._head = head), - arguments.length > 0 && addIterableToMap(Map, map, arguments[0]), - map - ); - }; - return ( - Value_getter((Map$prototype = MapShim.prototype), 'size', function() { - if (void 0 === this._size) - throw new TypeError('size method called on incompatible Map'); - return this._size; - }), - defineProperties(Map$prototype, { - get: function get(key) { - var entry; - requireMapSlot(this, 'get'); - var fkey = fastkey(key, !0); - if (null !== fkey) - return (entry = this._storage[fkey]) ? entry.value : void 0; - if (this._map) - return (entry = origMapGet.call(this._map, key)) ? entry.value : void 0; - for (var head = this._head, i = head; (i = i.next) !== head; ) - if (ES.SameValueZero(i.key, key)) return i.value; - }, - has: function has(key) { - requireMapSlot(this, 'has'); - var fkey = fastkey(key, !0); - if (null !== fkey) return void 0 !== this._storage[fkey]; - if (this._map) return origMapHas.call(this._map, key); - for (var head = this._head, i = head; (i = i.next) !== head; ) - if (ES.SameValueZero(i.key, key)) return !0; - return !1; - }, - set: function set(key, value) { - requireMapSlot(this, 'set'); - var entry, - head = this._head, - i = head, - fkey = fastkey(key, !0); - if (null !== fkey) { - if (void 0 !== this._storage[fkey]) - return (this._storage[fkey].value = value), this; - (entry = this._storage[fkey] = new MapEntry(key, value)), - (i = head.prev); - } else - this._map && - (origMapHas.call(this._map, key) - ? (origMapGet.call(this._map, key).value = value) - : ((entry = new MapEntry(key, value)), - origMapSet.call(this._map, key, entry), - (i = head.prev))); - for (; (i = i.next) !== head; ) - if (ES.SameValueZero(i.key, key)) return (i.value = value), this; - return ( - (entry = entry || new MapEntry(key, value)), - ES.SameValue(-0, key) && (entry.key = 0), - (entry.next = this._head), - (entry.prev = this._head.prev), - (entry.prev.next = entry), - (entry.next.prev = entry), - (this._size += 1), - this - ); - }, - delete: function(key) { - requireMapSlot(this, 'delete'); - var head = this._head, - i = head, - fkey = fastkey(key, !0); - if (null !== fkey) { - if (void 0 === this._storage[fkey]) return !1; - (i = this._storage[fkey].prev), delete this._storage[fkey]; - } else if (this._map) { - if (!origMapHas.call(this._map, key)) return !1; - (i = origMapGet.call(this._map, key).prev), - origMapDelete.call(this._map, key); - } - for (; (i = i.next) !== head; ) - if (ES.SameValueZero(i.key, key)) - return ( - (i.key = empty), - (i.value = empty), - (i.prev.next = i.next), - (i.next.prev = i.prev), - (this._size -= 1), - !0 - ); - return !1; - }, - clear: function clear() { - requireMapSlot(this, 'clear'), - (this._map = OrigMap ? new OrigMap() : null), - (this._size = 0), - (this._storage = emptyObject()); - for (var head = this._head, i = head, p = i.next; (i = p) !== head; ) - (i.key = empty), - (i.value = empty), - (p = i.next), - (i.next = i.prev = head); - head.next = head.prev = head; - }, - keys: function keys() { - return requireMapSlot(this, 'keys'), new MapIterator(this, 'key'); - }, - values: function values() { - return requireMapSlot(this, 'values'), new MapIterator(this, 'value'); - }, - entries: function entries() { - return ( - requireMapSlot(this, 'entries'), new MapIterator(this, 'key+value') - ); - }, - forEach: function forEach(callback) { - requireMapSlot(this, 'forEach'); - for ( - var context = arguments.length > 1 ? arguments[1] : null, - it = this.entries(), - entry = it.next(); - !entry.done; - entry = it.next() - ) - context - ? _call(callback, context, entry.value[1], entry.value[0], this) - : callback(entry.value[1], entry.value[0], this); - } - }), - addIterator(Map$prototype, Map$prototype.entries), - MapShim - ); - })(), - Set: (function() { - var Set$prototype, - requireSetSlot = function requireSetSlot(set, method) { - if ( - !ES.TypeIsObject(set) || - !(function isSet(set) { - return set._es6set && void 0 !== set._storage; - })(set) - ) - throw new TypeError( - 'Set.prototype.' + - method + - ' called on incompatible receiver ' + - ES.ToString(set) - ); - }, - SetShim = function Set() { - if (!(this instanceof Set)) - throw new TypeError('Constructor Set requires "new"'); - if (this && this._es6set) throw new TypeError('Bad construction'); - var set = emulateES6construct(this, Set, Set$prototype, { - _es6set: !0, - '[[SetData]]': null, - _storage: emptyObject() - }); - if (!set._es6set) throw new TypeError('bad set'); - return ( - arguments.length > 0 && addIterableToSet(Set, set, arguments[0]), set - ); - }; - Set$prototype = SetShim.prototype; - var ensureMap = function ensureMap(set) { - if (!set['[[SetData]]']) { - var m = new collectionShims.Map(); - (set['[[SetData]]'] = m), - _forEach(keys(set._storage), function(key) { - var k = (function(key) { - var k = key; - if ('^null' === k) return null; - if ('^undefined' !== k) { - var first = k.charAt(0); - return '$' === first - ? _strSlice(k, 1) - : 'n' === first - ? +_strSlice(k, 1) - : 'b' === first ? 'btrue' === k : +k; - } - })(key); - m.set(k, k); - }), - (set['[[SetData]]'] = m); - } - set._storage = null; - }; - return ( - Value_getter(SetShim.prototype, 'size', function() { - return ( - requireSetSlot(this, 'size'), - this._storage - ? keys(this._storage).length - : (ensureMap(this), this['[[SetData]]'].size) - ); - }), - defineProperties(SetShim.prototype, { - has: function has(key) { - var fkey; - return ( - requireSetSlot(this, 'has'), - this._storage && null !== (fkey = fastkey(key)) - ? !!this._storage[fkey] - : (ensureMap(this), this['[[SetData]]'].has(key)) - ); - }, - add: function add(key) { - var fkey; - return ( - requireSetSlot(this, 'add'), - this._storage && null !== (fkey = fastkey(key)) - ? ((this._storage[fkey] = !0), this) - : (ensureMap(this), this['[[SetData]]'].set(key, key), this) - ); - }, - delete: function(key) { - var fkey; - if ( - (requireSetSlot(this, 'delete'), - this._storage && null !== (fkey = fastkey(key))) - ) { - var hasFKey = _hasOwnProperty(this._storage, fkey); - return delete this._storage[fkey] && hasFKey; - } - return ensureMap(this), this['[[SetData]]'].delete(key); - }, - clear: function clear() { - requireSetSlot(this, 'clear'), - this._storage && (this._storage = emptyObject()), - this['[[SetData]]'] && this['[[SetData]]'].clear(); - }, - values: function values() { - return ( - requireSetSlot(this, 'values'), - ensureMap(this), - this['[[SetData]]'].values() - ); - }, - entries: function entries() { - return ( - requireSetSlot(this, 'entries'), - ensureMap(this), - this['[[SetData]]'].entries() - ); - }, - forEach: function forEach(callback) { - requireSetSlot(this, 'forEach'); - var context = arguments.length > 1 ? arguments[1] : null, - entireSet = this; - ensureMap(entireSet), - this['[[SetData]]'].forEach(function(value, key) { - context - ? _call(callback, context, key, key, entireSet) - : callback(key, key, entireSet); - }); - } - }), - defineProperty(SetShim.prototype, 'keys', SetShim.prototype.values, !0), - addIterator(SetShim.prototype, SetShim.prototype.values), - SetShim - ); - })() - }; - if (globals.Map || globals.Set) { - valueOrFalseIfThrows(function() { - return 2 === new Map([[1, 2]]).get(1); - }) || - ((globals.Map = function Map() { - if (!(this instanceof Map)) - throw new TypeError('Constructor Map requires "new"'); - var m = new OrigMap(); - return ( - arguments.length > 0 && addIterableToMap(Map, m, arguments[0]), - delete m.constructor, - Object.setPrototypeOf(m, globals.Map.prototype), - m - ); - }), - (globals.Map.prototype = create(OrigMap.prototype)), - defineProperty(globals.Map.prototype, 'constructor', globals.Map, !0), - Value_preserveToString(globals.Map, OrigMap)); - var testMap = new Map(), - mapUsesSameValueZero = ((m = new Map([[1, 0], [2, 0], [3, 0], [4, 0]])).set( - -0, - m - ), - m.get(0) === m && m.get(-0) === m && m.has(0) && m.has(-0)), - mapSupportsChaining = testMap.set(1, 2) === testMap; - (mapUsesSameValueZero && mapSupportsChaining) || - overrideNative(Map.prototype, 'set', function set(k, v) { - return _call(origMapSet, this, 0 === k ? 0 : k, v), this; - }), - mapUsesSameValueZero || - (defineProperties( - Map.prototype, - { - get: function get(k) { - return _call(origMapGet, this, 0 === k ? 0 : k); - }, - has: function has(k) { - return _call(origMapHas, this, 0 === k ? 0 : k); - } - }, - !0 - ), - Value_preserveToString(Map.prototype.get, origMapGet), - Value_preserveToString(Map.prototype.has, origMapHas)); - var testSet = new Set(), - setUsesSameValueZero = ((s = testSet).delete(0), s.add(-0), !s.has(0)), - setSupportsChaining = testSet.add(1) === testSet; - if (!setUsesSameValueZero || !setSupportsChaining) { - var origSetAdd = Set.prototype.add; - (Set.prototype.add = function add(v) { - return _call(origSetAdd, this, 0 === v ? 0 : v), this; - }), - Value_preserveToString(Set.prototype.add, origSetAdd); - } - if (!setUsesSameValueZero) { - var origSetHas = Set.prototype.has; - (Set.prototype.has = function has(v) { - return _call(origSetHas, this, 0 === v ? 0 : v); - }), - Value_preserveToString(Set.prototype.has, origSetHas); - var origSetDel = Set.prototype.delete; - (Set.prototype.delete = function SetDelete(v) { - return _call(origSetDel, this, 0 === v ? 0 : v); - }), - Value_preserveToString(Set.prototype.delete, origSetDel); - } - var mapSupportsSubclassing = supportsSubclassing(globals.Map, function(M) { - var m = new M([]); - return m.set(42, 42), m instanceof M; - }), - mapFailsToSupportSubclassing = Object.setPrototypeOf && !mapSupportsSubclassing, - mapRequiresNew = (function() { - try { - return !(globals.Map() instanceof globals.Map); - } catch (e) { - return e instanceof TypeError; - } - })(); - (0 === globals.Map.length && !mapFailsToSupportSubclassing && mapRequiresNew) || - ((globals.Map = function Map() { - if (!(this instanceof Map)) - throw new TypeError('Constructor Map requires "new"'); - var m = new OrigMap(); - return ( - arguments.length > 0 && addIterableToMap(Map, m, arguments[0]), - delete m.constructor, - Object.setPrototypeOf(m, Map.prototype), - m - ); - }), - (globals.Map.prototype = OrigMap.prototype), - defineProperty(globals.Map.prototype, 'constructor', globals.Map, !0), - Value_preserveToString(globals.Map, OrigMap)); - var setSupportsSubclassing = supportsSubclassing(globals.Set, function(S) { - var s = new S([]); - return s.add(42, 42), s instanceof S; - }), - setFailsToSupportSubclassing = Object.setPrototypeOf && !setSupportsSubclassing, - setRequiresNew = (function() { - try { - return !(globals.Set() instanceof globals.Set); - } catch (e) { - return e instanceof TypeError; - } - })(); - if (0 !== globals.Set.length || setFailsToSupportSubclassing || !setRequiresNew) { - var OrigSet = globals.Set; - (globals.Set = function Set() { - if (!(this instanceof Set)) - throw new TypeError('Constructor Set requires "new"'); - var s = new OrigSet(); - return ( - arguments.length > 0 && addIterableToSet(Set, s, arguments[0]), - delete s.constructor, - Object.setPrototypeOf(s, Set.prototype), - s - ); - }), - (globals.Set.prototype = OrigSet.prototype), - defineProperty(globals.Set.prototype, 'constructor', globals.Set, !0), - Value_preserveToString(globals.Set, OrigSet); - } - var newMap = new globals.Map(), - mapIterationThrowsStopIterator = !valueOrFalseIfThrows(function() { - return newMap.keys().next().done; - }); - if ( - (('function' != typeof globals.Map.prototype.clear || - 0 !== new globals.Set().size || - 0 !== newMap.size || - 'function' != typeof globals.Map.prototype.keys || - 'function' != typeof globals.Set.prototype.keys || - 'function' != typeof globals.Map.prototype.forEach || - 'function' != typeof globals.Set.prototype.forEach || - isCallableWithoutNew(globals.Map) || - isCallableWithoutNew(globals.Set) || - 'function' != typeof newMap.keys().next || - mapIterationThrowsStopIterator || - !mapSupportsSubclassing) && - defineProperties( - globals, - { Map: collectionShims.Map, Set: collectionShims.Set }, - !0 - ), - globals.Set.prototype.keys !== globals.Set.prototype.values && - defineProperty(globals.Set.prototype, 'keys', globals.Set.prototype.values, !0), - addIterator(Object.getPrototypeOf(new globals.Map().keys())), - addIterator(Object.getPrototypeOf(new globals.Set().keys())), - functionsHaveNames && 'has' !== globals.Set.prototype.has.name) - ) { - var anonymousSetHas = globals.Set.prototype.has; - overrideNative(globals.Set.prototype, 'has', function has(key) { - return _call(anonymousSetHas, this, key); - }); - } - } - defineProperties(globals, collectionShims), - addDefaultSpecies(globals.Map), - addDefaultSpecies(globals.Set); - } - var throwUnlessTargetIsObject = function throwUnlessTargetIsObject(target) { - if (!ES.TypeIsObject(target)) throw new TypeError('target must be an object'); - }, - ReflectShims = { - apply: function apply() { - return ES.Call(ES.Call, null, arguments); - }, - construct: function construct(constructor, args) { - if (!ES.IsConstructor(constructor)) - throw new TypeError('First argument must be a constructor.'); - var newTarget = arguments.length > 2 ? arguments[2] : constructor; - if (!ES.IsConstructor(newTarget)) - throw new TypeError('new.target must be a constructor.'); - return ES.Construct(constructor, args, newTarget, 'internal'); - }, - deleteProperty: function deleteProperty(target, key) { - if ((throwUnlessTargetIsObject(target), supportsDescriptors)) { - var desc = Object.getOwnPropertyDescriptor(target, key); - if (desc && !desc.configurable) return !1; - } - return delete target[key]; - }, - has: function has(target, key) { - return throwUnlessTargetIsObject(target), key in target; - } - }; - Object.getOwnPropertyNames && - Object.assign(ReflectShims, { - ownKeys: function ownKeys(target) { - throwUnlessTargetIsObject(target); - var keys = Object.getOwnPropertyNames(target); - return ( - ES.IsCallable(Object.getOwnPropertySymbols) && - _pushApply(keys, Object.getOwnPropertySymbols(target)), - keys - ); - } - }); - var callAndCatchException = function ConvertExceptionToBoolean(func) { - return !throwsError(func); - }; - if ( - (Object.preventExtensions && - Object.assign(ReflectShims, { - isExtensible: function isExtensible(target) { - return throwUnlessTargetIsObject(target), Object.isExtensible(target); - }, - preventExtensions: function preventExtensions(target) { - return ( - throwUnlessTargetIsObject(target), - callAndCatchException(function() { - Object.preventExtensions(target); - }) - ); - } - }), - supportsDescriptors) - ) { - var internalGet = function get(target, key, receiver) { - var desc = Object.getOwnPropertyDescriptor(target, key); - if (!desc) { - var parent = Object.getPrototypeOf(target); - if (null === parent) return; - return internalGet(parent, key, receiver); - } - return 'value' in desc - ? desc.value - : desc.get ? ES.Call(desc.get, receiver) : void 0; - }, - internalSet = function set(target, key, value, receiver) { - var desc = Object.getOwnPropertyDescriptor(target, key); - if (!desc) { - var parent = Object.getPrototypeOf(target); - if (null !== parent) return internalSet(parent, key, value, receiver); - desc = { value: void 0, writable: !0, enumerable: !0, configurable: !0 }; - } - return 'value' in desc - ? !!desc.writable && - (!!ES.TypeIsObject(receiver) && - (Object.getOwnPropertyDescriptor(receiver, key) - ? Reflect.defineProperty(receiver, key, { value: value }) - : Reflect.defineProperty(receiver, key, { - value: value, - writable: !0, - enumerable: !0, - configurable: !0 - }))) - : !!desc.set && (_call(desc.set, receiver, value), !0); - }; - Object.assign(ReflectShims, { - defineProperty: function defineProperty(target, propertyKey, attributes) { - return ( - throwUnlessTargetIsObject(target), - callAndCatchException(function() { - Object.defineProperty(target, propertyKey, attributes); - }) - ); - }, - getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) { - return ( - throwUnlessTargetIsObject(target), - Object.getOwnPropertyDescriptor(target, propertyKey) - ); - }, - get: function get(target, key) { - throwUnlessTargetIsObject(target); - var receiver = arguments.length > 2 ? arguments[2] : target; - return internalGet(target, key, receiver); - }, - set: function set(target, key, value) { - throwUnlessTargetIsObject(target); - var receiver = arguments.length > 3 ? arguments[3] : target; - return internalSet(target, key, value, receiver); - } - }); - } - if (Object.getPrototypeOf) { - var objectDotGetPrototypeOf = Object.getPrototypeOf; - ReflectShims.getPrototypeOf = function getPrototypeOf(target) { - return throwUnlessTargetIsObject(target), objectDotGetPrototypeOf(target); - }; - } - if (Object.setPrototypeOf && ReflectShims.getPrototypeOf) { - Object.assign(ReflectShims, { - setPrototypeOf: function setPrototypeOf(object, proto) { - if ( - (throwUnlessTargetIsObject(object), null !== proto && !ES.TypeIsObject(proto)) - ) - throw new TypeError('proto must be an object or null'); - return ( - proto === Reflect.getPrototypeOf(object) || - (!(Reflect.isExtensible && !Reflect.isExtensible(object)) && - (!(function(object, lastProto) { - for (var proto = lastProto; proto; ) { - if (object === proto) return !0; - proto = ReflectShims.getPrototypeOf(proto); - } - return !1; - })(object, proto) && - (Object.setPrototypeOf(object, proto), !0))) - ); - } - }); - } - Object.keys(ReflectShims).forEach(function(key) { - !(function(key, shim) { - ES.IsCallable(globals.Reflect[key]) - ? valueOrFalseIfThrows(function() { - return ( - globals.Reflect[key](1), - globals.Reflect[key](NaN), - globals.Reflect[key](!0), - !0 - ); - }) && overrideNative(globals.Reflect, key, shim) - : defineProperty(globals.Reflect, key, shim); - })(key, ReflectShims[key]); - }); - var originalReflectGetProto = globals.Reflect.getPrototypeOf; - if ( - (functionsHaveNames && - originalReflectGetProto && - 'getPrototypeOf' !== originalReflectGetProto.name && - overrideNative(globals.Reflect, 'getPrototypeOf', function getPrototypeOf(target) { - return _call(originalReflectGetProto, globals.Reflect, target); - }), - globals.Reflect.setPrototypeOf && - valueOrFalseIfThrows(function() { - return globals.Reflect.setPrototypeOf(1, {}), !0; - }) && - overrideNative(globals.Reflect, 'setPrototypeOf', ReflectShims.setPrototypeOf), - globals.Reflect.defineProperty && - (valueOrFalseIfThrows(function() { - var basic = !globals.Reflect.defineProperty(1, 'test', { value: 1 }), - extensible = - 'function' != typeof Object.preventExtensions || - !globals.Reflect.defineProperty(Object.preventExtensions({}), 'test', {}); - return basic && extensible; - }) || - overrideNative(globals.Reflect, 'defineProperty', ReflectShims.defineProperty)), - globals.Reflect.construct && - (valueOrFalseIfThrows(function() { - var F = function F() {}; - return globals.Reflect.construct(function() {}, [], F) instanceof F; - }) || - overrideNative(globals.Reflect, 'construct', ReflectShims.construct)), - 'Invalid Date' !== String(new Date(NaN))) - ) { - var dateToString = Date.prototype.toString; - overrideNative(Date.prototype, 'toString', function toString() { - var valueOf = +this; - return valueOf != valueOf ? 'Invalid Date' : ES.Call(dateToString, this); - }); - } - var stringHTMLshims = { - anchor: function anchor(name) { - return ES.CreateHTML(this, 'a', 'name', name); - }, - big: function big() { - return ES.CreateHTML(this, 'big', '', ''); - }, - blink: function blink() { - return ES.CreateHTML(this, 'blink', '', ''); - }, - bold: function bold() { - return ES.CreateHTML(this, 'b', '', ''); - }, - fixed: function fixed() { - return ES.CreateHTML(this, 'tt', '', ''); - }, - fontcolor: function fontcolor(color) { - return ES.CreateHTML(this, 'font', 'color', color); - }, - fontsize: function fontsize(size) { - return ES.CreateHTML(this, 'font', 'size', size); - }, - italics: function italics() { - return ES.CreateHTML(this, 'i', '', ''); - }, - link: function link(url) { - return ES.CreateHTML(this, 'a', 'href', url); - }, - small: function small() { - return ES.CreateHTML(this, 'small', '', ''); - }, - strike: function strike() { - return ES.CreateHTML(this, 'strike', '', ''); - }, - sub: function sub() { - return ES.CreateHTML(this, 'sub', '', ''); - }, - sup: function sub() { - return ES.CreateHTML(this, 'sup', '', ''); - } - }; - _forEach(Object.keys(stringHTMLshims), function(key) { - var method = String.prototype[key], - shouldOverwrite = !1; - if (ES.IsCallable(method)) { - var output = _call(method, '', ' " '), - quotesCount = _concat([], output.match(/"/g)).length; - shouldOverwrite = output !== output.toLowerCase() || quotesCount > 2; - } else shouldOverwrite = !0; - shouldOverwrite && overrideNative(String.prototype, key, stringHTMLshims[key]); - }); - var JSONstringifiesSymbols = (function() { - if (!hasSymbols) return !1; - var stringify = - 'object' == typeof JSON && 'function' == typeof JSON.stringify - ? JSON.stringify - : null; - if (!stringify) return !1; - if (void 0 !== stringify(Symbol())) return !0; - if ('[null]' !== stringify([Symbol()])) return !0; - var obj = { a: Symbol() }; - return (obj[Symbol()] = !0), '{}' !== stringify(obj); - })(), - JSONstringifyAcceptsObjectSymbol = valueOrFalseIfThrows(function() { - return ( - !hasSymbols || - ('{}' === JSON.stringify(Object(Symbol())) && - '[{}]' === JSON.stringify([Object(Symbol())])) - ); - }); - if (JSONstringifiesSymbols || !JSONstringifyAcceptsObjectSymbol) { - var origStringify = JSON.stringify; - overrideNative(JSON, 'stringify', function stringify(value) { - if ('symbol' != typeof value) { - var replacer; - arguments.length > 1 && (replacer = arguments[1]); - var args = [value]; - if (isArray(replacer)) args.push(replacer); - else { - var replaceFn = ES.IsCallable(replacer) ? replacer : null; - args.push(function(key, val) { - var parsedValue = replaceFn ? _call(replaceFn, this, key, val) : val; - if ('symbol' != typeof parsedValue) - return Type_symbol(parsedValue) ? assignTo({})(parsedValue) : parsedValue; - }); - } - return ( - arguments.length > 2 && args.push(arguments[2]), origStringify.apply(this, args) - ); - } - }); - } - return globals; - }) - ? __WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module) - : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); - }.call(exports, __webpack_require__(27), __webpack_require__(134))); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var supportsDescriptors = __webpack_require__(28).supportsDescriptors, - functionsHaveNames = __webpack_require__(201), - getPolyfill = __webpack_require__(341), - defineProperty = Object.defineProperty, - TypeErr = TypeError; - module.exports = function shimName() { - var polyfill = getPolyfill(); - if (functionsHaveNames) return polyfill; - if (!supportsDescriptors) - throw new TypeErr( - 'Shimming Function.prototype.name support requires ES5 property descriptor support.' - ); - var functionProto = Function.prototype; - return ( - defineProperty(functionProto, 'name', { - configurable: !0, - enumerable: !1, - get: function() { - var name = polyfill.call(this); - return ( - this !== functionProto && - defineProperty(this, 'name', { - configurable: !0, - enumerable: !1, - value: name, - writable: !1 - }), - name - ); - } - }), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var has = Object.prototype.hasOwnProperty, - toStr = Object.prototype.toString, - slice = Array.prototype.slice, - isArgs = __webpack_require__(339), - isEnumerable = Object.prototype.propertyIsEnumerable, - hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString'), - hasProtoEnumBug = isEnumerable.call(function() {}, 'prototype'), - dontEnums = [ - 'toString', - 'toLocaleString', - 'valueOf', - 'hasOwnProperty', - 'isPrototypeOf', - 'propertyIsEnumerable', - 'constructor' - ], - equalsConstructorPrototype = function(o) { - var ctor = o.constructor; - return ctor && ctor.prototype === o; - }, - excludedKeys = { - $console: !0, - $external: !0, - $frame: !0, - $frameElement: !0, - $frames: !0, - $innerHeight: !0, - $innerWidth: !0, - $outerHeight: !0, - $outerWidth: !0, - $pageXOffset: !0, - $pageYOffset: !0, - $parent: !0, - $scrollLeft: !0, - $scrollTop: !0, - $scrollX: !0, - $scrollY: !0, - $self: !0, - $webkitIndexedDB: !0, - $webkitStorageInfo: !0, - $window: !0 - }, - hasAutomationEqualityBug = (function() { - if ('undefined' == typeof window) return !1; - for (var k in window) - try { - if ( - !excludedKeys['$' + k] && - has.call(window, k) && - null !== window[k] && - 'object' == typeof window[k] - ) - try { - equalsConstructorPrototype(window[k]); - } catch (e) { - return !0; - } - } catch (e) { - return !0; - } - return !1; - })(), - keysShim = function keys(object) { - var isObject = null !== object && 'object' == typeof object, - isFunction = '[object Function]' === toStr.call(object), - isArguments = isArgs(object), - isString = isObject && '[object String]' === toStr.call(object), - theKeys = []; - if (!isObject && !isFunction && !isArguments) - throw new TypeError('Object.keys called on a non-object'); - var skipProto = hasProtoEnumBug && isFunction; - if (isString && object.length > 0 && !has.call(object, 0)) - for (var i = 0; i < object.length; ++i) theKeys.push(String(i)); - if (isArguments && object.length > 0) - for (var j = 0; j < object.length; ++j) theKeys.push(String(j)); - else - for (var name in object) - (skipProto && 'prototype' === name) || - !has.call(object, name) || - theKeys.push(String(name)); - if (hasDontEnumBug) - for ( - var skipConstructor = (function(o) { - if ('undefined' == typeof window || !hasAutomationEqualityBug) - return equalsConstructorPrototype(o); - try { - return equalsConstructorPrototype(o); - } catch (e) { - return !1; - } - })(object), - k = 0; - k < dontEnums.length; - ++k - ) - (skipConstructor && 'constructor' === dontEnums[k]) || - !has.call(object, dontEnums[k]) || - theKeys.push(dontEnums[k]); - return theKeys; - }; - (keysShim.shim = function shimObjectKeys() { - if (Object.keys) { - if ( - !(function() { - return 2 === (Object.keys(arguments) || '').length; - })(1, 2) - ) { - var originalKeys = Object.keys; - Object.keys = function keys(object) { - return isArgs(object) ? originalKeys(slice.call(object)) : originalKeys(object); - }; - } - } else Object.keys = keysShim; - return Object.keys || keysShim; - }), - (module.exports = keysShim); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var toStr = Object.prototype.toString; - module.exports = function isArguments(value) { - var str = toStr.call(value), - isArgs = '[object Arguments]' === str; - return ( - isArgs || - (isArgs = - '[object Array]' !== str && - null !== value && - 'object' == typeof value && - 'number' == typeof value.length && - value.length >= 0 && - '[object Function]' === toStr.call(value.callee)), - isArgs - ); - }; - }, - function(module, exports) { - var hasOwn = Object.prototype.hasOwnProperty, - toString = Object.prototype.toString; - module.exports = function forEach(obj, fn, ctx) { - if ('[object Function]' !== toString.call(fn)) - throw new TypeError('iterator must be a function'); - var l = obj.length; - if (l === +l) for (var i = 0; i < l; i++) fn.call(ctx, obj[i], i, obj); - else for (var k in obj) hasOwn.call(obj, k) && fn.call(ctx, obj[k], k, obj); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(342); - module.exports = function getPolyfill() { - return implementation; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var isCallable = __webpack_require__(92), - functionsHaveNames = __webpack_require__(201), - bind = __webpack_require__(39), - functionToString = bind.call(Function.call, Function.prototype.toString), - stringMatch = bind.call(Function.call, String.prototype.match), - classRegex = /^class /, - regex = /\s*function\s+([^(\s]*)\s*/, - functionProto = Function.prototype; - module.exports = function getName() { - if ( - !(function isClassConstructor(fn) { - if (isCallable(fn)) return !1; - if ('function' != typeof fn) return !1; - try { - return !!stringMatch(functionToString(fn), classRegex); - } catch (e) {} - return !1; - })(this) && - !isCallable(this) - ) - throw new TypeError('Function.prototype.name sham getter called on non-function'); - if (functionsHaveNames) return this.name; - if (this === functionProto) return ''; - var str = functionToString(this), - match = stringMatch(str, regex); - return match && match[1]; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var slice = Array.prototype.slice, - toStr = Object.prototype.toString; - module.exports = function bind(that) { - var target = this; - if ('function' != typeof target || '[object Function]' !== toStr.call(target)) - throw new TypeError('Function.prototype.bind called on incompatible ' + target); - for ( - var bound, - args = slice.call(arguments, 1), - boundLength = Math.max(0, target.length - args.length), - boundArgs = [], - i = 0; - i < boundLength; - i++ - ) - boundArgs.push('$' + i); - if ( - ((bound = Function( - 'binder', - 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }' - )(function() { - if (this instanceof bound) { - var result = target.apply(this, args.concat(slice.call(arguments))); - return Object(result) === result ? result : this; - } - return target.apply(that, args.concat(slice.call(arguments))); - })), - target.prototype) - ) { - var Empty = function Empty() {}; - (Empty.prototype = target.prototype), - (bound.prototype = new Empty()), - (Empty.prototype = null); - } - return bound; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(345)(), __webpack_require__(356); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var define = __webpack_require__(28), - getPolyfill = __webpack_require__(346); - module.exports = function shimArrayPrototypeIncludes() { - var polyfill = getPolyfill(); - return ( - define( - Array.prototype, - { includes: polyfill }, - { - includes: function() { - return Array.prototype.includes !== polyfill; - } - } - ), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(347); - module.exports = function getPolyfill() { - return Array.prototype.includes || implementation; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - (function(global) { - var ES = __webpack_require__(348), - $isNaN = - Number.isNaN || - function isNaN(a) { - return a != a; - }, - $isFinite = - Number.isFinite || - function isFinite(n) { - return 'number' == typeof n && global.isFinite(n); - }, - indexOf = Array.prototype.indexOf; - module.exports = function includes(searchElement) { - var fromIndex = arguments.length > 1 ? ES.ToInteger(arguments[1]) : 0; - if (indexOf && !$isNaN(searchElement) && $isFinite(fromIndex) && void 0 !== searchElement) - return indexOf.apply(this, arguments) > -1; - var O = ES.ToObject(this), - length = ES.ToLength(O.length); - if (0 === length) return !1; - for (var k = fromIndex >= 0 ? fromIndex : Math.max(0, length + fromIndex); k < length; ) { - if (ES.SameValueZero(searchElement, O[k])) return !0; - k += 1; - } - return !1; - }; - }.call(exports, __webpack_require__(27))); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = __webpack_require__(202); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var hasSymbols = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator, - isPrimitive = __webpack_require__(203), - isCallable = __webpack_require__(92), - isDate = __webpack_require__(350), - isSymbol = __webpack_require__(351); - module.exports = function ToPrimitive(input, PreferredType) { - if (isPrimitive(input)) return input; - var exoticToPrim, - hint = 'default'; - if ( - (arguments.length > 1 && - (PreferredType === String - ? (hint = 'string') - : PreferredType === Number && (hint = 'number')), - hasSymbols && - (Symbol.toPrimitive - ? (exoticToPrim = (function GetMethod(O, P) { - var func = O[P]; - if (null !== func && void 0 !== func) { - if (!isCallable(func)) - throw new TypeError( - func + - ' returned for property ' + - P + - ' of object ' + - O + - ' is not a function' - ); - return func; - } - })(input, Symbol.toPrimitive)) - : isSymbol(input) && (exoticToPrim = Symbol.prototype.valueOf)), - void 0 !== exoticToPrim) - ) { - var result = exoticToPrim.call(input, hint); - if (isPrimitive(result)) return result; - throw new TypeError('unable to convert exotic object to primitive'); - } - return ( - 'default' === hint && (isDate(input) || isSymbol(input)) && (hint = 'string'), - (function OrdinaryToPrimitive(O, hint) { - if (void 0 === O || null === O) throw new TypeError('Cannot call method on ' + O); - if ('string' != typeof hint || ('number' !== hint && 'string' !== hint)) - throw new TypeError('hint must be "string" or "number"'); - var method, - result, - i, - methodNames = 'string' === hint ? ['toString', 'valueOf'] : ['valueOf', 'toString']; - for (i = 0; i < methodNames.length; ++i) - if ( - ((method = O[methodNames[i]]), - isCallable(method) && ((result = method.call(O)), isPrimitive(result))) - ) - return result; - throw new TypeError('No default value'); - })(input, 'default' === hint ? 'number' : hint) - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var getDay = Date.prototype.getDay, - toStr = Object.prototype.toString, - hasToStringTag = 'function' == typeof Symbol && 'symbol' == typeof Symbol.toStringTag; - module.exports = function isDateObject(value) { - return ( - 'object' == typeof value && - null !== value && - (hasToStringTag - ? (function tryDateObject(value) { - try { - return getDay.call(value), !0; - } catch (e) { - return !1; - } - })(value) - : '[object Date]' === toStr.call(value)) - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var toStr = Object.prototype.toString; - if ('function' == typeof Symbol && 'symbol' == typeof Symbol()) { - var symToStr = Symbol.prototype.toString, - symStringRegex = /^Symbol\(.*\)$/; - module.exports = function isSymbol(value) { - if ('symbol' == typeof value) return !0; - if ('[object Symbol]' !== toStr.call(value)) return !1; - try { - return (function isSymbolObject(value) { - return 'symbol' == typeof value.valueOf() && symStringRegex.test(symToStr.call(value)); - })(value); - } catch (e) { - return !1; - } - }; - } else - module.exports = function isSymbol(value) { - return !1; - }; - }, - function(module, exports) { - module.exports = function isPrimitive(value) { - return null === value || ('function' != typeof value && 'object' != typeof value); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var $isNaN = __webpack_require__(204), - $isFinite = __webpack_require__(205), - sign = __webpack_require__(206), - mod = __webpack_require__(207), - IsCallable = __webpack_require__(92), - toPrimitive = __webpack_require__(354), - has = __webpack_require__(70), - ES5 = { - ToPrimitive: toPrimitive, - ToBoolean: function ToBoolean(value) { - return !!value; - }, - ToNumber: function ToNumber(value) { - return Number(value); - }, - ToInteger: function ToInteger(value) { - var number = this.ToNumber(value); - return $isNaN(number) - ? 0 - : 0 !== number && $isFinite(number) - ? sign(number) * Math.floor(Math.abs(number)) - : number; - }, - ToInt32: function ToInt32(x) { - return this.ToNumber(x) >> 0; - }, - ToUint32: function ToUint32(x) { - return this.ToNumber(x) >>> 0; - }, - ToUint16: function ToUint16(value) { - var number = this.ToNumber(value); - if ($isNaN(number) || 0 === number || !$isFinite(number)) return 0; - var posInt = sign(number) * Math.floor(Math.abs(number)); - return mod(posInt, 65536); - }, - ToString: function ToString(value) { - return String(value); - }, - ToObject: function ToObject(value) { - return this.CheckObjectCoercible(value), Object(value); - }, - CheckObjectCoercible: function CheckObjectCoercible(value, optMessage) { - if (null == value) throw new TypeError(optMessage || 'Cannot call method on ' + value); - return value; - }, - IsCallable: IsCallable, - SameValue: function SameValue(x, y) { - return x === y ? 0 !== x || 1 / x == 1 / y : $isNaN(x) && $isNaN(y); - }, - Type: function Type(x) { - return null === x - ? 'Null' - : void 0 === x - ? 'Undefined' - : 'function' == typeof x || 'object' == typeof x - ? 'Object' - : 'number' == typeof x - ? 'Number' - : 'boolean' == typeof x ? 'Boolean' : 'string' == typeof x ? 'String' : void 0; - }, - IsPropertyDescriptor: function IsPropertyDescriptor(Desc) { - if ('Object' !== this.Type(Desc)) return !1; - var allowed = { - '[[Configurable]]': !0, - '[[Enumerable]]': !0, - '[[Get]]': !0, - '[[Set]]': !0, - '[[Value]]': !0, - '[[Writable]]': !0 - }; - for (var key in Desc) if (has(Desc, key) && !allowed[key]) return !1; - var isData = has(Desc, '[[Value]]'), - IsAccessor = has(Desc, '[[Get]]') || has(Desc, '[[Set]]'); - if (isData && IsAccessor) - throw new TypeError( - 'Property Descriptors may not be both accessor and data descriptors' - ); - return !0; - }, - IsAccessorDescriptor: function IsAccessorDescriptor(Desc) { - if (void 0 === Desc) return !1; - if (!this.IsPropertyDescriptor(Desc)) - throw new TypeError('Desc must be a Property Descriptor'); - return !(!has(Desc, '[[Get]]') && !has(Desc, '[[Set]]')); - }, - IsDataDescriptor: function IsDataDescriptor(Desc) { - if (void 0 === Desc) return !1; - if (!this.IsPropertyDescriptor(Desc)) - throw new TypeError('Desc must be a Property Descriptor'); - return !(!has(Desc, '[[Value]]') && !has(Desc, '[[Writable]]')); - }, - IsGenericDescriptor: function IsGenericDescriptor(Desc) { - if (void 0 === Desc) return !1; - if (!this.IsPropertyDescriptor(Desc)) - throw new TypeError('Desc must be a Property Descriptor'); - return !this.IsAccessorDescriptor(Desc) && !this.IsDataDescriptor(Desc); - }, - FromPropertyDescriptor: function FromPropertyDescriptor(Desc) { - if (void 0 === Desc) return Desc; - if (!this.IsPropertyDescriptor(Desc)) - throw new TypeError('Desc must be a Property Descriptor'); - if (this.IsDataDescriptor(Desc)) - return { - value: Desc['[[Value]]'], - writable: !!Desc['[[Writable]]'], - enumerable: !!Desc['[[Enumerable]]'], - configurable: !!Desc['[[Configurable]]'] - }; - if (this.IsAccessorDescriptor(Desc)) - return { - get: Desc['[[Get]]'], - set: Desc['[[Set]]'], - enumerable: !!Desc['[[Enumerable]]'], - configurable: !!Desc['[[Configurable]]'] - }; - throw new TypeError( - 'FromPropertyDescriptor must be called with a fully populated Property Descriptor' - ); - }, - ToPropertyDescriptor: function ToPropertyDescriptor(Obj) { - if ('Object' !== this.Type(Obj)) - throw new TypeError('ToPropertyDescriptor requires an object'); - var desc = {}; - if ( - (has(Obj, 'enumerable') && (desc['[[Enumerable]]'] = this.ToBoolean(Obj.enumerable)), - has(Obj, 'configurable') && - (desc['[[Configurable]]'] = this.ToBoolean(Obj.configurable)), - has(Obj, 'value') && (desc['[[Value]]'] = Obj.value), - has(Obj, 'writable') && (desc['[[Writable]]'] = this.ToBoolean(Obj.writable)), - has(Obj, 'get')) - ) { - var getter = Obj.get; - if (void 0 !== getter && !this.IsCallable(getter)) - throw new TypeError('getter must be a function'); - desc['[[Get]]'] = getter; - } - if (has(Obj, 'set')) { - var setter = Obj.set; - if (void 0 !== setter && !this.IsCallable(setter)) - throw new TypeError('setter must be a function'); - desc['[[Set]]'] = setter; - } - if ( - (has(desc, '[[Get]]') || has(desc, '[[Set]]')) && - (has(desc, '[[Value]]') || has(desc, '[[Writable]]')) - ) - throw new TypeError( - 'Invalid property descriptor. Cannot both specify accessors and a value or writable attribute' - ); - return desc; - } - }; - module.exports = ES5; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var toStr = Object.prototype.toString, - isPrimitive = __webpack_require__(203), - isCallable = __webpack_require__(92), - ES_internalSlots__DefaultValue_ = function(O, hint) { - var actualHint = hint || ('[object Date]' === toStr.call(O) ? String : Number); - if (actualHint === String || actualHint === Number) { - var value, - i, - methods = actualHint === String ? ['toString', 'valueOf'] : ['valueOf', 'toString']; - for (i = 0; i < methods.length; ++i) - if (isCallable(O[methods[i]]) && ((value = O[methods[i]]()), isPrimitive(value))) - return value; - throw new TypeError('No default value'); - } - throw new TypeError('invalid [[DefaultValue]] hint supplied'); - }; - module.exports = function ToPrimitive(input, PreferredType) { - return isPrimitive(input) ? input : ES_internalSlots__DefaultValue_(input, PreferredType); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var has = __webpack_require__(70), - regexExec = RegExp.prototype.exec, - gOPD = Object.getOwnPropertyDescriptor, - toStr = Object.prototype.toString, - hasToStringTag = 'function' == typeof Symbol && 'symbol' == typeof Symbol.toStringTag; - module.exports = function isRegex(value) { - if (!value || 'object' != typeof value) return !1; - if (!hasToStringTag) return '[object RegExp]' === toStr.call(value); - var descriptor = gOPD(value, 'lastIndex'); - return ( - !(!descriptor || !has(descriptor, 'value')) && - (function tryRegexExec(value) { - try { - var lastIndex = value.lastIndex; - return (value.lastIndex = 0), regexExec.call(value), !0; - } catch (e) { - return !1; - } finally { - value.lastIndex = lastIndex; - } - })(value) - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(357)(), - __webpack_require__(360)(), - __webpack_require__(363)(), - __webpack_require__(366)(), - __webpack_require__(369)(), - __webpack_require__(372); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var getPolyfill = __webpack_require__(358), - define = __webpack_require__(28); - module.exports = function shimValues() { - var polyfill = getPolyfill(); - return ( - define( - Object, - { values: polyfill }, - { - values: function testValues() { - return Object.values !== polyfill; - } - } - ), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(359); - module.exports = function getPolyfill() { - return 'function' == typeof Object.values ? Object.values : implementation; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ES = __webpack_require__(55), - has = __webpack_require__(70), - isEnumerable = __webpack_require__(39).call( - Function.call, - Object.prototype.propertyIsEnumerable - ); - module.exports = function values(O) { - var obj = ES.RequireObjectCoercible(O), - vals = []; - for (var key in obj) has(obj, key) && isEnumerable(obj, key) && vals.push(obj[key]); - return vals; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var getPolyfill = __webpack_require__(361), - define = __webpack_require__(28); - module.exports = function shimEntries() { - var polyfill = getPolyfill(); - return ( - define( - Object, - { entries: polyfill }, - { - entries: function testEntries() { - return Object.entries !== polyfill; - } - } - ), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(362); - module.exports = function getPolyfill() { - return 'function' == typeof Object.entries ? Object.entries : implementation; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ES = __webpack_require__(55), - has = __webpack_require__(70), - isEnumerable = __webpack_require__(39).call( - Function.call, - Object.prototype.propertyIsEnumerable - ); - module.exports = function entries(O) { - var obj = ES.RequireObjectCoercible(O), - entrys = []; - for (var key in obj) has(obj, key) && isEnumerable(obj, key) && entrys.push([key, obj[key]]); - return entrys; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var getPolyfill = __webpack_require__(364), - define = __webpack_require__(28); - module.exports = function shimPadStart() { - var polyfill = getPolyfill(); - return ( - define( - String.prototype, - { padStart: polyfill }, - { - padStart: function() { - return String.prototype.padStart !== polyfill; - } - } - ), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(365); - module.exports = function getPolyfill() { - return 'function' == typeof String.prototype.padStart - ? String.prototype.padStart - : implementation; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var bind = __webpack_require__(39), - ES = __webpack_require__(55), - slice = bind.call(Function.call, String.prototype.slice); - module.exports = function padStart(maxLength) { - var fillString, - O = ES.RequireObjectCoercible(this), - S = ES.ToString(O), - stringLength = ES.ToLength(S.length); - arguments.length > 1 && (fillString = arguments[1]); - var filler = void 0 === fillString ? '' : ES.ToString(fillString); - '' === filler && (filler = ' '); - var intMaxLength = ES.ToLength(maxLength); - if (intMaxLength <= stringLength) return S; - for (var fillLen = intMaxLength - stringLength; filler.length < fillLen; ) { - var fLen = filler.length, - remainingCodeUnits = fillLen - fLen; - filler += fLen > remainingCodeUnits ? slice(filler, 0, remainingCodeUnits) : filler; - } - return (filler.length > fillLen ? slice(filler, 0, fillLen) : filler) + S; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var getPolyfill = __webpack_require__(367), - define = __webpack_require__(28); - module.exports = function shimPadEnd() { - var polyfill = getPolyfill(); - return ( - define( - String.prototype, - { padEnd: polyfill }, - { - padEnd: function() { - return String.prototype.padEnd !== polyfill; - } - } - ), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(368); - module.exports = function getPolyfill() { - return 'function' == typeof String.prototype.padEnd - ? String.prototype.padEnd - : implementation; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var bind = __webpack_require__(39), - ES = __webpack_require__(55), - slice = bind.call(Function.call, String.prototype.slice); - module.exports = function padEnd(maxLength) { - var fillString, - O = ES.RequireObjectCoercible(this), - S = ES.ToString(O), - stringLength = ES.ToLength(S.length); - arguments.length > 1 && (fillString = arguments[1]); - var filler = void 0 === fillString ? '' : ES.ToString(fillString); - '' === filler && (filler = ' '); - var intMaxLength = ES.ToLength(maxLength); - if (intMaxLength <= stringLength) return S; - for (var fillLen = intMaxLength - stringLength; filler.length < fillLen; ) { - var fLen = filler.length, - remainingCodeUnits = fillLen - fLen; - filler += fLen > remainingCodeUnits ? slice(filler, 0, remainingCodeUnits) : filler; - } - return S + (filler.length > fillLen ? slice(filler, 0, fillLen) : filler); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var getPolyfill = __webpack_require__(370), - define = __webpack_require__(28); - module.exports = function shimGetOwnPropertyDescriptors() { - var polyfill = getPolyfill(); - return ( - define( - Object, - { getOwnPropertyDescriptors: polyfill }, - { - getOwnPropertyDescriptors: function() { - return Object.getOwnPropertyDescriptors !== polyfill; - } - } - ), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(371); - module.exports = function getPolyfill() { - return 'function' == typeof Object.getOwnPropertyDescriptors - ? Object.getOwnPropertyDescriptors - : implementation; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ES = __webpack_require__(55), - defineProperty = Object.defineProperty, - getDescriptor = Object.getOwnPropertyDescriptor, - getOwnNames = Object.getOwnPropertyNames, - getSymbols = Object.getOwnPropertySymbols, - concat = Function.call.bind(Array.prototype.concat), - reduce = Function.call.bind(Array.prototype.reduce), - getAll = getSymbols - ? function(obj) { - return concat(getOwnNames(obj), getSymbols(obj)); - } - : getOwnNames, - isES5 = ES.IsCallable(getDescriptor) && ES.IsCallable(getOwnNames); - module.exports = function getOwnPropertyDescriptors(value) { - if ((ES.RequireObjectCoercible(value), !isES5)) - throw new TypeError('getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor'); - var O = ES.ToObject(value); - return reduce( - getAll(O), - function(acc, key) { - var descriptor = getDescriptor(O, key); - return ( - void 0 !== descriptor && - (function put(obj, prop, val) { - defineProperty && prop in obj - ? defineProperty(obj, prop, { - configurable: !0, - enumerable: !0, - value: val, - writable: !0 - }) - : (obj[prop] = val); - })(acc, key, descriptor), - acc - ); - }, - {} - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - 'function' == typeof Promise && __webpack_require__(373)(), - __webpack_require__(376)(), - __webpack_require__(379)(); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var requirePromise = __webpack_require__(136), - getPolyfill = __webpack_require__(374), - define = __webpack_require__(28); - module.exports = function shimPromiseFinally() { - requirePromise(); - var polyfill = getPolyfill(); - return ( - define( - Promise.prototype, - { finally: polyfill }, - { - finally: function testFinally() { - return Promise.prototype.finally !== polyfill; - } - } - ), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var requirePromise = __webpack_require__(136), - implementation = __webpack_require__(375); - module.exports = function getPolyfill() { - return ( - requirePromise(), - 'function' == typeof Promise.prototype.finally ? Promise.prototype.finally : implementation - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(136)(); - var ES = __webpack_require__(55), - bind = __webpack_require__(39), - promiseResolve = function PromiseResolve(C, value) { - return new C(function(resolve) { - resolve(value); - }); - }, - OriginalPromise = Promise, - then = bind.call(Function.call, OriginalPromise.prototype.then), - promiseFinally = function finally_(onFinally) { - then(this, null, function() {}); - var C = ES.SpeciesConstructor(this, OriginalPromise), - thenFinally = onFinally, - catchFinally = onFinally; - return ( - ES.IsCallable(onFinally) && - ((thenFinally = (function CreateThenFinally(C, onFinally) { - return function(value) { - var result = onFinally(); - return promiseResolve(C, result).then(function() { - return value; - }); - }; - })(C, onFinally)), - (catchFinally = (function CreateCatchFinally(C, onFinally) { - return function(reason) { - var result = onFinally(); - return promiseResolve(C, result).then(function() { - throw reason; - }); - }; - })(C, onFinally))), - this.then(thenFinally, catchFinally) - ); - }; - if (Object.getOwnPropertyDescriptor) { - var descriptor = Object.getOwnPropertyDescriptor(promiseFinally, 'name'); - descriptor && - descriptor.configurable && - Object.defineProperty(promiseFinally, 'name', { configurable: !0, value: 'finally' }); - } - module.exports = promiseFinally; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var define = __webpack_require__(28), - getPolyfill = __webpack_require__(377); - module.exports = function shimFlatten() { - var polyfill = getPolyfill(); - return ( - define( - Array.prototype, - { flatten: polyfill }, - { - flatten: function() { - return Array.prototype.flatten !== polyfill; - } - } - ), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(378); - module.exports = function getPolyfill() { - return Array.prototype.flatten || implementation; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ES = __webpack_require__(209), - MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1; - module.exports = function flatten() { - var O = ES.ToObject(this), - depthNum = 1; - arguments.length > 0 && void 0 !== arguments[0] && (depthNum = ES.ToInteger(arguments[0])); - var sourceLen = ES.ToLength(ES.Get(O, 'length')), - A = ES.ArraySpeciesCreate(O, 0), - nextIndex = (function FlattenIntoArray(target, original, source, sourceLen, start, depth) { - for (var targetIndex = start, sourceIndex = 0; sourceIndex < sourceLen; ) { - var P = ES.ToString(sourceIndex); - if (ES.HasProperty(source, P)) { - var element = ES.Get(source, P); - if (ES.IsArray(element) && depth > 0) - targetIndex = - FlattenIntoArray( - target, - original, - element, - ES.ToLength(ES.Get(element, 'length')), - targetIndex, - depth - 1 - ) - 1; - else { - if (targetIndex >= MAX_SAFE_INTEGER) throw new TypeError('index too large'); - ES.CreateDataPropertyOrThrow(target, ES.ToString(targetIndex), element); - } - targetIndex += 1; - } - sourceIndex += 1; - } - return targetIndex; - })(A, O, O, sourceLen, 0, depthNum); - return ES.Set(A, 'length', nextIndex, !0), A; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var define = __webpack_require__(28), - getPolyfill = __webpack_require__(380); - module.exports = function shimFlatMap() { - var polyfill = getPolyfill(); - return ( - define( - Array.prototype, - { flatMap: polyfill }, - { - flatMap: function() { - return Array.prototype.flatMap !== polyfill; - } - } - ), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(381); - module.exports = function getPolyfill() { - return Array.prototype.flatMap || implementation; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ES = __webpack_require__(209), - MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1; - module.exports = function flatMap(callbackfn) { - var T, - O = ES.ToObject(this); - if (!ES.IsCallable(callbackfn)) throw new TypeError('callback must be a function'); - arguments.length > 1 && (T = arguments[1]); - var sourceLen = ES.ToLength(ES.Get(O, 'length')), - A = ES.ArraySpeciesCreate(O, 0), - nextIndex = (function FlattenIntoArray(target, original, source, sourceLen, start, depth) { - var mapperFunction, - targetIndex = start, - sourceIndex = 0; - for (arguments.length > 6 && (mapperFunction = arguments[6]); sourceIndex < sourceLen; ) { - var P = ES.ToString(sourceIndex); - if (ES.HasProperty(source, P)) { - var element = ES.Get(source, P); - if (void 0 !== mapperFunction) { - if (arguments.length <= 7) - throw new TypeError( - 'Assertion failed: thisArg is required when mapperFunction is provided' - ); - element = ES.Call(mapperFunction, arguments[7], [element, sourceIndex, original]); - } - if (ES.IsArray(element) && depth > 0) - targetIndex = - FlattenIntoArray( - target, - original, - element, - ES.ToLength(ES.Get(element, 'length')), - targetIndex, - depth - 1 - ) - 1; - else { - if (targetIndex >= MAX_SAFE_INTEGER) throw new TypeError('index too large'); - ES.CreateDataPropertyOrThrow(target, ES.ToString(targetIndex), element); - } - targetIndex += 1; - } - sourceIndex += 1; - } - return targetIndex; - })(A, O, O, sourceLen, 0, 1, callbackfn, T); - return ES.Set(A, 'length', nextIndex, !0), A; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var lowPriorityWarning = function() {}; - module.exports = lowPriorityWarning; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var PooledClass = __webpack_require__(384), - ReactElement = __webpack_require__(57), - emptyFunction = __webpack_require__(22), - traverseAllChildren = __webpack_require__(385), - twoArgumentPooler = PooledClass.twoArgumentPooler, - fourArgumentPooler = PooledClass.fourArgumentPooler, - userProvidedKeyEscapeRegex = /\/+/g; - function escapeUserProvidedKey(text) { - return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/'); - } - function ForEachBookKeeping(forEachFunction, forEachContext) { - (this.func = forEachFunction), (this.context = forEachContext), (this.count = 0); - } - function forEachSingleChild(bookKeeping, child, name) { - var func = bookKeeping.func, - context = bookKeeping.context; - func.call(context, child, bookKeeping.count++); - } - function MapBookKeeping(mapResult, keyPrefix, mapFunction, mapContext) { - (this.result = mapResult), - (this.keyPrefix = keyPrefix), - (this.func = mapFunction), - (this.context = mapContext), - (this.count = 0); - } - function mapSingleChildIntoContext(bookKeeping, child, childKey) { - var result = bookKeeping.result, - keyPrefix = bookKeeping.keyPrefix, - func = bookKeeping.func, - context = bookKeeping.context, - mappedChild = func.call(context, child, bookKeeping.count++); - Array.isArray(mappedChild) - ? mapIntoWithKeyPrefixInternal( - mappedChild, - result, - childKey, - emptyFunction.thatReturnsArgument - ) - : null != mappedChild && - (ReactElement.isValidElement(mappedChild) && - (mappedChild = ReactElement.cloneAndReplaceKey( - mappedChild, - keyPrefix + - (!mappedChild.key || (child && child.key === mappedChild.key) - ? '' - : escapeUserProvidedKey(mappedChild.key) + '/') + - childKey - )), - result.push(mappedChild)); - } - function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) { - var escapedPrefix = ''; - null != prefix && (escapedPrefix = escapeUserProvidedKey(prefix) + '/'); - var traverseContext = MapBookKeeping.getPooled(array, escapedPrefix, func, context); - traverseAllChildren(children, mapSingleChildIntoContext, traverseContext), - MapBookKeeping.release(traverseContext); - } - function forEachSingleChildDummy(traverseContext, child, name) { - return null; - } - (ForEachBookKeeping.prototype.destructor = function() { - (this.func = null), (this.context = null), (this.count = 0); - }), - PooledClass.addPoolingTo(ForEachBookKeeping, twoArgumentPooler), - (MapBookKeeping.prototype.destructor = function() { - (this.result = null), - (this.keyPrefix = null), - (this.func = null), - (this.context = null), - (this.count = 0); - }), - PooledClass.addPoolingTo(MapBookKeeping, fourArgumentPooler); - var ReactChildren = { - forEach: function forEachChildren(children, forEachFunc, forEachContext) { - if (null == children) return children; - var traverseContext = ForEachBookKeeping.getPooled(forEachFunc, forEachContext); - traverseAllChildren(children, forEachSingleChild, traverseContext), - ForEachBookKeeping.release(traverseContext); - }, - map: function mapChildren(children, func, context) { - if (null == children) return children; - var result = []; - return mapIntoWithKeyPrefixInternal(children, result, null, func, context), result; - }, - mapIntoWithKeyPrefixInternal: mapIntoWithKeyPrefixInternal, - count: function countChildren(children, context) { - return traverseAllChildren(children, forEachSingleChildDummy, null); - }, - toArray: function toArray(children) { - var result = []; - return ( - mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument), - result - ); - } - }; - module.exports = ReactChildren; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(71), - oneArgumentPooler = (__webpack_require__(3), - function(copyFieldsFrom) { - if (this.instancePool.length) { - var instance = this.instancePool.pop(); - return this.call(instance, copyFieldsFrom), instance; - } - return new this(copyFieldsFrom); - }), - standardReleaser = function(instance) { - instance instanceof this || _prodInvariant('25'), - instance.destructor(), - this.instancePool.length < this.poolSize && this.instancePool.push(instance); - }, - DEFAULT_POOLER = oneArgumentPooler, - PooledClass = { - addPoolingTo: function(CopyConstructor, pooler) { - var NewKlass = CopyConstructor; - return ( - (NewKlass.instancePool = []), - (NewKlass.getPooled = pooler || DEFAULT_POOLER), - NewKlass.poolSize || (NewKlass.poolSize = 10), - (NewKlass.release = standardReleaser), - NewKlass - ); - }, - oneArgumentPooler: oneArgumentPooler, - twoArgumentPooler: function(a1, a2) { - if (this.instancePool.length) { - var instance = this.instancePool.pop(); - return this.call(instance, a1, a2), instance; - } - return new this(a1, a2); - }, - threeArgumentPooler: function(a1, a2, a3) { - if (this.instancePool.length) { - var instance = this.instancePool.pop(); - return this.call(instance, a1, a2, a3), instance; - } - return new this(a1, a2, a3); - }, - fourArgumentPooler: function(a1, a2, a3, a4) { - if (this.instancePool.length) { - var instance = this.instancePool.pop(); - return this.call(instance, a1, a2, a3, a4), instance; - } - return new this(a1, a2, a3, a4); - } - }; - module.exports = PooledClass; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(71), - REACT_ELEMENT_TYPE = (__webpack_require__(32), __webpack_require__(213)), - getIteratorFn = __webpack_require__(386), - KeyEscapeUtils = (__webpack_require__(3), __webpack_require__(387)), - SEPARATOR = (__webpack_require__(6), '.'), - SUBSEPARATOR = ':'; - function getComponentKey(component, index) { - return component && 'object' == typeof component && null != component.key - ? KeyEscapeUtils.escape(component.key) - : index.toString(36); - } - module.exports = function traverseAllChildren(children, callback, traverseContext) { - return null == children - ? 0 - : (function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) { - var child, - type = typeof children; - if ( - (('undefined' !== type && 'boolean' !== type) || (children = null), - null === children || - 'string' === type || - 'number' === type || - ('object' === type && children.$$typeof === REACT_ELEMENT_TYPE)) - ) - return ( - callback( - traverseContext, - children, - '' === nameSoFar ? SEPARATOR + getComponentKey(children, 0) : nameSoFar - ), - 1 - ); - var subtreeCount = 0, - nextNamePrefix = '' === nameSoFar ? SEPARATOR : nameSoFar + SUBSEPARATOR; - if (Array.isArray(children)) - for (var i = 0; i < children.length; i++) - subtreeCount += traverseAllChildrenImpl( - (child = children[i]), - nextNamePrefix + getComponentKey(child, i), - callback, - traverseContext - ); - else { - var iteratorFn = getIteratorFn(children); - if (iteratorFn) { - var step, - iterator = iteratorFn.call(children); - if (iteratorFn !== children.entries) - for (var ii = 0; !(step = iterator.next()).done; ) - subtreeCount += traverseAllChildrenImpl( - (child = step.value), - nextNamePrefix + getComponentKey(child, ii++), - callback, - traverseContext - ); - else - for (; !(step = iterator.next()).done; ) { - var entry = step.value; - entry && - (subtreeCount += traverseAllChildrenImpl( - (child = entry[1]), - nextNamePrefix + - KeyEscapeUtils.escape(entry[0]) + - SUBSEPARATOR + - getComponentKey(child, 0), - callback, - traverseContext - )); - } - } else if ('object' === type) { - var addendum = '', - childrenString = String(children); - _prodInvariant( - '31', - '[object Object]' === childrenString - ? 'object with keys {' + Object.keys(children).join(', ') + '}' - : childrenString, - addendum - ); - } - } - return subtreeCount; - })(children, '', callback, traverseContext); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ITERATOR_SYMBOL = 'function' == typeof Symbol && Symbol.iterator, - FAUX_ITERATOR_SYMBOL = '@@iterator'; - module.exports = function getIteratorFn(maybeIterable) { - var iteratorFn = - maybeIterable && - ((ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL]) || - maybeIterable[FAUX_ITERATOR_SYMBOL]); - if ('function' == typeof iteratorFn) return iteratorFn; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var KeyEscapeUtils = { - escape: function escape(key) { - var escaperLookup = { '=': '=0', ':': '=2' }; - return ( - '$' + - ('' + key).replace(/[=:]/g, function(match) { - return escaperLookup[match]; - }) - ); - }, - unescape: function unescape(key) { - var unescaperLookup = { '=0': '=', '=2': ':' }; - return ( - '' + ('.' === key[0] && '$' === key[1] ? key.substring(2) : key.substring(1)) - ).replace(/(=0|=2)/g, function(match) { - return unescaperLookup[match]; - }); - } - }; - module.exports = KeyEscapeUtils; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var createDOMFactory = __webpack_require__(57).createFactory, - ReactDOMFactories = { - a: createDOMFactory('a'), - abbr: createDOMFactory('abbr'), - address: createDOMFactory('address'), - area: createDOMFactory('area'), - article: createDOMFactory('article'), - aside: createDOMFactory('aside'), - audio: createDOMFactory('audio'), - b: createDOMFactory('b'), - base: createDOMFactory('base'), - bdi: createDOMFactory('bdi'), - bdo: createDOMFactory('bdo'), - big: createDOMFactory('big'), - blockquote: createDOMFactory('blockquote'), - body: createDOMFactory('body'), - br: createDOMFactory('br'), - button: createDOMFactory('button'), - canvas: createDOMFactory('canvas'), - caption: createDOMFactory('caption'), - cite: createDOMFactory('cite'), - code: createDOMFactory('code'), - col: createDOMFactory('col'), - colgroup: createDOMFactory('colgroup'), - data: createDOMFactory('data'), - datalist: createDOMFactory('datalist'), - dd: createDOMFactory('dd'), - del: createDOMFactory('del'), - details: createDOMFactory('details'), - dfn: createDOMFactory('dfn'), - dialog: createDOMFactory('dialog'), - div: createDOMFactory('div'), - dl: createDOMFactory('dl'), - dt: createDOMFactory('dt'), - em: createDOMFactory('em'), - embed: createDOMFactory('embed'), - fieldset: createDOMFactory('fieldset'), - figcaption: createDOMFactory('figcaption'), - figure: createDOMFactory('figure'), - footer: createDOMFactory('footer'), - form: createDOMFactory('form'), - h1: createDOMFactory('h1'), - h2: createDOMFactory('h2'), - h3: createDOMFactory('h3'), - h4: createDOMFactory('h4'), - h5: createDOMFactory('h5'), - h6: createDOMFactory('h6'), - head: createDOMFactory('head'), - header: createDOMFactory('header'), - hgroup: createDOMFactory('hgroup'), - hr: createDOMFactory('hr'), - html: createDOMFactory('html'), - i: createDOMFactory('i'), - iframe: createDOMFactory('iframe'), - img: createDOMFactory('img'), - input: createDOMFactory('input'), - ins: createDOMFactory('ins'), - kbd: createDOMFactory('kbd'), - keygen: createDOMFactory('keygen'), - label: createDOMFactory('label'), - legend: createDOMFactory('legend'), - li: createDOMFactory('li'), - link: createDOMFactory('link'), - main: createDOMFactory('main'), - map: createDOMFactory('map'), - mark: createDOMFactory('mark'), - menu: createDOMFactory('menu'), - menuitem: createDOMFactory('menuitem'), - meta: createDOMFactory('meta'), - meter: createDOMFactory('meter'), - nav: createDOMFactory('nav'), - noscript: createDOMFactory('noscript'), - object: createDOMFactory('object'), - ol: createDOMFactory('ol'), - optgroup: createDOMFactory('optgroup'), - option: createDOMFactory('option'), - output: createDOMFactory('output'), - p: createDOMFactory('p'), - param: createDOMFactory('param'), - picture: createDOMFactory('picture'), - pre: createDOMFactory('pre'), - progress: createDOMFactory('progress'), - q: createDOMFactory('q'), - rp: createDOMFactory('rp'), - rt: createDOMFactory('rt'), - ruby: createDOMFactory('ruby'), - s: createDOMFactory('s'), - samp: createDOMFactory('samp'), - script: createDOMFactory('script'), - section: createDOMFactory('section'), - select: createDOMFactory('select'), - small: createDOMFactory('small'), - source: createDOMFactory('source'), - span: createDOMFactory('span'), - strong: createDOMFactory('strong'), - style: createDOMFactory('style'), - sub: createDOMFactory('sub'), - summary: createDOMFactory('summary'), - sup: createDOMFactory('sup'), - table: createDOMFactory('table'), - tbody: createDOMFactory('tbody'), - td: createDOMFactory('td'), - textarea: createDOMFactory('textarea'), - tfoot: createDOMFactory('tfoot'), - th: createDOMFactory('th'), - thead: createDOMFactory('thead'), - time: createDOMFactory('time'), - title: createDOMFactory('title'), - tr: createDOMFactory('tr'), - track: createDOMFactory('track'), - u: createDOMFactory('u'), - ul: createDOMFactory('ul'), - var: createDOMFactory('var'), - video: createDOMFactory('video'), - wbr: createDOMFactory('wbr'), - circle: createDOMFactory('circle'), - clipPath: createDOMFactory('clipPath'), - defs: createDOMFactory('defs'), - ellipse: createDOMFactory('ellipse'), - g: createDOMFactory('g'), - image: createDOMFactory('image'), - line: createDOMFactory('line'), - linearGradient: createDOMFactory('linearGradient'), - mask: createDOMFactory('mask'), - path: createDOMFactory('path'), - pattern: createDOMFactory('pattern'), - polygon: createDOMFactory('polygon'), - polyline: createDOMFactory('polyline'), - radialGradient: createDOMFactory('radialGradient'), - rect: createDOMFactory('rect'), - stop: createDOMFactory('stop'), - svg: createDOMFactory('svg'), - text: createDOMFactory('text'), - tspan: createDOMFactory('tspan') - }; - module.exports = ReactDOMFactories; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var isValidElement = __webpack_require__(57).isValidElement, - factory = __webpack_require__(214); - module.exports = factory(isValidElement); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var emptyFunction = __webpack_require__(22), - invariant = __webpack_require__(3), - warning = __webpack_require__(6), - assign = __webpack_require__(9), - ReactPropTypesSecret = __webpack_require__(215), - checkPropTypes = __webpack_require__(391); - module.exports = function(isValidElement, throwOnDirectAccess) { - var ITERATOR_SYMBOL = 'function' == typeof Symbol && Symbol.iterator, - FAUX_ITERATOR_SYMBOL = '@@iterator'; - var ANONYMOUS = '<>', - ReactPropTypes = { - array: createPrimitiveTypeChecker('array'), - bool: createPrimitiveTypeChecker('boolean'), - func: createPrimitiveTypeChecker('function'), - number: createPrimitiveTypeChecker('number'), - object: createPrimitiveTypeChecker('object'), - string: createPrimitiveTypeChecker('string'), - symbol: createPrimitiveTypeChecker('symbol'), - any: (function createAnyTypeChecker() { - return createChainableTypeChecker(emptyFunction.thatReturnsNull); - })(), - arrayOf: function createArrayOfTypeChecker(typeChecker) { - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName - ) { - if ('function' != typeof typeChecker) - return new PropTypeError( - 'Property `' + - propFullName + - '` of component `' + - componentName + - '` has invalid PropType notation inside arrayOf.' - ); - var propValue = props[propName]; - if (!Array.isArray(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` of type `' + - propType + - '` supplied to `' + - componentName + - '`, expected an array.' - ); - } - for (var i = 0; i < propValue.length; i++) { - var error = typeChecker( - propValue, - i, - componentName, - location, - propFullName + '[' + i + ']', - ReactPropTypesSecret - ); - if (error instanceof Error) return error; - } - return null; - }); - }, - element: (function createElementTypeChecker() { - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName - ) { - var propValue = props[propName]; - if (!isValidElement(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` of type `' + - propType + - '` supplied to `' + - componentName + - '`, expected a single ReactElement.' - ); - } - return null; - }); - })(), - instanceOf: function createInstanceTypeChecker(expectedClass) { - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName - ) { - if (!(props[propName] instanceof expectedClass)) { - var expectedClassName = expectedClass.name || ANONYMOUS, - actualClassName = (function getClassName(propValue) { - if (!propValue.constructor || !propValue.constructor.name) return ANONYMOUS; - return propValue.constructor.name; - })(props[propName]); - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` of type `' + - actualClassName + - '` supplied to `' + - componentName + - '`, expected instance of `' + - expectedClassName + - '`.' - ); - } - return null; - }); - }, - node: (function createNodeChecker() { - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName - ) { - if (!isNode(props[propName])) - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` supplied to `' + - componentName + - '`, expected a ReactNode.' - ); - return null; - }); - })(), - objectOf: function createObjectOfTypeChecker(typeChecker) { - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName - ) { - if ('function' != typeof typeChecker) - return new PropTypeError( - 'Property `' + - propFullName + - '` of component `' + - componentName + - '` has invalid PropType notation inside objectOf.' - ); - var propValue = props[propName], - propType = getPropType(propValue); - if ('object' !== propType) - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` of type `' + - propType + - '` supplied to `' + - componentName + - '`, expected an object.' - ); - for (var key in propValue) - if (propValue.hasOwnProperty(key)) { - var error = typeChecker( - propValue, - key, - componentName, - location, - propFullName + '.' + key, - ReactPropTypesSecret - ); - if (error instanceof Error) return error; - } - return null; - }); - }, - oneOf: function createEnumTypeChecker(expectedValues) { - if (!Array.isArray(expectedValues)) return emptyFunction.thatReturnsNull; - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName - ) { - for (var propValue = props[propName], i = 0; i < expectedValues.length; i++) - if (is(propValue, expectedValues[i])) return null; - var valuesString = JSON.stringify(expectedValues); - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` of value `' + - propValue + - '` supplied to `' + - componentName + - '`, expected one of ' + - valuesString + - '.' - ); - }); - }, - oneOfType: function createUnionTypeChecker(arrayOfTypeCheckers) { - if (!Array.isArray(arrayOfTypeCheckers)) return emptyFunction.thatReturnsNull; - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { - var checker = arrayOfTypeCheckers[i]; - if ('function' != typeof checker) - return ( - warning( - !1, - 'Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.', - getPostfixForTypeWarning(checker), - i - ), - emptyFunction.thatReturnsNull - ); - } - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName - ) { - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { - var checker = arrayOfTypeCheckers[i]; - if ( - null == - checker( - props, - propName, - componentName, - location, - propFullName, - ReactPropTypesSecret - ) - ) - return null; - } - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` supplied to `' + - componentName + - '`.' - ); - }); - }, - shape: function createShapeTypeChecker(shapeTypes) { - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName - ) { - var propValue = props[propName], - propType = getPropType(propValue); - if ('object' !== propType) - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` of type `' + - propType + - '` supplied to `' + - componentName + - '`, expected `object`.' - ); - for (var key in shapeTypes) { - var checker = shapeTypes[key]; - if (checker) { - var error = checker( - propValue, - key, - componentName, - location, - propFullName + '.' + key, - ReactPropTypesSecret - ); - if (error) return error; - } - } - return null; - }); - }, - exact: function createStrictShapeTypeChecker(shapeTypes) { - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName - ) { - var propValue = props[propName], - propType = getPropType(propValue); - if ('object' !== propType) - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` of type `' + - propType + - '` supplied to `' + - componentName + - '`, expected `object`.' - ); - var allKeys = assign({}, props[propName], shapeTypes); - for (var key in allKeys) { - var checker = shapeTypes[key]; - if (!checker) - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` key `' + - key + - '` supplied to `' + - componentName + - '`.\nBad object: ' + - JSON.stringify(props[propName], null, ' ') + - '\nValid keys: ' + - JSON.stringify(Object.keys(shapeTypes), null, ' ') - ); - var error = checker( - propValue, - key, - componentName, - location, - propFullName + '.' + key, - ReactPropTypesSecret - ); - if (error) return error; - } - return null; - }); - } - }; - function is(x, y) { - return x === y ? 0 !== x || 1 / x == 1 / y : x != x && y != y; - } - function PropTypeError(message) { - (this.message = message), (this.stack = ''); - } - function createChainableTypeChecker(validate) { - function checkType( - isRequired, - props, - propName, - componentName, - location, - propFullName, - secret - ) { - ((componentName = componentName || ANONYMOUS), - (propFullName = propFullName || propName), - secret !== ReactPropTypesSecret) && - (throwOnDirectAccess && - invariant( - !1, - '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' - )); - return null == props[propName] - ? isRequired - ? null === props[propName] - ? new PropTypeError( - 'The ' + - location + - ' `' + - propFullName + - '` is marked as required in `' + - componentName + - '`, but its value is `null`.' - ) - : new PropTypeError( - 'The ' + - location + - ' `' + - propFullName + - '` is marked as required in `' + - componentName + - '`, but its value is `undefined`.' - ) - : null - : validate(props, propName, componentName, location, propFullName); - } - var chainedCheckType = checkType.bind(null, !1); - return (chainedCheckType.isRequired = checkType.bind(null, !0)), chainedCheckType; - } - function createPrimitiveTypeChecker(expectedType) { - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName, - secret - ) { - var propValue = props[propName]; - return getPropType(propValue) !== expectedType - ? new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` of type `' + - getPreciseType(propValue) + - '` supplied to `' + - componentName + - '`, expected `' + - expectedType + - '`.' - ) - : null; - }); - } - function isNode(propValue) { - switch (typeof propValue) { - case 'number': - case 'string': - case 'undefined': - return !0; - case 'boolean': - return !propValue; - case 'object': - if (Array.isArray(propValue)) return propValue.every(isNode); - if (null === propValue || isValidElement(propValue)) return !0; - var iteratorFn = (function getIteratorFn(maybeIterable) { - var iteratorFn = - maybeIterable && - ((ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL]) || - maybeIterable[FAUX_ITERATOR_SYMBOL]); - if ('function' == typeof iteratorFn) return iteratorFn; - })(propValue); - if (!iteratorFn) return !1; - var step, - iterator = iteratorFn.call(propValue); - if (iteratorFn !== propValue.entries) { - for (; !(step = iterator.next()).done; ) if (!isNode(step.value)) return !1; - } else - for (; !(step = iterator.next()).done; ) { - var entry = step.value; - if (entry && !isNode(entry[1])) return !1; - } - return !0; - default: - return !1; - } - } - function getPropType(propValue) { - var propType = typeof propValue; - return Array.isArray(propValue) - ? 'array' - : propValue instanceof RegExp - ? 'object' - : (function isSymbol(propType, propValue) { - return ( - 'symbol' === propType || - 'Symbol' === propValue['@@toStringTag'] || - ('function' == typeof Symbol && propValue instanceof Symbol) - ); - })(propType, propValue) - ? 'symbol' - : propType; - } - function getPreciseType(propValue) { - if (void 0 === propValue || null === propValue) return '' + propValue; - var propType = getPropType(propValue); - if ('object' === propType) { - if (propValue instanceof Date) return 'date'; - if (propValue instanceof RegExp) return 'regexp'; - } - return propType; - } - function getPostfixForTypeWarning(value) { - var type = getPreciseType(value); - switch (type) { - case 'array': - case 'object': - return 'an ' + type; - case 'boolean': - case 'date': - case 'regexp': - return 'a ' + type; - default: - return type; - } - } - return ( - (PropTypeError.prototype = Error.prototype), - (ReactPropTypes.checkPropTypes = checkPropTypes), - (ReactPropTypes.PropTypes = ReactPropTypes), - ReactPropTypes - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function checkPropTypes( - typeSpecs, - values, - location, - componentName, - getStack - ) {}; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = '15.6.2'; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var Component = __webpack_require__(210).Component, - isValidElement = __webpack_require__(57).isValidElement, - ReactNoopUpdateQueue = __webpack_require__(211), - factory = __webpack_require__(274); - module.exports = factory(Component, isValidElement, ReactNoopUpdateQueue); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(71), - ReactElement = __webpack_require__(57); - __webpack_require__(3); - module.exports = function onlyChild(children) { - return ReactElement.isValidElement(children) || _prodInvariant('143'), children; - }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(396), (module.exports = __webpack_require__(10).Object.keys); - }, - function(module, exports, __webpack_require__) { - var toObject = __webpack_require__(58), - $keys = __webpack_require__(72); - __webpack_require__(114)('keys', function() { - return function keys(it) { - return $keys(toObject(it)); - }; - }); - }, - function(module, exports, __webpack_require__) { - var toIObject = __webpack_require__(46), - toLength = __webpack_require__(94), - toAbsoluteIndex = __webpack_require__(398); - module.exports = function(IS_INCLUDES) { - return function($this, el, fromIndex) { - var value, - O = toIObject($this), - length = toLength(O.length), - index = toAbsoluteIndex(fromIndex, length); - if (IS_INCLUDES && el != el) { - for (; length > index; ) if ((value = O[index++]) != value) return !0; - } else - for (; length > index; index++) - if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; - return !IS_INCLUDES && -1; - }; - }; - }, - function(module, exports, __webpack_require__) { - var toInteger = __webpack_require__(139), - max = Math.max, - min = Math.min; - module.exports = function(index, length) { - return (index = toInteger(index)) < 0 ? max(index + length, 0) : min(index, length); - }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(400); - var $Object = __webpack_require__(10).Object; - module.exports = function defineProperty(it, key, desc) { - return $Object.defineProperty(it, key, desc); - }; - }, - function(module, exports, __webpack_require__) { - var $export = __webpack_require__(16); - $export($export.S + $export.F * !__webpack_require__(29), 'Object', { - defineProperty: __webpack_require__(26).f - }); - }, - , - function(module, exports, __webpack_require__) { - __webpack_require__(403), (module.exports = __webpack_require__(10).Object.assign); - }, - function(module, exports, __webpack_require__) { - var $export = __webpack_require__(16); - $export($export.S + $export.F, 'Object', { assign: __webpack_require__(218) }); - }, - function(module, exports) { - function shim(obj) { - var keys = []; - for (var key in obj) keys.push(key); - return keys; - } - (module.exports = 'function' == typeof Object.keys ? Object.keys : shim).shim = shim; - }, - function(module, exports) { - var supportsArgumentsClass = - '[object Arguments]' == - (function() { - return Object.prototype.toString.call(arguments); - })(); - function supported(object) { - return '[object Arguments]' == Object.prototype.toString.call(object); - } - function unsupported(object) { - return ( - (object && - 'object' == typeof object && - 'number' == typeof object.length && - Object.prototype.hasOwnProperty.call(object, 'callee') && - !Object.prototype.propertyIsEnumerable.call(object, 'callee')) || - !1 - ); - } - ((exports = module.exports = supportsArgumentsClass - ? supported - : unsupported).supported = supported), - (exports.unsupported = unsupported); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(407), (module.exports = __webpack_require__(10).Object.getPrototypeOf); - }, - function(module, exports, __webpack_require__) { - var toObject = __webpack_require__(58), - $getPrototypeOf = __webpack_require__(219); - __webpack_require__(114)('getPrototypeOf', function() { - return function getPrototypeOf(it) { - return $getPrototypeOf(toObject(it)); - }; - }); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(63), - __webpack_require__(64), - (module.exports = __webpack_require__(148).f('iterator')); - }, - function(module, exports, __webpack_require__) { - var toInteger = __webpack_require__(139), - defined = __webpack_require__(137); - module.exports = function(TO_STRING) { - return function(that, pos) { - var a, - b, - s = String(defined(that)), - i = toInteger(pos), - l = s.length; - return i < 0 || i >= l - ? TO_STRING ? '' : void 0 - : (a = s.charCodeAt(i)) < 55296 || - a > 56319 || - i + 1 === l || - (b = s.charCodeAt(i + 1)) < 56320 || - b > 57343 - ? TO_STRING ? s.charAt(i) : a - : TO_STRING ? s.slice(i, i + 2) : b - 56320 + ((a - 55296) << 10) + 65536; - }; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var create = __webpack_require__(116), - descriptor = __webpack_require__(75), - setToStringTag = __webpack_require__(76), - IteratorPrototype = {}; - __webpack_require__(42)(IteratorPrototype, __webpack_require__(18)('iterator'), function() { - return this; - }), - (module.exports = function(Constructor, NAME, next) { - (Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) })), - setToStringTag(Constructor, NAME + ' Iterator'); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var addToUnscopables = __webpack_require__(412), - step = __webpack_require__(277), - Iterators = __webpack_require__(59), - toIObject = __webpack_require__(46); - (module.exports = __webpack_require__(184)( - Array, - 'Array', - function(iterated, kind) { - (this._t = toIObject(iterated)), (this._i = 0), (this._k = kind); - }, - function() { - var O = this._t, - kind = this._k, - index = this._i++; - return !O || index >= O.length - ? ((this._t = void 0), step(1)) - : step(0, 'keys' == kind ? index : 'values' == kind ? O[index] : [index, O[index]]); - }, - 'values' - )), - (Iterators.Arguments = Iterators.Array), - addToUnscopables('keys'), - addToUnscopables('values'), - addToUnscopables('entries'); - }, - function(module, exports) { - module.exports = function() {}; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(414), - __webpack_require__(117), - __webpack_require__(417), - __webpack_require__(418), - (module.exports = __webpack_require__(10).Symbol); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var global = __webpack_require__(17), - has = __webpack_require__(41), - DESCRIPTORS = __webpack_require__(29), - $export = __webpack_require__(16), - redefine = __webpack_require__(147), - META = __webpack_require__(77).KEY, - $fails = __webpack_require__(43), - shared = __webpack_require__(141), - setToStringTag = __webpack_require__(76), - uid = __webpack_require__(95), - wks = __webpack_require__(18), - wksExt = __webpack_require__(148), - wksDefine = __webpack_require__(149), - enumKeys = __webpack_require__(415), - isArray = __webpack_require__(221), - anObject = __webpack_require__(24), - isObject = __webpack_require__(20), - toIObject = __webpack_require__(46), - toPrimitive = __webpack_require__(144), - createDesc = __webpack_require__(75), - _create = __webpack_require__(116), - gOPNExt = __webpack_require__(416), - $GOPD = __webpack_require__(150), - $DP = __webpack_require__(26), - $keys = __webpack_require__(72), - gOPD = $GOPD.f, - dP = $DP.f, - gOPN = gOPNExt.f, - $Symbol = global.Symbol, - $JSON = global.JSON, - _stringify = $JSON && $JSON.stringify, - HIDDEN = wks('_hidden'), - TO_PRIMITIVE = wks('toPrimitive'), - isEnum = {}.propertyIsEnumerable, - SymbolRegistry = shared('symbol-registry'), - AllSymbols = shared('symbols'), - OPSymbols = shared('op-symbols'), - ObjectProto = Object.prototype, - USE_NATIVE = 'function' == typeof $Symbol, - QObject = global.QObject, - setter = !QObject || !QObject.prototype || !QObject.prototype.findChild, - setSymbolDesc = - DESCRIPTORS && - $fails(function() { - return ( - 7 != - _create( - dP({}, 'a', { - get: function() { - return dP(this, 'a', { value: 7 }).a; - } - }) - ).a - ); - }) - ? function(it, key, D) { - var protoDesc = gOPD(ObjectProto, key); - protoDesc && delete ObjectProto[key], - dP(it, key, D), - protoDesc && it !== ObjectProto && dP(ObjectProto, key, protoDesc); - } - : dP, - wrap = function(tag) { - var sym = (AllSymbols[tag] = _create($Symbol.prototype)); - return (sym._k = tag), sym; - }, - isSymbol = - USE_NATIVE && 'symbol' == typeof $Symbol.iterator - ? function(it) { - return 'symbol' == typeof it; - } - : function(it) { - return it instanceof $Symbol; - }, - $defineProperty = function defineProperty(it, key, D) { - return ( - it === ObjectProto && $defineProperty(OPSymbols, key, D), - anObject(it), - (key = toPrimitive(key, !0)), - anObject(D), - has(AllSymbols, key) - ? (D.enumerable - ? (has(it, HIDDEN) && it[HIDDEN][key] && (it[HIDDEN][key] = !1), - (D = _create(D, { enumerable: createDesc(0, !1) }))) - : (has(it, HIDDEN) || dP(it, HIDDEN, createDesc(1, {})), (it[HIDDEN][key] = !0)), - setSymbolDesc(it, key, D)) - : dP(it, key, D) - ); - }, - $defineProperties = function defineProperties(it, P) { - anObject(it); - for (var key, keys = enumKeys((P = toIObject(P))), i = 0, l = keys.length; l > i; ) - $defineProperty(it, (key = keys[i++]), P[key]); - return it; - }, - $propertyIsEnumerable = function propertyIsEnumerable(key) { - var E = isEnum.call(this, (key = toPrimitive(key, !0))); - return ( - !(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) && - (!( - E || - !has(this, key) || - !has(AllSymbols, key) || - (has(this, HIDDEN) && this[HIDDEN][key]) - ) || - E) - ); - }, - $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { - if ( - ((it = toIObject(it)), - (key = toPrimitive(key, !0)), - it !== ObjectProto || !has(AllSymbols, key) || has(OPSymbols, key)) - ) { - var D = gOPD(it, key); - return ( - !D || - !has(AllSymbols, key) || - (has(it, HIDDEN) && it[HIDDEN][key]) || - (D.enumerable = !0), - D - ); - } - }, - $getOwnPropertyNames = function getOwnPropertyNames(it) { - for (var key, names = gOPN(toIObject(it)), result = [], i = 0; names.length > i; ) - has(AllSymbols, (key = names[i++])) || key == HIDDEN || key == META || result.push(key); - return result; - }, - $getOwnPropertySymbols = function getOwnPropertySymbols(it) { - for ( - var key, - IS_OP = it === ObjectProto, - names = gOPN(IS_OP ? OPSymbols : toIObject(it)), - result = [], - i = 0; - names.length > i; - - ) - !has(AllSymbols, (key = names[i++])) || - (IS_OP && !has(ObjectProto, key)) || - result.push(AllSymbols[key]); - return result; - }; - USE_NATIVE || - (redefine( - ($Symbol = function Symbol() { - if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); - var tag = uid(arguments.length > 0 ? arguments[0] : void 0), - $set = function(value) { - this === ObjectProto && $set.call(OPSymbols, value), - has(this, HIDDEN) && has(this[HIDDEN], tag) && (this[HIDDEN][tag] = !1), - setSymbolDesc(this, tag, createDesc(1, value)); - }; - return ( - DESCRIPTORS && - setter && - setSymbolDesc(ObjectProto, tag, { configurable: !0, set: $set }), - wrap(tag) - ); - }).prototype, - 'toString', - function toString() { - return this._k; - } - ), - ($GOPD.f = $getOwnPropertyDescriptor), - ($DP.f = $defineProperty), - (__webpack_require__(222).f = gOPNExt.f = $getOwnPropertyNames), - (__webpack_require__(96).f = $propertyIsEnumerable), - (__webpack_require__(145).f = $getOwnPropertySymbols), - DESCRIPTORS && - !__webpack_require__(97) && - redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, !0), - (wksExt.f = function(name) { - return wrap(wks(name)); - })), - $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); - for ( - var es6Symbols = 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'.split( - ',' - ), - j = 0; - es6Symbols.length > j; - - ) - wks(es6Symbols[j++]); - for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k; ) - wksDefine(wellKnownSymbols[k++]); - $export($export.S + $export.F * !USE_NATIVE, 'Symbol', { - for: function(key) { - return has(SymbolRegistry, (key += '')) - ? SymbolRegistry[key] - : (SymbolRegistry[key] = $Symbol(key)); - }, - keyFor: function keyFor(sym) { - if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); - for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; - }, - useSetter: function() { - setter = !0; - }, - useSimple: function() { - setter = !1; - } - }), - $export($export.S + $export.F * !USE_NATIVE, 'Object', { - create: function create(it, P) { - return void 0 === P ? _create(it) : $defineProperties(_create(it), P); - }, - defineProperty: $defineProperty, - defineProperties: $defineProperties, - getOwnPropertyDescriptor: $getOwnPropertyDescriptor, - getOwnPropertyNames: $getOwnPropertyNames, - getOwnPropertySymbols: $getOwnPropertySymbols - }), - $JSON && - $export( - $export.S + - $export.F * - (!USE_NATIVE || - $fails(function() { - var S = $Symbol(); - return ( - '[null]' != _stringify([S]) || - '{}' != _stringify({ a: S }) || - '{}' != _stringify(Object(S)) - ); - })), - 'JSON', - { - stringify: function stringify(it) { - for (var replacer, $replacer, args = [it], i = 1; arguments.length > i; ) - args.push(arguments[i++]); - if ( - (($replacer = replacer = args[1]), - (isObject(replacer) || void 0 !== it) && !isSymbol(it)) - ) - return ( - isArray(replacer) || - (replacer = function(key, value) { - if ( - ('function' == typeof $replacer && - (value = $replacer.call(this, key, value)), - !isSymbol(value)) - ) - return value; - }), - (args[1] = replacer), - _stringify.apply($JSON, args) - ); - } - } - ), - $Symbol.prototype[TO_PRIMITIVE] || - __webpack_require__(42)($Symbol.prototype, TO_PRIMITIVE, $Symbol.prototype.valueOf), - setToStringTag($Symbol, 'Symbol'), - setToStringTag(Math, 'Math', !0), - setToStringTag(global.JSON, 'JSON', !0); - }, - function(module, exports, __webpack_require__) { - var getKeys = __webpack_require__(72), - gOPS = __webpack_require__(145), - pIE = __webpack_require__(96); - module.exports = function(it) { - var result = getKeys(it), - getSymbols = gOPS.f; - if (getSymbols) - for (var key, symbols = getSymbols(it), isEnum = pIE.f, i = 0; symbols.length > i; ) - isEnum.call(it, (key = symbols[i++])) && result.push(key); - return result; - }; - }, - function(module, exports, __webpack_require__) { - var toIObject = __webpack_require__(46), - gOPN = __webpack_require__(222).f, - toString = {}.toString, - windowNames = - 'object' == typeof window && window && Object.getOwnPropertyNames - ? Object.getOwnPropertyNames(window) - : []; - module.exports.f = function getOwnPropertyNames(it) { - return windowNames && '[object Window]' == toString.call(it) - ? (function(it) { - try { - return gOPN(it); - } catch (e) { - return windowNames.slice(); - } - })(it) - : gOPN(toIObject(it)); - }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(149)('asyncIterator'); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(149)('observable'); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(420), (module.exports = __webpack_require__(10).Object.setPrototypeOf); - }, - function(module, exports, __webpack_require__) { - var $export = __webpack_require__(16); - $export($export.S, 'Object', { setPrototypeOf: __webpack_require__(421).set }); - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(20), - anObject = __webpack_require__(24), - check = function(O, proto) { - if ((anObject(O), !isObject(proto) && null !== proto)) - throw TypeError(proto + ": can't set as prototype!"); - }; - module.exports = { - set: - Object.setPrototypeOf || - ('__proto__' in {} - ? (function(test, buggy, set) { - try { - (set = __webpack_require__(35)( - Function.call, - __webpack_require__(150).f(Object.prototype, '__proto__').set, - 2 - ))(test, []), - (buggy = !(test instanceof Array)); - } catch (e) { - buggy = !0; - } - return function setPrototypeOf(O, proto) { - return check(O, proto), buggy ? (O.__proto__ = proto) : set(O, proto), O; - }; - })({}, !1) - : void 0), - check: check - }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(423); - var $Object = __webpack_require__(10).Object; - module.exports = function create(P, D) { - return $Object.create(P, D); - }; - }, - function(module, exports, __webpack_require__) { - var $export = __webpack_require__(16); - $export($export.S, 'Object', { create: __webpack_require__(116) }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var emptyFunction = __webpack_require__(22), - invariant = __webpack_require__(3), - ReactPropTypesSecret = __webpack_require__(215); - module.exports = function() { - function shim(props, propName, componentName, location, propFullName, secret) { - secret !== ReactPropTypesSecret && - invariant( - !1, - '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' - ); - } - function getShim() { - return shim; - } - shim.isRequired = shim; - var ReactPropTypes = { - array: shim, - bool: shim, - func: shim, - number: shim, - object: shim, - string: shim, - symbol: shim, - any: shim, - arrayOf: getShim, - element: shim, - instanceOf: getShim, - node: shim, - objectOf: getShim, - oneOf: getShim, - oneOfType: getShim, - shape: getShim, - exact: getShim - }; - return ( - (ReactPropTypes.checkPropTypes = emptyFunction), - (ReactPropTypes.PropTypes = ReactPropTypes), - ReactPropTypes - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var ADDON_ID = (exports.ADDON_ID = 'storybooks/storybook-addon-options'); - exports.EVENT_ID = ADDON_ID + '/options-event'; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.PostmsgTransport = exports.KEY = void 0); - var _promise2 = _interopRequireDefault(__webpack_require__(223)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)); - exports.default = function createChannel(_ref) { - var page = _ref.page, - transport = new PostmsgTransport({ page: page }); - return new _channels2.default({ transport: transport }); - }; - var _global = __webpack_require__(50), - _channels2 = _interopRequireDefault(__webpack_require__(433)), - _jsonStringifySafe2 = _interopRequireDefault(__webpack_require__(437)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var KEY = (exports.KEY = 'storybook-channel'), - PostmsgTransport = (exports.PostmsgTransport = (function() { - function PostmsgTransport(config) { - var _this = this; - if ( - ((0, _classCallCheck3.default)(this, PostmsgTransport), - (this._config = config), - (this._buffer = []), - (this._handler = null), - _global.window.addEventListener('message', this._handleEvent.bind(this), !1), - _global.document.addEventListener('DOMContentLoaded', function() { - return _this._flush(); - }), - 'manager' !== config.page && 'preview' !== config.page) - ) - throw new Error('postmsg-channel: "config.page" cannot be "' + config.page + '"'); - } - return ( - (0, _createClass3.default)(PostmsgTransport, [ - { - key: 'setHandler', - value: function setHandler(handler) { - this._handler = handler; - } - }, - { - key: 'send', - value: function send(event) { - var _this2 = this, - iframeWindow = this._getWindow(); - if (!iframeWindow) - return new _promise2.default(function(resolve, reject) { - _this2._buffer.push({ event: event, resolve: resolve, reject: reject }); - }); - var data = (0, _jsonStringifySafe2.default)({ key: KEY, event: event }); - return iframeWindow.postMessage(data, '*'), _promise2.default.resolve(null); - } - }, - { - key: '_flush', - value: function _flush() { - var _this3 = this, - buffer = this._buffer; - (this._buffer = []), - buffer.forEach(function(item) { - _this3 - .send(item.event) - .then(item.resolve) - .catch(item.reject); - }); - } - }, - { - key: '_getWindow', - value: function _getWindow() { - if ('manager' === this._config.page) { - var iframe = _global.document.getElementById('storybook-preview-iframe'); - return iframe ? iframe.contentWindow : null; - } - return _global.window.parent; - } - }, - { - key: '_handleEvent', - value: function _handleEvent(rawEvent) { - try { - var data = rawEvent.data, - _JSON$parse = JSON.parse(data), - key = _JSON$parse.key, - event = _JSON$parse.event; - key === KEY && this._handler(event); - } catch (error) {} - } - } - ]), - PostmsgTransport - ); - })()); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(117), - __webpack_require__(63), - __webpack_require__(64), - __webpack_require__(428), - __webpack_require__(431), - __webpack_require__(432), - (module.exports = __webpack_require__(10).Promise); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var Internal, - newGenericPromiseCapability, - OwnPromiseCapability, - Wrapper, - LIBRARY = __webpack_require__(97), - global = __webpack_require__(17), - ctx = __webpack_require__(35), - classof = __webpack_require__(119), - $export = __webpack_require__(16), - isObject = __webpack_require__(20), - aFunction = __webpack_require__(74), - anInstance = __webpack_require__(120), - forOf = __webpack_require__(78), - speciesConstructor = __webpack_require__(226), - task = __webpack_require__(227).set, - microtask = __webpack_require__(430)(), - newPromiseCapabilityModule = __webpack_require__(152), - perform = __webpack_require__(228), - promiseResolve = __webpack_require__(229), - TypeError = global.TypeError, - process = global.process, - $Promise = global.Promise, - isNode = 'process' == classof(process), - empty = function() {}, - newPromiseCapability = (newGenericPromiseCapability = newPromiseCapabilityModule.f), - USE_NATIVE = !!(function() { - try { - var promise = $Promise.resolve(1), - FakePromise = ((promise.constructor = {})[ - __webpack_require__(18)('species') - ] = function(exec) { - exec(empty, empty); - }); - return ( - (isNode || 'function' == typeof PromiseRejectionEvent) && - promise.then(empty) instanceof FakePromise - ); - } catch (e) {} - })(), - isThenable = function(it) { - var then; - return !(!isObject(it) || 'function' != typeof (then = it.then)) && then; - }, - notify = function(promise, isReject) { - if (!promise._n) { - promise._n = !0; - var chain = promise._c; - microtask(function() { - for ( - var value = promise._v, - ok = 1 == promise._s, - i = 0, - run = function(reaction) { - var result, - then, - handler = ok ? reaction.ok : reaction.fail, - resolve = reaction.resolve, - reject = reaction.reject, - domain = reaction.domain; - try { - handler - ? (ok || (2 == promise._h && onHandleUnhandled(promise), (promise._h = 1)), - !0 === handler - ? (result = value) - : (domain && domain.enter(), - (result = handler(value)), - domain && domain.exit()), - result === reaction.promise - ? reject(TypeError('Promise-chain cycle')) - : (then = isThenable(result)) - ? then.call(result, resolve, reject) - : resolve(result)) - : reject(value); - } catch (e) { - reject(e); - } - }; - chain.length > i; - - ) - run(chain[i++]); - (promise._c = []), (promise._n = !1), isReject && !promise._h && onUnhandled(promise); - }); - } - }, - onUnhandled = function(promise) { - task.call(global, function() { - var result, - handler, - console, - value = promise._v, - unhandled = isUnhandled(promise); - if ( - (unhandled && - ((result = perform(function() { - isNode - ? process.emit('unhandledRejection', value, promise) - : (handler = global.onunhandledrejection) - ? handler({ promise: promise, reason: value }) - : (console = global.console) && - console.error && - console.error('Unhandled promise rejection', value); - })), - (promise._h = isNode || isUnhandled(promise) ? 2 : 1)), - (promise._a = void 0), - unhandled && result.e) - ) - throw result.v; - }); - }, - isUnhandled = function(promise) { - return 1 !== promise._h && 0 === (promise._a || promise._c).length; - }, - onHandleUnhandled = function(promise) { - task.call(global, function() { - var handler; - isNode - ? process.emit('rejectionHandled', promise) - : (handler = global.onrejectionhandled) && - handler({ promise: promise, reason: promise._v }); - }); - }, - $reject = function(value) { - var promise = this; - promise._d || - ((promise._d = !0), - ((promise = promise._w || promise)._v = value), - (promise._s = 2), - promise._a || (promise._a = promise._c.slice()), - notify(promise, !0)); - }, - $resolve = function(value) { - var then, - promise = this; - if (!promise._d) { - (promise._d = !0), (promise = promise._w || promise); - try { - if (promise === value) throw TypeError("Promise can't be resolved itself"); - (then = isThenable(value)) - ? microtask(function() { - var wrapper = { _w: promise, _d: !1 }; - try { - then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1)); - } catch (e) { - $reject.call(wrapper, e); - } - }) - : ((promise._v = value), (promise._s = 1), notify(promise, !1)); - } catch (e) { - $reject.call({ _w: promise, _d: !1 }, e); - } - } - }; - USE_NATIVE || - (($Promise = function Promise(executor) { - anInstance(this, $Promise, 'Promise', '_h'), aFunction(executor), Internal.call(this); - try { - executor(ctx($resolve, this, 1), ctx($reject, this, 1)); - } catch (err) { - $reject.call(this, err); - } - }), - ((Internal = function Promise(executor) { - (this._c = []), - (this._a = void 0), - (this._s = 0), - (this._d = !1), - (this._v = void 0), - (this._h = 0), - (this._n = !1); - }).prototype = __webpack_require__(121)($Promise.prototype, { - then: function then(onFulfilled, onRejected) { - var reaction = newPromiseCapability(speciesConstructor(this, $Promise)); - return ( - (reaction.ok = 'function' != typeof onFulfilled || onFulfilled), - (reaction.fail = 'function' == typeof onRejected && onRejected), - (reaction.domain = isNode ? process.domain : void 0), - this._c.push(reaction), - this._a && this._a.push(reaction), - this._s && notify(this, !1), - reaction.promise - ); - }, - catch: function(onRejected) { - return this.then(void 0, onRejected); - } - })), - (OwnPromiseCapability = function() { - var promise = new Internal(); - (this.promise = promise), - (this.resolve = ctx($resolve, promise, 1)), - (this.reject = ctx($reject, promise, 1)); - }), - (newPromiseCapabilityModule.f = newPromiseCapability = function(C) { - return C === $Promise || C === Wrapper - ? new OwnPromiseCapability(C) - : newGenericPromiseCapability(C); - })), - $export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise }), - __webpack_require__(76)($Promise, 'Promise'), - __webpack_require__(280)('Promise'), - (Wrapper = __webpack_require__(10).Promise), - $export($export.S + $export.F * !USE_NATIVE, 'Promise', { - reject: function reject(r) { - var capability = newPromiseCapability(this); - return (0, capability.reject)(r), capability.promise; - } - }), - $export($export.S + $export.F * (LIBRARY || !USE_NATIVE), 'Promise', { - resolve: function resolve(x) { - return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x); - } - }), - $export( - $export.S + - $export.F * - !( - USE_NATIVE && - __webpack_require__(230)(function(iter) { - $Promise.all(iter).catch(empty); - }) - ), - 'Promise', - { - all: function all(iterable) { - var C = this, - capability = newPromiseCapability(C), - resolve = capability.resolve, - reject = capability.reject, - result = perform(function() { - var values = [], - index = 0, - remaining = 1; - forOf(iterable, !1, function(promise) { - var $index = index++, - alreadyCalled = !1; - values.push(void 0), - remaining++, - C.resolve(promise).then(function(value) { - alreadyCalled || - ((alreadyCalled = !0), - (values[$index] = value), - --remaining || resolve(values)); - }, reject); - }), - --remaining || resolve(values); - }); - return result.e && reject(result.v), capability.promise; - }, - race: function race(iterable) { - var C = this, - capability = newPromiseCapability(C), - reject = capability.reject, - result = perform(function() { - forOf(iterable, !1, function(promise) { - C.resolve(promise).then(capability.resolve, reject); - }); - }); - return result.e && reject(result.v), capability.promise; - } - } - ); - }, - function(module, exports) { - module.exports = function(fn, args, that) { - var un = void 0 === that; - switch (args.length) { - case 0: - return un ? fn() : fn.call(that); - case 1: - return un ? fn(args[0]) : fn.call(that, args[0]); - case 2: - return un ? fn(args[0], args[1]) : fn.call(that, args[0], args[1]); - case 3: - return un ? fn(args[0], args[1], args[2]) : fn.call(that, args[0], args[1], args[2]); - case 4: - return un - ? fn(args[0], args[1], args[2], args[3]) - : fn.call(that, args[0], args[1], args[2], args[3]); - } - return fn.apply(that, args); - }; - }, - function(module, exports, __webpack_require__) { - var global = __webpack_require__(17), - macrotask = __webpack_require__(227).set, - Observer = global.MutationObserver || global.WebKitMutationObserver, - process = global.process, - Promise = global.Promise, - isNode = 'process' == __webpack_require__(73)(process); - module.exports = function() { - var head, - last, - notify, - flush = function() { - var parent, fn; - for (isNode && (parent = process.domain) && parent.exit(); head; ) { - (fn = head.fn), (head = head.next); - try { - fn(); - } catch (e) { - throw (head ? notify() : (last = void 0), e); - } - } - (last = void 0), parent && parent.enter(); - }; - if (isNode) - notify = function() { - process.nextTick(flush); - }; - else if (!Observer || (global.navigator && global.navigator.standalone)) - if (Promise && Promise.resolve) { - var promise = Promise.resolve(); - notify = function() { - promise.then(flush); - }; - } else - notify = function() { - macrotask.call(global, flush); - }; - else { - var toggle = !0, - node = document.createTextNode(''); - new Observer(flush).observe(node, { characterData: !0 }), - (notify = function() { - node.data = toggle = !toggle; - }); - } - return function(fn) { - var task = { fn: fn, next: void 0 }; - last && (last.next = task), head || ((head = task), notify()), (last = task); - }; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var $export = __webpack_require__(16), - core = __webpack_require__(10), - global = __webpack_require__(17), - speciesConstructor = __webpack_require__(226), - promiseResolve = __webpack_require__(229); - $export($export.P + $export.R, 'Promise', { - finally: function(onFinally) { - var C = speciesConstructor(this, core.Promise || global.Promise), - isFunction = 'function' == typeof onFinally; - return this.then( - isFunction - ? function(x) { - return promiseResolve(C, onFinally()).then(function() { - return x; - }); - } - : onFinally, - isFunction - ? function(e) { - return promiseResolve(C, onFinally()).then(function() { - throw e; - }); - } - : onFinally - ); - } - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var $export = __webpack_require__(16), - newPromiseCapability = __webpack_require__(152), - perform = __webpack_require__(228); - $export($export.S, 'Promise', { - try: function(callbackfn) { - var promiseCapability = newPromiseCapability.f(this), - result = perform(callbackfn); - return ( - (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v), - promiseCapability.promise - ); - } - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _toConsumableArray3 = _interopRequireDefault(__webpack_require__(45)), - _keys2 = _interopRequireDefault(__webpack_require__(34)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Channel = (function() { - function Channel(_ref) { - var transport = _ref.transport; - (0, _classCallCheck3.default)(this, Channel), - (this._sender = this._randomId()), - (this._transport = transport), - this._transport.setHandler(this._handleEvent.bind(this)), - (this._listeners = {}); - } - return ( - (0, _createClass3.default)(Channel, [ - { - key: 'addListener', - value: function addListener(type, listener) { - this.on(type, listener); - } - }, - { - key: 'addPeerListener', - value: function addPeerListener(type, listener) { - var _this = this, - peerListener = listener; - (peerListener.isPeer = function(from) { - return from === _this._sender; - }), - this.on(type, peerListener); - } - }, - { - key: 'emit', - value: function emit(type) { - for ( - var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; - _key < _len; - _key++ - ) - args[_key - 1] = arguments[_key]; - var event = { type: type, args: args, from: this._sender }; - this._transport.send(event); - } - }, - { - key: 'eventNames', - value: function eventNames() { - return (0, _keys2.default)(this._listeners); - } - }, - { - key: 'listenerCount', - value: function listenerCount(type) { - var listeners = this._listeners[type]; - return listeners ? listeners.length : 0; - } - }, - { - key: 'listeners', - value: function listeners(type) { - return this._listeners[type]; - } - }, - { - key: 'on', - value: function on(type, listener) { - (this._listeners[type] = this._listeners[type] || []), - this._listeners[type].push(listener); - } - }, - { - key: 'once', - value: function once(type, listener) { - var onceListener = this._onceListener(type, listener); - this.on(type, onceListener); - } - }, - { - key: 'prependListener', - value: function prependListener(type, listener) { - (this._listeners[type] = this._listeners[type] || []), - this._listeners[type].unshift(listener); - } - }, - { - key: 'prependOnceListener', - value: function prependOnceListener(type, listener) { - var onceListener = this._onceListener(type, listener); - this.prependListener(type, onceListener); - } - }, - { - key: 'removeAllListeners', - value: function removeAllListeners(type) { - type ? this._listeners[type] && delete this._listeners[type] : (this._listeners = {}); - } - }, - { - key: 'removeListener', - value: function removeListener(type, listener) { - var listeners = this._listeners[type]; - listeners && - (this._listeners[type] = listeners.filter(function(l) { - return l !== listener; - })); - } - }, - { - key: '_randomId', - value: function _randomId() { - return Math.random() - .toString(16) - .slice(2); - } - }, - { - key: '_handleEvent', - value: function _handleEvent(event) { - var listeners = this._listeners[event.type]; - listeners && - listeners.forEach(function(fn) { - return ( - !(fn.isPeer && fn.isPeer(event.from)) && - fn.apply(void 0, (0, _toConsumableArray3.default)(event.args)) - ); - }); - } - }, - { - key: '_onceListener', - value: function _onceListener(type, listener) { - var _this2 = this; - return function onceListener() { - return _this2.removeListener(type, onceListener), listener.apply(void 0, arguments); - }; - } - } - ]), - Channel - ); - })(); - exports.default = Channel; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(63), - __webpack_require__(435), - (module.exports = __webpack_require__(10).Array.from); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ctx = __webpack_require__(35), - $export = __webpack_require__(16), - toObject = __webpack_require__(58), - call = __webpack_require__(224), - isArrayIter = __webpack_require__(225), - toLength = __webpack_require__(94), - createProperty = __webpack_require__(436), - getIterFn = __webpack_require__(151); - $export( - $export.S + - $export.F * - !__webpack_require__(230)(function(iter) { - Array.from(iter); - }), - 'Array', - { - from: function from(arrayLike) { - var length, - result, - step, - iterator, - O = toObject(arrayLike), - C = 'function' == typeof this ? this : Array, - aLen = arguments.length, - mapfn = aLen > 1 ? arguments[1] : void 0, - mapping = void 0 !== mapfn, - index = 0, - iterFn = getIterFn(O); - if ( - (mapping && (mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : void 0, 2)), - void 0 == iterFn || (C == Array && isArrayIter(iterFn))) - ) - for (result = new C((length = toLength(O.length))); length > index; index++) - createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); - else - for ( - iterator = iterFn.call(O), result = new C(); - !(step = iterator.next()).done; - index++ - ) - createProperty( - result, - index, - mapping ? call(iterator, mapfn, [step.value, index], !0) : step.value - ); - return (result.length = index), result; - } - } - ); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var $defineProperty = __webpack_require__(26), - createDesc = __webpack_require__(75); - module.exports = function(object, index, value) { - index in object - ? $defineProperty.f(object, index, createDesc(0, value)) - : (object[index] = value); - }; - }, - function(module, exports) { - function serializer(replacer, cycleReplacer) { - var stack = [], - keys = []; - return ( - null == cycleReplacer && - (cycleReplacer = function(key, value) { - return stack[0] === value - ? '[Circular ~]' - : '[Circular ~.' + keys.slice(0, stack.indexOf(value)).join('.') + ']'; - }), - function(key, value) { - if (stack.length > 0) { - var thisPos = stack.indexOf(this); - ~thisPos ? stack.splice(thisPos + 1) : stack.push(this), - ~thisPos ? keys.splice(thisPos, 1 / 0, key) : keys.push(key), - ~stack.indexOf(value) && (value = cycleReplacer.call(this, key, value)); - } else stack.push(value); - return null == replacer ? value : replacer.call(this, key, value); - } - ); - } - (module.exports = function stringify(obj, replacer, spaces, cycleReplacer) { - return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces); - }).getSerialize = serializer; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var utils = __webpack_require__(232), - formats = __webpack_require__(233), - arrayPrefixGenerators = { - brackets: function brackets(prefix) { - return prefix + '[]'; - }, - indices: function indices(prefix, key) { - return prefix + '[' + key + ']'; - }, - repeat: function repeat(prefix) { - return prefix; - } - }, - toISO = Date.prototype.toISOString, - defaults = { - delimiter: '&', - encode: !0, - encoder: utils.encode, - encodeValuesOnly: !1, - serializeDate: function serializeDate(date) { - return toISO.call(date); - }, - skipNulls: !1, - strictNullHandling: !1 - }, - stringify = function stringify( - object, - prefix, - generateArrayPrefix, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - formatter, - encodeValuesOnly - ) { - var obj = object; - if ('function' == typeof filter) obj = filter(prefix, obj); - else if (obj instanceof Date) obj = serializeDate(obj); - else if (null === obj) { - if (strictNullHandling) - return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder) : prefix; - obj = ''; - } - if ( - 'string' == typeof obj || - 'number' == typeof obj || - 'boolean' == typeof obj || - utils.isBuffer(obj) - ) - return encoder - ? [ - formatter(encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder)) + - '=' + - formatter(encoder(obj, defaults.encoder)) - ] - : [formatter(prefix) + '=' + formatter(String(obj))]; - var objKeys, - values = []; - if (void 0 === obj) return values; - if (Array.isArray(filter)) objKeys = filter; - else { - var keys = Object.keys(obj); - objKeys = sort ? keys.sort(sort) : keys; - } - for (var i = 0; i < objKeys.length; ++i) { - var key = objKeys[i]; - (skipNulls && null === obj[key]) || - (values = Array.isArray(obj) - ? values.concat( - stringify( - obj[key], - generateArrayPrefix(prefix, key), - generateArrayPrefix, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - formatter, - encodeValuesOnly - ) - ) - : values.concat( - stringify( - obj[key], - prefix + (allowDots ? '.' + key : '[' + key + ']'), - generateArrayPrefix, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - formatter, - encodeValuesOnly - ) - )); - } - return values; - }; - module.exports = function(object, opts) { - var obj = object, - options = opts ? utils.assign({}, opts) : {}; - if ( - null !== options.encoder && - void 0 !== options.encoder && - 'function' != typeof options.encoder - ) - throw new TypeError('Encoder has to be a function.'); - var delimiter = void 0 === options.delimiter ? defaults.delimiter : options.delimiter, - strictNullHandling = - 'boolean' == typeof options.strictNullHandling - ? options.strictNullHandling - : defaults.strictNullHandling, - skipNulls = 'boolean' == typeof options.skipNulls ? options.skipNulls : defaults.skipNulls, - encode = 'boolean' == typeof options.encode ? options.encode : defaults.encode, - encoder = 'function' == typeof options.encoder ? options.encoder : defaults.encoder, - sort = 'function' == typeof options.sort ? options.sort : null, - allowDots = void 0 !== options.allowDots && options.allowDots, - serializeDate = - 'function' == typeof options.serializeDate - ? options.serializeDate - : defaults.serializeDate, - encodeValuesOnly = - 'boolean' == typeof options.encodeValuesOnly - ? options.encodeValuesOnly - : defaults.encodeValuesOnly; - if (void 0 === options.format) options.format = formats.default; - else if (!Object.prototype.hasOwnProperty.call(formats.formatters, options.format)) - throw new TypeError('Unknown format option provided.'); - var objKeys, - filter, - formatter = formats.formatters[options.format]; - 'function' == typeof options.filter - ? (obj = (filter = options.filter)('', obj)) - : Array.isArray(options.filter) && (objKeys = filter = options.filter); - var arrayFormat, - keys = []; - if ('object' != typeof obj || null === obj) return ''; - arrayFormat = - options.arrayFormat in arrayPrefixGenerators - ? options.arrayFormat - : 'indices' in options ? (options.indices ? 'indices' : 'repeat') : 'indices'; - var generateArrayPrefix = arrayPrefixGenerators[arrayFormat]; - objKeys || (objKeys = Object.keys(obj)), sort && objKeys.sort(sort); - for (var i = 0; i < objKeys.length; ++i) { - var key = objKeys[i]; - (skipNulls && null === obj[key]) || - (keys = keys.concat( - stringify( - obj[key], - key, - generateArrayPrefix, - strictNullHandling, - skipNulls, - encode ? encoder : null, - filter, - sort, - allowDots, - serializeDate, - formatter, - encodeValuesOnly - ) - )); - } - var joined = keys.join(delimiter), - prefix = !0 === options.addQueryPrefix ? '?' : ''; - return joined.length > 0 ? prefix + joined : ''; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var utils = __webpack_require__(232), - has = Object.prototype.hasOwnProperty, - defaults = { - allowDots: !1, - allowPrototypes: !1, - arrayLimit: 20, - decoder: utils.decode, - delimiter: '&', - depth: 5, - parameterLimit: 1e3, - plainObjects: !1, - strictNullHandling: !1 - }, - parseKeys = function parseQueryStringKeys(givenKey, val, options) { - if (givenKey) { - var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey, - child = /(\[[^[\]]*])/g, - segment = /(\[[^[\]]*])/.exec(key), - parent = segment ? key.slice(0, segment.index) : key, - keys = []; - if (parent) { - if ( - !options.plainObjects && - has.call(Object.prototype, parent) && - !options.allowPrototypes - ) - return; - keys.push(parent); - } - for (var i = 0; null !== (segment = child.exec(key)) && i < options.depth; ) { - if ( - ((i += 1), - !options.plainObjects && - has.call(Object.prototype, segment[1].slice(1, -1)) && - !options.allowPrototypes) - ) - return; - keys.push(segment[1]); - } - return ( - segment && keys.push('[' + key.slice(segment.index) + ']'), - (function(chain, val, options) { - for (var leaf = val, i = chain.length - 1; i >= 0; --i) { - var obj, - root = chain[i]; - if ('[]' === root) obj = (obj = []).concat(leaf); - else { - obj = options.plainObjects ? Object.create(null) : {}; - var cleanRoot = - '[' === root.charAt(0) && ']' === root.charAt(root.length - 1) - ? root.slice(1, -1) - : root, - index = parseInt(cleanRoot, 10); - !isNaN(index) && - root !== cleanRoot && - String(index) === cleanRoot && - index >= 0 && - options.parseArrays && - index <= options.arrayLimit - ? ((obj = [])[index] = leaf) - : (obj[cleanRoot] = leaf); - } - leaf = obj; - } - return leaf; - })(keys, val, options) - ); - } - }; - module.exports = function(str, opts) { - var options = opts ? utils.assign({}, opts) : {}; - if ( - null !== options.decoder && - void 0 !== options.decoder && - 'function' != typeof options.decoder - ) - throw new TypeError('Decoder has to be a function.'); - if ( - ((options.ignoreQueryPrefix = !0 === options.ignoreQueryPrefix), - (options.delimiter = - 'string' == typeof options.delimiter || utils.isRegExp(options.delimiter) - ? options.delimiter - : defaults.delimiter), - (options.depth = 'number' == typeof options.depth ? options.depth : defaults.depth), - (options.arrayLimit = - 'number' == typeof options.arrayLimit ? options.arrayLimit : defaults.arrayLimit), - (options.parseArrays = !1 !== options.parseArrays), - (options.decoder = - 'function' == typeof options.decoder ? options.decoder : defaults.decoder), - (options.allowDots = - 'boolean' == typeof options.allowDots ? options.allowDots : defaults.allowDots), - (options.plainObjects = - 'boolean' == typeof options.plainObjects ? options.plainObjects : defaults.plainObjects), - (options.allowPrototypes = - 'boolean' == typeof options.allowPrototypes - ? options.allowPrototypes - : defaults.allowPrototypes), - (options.parameterLimit = - 'number' == typeof options.parameterLimit - ? options.parameterLimit - : defaults.parameterLimit), - (options.strictNullHandling = - 'boolean' == typeof options.strictNullHandling - ? options.strictNullHandling - : defaults.strictNullHandling), - '' === str || null === str || void 0 === str) - ) - return options.plainObjects ? Object.create(null) : {}; - for ( - var tempObj = - 'string' == typeof str - ? (function parseQueryStringValues(str, options) { - for ( - var obj = {}, - cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str, - limit = options.parameterLimit === 1 / 0 ? void 0 : options.parameterLimit, - parts = cleanStr.split(options.delimiter, limit), - i = 0; - i < parts.length; - ++i - ) { - var key, - val, - part = parts[i], - bracketEqualsPos = part.indexOf(']='), - pos = -1 === bracketEqualsPos ? part.indexOf('=') : bracketEqualsPos + 1; - -1 === pos - ? ((key = options.decoder(part, defaults.decoder)), - (val = options.strictNullHandling ? null : '')) - : ((key = options.decoder(part.slice(0, pos), defaults.decoder)), - (val = options.decoder(part.slice(pos + 1), defaults.decoder))), - has.call(obj, key) - ? (obj[key] = [].concat(obj[key]).concat(val)) - : (obj[key] = val); - } - return obj; - })(str, options) - : str, - obj = options.plainObjects ? Object.create(null) : {}, - keys = Object.keys(tempObj), - i = 0; - i < keys.length; - ++i - ) { - var key = keys[i], - newObj = parseKeys(key, tempObj[key], options); - obj = utils.merge(obj, newObj, options); - } - return utils.compact(obj); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactDOMComponentTree = __webpack_require__(13), - ReactDefaultInjection = __webpack_require__(441), - ReactMount = __webpack_require__(257), - ReactReconciler = __webpack_require__(61), - ReactUpdates = __webpack_require__(30), - ReactVersion = __webpack_require__(510), - findDOMNode = __webpack_require__(511), - getHostComponentFromComposite = __webpack_require__(258), - renderSubtreeIntoContainer = __webpack_require__(512); - __webpack_require__(6); - ReactDefaultInjection.inject(); - var ReactDOM = { - findDOMNode: findDOMNode, - render: ReactMount.render, - unmountComponentAtNode: ReactMount.unmountComponentAtNode, - version: ReactVersion, - unstable_batchedUpdates: ReactUpdates.batchedUpdates, - unstable_renderSubtreeIntoContainer: renderSubtreeIntoContainer - }; - 'undefined' != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && - 'function' == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject && - __REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ - ComponentTree: { - getClosestInstanceFromNode: ReactDOMComponentTree.getClosestInstanceFromNode, - getNodeFromInstance: function(inst) { - return ( - inst._renderedComponent && (inst = getHostComponentFromComposite(inst)), - inst ? ReactDOMComponentTree.getNodeFromInstance(inst) : null - ); - } - }, - Mount: ReactMount, - Reconciler: ReactReconciler - }), - (module.exports = ReactDOM); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ARIADOMPropertyConfig = __webpack_require__(442), - BeforeInputEventPlugin = __webpack_require__(443), - ChangeEventPlugin = __webpack_require__(447), - DefaultEventPluginOrder = __webpack_require__(450), - EnterLeaveEventPlugin = __webpack_require__(451), - HTMLDOMPropertyConfig = __webpack_require__(452), - ReactComponentBrowserEnvironment = __webpack_require__(453), - ReactDOMComponent = __webpack_require__(459), - ReactDOMComponentTree = __webpack_require__(13), - ReactDOMEmptyComponent = __webpack_require__(481), - ReactDOMTreeTraversal = __webpack_require__(482), - ReactDOMTextComponent = __webpack_require__(483), - ReactDefaultBatchingStrategy = __webpack_require__(484), - ReactEventListener = __webpack_require__(485), - ReactInjection = __webpack_require__(487), - ReactReconcileTransaction = __webpack_require__(488), - SVGDOMPropertyConfig = __webpack_require__(494), - SelectEventPlugin = __webpack_require__(495), - SimpleEventPlugin = __webpack_require__(496), - alreadyInjected = !1; - module.exports = { - inject: function inject() { - alreadyInjected || - ((alreadyInjected = !0), - ReactInjection.EventEmitter.injectReactEventListener(ReactEventListener), - ReactInjection.EventPluginHub.injectEventPluginOrder(DefaultEventPluginOrder), - ReactInjection.EventPluginUtils.injectComponentTree(ReactDOMComponentTree), - ReactInjection.EventPluginUtils.injectTreeTraversal(ReactDOMTreeTraversal), - ReactInjection.EventPluginHub.injectEventPluginsByName({ - SimpleEventPlugin: SimpleEventPlugin, - EnterLeaveEventPlugin: EnterLeaveEventPlugin, - ChangeEventPlugin: ChangeEventPlugin, - SelectEventPlugin: SelectEventPlugin, - BeforeInputEventPlugin: BeforeInputEventPlugin - }), - ReactInjection.HostComponent.injectGenericComponentClass(ReactDOMComponent), - ReactInjection.HostComponent.injectTextComponentClass(ReactDOMTextComponent), - ReactInjection.DOMProperty.injectDOMPropertyConfig(ARIADOMPropertyConfig), - ReactInjection.DOMProperty.injectDOMPropertyConfig(HTMLDOMPropertyConfig), - ReactInjection.DOMProperty.injectDOMPropertyConfig(SVGDOMPropertyConfig), - ReactInjection.EmptyComponent.injectEmptyComponentFactory(function(instantiate) { - return new ReactDOMEmptyComponent(instantiate); - }), - ReactInjection.Updates.injectReconcileTransaction(ReactReconcileTransaction), - ReactInjection.Updates.injectBatchingStrategy(ReactDefaultBatchingStrategy), - ReactInjection.Component.injectEnvironment(ReactComponentBrowserEnvironment)); - } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = { - Properties: { - 'aria-current': 0, - 'aria-details': 0, - 'aria-disabled': 0, - 'aria-hidden': 0, - 'aria-invalid': 0, - 'aria-keyshortcuts': 0, - 'aria-label': 0, - 'aria-roledescription': 0, - 'aria-autocomplete': 0, - 'aria-checked': 0, - 'aria-expanded': 0, - 'aria-haspopup': 0, - 'aria-level': 0, - 'aria-modal': 0, - 'aria-multiline': 0, - 'aria-multiselectable': 0, - 'aria-orientation': 0, - 'aria-placeholder': 0, - 'aria-pressed': 0, - 'aria-readonly': 0, - 'aria-required': 0, - 'aria-selected': 0, - 'aria-sort': 0, - 'aria-valuemax': 0, - 'aria-valuemin': 0, - 'aria-valuenow': 0, - 'aria-valuetext': 0, - 'aria-atomic': 0, - 'aria-busy': 0, - 'aria-live': 0, - 'aria-relevant': 0, - 'aria-dropeffect': 0, - 'aria-grabbed': 0, - 'aria-activedescendant': 0, - 'aria-colcount': 0, - 'aria-colindex': 0, - 'aria-colspan': 0, - 'aria-controls': 0, - 'aria-describedby': 0, - 'aria-errormessage': 0, - 'aria-flowto': 0, - 'aria-labelledby': 0, - 'aria-owns': 0, - 'aria-posinset': 0, - 'aria-rowcount': 0, - 'aria-rowindex': 0, - 'aria-rowspan': 0, - 'aria-setsize': 0 - }, - DOMAttributeNames: {}, - DOMPropertyNames: {} - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var EventPropagators = __webpack_require__(79), - ExecutionEnvironment = __webpack_require__(19), - FallbackCompositionState = __webpack_require__(444), - SyntheticCompositionEvent = __webpack_require__(445), - SyntheticInputEvent = __webpack_require__(446), - END_KEYCODES = [9, 13, 27, 32], - START_KEYCODE = 229, - canUseCompositionEvent = ExecutionEnvironment.canUseDOM && 'CompositionEvent' in window, - documentMode = null; - ExecutionEnvironment.canUseDOM && - 'documentMode' in document && - (documentMode = document.documentMode); - var canUseTextInputEvent = - ExecutionEnvironment.canUseDOM && - 'TextEvent' in window && - !documentMode && - !(function isPresto() { - var opera = window.opera; - return ( - 'object' == typeof opera && - 'function' == typeof opera.version && - parseInt(opera.version(), 10) <= 12 - ); - })(), - useFallbackCompositionData = - ExecutionEnvironment.canUseDOM && - (!canUseCompositionEvent || (documentMode && documentMode > 8 && documentMode <= 11)); - var SPACEBAR_CODE = 32, - SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE), - eventTypes = { - beforeInput: { - phasedRegistrationNames: { bubbled: 'onBeforeInput', captured: 'onBeforeInputCapture' }, - dependencies: ['topCompositionEnd', 'topKeyPress', 'topTextInput', 'topPaste'] - }, - compositionEnd: { - phasedRegistrationNames: { - bubbled: 'onCompositionEnd', - captured: 'onCompositionEndCapture' - }, - dependencies: [ - 'topBlur', - 'topCompositionEnd', - 'topKeyDown', - 'topKeyPress', - 'topKeyUp', - 'topMouseDown' - ] - }, - compositionStart: { - phasedRegistrationNames: { - bubbled: 'onCompositionStart', - captured: 'onCompositionStartCapture' - }, - dependencies: [ - 'topBlur', - 'topCompositionStart', - 'topKeyDown', - 'topKeyPress', - 'topKeyUp', - 'topMouseDown' - ] - }, - compositionUpdate: { - phasedRegistrationNames: { - bubbled: 'onCompositionUpdate', - captured: 'onCompositionUpdateCapture' - }, - dependencies: [ - 'topBlur', - 'topCompositionUpdate', - 'topKeyDown', - 'topKeyPress', - 'topKeyUp', - 'topMouseDown' - ] - } - }, - hasSpaceKeypress = !1; - function isFallbackCompositionEnd(topLevelType, nativeEvent) { - switch (topLevelType) { - case 'topKeyUp': - return -1 !== END_KEYCODES.indexOf(nativeEvent.keyCode); - case 'topKeyDown': - return nativeEvent.keyCode !== START_KEYCODE; - case 'topKeyPress': - case 'topMouseDown': - case 'topBlur': - return !0; - default: - return !1; - } - } - function getDataFromCustomEvent(nativeEvent) { - var detail = nativeEvent.detail; - return 'object' == typeof detail && 'data' in detail ? detail.data : null; - } - var currentComposition = null; - function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var eventType, fallbackData; - if ( - (canUseCompositionEvent - ? (eventType = (function getCompositionEventType(topLevelType) { - switch (topLevelType) { - case 'topCompositionStart': - return eventTypes.compositionStart; - case 'topCompositionEnd': - return eventTypes.compositionEnd; - case 'topCompositionUpdate': - return eventTypes.compositionUpdate; - } - })(topLevelType)) - : currentComposition - ? isFallbackCompositionEnd(topLevelType, nativeEvent) && - (eventType = eventTypes.compositionEnd) - : (function isFallbackCompositionStart(topLevelType, nativeEvent) { - return 'topKeyDown' === topLevelType && nativeEvent.keyCode === START_KEYCODE; - })(topLevelType, nativeEvent) && (eventType = eventTypes.compositionStart), - !eventType) - ) - return null; - useFallbackCompositionData && - (currentComposition || eventType !== eventTypes.compositionStart - ? eventType === eventTypes.compositionEnd && - currentComposition && - (fallbackData = currentComposition.getData()) - : (currentComposition = FallbackCompositionState.getPooled(nativeEventTarget))); - var event = SyntheticCompositionEvent.getPooled( - eventType, - targetInst, - nativeEvent, - nativeEventTarget - ); - if (fallbackData) event.data = fallbackData; - else { - var customData = getDataFromCustomEvent(nativeEvent); - null !== customData && (event.data = customData); - } - return EventPropagators.accumulateTwoPhaseDispatches(event), event; - } - function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var chars; - if ( - !(chars = canUseTextInputEvent - ? (function getNativeBeforeInputChars(topLevelType, nativeEvent) { - switch (topLevelType) { - case 'topCompositionEnd': - return getDataFromCustomEvent(nativeEvent); - case 'topKeyPress': - return nativeEvent.which !== SPACEBAR_CODE - ? null - : ((hasSpaceKeypress = !0), SPACEBAR_CHAR); - case 'topTextInput': - var chars = nativeEvent.data; - return chars === SPACEBAR_CHAR && hasSpaceKeypress ? null : chars; - default: - return null; - } - })(topLevelType, nativeEvent) - : (function getFallbackBeforeInputChars(topLevelType, nativeEvent) { - if (currentComposition) { - if ( - 'topCompositionEnd' === topLevelType || - (!canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) - ) { - var chars = currentComposition.getData(); - return ( - FallbackCompositionState.release(currentComposition), - (currentComposition = null), - chars - ); - } - return null; - } - switch (topLevelType) { - case 'topPaste': - return null; - case 'topKeyPress': - return nativeEvent.which && - !(function isKeypressCommand(nativeEvent) { - return ( - (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && - !(nativeEvent.ctrlKey && nativeEvent.altKey) - ); - })(nativeEvent) - ? String.fromCharCode(nativeEvent.which) - : null; - case 'topCompositionEnd': - return useFallbackCompositionData ? null : nativeEvent.data; - default: - return null; - } - })(topLevelType, nativeEvent)) - ) - return null; - var event = SyntheticInputEvent.getPooled( - eventTypes.beforeInput, - targetInst, - nativeEvent, - nativeEventTarget - ); - return (event.data = chars), EventPropagators.accumulateTwoPhaseDispatches(event), event; - } - var BeforeInputEventPlugin = { - eventTypes: eventTypes, - extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - return [ - extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget), - extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) - ]; - } - }; - module.exports = BeforeInputEventPlugin; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - PooledClass = __webpack_require__(47), - getTextContentAccessor = __webpack_require__(237); - function FallbackCompositionState(root) { - (this._root = root), (this._startText = this.getText()), (this._fallbackText = null); - } - _assign(FallbackCompositionState.prototype, { - destructor: function() { - (this._root = null), (this._startText = null), (this._fallbackText = null); - }, - getText: function() { - return 'value' in this._root ? this._root.value : this._root[getTextContentAccessor()]; - }, - getData: function() { - if (this._fallbackText) return this._fallbackText; - var start, - end, - startValue = this._startText, - startLength = startValue.length, - endValue = this.getText(), - endLength = endValue.length; - for (start = 0; start < startLength && startValue[start] === endValue[start]; start++); - var minEnd = startLength - start; - for ( - end = 1; - end <= minEnd && startValue[startLength - end] === endValue[endLength - end]; - end++ - ); - var sliceTail = end > 1 ? 1 - end : void 0; - return (this._fallbackText = endValue.slice(start, sliceTail)), this._fallbackText; - } - }), - PooledClass.addPoolingTo(FallbackCompositionState), - (module.exports = FallbackCompositionState); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticEvent = __webpack_require__(33); - function SyntheticCompositionEvent( - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ) { - return SyntheticEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticEvent.augmentClass(SyntheticCompositionEvent, { data: null }), - (module.exports = SyntheticCompositionEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticEvent = __webpack_require__(33); - function SyntheticInputEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { - return SyntheticEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticEvent.augmentClass(SyntheticInputEvent, { data: null }), - (module.exports = SyntheticInputEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var EventPluginHub = __webpack_require__(80), - EventPropagators = __webpack_require__(79), - ExecutionEnvironment = __webpack_require__(19), - ReactDOMComponentTree = __webpack_require__(13), - ReactUpdates = __webpack_require__(30), - SyntheticEvent = __webpack_require__(33), - inputValueTracking = __webpack_require__(240), - getEventTarget = __webpack_require__(156), - isEventSupported = __webpack_require__(157), - isTextInputElement = __webpack_require__(241), - eventTypes = { - change: { - phasedRegistrationNames: { bubbled: 'onChange', captured: 'onChangeCapture' }, - dependencies: [ - 'topBlur', - 'topChange', - 'topClick', - 'topFocus', - 'topInput', - 'topKeyDown', - 'topKeyUp', - 'topSelectionChange' - ] - } - }; - function createAndAccumulateChangeEvent(inst, nativeEvent, target) { - var event = SyntheticEvent.getPooled(eventTypes.change, inst, nativeEvent, target); - return (event.type = 'change'), EventPropagators.accumulateTwoPhaseDispatches(event), event; - } - var activeElement = null, - activeElementInst = null; - var doesChangeEventBubble = !1; - function manualDispatchChangeEvent(nativeEvent) { - var event = createAndAccumulateChangeEvent( - activeElementInst, - nativeEvent, - getEventTarget(nativeEvent) - ); - ReactUpdates.batchedUpdates(runEventInBatch, event); - } - function runEventInBatch(event) { - EventPluginHub.enqueueEvents(event), EventPluginHub.processEventQueue(!1); - } - function stopWatchingForChangeEventIE8() { - activeElement && - (activeElement.detachEvent('onchange', manualDispatchChangeEvent), - (activeElement = null), - (activeElementInst = null)); - } - function getInstIfValueChanged(targetInst, nativeEvent) { - var updated = inputValueTracking.updateValueIfChanged(targetInst), - simulated = !0 === nativeEvent.simulated && ChangeEventPlugin._allowSimulatedPassThrough; - if (updated || simulated) return targetInst; - } - function getTargetInstForChangeEvent(topLevelType, targetInst) { - if ('topChange' === topLevelType) return targetInst; - } - function handleEventsForChangeEventIE8(topLevelType, target, targetInst) { - 'topFocus' === topLevelType - ? (stopWatchingForChangeEventIE8(), - (function startWatchingForChangeEventIE8(target, targetInst) { - (activeElementInst = targetInst), - (activeElement = target).attachEvent('onchange', manualDispatchChangeEvent); - })(target, targetInst)) - : 'topBlur' === topLevelType && stopWatchingForChangeEventIE8(); - } - ExecutionEnvironment.canUseDOM && - (doesChangeEventBubble = - isEventSupported('change') && (!document.documentMode || document.documentMode > 8)); - var isInputEventSupported = !1; - function stopWatchingForValueChange() { - activeElement && - (activeElement.detachEvent('onpropertychange', handlePropertyChange), - (activeElement = null), - (activeElementInst = null)); - } - function handlePropertyChange(nativeEvent) { - 'value' === nativeEvent.propertyName && - getInstIfValueChanged(activeElementInst, nativeEvent) && - manualDispatchChangeEvent(nativeEvent); - } - function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) { - 'topFocus' === topLevelType - ? (stopWatchingForValueChange(), - (function startWatchingForValueChange(target, targetInst) { - (activeElementInst = targetInst), - (activeElement = target).attachEvent('onpropertychange', handlePropertyChange); - })(target, targetInst)) - : 'topBlur' === topLevelType && stopWatchingForValueChange(); - } - function getTargetInstForInputEventPolyfill(topLevelType, targetInst, nativeEvent) { - if ( - 'topSelectionChange' === topLevelType || - 'topKeyUp' === topLevelType || - 'topKeyDown' === topLevelType - ) - return getInstIfValueChanged(activeElementInst, nativeEvent); - } - function getTargetInstForClickEvent(topLevelType, targetInst, nativeEvent) { - if ('topClick' === topLevelType) return getInstIfValueChanged(targetInst, nativeEvent); - } - function getTargetInstForInputOrChangeEvent(topLevelType, targetInst, nativeEvent) { - if ('topInput' === topLevelType || 'topChange' === topLevelType) - return getInstIfValueChanged(targetInst, nativeEvent); - } - ExecutionEnvironment.canUseDOM && - (isInputEventSupported = - isEventSupported('input') && (!document.documentMode || document.documentMode > 9)); - var ChangeEventPlugin = { - eventTypes: eventTypes, - _allowSimulatedPassThrough: !0, - _isInputEventSupported: isInputEventSupported, - extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var getTargetInstFunc, - handleEventFunc, - targetNode = targetInst ? ReactDOMComponentTree.getNodeFromInstance(targetInst) : window; - if ( - (!(function shouldUseChangeEvent(elem) { - var nodeName = elem.nodeName && elem.nodeName.toLowerCase(); - return 'select' === nodeName || ('input' === nodeName && 'file' === elem.type); - })(targetNode) - ? isTextInputElement(targetNode) - ? isInputEventSupported - ? (getTargetInstFunc = getTargetInstForInputOrChangeEvent) - : ((getTargetInstFunc = getTargetInstForInputEventPolyfill), - (handleEventFunc = handleEventsForInputEventPolyfill)) - : (function shouldUseClickEvent(elem) { - var nodeName = elem.nodeName; - return ( - nodeName && - 'input' === nodeName.toLowerCase() && - ('checkbox' === elem.type || 'radio' === elem.type) - ); - })(targetNode) && (getTargetInstFunc = getTargetInstForClickEvent) - : doesChangeEventBubble - ? (getTargetInstFunc = getTargetInstForChangeEvent) - : (handleEventFunc = handleEventsForChangeEventIE8), - getTargetInstFunc) - ) { - var inst = getTargetInstFunc(topLevelType, targetInst, nativeEvent); - if (inst) return createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget); - } - handleEventFunc && handleEventFunc(topLevelType, targetNode, targetInst), - 'topBlur' === topLevelType && - (function handleControlledInputBlur(inst, node) { - if (null != inst) { - var state = inst._wrapperState || node._wrapperState; - if (state && state.controlled && 'number' === node.type) { - var value = '' + node.value; - node.getAttribute('value') !== value && node.setAttribute('value', value); - } - } - })(targetInst, targetNode); - } - }; - module.exports = ChangeEventPlugin; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactOwner = __webpack_require__(449), - ReactRef = {}; - (ReactRef.attachRefs = function(instance, element) { - if (null !== element && 'object' == typeof element) { - var ref = element.ref; - null != ref && - (function attachRef(ref, component, owner) { - 'function' == typeof ref - ? ref(component.getPublicInstance()) - : ReactOwner.addComponentAsRefTo(component, ref, owner); - })(ref, instance, element._owner); - } - }), - (ReactRef.shouldUpdateRefs = function(prevElement, nextElement) { - var prevRef = null, - prevOwner = null; - null !== prevElement && - 'object' == typeof prevElement && - ((prevRef = prevElement.ref), (prevOwner = prevElement._owner)); - var nextRef = null, - nextOwner = null; - return ( - null !== nextElement && - 'object' == typeof nextElement && - ((nextRef = nextElement.ref), (nextOwner = nextElement._owner)), - prevRef !== nextRef || ('string' == typeof nextRef && nextOwner !== prevOwner) - ); - }), - (ReactRef.detachRefs = function(instance, element) { - if (null !== element && 'object' == typeof element) { - var ref = element.ref; - null != ref && - (function detachRef(ref, component, owner) { - 'function' == typeof ref - ? ref(null) - : ReactOwner.removeComponentAsRefFrom(component, ref, owner); - })(ref, instance, element._owner); - } - }), - (module.exports = ReactRef); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7); - __webpack_require__(3); - function isValidOwner(object) { - return !( - !object || - 'function' != typeof object.attachRef || - 'function' != typeof object.detachRef - ); - } - var ReactOwner = { - addComponentAsRefTo: function(component, ref, owner) { - isValidOwner(owner) || _prodInvariant('119'), owner.attachRef(ref, component); - }, - removeComponentAsRefFrom: function(component, ref, owner) { - isValidOwner(owner) || _prodInvariant('120'); - var ownerPublicInstance = owner.getPublicInstance(); - ownerPublicInstance && - ownerPublicInstance.refs[ref] === component.getPublicInstance() && - owner.detachRef(ref); - } - }; - module.exports = ReactOwner; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = [ - 'ResponderEventPlugin', - 'SimpleEventPlugin', - 'TapEventPlugin', - 'EnterLeaveEventPlugin', - 'ChangeEventPlugin', - 'SelectEventPlugin', - 'BeforeInputEventPlugin' - ]; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var EventPropagators = __webpack_require__(79), - ReactDOMComponentTree = __webpack_require__(13), - SyntheticMouseEvent = __webpack_require__(99), - eventTypes = { - mouseEnter: { - registrationName: 'onMouseEnter', - dependencies: ['topMouseOut', 'topMouseOver'] - }, - mouseLeave: { - registrationName: 'onMouseLeave', - dependencies: ['topMouseOut', 'topMouseOver'] - } - }, - EnterLeaveEventPlugin = { - eventTypes: eventTypes, - extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - if ( - 'topMouseOver' === topLevelType && - (nativeEvent.relatedTarget || nativeEvent.fromElement) - ) - return null; - if ('topMouseOut' !== topLevelType && 'topMouseOver' !== topLevelType) return null; - var win, from, to; - if (nativeEventTarget.window === nativeEventTarget) win = nativeEventTarget; - else { - var doc = nativeEventTarget.ownerDocument; - win = doc ? doc.defaultView || doc.parentWindow : window; - } - if ('topMouseOut' === topLevelType) { - from = targetInst; - var related = nativeEvent.relatedTarget || nativeEvent.toElement; - to = related ? ReactDOMComponentTree.getClosestInstanceFromNode(related) : null; - } else (from = null), (to = targetInst); - if (from === to) return null; - var fromNode = null == from ? win : ReactDOMComponentTree.getNodeFromInstance(from), - toNode = null == to ? win : ReactDOMComponentTree.getNodeFromInstance(to), - leave = SyntheticMouseEvent.getPooled( - eventTypes.mouseLeave, - from, - nativeEvent, - nativeEventTarget - ); - (leave.type = 'mouseleave'), (leave.target = fromNode), (leave.relatedTarget = toNode); - var enter = SyntheticMouseEvent.getPooled( - eventTypes.mouseEnter, - to, - nativeEvent, - nativeEventTarget - ); - return ( - (enter.type = 'mouseenter'), - (enter.target = toNode), - (enter.relatedTarget = fromNode), - EventPropagators.accumulateEnterLeaveDispatches(leave, enter, from, to), - [leave, enter] - ); - } - }; - module.exports = EnterLeaveEventPlugin; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var DOMProperty = __webpack_require__(60), - MUST_USE_PROPERTY = DOMProperty.injection.MUST_USE_PROPERTY, - HAS_BOOLEAN_VALUE = DOMProperty.injection.HAS_BOOLEAN_VALUE, - HAS_NUMERIC_VALUE = DOMProperty.injection.HAS_NUMERIC_VALUE, - HAS_POSITIVE_NUMERIC_VALUE = DOMProperty.injection.HAS_POSITIVE_NUMERIC_VALUE, - HAS_OVERLOADED_BOOLEAN_VALUE = DOMProperty.injection.HAS_OVERLOADED_BOOLEAN_VALUE, - HTMLDOMPropertyConfig = { - isCustomAttribute: RegExp.prototype.test.bind( - new RegExp('^(data|aria)-[' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$') - ), - Properties: { - accept: 0, - acceptCharset: 0, - accessKey: 0, - action: 0, - allowFullScreen: HAS_BOOLEAN_VALUE, - allowTransparency: 0, - alt: 0, - as: 0, - async: HAS_BOOLEAN_VALUE, - autoComplete: 0, - autoPlay: HAS_BOOLEAN_VALUE, - capture: HAS_BOOLEAN_VALUE, - cellPadding: 0, - cellSpacing: 0, - charSet: 0, - challenge: 0, - checked: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, - cite: 0, - classID: 0, - className: 0, - cols: HAS_POSITIVE_NUMERIC_VALUE, - colSpan: 0, - content: 0, - contentEditable: 0, - contextMenu: 0, - controls: HAS_BOOLEAN_VALUE, - controlsList: 0, - coords: 0, - crossOrigin: 0, - data: 0, - dateTime: 0, - default: HAS_BOOLEAN_VALUE, - defer: HAS_BOOLEAN_VALUE, - dir: 0, - disabled: HAS_BOOLEAN_VALUE, - download: HAS_OVERLOADED_BOOLEAN_VALUE, - draggable: 0, - encType: 0, - form: 0, - formAction: 0, - formEncType: 0, - formMethod: 0, - formNoValidate: HAS_BOOLEAN_VALUE, - formTarget: 0, - frameBorder: 0, - headers: 0, - height: 0, - hidden: HAS_BOOLEAN_VALUE, - high: 0, - href: 0, - hrefLang: 0, - htmlFor: 0, - httpEquiv: 0, - icon: 0, - id: 0, - inputMode: 0, - integrity: 0, - is: 0, - keyParams: 0, - keyType: 0, - kind: 0, - label: 0, - lang: 0, - list: 0, - loop: HAS_BOOLEAN_VALUE, - low: 0, - manifest: 0, - marginHeight: 0, - marginWidth: 0, - max: 0, - maxLength: 0, - media: 0, - mediaGroup: 0, - method: 0, - min: 0, - minLength: 0, - multiple: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, - muted: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, - name: 0, - nonce: 0, - noValidate: HAS_BOOLEAN_VALUE, - open: HAS_BOOLEAN_VALUE, - optimum: 0, - pattern: 0, - placeholder: 0, - playsInline: HAS_BOOLEAN_VALUE, - poster: 0, - preload: 0, - profile: 0, - radioGroup: 0, - readOnly: HAS_BOOLEAN_VALUE, - referrerPolicy: 0, - rel: 0, - required: HAS_BOOLEAN_VALUE, - reversed: HAS_BOOLEAN_VALUE, - role: 0, - rows: HAS_POSITIVE_NUMERIC_VALUE, - rowSpan: HAS_NUMERIC_VALUE, - sandbox: 0, - scope: 0, - scoped: HAS_BOOLEAN_VALUE, - scrolling: 0, - seamless: HAS_BOOLEAN_VALUE, - selected: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, - shape: 0, - size: HAS_POSITIVE_NUMERIC_VALUE, - sizes: 0, - span: HAS_POSITIVE_NUMERIC_VALUE, - spellCheck: 0, - src: 0, - srcDoc: 0, - srcLang: 0, - srcSet: 0, - start: HAS_NUMERIC_VALUE, - step: 0, - style: 0, - summary: 0, - tabIndex: 0, - target: 0, - title: 0, - type: 0, - useMap: 0, - value: 0, - width: 0, - wmode: 0, - wrap: 0, - about: 0, - datatype: 0, - inlist: 0, - prefix: 0, - property: 0, - resource: 0, - typeof: 0, - vocab: 0, - autoCapitalize: 0, - autoCorrect: 0, - autoSave: 0, - color: 0, - itemProp: 0, - itemScope: HAS_BOOLEAN_VALUE, - itemType: 0, - itemID: 0, - itemRef: 0, - results: 0, - security: 0, - unselectable: 0 - }, - DOMAttributeNames: { - acceptCharset: 'accept-charset', - className: 'class', - htmlFor: 'for', - httpEquiv: 'http-equiv' - }, - DOMPropertyNames: {}, - DOMMutationMethods: { - value: function(node, value) { - if (null == value) return node.removeAttribute('value'); - 'number' !== node.type || !1 === node.hasAttribute('value') - ? node.setAttribute('value', '' + value) - : node.validity && - !node.validity.badInput && - node.ownerDocument.activeElement !== node && - node.setAttribute('value', '' + value); - } - } - }; - module.exports = HTMLDOMPropertyConfig; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var DOMChildrenOperations = __webpack_require__(159), - ReactComponentBrowserEnvironment = { - processChildrenUpdates: __webpack_require__(458).dangerouslyProcessChildrenUpdates, - replaceNodeWithMarkup: DOMChildrenOperations.dangerouslyReplaceNodeWithMarkup - }; - module.exports = ReactComponentBrowserEnvironment; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - DOMLazyTree = __webpack_require__(62), - ExecutionEnvironment = __webpack_require__(19), - createNodesFromMarkup = __webpack_require__(455), - emptyFunction = __webpack_require__(22), - Danger = (__webpack_require__(3), - { - dangerouslyReplaceNodeWithMarkup: function(oldChild, markup) { - if ( - (ExecutionEnvironment.canUseDOM || _prodInvariant('56'), - markup || _prodInvariant('57'), - 'HTML' === oldChild.nodeName && _prodInvariant('58'), - 'string' == typeof markup) - ) { - var newChild = createNodesFromMarkup(markup, emptyFunction)[0]; - oldChild.parentNode.replaceChild(newChild, oldChild); - } else DOMLazyTree.replaceChildWithTree(oldChild, markup); - } - }); - module.exports = Danger; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ExecutionEnvironment = __webpack_require__(19), - createArrayFromMixed = __webpack_require__(456), - getMarkupWrap = __webpack_require__(457), - invariant = __webpack_require__(3), - dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null, - nodeNamePattern = /^\s*<(\w+)/; - module.exports = function createNodesFromMarkup(markup, handleScript) { - var node = dummyNode; - dummyNode || invariant(!1); - var nodeName = (function getNodeName(markup) { - var nodeNameMatch = markup.match(nodeNamePattern); - return nodeNameMatch && nodeNameMatch[1].toLowerCase(); - })(markup), - wrap = nodeName && getMarkupWrap(nodeName); - if (wrap) { - node.innerHTML = wrap[1] + markup + wrap[2]; - for (var wrapDepth = wrap[0]; wrapDepth--; ) node = node.lastChild; - } else node.innerHTML = markup; - var scripts = node.getElementsByTagName('script'); - scripts.length && - (handleScript || invariant(!1), createArrayFromMixed(scripts).forEach(handleScript)); - for (var nodes = Array.from(node.childNodes); node.lastChild; ) - node.removeChild(node.lastChild); - return nodes; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var invariant = __webpack_require__(3); - module.exports = function createArrayFromMixed(obj) { - return (function hasArrayNature(obj) { - return ( - !!obj && - ('object' == typeof obj || 'function' == typeof obj) && - 'length' in obj && - !('setInterval' in obj) && - 'number' != typeof obj.nodeType && - (Array.isArray(obj) || 'callee' in obj || 'item' in obj) - ); - })(obj) - ? Array.isArray(obj) - ? obj.slice() - : (function toArray(obj) { - var length = obj.length; - if ( - ((Array.isArray(obj) || ('object' != typeof obj && 'function' != typeof obj)) && - invariant(!1), - 'number' != typeof length && invariant(!1), - 0 === length || length - 1 in obj || invariant(!1), - 'function' == typeof obj.callee && invariant(!1), - obj.hasOwnProperty) - ) - try { - return Array.prototype.slice.call(obj); - } catch (e) {} - for (var ret = Array(length), ii = 0; ii < length; ii++) ret[ii] = obj[ii]; - return ret; - })(obj) - : [obj]; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ExecutionEnvironment = __webpack_require__(19), - invariant = __webpack_require__(3), - dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null, - shouldWrap = {}, - selectWrap = [1, ''], - tableWrap = [1, '', '
'], - trWrap = [3, '', '
'], - svgWrap = [1, '', ''], - markupWrap = { - '*': [1, '?
', '
'], - area: [1, '', ''], - col: [2, '', '
'], - legend: [1, '
', '
'], - param: [1, '', ''], - tr: [2, '', '
'], - optgroup: selectWrap, - option: selectWrap, - caption: tableWrap, - colgroup: tableWrap, - tbody: tableWrap, - tfoot: tableWrap, - thead: tableWrap, - td: trWrap, - th: trWrap - }; - [ - 'circle', - 'clipPath', - 'defs', - 'ellipse', - 'g', - 'image', - 'line', - 'linearGradient', - 'mask', - 'path', - 'pattern', - 'polygon', - 'polyline', - 'radialGradient', - 'rect', - 'stop', - 'text', - 'tspan' - ].forEach(function(nodeName) { - (markupWrap[nodeName] = svgWrap), (shouldWrap[nodeName] = !0); - }), - (module.exports = function getMarkupWrap(nodeName) { - return ( - dummyNode || invariant(!1), - markupWrap.hasOwnProperty(nodeName) || (nodeName = '*'), - shouldWrap.hasOwnProperty(nodeName) || - ((dummyNode.innerHTML = - '*' === nodeName ? '' : '<' + nodeName + '>'), - (shouldWrap[nodeName] = !dummyNode.firstChild)), - shouldWrap[nodeName] ? markupWrap[nodeName] : null - ); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var DOMChildrenOperations = __webpack_require__(159), - ReactDOMComponentTree = __webpack_require__(13), - ReactDOMIDOperations = { - dangerouslyProcessChildrenUpdates: function(parentInst, updates) { - var node = ReactDOMComponentTree.getNodeFromInstance(parentInst); - DOMChildrenOperations.processUpdates(node, updates); - } - }; - module.exports = ReactDOMIDOperations; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - _assign = __webpack_require__(9), - AutoFocusUtils = __webpack_require__(460), - CSSPropertyOperations = __webpack_require__(461), - DOMLazyTree = __webpack_require__(62), - DOMNamespaces = __webpack_require__(160), - DOMProperty = __webpack_require__(60), - DOMPropertyOperations = __webpack_require__(246), - EventPluginHub = __webpack_require__(80), - EventPluginRegistry = __webpack_require__(153), - ReactBrowserEventEmitter = __webpack_require__(102), - ReactDOMComponentFlags = __webpack_require__(234), - ReactDOMComponentTree = __webpack_require__(13), - ReactDOMInput = __webpack_require__(468), - ReactDOMOption = __webpack_require__(470), - ReactDOMSelect = __webpack_require__(247), - ReactDOMTextarea = __webpack_require__(471), - ReactMultiChild = (__webpack_require__(25), __webpack_require__(472)), - ReactServerRenderingTransaction = __webpack_require__(479), - escapeTextContentForBrowser = (__webpack_require__(22), __webpack_require__(101)), - inputValueTracking = (__webpack_require__(3), - __webpack_require__(157), - __webpack_require__(164), - __webpack_require__(240)), - Flags = (__webpack_require__(168), __webpack_require__(6), ReactDOMComponentFlags), - deleteListener = EventPluginHub.deleteListener, - getNode = ReactDOMComponentTree.getNodeFromInstance, - listenTo = ReactBrowserEventEmitter.listenTo, - registrationNameModules = EventPluginRegistry.registrationNameModules, - CONTENT_TYPES = { string: !0, number: !0 }, - HTML = '__html', - RESERVED_PROPS = { - children: null, - dangerouslySetInnerHTML: null, - suppressContentEditableWarning: null - }, - DOC_FRAGMENT_TYPE = 11; - function getDeclarationErrorAddendum(internalInstance) { - if (internalInstance) { - var owner = internalInstance._currentElement._owner || null; - if (owner) { - var name = owner.getName(); - if (name) return ' This DOM node was rendered by `' + name + '`.'; - } - } - return ''; - } - function assertValidProps(component, props) { - props && - (voidElementTags[component._tag] && - (null != props.children || null != props.dangerouslySetInnerHTML) && - _prodInvariant( - '137', - component._tag, - component._currentElement._owner - ? ' Check the render method of ' + component._currentElement._owner.getName() + '.' - : '' - ), - null != props.dangerouslySetInnerHTML && - (null != props.children && _prodInvariant('60'), - ('object' == typeof props.dangerouslySetInnerHTML && - HTML in props.dangerouslySetInnerHTML) || - _prodInvariant('61')), - null != props.style && - 'object' != typeof props.style && - _prodInvariant('62', getDeclarationErrorAddendum(component))); - } - function enqueuePutListener(inst, registrationName, listener, transaction) { - if (!(transaction instanceof ReactServerRenderingTransaction)) { - 0; - var containerInfo = inst._hostContainerInfo, - doc = - containerInfo._node && containerInfo._node.nodeType === DOC_FRAGMENT_TYPE - ? containerInfo._node - : containerInfo._ownerDocument; - listenTo(registrationName, doc), - transaction - .getReactMountReady() - .enqueue(putListener, { - inst: inst, - registrationName: registrationName, - listener: listener - }); - } - } - function putListener() { - EventPluginHub.putListener(this.inst, this.registrationName, this.listener); - } - function inputPostMount() { - ReactDOMInput.postMountWrapper(this); - } - function textareaPostMount() { - ReactDOMTextarea.postMountWrapper(this); - } - function optionPostMount() { - ReactDOMOption.postMountWrapper(this); - } - var mediaEvents = { - topAbort: 'abort', - topCanPlay: 'canplay', - topCanPlayThrough: 'canplaythrough', - topDurationChange: 'durationchange', - topEmptied: 'emptied', - topEncrypted: 'encrypted', - topEnded: 'ended', - topError: 'error', - topLoadedData: 'loadeddata', - topLoadedMetadata: 'loadedmetadata', - topLoadStart: 'loadstart', - topPause: 'pause', - topPlay: 'play', - topPlaying: 'playing', - topProgress: 'progress', - topRateChange: 'ratechange', - topSeeked: 'seeked', - topSeeking: 'seeking', - topStalled: 'stalled', - topSuspend: 'suspend', - topTimeUpdate: 'timeupdate', - topVolumeChange: 'volumechange', - topWaiting: 'waiting' - }; - function trackInputValue() { - inputValueTracking.track(this); - } - function trapBubbledEventsLocal() { - this._rootNodeID || _prodInvariant('63'); - var node = getNode(this); - switch ((node || _prodInvariant('64'), this._tag)) { - case 'iframe': - case 'object': - this._wrapperState.listeners = [ - ReactBrowserEventEmitter.trapBubbledEvent('topLoad', 'load', node) - ]; - break; - case 'video': - case 'audio': - this._wrapperState.listeners = []; - for (var event in mediaEvents) - mediaEvents.hasOwnProperty(event) && - this._wrapperState.listeners.push( - ReactBrowserEventEmitter.trapBubbledEvent(event, mediaEvents[event], node) - ); - break; - case 'source': - this._wrapperState.listeners = [ - ReactBrowserEventEmitter.trapBubbledEvent('topError', 'error', node) - ]; - break; - case 'img': - this._wrapperState.listeners = [ - ReactBrowserEventEmitter.trapBubbledEvent('topError', 'error', node), - ReactBrowserEventEmitter.trapBubbledEvent('topLoad', 'load', node) - ]; - break; - case 'form': - this._wrapperState.listeners = [ - ReactBrowserEventEmitter.trapBubbledEvent('topReset', 'reset', node), - ReactBrowserEventEmitter.trapBubbledEvent('topSubmit', 'submit', node) - ]; - break; - case 'input': - case 'select': - case 'textarea': - this._wrapperState.listeners = [ - ReactBrowserEventEmitter.trapBubbledEvent('topInvalid', 'invalid', node) - ]; - } - } - function postUpdateSelectWrapper() { - ReactDOMSelect.postUpdateWrapper(this); - } - var omittedCloseTags = { - 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 - }, - newlineEatingTags = { listing: !0, pre: !0, textarea: !0 }, - voidElementTags = _assign({ menuitem: !0 }, omittedCloseTags), - VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, - validatedTagCache = {}, - hasOwnProperty = {}.hasOwnProperty; - function isCustomComponent(tagName, props) { - return tagName.indexOf('-') >= 0 || null != props.is; - } - var globalIdCounter = 1; - function ReactDOMComponent(element) { - var tag = element.type; - !(function validateDangerousTag(tag) { - hasOwnProperty.call(validatedTagCache, tag) || - (VALID_TAG_REGEX.test(tag) || _prodInvariant('65', tag), (validatedTagCache[tag] = !0)); - })(tag), - (this._currentElement = element), - (this._tag = tag.toLowerCase()), - (this._namespaceURI = null), - (this._renderedChildren = null), - (this._previousStyle = null), - (this._previousStyleCopy = null), - (this._hostNode = null), - (this._hostParent = null), - (this._rootNodeID = 0), - (this._domID = 0), - (this._hostContainerInfo = null), - (this._wrapperState = null), - (this._topLevelWrapper = null), - (this._flags = 0); - } - (ReactDOMComponent.displayName = 'ReactDOMComponent'), - (ReactDOMComponent.Mixin = { - mountComponent: function(transaction, hostParent, hostContainerInfo, context) { - (this._rootNodeID = globalIdCounter++), - (this._domID = hostContainerInfo._idCounter++), - (this._hostParent = hostParent), - (this._hostContainerInfo = hostContainerInfo); - var namespaceURI, - parentTag, - mountImage, - props = this._currentElement.props; - switch (this._tag) { - case 'audio': - case 'form': - case 'iframe': - case 'img': - case 'link': - case 'object': - case 'source': - case 'video': - (this._wrapperState = { listeners: null }), - transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this); - break; - case 'input': - ReactDOMInput.mountWrapper(this, props, hostParent), - (props = ReactDOMInput.getHostProps(this, props)), - transaction.getReactMountReady().enqueue(trackInputValue, this), - transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this); - break; - case 'option': - ReactDOMOption.mountWrapper(this, props, hostParent), - (props = ReactDOMOption.getHostProps(this, props)); - break; - case 'select': - ReactDOMSelect.mountWrapper(this, props, hostParent), - (props = ReactDOMSelect.getHostProps(this, props)), - transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this); - break; - case 'textarea': - ReactDOMTextarea.mountWrapper(this, props, hostParent), - (props = ReactDOMTextarea.getHostProps(this, props)), - transaction.getReactMountReady().enqueue(trackInputValue, this), - transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this); - } - if ( - (assertValidProps(this, props), - null != hostParent - ? ((namespaceURI = hostParent._namespaceURI), (parentTag = hostParent._tag)) - : hostContainerInfo._tag && - ((namespaceURI = hostContainerInfo._namespaceURI), - (parentTag = hostContainerInfo._tag)), - (null == namespaceURI || - (namespaceURI === DOMNamespaces.svg && 'foreignobject' === parentTag)) && - (namespaceURI = DOMNamespaces.html), - namespaceURI === DOMNamespaces.html && - ('svg' === this._tag - ? (namespaceURI = DOMNamespaces.svg) - : 'math' === this._tag && (namespaceURI = DOMNamespaces.mathml)), - (this._namespaceURI = namespaceURI), - transaction.useCreateElement) - ) { - var el, - ownerDocument = hostContainerInfo._ownerDocument; - if (namespaceURI === DOMNamespaces.html) - if ('script' === this._tag) { - var div = ownerDocument.createElement('div'), - type = this._currentElement.type; - (div.innerHTML = '<' + type + '>'), - (el = div.removeChild(div.firstChild)); - } else - el = props.is - ? ownerDocument.createElement(this._currentElement.type, props.is) - : ownerDocument.createElement(this._currentElement.type); - else el = ownerDocument.createElementNS(namespaceURI, this._currentElement.type); - ReactDOMComponentTree.precacheNode(this, el), - (this._flags |= Flags.hasCachedChildNodes), - this._hostParent || DOMPropertyOperations.setAttributeForRoot(el), - this._updateDOMProperties(null, props, transaction); - var lazyTree = DOMLazyTree(el); - this._createInitialChildren(transaction, props, context, lazyTree), - (mountImage = lazyTree); - } else { - var tagOpen = this._createOpenTagMarkupAndPutListeners(transaction, props), - tagContent = this._createContentMarkup(transaction, props, context); - mountImage = - !tagContent && omittedCloseTags[this._tag] - ? tagOpen + '/>' - : tagOpen + '>' + tagContent + ''; - } - switch (this._tag) { - case 'input': - transaction.getReactMountReady().enqueue(inputPostMount, this), - props.autoFocus && - transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this); - break; - case 'textarea': - transaction.getReactMountReady().enqueue(textareaPostMount, this), - props.autoFocus && - transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this); - break; - case 'select': - case 'button': - props.autoFocus && - transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this); - break; - case 'option': - transaction.getReactMountReady().enqueue(optionPostMount, this); - } - return mountImage; - }, - _createOpenTagMarkupAndPutListeners: function(transaction, props) { - var ret = '<' + this._currentElement.type; - for (var propKey in props) - if (props.hasOwnProperty(propKey)) { - var propValue = props[propKey]; - if (null != propValue) - if (registrationNameModules.hasOwnProperty(propKey)) - propValue && enqueuePutListener(this, propKey, propValue, transaction); - else { - 'style' === propKey && - (propValue && (propValue = this._previousStyleCopy = _assign({}, props.style)), - (propValue = CSSPropertyOperations.createMarkupForStyles(propValue, this))); - var markup = null; - null != this._tag && isCustomComponent(this._tag, props) - ? RESERVED_PROPS.hasOwnProperty(propKey) || - (markup = DOMPropertyOperations.createMarkupForCustomAttribute( - propKey, - propValue - )) - : (markup = DOMPropertyOperations.createMarkupForProperty(propKey, propValue)), - markup && (ret += ' ' + markup); - } - } - return transaction.renderToStaticMarkup - ? ret - : (this._hostParent || (ret += ' ' + DOMPropertyOperations.createMarkupForRoot()), - (ret += ' ' + DOMPropertyOperations.createMarkupForID(this._domID))); - }, - _createContentMarkup: function(transaction, props, context) { - var ret = '', - innerHTML = props.dangerouslySetInnerHTML; - if (null != innerHTML) null != innerHTML.__html && (ret = innerHTML.__html); - else { - var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null, - childrenToUse = null != contentToUse ? null : props.children; - if (null != contentToUse) ret = escapeTextContentForBrowser(contentToUse); - else if (null != childrenToUse) { - ret = this.mountChildren(childrenToUse, transaction, context).join(''); - } - } - return newlineEatingTags[this._tag] && '\n' === ret.charAt(0) ? '\n' + ret : ret; - }, - _createInitialChildren: function(transaction, props, context, lazyTree) { - var innerHTML = props.dangerouslySetInnerHTML; - if (null != innerHTML) - null != innerHTML.__html && DOMLazyTree.queueHTML(lazyTree, innerHTML.__html); - else { - var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null, - childrenToUse = null != contentToUse ? null : props.children; - if (null != contentToUse) - '' !== contentToUse && DOMLazyTree.queueText(lazyTree, contentToUse); - else if (null != childrenToUse) - for ( - var mountImages = this.mountChildren(childrenToUse, transaction, context), i = 0; - i < mountImages.length; - i++ - ) - DOMLazyTree.queueChild(lazyTree, mountImages[i]); - } - }, - receiveComponent: function(nextElement, transaction, context) { - var prevElement = this._currentElement; - (this._currentElement = nextElement), - this.updateComponent(transaction, prevElement, nextElement, context); - }, - updateComponent: function(transaction, prevElement, nextElement, context) { - var lastProps = prevElement.props, - nextProps = this._currentElement.props; - switch (this._tag) { - case 'input': - (lastProps = ReactDOMInput.getHostProps(this, lastProps)), - (nextProps = ReactDOMInput.getHostProps(this, nextProps)); - break; - case 'option': - (lastProps = ReactDOMOption.getHostProps(this, lastProps)), - (nextProps = ReactDOMOption.getHostProps(this, nextProps)); - break; - case 'select': - (lastProps = ReactDOMSelect.getHostProps(this, lastProps)), - (nextProps = ReactDOMSelect.getHostProps(this, nextProps)); - break; - case 'textarea': - (lastProps = ReactDOMTextarea.getHostProps(this, lastProps)), - (nextProps = ReactDOMTextarea.getHostProps(this, nextProps)); - } - switch ((assertValidProps(this, nextProps), - this._updateDOMProperties(lastProps, nextProps, transaction), - this._updateDOMChildren(lastProps, nextProps, transaction, context), - this._tag)) { - case 'input': - ReactDOMInput.updateWrapper(this), inputValueTracking.updateValueIfChanged(this); - break; - case 'textarea': - ReactDOMTextarea.updateWrapper(this); - break; - case 'select': - transaction.getReactMountReady().enqueue(postUpdateSelectWrapper, this); - } - }, - _updateDOMProperties: function(lastProps, nextProps, transaction) { - var propKey, styleName, styleUpdates; - for (propKey in lastProps) - if ( - !nextProps.hasOwnProperty(propKey) && - lastProps.hasOwnProperty(propKey) && - null != lastProps[propKey] - ) - if ('style' === propKey) { - var lastStyle = this._previousStyleCopy; - for (styleName in lastStyle) - lastStyle.hasOwnProperty(styleName) && - ((styleUpdates = styleUpdates || {})[styleName] = ''); - this._previousStyleCopy = null; - } else - registrationNameModules.hasOwnProperty(propKey) - ? lastProps[propKey] && deleteListener(this, propKey) - : isCustomComponent(this._tag, lastProps) - ? RESERVED_PROPS.hasOwnProperty(propKey) || - DOMPropertyOperations.deleteValueForAttribute(getNode(this), propKey) - : (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) && - DOMPropertyOperations.deleteValueForProperty(getNode(this), propKey); - for (propKey in nextProps) { - var nextProp = nextProps[propKey], - lastProp = - 'style' === propKey - ? this._previousStyleCopy - : null != lastProps ? lastProps[propKey] : void 0; - if ( - nextProps.hasOwnProperty(propKey) && - nextProp !== lastProp && - (null != nextProp || null != lastProp) - ) - if ('style' === propKey) - if ( - (nextProp - ? (nextProp = this._previousStyleCopy = _assign({}, nextProp)) - : (this._previousStyleCopy = null), - lastProp) - ) { - for (styleName in lastProp) - !lastProp.hasOwnProperty(styleName) || - (nextProp && nextProp.hasOwnProperty(styleName)) || - ((styleUpdates = styleUpdates || {})[styleName] = ''); - for (styleName in nextProp) - nextProp.hasOwnProperty(styleName) && - lastProp[styleName] !== nextProp[styleName] && - ((styleUpdates = styleUpdates || {})[styleName] = nextProp[styleName]); - } else styleUpdates = nextProp; - else if (registrationNameModules.hasOwnProperty(propKey)) - nextProp - ? enqueuePutListener(this, propKey, nextProp, transaction) - : lastProp && deleteListener(this, propKey); - else if (isCustomComponent(this._tag, nextProps)) - RESERVED_PROPS.hasOwnProperty(propKey) || - DOMPropertyOperations.setValueForAttribute(getNode(this), propKey, nextProp); - else if (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) { - var node = getNode(this); - null != nextProp - ? DOMPropertyOperations.setValueForProperty(node, propKey, nextProp) - : DOMPropertyOperations.deleteValueForProperty(node, propKey); - } - } - styleUpdates && - CSSPropertyOperations.setValueForStyles(getNode(this), styleUpdates, this); - }, - _updateDOMChildren: function(lastProps, nextProps, transaction, context) { - var lastContent = CONTENT_TYPES[typeof lastProps.children] ? lastProps.children : null, - nextContent = CONTENT_TYPES[typeof nextProps.children] ? nextProps.children : null, - lastHtml = - lastProps.dangerouslySetInnerHTML && lastProps.dangerouslySetInnerHTML.__html, - nextHtml = - nextProps.dangerouslySetInnerHTML && nextProps.dangerouslySetInnerHTML.__html, - lastChildren = null != lastContent ? null : lastProps.children, - nextChildren = null != nextContent ? null : nextProps.children, - lastHasContentOrHtml = null != lastContent || null != lastHtml, - nextHasContentOrHtml = null != nextContent || null != nextHtml; - null != lastChildren && null == nextChildren - ? this.updateChildren(null, transaction, context) - : lastHasContentOrHtml && !nextHasContentOrHtml && this.updateTextContent(''), - null != nextContent - ? lastContent !== nextContent && this.updateTextContent('' + nextContent) - : null != nextHtml - ? lastHtml !== nextHtml && this.updateMarkup('' + nextHtml) - : null != nextChildren && this.updateChildren(nextChildren, transaction, context); - }, - getHostNode: function() { - return getNode(this); - }, - unmountComponent: function(safely) { - switch (this._tag) { - case 'audio': - case 'form': - case 'iframe': - case 'img': - case 'link': - case 'object': - case 'source': - case 'video': - var listeners = this._wrapperState.listeners; - if (listeners) for (var i = 0; i < listeners.length; i++) listeners[i].remove(); - break; - case 'input': - case 'textarea': - inputValueTracking.stopTracking(this); - break; - case 'html': - case 'head': - case 'body': - _prodInvariant('66', this._tag); - } - this.unmountChildren(safely), - ReactDOMComponentTree.uncacheNode(this), - EventPluginHub.deleteAllListeners(this), - (this._rootNodeID = 0), - (this._domID = 0), - (this._wrapperState = null); - }, - getPublicInstance: function() { - return getNode(this); - } - }), - _assign(ReactDOMComponent.prototype, ReactDOMComponent.Mixin, ReactMultiChild.Mixin), - (module.exports = ReactDOMComponent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactDOMComponentTree = __webpack_require__(13), - focusNode = __webpack_require__(244), - AutoFocusUtils = { - focusDOMComponent: function() { - focusNode(ReactDOMComponentTree.getNodeFromInstance(this)); - } - }; - module.exports = AutoFocusUtils; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var CSSProperty = __webpack_require__(245), - ExecutionEnvironment = __webpack_require__(19), - dangerousStyleValue = (__webpack_require__(25), - __webpack_require__(283), - __webpack_require__(463)), - hyphenateStyleName = __webpack_require__(284), - memoizeStringOnly = __webpack_require__(285), - processStyleName = (__webpack_require__(6), - memoizeStringOnly(function(styleName) { - return hyphenateStyleName(styleName); - })), - hasShorthandPropertyBug = !1, - styleFloatAccessor = 'cssFloat'; - if (ExecutionEnvironment.canUseDOM) { - var tempStyle = document.createElement('div').style; - try { - tempStyle.font = ''; - } catch (e) { - hasShorthandPropertyBug = !0; - } - void 0 === document.documentElement.style.cssFloat && (styleFloatAccessor = 'styleFloat'); - } - var CSSPropertyOperations = { - createMarkupForStyles: function(styles, component) { - var serialized = ''; - for (var styleName in styles) - if (styles.hasOwnProperty(styleName)) { - var isCustomProperty = 0 === styleName.indexOf('--'), - styleValue = styles[styleName]; - 0, - null != styleValue && - ((serialized += processStyleName(styleName) + ':'), - (serialized += - dangerousStyleValue(styleName, styleValue, component, isCustomProperty) + ';')); - } - return serialized || null; - }, - setValueForStyles: function(node, styles, component) { - var style = node.style; - for (var styleName in styles) - if (styles.hasOwnProperty(styleName)) { - var isCustomProperty = 0 === styleName.indexOf('--'); - 0; - var styleValue = dangerousStyleValue( - styleName, - styles[styleName], - component, - isCustomProperty - ); - if ( - (('float' !== styleName && 'cssFloat' !== styleName) || - (styleName = styleFloatAccessor), - isCustomProperty) - ) - style.setProperty(styleName, styleValue); - else if (styleValue) style[styleName] = styleValue; - else { - var expansion = - hasShorthandPropertyBug && CSSProperty.shorthandPropertyExpansions[styleName]; - if (expansion) - for (var individualStyleName in expansion) style[individualStyleName] = ''; - else style[styleName] = ''; - } - } - } - }; - module.exports = CSSPropertyOperations; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _hyphenPattern = /-(.)/g; - module.exports = function camelize(string) { - return string.replace(_hyphenPattern, function(_, character) { - return character.toUpperCase(); - }); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var CSSProperty = __webpack_require__(245), - isUnitlessNumber = (__webpack_require__(6), CSSProperty.isUnitlessNumber); - module.exports = function dangerousStyleValue(name, value, component, isCustomProperty) { - if (null == value || 'boolean' == typeof value || '' === value) return ''; - var isNonNumeric = isNaN(value); - return isCustomProperty || - isNonNumeric || - 0 === value || - (isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]) - ? '' + value - : ('string' == typeof value && (value = value.trim()), value + 'px'); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _uppercasePattern = /([A-Z])/g; - module.exports = function hyphenate(string) { - return string.replace(_uppercasePattern, '-$1').toLowerCase(); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var escapeTextContentForBrowser = __webpack_require__(101); - module.exports = function quoteAttributeValueForBrowser(value) { - return '"' + escapeTextContentForBrowser(value) + '"'; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var EventPluginHub = __webpack_require__(80); - var ReactEventEmitterMixin = { - handleTopLevel: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - !(function runEventQueueInBatch(events) { - EventPluginHub.enqueueEvents(events), EventPluginHub.processEventQueue(!1); - })(EventPluginHub.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget)); - } - }; - module.exports = ReactEventEmitterMixin; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ExecutionEnvironment = __webpack_require__(19); - function makePrefixMap(styleProp, eventName) { - var prefixes = {}; - return ( - (prefixes[styleProp.toLowerCase()] = eventName.toLowerCase()), - (prefixes['Webkit' + styleProp] = 'webkit' + eventName), - (prefixes['Moz' + styleProp] = 'moz' + eventName), - (prefixes['ms' + styleProp] = 'MS' + eventName), - (prefixes['O' + styleProp] = 'o' + eventName.toLowerCase()), - prefixes - ); - } - var vendorPrefixes = { - animationend: makePrefixMap('Animation', 'AnimationEnd'), - animationiteration: makePrefixMap('Animation', 'AnimationIteration'), - animationstart: makePrefixMap('Animation', 'AnimationStart'), - transitionend: makePrefixMap('Transition', 'TransitionEnd') - }, - prefixedEventNames = {}, - style = {}; - ExecutionEnvironment.canUseDOM && - ((style = document.createElement('div').style), - 'AnimationEvent' in window || - (delete vendorPrefixes.animationend.animation, - delete vendorPrefixes.animationiteration.animation, - delete vendorPrefixes.animationstart.animation), - 'TransitionEvent' in window || delete vendorPrefixes.transitionend.transition), - (module.exports = function getVendorPrefixedEventName(eventName) { - if (prefixedEventNames[eventName]) return prefixedEventNames[eventName]; - if (!vendorPrefixes[eventName]) return eventName; - var prefixMap = vendorPrefixes[eventName]; - for (var styleProp in prefixMap) - if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) - return (prefixedEventNames[eventName] = prefixMap[styleProp]); - return ''; - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - _assign = __webpack_require__(9), - DOMPropertyOperations = __webpack_require__(246), - LinkedValueUtils = __webpack_require__(162), - ReactDOMComponentTree = __webpack_require__(13), - ReactUpdates = __webpack_require__(30); - __webpack_require__(3), __webpack_require__(6); - function forceUpdateIfMounted() { - this._rootNodeID && ReactDOMInput.updateWrapper(this); - } - function isControlled(props) { - return 'checkbox' === props.type || 'radio' === props.type - ? null != props.checked - : null != props.value; - } - var ReactDOMInput = { - getHostProps: function(inst, props) { - var value = LinkedValueUtils.getValue(props), - checked = LinkedValueUtils.getChecked(props); - return _assign({ type: void 0, step: void 0, min: void 0, max: void 0 }, props, { - defaultChecked: void 0, - defaultValue: void 0, - value: null != value ? value : inst._wrapperState.initialValue, - checked: null != checked ? checked : inst._wrapperState.initialChecked, - onChange: inst._wrapperState.onChange - }); - }, - mountWrapper: function(inst, props) { - var defaultValue = props.defaultValue; - inst._wrapperState = { - initialChecked: null != props.checked ? props.checked : props.defaultChecked, - initialValue: null != props.value ? props.value : defaultValue, - listeners: null, - onChange: function _handleChange(event) { - var props = this._currentElement.props, - returnValue = LinkedValueUtils.executeOnChange(props, event); - ReactUpdates.asap(forceUpdateIfMounted, this); - var name = props.name; - if ('radio' === props.type && null != name) { - for ( - var rootNode = ReactDOMComponentTree.getNodeFromInstance(this), - queryRoot = rootNode; - queryRoot.parentNode; - - ) - queryRoot = queryRoot.parentNode; - for ( - var group = queryRoot.querySelectorAll( - 'input[name=' + JSON.stringify('' + name) + '][type="radio"]' - ), - i = 0; - i < group.length; - i++ - ) { - var otherNode = group[i]; - if (otherNode !== rootNode && otherNode.form === rootNode.form) { - var otherInstance = ReactDOMComponentTree.getInstanceFromNode(otherNode); - otherInstance || _prodInvariant('90'), - ReactUpdates.asap(forceUpdateIfMounted, otherInstance); - } - } - } - return returnValue; - }.bind(inst), - controlled: isControlled(props) - }; - }, - updateWrapper: function(inst) { - var props = inst._currentElement.props, - checked = props.checked; - null != checked && - DOMPropertyOperations.setValueForProperty( - ReactDOMComponentTree.getNodeFromInstance(inst), - 'checked', - checked || !1 - ); - var node = ReactDOMComponentTree.getNodeFromInstance(inst), - value = LinkedValueUtils.getValue(props); - if (null != value) - if (0 === value && '' === node.value) node.value = '0'; - else if ('number' === props.type) { - var valueAsNumber = parseFloat(node.value, 10) || 0; - (value != valueAsNumber || (value == valueAsNumber && node.value != value)) && - (node.value = '' + value); - } else node.value !== '' + value && (node.value = '' + value); - else - null == props.value && - null != props.defaultValue && - node.defaultValue !== '' + props.defaultValue && - (node.defaultValue = '' + props.defaultValue), - null == props.checked && - null != props.defaultChecked && - (node.defaultChecked = !!props.defaultChecked); - }, - postMountWrapper: function(inst) { - var props = inst._currentElement.props, - node = ReactDOMComponentTree.getNodeFromInstance(inst); - switch (props.type) { - case 'submit': - case 'reset': - break; - case 'color': - case 'date': - case 'datetime': - case 'datetime-local': - case 'month': - case 'time': - case 'week': - (node.value = ''), (node.value = node.defaultValue); - break; - default: - node.value = node.value; - } - var name = node.name; - '' !== name && (node.name = ''), - (node.defaultChecked = !node.defaultChecked), - (node.defaultChecked = !node.defaultChecked), - '' !== name && (node.name = name); - } - }; - module.exports = ReactDOMInput; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - React = __webpack_require__(56), - ReactDOMComponentTree = __webpack_require__(13), - ReactDOMSelect = __webpack_require__(247), - didWarnInvalidOptionChildren = (__webpack_require__(6), !1); - function flattenChildren(children) { - var content = ''; - return ( - React.Children.forEach(children, function(child) { - null != child && - ('string' == typeof child || 'number' == typeof child - ? (content += child) - : didWarnInvalidOptionChildren || (didWarnInvalidOptionChildren = !0)); - }), - content - ); - } - var ReactDOMOption = { - mountWrapper: function(inst, props, hostParent) { - var selectValue = null; - if (null != hostParent) { - var selectParent = hostParent; - 'optgroup' === selectParent._tag && (selectParent = selectParent._hostParent), - null != selectParent && - 'select' === selectParent._tag && - (selectValue = ReactDOMSelect.getSelectValueContext(selectParent)); - } - var value, - selected = null; - if (null != selectValue) - if ( - ((value = null != props.value ? props.value + '' : flattenChildren(props.children)), - (selected = !1), - Array.isArray(selectValue)) - ) { - for (var i = 0; i < selectValue.length; i++) - if ('' + selectValue[i] === value) { - selected = !0; - break; - } - } else selected = '' + selectValue === value; - inst._wrapperState = { selected: selected }; - }, - postMountWrapper: function(inst) { - var props = inst._currentElement.props; - null != props.value && - ReactDOMComponentTree.getNodeFromInstance(inst).setAttribute('value', props.value); - }, - getHostProps: function(inst, props) { - var hostProps = _assign({ selected: void 0, children: void 0 }, props); - null != inst._wrapperState.selected && (hostProps.selected = inst._wrapperState.selected); - var content = flattenChildren(props.children); - return content && (hostProps.children = content), hostProps; - } - }; - module.exports = ReactDOMOption; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - _assign = __webpack_require__(9), - LinkedValueUtils = __webpack_require__(162), - ReactDOMComponentTree = __webpack_require__(13), - ReactUpdates = __webpack_require__(30); - __webpack_require__(3), __webpack_require__(6); - function forceUpdateIfMounted() { - this._rootNodeID && ReactDOMTextarea.updateWrapper(this); - } - var ReactDOMTextarea = { - getHostProps: function(inst, props) { - return ( - null != props.dangerouslySetInnerHTML && _prodInvariant('91'), - _assign({}, props, { - value: void 0, - defaultValue: void 0, - children: '' + inst._wrapperState.initialValue, - onChange: inst._wrapperState.onChange - }) - ); - }, - mountWrapper: function(inst, props) { - var value = LinkedValueUtils.getValue(props), - initialValue = value; - if (null == value) { - var defaultValue = props.defaultValue, - children = props.children; - null != children && - (null != defaultValue && _prodInvariant('92'), - Array.isArray(children) && - (children.length <= 1 || _prodInvariant('93'), (children = children[0])), - (defaultValue = '' + children)), - null == defaultValue && (defaultValue = ''), - (initialValue = defaultValue); - } - inst._wrapperState = { - initialValue: '' + initialValue, - listeners: null, - onChange: function _handleChange(event) { - var props = this._currentElement.props, - returnValue = LinkedValueUtils.executeOnChange(props, event); - return ReactUpdates.asap(forceUpdateIfMounted, this), returnValue; - }.bind(inst) - }; - }, - updateWrapper: function(inst) { - var props = inst._currentElement.props, - node = ReactDOMComponentTree.getNodeFromInstance(inst), - value = LinkedValueUtils.getValue(props); - if (null != value) { - var newValue = '' + value; - newValue !== node.value && (node.value = newValue), - null == props.defaultValue && (node.defaultValue = newValue); - } - null != props.defaultValue && (node.defaultValue = props.defaultValue); - }, - postMountWrapper: function(inst) { - var node = ReactDOMComponentTree.getNodeFromInstance(inst), - textContent = node.textContent; - textContent === inst._wrapperState.initialValue && (node.value = textContent); - } - }; - module.exports = ReactDOMTextarea; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - ReactComponentEnvironment = __webpack_require__(163), - ReactReconciler = (__webpack_require__(82), - __webpack_require__(25), - __webpack_require__(32), - __webpack_require__(61)), - ReactChildReconciler = __webpack_require__(473), - flattenChildren = (__webpack_require__(22), __webpack_require__(478)); - __webpack_require__(3); - function enqueue(queue, update) { - return update && (queue = queue || []).push(update), queue; - } - function processQueue(inst, updateQueue) { - ReactComponentEnvironment.processChildrenUpdates(inst, updateQueue); - } - var ReactMultiChild = { - Mixin: { - _reconcilerInstantiateChildren: function(nestedChildren, transaction, context) { - return ReactChildReconciler.instantiateChildren(nestedChildren, transaction, context); - }, - _reconcilerUpdateChildren: function( - prevChildren, - nextNestedChildrenElements, - mountImages, - removedNodes, - transaction, - context - ) { - var nextChildren, - selfDebugID = 0; - return ( - (nextChildren = flattenChildren(nextNestedChildrenElements, selfDebugID)), - ReactChildReconciler.updateChildren( - prevChildren, - nextChildren, - mountImages, - removedNodes, - transaction, - this, - this._hostContainerInfo, - context, - selfDebugID - ), - nextChildren - ); - }, - mountChildren: function(nestedChildren, transaction, context) { - var children = this._reconcilerInstantiateChildren(nestedChildren, transaction, context); - this._renderedChildren = children; - var mountImages = [], - index = 0; - for (var name in children) - if (children.hasOwnProperty(name)) { - var child = children[name], - selfDebugID = 0; - 0; - var mountImage = ReactReconciler.mountComponent( - child, - transaction, - this, - this._hostContainerInfo, - context, - selfDebugID - ); - (child._mountIndex = index++), mountImages.push(mountImage); - } - return mountImages; - }, - updateTextContent: function(nextContent) { - var prevChildren = this._renderedChildren; - ReactChildReconciler.unmountChildren(prevChildren, !1); - for (var name in prevChildren) prevChildren.hasOwnProperty(name) && _prodInvariant('118'); - processQueue(this, [ - (function makeTextContent(textContent) { - return { - type: 'TEXT_CONTENT', - content: textContent, - fromIndex: null, - fromNode: null, - toIndex: null, - afterNode: null - }; - })(nextContent) - ]); - }, - updateMarkup: function(nextMarkup) { - var prevChildren = this._renderedChildren; - ReactChildReconciler.unmountChildren(prevChildren, !1); - for (var name in prevChildren) prevChildren.hasOwnProperty(name) && _prodInvariant('118'); - processQueue(this, [ - (function makeSetMarkup(markup) { - return { - type: 'SET_MARKUP', - content: markup, - fromIndex: null, - fromNode: null, - toIndex: null, - afterNode: null - }; - })(nextMarkup) - ]); - }, - updateChildren: function(nextNestedChildrenElements, transaction, context) { - this._updateChildren(nextNestedChildrenElements, transaction, context); - }, - _updateChildren: function(nextNestedChildrenElements, transaction, context) { - var prevChildren = this._renderedChildren, - removedNodes = {}, - mountImages = [], - nextChildren = this._reconcilerUpdateChildren( - prevChildren, - nextNestedChildrenElements, - mountImages, - removedNodes, - transaction, - context - ); - if (nextChildren || prevChildren) { - var name, - updates = null, - nextIndex = 0, - lastIndex = 0, - nextMountIndex = 0, - lastPlacedNode = null; - for (name in nextChildren) - if (nextChildren.hasOwnProperty(name)) { - var prevChild = prevChildren && prevChildren[name], - nextChild = nextChildren[name]; - prevChild === nextChild - ? ((updates = enqueue( - updates, - this.moveChild(prevChild, lastPlacedNode, nextIndex, lastIndex) - )), - (lastIndex = Math.max(prevChild._mountIndex, lastIndex)), - (prevChild._mountIndex = nextIndex)) - : (prevChild && (lastIndex = Math.max(prevChild._mountIndex, lastIndex)), - (updates = enqueue( - updates, - this._mountChildAtIndex( - nextChild, - mountImages[nextMountIndex], - lastPlacedNode, - nextIndex, - transaction, - context - ) - )), - nextMountIndex++), - nextIndex++, - (lastPlacedNode = ReactReconciler.getHostNode(nextChild)); - } - for (name in removedNodes) - removedNodes.hasOwnProperty(name) && - (updates = enqueue( - updates, - this._unmountChild(prevChildren[name], removedNodes[name]) - )); - updates && processQueue(this, updates), (this._renderedChildren = nextChildren); - } - }, - unmountChildren: function(safely) { - var renderedChildren = this._renderedChildren; - ReactChildReconciler.unmountChildren(renderedChildren, safely), - (this._renderedChildren = null); - }, - moveChild: function(child, afterNode, toIndex, lastIndex) { - if (child._mountIndex < lastIndex) - return (function makeMove(child, afterNode, toIndex) { - return { - type: 'MOVE_EXISTING', - content: null, - fromIndex: child._mountIndex, - fromNode: ReactReconciler.getHostNode(child), - toIndex: toIndex, - afterNode: afterNode - }; - })(child, afterNode, toIndex); - }, - createChild: function(child, afterNode, mountImage) { - return (function makeInsertMarkup(markup, afterNode, toIndex) { - return { - type: 'INSERT_MARKUP', - content: markup, - fromIndex: null, - fromNode: null, - toIndex: toIndex, - afterNode: afterNode - }; - })(mountImage, afterNode, child._mountIndex); - }, - removeChild: function(child, node) { - return (function makeRemove(child, node) { - return { - type: 'REMOVE_NODE', - content: null, - fromIndex: child._mountIndex, - fromNode: node, - toIndex: null, - afterNode: null - }; - })(child, node); - }, - _mountChildAtIndex: function(child, mountImage, afterNode, index, transaction, context) { - return (child._mountIndex = index), this.createChild(child, afterNode, mountImage); - }, - _unmountChild: function(child, node) { - var update = this.removeChild(child, node); - return (child._mountIndex = null), update; - } - } - }; - module.exports = ReactMultiChild; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - (function(process) { - var ReactReconciler = __webpack_require__(61), - instantiateReactComponent = __webpack_require__(248), - shouldUpdateReactComponent = (__webpack_require__(166), __webpack_require__(165)), - traverseAllChildren = __webpack_require__(252); - __webpack_require__(6); - function instantiateChild(childInstances, child, name, selfDebugID) { - var keyUnique = void 0 === childInstances[name]; - null != child && keyUnique && (childInstances[name] = instantiateReactComponent(child, !0)); - } - void 0 !== process && Object({ NODE_ENV: 'production', PUBLIC_URL: '.' }); - var ReactChildReconciler = { - instantiateChildren: function(nestedChildNodes, transaction, context, selfDebugID) { - if (null == nestedChildNodes) return null; - var childInstances = {}; - return ( - traverseAllChildren(nestedChildNodes, instantiateChild, childInstances), childInstances - ); - }, - updateChildren: function( - prevChildren, - nextChildren, - mountImages, - removedNodes, - transaction, - hostParent, - hostContainerInfo, - context, - selfDebugID - ) { - if (nextChildren || prevChildren) { - var name, prevChild; - for (name in nextChildren) - if (nextChildren.hasOwnProperty(name)) { - var prevElement = - (prevChild = prevChildren && prevChildren[name]) && prevChild._currentElement, - nextElement = nextChildren[name]; - if (null != prevChild && shouldUpdateReactComponent(prevElement, nextElement)) - ReactReconciler.receiveComponent(prevChild, nextElement, transaction, context), - (nextChildren[name] = prevChild); - else { - prevChild && - ((removedNodes[name] = ReactReconciler.getHostNode(prevChild)), - ReactReconciler.unmountComponent(prevChild, !1)); - var nextChildInstance = instantiateReactComponent(nextElement, !0); - nextChildren[name] = nextChildInstance; - var nextChildMountImage = ReactReconciler.mountComponent( - nextChildInstance, - transaction, - hostParent, - hostContainerInfo, - context, - selfDebugID - ); - mountImages.push(nextChildMountImage); - } - } - for (name in prevChildren) - !prevChildren.hasOwnProperty(name) || - (nextChildren && nextChildren.hasOwnProperty(name)) || - ((prevChild = prevChildren[name]), - (removedNodes[name] = ReactReconciler.getHostNode(prevChild)), - ReactReconciler.unmountComponent(prevChild, !1)); - } - }, - unmountChildren: function(renderedChildren, safely) { - for (var name in renderedChildren) - if (renderedChildren.hasOwnProperty(name)) { - var renderedChild = renderedChildren[name]; - ReactReconciler.unmountComponent(renderedChild, safely); - } - } - }; - module.exports = ReactChildReconciler; - }.call(exports, __webpack_require__(134))); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - _assign = __webpack_require__(9), - React = __webpack_require__(56), - ReactComponentEnvironment = __webpack_require__(163), - ReactCurrentOwner = __webpack_require__(32), - ReactErrorUtils = __webpack_require__(155), - ReactInstanceMap = __webpack_require__(82), - ReactNodeTypes = (__webpack_require__(25), __webpack_require__(249)), - ReactReconciler = __webpack_require__(61), - emptyObject = __webpack_require__(93), - shallowEqual = (__webpack_require__(3), __webpack_require__(164)), - shouldUpdateReactComponent = __webpack_require__(165), - CompositeTypes_ImpureClass = (__webpack_require__(6), 0), - CompositeTypes_PureClass = 1, - CompositeTypes_StatelessFunctional = 2; - function StatelessComponent(Component) {} - function warnIfInvalidElement(Component, element) { - 0; - } - StatelessComponent.prototype.render = function() { - var Component = ReactInstanceMap.get(this)._currentElement.type, - element = Component(this.props, this.context, this.updater); - return warnIfInvalidElement(Component, element), element; - }; - var nextMountID = 1, - ReactCompositeComponent = { - construct: function(element) { - (this._currentElement = element), - (this._rootNodeID = 0), - (this._compositeType = null), - (this._instance = null), - (this._hostParent = null), - (this._hostContainerInfo = null), - (this._updateBatchNumber = null), - (this._pendingElement = null), - (this._pendingStateQueue = null), - (this._pendingReplaceState = !1), - (this._pendingForceUpdate = !1), - (this._renderedNodeType = null), - (this._renderedComponent = null), - (this._context = null), - (this._mountOrder = 0), - (this._topLevelWrapper = null), - (this._pendingCallbacks = null), - (this._calledComponentWillUnmount = !1); - }, - mountComponent: function(transaction, hostParent, hostContainerInfo, context) { - (this._context = context), - (this._mountOrder = nextMountID++), - (this._hostParent = hostParent), - (this._hostContainerInfo = hostContainerInfo); - var renderedElement, - publicProps = this._currentElement.props, - publicContext = this._processContext(context), - Component = this._currentElement.type, - updateQueue = transaction.getUpdateQueue(), - doConstruct = (function shouldConstruct(Component) { - return !(!Component.prototype || !Component.prototype.isReactComponent); - })(Component), - inst = this._constructComponent(doConstruct, publicProps, publicContext, updateQueue); - doConstruct || (null != inst && null != inst.render) - ? !(function isPureComponent(Component) { - return !(!Component.prototype || !Component.prototype.isPureReactComponent); - })(Component) - ? (this._compositeType = CompositeTypes_ImpureClass) - : (this._compositeType = CompositeTypes_PureClass) - : ((renderedElement = inst), - warnIfInvalidElement(), - null === inst || - !1 === inst || - React.isValidElement(inst) || - _prodInvariant('105', Component.displayName || Component.name || 'Component'), - (inst = new StatelessComponent(Component)), - (this._compositeType = CompositeTypes_StatelessFunctional)), - (inst.props = publicProps), - (inst.context = publicContext), - (inst.refs = emptyObject), - (inst.updater = updateQueue), - (this._instance = inst), - ReactInstanceMap.set(inst, this); - var markup, - initialState = inst.state; - return ( - void 0 === initialState && (inst.state = initialState = null), - ('object' != typeof initialState || Array.isArray(initialState)) && - _prodInvariant('106', this.getName() || 'ReactCompositeComponent'), - (this._pendingStateQueue = null), - (this._pendingReplaceState = !1), - (this._pendingForceUpdate = !1), - (markup = inst.unstable_handleError - ? this.performInitialMountWithErrorHandling( - renderedElement, - hostParent, - hostContainerInfo, - transaction, - context - ) - : this.performInitialMount( - renderedElement, - hostParent, - hostContainerInfo, - transaction, - context - )), - inst.componentDidMount && - transaction.getReactMountReady().enqueue(inst.componentDidMount, inst), - markup - ); - }, - _constructComponent: function(doConstruct, publicProps, publicContext, updateQueue) { - return this._constructComponentWithoutOwner( - doConstruct, - publicProps, - publicContext, - updateQueue - ); - }, - _constructComponentWithoutOwner: function( - doConstruct, - publicProps, - publicContext, - updateQueue - ) { - var Component = this._currentElement.type; - return doConstruct - ? new Component(publicProps, publicContext, updateQueue) - : Component(publicProps, publicContext, updateQueue); - }, - performInitialMountWithErrorHandling: function( - renderedElement, - hostParent, - hostContainerInfo, - transaction, - context - ) { - var markup, - checkpoint = transaction.checkpoint(); - try { - markup = this.performInitialMount( - renderedElement, - hostParent, - hostContainerInfo, - transaction, - context - ); - } catch (e) { - transaction.rollback(checkpoint), - this._instance.unstable_handleError(e), - this._pendingStateQueue && - (this._instance.state = this._processPendingState( - this._instance.props, - this._instance.context - )), - (checkpoint = transaction.checkpoint()), - this._renderedComponent.unmountComponent(!0), - transaction.rollback(checkpoint), - (markup = this.performInitialMount( - renderedElement, - hostParent, - hostContainerInfo, - transaction, - context - )); - } - return markup; - }, - performInitialMount: function( - renderedElement, - hostParent, - hostContainerInfo, - transaction, - context - ) { - var inst = this._instance, - debugID = 0; - inst.componentWillMount && - (inst.componentWillMount(), - this._pendingStateQueue && - (inst.state = this._processPendingState(inst.props, inst.context))), - void 0 === renderedElement && (renderedElement = this._renderValidatedComponent()); - var nodeType = ReactNodeTypes.getType(renderedElement); - this._renderedNodeType = nodeType; - var child = this._instantiateReactComponent( - renderedElement, - nodeType !== ReactNodeTypes.EMPTY - ); - return ( - (this._renderedComponent = child), - ReactReconciler.mountComponent( - child, - transaction, - hostParent, - hostContainerInfo, - this._processChildContext(context), - debugID - ) - ); - }, - getHostNode: function() { - return ReactReconciler.getHostNode(this._renderedComponent); - }, - unmountComponent: function(safely) { - if (this._renderedComponent) { - var inst = this._instance; - if (inst.componentWillUnmount && !inst._calledComponentWillUnmount) - if (((inst._calledComponentWillUnmount = !0), safely)) { - var name = this.getName() + '.componentWillUnmount()'; - ReactErrorUtils.invokeGuardedCallback(name, inst.componentWillUnmount.bind(inst)); - } else inst.componentWillUnmount(); - this._renderedComponent && - (ReactReconciler.unmountComponent(this._renderedComponent, safely), - (this._renderedNodeType = null), - (this._renderedComponent = null), - (this._instance = null)), - (this._pendingStateQueue = null), - (this._pendingReplaceState = !1), - (this._pendingForceUpdate = !1), - (this._pendingCallbacks = null), - (this._pendingElement = null), - (this._context = null), - (this._rootNodeID = 0), - (this._topLevelWrapper = null), - ReactInstanceMap.remove(inst); - } - }, - _maskContext: function(context) { - var contextTypes = this._currentElement.type.contextTypes; - if (!contextTypes) return emptyObject; - var maskedContext = {}; - for (var contextName in contextTypes) maskedContext[contextName] = context[contextName]; - return maskedContext; - }, - _processContext: function(context) { - var maskedContext = this._maskContext(context); - return maskedContext; - }, - _processChildContext: function(currentContext) { - var childContext, - Component = this._currentElement.type, - inst = this._instance; - if ((inst.getChildContext && (childContext = inst.getChildContext()), childContext)) { - 'object' != typeof Component.childContextTypes && - _prodInvariant('107', this.getName() || 'ReactCompositeComponent'); - for (var name in childContext) - name in Component.childContextTypes || - _prodInvariant('108', this.getName() || 'ReactCompositeComponent', name); - return _assign({}, currentContext, childContext); - } - return currentContext; - }, - _checkContextTypes: function(typeSpecs, values, location) { - 0; - }, - receiveComponent: function(nextElement, transaction, nextContext) { - var prevElement = this._currentElement, - prevContext = this._context; - (this._pendingElement = null), - this.updateComponent(transaction, prevElement, nextElement, prevContext, nextContext); - }, - performUpdateIfNecessary: function(transaction) { - null != this._pendingElement - ? ReactReconciler.receiveComponent( - this, - this._pendingElement, - transaction, - this._context - ) - : null !== this._pendingStateQueue || this._pendingForceUpdate - ? this.updateComponent( - transaction, - this._currentElement, - this._currentElement, - this._context, - this._context - ) - : (this._updateBatchNumber = null); - }, - updateComponent: function( - transaction, - prevParentElement, - nextParentElement, - prevUnmaskedContext, - nextUnmaskedContext - ) { - var inst = this._instance; - null == inst && _prodInvariant('136', this.getName() || 'ReactCompositeComponent'); - var nextContext, - willReceive = !1; - this._context === nextUnmaskedContext - ? (nextContext = inst.context) - : ((nextContext = this._processContext(nextUnmaskedContext)), (willReceive = !0)); - var prevProps = prevParentElement.props, - nextProps = nextParentElement.props; - prevParentElement !== nextParentElement && (willReceive = !0), - willReceive && - inst.componentWillReceiveProps && - inst.componentWillReceiveProps(nextProps, nextContext); - var nextState = this._processPendingState(nextProps, nextContext), - shouldUpdate = !0; - this._pendingForceUpdate || - (inst.shouldComponentUpdate - ? (shouldUpdate = inst.shouldComponentUpdate(nextProps, nextState, nextContext)) - : this._compositeType === CompositeTypes_PureClass && - (shouldUpdate = - !shallowEqual(prevProps, nextProps) || !shallowEqual(inst.state, nextState))), - (this._updateBatchNumber = null), - shouldUpdate - ? ((this._pendingForceUpdate = !1), - this._performComponentUpdate( - nextParentElement, - nextProps, - nextState, - nextContext, - transaction, - nextUnmaskedContext - )) - : ((this._currentElement = nextParentElement), - (this._context = nextUnmaskedContext), - (inst.props = nextProps), - (inst.state = nextState), - (inst.context = nextContext)); - }, - _processPendingState: function(props, context) { - var inst = this._instance, - queue = this._pendingStateQueue, - replace = this._pendingReplaceState; - if (((this._pendingReplaceState = !1), (this._pendingStateQueue = null), !queue)) - return inst.state; - if (replace && 1 === queue.length) return queue[0]; - for ( - var nextState = _assign({}, replace ? queue[0] : inst.state), i = replace ? 1 : 0; - i < queue.length; - i++ - ) { - var partial = queue[i]; - _assign( - nextState, - 'function' == typeof partial ? partial.call(inst, nextState, props, context) : partial - ); - } - return nextState; - }, - _performComponentUpdate: function( - nextElement, - nextProps, - nextState, - nextContext, - transaction, - unmaskedContext - ) { - var prevProps, - prevState, - prevContext, - inst = this._instance, - hasComponentDidUpdate = Boolean(inst.componentDidUpdate); - hasComponentDidUpdate && - ((prevProps = inst.props), (prevState = inst.state), (prevContext = inst.context)), - inst.componentWillUpdate && inst.componentWillUpdate(nextProps, nextState, nextContext), - (this._currentElement = nextElement), - (this._context = unmaskedContext), - (inst.props = nextProps), - (inst.state = nextState), - (inst.context = nextContext), - this._updateRenderedComponent(transaction, unmaskedContext), - hasComponentDidUpdate && - transaction - .getReactMountReady() - .enqueue( - inst.componentDidUpdate.bind(inst, prevProps, prevState, prevContext), - inst - ); - }, - _updateRenderedComponent: function(transaction, context) { - var prevComponentInstance = this._renderedComponent, - prevRenderedElement = prevComponentInstance._currentElement, - nextRenderedElement = this._renderValidatedComponent(), - debugID = 0; - if (shouldUpdateReactComponent(prevRenderedElement, nextRenderedElement)) - ReactReconciler.receiveComponent( - prevComponentInstance, - nextRenderedElement, - transaction, - this._processChildContext(context) - ); - else { - var oldHostNode = ReactReconciler.getHostNode(prevComponentInstance); - ReactReconciler.unmountComponent(prevComponentInstance, !1); - var nodeType = ReactNodeTypes.getType(nextRenderedElement); - this._renderedNodeType = nodeType; - var child = this._instantiateReactComponent( - nextRenderedElement, - nodeType !== ReactNodeTypes.EMPTY - ); - this._renderedComponent = child; - var nextMarkup = ReactReconciler.mountComponent( - child, - transaction, - this._hostParent, - this._hostContainerInfo, - this._processChildContext(context), - debugID - ); - this._replaceNodeWithMarkup(oldHostNode, nextMarkup, prevComponentInstance); - } - }, - _replaceNodeWithMarkup: function(oldHostNode, nextMarkup, prevInstance) { - ReactComponentEnvironment.replaceNodeWithMarkup(oldHostNode, nextMarkup, prevInstance); - }, - _renderValidatedComponentWithoutOwnerOrContext: function() { - var inst = this._instance; - return inst.render(); - }, - _renderValidatedComponent: function() { - var renderedElement; - if (this._compositeType !== CompositeTypes_StatelessFunctional) { - ReactCurrentOwner.current = this; - try { - renderedElement = this._renderValidatedComponentWithoutOwnerOrContext(); - } finally { - ReactCurrentOwner.current = null; - } - } else renderedElement = this._renderValidatedComponentWithoutOwnerOrContext(); - return ( - null === renderedElement || - !1 === renderedElement || - React.isValidElement(renderedElement) || - _prodInvariant('109', this.getName() || 'ReactCompositeComponent'), - renderedElement - ); - }, - attachRef: function(ref, component) { - var inst = this.getPublicInstance(); - null == inst && _prodInvariant('110'); - var publicComponentInstance = component.getPublicInstance(); - (inst.refs === emptyObject ? (inst.refs = {}) : inst.refs)[ref] = publicComponentInstance; - }, - detachRef: function(ref) { - delete this.getPublicInstance().refs[ref]; - }, - getName: function() { - var type = this._currentElement.type, - constructor = this._instance && this._instance.constructor; - return ( - type.displayName || - (constructor && constructor.displayName) || - type.name || - (constructor && constructor.name) || - null - ); - }, - getPublicInstance: function() { - var inst = this._instance; - return this._compositeType === CompositeTypes_StatelessFunctional ? null : inst; - }, - _instantiateReactComponent: null - }; - module.exports = ReactCompositeComponent; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var nextDebugID = 1; - module.exports = function getNextDebugID() { - return nextDebugID++; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var REACT_ELEMENT_TYPE = - ('function' == typeof Symbol && Symbol.for && Symbol.for('react.element')) || 60103; - module.exports = REACT_ELEMENT_TYPE; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ITERATOR_SYMBOL = 'function' == typeof Symbol && Symbol.iterator, - FAUX_ITERATOR_SYMBOL = '@@iterator'; - module.exports = function getIteratorFn(maybeIterable) { - var iteratorFn = - maybeIterable && - ((ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL]) || - maybeIterable[FAUX_ITERATOR_SYMBOL]); - if ('function' == typeof iteratorFn) return iteratorFn; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - (function(process) { - __webpack_require__(166); - var traverseAllChildren = __webpack_require__(252); - __webpack_require__(6); - function flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID) { - if (traverseContext && 'object' == typeof traverseContext) { - var result = traverseContext, - keyUnique = void 0 === result[name]; - 0, keyUnique && null != child && (result[name] = child); - } - } - void 0 !== process && Object({ NODE_ENV: 'production', PUBLIC_URL: '.' }), - (module.exports = function flattenChildren(children, selfDebugID) { - if (null == children) return children; - var result = {}; - return traverseAllChildren(children, flattenSingleChildIntoContext, result), result; - }); - }.call(exports, __webpack_require__(134))); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - PooledClass = __webpack_require__(47), - Transaction = __webpack_require__(98), - ReactServerUpdateQueue = (__webpack_require__(25), __webpack_require__(480)), - TRANSACTION_WRAPPERS = []; - var noopCallbackQueue = { enqueue: function() {} }; - function ReactServerRenderingTransaction(renderToStaticMarkup) { - this.reinitializeTransaction(), - (this.renderToStaticMarkup = renderToStaticMarkup), - (this.useCreateElement = !1), - (this.updateQueue = new ReactServerUpdateQueue(this)); - } - var Mixin = { - getTransactionWrappers: function() { - return TRANSACTION_WRAPPERS; - }, - getReactMountReady: function() { - return noopCallbackQueue; - }, - getUpdateQueue: function() { - return this.updateQueue; - }, - destructor: function() {}, - checkpoint: function() {}, - rollback: function() {} - }; - _assign(ReactServerRenderingTransaction.prototype, Transaction, Mixin), - PooledClass.addPoolingTo(ReactServerRenderingTransaction), - (module.exports = ReactServerRenderingTransaction); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactUpdateQueue = __webpack_require__(167); - __webpack_require__(6); - var ReactServerUpdateQueue = (function() { - function ReactServerUpdateQueue(transaction) { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, ReactServerUpdateQueue), - (this.transaction = transaction); - } - return ( - (ReactServerUpdateQueue.prototype.isMounted = function isMounted(publicInstance) { - return !1; - }), - (ReactServerUpdateQueue.prototype.enqueueCallback = function enqueueCallback( - publicInstance, - callback, - callerName - ) { - this.transaction.isInTransaction() && - ReactUpdateQueue.enqueueCallback(publicInstance, callback, callerName); - }), - (ReactServerUpdateQueue.prototype.enqueueForceUpdate = function enqueueForceUpdate( - publicInstance - ) { - this.transaction.isInTransaction() && ReactUpdateQueue.enqueueForceUpdate(publicInstance); - }), - (ReactServerUpdateQueue.prototype.enqueueReplaceState = function enqueueReplaceState( - publicInstance, - completeState - ) { - this.transaction.isInTransaction() && - ReactUpdateQueue.enqueueReplaceState(publicInstance, completeState); - }), - (ReactServerUpdateQueue.prototype.enqueueSetState = function enqueueSetState( - publicInstance, - partialState - ) { - this.transaction.isInTransaction() && - ReactUpdateQueue.enqueueSetState(publicInstance, partialState); - }), - ReactServerUpdateQueue - ); - })(); - module.exports = ReactServerUpdateQueue; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - DOMLazyTree = __webpack_require__(62), - ReactDOMComponentTree = __webpack_require__(13), - ReactDOMEmptyComponent = function(instantiate) { - (this._currentElement = null), - (this._hostNode = null), - (this._hostParent = null), - (this._hostContainerInfo = null), - (this._domID = 0); - }; - _assign(ReactDOMEmptyComponent.prototype, { - mountComponent: function(transaction, hostParent, hostContainerInfo, context) { - var domID = hostContainerInfo._idCounter++; - (this._domID = domID), - (this._hostParent = hostParent), - (this._hostContainerInfo = hostContainerInfo); - var nodeValue = ' react-empty: ' + this._domID + ' '; - if (transaction.useCreateElement) { - var node = hostContainerInfo._ownerDocument.createComment(nodeValue); - return ReactDOMComponentTree.precacheNode(this, node), DOMLazyTree(node); - } - return transaction.renderToStaticMarkup ? '' : '\x3c!--' + nodeValue + '--\x3e'; - }, - receiveComponent: function() {}, - getHostNode: function() { - return ReactDOMComponentTree.getNodeFromInstance(this); - }, - unmountComponent: function() { - ReactDOMComponentTree.uncacheNode(this); - } - }), - (module.exports = ReactDOMEmptyComponent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7); - __webpack_require__(3); - function getLowestCommonAncestor(instA, instB) { - '_hostNode' in instA || _prodInvariant('33'), '_hostNode' in instB || _prodInvariant('33'); - for (var depthA = 0, tempA = instA; tempA; tempA = tempA._hostParent) depthA++; - for (var depthB = 0, tempB = instB; tempB; tempB = tempB._hostParent) depthB++; - for (; depthA - depthB > 0; ) (instA = instA._hostParent), depthA--; - for (; depthB - depthA > 0; ) (instB = instB._hostParent), depthB--; - for (var depth = depthA; depth--; ) { - if (instA === instB) return instA; - (instA = instA._hostParent), (instB = instB._hostParent); - } - return null; - } - module.exports = { - isAncestor: function isAncestor(instA, instB) { - '_hostNode' in instA || _prodInvariant('35'), '_hostNode' in instB || _prodInvariant('35'); - for (; instB; ) { - if (instB === instA) return !0; - instB = instB._hostParent; - } - return !1; - }, - getLowestCommonAncestor: getLowestCommonAncestor, - getParentInstance: function getParentInstance(inst) { - return '_hostNode' in inst || _prodInvariant('36'), inst._hostParent; - }, - traverseTwoPhase: function traverseTwoPhase(inst, fn, arg) { - for (var i, path = []; inst; ) path.push(inst), (inst = inst._hostParent); - for (i = path.length; i-- > 0; ) fn(path[i], 'captured', arg); - for (i = 0; i < path.length; i++) fn(path[i], 'bubbled', arg); - }, - traverseEnterLeave: function traverseEnterLeave(from, to, fn, argFrom, argTo) { - for ( - var common = from && to ? getLowestCommonAncestor(from, to) : null, pathFrom = []; - from && from !== common; - - ) - pathFrom.push(from), (from = from._hostParent); - for (var i, pathTo = []; to && to !== common; ) pathTo.push(to), (to = to._hostParent); - for (i = 0; i < pathFrom.length; i++) fn(pathFrom[i], 'bubbled', argFrom); - for (i = pathTo.length; i-- > 0; ) fn(pathTo[i], 'captured', argTo); - } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - _assign = __webpack_require__(9), - DOMChildrenOperations = __webpack_require__(159), - DOMLazyTree = __webpack_require__(62), - ReactDOMComponentTree = __webpack_require__(13), - escapeTextContentForBrowser = __webpack_require__(101), - ReactDOMTextComponent = (__webpack_require__(3), - __webpack_require__(168), - function(text) { - (this._currentElement = text), - (this._stringText = '' + text), - (this._hostNode = null), - (this._hostParent = null), - (this._domID = 0), - (this._mountIndex = 0), - (this._closingComment = null), - (this._commentNodes = null); - }); - _assign(ReactDOMTextComponent.prototype, { - mountComponent: function(transaction, hostParent, hostContainerInfo, context) { - var domID = hostContainerInfo._idCounter++, - openingValue = ' react-text: ' + domID + ' '; - if ( - ((this._domID = domID), (this._hostParent = hostParent), transaction.useCreateElement) - ) { - var ownerDocument = hostContainerInfo._ownerDocument, - openingComment = ownerDocument.createComment(openingValue), - closingComment = ownerDocument.createComment(' /react-text '), - lazyTree = DOMLazyTree(ownerDocument.createDocumentFragment()); - return ( - DOMLazyTree.queueChild(lazyTree, DOMLazyTree(openingComment)), - this._stringText && - DOMLazyTree.queueChild( - lazyTree, - DOMLazyTree(ownerDocument.createTextNode(this._stringText)) - ), - DOMLazyTree.queueChild(lazyTree, DOMLazyTree(closingComment)), - ReactDOMComponentTree.precacheNode(this, openingComment), - (this._closingComment = closingComment), - lazyTree - ); - } - var escapedText = escapeTextContentForBrowser(this._stringText); - return transaction.renderToStaticMarkup - ? escapedText - : '\x3c!--' + openingValue + '--\x3e' + escapedText + '\x3c!-- /react-text --\x3e'; - }, - receiveComponent: function(nextText, transaction) { - if (nextText !== this._currentElement) { - this._currentElement = nextText; - var nextStringText = '' + nextText; - if (nextStringText !== this._stringText) { - this._stringText = nextStringText; - var commentNodes = this.getHostNode(); - DOMChildrenOperations.replaceDelimitedText( - commentNodes[0], - commentNodes[1], - nextStringText - ); - } - } - }, - getHostNode: function() { - var hostNode = this._commentNodes; - if (hostNode) return hostNode; - if (!this._closingComment) - for (var node = ReactDOMComponentTree.getNodeFromInstance(this).nextSibling; ; ) { - if ( - (null == node && _prodInvariant('67', this._domID), - 8 === node.nodeType && ' /react-text ' === node.nodeValue) - ) { - this._closingComment = node; - break; - } - node = node.nextSibling; - } - return ( - (hostNode = [this._hostNode, this._closingComment]), - (this._commentNodes = hostNode), - hostNode - ); - }, - unmountComponent: function() { - (this._closingComment = null), - (this._commentNodes = null), - ReactDOMComponentTree.uncacheNode(this); - } - }), - (module.exports = ReactDOMTextComponent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - ReactUpdates = __webpack_require__(30), - Transaction = __webpack_require__(98), - emptyFunction = __webpack_require__(22), - RESET_BATCHED_UPDATES = { - initialize: emptyFunction, - close: function() { - ReactDefaultBatchingStrategy.isBatchingUpdates = !1; - } - }, - TRANSACTION_WRAPPERS = [ - { initialize: emptyFunction, close: ReactUpdates.flushBatchedUpdates.bind(ReactUpdates) }, - RESET_BATCHED_UPDATES - ]; - function ReactDefaultBatchingStrategyTransaction() { - this.reinitializeTransaction(); - } - _assign(ReactDefaultBatchingStrategyTransaction.prototype, Transaction, { - getTransactionWrappers: function() { - return TRANSACTION_WRAPPERS; - } - }); - var transaction = new ReactDefaultBatchingStrategyTransaction(), - ReactDefaultBatchingStrategy = { - isBatchingUpdates: !1, - batchedUpdates: function(callback, a, b, c, d, e) { - var alreadyBatchingUpdates = ReactDefaultBatchingStrategy.isBatchingUpdates; - return ( - (ReactDefaultBatchingStrategy.isBatchingUpdates = !0), - alreadyBatchingUpdates - ? callback(a, b, c, d, e) - : transaction.perform(callback, null, a, b, c, d, e) - ); - } - }; - module.exports = ReactDefaultBatchingStrategy; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - EventListener = __webpack_require__(254), - ExecutionEnvironment = __webpack_require__(19), - PooledClass = __webpack_require__(47), - ReactDOMComponentTree = __webpack_require__(13), - ReactUpdates = __webpack_require__(30), - getEventTarget = __webpack_require__(156), - getUnboundedScrollPosition = __webpack_require__(486); - function findParent(inst) { - for (; inst._hostParent; ) inst = inst._hostParent; - var container = ReactDOMComponentTree.getNodeFromInstance(inst).parentNode; - return ReactDOMComponentTree.getClosestInstanceFromNode(container); - } - function TopLevelCallbackBookKeeping(topLevelType, nativeEvent) { - (this.topLevelType = topLevelType), (this.nativeEvent = nativeEvent), (this.ancestors = []); - } - function handleTopLevelImpl(bookKeeping) { - var nativeEventTarget = getEventTarget(bookKeeping.nativeEvent), - targetInst = ReactDOMComponentTree.getClosestInstanceFromNode(nativeEventTarget), - ancestor = targetInst; - do { - bookKeeping.ancestors.push(ancestor), (ancestor = ancestor && findParent(ancestor)); - } while (ancestor); - for (var i = 0; i < bookKeeping.ancestors.length; i++) - (targetInst = bookKeeping.ancestors[i]), - ReactEventListener._handleTopLevel( - bookKeeping.topLevelType, - targetInst, - bookKeeping.nativeEvent, - getEventTarget(bookKeeping.nativeEvent) - ); - } - _assign(TopLevelCallbackBookKeeping.prototype, { - destructor: function() { - (this.topLevelType = null), (this.nativeEvent = null), (this.ancestors.length = 0); - } - }), - PooledClass.addPoolingTo(TopLevelCallbackBookKeeping, PooledClass.twoArgumentPooler); - var ReactEventListener = { - _enabled: !0, - _handleTopLevel: null, - WINDOW_HANDLE: ExecutionEnvironment.canUseDOM ? window : null, - setHandleTopLevel: function(handleTopLevel) { - ReactEventListener._handleTopLevel = handleTopLevel; - }, - setEnabled: function(enabled) { - ReactEventListener._enabled = !!enabled; - }, - isEnabled: function() { - return ReactEventListener._enabled; - }, - trapBubbledEvent: function(topLevelType, handlerBaseName, element) { - return element - ? EventListener.listen( - element, - handlerBaseName, - ReactEventListener.dispatchEvent.bind(null, topLevelType) - ) - : null; - }, - trapCapturedEvent: function(topLevelType, handlerBaseName, element) { - return element - ? EventListener.capture( - element, - handlerBaseName, - ReactEventListener.dispatchEvent.bind(null, topLevelType) - ) - : null; - }, - monitorScrollValue: function(refresh) { - var callback = function scrollValueMonitor(cb) { - cb(getUnboundedScrollPosition(window)); - }.bind(null, refresh); - EventListener.listen(window, 'scroll', callback); - }, - dispatchEvent: function(topLevelType, nativeEvent) { - if (ReactEventListener._enabled) { - var bookKeeping = TopLevelCallbackBookKeeping.getPooled(topLevelType, nativeEvent); - try { - ReactUpdates.batchedUpdates(handleTopLevelImpl, bookKeeping); - } finally { - TopLevelCallbackBookKeeping.release(bookKeeping); - } - } - } - }; - module.exports = ReactEventListener; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function getUnboundedScrollPosition(scrollable) { - return scrollable.Window && scrollable instanceof scrollable.Window - ? { - x: scrollable.pageXOffset || scrollable.document.documentElement.scrollLeft, - y: scrollable.pageYOffset || scrollable.document.documentElement.scrollTop - } - : { x: scrollable.scrollLeft, y: scrollable.scrollTop }; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var DOMProperty = __webpack_require__(60), - EventPluginHub = __webpack_require__(80), - EventPluginUtils = __webpack_require__(154), - ReactComponentEnvironment = __webpack_require__(163), - ReactEmptyComponent = __webpack_require__(250), - ReactBrowserEventEmitter = __webpack_require__(102), - ReactHostComponent = __webpack_require__(251), - ReactUpdates = __webpack_require__(30), - ReactInjection = { - Component: ReactComponentEnvironment.injection, - DOMProperty: DOMProperty.injection, - EmptyComponent: ReactEmptyComponent.injection, - EventPluginHub: EventPluginHub.injection, - EventPluginUtils: EventPluginUtils.injection, - EventEmitter: ReactBrowserEventEmitter.injection, - HostComponent: ReactHostComponent.injection, - Updates: ReactUpdates.injection - }; - module.exports = ReactInjection; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - CallbackQueue = __webpack_require__(238), - PooledClass = __webpack_require__(47), - ReactBrowserEventEmitter = __webpack_require__(102), - ReactInputSelection = __webpack_require__(255), - Transaction = (__webpack_require__(25), __webpack_require__(98)), - ReactUpdateQueue = __webpack_require__(167), - TRANSACTION_WRAPPERS = [ - { - initialize: ReactInputSelection.getSelectionInformation, - close: ReactInputSelection.restoreSelection - }, - { - initialize: function() { - var currentlyEnabled = ReactBrowserEventEmitter.isEnabled(); - return ReactBrowserEventEmitter.setEnabled(!1), currentlyEnabled; - }, - close: function(previouslyEnabled) { - ReactBrowserEventEmitter.setEnabled(previouslyEnabled); - } - }, - { - initialize: function() { - this.reactMountReady.reset(); - }, - close: function() { - this.reactMountReady.notifyAll(); - } - } - ]; - function ReactReconcileTransaction(useCreateElement) { - this.reinitializeTransaction(), - (this.renderToStaticMarkup = !1), - (this.reactMountReady = CallbackQueue.getPooled(null)), - (this.useCreateElement = useCreateElement); - } - var Mixin = { - getTransactionWrappers: function() { - return TRANSACTION_WRAPPERS; - }, - getReactMountReady: function() { - return this.reactMountReady; - }, - getUpdateQueue: function() { - return ReactUpdateQueue; - }, - checkpoint: function() { - return this.reactMountReady.checkpoint(); - }, - rollback: function(checkpoint) { - this.reactMountReady.rollback(checkpoint); - }, - destructor: function() { - CallbackQueue.release(this.reactMountReady), (this.reactMountReady = null); - } - }; - _assign(ReactReconcileTransaction.prototype, Transaction, Mixin), - PooledClass.addPoolingTo(ReactReconcileTransaction), - (module.exports = ReactReconcileTransaction); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ExecutionEnvironment = __webpack_require__(19), - getNodeForCharacterOffset = __webpack_require__(490), - getTextContentAccessor = __webpack_require__(237); - function isCollapsed(anchorNode, anchorOffset, focusNode, focusOffset) { - return anchorNode === focusNode && anchorOffset === focusOffset; - } - var useIEOffsets = - ExecutionEnvironment.canUseDOM && 'selection' in document && !('getSelection' in window), - ReactDOMSelection = { - getOffsets: useIEOffsets - ? function getIEOffsets(node) { - var selectedRange = document.selection.createRange(), - selectedLength = selectedRange.text.length, - fromStart = selectedRange.duplicate(); - fromStart.moveToElementText(node), fromStart.setEndPoint('EndToStart', selectedRange); - var startOffset = fromStart.text.length; - return { start: startOffset, end: startOffset + selectedLength }; - } - : function getModernOffsets(node) { - var selection = window.getSelection && window.getSelection(); - if (!selection || 0 === selection.rangeCount) return null; - var anchorNode = selection.anchorNode, - anchorOffset = selection.anchorOffset, - focusNode = selection.focusNode, - focusOffset = selection.focusOffset, - currentRange = selection.getRangeAt(0); - try { - currentRange.startContainer.nodeType, currentRange.endContainer.nodeType; - } catch (e) { - return null; - } - var rangeLength = isCollapsed( - selection.anchorNode, - selection.anchorOffset, - selection.focusNode, - selection.focusOffset - ) - ? 0 - : currentRange.toString().length, - tempRange = currentRange.cloneRange(); - tempRange.selectNodeContents(node), - tempRange.setEnd(currentRange.startContainer, currentRange.startOffset); - var start = isCollapsed( - tempRange.startContainer, - tempRange.startOffset, - tempRange.endContainer, - tempRange.endOffset - ) - ? 0 - : tempRange.toString().length, - end = start + rangeLength, - detectionRange = document.createRange(); - detectionRange.setStart(anchorNode, anchorOffset), - detectionRange.setEnd(focusNode, focusOffset); - var isBackward = detectionRange.collapsed; - return { start: isBackward ? end : start, end: isBackward ? start : end }; - }, - setOffsets: useIEOffsets - ? function setIEOffsets(node, offsets) { - var start, - end, - range = document.selection.createRange().duplicate(); - void 0 === offsets.end - ? (end = start = offsets.start) - : offsets.start > offsets.end - ? ((start = offsets.end), (end = offsets.start)) - : ((start = offsets.start), (end = offsets.end)), - range.moveToElementText(node), - range.moveStart('character', start), - range.setEndPoint('EndToStart', range), - range.moveEnd('character', end - start), - range.select(); - } - : function setModernOffsets(node, offsets) { - if (window.getSelection) { - var selection = window.getSelection(), - length = node[getTextContentAccessor()].length, - start = Math.min(offsets.start, length), - end = void 0 === offsets.end ? start : Math.min(offsets.end, length); - if (!selection.extend && start > end) { - var temp = end; - (end = start), (start = temp); - } - var startMarker = getNodeForCharacterOffset(node, start), - endMarker = getNodeForCharacterOffset(node, end); - if (startMarker && endMarker) { - var range = document.createRange(); - range.setStart(startMarker.node, startMarker.offset), - selection.removeAllRanges(), - start > end - ? (selection.addRange(range), - selection.extend(endMarker.node, endMarker.offset)) - : (range.setEnd(endMarker.node, endMarker.offset), selection.addRange(range)); - } - } - } - }; - module.exports = ReactDOMSelection; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - function getLeafNode(node) { - for (; node && node.firstChild; ) node = node.firstChild; - return node; - } - function getSiblingNode(node) { - for (; node; ) { - if (node.nextSibling) return node.nextSibling; - node = node.parentNode; - } - } - module.exports = function getNodeForCharacterOffset(root, offset) { - for (var node = getLeafNode(root), nodeStart = 0, nodeEnd = 0; node; ) { - if (3 === node.nodeType) { - if ( - ((nodeEnd = nodeStart + node.textContent.length), - nodeStart <= offset && nodeEnd >= offset) - ) - return { node: node, offset: offset - nodeStart }; - nodeStart = nodeEnd; - } - node = getLeafNode(getSiblingNode(node)); - } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var isTextNode = __webpack_require__(492); - module.exports = function containsNode(outerNode, innerNode) { - return ( - !(!outerNode || !innerNode) && - (outerNode === innerNode || - (!isTextNode(outerNode) && - (isTextNode(innerNode) - ? containsNode(outerNode, innerNode.parentNode) - : 'contains' in outerNode - ? outerNode.contains(innerNode) - : !!outerNode.compareDocumentPosition && - !!(16 & outerNode.compareDocumentPosition(innerNode))))) - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var isNode = __webpack_require__(493); - module.exports = function isTextNode(object) { - return isNode(object) && 3 == object.nodeType; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function isNode(object) { - var defaultView = (object ? object.ownerDocument || object : document).defaultView || window; - return !( - !object || - !('function' == typeof defaultView.Node - ? object instanceof defaultView.Node - : 'object' == typeof object && - 'number' == typeof object.nodeType && - 'string' == typeof object.nodeName) - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var NS_xlink = 'http://www.w3.org/1999/xlink', - NS_xml = 'http://www.w3.org/XML/1998/namespace', - ATTRS = { - accentHeight: 'accent-height', - accumulate: 0, - additive: 0, - alignmentBaseline: 'alignment-baseline', - allowReorder: 'allowReorder', - alphabetic: 0, - amplitude: 0, - arabicForm: 'arabic-form', - ascent: 0, - attributeName: 'attributeName', - attributeType: 'attributeType', - autoReverse: 'autoReverse', - azimuth: 0, - baseFrequency: 'baseFrequency', - baseProfile: 'baseProfile', - baselineShift: 'baseline-shift', - bbox: 0, - begin: 0, - bias: 0, - by: 0, - calcMode: 'calcMode', - capHeight: 'cap-height', - clip: 0, - clipPath: 'clip-path', - clipRule: 'clip-rule', - clipPathUnits: 'clipPathUnits', - colorInterpolation: 'color-interpolation', - colorInterpolationFilters: 'color-interpolation-filters', - colorProfile: 'color-profile', - colorRendering: 'color-rendering', - contentScriptType: 'contentScriptType', - contentStyleType: 'contentStyleType', - cursor: 0, - cx: 0, - cy: 0, - d: 0, - decelerate: 0, - descent: 0, - diffuseConstant: 'diffuseConstant', - direction: 0, - display: 0, - divisor: 0, - dominantBaseline: 'dominant-baseline', - dur: 0, - dx: 0, - dy: 0, - edgeMode: 'edgeMode', - elevation: 0, - enableBackground: 'enable-background', - end: 0, - exponent: 0, - externalResourcesRequired: 'externalResourcesRequired', - fill: 0, - fillOpacity: 'fill-opacity', - fillRule: 'fill-rule', - filter: 0, - filterRes: 'filterRes', - filterUnits: 'filterUnits', - floodColor: 'flood-color', - floodOpacity: 'flood-opacity', - focusable: 0, - fontFamily: 'font-family', - fontSize: 'font-size', - fontSizeAdjust: 'font-size-adjust', - fontStretch: 'font-stretch', - fontStyle: 'font-style', - fontVariant: 'font-variant', - fontWeight: 'font-weight', - format: 0, - from: 0, - fx: 0, - fy: 0, - g1: 0, - g2: 0, - glyphName: 'glyph-name', - glyphOrientationHorizontal: 'glyph-orientation-horizontal', - glyphOrientationVertical: 'glyph-orientation-vertical', - glyphRef: 'glyphRef', - gradientTransform: 'gradientTransform', - gradientUnits: 'gradientUnits', - hanging: 0, - horizAdvX: 'horiz-adv-x', - horizOriginX: 'horiz-origin-x', - ideographic: 0, - imageRendering: 'image-rendering', - in: 0, - in2: 0, - intercept: 0, - k: 0, - k1: 0, - k2: 0, - k3: 0, - k4: 0, - kernelMatrix: 'kernelMatrix', - kernelUnitLength: 'kernelUnitLength', - kerning: 0, - keyPoints: 'keyPoints', - keySplines: 'keySplines', - keyTimes: 'keyTimes', - lengthAdjust: 'lengthAdjust', - letterSpacing: 'letter-spacing', - lightingColor: 'lighting-color', - limitingConeAngle: 'limitingConeAngle', - local: 0, - markerEnd: 'marker-end', - markerMid: 'marker-mid', - markerStart: 'marker-start', - markerHeight: 'markerHeight', - markerUnits: 'markerUnits', - markerWidth: 'markerWidth', - mask: 0, - maskContentUnits: 'maskContentUnits', - maskUnits: 'maskUnits', - mathematical: 0, - mode: 0, - numOctaves: 'numOctaves', - offset: 0, - opacity: 0, - operator: 0, - order: 0, - orient: 0, - orientation: 0, - origin: 0, - overflow: 0, - overlinePosition: 'overline-position', - overlineThickness: 'overline-thickness', - paintOrder: 'paint-order', - panose1: 'panose-1', - pathLength: 'pathLength', - patternContentUnits: 'patternContentUnits', - patternTransform: 'patternTransform', - patternUnits: 'patternUnits', - pointerEvents: 'pointer-events', - points: 0, - pointsAtX: 'pointsAtX', - pointsAtY: 'pointsAtY', - pointsAtZ: 'pointsAtZ', - preserveAlpha: 'preserveAlpha', - preserveAspectRatio: 'preserveAspectRatio', - primitiveUnits: 'primitiveUnits', - r: 0, - radius: 0, - refX: 'refX', - refY: 'refY', - renderingIntent: 'rendering-intent', - repeatCount: 'repeatCount', - repeatDur: 'repeatDur', - requiredExtensions: 'requiredExtensions', - requiredFeatures: 'requiredFeatures', - restart: 0, - result: 0, - rotate: 0, - rx: 0, - ry: 0, - scale: 0, - seed: 0, - shapeRendering: 'shape-rendering', - slope: 0, - spacing: 0, - specularConstant: 'specularConstant', - specularExponent: 'specularExponent', - speed: 0, - spreadMethod: 'spreadMethod', - startOffset: 'startOffset', - stdDeviation: 'stdDeviation', - stemh: 0, - stemv: 0, - stitchTiles: 'stitchTiles', - stopColor: 'stop-color', - stopOpacity: 'stop-opacity', - strikethroughPosition: 'strikethrough-position', - strikethroughThickness: 'strikethrough-thickness', - string: 0, - stroke: 0, - strokeDasharray: 'stroke-dasharray', - strokeDashoffset: 'stroke-dashoffset', - strokeLinecap: 'stroke-linecap', - strokeLinejoin: 'stroke-linejoin', - strokeMiterlimit: 'stroke-miterlimit', - strokeOpacity: 'stroke-opacity', - strokeWidth: 'stroke-width', - surfaceScale: 'surfaceScale', - systemLanguage: 'systemLanguage', - tableValues: 'tableValues', - targetX: 'targetX', - targetY: 'targetY', - textAnchor: 'text-anchor', - textDecoration: 'text-decoration', - textRendering: 'text-rendering', - textLength: 'textLength', - to: 0, - transform: 0, - u1: 0, - u2: 0, - underlinePosition: 'underline-position', - underlineThickness: 'underline-thickness', - unicode: 0, - unicodeBidi: 'unicode-bidi', - unicodeRange: 'unicode-range', - unitsPerEm: 'units-per-em', - vAlphabetic: 'v-alphabetic', - vHanging: 'v-hanging', - vIdeographic: 'v-ideographic', - vMathematical: 'v-mathematical', - values: 0, - vectorEffect: 'vector-effect', - version: 0, - vertAdvY: 'vert-adv-y', - vertOriginX: 'vert-origin-x', - vertOriginY: 'vert-origin-y', - viewBox: 'viewBox', - viewTarget: 'viewTarget', - visibility: 0, - widths: 0, - wordSpacing: 'word-spacing', - writingMode: 'writing-mode', - x: 0, - xHeight: 'x-height', - x1: 0, - x2: 0, - xChannelSelector: 'xChannelSelector', - xlinkActuate: 'xlink:actuate', - xlinkArcrole: 'xlink:arcrole', - xlinkHref: 'xlink:href', - xlinkRole: 'xlink:role', - xlinkShow: 'xlink:show', - xlinkTitle: 'xlink:title', - xlinkType: 'xlink:type', - xmlBase: 'xml:base', - xmlns: 0, - xmlnsXlink: 'xmlns:xlink', - xmlLang: 'xml:lang', - xmlSpace: 'xml:space', - y: 0, - y1: 0, - y2: 0, - yChannelSelector: 'yChannelSelector', - z: 0, - zoomAndPan: 'zoomAndPan' - }, - SVGDOMPropertyConfig = { - Properties: {}, - DOMAttributeNamespaces: { - xlinkActuate: NS_xlink, - xlinkArcrole: NS_xlink, - xlinkHref: NS_xlink, - xlinkRole: NS_xlink, - xlinkShow: NS_xlink, - xlinkTitle: NS_xlink, - xlinkType: NS_xlink, - xmlBase: NS_xml, - xmlLang: NS_xml, - xmlSpace: NS_xml - }, - DOMAttributeNames: {} - }; - Object.keys(ATTRS).forEach(function(key) { - (SVGDOMPropertyConfig.Properties[key] = 0), - ATTRS[key] && (SVGDOMPropertyConfig.DOMAttributeNames[key] = ATTRS[key]); - }), - (module.exports = SVGDOMPropertyConfig); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var EventPropagators = __webpack_require__(79), - ExecutionEnvironment = __webpack_require__(19), - ReactDOMComponentTree = __webpack_require__(13), - ReactInputSelection = __webpack_require__(255), - SyntheticEvent = __webpack_require__(33), - getActiveElement = __webpack_require__(256), - isTextInputElement = __webpack_require__(241), - shallowEqual = __webpack_require__(164), - skipSelectionChangeEvent = - ExecutionEnvironment.canUseDOM && 'documentMode' in document && document.documentMode <= 11, - eventTypes = { - select: { - phasedRegistrationNames: { bubbled: 'onSelect', captured: 'onSelectCapture' }, - dependencies: [ - 'topBlur', - 'topContextMenu', - 'topFocus', - 'topKeyDown', - 'topKeyUp', - 'topMouseDown', - 'topMouseUp', - 'topSelectionChange' - ] - } - }, - activeElement = null, - activeElementInst = null, - lastSelection = null, - mouseDown = !1, - hasListener = !1; - function constructSelectEvent(nativeEvent, nativeEventTarget) { - if (mouseDown || null == activeElement || activeElement !== getActiveElement()) return null; - var currentSelection = (function getSelection(node) { - if ('selectionStart' in node && ReactInputSelection.hasSelectionCapabilities(node)) - return { start: node.selectionStart, end: node.selectionEnd }; - if (window.getSelection) { - var selection = window.getSelection(); - return { - anchorNode: selection.anchorNode, - anchorOffset: selection.anchorOffset, - focusNode: selection.focusNode, - focusOffset: selection.focusOffset - }; - } - if (document.selection) { - var range = document.selection.createRange(); - return { - parentElement: range.parentElement(), - text: range.text, - top: range.boundingTop, - left: range.boundingLeft - }; - } - })(activeElement); - if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) { - lastSelection = currentSelection; - var syntheticEvent = SyntheticEvent.getPooled( - eventTypes.select, - activeElementInst, - nativeEvent, - nativeEventTarget - ); - return ( - (syntheticEvent.type = 'select'), - (syntheticEvent.target = activeElement), - EventPropagators.accumulateTwoPhaseDispatches(syntheticEvent), - syntheticEvent - ); - } - return null; - } - var SelectEventPlugin = { - eventTypes: eventTypes, - extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - if (!hasListener) return null; - var targetNode = targetInst - ? ReactDOMComponentTree.getNodeFromInstance(targetInst) - : window; - switch (topLevelType) { - case 'topFocus': - (isTextInputElement(targetNode) || 'true' === targetNode.contentEditable) && - ((activeElement = targetNode), - (activeElementInst = targetInst), - (lastSelection = null)); - break; - case 'topBlur': - (activeElement = null), (activeElementInst = null), (lastSelection = null); - break; - case 'topMouseDown': - mouseDown = !0; - break; - case 'topContextMenu': - case 'topMouseUp': - return (mouseDown = !1), constructSelectEvent(nativeEvent, nativeEventTarget); - case 'topSelectionChange': - if (skipSelectionChangeEvent) break; - case 'topKeyDown': - case 'topKeyUp': - return constructSelectEvent(nativeEvent, nativeEventTarget); - } - return null; - }, - didPutListener: function(inst, registrationName, listener) { - 'onSelect' === registrationName && (hasListener = !0); - } - }; - module.exports = SelectEventPlugin; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - EventListener = __webpack_require__(254), - EventPropagators = __webpack_require__(79), - ReactDOMComponentTree = __webpack_require__(13), - SyntheticAnimationEvent = __webpack_require__(497), - SyntheticClipboardEvent = __webpack_require__(498), - SyntheticEvent = __webpack_require__(33), - SyntheticFocusEvent = __webpack_require__(499), - SyntheticKeyboardEvent = __webpack_require__(500), - SyntheticMouseEvent = __webpack_require__(99), - SyntheticDragEvent = __webpack_require__(502), - SyntheticTouchEvent = __webpack_require__(503), - SyntheticTransitionEvent = __webpack_require__(504), - SyntheticUIEvent = __webpack_require__(81), - SyntheticWheelEvent = __webpack_require__(505), - emptyFunction = __webpack_require__(22), - getEventCharCode = __webpack_require__(169), - eventTypes = (__webpack_require__(3), {}), - topLevelEventsToDispatchConfig = {}; - [ - 'abort', - 'animationEnd', - 'animationIteration', - 'animationStart', - 'blur', - 'canPlay', - 'canPlayThrough', - 'click', - 'contextMenu', - 'copy', - 'cut', - 'doubleClick', - 'drag', - 'dragEnd', - 'dragEnter', - 'dragExit', - 'dragLeave', - 'dragOver', - 'dragStart', - 'drop', - 'durationChange', - 'emptied', - 'encrypted', - 'ended', - 'error', - 'focus', - 'input', - 'invalid', - 'keyDown', - 'keyPress', - 'keyUp', - 'load', - 'loadedData', - 'loadedMetadata', - 'loadStart', - 'mouseDown', - 'mouseMove', - 'mouseOut', - 'mouseOver', - 'mouseUp', - 'paste', - 'pause', - 'play', - 'playing', - 'progress', - 'rateChange', - 'reset', - 'scroll', - 'seeked', - 'seeking', - 'stalled', - 'submit', - 'suspend', - 'timeUpdate', - 'touchCancel', - 'touchEnd', - 'touchMove', - 'touchStart', - 'transitionEnd', - 'volumeChange', - 'waiting', - 'wheel' - ].forEach(function(event) { - var capitalizedEvent = event[0].toUpperCase() + event.slice(1), - onEvent = 'on' + capitalizedEvent, - topEvent = 'top' + capitalizedEvent, - type = { - phasedRegistrationNames: { bubbled: onEvent, captured: onEvent + 'Capture' }, - dependencies: [topEvent] - }; - (eventTypes[event] = type), (topLevelEventsToDispatchConfig[topEvent] = type); - }); - var onClickListeners = {}; - function getDictionaryKey(inst) { - return '.' + inst._rootNodeID; - } - function isInteractive(tag) { - return 'button' === tag || 'input' === tag || 'select' === tag || 'textarea' === tag; - } - var SimpleEventPlugin = { - eventTypes: eventTypes, - extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var EventConstructor, - dispatchConfig = topLevelEventsToDispatchConfig[topLevelType]; - if (!dispatchConfig) return null; - switch (topLevelType) { - case 'topAbort': - case 'topCanPlay': - case 'topCanPlayThrough': - case 'topDurationChange': - case 'topEmptied': - case 'topEncrypted': - case 'topEnded': - case 'topError': - case 'topInput': - case 'topInvalid': - case 'topLoad': - case 'topLoadedData': - case 'topLoadedMetadata': - case 'topLoadStart': - case 'topPause': - case 'topPlay': - case 'topPlaying': - case 'topProgress': - case 'topRateChange': - case 'topReset': - case 'topSeeked': - case 'topSeeking': - case 'topStalled': - case 'topSubmit': - case 'topSuspend': - case 'topTimeUpdate': - case 'topVolumeChange': - case 'topWaiting': - EventConstructor = SyntheticEvent; - break; - case 'topKeyPress': - if (0 === getEventCharCode(nativeEvent)) return null; - case 'topKeyDown': - case 'topKeyUp': - EventConstructor = SyntheticKeyboardEvent; - break; - case 'topBlur': - case 'topFocus': - EventConstructor = SyntheticFocusEvent; - break; - case 'topClick': - if (2 === nativeEvent.button) return null; - case 'topDoubleClick': - case 'topMouseDown': - case 'topMouseMove': - case 'topMouseUp': - case 'topMouseOut': - case 'topMouseOver': - case 'topContextMenu': - EventConstructor = SyntheticMouseEvent; - break; - case 'topDrag': - case 'topDragEnd': - case 'topDragEnter': - case 'topDragExit': - case 'topDragLeave': - case 'topDragOver': - case 'topDragStart': - case 'topDrop': - EventConstructor = SyntheticDragEvent; - break; - case 'topTouchCancel': - case 'topTouchEnd': - case 'topTouchMove': - case 'topTouchStart': - EventConstructor = SyntheticTouchEvent; - break; - case 'topAnimationEnd': - case 'topAnimationIteration': - case 'topAnimationStart': - EventConstructor = SyntheticAnimationEvent; - break; - case 'topTransitionEnd': - EventConstructor = SyntheticTransitionEvent; - break; - case 'topScroll': - EventConstructor = SyntheticUIEvent; - break; - case 'topWheel': - EventConstructor = SyntheticWheelEvent; - break; - case 'topCopy': - case 'topCut': - case 'topPaste': - EventConstructor = SyntheticClipboardEvent; - } - EventConstructor || _prodInvariant('86', topLevelType); - var event = EventConstructor.getPooled( - dispatchConfig, - targetInst, - nativeEvent, - nativeEventTarget - ); - return EventPropagators.accumulateTwoPhaseDispatches(event), event; - }, - didPutListener: function(inst, registrationName, listener) { - if ('onClick' === registrationName && !isInteractive(inst._tag)) { - var key = getDictionaryKey(inst), - node = ReactDOMComponentTree.getNodeFromInstance(inst); - onClickListeners[key] || - (onClickListeners[key] = EventListener.listen(node, 'click', emptyFunction)); - } - }, - willDeleteListener: function(inst, registrationName) { - if ('onClick' === registrationName && !isInteractive(inst._tag)) { - var key = getDictionaryKey(inst); - onClickListeners[key].remove(), delete onClickListeners[key]; - } - } - }; - module.exports = SimpleEventPlugin; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticEvent = __webpack_require__(33); - function SyntheticAnimationEvent( - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ) { - return SyntheticEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticEvent.augmentClass(SyntheticAnimationEvent, { - animationName: null, - elapsedTime: null, - pseudoElement: null - }), - (module.exports = SyntheticAnimationEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticEvent = __webpack_require__(33), - ClipboardEventInterface = { - clipboardData: function(event) { - return 'clipboardData' in event ? event.clipboardData : window.clipboardData; - } - }; - function SyntheticClipboardEvent( - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ) { - return SyntheticEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticEvent.augmentClass(SyntheticClipboardEvent, ClipboardEventInterface), - (module.exports = SyntheticClipboardEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticUIEvent = __webpack_require__(81); - function SyntheticFocusEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { - return SyntheticUIEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticUIEvent.augmentClass(SyntheticFocusEvent, { relatedTarget: null }), - (module.exports = SyntheticFocusEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticUIEvent = __webpack_require__(81), - getEventCharCode = __webpack_require__(169), - KeyboardEventInterface = { - key: __webpack_require__(501), - location: null, - ctrlKey: null, - shiftKey: null, - altKey: null, - metaKey: null, - repeat: null, - locale: null, - getModifierState: __webpack_require__(158), - charCode: function(event) { - return 'keypress' === event.type ? getEventCharCode(event) : 0; - }, - keyCode: function(event) { - return 'keydown' === event.type || 'keyup' === event.type ? event.keyCode : 0; - }, - which: function(event) { - return 'keypress' === event.type - ? getEventCharCode(event) - : 'keydown' === event.type || 'keyup' === event.type ? event.keyCode : 0; - } - }; - function SyntheticKeyboardEvent( - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ) { - return SyntheticUIEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticUIEvent.augmentClass(SyntheticKeyboardEvent, KeyboardEventInterface), - (module.exports = SyntheticKeyboardEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var getEventCharCode = __webpack_require__(169), - normalizeKey = { - Esc: 'Escape', - Spacebar: ' ', - Left: 'ArrowLeft', - Up: 'ArrowUp', - Right: 'ArrowRight', - Down: 'ArrowDown', - Del: 'Delete', - Win: 'OS', - Menu: 'ContextMenu', - Apps: 'ContextMenu', - Scroll: 'ScrollLock', - MozPrintableKey: 'Unidentified' - }, - translateToKey = { - 8: 'Backspace', - 9: 'Tab', - 12: 'Clear', - 13: 'Enter', - 16: 'Shift', - 17: 'Control', - 18: 'Alt', - 19: 'Pause', - 20: 'CapsLock', - 27: 'Escape', - 32: ' ', - 33: 'PageUp', - 34: 'PageDown', - 35: 'End', - 36: 'Home', - 37: 'ArrowLeft', - 38: 'ArrowUp', - 39: 'ArrowRight', - 40: 'ArrowDown', - 45: 'Insert', - 46: 'Delete', - 112: 'F1', - 113: 'F2', - 114: 'F3', - 115: 'F4', - 116: 'F5', - 117: 'F6', - 118: 'F7', - 119: 'F8', - 120: 'F9', - 121: 'F10', - 122: 'F11', - 123: 'F12', - 144: 'NumLock', - 145: 'ScrollLock', - 224: 'Meta' - }; - module.exports = function getEventKey(nativeEvent) { - if (nativeEvent.key) { - var key = normalizeKey[nativeEvent.key] || nativeEvent.key; - if ('Unidentified' !== key) return key; - } - if ('keypress' === nativeEvent.type) { - var charCode = getEventCharCode(nativeEvent); - return 13 === charCode ? 'Enter' : String.fromCharCode(charCode); - } - return 'keydown' === nativeEvent.type || 'keyup' === nativeEvent.type - ? translateToKey[nativeEvent.keyCode] || 'Unidentified' - : ''; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticMouseEvent = __webpack_require__(99); - function SyntheticDragEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { - return SyntheticMouseEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticMouseEvent.augmentClass(SyntheticDragEvent, { dataTransfer: null }), - (module.exports = SyntheticDragEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticUIEvent = __webpack_require__(81), - TouchEventInterface = { - touches: null, - targetTouches: null, - changedTouches: null, - altKey: null, - metaKey: null, - ctrlKey: null, - shiftKey: null, - getModifierState: __webpack_require__(158) - }; - function SyntheticTouchEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { - return SyntheticUIEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticUIEvent.augmentClass(SyntheticTouchEvent, TouchEventInterface), - (module.exports = SyntheticTouchEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticEvent = __webpack_require__(33); - function SyntheticTransitionEvent( - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ) { - return SyntheticEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticEvent.augmentClass(SyntheticTransitionEvent, { - propertyName: null, - elapsedTime: null, - pseudoElement: null - }), - (module.exports = SyntheticTransitionEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticMouseEvent = __webpack_require__(99); - function SyntheticWheelEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { - return SyntheticMouseEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticMouseEvent.augmentClass(SyntheticWheelEvent, { - deltaX: function(event) { - return 'deltaX' in event ? event.deltaX : 'wheelDeltaX' in event ? -event.wheelDeltaX : 0; - }, - deltaY: function(event) { - return 'deltaY' in event - ? event.deltaY - : 'wheelDeltaY' in event - ? -event.wheelDeltaY - : 'wheelDelta' in event ? -event.wheelDelta : 0; - }, - deltaZ: null, - deltaMode: null - }), - (module.exports = SyntheticWheelEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(168); - var DOC_NODE_TYPE = 9; - module.exports = function ReactDOMContainerInfo(topLevelWrapper, node) { - var info = { - _topLevelWrapper: topLevelWrapper, - _idCounter: 1, - _ownerDocument: node ? (node.nodeType === DOC_NODE_TYPE ? node : node.ownerDocument) : null, - _node: node, - _tag: node ? node.nodeName.toLowerCase() : null, - _namespaceURI: node ? node.namespaceURI : null - }; - return info; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = { useCreateElement: !0, useFiber: !1 }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var adler32 = __webpack_require__(509), - TAG_END = /\/?>/, - COMMENT_START = /^<\!\-\-/, - ReactMarkupChecksum = { - CHECKSUM_ATTR_NAME: 'data-react-checksum', - addChecksumToMarkup: function(markup) { - var checksum = adler32(markup); - return COMMENT_START.test(markup) - ? markup - : markup.replace( - TAG_END, - ' ' + ReactMarkupChecksum.CHECKSUM_ATTR_NAME + '="' + checksum + '"$&' - ); - }, - canReuseMarkup: function(markup, element) { - var existingChecksum = element.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME); - return ( - (existingChecksum = existingChecksum && parseInt(existingChecksum, 10)), - adler32(markup) === existingChecksum - ); - } - }; - module.exports = ReactMarkupChecksum; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var MOD = 65521; - module.exports = function adler32(data) { - for (var a = 1, b = 0, i = 0, l = data.length, m = -4 & l; i < m; ) { - for (var n = Math.min(i + 4096, m); i < n; i += 4) - b += - (a += data.charCodeAt(i)) + - (a += data.charCodeAt(i + 1)) + - (a += data.charCodeAt(i + 2)) + - (a += data.charCodeAt(i + 3)); - (a %= MOD), (b %= MOD); - } - for (; i < l; i++) b += a += data.charCodeAt(i); - return (a %= MOD) | ((b %= MOD) << 16); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = '15.6.2'; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - ReactDOMComponentTree = (__webpack_require__(32), __webpack_require__(13)), - ReactInstanceMap = __webpack_require__(82), - getHostComponentFromComposite = __webpack_require__(258); - __webpack_require__(3), __webpack_require__(6); - module.exports = function findDOMNode(componentOrElement) { - if (null == componentOrElement) return null; - if (1 === componentOrElement.nodeType) return componentOrElement; - var inst = ReactInstanceMap.get(componentOrElement); - if (inst) - return (inst = getHostComponentFromComposite(inst)) - ? ReactDOMComponentTree.getNodeFromInstance(inst) - : null; - 'function' == typeof componentOrElement.render - ? _prodInvariant('44') - : _prodInvariant('45', Object.keys(componentOrElement)); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactMount = __webpack_require__(257); - module.exports = ReactMount.renderSubtreeIntoContainer; - }, - , - function(module, exports, __webpack_require__) { - __webpack_require__(515), (module.exports = __webpack_require__(10).Number.isNaN); - }, - function(module, exports, __webpack_require__) { - var $export = __webpack_require__(16); - $export($export.S, 'Number', { - isNaN: function isNaN(number) { - return number != number; - } - }); - }, - , - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(518), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(64), __webpack_require__(63), (module.exports = __webpack_require__(519)); - }, - function(module, exports, __webpack_require__) { - var classof = __webpack_require__(119), - ITERATOR = __webpack_require__(18)('iterator'), - Iterators = __webpack_require__(59); - module.exports = __webpack_require__(10).isIterable = function(it) { - var O = Object(it); - return void 0 !== O[ITERATOR] || '@@iterator' in O || Iterators.hasOwnProperty(classof(O)); - }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(64), __webpack_require__(63), (module.exports = __webpack_require__(521)); - }, - function(module, exports, __webpack_require__) { - var anObject = __webpack_require__(24), - get = __webpack_require__(151); - module.exports = __webpack_require__(10).getIterator = function(it) { - var iterFn = get(it); - if ('function' != typeof iterFn) throw TypeError(it + ' is not iterable!'); - return anObject(iterFn.call(it)); - }; - }, - function(module, exports) { - var codes = ((exports = module.exports = function(searchInput) { - if (searchInput && 'object' == typeof searchInput) { - var hasKeyCode = searchInput.which || searchInput.keyCode || searchInput.charCode; - hasKeyCode && (searchInput = hasKeyCode); - } - if ('number' == typeof searchInput) return names[searchInput]; - var foundNamedKey, - search = String(searchInput); - return (foundNamedKey = codes[search.toLowerCase()]) - ? foundNamedKey - : (foundNamedKey = aliases[search.toLowerCase()]) || - (1 === search.length ? search.charCodeAt(0) : void 0); - }).code = exports.codes = { - backspace: 8, - tab: 9, - enter: 13, - shift: 16, - ctrl: 17, - alt: 18, - 'pause/break': 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, - insert: 45, - delete: 46, - command: 91, - 'left command': 91, - 'right command': 93, - 'numpad *': 106, - 'numpad +': 107, - 'numpad -': 109, - 'numpad .': 110, - 'numpad /': 111, - 'num lock': 144, - 'scroll lock': 145, - 'my computer': 182, - 'my calculator': 183, - ';': 186, - '=': 187, - ',': 188, - '-': 189, - '.': 190, - '/': 191, - '`': 192, - '[': 219, - '\\': 220, - ']': 221, - "'": 222 - }), - aliases = (exports.aliases = { - windows: 91, - '⇧': 16, - '⌥': 18, - '⌃': 17, - '⌘': 91, - ctl: 17, - control: 17, - option: 18, - pause: 19, - break: 19, - caps: 20, - return: 13, - escape: 27, - spc: 32, - pgup: 33, - pgdn: 34, - ins: 45, - del: 46, - cmd: 91 - }); - for (i = 97; i < 123; i++) codes[String.fromCharCode(i)] = i - 32; - for (var i = 48; i < 58; i++) codes[i - 48] = i; - for (i = 1; i < 13; i++) codes['f' + i] = i + 111; - for (i = 0; i < 10; i++) codes['numpad ' + i] = i + 96; - var names = (exports.names = exports.title = {}); - for (i in codes) names[codes[i]] = i; - for (var alias in aliases) codes[alias] = aliases[alias]; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.register = function register() { - _addons2.default.register(_.ADDON_ID, function() { - var channel = _addons2.default.getChannel(); - _addons2.default.addPanel(_.PANEL_ID, { - title: 'Action Logger', - render: function render() { - return _react2.default.createElement(_ActionLogger2.default, { channel: channel }); - } - }); - }); - }); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _addons2 = _interopRequireDefault(__webpack_require__(40)), - _ActionLogger2 = _interopRequireDefault(__webpack_require__(524)), - _ = __webpack_require__(104); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _toConsumableArray3 = _interopRequireDefault(__webpack_require__(45)), - _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _deepEqual2 = _interopRequireDefault(__webpack_require__(146)), - _lib = __webpack_require__(105), - _util = __webpack_require__(84), - _ActionLogger2 = _interopRequireDefault(__webpack_require__(567)), - _ = __webpack_require__(104); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ActionLogger = (function(_React$Component) { - function ActionLogger(props) { - var _ref; - (0, _classCallCheck3.default)(this, ActionLogger); - for ( - var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; - _key < _len; - _key++ - ) - args[_key - 1] = arguments[_key]; - var _this = (0, _possibleConstructorReturn3.default)( - this, - (_ref = ActionLogger.__proto__ || (0, _getPrototypeOf2.default)(ActionLogger)).call.apply( - _ref, - [this, props].concat(args) - ) - ); - return ( - (_this.state = { actions: [] }), - (_this._actionListener = function(action) { - return _this.addAction(action); - }), - _this - ); - } - return ( - (0, _inherits3.default)(ActionLogger, _React$Component), - (0, _createClass3.default)(ActionLogger, [ - { - key: 'componentDidMount', - value: function componentDidMount() { - this.props.channel.on(_.EVENT_ID, this._actionListener); - } - }, - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.props.channel.removeListener(_.EVENT_ID, this._actionListener); - } - }, - { - key: 'addAction', - value: function addAction(action) { - action.data.args = action.data.args.map(function(arg) { - return (0, _lib.retrocycle)(arg); - }); - var isCyclic = !!action.data.args.find(function(arg) { - return (0, _util.isObject)(arg) && arg[_lib.CYCLIC_KEY]; - }), - actions = [].concat((0, _toConsumableArray3.default)(this.state.actions)), - previous = actions.length && actions[0]; - previous && - !isCyclic && - (0, _deepEqual2.default)(previous.data, action.data, { strict: !0 }) - ? previous.count++ - : ((action.count = 1), actions.unshift(action)), - this.setState({ actions: actions }); - } - }, - { - key: 'clearActions', - value: function clearActions() { - this.setState({ actions: [] }); - } - }, - { - key: 'render', - value: function render() { - var _this2 = this, - props = { - actions: this.state.actions, - onClear: function onClear() { - return _this2.clearActions(); - } - }; - return _react2.default.createElement(_ActionLogger2.default, props); - } - } - ]), - ActionLogger - ); - })(_react2.default.Component); - (exports.default = ActionLogger), - (ActionLogger.propTypes = { channel: _propTypes2.default.object }), - (ActionLogger.defaultProps = { channel: {} }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _stringify2 = _interopRequireDefault(__webpack_require__(123)), - _typeof3 = _interopRequireDefault(__webpack_require__(21)), - _weakMap2 = _interopRequireDefault(__webpack_require__(527)); - exports.default = function decycle(object) { - var depth = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 10, - objects = new _weakMap2.default(), - isCyclic = !1; - return (function derez(value, path, _depth) { - var oldPath = void 0, - obj = void 0; - if (Object(value) === value && _depth > depth) { - var name = value.constructor - ? value.constructor.name - : void 0 === value ? 'undefined' : (0, _typeof3.default)(value); - return '[' + name + '...]'; - } - var result = (0, _util.typeReplacer)(value); - if (result) return result.value; - var type = void 0 === value ? 'undefined' : (0, _typeof3.default)(value); - if (value instanceof Boolean || value instanceof Number || value instanceof String) - return value; - if ('object' === type && null !== value) { - if (void 0 !== (oldPath = objects.get(value))) return (isCyclic = !0), { $ref: oldPath }; - try { - objects.set(value, path); - } catch (error) { - return console.error(error), new _errors.DecycleError(error.message); - } - if (Array.isArray(value)) { - obj = []; - for (var i = 0; i < value.length; i += 1) - obj[i] = derez(value[i], path + '[' + i + ']', _depth + 1); - } else - (obj = _types.objectType.serialize(value)), - (0, _util.getPropertiesList)(value).forEach(function(name) { - try { - obj[name] = derez( - value[name], - path + '[' + (0, _stringify2.default)(name) + ']', - _depth + 1 - ); - } catch (error) { - console.error(error), (obj[name] = new _errors.DecycleError(error.message)); - } - }); - return ( - 0 === _depth && value instanceof Object && isCyclic && (obj[_.CYCLIC_KEY] = !0), obj - ); - } - return value; - })(object, '$', 0); - }; - var _errors = __webpack_require__(535), - _util = __webpack_require__(84), - _ = __webpack_require__(105), - _types = __webpack_require__(173); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - }, - function(module, exports, __webpack_require__) { - var core = __webpack_require__(10), - $JSON = core.JSON || (core.JSON = { stringify: JSON.stringify }); - module.exports = function stringify(it) { - return $JSON.stringify.apply($JSON, arguments); - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(528), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(117), - __webpack_require__(64), - __webpack_require__(529), - __webpack_require__(533), - __webpack_require__(534), - (module.exports = __webpack_require__(10).WeakMap); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var InternalMap, - each = __webpack_require__(171)(0), - redefine = __webpack_require__(147), - meta = __webpack_require__(77), - assign = __webpack_require__(218), - weak = __webpack_require__(532), - isObject = __webpack_require__(20), - fails = __webpack_require__(43), - validate = __webpack_require__(172), - getWeak = meta.getWeak, - isExtensible = Object.isExtensible, - uncaughtFrozenStore = weak.ufstore, - tmp = {}, - wrapper = function(get) { - return function WeakMap() { - return get(this, arguments.length > 0 ? arguments[0] : void 0); - }; - }, - methods = { - get: function get(key) { - if (isObject(key)) { - var data = getWeak(key); - return !0 === data - ? uncaughtFrozenStore(validate(this, 'WeakMap')).get(key) - : data ? data[this._i] : void 0; - } - }, - set: function set(key, value) { - return weak.def(validate(this, 'WeakMap'), key, value); - } - }, - $WeakMap = (module.exports = __webpack_require__(288)( - 'WeakMap', - wrapper, - methods, - weak, - !0, - !0 - )); - fails(function() { - return 7 != new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp); - }) && - (assign((InternalMap = weak.getConstructor(wrapper, 'WeakMap')).prototype, methods), - (meta.NEED = !0), - each(['delete', 'has', 'get', 'set'], function(key) { - var proto = $WeakMap.prototype, - method = proto[key]; - redefine(proto, key, function(a, b) { - if (isObject(a) && !isExtensible(a)) { - this._f || (this._f = new InternalMap()); - var result = this._f[key](a, b); - return 'set' == key ? this : result; - } - return method.call(this, a, b); - }); - })); - }, - function(module, exports, __webpack_require__) { - var speciesConstructor = __webpack_require__(531); - module.exports = function(original, length) { - return new (speciesConstructor(original))(length); - }; - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(20), - isArray = __webpack_require__(221), - SPECIES = __webpack_require__(18)('species'); - module.exports = function(original) { - var C; - return ( - isArray(original) && - ('function' != typeof (C = original.constructor) || - (C !== Array && !isArray(C.prototype)) || - (C = void 0), - isObject(C) && null === (C = C[SPECIES]) && (C = void 0)), - void 0 === C ? Array : C - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var redefineAll = __webpack_require__(121), - getWeak = __webpack_require__(77).getWeak, - anObject = __webpack_require__(24), - isObject = __webpack_require__(20), - anInstance = __webpack_require__(120), - forOf = __webpack_require__(78), - createArrayMethod = __webpack_require__(171), - $has = __webpack_require__(41), - validate = __webpack_require__(172), - arrayFind = createArrayMethod(5), - arrayFindIndex = createArrayMethod(6), - id = 0, - uncaughtFrozenStore = function(that) { - return that._l || (that._l = new UncaughtFrozenStore()); - }, - UncaughtFrozenStore = function() { - this.a = []; - }, - findUncaughtFrozen = function(store, key) { - return arrayFind(store.a, function(it) { - return it[0] === key; - }); - }; - (UncaughtFrozenStore.prototype = { - get: function(key) { - var entry = findUncaughtFrozen(this, key); - if (entry) return entry[1]; - }, - has: function(key) { - return !!findUncaughtFrozen(this, key); - }, - set: function(key, value) { - var entry = findUncaughtFrozen(this, key); - entry ? (entry[1] = value) : this.a.push([key, value]); - }, - delete: function(key) { - var index = arrayFindIndex(this.a, function(it) { - return it[0] === key; - }); - return ~index && this.a.splice(index, 1), !!~index; - } - }), - (module.exports = { - getConstructor: function(wrapper, NAME, IS_MAP, ADDER) { - var C = wrapper(function(that, iterable) { - anInstance(that, C, NAME, '_i'), - (that._t = NAME), - (that._i = id++), - (that._l = void 0), - void 0 != iterable && forOf(iterable, IS_MAP, that[ADDER], that); - }); - return ( - redefineAll(C.prototype, { - delete: function(key) { - if (!isObject(key)) return !1; - var data = getWeak(key); - return !0 === data - ? uncaughtFrozenStore(validate(this, NAME)).delete(key) - : data && $has(data, this._i) && delete data[this._i]; - }, - has: function has(key) { - if (!isObject(key)) return !1; - var data = getWeak(key); - return !0 === data - ? uncaughtFrozenStore(validate(this, NAME)).has(key) - : data && $has(data, this._i); - } - }), - C - ); - }, - def: function(that, key, value) { - var data = getWeak(anObject(key), !0); - return ( - !0 === data ? uncaughtFrozenStore(that).set(key, value) : (data[that._i] = value), that - ); - }, - ufstore: uncaughtFrozenStore - }); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(289)('WeakMap'); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(290)('WeakMap'); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.DecycleError = void 0); - var _DecycleError3 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(536)); - exports.DecycleError = _DecycleError3.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var DecycleError = (function(_BaseError) { - function DecycleError() { - return ( - (0, _classCallCheck3.default)(this, DecycleError), - (0, _possibleConstructorReturn3.default)( - this, - (DecycleError.__proto__ || (0, _getPrototypeOf2.default)(DecycleError)).apply( - this, - arguments - ) - ) - ); - } - return (0, _inherits3.default)(DecycleError, _BaseError), DecycleError; - })(__webpack_require__(537).BaseError); - exports.default = DecycleError; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var construct = 'undefined' != typeof Reflect ? Reflect.construct : void 0, - defineProperty = Object.defineProperty, - captureStackTrace = Error.captureStackTrace; - function BaseError(message) { - void 0 !== message && - defineProperty(this, 'message', { configurable: !0, value: message, writable: !0 }); - var cname = this.constructor.name; - void 0 !== cname && - cname !== this.name && - defineProperty(this, 'name', { configurable: !0, value: cname, writable: !0 }), - captureStackTrace(this, this.constructor); - } - void 0 === captureStackTrace && - (captureStackTrace = function captureStackTrace(error) { - var container = new Error(); - defineProperty(error, 'stack', { - configurable: !0, - get: function getStack() { - var stack = container.stack; - return defineProperty(this, 'stack', { value: stack }), stack; - }, - set: function setStack(stack) { - defineProperty(error, 'stack', { configurable: !0, value: stack, writable: !0 }); - } - }); - }), - (BaseError.prototype = Object.create(Error.prototype, { - constructor: { configurable: !0, value: BaseError, writable: !0 } - })); - var setFunctionName = (function() { - function setFunctionName(fn, name) { - return defineProperty(fn, 'name', { configurable: !0, value: name }); - } - try { - var f = function() {}; - if ((setFunctionName(f, 'foo'), 'foo' === f.name)) return setFunctionName; - } catch (_) {} - })(); - (module.exports = function makeError(constructor, super_) { - if (null == super_ || super_ === Error) super_ = BaseError; - else if ('function' != typeof super_) throw new TypeError('super_ should be a function'); - var name; - if ('string' == typeof constructor) - (name = constructor), - (constructor = - void 0 !== construct - ? function() { - return construct(super_, arguments, constructor); - } - : function() { - super_.apply(this, arguments); - }), - void 0 !== setFunctionName && (setFunctionName(constructor, name), (name = void 0)); - else if ('function' != typeof constructor) - throw new TypeError('constructor should be either a string or a function'); - constructor.super_ = constructor.super = super_; - var properties = { constructor: { configurable: !0, value: constructor, writable: !0 } }; - return ( - void 0 !== name && (properties.name = { configurable: !0, value: name, writable: !0 }), - (constructor.prototype = Object.create(super_.prototype, properties)), - constructor - ); - }).BaseError = BaseError; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(539); - var $Object = __webpack_require__(10).Object; - module.exports = function getOwnPropertyDescriptor(it, key) { - return $Object.getOwnPropertyDescriptor(it, key); - }; - }, - function(module, exports, __webpack_require__) { - var toIObject = __webpack_require__(46), - $getOwnPropertyDescriptor = __webpack_require__(150).f; - __webpack_require__(114)('getOwnPropertyDescriptor', function() { - return function getOwnPropertyDescriptor(it, key) { - return $getOwnPropertyDescriptor(toIObject(it), key); - }; - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function getPropertiesList(value) { - var keys = []; - for (var name in value) - try { - (hasOwnProperty.call(value, name) || 'function' != typeof value[name]) && - keys.push(name); - } catch (error) { - console.error('Error accessing property ' + name, error); - } - return keys; - }); - var hasOwnProperty = Object.prototype.hasOwnProperty; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function isObject(value) { - return '[object Object]' === toString.call(value); - }); - var toString = Object.prototype.toString; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _defineProperty2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(115)); - exports.default = function muteProperty(key, value) { - return (0, _defineProperty2.default)(value, key, { enumerable: !1 }); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _stringify2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(123)); - exports.default = function prepareArguments(arg) { - if (arg && void 0 !== arg.preventDefault) - return (0, _stringify2.default)('[' + arg.constructor.name + ']'); - try { - return (0, _stringify2.default)((0, _index.decycle)(arg)); - } catch (error) { - return error.toString(); - } - }; - var _index = __webpack_require__(105); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _types = __webpack_require__(173), - hasOwnProperty = Object.prototype.hasOwnProperty, - allTypes = _types.types.concat(_types.objectType); - exports.default = function typeFilter(value) { - var found = allTypes.find(function(type) { - return hasOwnProperty.call(value, type.KEY); - }); - return !!found && { value: found.deserialize(value) }; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _defineProperty3 = _interopRequireDefault(__webpack_require__(31)), - _createNamedObject2 = _interopRequireDefault(__webpack_require__(546)), - _getObjectName2 = _interopRequireDefault(__webpack_require__(550)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var KEY = '$___storybook.objectName', - objectType = { - KEY: KEY, - serialize: function serialize(value) { - return (0, _defineProperty3.default)({}, KEY, (0, _getObjectName2.default)(value)); - }, - deserialize: function deserialize(value) { - return (0, _createNamedObject2.default)(value, KEY); - } - }; - exports.default = objectType; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _assign2 = _interopRequireDefault(__webpack_require__(86)); - exports.default = function createNamedObject(obj, key) { - var namedObj = new ((0, _createFunction2.default)(obj[key]))(); - return delete obj[key], (0, _assign2.default)(namedObj, obj), namedObj; - }; - var _createFunction2 = _interopRequireDefault(__webpack_require__(174)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function createFunctionEval(name) { - var fnName = (0, _isReserved2.default)(name) ? name + '$' : name; - return new Function('return function ' + fnName + '() {}')(); - }); - var _isReserved2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(548)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function isReserved(name) { - return _reservedKeywords2.default.indexOf(name) >= 0; - }); - var _reservedKeywords2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(549)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - exports.default = [ - 'break', - 'case', - 'catch', - 'class', - 'continue', - 'debugger', - 'default', - 'delete', - 'do', - 'else', - 'export', - 'extends', - 'finally', - 'for', - 'function', - 'if', - 'import', - 'in', - 'instanceof', - 'new', - 'return', - 'super', - 'switch', - 'this', - 'throw', - 'try', - 'typeof', - 'var', - 'void', - 'while', - 'with', - 'yield' - ]; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function getObjectName(value) { - if ((0, _canAccessProperty2.default)('toString', value)) { - var stringValue = value.toString(); - if ('class' === stringValue.slice(0, 5)) return stringValue.slice(6, -3); - var type = stringValue.slice(8, -1); - if ('object' === stringValue.slice(1, 7) && 'Object' !== type) return type; - var parts = stringValue.match(/function (\w+).*/); - if (parts && 2 === parts.length) return parts[1]; - } - return value.constructor ? value.constructor.name : 'Object'; - }); - var _canAccessProperty2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(551)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function canAccessProperty(key, value) { - var prop = void 0; - try { - prop = value[key]; - } catch (error) { - console.error(error); - } - return !!prop; - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _defineProperty3 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(31)); - var KEY = '$___storybook.Date', - dateType = { - KEY: KEY, - is: function is(value) { - return value instanceof Date; - }, - serialize: function serialize(value) { - return (0, _defineProperty3.default)({}, KEY, value.toISOString()); - }, - deserialize: function deserialize(value) { - return new Date(value[KEY]); - } - }; - exports.default = dateType; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _defineProperty3 = _interopRequireDefault(__webpack_require__(31)), - _createBoundFunction2 = _interopRequireDefault(__webpack_require__(554)), - _createFunction2 = _interopRequireDefault(__webpack_require__(174)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var KEY = '$___storybook.functionName', - functionType = { - KEY: KEY, - is: function is(value) { - return 'function' == typeof value; - }, - serialize: function serialize(value) { - return (0, _defineProperty3.default)({}, KEY, value.name || ''); - }, - deserialize: function deserialize(value) { - var parts = value[KEY].split(' '); - return 2 === parts.length && 'bound' === parts[0] - ? (0, _createBoundFunction2.default)(parts[1]) - : (0, _createFunction2.default)(parts[0]); - } - }; - exports.default = functionType; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function createBoundFunction(name) { - return (0, _createFunction2.default)(name).bind({}); - }); - var _createFunction2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(174)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _defineProperty3 = _interopRequireDefault(__webpack_require__(31)), - _isFinite2 = _interopRequireDefault(__webpack_require__(556)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var KEY = '$___storybook.Infinity', - InfinityType = { - KEY: KEY, - is: function is(value) { - return 'number' == typeof value && !(0, _isFinite2.default)(value); - }, - serialize: function serialize(value) { - return (0, _defineProperty3.default)({}, KEY, value === 1 / 0); - }, - deserialize: function deserialize(value) { - return value[KEY] ? 1 / 0 : -1 / 0; - } - }; - exports.default = InfinityType; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(557), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(558), (module.exports = __webpack_require__(10).Number.isFinite); - }, - function(module, exports, __webpack_require__) { - var $export = __webpack_require__(16), - _isFinite = __webpack_require__(17).isFinite; - $export($export.S, 'Number', { - isFinite: function isFinite(it) { - return 'number' == typeof it && _isFinite(it); - } - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _defineProperty3 = _interopRequireDefault(__webpack_require__(31)), - _isNan2 = _interopRequireDefault(__webpack_require__(286)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var KEY = '$___storybook.NaN', - NaNType = { - KEY: KEY, - is: function is(value) { - return 'number' == typeof value && (0, _isNan2.default)(value); - }, - serialize: function serialize() { - return (0, _defineProperty3.default)({}, KEY, !0); - }, - deserialize: function deserialize() { - return NaN; - } - }; - exports.default = NaNType; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _defineProperty3 = _interopRequireDefault(__webpack_require__(31)), - _createRegExp2 = _interopRequireDefault(__webpack_require__(561)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var KEY = '$___storybook.regExpKey', - regExpType = { - KEY: KEY, - is: function is(value) { - return value instanceof RegExp; - }, - serialize: function serialize(value) { - return (0, _defineProperty3.default)({}, KEY, value.toString()); - }, - deserialize: function deserialize(value) { - return (0, _createRegExp2.default)(value[KEY]); - } - }; - exports.default = regExpType; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function createRegExp(regExp) { - var parts = regExp.split('/'); - return new RegExp(parts[1], parts[2]); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _defineProperty3 = _interopRequireDefault(__webpack_require__(31)), - _typeof3 = _interopRequireDefault(__webpack_require__(21)), - _createSymbol2 = _interopRequireDefault(__webpack_require__(563)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var KEY = '$___storybook.symbolName', - symbolType = { - KEY: KEY, - is: function is(value) { - return 'symbol' === (void 0 === value ? 'undefined' : (0, _typeof3.default)(value)); - }, - serialize: function serialize(value) { - return (0, _defineProperty3.default)({}, KEY, String(value).slice(7, -1) || null); - }, - deserialize: function deserialize(value) { - return (0, _createSymbol2.default)(value[KEY]); - } - }; - exports.default = symbolType; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _symbol2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(185)); - exports.default = function createSymbol(name) { - return (0, _symbol2.default)(name); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _defineProperty3 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(31)); - var KEY = '$___storybook.undefined', - undefinedType = { - KEY: KEY, - is: function is(value) { - return void 0 === value; - }, - serialize: function serialize() { - return (0, _defineProperty3.default)({}, KEY, !0); - }, - deserialize: function deserialize() {} - }; - exports.default = undefinedType; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _types = __webpack_require__(173); - exports.default = function typeReplacer(value) { - var found = _types.types.find(function(type) { - return type.is(value); - }); - return !!found && { value: found.serialize(value) }; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _typeof2 = __webpack_require__(21), - _typeof3 = _interopRequireDefault(_typeof2); - exports.default = retrocycle; - var _reviver = __webpack_require__(261), - _reviver2 = _interopRequireDefault(_reviver), - _util = __webpack_require__(84), - _ = __webpack_require__(105); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var pathReg = /^\$(?:\[(?:\d+|"(?:[^\\"\u0000-\u001f]|\\([\\"/bfnrt]|u[0-9a-zA-Z]{4}))*")])*$/; - function retrocycle(json) { - var $ = JSON.parse(json, _reviver2.default); - return 'object' !== (void 0 === $ ? 'undefined' : (0, _typeof3.default)($)) || null === $ - ? $ - : ((function rez(value) { - if ( - value && - 'object' === (void 0 === value ? 'undefined' : (0, _typeof3.default)(value)) - ) - if (Array.isArray(value)) - for (var i = 0; i < value.length; i += 1) { - var item = value[i]; - if ( - item && - 'object' === (void 0 === item ? 'undefined' : (0, _typeof3.default)(item)) - ) { - var path = item.$ref; - 'string' == typeof path && pathReg.test(path) - ? (value[i] = eval(path)) - : rez(item); - } - } - else - for (var name in value) { - var _item = value[name]; - if ( - 'object' === (void 0 === _item ? 'undefined' : (0, _typeof3.default)(_item)) && - null !== _item - ) { - var _path = _item.$ref; - 'string' == typeof _path && pathReg.test(_path) - ? (value[name] = eval(_path)) - : rez(_item); - } - } - })($), - (0, _util.muteProperty)(_.CYCLIC_KEY, $), - $); - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _reactInspector2 = _interopRequireDefault(__webpack_require__(568)), - _style2 = _interopRequireDefault(__webpack_require__(587)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ActionLogger = (function(_Component) { - function ActionLogger() { - return ( - (0, _classCallCheck3.default)(this, ActionLogger), - (0, _possibleConstructorReturn3.default)( - this, - (ActionLogger.__proto__ || (0, _getPrototypeOf2.default)(ActionLogger)).apply( - this, - arguments - ) - ) - ); - } - return ( - (0, _inherits3.default)(ActionLogger, _Component), - (0, _createClass3.default)(ActionLogger, [ - { - key: 'getActionData', - value: function getActionData() { - var _this2 = this; - return this.props.actions.map(function(action) { - return _this2.renderAction(action); - }); - } - }, - { - key: 'renderAction', - value: function renderAction(action) { - var counter = _react2.default.createElement( - 'div', - { style: _style2.default.counter }, - action.count - ); - return _react2.default.createElement( - 'div', - { key: action.id, style: _style2.default.action }, - _react2.default.createElement( - 'div', - { style: _style2.default.countwrap }, - action.count > 1 && counter - ), - _react2.default.createElement( - 'div', - { style: _style2.default.inspector }, - _react2.default.createElement(_reactInspector2.default, { - sortObjectKeys: !0, - showNonenumerable: !1, - name: action.data.name, - data: action.data.args || action.data - }) - ) - ); - } - }, - { - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { style: _style2.default.wrapper }, - _react2.default.createElement( - 'pre', - { style: _style2.default.actions }, - this.getActionData() - ), - _react2.default.createElement( - 'button', - { style: _style2.default.button, onClick: this.props.onClear }, - 'CLEAR' - ) - ); - } - } - ]), - ActionLogger - ); - })(_react.Component); - (ActionLogger.propTypes = { - onClear: _propTypes2.default.func, - actions: _propTypes2.default.array - }), - (ActionLogger.defaultProps = { onClear: function onClear() {}, actions: [] }), - (exports.default = ActionLogger); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.Inspector = exports.ObjectName = exports.ObjectValue = exports.ObjectRootLabel = exports.ObjectLabel = exports.DOMInspector = exports.TableInspector = exports.ObjectInspector = exports.chromeDark = exports.chromeLight = void 0); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _objectWithoutProperties3 = _interopRequireDefault(__webpack_require__(65)), - _themes = __webpack_require__(262); - Object.defineProperty(exports, 'chromeLight', { - enumerable: !0, - get: function get() { - return _themes.chromeLight; - } - }), - Object.defineProperty(exports, 'chromeDark', { - enumerable: !0, - get: function get() { - return _themes.chromeDark; - } - }); - var _ObjectInspector3 = _interopRequireDefault(__webpack_require__(571)), - _TableInspector3 = _interopRequireDefault(__webpack_require__(579)), - _DOMInspector3 = _interopRequireDefault(__webpack_require__(584)), - _ObjectLabel3 = _interopRequireDefault(__webpack_require__(266)), - _ObjectRootLabel3 = _interopRequireDefault(__webpack_require__(265)), - _ObjectValue3 = _interopRequireDefault(__webpack_require__(107)), - _ObjectName3 = _interopRequireDefault(__webpack_require__(106)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _isDom2 = _interopRequireDefault(__webpack_require__(586)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - (exports.ObjectInspector = _ObjectInspector3.default), - (exports.TableInspector = _TableInspector3.default), - (exports.DOMInspector = _DOMInspector3.default), - (exports.ObjectLabel = _ObjectLabel3.default), - (exports.ObjectRootLabel = _ObjectRootLabel3.default), - (exports.ObjectValue = _ObjectValue3.default), - (exports.ObjectName = _ObjectName3.default); - var Inspector = function Inspector(_ref) { - var _ref$table = _ref.table, - table = void 0 !== _ref$table && _ref$table, - data = _ref.data, - rest = (0, _objectWithoutProperties3.default)(_ref, ['table', 'data']); - return table - ? _react2.default.createElement( - _TableInspector3.default, - (0, _extends3.default)({ data: data }, rest) - ) - : (0, _isDom2.default)(data) - ? _react2.default.createElement( - _DOMInspector3.default, - (0, _extends3.default)({ data: data }, rest) - ) - : _react2.default.createElement( - _ObjectInspector3.default, - (0, _extends3.default)({ data: data }, rest) - ); - }; - (Inspector.propTypes = { - data: _propTypes2.default.any, - name: _propTypes2.default.string, - table: _propTypes2.default.bool - }), - (exports.Inspector = Inspector), - (exports.default = Inspector); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - exports.default = { - BASE_FONT_FAMILY: 'Menlo, monospace', - BASE_FONT_SIZE: '11px', - BASE_LINE_HEIGHT: '14px', - BASE_BACKGROUND_COLOR: 'rgb(36, 36, 36)', - BASE_COLOR: 'rgb(213, 213, 213)', - OBJECT_NAME_COLOR: 'rgb(227, 110, 236)', - OBJECT_VALUE_NULL_COLOR: 'rgb(127, 127, 127)', - OBJECT_VALUE_UNDEFINED_COLOR: 'rgb(127, 127, 127)', - OBJECT_VALUE_REGEXP_COLOR: 'rgb(233, 63, 59)', - OBJECT_VALUE_STRING_COLOR: 'rgb(233, 63, 59)', - OBJECT_VALUE_SYMBOL_COLOR: 'rgb(233, 63, 59)', - OBJECT_VALUE_NUMBER_COLOR: 'hsl(252, 100%, 75%)', - OBJECT_VALUE_BOOLEAN_COLOR: 'hsl(252, 100%, 75%)', - OBJECT_VALUE_FUNCTION_KEYWORD_COLOR: 'rgb(242, 85, 217)', - HTML_TAG_COLOR: 'rgb(93, 176, 215)', - HTML_TAGNAME_COLOR: 'rgb(93, 176, 215)', - HTML_TAGNAME_TEXT_TRANSFORM: 'lowercase', - HTML_ATTRIBUTE_NAME_COLOR: 'rgb(155, 187, 220)', - HTML_ATTRIBUTE_VALUE_COLOR: 'rgb(242, 151, 102)', - HTML_COMMENT_COLOR: 'rgb(137, 137, 137)', - HTML_DOCTYPE_COLOR: 'rgb(192, 192, 192)', - ARROW_COLOR: 'rgb(145, 145, 145)', - ARROW_MARGIN_RIGHT: 3, - ARROW_FONT_SIZE: 12, - TREENODE_FONT_FAMILY: 'Menlo, monospace', - TREENODE_FONT_SIZE: '11px', - TREENODE_LINE_HEIGHT: '14px', - TREENODE_PADDING_LEFT: 12, - TABLE_BORDER_COLOR: 'rgb(85, 85, 85)', - TABLE_TH_BACKGROUND_COLOR: 'rgb(44, 44, 44)', - TABLE_TH_HOVER_COLOR: 'rgb(48, 48, 48)', - TABLE_SORT_ICON_COLOR: 'black', - TABLE_DATA_BACKGROUND_IMAGE: - 'linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))', - TABLE_DATA_BACKGROUND_SIZE: '128px 32px' - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - exports.default = { - BASE_FONT_FAMILY: 'Menlo, monospace', - BASE_FONT_SIZE: '11px', - BASE_LINE_HEIGHT: '14px', - BASE_BACKGROUND_COLOR: 'white', - BASE_COLOR: 'black', - OBJECT_NAME_COLOR: 'rgb(136, 19, 145)', - OBJECT_VALUE_NULL_COLOR: 'rgb(128, 128, 128)', - OBJECT_VALUE_UNDEFINED_COLOR: 'rgb(128, 128, 128)', - OBJECT_VALUE_REGEXP_COLOR: 'rgb(196, 26, 22)', - OBJECT_VALUE_STRING_COLOR: 'rgb(196, 26, 22)', - OBJECT_VALUE_SYMBOL_COLOR: 'rgb(196, 26, 22)', - OBJECT_VALUE_NUMBER_COLOR: 'rgb(28, 0, 207)', - OBJECT_VALUE_BOOLEAN_COLOR: 'rgb(28, 0, 207)', - OBJECT_VALUE_FUNCTION_KEYWORD_COLOR: 'rgb(170, 13, 145)', - HTML_TAG_COLOR: 'rgb(168, 148, 166)', - HTML_TAGNAME_COLOR: 'rgb(136, 18, 128)', - HTML_TAGNAME_TEXT_TRANSFORM: 'lowercase', - HTML_ATTRIBUTE_NAME_COLOR: 'rgb(153, 69, 0)', - HTML_ATTRIBUTE_VALUE_COLOR: 'rgb(26, 26, 166)', - HTML_COMMENT_COLOR: 'rgb(35, 110, 37)', - HTML_DOCTYPE_COLOR: 'rgb(192, 192, 192)', - ARROW_COLOR: '#6e6e6e', - ARROW_MARGIN_RIGHT: 3, - ARROW_FONT_SIZE: 12, - TREENODE_FONT_FAMILY: 'Menlo, monospace', - TREENODE_FONT_SIZE: '11px', - TREENODE_LINE_HEIGHT: '14px', - TREENODE_PADDING_LEFT: 12, - TABLE_BORDER_COLOR: '#aaa', - TABLE_TH_BACKGROUND_COLOR: '#eee', - TABLE_TH_HOVER_COLOR: 'hsla(0, 0%, 90%, 1)', - TABLE_SORT_ICON_COLOR: '#6e6e6e', - TABLE_DATA_BACKGROUND_IMAGE: - 'linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))', - TABLE_DATA_BACKGROUND_SIZE: '128px 32px' - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _objectWithoutProperties3 = _interopRequireDefault(__webpack_require__(65)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _regenerator2 = _interopRequireDefault(__webpack_require__(263)), - _slicedToArray3 = _interopRequireDefault(__webpack_require__(186)), - _typeof3 = _interopRequireDefault(__webpack_require__(21)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _TreeView2 = _interopRequireDefault(__webpack_require__(264)), - _ObjectRootLabel2 = _interopRequireDefault(__webpack_require__(265)), - _ObjectLabel2 = _interopRequireDefault(__webpack_require__(266)), - _ThemeProvider2 = _interopRequireDefault(__webpack_require__(175)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var defaultNodeRenderer = function defaultNodeRenderer(_ref) { - var depth = _ref.depth, - name = _ref.name, - data = _ref.data, - isNonenumerable = _ref.isNonenumerable; - return 0 === depth - ? _react2.default.createElement(_ObjectRootLabel2.default, { name: name, data: data }) - : _react2.default.createElement(_ObjectLabel2.default, { - name: name, - data: data, - isNonenumerable: isNonenumerable - }); - }, - ObjectInspector = (function(_Component) { - function ObjectInspector() { - return ( - (0, _classCallCheck3.default)(this, ObjectInspector), - (0, _possibleConstructorReturn3.default)( - this, - (ObjectInspector.__proto__ || Object.getPrototypeOf(ObjectInspector)).apply( - this, - arguments - ) - ) - ); - } - return ( - (0, _inherits3.default)(ObjectInspector, _Component), - (0, _createClass3.default)(ObjectInspector, [ - { - key: 'render', - value: function render() { - var _props = this.props, - showNonenumerable = _props.showNonenumerable, - sortObjectKeys = _props.sortObjectKeys, - nodeRenderer = _props.nodeRenderer, - rest = (0, _objectWithoutProperties3.default)(_props, [ - 'showNonenumerable', - 'sortObjectKeys', - 'nodeRenderer' - ]), - dataIterator = (function createIterator(showNonenumerable, sortObjectKeys) { - return _regenerator2.default.mark(function objectIterator(data) { - var i, - _iteratorNormalCompletion, - _didIteratorError, - _iteratorError, - _iterator, - _step, - entry, - _entry, - k, - v, - keys, - _iteratorNormalCompletion2, - _didIteratorError2, - _iteratorError2, - _iterator2, - _step2, - propertyName, - propertyValue, - _propertyValue; - return _regenerator2.default.wrap( - function objectIterator$(_context) { - for (;;) - switch ((_context.prev = _context.next)) { - case 0: - if ( - ('object' === - (void 0 === data ? 'undefined' : (0, _typeof3.default)(data)) && - null !== data) || - 'function' == typeof data - ) { - _context.next = 3; - break; - } - return _context.abrupt('return'); - case 3: - if (Array.isArray(data) || !data[Symbol.iterator]) { - _context.next = 40; - break; - } - (i = 0), - (_iteratorNormalCompletion = !0), - (_didIteratorError = !1), - (_iteratorError = void 0), - (_context.prev = 8), - (_iterator = data[Symbol.iterator]()); - case 10: - if ((_iteratorNormalCompletion = (_step = _iterator.next()).done)) { - _context.next = 24; - break; - } - if ( - ((entry = _step.value), - !Array.isArray(entry) || 2 !== entry.length) - ) { - _context.next = 18; - break; - } - return ( - (_entry = (0, _slicedToArray3.default)(entry, 2)), - (k = _entry[0]), - (v = _entry[1]), - (_context.next = 16), - { name: k, data: v } - ); - case 16: - _context.next = 20; - break; - case 18: - return (_context.next = 20), { name: i.toString(), data: entry }; - case 20: - i++; - case 21: - (_iteratorNormalCompletion = !0), (_context.next = 10); - break; - case 24: - _context.next = 30; - break; - case 26: - (_context.prev = 26), - (_context.t0 = _context.catch(8)), - (_didIteratorError = !0), - (_iteratorError = _context.t0); - case 30: - (_context.prev = 30), - (_context.prev = 31), - !_iteratorNormalCompletion && - _iterator.return && - _iterator.return(); - case 33: - if (((_context.prev = 33), !_didIteratorError)) { - _context.next = 36; - break; - } - throw _iteratorError; - case 36: - return _context.finish(33); - case 37: - return _context.finish(30); - case 38: - _context.next = 81; - break; - case 40: - (keys = Object.getOwnPropertyNames(data)), - !0 === sortObjectKeys - ? keys.sort() - : 'function' == typeof sortObjectKeys && - keys.sort(sortObjectKeys), - (_iteratorNormalCompletion2 = !0), - (_didIteratorError2 = !1), - (_iteratorError2 = void 0), - (_context.prev = 45), - (_iterator2 = keys[Symbol.iterator]()); - case 47: - if ( - (_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done) - ) { - _context.next = 64; - break; - } - if ( - ((propertyName = _step2.value), - !data.propertyIsEnumerable(propertyName)) - ) { - _context.next = 55; - break; - } - return ( - (propertyValue = data[propertyName]), - (_context.next = 53), - { name: propertyName || '""', data: propertyValue } - ); - case 53: - _context.next = 61; - break; - case 55: - if (!showNonenumerable) { - _context.next = 61; - break; - } - _propertyValue = void 0; - try { - _propertyValue = data[propertyName]; - } catch (e) {} - if (void 0 === _propertyValue) { - _context.next = 61; - break; - } - return ( - (_context.next = 61), - { name: propertyName, data: _propertyValue, isNonenumerable: !0 } - ); - case 61: - (_iteratorNormalCompletion2 = !0), (_context.next = 47); - break; - case 64: - _context.next = 70; - break; - case 66: - (_context.prev = 66), - (_context.t1 = _context.catch(45)), - (_didIteratorError2 = !0), - (_iteratorError2 = _context.t1); - case 70: - (_context.prev = 70), - (_context.prev = 71), - !_iteratorNormalCompletion2 && - _iterator2.return && - _iterator2.return(); - case 73: - if (((_context.prev = 73), !_didIteratorError2)) { - _context.next = 76; - break; - } - throw _iteratorError2; - case 76: - return _context.finish(73); - case 77: - return _context.finish(70); - case 78: - if (!showNonenumerable || data === Object.prototype) { - _context.next = 81; - break; - } - return ( - (_context.next = 81), - { - name: '__proto__', - data: Object.getPrototypeOf(data), - isNonenumerable: !0 - } - ); - case 81: - case 'end': - return _context.stop(); - } - }, - objectIterator, - this, - [[8, 26, 30, 38], [31, , 33, 37], [45, 66, 70, 78], [71, , 73, 77]] - ); - }); - })(showNonenumerable, sortObjectKeys), - renderer = nodeRenderer || defaultNodeRenderer; - return _react2.default.createElement( - _ThemeProvider2.default, - { theme: this.props.theme }, - _react2.default.createElement( - _TreeView2.default, - (0, _extends3.default)( - { nodeRenderer: renderer, dataIterator: dataIterator }, - rest - ) - ) - ); - } - } - ]), - ObjectInspector - ); - })(_react.Component); - (ObjectInspector.defaultProps = { showNonenumerable: !1, theme: 'chromeLight' }), - (ObjectInspector.propTypes = { - expandLevel: _propTypes2.default.number, - expandPaths: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.array - ]), - name: _propTypes2.default.string, - data: _propTypes2.default.any, - theme: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.object - ]), - showNonenumerable: _propTypes2.default.bool, - sortObjectKeys: _propTypes2.default.oneOfType([ - _propTypes2.default.bool, - _propTypes2.default.func - ]), - nodeRenderer: _propTypes2.default.func - }), - (exports.default = ObjectInspector); - }, - function(module, exports, __webpack_require__) { - var g = - (function() { - return this; - })() || Function('return this')(), - hadRuntime = - g.regeneratorRuntime && Object.getOwnPropertyNames(g).indexOf('regeneratorRuntime') >= 0, - oldRuntime = hadRuntime && g.regeneratorRuntime; - if (((g.regeneratorRuntime = void 0), (module.exports = __webpack_require__(573)), hadRuntime)) - g.regeneratorRuntime = oldRuntime; - else - try { - delete g.regeneratorRuntime; - } catch (e) { - g.regeneratorRuntime = void 0; - } - }, - function(module, exports) { - !(function(global) { - 'use strict'; - var undefined, - Op = Object.prototype, - hasOwn = Op.hasOwnProperty, - $Symbol = 'function' == typeof Symbol ? Symbol : {}, - iteratorSymbol = $Symbol.iterator || '@@iterator', - asyncIteratorSymbol = $Symbol.asyncIterator || '@@asyncIterator', - toStringTagSymbol = $Symbol.toStringTag || '@@toStringTag', - inModule = 'object' == typeof module, - runtime = global.regeneratorRuntime; - if (runtime) inModule && (module.exports = runtime); - else { - (runtime = global.regeneratorRuntime = inModule ? module.exports : {}).wrap = wrap; - var GenStateSuspendedStart = 'suspendedStart', - GenStateSuspendedYield = 'suspendedYield', - GenStateExecuting = 'executing', - GenStateCompleted = 'completed', - ContinueSentinel = {}, - IteratorPrototype = {}; - IteratorPrototype[iteratorSymbol] = function() { - return this; - }; - var getProto = Object.getPrototypeOf, - NativeIteratorPrototype = getProto && getProto(getProto(values([]))); - NativeIteratorPrototype && - NativeIteratorPrototype !== Op && - hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && - (IteratorPrototype = NativeIteratorPrototype); - var Gp = (GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create( - IteratorPrototype - )); - (GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype), - (GeneratorFunctionPrototype.constructor = GeneratorFunction), - (GeneratorFunctionPrototype[toStringTagSymbol] = GeneratorFunction.displayName = - 'GeneratorFunction'), - (runtime.isGeneratorFunction = function(genFun) { - var ctor = 'function' == typeof genFun && genFun.constructor; - return ( - !!ctor && - (ctor === GeneratorFunction || - 'GeneratorFunction' === (ctor.displayName || ctor.name)) - ); - }), - (runtime.mark = function(genFun) { - return ( - Object.setPrototypeOf - ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) - : ((genFun.__proto__ = GeneratorFunctionPrototype), - toStringTagSymbol in genFun || (genFun[toStringTagSymbol] = 'GeneratorFunction')), - (genFun.prototype = Object.create(Gp)), - genFun - ); - }), - (runtime.awrap = function(arg) { - return { __await: arg }; - }), - defineIteratorMethods(AsyncIterator.prototype), - (AsyncIterator.prototype[asyncIteratorSymbol] = function() { - return this; - }), - (runtime.AsyncIterator = AsyncIterator), - (runtime.async = function(innerFn, outerFn, self, tryLocsList) { - var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList)); - return runtime.isGeneratorFunction(outerFn) - ? iter - : iter.next().then(function(result) { - return result.done ? result.value : iter.next(); - }); - }), - defineIteratorMethods(Gp), - (Gp[toStringTagSymbol] = 'Generator'), - (Gp[iteratorSymbol] = function() { - return this; - }), - (Gp.toString = function() { - return '[object Generator]'; - }), - (runtime.keys = function(object) { - var keys = []; - for (var key in object) keys.push(key); - return ( - keys.reverse(), - function next() { - for (; keys.length; ) { - var key = keys.pop(); - if (key in object) return (next.value = key), (next.done = !1), next; - } - return (next.done = !0), next; - } - ); - }), - (runtime.values = values), - (Context.prototype = { - constructor: Context, - reset: function(skipTempReset) { - if ( - ((this.prev = 0), - (this.next = 0), - (this.sent = this._sent = undefined), - (this.done = !1), - (this.delegate = null), - (this.method = 'next'), - (this.arg = undefined), - this.tryEntries.forEach(resetTryEntry), - !skipTempReset) - ) - for (var name in this) - 't' === name.charAt(0) && - hasOwn.call(this, name) && - !isNaN(+name.slice(1)) && - (this[name] = undefined); - }, - stop: function() { - this.done = !0; - var rootRecord = this.tryEntries[0].completion; - if ('throw' === rootRecord.type) throw rootRecord.arg; - return this.rval; - }, - dispatchException: function(exception) { - if (this.done) throw exception; - var context = this; - function handle(loc, caught) { - return ( - (record.type = 'throw'), - (record.arg = exception), - (context.next = loc), - caught && ((context.method = 'next'), (context.arg = undefined)), - !!caught - ); - } - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i], - record = entry.completion; - if ('root' === entry.tryLoc) return handle('end'); - if (entry.tryLoc <= this.prev) { - var hasCatch = hasOwn.call(entry, 'catchLoc'), - hasFinally = hasOwn.call(entry, 'finallyLoc'); - if (hasCatch && hasFinally) { - if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); - if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); - } else if (hasCatch) { - if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); - } else { - if (!hasFinally) throw new Error('try statement without catch or finally'); - if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); - } - } - } - }, - abrupt: function(type, arg) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if ( - entry.tryLoc <= this.prev && - hasOwn.call(entry, 'finallyLoc') && - this.prev < entry.finallyLoc - ) { - var finallyEntry = entry; - break; - } - } - finallyEntry && - ('break' === type || 'continue' === type) && - finallyEntry.tryLoc <= arg && - arg <= finallyEntry.finallyLoc && - (finallyEntry = null); - var record = finallyEntry ? finallyEntry.completion : {}; - return ( - (record.type = type), - (record.arg = arg), - finallyEntry - ? ((this.method = 'next'), - (this.next = finallyEntry.finallyLoc), - ContinueSentinel) - : this.complete(record) - ); - }, - complete: function(record, afterLoc) { - if ('throw' === record.type) throw record.arg; - return ( - 'break' === record.type || 'continue' === record.type - ? (this.next = record.arg) - : 'return' === record.type - ? ((this.rval = this.arg = record.arg), - (this.method = 'return'), - (this.next = 'end')) - : 'normal' === record.type && afterLoc && (this.next = afterLoc), - ContinueSentinel - ); - }, - finish: function(finallyLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.finallyLoc === finallyLoc) - return ( - this.complete(entry.completion, entry.afterLoc), - resetTryEntry(entry), - ContinueSentinel - ); - } - }, - catch: function(tryLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc === tryLoc) { - var record = entry.completion; - if ('throw' === record.type) { - var thrown = record.arg; - resetTryEntry(entry); - } - return thrown; - } - } - throw new Error('illegal catch attempt'); - }, - delegateYield: function(iterable, resultName, nextLoc) { - return ( - (this.delegate = { - iterator: values(iterable), - resultName: resultName, - nextLoc: nextLoc - }), - 'next' === this.method && (this.arg = undefined), - ContinueSentinel - ); - } - }); - } - function wrap(innerFn, outerFn, self, tryLocsList) { - var protoGenerator = - outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, - generator = Object.create(protoGenerator.prototype), - context = new Context(tryLocsList || []); - return ( - (generator._invoke = (function makeInvokeMethod(innerFn, self, context) { - var state = GenStateSuspendedStart; - return function invoke(method, arg) { - if (state === GenStateExecuting) throw new Error('Generator is already running'); - if (state === GenStateCompleted) { - if ('throw' === method) throw arg; - return doneResult(); - } - for (context.method = method, context.arg = arg; ; ) { - var delegate = context.delegate; - if (delegate) { - var delegateResult = maybeInvokeDelegate(delegate, context); - if (delegateResult) { - if (delegateResult === ContinueSentinel) continue; - return delegateResult; - } - } - if ('next' === context.method) context.sent = context._sent = context.arg; - else if ('throw' === context.method) { - if (state === GenStateSuspendedStart) - throw ((state = GenStateCompleted), context.arg); - context.dispatchException(context.arg); - } else 'return' === context.method && context.abrupt('return', context.arg); - state = GenStateExecuting; - var record = tryCatch(innerFn, self, context); - if ('normal' === record.type) { - if ( - ((state = context.done ? GenStateCompleted : GenStateSuspendedYield), - record.arg === ContinueSentinel) - ) - continue; - return { value: record.arg, done: context.done }; - } - 'throw' === record.type && - ((state = GenStateCompleted), - (context.method = 'throw'), - (context.arg = record.arg)); - } - }; - })(innerFn, self, context)), - generator - ); - } - function tryCatch(fn, obj, arg) { - try { - return { type: 'normal', arg: fn.call(obj, arg) }; - } catch (err) { - return { type: 'throw', arg: err }; - } - } - function Generator() {} - function GeneratorFunction() {} - function GeneratorFunctionPrototype() {} - function defineIteratorMethods(prototype) { - ['next', 'throw', 'return'].forEach(function(method) { - prototype[method] = function(arg) { - return this._invoke(method, arg); - }; - }); - } - function AsyncIterator(generator) { - var previousPromise; - this._invoke = function enqueue(method, arg) { - function callInvokeWithMethodAndArg() { - return new Promise(function(resolve, reject) { - !(function invoke(method, arg, resolve, reject) { - var record = tryCatch(generator[method], generator, arg); - if ('throw' !== record.type) { - var result = record.arg, - value = result.value; - return value && 'object' == typeof value && hasOwn.call(value, '__await') - ? Promise.resolve(value.__await).then( - function(value) { - invoke('next', value, resolve, reject); - }, - function(err) { - invoke('throw', err, resolve, reject); - } - ) - : Promise.resolve(value).then(function(unwrapped) { - (result.value = unwrapped), resolve(result); - }, reject); - } - reject(record.arg); - })(method, arg, resolve, reject); - }); - } - return (previousPromise = previousPromise - ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) - : callInvokeWithMethodAndArg()); - }; - } - function maybeInvokeDelegate(delegate, context) { - var method = delegate.iterator[context.method]; - if (method === undefined) { - if (((context.delegate = null), 'throw' === context.method)) { - if ( - delegate.iterator.return && - ((context.method = 'return'), - (context.arg = undefined), - maybeInvokeDelegate(delegate, context), - 'throw' === context.method) - ) - return ContinueSentinel; - (context.method = 'throw'), - (context.arg = new TypeError("The iterator does not provide a 'throw' method")); - } - return ContinueSentinel; - } - var record = tryCatch(method, delegate.iterator, context.arg); - if ('throw' === record.type) - return ( - (context.method = 'throw'), - (context.arg = record.arg), - (context.delegate = null), - ContinueSentinel - ); - var info = record.arg; - return info - ? info.done - ? ((context[delegate.resultName] = info.value), - (context.next = delegate.nextLoc), - 'return' !== context.method && ((context.method = 'next'), (context.arg = undefined)), - (context.delegate = null), - ContinueSentinel) - : info - : ((context.method = 'throw'), - (context.arg = new TypeError('iterator result is not an object')), - (context.delegate = null), - ContinueSentinel); - } - function pushTryEntry(locs) { - var entry = { tryLoc: locs[0] }; - 1 in locs && (entry.catchLoc = locs[1]), - 2 in locs && ((entry.finallyLoc = locs[2]), (entry.afterLoc = locs[3])), - this.tryEntries.push(entry); - } - function resetTryEntry(entry) { - var record = entry.completion || {}; - (record.type = 'normal'), delete record.arg, (entry.completion = record); - } - function Context(tryLocsList) { - (this.tryEntries = [{ tryLoc: 'root' }]), - tryLocsList.forEach(pushTryEntry, this), - this.reset(!0); - } - function values(iterable) { - if (iterable) { - var iteratorMethod = iterable[iteratorSymbol]; - if (iteratorMethod) return iteratorMethod.call(iterable); - if ('function' == typeof iterable.next) return iterable; - if (!isNaN(iterable.length)) { - var i = -1, - next = function next() { - for (; ++i < iterable.length; ) - if (hasOwn.call(iterable, i)) - return (next.value = iterable[i]), (next.done = !1), next; - return (next.value = undefined), (next.done = !0), next; - }; - return (next.next = next); - } - } - return { next: doneResult }; - } - function doneResult() { - return { value: undefined, done: !0 }; - } - })( - (function() { - return this; - })() || Function('return this')() - ); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _extends3 = _interopRequireDefault(__webpack_require__(8)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _createStyles2 = _interopRequireDefault(__webpack_require__(44)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Arrow = function Arrow(_ref) { - var expanded = _ref.expanded, - styles = _ref.styles; - return _react2.default.createElement( - 'span', - { - style: (0, _extends3.default)( - {}, - styles.base, - expanded ? styles.expanded : styles.collapsed - ) - }, - '▶' - ); - }, - TreeNode = (function(_Component) { - function TreeNode() { - return ( - (0, _classCallCheck3.default)(this, TreeNode), - (0, _possibleConstructorReturn3.default)( - this, - (TreeNode.__proto__ || Object.getPrototypeOf(TreeNode)).apply(this, arguments) - ) - ); - } - return ( - (0, _inherits3.default)(TreeNode, _Component), - (0, _createClass3.default)(TreeNode, [ - { - key: 'render', - value: function render() { - var _props = this.props, - expanded = _props.expanded, - onClick = _props.onClick, - children = _props.children, - nodeRenderer = _props.nodeRenderer, - title = _props.title, - shouldShowArrow = _props.shouldShowArrow, - shouldShowPlaceholder = _props.shouldShowPlaceholder, - theme = this.context.theme, - styles = (0, _createStyles2.default)('TreeNode', theme), - renderedNode = (0, _react.createElement)(nodeRenderer, this.props), - childNodes = expanded ? children : void 0; - return _react2.default.createElement( - 'li', - { - 'aria-expanded': expanded, - role: 'treeitem', - style: styles.treeNodeBase, - title: title - }, - _react2.default.createElement( - 'div', - { style: styles.treeNodePreviewContainer, onClick: onClick }, - shouldShowArrow || _react.Children.count(children) > 0 - ? _react2.default.createElement(Arrow, { - expanded: expanded, - styles: styles.treeNodeArrow - }) - : shouldShowPlaceholder && - _react2.default.createElement( - 'span', - { style: styles.treeNodePlaceholder }, - ' ' - ), - renderedNode - ), - _react2.default.createElement( - 'ol', - { role: 'group', style: styles.treeNodeChildNodesContainer }, - childNodes - ) - ); - } - } - ]), - TreeNode - ); - })(_react.Component); - (TreeNode.propTypes = { - name: _propTypes2.default.string, - data: _propTypes2.default.any, - expanded: _propTypes2.default.bool, - shouldShowArrow: _propTypes2.default.bool, - shouldShowPlaceholder: _propTypes2.default.bool, - nodeRenderer: _propTypes2.default.func, - onClick: _propTypes2.default.func - }), - (TreeNode.defaultProps = { - name: void 0, - data: void 0, - expanded: !0, - nodeRenderer: function nodeRenderer(_ref2) { - var name = _ref2.name; - return _react2.default.createElement('span', null, name); - }, - onClick: function onClick() {}, - shouldShowArrow: !1, - shouldShowPlaceholder: !0 - }), - (TreeNode.contextTypes = { - theme: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.object - ]).isRequired - }), - (exports.default = TreeNode); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _unselectable2 = _interopRequireDefault(__webpack_require__(576)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - exports.default = function(theme) { - return { - DOMNodePreview: { - htmlOpenTag: { - base: { color: theme.HTML_TAG_COLOR }, - tagName: { - color: theme.HTML_TAGNAME_COLOR, - textTransform: theme.HTML_TAGNAME_TEXT_TRANSFORM - }, - htmlAttributeName: { color: theme.HTML_ATTRIBUTE_NAME_COLOR }, - htmlAttributeValue: { color: theme.HTML_ATTRIBUTE_VALUE_COLOR } - }, - htmlCloseTag: { - base: { color: theme.HTML_TAG_COLOR }, - offsetLeft: { marginLeft: -theme.TREENODE_PADDING_LEFT }, - tagName: { - color: theme.HTML_TAGNAME_COLOR, - textTransform: theme.HTML_TAGNAME_TEXT_TRANSFORM - } - }, - htmlComment: { color: theme.HTML_COMMENT_COLOR }, - htmlDoctype: { color: theme.HTML_DOCTYPE_COLOR } - }, - ObjectName: { base: { color: theme.OBJECT_NAME_COLOR }, dimmed: { opacity: 0.6 } }, - ObjectValue: { - objectValueNull: { color: theme.OBJECT_VALUE_NULL_COLOR }, - objectValueUndefined: { color: theme.OBJECT_VALUE_UNDEFINED_COLOR }, - objectValueRegExp: { color: theme.OBJECT_VALUE_REGEXP_COLOR }, - objectValueString: { color: theme.OBJECT_VALUE_STRING_COLOR }, - objectValueSymbol: { color: theme.OBJECT_VALUE_SYMBOL_COLOR }, - objectValueNumber: { color: theme.OBJECT_VALUE_NUMBER_COLOR }, - objectValueBoolean: { color: theme.OBJECT_VALUE_BOOLEAN_COLOR }, - objectValueFunctionKeyword: { - color: theme.OBJECT_VALUE_FUNCTION_KEYWORD_COLOR, - fontStyle: 'italic' - }, - objectValueFunctionName: { fontStyle: 'italic' } - }, - TreeNode: { - treeNodeBase: { - color: theme.BASE_COLOR, - backgroundColor: theme.BASE_BACKGROUND_COLOR, - lineHeight: theme.TREENODE_LINE_HEIGHT, - cursor: 'default', - boxSizing: 'border-box', - listStyle: 'none', - fontFamily: theme.TREENODE_FONT_FAMILY, - fontSize: theme.TREENODE_FONT_SIZE - }, - treeNodePreviewContainer: {}, - treeNodePlaceholder: (0, _extends3.default)( - { - whiteSpace: 'pre', - fontSize: theme.ARROW_FONT_SIZE, - marginRight: theme.ARROW_MARGIN_RIGHT - }, - _unselectable2.default - ), - treeNodeArrow: { - base: (0, _extends3.default)( - { - color: theme.ARROW_COLOR, - display: 'inline-block', - fontSize: theme.ARROW_FONT_SIZE, - marginRight: theme.ARROW_MARGIN_RIGHT - }, - _unselectable2.default - ), - expanded: { - WebkitTransform: 'rotateZ(90deg)', - MozTransform: 'rotateZ(90deg)', - transform: 'rotateZ(90deg)' - }, - collapsed: { - WebkitTransform: 'rotateZ(0deg)', - MozTransform: 'rotateZ(0deg)', - transform: 'rotateZ(0deg)' - } - }, - treeNodeChildNodesContainer: { margin: 0, paddingLeft: theme.TREENODE_PADDING_LEFT } - }, - TableInspector: { - base: { - color: theme.BASE_COLOR, - position: 'relative', - border: '1px solid ' + theme.TABLE_BORDER_COLOR, - fontFamily: theme.BASE_FONT_FAMILY, - fontSize: theme.BASE_FONT_SIZE, - lineHeight: '120%', - boxSizing: 'border-box', - cursor: 'default' - } - }, - TableInspectorHeaderContainer: { - base: { top: 0, height: '17px', left: 0, right: 0, overflowX: 'hidden' }, - table: { - tableLayout: 'fixed', - borderSpacing: 0, - borderCollapse: 'separate', - height: '100%', - width: '100%', - margin: 0 - } - }, - TableInspectorDataContainer: { - tr: { display: 'table-row' }, - td: { - boxSizing: 'border-box', - border: 'none', - height: '16px', - verticalAlign: 'top', - padding: '1px 4px', - WebkitUserSelect: 'text', - whiteSpace: 'nowrap', - textOverflow: 'ellipsis', - overflow: 'hidden', - lineHeight: '14px' - }, - div: { - position: 'static', - top: '17px', - bottom: 0, - overflowY: 'overlay', - transform: 'translateZ(0)', - left: 0, - right: 0, - overflowX: 'hidden' - }, - table: { - positon: 'static', - left: 0, - top: 0, - right: 0, - bottom: 0, - borderTop: '0 none transparent', - margin: 0, - backgroundImage: theme.TABLE_DATA_BACKGROUND_IMAGE, - backgroundSize: theme.TABLE_DATA_BACKGROUND_SIZE, - tableLayout: 'fixed', - borderSpacing: 0, - borderCollapse: 'separate', - width: '100%', - fontSize: theme.BASE_FONT_SIZE, - lineHeight: '120%' - } - }, - TableInspectorTH: { - base: { - position: 'relative', - height: 'auto', - textAlign: 'left', - backgroundColor: theme.TABLE_TH_BACKGROUND_COLOR, - borderBottom: '1px solid ' + theme.TABLE_BORDER_COLOR, - fontWeight: 'normal', - verticalAlign: 'middle', - padding: '0 4px', - whiteSpace: 'nowrap', - textOverflow: 'ellipsis', - overflow: 'hidden', - lineHeight: '14px', - ':hover': { backgroundColor: theme.TABLE_TH_HOVER_COLOR } - }, - div: { - whiteSpace: 'nowrap', - textOverflow: 'ellipsis', - overflow: 'hidden', - fontSize: theme.BASE_FONT_SIZE, - lineHeight: '120%' - } - }, - TableInspectorLeftBorder: { - none: { borderLeft: 'none' }, - solid: { borderLeft: '1px solid ' + theme.TABLE_BORDER_COLOR } - }, - TableInspectorSortIcon: (0, _extends3.default)( - { - display: 'block', - marginRight: 3, - width: 8, - height: 7, - marginTop: -7, - color: theme.TABLE_SORT_ICON_COLOR, - fontSize: 12 - }, - _unselectable2.default - ) - }; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = { - WebkitTouchCallout: 'none', - WebkitUserSelect: 'none', - KhtmlUserSelect: 'none', - MozUserSelect: 'none', - msUserSelect: 'none', - OUserSelect: 'none', - userSelect: 'none' - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.hasChildNodes = hasChildNodes); - var DEFAULT_ROOT_PATH = (exports.DEFAULT_ROOT_PATH = '$'); - function hasChildNodes(data, dataIterator) { - return !dataIterator(data).next().done; - } - var wildcardPathsFromLevel = (exports.wildcardPathsFromLevel = function wildcardPathsFromLevel( - level - ) { - return Array.from({ length: level }, function(_, i) { - return [DEFAULT_ROOT_PATH] - .concat( - Array.from({ length: i }, function() { - return '*'; - }) - ) - .join('.'); - }); - }); - exports.getExpandedPaths = function getExpandedPaths( - data, - dataIterator, - expandPaths, - expandLevel - ) { - var initialState = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : {}, - expandedPaths = []; - return ( - [] - .concat(wildcardPathsFromLevel(expandLevel)) - .concat(expandPaths) - .filter(function(path) { - return 'string' == typeof path; - }) - .forEach(function(wildcardPath) { - var keyPaths = wildcardPath.split('.'); - !(function populatePaths(curData, curPath, depth) { - if (depth !== keyPaths.length) { - var key = keyPaths[depth]; - if (0 === depth) - !hasChildNodes(curData, dataIterator) || - (key !== DEFAULT_ROOT_PATH && '*' !== key) || - populatePaths(curData, DEFAULT_ROOT_PATH, depth + 1); - else if ('*' === key) { - var _iteratorNormalCompletion = !0, - _didIteratorError = !1, - _iteratorError = void 0; - try { - for ( - var _step, _iterator = dataIterator(curData)[Symbol.iterator](); - !(_iteratorNormalCompletion = (_step = _iterator.next()).done); - _iteratorNormalCompletion = !0 - ) { - var _ref2 = _step.value, - name = _ref2.name, - _data = _ref2.data; - hasChildNodes(_data, dataIterator) && - populatePaths(_data, curPath + '.' + name, depth + 1); - } - } catch (err) { - (_didIteratorError = !0), (_iteratorError = err); - } finally { - try { - !_iteratorNormalCompletion && _iterator.return && _iterator.return(); - } finally { - if (_didIteratorError) throw _iteratorError; - } - } - } else { - var value = curData[key]; - hasChildNodes(value, dataIterator) && - populatePaths(value, curPath + '.' + key, depth + 1); - } - } else expandedPaths.push(curPath); - })(data, '', 0); - }), - expandedPaths.reduce(function(obj, path) { - return (obj[path] = !0), obj; - }, initialState) - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _typeof3 = _interopRequireDefault(__webpack_require__(21)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _ObjectValue2 = _interopRequireDefault(__webpack_require__(107)), - _ObjectName2 = _interopRequireDefault(__webpack_require__(106)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var styles = { preview: { fontStyle: 'italic' } }; - function intersperse(arr, sep) { - return 0 === arr.length - ? [] - : arr.slice(1).reduce( - function(xs, x) { - return xs.concat([sep, x]); - }, - [arr[0]] - ); - } - var ObjectPreview = function ObjectPreview(_ref) { - var data = _ref.data, - maxProperties = _ref.maxProperties, - object = data; - if ( - 'object' !== (void 0 === object ? 'undefined' : (0, _typeof3.default)(object)) || - null === object || - object instanceof Date || - object instanceof RegExp - ) - return _react2.default.createElement(_ObjectValue2.default, { object: object }); - if (Array.isArray(object)) - return _react2.default.createElement( - 'span', - { style: styles.preview }, - '[', - intersperse( - object.map(function(element, index) { - return _react2.default.createElement(_ObjectValue2.default, { - key: index, - object: element - }); - }), - ', ' - ), - ']' - ); - var propertyNodes = []; - for (var propertyName in object) { - var propertyValue = object[propertyName]; - if (object.hasOwnProperty(propertyName)) { - var ellipsis = void 0; - if ( - (propertyNodes.length === maxProperties - 1 && - Object.keys(object).length > maxProperties && - (ellipsis = _react2.default.createElement('span', { key: 'ellipsis' }, '…')), - propertyNodes.push( - _react2.default.createElement( - 'span', - { key: propertyName }, - _react2.default.createElement(_ObjectName2.default, { name: propertyName || '""' }), - ': ', - _react2.default.createElement(_ObjectValue2.default, { object: propertyValue }), - ellipsis - ) - ), - ellipsis) - ) - break; - } - } - return _react2.default.createElement( - 'span', - { style: styles.preview }, - object.constructor.name + ' {', - intersperse(propertyNodes, ', '), - '}' - ); - }; - (ObjectPreview.propTypes = { maxProperties: _propTypes2.default.number }), - (ObjectPreview.defaultProps = { maxProperties: 5 }), - (exports.default = ObjectPreview); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _typeof3 = _interopRequireDefault(__webpack_require__(21)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _ThemeProvider2 = _interopRequireDefault(__webpack_require__(175)), - _createStyles2 = _interopRequireDefault(__webpack_require__(44)), - _getHeaders3 = _interopRequireDefault(__webpack_require__(580)), - _DataContainer2 = _interopRequireDefault(__webpack_require__(581)), - _HeaderContainer2 = _interopRequireDefault(__webpack_require__(582)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var TableInspector = (function(_Component) { - function TableInspector(props) { - (0, _classCallCheck3.default)(this, TableInspector); - var _this = (0, _possibleConstructorReturn3.default)( - this, - (TableInspector.__proto__ || Object.getPrototypeOf(TableInspector)).call(this, props) - ); - return ( - (_this.state = { - sorted: !1, - sortIndexColumn: !1, - sortColumn: void 0, - sortAscending: !1 - }), - _this - ); - } - return ( - (0, _inherits3.default)(TableInspector, _Component), - (0, _createClass3.default)(TableInspector, [ - { - key: 'handleIndexTHClick', - value: function handleIndexTHClick() { - this.setState(function(_ref) { - var sortIndexColumn = _ref.sortIndexColumn, - sortAscending = _ref.sortAscending; - return { - sorted: !0, - sortIndexColumn: !0, - sortColumn: void 0, - sortAscending: !sortIndexColumn || !sortAscending - }; - }); - } - }, - { - key: 'handleTHClick', - value: function handleTHClick(col) { - this.setState(function(_ref2) { - var sortColumn = _ref2.sortColumn, - sortAscending = _ref2.sortAscending; - return { - sorted: !0, - sortIndexColumn: !1, - sortColumn: col, - sortAscending: col !== sortColumn || !sortAscending - }; - }); - } - }, - { - key: 'render', - value: function render() { - var data = this.props.data, - columns = this.props.columns, - theme = this.props.theme, - styles = (0, _createStyles2.default)('TableInspector', theme); - if ( - 'object' !== (void 0 === data ? 'undefined' : (0, _typeof3.default)(data)) || - null === data - ) - return _react2.default.createElement('div', null); - var _getHeaders = (0, _getHeaders3.default)(data), - rowHeaders = _getHeaders.rowHeaders, - colHeaders = _getHeaders.colHeaders; - void 0 !== columns && (colHeaders = columns); - var rowsData = rowHeaders.map(function(rowHeader) { - return data[rowHeader]; - }), - sortIndexColumn = this.state.sortIndexColumn, - sortColumn = this.state.sortColumn, - sortAscending = this.state.sortAscending, - columnDataWithRowIndexes = void 0; - if ( - (void 0 !== sortColumn - ? (columnDataWithRowIndexes = rowsData.map(function(rowData, index) { - return 'object' === - (void 0 === rowData ? 'undefined' : (0, _typeof3.default)(rowData)) && - null !== rowData - ? [rowData[sortColumn], index] - : [void 0, index]; - })) - : sortIndexColumn && - (columnDataWithRowIndexes = rowHeaders.map(function(rowData, index) { - return [rowHeaders[index], index]; - })), - void 0 !== columnDataWithRowIndexes) - ) { - var sortedRowIndexes = columnDataWithRowIndexes - .sort( - (function comparator(mapper, ascending) { - return function(a, b) { - var v1 = mapper(a), - v2 = mapper(b), - type1 = void 0 === v1 ? 'undefined' : (0, _typeof3.default)(v1), - type2 = void 0 === v2 ? 'undefined' : (0, _typeof3.default)(v2), - lt = function lt(v1, v2) { - return v1 < v2 ? -1 : v1 > v2 ? 1 : 0; - }, - result = void 0; - if (type1 === type2) result = lt(v1, v2); - else { - var order = { - string: 0, - number: 1, - object: 2, - symbol: 3, - boolean: 4, - undefined: 5, - function: 6 - }; - result = lt(order[type1], order[type2]); - } - return ascending || (result = -result), result; - }; - })(function(item) { - return item[0]; - }, sortAscending) - ) - .map(function(item) { - return item[1]; - }); - (rowHeaders = sortedRowIndexes.map(function(i) { - return rowHeaders[i]; - })), - (rowsData = sortedRowIndexes.map(function(i) { - return rowsData[i]; - })); - } - return _react2.default.createElement( - _ThemeProvider2.default, - { theme: this.props.theme }, - _react2.default.createElement( - 'div', - { style: styles.base }, - _react2.default.createElement(_HeaderContainer2.default, { - columns: colHeaders, - sorted: this.state.sorted, - sortIndexColumn: this.state.sortIndexColumn, - sortColumn: this.state.sortColumn, - sortAscending: this.state.sortAscending, - onTHClick: this.handleTHClick.bind(this), - onIndexTHClick: this.handleIndexTHClick.bind(this) - }), - _react2.default.createElement(_DataContainer2.default, { - rows: rowHeaders, - columns: colHeaders, - rowsData: rowsData - }) - ) - ); - } - } - ]), - TableInspector - ); - })(_react.Component); - (exports.default = TableInspector), - (TableInspector.propTypes = { - data: _propTypes2.default.oneOfType([ - _propTypes2.default.array, - _propTypes2.default.object - ]), - columns: _propTypes2.default.array - }), - (TableInspector.defaultProps = { data: void 0, columns: void 0, theme: 'chromeLight' }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _toConsumableArray3 = _interopRequireDefault(__webpack_require__(45)), - _typeof3 = _interopRequireDefault(__webpack_require__(21)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - (exports.default = function getHeaders(data) { - if ('object' === (void 0 === data ? 'undefined' : (0, _typeof3.default)(data))) { - var rowHeaders = void 0; - if (Array.isArray(data)) { - var nRows = data.length; - rowHeaders = [].concat((0, _toConsumableArray3.default)(Array(nRows).keys())); - } else null !== data && (rowHeaders = Object.keys(data)); - var colHeaders = rowHeaders.reduce(function(colHeaders, rowHeader) { - var row = data[rowHeader]; - if ( - 'object' === (void 0 === row ? 'undefined' : (0, _typeof3.default)(row)) && - null !== row - ) { - var cols = Object.keys(row); - cols.reduce(function(xs, x) { - return xs.includes(x) || xs.push(x), xs; - }, colHeaders); - } - return colHeaders; - }, []); - return { rowHeaders: rowHeaders, colHeaders: colHeaders }; - } - return; - }), - Array.prototype.includes || - (Array.prototype.includes = function(searchElement) { - var O = Object(this), - len = parseInt(O.length) || 0; - if (0 === len) return !1; - var k, - currentElement, - n = parseInt(arguments[1]) || 0; - for (n >= 0 ? (k = n) : (k = len + n) < 0 && (k = 0); k < len; ) { - if ( - searchElement === (currentElement = O[k]) || - (searchElement != searchElement && currentElement != currentElement) - ) - return !0; - k++; - } - return !1; - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _typeof3 = _interopRequireDefault(__webpack_require__(21)), - _extends3 = _interopRequireDefault(__webpack_require__(8)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _createStyles2 = _interopRequireDefault(__webpack_require__(44)), - _ObjectValue2 = _interopRequireDefault(__webpack_require__(107)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var DataContainer = function DataContainer(_ref, _ref2) { - var rows = _ref.rows, - columns = _ref.columns, - rowsData = _ref.rowsData, - theme = _ref2.theme, - styles = (0, _createStyles2.default)('TableInspectorDataContainer', theme), - borderStyles = (0, _createStyles2.default)('TableInspectorLeftBorder', theme); - return _react2.default.createElement( - 'div', - { style: styles.div }, - _react2.default.createElement( - 'table', - { style: styles.table }, - _react2.default.createElement('colgroup', null), - _react2.default.createElement( - 'tbody', - null, - rows.map(function(row, i) { - return _react2.default.createElement( - 'tr', - { key: row, style: styles.tr }, - _react2.default.createElement( - 'td', - { style: (0, _extends3.default)({}, styles.td, borderStyles.none) }, - row - ), - columns.map(function(column) { - var rowData = rowsData[i]; - return 'object' === - (void 0 === rowData ? 'undefined' : (0, _typeof3.default)(rowData)) && - null !== rowData && - rowData.hasOwnProperty(column) - ? _react2.default.createElement( - 'td', - { - key: column, - style: (0, _extends3.default)({}, styles.td, borderStyles.solid) - }, - _react2.default.createElement(_ObjectValue2.default, { - object: rowData[column] - }) - ) - : _react2.default.createElement('td', { - key: column, - style: (0, _extends3.default)({}, styles.td, borderStyles.solid) - }); - }) - ); - }) - ) - ) - ); - }; - (DataContainer.contextTypes = { - theme: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object]) - .isRequired - }), - (exports.default = DataContainer); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _createStyles2 = _interopRequireDefault(__webpack_require__(44)), - _TH2 = _interopRequireDefault(__webpack_require__(583)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var HeaderContainer = function HeaderContainer(_ref, _ref2) { - var indexColumnText = _ref.indexColumnText, - columns = _ref.columns, - sorted = _ref.sorted, - sortIndexColumn = _ref.sortIndexColumn, - sortColumn = _ref.sortColumn, - sortAscending = _ref.sortAscending, - onTHClick = _ref.onTHClick, - onIndexTHClick = _ref.onIndexTHClick, - theme = _ref2.theme, - styles = (0, _createStyles2.default)('TableInspectorHeaderContainer', theme), - borderStyles = (0, _createStyles2.default)('TableInspectorLeftBorder', theme); - return _react2.default.createElement( - 'div', - { style: styles.base }, - _react2.default.createElement( - 'table', - { style: styles.table }, - _react2.default.createElement( - 'tbody', - null, - _react2.default.createElement( - 'tr', - null, - _react2.default.createElement( - _TH2.default, - { - borderStyle: borderStyles.none, - sorted: sorted && sortIndexColumn, - sortAscending: sortAscending, - onClick: onIndexTHClick - }, - indexColumnText - ), - columns.map(function(column) { - return _react2.default.createElement( - _TH2.default, - { - borderStyle: borderStyles.solid, - key: column, - sorted: sorted && sortColumn === column, - sortAscending: sortAscending, - onClick: onTHClick.bind(void 0, column) - }, - column - ); - }) - ) - ) - ) - ); - }; - (HeaderContainer.defaultProps = { indexColumnText: '(index)', columns: [] }), - (HeaderContainer.contextTypes = { - theme: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.object - ]).isRequired - }), - (exports.default = HeaderContainer); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _createStyles2 = _interopRequireDefault(__webpack_require__(44)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var SortIconContainer = function SortIconContainer(props) { - return _react2.default.createElement( - 'div', - { - style: { - position: 'absolute', - top: 1, - right: 0, - bottom: 1, - display: 'flex', - alignItems: 'center' - } - }, - props.children - ); - }, - SortIcon = function SortIcon(_ref, _ref2) { - var sortAscending = _ref.sortAscending, - theme = _ref2.theme, - glyph = sortAscending ? '▲' : '▼', - styles = (0, _createStyles2.default)('TableInspectorSortIcon', theme); - return _react2.default.createElement('div', { style: styles }, glyph); - }; - SortIcon.contextTypes = { - theme: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object]) - .isRequired - }; - var TH = (function(_Component) { - function TH() { - var _ref3, _temp, _this, _ret; - (0, _classCallCheck3.default)(this, TH); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) - args[_key] = arguments[_key]; - return ( - (_temp = _this = (0, _possibleConstructorReturn3.default)( - this, - (_ref3 = TH.__proto__ || Object.getPrototypeOf(TH)).call.apply( - _ref3, - [this].concat(args) - ) - )), - (_this.state = { hovered: !1 }), - (_ret = _temp), - (0, _possibleConstructorReturn3.default)(_this, _ret) - ); - } - return ( - (0, _inherits3.default)(TH, _Component), - (0, _createClass3.default)(TH, [ - { - key: 'toggleHovered', - value: function toggleHovered(hovered) { - this.setState({ hovered: hovered }); - } - }, - { - key: 'render', - value: function render() { - var _props = this.props, - sorted = _props.sorted, - sortAscending = _props.sortAscending, - theme = this.context.theme, - styles = (0, _createStyles2.default)('TableInspectorTH', theme); - return _react2.default.createElement( - 'th', - (0, _extends3.default)({}, this.props, { - style: (0, _extends3.default)( - {}, - styles.base, - this.props.borderStyle, - this.state.hovered ? styles.base[':hover'] : {} - ), - onMouseEnter: this.toggleHovered.bind(this, !0), - onMouseLeave: this.toggleHovered.bind(this, !1), - onClick: this.props.onClick - }), - _react2.default.createElement('div', { style: styles.div }, this.props.children), - (function() { - if (sorted) - return _react2.default.createElement( - SortIconContainer, - null, - _react2.default.createElement(SortIcon, { sortAscending: sortAscending }) - ); - })() - ); - } - } - ]), - TH - ); - })(_react.Component); - (TH.contextTypes = { - theme: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object]) - .isRequired - }), - (TH.defaultProps = { sortAscending: !1, sorted: !1, onClick: void 0 }), - (exports.default = TH); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _regenerator2 = _interopRequireDefault(__webpack_require__(263)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _DOMNodePreview2 = _interopRequireDefault(__webpack_require__(585)), - _TreeView2 = _interopRequireDefault(__webpack_require__(264)), - _shouldInline2 = _interopRequireDefault(__webpack_require__(267)), - _ThemeProvider2 = _interopRequireDefault(__webpack_require__(175)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var domIterator = _regenerator2.default.mark(function domIterator(data) { - var i, node; - return _regenerator2.default.wrap( - function domIterator$(_context) { - for (;;) - switch ((_context.prev = _context.next)) { - case 0: - if (!data || !data.childNodes) { - _context.next = 17; - break; - } - if (!(0, _shouldInline2.default)(data)) { - _context.next = 4; - break; - } - return _context.abrupt('return'); - case 4: - i = 0; - case 5: - if (!(i < data.childNodes.length)) { - _context.next = 14; - break; - } - if ( - (node = data.childNodes[i]).nodeType !== Node.TEXT_NODE || - 0 !== node.textContent.trim().length - ) { - _context.next = 9; - break; - } - return _context.abrupt('continue', 11); - case 9: - return (_context.next = 11), { name: node.tagName + '[' + i + ']', data: node }; - case 11: - i++, (_context.next = 5); - break; - case 14: - if (!data.tagName) { - _context.next = 17; - break; - } - return ( - (_context.next = 17), - { name: 'CLOSE_TAG', data: { tagName: data.tagName }, isCloseTag: !0 } - ); - case 17: - case 'end': - return _context.stop(); - } - }, - domIterator, - this - ); - }), - DOMInspector = (function(_Component) { - function DOMInspector() { - return ( - (0, _classCallCheck3.default)(this, DOMInspector), - (0, _possibleConstructorReturn3.default)( - this, - (DOMInspector.__proto__ || Object.getPrototypeOf(DOMInspector)).apply(this, arguments) - ) - ); - } - return ( - (0, _inherits3.default)(DOMInspector, _Component), - (0, _createClass3.default)(DOMInspector, [ - { - key: 'render', - value: function render() { - var nodeRenderer = _DOMNodePreview2.default; - return _react2.default.createElement( - _ThemeProvider2.default, - { theme: this.props.theme }, - _react2.default.createElement( - _TreeView2.default, - (0, _extends3.default)( - { nodeRenderer: nodeRenderer, dataIterator: domIterator }, - this.props - ) - ) - ); - } - } - ]), - DOMInspector - ); - })(_react.Component); - (DOMInspector.propTypes = { data: _propTypes2.default.object.isRequired }), - (DOMInspector.defaultProps = { theme: 'chromeLight' }), - (exports.default = DOMInspector); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _createStyles2 = _interopRequireDefault(__webpack_require__(44)), - _shouldInline2 = _interopRequireDefault(__webpack_require__(267)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var OpenTag = function OpenTag(_ref) { - var tagName = _ref.tagName, - attributes = _ref.attributes, - styles = _ref.styles; - return _react2.default.createElement( - 'span', - { style: styles.base }, - '<', - _react2.default.createElement('span', { style: styles.tagName }, tagName), - (function() { - if (attributes) { - for (var attributeNodes = [], i = 0; i < attributes.length; i++) { - var attribute = attributes[i]; - attributeNodes.push( - _react2.default.createElement( - 'span', - { key: i }, - ' ', - _react2.default.createElement( - 'span', - { style: styles.htmlAttributeName }, - attribute.name - ), - '="', - _react2.default.createElement( - 'span', - { style: styles.htmlAttributeValue }, - attribute.value - ), - '"' - ) - ); - } - return attributeNodes; - } - })(), - '>' - ); - }, - CloseTag = function CloseTag(_ref2) { - var tagName = _ref2.tagName, - _ref2$isChildNode = _ref2.isChildNode, - isChildNode = void 0 !== _ref2$isChildNode && _ref2$isChildNode, - styles = _ref2.styles; - return _react2.default.createElement( - 'span', - { style: Object.assign({}, styles.base, isChildNode && styles.offsetLeft) }, - '' - ); - }, - nameByNodeType = { - 1: 'ELEMENT_NODE', - 3: 'TEXT_NODE', - 7: 'PROCESSING_INSTRUCTION_NODE', - 8: 'COMMENT_NODE', - 9: 'DOCUMENT_NODE', - 10: 'DOCUMENT_TYPE_NODE', - 11: 'DOCUMENT_FRAGMENT_NODE' - }, - DOMNodePreview = function DOMNodePreview(_ref3, _ref4) { - var isCloseTag = _ref3.isCloseTag, - data = _ref3.data, - expanded = _ref3.expanded, - theme = _ref4.theme, - styles = (0, _createStyles2.default)('DOMNodePreview', theme); - if (isCloseTag) - return _react2.default.createElement(CloseTag, { - styles: styles.htmlCloseTag, - isChildNode: !0, - tagName: data.tagName - }); - switch (data.nodeType) { - case Node.ELEMENT_NODE: - return _react2.default.createElement( - 'span', - null, - _react2.default.createElement(OpenTag, { - tagName: data.tagName, - attributes: data.attributes, - styles: styles.htmlOpenTag - }), - (0, _shouldInline2.default)(data) ? data.textContent : !expanded && '…', - !expanded && - _react2.default.createElement(CloseTag, { - tagName: data.tagName, - styles: styles.htmlCloseTag - }) - ); - case Node.TEXT_NODE: - return _react2.default.createElement('span', null, data.textContent); - case Node.CDATA_SECTION_NODE: - return _react2.default.createElement( - 'span', - null, - '' - ); - case Node.COMMENT_NODE: - return _react2.default.createElement( - 'span', - { style: styles.htmlComment }, - '\x3c!--', - data.textContent, - '--\x3e' - ); - case Node.PROCESSING_INSTRUCTION_NODE: - return _react2.default.createElement('span', null, data.nodeName); - case Node.DOCUMENT_TYPE_NODE: - return _react2.default.createElement( - 'span', - { style: styles.htmlDoctype }, - '' - ); - case Node.DOCUMENT_NODE: - case Node.DOCUMENT_FRAGMENT_NODE: - return _react2.default.createElement('span', null, data.nodeName); - default: - return _react2.default.createElement('span', null, nameByNodeType[data.nodeType]); - } - }; - (DOMNodePreview.propTypes = { - isCloseTag: _propTypes2.default.bool, - name: _propTypes2.default.string, - data: _propTypes2.default.object.isRequired, - expanded: _propTypes2.default.bool.isRequired - }), - (DOMNodePreview.contextTypes = { - theme: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.object - ]).isRequired - }), - (exports.default = DOMNodePreview); - }, - function(module, exports) { - module.exports = function isNode(val) { - return ( - !(!val || 'object' != typeof val) && - ('object' == typeof window && 'object' == typeof window.Node - ? val instanceof window.Node - : 'number' == typeof val.nodeType && 'string' == typeof val.nodeName) - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = { - wrapper: { flex: 1, display: 'flex', position: 'relative' }, - actions: { - flex: 1, - margin: 0, - padding: '8px 2px 20px 0', - overflowY: 'auto', - color: '#666' - }, - action: { - display: 'flex', - padding: '3px 3px 3px 0', - borderLeft: '5px solid white', - borderBottom: '1px solid #fafafa', - transition: 'all 0.1s', - alignItems: 'start' - }, - countwrap: { paddingBottom: 2 }, - counter: { - margin: '0 5px 0 5px', - backgroundColor: '#777777', - color: '#ffffff', - padding: '1px 5px', - borderRadius: '20px' - }, - inspector: { flex: 1, padding: '0 0 0 5px' }, - button: { - position: 'absolute', - bottom: 0, - right: 0, - border: 'none', - borderTop: 'solid 1px rgba(0, 0, 0, 0.2)', - borderLeft: 'solid 1px rgba(0, 0, 0, 0.2)', - background: 'rgba(255, 255, 255, 0.5)', - padding: '5px 10px', - borderRadius: '4px 0 0 0', - color: 'rgba(0, 0, 0, 0.5)', - outline: 'none' - } - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _toConsumableArray3 = _interopRequireDefault(__webpack_require__(45)); - (exports.action = action), - (exports.decorateAction = function decorateAction(decorators) { - return function(name) { - var callAction = action(name); - return function() { - for ( - var _len2 = arguments.length, _args = Array(_len2), _key2 = 0; - _key2 < _len2; - _key2++ - ) - _args[_key2] = arguments[_key2]; - var decorated = decorators.reduce(function(args, fn) { - return fn(args); - }, _args); - callAction.apply(void 0, (0, _toConsumableArray3.default)(decorated)); - }; - }; - }); - var _addons2 = _interopRequireDefault(__webpack_require__(40)), - _v2 = _interopRequireDefault(__webpack_require__(589)), - _ = __webpack_require__(104), - _util = __webpack_require__(84); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function action(name) { - var handler = function action() { - for (var _len = arguments.length, _args = Array(_len), _key = 0; _key < _len; _key++) - _args[_key] = arguments[_key]; - var args = _args.map(_util.prepareArguments), - channel = _addons2.default.getChannel(), - id = (0, _v2.default)(); - channel.emit(_.EVENT_ID, { id: id, data: { name: name, args: args } }); - }; - return ( - _util.canConfigureName && - name && - 'string' == typeof name && - Object.defineProperty(handler, 'name', { value: name }), - handler - ); - } - }, - function(module, exports, __webpack_require__) { - var rng = __webpack_require__(590), - bytesToUuid = __webpack_require__(591), - _seedBytes = rng(), - _nodeId = [ - 1 | _seedBytes[0], - _seedBytes[1], - _seedBytes[2], - _seedBytes[3], - _seedBytes[4], - _seedBytes[5] - ], - _clockseq = 16383 & ((_seedBytes[6] << 8) | _seedBytes[7]), - _lastMSecs = 0, - _lastNSecs = 0; - module.exports = function v1(options, buf, offset) { - var i = (buf && offset) || 0, - b = buf || [], - clockseq = void 0 !== (options = options || {}).clockseq ? options.clockseq : _clockseq, - msecs = void 0 !== options.msecs ? options.msecs : new Date().getTime(), - nsecs = void 0 !== options.nsecs ? options.nsecs : _lastNSecs + 1, - dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4; - if ( - (dt < 0 && void 0 === options.clockseq && (clockseq = (clockseq + 1) & 16383), - (dt < 0 || msecs > _lastMSecs) && void 0 === options.nsecs && (nsecs = 0), - nsecs >= 1e4) - ) - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - (_lastMSecs = msecs), (_lastNSecs = nsecs), (_clockseq = clockseq); - var tl = (1e4 * (268435455 & (msecs += 122192928e5)) + nsecs) % 4294967296; - (b[i++] = (tl >>> 24) & 255), - (b[i++] = (tl >>> 16) & 255), - (b[i++] = (tl >>> 8) & 255), - (b[i++] = 255 & tl); - var tmh = (msecs / 4294967296 * 1e4) & 268435455; - (b[i++] = (tmh >>> 8) & 255), - (b[i++] = 255 & tmh), - (b[i++] = ((tmh >>> 24) & 15) | 16), - (b[i++] = (tmh >>> 16) & 255), - (b[i++] = (clockseq >>> 8) | 128), - (b[i++] = 255 & clockseq); - for (var node = options.node || _nodeId, n = 0; n < 6; ++n) b[i + n] = node[n]; - return buf || bytesToUuid(b); - }; - }, - function(module, exports, __webpack_require__) { - (function(global) { - var rng, - crypto = global.crypto || global.msCrypto; - if (crypto && crypto.getRandomValues) { - var rnds8 = new Uint8Array(16); - rng = function whatwgRNG() { - return crypto.getRandomValues(rnds8), rnds8; - }; - } - if (!rng) { - var rnds = new Array(16); - rng = function() { - for (var r, i = 0; i < 16; i++) - 0 == (3 & i) && (r = 4294967296 * Math.random()), - (rnds[i] = (r >>> ((3 & i) << 3)) & 255); - return rnds; - }; - } - module.exports = rng; - }.call(exports, __webpack_require__(27))); - }, - function(module, exports) { - for (var byteToHex = [], i = 0; i < 256; ++i) byteToHex[i] = (i + 256).toString(16).substr(1); - module.exports = function bytesToUuid(buf, offset) { - var i = offset || 0, - bth = byteToHex; - return ( - bth[buf[i++]] + - bth[buf[i++]] + - bth[buf[i++]] + - bth[buf[i++]] + - '-' + - bth[buf[i++]] + - bth[buf[i++]] + - '-' + - bth[buf[i++]] + - bth[buf[i++]] + - '-' + - bth[buf[i++]] + - bth[buf[i++]] + - '-' + - bth[buf[i++]] + - bth[buf[i++]] + - bth[buf[i++]] + - bth[buf[i++]] + - bth[buf[i++]] + - bth[buf[i++]] - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.register = function register() { - _addons2.default.register(_.ADDON_ID, function(api) { - var channel = _addons2.default.getChannel(); - channel.on(_.EVENT_ID, function(selection) { - null != selection.kind - ? api.selectStory(selection.kind, selection.story) - : api.selectInCurrentKind(selection.story); - }), - channel.on(_.REQUEST_HREF_EVENT_ID, function(selection) { - var params = - null != selection.kind - ? { selectedKind: selection.kind, selectedStory: selection.story } - : { selectedStory: selection.story }, - urlState = api.getUrlState(params); - channel.emit(_.RECEIVE_HREF_EVENT_ID, _global.location.pathname + urlState.url); - }); - }); - }); - var _global = __webpack_require__(50), - _addons2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(40)), - _ = __webpack_require__(176); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.hrefTo = exports.linkTo = exports.openLink = void 0); - var _promise2 = _interopRequireDefault(__webpack_require__(223)), - _toConsumableArray3 = _interopRequireDefault(__webpack_require__(45)), - _addons2 = _interopRequireDefault(__webpack_require__(40)), - _ = __webpack_require__(176); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var openLink = (exports.openLink = function openLink(params) { - return _addons2.default.getChannel().emit(_.EVENT_ID, params); - }); - (exports.linkTo = function linkTo(kind, story) { - return function() { - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) - args[_key] = arguments[_key]; - var resolver = (function valueOrCall(args) { - return function(value) { - return 'function' == typeof value - ? value.apply(void 0, (0, _toConsumableArray3.default)(args)) - : value; - }; - })(args); - openLink({ kind: resolver(kind), story: resolver(story) }); - }; - }), - (exports.hrefTo = function hrefTo(kind, story) { - return new _promise2.default(function(resolve) { - var channel = _addons2.default.getChannel(); - channel.on(_.RECEIVE_HREF_EVENT_ID, resolve), - channel.emit(_.REQUEST_HREF_EVENT_ID, { kind: kind, story: story }); - }); - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - Object.defineProperty(__webpack_exports__, '__esModule', { value: !0 }); - var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), - __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_0_react__ - ), - __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(2), - __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_1_prop_types__ - ); - function _extends() { - return (_extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }).apply(this, arguments); - } - var isBrowser = 'undefined' != typeof window && 'undefined' != typeof document, - isIE = !!isBrowser && !!document.documentElement.currentStyle, - hiddenTextarea = isBrowser && document.createElement('textarea'), - HIDDEN_TEXTAREA_STYLE = { - 'min-height': '0', - 'max-height': 'none', - height: '0', - visibility: 'hidden', - overflow: 'hidden', - position: 'absolute', - 'z-index': '-1000', - top: '0', - right: '0' - }, - SIZING_STYLE = [ - 'letter-spacing', - 'line-height', - 'font-family', - 'font-weight', - 'font-size', - 'font-style', - 'tab-size', - 'text-rendering', - 'text-transform', - 'width', - 'text-indent', - 'padding-top', - 'padding-right', - 'padding-bottom', - 'padding-left', - 'border-top-width', - 'border-right-width', - 'border-bottom-width', - 'border-left-width', - 'box-sizing' - ], - computedStyleCache = {}; - function calculateNodeHeight(uiTextNode, uid, useCache, minRows, maxRows) { - void 0 === useCache && (useCache = !1), - void 0 === minRows && (minRows = null), - void 0 === maxRows && (maxRows = null), - null === hiddenTextarea.parentNode && document.body.appendChild(hiddenTextarea); - var nodeStyling = (function calculateNodeStyling(node, uid, useCache) { - void 0 === useCache && (useCache = !1); - if (useCache && computedStyleCache[uid]) return computedStyleCache[uid]; - var style = window.getComputedStyle(node); - if (null === style) return null; - var sizingStyle = SIZING_STYLE.reduce(function(obj, name) { - return (obj[name] = style.getPropertyValue(name)), obj; - }, {}), - boxSizing = sizingStyle['box-sizing']; - isIE && - 'border-box' === boxSizing && - (sizingStyle.width = - parseFloat(sizingStyle.width) + - parseFloat(style['border-right-width']) + - parseFloat(style['border-left-width']) + - parseFloat(style['padding-right']) + - parseFloat(style['padding-left']) + - 'px'); - var paddingSize = - parseFloat(sizingStyle['padding-bottom']) + parseFloat(sizingStyle['padding-top']), - borderSize = - parseFloat(sizingStyle['border-bottom-width']) + - parseFloat(sizingStyle['border-top-width']), - nodeInfo = { - sizingStyle: sizingStyle, - paddingSize: paddingSize, - borderSize: borderSize, - boxSizing: boxSizing - }; - useCache && (computedStyleCache[uid] = nodeInfo); - return nodeInfo; - })(uiTextNode, uid, useCache); - if (null === nodeStyling) return null; - var paddingSize = nodeStyling.paddingSize, - borderSize = nodeStyling.borderSize, - boxSizing = nodeStyling.boxSizing, - sizingStyle = nodeStyling.sizingStyle; - Object.keys(sizingStyle).forEach(function(key) { - hiddenTextarea.style[key] = sizingStyle[key]; - }), - Object.keys(HIDDEN_TEXTAREA_STYLE).forEach(function(key) { - hiddenTextarea.style.setProperty(key, HIDDEN_TEXTAREA_STYLE[key], 'important'); - }), - (hiddenTextarea.value = uiTextNode.value || uiTextNode.placeholder || 'x'); - var minHeight = -1 / 0, - maxHeight = 1 / 0, - height = hiddenTextarea.scrollHeight; - 'border-box' === boxSizing - ? (height += borderSize) - : 'content-box' === boxSizing && (height -= paddingSize), - (hiddenTextarea.value = 'x'); - var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize; - return ( - (null === minRows && null === maxRows) || - (null !== minRows && - ((minHeight = singleRowHeight * minRows), - 'border-box' === boxSizing && (minHeight = minHeight + paddingSize + borderSize), - (height = Math.max(minHeight, height))), - null !== maxRows && - ((maxHeight = singleRowHeight * maxRows), - 'border-box' === boxSizing && (maxHeight = maxHeight + paddingSize + borderSize), - (height = Math.min(maxHeight, height)))), - { - height: height, - minHeight: minHeight, - maxHeight: maxHeight, - rowCount: Math.floor(height / singleRowHeight) - } - ); - } - var uid = (function autoInc(seed) { - return ( - void 0 === seed && (seed = 0), - function() { - return ++seed; - } - ); - })(), - noop = function noop() {}, - _ref = - isBrowser && window.requestAnimationFrame - ? [window.requestAnimationFrame, window.cancelAnimationFrame] - : [setTimeout, clearTimeout], - onNextFrame = _ref[0], - clearNextFrameAction = _ref[1], - TextareaAutosize = (function(_React$Component) { - function TextareaAutosize(props) { - var _this; - return ( - ((_this = _React$Component.call(this, props) || this)._resizeLock = !1), - (_this._onRootDOMNode = function(node) { - (_this._rootDOMNode = node), _this.props.inputRef && _this.props.inputRef(node); - }), - (_this._onChange = function(event) { - _this._controlled || _this._resizeComponent(), _this.props.onChange(event); - }), - (_this._resizeComponent = function(callback) { - if ((void 0 === callback && (callback = noop), void 0 !== _this._rootDOMNode)) { - var nodeHeight = calculateNodeHeight( - _this._rootDOMNode, - _this._uid, - _this.props.useCacheForDOMMeasurements, - _this.props.minRows, - _this.props.maxRows - ); - if (null !== nodeHeight) { - var height = nodeHeight.height, - minHeight = nodeHeight.minHeight, - maxHeight = nodeHeight.maxHeight, - rowCount = nodeHeight.rowCount; - (_this.rowCount = rowCount), - _this.state.height === height && - _this.state.minHeight === minHeight && - _this.state.maxHeight === maxHeight - ? callback() - : _this.setState( - { height: height, minHeight: minHeight, maxHeight: maxHeight }, - callback - ); - } else callback(); - } else callback(); - }), - (_this.state = { - height: (props.style && props.style.height) || 0, - minHeight: -1 / 0, - maxHeight: 1 / 0 - }), - (_this._uid = uid()), - (_this._controlled = 'string' == typeof props.value), - _this - ); - } - !(function _inheritsLoose(subClass, superClass) { - (subClass.prototype = Object.create(superClass.prototype)), - (subClass.prototype.constructor = subClass), - (subClass.__proto__ = superClass); - })(TextareaAutosize, _React$Component); - var _proto = TextareaAutosize.prototype; - return ( - (_proto.render = function render() { - var _props = this.props, - props = (_props.minRows, - _props.maxRows, - _props.onHeightChange, - _props.useCacheForDOMMeasurements, - _props.inputRef, - (function _objectWithoutProperties(source, excluded) { - if (null == source) return {}; - var key, - i, - target = {}, - sourceKeys = Object.keys(source); - for (i = 0; i < sourceKeys.length; i++) - (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - for (i = 0; i < sourceSymbolKeys.length; i++) - (key = sourceSymbolKeys[i]), - excluded.indexOf(key) >= 0 || - (Object.prototype.propertyIsEnumerable.call(source, key) && - (target[key] = source[key])); - } - return target; - })(_props, [ - 'minRows', - 'maxRows', - 'onHeightChange', - 'useCacheForDOMMeasurements', - 'inputRef' - ])); - return ( - (props.style = _extends({}, props.style, { height: this.state.height })), - Math.max(props.style.maxHeight || 1 / 0, this.state.maxHeight) < this.state.height && - (props.style.overflow = 'hidden'), - __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement( - 'textarea', - _extends({}, props, { onChange: this._onChange, ref: this._onRootDOMNode }) - ) - ); - }), - (_proto.componentDidMount = function componentDidMount() { - var _this2 = this; - this._resizeComponent(), - (this._resizeListener = function() { - _this2._resizeLock || - ((_this2._resizeLock = !0), - _this2._resizeComponent(function() { - return (_this2._resizeLock = !1); - })); - }), - window.addEventListener('resize', this._resizeListener); - }), - (_proto.componentWillReceiveProps = function componentWillReceiveProps() { - var _this3 = this; - this._clearNextFrame(), - (this._onNextFrameActionId = onNextFrame(function() { - return _this3._resizeComponent(); - })); - }), - (_proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) { - this.state.height !== prevState.height && - this.props.onHeightChange(this.state.height, this); - }), - (_proto.componentWillUnmount = function componentWillUnmount() { - this._clearNextFrame(), - window.removeEventListener('resize', this._resizeListener), - (function purgeCache(uid) { - delete computedStyleCache[uid]; - })(this._uid); - }), - (_proto._clearNextFrame = function _clearNextFrame() { - clearNextFrameAction(this._onNextFrameActionId); - }), - TextareaAutosize - ); - })(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component); - (TextareaAutosize.propTypes = { - value: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, - onChange: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, - onHeightChange: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, - useCacheForDOMMeasurements: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, - minRows: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, - maxRows: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, - inputRef: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func - }), - (TextareaAutosize.defaultProps = { - onChange: noop, - onHeightChange: noop, - useCacheForDOMMeasurements: !1 - }), - (__webpack_exports__.default = TextareaAutosize); - }, - function(module, exports, __webpack_require__) { - var baseForOwn = __webpack_require__(641), - castFunction = __webpack_require__(648); - module.exports = function forOwn(object, iteratee) { - return object && baseForOwn(object, castFunction(iteratee)); - }; - }, - function(module, exports, __webpack_require__) { - (function(module) { - var root = __webpack_require__(85), - stubFalse = __webpack_require__(967), - freeExports = 'object' == typeof exports && exports && !exports.nodeType && exports, - freeModule = - freeExports && 'object' == typeof module && module && !module.nodeType && module, - Buffer = freeModule && freeModule.exports === freeExports ? root.Buffer : void 0, - isBuffer = (Buffer ? Buffer.isBuffer : void 0) || stubFalse; - module.exports = isBuffer; - }.call(exports, __webpack_require__(118)(module))); - }, - function(module, exports) { - var MAX_SAFE_INTEGER = 9007199254740991; - module.exports = function isLength(value) { - return 'number' == typeof value && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; - }; - }, - function(module, exports) { - var objectProto = Object.prototype; - module.exports = function isPrototype(value) { - var Ctor = value && value.constructor; - return value === (('function' == typeof Ctor && Ctor.prototype) || objectProto); - }; - }, - function(module, exports, __webpack_require__) { - var getPrototype = __webpack_require__(646)(Object.getPrototypeOf, Object); - module.exports = getPrototype; - }, - function(module, exports, __webpack_require__) { - var ListCache = __webpack_require__(293), - stackClear = __webpack_require__(982), - stackDelete = __webpack_require__(983), - stackGet = __webpack_require__(984), - stackHas = __webpack_require__(985), - stackSet = __webpack_require__(986); - function Stack(entries) { - var data = (this.__data__ = new ListCache(entries)); - this.size = data.size; - } - (Stack.prototype.clear = stackClear), - (Stack.prototype.delete = stackDelete), - (Stack.prototype.get = stackGet), - (Stack.prototype.has = stackHas), - (Stack.prototype.set = stackSet), - (module.exports = Stack); - }, - function(module, exports) { - module.exports = function eq(value, other) { - return value === other || (value != value && other != other); - }; - }, - function(module, exports, __webpack_require__) { - var Map = __webpack_require__(179)(__webpack_require__(85), 'Map'); - module.exports = Map; - }, - function(module, exports, __webpack_require__) { - var mapCacheClear = __webpack_require__(991), - mapCacheDelete = __webpack_require__(998), - mapCacheGet = __webpack_require__(1e3), - mapCacheHas = __webpack_require__(1001), - mapCacheSet = __webpack_require__(1002); - function MapCache(entries) { - var index = -1, - length = null == entries ? 0 : entries.length; - for (this.clear(); ++index < length; ) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - (MapCache.prototype.clear = mapCacheClear), - (MapCache.prototype.delete = mapCacheDelete), - (MapCache.prototype.get = mapCacheGet), - (MapCache.prototype.has = mapCacheHas), - (MapCache.prototype.set = mapCacheSet), - (module.exports = MapCache); - }, - function(module, exports, __webpack_require__) { - var arrayFilter = __webpack_require__(1011), - stubArray = __webpack_require__(660), - propertyIsEnumerable = Object.prototype.propertyIsEnumerable, - nativeGetSymbols = Object.getOwnPropertySymbols, - getSymbols = nativeGetSymbols - ? function(object) { - return null == object - ? [] - : ((object = Object(object)), - arrayFilter(nativeGetSymbols(object), function(symbol) { - return propertyIsEnumerable.call(object, symbol); - })); - } - : stubArray; - module.exports = getSymbols; - }, - function(module, exports, __webpack_require__) { - var isArray = __webpack_require__(66), - isSymbol = __webpack_require__(297), - reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - reIsPlainProp = /^\w*$/; - module.exports = function isKey(value, object) { - if (isArray(value)) return !1; - var type = typeof value; - return ( - !( - 'number' != type && - 'symbol' != type && - 'boolean' != type && - null != value && - !isSymbol(value) - ) || - reIsPlainProp.test(value) || - !reIsDeepProp.test(value) || - (null != object && value in Object(object)) - ); - }; - }, - function(module, exports, __webpack_require__) { - var Uint8Array = __webpack_require__(654); - module.exports = function cloneArrayBuffer(arrayBuffer) { - var result = new arrayBuffer.constructor(arrayBuffer.byteLength); - return new Uint8Array(result).set(new Uint8Array(arrayBuffer)), result; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.config = void 0); - var _objectWithoutProperties3 = _interopRequireDefault(__webpack_require__(65)), - _extends3 = _interopRequireDefault(__webpack_require__(8)); - (exports.getUrlState = getUrlState), - (exports.changeUrl = changeUrl), - (exports.updateStore = updateStore), - (exports.handleInitialUrl = handleInitialUrl), - (exports.default = function(_ref, actions) { - var clientStore = _ref.clientStore; - handleInitialUrl(actions, _global.location); - var data = clientStore.getAll(), - prevKind = data.selectedKind, - prevStory = data.selectedStory; - clientStore.subscribe(function() { - var _clientStore$getAll = clientStore.getAll(), - selectedKind = _clientStore$getAll.selectedKind, - selectedStory = _clientStore$getAll.selectedStory; - changeUrl( - clientStore, - null != prevKind && - null != prevStory && - (selectedKind !== prevKind || selectedStory !== prevStory) - ), - (prevKind = selectedKind), - (prevStory = selectedStory); - }), - changeUrl(clientStore), - (_global.window.onpopstate = function() { - (config.insidePopState = !0), - handleInitialUrl(actions, _global.location), - (config.insidePopState = !1); - }); - }); - var _global = __webpack_require__(50), - _qs2 = _interopRequireDefault(__webpack_require__(231)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var config = (exports.config = { insidePopState: !1 }); - function getUrlState(data) { - var selectedKind = data.selectedKind, - selectedStory = data.selectedStory, - customQueryParams = data.customQueryParams, - _data$shortcutOptions = data.shortcutOptions, - full = _data$shortcutOptions.goFullScreen, - addons = _data$shortcutOptions.showAddonPanel, - stories = _data$shortcutOptions.showStoriesPanel, - panelRight = _data$shortcutOptions.addonPanelInRight, - addonPanel = data.selectedAddonPanel, - urlObj = (0, _extends3.default)({}, customQueryParams, { - selectedKind: selectedKind, - selectedStory: selectedStory, - full: Number(full), - addons: Number(addons), - stories: Number(stories), - panelRight: Number(panelRight), - addonPanel: addonPanel - }), - url = '?' + _qs2.default.stringify(urlObj); - return (0, _extends3.default)({}, urlObj, { - full: full, - addons: addons, - stories: stories, - panelRight: panelRight, - url: url - }); - } - function changeUrl(clientStore, usePush) { - if (!config.insidePopState) { - var data = clientStore.getAll(); - if (data.selectedKind) { - var state = getUrlState(data); - _global.history[usePush ? 'pushState' : 'replaceState'](state, '', state.url); - } - } - } - function updateStore(queryParams, actions) { - var selectedKind = queryParams.selectedKind, - selectedStory = queryParams.selectedStory, - _queryParams$full = queryParams.full, - full = void 0 === _queryParams$full ? 0 : _queryParams$full, - _queryParams$down = queryParams.down, - down = void 0 === _queryParams$down ? 1 : _queryParams$down, - _queryParams$addons = queryParams.addons, - addons = void 0 === _queryParams$addons ? down : _queryParams$addons, - _queryParams$left = queryParams.left, - left = void 0 === _queryParams$left ? 1 : _queryParams$left, - _queryParams$stories = queryParams.stories, - stories = void 0 === _queryParams$stories ? left : _queryParams$stories, - _queryParams$panelRig = queryParams.panelRight, - panelRight = void 0 === _queryParams$panelRig ? 0 : _queryParams$panelRig, - downPanel = queryParams.downPanel, - _queryParams$addonPan = queryParams.addonPanel, - addonPanel = void 0 === _queryParams$addonPan ? downPanel : _queryParams$addonPan, - customQueryParams = (0, _objectWithoutProperties3.default)(queryParams, [ - 'selectedKind', - 'selectedStory', - 'full', - 'down', - 'addons', - 'left', - 'stories', - 'panelRight', - 'downPanel', - 'addonPanel' - ]); - selectedKind && actions.api.selectStory(selectedKind, selectedStory), - actions.shortcuts.setOptions({ - goFullScreen: Boolean(Number(full)), - showAddonPanel: Boolean(Number(addons)), - showStoriesPanel: Boolean(Number(stories)), - addonPanelInRight: Boolean(Number(panelRight)) - }), - addonPanel && actions.ui.selectAddonPanel(addonPanel), - actions.api.setQueryParams(customQueryParams); - } - function handleInitialUrl(actions, l) { - var queryString = l.search.substring(1); - queryString && '' !== queryString && updateStore(_qs2.default.parse(queryString), actions); - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _Modal2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(1154)); - (exports.default = _Modal2.default), (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _createPrefixer2 = _interopRequireDefault(__webpack_require__(1163)), - _cursor2 = _interopRequireDefault(__webpack_require__(1167)), - _crossFade2 = _interopRequireDefault(__webpack_require__(1168)), - _filter2 = _interopRequireDefault(__webpack_require__(1169)), - _flex2 = _interopRequireDefault(__webpack_require__(1170)), - _flexboxOld2 = _interopRequireDefault(__webpack_require__(1171)), - _gradient2 = _interopRequireDefault(__webpack_require__(1172)), - _imageSet2 = _interopRequireDefault(__webpack_require__(1173)), - _position2 = _interopRequireDefault(__webpack_require__(1174)), - _sizing2 = _interopRequireDefault(__webpack_require__(1175)), - _transition2 = _interopRequireDefault(__webpack_require__(1176)), - _static2 = _interopRequireDefault(__webpack_require__(1177)), - _dynamicData2 = _interopRequireDefault(__webpack_require__(1179)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var plugins = [ - _crossFade2.default, - _cursor2.default, - _filter2.default, - _flexboxOld2.default, - _gradient2.default, - _imageSet2.default, - _position2.default, - _sizing2.default, - _transition2.default, - _flex2.default - ], - Prefixer = (0, _createPrefixer2.default)( - { prefixMap: _dynamicData2.default.prefixMap, plugins: plugins }, - _static2.default - ); - (exports.default = Prefixer), (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function capitalizeString(str) { - return str.charAt(0).toUpperCase() + str.slice(1); - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function prefixValue(plugins, property, value, style, metaData) { - for (var i = 0, len = plugins.length; i < len; ++i) { - var processedValue = plugins[i](property, value, style, metaData); - if (processedValue) return processedValue; - } - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var uppercasePattern = /[A-Z]/g, - msPattern = /^ms-/, - cache = {}; - module.exports = function hyphenateStyleName(string) { - return string in cache - ? cache[string] - : (cache[string] = string - .replace(uppercasePattern, '-$&') - .toLowerCase() - .replace(msPattern, '-ms-')); - }; - }, - function(module, exports, __webpack_require__) { - var properties = __webpack_require__(1180), - PropTypes = __webpack_require__(2); - (module.exports = function(props, propName, componentName) { - var styles = props[propName]; - if (styles) { - var failures = []; - if ( - (Object.keys(styles).forEach(function(styleKey) { - -1 === properties.indexOf(styleKey) && failures.push(styleKey); - }), - failures.length) - ) - throw new Error( - 'Prop ' + - propName + - ' passed to ' + - componentName + - '. Has invalid keys ' + - failures.join(', ') - ); - } - }), - (module.exports.isRequired = function(props, propName, componentName) { - if (!props[propName]) - throw new Error('Prop ' + propName + ' passed to ' + componentName + ' is required'); - return module.exports(props, propName, componentName); - }), - (module.exports.supportingArrays = PropTypes.oneOfType([ - PropTypes.arrayOf(module.exports), - module.exports - ])); - }, - function(module, exports, __webpack_require__) { - var arrayEach = __webpack_require__(1206), - baseEach = __webpack_require__(830), - forEach = __webpack_require__(1213)(arrayEach, baseEach); - module.exports = forEach; - }, - function(module, exports, __webpack_require__) { - var isArrayLike = __webpack_require__(272), - isObjectLike = __webpack_require__(188), - objectProto = Object.prototype, - hasOwnProperty = objectProto.hasOwnProperty, - propertyIsEnumerable = objectProto.propertyIsEnumerable; - module.exports = function isArguments(value) { - return ( - isObjectLike(value) && - isArrayLike(value) && - hasOwnProperty.call(value, 'callee') && - !propertyIsEnumerable.call(value, 'callee') - ); - }; - }, - function(module, exports) { - var reIsUint = /^\d+$/, - MAX_SAFE_INTEGER = 9007199254740991; - module.exports = function isIndex(value, length) { - return ( - (value = 'number' == typeof value || reIsUint.test(value) ? +value : -1), - (length = null == length ? MAX_SAFE_INTEGER : length), - value > -1 && value % 1 == 0 && value < length - ); - }; - }, - function(module, exports, __webpack_require__) { - var isArguments = __webpack_require__(615), - isArray = __webpack_require__(112), - isIndex = __webpack_require__(616), - isLength = __webpack_require__(189), - isObject = __webpack_require__(87), - hasOwnProperty = Object.prototype.hasOwnProperty; - module.exports = function keysIn(object) { - if (null == object) return []; - isObject(object) || (object = Object(object)); - var length = object.length; - length = - (length && isLength(length) && (isArray(object) || isArguments(object)) && length) || 0; - for ( - var Ctor = object.constructor, - index = -1, - isProto = 'function' == typeof Ctor && Ctor.prototype === object, - result = Array(length), - skipIndexes = length > 0; - ++index < length; - - ) - result[index] = index + ''; - for (var key in object) - (skipIndexes && isIndex(key, length)) || - ('constructor' == key && (isProto || !hasOwnProperty.call(object, key))) || - result.push(key); - return result; - }; - }, - function(module, exports, __webpack_require__) { - var baseIsEqualDeep = __webpack_require__(1214), - isObject = __webpack_require__(87), - isObjectLike = __webpack_require__(188); - module.exports = function baseIsEqual(value, other, customizer, isLoose, stackA, stackB) { - return ( - value === other || - (null == value || null == other || (!isObject(value) && !isObjectLike(other)) - ? value != value && other != other - : baseIsEqualDeep(value, other, baseIsEqual, customizer, isLoose, stackA, stackB)) - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - if ( - 'undefined' == typeof window || - 'undefined' == typeof navigator || - -1 !== navigator.userAgent.indexOf('Node.js') || - -1 !== navigator.userAgent.indexOf('jsdom') - ) { - var Velocity = function Velocity() {}; - ((Velocity.Utilities = {}).removeData = function() {}), - (Velocity.velocityReactServerShim = !0), - (module.exports = Velocity); - } else { - var g = window.jQuery || window.Zepto || window; - module.exports = g.Velocity ? g.Velocity : __webpack_require__(1232); - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var StyleKeeper = (function() { - function StyleKeeper(userAgent) { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, StyleKeeper), - (this._userAgent = userAgent), - (this._listeners = []), - (this._cssSet = {}); - } - return ( - (StyleKeeper.prototype.subscribe = function subscribe(listener) { - var _this = this; - return ( - -1 === this._listeners.indexOf(listener) && this._listeners.push(listener), - { - remove: function remove() { - var listenerIndex = _this._listeners.indexOf(listener); - listenerIndex > -1 && _this._listeners.splice(listenerIndex, 1); - } - } - ); - }), - (StyleKeeper.prototype.addCSS = function addCSS(css) { - var _this2 = this; - return ( - this._cssSet[css] || ((this._cssSet[css] = !0), this._emitChange()), - { - remove: function remove() { - delete _this2._cssSet[css], _this2._emitChange(); - } - } - ); - }), - (StyleKeeper.prototype.getCSS = function getCSS() { - return Object.keys(this._cssSet).join('\n'); - }), - (StyleKeeper.prototype._emitChange = function _emitChange() { - this._listeners.forEach(function(listener) { - return listener(); - }); - }), - StyleKeeper - ); - })(); - (exports.default = StyleKeeper), (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function cssRuleSetToString(selector, rules, userAgent) { - if (!rules) return ''; - var rulesWithPx = (0, _mapObject2.default)(rules, function(value, key) { - return (0, _appendPxIfNeeded2.default)(key, value); - }), - prefixedRules = (0, _prefixer.getPrefixedStyle)(rulesWithPx, userAgent), - serializedRules = (function createMarkupForStyles(style) { - return Object.keys(style) - .map(function(property) { - return property + ': ' + style[property] + ';'; - }) - .join('\n'); - })((0, _camelCasePropsToDashCase2.default)(prefixedRules)); - return selector + '{' + serializedRules + '}'; - }); - var _appendPxIfNeeded2 = _interopRequireDefault(__webpack_require__(847)), - _camelCasePropsToDashCase2 = _interopRequireDefault(__webpack_require__(1262)), - _mapObject2 = _interopRequireDefault(__webpack_require__(848)), - _prefixer = __webpack_require__(622); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - (function(global) { - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _typeof = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(obj) { - return typeof obj; - } - : function(obj) { - return obj && - 'function' == typeof Symbol && - obj.constructor === Symbol && - obj !== Symbol.prototype - ? 'symbol' - : typeof obj; - }; - (exports.getPrefixedKeyframes = function getPrefixedKeyframes(userAgent) { - return getPrefixer(userAgent).prefixedKeyframes; - }), - (exports.getPrefixedStyle = function getPrefixedStyle(style, userAgent) { - var styleWithFallbacks = (function transformValues(style) { - return Object.keys(style).reduce(function(newStyle, key) { - var value = style[key]; - return ( - Array.isArray(value) - ? (value = value.join(';' + key + ':')) - : value && - 'object' === (void 0 === value ? 'undefined' : _typeof(value)) && - 'function' == typeof value.toString && - (value = value.toString()), - (newStyle[key] = value), - newStyle - ); - }, {}); - })(style); - return getPrefixer(userAgent).prefix(styleWithFallbacks); - }); - var _inlineStylePrefixer2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(1263)); - var _lastUserAgent = void 0, - _cachedPrefixer = void 0; - function getPrefixer(userAgent) { - var actualUserAgent = - userAgent || (global && global.navigator && global.navigator.userAgent); - return ( - (_cachedPrefixer && actualUserAgent === _lastUserAgent) || - ((_cachedPrefixer = - 'all' === actualUserAgent - ? { - prefix: _inlineStylePrefixer2.default.prefixAll, - prefixedKeyframes: 'keyframes' - } - : new _inlineStylePrefixer2.default({ userAgent: actualUserAgent })), - (_lastUserAgent = actualUserAgent)), - _cachedPrefixer - ); - } - }.call(exports, __webpack_require__(27))); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function(str) { - return str.charAt(0).toUpperCase() + str.slice(1); - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function(value) { - return ( - Array.isArray(value) && (value = value.join(',')), - null !== value.match(/-webkit-|-moz-|-ms-/) - ); - }), - (module.exports = exports.default); - }, - , - , - , - , - , - , - , - , - , - , - , - , - , - function(module, exports, __webpack_require__) { - (function(global) { - var FUNC_ERROR_TEXT = 'Expected a function', - NAN = NaN, - symbolTag = '[object Symbol]', - reTrim = /^\s+|\s+$/g, - reIsBadHex = /^[-+]0x[0-9a-f]+$/i, - reIsBinary = /^0b[01]+$/i, - reIsOctal = /^0o[0-7]+$/i, - freeParseInt = parseInt, - freeGlobal = 'object' == typeof global && global && global.Object === Object && global, - freeSelf = 'object' == typeof self && self && self.Object === Object && self, - root = freeGlobal || freeSelf || Function('return this')(), - objectToString = Object.prototype.toString, - nativeMax = Math.max, - nativeMin = Math.min, - now = function() { - return root.Date.now(); - }; - function isObject(value) { - var type = typeof value; - return !!value && ('object' == type || 'function' == type); - } - function toNumber(value) { - if ('number' == typeof value) return value; - if ( - (function isSymbol(value) { - return ( - 'symbol' == typeof value || - ((function isObjectLike(value) { - return !!value && 'object' == typeof value; - })(value) && - objectToString.call(value) == symbolTag) - ); - })(value) - ) - return NAN; - if (isObject(value)) { - var other = 'function' == typeof value.valueOf ? value.valueOf() : value; - value = isObject(other) ? other + '' : other; - } - if ('string' != typeof value) return 0 === value ? value : +value; - value = value.replace(reTrim, ''); - var isBinary = reIsBinary.test(value); - return isBinary || reIsOctal.test(value) - ? freeParseInt(value.slice(2), isBinary ? 2 : 8) - : reIsBadHex.test(value) ? NAN : +value; - } - module.exports = function debounce(func, wait, options) { - var lastArgs, - lastThis, - maxWait, - result, - timerId, - lastCallTime, - lastInvokeTime = 0, - leading = !1, - maxing = !1, - trailing = !0; - if ('function' != typeof func) throw new TypeError(FUNC_ERROR_TEXT); - function invokeFunc(time) { - var args = lastArgs, - thisArg = lastThis; - return ( - (lastArgs = lastThis = void 0), - (lastInvokeTime = time), - (result = func.apply(thisArg, args)) - ); - } - function shouldInvoke(time) { - var timeSinceLastCall = time - lastCallTime; - return ( - void 0 === lastCallTime || - timeSinceLastCall >= wait || - timeSinceLastCall < 0 || - (maxing && time - lastInvokeTime >= maxWait) - ); - } - function timerExpired() { - var time = now(); - if (shouldInvoke(time)) return trailingEdge(time); - timerId = setTimeout( - timerExpired, - (function remainingWait(time) { - var result = wait - (time - lastCallTime); - return maxing ? nativeMin(result, maxWait - (time - lastInvokeTime)) : result; - })(time) - ); - } - function trailingEdge(time) { - return ( - (timerId = void 0), - trailing && lastArgs ? invokeFunc(time) : ((lastArgs = lastThis = void 0), result) - ); - } - function debounced() { - var time = now(), - isInvoking = shouldInvoke(time); - if (((lastArgs = arguments), (lastThis = this), (lastCallTime = time), isInvoking)) { - if (void 0 === timerId) - return (function leadingEdge(time) { - return ( - (lastInvokeTime = time), - (timerId = setTimeout(timerExpired, wait)), - leading ? invokeFunc(time) : result - ); - })(lastCallTime); - if (maxing) return (timerId = setTimeout(timerExpired, wait)), invokeFunc(lastCallTime); - } - return void 0 === timerId && (timerId = setTimeout(timerExpired, wait)), result; - } - return ( - (wait = toNumber(wait) || 0), - isObject(options) && - ((leading = !!options.leading), - (maxWait = (maxing = 'maxWait' in options) - ? nativeMax(toNumber(options.maxWait) || 0, wait) - : maxWait), - (trailing = 'trailing' in options ? !!options.trailing : trailing)), - (debounced.cancel = function cancel() { - void 0 !== timerId && clearTimeout(timerId), - (lastInvokeTime = 0), - (lastArgs = lastCallTime = lastThis = timerId = void 0); - }), - (debounced.flush = function flush() { - return void 0 === timerId ? result : trailingEdge(now()); - }), - debounced - ); - }; - }.call(exports, __webpack_require__(27))); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _Text2 = _interopRequireDefault(__webpack_require__(954)), - _Number2 = _interopRequireDefault(__webpack_require__(955)), - _Color2 = _interopRequireDefault(__webpack_require__(956)), - _Boolean2 = _interopRequireDefault(__webpack_require__(1112)), - _Object2 = _interopRequireDefault(__webpack_require__(1113)), - _Select2 = _interopRequireDefault(__webpack_require__(1114)), - _Array2 = _interopRequireDefault(__webpack_require__(1115)), - _Date2 = _interopRequireDefault(__webpack_require__(1116)), - _Button2 = _interopRequireDefault(__webpack_require__(1126)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - exports.default = { - text: _Text2.default, - number: _Number2.default, - color: _Color2.default, - boolean: _Boolean2.default, - object: _Object2.default, - select: _Select2.default, - array: _Array2.default, - date: _Date2.default, - button: _Button2.default - }; - }, - function(module, exports, __webpack_require__) { - (function(global) { - var freeGlobal = 'object' == typeof global && global && global.Object === Object && global; - module.exports = freeGlobal; - }.call(exports, __webpack_require__(27))); - }, - function(module, exports, __webpack_require__) { - var baseFor = __webpack_require__(963), - keys = __webpack_require__(269); - module.exports = function baseForOwn(object, iteratee) { - return object && baseFor(object, iteratee, keys); - }; - }, - function(module, exports, __webpack_require__) { - var baseTimes = __webpack_require__(965), - isArguments = __webpack_require__(643), - isArray = __webpack_require__(66), - isBuffer = __webpack_require__(596), - isIndex = __webpack_require__(644), - isTypedArray = __webpack_require__(645), - hasOwnProperty = Object.prototype.hasOwnProperty; - module.exports = function arrayLikeKeys(value, inherited) { - var isArr = isArray(value), - isArg = !isArr && isArguments(value), - isBuff = !isArr && !isArg && isBuffer(value), - isType = !isArr && !isArg && !isBuff && isTypedArray(value), - skipIndexes = isArr || isArg || isBuff || isType, - result = skipIndexes ? baseTimes(value.length, String) : [], - length = result.length; - for (var key in value) - (!inherited && !hasOwnProperty.call(value, key)) || - (skipIndexes && - ('length' == key || - (isBuff && ('offset' == key || 'parent' == key)) || - (isType && ('buffer' == key || 'byteLength' == key || 'byteOffset' == key)) || - isIndex(key, length))) || - result.push(key); - return result; - }; - }, - function(module, exports, __webpack_require__) { - var baseIsArguments = __webpack_require__(966), - isObjectLike = __webpack_require__(178), - objectProto = Object.prototype, - hasOwnProperty = objectProto.hasOwnProperty, - propertyIsEnumerable = objectProto.propertyIsEnumerable, - isArguments = baseIsArguments( - (function() { - return arguments; - })() - ) - ? baseIsArguments - : function(value) { - return ( - isObjectLike(value) && - hasOwnProperty.call(value, 'callee') && - !propertyIsEnumerable.call(value, 'callee') - ); - }; - module.exports = isArguments; - }, - function(module, exports) { - var MAX_SAFE_INTEGER = 9007199254740991, - reIsUint = /^(?:0|[1-9]\d*)$/; - module.exports = function isIndex(value, length) { - return ( - !!(length = null == length ? MAX_SAFE_INTEGER : length) && - ('number' == typeof value || reIsUint.test(value)) && - value > -1 && - value % 1 == 0 && - value < length - ); - }; - }, - function(module, exports, __webpack_require__) { - var baseIsTypedArray = __webpack_require__(968), - baseUnary = __webpack_require__(969), - nodeUtil = __webpack_require__(970), - nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray, - isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; - module.exports = isTypedArray; - }, - function(module, exports) { - module.exports = function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; - }; - }, - function(module, exports, __webpack_require__) { - var baseGetTag = __webpack_require__(177), - isObject = __webpack_require__(108), - asyncTag = '[object AsyncFunction]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - proxyTag = '[object Proxy]'; - module.exports = function isFunction(value) { - if (!isObject(value)) return !1; - var tag = baseGetTag(value); - return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; - }; - }, - function(module, exports, __webpack_require__) { - var identity = __webpack_require__(649); - module.exports = function castFunction(value) { - return 'function' == typeof value ? value : identity; - }; - }, - function(module, exports) { - module.exports = function identity(value) { - return value; - }; - }, - function(module, exports) { - module.exports = function arrayMap(array, iteratee) { - for ( - var index = -1, length = null == array ? 0 : array.length, result = Array(length); - ++index < length; - - ) - result[index] = iteratee(array[index], index, array); - return result; - }; - }, - function(module, exports) { - var funcToString = Function.prototype.toString; - module.exports = function toSource(func) { - if (null != func) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return func + ''; - } catch (e) {} - } - return ''; - }; - }, - function(module, exports, __webpack_require__) { - var baseIsEqualDeep = __webpack_require__(1003), - isObjectLike = __webpack_require__(178); - module.exports = function baseIsEqual(value, other, bitmask, customizer, stack) { - return ( - value === other || - (null == value || null == other || (!isObjectLike(value) && !isObjectLike(other)) - ? value != value && other != other - : baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack)) - ); - }; - }, - function(module, exports, __webpack_require__) { - var SetCache = __webpack_require__(1004), - arraySome = __webpack_require__(1007), - cacheHas = __webpack_require__(1008), - COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; - module.exports = function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, - arrLength = array.length, - othLength = other.length; - if (arrLength != othLength && !(isPartial && othLength > arrLength)) return !1; - var stacked = stack.get(array); - if (stacked && stack.get(other)) return stacked == other; - var index = -1, - result = !0, - seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0; - for (stack.set(array, other), stack.set(other, array); ++index < arrLength; ) { - var arrValue = array[index], - othValue = other[index]; - if (customizer) - var compared = isPartial - ? customizer(othValue, arrValue, index, other, array, stack) - : customizer(arrValue, othValue, index, array, other, stack); - if (void 0 !== compared) { - if (compared) continue; - result = !1; - break; - } - if (seen) { - if ( - !arraySome(other, function(othValue, othIndex) { - if ( - !cacheHas(seen, othIndex) && - (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack)) - ) - return seen.push(othIndex); - }) - ) { - result = !1; - break; - } - } else if ( - arrValue !== othValue && - !equalFunc(arrValue, othValue, bitmask, customizer, stack) - ) { - result = !1; - break; - } - } - return stack.delete(array), stack.delete(other), result; - }; - }, - function(module, exports, __webpack_require__) { - var Uint8Array = __webpack_require__(85).Uint8Array; - module.exports = Uint8Array; - }, - function(module, exports) { - module.exports = function mapToArray(map) { - var index = -1, - result = Array(map.size); - return ( - map.forEach(function(value, key) { - result[++index] = [key, value]; - }), - result - ); - }; - }, - function(module, exports) { - module.exports = function setToArray(set) { - var index = -1, - result = Array(set.size); - return ( - set.forEach(function(value) { - result[++index] = value; - }), - result - ); - }; - }, - function(module, exports, __webpack_require__) { - var baseGetAllKeys = __webpack_require__(658), - getSymbols = __webpack_require__(604), - keys = __webpack_require__(269); - module.exports = function getAllKeys(object) { - return baseGetAllKeys(object, keys, getSymbols); - }; - }, - function(module, exports, __webpack_require__) { - var arrayPush = __webpack_require__(659), - isArray = __webpack_require__(66); - module.exports = function baseGetAllKeys(object, keysFunc, symbolsFunc) { - var result = keysFunc(object); - return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); - }; - }, - function(module, exports) { - module.exports = function arrayPush(array, values) { - for (var index = -1, length = values.length, offset = array.length; ++index < length; ) - array[offset + index] = values[index]; - return array; - }; - }, - function(module, exports) { - module.exports = function stubArray() { - return []; - }; - }, - function(module, exports, __webpack_require__) { - var DataView = __webpack_require__(1012), - Map = __webpack_require__(602), - Promise = __webpack_require__(1013), - Set = __webpack_require__(1014), - WeakMap = __webpack_require__(1015), - baseGetTag = __webpack_require__(177), - toSource = __webpack_require__(651), - dataViewCtorString = toSource(DataView), - mapCtorString = toSource(Map), - promiseCtorString = toSource(Promise), - setCtorString = toSource(Set), - weakMapCtorString = toSource(WeakMap), - getTag = baseGetTag; - ((DataView && '[object DataView]' != getTag(new DataView(new ArrayBuffer(1)))) || - (Map && '[object Map]' != getTag(new Map())) || - (Promise && '[object Promise]' != getTag(Promise.resolve())) || - (Set && '[object Set]' != getTag(new Set())) || - (WeakMap && '[object WeakMap]' != getTag(new WeakMap()))) && - (getTag = function(value) { - var result = baseGetTag(value), - Ctor = '[object Object]' == result ? value.constructor : void 0, - ctorString = Ctor ? toSource(Ctor) : ''; - if (ctorString) - switch (ctorString) { - case dataViewCtorString: - return '[object DataView]'; - case mapCtorString: - return '[object Map]'; - case promiseCtorString: - return '[object Promise]'; - case setCtorString: - return '[object Set]'; - case weakMapCtorString: - return '[object WeakMap]'; - } - return result; - }), - (module.exports = getTag); - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(108); - module.exports = function isStrictComparable(value) { - return value == value && !isObject(value); - }; - }, - function(module, exports) { - module.exports = function matchesStrictComparable(key, srcValue) { - return function(object) { - return ( - null != object && - object[key] === srcValue && - (void 0 !== srcValue || key in Object(object)) - ); - }; - }; - }, - function(module, exports, __webpack_require__) { - var castPath = __webpack_require__(665), - toKey = __webpack_require__(298); - module.exports = function baseGet(object, path) { - for ( - var index = 0, length = (path = castPath(path, object)).length; - null != object && index < length; - - ) - object = object[toKey(path[index++])]; - return index && index == length ? object : void 0; - }; - }, - function(module, exports, __webpack_require__) { - var isArray = __webpack_require__(66), - isKey = __webpack_require__(605), - stringToPath = __webpack_require__(1019), - toString = __webpack_require__(1022); - module.exports = function castPath(value, object) { - return isArray(value) - ? value - : isKey(value, object) ? [value] : stringToPath(toString(value)); - }; - }, - function(module, exports, __webpack_require__) { - var baseForOwn = __webpack_require__(641), - baseEach = __webpack_require__(1031)(baseForOwn); - module.exports = baseEach; - }, - function(module, exports) { - module.exports = function arrayEach(array, iteratee) { - for ( - var index = -1, length = null == array ? 0 : array.length; - ++index < length && !1 !== iteratee(array[index], index, array); - - ); - return array; - }; - }, - function(module, exports, __webpack_require__) { - var baseAssignValue = __webpack_require__(669), - eq = __webpack_require__(601), - hasOwnProperty = Object.prototype.hasOwnProperty; - module.exports = function assignValue(object, key, value) { - var objValue = object[key]; - (hasOwnProperty.call(object, key) && - eq(objValue, value) && - (void 0 !== value || key in object)) || - baseAssignValue(object, key, value); - }; - }, - function(module, exports, __webpack_require__) { - var defineProperty = __webpack_require__(1035); - module.exports = function baseAssignValue(object, key, value) { - '__proto__' == key && defineProperty - ? defineProperty(object, key, { - configurable: !0, - enumerable: !0, - value: value, - writable: !0 - }) - : (object[key] = value); - }; - }, - function(module, exports, __webpack_require__) { - var arrayLikeKeys = __webpack_require__(642), - baseKeysIn = __webpack_require__(1038), - isArrayLike = __webpack_require__(292); - module.exports = function keysIn(object) { - return isArrayLike(object) ? arrayLikeKeys(object, !0) : baseKeysIn(object); - }; - }, - function(module, exports, __webpack_require__) { - var arrayPush = __webpack_require__(659), - getPrototype = __webpack_require__(599), - getSymbols = __webpack_require__(604), - stubArray = __webpack_require__(660), - getSymbolsIn = Object.getOwnPropertySymbols - ? function(object) { - for (var result = []; object; ) - arrayPush(result, getSymbols(object)), (object = getPrototype(object)); - return result; - } - : stubArray; - module.exports = getSymbolsIn; - }, - function(module, exports) { - module.exports = function arrayReduce(array, iteratee, accumulator, initAccum) { - var index = -1, - length = null == array ? 0 : array.length; - for (initAccum && length && (accumulator = array[++index]); ++index < length; ) - accumulator = iteratee(accumulator, array[index], index, array); - return accumulator; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.Checkboard = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - checkboard = (function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) return obj; - var newObj = {}; - if (null != obj) - for (var key in obj) - Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); - return (newObj.default = obj), newObj; - })(__webpack_require__(1063)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Checkboard = (exports.Checkboard = function Checkboard(_ref) { - var white = _ref.white, - grey = _ref.grey, - size = _ref.size, - renderers = _ref.renderers, - borderRadius = _ref.borderRadius, - boxShadow = _ref.boxShadow, - styles = (0, _reactcss2.default)({ - default: { - grid: { - borderRadius: borderRadius, - boxShadow: boxShadow, - absolute: '0px 0px 0px 0px', - background: - 'url(' + checkboard.get(white, grey, size, renderers.canvas) + ') center left' - } - } - }); - return _react2.default.createElement('div', { style: styles.grid }); - }); - (Checkboard.defaultProps = { - size: 8, - white: 'transparent', - grey: 'rgba(0,0,0,.08)', - renderers: {} - }), - (exports.default = Checkboard); - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(108), - now = __webpack_require__(1070), - toNumber = __webpack_require__(1071), - FUNC_ERROR_TEXT = 'Expected a function', - nativeMax = Math.max, - nativeMin = Math.min; - module.exports = function debounce(func, wait, options) { - var lastArgs, - lastThis, - maxWait, - result, - timerId, - lastCallTime, - lastInvokeTime = 0, - leading = !1, - maxing = !1, - trailing = !0; - if ('function' != typeof func) throw new TypeError(FUNC_ERROR_TEXT); - function invokeFunc(time) { - var args = lastArgs, - thisArg = lastThis; - return ( - (lastArgs = lastThis = void 0), - (lastInvokeTime = time), - (result = func.apply(thisArg, args)) - ); - } - function shouldInvoke(time) { - var timeSinceLastCall = time - lastCallTime; - return ( - void 0 === lastCallTime || - timeSinceLastCall >= wait || - timeSinceLastCall < 0 || - (maxing && time - lastInvokeTime >= maxWait) - ); - } - function timerExpired() { - var time = now(); - if (shouldInvoke(time)) return trailingEdge(time); - timerId = setTimeout( - timerExpired, - (function remainingWait(time) { - var result = wait - (time - lastCallTime); - return maxing ? nativeMin(result, maxWait - (time - lastInvokeTime)) : result; - })(time) - ); - } - function trailingEdge(time) { - return ( - (timerId = void 0), - trailing && lastArgs ? invokeFunc(time) : ((lastArgs = lastThis = void 0), result) - ); - } - function debounced() { - var time = now(), - isInvoking = shouldInvoke(time); - if (((lastArgs = arguments), (lastThis = this), (lastCallTime = time), isInvoking)) { - if (void 0 === timerId) - return (function leadingEdge(time) { - return ( - (lastInvokeTime = time), - (timerId = setTimeout(timerExpired, wait)), - leading ? invokeFunc(time) : result - ); - })(lastCallTime); - if (maxing) return (timerId = setTimeout(timerExpired, wait)), invokeFunc(lastCallTime); - } - return void 0 === timerId && (timerId = setTimeout(timerExpired, wait)), result; - } - return ( - (wait = toNumber(wait) || 0), - isObject(options) && - ((leading = !!options.leading), - (maxWait = (maxing = 'maxWait' in options) - ? nativeMax(toNumber(options.maxWait) || 0, wait) - : maxWait), - (trailing = 'trailing' in options ? !!options.trailing : trailing)), - (debounced.cancel = function cancel() { - void 0 !== timerId && clearTimeout(timerId), - (lastInvokeTime = 0), - (lastArgs = lastCallTime = lastThis = timerId = void 0); - }), - (debounced.flush = function flush() { - return void 0 === timerId ? result : trailingEdge(now()); - }), - debounced - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.ColorWrap = void 0); - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }, - _createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - Object.defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _debounce2 = _interopRequireDefault(__webpack_require__(674)), - _color2 = _interopRequireDefault(__webpack_require__(109)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ColorWrap = (exports.ColorWrap = function ColorWrap(Picker) { - var ColorPicker = (function(_ref) { - function ColorPicker(props) { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, ColorPicker); - var _this = (function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - })(this, (ColorPicker.__proto__ || Object.getPrototypeOf(ColorPicker)).call(this)); - return ( - (_this.handleChange = function(data, event) { - if (_color2.default.simpleCheckForValidColor(data)) { - var colors = _color2.default.toState(data, data.h || _this.state.oldHue); - _this.setState(colors), - _this.props.onChangeComplete && - _this.debounce(_this.props.onChangeComplete, colors, event), - _this.props.onChange && _this.props.onChange(colors, event); - } - }), - (_this.handleSwatchHover = function(data, event) { - if (_color2.default.simpleCheckForValidColor(data)) { - var colors = _color2.default.toState(data, data.h || _this.state.oldHue); - _this.setState(colors), - _this.props.onSwatchHover && _this.props.onSwatchHover(colors, event); - } - }), - (_this.state = _extends({}, _color2.default.toState(props.color, 0))), - (_this.debounce = (0, _debounce2.default)(function(fn, data, event) { - fn(data, event); - }, 100)), - _this - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(ColorPicker, _react.PureComponent || _react.Component), - _createClass(ColorPicker, [ - { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps) { - this.setState( - _extends({}, _color2.default.toState(nextProps.color, this.state.oldHue)) - ); - } - }, - { - key: 'render', - value: function render() { - var optionalEvents = {}; - return ( - this.props.onSwatchHover && - (optionalEvents.onSwatchHover = this.handleSwatchHover), - _react2.default.createElement( - Picker, - _extends( - {}, - this.props, - this.state, - { onChange: this.handleChange }, - optionalEvents - ) - ) - ); - } - } - ]), - ColorPicker - ); - })(); - return ( - (ColorPicker.propTypes = _extends({}, Picker.propTypes)), - (ColorPicker.defaultProps = _extends({}, Picker.defaultProps, { - color: { h: 250, s: 0.5, l: 0.2, a: 1 } - })), - ColorPicker - ); - }); - exports.default = ColorWrap; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - Object.defineProperty(__webpack_exports__, '__esModule', { value: !0 }), - __webpack_require__.d(__webpack_exports__, 'red', function() { - return red; - }), - __webpack_require__.d(__webpack_exports__, 'pink', function() { - return pink; - }), - __webpack_require__.d(__webpack_exports__, 'purple', function() { - return purple; - }), - __webpack_require__.d(__webpack_exports__, 'deepPurple', function() { - return deepPurple; - }), - __webpack_require__.d(__webpack_exports__, 'indigo', function() { - return indigo; - }), - __webpack_require__.d(__webpack_exports__, 'blue', function() { - return blue; - }), - __webpack_require__.d(__webpack_exports__, 'lightBlue', function() { - return lightBlue; - }), - __webpack_require__.d(__webpack_exports__, 'cyan', function() { - return cyan; - }), - __webpack_require__.d(__webpack_exports__, 'teal', function() { - return teal; - }), - __webpack_require__.d(__webpack_exports__, 'green', function() { - return green; - }), - __webpack_require__.d(__webpack_exports__, 'lightGreen', function() { - return lightGreen; - }), - __webpack_require__.d(__webpack_exports__, 'lime', function() { - return lime; - }), - __webpack_require__.d(__webpack_exports__, 'yellow', function() { - return yellow; - }), - __webpack_require__.d(__webpack_exports__, 'amber', function() { - return amber; - }), - __webpack_require__.d(__webpack_exports__, 'orange', function() { - return orange; - }), - __webpack_require__.d(__webpack_exports__, 'deepOrange', function() { - return deepOrange; - }), - __webpack_require__.d(__webpack_exports__, 'brown', function() { - return brown; - }), - __webpack_require__.d(__webpack_exports__, 'grey', function() { - return grey; - }), - __webpack_require__.d(__webpack_exports__, 'blueGrey', function() { - return blueGrey; - }), - __webpack_require__.d(__webpack_exports__, 'darkText', function() { - return darkText; - }), - __webpack_require__.d(__webpack_exports__, 'lightText', function() { - return lightText; - }), - __webpack_require__.d(__webpack_exports__, 'darkIcons', function() { - return darkIcons; - }), - __webpack_require__.d(__webpack_exports__, 'lightIcons', function() { - return lightIcons; - }), - __webpack_require__.d(__webpack_exports__, 'white', function() { - return white; - }), - __webpack_require__.d(__webpack_exports__, 'black', function() { - return black; - }); - var red = { - 50: '#ffebee', - 100: '#ffcdd2', - 200: '#ef9a9a', - 300: '#e57373', - 400: '#ef5350', - 500: '#f44336', - 600: '#e53935', - 700: '#d32f2f', - 800: '#c62828', - 900: '#b71c1c', - a100: '#ff8a80', - a200: '#ff5252', - a400: '#ff1744', - a700: '#d50000' - }, - pink = { - 50: '#fce4ec', - 100: '#f8bbd0', - 200: '#f48fb1', - 300: '#f06292', - 400: '#ec407a', - 500: '#e91e63', - 600: '#d81b60', - 700: '#c2185b', - 800: '#ad1457', - 900: '#880e4f', - a100: '#ff80ab', - a200: '#ff4081', - a400: '#f50057', - a700: '#c51162' - }, - purple = { - 50: '#f3e5f5', - 100: '#e1bee7', - 200: '#ce93d8', - 300: '#ba68c8', - 400: '#ab47bc', - 500: '#9c27b0', - 600: '#8e24aa', - 700: '#7b1fa2', - 800: '#6a1b9a', - 900: '#4a148c', - a100: '#ea80fc', - a200: '#e040fb', - a400: '#d500f9', - a700: '#aa00ff' - }, - deepPurple = { - 50: '#ede7f6', - 100: '#d1c4e9', - 200: '#b39ddb', - 300: '#9575cd', - 400: '#7e57c2', - 500: '#673ab7', - 600: '#5e35b1', - 700: '#512da8', - 800: '#4527a0', - 900: '#311b92', - a100: '#b388ff', - a200: '#7c4dff', - a400: '#651fff', - a700: '#6200ea' - }, - indigo = { - 50: '#e8eaf6', - 100: '#c5cae9', - 200: '#9fa8da', - 300: '#7986cb', - 400: '#5c6bc0', - 500: '#3f51b5', - 600: '#3949ab', - 700: '#303f9f', - 800: '#283593', - 900: '#1a237e', - a100: '#8c9eff', - a200: '#536dfe', - a400: '#3d5afe', - a700: '#304ffe' - }, - blue = { - 50: '#e3f2fd', - 100: '#bbdefb', - 200: '#90caf9', - 300: '#64b5f6', - 400: '#42a5f5', - 500: '#2196f3', - 600: '#1e88e5', - 700: '#1976d2', - 800: '#1565c0', - 900: '#0d47a1', - a100: '#82b1ff', - a200: '#448aff', - a400: '#2979ff', - a700: '#2962ff' - }, - lightBlue = { - 50: '#e1f5fe', - 100: '#b3e5fc', - 200: '#81d4fa', - 300: '#4fc3f7', - 400: '#29b6f6', - 500: '#03a9f4', - 600: '#039be5', - 700: '#0288d1', - 800: '#0277bd', - 900: '#01579b', - a100: '#80d8ff', - a200: '#40c4ff', - a400: '#00b0ff', - a700: '#0091ea' - }, - cyan = { - 50: '#e0f7fa', - 100: '#b2ebf2', - 200: '#80deea', - 300: '#4dd0e1', - 400: '#26c6da', - 500: '#00bcd4', - 600: '#00acc1', - 700: '#0097a7', - 800: '#00838f', - 900: '#006064', - a100: '#84ffff', - a200: '#18ffff', - a400: '#00e5ff', - a700: '#00b8d4' - }, - teal = { - 50: '#e0f2f1', - 100: '#b2dfdb', - 200: '#80cbc4', - 300: '#4db6ac', - 400: '#26a69a', - 500: '#009688', - 600: '#00897b', - 700: '#00796b', - 800: '#00695c', - 900: '#004d40', - a100: '#a7ffeb', - a200: '#64ffda', - a400: '#1de9b6', - a700: '#00bfa5' - }, - green = { - 50: '#e8f5e9', - 100: '#c8e6c9', - 200: '#a5d6a7', - 300: '#81c784', - 400: '#66bb6a', - 500: '#4caf50', - 600: '#43a047', - 700: '#388e3c', - 800: '#2e7d32', - 900: '#1b5e20', - a100: '#b9f6ca', - a200: '#69f0ae', - a400: '#00e676', - a700: '#00c853' - }, - lightGreen = { - 50: '#f1f8e9', - 100: '#dcedc8', - 200: '#c5e1a5', - 300: '#aed581', - 400: '#9ccc65', - 500: '#8bc34a', - 600: '#7cb342', - 700: '#689f38', - 800: '#558b2f', - 900: '#33691e', - a100: '#ccff90', - a200: '#b2ff59', - a400: '#76ff03', - a700: '#64dd17' - }, - lime = { - 50: '#f9fbe7', - 100: '#f0f4c3', - 200: '#e6ee9c', - 300: '#dce775', - 400: '#d4e157', - 500: '#cddc39', - 600: '#c0ca33', - 700: '#afb42b', - 800: '#9e9d24', - 900: '#827717', - a100: '#f4ff81', - a200: '#eeff41', - a400: '#c6ff00', - a700: '#aeea00' - }, - yellow = { - 50: '#fffde7', - 100: '#fff9c4', - 200: '#fff59d', - 300: '#fff176', - 400: '#ffee58', - 500: '#ffeb3b', - 600: '#fdd835', - 700: '#fbc02d', - 800: '#f9a825', - 900: '#f57f17', - a100: '#ffff8d', - a200: '#ffff00', - a400: '#ffea00', - a700: '#ffd600' - }, - amber = { - 50: '#fff8e1', - 100: '#ffecb3', - 200: '#ffe082', - 300: '#ffd54f', - 400: '#ffca28', - 500: '#ffc107', - 600: '#ffb300', - 700: '#ffa000', - 800: '#ff8f00', - 900: '#ff6f00', - a100: '#ffe57f', - a200: '#ffd740', - a400: '#ffc400', - a700: '#ffab00' - }, - orange = { - 50: '#fff3e0', - 100: '#ffe0b2', - 200: '#ffcc80', - 300: '#ffb74d', - 400: '#ffa726', - 500: '#ff9800', - 600: '#fb8c00', - 700: '#f57c00', - 800: '#ef6c00', - 900: '#e65100', - a100: '#ffd180', - a200: '#ffab40', - a400: '#ff9100', - a700: '#ff6d00' - }, - deepOrange = { - 50: '#fbe9e7', - 100: '#ffccbc', - 200: '#ffab91', - 300: '#ff8a65', - 400: '#ff7043', - 500: '#ff5722', - 600: '#f4511e', - 700: '#e64a19', - 800: '#d84315', - 900: '#bf360c', - a100: '#ff9e80', - a200: '#ff6e40', - a400: '#ff3d00', - a700: '#dd2c00' - }, - brown = { - 50: '#efebe9', - 100: '#d7ccc8', - 200: '#bcaaa4', - 300: '#a1887f', - 400: '#8d6e63', - 500: '#795548', - 600: '#6d4c41', - 700: '#5d4037', - 800: '#4e342e', - 900: '#3e2723' - }, - grey = { - 50: '#fafafa', - 100: '#f5f5f5', - 200: '#eeeeee', - 300: '#e0e0e0', - 400: '#bdbdbd', - 500: '#9e9e9e', - 600: '#757575', - 700: '#616161', - 800: '#424242', - 900: '#212121' - }, - blueGrey = { - 50: '#eceff1', - 100: '#cfd8dc', - 200: '#b0bec5', - 300: '#90a4ae', - 400: '#78909c', - 500: '#607d8b', - 600: '#546e7a', - 700: '#455a64', - 800: '#37474f', - 900: '#263238' - }, - darkText = { - primary: 'rgba(0, 0, 0, 0.87)', - secondary: 'rgba(0, 0, 0, 0.54)', - disabled: 'rgba(0, 0, 0, 0.38)', - dividers: 'rgba(0, 0, 0, 0.12)' - }, - lightText = { - primary: 'rgba(255, 255, 255, 1)', - secondary: 'rgba(255, 255, 255, 0.7)', - disabled: 'rgba(255, 255, 255, 0.5)', - dividers: 'rgba(255, 255, 255, 0.12)' - }, - darkIcons = { active: 'rgba(0, 0, 0, 0.54)', inactive: 'rgba(0, 0, 0, 0.38)' }, - lightIcons = { active: 'rgba(255, 255, 255, 1)', inactive: 'rgba(255, 255, 255, 0.5)' }, - white = '#ffffff', - black = '#000000'; - __webpack_exports__.default = { - red: red, - pink: pink, - purple: purple, - deepPurple: deepPurple, - indigo: indigo, - blue: blue, - lightBlue: lightBlue, - cyan: cyan, - teal: teal, - green: green, - lightGreen: lightGreen, - lime: lime, - yellow: yellow, - amber: amber, - orange: orange, - deepOrange: deepOrange, - brown: brown, - grey: grey, - blueGrey: blueGrey, - darkText: darkText, - lightText: lightText, - darkIcons: darkIcons, - lightIcons: lightIcons, - white: white, - black: black - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var propIsEnumerable = Object.prototype.propertyIsEnumerable; - function ownEnumerableKeys(obj) { - var keys = Object.getOwnPropertyNames(obj); - return ( - Object.getOwnPropertySymbols && (keys = keys.concat(Object.getOwnPropertySymbols(obj))), - keys.filter(function(key) { - return propIsEnumerable.call(obj, key); - }) - ); - } - module.exports = - Object.assign || - function(target, source) { - for ( - var from, - keys, - to = (function ToObject(val) { - if (null == val) - throw new TypeError('Object.assign cannot be called with null or undefined'); - return Object(val); - })(target), - s = 1; - s < arguments.length; - s++ - ) { - (from = arguments[s]), (keys = ownEnumerableKeys(Object(from))); - for (var i = 0; i < keys.length; i++) to[keys[i]] = from[keys[i]]; - } - return to; - }; - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('af', { - months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'), - weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'), - weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), - weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), - meridiemParse: /vm|nm/i, - isPM: function(input) { - return /^nm$/i.test(input); - }, - meridiem: function(hours, minutes, isLower) { - return hours < 12 ? (isLower ? 'vm' : 'VM') : isLower ? 'nm' : 'NM'; - }, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Vandag om] LT', - nextDay: '[Môre om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[Gister om] LT', - lastWeek: '[Laas] dddd [om] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'oor %s', - past: '%s gelede', - s: "'n paar sekondes", - ss: '%d sekondes', - m: "'n minuut", - mm: '%d minute', - h: "'n uur", - hh: '%d ure', - d: "'n dag", - dd: '%d dae', - M: "'n maand", - MM: '%d maande', - y: "'n jaar", - yy: '%d jaar' - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function(number) { - return number + (1 === number || 8 === number || number >= 20 ? 'ste' : 'de'); - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var symbolMap = { - 1: '١', - 2: '٢', - 3: '٣', - 4: '٤', - 5: '٥', - 6: '٦', - 7: '٧', - 8: '٨', - 9: '٩', - 0: '٠' - }, - numberMap = { - '١': '1', - '٢': '2', - '٣': '3', - '٤': '4', - '٥': '5', - '٦': '6', - '٧': '7', - '٨': '8', - '٩': '9', - '٠': '0' - }, - pluralForm = function(n) { - return 0 === n - ? 0 - : 1 === n ? 1 : 2 === n ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5; - }, - plurals = { - s: [ - 'أقل من ثانية', - 'ثانية واحدة', - ['ثانيتان', 'ثانيتين'], - '%d ثوان', - '%d ثانية', - '%d ثانية' - ], - m: [ - 'أقل من دقيقة', - 'دقيقة واحدة', - ['دقيقتان', 'دقيقتين'], - '%d دقائق', - '%d دقيقة', - '%d دقيقة' - ], - h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'], - d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'], - M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'], - y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام'] - }, - pluralize = function(u) { - return function(number, withoutSuffix, string, isFuture) { - var f = pluralForm(number), - str = plurals[u][pluralForm(number)]; - return 2 === f && (str = str[withoutSuffix ? 0 : 1]), str.replace(/%d/i, number); - }; - }, - months = [ - 'يناير', - 'فبراير', - 'مارس', - 'أبريل', - 'مايو', - 'يونيو', - 'يوليو', - 'أغسطس', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر' - ]; - moment.defineLocale('ar', { - months: months, - monthsShort: months, - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'D/‏M/‏YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - meridiemParse: /ص|م/, - isPM: function(input) { - return 'م' === input; - }, - meridiem: function(hour, minute, isLower) { - return hour < 12 ? 'ص' : 'م'; - }, - calendar: { - sameDay: '[اليوم عند الساعة] LT', - nextDay: '[غدًا عند الساعة] LT', - nextWeek: 'dddd [عند الساعة] LT', - lastDay: '[أمس عند الساعة] LT', - lastWeek: 'dddd [عند الساعة] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'بعد %s', - past: 'منذ %s', - s: pluralize('s'), - ss: pluralize('s'), - m: pluralize('m'), - mm: pluralize('m'), - h: pluralize('h'), - hh: pluralize('h'), - d: pluralize('d'), - dd: pluralize('d'), - M: pluralize('M'), - MM: pluralize('M'), - y: pluralize('y'), - yy: pluralize('y') - }, - preparse: function(string) { - return string - .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function(match) { - return numberMap[match]; - }) - .replace(/،/g, ','); - }, - postformat: function(string) { - return string - .replace(/\d/g, function(match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - week: { dow: 6, doy: 12 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('ar-dz', { - months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), - monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات' - }, - week: { dow: 0, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('ar-kw', { - months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), - monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( - '_' - ), - weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات' - }, - week: { dow: 0, doy: 12 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var symbolMap = { - 1: '1', - 2: '2', - 3: '3', - 4: '4', - 5: '5', - 6: '6', - 7: '7', - 8: '8', - 9: '9', - 0: '0' - }, - pluralForm = function(n) { - return 0 === n - ? 0 - : 1 === n ? 1 : 2 === n ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5; - }, - plurals = { - s: [ - 'أقل من ثانية', - 'ثانية واحدة', - ['ثانيتان', 'ثانيتين'], - '%d ثوان', - '%d ثانية', - '%d ثانية' - ], - m: [ - 'أقل من دقيقة', - 'دقيقة واحدة', - ['دقيقتان', 'دقيقتين'], - '%d دقائق', - '%d دقيقة', - '%d دقيقة' - ], - h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'], - d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'], - M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'], - y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام'] - }, - pluralize = function(u) { - return function(number, withoutSuffix, string, isFuture) { - var f = pluralForm(number), - str = plurals[u][pluralForm(number)]; - return 2 === f && (str = str[withoutSuffix ? 0 : 1]), str.replace(/%d/i, number); - }; - }, - months = [ - 'يناير', - 'فبراير', - 'مارس', - 'أبريل', - 'مايو', - 'يونيو', - 'يوليو', - 'أغسطس', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر' - ]; - moment.defineLocale('ar-ly', { - months: months, - monthsShort: months, - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'D/‏M/‏YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - meridiemParse: /ص|م/, - isPM: function(input) { - return 'م' === input; - }, - meridiem: function(hour, minute, isLower) { - return hour < 12 ? 'ص' : 'م'; - }, - calendar: { - sameDay: '[اليوم عند الساعة] LT', - nextDay: '[غدًا عند الساعة] LT', - nextWeek: 'dddd [عند الساعة] LT', - lastDay: '[أمس عند الساعة] LT', - lastWeek: 'dddd [عند الساعة] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'بعد %s', - past: 'منذ %s', - s: pluralize('s'), - ss: pluralize('s'), - m: pluralize('m'), - mm: pluralize('m'), - h: pluralize('h'), - hh: pluralize('h'), - d: pluralize('d'), - dd: pluralize('d'), - M: pluralize('M'), - MM: pluralize('M'), - y: pluralize('y'), - yy: pluralize('y') - }, - preparse: function(string) { - return string.replace(/،/g, ','); - }, - postformat: function(string) { - return string - .replace(/\d/g, function(match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - week: { dow: 6, doy: 12 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('ar-ma', { - months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), - monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( - '_' - ), - weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات' - }, - week: { dow: 6, doy: 12 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var symbolMap = { - 1: '١', - 2: '٢', - 3: '٣', - 4: '٤', - 5: '٥', - 6: '٦', - 7: '٧', - 8: '٨', - 9: '٩', - 0: '٠' - }, - numberMap = { - '١': '1', - '٢': '2', - '٣': '3', - '٤': '4', - '٥': '5', - '٦': '6', - '٧': '7', - '٨': '8', - '٩': '9', - '٠': '0' - }; - moment.defineLocale('ar-sa', { - months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - meridiemParse: /ص|م/, - isPM: function(input) { - return 'م' === input; - }, - meridiem: function(hour, minute, isLower) { - return hour < 12 ? 'ص' : 'م'; - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات' - }, - preparse: function(string) { - return string - .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function(match) { - return numberMap[match]; - }) - .replace(/،/g, ','); - }, - postformat: function(string) { - return string - .replace(/\d/g, function(match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - week: { dow: 0, doy: 6 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('ar-tn', { - months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), - monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات' - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var suffixes = { - 1: '-inci', - 5: '-inci', - 8: '-inci', - 70: '-inci', - 80: '-inci', - 2: '-nci', - 7: '-nci', - 20: '-nci', - 50: '-nci', - 3: '-üncü', - 4: '-üncü', - 100: '-üncü', - 6: '-ncı', - 9: '-uncu', - 10: '-uncu', - 30: '-uncu', - 60: '-ıncı', - 90: '-ıncı' - }; - moment.defineLocale('az', { - months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split( - '_' - ), - monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'), - weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'), - weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'), - weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[bugün saat] LT', - nextDay: '[sabah saat] LT', - nextWeek: '[gələn həftə] dddd [saat] LT', - lastDay: '[dünən] LT', - lastWeek: '[keçən həftə] dddd [saat] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s sonra', - past: '%s əvvəl', - s: 'birneçə saniyyə', - ss: '%d saniyə', - m: 'bir dəqiqə', - mm: '%d dəqiqə', - h: 'bir saat', - hh: '%d saat', - d: 'bir gün', - dd: '%d gün', - M: 'bir ay', - MM: '%d ay', - y: 'bir il', - yy: '%d il' - }, - meridiemParse: /gecə|səhər|gündüz|axşam/, - isPM: function(input) { - return /^(gündüz|axşam)$/.test(input); - }, - meridiem: function(hour, minute, isLower) { - return hour < 4 ? 'gecə' : hour < 12 ? 'səhər' : hour < 17 ? 'gündüz' : 'axşam'; - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/, - ordinal: function(number) { - if (0 === number) return number + '-ıncı'; - var a = number % 10; - return ( - number + - (suffixes[a] || suffixes[number % 100 - a] || suffixes[number >= 100 ? 100 : null]) - ); - }, - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - function relativeTimeWithPlural(number, withoutSuffix, key) { - return 'm' === key - ? withoutSuffix ? 'хвіліна' : 'хвіліну' - : 'h' === key - ? withoutSuffix ? 'гадзіна' : 'гадзіну' - : number + - ' ' + - (function plural(word, num) { - var forms = word.split('_'); - return num % 10 == 1 && num % 100 != 11 - ? forms[0] - : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) - ? forms[1] - : forms[2]; - })( - { - ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', - mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін', - hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін', - dd: 'дзень_дні_дзён', - MM: 'месяц_месяцы_месяцаў', - yy: 'год_гады_гадоў' - }[key], - +number - ); - } - moment.defineLocale('be', { - months: { - format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split( - '_' - ), - standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split( - '_' - ) - }, - monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'), - weekdays: { - format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'), - standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'), - isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/ - }, - weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), - weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY г.', - LLL: 'D MMMM YYYY г., HH:mm', - LLLL: 'dddd, D MMMM YYYY г., HH:mm' - }, - calendar: { - sameDay: '[Сёння ў] LT', - nextDay: '[Заўтра ў] LT', - lastDay: '[Учора ў] LT', - nextWeek: function() { - return '[У] dddd [ў] LT'; - }, - lastWeek: function() { - switch (this.day()) { - case 0: - case 3: - case 5: - case 6: - return '[У мінулую] dddd [ў] LT'; - case 1: - case 2: - case 4: - return '[У мінулы] dddd [ў] LT'; - } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'праз %s', - past: '%s таму', - s: 'некалькі секунд', - m: relativeTimeWithPlural, - mm: relativeTimeWithPlural, - h: relativeTimeWithPlural, - hh: relativeTimeWithPlural, - d: 'дзень', - dd: relativeTimeWithPlural, - M: 'месяц', - MM: relativeTimeWithPlural, - y: 'год', - yy: relativeTimeWithPlural - }, - meridiemParse: /ночы|раніцы|дня|вечара/, - isPM: function(input) { - return /^(дня|вечара)$/.test(input); - }, - meridiem: function(hour, minute, isLower) { - return hour < 4 ? 'ночы' : hour < 12 ? 'раніцы' : hour < 17 ? 'дня' : 'вечара'; - }, - dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/, - ordinal: function(number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - case 'w': - case 'W': - return (number % 10 != 2 && number % 10 != 3) || - number % 100 == 12 || - number % 100 == 13 - ? number + '-ы' - : number + '-і'; - case 'D': - return number + '-га'; - default: - return number; - } - }, - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('bg', { - months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split( - '_' - ), - monthsShort: 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'), - weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'), - weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'), - weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'D.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY H:mm', - LLLL: 'dddd, D MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[Днес в] LT', - nextDay: '[Утре в] LT', - nextWeek: 'dddd [в] LT', - lastDay: '[Вчера в] LT', - lastWeek: function() { - switch (this.day()) { - case 0: - case 3: - case 6: - return '[В изминалата] dddd [в] LT'; - case 1: - case 2: - case 4: - case 5: - return '[В изминалия] dddd [в] LT'; - } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'след %s', - past: 'преди %s', - s: 'няколко секунди', - ss: '%d секунди', - m: 'минута', - mm: '%d минути', - h: 'час', - hh: '%d часа', - d: 'ден', - dd: '%d дни', - M: 'месец', - MM: '%d месеца', - y: 'година', - yy: '%d години' - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, - ordinal: function(number) { - var lastDigit = number % 10, - last2Digits = number % 100; - return 0 === number - ? number + '-ев' - : 0 === last2Digits - ? number + '-ен' - : last2Digits > 10 && last2Digits < 20 - ? number + '-ти' - : 1 === lastDigit - ? number + '-ви' - : 2 === lastDigit - ? number + '-ри' - : 7 === lastDigit || 8 === lastDigit ? number + '-ми' : number + '-ти'; - }, - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('bm', { - months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split( - '_' - ), - monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'), - weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'), - weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'), - weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'MMMM [tile] D [san] YYYY', - LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', - LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm' - }, - calendar: { - sameDay: '[Bi lɛrɛ] LT', - nextDay: '[Sini lɛrɛ] LT', - nextWeek: 'dddd [don lɛrɛ] LT', - lastDay: '[Kunu lɛrɛ] LT', - lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s kɔnɔ', - past: 'a bɛ %s bɔ', - s: 'sanga dama dama', - ss: 'sekondi %d', - m: 'miniti kelen', - mm: 'miniti %d', - h: 'lɛrɛ kelen', - hh: 'lɛrɛ %d', - d: 'tile kelen', - dd: 'tile %d', - M: 'kalo kelen', - MM: 'kalo %d', - y: 'san kelen', - yy: 'san %d' - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var symbolMap = { - 1: '১', - 2: '২', - 3: '৩', - 4: '৪', - 5: '৫', - 6: '৬', - 7: '৭', - 8: '৮', - 9: '৯', - 0: '০' - }, - numberMap = { - '১': '1', - '২': '2', - '৩': '3', - '৪': '4', - '৫': '5', - '৬': '6', - '৭': '7', - '৮': '8', - '৯': '9', - '০': '0' - }; - moment.defineLocale('bn', { - months: 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split( - '_' - ), - monthsShort: 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'), - weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'), - weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'), - weekdaysMin: 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'), - longDateFormat: { - LT: 'A h:mm সময়', - LTS: 'A h:mm:ss সময়', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm সময়', - LLLL: 'dddd, D MMMM YYYY, A h:mm সময়' - }, - calendar: { - sameDay: '[আজ] LT', - nextDay: '[আগামীকাল] LT', - nextWeek: 'dddd, LT', - lastDay: '[গতকাল] LT', - lastWeek: '[গত] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s পরে', - past: '%s আগে', - s: 'কয়েক সেকেন্ড', - ss: '%d সেকেন্ড', - m: 'এক মিনিট', - mm: '%d মিনিট', - h: 'এক ঘন্টা', - hh: '%d ঘন্টা', - d: 'এক দিন', - dd: '%d দিন', - M: 'এক মাস', - MM: '%d মাস', - y: 'এক বছর', - yy: '%d বছর' - }, - preparse: function(string) { - return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function(match) { - return numberMap[match]; - }); - }, - postformat: function(string) { - return string.replace(/\d/g, function(match) { - return symbolMap[match]; - }); - }, - meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - ('রাত' === meridiem && hour >= 4) || - ('দুপুর' === meridiem && hour < 5) || - 'বিকাল' === meridiem - ? hour + 12 - : hour - ); - }, - meridiem: function(hour, minute, isLower) { - return hour < 4 - ? 'রাত' - : hour < 10 ? 'সকাল' : hour < 17 ? 'দুপুর' : hour < 20 ? 'বিকাল' : 'রাত'; - }, - week: { dow: 0, doy: 6 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var symbolMap = { - 1: '༡', - 2: '༢', - 3: '༣', - 4: '༤', - 5: '༥', - 6: '༦', - 7: '༧', - 8: '༨', - 9: '༩', - 0: '༠' - }, - numberMap = { - '༡': '1', - '༢': '2', - '༣': '3', - '༤': '4', - '༥': '5', - '༦': '6', - '༧': '7', - '༨': '8', - '༩': '9', - '༠': '0' - }; - moment.defineLocale('bo', { - months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split( - '_' - ), - monthsShort: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split( - '_' - ), - weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split( - '_' - ), - weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'), - weekdaysMin: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm', - LLLL: 'dddd, D MMMM YYYY, A h:mm' - }, - calendar: { - sameDay: '[དི་རིང] LT', - nextDay: '[སང་ཉིན] LT', - nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT', - lastDay: '[ཁ་སང] LT', - lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s ལ་', - past: '%s སྔན་ལ', - s: 'ལམ་སང', - ss: '%d སྐར་ཆ།', - m: 'སྐར་མ་གཅིག', - mm: '%d སྐར་མ', - h: 'ཆུ་ཚོད་གཅིག', - hh: '%d ཆུ་ཚོད', - d: 'ཉིན་གཅིག', - dd: '%d ཉིན་', - M: 'ཟླ་བ་གཅིག', - MM: '%d ཟླ་བ', - y: 'ལོ་གཅིག', - yy: '%d ལོ' - }, - preparse: function(string) { - return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function(match) { - return numberMap[match]; - }); - }, - postformat: function(string) { - return string.replace(/\d/g, function(match) { - return symbolMap[match]; - }); - }, - meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - ('མཚན་མོ' === meridiem && hour >= 4) || - ('ཉིན་གུང' === meridiem && hour < 5) || - 'དགོང་དག' === meridiem - ? hour + 12 - : hour - ); - }, - meridiem: function(hour, minute, isLower) { - return hour < 4 - ? 'མཚན་མོ' - : hour < 10 ? 'ཞོགས་ཀས' : hour < 17 ? 'ཉིན་གུང' : hour < 20 ? 'དགོང་དག' : 'མཚན་མོ'; - }, - week: { dow: 0, doy: 6 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - function relativeTimeWithMutation(number, withoutSuffix, key) { - return ( - number + - ' ' + - (function mutation(text, number) { - if (2 === number) - return (function softMutation(text) { - var mutationTable = { m: 'v', b: 'v', d: 'z' }; - if (void 0 === mutationTable[text.charAt(0)]) return text; - return mutationTable[text.charAt(0)] + text.substring(1); - })(text); - return text; - })({ mm: 'munutenn', MM: 'miz', dd: 'devezh' }[key], number) - ); - } - moment.defineLocale('br', { - months: "Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split( - '_' - ), - monthsShort: "Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split('_'), - weekdays: "Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split('_'), - weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'), - weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'h[e]mm A', - LTS: 'h[e]mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D [a viz] MMMM YYYY', - LLL: 'D [a viz] MMMM YYYY h[e]mm A', - LLLL: 'dddd, D [a viz] MMMM YYYY h[e]mm A' - }, - calendar: { - sameDay: '[Hiziv da] LT', - nextDay: "[Warc'hoazh da] LT", - nextWeek: 'dddd [da] LT', - lastDay: "[Dec'h da] LT", - lastWeek: 'dddd [paset da] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'a-benn %s', - past: "%s 'zo", - s: 'un nebeud segondennoù', - ss: '%d eilenn', - m: 'ur vunutenn', - mm: relativeTimeWithMutation, - h: 'un eur', - hh: '%d eur', - d: 'un devezh', - dd: relativeTimeWithMutation, - M: 'ur miz', - MM: relativeTimeWithMutation, - y: 'ur bloaz', - yy: function specialMutationForYears(number) { - switch ((function lastNumber(number) { - return number > 9 ? lastNumber(number % 10) : number; - })(number)) { - case 1: - case 3: - case 4: - case 5: - case 9: - return number + ' bloaz'; - default: - return number + ' vloaz'; - } - } - }, - dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/, - ordinal: function(number) { - return number + (1 === number ? 'añ' : 'vet'); - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - function translate(number, withoutSuffix, key) { - var result = number + ' '; - switch (key) { - case 'ss': - return (result += - 1 === number - ? 'sekunda' - : 2 === number || 3 === number || 4 === number ? 'sekunde' : 'sekundi'); - case 'm': - return withoutSuffix ? 'jedna minuta' : 'jedne minute'; - case 'mm': - return (result += - 1 === number - ? 'minuta' - : 2 === number || 3 === number || 4 === number ? 'minute' : 'minuta'); - case 'h': - return withoutSuffix ? 'jedan sat' : 'jednog sata'; - case 'hh': - return (result += - 1 === number - ? 'sat' - : 2 === number || 3 === number || 4 === number ? 'sata' : 'sati'); - case 'dd': - return (result += 1 === number ? 'dan' : 'dana'); - case 'MM': - return (result += - 1 === number - ? 'mjesec' - : 2 === number || 3 === number || 4 === number ? 'mjeseca' : 'mjeseci'); - case 'yy': - return (result += - 1 === number - ? 'godina' - : 2 === number || 3 === number || 4 === number ? 'godine' : 'godina'); - } - } - moment.defineLocale('bs', { - months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split( - '_' - ), - monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'), - monthsParseExact: !0, - weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'), - weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sutra u] LT', - nextWeek: function() { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay: '[jučer u] LT', - lastWeek: function() { - switch (this.day()) { - case 0: - case 3: - return '[prošlu] dddd [u] LT'; - case 6: - return '[prošle] [subote] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prošli] dddd [u] LT'; - } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'za %s', - past: 'prije %s', - s: 'par sekundi', - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: 'dan', - dd: translate, - M: 'mjesec', - MM: translate, - y: 'godinu', - yy: translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('ca', { - months: { - standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split( - '_' - ), - format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split( - '_' - ), - isFormat: /D[oD]?(\s)+MMMM/ - }, - monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'), - monthsParseExact: !0, - weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'), - weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'), - weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM [de] YYYY', - ll: 'D MMM YYYY', - LLL: 'D MMMM [de] YYYY [a les] H:mm', - lll: 'D MMM YYYY, H:mm', - LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm', - llll: 'ddd D MMM YYYY, H:mm' - }, - calendar: { - sameDay: function() { - return '[avui a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'; - }, - nextDay: function() { - return '[demà a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'; - }, - nextWeek: function() { - return 'dddd [a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'; - }, - lastDay: function() { - return '[ahir a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'; - }, - lastWeek: function() { - return '[el] dddd [passat a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'; - }, - sameElse: 'L' - }, - relativeTime: { - future: "d'aquí %s", - past: 'fa %s', - s: 'uns segons', - ss: '%d segons', - m: 'un minut', - mm: '%d minuts', - h: 'una hora', - hh: '%d hores', - d: 'un dia', - dd: '%d dies', - M: 'un mes', - MM: '%d mesos', - y: 'un any', - yy: '%d anys' - }, - dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, - ordinal: function(number, period) { - var output = - 1 === number ? 'r' : 2 === number ? 'n' : 3 === number ? 'r' : 4 === number ? 't' : 'è'; - return ('w' !== period && 'W' !== period) || (output = 'a'), number + output; - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split( - '_' - ), - monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'); - function plural(n) { - return n > 1 && n < 5 && 1 != ~~(n / 10); - } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': - return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami'; - case 'ss': - return withoutSuffix || isFuture - ? result + (plural(number) ? 'sekundy' : 'sekund') - : result + 'sekundami'; - case 'm': - return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou'; - case 'mm': - return withoutSuffix || isFuture - ? result + (plural(number) ? 'minuty' : 'minut') - : result + 'minutami'; - case 'h': - return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou'; - case 'hh': - return withoutSuffix || isFuture - ? result + (plural(number) ? 'hodiny' : 'hodin') - : result + 'hodinami'; - case 'd': - return withoutSuffix || isFuture ? 'den' : 'dnem'; - case 'dd': - return withoutSuffix || isFuture - ? result + (plural(number) ? 'dny' : 'dní') - : result + 'dny'; - case 'M': - return withoutSuffix || isFuture ? 'měsíc' : 'měsícem'; - case 'MM': - return withoutSuffix || isFuture - ? result + (plural(number) ? 'měsíce' : 'měsíců') - : result + 'měsíci'; - case 'y': - return withoutSuffix || isFuture ? 'rok' : 'rokem'; - case 'yy': - return withoutSuffix || isFuture - ? result + (plural(number) ? 'roky' : 'let') - : result + 'lety'; - } - } - moment.defineLocale('cs', { - months: months, - monthsShort: monthsShort, - monthsParse: (function(months, monthsShort) { - var i, - _monthsParse = []; - for (i = 0; i < 12; i++) - _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i'); - return _monthsParse; - })(months, monthsShort), - shortMonthsParse: (function(monthsShort) { - var i, - _shortMonthsParse = []; - for (i = 0; i < 12; i++) - _shortMonthsParse[i] = new RegExp('^' + monthsShort[i] + '$', 'i'); - return _shortMonthsParse; - })(monthsShort), - longMonthsParse: (function(months) { - var i, - _longMonthsParse = []; - for (i = 0; i < 12; i++) _longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i'); - return _longMonthsParse; - })(months), - weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'), - weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'), - weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd D. MMMM YYYY H:mm', - l: 'D. M. YYYY' - }, - calendar: { - sameDay: '[dnes v] LT', - nextDay: '[zítra v] LT', - nextWeek: function() { - switch (this.day()) { - case 0: - return '[v neděli v] LT'; - case 1: - case 2: - return '[v] dddd [v] LT'; - case 3: - return '[ve středu v] LT'; - case 4: - return '[ve čtvrtek v] LT'; - case 5: - return '[v pátek v] LT'; - case 6: - return '[v sobotu v] LT'; - } - }, - lastDay: '[včera v] LT', - lastWeek: function() { - switch (this.day()) { - case 0: - return '[minulou neděli v] LT'; - case 1: - case 2: - return '[minulé] dddd [v] LT'; - case 3: - return '[minulou středu v] LT'; - case 4: - case 5: - return '[minulý] dddd [v] LT'; - case 6: - return '[minulou sobotu v] LT'; - } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'za %s', - past: 'před %s', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('cv', { - months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'), - monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'), - weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'), - weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'), - weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD-MM-YYYY', - LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]', - LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', - LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm' - }, - calendar: { - sameDay: '[Паян] LT [сехетре]', - nextDay: '[Ыран] LT [сехетре]', - lastDay: '[Ӗнер] LT [сехетре]', - nextWeek: '[Ҫитес] dddd LT [сехетре]', - lastWeek: '[Иртнӗ] dddd LT [сехетре]', - sameElse: 'L' - }, - relativeTime: { - future: function(output) { - return output + (/сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран'); - }, - past: '%s каялла', - s: 'пӗр-ик ҫеккунт', - ss: '%d ҫеккунт', - m: 'пӗр минут', - mm: '%d минут', - h: 'пӗр сехет', - hh: '%d сехет', - d: 'пӗр кун', - dd: '%d кун', - M: 'пӗр уйӑх', - MM: '%d уйӑх', - y: 'пӗр ҫул', - yy: '%d ҫул' - }, - dayOfMonthOrdinalParse: /\d{1,2}-мӗш/, - ordinal: '%d-мӗш', - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('cy', { - months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split( - '_' - ), - monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'), - weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split( - '_' - ), - weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), - weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Heddiw am] LT', - nextDay: '[Yfory am] LT', - nextWeek: 'dddd [am] LT', - lastDay: '[Ddoe am] LT', - lastWeek: 'dddd [diwethaf am] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'mewn %s', - past: '%s yn ôl', - s: 'ychydig eiliadau', - ss: '%d eiliad', - m: 'munud', - mm: '%d munud', - h: 'awr', - hh: '%d awr', - d: 'diwrnod', - dd: '%d diwrnod', - M: 'mis', - MM: '%d mis', - y: 'blwyddyn', - yy: '%d flynedd' - }, - dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, - ordinal: function(number) { - var output = ''; - return ( - number > 20 - ? (output = - 40 === number || 50 === number || 60 === number || 80 === number || 100 === number - ? 'fed' - : 'ain') - : number > 0 && - (output = [ - '', - 'af', - 'il', - 'ydd', - 'ydd', - 'ed', - 'ed', - 'ed', - 'fed', - 'fed', - 'fed', - 'eg', - 'fed', - 'eg', - 'eg', - 'fed', - 'eg', - 'eg', - 'fed', - 'eg', - 'fed' - ][number]), - number + output - ); - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('da', { - months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), - weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), - weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'), - weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm' - }, - calendar: { - sameDay: '[i dag kl.] LT', - nextDay: '[i morgen kl.] LT', - nextWeek: 'på dddd [kl.] LT', - lastDay: '[i går kl.] LT', - lastWeek: '[i] dddd[s kl.] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'om %s', - past: '%s siden', - s: 'få sekunder', - ss: '%d sekunder', - m: 'et minut', - mm: '%d minutter', - h: 'en time', - hh: '%d timer', - d: 'en dag', - dd: '%d dage', - M: 'en måned', - MM: '%d måneder', - y: 'et år', - yy: '%d år' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - m: ['eine Minute', 'einer Minute'], - h: ['eine Stunde', 'einer Stunde'], - d: ['ein Tag', 'einem Tag'], - dd: [number + ' Tage', number + ' Tagen'], - M: ['ein Monat', 'einem Monat'], - MM: [number + ' Monate', number + ' Monaten'], - y: ['ein Jahr', 'einem Jahr'], - yy: [number + ' Jahre', number + ' Jahren'] - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } - moment.defineLocale('de', { - months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'), - monthsParseExact: !0, - weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), - weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), - weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd, D. MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]' - }, - relativeTime: { - future: 'in %s', - past: 'vor %s', - s: 'ein paar Sekunden', - ss: '%d Sekunden', - m: processRelativeTime, - mm: '%d Minuten', - h: processRelativeTime, - hh: '%d Stunden', - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - m: ['eine Minute', 'einer Minute'], - h: ['eine Stunde', 'einer Stunde'], - d: ['ein Tag', 'einem Tag'], - dd: [number + ' Tage', number + ' Tagen'], - M: ['ein Monat', 'einem Monat'], - MM: [number + ' Monate', number + ' Monaten'], - y: ['ein Jahr', 'einem Jahr'], - yy: [number + ' Jahre', number + ' Jahren'] - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } - moment.defineLocale('de-at', { - months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'), - monthsParseExact: !0, - weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), - weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), - weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd, D. MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]' - }, - relativeTime: { - future: 'in %s', - past: 'vor %s', - s: 'ein paar Sekunden', - ss: '%d Sekunden', - m: processRelativeTime, - mm: '%d Minuten', - h: processRelativeTime, - hh: '%d Stunden', - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - m: ['eine Minute', 'einer Minute'], - h: ['eine Stunde', 'einer Stunde'], - d: ['ein Tag', 'einem Tag'], - dd: [number + ' Tage', number + ' Tagen'], - M: ['ein Monat', 'einem Monat'], - MM: [number + ' Monate', number + ' Monaten'], - y: ['ein Jahr', 'einem Jahr'], - yy: [number + ' Jahre', number + ' Jahren'] - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } - moment.defineLocale('de-ch', { - months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'), - monthsParseExact: !0, - weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), - weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd, D. MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]' - }, - relativeTime: { - future: 'in %s', - past: 'vor %s', - s: 'ein paar Sekunden', - ss: '%d Sekunden', - m: processRelativeTime, - mm: '%d Minuten', - h: processRelativeTime, - hh: '%d Stunden', - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var months = [ - 'ޖެނުއަރީ', - 'ފެބްރުއަރީ', - 'މާރިޗު', - 'އޭޕްރީލު', - 'މޭ', - 'ޖޫން', - 'ޖުލައި', - 'އޯގަސްޓު', - 'ސެޕްޓެމްބަރު', - 'އޮކްޓޯބަރު', - 'ނޮވެމްބަރު', - 'ޑިސެމްބަރު' - ], - weekdays = ['އާދިއްތަ', 'ހޯމަ', 'އަންގާރަ', 'ބުދަ', 'ބުރާސްފަތި', 'ހުކުރު', 'ހޮނިހިރު']; - moment.defineLocale('dv', { - months: months, - monthsShort: months, - weekdays: weekdays, - weekdaysShort: weekdays, - weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'D/M/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - meridiemParse: /މކ|މފ/, - isPM: function(input) { - return 'މފ' === input; - }, - meridiem: function(hour, minute, isLower) { - return hour < 12 ? 'މކ' : 'މފ'; - }, - calendar: { - sameDay: '[މިއަދު] LT', - nextDay: '[މާދަމާ] LT', - nextWeek: 'dddd LT', - lastDay: '[އިއްޔެ] LT', - lastWeek: '[ފާއިތުވި] dddd LT', - sameElse: 'L' - }, - relativeTime: { - future: 'ތެރޭގައި %s', - past: 'ކުރިން %s', - s: 'ސިކުންތުކޮޅެއް', - ss: 'd% ސިކުންތު', - m: 'މިނިޓެއް', - mm: 'މިނިޓު %d', - h: 'ގަޑިއިރެއް', - hh: 'ގަޑިއިރު %d', - d: 'ދުވަހެއް', - dd: 'ދުވަސް %d', - M: 'މަހެއް', - MM: 'މަސް %d', - y: 'އަހަރެއް', - yy: 'އަހަރު %d' - }, - preparse: function(string) { - return string.replace(/،/g, ','); - }, - postformat: function(string) { - return string.replace(/,/g, '،'); - }, - week: { dow: 7, doy: 12 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('el', { - monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split( - '_' - ), - monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split( - '_' - ), - months: function(momentToFormat, format) { - return momentToFormat - ? 'string' == typeof format && /D/.test(format.substring(0, format.indexOf('MMMM'))) - ? this._monthsGenitiveEl[momentToFormat.month()] - : this._monthsNominativeEl[momentToFormat.month()] - : this._monthsNominativeEl; - }, - monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'), - weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'), - weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'), - weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'), - meridiem: function(hours, minutes, isLower) { - return hours > 11 ? (isLower ? 'μμ' : 'ΜΜ') : isLower ? 'πμ' : 'ΠΜ'; - }, - isPM: function(input) { - return 'μ' === (input + '').toLowerCase()[0]; - }, - meridiemParse: /[ΠΜ]\.?Μ?\.?/i, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A' - }, - calendarEl: { - sameDay: '[Σήμερα {}] LT', - nextDay: '[Αύριο {}] LT', - nextWeek: 'dddd [{}] LT', - lastDay: '[Χθες {}] LT', - lastWeek: function() { - switch (this.day()) { - case 6: - return '[το προηγούμενο] dddd [{}] LT'; - default: - return '[την προηγούμενη] dddd [{}] LT'; - } - }, - sameElse: 'L' - }, - calendar: function(key, mom) { - var output = this._calendarEl[key], - hours = mom && mom.hours(); - return ( - (function isFunction(input) { - return ( - input instanceof Function || - '[object Function]' === Object.prototype.toString.call(input) - ); - })(output) && (output = output.apply(mom)), - output.replace('{}', hours % 12 == 1 ? 'στη' : 'στις') - ); - }, - relativeTime: { - future: 'σε %s', - past: '%s πριν', - s: 'λίγα δευτερόλεπτα', - ss: '%d δευτερόλεπτα', - m: 'ένα λεπτό', - mm: '%d λεπτά', - h: 'μία ώρα', - hh: '%d ώρες', - d: 'μία μέρα', - dd: '%d μέρες', - M: 'ένας μήνας', - MM: '%d μήνες', - y: 'ένας χρόνος', - yy: '%d χρόνια' - }, - dayOfMonthOrdinalParse: /\d{1,2}η/, - ordinal: '%dη', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('en-au', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A' - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L' - }, - relativeTime: { - 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', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function(number) { - var b = number % 10; - return ( - number + - (1 == ~~((number % 100) / 10) - ? 'th' - : 1 === b ? 'st' : 2 === b ? 'nd' : 3 === b ? 'rd' : 'th') - ); - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('en-ca', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'YYYY-MM-DD', - LL: 'MMMM D, YYYY', - LLL: 'MMMM D, YYYY h:mm A', - LLLL: 'dddd, MMMM D, YYYY h:mm A' - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L' - }, - relativeTime: { - 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', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function(number) { - var b = number % 10; - return ( - number + - (1 == ~~((number % 100) / 10) - ? 'th' - : 1 === b ? 'st' : 2 === b ? 'nd' : 3 === b ? 'rd' : 'th') - ); - } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('en-gb', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L' - }, - relativeTime: { - 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', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function(number) { - var b = number % 10; - return ( - number + - (1 == ~~((number % 100) / 10) - ? 'th' - : 1 === b ? 'st' : 2 === b ? 'nd' : 3 === b ? 'rd' : 'th') - ); - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('en-ie', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD-MM-YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L' - }, - relativeTime: { - 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', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function(number) { - var b = number % 10; - return ( - number + - (1 == ~~((number % 100) / 10) - ? 'th' - : 1 === b ? 'st' : 2 === b ? 'nd' : 3 === b ? 'rd' : 'th') - ); - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('en-nz', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A' - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L' - }, - relativeTime: { - 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', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function(number) { - var b = number % 10; - return ( - number + - (1 == ~~((number % 100) / 10) - ? 'th' - : 1 === b ? 'st' : 2 === b ? 'nd' : 3 === b ? 'rd' : 'th') - ); - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('eo', { - months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'), - weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'), - weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'), - weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'D[-a de] MMMM, YYYY', - LLL: 'D[-a de] MMMM, YYYY HH:mm', - LLLL: 'dddd, [la] D[-a de] MMMM, YYYY HH:mm' - }, - meridiemParse: /[ap]\.t\.m/i, - isPM: function(input) { - return 'p' === input.charAt(0).toLowerCase(); - }, - meridiem: function(hours, minutes, isLower) { - return hours > 11 ? (isLower ? 'p.t.m.' : 'P.T.M.') : isLower ? 'a.t.m.' : 'A.T.M.'; - }, - calendar: { - sameDay: '[Hodiaŭ je] LT', - nextDay: '[Morgaŭ je] LT', - nextWeek: 'dddd [je] LT', - lastDay: '[Hieraŭ je] LT', - lastWeek: '[pasinta] dddd [je] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'post %s', - past: 'antaŭ %s', - s: 'sekundoj', - ss: '%d sekundoj', - m: 'minuto', - mm: '%d minutoj', - h: 'horo', - hh: '%d horoj', - d: 'tago', - dd: '%d tagoj', - M: 'monato', - MM: '%d monatoj', - y: 'jaro', - yy: '%d jaroj' - }, - dayOfMonthOrdinalParse: /\d{1,2}a/, - ordinal: '%da', - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'), - monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), - monthsParse = [ - /^ene/i, - /^feb/i, - /^mar/i, - /^abr/i, - /^may/i, - /^jun/i, - /^jul/i, - /^ago/i, - /^sep/i, - /^oct/i, - /^nov/i, - /^dic/i - ], - monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; - moment.defineLocale('es', { - months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( - '_' - ), - monthsShort: function(m, format) { - return m - ? /-MMM-/.test(format) ? monthsShort[m.month()] : monthsShortDot[m.month()] - : monthsShortDot; - }, - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, - monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), - weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY H:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm' - }, - calendar: { - sameDay: function() { - return '[hoy a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - nextDay: function() { - return '[mañana a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - nextWeek: function() { - return 'dddd [a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - lastDay: function() { - return '[ayer a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - lastWeek: function() { - return '[el] dddd [pasado a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - sameElse: 'L' - }, - relativeTime: { - future: 'en %s', - past: 'hace %s', - s: 'unos segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'una hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - M: 'un mes', - MM: '%d meses', - y: 'un año', - yy: '%d años' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'), - monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), - monthsParse = [ - /^ene/i, - /^feb/i, - /^mar/i, - /^abr/i, - /^may/i, - /^jun/i, - /^jul/i, - /^ago/i, - /^sep/i, - /^oct/i, - /^nov/i, - /^dic/i - ], - monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; - moment.defineLocale('es-do', { - months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( - '_' - ), - monthsShort: function(m, format) { - return m - ? /-MMM-/.test(format) ? monthsShort[m.month()] : monthsShortDot[m.month()] - : monthsShortDot; - }, - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, - monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), - weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY h:mm A', - LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A' - }, - calendar: { - sameDay: function() { - return '[hoy a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - nextDay: function() { - return '[mañana a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - nextWeek: function() { - return 'dddd [a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - lastDay: function() { - return '[ayer a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - lastWeek: function() { - return '[el] dddd [pasado a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - sameElse: 'L' - }, - relativeTime: { - future: 'en %s', - past: 'hace %s', - s: 'unos segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'una hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - M: 'un mes', - MM: '%d meses', - y: 'un año', - yy: '%d años' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'), - monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'); - moment.defineLocale('es-us', { - months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( - '_' - ), - monthsShort: function(m, format) { - return m - ? /-MMM-/.test(format) ? monthsShort[m.month()] : monthsShortDot[m.month()] - : monthsShortDot; - }, - monthsParseExact: !0, - weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), - weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'MM/DD/YYYY', - LL: 'MMMM [de] D [de] YYYY', - LLL: 'MMMM [de] D [de] YYYY h:mm A', - LLLL: 'dddd, MMMM [de] D [de] YYYY h:mm A' - }, - calendar: { - sameDay: function() { - return '[hoy a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - nextDay: function() { - return '[mañana a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - nextWeek: function() { - return 'dddd [a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - lastDay: function() { - return '[ayer a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - lastWeek: function() { - return '[el] dddd [pasado a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - sameElse: 'L' - }, - relativeTime: { - future: 'en %s', - past: 'hace %s', - s: 'unos segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'una hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - M: 'un mes', - MM: '%d meses', - y: 'un año', - yy: '%d años' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { dow: 0, doy: 6 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'], - ss: [number + 'sekundi', number + 'sekundit'], - m: ['ühe minuti', 'üks minut'], - mm: [number + ' minuti', number + ' minutit'], - h: ['ühe tunni', 'tund aega', 'üks tund'], - hh: [number + ' tunni', number + ' tundi'], - d: ['ühe päeva', 'üks päev'], - M: ['kuu aja', 'kuu aega', 'üks kuu'], - MM: [number + ' kuu', number + ' kuud'], - y: ['ühe aasta', 'aasta', 'üks aasta'], - yy: [number + ' aasta', number + ' aastat'] - }; - return withoutSuffix - ? format[key][2] ? format[key][2] : format[key][1] - : isFuture ? format[key][0] : format[key][1]; - } - moment.defineLocale('et', { - months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split( - '_' - ), - monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'), - weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'), - weekdaysShort: 'P_E_T_K_N_R_L'.split('_'), - weekdaysMin: 'P_E_T_K_N_R_L'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[Täna,] LT', - nextDay: '[Homme,] LT', - nextWeek: '[Järgmine] dddd LT', - lastDay: '[Eile,] LT', - lastWeek: '[Eelmine] dddd LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s pärast', - past: '%s tagasi', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: '%d päeva', - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('eu', { - months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split( - '_' - ), - monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'), - monthsParseExact: !0, - weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'), - weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'), - weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'YYYY[ko] MMMM[ren] D[a]', - LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm', - LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm', - l: 'YYYY-M-D', - ll: 'YYYY[ko] MMM D[a]', - lll: 'YYYY[ko] MMM D[a] HH:mm', - llll: 'ddd, YYYY[ko] MMM D[a] HH:mm' - }, - calendar: { - sameDay: '[gaur] LT[etan]', - nextDay: '[bihar] LT[etan]', - nextWeek: 'dddd LT[etan]', - lastDay: '[atzo] LT[etan]', - lastWeek: '[aurreko] dddd LT[etan]', - sameElse: 'L' - }, - relativeTime: { - future: '%s barru', - past: 'duela %s', - s: 'segundo batzuk', - ss: '%d segundo', - m: 'minutu bat', - mm: '%d minutu', - h: 'ordu bat', - hh: '%d ordu', - d: 'egun bat', - dd: '%d egun', - M: 'hilabete bat', - MM: '%d hilabete', - y: 'urte bat', - yy: '%d urte' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var symbolMap = { - 1: '۱', - 2: '۲', - 3: '۳', - 4: '۴', - 5: '۵', - 6: '۶', - 7: '۷', - 8: '۸', - 9: '۹', - 0: '۰' - }, - numberMap = { - '۱': '1', - '۲': '2', - '۳': '3', - '۴': '4', - '۵': '5', - '۶': '6', - '۷': '7', - '۸': '8', - '۹': '9', - '۰': '0' - }; - moment.defineLocale('fa', { - months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), - monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( - '_' - ), - weekdays: 'یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه'.split('_'), - weekdaysShort: 'یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه'.split('_'), - weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - meridiemParse: /قبل از ظهر|بعد از ظهر/, - isPM: function(input) { - return /بعد از ظهر/.test(input); - }, - meridiem: function(hour, minute, isLower) { - return hour < 12 ? 'قبل از ظهر' : 'بعد از ظهر'; - }, - calendar: { - sameDay: '[امروز ساعت] LT', - nextDay: '[فردا ساعت] LT', - nextWeek: 'dddd [ساعت] LT', - lastDay: '[دیروز ساعت] LT', - lastWeek: 'dddd [پیش] [ساعت] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'در %s', - past: '%s پیش', - s: 'چند ثانیه', - ss: 'ثانیه d%', - m: 'یک دقیقه', - mm: '%d دقیقه', - h: 'یک ساعت', - hh: '%d ساعت', - d: 'یک روز', - dd: '%d روز', - M: 'یک ماه', - MM: '%d ماه', - y: 'یک سال', - yy: '%d سال' - }, - preparse: function(string) { - return string - .replace(/[۰-۹]/g, function(match) { - return numberMap[match]; - }) - .replace(/،/g, ','); - }, - postformat: function(string) { - return string - .replace(/\d/g, function(match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - dayOfMonthOrdinalParse: /\d{1,2}م/, - ordinal: '%dم', - week: { dow: 6, doy: 12 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split( - ' ' - ), - numbersFuture = [ - 'nolla', - 'yhden', - 'kahden', - 'kolmen', - 'neljän', - 'viiden', - 'kuuden', - numbersPast[7], - numbersPast[8], - numbersPast[9] - ]; - function translate(number, withoutSuffix, key, isFuture) { - var result = ''; - switch (key) { - case 's': - return isFuture ? 'muutaman sekunnin' : 'muutama sekunti'; - case 'ss': - return isFuture ? 'sekunnin' : 'sekuntia'; - case 'm': - return isFuture ? 'minuutin' : 'minuutti'; - case 'mm': - result = isFuture ? 'minuutin' : 'minuuttia'; - break; - case 'h': - return isFuture ? 'tunnin' : 'tunti'; - case 'hh': - result = isFuture ? 'tunnin' : 'tuntia'; - break; - case 'd': - return isFuture ? 'päivän' : 'päivä'; - case 'dd': - result = isFuture ? 'päivän' : 'päivää'; - break; - case 'M': - return isFuture ? 'kuukauden' : 'kuukausi'; - case 'MM': - result = isFuture ? 'kuukauden' : 'kuukautta'; - break; - case 'y': - return isFuture ? 'vuoden' : 'vuosi'; - case 'yy': - result = isFuture ? 'vuoden' : 'vuotta'; - } - return (result = - (function verbalNumber(number, isFuture) { - return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number; - })(number, isFuture) + - ' ' + - result); - } - moment.defineLocale('fi', { - months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split( - '_' - ), - monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split( - '_' - ), - weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'), - weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'), - weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD.MM.YYYY', - LL: 'Do MMMM[ta] YYYY', - LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm', - LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm', - l: 'D.M.YYYY', - ll: 'Do MMM YYYY', - lll: 'Do MMM YYYY, [klo] HH.mm', - llll: 'ddd, Do MMM YYYY, [klo] HH.mm' - }, - calendar: { - sameDay: '[tänään] [klo] LT', - nextDay: '[huomenna] [klo] LT', - nextWeek: 'dddd [klo] LT', - lastDay: '[eilen] [klo] LT', - lastWeek: '[viime] dddd[na] [klo] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s päästä', - past: '%s sitten', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('fo', { - months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), - weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split( - '_' - ), - weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'), - weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D. MMMM, YYYY HH:mm' - }, - calendar: { - sameDay: '[Í dag kl.] LT', - nextDay: '[Í morgin kl.] LT', - nextWeek: 'dddd [kl.] LT', - lastDay: '[Í gjár kl.] LT', - lastWeek: '[síðstu] dddd [kl] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'um %s', - past: '%s síðani', - s: 'fá sekund', - ss: '%d sekundir', - m: 'ein minutt', - mm: '%d minuttir', - h: 'ein tími', - hh: '%d tímar', - d: 'ein dagur', - dd: '%d dagar', - M: 'ein mánaði', - MM: '%d mánaðir', - y: 'eitt ár', - yy: '%d ár' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('fr', { - months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( - '_' - ), - monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), - monthsParseExact: !0, - weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), - weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Aujourd’hui à] LT', - nextDay: '[Demain à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[Hier à] LT', - lastWeek: 'dddd [dernier à] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'dans %s', - past: 'il y a %s', - s: 'quelques secondes', - ss: '%d secondes', - m: 'une minute', - mm: '%d minutes', - h: 'une heure', - hh: '%d heures', - d: 'un jour', - dd: '%d jours', - M: 'un mois', - MM: '%d mois', - y: 'un an', - yy: '%d ans' - }, - dayOfMonthOrdinalParse: /\d{1,2}(er|)/, - ordinal: function(number, period) { - switch (period) { - case 'D': - return number + (1 === number ? 'er' : ''); - default: - case 'M': - case 'Q': - case 'DDD': - case 'd': - return number + (1 === number ? 'er' : 'e'); - case 'w': - case 'W': - return number + (1 === number ? 're' : 'e'); - } - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('fr-ca', { - months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( - '_' - ), - monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), - monthsParseExact: !0, - weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), - weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Aujourd’hui à] LT', - nextDay: '[Demain à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[Hier à] LT', - lastWeek: 'dddd [dernier à] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'dans %s', - past: 'il y a %s', - s: 'quelques secondes', - ss: '%d secondes', - m: 'une minute', - mm: '%d minutes', - h: 'une heure', - hh: '%d heures', - d: 'un jour', - dd: '%d jours', - M: 'un mois', - MM: '%d mois', - y: 'un an', - yy: '%d ans' - }, - dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, - ordinal: function(number, period) { - switch (period) { - default: - case 'M': - case 'Q': - case 'D': - case 'DDD': - case 'd': - return number + (1 === number ? 'er' : 'e'); - case 'w': - case 'W': - return number + (1 === number ? 're' : 'e'); - } - } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('fr-ch', { - months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( - '_' - ), - monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), - monthsParseExact: !0, - weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), - weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Aujourd’hui à] LT', - nextDay: '[Demain à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[Hier à] LT', - lastWeek: 'dddd [dernier à] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'dans %s', - past: 'il y a %s', - s: 'quelques secondes', - ss: '%d secondes', - m: 'une minute', - mm: '%d minutes', - h: 'une heure', - hh: '%d heures', - d: 'un jour', - dd: '%d jours', - M: 'un mois', - MM: '%d mois', - y: 'un an', - yy: '%d ans' - }, - dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, - ordinal: function(number, period) { - switch (period) { - default: - case 'M': - case 'Q': - case 'D': - case 'DDD': - case 'd': - return number + (1 === number ? 'er' : 'e'); - case 'w': - case 'W': - return number + (1 === number ? 're' : 'e'); - } - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split( - '_' - ), - monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'); - moment.defineLocale('fy', { - months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split( - '_' - ), - monthsShort: function(m, format) { - return m - ? /-MMM-/.test(format) - ? monthsShortWithoutDots[m.month()] - : monthsShortWithDots[m.month()] - : monthsShortWithDots; - }, - monthsParseExact: !0, - weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'), - weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'), - weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD-MM-YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[hjoed om] LT', - nextDay: '[moarn om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[juster om] LT', - lastWeek: '[ôfrûne] dddd [om] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'oer %s', - past: '%s lyn', - s: 'in pear sekonden', - ss: '%d sekonden', - m: 'ien minút', - mm: '%d minuten', - h: 'ien oere', - hh: '%d oeren', - d: 'ien dei', - dd: '%d dagen', - M: 'ien moanne', - MM: '%d moannen', - y: 'ien jier', - yy: '%d jierren' - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function(number) { - return number + (1 === number || 8 === number || number >= 20 ? 'ste' : 'de'); - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('gd', { - months: [ - 'Am Faoilleach', - 'An Gearran', - 'Am Màrt', - 'An Giblean', - 'An Cèitean', - 'An t-Ògmhios', - 'An t-Iuchar', - 'An Lùnastal', - 'An t-Sultain', - 'An Dàmhair', - 'An t-Samhain', - 'An Dùbhlachd' - ], - monthsShort: [ - 'Faoi', - 'Gear', - 'Màrt', - 'Gibl', - 'Cèit', - 'Ògmh', - 'Iuch', - 'Lùn', - 'Sult', - 'Dàmh', - 'Samh', - 'Dùbh' - ], - monthsParseExact: !0, - weekdays: [ - 'Didòmhnaich', - 'Diluain', - 'Dimàirt', - 'Diciadain', - 'Diardaoin', - 'Dihaoine', - 'Disathairne' - ], - weekdaysShort: ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'], - weekdaysMin: ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'], - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[An-diugh aig] LT', - nextDay: '[A-màireach aig] LT', - nextWeek: 'dddd [aig] LT', - lastDay: '[An-dè aig] LT', - lastWeek: 'dddd [seo chaidh] [aig] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'ann an %s', - past: 'bho chionn %s', - s: 'beagan diogan', - ss: '%d diogan', - m: 'mionaid', - mm: '%d mionaidean', - h: 'uair', - hh: '%d uairean', - d: 'latha', - dd: '%d latha', - M: 'mìos', - MM: '%d mìosan', - y: 'bliadhna', - yy: '%d bliadhna' - }, - dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, - ordinal: function(number) { - return number + (1 === number ? 'd' : number % 10 == 2 ? 'na' : 'mh'); - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('gl', { - months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split( - '_' - ), - monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'), - monthsParseExact: !0, - weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'), - weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY H:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm' - }, - calendar: { - sameDay: function() { - return '[hoxe ' + (1 !== this.hours() ? 'ás' : 'á') + '] LT'; - }, - nextDay: function() { - return '[mañá ' + (1 !== this.hours() ? 'ás' : 'á') + '] LT'; - }, - nextWeek: function() { - return 'dddd [' + (1 !== this.hours() ? 'ás' : 'a') + '] LT'; - }, - lastDay: function() { - return '[onte ' + (1 !== this.hours() ? 'á' : 'a') + '] LT'; - }, - lastWeek: function() { - return '[o] dddd [pasado ' + (1 !== this.hours() ? 'ás' : 'a') + '] LT'; - }, - sameElse: 'L' - }, - relativeTime: { - future: function(str) { - return 0 === str.indexOf('un') ? 'n' + str : 'en ' + str; - }, - past: 'hai %s', - s: 'uns segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'unha hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - M: 'un mes', - MM: '%d meses', - y: 'un ano', - yy: '%d anos' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - s: ['thodde secondanim', 'thodde second'], - ss: [number + ' secondanim', number + ' second'], - m: ['eka mintan', 'ek minute'], - mm: [number + ' mintanim', number + ' mintam'], - h: ['eka horan', 'ek hor'], - hh: [number + ' horanim', number + ' hor'], - d: ['eka disan', 'ek dis'], - dd: [number + ' disanim', number + ' dis'], - M: ['eka mhoinean', 'ek mhoino'], - MM: [number + ' mhoineanim', number + ' mhoine'], - y: ['eka vorsan', 'ek voros'], - yy: [number + ' vorsanim', number + ' vorsam'] - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } - moment.defineLocale('gom-latn', { - months: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split( - '_' - ), - monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'), - monthsParseExact: !0, - weekdays: "Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split('_'), - weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'), - weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'A h:mm [vazta]', - LTS: 'A h:mm:ss [vazta]', - L: 'DD-MM-YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY A h:mm [vazta]', - LLLL: 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]', - llll: 'ddd, D MMM YYYY, A h:mm [vazta]' - }, - calendar: { - sameDay: '[Aiz] LT', - nextDay: '[Faleam] LT', - nextWeek: '[Ieta to] dddd[,] LT', - lastDay: '[Kal] LT', - lastWeek: '[Fatlo] dddd[,] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s', - past: '%s adim', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime - }, - dayOfMonthOrdinalParse: /\d{1,2}(er)/, - ordinal: function(number, period) { - switch (period) { - case 'D': - return number + 'er'; - default: - case 'M': - case 'Q': - case 'DDD': - case 'd': - case 'w': - case 'W': - return number; - } - }, - week: { dow: 1, doy: 4 }, - meridiemParse: /rati|sokalli|donparam|sanje/, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - 'rati' === meridiem - ? hour < 4 ? hour : hour + 12 - : 'sokalli' === meridiem - ? hour - : 'donparam' === meridiem - ? hour > 12 ? hour : hour + 12 - : 'sanje' === meridiem ? hour + 12 : void 0 - ); - }, - meridiem: function(hour, minute, isLower) { - return hour < 4 - ? 'rati' - : hour < 12 ? 'sokalli' : hour < 16 ? 'donparam' : hour < 20 ? 'sanje' : 'rati'; - } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var symbolMap = { - 1: '૧', - 2: '૨', - 3: '૩', - 4: '૪', - 5: '૫', - 6: '૬', - 7: '૭', - 8: '૮', - 9: '૯', - 0: '૦' - }, - numberMap = { - '૧': '1', - '૨': '2', - '૩': '3', - '૪': '4', - '૫': '5', - '૬': '6', - '૭': '7', - '૮': '8', - '૯': '9', - '૦': '0' - }; - moment.defineLocale('gu', { - months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split( - '_' - ), - monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'), - weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'), - weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'), - longDateFormat: { - LT: 'A h:mm વાગ્યે', - LTS: 'A h:mm:ss વાગ્યે', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm વાગ્યે', - LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે' - }, - calendar: { - sameDay: '[આજ] LT', - nextDay: '[કાલે] LT', - nextWeek: 'dddd, LT', - lastDay: '[ગઇકાલે] LT', - lastWeek: '[પાછલા] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s મા', - past: '%s પેહલા', - s: 'અમુક પળો', - ss: '%d સેકંડ', - m: 'એક મિનિટ', - mm: '%d મિનિટ', - h: 'એક કલાક', - hh: '%d કલાક', - d: 'એક દિવસ', - dd: '%d દિવસ', - M: 'એક મહિનો', - MM: '%d મહિનો', - y: 'એક વર્ષ', - yy: '%d વર્ષ' - }, - preparse: function(string) { - return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function(match) { - return numberMap[match]; - }); - }, - postformat: function(string) { - return string.replace(/\d/g, function(match) { - return symbolMap[match]; - }); - }, - meridiemParse: /રાત|બપોર|સવાર|સાંજ/, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - 'રાત' === meridiem - ? hour < 4 ? hour : hour + 12 - : 'સવાર' === meridiem - ? hour - : 'બપોર' === meridiem - ? hour >= 10 ? hour : hour + 12 - : 'સાંજ' === meridiem ? hour + 12 : void 0 - ); - }, - meridiem: function(hour, minute, isLower) { - return hour < 4 - ? 'રાત' - : hour < 10 ? 'સવાર' : hour < 17 ? 'બપોર' : hour < 20 ? 'સાંજ' : 'રાત'; - }, - week: { dow: 0, doy: 6 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('he', { - months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split( - '_' - ), - monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'), - weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'), - weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'), - weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [ב]MMMM YYYY', - LLL: 'D [ב]MMMM YYYY HH:mm', - LLLL: 'dddd, D [ב]MMMM YYYY HH:mm', - l: 'D/M/YYYY', - ll: 'D MMM YYYY', - lll: 'D MMM YYYY HH:mm', - llll: 'ddd, D MMM YYYY HH:mm' - }, - calendar: { - sameDay: '[היום ב־]LT', - nextDay: '[מחר ב־]LT', - nextWeek: 'dddd [בשעה] LT', - lastDay: '[אתמול ב־]LT', - lastWeek: '[ביום] dddd [האחרון בשעה] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'בעוד %s', - past: 'לפני %s', - s: 'מספר שניות', - ss: '%d שניות', - m: 'דקה', - mm: '%d דקות', - h: 'שעה', - hh: function(number) { - return 2 === number ? 'שעתיים' : number + ' שעות'; - }, - d: 'יום', - dd: function(number) { - return 2 === number ? 'יומיים' : number + ' ימים'; - }, - M: 'חודש', - MM: function(number) { - return 2 === number ? 'חודשיים' : number + ' חודשים'; - }, - y: 'שנה', - yy: function(number) { - return 2 === number - ? 'שנתיים' - : number % 10 == 0 && 10 !== number ? number + ' שנה' : number + ' שנים'; - } - }, - meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i, - isPM: function(input) { - return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input); - }, - meridiem: function(hour, minute, isLower) { - return hour < 5 - ? 'לפנות בוקר' - : hour < 10 - ? 'בבוקר' - : hour < 12 - ? isLower ? 'לפנה"צ' : 'לפני הצהריים' - : hour < 18 ? (isLower ? 'אחה"צ' : 'אחרי הצהריים') : 'בערב'; - } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var symbolMap = { - 1: '१', - 2: '२', - 3: '३', - 4: '४', - 5: '५', - 6: '६', - 7: '७', - 8: '८', - 9: '९', - 0: '०' - }, - numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0' - }; - moment.defineLocale('hi', { - months: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split( - '_' - ), - monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'), - monthsParseExact: !0, - weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), - weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'), - weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), - longDateFormat: { - LT: 'A h:mm बजे', - LTS: 'A h:mm:ss बजे', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm बजे', - LLLL: 'dddd, D MMMM YYYY, A h:mm बजे' - }, - calendar: { - sameDay: '[आज] LT', - nextDay: '[कल] LT', - nextWeek: 'dddd, LT', - lastDay: '[कल] LT', - lastWeek: '[पिछले] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s में', - past: '%s पहले', - s: 'कुछ ही क्षण', - ss: '%d सेकंड', - m: 'एक मिनट', - mm: '%d मिनट', - h: 'एक घंटा', - hh: '%d घंटे', - d: 'एक दिन', - dd: '%d दिन', - M: 'एक महीने', - MM: '%d महीने', - y: 'एक वर्ष', - yy: '%d वर्ष' - }, - preparse: function(string) { - return string.replace(/[१२३४५६७८९०]/g, function(match) { - return numberMap[match]; - }); - }, - postformat: function(string) { - return string.replace(/\d/g, function(match) { - return symbolMap[match]; - }); - }, - meridiemParse: /रात|सुबह|दोपहर|शाम/, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - 'रात' === meridiem - ? hour < 4 ? hour : hour + 12 - : 'सुबह' === meridiem - ? hour - : 'दोपहर' === meridiem - ? hour >= 10 ? hour : hour + 12 - : 'शाम' === meridiem ? hour + 12 : void 0 - ); - }, - meridiem: function(hour, minute, isLower) { - return hour < 4 - ? 'रात' - : hour < 10 ? 'सुबह' : hour < 17 ? 'दोपहर' : hour < 20 ? 'शाम' : 'रात'; - }, - week: { dow: 0, doy: 6 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - function translate(number, withoutSuffix, key) { - var result = number + ' '; - switch (key) { - case 'ss': - return (result += - 1 === number - ? 'sekunda' - : 2 === number || 3 === number || 4 === number ? 'sekunde' : 'sekundi'); - case 'm': - return withoutSuffix ? 'jedna minuta' : 'jedne minute'; - case 'mm': - return (result += - 1 === number - ? 'minuta' - : 2 === number || 3 === number || 4 === number ? 'minute' : 'minuta'); - case 'h': - return withoutSuffix ? 'jedan sat' : 'jednog sata'; - case 'hh': - return (result += - 1 === number - ? 'sat' - : 2 === number || 3 === number || 4 === number ? 'sata' : 'sati'); - case 'dd': - return (result += 1 === number ? 'dan' : 'dana'); - case 'MM': - return (result += - 1 === number - ? 'mjesec' - : 2 === number || 3 === number || 4 === number ? 'mjeseca' : 'mjeseci'); - case 'yy': - return (result += - 1 === number - ? 'godina' - : 2 === number || 3 === number || 4 === number ? 'godine' : 'godina'); - } - } - moment.defineLocale('hr', { - months: { - format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split( - '_' - ), - standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split( - '_' - ) - }, - monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'), - monthsParseExact: !0, - weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'), - weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sutra u] LT', - nextWeek: function() { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay: '[jučer u] LT', - lastWeek: function() { - switch (this.day()) { - case 0: - case 3: - return '[prošlu] dddd [u] LT'; - case 6: - return '[prošle] [subote] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prošli] dddd [u] LT'; - } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'za %s', - past: 'prije %s', - s: 'par sekundi', - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: 'dan', - dd: translate, - M: 'mjesec', - MM: translate, - y: 'godinu', - yy: translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' '); - function translate(number, withoutSuffix, key, isFuture) { - var num = number; - switch (key) { - case 's': - return isFuture || withoutSuffix ? 'néhány másodperc' : 'néhány másodperce'; - case 'ss': - return num + (isFuture || withoutSuffix) ? ' másodperc' : ' másodperce'; - case 'm': - return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce'); - case 'mm': - return num + (isFuture || withoutSuffix ? ' perc' : ' perce'); - case 'h': - return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája'); - case 'hh': - return num + (isFuture || withoutSuffix ? ' óra' : ' órája'); - case 'd': - return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja'); - case 'dd': - return num + (isFuture || withoutSuffix ? ' nap' : ' napja'); - case 'M': - return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); - case 'MM': - return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); - case 'y': - return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve'); - case 'yy': - return num + (isFuture || withoutSuffix ? ' év' : ' éve'); - } - return ''; - } - function week(isFuture) { - return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]'; - } - moment.defineLocale('hu', { - months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split( - '_' - ), - monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'), - weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'), - weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), - weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'YYYY.MM.DD.', - LL: 'YYYY. MMMM D.', - LLL: 'YYYY. MMMM D. H:mm', - LLLL: 'YYYY. MMMM D., dddd H:mm' - }, - meridiemParse: /de|du/i, - isPM: function(input) { - return 'u' === input.charAt(1).toLowerCase(); - }, - meridiem: function(hours, minutes, isLower) { - return hours < 12 ? (!0 === isLower ? 'de' : 'DE') : !0 === isLower ? 'du' : 'DU'; - }, - calendar: { - sameDay: '[ma] LT[-kor]', - nextDay: '[holnap] LT[-kor]', - nextWeek: function() { - return week.call(this, !0); - }, - lastDay: '[tegnap] LT[-kor]', - lastWeek: function() { - return week.call(this, !1); - }, - sameElse: 'L' - }, - relativeTime: { - future: '%s múlva', - past: '%s', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('hy-am', { - months: { - format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split( - '_' - ), - standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split( - '_' - ) - }, - monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'), - weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'), - weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), - weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY թ.', - LLL: 'D MMMM YYYY թ., HH:mm', - LLLL: 'dddd, D MMMM YYYY թ., HH:mm' - }, - calendar: { - sameDay: '[այսօր] LT', - nextDay: '[վաղը] LT', - lastDay: '[երեկ] LT', - nextWeek: function() { - return 'dddd [օրը ժամը] LT'; - }, - lastWeek: function() { - return '[անցած] dddd [օրը ժամը] LT'; - }, - sameElse: 'L' - }, - relativeTime: { - future: '%s հետո', - past: '%s առաջ', - s: 'մի քանի վայրկյան', - ss: '%d վայրկյան', - m: 'րոպե', - mm: '%d րոպե', - h: 'ժամ', - hh: '%d ժամ', - d: 'օր', - dd: '%d օր', - M: 'ամիս', - MM: '%d ամիս', - y: 'տարի', - yy: '%d տարի' - }, - meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/, - isPM: function(input) { - return /^(ցերեկվա|երեկոյան)$/.test(input); - }, - meridiem: function(hour) { - return hour < 4 ? 'գիշերվա' : hour < 12 ? 'առավոտվա' : hour < 17 ? 'ցերեկվա' : 'երեկոյան'; - }, - dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/, - ordinal: function(number, period) { - switch (period) { - case 'DDD': - case 'w': - case 'W': - case 'DDDo': - return 1 === number ? number + '-ին' : number + '-րդ'; - default: - return number; - } - }, - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('id', { - months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'), - weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), - weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), - weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm' - }, - meridiemParse: /pagi|siang|sore|malam/, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - 'pagi' === meridiem - ? hour - : 'siang' === meridiem - ? hour >= 11 ? hour : hour + 12 - : 'sore' === meridiem || 'malam' === meridiem ? hour + 12 : void 0 - ); - }, - meridiem: function(hours, minutes, isLower) { - return hours < 11 ? 'pagi' : hours < 15 ? 'siang' : hours < 19 ? 'sore' : 'malam'; - }, - calendar: { - sameDay: '[Hari ini pukul] LT', - nextDay: '[Besok pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kemarin pukul] LT', - lastWeek: 'dddd [lalu pukul] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'dalam %s', - past: '%s yang lalu', - s: 'beberapa detik', - ss: '%d detik', - m: 'semenit', - mm: '%d menit', - h: 'sejam', - hh: '%d jam', - d: 'sehari', - dd: '%d hari', - M: 'sebulan', - MM: '%d bulan', - y: 'setahun', - yy: '%d tahun' - }, - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - function plural(n) { - return n % 100 == 11 || n % 10 != 1; - } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': - return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum'; - case 'ss': - return plural(number) - ? result + (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum') - : result + 'sekúnda'; - case 'm': - return withoutSuffix ? 'mínúta' : 'mínútu'; - case 'mm': - return plural(number) - ? result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum') - : withoutSuffix ? result + 'mínúta' : result + 'mínútu'; - case 'hh': - return plural(number) - ? result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum') - : result + 'klukkustund'; - case 'd': - return withoutSuffix ? 'dagur' : isFuture ? 'dag' : 'degi'; - case 'dd': - return plural(number) - ? withoutSuffix ? result + 'dagar' : result + (isFuture ? 'daga' : 'dögum') - : withoutSuffix ? result + 'dagur' : result + (isFuture ? 'dag' : 'degi'); - case 'M': - return withoutSuffix ? 'mánuður' : isFuture ? 'mánuð' : 'mánuði'; - case 'MM': - return plural(number) - ? withoutSuffix ? result + 'mánuðir' : result + (isFuture ? 'mánuði' : 'mánuðum') - : withoutSuffix ? result + 'mánuður' : result + (isFuture ? 'mánuð' : 'mánuði'); - case 'y': - return withoutSuffix || isFuture ? 'ár' : 'ári'; - case 'yy': - return plural(number) - ? result + (withoutSuffix || isFuture ? 'ár' : 'árum') - : result + (withoutSuffix || isFuture ? 'ár' : 'ári'); - } - } - moment.defineLocale('is', { - months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'), - weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split( - '_' - ), - weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'), - weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY [kl.] H:mm', - LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm' - }, - calendar: { - sameDay: '[í dag kl.] LT', - nextDay: '[á morgun kl.] LT', - nextWeek: 'dddd [kl.] LT', - lastDay: '[í gær kl.] LT', - lastWeek: '[síðasta] dddd [kl.] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'eftir %s', - past: 'fyrir %s síðan', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: 'klukkustund', - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('it', { - months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( - '_' - ), - monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), - weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'), - weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), - weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Oggi alle] LT', - nextDay: '[Domani alle] LT', - nextWeek: 'dddd [alle] LT', - lastDay: '[Ieri alle] LT', - lastWeek: function() { - switch (this.day()) { - case 0: - return '[la scorsa] dddd [alle] LT'; - default: - return '[lo scorso] dddd [alle] LT'; - } - }, - sameElse: 'L' - }, - relativeTime: { - future: function(s) { - return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s; - }, - past: '%s fa', - s: 'alcuni secondi', - ss: '%d secondi', - m: 'un minuto', - mm: '%d minuti', - h: "un'ora", - hh: '%d ore', - d: 'un giorno', - dd: '%d giorni', - M: 'un mese', - MM: '%d mesi', - y: 'un anno', - yy: '%d anni' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('ja', { - months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'), - weekdaysShort: '日_月_火_水_木_金_土'.split('_'), - weekdaysMin: '日_月_火_水_木_金_土'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日 HH:mm', - LLLL: 'YYYY年M月D日 HH:mm dddd', - l: 'YYYY/MM/DD', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日 HH:mm dddd' - }, - meridiemParse: /午前|午後/i, - isPM: function(input) { - return '午後' === input; - }, - meridiem: function(hour, minute, isLower) { - return hour < 12 ? '午前' : '午後'; - }, - calendar: { - sameDay: '[今日] LT', - nextDay: '[明日] LT', - nextWeek: '[来週]dddd LT', - lastDay: '[昨日] LT', - lastWeek: '[前週]dddd LT', - sameElse: 'L' - }, - dayOfMonthOrdinalParse: /\d{1,2}日/, - ordinal: function(number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - default: - return number; - } - }, - relativeTime: { - future: '%s後', - past: '%s前', - s: '数秒', - ss: '%d秒', - m: '1分', - mm: '%d分', - h: '1時間', - hh: '%d時間', - d: '1日', - dd: '%d日', - M: '1ヶ月', - MM: '%dヶ月', - y: '1年', - yy: '%d年' - } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('jv', { - months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'), - weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'), - weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'), - weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm' - }, - meridiemParse: /enjing|siyang|sonten|ndalu/, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - 'enjing' === meridiem - ? hour - : 'siyang' === meridiem - ? hour >= 11 ? hour : hour + 12 - : 'sonten' === meridiem || 'ndalu' === meridiem ? hour + 12 : void 0 - ); - }, - meridiem: function(hours, minutes, isLower) { - return hours < 11 ? 'enjing' : hours < 15 ? 'siyang' : hours < 19 ? 'sonten' : 'ndalu'; - }, - calendar: { - sameDay: '[Dinten puniko pukul] LT', - nextDay: '[Mbenjang pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kala wingi pukul] LT', - lastWeek: 'dddd [kepengker pukul] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'wonten ing %s', - past: '%s ingkang kepengker', - s: 'sawetawis detik', - ss: '%d detik', - m: 'setunggal menit', - mm: '%d menit', - h: 'setunggal jam', - hh: '%d jam', - d: 'sedinten', - dd: '%d dinten', - M: 'sewulan', - MM: '%d wulan', - y: 'setaun', - yy: '%d taun' - }, - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('ka', { - months: { - standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split( - '_' - ), - format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split( - '_' - ) - }, - monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'), - weekdays: { - standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'), - format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'), - isFormat: /(წინა|შემდეგ)/ - }, - weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'), - weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A' - }, - calendar: { - sameDay: '[დღეს] LT[-ზე]', - nextDay: '[ხვალ] LT[-ზე]', - lastDay: '[გუშინ] LT[-ზე]', - nextWeek: '[შემდეგ] dddd LT[-ზე]', - lastWeek: '[წინა] dddd LT-ზე', - sameElse: 'L' - }, - relativeTime: { - future: function(s) { - return /(წამი|წუთი|საათი|წელი)/.test(s) ? s.replace(/ი$/, 'ში') : s + 'ში'; - }, - past: function(s) { - return /(წამი|წუთი|საათი|დღე|თვე)/.test(s) - ? s.replace(/(ი|ე)$/, 'ის უკან') - : /წელი/.test(s) ? s.replace(/წელი$/, 'წლის უკან') : void 0; - }, - s: 'რამდენიმე წამი', - ss: '%d წამი', - m: 'წუთი', - mm: '%d წუთი', - h: 'საათი', - hh: '%d საათი', - d: 'დღე', - dd: '%d დღე', - M: 'თვე', - MM: '%d თვე', - y: 'წელი', - yy: '%d წელი' - }, - dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/, - ordinal: function(number) { - return 0 === number - ? number - : 1 === number - ? number + '-ლი' - : number < 20 || (number <= 100 && number % 20 == 0) || number % 100 == 0 - ? 'მე-' + number - : number + '-ე'; - }, - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var suffixes = { - 0: '-ші', - 1: '-ші', - 2: '-ші', - 3: '-ші', - 4: '-ші', - 5: '-ші', - 6: '-шы', - 7: '-ші', - 8: '-ші', - 9: '-шы', - 10: '-шы', - 20: '-шы', - 30: '-шы', - 40: '-шы', - 50: '-ші', - 60: '-шы', - 70: '-ші', - 80: '-ші', - 90: '-шы', - 100: '-ші' - }; - moment.defineLocale('kk', { - months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split( - '_' - ), - monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'), - weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'), - weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'), - weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Бүгін сағат] LT', - nextDay: '[Ертең сағат] LT', - nextWeek: 'dddd [сағат] LT', - lastDay: '[Кеше сағат] LT', - lastWeek: '[Өткен аптаның] dddd [сағат] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s ішінде', - past: '%s бұрын', - s: 'бірнеше секунд', - ss: '%d секунд', - m: 'бір минут', - mm: '%d минут', - h: 'бір сағат', - hh: '%d сағат', - d: 'бір күн', - dd: '%d күн', - M: 'бір ай', - MM: '%d ай', - y: 'бір жыл', - yy: '%d жыл' - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/, - ordinal: function(number) { - return ( - number + - (suffixes[number] || suffixes[number % 10] || suffixes[number >= 100 ? 100 : null]) - ); - }, - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('km', { - months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'), - monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( - '_' - ), - weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), - weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), - weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[ថ្ងៃនេះ ម៉ោង] LT', - nextDay: '[ស្អែក ម៉ោង] LT', - nextWeek: 'dddd [ម៉ោង] LT', - lastDay: '[ម្សិលមិញ ម៉ោង] LT', - lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%sទៀត', - past: '%sមុន', - s: 'ប៉ុន្មានវិនាទី', - ss: '%d វិនាទី', - m: 'មួយនាទី', - mm: '%d នាទី', - h: 'មួយម៉ោង', - hh: '%d ម៉ោង', - d: 'មួយថ្ងៃ', - dd: '%d ថ្ងៃ', - M: 'មួយខែ', - MM: '%d ខែ', - y: 'មួយឆ្នាំ', - yy: '%d ឆ្នាំ' - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var symbolMap = { - 1: '೧', - 2: '೨', - 3: '೩', - 4: '೪', - 5: '೫', - 6: '೬', - 7: '೭', - 8: '೮', - 9: '೯', - 0: '೦' - }, - numberMap = { - '೧': '1', - '೨': '2', - '೩': '3', - '೪': '4', - '೫': '5', - '೬': '6', - '೭': '7', - '೮': '8', - '೯': '9', - '೦': '0' - }; - moment.defineLocale('kn', { - months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split( - '_' - ), - monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬ_ಅಕ್ಟೋಬ_ನವೆಂಬ_ಡಿಸೆಂಬ'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'), - weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'), - weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm', - LLLL: 'dddd, D MMMM YYYY, A h:mm' - }, - calendar: { - sameDay: '[ಇಂದು] LT', - nextDay: '[ನಾಳೆ] LT', - nextWeek: 'dddd, LT', - lastDay: '[ನಿನ್ನೆ] LT', - lastWeek: '[ಕೊನೆಯ] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s ನಂತರ', - past: '%s ಹಿಂದೆ', - s: 'ಕೆಲವು ಕ್ಷಣಗಳು', - ss: '%d ಸೆಕೆಂಡುಗಳು', - m: 'ಒಂದು ನಿಮಿಷ', - mm: '%d ನಿಮಿಷ', - h: 'ಒಂದು ಗಂಟೆ', - hh: '%d ಗಂಟೆ', - d: 'ಒಂದು ದಿನ', - dd: '%d ದಿನ', - M: 'ಒಂದು ತಿಂಗಳು', - MM: '%d ತಿಂಗಳು', - y: 'ಒಂದು ವರ್ಷ', - yy: '%d ವರ್ಷ' - }, - preparse: function(string) { - return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function(match) { - return numberMap[match]; - }); - }, - postformat: function(string) { - return string.replace(/\d/g, function(match) { - return symbolMap[match]; - }); - }, - meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - 'ರಾತ್ರಿ' === meridiem - ? hour < 4 ? hour : hour + 12 - : 'ಬೆಳಿಗ್ಗೆ' === meridiem - ? hour - : 'ಮಧ್ಯಾಹ್ನ' === meridiem - ? hour >= 10 ? hour : hour + 12 - : 'ಸಂಜೆ' === meridiem ? hour + 12 : void 0 - ); - }, - meridiem: function(hour, minute, isLower) { - return hour < 4 - ? 'ರಾತ್ರಿ' - : hour < 10 ? 'ಬೆಳಿಗ್ಗೆ' : hour < 17 ? 'ಮಧ್ಯಾಹ್ನ' : hour < 20 ? 'ಸಂಜೆ' : 'ರಾತ್ರಿ'; - }, - dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/, - ordinal: function(number) { - return number + 'ನೇ'; - }, - week: { dow: 0, doy: 6 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('ko', { - months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), - monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), - weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'), - weekdaysShort: '일_월_화_수_목_금_토'.split('_'), - weekdaysMin: '일_월_화_수_목_금_토'.split('_'), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'YYYY.MM.DD', - LL: 'YYYY년 MMMM D일', - LLL: 'YYYY년 MMMM D일 A h:mm', - LLLL: 'YYYY년 MMMM D일 dddd A h:mm', - l: 'YYYY.MM.DD', - ll: 'YYYY년 MMMM D일', - lll: 'YYYY년 MMMM D일 A h:mm', - llll: 'YYYY년 MMMM D일 dddd A h:mm' - }, - calendar: { - sameDay: '오늘 LT', - nextDay: '내일 LT', - nextWeek: 'dddd LT', - lastDay: '어제 LT', - lastWeek: '지난주 dddd LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s 후', - past: '%s 전', - s: '몇 초', - ss: '%d초', - m: '1분', - mm: '%d분', - h: '한 시간', - hh: '%d시간', - d: '하루', - dd: '%d일', - M: '한 달', - MM: '%d달', - y: '일 년', - yy: '%d년' - }, - dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/, - ordinal: function(number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '일'; - case 'M': - return number + '월'; - case 'w': - case 'W': - return number + '주'; - default: - return number; - } - }, - meridiemParse: /오전|오후/, - isPM: function(token) { - return '오후' === token; - }, - meridiem: function(hour, minute, isUpper) { - return hour < 12 ? '오전' : '오후'; - } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var suffixes = { - 0: '-чү', - 1: '-чи', - 2: '-чи', - 3: '-чү', - 4: '-чү', - 5: '-чи', - 6: '-чы', - 7: '-чи', - 8: '-чи', - 9: '-чу', - 10: '-чу', - 20: '-чы', - 30: '-чу', - 40: '-чы', - 50: '-чү', - 60: '-чы', - 70: '-чи', - 80: '-чи', - 90: '-чу', - 100: '-чү' - }; - moment.defineLocale('ky', { - months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( - '_' - ), - monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'), - weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'), - weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'), - weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Бүгүн саат] LT', - nextDay: '[Эртең саат] LT', - nextWeek: 'dddd [саат] LT', - lastDay: '[Кече саат] LT', - lastWeek: '[Өткен аптанын] dddd [күнү] [саат] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s ичинде', - past: '%s мурун', - s: 'бирнече секунд', - ss: '%d секунд', - m: 'бир мүнөт', - mm: '%d мүнөт', - h: 'бир саат', - hh: '%d саат', - d: 'бир күн', - dd: '%d күн', - M: 'бир ай', - MM: '%d ай', - y: 'бир жыл', - yy: '%d жыл' - }, - dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/, - ordinal: function(number) { - return ( - number + - (suffixes[number] || suffixes[number % 10] || suffixes[number >= 100 ? 100 : null]) - ); - }, - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - m: ['eng Minutt', 'enger Minutt'], - h: ['eng Stonn', 'enger Stonn'], - d: ['een Dag', 'engem Dag'], - M: ['ee Mount', 'engem Mount'], - y: ['ee Joer', 'engem Joer'] - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } - function eifelerRegelAppliesToNumber(number) { - if (((number = parseInt(number, 10)), isNaN(number))) return !1; - if (number < 0) return !0; - if (number < 10) return 4 <= number && number <= 7; - if (number < 100) { - var lastDigit = number % 10; - return eifelerRegelAppliesToNumber(0 === lastDigit ? number / 10 : lastDigit); - } - if (number < 1e4) { - for (; number >= 10; ) number /= 10; - return eifelerRegelAppliesToNumber(number); - } - return eifelerRegelAppliesToNumber((number /= 1e3)); - } - moment.defineLocale('lb', { - months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'), - monthsParseExact: !0, - weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'), - weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'), - weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm [Auer]', - LTS: 'H:mm:ss [Auer]', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm [Auer]', - LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]' - }, - calendar: { - sameDay: '[Haut um] LT', - sameElse: 'L', - nextDay: '[Muer um] LT', - nextWeek: 'dddd [um] LT', - lastDay: '[Gëschter um] LT', - lastWeek: function() { - switch (this.day()) { - case 2: - case 4: - return '[Leschten] dddd [um] LT'; - default: - return '[Leschte] dddd [um] LT'; - } - } - }, - relativeTime: { - future: function processFutureTime(string) { - return eifelerRegelAppliesToNumber(string.substr(0, string.indexOf(' '))) - ? 'a ' + string - : 'an ' + string; - }, - past: function processPastTime(string) { - return eifelerRegelAppliesToNumber(string.substr(0, string.indexOf(' '))) - ? 'viru ' + string - : 'virun ' + string; - }, - s: 'e puer Sekonnen', - ss: '%d Sekonnen', - m: processRelativeTime, - mm: '%d Minutten', - h: processRelativeTime, - hh: '%d Stonnen', - d: processRelativeTime, - dd: '%d Deeg', - M: processRelativeTime, - MM: '%d Méint', - y: processRelativeTime, - yy: '%d Joer' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('lo', { - months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( - '_' - ), - monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( - '_' - ), - weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), - weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), - weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'ວັນdddd D MMMM YYYY HH:mm' - }, - meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/, - isPM: function(input) { - return 'ຕອນແລງ' === input; - }, - meridiem: function(hour, minute, isLower) { - return hour < 12 ? 'ຕອນເຊົ້າ' : 'ຕອນແລງ'; - }, - calendar: { - sameDay: '[ມື້ນີ້ເວລາ] LT', - nextDay: '[ມື້ອື່ນເວລາ] LT', - nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT', - lastDay: '[ມື້ວານນີ້ເວລາ] LT', - lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'ອີກ %s', - past: '%sຜ່ານມາ', - s: 'ບໍ່ເທົ່າໃດວິນາທີ', - ss: '%d ວິນາທີ', - m: '1 ນາທີ', - mm: '%d ນາທີ', - h: '1 ຊົ່ວໂມງ', - hh: '%d ຊົ່ວໂມງ', - d: '1 ມື້', - dd: '%d ມື້', - M: '1 ເດືອນ', - MM: '%d ເດືອນ', - y: '1 ປີ', - yy: '%d ປີ' - }, - dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/, - ordinal: function(number) { - return 'ທີ່' + number; - } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var units = { - ss: 'sekundė_sekundžių_sekundes', - m: 'minutė_minutės_minutę', - mm: 'minutės_minučių_minutes', - h: 'valanda_valandos_valandą', - hh: 'valandos_valandų_valandas', - d: 'diena_dienos_dieną', - dd: 'dienos_dienų_dienas', - M: 'mėnuo_mėnesio_mėnesį', - MM: 'mėnesiai_mėnesių_mėnesius', - y: 'metai_metų_metus', - yy: 'metai_metų_metus' - }; - function translateSingular(number, withoutSuffix, key, isFuture) { - return withoutSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2]; - } - function special(number) { - return number % 10 == 0 || (number > 10 && number < 20); - } - function forms(key) { - return units[key].split('_'); - } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - return 1 === number - ? result + translateSingular(0, withoutSuffix, key[0], isFuture) - : withoutSuffix - ? result + (special(number) ? forms(key)[1] : forms(key)[0]) - : isFuture - ? result + forms(key)[1] - : result + (special(number) ? forms(key)[1] : forms(key)[2]); - } - moment.defineLocale('lt', { - months: { - format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split( - '_' - ), - standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split( - '_' - ), - isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/ - }, - monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'), - weekdays: { - format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split( - '_' - ), - standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split( - '_' - ), - isFormat: /dddd HH:mm/ - }, - weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'), - weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'YYYY [m.] MMMM D [d.]', - LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', - LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]', - l: 'YYYY-MM-DD', - ll: 'YYYY [m.] MMMM D [d.]', - lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', - llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]' - }, - calendar: { - sameDay: '[Šiandien] LT', - nextDay: '[Rytoj] LT', - nextWeek: 'dddd LT', - lastDay: '[Vakar] LT', - lastWeek: '[Praėjusį] dddd LT', - sameElse: 'L' - }, - relativeTime: { - future: 'po %s', - past: 'prieš %s', - s: function translateSeconds(number, withoutSuffix, key, isFuture) { - return withoutSuffix - ? 'kelios sekundės' - : isFuture ? 'kelių sekundžių' : 'kelias sekundes'; - }, - ss: translate, - m: translateSingular, - mm: translate, - h: translateSingular, - hh: translate, - d: translateSingular, - dd: translate, - M: translateSingular, - MM: translate, - y: translateSingular, - yy: translate - }, - dayOfMonthOrdinalParse: /\d{1,2}-oji/, - ordinal: function(number) { - return number + '-oji'; - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var units = { - ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'), - m: 'minūtes_minūtēm_minūte_minūtes'.split('_'), - mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'), - h: 'stundas_stundām_stunda_stundas'.split('_'), - hh: 'stundas_stundām_stunda_stundas'.split('_'), - d: 'dienas_dienām_diena_dienas'.split('_'), - dd: 'dienas_dienām_diena_dienas'.split('_'), - M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), - MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), - y: 'gada_gadiem_gads_gadi'.split('_'), - yy: 'gada_gadiem_gads_gadi'.split('_') - }; - function format(forms, number, withoutSuffix) { - return withoutSuffix - ? number % 10 == 1 && number % 100 != 11 ? forms[2] : forms[3] - : number % 10 == 1 && number % 100 != 11 ? forms[0] : forms[1]; - } - function relativeTimeWithPlural(number, withoutSuffix, key) { - return number + ' ' + format(units[key], number, withoutSuffix); - } - function relativeTimeWithSingular(number, withoutSuffix, key) { - return format(units[key], number, withoutSuffix); - } - moment.defineLocale('lv', { - months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'), - weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split( - '_' - ), - weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'), - weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY.', - LL: 'YYYY. [gada] D. MMMM', - LLL: 'YYYY. [gada] D. MMMM, HH:mm', - LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm' - }, - calendar: { - sameDay: '[Šodien pulksten] LT', - nextDay: '[Rīt pulksten] LT', - nextWeek: 'dddd [pulksten] LT', - lastDay: '[Vakar pulksten] LT', - lastWeek: '[Pagājušā] dddd [pulksten] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'pēc %s', - past: 'pirms %s', - s: function relativeSeconds(number, withoutSuffix) { - return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm'; - }, - ss: relativeTimeWithPlural, - m: relativeTimeWithSingular, - mm: relativeTimeWithPlural, - h: relativeTimeWithSingular, - hh: relativeTimeWithPlural, - d: relativeTimeWithSingular, - dd: relativeTimeWithPlural, - M: relativeTimeWithSingular, - MM: relativeTimeWithPlural, - y: relativeTimeWithSingular, - yy: relativeTimeWithPlural - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var translator = { - words: { - ss: ['sekund', 'sekunda', 'sekundi'], - m: ['jedan minut', 'jednog minuta'], - mm: ['minut', 'minuta', 'minuta'], - h: ['jedan sat', 'jednog sata'], - hh: ['sat', 'sata', 'sati'], - dd: ['dan', 'dana', 'dana'], - MM: ['mjesec', 'mjeseca', 'mjeseci'], - yy: ['godina', 'godine', 'godina'] - }, - correctGrammaticalCase: function(number, wordKey) { - return 1 === number ? wordKey[0] : number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]; - }, - translate: function(number, withoutSuffix, key) { - var wordKey = translator.words[key]; - return 1 === key.length - ? withoutSuffix ? wordKey[0] : wordKey[1] - : number + ' ' + translator.correctGrammaticalCase(number, wordKey); - } - }; - moment.defineLocale('me', { - months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( - '_' - ), - monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'), - monthsParseExact: !0, - weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'), - weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sjutra u] LT', - nextWeek: function() { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay: '[juče u] LT', - lastWeek: function() { - return [ - '[prošle] [nedjelje] [u] LT', - '[prošlog] [ponedjeljka] [u] LT', - '[prošlog] [utorka] [u] LT', - '[prošle] [srijede] [u] LT', - '[prošlog] [četvrtka] [u] LT', - '[prošlog] [petka] [u] LT', - '[prošle] [subote] [u] LT' - ][this.day()]; - }, - sameElse: 'L' - }, - relativeTime: { - future: 'za %s', - past: 'prije %s', - s: 'nekoliko sekundi', - ss: translator.translate, - m: translator.translate, - mm: translator.translate, - h: translator.translate, - hh: translator.translate, - d: 'dan', - dd: translator.translate, - M: 'mjesec', - MM: translator.translate, - y: 'godinu', - yy: translator.translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('mi', { - months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split( - '_' - ), - monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'), - monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i, - weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'), - weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), - weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [i] HH:mm', - LLLL: 'dddd, D MMMM YYYY [i] HH:mm' - }, - calendar: { - sameDay: '[i teie mahana, i] LT', - nextDay: '[apopo i] LT', - nextWeek: 'dddd [i] LT', - lastDay: '[inanahi i] LT', - lastWeek: 'dddd [whakamutunga i] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'i roto i %s', - past: '%s i mua', - s: 'te hēkona ruarua', - ss: '%d hēkona', - m: 'he meneti', - mm: '%d meneti', - h: 'te haora', - hh: '%d haora', - d: 'he ra', - dd: '%d ra', - M: 'he marama', - MM: '%d marama', - y: 'he tau', - yy: '%d tau' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('mk', { - months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split( - '_' - ), - monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'), - weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'), - weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'), - weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'D.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY H:mm', - LLLL: 'dddd, D MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[Денес во] LT', - nextDay: '[Утре во] LT', - nextWeek: '[Во] dddd [во] LT', - lastDay: '[Вчера во] LT', - lastWeek: function() { - switch (this.day()) { - case 0: - case 3: - case 6: - return '[Изминатата] dddd [во] LT'; - case 1: - case 2: - case 4: - case 5: - return '[Изминатиот] dddd [во] LT'; - } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'после %s', - past: 'пред %s', - s: 'неколку секунди', - ss: '%d секунди', - m: 'минута', - mm: '%d минути', - h: 'час', - hh: '%d часа', - d: 'ден', - dd: '%d дена', - M: 'месец', - MM: '%d месеци', - y: 'година', - yy: '%d години' - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, - ordinal: function(number) { - var lastDigit = number % 10, - last2Digits = number % 100; - return 0 === number - ? number + '-ев' - : 0 === last2Digits - ? number + '-ен' - : last2Digits > 10 && last2Digits < 20 - ? number + '-ти' - : 1 === lastDigit - ? number + '-ви' - : 2 === lastDigit - ? number + '-ри' - : 7 === lastDigit || 8 === lastDigit ? number + '-ми' : number + '-ти'; - }, - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('ml', { - months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split( - '_' - ), - monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split( - '_' - ), - weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'), - weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'), - longDateFormat: { - LT: 'A h:mm -നു', - LTS: 'A h:mm:ss -നു', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm -നു', - LLLL: 'dddd, D MMMM YYYY, A h:mm -നു' - }, - calendar: { - sameDay: '[ഇന്ന്] LT', - nextDay: '[നാളെ] LT', - nextWeek: 'dddd, LT', - lastDay: '[ഇന്നലെ] LT', - lastWeek: '[കഴിഞ്ഞ] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s കഴിഞ്ഞ്', - past: '%s മുൻപ്', - s: 'അൽപ നിമിഷങ്ങൾ', - ss: '%d സെക്കൻഡ്', - m: 'ഒരു മിനിറ്റ്', - mm: '%d മിനിറ്റ്', - h: 'ഒരു മണിക്കൂർ', - hh: '%d മണിക്കൂർ', - d: 'ഒരു ദിവസം', - dd: '%d ദിവസം', - M: 'ഒരു മാസം', - MM: '%d മാസം', - y: 'ഒരു വർഷം', - yy: '%d വർഷം' - }, - meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - ('രാത്രി' === meridiem && hour >= 4) || - 'ഉച്ച കഴിഞ്ഞ്' === meridiem || - 'വൈകുന്നേരം' === meridiem - ? hour + 12 - : hour - ); - }, - meridiem: function(hour, minute, isLower) { - return hour < 4 - ? 'രാത്രി' - : hour < 12 - ? 'രാവിലെ' - : hour < 17 ? 'ഉച്ച കഴിഞ്ഞ്' : hour < 20 ? 'വൈകുന്നേരം' : 'രാത്രി'; - } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var symbolMap = { - 1: '१', - 2: '२', - 3: '३', - 4: '४', - 5: '५', - 6: '६', - 7: '७', - 8: '८', - 9: '९', - 0: '०' - }, - numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0' - }; - function relativeTimeMr(number, withoutSuffix, string, isFuture) { - var output = ''; - if (withoutSuffix) - switch (string) { - case 's': - output = 'काही सेकंद'; - break; - case 'ss': - output = '%d सेकंद'; - break; - case 'm': - output = 'एक मिनिट'; - break; - case 'mm': - output = '%d मिनिटे'; - break; - case 'h': - output = 'एक तास'; - break; - case 'hh': - output = '%d तास'; - break; - case 'd': - output = 'एक दिवस'; - break; - case 'dd': - output = '%d दिवस'; - break; - case 'M': - output = 'एक महिना'; - break; - case 'MM': - output = '%d महिने'; - break; - case 'y': - output = 'एक वर्ष'; - break; - case 'yy': - output = '%d वर्षे'; - } - else - switch (string) { - case 's': - output = 'काही सेकंदां'; - break; - case 'ss': - output = '%d सेकंदां'; - break; - case 'm': - output = 'एका मिनिटा'; - break; - case 'mm': - output = '%d मिनिटां'; - break; - case 'h': - output = 'एका तासा'; - break; - case 'hh': - output = '%d तासां'; - break; - case 'd': - output = 'एका दिवसा'; - break; - case 'dd': - output = '%d दिवसां'; - break; - case 'M': - output = 'एका महिन्या'; - break; - case 'MM': - output = '%d महिन्यां'; - break; - case 'y': - output = 'एका वर्षा'; - break; - case 'yy': - output = '%d वर्षां'; - } - return output.replace(/%d/i, number); - } - moment.defineLocale('mr', { - months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split( - '_' - ), - monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), - weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'), - weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), - longDateFormat: { - LT: 'A h:mm वाजता', - LTS: 'A h:mm:ss वाजता', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm वाजता', - LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता' - }, - calendar: { - sameDay: '[आज] LT', - nextDay: '[उद्या] LT', - nextWeek: 'dddd, LT', - lastDay: '[काल] LT', - lastWeek: '[मागील] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%sमध्ये', - past: '%sपूर्वी', - s: relativeTimeMr, - ss: relativeTimeMr, - m: relativeTimeMr, - mm: relativeTimeMr, - h: relativeTimeMr, - hh: relativeTimeMr, - d: relativeTimeMr, - dd: relativeTimeMr, - M: relativeTimeMr, - MM: relativeTimeMr, - y: relativeTimeMr, - yy: relativeTimeMr - }, - preparse: function(string) { - return string.replace(/[१२३४५६७८९०]/g, function(match) { - return numberMap[match]; - }); - }, - postformat: function(string) { - return string.replace(/\d/g, function(match) { - return symbolMap[match]; - }); - }, - meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - 'रात्री' === meridiem - ? hour < 4 ? hour : hour + 12 - : 'सकाळी' === meridiem - ? hour - : 'दुपारी' === meridiem - ? hour >= 10 ? hour : hour + 12 - : 'सायंकाळी' === meridiem ? hour + 12 : void 0 - ); - }, - meridiem: function(hour, minute, isLower) { - return hour < 4 - ? 'रात्री' - : hour < 10 ? 'सकाळी' : hour < 17 ? 'दुपारी' : hour < 20 ? 'सायंकाळी' : 'रात्री'; - }, - week: { dow: 0, doy: 6 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('ms', { - months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), - weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), - weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), - weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm' - }, - meridiemParse: /pagi|tengahari|petang|malam/, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - 'pagi' === meridiem - ? hour - : 'tengahari' === meridiem - ? hour >= 11 ? hour : hour + 12 - : 'petang' === meridiem || 'malam' === meridiem ? hour + 12 : void 0 - ); - }, - meridiem: function(hours, minutes, isLower) { - return hours < 11 ? 'pagi' : hours < 15 ? 'tengahari' : hours < 19 ? 'petang' : 'malam'; - }, - calendar: { - sameDay: '[Hari ini pukul] LT', - nextDay: '[Esok pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kelmarin pukul] LT', - lastWeek: 'dddd [lepas pukul] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'dalam %s', - past: '%s yang lepas', - s: 'beberapa saat', - ss: '%d saat', - m: 'seminit', - mm: '%d minit', - h: 'sejam', - hh: '%d jam', - d: 'sehari', - dd: '%d hari', - M: 'sebulan', - MM: '%d bulan', - y: 'setahun', - yy: '%d tahun' - }, - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('ms-my', { - months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), - weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), - weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), - weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm' - }, - meridiemParse: /pagi|tengahari|petang|malam/, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - 'pagi' === meridiem - ? hour - : 'tengahari' === meridiem - ? hour >= 11 ? hour : hour + 12 - : 'petang' === meridiem || 'malam' === meridiem ? hour + 12 : void 0 - ); - }, - meridiem: function(hours, minutes, isLower) { - return hours < 11 ? 'pagi' : hours < 15 ? 'tengahari' : hours < 19 ? 'petang' : 'malam'; - }, - calendar: { - sameDay: '[Hari ini pukul] LT', - nextDay: '[Esok pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kelmarin pukul] LT', - lastWeek: 'dddd [lepas pukul] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'dalam %s', - past: '%s yang lepas', - s: 'beberapa saat', - ss: '%d saat', - m: 'seminit', - mm: '%d minit', - h: 'sejam', - hh: '%d jam', - d: 'sehari', - dd: '%d hari', - M: 'sebulan', - MM: '%d bulan', - y: 'setahun', - yy: '%d tahun' - }, - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('mt', { - months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split( - '_' - ), - monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'), - weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'), - weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'), - weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Illum fil-]LT', - nextDay: '[Għada fil-]LT', - nextWeek: 'dddd [fil-]LT', - lastDay: '[Il-bieraħ fil-]LT', - lastWeek: 'dddd [li għadda] [fil-]LT', - sameElse: 'L' - }, - relativeTime: { - future: 'f’ %s', - past: '%s ilu', - s: 'ftit sekondi', - ss: '%d sekondi', - m: 'minuta', - mm: '%d minuti', - h: 'siegħa', - hh: '%d siegħat', - d: 'ġurnata', - dd: '%d ġranet', - M: 'xahar', - MM: '%d xhur', - y: 'sena', - yy: '%d sni' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var symbolMap = { - 1: '၁', - 2: '၂', - 3: '၃', - 4: '၄', - 5: '၅', - 6: '၆', - 7: '၇', - 8: '၈', - 9: '၉', - 0: '၀' - }, - numberMap = { - '၁': '1', - '၂': '2', - '၃': '3', - '၄': '4', - '၅': '5', - '၆': '6', - '၇': '7', - '၈': '8', - '၉': '9', - '၀': '0' - }; - moment.defineLocale('my', { - months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split( - '_' - ), - monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'), - weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'), - weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), - weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[ယနေ.] LT [မှာ]', - nextDay: '[မနက်ဖြန်] LT [မှာ]', - nextWeek: 'dddd LT [မှာ]', - lastDay: '[မနေ.က] LT [မှာ]', - lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]', - sameElse: 'L' - }, - relativeTime: { - future: 'လာမည့် %s မှာ', - past: 'လွန်ခဲ့သော %s က', - s: 'စက္ကန်.အနည်းငယ်', - ss: '%d စက္ကန့်', - m: 'တစ်မိနစ်', - mm: '%d မိနစ်', - h: 'တစ်နာရီ', - hh: '%d နာရီ', - d: 'တစ်ရက်', - dd: '%d ရက်', - M: 'တစ်လ', - MM: '%d လ', - y: 'တစ်နှစ်', - yy: '%d နှစ်' - }, - preparse: function(string) { - return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function(match) { - return numberMap[match]; - }); - }, - postformat: function(string) { - return string.replace(/\d/g, function(match) { - return symbolMap[match]; - }); - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('nb', { - months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( - '_' - ), - monthsShort: 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'), - monthsParseExact: !0, - weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), - weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'), - weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY [kl.] HH:mm', - LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm' - }, - calendar: { - sameDay: '[i dag kl.] LT', - nextDay: '[i morgen kl.] LT', - nextWeek: 'dddd [kl.] LT', - lastDay: '[i går kl.] LT', - lastWeek: '[forrige] dddd [kl.] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'om %s', - past: '%s siden', - s: 'noen sekunder', - ss: '%d sekunder', - m: 'ett minutt', - mm: '%d minutter', - h: 'en time', - hh: '%d timer', - d: 'en dag', - dd: '%d dager', - M: 'en måned', - MM: '%d måneder', - y: 'ett år', - yy: '%d år' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var symbolMap = { - 1: '१', - 2: '२', - 3: '३', - 4: '४', - 5: '५', - 6: '६', - 7: '७', - 8: '८', - 9: '९', - 0: '०' - }, - numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0' - }; - moment.defineLocale('ne', { - months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split( - '_' - ), - monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'), - weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'), - weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'Aको h:mm बजे', - LTS: 'Aको h:mm:ss बजे', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, Aको h:mm बजे', - LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे' - }, - preparse: function(string) { - return string.replace(/[१२३४५६७८९०]/g, function(match) { - return numberMap[match]; - }); - }, - postformat: function(string) { - return string.replace(/\d/g, function(match) { - return symbolMap[match]; - }); - }, - meridiemParse: /राति|बिहान|दिउँसो|साँझ/, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - 'राति' === meridiem - ? hour < 4 ? hour : hour + 12 - : 'बिहान' === meridiem - ? hour - : 'दिउँसो' === meridiem - ? hour >= 10 ? hour : hour + 12 - : 'साँझ' === meridiem ? hour + 12 : void 0 - ); - }, - meridiem: function(hour, minute, isLower) { - return hour < 3 - ? 'राति' - : hour < 12 ? 'बिहान' : hour < 16 ? 'दिउँसो' : hour < 20 ? 'साँझ' : 'राति'; - }, - calendar: { - sameDay: '[आज] LT', - nextDay: '[भोलि] LT', - nextWeek: '[आउँदो] dddd[,] LT', - lastDay: '[हिजो] LT', - lastWeek: '[गएको] dddd[,] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%sमा', - past: '%s अगाडि', - s: 'केही क्षण', - ss: '%d सेकेण्ड', - m: 'एक मिनेट', - mm: '%d मिनेट', - h: 'एक घण्टा', - hh: '%d घण्टा', - d: 'एक दिन', - dd: '%d दिन', - M: 'एक महिना', - MM: '%d महिना', - y: 'एक बर्ष', - yy: '%d बर्ष' - }, - week: { dow: 0, doy: 6 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( - '_' - ), - monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'), - monthsParse = [ - /^jan/i, - /^feb/i, - /^maart|mrt.?$/i, - /^apr/i, - /^mei$/i, - /^jun[i.]?$/i, - /^jul[i.]?$/i, - /^aug/i, - /^sep/i, - /^okt/i, - /^nov/i, - /^dec/i - ], - monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; - moment.defineLocale('nl', { - months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( - '_' - ), - monthsShort: function(m, format) { - return m - ? /-MMM-/.test(format) - ? monthsShortWithoutDots[m.month()] - : monthsShortWithDots[m.month()] - : monthsShortWithDots; - }, - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i, - monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'), - weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), - weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD-MM-YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[vandaag om] LT', - nextDay: '[morgen om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[gisteren om] LT', - lastWeek: '[afgelopen] dddd [om] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'over %s', - past: '%s geleden', - s: 'een paar seconden', - ss: '%d seconden', - m: 'één minuut', - mm: '%d minuten', - h: 'één uur', - hh: '%d uur', - d: 'één dag', - dd: '%d dagen', - M: 'één maand', - MM: '%d maanden', - y: 'één jaar', - yy: '%d jaar' - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function(number) { - return number + (1 === number || 8 === number || number >= 20 ? 'ste' : 'de'); - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( - '_' - ), - monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'), - monthsParse = [ - /^jan/i, - /^feb/i, - /^maart|mrt.?$/i, - /^apr/i, - /^mei$/i, - /^jun[i.]?$/i, - /^jul[i.]?$/i, - /^aug/i, - /^sep/i, - /^okt/i, - /^nov/i, - /^dec/i - ], - monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; - moment.defineLocale('nl-be', { - months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( - '_' - ), - monthsShort: function(m, format) { - return m - ? /-MMM-/.test(format) - ? monthsShortWithoutDots[m.month()] - : monthsShortWithDots[m.month()] - : monthsShortWithDots; - }, - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i, - monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'), - weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), - weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[vandaag om] LT', - nextDay: '[morgen om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[gisteren om] LT', - lastWeek: '[afgelopen] dddd [om] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'over %s', - past: '%s geleden', - s: 'een paar seconden', - ss: '%d seconden', - m: 'één minuut', - mm: '%d minuten', - h: 'één uur', - hh: '%d uur', - d: 'één dag', - dd: '%d dagen', - M: 'één maand', - MM: '%d maanden', - y: 'één jaar', - yy: '%d jaar' - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function(number) { - return number + (1 === number || 8 === number || number >= 20 ? 'ste' : 'de'); - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('nn', { - months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), - weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'), - weekdaysShort: 'sun_mån_tys_ons_tor_fre_lau'.split('_'), - weekdaysMin: 'su_må_ty_on_to_fr_lø'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY [kl.] H:mm', - LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm' - }, - calendar: { - sameDay: '[I dag klokka] LT', - nextDay: '[I morgon klokka] LT', - nextWeek: 'dddd [klokka] LT', - lastDay: '[I går klokka] LT', - lastWeek: '[Føregåande] dddd [klokka] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'om %s', - past: '%s sidan', - s: 'nokre sekund', - ss: '%d sekund', - m: 'eit minutt', - mm: '%d minutt', - h: 'ein time', - hh: '%d timar', - d: 'ein dag', - dd: '%d dagar', - M: 'ein månad', - MM: '%d månader', - y: 'eit år', - yy: '%d år' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var symbolMap = { - 1: '੧', - 2: '੨', - 3: '੩', - 4: '੪', - 5: '੫', - 6: '੬', - 7: '੭', - 8: '੮', - 9: '੯', - 0: '੦' - }, - numberMap = { - '੧': '1', - '੨': '2', - '੩': '3', - '੪': '4', - '੫': '5', - '੬': '6', - '੭': '7', - '੮': '8', - '੯': '9', - '੦': '0' - }; - moment.defineLocale('pa-in', { - months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'), - monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( - '_' - ), - weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'), - weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), - weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), - longDateFormat: { - LT: 'A h:mm ਵਜੇ', - LTS: 'A h:mm:ss ਵਜੇ', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm ਵਜੇ', - LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ' - }, - calendar: { - sameDay: '[ਅਜ] LT', - nextDay: '[ਕਲ] LT', - nextWeek: 'dddd, LT', - lastDay: '[ਕਲ] LT', - lastWeek: '[ਪਿਛਲੇ] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s ਵਿੱਚ', - past: '%s ਪਿਛਲੇ', - s: 'ਕੁਝ ਸਕਿੰਟ', - ss: '%d ਸਕਿੰਟ', - m: 'ਇਕ ਮਿੰਟ', - mm: '%d ਮਿੰਟ', - h: 'ਇੱਕ ਘੰਟਾ', - hh: '%d ਘੰਟੇ', - d: 'ਇੱਕ ਦਿਨ', - dd: '%d ਦਿਨ', - M: 'ਇੱਕ ਮਹੀਨਾ', - MM: '%d ਮਹੀਨੇ', - y: 'ਇੱਕ ਸਾਲ', - yy: '%d ਸਾਲ' - }, - preparse: function(string) { - return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function(match) { - return numberMap[match]; - }); - }, - postformat: function(string) { - return string.replace(/\d/g, function(match) { - return symbolMap[match]; - }); - }, - meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - 'ਰਾਤ' === meridiem - ? hour < 4 ? hour : hour + 12 - : 'ਸਵੇਰ' === meridiem - ? hour - : 'ਦੁਪਹਿਰ' === meridiem - ? hour >= 10 ? hour : hour + 12 - : 'ਸ਼ਾਮ' === meridiem ? hour + 12 : void 0 - ); - }, - meridiem: function(hour, minute, isLower) { - return hour < 4 - ? 'ਰਾਤ' - : hour < 10 ? 'ਸਵੇਰ' : hour < 17 ? 'ਦੁਪਹਿਰ' : hour < 20 ? 'ਸ਼ਾਮ' : 'ਰਾਤ'; - }, - week: { dow: 0, doy: 6 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split( - '_' - ), - monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split( - '_' - ); - function plural(n) { - return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 != 1; - } - function translate(number, withoutSuffix, key) { - var result = number + ' '; - switch (key) { - case 'ss': - return result + (plural(number) ? 'sekundy' : 'sekund'); - case 'm': - return withoutSuffix ? 'minuta' : 'minutę'; - case 'mm': - return result + (plural(number) ? 'minuty' : 'minut'); - case 'h': - return withoutSuffix ? 'godzina' : 'godzinę'; - case 'hh': - return result + (plural(number) ? 'godziny' : 'godzin'); - case 'MM': - return result + (plural(number) ? 'miesiące' : 'miesięcy'); - case 'yy': - return result + (plural(number) ? 'lata' : 'lat'); - } - } - moment.defineLocale('pl', { - months: function(momentToFormat, format) { - return momentToFormat - ? '' === format - ? '(' + - monthsSubjective[momentToFormat.month()] + - '|' + - monthsNominative[momentToFormat.month()] + - ')' - : /D MMMM/.test(format) - ? monthsSubjective[momentToFormat.month()] - : monthsNominative[momentToFormat.month()] - : monthsNominative; - }, - monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'), - weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'), - weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'), - weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Dziś o] LT', - nextDay: '[Jutro o] LT', - nextWeek: function() { - switch (this.day()) { - case 0: - return '[W niedzielę o] LT'; - case 2: - return '[We wtorek o] LT'; - case 3: - return '[W środę o] LT'; - case 6: - return '[W sobotę o] LT'; - default: - return '[W] dddd [o] LT'; - } - }, - lastDay: '[Wczoraj o] LT', - lastWeek: function() { - switch (this.day()) { - case 0: - return '[W zeszłą niedzielę o] LT'; - case 3: - return '[W zeszłą środę o] LT'; - case 6: - return '[W zeszłą sobotę o] LT'; - default: - return '[W zeszły] dddd [o] LT'; - } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'za %s', - past: '%s temu', - s: 'kilka sekund', - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: '1 dzień', - dd: '%d dni', - M: 'miesiąc', - MM: translate, - y: 'rok', - yy: translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('pt', { - months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split( - '_' - ), - monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), - weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split( - '_' - ), - weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), - weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY HH:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm' - }, - calendar: { - sameDay: '[Hoje às] LT', - nextDay: '[Amanhã às] LT', - nextWeek: 'dddd [às] LT', - lastDay: '[Ontem às] LT', - lastWeek: function() { - return 0 === this.day() || 6 === this.day() - ? '[Último] dddd [às] LT' - : '[Última] dddd [às] LT'; - }, - sameElse: 'L' - }, - relativeTime: { - future: 'em %s', - past: 'há %s', - s: 'segundos', - ss: '%d segundos', - m: 'um minuto', - mm: '%d minutos', - h: 'uma hora', - hh: '%d horas', - d: 'um dia', - dd: '%d dias', - M: 'um mês', - MM: '%d meses', - y: 'um ano', - yy: '%d anos' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('pt-br', { - months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split( - '_' - ), - monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), - weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split( - '_' - ), - weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), - weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY [às] HH:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm' - }, - calendar: { - sameDay: '[Hoje às] LT', - nextDay: '[Amanhã às] LT', - nextWeek: 'dddd [às] LT', - lastDay: '[Ontem às] LT', - lastWeek: function() { - return 0 === this.day() || 6 === this.day() - ? '[Último] dddd [às] LT' - : '[Última] dddd [às] LT'; - }, - sameElse: 'L' - }, - relativeTime: { - future: 'em %s', - past: '%s atrás', - s: 'poucos segundos', - ss: '%d segundos', - m: 'um minuto', - mm: '%d minutos', - h: 'uma hora', - hh: '%d horas', - d: 'um dia', - dd: '%d dias', - M: 'um mês', - MM: '%d meses', - y: 'um ano', - yy: '%d anos' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº' - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - function relativeTimeWithPlural(number, withoutSuffix, key) { - var separator = ' '; - return ( - (number % 100 >= 20 || (number >= 100 && number % 100 == 0)) && (separator = ' de '), - number + - separator + - { ss: 'secunde', mm: 'minute', hh: 'ore', dd: 'zile', MM: 'luni', yy: 'ani' }[key] - ); - } - moment.defineLocale('ro', { - months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split( - '_' - ), - monthsShort: 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'), - monthsParseExact: !0, - weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'), - weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'), - weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY H:mm', - LLLL: 'dddd, D MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[azi la] LT', - nextDay: '[mâine la] LT', - nextWeek: 'dddd [la] LT', - lastDay: '[ieri la] LT', - lastWeek: '[fosta] dddd [la] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'peste %s', - past: '%s în urmă', - s: 'câteva secunde', - ss: relativeTimeWithPlural, - m: 'un minut', - mm: relativeTimeWithPlural, - h: 'o oră', - hh: relativeTimeWithPlural, - d: 'o zi', - dd: relativeTimeWithPlural, - M: 'o lună', - MM: relativeTimeWithPlural, - y: 'un an', - yy: relativeTimeWithPlural - }, - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - function relativeTimeWithPlural(number, withoutSuffix, key) { - return 'm' === key - ? withoutSuffix ? 'минута' : 'минуту' - : number + - ' ' + - (function plural(word, num) { - var forms = word.split('_'); - return num % 10 == 1 && num % 100 != 11 - ? forms[0] - : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) - ? forms[1] - : forms[2]; - })( - { - ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', - mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут', - hh: 'час_часа_часов', - dd: 'день_дня_дней', - MM: 'месяц_месяца_месяцев', - yy: 'год_года_лет' - }[key], - +number - ); - } - var monthsParse = [ - /^янв/i, - /^фев/i, - /^мар/i, - /^апр/i, - /^ма[йя]/i, - /^июн/i, - /^июл/i, - /^авг/i, - /^сен/i, - /^окт/i, - /^ноя/i, - /^дек/i - ]; - moment.defineLocale('ru', { - months: { - format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split( - '_' - ), - standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( - '_' - ) - }, - monthsShort: { - format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'), - standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_') - }, - weekdays: { - standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'), - format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'), - isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/ - }, - weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), - weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, - monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, - monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i, - monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY г.', - LLL: 'D MMMM YYYY г., H:mm', - LLLL: 'dddd, D MMMM YYYY г., H:mm' - }, - calendar: { - sameDay: '[Сегодня в] LT', - nextDay: '[Завтра в] LT', - lastDay: '[Вчера в] LT', - nextWeek: function(now) { - if (now.week() === this.week()) - return 2 === this.day() ? '[Во] dddd [в] LT' : '[В] dddd [в] LT'; - switch (this.day()) { - case 0: - return '[В следующее] dddd [в] LT'; - case 1: - case 2: - case 4: - return '[В следующий] dddd [в] LT'; - case 3: - case 5: - case 6: - return '[В следующую] dddd [в] LT'; - } - }, - lastWeek: function(now) { - if (now.week() === this.week()) - return 2 === this.day() ? '[Во] dddd [в] LT' : '[В] dddd [в] LT'; - switch (this.day()) { - case 0: - return '[В прошлое] dddd [в] LT'; - case 1: - case 2: - case 4: - return '[В прошлый] dddd [в] LT'; - case 3: - case 5: - case 6: - return '[В прошлую] dddd [в] LT'; - } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'через %s', - past: '%s назад', - s: 'несколько секунд', - ss: relativeTimeWithPlural, - m: relativeTimeWithPlural, - mm: relativeTimeWithPlural, - h: 'час', - hh: relativeTimeWithPlural, - d: 'день', - dd: relativeTimeWithPlural, - M: 'месяц', - MM: relativeTimeWithPlural, - y: 'год', - yy: relativeTimeWithPlural - }, - meridiemParse: /ночи|утра|дня|вечера/i, - isPM: function(input) { - return /^(дня|вечера)$/.test(input); - }, - meridiem: function(hour, minute, isLower) { - return hour < 4 ? 'ночи' : hour < 12 ? 'утра' : hour < 17 ? 'дня' : 'вечера'; - }, - dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/, - ordinal: function(number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - return number + '-й'; - case 'D': - return number + '-го'; - case 'w': - case 'W': - return number + '-я'; - default: - return number; - } - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var months = [ - 'جنوري', - 'فيبروري', - 'مارچ', - 'اپريل', - 'مئي', - 'جون', - 'جولاءِ', - 'آگسٽ', - 'سيپٽمبر', - 'آڪٽوبر', - 'نومبر', - 'ڊسمبر' - ], - days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر']; - moment.defineLocale('sd', { - months: months, - monthsShort: months, - weekdays: days, - weekdaysShort: days, - weekdaysMin: days, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd، D MMMM YYYY HH:mm' - }, - meridiemParse: /صبح|شام/, - isPM: function(input) { - return 'شام' === input; - }, - meridiem: function(hour, minute, isLower) { - return hour < 12 ? 'صبح' : 'شام'; - }, - calendar: { - sameDay: '[اڄ] LT', - nextDay: '[سڀاڻي] LT', - nextWeek: 'dddd [اڳين هفتي تي] LT', - lastDay: '[ڪالهه] LT', - lastWeek: '[گزريل هفتي] dddd [تي] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s پوء', - past: '%s اڳ', - s: 'چند سيڪنڊ', - ss: '%d سيڪنڊ', - m: 'هڪ منٽ', - mm: '%d منٽ', - h: 'هڪ ڪلاڪ', - hh: '%d ڪلاڪ', - d: 'هڪ ڏينهن', - dd: '%d ڏينهن', - M: 'هڪ مهينو', - MM: '%d مهينا', - y: 'هڪ سال', - yy: '%d سال' - }, - preparse: function(string) { - return string.replace(/،/g, ','); - }, - postformat: function(string) { - return string.replace(/,/g, '،'); - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('se', { - months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split( - '_' - ), - monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'), - weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split( - '_' - ), - weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'), - weekdaysMin: 's_v_m_g_d_b_L'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'MMMM D. [b.] YYYY', - LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm', - LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm' - }, - calendar: { - sameDay: '[otne ti] LT', - nextDay: '[ihttin ti] LT', - nextWeek: 'dddd [ti] LT', - lastDay: '[ikte ti] LT', - lastWeek: '[ovddit] dddd [ti] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s geažes', - past: 'maŋit %s', - s: 'moadde sekunddat', - ss: '%d sekunddat', - m: 'okta minuhta', - mm: '%d minuhtat', - h: 'okta diimmu', - hh: '%d diimmut', - d: 'okta beaivi', - dd: '%d beaivvit', - M: 'okta mánnu', - MM: '%d mánut', - y: 'okta jahki', - yy: '%d jagit' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('si', { - months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split( - '_' - ), - monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'), - weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'), - weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'), - weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'a h:mm', - LTS: 'a h:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY MMMM D', - LLL: 'YYYY MMMM D, a h:mm', - LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss' - }, - calendar: { - sameDay: '[අද] LT[ට]', - nextDay: '[හෙට] LT[ට]', - nextWeek: 'dddd LT[ට]', - lastDay: '[ඊයේ] LT[ට]', - lastWeek: '[පසුගිය] dddd LT[ට]', - sameElse: 'L' - }, - relativeTime: { - future: '%sකින්', - past: '%sකට පෙර', - s: 'තත්පර කිහිපය', - ss: 'තත්පර %d', - m: 'මිනිත්තුව', - mm: 'මිනිත්තු %d', - h: 'පැය', - hh: 'පැය %d', - d: 'දිනය', - dd: 'දින %d', - M: 'මාසය', - MM: 'මාස %d', - y: 'වසර', - yy: 'වසර %d' - }, - dayOfMonthOrdinalParse: /\d{1,2} වැනි/, - ordinal: function(number) { - return number + ' වැනි'; - }, - meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./, - isPM: function(input) { - return 'ප.ව.' === input || 'පස් වරු' === input; - }, - meridiem: function(hours, minutes, isLower) { - return hours > 11 ? (isLower ? 'ප.ව.' : 'පස් වරු') : isLower ? 'පෙ.ව.' : 'පෙර වරු'; - } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split( - '_' - ), - monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_'); - function plural(n) { - return n > 1 && n < 5; - } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': - return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami'; - case 'ss': - return withoutSuffix || isFuture - ? result + (plural(number) ? 'sekundy' : 'sekúnd') - : result + 'sekundami'; - case 'm': - return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou'; - case 'mm': - return withoutSuffix || isFuture - ? result + (plural(number) ? 'minúty' : 'minút') - : result + 'minútami'; - case 'h': - return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou'; - case 'hh': - return withoutSuffix || isFuture - ? result + (plural(number) ? 'hodiny' : 'hodín') - : result + 'hodinami'; - case 'd': - return withoutSuffix || isFuture ? 'deň' : 'dňom'; - case 'dd': - return withoutSuffix || isFuture - ? result + (plural(number) ? 'dni' : 'dní') - : result + 'dňami'; - case 'M': - return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom'; - case 'MM': - return withoutSuffix || isFuture - ? result + (plural(number) ? 'mesiace' : 'mesiacov') - : result + 'mesiacmi'; - case 'y': - return withoutSuffix || isFuture ? 'rok' : 'rokom'; - case 'yy': - return withoutSuffix || isFuture - ? result + (plural(number) ? 'roky' : 'rokov') - : result + 'rokmi'; - } - } - moment.defineLocale('sk', { - months: months, - monthsShort: monthsShort, - weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'), - weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'), - weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[dnes o] LT', - nextDay: '[zajtra o] LT', - nextWeek: function() { - switch (this.day()) { - case 0: - return '[v nedeľu o] LT'; - case 1: - case 2: - return '[v] dddd [o] LT'; - case 3: - return '[v stredu o] LT'; - case 4: - return '[vo štvrtok o] LT'; - case 5: - return '[v piatok o] LT'; - case 6: - return '[v sobotu o] LT'; - } - }, - lastDay: '[včera o] LT', - lastWeek: function() { - switch (this.day()) { - case 0: - return '[minulú nedeľu o] LT'; - case 1: - case 2: - return '[minulý] dddd [o] LT'; - case 3: - return '[minulú stredu o] LT'; - case 4: - case 5: - return '[minulý] dddd [o] LT'; - case 6: - return '[minulú sobotu o] LT'; - } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'za %s', - past: 'pred %s', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': - return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami'; - case 'ss': - return (result += - 1 === number - ? withoutSuffix ? 'sekundo' : 'sekundi' - : 2 === number - ? withoutSuffix || isFuture ? 'sekundi' : 'sekundah' - : number < 5 ? (withoutSuffix || isFuture ? 'sekunde' : 'sekundah') : 'sekund'); - case 'm': - return withoutSuffix ? 'ena minuta' : 'eno minuto'; - case 'mm': - return (result += - 1 === number - ? withoutSuffix ? 'minuta' : 'minuto' - : 2 === number - ? withoutSuffix || isFuture ? 'minuti' : 'minutama' - : number < 5 - ? withoutSuffix || isFuture ? 'minute' : 'minutami' - : withoutSuffix || isFuture ? 'minut' : 'minutami'); - case 'h': - return withoutSuffix ? 'ena ura' : 'eno uro'; - case 'hh': - return (result += - 1 === number - ? withoutSuffix ? 'ura' : 'uro' - : 2 === number - ? withoutSuffix || isFuture ? 'uri' : 'urama' - : number < 5 - ? withoutSuffix || isFuture ? 'ure' : 'urami' - : withoutSuffix || isFuture ? 'ur' : 'urami'); - case 'd': - return withoutSuffix || isFuture ? 'en dan' : 'enim dnem'; - case 'dd': - return (result += - 1 === number - ? withoutSuffix || isFuture ? 'dan' : 'dnem' - : 2 === number - ? withoutSuffix || isFuture ? 'dni' : 'dnevoma' - : withoutSuffix || isFuture ? 'dni' : 'dnevi'); - case 'M': - return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem'; - case 'MM': - return (result += - 1 === number - ? withoutSuffix || isFuture ? 'mesec' : 'mesecem' - : 2 === number - ? withoutSuffix || isFuture ? 'meseca' : 'mesecema' - : number < 5 - ? withoutSuffix || isFuture ? 'mesece' : 'meseci' - : withoutSuffix || isFuture ? 'mesecev' : 'meseci'); - case 'y': - return withoutSuffix || isFuture ? 'eno leto' : 'enim letom'; - case 'yy': - return (result += - 1 === number - ? withoutSuffix || isFuture ? 'leto' : 'letom' - : 2 === number - ? withoutSuffix || isFuture ? 'leti' : 'letoma' - : number < 5 - ? withoutSuffix || isFuture ? 'leta' : 'leti' - : withoutSuffix || isFuture ? 'let' : 'leti'); - } - } - moment.defineLocale('sl', { - months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split( - '_' - ), - monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'), - monthsParseExact: !0, - weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'), - weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'), - weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[danes ob] LT', - nextDay: '[jutri ob] LT', - nextWeek: function() { - switch (this.day()) { - case 0: - return '[v] [nedeljo] [ob] LT'; - case 3: - return '[v] [sredo] [ob] LT'; - case 6: - return '[v] [soboto] [ob] LT'; - case 1: - case 2: - case 4: - case 5: - return '[v] dddd [ob] LT'; - } - }, - lastDay: '[včeraj ob] LT', - lastWeek: function() { - switch (this.day()) { - case 0: - return '[prejšnjo] [nedeljo] [ob] LT'; - case 3: - return '[prejšnjo] [sredo] [ob] LT'; - case 6: - return '[prejšnjo] [soboto] [ob] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prejšnji] dddd [ob] LT'; - } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'čez %s', - past: 'pred %s', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('sq', { - months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split( - '_' - ), - monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'), - weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'), - weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'), - weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'), - weekdaysParseExact: !0, - meridiemParse: /PD|MD/, - isPM: function(input) { - return 'M' === input.charAt(0); - }, - meridiem: function(hours, minutes, isLower) { - return hours < 12 ? 'PD' : 'MD'; - }, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Sot në] LT', - nextDay: '[Nesër në] LT', - nextWeek: 'dddd [në] LT', - lastDay: '[Dje në] LT', - lastWeek: 'dddd [e kaluar në] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'në %s', - past: '%s më parë', - s: 'disa sekonda', - ss: '%d sekonda', - m: 'një minutë', - mm: '%d minuta', - h: 'një orë', - hh: '%d orë', - d: 'një ditë', - dd: '%d ditë', - M: 'një muaj', - MM: '%d muaj', - y: 'një vit', - yy: '%d vite' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var translator = { - words: { - ss: ['sekunda', 'sekunde', 'sekundi'], - m: ['jedan minut', 'jedne minute'], - mm: ['minut', 'minute', 'minuta'], - h: ['jedan sat', 'jednog sata'], - hh: ['sat', 'sata', 'sati'], - dd: ['dan', 'dana', 'dana'], - MM: ['mesec', 'meseca', 'meseci'], - yy: ['godina', 'godine', 'godina'] - }, - correctGrammaticalCase: function(number, wordKey) { - return 1 === number ? wordKey[0] : number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]; - }, - translate: function(number, withoutSuffix, key) { - var wordKey = translator.words[key]; - return 1 === key.length - ? withoutSuffix ? wordKey[0] : wordKey[1] - : number + ' ' + translator.correctGrammaticalCase(number, wordKey); - } - }; - moment.defineLocale('sr', { - months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( - '_' - ), - monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'), - monthsParseExact: !0, - weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'), - weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sutra u] LT', - nextWeek: function() { - switch (this.day()) { - case 0: - return '[u] [nedelju] [u] LT'; - case 3: - return '[u] [sredu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay: '[juče u] LT', - lastWeek: function() { - return [ - '[prošle] [nedelje] [u] LT', - '[prošlog] [ponedeljka] [u] LT', - '[prošlog] [utorka] [u] LT', - '[prošle] [srede] [u] LT', - '[prošlog] [četvrtka] [u] LT', - '[prošlog] [petka] [u] LT', - '[prošle] [subote] [u] LT' - ][this.day()]; - }, - sameElse: 'L' - }, - relativeTime: { - future: 'za %s', - past: 'pre %s', - s: 'nekoliko sekundi', - ss: translator.translate, - m: translator.translate, - mm: translator.translate, - h: translator.translate, - hh: translator.translate, - d: 'dan', - dd: translator.translate, - M: 'mesec', - MM: translator.translate, - y: 'godinu', - yy: translator.translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var translator = { - words: { - ss: ['секунда', 'секунде', 'секунди'], - m: ['један минут', 'једне минуте'], - mm: ['минут', 'минуте', 'минута'], - h: ['један сат', 'једног сата'], - hh: ['сат', 'сата', 'сати'], - dd: ['дан', 'дана', 'дана'], - MM: ['месец', 'месеца', 'месеци'], - yy: ['година', 'године', 'година'] - }, - correctGrammaticalCase: function(number, wordKey) { - return 1 === number ? wordKey[0] : number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]; - }, - translate: function(number, withoutSuffix, key) { - var wordKey = translator.words[key]; - return 1 === key.length - ? withoutSuffix ? wordKey[0] : wordKey[1] - : number + ' ' + translator.correctGrammaticalCase(number, wordKey); - } - }; - moment.defineLocale('sr-cyrl', { - months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split( - '_' - ), - monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'), - monthsParseExact: !0, - weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'), - weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'), - weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[данас у] LT', - nextDay: '[сутра у] LT', - nextWeek: function() { - switch (this.day()) { - case 0: - return '[у] [недељу] [у] LT'; - case 3: - return '[у] [среду] [у] LT'; - case 6: - return '[у] [суботу] [у] LT'; - case 1: - case 2: - case 4: - case 5: - return '[у] dddd [у] LT'; - } - }, - lastDay: '[јуче у] LT', - lastWeek: function() { - return [ - '[прошле] [недеље] [у] LT', - '[прошлог] [понедељка] [у] LT', - '[прошлог] [уторка] [у] LT', - '[прошле] [среде] [у] LT', - '[прошлог] [четвртка] [у] LT', - '[прошлог] [петка] [у] LT', - '[прошле] [суботе] [у] LT' - ][this.day()]; - }, - sameElse: 'L' - }, - relativeTime: { - future: 'за %s', - past: 'пре %s', - s: 'неколико секунди', - ss: translator.translate, - m: translator.translate, - mm: translator.translate, - h: translator.translate, - hh: translator.translate, - d: 'дан', - dd: translator.translate, - M: 'месец', - MM: translator.translate, - y: 'годину', - yy: translator.translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('ss', { - months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split( - '_' - ), - monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'), - weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'), - weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'), - weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A' - }, - calendar: { - sameDay: '[Namuhla nga] LT', - nextDay: '[Kusasa nga] LT', - nextWeek: 'dddd [nga] LT', - lastDay: '[Itolo nga] LT', - lastWeek: 'dddd [leliphelile] [nga] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'nga %s', - past: 'wenteka nga %s', - s: 'emizuzwana lomcane', - ss: '%d mzuzwana', - m: 'umzuzu', - mm: '%d emizuzu', - h: 'lihora', - hh: '%d emahora', - d: 'lilanga', - dd: '%d emalanga', - M: 'inyanga', - MM: '%d tinyanga', - y: 'umnyaka', - yy: '%d iminyaka' - }, - meridiemParse: /ekuseni|emini|entsambama|ebusuku/, - meridiem: function(hours, minutes, isLower) { - return hours < 11 - ? 'ekuseni' - : hours < 15 ? 'emini' : hours < 19 ? 'entsambama' : 'ebusuku'; - }, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - 'ekuseni' === meridiem - ? hour - : 'emini' === meridiem - ? hour >= 11 ? hour : hour + 12 - : 'entsambama' === meridiem || 'ebusuku' === meridiem - ? 0 === hour ? 0 : hour + 12 - : void 0 - ); - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal: '%d', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('sv', { - months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), - weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'), - weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'), - weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [kl.] HH:mm', - LLLL: 'dddd D MMMM YYYY [kl.] HH:mm', - lll: 'D MMM YYYY HH:mm', - llll: 'ddd D MMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Idag] LT', - nextDay: '[Imorgon] LT', - lastDay: '[Igår] LT', - nextWeek: '[På] dddd LT', - lastWeek: '[I] dddd[s] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'om %s', - past: 'för %s sedan', - s: 'några sekunder', - ss: '%d sekunder', - m: 'en minut', - mm: '%d minuter', - h: 'en timme', - hh: '%d timmar', - d: 'en dag', - dd: '%d dagar', - M: 'en månad', - MM: '%d månader', - y: 'ett år', - yy: '%d år' - }, - dayOfMonthOrdinalParse: /\d{1,2}(e|a)/, - ordinal: function(number) { - var b = number % 10; - return ( - number + (1 == ~~((number % 100) / 10) ? 'e' : 1 === b ? 'a' : 2 === b ? 'a' : 'e') - ); - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('sw', { - months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'), - weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'), - weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'), - weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[leo saa] LT', - nextDay: '[kesho saa] LT', - nextWeek: '[wiki ijayo] dddd [saat] LT', - lastDay: '[jana] LT', - lastWeek: '[wiki iliyopita] dddd [saat] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s baadaye', - past: 'tokea %s', - s: 'hivi punde', - ss: 'sekunde %d', - m: 'dakika moja', - mm: 'dakika %d', - h: 'saa limoja', - hh: 'masaa %d', - d: 'siku moja', - dd: 'masiku %d', - M: 'mwezi mmoja', - MM: 'miezi %d', - y: 'mwaka mmoja', - yy: 'miaka %d' - }, - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var symbolMap = { - 1: '௧', - 2: '௨', - 3: '௩', - 4: '௪', - 5: '௫', - 6: '௬', - 7: '௭', - 8: '௮', - 9: '௯', - 0: '௦' - }, - numberMap = { - '௧': '1', - '௨': '2', - '௩': '3', - '௪': '4', - '௫': '5', - '௬': '6', - '௭': '7', - '௮': '8', - '௯': '9', - '௦': '0' - }; - moment.defineLocale('ta', { - months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( - '_' - ), - monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( - '_' - ), - weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split( - '_' - ), - weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'), - weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, HH:mm', - LLLL: 'dddd, D MMMM YYYY, HH:mm' - }, - calendar: { - sameDay: '[இன்று] LT', - nextDay: '[நாளை] LT', - nextWeek: 'dddd, LT', - lastDay: '[நேற்று] LT', - lastWeek: '[கடந்த வாரம்] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s இல்', - past: '%s முன்', - s: 'ஒரு சில விநாடிகள்', - ss: '%d விநாடிகள்', - m: 'ஒரு நிமிடம்', - mm: '%d நிமிடங்கள்', - h: 'ஒரு மணி நேரம்', - hh: '%d மணி நேரம்', - d: 'ஒரு நாள்', - dd: '%d நாட்கள்', - M: 'ஒரு மாதம்', - MM: '%d மாதங்கள்', - y: 'ஒரு வருடம்', - yy: '%d ஆண்டுகள்' - }, - dayOfMonthOrdinalParse: /\d{1,2}வது/, - ordinal: function(number) { - return number + 'வது'; - }, - preparse: function(string) { - return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function(match) { - return numberMap[match]; - }); - }, - postformat: function(string) { - return string.replace(/\d/g, function(match) { - return symbolMap[match]; - }); - }, - meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/, - meridiem: function(hour, minute, isLower) { - return hour < 2 - ? ' யாமம்' - : hour < 6 - ? ' வைகறை' - : hour < 10 - ? ' காலை' - : hour < 14 ? ' நண்பகல்' : hour < 18 ? ' எற்பாடு' : hour < 22 ? ' மாலை' : ' யாமம்'; - }, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - 'யாமம்' === meridiem - ? hour < 2 ? hour : hour + 12 - : 'வைகறை' === meridiem || 'காலை' === meridiem - ? hour - : 'நண்பகல்' === meridiem && hour >= 10 ? hour : hour + 12 - ); - }, - week: { dow: 0, doy: 6 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('te', { - months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split( - '_' - ), - monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'), - monthsParseExact: !0, - weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'), - weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'), - weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm', - LLLL: 'dddd, D MMMM YYYY, A h:mm' - }, - calendar: { - sameDay: '[నేడు] LT', - nextDay: '[రేపు] LT', - nextWeek: 'dddd, LT', - lastDay: '[నిన్న] LT', - lastWeek: '[గత] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s లో', - past: '%s క్రితం', - s: 'కొన్ని క్షణాలు', - ss: '%d సెకన్లు', - m: 'ఒక నిమిషం', - mm: '%d నిమిషాలు', - h: 'ఒక గంట', - hh: '%d గంటలు', - d: 'ఒక రోజు', - dd: '%d రోజులు', - M: 'ఒక నెల', - MM: '%d నెలలు', - y: 'ఒక సంవత్సరం', - yy: '%d సంవత్సరాలు' - }, - dayOfMonthOrdinalParse: /\d{1,2}వ/, - ordinal: '%dవ', - meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - 'రాత్రి' === meridiem - ? hour < 4 ? hour : hour + 12 - : 'ఉదయం' === meridiem - ? hour - : 'మధ్యాహ్నం' === meridiem - ? hour >= 10 ? hour : hour + 12 - : 'సాయంత్రం' === meridiem ? hour + 12 : void 0 - ); - }, - meridiem: function(hour, minute, isLower) { - return hour < 4 - ? 'రాత్రి' - : hour < 10 ? 'ఉదయం' : hour < 17 ? 'మధ్యాహ్నం' : hour < 20 ? 'సాయంత్రం' : 'రాత్రి'; - }, - week: { dow: 0, doy: 6 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('tet', { - months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru'.split( - '_' - ), - monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez'.split('_'), - weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu'.split('_'), - weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sext_Sab'.split('_'), - weekdaysMin: 'Do_Seg_Te_Ku_Ki_Sex_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Ohin iha] LT', - nextDay: '[Aban iha] LT', - nextWeek: 'dddd [iha] LT', - lastDay: '[Horiseik iha] LT', - lastWeek: 'dddd [semana kotuk] [iha] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'iha %s', - past: '%s liuba', - s: 'minutu balun', - ss: 'minutu %d', - m: 'minutu ida', - mm: 'minutus %d', - h: 'horas ida', - hh: 'horas %d', - d: 'loron ida', - dd: 'loron %d', - M: 'fulan ida', - MM: 'fulan %d', - y: 'tinan ida', - yy: 'tinan %d' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function(number) { - var b = number % 10; - return ( - number + - (1 == ~~((number % 100) / 10) - ? 'th' - : 1 === b ? 'st' : 2 === b ? 'nd' : 3 === b ? 'rd' : 'th') - ); - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('th', { - months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split( - '_' - ), - monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'), - monthsParseExact: !0, - weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), - weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), - weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY เวลา H:mm', - LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm' - }, - meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/, - isPM: function(input) { - return 'หลังเที่ยง' === input; - }, - meridiem: function(hour, minute, isLower) { - return hour < 12 ? 'ก่อนเที่ยง' : 'หลังเที่ยง'; - }, - calendar: { - sameDay: '[วันนี้ เวลา] LT', - nextDay: '[พรุ่งนี้ เวลา] LT', - nextWeek: 'dddd[หน้า เวลา] LT', - lastDay: '[เมื่อวานนี้ เวลา] LT', - lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'อีก %s', - past: '%sที่แล้ว', - s: 'ไม่กี่วินาที', - ss: '%d วินาที', - m: '1 นาที', - mm: '%d นาที', - h: '1 ชั่วโมง', - hh: '%d ชั่วโมง', - d: '1 วัน', - dd: '%d วัน', - M: '1 เดือน', - MM: '%d เดือน', - y: '1 ปี', - yy: '%d ปี' - } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('tl-ph', { - months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split( - '_' - ), - monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), - weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'), - weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), - weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'MM/D/YYYY', - LL: 'MMMM D, YYYY', - LLL: 'MMMM D, YYYY HH:mm', - LLLL: 'dddd, MMMM DD, YYYY HH:mm' - }, - calendar: { - sameDay: 'LT [ngayong araw]', - nextDay: '[Bukas ng] LT', - nextWeek: 'LT [sa susunod na] dddd', - lastDay: 'LT [kahapon]', - lastWeek: 'LT [noong nakaraang] dddd', - sameElse: 'L' - }, - relativeTime: { - future: 'sa loob ng %s', - past: '%s ang nakalipas', - s: 'ilang segundo', - ss: '%d segundo', - m: 'isang minuto', - mm: '%d minuto', - h: 'isang oras', - hh: '%d oras', - d: 'isang araw', - dd: '%d araw', - M: 'isang buwan', - MM: '%d buwan', - y: 'isang taon', - yy: '%d taon' - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal: function(number) { - return number; - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_'); - function translate(number, withoutSuffix, string, isFuture) { - var numberNoun = (function numberAsNoun(number) { - var hundred = Math.floor((number % 1e3) / 100), - ten = Math.floor((number % 100) / 10), - one = number % 10, - word = ''; - hundred > 0 && (word += numbersNouns[hundred] + 'vatlh'); - ten > 0 && (word += ('' !== word ? ' ' : '') + numbersNouns[ten] + 'maH'); - one > 0 && (word += ('' !== word ? ' ' : '') + numbersNouns[one]); - return '' === word ? 'pagh' : word; - })(number); - switch (string) { - case 'ss': - return numberNoun + ' lup'; - case 'mm': - return numberNoun + ' tup'; - case 'hh': - return numberNoun + ' rep'; - case 'dd': - return numberNoun + ' jaj'; - case 'MM': - return numberNoun + ' jar'; - case 'yy': - return numberNoun + ' DIS'; - } - } - moment.defineLocale('tlh', { - months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split( - '_' - ), - monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), - weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), - weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[DaHjaj] LT', - nextDay: '[wa’leS] LT', - nextWeek: 'LLL', - lastDay: '[wa’Hu’] LT', - lastWeek: 'LLL', - sameElse: 'L' - }, - relativeTime: { - future: function translateFuture(output) { - var time = output; - return (time = - -1 !== output.indexOf('jaj') - ? time.slice(0, -3) + 'leS' - : -1 !== output.indexOf('jar') - ? time.slice(0, -3) + 'waQ' - : -1 !== output.indexOf('DIS') ? time.slice(0, -3) + 'nem' : time + ' pIq'); - }, - past: function translatePast(output) { - var time = output; - return (time = - -1 !== output.indexOf('jaj') - ? time.slice(0, -3) + 'Hu’' - : -1 !== output.indexOf('jar') - ? time.slice(0, -3) + 'wen' - : -1 !== output.indexOf('DIS') ? time.slice(0, -3) + 'ben' : time + ' ret'); - }, - s: 'puS lup', - ss: translate, - m: 'wa’ tup', - mm: translate, - h: 'wa’ rep', - hh: translate, - d: 'wa’ jaj', - dd: translate, - M: 'wa’ jar', - MM: translate, - y: 'wa’ DIS', - yy: translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var suffixes = { - 1: "'inci", - 5: "'inci", - 8: "'inci", - 70: "'inci", - 80: "'inci", - 2: "'nci", - 7: "'nci", - 20: "'nci", - 50: "'nci", - 3: "'üncü", - 4: "'üncü", - 100: "'üncü", - 6: "'ncı", - 9: "'uncu", - 10: "'uncu", - 30: "'uncu", - 60: "'ıncı", - 90: "'ıncı" - }; - moment.defineLocale('tr', { - months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split( - '_' - ), - monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'), - weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'), - weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), - weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[bugün saat] LT', - nextDay: '[yarın saat] LT', - nextWeek: '[gelecek] dddd [saat] LT', - lastDay: '[dün] LT', - lastWeek: '[geçen] dddd [saat] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s sonra', - past: '%s önce', - s: 'birkaç saniye', - ss: '%d saniye', - m: 'bir dakika', - mm: '%d dakika', - h: 'bir saat', - hh: '%d saat', - d: 'bir gün', - dd: '%d gün', - M: 'bir ay', - MM: '%d ay', - y: 'bir yıl', - yy: '%d yıl' - }, - dayOfMonthOrdinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/, - ordinal: function(number) { - if (0 === number) return number + "'ıncı"; - var a = number % 10; - return ( - number + - (suffixes[a] || suffixes[number % 100 - a] || suffixes[number >= 100 ? 100 : null]) - ); - }, - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - s: ['viensas secunds', "'iensas secunds"], - ss: [number + ' secunds', number + ' secunds'], - m: ["'n míut", "'iens míut"], - mm: [number + ' míuts', number + ' míuts'], - h: ["'n þora", "'iensa þora"], - hh: [number + ' þoras', number + ' þoras'], - d: ["'n ziua", "'iensa ziua"], - dd: [number + ' ziuas', number + ' ziuas'], - M: ["'n mes", "'iens mes"], - MM: [number + ' mesen', number + ' mesen'], - y: ["'n ar", "'iens ar"], - yy: [number + ' ars', number + ' ars'] - }; - return isFuture ? format[key][0] : withoutSuffix ? format[key][0] : format[key][1]; - } - moment.defineLocale('tzl', { - months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split( - '_' - ), - monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'), - weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'), - weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'), - weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM [dallas] YYYY', - LLL: 'D. MMMM [dallas] YYYY HH.mm', - LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm' - }, - meridiemParse: /d\'o|d\'a/i, - isPM: function(input) { - return "d'o" === input.toLowerCase(); - }, - meridiem: function(hours, minutes, isLower) { - return hours > 11 ? (isLower ? "d'o" : "D'O") : isLower ? "d'a" : "D'A"; - }, - calendar: { - sameDay: '[oxhi à] LT', - nextDay: '[demà à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[ieiri à] LT', - lastWeek: '[sür el] dddd [lasteu à] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'osprei %s', - past: 'ja%s', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('tzm', { - months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( - '_' - ), - monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( - '_' - ), - weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), - weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), - weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[ⴰⵙⴷⵅ ⴴ] LT', - nextDay: '[ⴰⵙⴽⴰ ⴴ] LT', - nextWeek: 'dddd [ⴴ] LT', - lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT', - lastWeek: 'dddd [ⴴ] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s', - past: 'ⵢⴰⵏ %s', - s: 'ⵉⵎⵉⴽ', - ss: '%d ⵉⵎⵉⴽ', - m: 'ⵎⵉⵏⵓⴺ', - mm: '%d ⵎⵉⵏⵓⴺ', - h: 'ⵙⴰⵄⴰ', - hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ', - d: 'ⴰⵙⵙ', - dd: '%d oⵙⵙⴰⵏ', - M: 'ⴰⵢoⵓⵔ', - MM: '%d ⵉⵢⵢⵉⵔⵏ', - y: 'ⴰⵙⴳⴰⵙ', - yy: '%d ⵉⵙⴳⴰⵙⵏ' - }, - week: { dow: 6, doy: 12 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('tzm-latn', { - months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( - '_' - ), - monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( - '_' - ), - weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), - weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), - weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[asdkh g] LT', - nextDay: '[aska g] LT', - nextWeek: 'dddd [g] LT', - lastDay: '[assant g] LT', - lastWeek: 'dddd [g] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'dadkh s yan %s', - past: 'yan %s', - s: 'imik', - ss: '%d imik', - m: 'minuḍ', - mm: '%d minuḍ', - h: 'saɛa', - hh: '%d tassaɛin', - d: 'ass', - dd: '%d ossan', - M: 'ayowr', - MM: '%d iyyirn', - y: 'asgas', - yy: '%d isgasn' - }, - week: { dow: 6, doy: 12 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - function relativeTimeWithPlural(number, withoutSuffix, key) { - return 'm' === key - ? withoutSuffix ? 'хвилина' : 'хвилину' - : 'h' === key - ? withoutSuffix ? 'година' : 'годину' - : number + - ' ' + - (function plural(word, num) { - var forms = word.split('_'); - return num % 10 == 1 && num % 100 != 11 - ? forms[0] - : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) - ? forms[1] - : forms[2]; - })( - { - ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд', - mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин', - hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин', - dd: 'день_дні_днів', - MM: 'місяць_місяці_місяців', - yy: 'рік_роки_років' - }[key], - +number - ); - } - function processHoursFunction(str) { - return function() { - return str + 'о' + (11 === this.hours() ? 'б' : '') + '] LT'; - }; - } - moment.defineLocale('uk', { - months: { - format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split( - '_' - ), - standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split( - '_' - ) - }, - monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'), - weekdays: function weekdaysCaseReplace(m, format) { - var weekdays = { - nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'), - accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'), - genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_') - }; - return m - ? weekdays[ - /(\[[ВвУу]\]) ?dddd/.test(format) - ? 'accusative' - : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format) ? 'genitive' : 'nominative' - ][m.day()] - : weekdays.nominative; - }, - weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY р.', - LLL: 'D MMMM YYYY р., HH:mm', - LLLL: 'dddd, D MMMM YYYY р., HH:mm' - }, - calendar: { - sameDay: processHoursFunction('[Сьогодні '), - nextDay: processHoursFunction('[Завтра '), - lastDay: processHoursFunction('[Вчора '), - nextWeek: processHoursFunction('[У] dddd ['), - lastWeek: function() { - switch (this.day()) { - case 0: - case 3: - case 5: - case 6: - return processHoursFunction('[Минулої] dddd [').call(this); - case 1: - case 2: - case 4: - return processHoursFunction('[Минулого] dddd [').call(this); - } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'за %s', - past: '%s тому', - s: 'декілька секунд', - ss: relativeTimeWithPlural, - m: relativeTimeWithPlural, - mm: relativeTimeWithPlural, - h: 'годину', - hh: relativeTimeWithPlural, - d: 'день', - dd: relativeTimeWithPlural, - M: 'місяць', - MM: relativeTimeWithPlural, - y: 'рік', - yy: relativeTimeWithPlural - }, - meridiemParse: /ночі|ранку|дня|вечора/, - isPM: function(input) { - return /^(дня|вечора)$/.test(input); - }, - meridiem: function(hour, minute, isLower) { - return hour < 4 ? 'ночі' : hour < 12 ? 'ранку' : hour < 17 ? 'дня' : 'вечора'; - }, - dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/, - ordinal: function(number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - case 'w': - case 'W': - return number + '-й'; - case 'D': - return number + '-го'; - default: - return number; - } - }, - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - var months = [ - 'جنوری', - 'فروری', - 'مارچ', - 'اپریل', - 'مئی', - 'جون', - 'جولائی', - 'اگست', - 'ستمبر', - 'اکتوبر', - 'نومبر', - 'دسمبر' - ], - days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ']; - moment.defineLocale('ur', { - months: months, - monthsShort: months, - weekdays: days, - weekdaysShort: days, - weekdaysMin: days, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd، D MMMM YYYY HH:mm' - }, - meridiemParse: /صبح|شام/, - isPM: function(input) { - return 'شام' === input; - }, - meridiem: function(hour, minute, isLower) { - return hour < 12 ? 'صبح' : 'شام'; - }, - calendar: { - sameDay: '[آج بوقت] LT', - nextDay: '[کل بوقت] LT', - nextWeek: 'dddd [بوقت] LT', - lastDay: '[گذشتہ روز بوقت] LT', - lastWeek: '[گذشتہ] dddd [بوقت] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s بعد', - past: '%s قبل', - s: 'چند سیکنڈ', - ss: '%d سیکنڈ', - m: 'ایک منٹ', - mm: '%d منٹ', - h: 'ایک گھنٹہ', - hh: '%d گھنٹے', - d: 'ایک دن', - dd: '%d دن', - M: 'ایک ماہ', - MM: '%d ماہ', - y: 'ایک سال', - yy: '%d سال' - }, - preparse: function(string) { - return string.replace(/،/g, ','); - }, - postformat: function(string) { - return string.replace(/,/g, '،'); - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('uz', { - months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'), - monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'), - weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'), - weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'), - weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'D MMMM YYYY, dddd HH:mm' - }, - calendar: { - sameDay: '[Бугун соат] LT [да]', - nextDay: '[Эртага] LT [да]', - nextWeek: 'dddd [куни соат] LT [да]', - lastDay: '[Кеча соат] LT [да]', - lastWeek: '[Утган] dddd [куни соат] LT [да]', - sameElse: 'L' - }, - relativeTime: { - future: 'Якин %s ичида', - past: 'Бир неча %s олдин', - s: 'фурсат', - ss: '%d фурсат', - m: 'бир дакика', - mm: '%d дакика', - h: 'бир соат', - hh: '%d соат', - d: 'бир кун', - dd: '%d кун', - M: 'бир ой', - MM: '%d ой', - y: 'бир йил', - yy: '%d йил' - }, - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('uz-latn', { - months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split( - '_' - ), - monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'), - weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'), - weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'), - weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'D MMMM YYYY, dddd HH:mm' - }, - calendar: { - sameDay: '[Bugun soat] LT [da]', - nextDay: '[Ertaga] LT [da]', - nextWeek: 'dddd [kuni soat] LT [da]', - lastDay: '[Kecha soat] LT [da]', - lastWeek: "[O'tgan] dddd [kuni soat] LT [da]", - sameElse: 'L' - }, - relativeTime: { - future: 'Yaqin %s ichida', - past: 'Bir necha %s oldin', - s: 'soniya', - ss: '%d soniya', - m: 'bir daqiqa', - mm: '%d daqiqa', - h: 'bir soat', - hh: '%d soat', - d: 'bir kun', - dd: '%d kun', - M: 'bir oy', - MM: '%d oy', - y: 'bir yil', - yy: '%d yil' - }, - week: { dow: 1, doy: 7 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('vi', { - months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split( - '_' - ), - monthsShort: 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'), - monthsParseExact: !0, - weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'), - weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), - weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), - weekdaysParseExact: !0, - meridiemParse: /sa|ch/i, - isPM: function(input) { - return /^ch$/i.test(input); - }, - meridiem: function(hours, minutes, isLower) { - return hours < 12 ? (isLower ? 'sa' : 'SA') : isLower ? 'ch' : 'CH'; - }, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM [năm] YYYY', - LLL: 'D MMMM [năm] YYYY HH:mm', - LLLL: 'dddd, D MMMM [năm] YYYY HH:mm', - l: 'DD/M/YYYY', - ll: 'D MMM YYYY', - lll: 'D MMM YYYY HH:mm', - llll: 'ddd, D MMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Hôm nay lúc] LT', - nextDay: '[Ngày mai lúc] LT', - nextWeek: 'dddd [tuần tới lúc] LT', - lastDay: '[Hôm qua lúc] LT', - lastWeek: 'dddd [tuần rồi lúc] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s tới', - past: '%s trước', - s: 'vài giây', - ss: '%d giây', - m: 'một phút', - mm: '%d phút', - h: 'một giờ', - hh: '%d giờ', - d: 'một ngày', - dd: '%d ngày', - M: 'một tháng', - MM: '%d tháng', - y: 'một năm', - yy: '%d năm' - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal: function(number) { - return number; - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('x-pseudo', { - months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split( - '_' - ), - monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'), - monthsParseExact: !0, - weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split( - '_' - ), - weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'), - weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[T~ódá~ý át] LT', - nextDay: '[T~ómó~rró~w át] LT', - nextWeek: 'dddd [át] LT', - lastDay: '[Ý~ést~érdá~ý át] LT', - lastWeek: '[L~ást] dddd [át] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'í~ñ %s', - past: '%s á~gó', - s: 'á ~féw ~sécó~ñds', - ss: '%d s~écóñ~ds', - m: 'á ~míñ~úté', - mm: '%d m~íñú~tés', - h: 'á~ñ hó~úr', - hh: '%d h~óúrs', - d: 'á ~dáý', - dd: '%d d~áýs', - M: 'á ~móñ~th', - MM: '%d m~óñt~hs', - y: 'á ~ýéár', - yy: '%d ý~éárs' - }, - dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, - ordinal: function(number) { - var b = number % 10; - return ( - number + - (1 == ~~((number % 100) / 10) - ? 'th' - : 1 === b ? 'st' : 2 === b ? 'nd' : 3 === b ? 'rd' : 'th') - ); - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('yo', { - months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'), - monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'), - weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'), - weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'), - weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A' - }, - calendar: { - sameDay: '[Ònì ni] LT', - nextDay: '[Ọ̀la ni] LT', - nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT", - lastDay: '[Àna ni] LT', - lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'ní %s', - past: '%s kọjá', - s: 'ìsẹjú aayá die', - ss: 'aayá %d', - m: 'ìsẹjú kan', - mm: 'ìsẹjú %d', - h: 'wákati kan', - hh: 'wákati %d', - d: 'ọjọ́ kan', - dd: 'ọjọ́ %d', - M: 'osù kan', - MM: 'osù %d', - y: 'ọdún kan', - yy: 'ọdún %d' - }, - dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/, - ordinal: 'ọjọ́ %d', - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('zh-cn', { - months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'), - weekdaysMin: '日_一_二_三_四_五_六'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日Ah点mm分', - LLLL: 'YYYY年M月D日ddddAh点mm分', - l: 'YYYY/M/D', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日dddd HH:mm' - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - '凌晨' === meridiem || '早上' === meridiem || '上午' === meridiem - ? hour - : '下午' === meridiem || '晚上' === meridiem - ? hour + 12 - : hour >= 11 ? hour : hour + 12 - ); - }, - meridiem: function(hour, minute, isLower) { - var hm = 100 * hour + minute; - return hm < 600 - ? '凌晨' - : hm < 900 - ? '早上' - : hm < 1130 ? '上午' : hm < 1230 ? '中午' : hm < 1800 ? '下午' : '晚上'; - }, - calendar: { - sameDay: '[今天]LT', - nextDay: '[明天]LT', - nextWeek: '[下]ddddLT', - lastDay: '[昨天]LT', - lastWeek: '[上]ddddLT', - sameElse: 'L' - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/, - ordinal: function(number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - case 'M': - return number + '月'; - case 'w': - case 'W': - return number + '周'; - default: - return number; - } - }, - relativeTime: { - future: '%s内', - past: '%s前', - s: '几秒', - ss: '%d 秒', - m: '1 分钟', - mm: '%d 分钟', - h: '1 小时', - hh: '%d 小时', - d: '1 天', - dd: '%d 天', - M: '1 个月', - MM: '%d 个月', - y: '1 年', - yy: '%d 年' - }, - week: { dow: 1, doy: 4 } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('zh-hk', { - months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), - weekdaysMin: '日_一_二_三_四_五_六'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日 HH:mm', - LLLL: 'YYYY年M月D日dddd HH:mm', - l: 'YYYY/M/D', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日dddd HH:mm' - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - '凌晨' === meridiem || '早上' === meridiem || '上午' === meridiem - ? hour - : '中午' === meridiem - ? hour >= 11 ? hour : hour + 12 - : '下午' === meridiem || '晚上' === meridiem ? hour + 12 : void 0 - ); - }, - meridiem: function(hour, minute, isLower) { - var hm = 100 * hour + minute; - return hm < 600 - ? '凌晨' - : hm < 900 - ? '早上' - : hm < 1130 ? '上午' : hm < 1230 ? '中午' : hm < 1800 ? '下午' : '晚上'; - }, - calendar: { - sameDay: '[今天]LT', - nextDay: '[明天]LT', - nextWeek: '[下]ddddLT', - lastDay: '[昨天]LT', - lastWeek: '[上]ddddLT', - sameElse: 'L' - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, - ordinal: function(number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - case 'M': - return number + '月'; - case 'w': - case 'W': - return number + '週'; - default: - return number; - } - }, - relativeTime: { - future: '%s內', - past: '%s前', - s: '幾秒', - ss: '%d 秒', - m: '1 分鐘', - mm: '%d 分鐘', - h: '1 小時', - hh: '%d 小時', - d: '1 天', - dd: '%d 天', - M: '1 個月', - MM: '%d 個月', - y: '1 年', - yy: '%d 年' - } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - (function(moment) { - 'use strict'; - moment.defineLocale('zh-tw', { - months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), - weekdaysMin: '日_一_二_三_四_五_六'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日 HH:mm', - LLLL: 'YYYY年M月D日dddd HH:mm', - l: 'YYYY/M/D', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日dddd HH:mm' - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour: function(hour, meridiem) { - return ( - 12 === hour && (hour = 0), - '凌晨' === meridiem || '早上' === meridiem || '上午' === meridiem - ? hour - : '中午' === meridiem - ? hour >= 11 ? hour : hour + 12 - : '下午' === meridiem || '晚上' === meridiem ? hour + 12 : void 0 - ); - }, - meridiem: function(hour, minute, isLower) { - var hm = 100 * hour + minute; - return hm < 600 - ? '凌晨' - : hm < 900 - ? '早上' - : hm < 1130 ? '上午' : hm < 1230 ? '中午' : hm < 1800 ? '下午' : '晚上'; - }, - calendar: { - sameDay: '[今天]LT', - nextDay: '[明天]LT', - nextWeek: '[下]ddddLT', - lastDay: '[昨天]LT', - lastWeek: '[上]ddddLT', - sameElse: 'L' - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, - ordinal: function(number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - case 'M': - return number + '月'; - case 'w': - case 'W': - return number + '週'; - default: - return number; - } - }, - relativeTime: { - future: '%s內', - past: '%s前', - s: '幾秒', - ss: '%d 秒', - m: '1 分鐘', - mm: '%d 分鐘', - h: '1 小時', - hh: '%d 小時', - d: '1 天', - dd: '%d 天', - M: '1 個月', - MM: '%d 個月', - y: '1 年', - yy: '%d 年' - } - }); - })(__webpack_require__(1)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.Provider = void 0); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)); - exports.default = function(domNode, provider) { - if (!(provider instanceof Provider)) - throw new Error('provider is not extended from the base Provider'); - var defaultState = (0, _extends3.default)( - {}, - _shortcuts2.default.defaultState, - _api2.default.defaultState, - _ui2.default.defaultState - ), - clientStore = new _podda2.default(defaultState); - clientStore.registerAPI('toggle', function(store, key) { - return store.set(key, !store.get(key)); - }); - var context = (0, _context2.default)(clientStore, domNode, provider), - app = (0, _mantraCore.createApp)(context); - app.loadModule(_shortcuts2.default), - app.loadModule(_api2.default), - app.loadModule(_ui2.default), - (0, _compose.setContext)(context), - (0, _compose.setActions)(app._bindContext(app.actions)), - app.init(); - }; - var _mantraCore = __webpack_require__(1132), - _podda2 = _interopRequireDefault(__webpack_require__(1142)), - _context2 = _interopRequireDefault(__webpack_require__(1144)), - _shortcuts2 = _interopRequireDefault(__webpack_require__(1145)), - _api2 = _interopRequireDefault(__webpack_require__(1149)), - _ui2 = _interopRequireDefault(__webpack_require__(1152)), - _compose = __webpack_require__(182); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Provider = (exports.Provider = (function() { - function Provider() { - (0, _classCallCheck3.default)(this, Provider); - } - return ( - (0, _createClass3.default)(Provider, [ - { - key: 'renderPreview', - value: function renderPreview() { - throw new Error('Provider.renderPreview() is not implemented!'); - } - }, - { - key: 'handleAPI', - value: function handleAPI() { - throw new Error('Provider.handleAPI() is not implemented!'); - } - } - ]), - Provider - ); - })()); - }, - function(module, exports, __webpack_require__) { - module.exports = __webpack_require__(1134); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var REACT_STATICS = { - childContextTypes: !0, - contextTypes: !0, - defaultProps: !0, - displayName: !0, - getDefaultProps: !0, - mixins: !0, - propTypes: !0, - type: !0 - }, - KNOWN_STATICS = { name: !0, length: !0, prototype: !0, caller: !0, arguments: !0, arity: !0 }, - isGetOwnPropertySymbolsAvailable = 'function' == typeof Object.getOwnPropertySymbols; - module.exports = function hoistNonReactStatics( - targetComponent, - sourceComponent, - customStatics - ) { - if ('string' != typeof sourceComponent) { - var keys = Object.getOwnPropertyNames(sourceComponent); - isGetOwnPropertySymbolsAvailable && - (keys = keys.concat(Object.getOwnPropertySymbols(sourceComponent))); - for (var i = 0; i < keys.length; ++i) - if ( - !( - REACT_STATICS[keys[i]] || - KNOWN_STATICS[keys[i]] || - (customStatics && customStatics[keys[i]]) - ) - ) - try { - targetComponent[keys[i]] = sourceComponent[keys[i]]; - } catch (error) {} - } - return targetComponent; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.composeAll = exports.compose = exports.stub = exports.setStubbingMode = void 0); - var _extends3 = _interopRequireDefault(__webpack_require__(8)); - (exports.setDefaults = function setDefaults() { - var mainOptions = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; - return function(dataLoader) { - var otherOptions = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, - options = (0, _extends3.default)({}, mainOptions, otherOptions); - return (0, _compose3.default)(dataLoader, options); - }; - }), - (exports.merge = merge); - var _reactStubber = __webpack_require__(801), - _compose3 = _interopRequireDefault(__webpack_require__(1135)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - (exports.setStubbingMode = _reactStubber.setStubbingMode), - (exports.stub = _reactStubber.stub), - (exports.compose = _compose3.default); - function merge() { - for (var _len = arguments.length, enhancers = Array(_len), _key = 0; _key < _len; _key++) - enhancers[_key] = arguments[_key]; - return function(Child) { - return enhancers.reduce(function(C, enhancer) { - return enhancer(C); - }, Child); - }; - } - exports.composeAll = merge; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)); - (exports.mayBeStubbed = function mayBeStubbed(Comp) { - if (stubbingMode) { - var displayName = Comp.displayName || Comp.name || 'Component'; - return (function(_React$Component) { - function StubComponent() { - return ( - (0, _classCallCheck3.default)(this, StubComponent), - (0, _possibleConstructorReturn3.default)( - this, - (StubComponent.__proto__ || (0, _getPrototypeOf2.default)(StubComponent)).apply( - this, - arguments - ) - ) - ); - } - return ( - (0, _inherits3.default)(StubComponent, _React$Component), - (0, _createClass3.default)(StubComponent, [ - { - key: 'render', - value: function render() { - if (StubComponent.__getComponent) return StubComponent.__getComponent(this.props); - var label = '<' + displayName + '/>'; - return _react2.default.createElement('span', null, label); - } - } - ]), - StubComponent - ); - })(_react2.default.Component); - } - return Comp; - }), - (exports.setStubbingMode = function setStubbingMode(mode) { - stubbingMode = mode; - }), - (exports.stub = function stub(Comp, fn) { - Comp.__getComponent = fn; - }); - var _react2 = _interopRequireDefault(__webpack_require__(0)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var stubbingMode = !1; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var fetchKeys = __webpack_require__(1136); - module.exports = function shallowEqual(objA, objB, compare, compareContext) { - var ret = compare ? compare.call(compareContext, objA, objB) : void 0; - if (void 0 !== ret) return !!ret; - if (objA === objB) return !0; - if ('object' != typeof objA || null === objA || 'object' != typeof objB || null === objB) - return !1; - var keysA = fetchKeys(objA), - keysB = fetchKeys(objB), - len = keysA.length; - if (len !== keysB.length) return !1; - compareContext = compareContext || null; - for (var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB), i = 0; i < len; i++) { - var key = keysA[i]; - if (!bHasOwnProperty(key)) return !1; - var valueA = objA[key], - valueB = objB[key], - _ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0; - if (!1 === _ret || (void 0 === _ret && valueA !== valueB)) return !1; - } - return !0; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _api2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(1148)); - exports.default = { api: _api2.default }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function findTabbableDescendants(element) { - return [].slice.call(element.querySelectorAll('*'), 0).filter(tabbable); - }); - var tabbableNode = /input|select|textarea|button|object/; - function hidesContents(element) { - var zeroSize = element.offsetWidth <= 0 && element.offsetHeight <= 0; - if (zeroSize && !element.innerHTML) return !0; - var style = window.getComputedStyle(element); - return zeroSize - ? 'visible' !== style.getPropertyValue('overflow') - : 'none' == style.getPropertyValue('display'); - } - function focusable(element, isTabIndexNotNaN) { - var nodeName = element.nodeName.toLowerCase(); - return ( - ((tabbableNode.test(nodeName) && !element.disabled) || - ('a' === nodeName && element.href) || - isTabIndexNotNaN) && - (function visible(element) { - for (var parentElement = element; parentElement && parentElement !== document.body; ) { - if (hidesContents(parentElement)) return !1; - parentElement = parentElement.parentNode; - } - return !0; - })(element) - ); - } - function tabbable(element) { - var tabIndex = element.getAttribute('tabindex'); - null === tabIndex && (tabIndex = void 0); - var isTabIndexNaN = isNaN(tabIndex); - return (isTabIndexNaN || tabIndex >= 0) && focusable(element, !isTabIndexNaN); - } - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.assertNodeList = assertNodeList), - (exports.setElement = function setElement(element) { - var useElement = element; - if ('string' == typeof useElement) { - var el = document.querySelectorAll(useElement); - assertNodeList(el, useElement), (useElement = 'length' in el ? el[0] : el); - } - return (globalElement = useElement || globalElement); - }), - (exports.validateElement = validateElement), - (exports.hide = function hide(appElement) { - validateElement(appElement) && - (appElement || globalElement).setAttribute('aria-hidden', 'true'); - }), - (exports.show = function show(appElement) { - validateElement(appElement) && (appElement || globalElement).removeAttribute('aria-hidden'); - }), - (exports.documentNotReadyOrSSRTesting = function documentNotReadyOrSSRTesting() { - globalElement = null; - }), - (exports.resetForTesting = function resetForTesting() { - globalElement = null; - }); - var _warning2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(806)); - var globalElement = null; - function assertNodeList(nodeList, selector) { - if (!nodeList || !nodeList.length) - throw new Error('react-modal: No elements were found for selector ' + selector + '.'); - } - function validateElement(appElement) { - return ( - !(!appElement && !globalElement) || - ((0, _warning2.default)( - !1, - [ - 'react-modal: App element is not defined.', - 'Please use `Modal.setAppElement(el)` or set `appElement={el}`.', - "This is needed so screen readers don't see main content", - 'when modal is opened. It is not recommended, but you can opt-out', - 'by setting `ariaHideApp={false}`.' - ].join(' ') - ), - !1) - ); - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var warning = function() {}; - module.exports = warning; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.get = function get() { - return classListMap; - }), - (exports.add = function add(bodyClass) { - classListMap[bodyClass] || (classListMap[bodyClass] = 0); - return (classListMap[bodyClass] += 1), bodyClass; - }), - (exports.remove = function remove(bodyClass) { - classListMap[bodyClass] && (classListMap[bodyClass] -= 1); - return bodyClass; - }), - (exports.totalCount = function totalCount() { - return Object.keys(classListMap).reduce(function(acc, curr) { - return acc + classListMap[curr]; - }, 0); - }); - var classListMap = {}; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.canUseDOM = void 0); - var EE = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(809)).default, - SafeHTMLElement = EE.canUseDOM ? window.HTMLElement : {}; - exports.canUseDOM = EE.canUseDOM; - exports.default = SafeHTMLElement; - }, - function(module, exports, __webpack_require__) { - var __WEBPACK_AMD_DEFINE_RESULT__; - !(function() { - 'use strict'; - var canUseDOM = !( - 'undefined' == typeof window || - !window.document || - !window.document.createElement - ), - ExecutionEnvironment = { - canUseDOM: canUseDOM, - canUseWorkers: 'undefined' != typeof Worker, - canUseEventListeners: canUseDOM && !(!window.addEventListener && !window.attachEvent), - canUseViewport: canUseDOM && !!window.screen - }; - void 0 === - (__WEBPACK_AMD_DEFINE_RESULT__ = function() { - return ExecutionEnvironment; - }.call(exports, __webpack_require__, exports, module)) || - (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); - })(); - }, - function(module, exports, __webpack_require__) { - var definition; - (definition = function() { - var t = !0; - function detect(ua) { - function getFirstMatch(regex) { - var match = ua.match(regex); - return (match && match.length > 1 && match[1]) || ''; - } - function getSecondMatch(regex) { - var match = ua.match(regex); - return (match && match.length > 1 && match[2]) || ''; - } - var result, - iosdevice = getFirstMatch(/(ipod|iphone|ipad)/i).toLowerCase(), - android = !/like android/i.test(ua) && /android/i.test(ua), - nexusMobile = /nexus\s*[0-6]\s*/i.test(ua), - nexusTablet = !nexusMobile && /nexus\s*[0-9]+/i.test(ua), - chromeos = /CrOS/.test(ua), - silk = /silk/i.test(ua), - sailfish = /sailfish/i.test(ua), - tizen = /tizen/i.test(ua), - webos = /(web|hpw)os/i.test(ua), - windowsphone = /windows phone/i.test(ua), - windows = (/SamsungBrowser/i.test(ua), !windowsphone && /windows/i.test(ua)), - mac = !iosdevice && !silk && /macintosh/i.test(ua), - linux = !android && !sailfish && !tizen && !webos && /linux/i.test(ua), - edgeVersion = getSecondMatch(/edg([ea]|ios)\/(\d+(\.\d+)?)/i), - versionIdentifier = getFirstMatch(/version\/(\d+(\.\d+)?)/i), - tablet = /tablet/i.test(ua) && !/tablet pc/i.test(ua), - mobile = !tablet && /[^-]mobi/i.test(ua), - xbox = /xbox/i.test(ua); - /opera/i.test(ua) - ? (result = { - name: 'Opera', - opera: t, - version: versionIdentifier || getFirstMatch(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i) - }) - : /opr\/|opios/i.test(ua) - ? (result = { - name: 'Opera', - opera: t, - version: getFirstMatch(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i) || versionIdentifier - }) - : /SamsungBrowser/i.test(ua) - ? (result = { - name: 'Samsung Internet for Android', - samsungBrowser: t, - version: - versionIdentifier || getFirstMatch(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i) - }) - : /coast/i.test(ua) - ? (result = { - name: 'Opera Coast', - coast: t, - version: versionIdentifier || getFirstMatch(/(?:coast)[\s\/](\d+(\.\d+)?)/i) - }) - : /yabrowser/i.test(ua) - ? (result = { - name: 'Yandex Browser', - yandexbrowser: t, - version: - versionIdentifier || getFirstMatch(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i) - }) - : /ucbrowser/i.test(ua) - ? (result = { - name: 'UC Browser', - ucbrowser: t, - version: getFirstMatch(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i) - }) - : /mxios/i.test(ua) - ? (result = { - name: 'Maxthon', - maxthon: t, - version: getFirstMatch(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i) - }) - : /epiphany/i.test(ua) - ? (result = { - name: 'Epiphany', - epiphany: t, - version: getFirstMatch(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i) - }) - : /puffin/i.test(ua) - ? (result = { - name: 'Puffin', - puffin: t, - version: getFirstMatch(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i) - }) - : /sleipnir/i.test(ua) - ? (result = { - name: 'Sleipnir', - sleipnir: t, - version: getFirstMatch(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i) - }) - : /k-meleon/i.test(ua) - ? (result = { - name: 'K-Meleon', - kMeleon: t, - version: getFirstMatch(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i) - }) - : windowsphone - ? ((result = { - name: 'Windows Phone', - osname: 'Windows Phone', - windowsphone: t - }), - edgeVersion - ? ((result.msedge = t), (result.version = edgeVersion)) - : ((result.msie = t), - (result.version = getFirstMatch(/iemobile\/(\d+(\.\d+)?)/i)))) - : /msie|trident/i.test(ua) - ? (result = { - name: 'Internet Explorer', - msie: t, - version: getFirstMatch(/(?:msie |rv:)(\d+(\.\d+)?)/i) - }) - : chromeos - ? (result = { - name: 'Chrome', - osname: 'Chrome OS', - chromeos: t, - chromeBook: t, - chrome: t, - version: getFirstMatch( - /(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i - ) - }) - : /edg([ea]|ios)/i.test(ua) - ? (result = { - name: 'Microsoft Edge', - msedge: t, - version: edgeVersion - }) - : /vivaldi/i.test(ua) - ? (result = { - name: 'Vivaldi', - vivaldi: t, - version: - getFirstMatch(/vivaldi\/(\d+(\.\d+)?)/i) || - versionIdentifier - }) - : sailfish - ? (result = { - name: 'Sailfish', - osname: 'Sailfish OS', - sailfish: t, - version: getFirstMatch( - /sailfish\s?browser\/(\d+(\.\d+)?)/i - ) - }) - : /seamonkey\//i.test(ua) - ? (result = { - name: 'SeaMonkey', - seamonkey: t, - version: getFirstMatch(/seamonkey\/(\d+(\.\d+)?)/i) - }) - : /firefox|iceweasel|fxios/i.test(ua) - ? ((result = { - name: 'Firefox', - firefox: t, - version: getFirstMatch( - /(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i - ) - }), - /\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(ua) && - ((result.firefoxos = t), - (result.osname = 'Firefox OS'))) - : silk - ? (result = { - name: 'Amazon Silk', - silk: t, - version: getFirstMatch(/silk\/(\d+(\.\d+)?)/i) - }) - : /phantom/i.test(ua) - ? (result = { - name: 'PhantomJS', - phantom: t, - version: getFirstMatch( - /phantomjs\/(\d+(\.\d+)?)/i - ) - }) - : /slimerjs/i.test(ua) - ? (result = { - name: 'SlimerJS', - slimer: t, - version: getFirstMatch( - /slimerjs\/(\d+(\.\d+)?)/i - ) - }) - : /blackberry|\bbb\d+/i.test(ua) || - /rim\stablet/i.test(ua) - ? (result = { - name: 'BlackBerry', - osname: 'BlackBerry OS', - blackberry: t, - version: - versionIdentifier || - getFirstMatch( - /blackberry[\d]+\/(\d+(\.\d+)?)/i - ) - }) - : webos - ? ((result = { - name: 'WebOS', - osname: 'WebOS', - webos: t, - version: - versionIdentifier || - getFirstMatch( - /w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i - ) - }), - /touchpad\//i.test(ua) && - (result.touchpad = t)) - : /bada/i.test(ua) - ? (result = { - name: 'Bada', - osname: 'Bada', - bada: t, - version: getFirstMatch( - /dolfin\/(\d+(\.\d+)?)/i - ) - }) - : tizen - ? (result = { - name: 'Tizen', - osname: 'Tizen', - tizen: t, - version: - getFirstMatch( - /(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i - ) || versionIdentifier - }) - : /qupzilla/i.test(ua) - ? (result = { - name: 'QupZilla', - qupzilla: t, - version: - getFirstMatch( - /(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i - ) || versionIdentifier - }) - : /chromium/i.test(ua) - ? (result = { - name: 'Chromium', - chromium: t, - version: - getFirstMatch( - /(?:chromium)[\s\/](\d+(?:\.\d+)?)/i - ) || versionIdentifier - }) - : /chrome|crios|crmo/i.test(ua) - ? (result = { - name: 'Chrome', - chrome: t, - version: getFirstMatch( - /(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i - ) - }) - : android - ? (result = { - name: 'Android', - version: versionIdentifier - }) - : /safari|applewebkit/i.test(ua) - ? ((result = { - name: 'Safari', - safari: t - }), - versionIdentifier && - (result.version = versionIdentifier)) - : iosdevice - ? ((result = { - name: - 'iphone' == iosdevice - ? 'iPhone' - : 'ipad' == - iosdevice - ? 'iPad' - : 'iPod' - }), - versionIdentifier && - (result.version = versionIdentifier)) - : (result = /googlebot/i.test( - ua - ) - ? { - name: 'Googlebot', - googlebot: t, - version: - getFirstMatch( - /googlebot\/(\d+(\.\d+))/i - ) || - versionIdentifier - } - : { - name: getFirstMatch( - /^(.*)\/(.*) / - ), - version: getSecondMatch( - /^(.*)\/(.*) / - ) - }), - !result.msedge && /(apple)?webkit/i.test(ua) - ? (/(apple)?webkit\/537\.36/i.test(ua) - ? ((result.name = result.name || 'Blink'), (result.blink = t)) - : ((result.name = result.name || 'Webkit'), (result.webkit = t)), - !result.version && versionIdentifier && (result.version = versionIdentifier)) - : !result.opera && - /gecko\//i.test(ua) && - ((result.name = result.name || 'Gecko'), - (result.gecko = t), - (result.version = result.version || getFirstMatch(/gecko\/(\d+(\.\d+)?)/i))), - result.windowsphone || (!android && !result.silk) - ? !result.windowsphone && iosdevice - ? ((result[iosdevice] = t), (result.ios = t), (result.osname = 'iOS')) - : mac - ? ((result.mac = t), (result.osname = 'macOS')) - : xbox - ? ((result.xbox = t), (result.osname = 'Xbox')) - : windows - ? ((result.windows = t), (result.osname = 'Windows')) - : linux && ((result.linux = t), (result.osname = 'Linux')) - : ((result.android = t), (result.osname = 'Android')); - var osVersion = ''; - result.windows - ? (osVersion = (function getWindowsVersion(s) { - switch (s) { - case 'NT': - return 'NT'; - case 'XP': - return 'XP'; - case 'NT 5.0': - return '2000'; - case 'NT 5.1': - return 'XP'; - case 'NT 5.2': - return '2003'; - case 'NT 6.0': - return 'Vista'; - case 'NT 6.1': - return '7'; - case 'NT 6.2': - return '8'; - case 'NT 6.3': - return '8.1'; - case 'NT 10.0': - return '10'; - default: - return; - } - })(getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i))) - : result.windowsphone - ? (osVersion = getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i)) - : result.mac - ? (osVersion = (osVersion = getFirstMatch(/Mac OS X (\d+([_\.\s]\d+)*)/i)).replace( - /[_\s]/g, - '.' - )) - : iosdevice - ? (osVersion = (osVersion = getFirstMatch( - /os (\d+([_\s]\d+)*) like mac os x/i - )).replace(/[_\s]/g, '.')) - : android - ? (osVersion = getFirstMatch(/android[ \/-](\d+(\.\d+)*)/i)) - : result.webos - ? (osVersion = getFirstMatch(/(?:web|hpw)os\/(\d+(\.\d+)*)/i)) - : result.blackberry - ? (osVersion = getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i)) - : result.bada - ? (osVersion = getFirstMatch(/bada\/(\d+(\.\d+)*)/i)) - : result.tizen && (osVersion = getFirstMatch(/tizen[\/\s](\d+(\.\d+)*)/i)), - osVersion && (result.osversion = osVersion); - var osMajorVersion = !result.windows && osVersion.split('.')[0]; - return ( - tablet || - nexusTablet || - 'ipad' == iosdevice || - (android && (3 == osMajorVersion || (osMajorVersion >= 4 && !mobile))) || - result.silk - ? (result.tablet = t) - : (mobile || - 'iphone' == iosdevice || - 'ipod' == iosdevice || - android || - nexusMobile || - result.blackberry || - result.webos || - result.bada) && - (result.mobile = t), - result.msedge || - (result.msie && result.version >= 10) || - (result.yandexbrowser && result.version >= 15) || - (result.vivaldi && result.version >= 1) || - (result.chrome && result.version >= 20) || - (result.samsungBrowser && result.version >= 4) || - (result.firefox && result.version >= 20) || - (result.safari && result.version >= 6) || - (result.opera && result.version >= 10) || - (result.ios && result.osversion && result.osversion.split('.')[0] >= 6) || - (result.blackberry && result.version >= 10.1) || - (result.chromium && result.version >= 20) - ? (result.a = t) - : (result.msie && result.version < 10) || - (result.chrome && result.version < 20) || - (result.firefox && result.version < 20) || - (result.safari && result.version < 6) || - (result.opera && result.version < 10) || - (result.ios && result.osversion && result.osversion.split('.')[0] < 6) || - (result.chromium && result.version < 20) - ? (result.c = t) - : (result.x = t), - result - ); - } - var bowser = detect(('undefined' != typeof navigator && navigator.userAgent) || ''); - function getVersionPrecision(version) { - return version.split('.').length; - } - function map(arr, iterator) { - var i, - result = []; - if (Array.prototype.map) return Array.prototype.map.call(arr, iterator); - for (i = 0; i < arr.length; i++) result.push(iterator(arr[i])); - return result; - } - function compareVersions(versions) { - for ( - var precision = Math.max( - getVersionPrecision(versions[0]), - getVersionPrecision(versions[1]) - ), - chunks = map(versions, function(version) { - var delta = precision - getVersionPrecision(version); - return map((version += new Array(delta + 1).join('.0')).split('.'), function(chunk) { - return new Array(20 - chunk.length).join('0') + chunk; - }).reverse(); - }); - --precision >= 0; - - ) { - if (chunks[0][precision] > chunks[1][precision]) return 1; - if (chunks[0][precision] !== chunks[1][precision]) return -1; - if (0 === precision) return 0; - } - } - function isUnsupportedBrowser(minVersions, strictMode, ua) { - var _bowser = bowser; - 'string' == typeof strictMode && ((ua = strictMode), (strictMode = void 0)), - void 0 === strictMode && (strictMode = !1), - ua && (_bowser = detect(ua)); - var version = '' + _bowser.version; - for (var browser in minVersions) - if (minVersions.hasOwnProperty(browser) && _bowser[browser]) { - if ('string' != typeof minVersions[browser]) - throw new Error( - 'Browser version in the minVersion map should be a string: ' + - browser + - ': ' + - String(minVersions) - ); - return compareVersions([version, minVersions[browser]]) < 0; - } - return strictMode; - } - return ( - (bowser.test = function(browserList) { - for (var i = 0; i < browserList.length; ++i) { - var browserItem = browserList[i]; - if ('string' == typeof browserItem && browserItem in bowser) return !0; - } - return !1; - }), - (bowser.isUnsupportedBrowser = isUnsupportedBrowser), - (bowser.compareVersions = compareVersions), - (bowser.check = function check(minVersions, strictMode, ua) { - return !isUnsupportedBrowser(minVersions, strictMode, ua); - }), - (bowser._detect = detect), - (bowser.detect = detect), - bowser - ); - }), - void 0 !== module && module.exports - ? (module.exports = definition()) - : __webpack_require__(1165)('bowser', definition); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - function addIfNew(list, value) { - -1 === list.indexOf(value) && list.push(value); - } - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function addNewValuesOnly(list, values) { - if (Array.isArray(values)) - for (var i = 0, len = values.length; i < len; ++i) addIfNew(list, values[i]); - else addIfNew(list, values); - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function isObject(value) { - return value instanceof Object && !Array.isArray(value); - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function hyphenateProperty(property) { - return (0, _hyphenateStyleName2.default)(property); - }); - var _hyphenateStyleName2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(612)); - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function prefixProperty(prefixProperties, property, style) { - if (prefixProperties.hasOwnProperty(property)) - for ( - var requiredPrefixes = prefixProperties[property], i = 0, len = requiredPrefixes.length; - i < len; - ++i - ) - style[requiredPrefixes[i] + (0, _capitalizeString2.default)(property)] = - style[property]; - }); - var _capitalizeString2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(610)); - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var w = ['Webkit'], - m = ['Moz'], - ms = ['ms'], - wm = ['Webkit', 'Moz'], - wms = ['Webkit', 'ms'], - wmms = ['Webkit', 'Moz', 'ms']; - (exports.default = { - plugins: [], - prefixMap: { - appearance: wm, - userSelect: wmms, - textEmphasisPosition: w, - textEmphasis: w, - textEmphasisStyle: w, - textEmphasisColor: w, - boxDecorationBreak: w, - clipPath: w, - maskImage: w, - maskMode: w, - maskRepeat: w, - maskPosition: w, - maskClip: w, - maskOrigin: w, - maskSize: w, - maskComposite: w, - mask: w, - maskBorderSource: w, - maskBorderMode: w, - maskBorderSlice: w, - maskBorderWidth: w, - maskBorderOutset: w, - maskBorderRepeat: w, - maskBorder: w, - maskType: w, - textDecorationStyle: w, - textDecorationSkip: w, - textDecorationLine: w, - textDecorationColor: w, - filter: w, - fontFeatureSettings: w, - breakAfter: wmms, - breakBefore: wmms, - breakInside: wmms, - columnCount: wm, - columnFill: wm, - columnGap: wm, - columnRule: wm, - columnRuleColor: wm, - columnRuleStyle: wm, - columnRuleWidth: wm, - columns: wm, - columnSpan: wm, - columnWidth: wm, - writingMode: wms, - flex: w, - flexBasis: w, - flexDirection: w, - flexGrow: w, - flexFlow: w, - flexShrink: w, - flexWrap: w, - alignContent: w, - alignItems: w, - alignSelf: w, - justifyContent: w, - order: w, - transform: w, - transformOrigin: w, - transformOriginX: w, - transformOriginY: w, - backfaceVisibility: w, - perspective: w, - perspectiveOrigin: w, - transformStyle: w, - transformOriginZ: w, - animation: w, - animationDelay: w, - animationDirection: w, - animationFillMode: w, - animationDuration: w, - animationIterationCount: w, - animationName: w, - animationPlayState: w, - animationTimingFunction: w, - backdropFilter: w, - fontKerning: w, - scrollSnapType: wms, - scrollSnapPointsX: wms, - scrollSnapPointsY: wms, - scrollSnapDestination: wms, - scrollSnapCoordinate: wms, - shapeImageThreshold: w, - shapeImageMargin: w, - shapeImageOutside: w, - hyphens: wmms, - flowInto: wms, - flowFrom: wms, - regionFragment: wms, - textAlignLast: m, - tabSize: m, - wrapFlow: ms, - wrapThrough: ms, - wrapMargin: ms, - gridTemplateColumns: ms, - gridTemplateRows: ms, - gridTemplateAreas: ms, - gridTemplate: ms, - gridAutoColumns: ms, - gridAutoRows: ms, - gridAutoFlow: ms, - grid: ms, - gridRowStart: ms, - gridColumnStart: ms, - gridRowEnd: ms, - gridRow: ms, - gridColumn: ms, - gridColumnEnd: ms, - gridColumnGap: ms, - gridRowGap: ms, - gridArea: ms, - gridGap: ms, - textSizeAdjust: wms, - borderImage: w, - borderImageOutset: w, - borderImageRepeat: w, - borderImageSlice: w, - borderImageSource: w, - borderImageWidth: w, - transitionDelay: w, - transitionDuration: w, - transitionProperty: w, - transitionTimingFunction: w - } - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function cursor(property, value) { - if ('cursor' === property && values.hasOwnProperty(value)) - return prefixes.map(function(prefix) { - return prefix + value; - }); - }); - var prefixes = ['-webkit-', '-moz-', ''], - values = { 'zoom-in': !0, 'zoom-out': !0, grab: !0, grabbing: !0 }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function crossFade(property, value) { - if ( - 'string' == typeof value && - !(0, _isPrefixedValue2.default)(value) && - value.indexOf('cross-fade(') > -1 - ) - return prefixes.map(function(prefix) { - return value.replace(/cross-fade\(/g, prefix + 'cross-fade('); - }); - }); - var _isPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(271)); - var prefixes = ['-webkit-', '']; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function filter(property, value) { - if ( - 'string' == typeof value && - !(0, _isPrefixedValue2.default)(value) && - value.indexOf('filter(') > -1 - ) - return prefixes.map(function(prefix) { - return value.replace(/filter\(/g, prefix + 'filter('); - }); - }); - var _isPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(271)); - var prefixes = ['-webkit-', '']; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function flex(property, value) { - if ('display' === property && values.hasOwnProperty(value)) return values[value]; - }); - var values = { - flex: ['-webkit-box', '-moz-box', '-ms-flexbox', '-webkit-flex', 'flex'], - 'inline-flex': [ - '-webkit-inline-box', - '-moz-inline-box', - '-ms-inline-flexbox', - '-webkit-inline-flex', - 'inline-flex' - ] - }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function flexboxOld(property, value, style) { - 'flexDirection' === property && - 'string' == typeof value && - (value.indexOf('column') > -1 - ? (style.WebkitBoxOrient = 'vertical') - : (style.WebkitBoxOrient = 'horizontal'), - value.indexOf('reverse') > -1 - ? (style.WebkitBoxDirection = 'reverse') - : (style.WebkitBoxDirection = 'normal')); - alternativeProps.hasOwnProperty(property) && - (style[alternativeProps[property]] = alternativeValues[value] || value); - }); - var alternativeValues = { - 'space-around': 'justify', - 'space-between': 'justify', - 'flex-start': 'start', - 'flex-end': 'end', - 'wrap-reverse': 'multiple', - wrap: 'multiple' - }, - alternativeProps = { - alignItems: 'WebkitBoxAlign', - justifyContent: 'WebkitBoxPack', - flexWrap: 'WebkitBoxLines' - }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function gradient(property, value) { - if ( - 'string' == typeof value && - !(0, _isPrefixedValue2.default)(value) && - values.test(value) - ) - return prefixes.map(function(prefix) { - return prefix + value; - }); - }); - var _isPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(271)); - var prefixes = ['-webkit-', '-moz-', ''], - values = /linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function imageSet(property, value) { - if ( - 'string' == typeof value && - !(0, _isPrefixedValue2.default)(value) && - value.indexOf('image-set(') > -1 - ) - return prefixes.map(function(prefix) { - return value.replace(/image-set\(/g, prefix + 'image-set('); - }); - }); - var _isPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(271)); - var prefixes = ['-webkit-', '']; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function position(property, value) { - if ('position' === property && 'sticky' === value) return ['-webkit-sticky', 'sticky']; - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function sizing(property, value) { - if (properties.hasOwnProperty(property) && values.hasOwnProperty(value)) - return prefixes.map(function(prefix) { - return prefix + value; - }); - }); - var prefixes = ['-webkit-', '-moz-', ''], - properties = { - maxHeight: !0, - maxWidth: !0, - width: !0, - height: !0, - columnWidth: !0, - minWidth: !0, - minHeight: !0 - }, - values = { - 'min-content': !0, - 'max-content': !0, - 'fill-available': !0, - 'fit-content': !0, - 'contain-floats': !0 - }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function transition(property, value, style, propertyPrefixMap) { - if ('string' == typeof value && properties.hasOwnProperty(property)) { - var outputValue = (function prefixValue(value, propertyPrefixMap) { - if ((0, _isPrefixedValue2.default)(value)) return value; - for ( - var multipleValues = value.split(/,(?![^()]*(?:\([^()]*\))?\))/g), - i = 0, - len = multipleValues.length; - i < len; - ++i - ) { - var singleValue = multipleValues[i], - values = [singleValue]; - for (var property in propertyPrefixMap) { - var dashCaseProperty = (0, _hyphenateProperty2.default)(property); - if (singleValue.indexOf(dashCaseProperty) > -1 && 'order' !== dashCaseProperty) - for ( - var prefixes = propertyPrefixMap[property], j = 0, pLen = prefixes.length; - j < pLen; - ++j - ) - values.unshift( - singleValue.replace( - dashCaseProperty, - prefixMapping[prefixes[j]] + dashCaseProperty - ) - ); - } - multipleValues[i] = values.join(','); - } - return multipleValues.join(','); - })(value, propertyPrefixMap), - webkitOutput = outputValue - .split(/,(?![^()]*(?:\([^()]*\))?\))/g) - .filter(function(val) { - return !/-moz-|-ms-/.test(val); - }) - .join(','); - if (property.indexOf('Webkit') > -1) return webkitOutput; - var mozOutput = outputValue - .split(/,(?![^()]*(?:\([^()]*\))?\))/g) - .filter(function(val) { - return !/-webkit-|-ms-/.test(val); - }) - .join(','); - return property.indexOf('Moz') > -1 - ? mozOutput - : ((style['Webkit' + (0, _capitalizeString2.default)(property)] = webkitOutput), - (style['Moz' + (0, _capitalizeString2.default)(property)] = mozOutput), - outputValue); - } - }); - var _hyphenateProperty2 = _interopRequireDefault(__webpack_require__(813)), - _isPrefixedValue2 = _interopRequireDefault(__webpack_require__(271)), - _capitalizeString2 = _interopRequireDefault(__webpack_require__(610)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var properties = { - transition: !0, - transitionProperty: !0, - WebkitTransition: !0, - WebkitTransitionProperty: !0, - MozTransition: !0, - MozTransitionProperty: !0 - }, - prefixMapping = { Webkit: '-webkit-', Moz: '-moz-', ms: '-ms-' }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _objectWithoutProperties3 = _interopRequireDefault(__webpack_require__(65)), - _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react2 = _interopRequireDefault(__webpack_require__(0)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var wrapOnClick = function wrapOnClick(fn) { - return function(e) { - return ( - !!(function isPlainLeftClick(e) { - return !(0 !== e.button || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey); - })(e) && - (e.preventDefault() || fn(e)) - ); - }; - }, - RoutedLink = (function(_React$Component) { - function RoutedLink(props) { - var _ref; - (0, _classCallCheck3.default)(this, RoutedLink); - for ( - var _len = arguments.length, rest = Array(_len > 1 ? _len - 1 : 0), _key = 1; - _key < _len; - _key++ - ) - rest[_key - 1] = arguments[_key]; - var _this = (0, _possibleConstructorReturn3.default)( - this, - (_ref = RoutedLink.__proto__ || (0, _getPrototypeOf2.default)(RoutedLink)).call.apply( - _ref, - [this].concat([props].concat(rest)) - ) - ), - onClick = props.onClick; - return (_this.onClick = onClick ? wrapOnClick(onClick) : void 0), _this; - } - return ( - (0, _inherits3.default)(RoutedLink, _React$Component), - (0, _createClass3.default)(RoutedLink, [ - { - key: 'componentWillUpdate', - value: function componentWillUpdate(_ref2) { - var onClick = _ref2.onClick; - this.onClick = wrapOnClick(onClick); - } - }, - { - key: 'render', - value: function render() { - var onClick = this.onClick, - _props = this.props, - href = _props.href, - children = _props.children, - rest = (0, _objectWithoutProperties3.default)(_props, ['href', 'children']), - props = (0, _extends3.default)({ href: href }, rest, { onClick: onClick }); - return _react2.default.createElement('a', props, children); - } - } - ]), - RoutedLink - ); - })(_react2.default.Component); - (exports.default = RoutedLink), - (RoutedLink.defaultProps = { onClick: null, href: '#', children: null }), - (RoutedLink.propTypes = { - onClick: _propTypes2.default.func, - href: _propTypes2.default.string, - children: _propTypes2.default.node - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.processStyleName = void 0), - (exports.createMarkupForStyles = function createMarkupForStyles(styles, component) { - var serialized = ''; - for (var styleName in styles) { - var isCustomProp = 0 === styleName.indexOf('--'); - if (styles.hasOwnProperty(styleName) && 'label' !== styleName) { - var styleValue = styles[styleName]; - 0, - null != styleValue && - (isCustomProp - ? (serialized += styleName + ':' + styleValue + ';') - : ((serialized += processStyleName(styleName) + ':'), - (serialized += - (0, _dangerousStyleValue2.default)(styleName, styleValue, component) + ';'))); - } - } - return serialized || null; - }); - _interopRequireDefault(__webpack_require__(283)); - var _dangerousStyleValue2 = _interopRequireDefault(__webpack_require__(1189)), - _hyphenateStyleName2 = _interopRequireDefault(__webpack_require__(284)), - _memoizeStringOnly2 = _interopRequireDefault(__webpack_require__(285)); - _interopRequireDefault(__webpack_require__(6)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var processStyleName = (exports.processStyleName = (0, _memoizeStringOnly2.default)( - _hyphenateStyleName2.default - )); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = __webpack_require__(1202); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = { - VelocityComponent: __webpack_require__(1205), - VelocityTransitionGroup: __webpack_require__(1233), - velocityHelpers: __webpack_require__(1258) - }; - }, - function(module, exports, __webpack_require__) { - var baseForOwn = __webpack_require__(1207), - baseEach = __webpack_require__(1212)(baseForOwn); - module.exports = baseEach; - }, - function(module, exports, __webpack_require__) { - var baseFor = __webpack_require__(1208)(); - module.exports = baseFor; - }, - function(module, exports, __webpack_require__) { - var getLength = __webpack_require__(833)('length'); - module.exports = getLength; - }, - function(module, exports) { - module.exports = function baseProperty(key) { - return function(object) { - return null == object ? void 0 : object[key]; - }; - }; - }, - function(module, exports) { - module.exports = function identity(value) { - return value; - }; - }, - function(module, exports, __webpack_require__) { - var baseIsEqual = __webpack_require__(618), - bindCallback = __webpack_require__(273); - module.exports = function isEqual(value, other, customizer, thisArg) { - var result = (customizer = - 'function' == typeof customizer ? bindCallback(customizer, thisArg, 3) : void 0) - ? customizer(value, other) - : void 0; - return void 0 === result ? baseIsEqual(value, other, customizer) : !!result; - }; - }, - function(module, exports, __webpack_require__) { - var arrayMap = __webpack_require__(837), - baseDifference = __webpack_require__(1220), - baseFlatten = __webpack_require__(1227), - bindCallback = __webpack_require__(273), - keysIn = __webpack_require__(617), - pickByArray = __webpack_require__(1229), - pickByCallback = __webpack_require__(1230), - omit = __webpack_require__(838)(function(object, props) { - if (null == object) return {}; - if ('function' != typeof props[0]) { - props = arrayMap(baseFlatten(props), String); - return pickByArray(object, baseDifference(keysIn(object), props)); - } - var predicate = bindCallback(props[0], props[1], 3); - return pickByCallback(object, function(value, key, object) { - return !predicate(value, key, object); - }); - }); - module.exports = omit; - }, - function(module, exports) { - module.exports = function arrayMap(array, iteratee) { - for (var index = -1, length = array.length, result = Array(length); ++index < length; ) - result[index] = iteratee(array[index], index, array); - return result; - }; - }, - function(module, exports) { - var FUNC_ERROR_TEXT = 'Expected a function', - nativeMax = Math.max; - module.exports = function restParam(func, start) { - if ('function' != typeof func) throw new TypeError(FUNC_ERROR_TEXT); - return ( - (start = nativeMax(void 0 === start ? func.length - 1 : +start || 0, 0)), - function() { - for ( - var args = arguments, - index = -1, - length = nativeMax(args.length - start, 0), - rest = Array(length); - ++index < length; - - ) - rest[index] = args[start + index]; - switch (start) { - case 0: - return func.call(this, rest); - case 1: - return func.call(this, args[0], rest); - case 2: - return func.call(this, args[0], args[1], rest); - } - var otherArgs = Array(start + 1); - for (index = -1; ++index < start; ) otherArgs[index] = args[index]; - return (otherArgs[start] = rest), func.apply(this, otherArgs); - } - ); - }; - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(87); - module.exports = function isStrictComparable(value) { - return value == value && !isObject(value); - }; - }, - function(module, exports, __webpack_require__) { - var toObject = __webpack_require__(111); - module.exports = function baseGet(object, path, pathKey) { - if (null != object) { - void 0 !== pathKey && pathKey in toObject(object) && (path = [pathKey]); - for (var index = 0, length = path.length; null != object && index < length; ) - object = object[path[index++]]; - return index && index == length ? object : void 0; - } - }; - }, - function(module, exports, __webpack_require__) { - var isArray = __webpack_require__(112), - toObject = __webpack_require__(111), - reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/, - reIsPlainProp = /^\w*$/; - module.exports = function isKey(value, object) { - var type = typeof value; - return ( - !!(('string' == type && reIsPlainProp.test(value)) || 'number' == type) || - (!isArray(value) && - (!reIsDeepProp.test(value) || (null != object && value in toObject(object)))) - ); - }; - }, - function(module, exports, __webpack_require__) { - var baseToString = __webpack_require__(1252), - isArray = __webpack_require__(112), - rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g, - reEscapeChar = /\\(\\)?/g; - module.exports = function toPath(value) { - if (isArray(value)) return value; - var result = []; - return ( - baseToString(value).replace(rePropName, function(match, number, quote, string) { - result.push(quote ? string.replace(reEscapeChar, '$1') : number || match); - }), - result - ); - }; - }, - function(module, exports, __webpack_require__) { - var baseProperty = __webpack_require__(833), - basePropertyDeep = __webpack_require__(1253), - isKey = __webpack_require__(841); - module.exports = function property(path) { - return isKey(path) ? baseProperty(path) : basePropertyDeep(path); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _class, - _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _radium2 = _interopRequireDefault(__webpack_require__(1260)), - _velocityReact = __webpack_require__(829); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Loading = function Loading(_ref) { - var style = _ref.style; - return _react2.default.createElement('div', { style: style }, 'loading...'); - }; - Loading.propTypes = { style: _propTypes2.default.object }; - var Toggle = function Toggle(_ref2) { - var style = _ref2.style, - height = style.height, - width = style.width, - points = '0,0 0,' + height + ' ' + width + ',' + 0.5 * height; - return _react2.default.createElement( - 'div', - { style: style.base }, - _react2.default.createElement( - 'div', - { style: style.wrapper }, - _react2.default.createElement( - 'svg', - { height: height, width: width }, - _react2.default.createElement('polygon', { points: points, style: style.arrow }) - ) - ) - ); - }; - Toggle.propTypes = { style: _propTypes2.default.object }; - var Header = function Header(_ref3) { - var node = _ref3.node, - style = _ref3.style; - return _react2.default.createElement( - 'div', - { style: style.base }, - _react2.default.createElement('div', { style: style.title }, node.name) - ); - }; - Header.propTypes = { - style: _propTypes2.default.object, - node: _propTypes2.default.object.isRequired - }; - var Container = - (0, _radium2.default)( - (_class = (function(_React$Component) { - function Container() { - return ( - (0, _classCallCheck3.default)(this, Container), - (0, _possibleConstructorReturn3.default)( - this, - (Container.__proto__ || (0, _getPrototypeOf2.default)(Container)).apply( - this, - arguments - ) - ) - ); - } - return ( - (0, _inherits3.default)(Container, _React$Component), - (0, _createClass3.default)(Container, [ - { - key: 'render', - value: function render() { - var _this2 = this, - _props = this.props, - style = _props.style, - decorators = _props.decorators, - terminal = _props.terminal, - onClick = _props.onClick, - node = _props.node; - return _react2.default.createElement( - 'div', - { - onClick: onClick, - ref: function ref(_ref4) { - return (_this2.clickableRef = _ref4); - }, - style: style.container - }, - terminal ? null : this.renderToggle(), - _react2.default.createElement(decorators.Header, { - node: node, - style: style.header - }) - ); - } - }, - { - key: 'renderToggle', - value: function renderToggle() { - var _this3 = this, - animations = this.props.animations; - return animations - ? _react2.default.createElement( - _velocityReact.VelocityComponent, - { - animation: animations.toggle.animation, - duration: animations.toggle.duration, - ref: function ref(_ref5) { - return (_this3.velocityRef = _ref5); - } - }, - this.renderToggleDecorator() - ) - : this.renderToggleDecorator(); - } - }, - { - key: 'renderToggleDecorator', - value: function renderToggleDecorator() { - var _props2 = this.props, - style = _props2.style, - decorators = _props2.decorators; - return _react2.default.createElement(decorators.Toggle, { style: style.toggle }); - } - } - ]), - Container - ); - })(_react2.default.Component)) - ) || _class; - (Container.propTypes = { - style: _propTypes2.default.object.isRequired, - decorators: _propTypes2.default.object.isRequired, - terminal: _propTypes2.default.bool.isRequired, - onClick: _propTypes2.default.func.isRequired, - animations: _propTypes2.default.oneOfType([ - _propTypes2.default.object, - _propTypes2.default.bool - ]).isRequired, - node: _propTypes2.default.object.isRequired - }), - (exports.default = { - Loading: Loading, - Toggle: Toggle, - Header: Header, - Container: Container - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }, - _typeof = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(obj) { - return typeof obj; - } - : function(obj) { - return obj && - 'function' == typeof Symbol && - obj.constructor === Symbol && - obj !== Symbol.prototype - ? 'symbol' - : typeof obj; - }; - exports.default = function enhanceWithRadium(configOrComposedComponent) { - var _class, _temp; - var config = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - if ('function' != typeof configOrComposedComponent) { - var newConfig = _extends({}, config, configOrComposedComponent); - return function(configOrComponent) { - return enhanceWithRadium(configOrComponent, newConfig); - }; - } - var component = configOrComposedComponent; - var ComposedComponent = component; - (function isNativeClass(component) { - return 'function' == typeof component && /^\s*class\s+/.test(component.toString()); - })(ComposedComponent) && - (ComposedComponent = (function(OrigComponent) { - function NewComponent() { - var source = new (Function.prototype.bind.apply( - OrigComponent, - [null].concat(Array.prototype.slice.call(arguments)) - ))(); - return copyProperties(source, this), this; - } - return ( - (function inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - (void 0 === superClass ? 'undefined' : _typeof(superClass)) - ); - (subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { value: subClass, enumerable: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(NewComponent, OrigComponent), - NewComponent - ); - })(ComposedComponent)); - (function isStateless(component) { - return !(component.render || (component.prototype && component.prototype.render)); - })(ComposedComponent) && - ((ComposedComponent = (function(_Component) { - function ComposedComponent() { - return ( - _classCallCheck(this, ComposedComponent), - _possibleConstructorReturn(this, _Component.apply(this, arguments)) - ); - } - return ( - _inherits(ComposedComponent, _Component), - (ComposedComponent.prototype.render = function render() { - return component(this.props, this.context); - }), - ComposedComponent - ); - })(_react.Component)).displayName = - component.displayName || component.name); - var RadiumEnhancer = ((_temp = _class = (function(_ComposedComponent) { - function RadiumEnhancer() { - _classCallCheck(this, RadiumEnhancer); - var _this2 = _possibleConstructorReturn(this, _ComposedComponent.apply(this, arguments)); - return ( - (_this2.state = _this2.state || {}), - (_this2.state._radiumStyleState = {}), - (_this2._radiumIsMounted = !0), - _this2 - ); - } - return ( - _inherits(RadiumEnhancer, _ComposedComponent), - (RadiumEnhancer.prototype.componentWillUnmount = function componentWillUnmount() { - _ComposedComponent.prototype.componentWillUnmount && - _ComposedComponent.prototype.componentWillUnmount.call(this), - (this._radiumIsMounted = !1), - this._radiumMouseUpListener && this._radiumMouseUpListener.remove(), - this._radiumMediaQueryListenersByQuery && - Object.keys(this._radiumMediaQueryListenersByQuery).forEach(function(query) { - this._radiumMediaQueryListenersByQuery[query].remove(); - }, this); - }), - (RadiumEnhancer.prototype.getChildContext = function getChildContext() { - var superChildContext = _ComposedComponent.prototype.getChildContext - ? _ComposedComponent.prototype.getChildContext.call(this) - : {}; - if (!this.props.radiumConfig) return superChildContext; - var newContext = _extends({}, superChildContext); - return ( - this.props.radiumConfig && (newContext._radiumConfig = this.props.radiumConfig), - newContext - ); - }), - (RadiumEnhancer.prototype.render = function render() { - var renderedElement = _ComposedComponent.prototype.render.call(this), - currentConfig = this.props.radiumConfig || this.context._radiumConfig || config; - return ( - config && - currentConfig !== config && - (currentConfig = _extends({}, config, currentConfig)), - (0, _resolveStyles2.default)(this, renderedElement, currentConfig) - ); - }), - RadiumEnhancer - ); - })(ComposedComponent)), - (_class._isRadiumEnhanced = !0), - _temp); - copyProperties(component, RadiumEnhancer); - 0; - RadiumEnhancer.propTypes && - RadiumEnhancer.propTypes.style && - (RadiumEnhancer.propTypes = _extends({}, RadiumEnhancer.propTypes, { - style: _propTypes2.default.oneOfType([ - _propTypes2.default.array, - _propTypes2.default.object - ]) - })); - RadiumEnhancer.displayName = component.displayName || component.name || 'Component'; - RadiumEnhancer.contextTypes = _extends({}, RadiumEnhancer.contextTypes, { - _radiumConfig: _propTypes2.default.object, - _radiumStyleKeeper: _propTypes2.default.instanceOf(_styleKeeper2.default) - }); - RadiumEnhancer.childContextTypes = _extends({}, RadiumEnhancer.childContextTypes, { - _radiumConfig: _propTypes2.default.object, - _radiumStyleKeeper: _propTypes2.default.instanceOf(_styleKeeper2.default) - }); - return RadiumEnhancer; - }; - var _react = __webpack_require__(0), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _styleKeeper2 = _interopRequireDefault(__webpack_require__(620)), - _resolveStyles2 = _interopRequireDefault(__webpack_require__(846)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - } - function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - } - function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - } - var KEYS_TO_IGNORE_WHEN_COPYING_PROPERTIES = [ - 'arguments', - 'callee', - 'caller', - 'length', - 'name', - 'prototype', - 'type' - ]; - function copyProperties(source, target) { - Object.getOwnPropertyNames(source).forEach(function(key) { - if ( - KEYS_TO_IGNORE_WHEN_COPYING_PROPERTIES.indexOf(key) < 0 && - !target.hasOwnProperty(key) - ) { - var descriptor = Object.getOwnPropertyDescriptor(source, key); - Object.defineProperty(target, key, descriptor); - } - }); - } - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }, - _typeof = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(obj) { - return typeof obj; - } - : function(obj) { - return obj && - 'function' == typeof Symbol && - obj.constructor === Symbol && - obj !== Symbol.prototype - ? 'symbol' - : typeof obj; - }, - _appendImportantToEachValue2 = _interopRequireDefault(__webpack_require__(1261)), - _cssRuleSetToString2 = _interopRequireDefault(__webpack_require__(621)), - _getState2 = _interopRequireDefault(__webpack_require__(851)), - _getStateKey2 = _interopRequireDefault(__webpack_require__(852)), - _hash2 = _interopRequireDefault(__webpack_require__(853)), - _mergeStyles = __webpack_require__(1289), - _plugins2 = _interopRequireDefault(__webpack_require__(854)), - _exenv2 = _interopRequireDefault(__webpack_require__(809)), - _react2 = _interopRequireDefault(__webpack_require__(0)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var DEFAULT_CONFIG = { - plugins: [ - _plugins2.default.mergeStyleArray, - _plugins2.default.checkProps, - _plugins2.default.resolveMediaQueries, - _plugins2.default.resolveInteractionStyles, - _plugins2.default.keyframes, - _plugins2.default.visited, - _plugins2.default.removeNestedStyles, - _plugins2.default.prefix, - _plugins2.default.checkProps - ] - }, - globalState = {}, - resolveStyles = null, - _resolveChildren = function _resolveChildren(_ref) { - var children = _ref.children, - component = _ref.component, - config = _ref.config, - existingKeyMap = _ref.existingKeyMap; - if (!children) return children; - var childrenType = void 0 === children ? 'undefined' : _typeof(children); - if ('string' === childrenType || 'number' === childrenType) return children; - if ('function' === childrenType) - return function() { - var result = children.apply(this, arguments); - return _react2.default.isValidElement(result) - ? resolveStyles(component, result, config, existingKeyMap, !0) - : result; - }; - if (1 === _react2.default.Children.count(children) && children.type) { - var onlyChild = _react2.default.Children.only(children); - return resolveStyles(component, onlyChild, config, existingKeyMap, !0); - } - return _react2.default.Children.map(children, function(child) { - return _react2.default.isValidElement(child) - ? resolveStyles(component, child, config, existingKeyMap, !0) - : child; - }); - }, - _resolveProps = function _resolveProps(_ref2) { - var component = _ref2.component, - config = _ref2.config, - existingKeyMap = _ref2.existingKeyMap, - props = _ref2.props, - newProps = props; - return ( - Object.keys(props).forEach(function(prop) { - if ('children' !== prop) { - var propValue = props[prop]; - _react2.default.isValidElement(propValue) && - ((newProps = _extends({}, newProps))[prop] = resolveStyles( - component, - propValue, - config, - existingKeyMap, - !0 - )); - } - }), - newProps - ); - }, - _runPlugins = function _runPlugins(_ref4) { - var component = _ref4.component, - config = _ref4.config, - existingKeyMap = _ref4.existingKeyMap, - props = _ref4.props, - renderedElement = _ref4.renderedElement; - if ( - !_react2.default.isValidElement(renderedElement) || - 'string' != typeof renderedElement.type || - !props.style - ) - return props; - var newProps = props, - plugins = config.plugins || DEFAULT_CONFIG.plugins, - componentName = component.constructor.displayName || component.constructor.name, - getKey = (function _buildGetKey(_ref3) { - var componentName = _ref3.componentName, - existingKeyMap = _ref3.existingKeyMap, - renderedElement = _ref3.renderedElement, - originalKey = - 'string' == typeof renderedElement.ref ? renderedElement.ref : renderedElement.key, - key = (0, _getStateKey2.default)(originalKey), - alreadyGotKey = !1; - return function getKey() { - if (alreadyGotKey) return key; - if (((alreadyGotKey = !0), existingKeyMap[key])) { - var elementName = void 0; - throw ('string' == typeof renderedElement.type - ? (elementName = renderedElement.type) - : renderedElement.type.constructor && - (elementName = - renderedElement.type.constructor.displayName || - renderedElement.type.constructor.name), - new Error( - 'Radium requires each element with interactive styles to have a unique key, set using either the ref or key prop. ' + - (originalKey - ? 'Key "' + originalKey + '" is a duplicate.' - : 'Multiple elements have no key specified.') + - ' Component: "' + - componentName + - '". ' + - (elementName ? 'Element: "' + elementName + '".' : '') - )); - } - return (existingKeyMap[key] = !0), key; - }; - })({ - renderedElement: renderedElement, - existingKeyMap: existingKeyMap, - componentName: componentName - }), - getComponentField = function getComponentField(key) { - return component[key]; - }, - getGlobalState = function getGlobalState(key) { - return globalState[key]; - }, - componentGetState = function componentGetState(stateKey, elementKey) { - return (0, _getState2.default)(component.state, elementKey || getKey(), stateKey); - }, - setState = function setState(stateKey, value, elementKey) { - return (function _setStyleState(component, key, stateKey, value) { - if (component._radiumIsMounted) { - var existing = - component._lastRadiumState || - (component.state && component.state._radiumStyleState) || - {}, - state = { _radiumStyleState: _extends({}, existing) }; - (state._radiumStyleState[key] = _extends({}, state._radiumStyleState[key])), - (state._radiumStyleState[key][stateKey] = value), - (component._lastRadiumState = state._radiumStyleState), - component.setState(state); - } - })(component, elementKey || getKey(), stateKey, value); - }, - addCSS = function addCSS(css) { - var styleKeeper = component._radiumStyleKeeper || component.context._radiumStyleKeeper; - if (!styleKeeper) { - if (__isTestModeEnabled) return { remove: function remove() {} }; - throw new Error( - 'To use plugins requiring `addCSS` (e.g. keyframes, media queries), please wrap your application in the StyleRoot component. Component name: `' + - componentName + - '`.' - ); - } - return styleKeeper.addCSS(css); - }, - newStyle = props.style; - return ( - plugins.forEach(function(plugin) { - var result = - plugin({ - ExecutionEnvironment: _exenv2.default, - addCSS: addCSS, - appendImportantToEachValue: _appendImportantToEachValue2.default, - componentName: componentName, - config: config, - cssRuleSetToString: _cssRuleSetToString2.default, - getComponentField: getComponentField, - getGlobalState: getGlobalState, - getState: componentGetState, - hash: _hash2.default, - mergeStyles: _mergeStyles.mergeStyles, - props: newProps, - setState: setState, - isNestedStyle: _mergeStyles.isNestedStyle, - style: newStyle - }) || {}; - (newStyle = result.style || newStyle), - (newProps = - result.props && Object.keys(result.props).length - ? _extends({}, newProps, result.props) - : newProps); - var newComponentFields = result.componentFields || {}; - Object.keys(newComponentFields).forEach(function(fieldName) { - component[fieldName] = newComponentFields[fieldName]; - }); - var newGlobalState = result.globalState || {}; - Object.keys(newGlobalState).forEach(function(key) { - globalState[key] = newGlobalState[key]; - }); - }), - newStyle !== props.style && (newProps = _extends({}, newProps, { style: newStyle })), - newProps - ); - }; - resolveStyles = function resolveStyles(component, renderedElement) { - var config = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : DEFAULT_CONFIG, - existingKeyMap = arguments[3], - shouldCheckBeforeResolve = arguments.length > 4 && void 0 !== arguments[4] && arguments[4]; - if ( - ((existingKeyMap = existingKeyMap || {}), - !renderedElement || - (renderedElement.props && renderedElement.props['data-radium']) || - (shouldCheckBeforeResolve && - !(function _shouldResolveStyles(component) { - return component.type && !component.type._isRadiumEnhanced; - })(renderedElement))) - ) - return renderedElement; - var newChildren = _resolveChildren({ - children: renderedElement.props.children, - component: component, - config: config, - existingKeyMap: existingKeyMap - }), - newProps = _resolveProps({ - component: component, - config: config, - existingKeyMap: existingKeyMap, - props: renderedElement.props - }); - return ( - (newProps = _runPlugins({ - component: component, - config: config, - existingKeyMap: existingKeyMap, - props: newProps, - renderedElement: renderedElement - })), - newChildren === renderedElement.props.children && newProps === renderedElement.props - ? renderedElement - : (function _cloneElement(renderedElement, newProps, newChildren) { - return ( - 'string' == typeof renderedElement.type && - (newProps = _extends({}, newProps, { 'data-radium': !0 })), - _react2.default.cloneElement(renderedElement, newProps, newChildren) - ); - })(renderedElement, newProps !== renderedElement.props ? newProps : {}, newChildren) - ); - }; - var __isTestModeEnabled = !1; - (exports.default = resolveStyles), (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function appendPxIfNeeded(propertyName, value) { - return isUnitlessNumber[propertyName] || 'number' != typeof value || 0 === value - ? value - : value + 'px'; - }); - var isUnitlessNumber = { - animationIterationCount: !0, - boxFlex: !0, - boxFlexGroup: !0, - boxOrdinalGroup: !0, - columnCount: !0, - flex: !0, - flexGrow: !0, - flexPositive: !0, - flexShrink: !0, - flexNegative: !0, - flexOrder: !0, - gridRow: !0, - gridColumn: !0, - fontWeight: !0, - lineClamp: !0, - lineHeight: !0, - opacity: !0, - order: !0, - orphans: !0, - tabSize: !0, - widows: !0, - zIndex: !0, - zoom: !0, - fillOpacity: !0, - stopOpacity: !0, - strokeDashoffset: !0, - strokeOpacity: !0, - strokeWidth: !0 - }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function mapObject(object, mapper) { - return Object.keys(object).reduce(function(result, key) { - return (result[key] = mapper(object[key], key)), result; - }, {}); - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = { - Webkit: { - transform: !0, - transformOrigin: !0, - transformOriginX: !0, - transformOriginY: !0, - backfaceVisibility: !0, - perspective: !0, - perspectiveOrigin: !0, - transformStyle: !0, - transformOriginZ: !0, - animation: !0, - animationDelay: !0, - animationDirection: !0, - animationFillMode: !0, - animationDuration: !0, - animationIterationCount: !0, - animationName: !0, - animationPlayState: !0, - animationTimingFunction: !0, - appearance: !0, - userSelect: !0, - fontKerning: !0, - textEmphasisPosition: !0, - textEmphasis: !0, - textEmphasisStyle: !0, - textEmphasisColor: !0, - boxDecorationBreak: !0, - clipPath: !0, - maskImage: !0, - maskMode: !0, - maskRepeat: !0, - maskPosition: !0, - maskClip: !0, - maskOrigin: !0, - maskSize: !0, - maskComposite: !0, - mask: !0, - maskBorderSource: !0, - maskBorderMode: !0, - maskBorderSlice: !0, - maskBorderWidth: !0, - maskBorderOutset: !0, - maskBorderRepeat: !0, - maskBorder: !0, - maskType: !0, - textDecorationStyle: !0, - textDecorationSkip: !0, - textDecorationLine: !0, - textDecorationColor: !0, - filter: !0, - fontFeatureSettings: !0, - breakAfter: !0, - breakBefore: !0, - breakInside: !0, - columnCount: !0, - columnFill: !0, - columnGap: !0, - columnRule: !0, - columnRuleColor: !0, - columnRuleStyle: !0, - columnRuleWidth: !0, - columns: !0, - columnSpan: !0, - columnWidth: !0, - flex: !0, - flexBasis: !0, - flexDirection: !0, - flexGrow: !0, - flexFlow: !0, - flexShrink: !0, - flexWrap: !0, - alignContent: !0, - alignItems: !0, - alignSelf: !0, - justifyContent: !0, - order: !0, - transition: !0, - transitionDelay: !0, - transitionDuration: !0, - transitionProperty: !0, - transitionTimingFunction: !0, - backdropFilter: !0, - scrollSnapType: !0, - scrollSnapPointsX: !0, - scrollSnapPointsY: !0, - scrollSnapDestination: !0, - scrollSnapCoordinate: !0, - shapeImageThreshold: !0, - shapeImageMargin: !0, - shapeImageOutside: !0, - hyphens: !0, - flowInto: !0, - flowFrom: !0, - regionFragment: !0, - textSizeAdjust: !0 - }, - Moz: { - appearance: !0, - userSelect: !0, - boxSizing: !0, - textAlignLast: !0, - textDecorationStyle: !0, - textDecorationSkip: !0, - textDecorationLine: !0, - textDecorationColor: !0, - tabSize: !0, - hyphens: !0, - fontFeatureSettings: !0, - breakAfter: !0, - breakBefore: !0, - breakInside: !0, - columnCount: !0, - columnFill: !0, - columnGap: !0, - columnRule: !0, - columnRuleColor: !0, - columnRuleStyle: !0, - columnRuleWidth: !0, - columns: !0, - columnSpan: !0, - columnWidth: !0 - }, - ms: { - flex: !0, - flexBasis: !1, - flexDirection: !0, - flexGrow: !1, - flexFlow: !0, - flexShrink: !1, - flexWrap: !0, - alignContent: !1, - alignItems: !1, - alignSelf: !1, - justifyContent: !1, - order: !1, - transform: !0, - transformOrigin: !0, - transformOriginX: !0, - transformOriginY: !0, - userSelect: !0, - wrapFlow: !0, - wrapThrough: !0, - wrapMargin: !0, - scrollSnapType: !0, - scrollSnapPointsX: !0, - scrollSnapPointsY: !0, - scrollSnapDestination: !0, - scrollSnapCoordinate: !0, - touchAction: !0, - hyphens: !0, - flowInto: !0, - flowFrom: !0, - breakBefore: !0, - breakAfter: !0, - breakInside: !0, - regionFragment: !0, - gridTemplateColumns: !0, - gridTemplateRows: !0, - gridTemplateAreas: !0, - gridTemplate: !0, - gridAutoColumns: !0, - gridAutoRows: !0, - gridAutoFlow: !0, - grid: !0, - gridRowStart: !0, - gridColumnStart: !0, - gridRowEnd: !0, - gridRow: !0, - gridColumn: !0, - gridColumnEnd: !0, - gridColumnGap: !0, - gridRowGap: !0, - gridArea: !0, - gridGap: !0, - textSizeAdjust: !0 - } - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function sortPrefixedStyle(style) { - return Object.keys(style) - .sort(function(left, right) { - return (0, _isPrefixedProperty2.default)(left) && - !(0, _isPrefixedProperty2.default)(right) - ? -1 - : !(0, _isPrefixedProperty2.default)(left) && (0, _isPrefixedProperty2.default)(right) - ? 1 - : 0; - }) - .reduce(function(sortedStyle, prop) { - return (sortedStyle[prop] = style[prop]), sortedStyle; - }, {}); - }); - var _isPrefixedProperty2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(1265)); - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getStateKey2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(852)); - (exports.default = function getState(state, elementKey, value) { - var key = (0, _getStateKey2.default)(elementKey); - return ( - !!state && - !!state._radiumStyleState && - !!state._radiumStyleState[key] && - state._radiumStyleState[key][value] - ); - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - (exports.default = function getStateKey(elementKey) { - return null === elementKey || void 0 === elementKey ? 'main' : elementKey.toString(); - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function hash(text) { - if (!text) return ''; - var hashValue = 5381, - index = text.length - 1; - for (; index; ) (hashValue = (33 * hashValue) ^ text.charCodeAt(index)), (index -= 1); - return (hashValue >>> 0).toString(16); - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _checkPropsPlugin2 = _interopRequireDefault(__webpack_require__(1290)), - _keyframesPlugin2 = _interopRequireDefault(__webpack_require__(1291)), - _mergeStyleArrayPlugin2 = _interopRequireDefault(__webpack_require__(1292)), - _prefixPlugin2 = _interopRequireDefault(__webpack_require__(1293)), - _removeNestedStylesPlugin2 = _interopRequireDefault(__webpack_require__(1294)), - _resolveInteractionStylesPlugin2 = _interopRequireDefault(__webpack_require__(1295)), - _resolveMediaQueriesPlugin2 = _interopRequireDefault(__webpack_require__(1297)), - _visitedPlugin2 = _interopRequireDefault(__webpack_require__(1298)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - (exports.default = { - checkProps: _checkPropsPlugin2.default, - keyframes: _keyframesPlugin2.default, - mergeStyleArray: _mergeStyleArrayPlugin2.default, - prefix: _prefixPlugin2.default, - removeNestedStyles: _removeNestedStylesPlugin2.default, - resolveInteractionStyles: _resolveInteractionStylesPlugin2.default, - resolveMediaQueries: _resolveMediaQueriesPlugin2.default, - visited: _visitedPlugin2.default - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = { - tree: { - base: { - listStyle: 'none', - backgroundColor: '#21252B', - margin: 0, - padding: 0, - color: '#9DA5AB', - fontFamily: 'lucida grande ,tahoma,verdana,arial,sans-serif', - fontSize: '14px' - }, - node: { - base: { position: 'relative' }, - link: { cursor: 'pointer', position: 'relative', padding: '0px 5px', display: 'block' }, - activeLink: { background: '#31363F' }, - toggle: { - base: { - position: 'relative', - display: 'inline-block', - verticalAlign: 'top', - marginLeft: '-5px', - height: '24px', - width: '24px' - }, - wrapper: { - position: 'absolute', - top: '50%', - left: '50%', - margin: '-7px 0 0 -7px', - height: '14px' - }, - height: 14, - width: 14, - arrow: { fill: '#9DA5AB', strokeWidth: 0 } - }, - header: { - base: { display: 'inline-block', verticalAlign: 'top', color: '#9DA5AB' }, - connector: { - width: '2px', - height: '12px', - borderLeft: 'solid 2px black', - borderBottom: 'solid 2px black', - position: 'absolute', - top: '0px', - left: '-21px' - }, - title: { lineHeight: '24px', verticalAlign: 'middle' } - }, - subtree: { listStyle: 'none', paddingLeft: '19px' }, - loading: { color: '#E2C089' } - } - } - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = { - toggle: function toggle(_ref) { - return { animation: { rotateZ: _ref.node.toggled ? 90 : 0 }, duration: 300 }; - }, - drawer: function drawer() { - return { - enter: { animation: 'slideDown', duration: 300 }, - leave: { animation: 'slideUp', duration: 300 } - }; - } - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = { NAMESPACE: 'namespace', STORY: 'story' }); - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(1312), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - !(function webpackUniversalModuleDefinition(root, factory) { - module.exports = factory(); - })(0, function() { - return (function(modules) { - var installedModules = {}; - function __webpack_require__(moduleId) { - if (installedModules[moduleId]) return installedModules[moduleId].exports; - var module = (installedModules[moduleId] = { i: moduleId, l: !1, exports: {} }); - return ( - modules[moduleId].call(module.exports, module, module.exports, __webpack_require__), - (module.l = !0), - module.exports - ); - } - return ( - (__webpack_require__.m = modules), - (__webpack_require__.c = installedModules), - (__webpack_require__.i = function(value) { - return value; - }), - (__webpack_require__.d = function(exports, name, getter) { - __webpack_require__.o(exports, name) || - Object.defineProperty(exports, name, { - configurable: !1, - enumerable: !0, - get: getter - }); - }), - (__webpack_require__.n = function(module) { - var getter = - module && module.__esModule - ? function getDefault() { - return module.default; - } - : function getModuleExports() { - return module; - }; - return __webpack_require__.d(getter, 'a', getter), getter; - }), - (__webpack_require__.o = function(object, property) { - return Object.prototype.hasOwnProperty.call(object, property); - }), - (__webpack_require__.p = ''), - __webpack_require__((__webpack_require__.s = 8)) - ); - })([ - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function(obj) { - return '[object Array]' === Object.prototype.toString.call(obj); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - Object.defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(); - var bitapRegexSearch = __webpack_require__(5), - bitapSearch = __webpack_require__(7), - patternAlphabet = __webpack_require__(4), - Bitap = (function() { - function Bitap(pattern, _ref) { - var _ref$location = _ref.location, - location = void 0 === _ref$location ? 0 : _ref$location, - _ref$distance = _ref.distance, - distance = void 0 === _ref$distance ? 100 : _ref$distance, - _ref$threshold = _ref.threshold, - threshold = void 0 === _ref$threshold ? 0.6 : _ref$threshold, - _ref$maxPatternLength = _ref.maxPatternLength, - maxPatternLength = void 0 === _ref$maxPatternLength ? 32 : _ref$maxPatternLength, - _ref$isCaseSensitive = _ref.isCaseSensitive, - isCaseSensitive = void 0 !== _ref$isCaseSensitive && _ref$isCaseSensitive, - _ref$tokenSeparator = _ref.tokenSeparator, - tokenSeparator = void 0 === _ref$tokenSeparator ? / +/g : _ref$tokenSeparator, - _ref$findAllMatches = _ref.findAllMatches, - findAllMatches = void 0 !== _ref$findAllMatches && _ref$findAllMatches, - _ref$minMatchCharLeng = _ref.minMatchCharLength, - minMatchCharLength = void 0 === _ref$minMatchCharLeng ? 1 : _ref$minMatchCharLeng; - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, Bitap), - (this.options = { - location: location, - distance: distance, - threshold: threshold, - maxPatternLength: maxPatternLength, - isCaseSensitive: isCaseSensitive, - tokenSeparator: tokenSeparator, - findAllMatches: findAllMatches, - minMatchCharLength: minMatchCharLength - }), - (this.pattern = this.options.isCaseSensitive ? pattern : pattern.toLowerCase()), - this.pattern.length <= maxPatternLength && - (this.patternAlphabet = patternAlphabet(this.pattern)); - } - return ( - _createClass(Bitap, [ - { - key: 'search', - value: function search(text) { - if ( - (this.options.isCaseSensitive || (text = text.toLowerCase()), - this.pattern === text) - ) - return { isMatch: !0, score: 0, matchedIndices: [[0, text.length - 1]] }; - var _options = this.options, - maxPatternLength = _options.maxPatternLength, - tokenSeparator = _options.tokenSeparator; - if (this.pattern.length > maxPatternLength) - return bitapRegexSearch(text, this.pattern, tokenSeparator); - var _options2 = this.options, - location = _options2.location, - distance = _options2.distance, - threshold = _options2.threshold, - findAllMatches = _options2.findAllMatches, - minMatchCharLength = _options2.minMatchCharLength; - return bitapSearch(text, this.pattern, this.patternAlphabet, { - location: location, - distance: distance, - threshold: threshold, - findAllMatches: findAllMatches, - minMatchCharLength: minMatchCharLength - }); - } - } - ]), - Bitap - ); - })(); - module.exports = Bitap; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var isArray = __webpack_require__(0); - module.exports = function(obj, path) { - return (function deepValue(obj, path, list) { - if (path) { - var dotIndex = path.indexOf('.'), - firstSegment = path, - remaining = null; - -1 !== dotIndex && - ((firstSegment = path.slice(0, dotIndex)), - (remaining = path.slice(dotIndex + 1))); - var value = obj[firstSegment]; - if (null !== value && void 0 !== value) - if (remaining || ('string' != typeof value && 'number' != typeof value)) - if (isArray(value)) - for (var i = 0, len = value.length; i < len; i += 1) - deepValue(value[i], remaining, list); - else remaining && deepValue(value, remaining, list); - else list.push(value.toString()); - } else list.push(obj); - return list; - })(obj, path, []); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function() { - for ( - var matchmask = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], - minMatchCharLength = - arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1, - matchedIndices = [], - start = -1, - end = -1, - i = 0, - len = matchmask.length; - i < len; - i += 1 - ) { - var match = matchmask[i]; - match && -1 === start - ? (start = i) - : match || - -1 === start || - ((end = i - 1) - start + 1 >= minMatchCharLength && - matchedIndices.push([start, end]), - (start = -1)); - } - return ( - matchmask[i - 1] && - i - start >= minMatchCharLength && - matchedIndices.push([start, i - 1]), - matchedIndices - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function(pattern) { - for (var mask = {}, len = pattern.length, i = 0; i < len; i += 1) - mask[pattern.charAt(i)] = 0; - for (var _i = 0; _i < len; _i += 1) mask[pattern.charAt(_i)] |= 1 << (len - _i - 1); - return mask; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SPECIAL_CHARS_REGEX = /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g; - module.exports = function(text, pattern) { - var tokenSeparator = - arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : / +/g, - regex = new RegExp( - pattern.replace(SPECIAL_CHARS_REGEX, '\\$&').replace(tokenSeparator, '|') - ), - matches = text.match(regex), - isMatch = !!matches, - matchedIndices = []; - if (isMatch) - for (var i = 0, matchesLen = matches.length; i < matchesLen; i += 1) { - var match = matches[i]; - matchedIndices.push([text.indexOf(match), match.length - 1]); - } - return { score: isMatch ? 0.5 : 1, isMatch: isMatch, matchedIndices: matchedIndices }; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function(pattern, _ref) { - var _ref$errors = _ref.errors, - errors = void 0 === _ref$errors ? 0 : _ref$errors, - _ref$currentLocation = _ref.currentLocation, - currentLocation = void 0 === _ref$currentLocation ? 0 : _ref$currentLocation, - _ref$expectedLocation = _ref.expectedLocation, - expectedLocation = void 0 === _ref$expectedLocation ? 0 : _ref$expectedLocation, - _ref$distance = _ref.distance, - distance = void 0 === _ref$distance ? 100 : _ref$distance, - accuracy = errors / pattern.length, - proximity = Math.abs(expectedLocation - currentLocation); - return distance ? accuracy + proximity / distance : proximity ? 1 : accuracy; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var bitapScore = __webpack_require__(6), - matchedIndices = __webpack_require__(3); - module.exports = function(text, pattern, patternAlphabet, _ref) { - for ( - var _ref$location = _ref.location, - location = void 0 === _ref$location ? 0 : _ref$location, - _ref$distance = _ref.distance, - distance = void 0 === _ref$distance ? 100 : _ref$distance, - _ref$threshold = _ref.threshold, - threshold = void 0 === _ref$threshold ? 0.6 : _ref$threshold, - _ref$findAllMatches = _ref.findAllMatches, - findAllMatches = void 0 !== _ref$findAllMatches && _ref$findAllMatches, - _ref$minMatchCharLeng = _ref.minMatchCharLength, - minMatchCharLength = void 0 === _ref$minMatchCharLeng ? 1 : _ref$minMatchCharLeng, - expectedLocation = location, - textLen = text.length, - currentThreshold = threshold, - bestLocation = text.indexOf(pattern, expectedLocation), - patternLen = pattern.length, - matchMask = [], - i = 0; - i < textLen; - i += 1 - ) - matchMask[i] = 0; - if (-1 !== bestLocation) { - var score = bitapScore(pattern, { - errors: 0, - currentLocation: bestLocation, - expectedLocation: expectedLocation, - distance: distance - }); - if ( - ((currentThreshold = Math.min(score, currentThreshold)), - -1 !== (bestLocation = text.lastIndexOf(pattern, expectedLocation + patternLen))) - ) { - var _score = bitapScore(pattern, { - errors: 0, - currentLocation: bestLocation, - expectedLocation: expectedLocation, - distance: distance - }); - currentThreshold = Math.min(_score, currentThreshold); - } - } - bestLocation = -1; - for ( - var lastBitArr = [], - finalScore = 1, - binMax = patternLen + textLen, - mask = 1 << (patternLen - 1), - _i = 0; - _i < patternLen; - _i += 1 - ) { - for (var binMin = 0, binMid = binMax; binMin < binMid; ) { - bitapScore(pattern, { - errors: _i, - currentLocation: expectedLocation + binMid, - expectedLocation: expectedLocation, - distance: distance - }) <= currentThreshold - ? (binMin = binMid) - : (binMax = binMid), - (binMid = Math.floor((binMax - binMin) / 2 + binMin)); - } - binMax = binMid; - var start = Math.max(1, expectedLocation - binMid + 1), - finish = findAllMatches - ? textLen - : Math.min(expectedLocation + binMid, textLen) + patternLen, - bitArr = Array(finish + 2); - bitArr[finish + 1] = (1 << _i) - 1; - for (var j = finish; j >= start; j -= 1) { - var currentLocation = j - 1, - charMatch = patternAlphabet[text.charAt(currentLocation)]; - if ( - (charMatch && (matchMask[currentLocation] = 1), - (bitArr[j] = ((bitArr[j + 1] << 1) | 1) & charMatch), - 0 !== _i && - (bitArr[j] |= - ((lastBitArr[j + 1] | lastBitArr[j]) << 1) | 1 | lastBitArr[j + 1]), - bitArr[j] & mask && - (finalScore = bitapScore(pattern, { - errors: _i, - currentLocation: currentLocation, - expectedLocation: expectedLocation, - distance: distance - })) <= currentThreshold) - ) { - if ( - ((currentThreshold = finalScore), - (bestLocation = currentLocation) <= expectedLocation) - ) - break; - start = Math.max(1, 2 * expectedLocation - bestLocation); - } - } - if ( - bitapScore(pattern, { - errors: _i + 1, - currentLocation: expectedLocation, - expectedLocation: expectedLocation, - distance: distance - }) > currentThreshold - ) - break; - lastBitArr = bitArr; - } - return { - isMatch: bestLocation >= 0, - score: 0 === finalScore ? 0.001 : finalScore, - matchedIndices: matchedIndices(matchMask, minMatchCharLength) - }; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - Object.defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(); - var Bitap = __webpack_require__(1), - deepValue = __webpack_require__(2), - isArray = __webpack_require__(0), - Fuse = (function() { - function Fuse(list, _ref) { - var _ref$location = _ref.location, - location = void 0 === _ref$location ? 0 : _ref$location, - _ref$distance = _ref.distance, - distance = void 0 === _ref$distance ? 100 : _ref$distance, - _ref$threshold = _ref.threshold, - threshold = void 0 === _ref$threshold ? 0.6 : _ref$threshold, - _ref$maxPatternLength = _ref.maxPatternLength, - maxPatternLength = void 0 === _ref$maxPatternLength ? 32 : _ref$maxPatternLength, - _ref$caseSensitive = _ref.caseSensitive, - caseSensitive = void 0 !== _ref$caseSensitive && _ref$caseSensitive, - _ref$tokenSeparator = _ref.tokenSeparator, - tokenSeparator = void 0 === _ref$tokenSeparator ? / +/g : _ref$tokenSeparator, - _ref$findAllMatches = _ref.findAllMatches, - findAllMatches = void 0 !== _ref$findAllMatches && _ref$findAllMatches, - _ref$minMatchCharLeng = _ref.minMatchCharLength, - minMatchCharLength = void 0 === _ref$minMatchCharLeng ? 1 : _ref$minMatchCharLeng, - _ref$id = _ref.id, - id = void 0 === _ref$id ? null : _ref$id, - _ref$keys = _ref.keys, - keys = void 0 === _ref$keys ? [] : _ref$keys, - _ref$shouldSort = _ref.shouldSort, - shouldSort = void 0 === _ref$shouldSort || _ref$shouldSort, - _ref$getFn = _ref.getFn, - getFn = void 0 === _ref$getFn ? deepValue : _ref$getFn, - _ref$sortFn = _ref.sortFn, - sortFn = - void 0 === _ref$sortFn - ? function(a, b) { - return a.score - b.score; - } - : _ref$sortFn, - _ref$tokenize = _ref.tokenize, - tokenize = void 0 !== _ref$tokenize && _ref$tokenize, - _ref$matchAllTokens = _ref.matchAllTokens, - matchAllTokens = void 0 !== _ref$matchAllTokens && _ref$matchAllTokens, - _ref$includeMatches = _ref.includeMatches, - includeMatches = void 0 !== _ref$includeMatches && _ref$includeMatches, - _ref$includeScore = _ref.includeScore, - includeScore = void 0 !== _ref$includeScore && _ref$includeScore, - _ref$verbose = _ref.verbose, - verbose = void 0 !== _ref$verbose && _ref$verbose; - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, Fuse), - (this.options = { - location: location, - distance: distance, - threshold: threshold, - maxPatternLength: maxPatternLength, - isCaseSensitive: caseSensitive, - tokenSeparator: tokenSeparator, - findAllMatches: findAllMatches, - minMatchCharLength: minMatchCharLength, - id: id, - keys: keys, - includeMatches: includeMatches, - includeScore: includeScore, - shouldSort: shouldSort, - getFn: getFn, - sortFn: sortFn, - verbose: verbose, - tokenize: tokenize, - matchAllTokens: matchAllTokens - }), - this.setCollection(list); - } - return ( - _createClass(Fuse, [ - { - key: 'setCollection', - value: function setCollection(list) { - return (this.list = list), list; - } - }, - { - key: 'search', - value: function search(pattern) { - this._log('---------\nSearch pattern: "' + pattern + '"'); - var _prepareSearchers2 = this._prepareSearchers(pattern), - tokenSearchers = _prepareSearchers2.tokenSearchers, - fullSearcher = _prepareSearchers2.fullSearcher, - _search2 = this._search(tokenSearchers, fullSearcher), - weights = _search2.weights, - results = _search2.results; - return ( - this._computeScore(weights, results), - this.options.shouldSort && this._sort(results), - this._format(results) - ); - } - }, - { - key: '_prepareSearchers', - value: function _prepareSearchers() { - var pattern = - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : '', - tokenSearchers = []; - if (this.options.tokenize) - for ( - var tokens = pattern.split(this.options.tokenSeparator), - i = 0, - len = tokens.length; - i < len; - i += 1 - ) - tokenSearchers.push(new Bitap(tokens[i], this.options)); - return { - tokenSearchers: tokenSearchers, - fullSearcher: new Bitap(pattern, this.options) - }; - } - }, - { - key: '_search', - value: function _search() { - var tokenSearchers = - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], - fullSearcher = arguments[1], - list = this.list, - resultMap = {}, - results = []; - if ('string' == typeof list[0]) { - for (var i = 0, len = list.length; i < len; i += 1) - this._analyze( - { key: '', value: list[i], record: i, index: i }, - { - resultMap: resultMap, - results: results, - tokenSearchers: tokenSearchers, - fullSearcher: fullSearcher - } - ); - return { weights: null, results: results }; - } - for (var weights = {}, _i = 0, _len = list.length; _i < _len; _i += 1) - for ( - var item = list[_i], j = 0, keysLen = this.options.keys.length; - j < keysLen; - j += 1 - ) { - var key = this.options.keys[j]; - if ('string' != typeof key) { - if ( - ((weights[key.name] = { weight: 1 - key.weight || 1 }), - key.weight <= 0 || key.weight > 1) - ) - throw new Error('Key weight has to be > 0 and <= 1'); - key = key.name; - } else weights[key] = { weight: 1 }; - this._analyze( - { - key: key, - value: this.options.getFn(item, key), - record: item, - index: _i - }, - { - resultMap: resultMap, - results: results, - tokenSearchers: tokenSearchers, - fullSearcher: fullSearcher - } - ); - } - return { weights: weights, results: results }; - } - }, - { - key: '_analyze', - value: function _analyze(_ref2, _ref3) { - var key = _ref2.key, - _ref2$arrayIndex = _ref2.arrayIndex, - arrayIndex = void 0 === _ref2$arrayIndex ? -1 : _ref2$arrayIndex, - value = _ref2.value, - record = _ref2.record, - index = _ref2.index, - _ref3$tokenSearchers = _ref3.tokenSearchers, - tokenSearchers = - void 0 === _ref3$tokenSearchers ? [] : _ref3$tokenSearchers, - _ref3$fullSearcher = _ref3.fullSearcher, - fullSearcher = void 0 === _ref3$fullSearcher ? [] : _ref3$fullSearcher, - _ref3$resultMap = _ref3.resultMap, - resultMap = void 0 === _ref3$resultMap ? {} : _ref3$resultMap, - _ref3$results = _ref3.results, - results = void 0 === _ref3$results ? [] : _ref3$results; - if (void 0 !== value && null !== value) { - var exists = !1, - averageScore = -1, - numTextMatches = 0; - if ('string' == typeof value) { - this._log('\nKey: ' + ('' === key ? '-' : key)); - var mainSearchResult = fullSearcher.search(value); - if ( - (this._log( - 'Full text: "' + value + '", score: ' + mainSearchResult.score - ), - this.options.tokenize) - ) { - for ( - var words = value.split(this.options.tokenSeparator), - scores = [], - i = 0; - i < tokenSearchers.length; - i += 1 - ) { - var tokenSearcher = tokenSearchers[i]; - this._log('\nPattern: "' + tokenSearcher.pattern + '"'); - for (var hasMatchInText = !1, j = 0; j < words.length; j += 1) { - var word = words[j], - tokenSearchResult = tokenSearcher.search(word), - obj = {}; - tokenSearchResult.isMatch - ? ((obj[word] = tokenSearchResult.score), - (exists = !0), - (hasMatchInText = !0), - scores.push(tokenSearchResult.score)) - : ((obj[word] = 1), - this.options.matchAllTokens || scores.push(1)), - this._log('Token: "' + word + '", score: ' + obj[word]); - } - hasMatchInText && (numTextMatches += 1); - } - averageScore = scores[0]; - for (var scoresLen = scores.length, _i2 = 1; _i2 < scoresLen; _i2 += 1) - averageScore += scores[_i2]; - (averageScore /= scoresLen), - this._log('Token score average:', averageScore); - } - var finalScore = mainSearchResult.score; - averageScore > -1 && (finalScore = (finalScore + averageScore) / 2), - this._log('Score average:', finalScore); - var checkTextMatches = - !this.options.tokenize || - !this.options.matchAllTokens || - numTextMatches >= tokenSearchers.length; - if ( - (this._log('\nCheck Matches: ' + checkTextMatches), - (exists || mainSearchResult.isMatch) && checkTextMatches) - ) { - var existingResult = resultMap[index]; - existingResult - ? existingResult.output.push({ - key: key, - arrayIndex: arrayIndex, - value: value, - score: finalScore, - matchedIndices: mainSearchResult.matchedIndices - }) - : ((resultMap[index] = { - item: record, - output: [ - { - key: key, - arrayIndex: arrayIndex, - value: value, - score: finalScore, - matchedIndices: mainSearchResult.matchedIndices - } - ] - }), - results.push(resultMap[index])); - } - } else if (isArray(value)) - for (var _i3 = 0, len = value.length; _i3 < len; _i3 += 1) - this._analyze( - { - key: key, - arrayIndex: _i3, - value: value[_i3], - record: record, - index: index - }, - { - resultMap: resultMap, - results: results, - tokenSearchers: tokenSearchers, - fullSearcher: fullSearcher - } - ); - } - } - }, - { - key: '_computeScore', - value: function _computeScore(weights, results) { - this._log('\n\nComputing score:\n'); - for (var i = 0, len = results.length; i < len; i += 1) { - for ( - var output = results[i].output, - scoreLen = output.length, - totalScore = 0, - bestScore = 1, - j = 0; - j < scoreLen; - j += 1 - ) { - var weight = weights ? weights[output[j].key].weight : 1, - nScore = - (1 === weight ? output[j].score : output[j].score || 0.001) * weight; - 1 !== weight - ? (bestScore = Math.min(bestScore, nScore)) - : ((output[j].nScore = nScore), (totalScore += nScore)); - } - (results[i].score = 1 === bestScore ? totalScore / scoreLen : bestScore), - this._log(results[i]); - } - } - }, - { - key: '_sort', - value: function _sort(results) { - this._log('\n\nSorting....'), results.sort(this.options.sortFn); - } - }, - { - key: '_format', - value: function _format(results) { - var finalOutput = []; - this._log('\n\nOutput:\n\n', JSON.stringify(results)); - var transformers = []; - this.options.includeMatches && - transformers.push(function(result, data) { - var output = result.output; - data.matches = []; - for (var i = 0, len = output.length; i < len; i += 1) { - var item = output[i]; - if (0 !== item.matchedIndices.length) { - var obj = { indices: item.matchedIndices, value: item.value }; - item.key && (obj.key = item.key), - item.hasOwnProperty('arrayIndex') && - item.arrayIndex > -1 && - (obj.arrayIndex = item.arrayIndex), - data.matches.push(obj); - } - } - }), - this.options.includeScore && - transformers.push(function(result, data) { - data.score = result.score; - }); - for (var i = 0, len = results.length; i < len; i += 1) { - var result = results[i]; - if ( - (this.options.id && - (result.item = this.options.getFn(result.item, this.options.id)[0]), - transformers.length) - ) { - for ( - var data = { item: result.item }, j = 0, _len2 = transformers.length; - j < _len2; - j += 1 - ) - transformers[j](result, data); - finalOutput.push(data); - } else finalOutput.push(result.item); - } - return finalOutput; - } - }, - { - key: '_log', - value: function _log() { - var _console; - this.options.verbose && (_console = console).log.apply(_console, arguments); - } - } - ]), - Fuse - ); - })(); - module.exports = Fuse; - } - ]); - }); - }, - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - function(module, exports, __webpack_require__) { - __webpack_require__(304), - __webpack_require__(947), - (module.exports = __webpack_require__(1131)); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - Object.defineProperty(__webpack_exports__, '__esModule', { value: !0 }); - var __WEBPACK_IMPORTED_MODULE_0__storybook_addon_actions_register__ = __webpack_require__(948), - __WEBPACK_IMPORTED_MODULE_1__storybook_addon_knobs_register__ = (__webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_0__storybook_addon_actions_register__ - ), - __webpack_require__(949)), - __WEBPACK_IMPORTED_MODULE_2__storybook_addon_links_register__ = (__webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_1__storybook_addon_knobs_register__ - ), - __webpack_require__(1127)), - __WEBPACK_IMPORTED_MODULE_3__storybook_addon_options_register__ = (__webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_2__storybook_addon_links_register__ - ), - __webpack_require__(1128)); - __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__storybook_addon_options_register__); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(104).register(); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(950); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _addons2 = _interopRequireDefault(__webpack_require__(40)), - _Panel2 = _interopRequireDefault(__webpack_require__(951)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - _addons2.default.register('storybooks/storybook-addon-knobs', function(api) { - var channel = _addons2.default.getChannel(); - _addons2.default.addPanel('storybooks/storybook-addon-knobs', { - title: 'Knobs', - render: function render() { - return _react2.default.createElement(_Panel2.default, { - channel: channel, - api: api, - key: 'knobs-panel' - }); - } - }); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _keys2 = _interopRequireDefault(__webpack_require__(34)), - _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _lodash2 = _interopRequireDefault(__webpack_require__(638)), - _PropForm2 = _interopRequireDefault(__webpack_require__(952)), - _types2 = _interopRequireDefault(__webpack_require__(639)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var getTimestamp = function getTimestamp() { - return +new Date(); - }, - styles = { - panelWrapper: { width: '100%' }, - panel: { padding: '5px', width: 'auto', position: 'relative' }, - noKnobs: { - fontFamily: - '\n -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto",\n "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif\n ', - display: 'inline', - width: '100%', - textAlign: 'center', - color: 'rgb(190, 190, 190)', - padding: '10px' - }, - resetButton: { - position: 'absolute', - bottom: 11, - right: 10, - border: 'none', - borderTop: 'solid 1px rgba(0, 0, 0, 0.2)', - borderLeft: 'solid 1px rgba(0, 0, 0, 0.2)', - background: 'rgba(255, 255, 255, 0.5)', - padding: '5px 10px', - borderRadius: '4px 0 0 0', - color: 'rgba(0, 0, 0, 0.5)', - outline: 'none' - } - }, - Panel = (function(_React$Component) { - function Panel(props) { - (0, _classCallCheck3.default)(this, Panel); - var _this = (0, _possibleConstructorReturn3.default)( - this, - (Panel.__proto__ || (0, _getPrototypeOf2.default)(Panel)).call(this, props) - ); - return ( - (_this.handleChange = _this.handleChange.bind(_this)), - (_this.handleClick = _this.handleClick.bind(_this)), - (_this.setKnobs = _this.setKnobs.bind(_this)), - (_this.reset = _this.reset.bind(_this)), - (_this.setOptions = _this.setOptions.bind(_this)), - (_this.state = { knobs: {} }), - (_this.options = {}), - (_this.lastEdit = getTimestamp()), - (_this.loadedFromUrl = !1), - _this.props.channel.on('addon:knobs:setKnobs', _this.setKnobs), - _this.props.channel.on('addon:knobs:setOptions', _this.setOptions), - (_this.stopListeningOnStory = _this.props.api.onStory(function() { - _this.setState({ knobs: [] }), _this.props.channel.emit('addon:knobs:reset'); - })), - _this - ); - } - return ( - (0, _inherits3.default)(Panel, _React$Component), - (0, _createClass3.default)(Panel, [ - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.props.channel.removeListener('addon:knobs:setKnobs', this.setKnobs), - this.stopListeningOnStory(); - } - }, - { - key: 'setOptions', - value: function setOptions() { - var options = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : { debounce: !1, timestamps: !1 }; - (this.options = options), - options.debounce && - (this.emitChange = (0, _lodash2.default)( - this.emitChange, - options.debounce.wait, - { leading: options.debounce.leading } - )); - } - }, - { - key: 'setKnobs', - value: function setKnobs(_ref) { - var _this2 = this, - knobs = _ref.knobs, - timestamp = _ref.timestamp, - queryParams = {}, - _props = this.props, - api = _props.api, - channel = _props.channel; - (!this.options.timestamps || !timestamp || this.lastEdit <= timestamp) && - ((0, _keys2.default)(knobs).forEach(function(name) { - var knob = knobs[name]; - if (!_this2.loadedFromUrl) { - var urlValue = api.getQueryParam('knob-' + name); - void 0 !== urlValue && - ((knob.value = _types2.default[knob.type].deserialize(urlValue)), - channel.emit('addon:knobs:knobChange', knob)); - } - queryParams['knob-' + name] = _types2.default[knob.type].serialize(knob.value); - }), - (this.loadedFromUrl = !0), - api.setQueryParams(queryParams), - this.setState({ knobs: knobs })); - } - }, - { - key: 'reset', - value: function reset() { - this.props.channel.emit('addon:knobs:reset'); - } - }, - { - key: 'emitChange', - value: function emitChange(changedKnob) { - this.props.channel.emit('addon:knobs:knobChange', changedKnob); - } - }, - { - key: 'handleChange', - value: function handleChange(changedKnob) { - this.lastEdit = getTimestamp(); - var api = this.props.api, - knobs = this.state.knobs, - name = changedKnob.name, - type = changedKnob.type, - value = changedKnob.value, - newKnobs = (0, _extends3.default)({}, knobs); - (newKnobs[name] = (0, _extends3.default)({}, newKnobs[name], changedKnob)), - this.setState({ knobs: newKnobs }); - var queryParams = {}; - (queryParams['knob-' + name] = _types2.default[type].serialize(value)), - api.setQueryParams(queryParams), - this.setState({ knobs: newKnobs }, this.emitChange(changedKnob)); - } - }, - { - key: 'handleClick', - value: function handleClick(knob) { - this.props.channel.emit('addon:knobs:knobClick', knob); - } - }, - { - key: 'render', - value: function render() { - var knobs = this.state.knobs, - knobsArray = (0, _keys2.default)(knobs) - .filter(function(key) { - return knobs[key].used; - }) - .map(function(key) { - return knobs[key]; - }); - return 0 === knobsArray.length - ? _react2.default.createElement('div', { style: styles.noKnobs }, 'NO KNOBS') - : _react2.default.createElement( - 'div', - { style: styles.panelWrapper }, - _react2.default.createElement( - 'div', - { style: styles.panel }, - _react2.default.createElement(_PropForm2.default, { - knobs: knobsArray, - onFieldChange: this.handleChange, - onFieldClick: this.handleClick - }) - ), - _react2.default.createElement( - 'button', - { style: styles.resetButton, onClick: this.reset }, - 'RESET' - ) - ); - } - } - ]), - Panel - ); - })(_react2.default.Component); - (exports.default = Panel), - (Panel.propTypes = { - channel: _propTypes2.default.shape({ - emit: _propTypes2.default.func, - on: _propTypes2.default.func, - removeListener: _propTypes2.default.func - }).isRequired, - onReset: _propTypes2.default.object, - api: _propTypes2.default.shape({ - onStory: _propTypes2.default.func, - getQueryParam: _propTypes2.default.func, - setQueryParams: _propTypes2.default.func - }).isRequired - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _PropField2 = _interopRequireDefault(__webpack_require__(953)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var stylesheet = { - propForm: { - fontFamily: - '\n -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto",\n "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif\n ', - display: 'table', - boxSizing: 'border-box', - width: '100%', - borderCollapse: 'separate', - borderSpacing: '5px' - } - }, - propForm = (function(_React$Component) { - function propForm() { - return ( - (0, _classCallCheck3.default)(this, propForm), - (0, _possibleConstructorReturn3.default)( - this, - (propForm.__proto__ || (0, _getPrototypeOf2.default)(propForm)).apply(this, arguments) - ) - ); - } - return ( - (0, _inherits3.default)(propForm, _React$Component), - (0, _createClass3.default)(propForm, [ - { - key: 'makeChangeHandler', - value: function makeChangeHandler(name, type) { - var _this2 = this; - return function(value) { - var change = { name: name, type: type, value: value }; - _this2.props.onFieldChange(change); - }; - } - }, - { - key: 'render', - value: function render() { - var _this3 = this, - knobs = this.props.knobs; - return _react2.default.createElement( - 'form', - { style: stylesheet.propForm }, - knobs.map(function(knob) { - var changeHandler = _this3.makeChangeHandler(knob.name, knob.type); - return _react2.default.createElement(_PropField2.default, { - key: knob.name, - name: knob.name, - type: knob.type, - value: knob.value, - knob: knob, - onChange: changeHandler, - onClick: _this3.props.onFieldClick - }); - }) - ); - } - } - ]), - propForm - ); - })(_react2.default.Component); - (exports.default = propForm), - (propForm.displayName = 'propForm'), - (propForm.defaultProps = { knobs: [] }), - (propForm.propTypes = { - knobs: _propTypes2.default.arrayOf( - _propTypes2.default.shape({ - name: _propTypes2.default.string, - value: _propTypes2.default.any - }) - ), - onFieldChange: _propTypes2.default.func.isRequired, - onFieldClick: _propTypes2.default.func.isRequired - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _extends3 = _interopRequireDefault(__webpack_require__(8)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _types2 = _interopRequireDefault(__webpack_require__(639)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var InvalidType = function InvalidType() { - return _react2.default.createElement('span', null, 'Invalid Type'); - }, - stylesheet = { - field: { display: 'table-row', padding: '5px' }, - label: { - display: 'table-cell', - boxSizing: 'border-box', - verticalAlign: 'top', - paddingRight: 5, - paddingTop: 5, - textAlign: 'right', - width: 80, - fontSize: 12, - color: 'rgb(68, 68, 68)', - fontWeight: 600 - } - }; - (stylesheet.textarea = (0, _extends3.default)({}, stylesheet.input, { height: '100px' })), - (stylesheet.checkbox = (0, _extends3.default)({}, stylesheet.input, { width: 'auto' })); - var PropField = (function(_React$Component) { - function PropField(props) { - (0, _classCallCheck3.default)(this, PropField); - var _this = (0, _possibleConstructorReturn3.default)( - this, - (PropField.__proto__ || (0, _getPrototypeOf2.default)(PropField)).call(this, props) - ); - return (_this._onChange = _this.onChange.bind(_this)), _this; - } - return ( - (0, _inherits3.default)(PropField, _React$Component), - (0, _createClass3.default)(PropField, [ - { - key: 'onChange', - value: function onChange(e) { - this.props.onChange(e.target.value); - } - }, - { - key: 'render', - value: function render() { - var _props = this.props, - onChange = _props.onChange, - onClick = _props.onClick, - knob = _props.knob, - InputType = _types2.default[knob.type] || InvalidType; - return _react2.default.createElement( - 'div', - { style: stylesheet.field }, - _react2.default.createElement( - 'label', - { htmlFor: knob.name, style: stylesheet.label }, - !knob.hideLabel && '' + knob.name - ), - _react2.default.createElement(InputType, { - knob: knob, - onChange: onChange, - onClick: onClick - }) - ); - } - } - ]), - PropField - ); - })(_react2.default.Component); - (exports.default = PropField), - (PropField.propTypes = { - knob: _propTypes2.default.shape({ - name: _propTypes2.default.string, - value: _propTypes2.default.any - }).isRequired, - onChange: _propTypes2.default.func.isRequired, - onClick: _propTypes2.default.func.isRequired - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactTextareaAutosize2 = _interopRequireDefault(__webpack_require__(594)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var styles = { - display: 'table-cell', - boxSizing: 'border-box', - verticalAlign: 'middle', - height: '26px', - width: '100%', - outline: 'none', - border: '1px solid #f7f4f4', - borderRadius: 2, - fontSize: 11, - padding: '5px', - color: '#555' - }, - TextType = function TextType(_ref) { - var knob = _ref.knob, - _onChange = _ref.onChange; - return _react2.default.createElement(_reactTextareaAutosize2.default, { - id: knob.name, - style: styles, - value: knob.value, - onChange: function onChange(e) { - return _onChange(e.target.value); - } - }); - }; - (TextType.defaultProps = { - knob: {}, - onChange: function onChange(value) { - return value; - } - }), - (TextType.propTypes = { - knob: _propTypes2.default.shape({ - name: _propTypes2.default.string, - value: _propTypes2.default.string - }), - onChange: _propTypes2.default.func - }), - (TextType.serialize = function(value) { - return value; - }), - (TextType.deserialize = function(value) { - return value; - }), - (exports.default = TextType); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react2 = _interopRequireDefault(__webpack_require__(0)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var styles = { - display: 'table-cell', - boxSizing: 'border-box', - verticalAlign: 'middle', - height: '25px', - width: '100%', - outline: 'none', - border: '1px solid #f7f4f4', - borderRadius: 2, - fontSize: 11, - padding: '5px', - color: '#444' - }, - NumberType = (function(_React$Component) { - function NumberType(props) { - (0, _classCallCheck3.default)(this, NumberType); - var _this = (0, _possibleConstructorReturn3.default)( - this, - (NumberType.__proto__ || (0, _getPrototypeOf2.default)(NumberType)).call(this, props) - ); - return ( - (_this.renderNormal = _this.renderNormal.bind(_this)), - (_this.renderRange = _this.renderRange.bind(_this)), - _this - ); - } - return ( - (0, _inherits3.default)(NumberType, _React$Component), - (0, _createClass3.default)(NumberType, [ - { - key: 'renderNormal', - value: function renderNormal() { - var _this2 = this, - _props = this.props, - knob = _props.knob, - _onChange = _props.onChange; - return _react2.default.createElement('input', { - id: knob.name, - ref: function ref(c) { - _this2.input = c; - }, - style: styles, - value: knob.value, - type: 'number', - min: knob.min, - max: knob.max, - step: knob.step, - onChange: function onChange() { - return _onChange(parseFloat(_this2.input.value)); - } - }); - } - }, - { - key: 'renderRange', - value: function renderRange() { - var _this3 = this, - _props2 = this.props, - knob = _props2.knob, - _onChange2 = _props2.onChange; - return _react2.default.createElement('input', { - id: knob.name, - ref: function ref(c) { - _this3.input = c; - }, - style: styles, - value: knob.value, - type: 'range', - min: knob.min, - max: knob.max, - step: knob.step, - onChange: function onChange() { - return _onChange2(parseFloat(_this3.input.value)); - } - }); - } - }, - { - key: 'render', - value: function render() { - return this.props.knob.range ? this.renderRange() : this.renderNormal(); - } - } - ]), - NumberType - ); - })(_react2.default.Component); - (NumberType.defaultProps = { - knob: {}, - onChange: function onChange(value) { - return value; - } - }), - (NumberType.propTypes = { - knob: _propTypes2.default.shape({ - name: _propTypes2.default.string, - value: _propTypes2.default.number - }), - onChange: _propTypes2.default.func - }), - (NumberType.serialize = function(value) { - return String(value); - }), - (NumberType.deserialize = function(value) { - return parseFloat(value); - }), - (exports.default = NumberType); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _global = __webpack_require__(50), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactColor = __webpack_require__(957); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var styles = { - swatch: { - background: '#fff', - borderRadius: '1px', - border: '1px solid rgb(247, 244, 244)', - display: 'inline-block', - cursor: 'pointer', - width: '100%', - padding: 0 - }, - popover: { position: 'absolute', zIndex: '2' }, - cover: { position: 'fixed', top: '0px', right: '0px', bottom: '0px', left: '0px' } - }, - ColorType = (function(_React$Component) { - function ColorType(props) { - (0, _classCallCheck3.default)(this, ColorType); - var _this = (0, _possibleConstructorReturn3.default)( - this, - (ColorType.__proto__ || (0, _getPrototypeOf2.default)(ColorType)).call(this, props) - ); - return ( - (_this.handleClick = _this.handleClick.bind(_this)), - (_this.onWindowMouseDown = _this.onWindowMouseDown.bind(_this)), - (_this.state = { displayColorPicker: !1 }), - _this - ); - } - return ( - (0, _inherits3.default)(ColorType, _React$Component), - (0, _createClass3.default)(ColorType, [ - { - key: 'componentDidMount', - value: function componentDidMount() { - _global.document.addEventListener('mousedown', this.onWindowMouseDown); - } - }, - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - _global.document.removeEventListener('mousedown', this.onWindowMouseDown); - } - }, - { - key: 'onWindowMouseDown', - value: function onWindowMouseDown(e) { - this.state.displayColorPicker && - (this.popover.contains(e.target) || this.setState({ displayColorPicker: !1 })); - } - }, - { - key: 'handleClick', - value: function handleClick() { - this.setState({ displayColorPicker: !this.state.displayColorPicker }); - } - }, - { - key: 'render', - value: function render() { - var _this2 = this, - _props = this.props, - knob = _props.knob, - _onChange = _props.onChange, - displayColorPicker = this.state.displayColorPicker, - colorStyle = { - width: 'auto', - height: '20px', - borderRadius: '2px', - margin: 5, - background: knob.value - }; - return _react2.default.createElement( - 'div', - { id: knob.name }, - _react2.default.createElement( - 'button', - { type: 'button', style: styles.swatch, onClick: this.handleClick }, - _react2.default.createElement('div', { style: colorStyle }) - ), - (function conditionalRender(condition, positive, negative) { - return condition ? positive() : negative(); - })( - displayColorPicker, - function() { - return _react2.default.createElement( - 'div', - { - style: styles.popover, - ref: function ref(e) { - _this2.popover = e; - } - }, - _react2.default.createElement(_reactColor.SketchPicker, { - color: knob.value, - onChange: function onChange(color) { - return _onChange( - 'rgba(' + - color.rgb.r + - ',' + - color.rgb.g + - ',' + - color.rgb.b + - ',' + - color.rgb.a + - ')' - ); - } - }) - ); - }, - function() { - return null; - } - ) - ); - } - } - ]), - ColorType - ); - })(_react2.default.Component); - (ColorType.propTypes = { - knob: _propTypes2.default.shape({ - name: _propTypes2.default.string, - value: _propTypes2.default.string - }), - onChange: _propTypes2.default.func - }), - (ColorType.defaultProps = { - knob: {}, - onChange: function onChange(value) { - return value; - } - }), - (ColorType.serialize = function(value) { - return value; - }), - (ColorType.deserialize = function(value) { - return value; - }), - (exports.default = ColorType); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.CustomPicker = exports.TwitterPicker = exports.SwatchesPicker = exports.SliderPicker = exports.SketchPicker = exports.PhotoshopPicker = exports.MaterialPicker = exports.HuePicker = exports.GithubPicker = exports.CompactPicker = exports.ChromePicker = exports.default = exports.CirclePicker = exports.BlockPicker = exports.AlphaPicker = void 0); - var _Alpha = __webpack_require__(958); - Object.defineProperty(exports, 'AlphaPicker', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_Alpha).default; - } - }); - var _Block = __webpack_require__(1079); - Object.defineProperty(exports, 'BlockPicker', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_Block).default; - } - }); - var _Circle = __webpack_require__(1081); - Object.defineProperty(exports, 'CirclePicker', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_Circle).default; - } - }); - var _Chrome = __webpack_require__(1083); - Object.defineProperty(exports, 'ChromePicker', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_Chrome).default; - } - }); - var _Compact = __webpack_require__(1087); - Object.defineProperty(exports, 'CompactPicker', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_Compact).default; - } - }); - var _Github = __webpack_require__(1090); - Object.defineProperty(exports, 'GithubPicker', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_Github).default; - } - }); - var _Hue = __webpack_require__(1092); - Object.defineProperty(exports, 'HuePicker', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_Hue).default; - } - }); - var _Material = __webpack_require__(1094); - Object.defineProperty(exports, 'MaterialPicker', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_Material).default; - } - }); - var _Photoshop = __webpack_require__(1095); - Object.defineProperty(exports, 'PhotoshopPicker', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_Photoshop).default; - } - }); - var _Sketch = __webpack_require__(1101); - Object.defineProperty(exports, 'SketchPicker', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_Sketch).default; - } - }); - var _Slider = __webpack_require__(1104); - Object.defineProperty(exports, 'SliderPicker', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_Slider).default; - } - }); - var _Swatches = __webpack_require__(1108); - Object.defineProperty(exports, 'SwatchesPicker', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_Swatches).default; - } - }); - var _Twitter = __webpack_require__(1111); - Object.defineProperty(exports, 'TwitterPicker', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_Twitter).default; - } - }); - var _ColorWrap = __webpack_require__(675); - Object.defineProperty(exports, 'CustomPicker', { - enumerable: !0, - get: function get() { - return _interopRequireDefault(_ColorWrap).default; - } - }); - var _Chrome2 = _interopRequireDefault(_Chrome); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - exports.default = _Chrome2.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.AlphaPicker = void 0); - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }, - _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _common = __webpack_require__(23), - _AlphaPointer2 = _interopRequireDefault(__webpack_require__(1078)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var AlphaPicker = (exports.AlphaPicker = function AlphaPicker(_ref) { - var rgb = _ref.rgb, - hsl = _ref.hsl, - width = _ref.width, - height = _ref.height, - onChange = _ref.onChange, - direction = _ref.direction, - style = _ref.style, - renderers = _ref.renderers, - pointer = _ref.pointer, - _ref$className = _ref.className, - className = void 0 === _ref$className ? '' : _ref$className, - styles = (0, _reactcss2.default)({ - default: { - picker: { position: 'relative', width: width, height: height }, - alpha: { radius: '2px', style: style } - } - }); - return _react2.default.createElement( - 'div', - { style: styles.picker, className: 'alpha-picker ' + className }, - _react2.default.createElement( - _common.Alpha, - _extends({}, styles.alpha, { - rgb: rgb, - hsl: hsl, - pointer: pointer, - renderers: renderers, - onChange: onChange, - direction: direction - }) - ) - ); - }); - (AlphaPicker.defaultProps = { - width: '316px', - height: '16px', - direction: 'horizontal', - pointer: _AlphaPointer2.default - }), - (exports.default = (0, _common.ColorWrap)(AlphaPicker)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.flattenNames = void 0); - var _isString3 = _interopRequireDefault(__webpack_require__(960)), - _forOwn3 = _interopRequireDefault(__webpack_require__(595)), - _isPlainObject3 = _interopRequireDefault(__webpack_require__(973)), - _map3 = _interopRequireDefault(__webpack_require__(124)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var flattenNames = (exports.flattenNames = function flattenNames() { - var things = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], - names = []; - return ( - (0, _map3.default)(things, function(thing) { - Array.isArray(thing) - ? flattenNames(thing).map(function(name) { - return names.push(name); - }) - : (0, _isPlainObject3.default)(thing) - ? (0, _forOwn3.default)(thing, function(value, key) { - !0 === value && names.push(key), names.push(key + '-' + value); - }) - : (0, _isString3.default)(thing) && names.push(thing); - }), - names - ); - }); - exports.default = flattenNames; - }, - function(module, exports, __webpack_require__) { - var baseGetTag = __webpack_require__(177), - isArray = __webpack_require__(66), - isObjectLike = __webpack_require__(178), - stringTag = '[object String]'; - module.exports = function isString(value) { - return ( - 'string' == typeof value || - (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag) - ); - }; - }, - function(module, exports, __webpack_require__) { - var Symbol = __webpack_require__(268), - objectProto = Object.prototype, - hasOwnProperty = objectProto.hasOwnProperty, - nativeObjectToString = objectProto.toString, - symToStringTag = Symbol ? Symbol.toStringTag : void 0; - module.exports = function getRawTag(value) { - var isOwn = hasOwnProperty.call(value, symToStringTag), - tag = value[symToStringTag]; - try { - value[symToStringTag] = void 0; - var unmasked = !0; - } catch (e) {} - var result = nativeObjectToString.call(value); - return ( - unmasked && (isOwn ? (value[symToStringTag] = tag) : delete value[symToStringTag]), result - ); - }; - }, - function(module, exports) { - var nativeObjectToString = Object.prototype.toString; - module.exports = function objectToString(value) { - return nativeObjectToString.call(value); - }; - }, - function(module, exports, __webpack_require__) { - var baseFor = __webpack_require__(964)(); - module.exports = baseFor; - }, - function(module, exports) { - module.exports = function createBaseFor(fromRight) { - return function(object, iteratee, keysFunc) { - for ( - var index = -1, - iterable = Object(object), - props = keysFunc(object), - length = props.length; - length--; - - ) { - var key = props[fromRight ? length : ++index]; - if (!1 === iteratee(iterable[key], key, iterable)) break; - } - return object; - }; - }; - }, - function(module, exports) { - module.exports = function baseTimes(n, iteratee) { - for (var index = -1, result = Array(n); ++index < n; ) result[index] = iteratee(index); - return result; - }; - }, - function(module, exports, __webpack_require__) { - var baseGetTag = __webpack_require__(177), - isObjectLike = __webpack_require__(178), - argsTag = '[object Arguments]'; - module.exports = function baseIsArguments(value) { - return isObjectLike(value) && baseGetTag(value) == argsTag; - }; - }, - function(module, exports) { - module.exports = function stubFalse() { - return !1; - }; - }, - function(module, exports, __webpack_require__) { - var baseGetTag = __webpack_require__(177), - isLength = __webpack_require__(597), - isObjectLike = __webpack_require__(178), - typedArrayTags = {}; - (typedArrayTags['[object Float32Array]'] = typedArrayTags[ - '[object Float64Array]' - ] = typedArrayTags['[object Int8Array]'] = typedArrayTags[ - '[object Int16Array]' - ] = typedArrayTags['[object Int32Array]'] = typedArrayTags[ - '[object Uint8Array]' - ] = typedArrayTags['[object Uint8ClampedArray]'] = typedArrayTags[ - '[object Uint16Array]' - ] = typedArrayTags['[object Uint32Array]'] = !0), - (typedArrayTags['[object Arguments]'] = typedArrayTags['[object Array]'] = typedArrayTags[ - '[object ArrayBuffer]' - ] = typedArrayTags['[object Boolean]'] = typedArrayTags['[object DataView]'] = typedArrayTags[ - '[object Date]' - ] = typedArrayTags['[object Error]'] = typedArrayTags['[object Function]'] = typedArrayTags[ - '[object Map]' - ] = typedArrayTags['[object Number]'] = typedArrayTags['[object Object]'] = typedArrayTags[ - '[object RegExp]' - ] = typedArrayTags['[object Set]'] = typedArrayTags['[object String]'] = typedArrayTags[ - '[object WeakMap]' - ] = !1), - (module.exports = function baseIsTypedArray(value) { - return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; - }); - }, - function(module, exports) { - module.exports = function baseUnary(func) { - return function(value) { - return func(value); - }; - }; - }, - function(module, exports, __webpack_require__) { - (function(module) { - var freeGlobal = __webpack_require__(640), - freeExports = 'object' == typeof exports && exports && !exports.nodeType && exports, - freeModule = - freeExports && 'object' == typeof module && module && !module.nodeType && module, - freeProcess = freeModule && freeModule.exports === freeExports && freeGlobal.process, - nodeUtil = (function() { - try { - return freeProcess && freeProcess.binding && freeProcess.binding('util'); - } catch (e) {} - })(); - module.exports = nodeUtil; - }.call(exports, __webpack_require__(118)(module))); - }, - function(module, exports, __webpack_require__) { - var isPrototype = __webpack_require__(598), - nativeKeys = __webpack_require__(972), - hasOwnProperty = Object.prototype.hasOwnProperty; - module.exports = function baseKeys(object) { - if (!isPrototype(object)) return nativeKeys(object); - var result = []; - for (var key in Object(object)) - hasOwnProperty.call(object, key) && 'constructor' != key && result.push(key); - return result; - }; - }, - function(module, exports, __webpack_require__) { - var nativeKeys = __webpack_require__(646)(Object.keys, Object); - module.exports = nativeKeys; - }, - function(module, exports, __webpack_require__) { - var baseGetTag = __webpack_require__(177), - getPrototype = __webpack_require__(599), - isObjectLike = __webpack_require__(178), - objectTag = '[object Object]', - funcProto = Function.prototype, - objectProto = Object.prototype, - funcToString = funcProto.toString, - hasOwnProperty = objectProto.hasOwnProperty, - objectCtorString = funcToString.call(Object); - module.exports = function isPlainObject(value) { - if (!isObjectLike(value) || baseGetTag(value) != objectTag) return !1; - var proto = getPrototype(value); - if (null === proto) return !0; - var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; - return ( - 'function' == typeof Ctor && - Ctor instanceof Ctor && - funcToString.call(Ctor) == objectCtorString - ); - }; - }, - function(module, exports, __webpack_require__) { - var baseMatches = __webpack_require__(975), - baseMatchesProperty = __webpack_require__(1017), - identity = __webpack_require__(649), - isArray = __webpack_require__(66), - property = __webpack_require__(1027); - module.exports = function baseIteratee(value) { - return 'function' == typeof value - ? value - : null == value - ? identity - : 'object' == typeof value - ? isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value) - : property(value); - }; - }, - function(module, exports, __webpack_require__) { - var baseIsMatch = __webpack_require__(976), - getMatchData = __webpack_require__(1016), - matchesStrictComparable = __webpack_require__(663); - module.exports = function baseMatches(source) { - var matchData = getMatchData(source); - return 1 == matchData.length && matchData[0][2] - ? matchesStrictComparable(matchData[0][0], matchData[0][1]) - : function(object) { - return object === source || baseIsMatch(object, source, matchData); - }; - }; - }, - function(module, exports, __webpack_require__) { - var Stack = __webpack_require__(600), - baseIsEqual = __webpack_require__(652), - COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; - module.exports = function baseIsMatch(object, source, matchData, customizer) { - var index = matchData.length, - length = index, - noCustomizer = !customizer; - if (null == object) return !length; - for (object = Object(object); index--; ) { - var data = matchData[index]; - if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) return !1; - } - for (; ++index < length; ) { - var key = (data = matchData[index])[0], - objValue = object[key], - srcValue = data[1]; - if (noCustomizer && data[2]) { - if (void 0 === objValue && !(key in object)) return !1; - } else { - var stack = new Stack(); - if (customizer) var result = customizer(objValue, srcValue, key, object, source, stack); - if ( - !(void 0 === result - ? baseIsEqual( - srcValue, - objValue, - COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, - customizer, - stack - ) - : result) - ) - return !1; - } - } - return !0; - }; - }, - function(module, exports) { - module.exports = function listCacheClear() { - (this.__data__ = []), (this.size = 0); - }; - }, - function(module, exports, __webpack_require__) { - var assocIndexOf = __webpack_require__(294), - splice = Array.prototype.splice; - module.exports = function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - return !( - index < 0 || - (index == data.length - 1 ? data.pop() : splice.call(data, index, 1), --this.size, 0) - ); - }; - }, - function(module, exports, __webpack_require__) { - var assocIndexOf = __webpack_require__(294); - module.exports = function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - return index < 0 ? void 0 : data[index][1]; - }; - }, - function(module, exports, __webpack_require__) { - var assocIndexOf = __webpack_require__(294); - module.exports = function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; - }; - }, - function(module, exports, __webpack_require__) { - var assocIndexOf = __webpack_require__(294); - module.exports = function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - return index < 0 ? (++this.size, data.push([key, value])) : (data[index][1] = value), this; - }; - }, - function(module, exports, __webpack_require__) { - var ListCache = __webpack_require__(293); - module.exports = function stackClear() { - (this.__data__ = new ListCache()), (this.size = 0); - }; - }, - function(module, exports) { - module.exports = function stackDelete(key) { - var data = this.__data__, - result = data.delete(key); - return (this.size = data.size), result; - }; - }, - function(module, exports) { - module.exports = function stackGet(key) { - return this.__data__.get(key); - }; - }, - function(module, exports) { - module.exports = function stackHas(key) { - return this.__data__.has(key); - }; - }, - function(module, exports, __webpack_require__) { - var ListCache = __webpack_require__(293), - Map = __webpack_require__(602), - MapCache = __webpack_require__(603), - LARGE_ARRAY_SIZE = 200; - module.exports = function stackSet(key, value) { - var data = this.__data__; - if (data instanceof ListCache) { - var pairs = data.__data__; - if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) - return pairs.push([key, value]), (this.size = ++data.size), this; - data = this.__data__ = new MapCache(pairs); - } - return data.set(key, value), (this.size = data.size), this; - }; - }, - function(module, exports, __webpack_require__) { - var isFunction = __webpack_require__(647), - isMasked = __webpack_require__(988), - isObject = __webpack_require__(108), - toSource = __webpack_require__(651), - reIsHostCtor = /^\[object .+?Constructor\]$/, - funcProto = Function.prototype, - objectProto = Object.prototype, - funcToString = funcProto.toString, - hasOwnProperty = objectProto.hasOwnProperty, - reIsNative = RegExp( - '^' + - funcToString - .call(hasOwnProperty) - .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + - '$' - ); - module.exports = function baseIsNative(value) { - return ( - !(!isObject(value) || isMasked(value)) && - (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value)) - ); - }; - }, - function(module, exports, __webpack_require__) { - var uid, - coreJsData = __webpack_require__(989), - maskSrcKey = (uid = /[^.]+$/.exec( - (coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO) || '' - )) - ? 'Symbol(src)_1.' + uid - : ''; - module.exports = function isMasked(func) { - return !!maskSrcKey && maskSrcKey in func; - }; - }, - function(module, exports, __webpack_require__) { - var coreJsData = __webpack_require__(85)['__core-js_shared__']; - module.exports = coreJsData; - }, - function(module, exports) { - module.exports = function getValue(object, key) { - return null == object ? void 0 : object[key]; - }; - }, - function(module, exports, __webpack_require__) { - var Hash = __webpack_require__(992), - ListCache = __webpack_require__(293), - Map = __webpack_require__(602); - module.exports = function mapCacheClear() { - (this.size = 0), - (this.__data__ = { hash: new Hash(), map: new (Map || ListCache)(), string: new Hash() }); - }; - }, - function(module, exports, __webpack_require__) { - var hashClear = __webpack_require__(993), - hashDelete = __webpack_require__(994), - hashGet = __webpack_require__(995), - hashHas = __webpack_require__(996), - hashSet = __webpack_require__(997); - function Hash(entries) { - var index = -1, - length = null == entries ? 0 : entries.length; - for (this.clear(); ++index < length; ) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - (Hash.prototype.clear = hashClear), - (Hash.prototype.delete = hashDelete), - (Hash.prototype.get = hashGet), - (Hash.prototype.has = hashHas), - (Hash.prototype.set = hashSet), - (module.exports = Hash); - }, - function(module, exports, __webpack_require__) { - var nativeCreate = __webpack_require__(295); - module.exports = function hashClear() { - (this.__data__ = nativeCreate ? nativeCreate(null) : {}), (this.size = 0); - }; - }, - function(module, exports) { - module.exports = function hashDelete(key) { - var result = this.has(key) && delete this.__data__[key]; - return (this.size -= result ? 1 : 0), result; - }; - }, - function(module, exports, __webpack_require__) { - var nativeCreate = __webpack_require__(295), - HASH_UNDEFINED = '__lodash_hash_undefined__', - hasOwnProperty = Object.prototype.hasOwnProperty; - module.exports = function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? void 0 : result; - } - return hasOwnProperty.call(data, key) ? data[key] : void 0; - }; - }, - function(module, exports, __webpack_require__) { - var nativeCreate = __webpack_require__(295), - hasOwnProperty = Object.prototype.hasOwnProperty; - module.exports = function hashHas(key) { - var data = this.__data__; - return nativeCreate ? void 0 !== data[key] : hasOwnProperty.call(data, key); - }; - }, - function(module, exports, __webpack_require__) { - var nativeCreate = __webpack_require__(295), - HASH_UNDEFINED = '__lodash_hash_undefined__'; - module.exports = function hashSet(key, value) { - var data = this.__data__; - return ( - (this.size += this.has(key) ? 0 : 1), - (data[key] = nativeCreate && void 0 === value ? HASH_UNDEFINED : value), - this - ); - }; - }, - function(module, exports, __webpack_require__) { - var getMapData = __webpack_require__(296); - module.exports = function mapCacheDelete(key) { - var result = getMapData(this, key).delete(key); - return (this.size -= result ? 1 : 0), result; - }; - }, - function(module, exports) { - module.exports = function isKeyable(value) { - var type = typeof value; - return 'string' == type || 'number' == type || 'symbol' == type || 'boolean' == type - ? '__proto__' !== value - : null === value; - }; - }, - function(module, exports, __webpack_require__) { - var getMapData = __webpack_require__(296); - module.exports = function mapCacheGet(key) { - return getMapData(this, key).get(key); - }; - }, - function(module, exports, __webpack_require__) { - var getMapData = __webpack_require__(296); - module.exports = function mapCacheHas(key) { - return getMapData(this, key).has(key); - }; - }, - function(module, exports, __webpack_require__) { - var getMapData = __webpack_require__(296); - module.exports = function mapCacheSet(key, value) { - var data = getMapData(this, key), - size = data.size; - return data.set(key, value), (this.size += data.size == size ? 0 : 1), this; - }; - }, - function(module, exports, __webpack_require__) { - var Stack = __webpack_require__(600), - equalArrays = __webpack_require__(653), - equalByTag = __webpack_require__(1009), - equalObjects = __webpack_require__(1010), - getTag = __webpack_require__(661), - isArray = __webpack_require__(66), - isBuffer = __webpack_require__(596), - isTypedArray = __webpack_require__(645), - COMPARE_PARTIAL_FLAG = 1, - argsTag = '[object Arguments]', - arrayTag = '[object Array]', - objectTag = '[object Object]', - hasOwnProperty = Object.prototype.hasOwnProperty; - module.exports = function baseIsEqualDeep( - object, - other, - bitmask, - customizer, - equalFunc, - stack - ) { - var objIsArr = isArray(object), - othIsArr = isArray(other), - objTag = objIsArr ? arrayTag : getTag(object), - othTag = othIsArr ? arrayTag : getTag(other), - objIsObj = (objTag = objTag == argsTag ? objectTag : objTag) == objectTag, - othIsObj = (othTag = othTag == argsTag ? objectTag : othTag) == objectTag, - isSameTag = objTag == othTag; - if (isSameTag && isBuffer(object)) { - if (!isBuffer(other)) return !1; - (objIsArr = !0), (objIsObj = !1); - } - if (isSameTag && !objIsObj) - return ( - stack || (stack = new Stack()), - objIsArr || isTypedArray(object) - ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) - : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack) - ); - if (!(bitmask & COMPARE_PARTIAL_FLAG)) { - var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), - othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); - if (objIsWrapped || othIsWrapped) { - var objUnwrapped = objIsWrapped ? object.value() : object, - othUnwrapped = othIsWrapped ? other.value() : other; - return ( - stack || (stack = new Stack()), - equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack) - ); - } - } - return ( - !!isSameTag && - (stack || (stack = new Stack()), - equalObjects(object, other, bitmask, customizer, equalFunc, stack)) - ); - }; - }, - function(module, exports, __webpack_require__) { - var MapCache = __webpack_require__(603), - setCacheAdd = __webpack_require__(1005), - setCacheHas = __webpack_require__(1006); - function SetCache(values) { - var index = -1, - length = null == values ? 0 : values.length; - for (this.__data__ = new MapCache(); ++index < length; ) this.add(values[index]); - } - (SetCache.prototype.add = SetCache.prototype.push = setCacheAdd), - (SetCache.prototype.has = setCacheHas), - (module.exports = SetCache); - }, - function(module, exports) { - var HASH_UNDEFINED = '__lodash_hash_undefined__'; - module.exports = function setCacheAdd(value) { - return this.__data__.set(value, HASH_UNDEFINED), this; - }; - }, - function(module, exports) { - module.exports = function setCacheHas(value) { - return this.__data__.has(value); - }; - }, - function(module, exports) { - module.exports = function arraySome(array, predicate) { - for (var index = -1, length = null == array ? 0 : array.length; ++index < length; ) - if (predicate(array[index], index, array)) return !0; - return !1; - }; - }, - function(module, exports) { - module.exports = function cacheHas(cache, key) { - return cache.has(key); - }; - }, - function(module, exports, __webpack_require__) { - var Symbol = __webpack_require__(268), - Uint8Array = __webpack_require__(654), - eq = __webpack_require__(601), - equalArrays = __webpack_require__(653), - mapToArray = __webpack_require__(655), - setToArray = __webpack_require__(656), - COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2, - boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - mapTag = '[object Map]', - numberTag = '[object Number]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - symbolTag = '[object Symbol]', - arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]', - symbolProto = Symbol ? Symbol.prototype : void 0, - symbolValueOf = symbolProto ? symbolProto.valueOf : void 0; - module.exports = function equalByTag( - object, - other, - tag, - bitmask, - customizer, - equalFunc, - stack - ) { - switch (tag) { - case dataViewTag: - if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) - return !1; - (object = object.buffer), (other = other.buffer); - case arrayBufferTag: - return !( - object.byteLength != other.byteLength || - !equalFunc(new Uint8Array(object), new Uint8Array(other)) - ); - case boolTag: - case dateTag: - case numberTag: - return eq(+object, +other); - case errorTag: - return object.name == other.name && object.message == other.message; - case regexpTag: - case stringTag: - return object == other + ''; - case mapTag: - var convert = mapToArray; - case setTag: - var isPartial = bitmask & COMPARE_PARTIAL_FLAG; - if ((convert || (convert = setToArray), object.size != other.size && !isPartial)) - return !1; - var stacked = stack.get(object); - if (stacked) return stacked == other; - (bitmask |= COMPARE_UNORDERED_FLAG), stack.set(object, other); - var result = equalArrays( - convert(object), - convert(other), - bitmask, - customizer, - equalFunc, - stack - ); - return stack.delete(object), result; - case symbolTag: - if (symbolValueOf) return symbolValueOf.call(object) == symbolValueOf.call(other); - } - return !1; - }; - }, - function(module, exports, __webpack_require__) { - var getAllKeys = __webpack_require__(657), - COMPARE_PARTIAL_FLAG = 1, - hasOwnProperty = Object.prototype.hasOwnProperty; - module.exports = function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, - objProps = getAllKeys(object), - objLength = objProps.length; - if (objLength != getAllKeys(other).length && !isPartial) return !1; - for (var index = objLength; index--; ) { - var key = objProps[index]; - if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) return !1; - } - var stacked = stack.get(object); - if (stacked && stack.get(other)) return stacked == other; - var result = !0; - stack.set(object, other), stack.set(other, object); - for (var skipCtor = isPartial; ++index < objLength; ) { - var objValue = object[(key = objProps[index])], - othValue = other[key]; - if (customizer) - var compared = isPartial - ? customizer(othValue, objValue, key, other, object, stack) - : customizer(objValue, othValue, key, object, other, stack); - if ( - !(void 0 === compared - ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) - : compared) - ) { - result = !1; - break; - } - skipCtor || (skipCtor = 'constructor' == key); - } - if (result && !skipCtor) { - var objCtor = object.constructor, - othCtor = other.constructor; - objCtor != othCtor && - 'constructor' in object && - 'constructor' in other && - !( - 'function' == typeof objCtor && - objCtor instanceof objCtor && - 'function' == typeof othCtor && - othCtor instanceof othCtor - ) && - (result = !1); - } - return stack.delete(object), stack.delete(other), result; - }; - }, - function(module, exports) { - module.exports = function arrayFilter(array, predicate) { - for ( - var index = -1, length = null == array ? 0 : array.length, resIndex = 0, result = []; - ++index < length; - - ) { - var value = array[index]; - predicate(value, index, array) && (result[resIndex++] = value); - } - return result; - }; - }, - function(module, exports, __webpack_require__) { - var DataView = __webpack_require__(179)(__webpack_require__(85), 'DataView'); - module.exports = DataView; - }, - function(module, exports, __webpack_require__) { - var Promise = __webpack_require__(179)(__webpack_require__(85), 'Promise'); - module.exports = Promise; - }, - function(module, exports, __webpack_require__) { - var Set = __webpack_require__(179)(__webpack_require__(85), 'Set'); - module.exports = Set; - }, - function(module, exports, __webpack_require__) { - var WeakMap = __webpack_require__(179)(__webpack_require__(85), 'WeakMap'); - module.exports = WeakMap; - }, - function(module, exports, __webpack_require__) { - var isStrictComparable = __webpack_require__(662), - keys = __webpack_require__(269); - module.exports = function getMatchData(object) { - for (var result = keys(object), length = result.length; length--; ) { - var key = result[length], - value = object[key]; - result[length] = [key, value, isStrictComparable(value)]; - } - return result; - }; - }, - function(module, exports, __webpack_require__) { - var baseIsEqual = __webpack_require__(652), - get = __webpack_require__(1018), - hasIn = __webpack_require__(1024), - isKey = __webpack_require__(605), - isStrictComparable = __webpack_require__(662), - matchesStrictComparable = __webpack_require__(663), - toKey = __webpack_require__(298), - COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; - module.exports = function baseMatchesProperty(path, srcValue) { - return isKey(path) && isStrictComparable(srcValue) - ? matchesStrictComparable(toKey(path), srcValue) - : function(object) { - var objValue = get(object, path); - return void 0 === objValue && objValue === srcValue - ? hasIn(object, path) - : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); - }; - }; - }, - function(module, exports, __webpack_require__) { - var baseGet = __webpack_require__(664); - module.exports = function get(object, path, defaultValue) { - var result = null == object ? void 0 : baseGet(object, path); - return void 0 === result ? defaultValue : result; - }; - }, - function(module, exports, __webpack_require__) { - var reLeadingDot = /^\./, - rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, - reEscapeChar = /\\(\\)?/g, - stringToPath = __webpack_require__(1020)(function(string) { - var result = []; - return ( - reLeadingDot.test(string) && result.push(''), - string.replace(rePropName, function(match, number, quote, string) { - result.push(quote ? string.replace(reEscapeChar, '$1') : number || match); - }), - result - ); - }); - module.exports = stringToPath; - }, - function(module, exports, __webpack_require__) { - var memoize = __webpack_require__(1021), - MAX_MEMOIZE_SIZE = 500; - module.exports = function memoizeCapped(func) { - var result = memoize(func, function(key) { - return cache.size === MAX_MEMOIZE_SIZE && cache.clear(), key; - }), - cache = result.cache; - return result; - }; - }, - function(module, exports, __webpack_require__) { - var MapCache = __webpack_require__(603), - FUNC_ERROR_TEXT = 'Expected a function'; - function memoize(func, resolver) { - if ('function' != typeof func || (null != resolver && 'function' != typeof resolver)) - throw new TypeError(FUNC_ERROR_TEXT); - var memoized = function() { - var args = arguments, - key = resolver ? resolver.apply(this, args) : args[0], - cache = memoized.cache; - if (cache.has(key)) return cache.get(key); - var result = func.apply(this, args); - return (memoized.cache = cache.set(key, result) || cache), result; - }; - return (memoized.cache = new (memoize.Cache || MapCache)()), memoized; - } - (memoize.Cache = MapCache), (module.exports = memoize); - }, - function(module, exports, __webpack_require__) { - var baseToString = __webpack_require__(1023); - module.exports = function toString(value) { - return null == value ? '' : baseToString(value); - }; - }, - function(module, exports, __webpack_require__) { - var Symbol = __webpack_require__(268), - arrayMap = __webpack_require__(650), - isArray = __webpack_require__(66), - isSymbol = __webpack_require__(297), - INFINITY = 1 / 0, - symbolProto = Symbol ? Symbol.prototype : void 0, - symbolToString = symbolProto ? symbolProto.toString : void 0; - module.exports = function baseToString(value) { - if ('string' == typeof value) return value; - if (isArray(value)) return arrayMap(value, baseToString) + ''; - if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : ''; - var result = value + ''; - return '0' == result && 1 / value == -INFINITY ? '-0' : result; - }; - }, - function(module, exports, __webpack_require__) { - var baseHasIn = __webpack_require__(1025), - hasPath = __webpack_require__(1026); - module.exports = function hasIn(object, path) { - return null != object && hasPath(object, path, baseHasIn); - }; - }, - function(module, exports) { - module.exports = function baseHasIn(object, key) { - return null != object && key in Object(object); - }; - }, - function(module, exports, __webpack_require__) { - var castPath = __webpack_require__(665), - isArguments = __webpack_require__(643), - isArray = __webpack_require__(66), - isIndex = __webpack_require__(644), - isLength = __webpack_require__(597), - toKey = __webpack_require__(298); - module.exports = function hasPath(object, path, hasFunc) { - for ( - var index = -1, length = (path = castPath(path, object)).length, result = !1; - ++index < length; - - ) { - var key = toKey(path[index]); - if (!(result = null != object && hasFunc(object, key))) break; - object = object[key]; - } - return result || ++index != length - ? result - : !!(length = null == object ? 0 : object.length) && - isLength(length) && - isIndex(key, length) && - (isArray(object) || isArguments(object)); - }; - }, - function(module, exports, __webpack_require__) { - var baseProperty = __webpack_require__(1028), - basePropertyDeep = __webpack_require__(1029), - isKey = __webpack_require__(605), - toKey = __webpack_require__(298); - module.exports = function property(path) { - return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); - }; - }, - function(module, exports) { - module.exports = function baseProperty(key) { - return function(object) { - return null == object ? void 0 : object[key]; - }; - }; - }, - function(module, exports, __webpack_require__) { - var baseGet = __webpack_require__(664); - module.exports = function basePropertyDeep(path) { - return function(object) { - return baseGet(object, path); - }; - }; - }, - function(module, exports, __webpack_require__) { - var baseEach = __webpack_require__(666), - isArrayLike = __webpack_require__(292); - module.exports = function baseMap(collection, iteratee) { - var index = -1, - result = isArrayLike(collection) ? Array(collection.length) : []; - return ( - baseEach(collection, function(value, key, collection) { - result[++index] = iteratee(value, key, collection); - }), - result - ); - }; - }, - function(module, exports, __webpack_require__) { - var isArrayLike = __webpack_require__(292); - module.exports = function createBaseEach(eachFunc, fromRight) { - return function(collection, iteratee) { - if (null == collection) return collection; - if (!isArrayLike(collection)) return eachFunc(collection, iteratee); - for ( - var length = collection.length, - index = fromRight ? length : -1, - iterable = Object(collection); - (fromRight ? index-- : ++index < length) && - !1 !== iteratee(iterable[index], index, iterable); - - ); - return collection; - }; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.mergeClasses = void 0); - var _forOwn3 = _interopRequireDefault(__webpack_require__(595)), - _cloneDeep3 = _interopRequireDefault(__webpack_require__(1033)), - _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var mergeClasses = (exports.mergeClasses = function mergeClasses(classes) { - var activeNames = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [], - styles = (classes.default && (0, _cloneDeep3.default)(classes.default)) || {}; - return ( - activeNames.map(function(name) { - var toMerge = classes[name]; - return ( - toMerge && - (0, _forOwn3.default)(toMerge, function(value, key) { - styles[key] || (styles[key] = {}), - (styles[key] = _extends({}, styles[key], toMerge[key])); - }), - name - ); - }), - styles - ); - }); - exports.default = mergeClasses; - }, - function(module, exports, __webpack_require__) { - var baseClone = __webpack_require__(1034), - CLONE_DEEP_FLAG = 1, - CLONE_SYMBOLS_FLAG = 4; - module.exports = function cloneDeep(value) { - return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); - }; - }, - function(module, exports, __webpack_require__) { - var Stack = __webpack_require__(600), - arrayEach = __webpack_require__(667), - assignValue = __webpack_require__(668), - baseAssign = __webpack_require__(1036), - baseAssignIn = __webpack_require__(1037), - cloneBuffer = __webpack_require__(1040), - copyArray = __webpack_require__(1041), - copySymbols = __webpack_require__(1042), - copySymbolsIn = __webpack_require__(1043), - getAllKeys = __webpack_require__(657), - getAllKeysIn = __webpack_require__(1044), - getTag = __webpack_require__(661), - initCloneArray = __webpack_require__(1045), - initCloneByTag = __webpack_require__(1046), - initCloneObject = __webpack_require__(1055), - isArray = __webpack_require__(66), - isBuffer = __webpack_require__(596), - isObject = __webpack_require__(108), - keys = __webpack_require__(269), - CLONE_DEEP_FLAG = 1, - CLONE_FLAT_FLAG = 2, - CLONE_SYMBOLS_FLAG = 4, - argsTag = '[object Arguments]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - objectTag = '[object Object]', - cloneableTags = {}; - (cloneableTags[argsTag] = cloneableTags['[object Array]'] = cloneableTags[ - '[object ArrayBuffer]' - ] = cloneableTags['[object DataView]'] = cloneableTags['[object Boolean]'] = cloneableTags[ - '[object Date]' - ] = cloneableTags['[object Float32Array]'] = cloneableTags[ - '[object Float64Array]' - ] = cloneableTags['[object Int8Array]'] = cloneableTags['[object Int16Array]'] = cloneableTags[ - '[object Int32Array]' - ] = cloneableTags['[object Map]'] = cloneableTags['[object Number]'] = cloneableTags[ - objectTag - ] = cloneableTags['[object RegExp]'] = cloneableTags['[object Set]'] = cloneableTags[ - '[object String]' - ] = cloneableTags['[object Symbol]'] = cloneableTags['[object Uint8Array]'] = cloneableTags[ - '[object Uint8ClampedArray]' - ] = cloneableTags['[object Uint16Array]'] = cloneableTags['[object Uint32Array]'] = !0), - (cloneableTags['[object Error]'] = cloneableTags[funcTag] = cloneableTags[ - '[object WeakMap]' - ] = !1), - (module.exports = function baseClone(value, bitmask, customizer, key, object, stack) { - var result, - isDeep = bitmask & CLONE_DEEP_FLAG, - isFlat = bitmask & CLONE_FLAT_FLAG, - isFull = bitmask & CLONE_SYMBOLS_FLAG; - if ( - (customizer && - (result = object ? customizer(value, key, object, stack) : customizer(value)), - void 0 !== result) - ) - return result; - if (!isObject(value)) return value; - var isArr = isArray(value); - if (isArr) { - if (((result = initCloneArray(value)), !isDeep)) return copyArray(value, result); - } else { - var tag = getTag(value), - isFunc = tag == funcTag || tag == genTag; - if (isBuffer(value)) return cloneBuffer(value, isDeep); - if (tag == objectTag || tag == argsTag || (isFunc && !object)) { - if (((result = isFlat || isFunc ? {} : initCloneObject(value)), !isDeep)) - return isFlat - ? copySymbolsIn(value, baseAssignIn(result, value)) - : copySymbols(value, baseAssign(result, value)); - } else { - if (!cloneableTags[tag]) return object ? value : {}; - result = initCloneByTag(value, tag, baseClone, isDeep); - } - } - stack || (stack = new Stack()); - var stacked = stack.get(value); - if (stacked) return stacked; - stack.set(value, result); - var keysFunc = isFull ? (isFlat ? getAllKeysIn : getAllKeys) : isFlat ? keysIn : keys, - props = isArr ? void 0 : keysFunc(value); - return ( - arrayEach(props || value, function(subValue, key) { - props && (subValue = value[(key = subValue)]), - assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack)); - }), - result - ); - }); - }, - function(module, exports, __webpack_require__) { - var getNative = __webpack_require__(179), - defineProperty = (function() { - try { - var func = getNative(Object, 'defineProperty'); - return func({}, '', {}), func; - } catch (e) {} - })(); - module.exports = defineProperty; - }, - function(module, exports, __webpack_require__) { - var copyObject = __webpack_require__(299), - keys = __webpack_require__(269); - module.exports = function baseAssign(object, source) { - return object && copyObject(source, keys(source), object); - }; - }, - function(module, exports, __webpack_require__) { - var copyObject = __webpack_require__(299), - keysIn = __webpack_require__(670); - module.exports = function baseAssignIn(object, source) { - return object && copyObject(source, keysIn(source), object); - }; - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(108), - isPrototype = __webpack_require__(598), - nativeKeysIn = __webpack_require__(1039), - hasOwnProperty = Object.prototype.hasOwnProperty; - module.exports = function baseKeysIn(object) { - if (!isObject(object)) return nativeKeysIn(object); - var isProto = isPrototype(object), - result = []; - for (var key in object) - ('constructor' != key || (!isProto && hasOwnProperty.call(object, key))) && - result.push(key); - return result; - }; - }, - function(module, exports) { - module.exports = function nativeKeysIn(object) { - var result = []; - if (null != object) for (var key in Object(object)) result.push(key); - return result; - }; - }, - function(module, exports, __webpack_require__) { - (function(module) { - var root = __webpack_require__(85), - freeExports = 'object' == typeof exports && exports && !exports.nodeType && exports, - freeModule = - freeExports && 'object' == typeof module && module && !module.nodeType && module, - Buffer = freeModule && freeModule.exports === freeExports ? root.Buffer : void 0, - allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0; - module.exports = function cloneBuffer(buffer, isDeep) { - if (isDeep) return buffer.slice(); - var length = buffer.length, - result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); - return buffer.copy(result), result; - }; - }.call(exports, __webpack_require__(118)(module))); - }, - function(module, exports) { - module.exports = function copyArray(source, array) { - var index = -1, - length = source.length; - for (array || (array = Array(length)); ++index < length; ) array[index] = source[index]; - return array; - }; - }, - function(module, exports, __webpack_require__) { - var copyObject = __webpack_require__(299), - getSymbols = __webpack_require__(604); - module.exports = function copySymbols(source, object) { - return copyObject(source, getSymbols(source), object); - }; - }, - function(module, exports, __webpack_require__) { - var copyObject = __webpack_require__(299), - getSymbolsIn = __webpack_require__(671); - module.exports = function copySymbolsIn(source, object) { - return copyObject(source, getSymbolsIn(source), object); - }; - }, - function(module, exports, __webpack_require__) { - var baseGetAllKeys = __webpack_require__(658), - getSymbolsIn = __webpack_require__(671), - keysIn = __webpack_require__(670); - module.exports = function getAllKeysIn(object) { - return baseGetAllKeys(object, keysIn, getSymbolsIn); - }; - }, - function(module, exports) { - var hasOwnProperty = Object.prototype.hasOwnProperty; - module.exports = function initCloneArray(array) { - var length = array.length, - result = array.constructor(length); - return ( - length && - 'string' == typeof array[0] && - hasOwnProperty.call(array, 'index') && - ((result.index = array.index), (result.input = array.input)), - result - ); - }; - }, - function(module, exports, __webpack_require__) { - var cloneArrayBuffer = __webpack_require__(606), - cloneDataView = __webpack_require__(1047), - cloneMap = __webpack_require__(1048), - cloneRegExp = __webpack_require__(1050), - cloneSet = __webpack_require__(1051), - cloneSymbol = __webpack_require__(1053), - cloneTypedArray = __webpack_require__(1054), - boolTag = '[object Boolean]', - dateTag = '[object Date]', - mapTag = '[object Map]', - numberTag = '[object Number]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - symbolTag = '[object Symbol]', - arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]', - float32Tag = '[object Float32Array]', - float64Tag = '[object Float64Array]', - int8Tag = '[object Int8Array]', - int16Tag = '[object Int16Array]', - int32Tag = '[object Int32Array]', - uint8Tag = '[object Uint8Array]', - uint8ClampedTag = '[object Uint8ClampedArray]', - uint16Tag = '[object Uint16Array]', - uint32Tag = '[object Uint32Array]'; - module.exports = function initCloneByTag(object, tag, cloneFunc, isDeep) { - var Ctor = object.constructor; - switch (tag) { - case arrayBufferTag: - return cloneArrayBuffer(object); - case boolTag: - case dateTag: - return new Ctor(+object); - case dataViewTag: - return cloneDataView(object, isDeep); - case float32Tag: - case float64Tag: - case int8Tag: - case int16Tag: - case int32Tag: - case uint8Tag: - case uint8ClampedTag: - case uint16Tag: - case uint32Tag: - return cloneTypedArray(object, isDeep); - case mapTag: - return cloneMap(object, isDeep, cloneFunc); - case numberTag: - case stringTag: - return new Ctor(object); - case regexpTag: - return cloneRegExp(object); - case setTag: - return cloneSet(object, isDeep, cloneFunc); - case symbolTag: - return cloneSymbol(object); - } - }; - }, - function(module, exports, __webpack_require__) { - var cloneArrayBuffer = __webpack_require__(606); - module.exports = function cloneDataView(dataView, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; - return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); - }; - }, - function(module, exports, __webpack_require__) { - var addMapEntry = __webpack_require__(1049), - arrayReduce = __webpack_require__(672), - mapToArray = __webpack_require__(655), - CLONE_DEEP_FLAG = 1; - module.exports = function cloneMap(map, isDeep, cloneFunc) { - var array = isDeep ? cloneFunc(mapToArray(map), CLONE_DEEP_FLAG) : mapToArray(map); - return arrayReduce(array, addMapEntry, new map.constructor()); - }; - }, - function(module, exports) { - module.exports = function addMapEntry(map, pair) { - return map.set(pair[0], pair[1]), map; - }; - }, - function(module, exports) { - var reFlags = /\w*$/; - module.exports = function cloneRegExp(regexp) { - var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); - return (result.lastIndex = regexp.lastIndex), result; - }; - }, - function(module, exports, __webpack_require__) { - var addSetEntry = __webpack_require__(1052), - arrayReduce = __webpack_require__(672), - setToArray = __webpack_require__(656), - CLONE_DEEP_FLAG = 1; - module.exports = function cloneSet(set, isDeep, cloneFunc) { - var array = isDeep ? cloneFunc(setToArray(set), CLONE_DEEP_FLAG) : setToArray(set); - return arrayReduce(array, addSetEntry, new set.constructor()); - }; - }, - function(module, exports) { - module.exports = function addSetEntry(set, value) { - return set.add(value), set; - }; - }, - function(module, exports, __webpack_require__) { - var Symbol = __webpack_require__(268), - symbolProto = Symbol ? Symbol.prototype : void 0, - symbolValueOf = symbolProto ? symbolProto.valueOf : void 0; - module.exports = function cloneSymbol(symbol) { - return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; - }; - }, - function(module, exports, __webpack_require__) { - var cloneArrayBuffer = __webpack_require__(606); - module.exports = function cloneTypedArray(typedArray, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; - return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); - }; - }, - function(module, exports, __webpack_require__) { - var baseCreate = __webpack_require__(1056), - getPrototype = __webpack_require__(599), - isPrototype = __webpack_require__(598); - module.exports = function initCloneObject(object) { - return 'function' != typeof object.constructor || isPrototype(object) - ? {} - : baseCreate(getPrototype(object)); - }; - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(108), - objectCreate = Object.create, - baseCreate = (function() { - function object() {} - return function(proto) { - if (!isObject(proto)) return {}; - if (objectCreate) return objectCreate(proto); - object.prototype = proto; - var result = new object(); - return (object.prototype = void 0), result; - }; - })(); - module.exports = baseCreate; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.autoprefix = void 0); - var _forOwn3 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(595)), - _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }; - var transforms = { - borderRadius: function borderRadius(value) { - return { - msBorderRadius: value, - MozBorderRadius: value, - OBorderRadius: value, - WebkitBorderRadius: value, - borderRadius: value - }; - }, - boxShadow: function boxShadow(value) { - return { - msBoxShadow: value, - MozBoxShadow: value, - OBoxShadow: value, - WebkitBoxShadow: value, - boxShadow: value - }; - }, - userSelect: function userSelect(value) { - return { - WebkitTouchCallout: value, - KhtmlUserSelect: value, - MozUserSelect: value, - msUserSelect: value, - WebkitUserSelect: value, - userSelect: value - }; - }, - flex: function flex(value) { - return { - WebkitBoxFlex: value, - MozBoxFlex: value, - WebkitFlex: value, - msFlex: value, - flex: value - }; - }, - flexBasis: function flexBasis(value) { - return { WebkitFlexBasis: value, flexBasis: value }; - }, - justifyContent: function justifyContent(value) { - return { WebkitJustifyContent: value, justifyContent: value }; - }, - transition: function transition(value) { - return { - msTransition: value, - MozTransition: value, - OTransition: value, - WebkitTransition: value, - transition: value - }; - }, - transform: function transform(value) { - return { - msTransform: value, - MozTransform: value, - OTransform: value, - WebkitTransform: value, - transform: value - }; - }, - absolute: function absolute(value) { - var direction = value && value.split(' '); - return { - position: 'absolute', - top: direction && direction[0], - right: direction && direction[1], - bottom: direction && direction[2], - left: direction && direction[3] - }; - }, - extend: function extend(name, otherElementStyles) { - var otherStyle = otherElementStyles[name]; - return otherStyle || { extend: name }; - } - }, - autoprefix = (exports.autoprefix = function autoprefix(elements) { - var prefixed = {}; - return ( - (0, _forOwn3.default)(elements, function(styles, element) { - var expanded = {}; - (0, _forOwn3.default)(styles, function(value, key) { - var transform = transforms[key]; - transform - ? (expanded = _extends({}, expanded, transform(value))) - : (expanded[key] = value); - }), - (prefixed[element] = expanded); - }), - prefixed - ); - }); - exports.default = autoprefix; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.hover = void 0); - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }, - _react2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(0)); - function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - } - var hover = (exports.hover = function hover(Component) { - var Span = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 'span'; - return (function(_React$Component) { - function Hover() { - var _ref, _temp, _this; - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, Hover); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) - args[_key] = arguments[_key]; - return ( - (_temp = _this = _possibleConstructorReturn( - this, - (_ref = Hover.__proto__ || Object.getPrototypeOf(Hover)).call.apply( - _ref, - [this].concat(args) - ) - )), - (_this.state = { hover: !1 }), - (_this.handleMouseOver = function() { - return _this.setState({ hover: !0 }); - }), - (_this.handleMouseOut = function() { - return _this.setState({ hover: !1 }); - }), - (_this.render = function() { - return _react2.default.createElement( - Span, - { onMouseOver: _this.handleMouseOver, onMouseOut: _this.handleMouseOut }, - _react2.default.createElement(Component, _extends({}, _this.props, _this.state)) - ); - }), - _possibleConstructorReturn(_this, _temp) - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(Hover, _react2.default.Component), - Hover - ); - })(); - }); - exports.default = hover; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.active = void 0); - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }, - _react2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(0)); - function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - } - var active = (exports.active = function active(Component) { - var Span = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 'span'; - return (function(_React$Component) { - function Active() { - var _ref, _temp, _this; - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, Active); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) - args[_key] = arguments[_key]; - return ( - (_temp = _this = _possibleConstructorReturn( - this, - (_ref = Active.__proto__ || Object.getPrototypeOf(Active)).call.apply( - _ref, - [this].concat(args) - ) - )), - (_this.state = { active: !1 }), - (_this.handleMouseDown = function() { - return _this.setState({ active: !0 }); - }), - (_this.handleMouseUp = function() { - return _this.setState({ active: !1 }); - }), - (_this.render = function() { - return _react2.default.createElement( - Span, - { onMouseDown: _this.handleMouseDown, onMouseUp: _this.handleMouseUp }, - _react2.default.createElement(Component, _extends({}, _this.props, _this.state)) - ); - }), - _possibleConstructorReturn(_this, _temp) - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(Active, _react2.default.Component), - Active - ); - })(); - }); - exports.default = active; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - exports.default = function loopable(i, length) { - var props = {}, - setProp = function setProp(name) { - var value = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1]; - props[name] = value; - }; - return ( - 0 === i && setProp('first-child'), - i === length - 1 && setProp('last-child'), - (0 === i || i % 2 == 0) && setProp('even'), - 1 === Math.abs(i % 2) && setProp('odd'), - setProp('nth-child', i), - props - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.Alpha = void 0); - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }, - _createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - Object.defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - alpha = (function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) return obj; - var newObj = {}; - if (null != obj) - for (var key in obj) - Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); - return (newObj.default = obj), newObj; - })(__webpack_require__(1062)), - _Checkboard2 = _interopRequireDefault(__webpack_require__(673)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - } - var Alpha = (exports.Alpha = (function(_ref) { - function Alpha() { - var _ref2, _temp, _this; - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, Alpha); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) - args[_key] = arguments[_key]; - return ( - (_temp = _this = _possibleConstructorReturn( - this, - (_ref2 = Alpha.__proto__ || Object.getPrototypeOf(Alpha)).call.apply( - _ref2, - [this].concat(args) - ) - )), - (_this.handleChange = function(e, skip) { - var change = alpha.calculateChange(e, skip, _this.props, _this.container); - change && _this.props.onChange && _this.props.onChange(change, e); - }), - (_this.handleMouseDown = function(e) { - _this.handleChange(e, !0), - window.addEventListener('mousemove', _this.handleChange), - window.addEventListener('mouseup', _this.handleMouseUp); - }), - (_this.handleMouseUp = function() { - _this.unbindEventListeners(); - }), - (_this.unbindEventListeners = function() { - window.removeEventListener('mousemove', _this.handleChange), - window.removeEventListener('mouseup', _this.handleMouseUp); - }), - _possibleConstructorReturn(_this, _temp) - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(Alpha, _react.PureComponent || _react.Component), - _createClass(Alpha, [ - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.unbindEventListeners(); - } - }, - { - key: 'render', - value: function render() { - var _this2 = this, - rgb = this.props.rgb, - styles = (0, _reactcss2.default)( - { - default: { - alpha: { absolute: '0px 0px 0px 0px', borderRadius: this.props.radius }, - checkboard: { absolute: '0px 0px 0px 0px', overflow: 'hidden' }, - gradient: { - absolute: '0px 0px 0px 0px', - background: - 'linear-gradient(to right, rgba(' + - rgb.r + - ',' + - rgb.g + - ',' + - rgb.b + - ', 0) 0%,\n rgba(' + - rgb.r + - ',' + - rgb.g + - ',' + - rgb.b + - ', 1) 100%)', - boxShadow: this.props.shadow, - borderRadius: this.props.radius - }, - container: { position: 'relative', height: '100%', margin: '0 3px' }, - pointer: { position: 'absolute', left: 100 * rgb.a + '%' }, - slider: { - width: '4px', - borderRadius: '1px', - height: '8px', - boxShadow: '0 0 2px rgba(0, 0, 0, .6)', - background: '#fff', - marginTop: '1px', - transform: 'translateX(-2px)' - } - }, - vertical: { - gradient: { - background: - 'linear-gradient(to bottom, rgba(' + - rgb.r + - ',' + - rgb.g + - ',' + - rgb.b + - ', 0) 0%,\n rgba(' + - rgb.r + - ',' + - rgb.g + - ',' + - rgb.b + - ', 1) 100%)' - }, - pointer: { left: 0, top: 100 * rgb.a + '%' } - }, - overwrite: _extends({}, this.props.style) - }, - { vertical: 'vertical' === this.props.direction, overwrite: !0 } - ); - return _react2.default.createElement( - 'div', - { style: styles.alpha }, - _react2.default.createElement( - 'div', - { style: styles.checkboard }, - _react2.default.createElement(_Checkboard2.default, { - renderers: this.props.renderers - }) - ), - _react2.default.createElement('div', { style: styles.gradient }), - _react2.default.createElement( - 'div', - { - style: styles.container, - ref: function ref(container) { - return (_this2.container = container); - }, - onMouseDown: this.handleMouseDown, - onTouchMove: this.handleChange, - onTouchStart: this.handleChange - }, - _react2.default.createElement( - 'div', - { style: styles.pointer }, - this.props.pointer - ? _react2.default.createElement(this.props.pointer, this.props) - : _react2.default.createElement('div', { style: styles.slider }) - ) - ) - ); - } - } - ]), - Alpha - ); - })()); - exports.default = Alpha; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - exports.calculateChange = function calculateChange(e, skip, props, container) { - e.preventDefault(); - var containerWidth = container.clientWidth, - containerHeight = container.clientHeight, - x = 'number' == typeof e.pageX ? e.pageX : e.touches[0].pageX, - y = 'number' == typeof e.pageY ? e.pageY : e.touches[0].pageY, - left = x - (container.getBoundingClientRect().left + window.pageXOffset), - top = y - (container.getBoundingClientRect().top + window.pageYOffset); - if ('vertical' === props.direction) { - var a = void 0; - if ( - ((a = - top < 0 - ? 0 - : top > containerHeight ? 1 : Math.round(100 * top / containerHeight) / 100), - props.hsl.a !== a) - ) - return { h: props.hsl.h, s: props.hsl.s, l: props.hsl.l, a: a, source: 'rgb' }; - } else { - var _a = void 0; - if ( - ((_a = - left < 0 - ? 0 - : left > containerWidth ? 1 : Math.round(100 * left / containerWidth) / 100), - props.a !== _a) - ) - return { h: props.hsl.h, s: props.hsl.s, l: props.hsl.l, a: _a, source: 'rgb' }; - } - return null; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var checkboardCache = {}, - render = (exports.render = function render(c1, c2, size, serverCanvas) { - if ('undefined' == typeof document && !serverCanvas) return null; - var canvas = serverCanvas ? new serverCanvas() : document.createElement('canvas'); - (canvas.width = 2 * size), (canvas.height = 2 * size); - var ctx = canvas.getContext('2d'); - return ctx - ? ((ctx.fillStyle = c1), - ctx.fillRect(0, 0, canvas.width, canvas.height), - (ctx.fillStyle = c2), - ctx.fillRect(0, 0, size, size), - ctx.translate(size, size), - ctx.fillRect(0, 0, size, size), - canvas.toDataURL()) - : null; - }); - exports.get = function get(c1, c2, size, serverCanvas) { - var key = c1 + '-' + c2 + '-' + size + (serverCanvas ? '-server' : ''), - checkboard = render(c1, c2, size, serverCanvas); - return checkboardCache[key] - ? checkboardCache[key] - : ((checkboardCache[key] = checkboard), checkboard); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.EditableInput = void 0); - var _createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - Object.defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function _defineProperty(obj, key, value) { - return ( - key in obj - ? Object.defineProperty(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (obj[key] = value), - obj - ); - } - var EditableInput = (exports.EditableInput = (function(_ref) { - function EditableInput(props) { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, EditableInput); - var _this = (function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - })(this, (EditableInput.__proto__ || Object.getPrototypeOf(EditableInput)).call(this)); - return ( - (_this.handleBlur = function() { - _this.state.blurValue && - _this.setState({ value: _this.state.blurValue, blurValue: null }); - }), - (_this.handleChange = function(e) { - _this.props.label - ? _this.props.onChange && - _this.props.onChange(_defineProperty({}, _this.props.label, e.target.value), e) - : _this.props.onChange && _this.props.onChange(e.target.value, e), - _this.setState({ value: e.target.value }); - }), - (_this.handleKeyDown = function(e) { - var stringValue = String(e.target.value), - isPercentage = stringValue.indexOf('%') > -1, - number = Number(stringValue.replace(/%/g, '')); - if (!isNaN(number)) { - var amount = _this.props.arrowOffset || 1; - 38 === e.keyCode && - (null !== _this.props.label - ? _this.props.onChange && - _this.props.onChange(_defineProperty({}, _this.props.label, number + amount), e) - : _this.props.onChange && _this.props.onChange(number + amount, e), - isPercentage - ? _this.setState({ value: number + amount + '%' }) - : _this.setState({ value: number + amount })), - 40 === e.keyCode && - (null !== _this.props.label - ? _this.props.onChange && - _this.props.onChange( - _defineProperty({}, _this.props.label, number - amount), - e - ) - : _this.props.onChange && _this.props.onChange(number - amount, e), - isPercentage - ? _this.setState({ value: number - amount + '%' }) - : _this.setState({ value: number - amount })); - } - }), - (_this.handleDrag = function(e) { - if (_this.props.dragLabel) { - var newValue = Math.round(_this.props.value + e.movementX); - newValue >= 0 && - newValue <= _this.props.dragMax && - _this.props.onChange && - _this.props.onChange(_defineProperty({}, _this.props.label, newValue), e); - } - }), - (_this.handleMouseDown = function(e) { - _this.props.dragLabel && - (e.preventDefault(), - _this.handleDrag(e), - window.addEventListener('mousemove', _this.handleDrag), - window.addEventListener('mouseup', _this.handleMouseUp)); - }), - (_this.handleMouseUp = function() { - _this.unbindEventListeners(); - }), - (_this.unbindEventListeners = function() { - window.removeEventListener('mousemove', _this.handleDrag), - window.removeEventListener('mouseup', _this.handleMouseUp); - }), - (_this.state = { - value: String(props.value).toUpperCase(), - blurValue: String(props.value).toUpperCase() - }), - _this - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(EditableInput, _react.PureComponent || _react.Component), - _createClass(EditableInput, [ - { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps) { - var input = this.input; - nextProps.value !== this.state.value && - (input === document.activeElement - ? this.setState({ blurValue: String(nextProps.value).toUpperCase() }) - : this.setState({ value: String(nextProps.value).toUpperCase() })); - } - }, - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.unbindEventListeners(); - } - }, - { - key: 'render', - value: function render() { - var _this2 = this, - styles = (0, _reactcss2.default)( - { - default: { wrap: { position: 'relative' } }, - 'user-override': { - wrap: this.props.style && this.props.style.wrap ? this.props.style.wrap : {}, - input: - this.props.style && this.props.style.input ? this.props.style.input : {}, - label: - this.props.style && this.props.style.label ? this.props.style.label : {} - }, - 'dragLabel-true': { label: { cursor: 'ew-resize' } } - }, - { 'user-override': !0 }, - this.props - ); - return _react2.default.createElement( - 'div', - { style: styles.wrap }, - _react2.default.createElement('input', { - style: styles.input, - ref: function ref(input) { - return (_this2.input = input); - }, - value: this.state.value, - onKeyDown: this.handleKeyDown, - onChange: this.handleChange, - onBlur: this.handleBlur, - placeholder: this.props.placeholder, - spellCheck: 'false' - }), - this.props.label - ? _react2.default.createElement( - 'span', - { style: styles.label, onMouseDown: this.handleMouseDown }, - this.props.label - ) - : null - ); - } - } - ]), - EditableInput - ); - })()); - exports.default = EditableInput; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.Hue = void 0); - var _createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - Object.defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - hue = (function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) return obj; - var newObj = {}; - if (null != obj) - for (var key in obj) - Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); - return (newObj.default = obj), newObj; - })(__webpack_require__(1066)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - } - var Hue = (exports.Hue = (function(_ref) { - function Hue() { - var _ref2, _temp, _this; - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, Hue); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) - args[_key] = arguments[_key]; - return ( - (_temp = _this = _possibleConstructorReturn( - this, - (_ref2 = Hue.__proto__ || Object.getPrototypeOf(Hue)).call.apply( - _ref2, - [this].concat(args) - ) - )), - (_this.handleChange = function(e, skip) { - var change = hue.calculateChange(e, skip, _this.props, _this.container); - change && _this.props.onChange && _this.props.onChange(change, e); - }), - (_this.handleMouseDown = function(e) { - _this.handleChange(e, !0), - window.addEventListener('mousemove', _this.handleChange), - window.addEventListener('mouseup', _this.handleMouseUp); - }), - (_this.handleMouseUp = function() { - _this.unbindEventListeners(); - }), - _possibleConstructorReturn(_this, _temp) - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(Hue, _react.PureComponent || _react.Component), - _createClass(Hue, [ - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.unbindEventListeners(); - } - }, - { - key: 'unbindEventListeners', - value: function unbindEventListeners() { - window.removeEventListener('mousemove', this.handleChange), - window.removeEventListener('mouseup', this.handleMouseUp); - } - }, - { - key: 'render', - value: function render() { - var _this2 = this, - _props$direction = this.props.direction, - direction = void 0 === _props$direction ? 'horizontal' : _props$direction, - styles = (0, _reactcss2.default)( - { - default: { - hue: { - absolute: '0px 0px 0px 0px', - borderRadius: this.props.radius, - boxShadow: this.props.shadow - }, - container: { padding: '0 2px', position: 'relative', height: '100%' }, - pointer: { position: 'absolute', left: 100 * this.props.hsl.h / 360 + '%' }, - slider: { - marginTop: '1px', - width: '4px', - borderRadius: '1px', - height: '8px', - boxShadow: '0 0 2px rgba(0, 0, 0, .6)', - background: '#fff', - transform: 'translateX(-2px)' - } - }, - vertical: { - pointer: { left: '0px', top: -100 * this.props.hsl.h / 360 + 100 + '%' } - } - }, - { vertical: 'vertical' === direction } - ); - return _react2.default.createElement( - 'div', - { style: styles.hue }, - _react2.default.createElement( - 'div', - { - className: 'hue-' + direction, - style: styles.container, - ref: function ref(container) { - return (_this2.container = container); - }, - onMouseDown: this.handleMouseDown, - onTouchMove: this.handleChange, - onTouchStart: this.handleChange - }, - _react2.default.createElement( - 'style', - null, - '\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n ' - ), - _react2.default.createElement( - 'div', - { style: styles.pointer }, - this.props.pointer - ? _react2.default.createElement(this.props.pointer, this.props) - : _react2.default.createElement('div', { style: styles.slider }) - ) - ) - ); - } - } - ]), - Hue - ); - })()); - exports.default = Hue; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - exports.calculateChange = function calculateChange(e, skip, props, container) { - e.preventDefault(); - var containerWidth = container.clientWidth, - containerHeight = container.clientHeight, - x = 'number' == typeof e.pageX ? e.pageX : e.touches[0].pageX, - y = 'number' == typeof e.pageY ? e.pageY : e.touches[0].pageY, - left = x - (container.getBoundingClientRect().left + window.pageXOffset), - top = y - (container.getBoundingClientRect().top + window.pageYOffset); - if ('vertical' === props.direction) { - var h = void 0; - if (top < 0) h = 359; - else if (top > containerHeight) h = 0; - else { - h = 360 * (-100 * top / containerHeight + 100) / 100; - } - if (props.hsl.h !== h) - return { h: h, s: props.hsl.s, l: props.hsl.l, a: props.hsl.a, source: 'rgb' }; - } else { - var _h = void 0; - if (left < 0) _h = 0; - else if (left > containerWidth) _h = 359; - else { - _h = 360 * (100 * left / containerWidth) / 100; - } - if (props.hsl.h !== _h) - return { h: _h, s: props.hsl.s, l: props.hsl.l, a: props.hsl.a, source: 'rgb' }; - } - return null; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.Raised = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Raised = (exports.Raised = function Raised(_ref) { - var zDepth = _ref.zDepth, - radius = _ref.radius, - background = _ref.background, - children = _ref.children, - styles = (0, _reactcss2.default)( - { - default: { - wrap: { position: 'relative', display: 'inline-block' }, - content: { position: 'relative' }, - bg: { - absolute: '0px 0px 0px 0px', - boxShadow: '0 ' + zDepth + 'px ' + 4 * zDepth + 'px rgba(0,0,0,.24)', - borderRadius: radius, - background: background - } - }, - 'zDepth-0': { bg: { boxShadow: 'none' } }, - 'zDepth-1': { - bg: { boxShadow: '0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)' } - }, - 'zDepth-2': { - bg: { boxShadow: '0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)' } - }, - 'zDepth-3': { - bg: { boxShadow: '0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)' } - }, - 'zDepth-4': { - bg: { boxShadow: '0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)' } - }, - 'zDepth-5': { - bg: { boxShadow: '0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)' } - }, - square: { bg: { borderRadius: '0' } }, - circle: { bg: { borderRadius: '50%' } } - }, - { 'zDepth-1': 1 === zDepth } - ); - return _react2.default.createElement( - 'div', - { style: styles.wrap }, - _react2.default.createElement('div', { style: styles.bg }), - _react2.default.createElement('div', { style: styles.content }, children) - ); - }); - (Raised.propTypes = { - background: _propTypes2.default.string, - zDepth: _propTypes2.default.oneOf([0, 1, 2, 3, 4, 5]), - radius: _propTypes2.default.number - }), - (Raised.defaultProps = { background: '#fff', zDepth: 1, radius: 2 }), - (exports.default = Raised); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.Saturation = void 0); - var _createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - Object.defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _throttle2 = _interopRequireDefault(__webpack_require__(1069)), - saturation = (function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) return obj; - var newObj = {}; - if (null != obj) - for (var key in obj) - Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); - return (newObj.default = obj), newObj; - })(__webpack_require__(1072)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Saturation = (exports.Saturation = (function(_ref) { - function Saturation(props) { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, Saturation); - var _this = (function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - })(this, (Saturation.__proto__ || Object.getPrototypeOf(Saturation)).call(this, props)); - return ( - (_this.handleChange = function(e, skip) { - _this.props.onChange && - _this.throttle( - _this.props.onChange, - saturation.calculateChange(e, skip, _this.props, _this.container), - e - ); - }), - (_this.handleMouseDown = function(e) { - _this.handleChange(e, !0), - window.addEventListener('mousemove', _this.handleChange), - window.addEventListener('mouseup', _this.handleMouseUp); - }), - (_this.handleMouseUp = function() { - _this.unbindEventListeners(); - }), - (_this.throttle = (0, _throttle2.default)(function(fn, data, e) { - fn(data, e); - }, 50)), - _this - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(Saturation, _react.PureComponent || _react.Component), - _createClass(Saturation, [ - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.unbindEventListeners(); - } - }, - { - key: 'unbindEventListeners', - value: function unbindEventListeners() { - window.removeEventListener('mousemove', this.handleChange), - window.removeEventListener('mouseup', this.handleMouseUp); - } - }, - { - key: 'render', - value: function render() { - var _this2 = this, - _ref2 = this.props.style || {}, - color = _ref2.color, - white = _ref2.white, - black = _ref2.black, - pointer = _ref2.pointer, - circle = _ref2.circle, - styles = (0, _reactcss2.default)( - { - default: { - color: { - absolute: '0px 0px 0px 0px', - background: 'hsl(' + this.props.hsl.h + ',100%, 50%)', - borderRadius: this.props.radius - }, - white: { absolute: '0px 0px 0px 0px', borderRadius: this.props.radius }, - black: { - absolute: '0px 0px 0px 0px', - boxShadow: this.props.shadow, - borderRadius: this.props.radius - }, - pointer: { - position: 'absolute', - top: -100 * this.props.hsv.v + 100 + '%', - left: 100 * this.props.hsv.s + '%', - cursor: 'default' - }, - circle: { - width: '4px', - height: '4px', - boxShadow: - '0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)', - borderRadius: '50%', - cursor: 'hand', - transform: 'translate(-2px, -2px)' - } - }, - custom: { - color: color, - white: white, - black: black, - pointer: pointer, - circle: circle - } - }, - { custom: !!this.props.style } - ); - return _react2.default.createElement( - 'div', - { - style: styles.color, - ref: function ref(container) { - return (_this2.container = container); - }, - onMouseDown: this.handleMouseDown, - onTouchMove: this.handleChange, - onTouchStart: this.handleChange - }, - _react2.default.createElement( - 'style', - null, - '\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n ' - ), - _react2.default.createElement( - 'div', - { style: styles.white, className: 'saturation-white' }, - _react2.default.createElement('div', { - style: styles.black, - className: 'saturation-black' - }), - _react2.default.createElement( - 'div', - { style: styles.pointer }, - this.props.pointer - ? _react2.default.createElement(this.props.pointer, this.props) - : _react2.default.createElement('div', { style: styles.circle }) - ) - ) - ); - } - } - ]), - Saturation - ); - })()); - exports.default = Saturation; - }, - function(module, exports, __webpack_require__) { - var debounce = __webpack_require__(674), - isObject = __webpack_require__(108), - FUNC_ERROR_TEXT = 'Expected a function'; - module.exports = function throttle(func, wait, options) { - var leading = !0, - trailing = !0; - if ('function' != typeof func) throw new TypeError(FUNC_ERROR_TEXT); - return ( - isObject(options) && - ((leading = 'leading' in options ? !!options.leading : leading), - (trailing = 'trailing' in options ? !!options.trailing : trailing)), - debounce(func, wait, { leading: leading, maxWait: wait, trailing: trailing }) - ); - }; - }, - function(module, exports, __webpack_require__) { - var root = __webpack_require__(85); - module.exports = function() { - return root.Date.now(); - }; - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(108), - isSymbol = __webpack_require__(297), - NAN = NaN, - reTrim = /^\s+|\s+$/g, - reIsBadHex = /^[-+]0x[0-9a-f]+$/i, - reIsBinary = /^0b[01]+$/i, - reIsOctal = /^0o[0-7]+$/i, - freeParseInt = parseInt; - module.exports = function toNumber(value) { - if ('number' == typeof value) return value; - if (isSymbol(value)) return NAN; - if (isObject(value)) { - var other = 'function' == typeof value.valueOf ? value.valueOf() : value; - value = isObject(other) ? other + '' : other; - } - if ('string' != typeof value) return 0 === value ? value : +value; - value = value.replace(reTrim, ''); - var isBinary = reIsBinary.test(value); - return isBinary || reIsOctal.test(value) - ? freeParseInt(value.slice(2), isBinary ? 2 : 8) - : reIsBadHex.test(value) ? NAN : +value; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - exports.calculateChange = function calculateChange(e, skip, props, container) { - e.preventDefault(); - var _container$getBoundin = container.getBoundingClientRect(), - containerWidth = _container$getBoundin.width, - containerHeight = _container$getBoundin.height, - x = 'number' == typeof e.pageX ? e.pageX : e.touches[0].pageX, - y = 'number' == typeof e.pageY ? e.pageY : e.touches[0].pageY, - left = x - (container.getBoundingClientRect().left + window.pageXOffset), - top = y - (container.getBoundingClientRect().top + window.pageYOffset); - left < 0 - ? (left = 0) - : left > containerWidth - ? (left = containerWidth) - : top < 0 ? (top = 0) : top > containerHeight && (top = containerHeight); - var saturation = 100 * left / containerWidth, - bright = -100 * top / containerHeight + 100; - return { h: props.hsl.h, s: saturation, v: bright, a: props.hsl.a, source: 'rgb' }; - }; - }, - function(module, exports, __webpack_require__) { - module.exports = __webpack_require__(1074); - }, - function(module, exports, __webpack_require__) { - var arrayEach = __webpack_require__(667), - baseEach = __webpack_require__(666), - castFunction = __webpack_require__(648), - isArray = __webpack_require__(66); - module.exports = function forEach(collection, iteratee) { - return (isArray(collection) ? arrayEach : baseEach)(collection, castFunction(iteratee)); - }; - }, - function(module, exports, __webpack_require__) { - var __WEBPACK_AMD_DEFINE_RESULT__; - !(function(Math) { - var trimLeft = /^\s+/, - trimRight = /\s+$/, - tinyCounter = 0, - mathRound = Math.round, - mathMin = Math.min, - mathMax = Math.max, - mathRandom = Math.random; - function tinycolor(color, opts) { - if (((color = color || ''), (opts = opts || {}), color instanceof tinycolor)) return color; - if (!(this instanceof tinycolor)) return new tinycolor(color, opts); - var rgb = (function inputToRGB(color) { - var rgb = { r: 0, g: 0, b: 0 }, - a = 1, - s = null, - v = null, - l = null, - ok = !1, - format = !1; - 'string' == typeof color && - (color = (function stringInputToObject(color) { - color = color - .replace(trimLeft, '') - .replace(trimRight, '') - .toLowerCase(); - var match, - named = !1; - if (names[color]) (color = names[color]), (named = !0); - else if ('transparent' == color) return { r: 0, g: 0, b: 0, a: 0, format: 'name' }; - if ((match = matchers.rgb.exec(color))) - return { r: match[1], g: match[2], b: match[3] }; - if ((match = matchers.rgba.exec(color))) - return { r: match[1], g: match[2], b: match[3], a: match[4] }; - if ((match = matchers.hsl.exec(color))) - return { h: match[1], s: match[2], l: match[3] }; - if ((match = matchers.hsla.exec(color))) - return { h: match[1], s: match[2], l: match[3], a: match[4] }; - if ((match = matchers.hsv.exec(color))) - return { h: match[1], s: match[2], v: match[3] }; - if ((match = matchers.hsva.exec(color))) - return { h: match[1], s: match[2], v: match[3], a: match[4] }; - if ((match = matchers.hex8.exec(color))) - return { - r: parseIntFromHex(match[1]), - g: parseIntFromHex(match[2]), - b: parseIntFromHex(match[3]), - a: convertHexToDecimal(match[4]), - format: named ? 'name' : 'hex8' - }; - if ((match = matchers.hex6.exec(color))) - return { - r: parseIntFromHex(match[1]), - g: parseIntFromHex(match[2]), - b: parseIntFromHex(match[3]), - format: named ? 'name' : 'hex' - }; - if ((match = matchers.hex4.exec(color))) - return { - r: parseIntFromHex(match[1] + '' + match[1]), - g: parseIntFromHex(match[2] + '' + match[2]), - b: parseIntFromHex(match[3] + '' + match[3]), - a: convertHexToDecimal(match[4] + '' + match[4]), - format: named ? 'name' : 'hex8' - }; - if ((match = matchers.hex3.exec(color))) - return { - r: parseIntFromHex(match[1] + '' + match[1]), - g: parseIntFromHex(match[2] + '' + match[2]), - b: parseIntFromHex(match[3] + '' + match[3]), - format: named ? 'name' : 'hex' - }; - return !1; - })(color)); - 'object' == typeof color && - (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b) - ? ((rgb = (function rgbToRgb(r, g, b) { - return { - r: 255 * bound01(r, 255), - g: 255 * bound01(g, 255), - b: 255 * bound01(b, 255) - }; - })(color.r, color.g, color.b)), - (ok = !0), - (format = '%' === String(color.r).substr(-1) ? 'prgb' : 'rgb')) - : isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v) - ? ((s = convertToPercentage(color.s)), - (v = convertToPercentage(color.v)), - (rgb = (function hsvToRgb(h, s, v) { - (h = 6 * bound01(h, 360)), (s = bound01(s, 100)), (v = bound01(v, 100)); - var i = Math.floor(h), - f = h - i, - p = v * (1 - s), - q = v * (1 - f * s), - t = v * (1 - (1 - f) * s), - mod = i % 6; - return { - r: 255 * [v, q, p, p, t, v][mod], - g: 255 * [t, v, v, q, p, p][mod], - b: 255 * [p, p, t, v, v, q][mod] - }; - })(color.h, s, v)), - (ok = !0), - (format = 'hsv')) - : isValidCSSUnit(color.h) && - isValidCSSUnit(color.s) && - isValidCSSUnit(color.l) && - ((s = convertToPercentage(color.s)), - (l = convertToPercentage(color.l)), - (rgb = (function hslToRgb(h, s, l) { - var r, g, b; - function hue2rgb(p, q, t) { - return ( - t < 0 && (t += 1), - t > 1 && (t -= 1), - t < 1 / 6 - ? p + 6 * (q - p) * t - : t < 0.5 ? q : t < 2 / 3 ? p + (q - p) * (2 / 3 - t) * 6 : p - ); - } - if ( - ((h = bound01(h, 360)), (s = bound01(s, 100)), (l = bound01(l, 100)), 0 === s) - ) - r = g = b = l; - else { - var q = l < 0.5 ? l * (1 + s) : l + s - l * s, - p = 2 * l - q; - (r = hue2rgb(p, q, h + 1 / 3)), - (g = hue2rgb(p, q, h)), - (b = hue2rgb(p, q, h - 1 / 3)); - } - return { r: 255 * r, g: 255 * g, b: 255 * b }; - })(color.h, s, l)), - (ok = !0), - (format = 'hsl')), - color.hasOwnProperty('a') && (a = color.a)); - return ( - (a = boundAlpha(a)), - { - ok: ok, - format: color.format || format, - r: mathMin(255, mathMax(rgb.r, 0)), - g: mathMin(255, mathMax(rgb.g, 0)), - b: mathMin(255, mathMax(rgb.b, 0)), - a: a - } - ); - })(color); - (this._originalInput = color), - (this._r = rgb.r), - (this._g = rgb.g), - (this._b = rgb.b), - (this._a = rgb.a), - (this._roundA = mathRound(100 * this._a) / 100), - (this._format = opts.format || rgb.format), - (this._gradientType = opts.gradientType), - this._r < 1 && (this._r = mathRound(this._r)), - this._g < 1 && (this._g = mathRound(this._g)), - this._b < 1 && (this._b = mathRound(this._b)), - (this._ok = rgb.ok), - (this._tc_id = tinyCounter++); - } - function rgbToHsl(r, g, b) { - (r = bound01(r, 255)), (g = bound01(g, 255)), (b = bound01(b, 255)); - var h, - s, - max = mathMax(r, g, b), - min = mathMin(r, g, b), - l = (max + min) / 2; - if (max == min) h = s = 0; - else { - var d = max - min; - switch (((s = l > 0.5 ? d / (2 - max - min) : d / (max + min)), max)) { - case r: - h = (g - b) / d + (g < b ? 6 : 0); - break; - case g: - h = (b - r) / d + 2; - break; - case b: - h = (r - g) / d + 4; - } - h /= 6; - } - return { h: h, s: s, l: l }; - } - function rgbToHsv(r, g, b) { - (r = bound01(r, 255)), (g = bound01(g, 255)), (b = bound01(b, 255)); - var h, - s, - max = mathMax(r, g, b), - min = mathMin(r, g, b), - v = max, - d = max - min; - if (((s = 0 === max ? 0 : d / max), max == min)) h = 0; - else { - switch (max) { - case r: - h = (g - b) / d + (g < b ? 6 : 0); - break; - case g: - h = (b - r) / d + 2; - break; - case b: - h = (r - g) / d + 4; - } - h /= 6; - } - return { h: h, s: s, v: v }; - } - function rgbToHex(r, g, b, allow3Char) { - var hex = [ - pad2(mathRound(r).toString(16)), - pad2(mathRound(g).toString(16)), - pad2(mathRound(b).toString(16)) - ]; - return allow3Char && - hex[0].charAt(0) == hex[0].charAt(1) && - hex[1].charAt(0) == hex[1].charAt(1) && - hex[2].charAt(0) == hex[2].charAt(1) - ? hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) - : hex.join(''); - } - function rgbaToArgbHex(r, g, b, a) { - return [ - pad2(convertDecimalToHex(a)), - pad2(mathRound(r).toString(16)), - pad2(mathRound(g).toString(16)), - pad2(mathRound(b).toString(16)) - ].join(''); - } - function desaturate(color, amount) { - amount = 0 === amount ? 0 : amount || 10; - var hsl = tinycolor(color).toHsl(); - return (hsl.s -= amount / 100), (hsl.s = clamp01(hsl.s)), tinycolor(hsl); - } - function saturate(color, amount) { - amount = 0 === amount ? 0 : amount || 10; - var hsl = tinycolor(color).toHsl(); - return (hsl.s += amount / 100), (hsl.s = clamp01(hsl.s)), tinycolor(hsl); - } - function greyscale(color) { - return tinycolor(color).desaturate(100); - } - function lighten(color, amount) { - amount = 0 === amount ? 0 : amount || 10; - var hsl = tinycolor(color).toHsl(); - return (hsl.l += amount / 100), (hsl.l = clamp01(hsl.l)), tinycolor(hsl); - } - function brighten(color, amount) { - amount = 0 === amount ? 0 : amount || 10; - var rgb = tinycolor(color).toRgb(); - return ( - (rgb.r = mathMax(0, mathMin(255, rgb.r - mathRound(-amount / 100 * 255)))), - (rgb.g = mathMax(0, mathMin(255, rgb.g - mathRound(-amount / 100 * 255)))), - (rgb.b = mathMax(0, mathMin(255, rgb.b - mathRound(-amount / 100 * 255)))), - tinycolor(rgb) - ); - } - function darken(color, amount) { - amount = 0 === amount ? 0 : amount || 10; - var hsl = tinycolor(color).toHsl(); - return (hsl.l -= amount / 100), (hsl.l = clamp01(hsl.l)), tinycolor(hsl); - } - function spin(color, amount) { - var hsl = tinycolor(color).toHsl(), - hue = (hsl.h + amount) % 360; - return (hsl.h = hue < 0 ? 360 + hue : hue), tinycolor(hsl); - } - function complement(color) { - var hsl = tinycolor(color).toHsl(); - return (hsl.h = (hsl.h + 180) % 360), tinycolor(hsl); - } - function triad(color) { - var hsl = tinycolor(color).toHsl(), - h = hsl.h; - return [ - tinycolor(color), - tinycolor({ h: (h + 120) % 360, s: hsl.s, l: hsl.l }), - tinycolor({ h: (h + 240) % 360, s: hsl.s, l: hsl.l }) - ]; - } - function tetrad(color) { - var hsl = tinycolor(color).toHsl(), - h = hsl.h; - return [ - tinycolor(color), - tinycolor({ h: (h + 90) % 360, s: hsl.s, l: hsl.l }), - tinycolor({ h: (h + 180) % 360, s: hsl.s, l: hsl.l }), - tinycolor({ h: (h + 270) % 360, s: hsl.s, l: hsl.l }) - ]; - } - function splitcomplement(color) { - var hsl = tinycolor(color).toHsl(), - h = hsl.h; - return [ - tinycolor(color), - tinycolor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l }), - tinycolor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l }) - ]; - } - function analogous(color, results, slices) { - (results = results || 6), (slices = slices || 30); - var hsl = tinycolor(color).toHsl(), - part = 360 / slices, - ret = [tinycolor(color)]; - for (hsl.h = (hsl.h - ((part * results) >> 1) + 720) % 360; --results; ) - (hsl.h = (hsl.h + part) % 360), ret.push(tinycolor(hsl)); - return ret; - } - function monochromatic(color, results) { - results = results || 6; - for ( - var hsv = tinycolor(color).toHsv(), - h = hsv.h, - s = hsv.s, - v = hsv.v, - ret = [], - modification = 1 / results; - results--; - - ) - ret.push(tinycolor({ h: h, s: s, v: v })), (v = (v + modification) % 1); - return ret; - } - (tinycolor.prototype = { - isDark: function() { - return this.getBrightness() < 128; - }, - isLight: function() { - return !this.isDark(); - }, - isValid: function() { - return this._ok; - }, - getOriginalInput: function() { - return this._originalInput; - }, - getFormat: function() { - return this._format; - }, - getAlpha: function() { - return this._a; - }, - getBrightness: function() { - var rgb = this.toRgb(); - return (299 * rgb.r + 587 * rgb.g + 114 * rgb.b) / 1e3; - }, - getLuminance: function() { - var RsRGB, - GsRGB, - BsRGB, - rgb = this.toRgb(); - return ( - (RsRGB = rgb.r / 255), - (GsRGB = rgb.g / 255), - (BsRGB = rgb.b / 255), - 0.2126 * (RsRGB <= 0.03928 ? RsRGB / 12.92 : Math.pow((RsRGB + 0.055) / 1.055, 2.4)) + - 0.7152 * (GsRGB <= 0.03928 ? GsRGB / 12.92 : Math.pow((GsRGB + 0.055) / 1.055, 2.4)) + - 0.0722 * (BsRGB <= 0.03928 ? BsRGB / 12.92 : Math.pow((BsRGB + 0.055) / 1.055, 2.4)) - ); - }, - setAlpha: function(value) { - return ( - (this._a = boundAlpha(value)), (this._roundA = mathRound(100 * this._a) / 100), this - ); - }, - toHsv: function() { - var hsv = rgbToHsv(this._r, this._g, this._b); - return { h: 360 * hsv.h, s: hsv.s, v: hsv.v, a: this._a }; - }, - toHsvString: function() { - var hsv = rgbToHsv(this._r, this._g, this._b), - h = mathRound(360 * hsv.h), - s = mathRound(100 * hsv.s), - v = mathRound(100 * hsv.v); - return 1 == this._a - ? 'hsv(' + h + ', ' + s + '%, ' + v + '%)' - : 'hsva(' + h + ', ' + s + '%, ' + v + '%, ' + this._roundA + ')'; - }, - toHsl: function() { - var hsl = rgbToHsl(this._r, this._g, this._b); - return { h: 360 * hsl.h, s: hsl.s, l: hsl.l, a: this._a }; - }, - toHslString: function() { - var hsl = rgbToHsl(this._r, this._g, this._b), - h = mathRound(360 * hsl.h), - s = mathRound(100 * hsl.s), - l = mathRound(100 * hsl.l); - return 1 == this._a - ? 'hsl(' + h + ', ' + s + '%, ' + l + '%)' - : 'hsla(' + h + ', ' + s + '%, ' + l + '%, ' + this._roundA + ')'; - }, - toHex: function(allow3Char) { - return rgbToHex(this._r, this._g, this._b, allow3Char); - }, - toHexString: function(allow3Char) { - return '#' + this.toHex(allow3Char); - }, - toHex8: function(allow4Char) { - return (function rgbaToHex(r, g, b, a, allow4Char) { - var hex = [ - pad2(mathRound(r).toString(16)), - pad2(mathRound(g).toString(16)), - pad2(mathRound(b).toString(16)), - pad2(convertDecimalToHex(a)) - ]; - if ( - allow4Char && - hex[0].charAt(0) == hex[0].charAt(1) && - hex[1].charAt(0) == hex[1].charAt(1) && - hex[2].charAt(0) == hex[2].charAt(1) && - hex[3].charAt(0) == hex[3].charAt(1) - ) - return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0); - return hex.join(''); - })(this._r, this._g, this._b, this._a, allow4Char); - }, - toHex8String: function(allow4Char) { - return '#' + this.toHex8(allow4Char); - }, - toRgb: function() { - return { - r: mathRound(this._r), - g: mathRound(this._g), - b: mathRound(this._b), - a: this._a - }; - }, - toRgbString: function() { - return 1 == this._a - ? 'rgb(' + - mathRound(this._r) + - ', ' + - mathRound(this._g) + - ', ' + - mathRound(this._b) + - ')' - : 'rgba(' + - mathRound(this._r) + - ', ' + - mathRound(this._g) + - ', ' + - mathRound(this._b) + - ', ' + - this._roundA + - ')'; - }, - toPercentageRgb: function() { - return { - r: mathRound(100 * bound01(this._r, 255)) + '%', - g: mathRound(100 * bound01(this._g, 255)) + '%', - b: mathRound(100 * bound01(this._b, 255)) + '%', - a: this._a - }; - }, - toPercentageRgbString: function() { - return 1 == this._a - ? 'rgb(' + - mathRound(100 * bound01(this._r, 255)) + - '%, ' + - mathRound(100 * bound01(this._g, 255)) + - '%, ' + - mathRound(100 * bound01(this._b, 255)) + - '%)' - : 'rgba(' + - mathRound(100 * bound01(this._r, 255)) + - '%, ' + - mathRound(100 * bound01(this._g, 255)) + - '%, ' + - mathRound(100 * bound01(this._b, 255)) + - '%, ' + - this._roundA + - ')'; - }, - toName: function() { - return 0 === this._a - ? 'transparent' - : !(this._a < 1) && (hexNames[rgbToHex(this._r, this._g, this._b, !0)] || !1); - }, - toFilter: function(secondColor) { - var hex8String = '#' + rgbaToArgbHex(this._r, this._g, this._b, this._a), - secondHex8String = hex8String, - gradientType = this._gradientType ? 'GradientType = 1, ' : ''; - if (secondColor) { - var s = tinycolor(secondColor); - secondHex8String = '#' + rgbaToArgbHex(s._r, s._g, s._b, s._a); - } - return ( - 'progid:DXImageTransform.Microsoft.gradient(' + - gradientType + - 'startColorstr=' + - hex8String + - ',endColorstr=' + - secondHex8String + - ')' - ); - }, - toString: function(format) { - var formatSet = !!format; - format = format || this._format; - var formattedString = !1, - hasAlpha = this._a < 1 && this._a >= 0; - return formatSet || - !hasAlpha || - ('hex' !== format && - 'hex6' !== format && - 'hex3' !== format && - 'hex4' !== format && - 'hex8' !== format && - 'name' !== format) - ? ('rgb' === format && (formattedString = this.toRgbString()), - 'prgb' === format && (formattedString = this.toPercentageRgbString()), - ('hex' !== format && 'hex6' !== format) || (formattedString = this.toHexString()), - 'hex3' === format && (formattedString = this.toHexString(!0)), - 'hex4' === format && (formattedString = this.toHex8String(!0)), - 'hex8' === format && (formattedString = this.toHex8String()), - 'name' === format && (formattedString = this.toName()), - 'hsl' === format && (formattedString = this.toHslString()), - 'hsv' === format && (formattedString = this.toHsvString()), - formattedString || this.toHexString()) - : 'name' === format && 0 === this._a ? this.toName() : this.toRgbString(); - }, - clone: function() { - return tinycolor(this.toString()); - }, - _applyModification: function(fn, args) { - var color = fn.apply(null, [this].concat([].slice.call(args))); - return ( - (this._r = color._r), - (this._g = color._g), - (this._b = color._b), - this.setAlpha(color._a), - this - ); - }, - lighten: function() { - return this._applyModification(lighten, arguments); - }, - brighten: function() { - return this._applyModification(brighten, arguments); - }, - darken: function() { - return this._applyModification(darken, arguments); - }, - desaturate: function() { - return this._applyModification(desaturate, arguments); - }, - saturate: function() { - return this._applyModification(saturate, arguments); - }, - greyscale: function() { - return this._applyModification(greyscale, arguments); - }, - spin: function() { - return this._applyModification(spin, arguments); - }, - _applyCombination: function(fn, args) { - return fn.apply(null, [this].concat([].slice.call(args))); - }, - analogous: function() { - return this._applyCombination(analogous, arguments); - }, - complement: function() { - return this._applyCombination(complement, arguments); - }, - monochromatic: function() { - return this._applyCombination(monochromatic, arguments); - }, - splitcomplement: function() { - return this._applyCombination(splitcomplement, arguments); - }, - triad: function() { - return this._applyCombination(triad, arguments); - }, - tetrad: function() { - return this._applyCombination(tetrad, arguments); - } - }), - (tinycolor.fromRatio = function(color, opts) { - if ('object' == typeof color) { - var newColor = {}; - for (var i in color) - color.hasOwnProperty(i) && - (newColor[i] = 'a' === i ? color[i] : convertToPercentage(color[i])); - color = newColor; - } - return tinycolor(color, opts); - }), - (tinycolor.equals = function(color1, color2) { - return ( - !(!color1 || !color2) && - tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString() - ); - }), - (tinycolor.random = function() { - return tinycolor.fromRatio({ r: mathRandom(), g: mathRandom(), b: mathRandom() }); - }), - (tinycolor.mix = function(color1, color2, amount) { - amount = 0 === amount ? 0 : amount || 50; - var rgb1 = tinycolor(color1).toRgb(), - rgb2 = tinycolor(color2).toRgb(), - p = amount / 100; - return tinycolor({ - r: (rgb2.r - rgb1.r) * p + rgb1.r, - g: (rgb2.g - rgb1.g) * p + rgb1.g, - b: (rgb2.b - rgb1.b) * p + rgb1.b, - a: (rgb2.a - rgb1.a) * p + rgb1.a - }); - }), - (tinycolor.readability = function(color1, color2) { - var c1 = tinycolor(color1), - c2 = tinycolor(color2); - return ( - (Math.max(c1.getLuminance(), c2.getLuminance()) + 0.05) / - (Math.min(c1.getLuminance(), c2.getLuminance()) + 0.05) - ); - }), - (tinycolor.isReadable = function(color1, color2, wcag2) { - var wcag2Parms, - out, - readability = tinycolor.readability(color1, color2); - switch (((out = !1), - (wcag2Parms = (function validateWCAG2Parms(parms) { - var level, size; - (level = ( - (parms = parms || { level: 'AA', size: 'small' }).level || 'AA' - ).toUpperCase()), - (size = (parms.size || 'small').toLowerCase()), - 'AA' !== level && 'AAA' !== level && (level = 'AA'); - 'small' !== size && 'large' !== size && (size = 'small'); - return { level: level, size: size }; - })(wcag2)).level + wcag2Parms.size)) { - case 'AAsmall': - case 'AAAlarge': - out = readability >= 4.5; - break; - case 'AAlarge': - out = readability >= 3; - break; - case 'AAAsmall': - out = readability >= 7; - } - return out; - }), - (tinycolor.mostReadable = function(baseColor, colorList, args) { - var readability, - includeFallbackColors, - level, - size, - bestColor = null, - bestScore = 0; - (includeFallbackColors = (args = args || {}).includeFallbackColors), - (level = args.level), - (size = args.size); - for (var i = 0; i < colorList.length; i++) - (readability = tinycolor.readability(baseColor, colorList[i])) > bestScore && - ((bestScore = readability), (bestColor = tinycolor(colorList[i]))); - return tinycolor.isReadable(baseColor, bestColor, { level: level, size: size }) || - !includeFallbackColors - ? bestColor - : ((args.includeFallbackColors = !1), - tinycolor.mostReadable(baseColor, ['#fff', '#000'], args)); - }); - var names = (tinycolor.names = { - aliceblue: 'f0f8ff', - antiquewhite: 'faebd7', - aqua: '0ff', - aquamarine: '7fffd4', - azure: 'f0ffff', - beige: 'f5f5dc', - bisque: 'ffe4c4', - black: '000', - blanchedalmond: 'ffebcd', - blue: '00f', - blueviolet: '8a2be2', - brown: 'a52a2a', - burlywood: 'deb887', - burntsienna: 'ea7e5d', - cadetblue: '5f9ea0', - chartreuse: '7fff00', - chocolate: 'd2691e', - coral: 'ff7f50', - cornflowerblue: '6495ed', - cornsilk: 'fff8dc', - crimson: 'dc143c', - cyan: '0ff', - 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: 'f0f', - 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', - lavender: 'e6e6fa', - lavenderblush: 'fff0f5', - lawngreen: '7cfc00', - lemonchiffon: 'fffacd', - lightblue: 'add8e6', - lightcoral: 'f08080', - lightcyan: 'e0ffff', - lightgoldenrodyellow: 'fafad2', - lightgray: 'd3d3d3', - lightgreen: '90ee90', - lightgrey: 'd3d3d3', - lightpink: 'ffb6c1', - lightsalmon: 'ffa07a', - lightseagreen: '20b2aa', - lightskyblue: '87cefa', - lightslategray: '789', - lightslategrey: '789', - lightsteelblue: 'b0c4de', - lightyellow: 'ffffe0', - lime: '0f0', - limegreen: '32cd32', - linen: 'faf0e6', - magenta: 'f0f', - maroon: '800000', - 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', - rebeccapurple: '663399', - red: 'f00', - 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: 'fff', - whitesmoke: 'f5f5f5', - yellow: 'ff0', - yellowgreen: '9acd32' - }), - hexNames = (tinycolor.hexNames = (function flip(o) { - var flipped = {}; - for (var i in o) o.hasOwnProperty(i) && (flipped[o[i]] = i); - return flipped; - })(names)); - function boundAlpha(a) { - return (a = parseFloat(a)), (isNaN(a) || a < 0 || a > 1) && (a = 1), a; - } - function bound01(n, max) { - (function isOnePointZero(n) { - return 'string' == typeof n && -1 != n.indexOf('.') && 1 === parseFloat(n); - })(n) && (n = '100%'); - var processPercent = (function isPercentage(n) { - return 'string' == typeof n && -1 != n.indexOf('%'); - })(n); - return ( - (n = mathMin(max, mathMax(0, parseFloat(n)))), - processPercent && (n = parseInt(n * max, 10) / 100), - Math.abs(n - max) < 1e-6 ? 1 : (n % max) / parseFloat(max) - ); - } - function clamp01(val) { - return mathMin(1, mathMax(0, val)); - } - function parseIntFromHex(val) { - return parseInt(val, 16); - } - function pad2(c) { - return 1 == c.length ? '0' + c : '' + c; - } - function convertToPercentage(n) { - return n <= 1 && (n = 100 * n + '%'), n; - } - function convertDecimalToHex(d) { - return Math.round(255 * parseFloat(d)).toString(16); - } - function convertHexToDecimal(h) { - return parseIntFromHex(h) / 255; - } - var CSS_UNIT, - PERMISSIVE_MATCH3, - PERMISSIVE_MATCH4, - matchers = ((PERMISSIVE_MATCH3 = - '[\\s|\\(]+(' + - (CSS_UNIT = '(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)') + - ')[,|\\s]+(' + - CSS_UNIT + - ')[,|\\s]+(' + - CSS_UNIT + - ')\\s*\\)?'), - (PERMISSIVE_MATCH4 = - '[\\s|\\(]+(' + - CSS_UNIT + - ')[,|\\s]+(' + - CSS_UNIT + - ')[,|\\s]+(' + - CSS_UNIT + - ')[,|\\s]+(' + - CSS_UNIT + - ')\\s*\\)?'), - { - CSS_UNIT: new RegExp(CSS_UNIT), - rgb: new RegExp('rgb' + PERMISSIVE_MATCH3), - rgba: new RegExp('rgba' + PERMISSIVE_MATCH4), - hsl: new RegExp('hsl' + PERMISSIVE_MATCH3), - hsla: new RegExp('hsla' + PERMISSIVE_MATCH4), - hsv: new RegExp('hsv' + PERMISSIVE_MATCH3), - hsva: new RegExp('hsva' + PERMISSIVE_MATCH4), - hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, - hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ - }); - function isValidCSSUnit(color) { - return !!matchers.CSS_UNIT.exec(color); - } - void 0 !== module && module.exports - ? (module.exports = tinycolor) - : void 0 === - (__WEBPACK_AMD_DEFINE_RESULT__ = function() { - return tinycolor; - }.call(exports, __webpack_require__, exports, module)) || - (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); - })(Math); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.Swatch = void 0); - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }, - _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _interaction = __webpack_require__(1077), - _ = __webpack_require__(23); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Swatch = (exports.Swatch = function Swatch(_ref) { - var color = _ref.color, - style = _ref.style, - _ref$onClick = _ref.onClick, - onClick = void 0 === _ref$onClick ? function() {} : _ref$onClick, - onHover = _ref.onHover, - _ref$title = _ref.title, - title = void 0 === _ref$title ? color : _ref$title, - children = _ref.children, - focus = _ref.focus, - _ref$focusStyle = _ref.focusStyle, - focusStyle = void 0 === _ref$focusStyle ? {} : _ref$focusStyle, - transparent = 'transparent' === color, - styles = (0, _reactcss2.default)({ - default: { - swatch: _extends( - { - background: color, - height: '100%', - width: '100%', - cursor: 'pointer', - position: 'relative', - outline: 'none' - }, - style, - focus ? focusStyle : {} - ) - } - }), - optionalEvents = {}; - return ( - onHover && - (optionalEvents.onMouseOver = function handleHover(e) { - return onHover(color, e); - }), - _react2.default.createElement( - 'div', - _extends( - { - style: styles.swatch, - onClick: function handleClick(e) { - return onClick(color, e); - }, - title: title, - tabIndex: 0, - onKeyDown: function handleKeyDown(e) { - return 13 === e.keyCode && onClick(color, e); - } - }, - optionalEvents - ), - children, - transparent && - _react2.default.createElement(_.Checkboard, { - borderRadius: styles.swatch.borderRadius, - boxShadow: 'inset 0 0 0 1px rgba(0,0,0,0.1)' - }) - ) - ); - }); - exports.default = (0, _interaction.handleFocus)(Swatch); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.handleFocus = void 0); - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }, - _react2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(0)); - function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - } - exports.handleFocus = function handleFocus(Component) { - var Span = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 'span'; - return (function(_React$Component) { - function Focus() { - var _ref, _temp, _this; - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, Focus); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) - args[_key] = arguments[_key]; - return ( - (_temp = _this = _possibleConstructorReturn( - this, - (_ref = Focus.__proto__ || Object.getPrototypeOf(Focus)).call.apply( - _ref, - [this].concat(args) - ) - )), - (_this.state = { focus: !1 }), - (_this.handleFocus = function() { - return _this.setState({ focus: !0 }); - }), - (_this.handleBlur = function() { - return _this.setState({ focus: !1 }); - }), - (_this.render = function() { - return _react2.default.createElement( - Span, - { onFocus: _this.handleFocus, onBlur: _this.handleBlur }, - _react2.default.createElement(Component, _extends({}, _this.props, _this.state)) - ); - }), - _possibleConstructorReturn(_this, _temp) - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(Focus, _react2.default.Component), - Focus - ); - })(); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.AlphaPointer = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var AlphaPointer = (exports.AlphaPointer = function AlphaPointer(_ref) { - var direction = _ref.direction, - styles = (0, _reactcss2.default)( - { - default: { - picker: { - width: '18px', - height: '18px', - borderRadius: '50%', - transform: 'translate(-9px, -1px)', - backgroundColor: 'rgb(248, 248, 248)', - boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)' - } - }, - vertical: { picker: { transform: 'translate(-3px, -9px)' } } - }, - { vertical: 'vertical' === direction } - ); - return _react2.default.createElement('div', { style: styles.picker }); - }); - exports.default = AlphaPointer; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.Block = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _color2 = _interopRequireDefault(__webpack_require__(109)), - _common = __webpack_require__(23), - _BlockSwatches2 = _interopRequireDefault(__webpack_require__(1080)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Block = (exports.Block = function Block(_ref) { - var onChange = _ref.onChange, - onSwatchHover = _ref.onSwatchHover, - hex = _ref.hex, - colors = _ref.colors, - width = _ref.width, - triangle = _ref.triangle, - _ref$className = _ref.className, - className = void 0 === _ref$className ? '' : _ref$className, - transparent = 'transparent' === hex, - handleChange = function handleChange(hexCode, e) { - _color2.default.isValidHex(hexCode) && onChange({ hex: hexCode, source: 'hex' }, e); - }, - styles = (0, _reactcss2.default)( - { - default: { - card: { - width: width, - background: '#fff', - boxShadow: '0 1px rgba(0,0,0,.1)', - borderRadius: '6px', - position: 'relative' - }, - head: { - height: '110px', - background: hex, - borderRadius: '6px 6px 0 0', - display: 'flex', - alignItems: 'center', - justifyContent: 'center', - position: 'relative' - }, - body: { padding: '10px' }, - label: { - fontSize: '18px', - color: transparent ? 'rgba(0,0,0,0.4)' : '#fff', - position: 'relative' - }, - triangle: { - width: '0px', - height: '0px', - borderStyle: 'solid', - borderWidth: '0 10px 10px 10px', - borderColor: 'transparent transparent ' + hex + ' transparent', - position: 'absolute', - top: '-10px', - left: '50%', - marginLeft: '-10px' - }, - input: { - width: '100%', - fontSize: '12px', - color: '#666', - border: '0px', - outline: 'none', - height: '22px', - boxShadow: 'inset 0 0 0 1px #ddd', - borderRadius: '4px', - padding: '0 7px', - boxSizing: 'border-box' - } - }, - 'hide-triangle': { triangle: { display: 'none' } } - }, - { 'hide-triangle': 'hide' === triangle } - ); - return _react2.default.createElement( - 'div', - { style: styles.card, className: 'block-picker ' + className }, - _react2.default.createElement('div', { style: styles.triangle }), - _react2.default.createElement( - 'div', - { style: styles.head }, - transparent && - _react2.default.createElement(_common.Checkboard, { borderRadius: '6px 6px 0 0' }), - _react2.default.createElement('div', { style: styles.label }, hex) - ), - _react2.default.createElement( - 'div', - { style: styles.body }, - _react2.default.createElement(_BlockSwatches2.default, { - colors: colors, - onClick: handleChange, - onSwatchHover: onSwatchHover - }), - _react2.default.createElement(_common.EditableInput, { - style: { input: styles.input }, - value: hex, - onChange: handleChange - }) - ) - ); - }); - (Block.propTypes = { - width: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.number - ]), - colors: _propTypes2.default.arrayOf(_propTypes2.default.string), - triangle: _propTypes2.default.oneOf(['top', 'hide']) - }), - (Block.defaultProps = { - width: 170, - colors: [ - '#D9E3F0', - '#F47373', - '#697689', - '#37D67A', - '#2CCCE4', - '#555555', - '#dce775', - '#ff8a65', - '#ba68c8' - ], - triangle: 'top' - }), - (exports.default = (0, _common.ColorWrap)(Block)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.BlockSwatches = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _map2 = _interopRequireDefault(__webpack_require__(124)), - _common = __webpack_require__(23); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var BlockSwatches = (exports.BlockSwatches = function BlockSwatches(_ref) { - var colors = _ref.colors, - onClick = _ref.onClick, - onSwatchHover = _ref.onSwatchHover, - styles = (0, _reactcss2.default)({ - default: { - swatches: { marginRight: '-10px' }, - swatch: { - width: '22px', - height: '22px', - float: 'left', - marginRight: '10px', - marginBottom: '10px', - borderRadius: '4px' - }, - clear: { clear: 'both' } - } - }); - return _react2.default.createElement( - 'div', - { style: styles.swatches }, - (0, _map2.default)(colors, function(c) { - return _react2.default.createElement(_common.Swatch, { - key: c, - color: c, - style: styles.swatch, - onClick: onClick, - onHover: onSwatchHover, - focusStyle: { boxShadow: '0 0 4px ' + c } - }); - }), - _react2.default.createElement('div', { style: styles.clear }) - ); - }); - exports.default = BlockSwatches; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.Circle = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _map2 = _interopRequireDefault(__webpack_require__(124)), - material = (function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) return obj; - var newObj = {}; - if (null != obj) - for (var key in obj) - Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); - return (newObj.default = obj), newObj; - })(__webpack_require__(676)), - _common = __webpack_require__(23), - _CircleSwatch2 = _interopRequireDefault(__webpack_require__(1082)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Circle = (exports.Circle = function Circle(_ref) { - var width = _ref.width, - onChange = _ref.onChange, - onSwatchHover = _ref.onSwatchHover, - colors = _ref.colors, - hex = _ref.hex, - circleSize = _ref.circleSize, - circleSpacing = _ref.circleSpacing, - _ref$className = _ref.className, - className = void 0 === _ref$className ? '' : _ref$className, - styles = (0, _reactcss2.default)({ - default: { - card: { - width: width, - display: 'flex', - flexWrap: 'wrap', - marginRight: -circleSpacing, - marginBottom: -circleSpacing - } - } - }), - handleChange = function handleChange(hexCode, e) { - return onChange({ hex: hexCode, source: 'hex' }, e); - }; - return _react2.default.createElement( - 'div', - { style: styles.card, className: 'circle-picker ' + className }, - (0, _map2.default)(colors, function(c) { - return _react2.default.createElement(_CircleSwatch2.default, { - key: c, - color: c, - onClick: handleChange, - onSwatchHover: onSwatchHover, - active: hex === c.toLowerCase(), - circleSize: circleSize, - circleSpacing: circleSpacing - }); - }) - ); - }); - (Circle.propTypes = { - width: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.number - ]), - circleSize: _propTypes2.default.number, - circleSpacing: _propTypes2.default.number - }), - (Circle.defaultProps = { - width: 252, - circleSize: 28, - circleSpacing: 14, - colors: [ - material.red[500], - material.pink[500], - material.purple[500], - material.deepPurple[500], - material.indigo[500], - material.blue[500], - material.lightBlue[500], - material.cyan[500], - material.teal[500], - material.green[500], - material.lightGreen[500], - material.lime[500], - material.yellow[500], - material.amber[500], - material.orange[500], - material.deepOrange[500], - material.brown[500], - material.blueGrey[500] - ] - }), - (exports.default = (0, _common.ColorWrap)(Circle)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.CircleSwatch = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss = __webpack_require__(14), - _reactcss2 = _interopRequireDefault(_reactcss), - _common = __webpack_require__(23); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var CircleSwatch = (exports.CircleSwatch = function CircleSwatch(_ref) { - var color = _ref.color, - onClick = _ref.onClick, - onSwatchHover = _ref.onSwatchHover, - hover = _ref.hover, - active = _ref.active, - circleSize = _ref.circleSize, - circleSpacing = _ref.circleSpacing, - styles = (0, _reactcss2.default)( - { - default: { - swatch: { - width: circleSize, - height: circleSize, - marginRight: circleSpacing, - marginBottom: circleSpacing, - transform: 'scale(1)', - transition: '100ms transform ease' - }, - Swatch: { - borderRadius: '50%', - background: 'transparent', - boxShadow: 'inset 0 0 0 ' + circleSize / 2 + 'px ' + color, - transition: '100ms box-shadow ease' - } - }, - hover: { swatch: { transform: 'scale(1.2)' } }, - active: { Swatch: { boxShadow: 'inset 0 0 0 3px ' + color } } - }, - { hover: hover, active: active } - ); - return _react2.default.createElement( - 'div', - { style: styles.swatch }, - _react2.default.createElement(_common.Swatch, { - style: styles.Swatch, - color: color, - onClick: onClick, - onHover: onSwatchHover, - focusStyle: { boxShadow: styles.Swatch.boxShadow + ', 0 0 5px ' + color } - }) - ); - }); - (CircleSwatch.defaultProps = { circleSize: 28, circleSpacing: 14 }), - (exports.default = (0, _reactcss.handleHover)(CircleSwatch)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.Chrome = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _common = __webpack_require__(23), - _ChromeFields2 = _interopRequireDefault(__webpack_require__(1084)), - _ChromePointer2 = _interopRequireDefault(__webpack_require__(1085)), - _ChromePointerCircle2 = _interopRequireDefault(__webpack_require__(1086)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Chrome = (exports.Chrome = function Chrome(_ref) { - var onChange = _ref.onChange, - disableAlpha = _ref.disableAlpha, - rgb = _ref.rgb, - hsl = _ref.hsl, - hsv = _ref.hsv, - hex = _ref.hex, - renderers = _ref.renderers, - _ref$className = _ref.className, - className = void 0 === _ref$className ? '' : _ref$className, - styles = (0, _reactcss2.default)( - { - default: { - picker: { - background: '#fff', - borderRadius: '2px', - boxShadow: '0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)', - boxSizing: 'initial', - width: '225px', - fontFamily: 'Menlo' - }, - saturation: { - width: '100%', - paddingBottom: '55%', - position: 'relative', - borderRadius: '2px 2px 0 0', - overflow: 'hidden' - }, - Saturation: { radius: '2px 2px 0 0' }, - body: { padding: '16px 16px 12px' }, - controls: { display: 'flex' }, - color: { width: '32px' }, - swatch: { - marginTop: '6px', - width: '16px', - height: '16px', - borderRadius: '8px', - position: 'relative', - overflow: 'hidden' - }, - active: { - absolute: '0px 0px 0px 0px', - borderRadius: '8px', - boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.1)', - background: 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + rgb.a + ')', - zIndex: '2' - }, - toggles: { flex: '1' }, - hue: { height: '10px', position: 'relative', marginBottom: '8px' }, - Hue: { radius: '2px' }, - alpha: { height: '10px', position: 'relative' }, - Alpha: { radius: '2px' } - }, - disableAlpha: { - color: { width: '22px' }, - alpha: { display: 'none' }, - hue: { marginBottom: '0px' }, - swatch: { width: '10px', height: '10px', marginTop: '0px' } - } - }, - { disableAlpha: disableAlpha } - ); - return _react2.default.createElement( - 'div', - { style: styles.picker, className: 'chrome-picker ' + className }, - _react2.default.createElement( - 'div', - { style: styles.saturation }, - _react2.default.createElement(_common.Saturation, { - style: styles.Saturation, - hsl: hsl, - hsv: hsv, - pointer: _ChromePointerCircle2.default, - onChange: onChange - }) - ), - _react2.default.createElement( - 'div', - { style: styles.body }, - _react2.default.createElement( - 'div', - { style: styles.controls, className: 'flexbox-fix' }, - _react2.default.createElement( - 'div', - { style: styles.color }, - _react2.default.createElement( - 'div', - { style: styles.swatch }, - _react2.default.createElement('div', { style: styles.active }), - _react2.default.createElement(_common.Checkboard, { renderers: renderers }) - ) - ), - _react2.default.createElement( - 'div', - { style: styles.toggles }, - _react2.default.createElement( - 'div', - { style: styles.hue }, - _react2.default.createElement(_common.Hue, { - style: styles.Hue, - hsl: hsl, - pointer: _ChromePointer2.default, - onChange: onChange - }) - ), - _react2.default.createElement( - 'div', - { style: styles.alpha }, - _react2.default.createElement(_common.Alpha, { - style: styles.Alpha, - rgb: rgb, - hsl: hsl, - pointer: _ChromePointer2.default, - renderers: renderers, - onChange: onChange - }) - ) - ) - ), - _react2.default.createElement(_ChromeFields2.default, { - rgb: rgb, - hsl: hsl, - hex: hex, - onChange: onChange, - disableAlpha: disableAlpha - }) - ) - ); - }); - (Chrome.propTypes = { disableAlpha: _propTypes2.default.bool }), - (Chrome.defaultProps = { disableAlpha: !1 }), - (exports.default = (0, _common.ColorWrap)(Chrome)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.ChromeFields = void 0); - var _createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - Object.defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _color2 = _interopRequireDefault(__webpack_require__(109)), - _common = __webpack_require__(23); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - } - var ChromeFields = (exports.ChromeFields = (function(_React$Component) { - function ChromeFields() { - var _ref, _temp, _this; - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, ChromeFields); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) - args[_key] = arguments[_key]; - return ( - (_temp = _this = _possibleConstructorReturn( - this, - (_ref = ChromeFields.__proto__ || Object.getPrototypeOf(ChromeFields)).call.apply( - _ref, - [this].concat(args) - ) - )), - (_this.state = { view: '' }), - (_this.toggleViews = function() { - 'hex' === _this.state.view - ? _this.setState({ view: 'rgb' }) - : 'rgb' === _this.state.view - ? _this.setState({ view: 'hsl' }) - : 'hsl' === _this.state.view && - (1 === _this.props.hsl.a - ? _this.setState({ view: 'hex' }) - : _this.setState({ view: 'rgb' })); - }), - (_this.handleChange = function(data, e) { - data.hex - ? _color2.default.isValidHex(data.hex) && - _this.props.onChange({ hex: data.hex, source: 'hex' }, e) - : data.r || data.g || data.b - ? _this.props.onChange( - { - r: data.r || _this.props.rgb.r, - g: data.g || _this.props.rgb.g, - b: data.b || _this.props.rgb.b, - source: 'rgb' - }, - e - ) - : data.a - ? (data.a < 0 ? (data.a = 0) : data.a > 1 && (data.a = 1), - _this.props.onChange( - { - h: _this.props.hsl.h, - s: _this.props.hsl.s, - l: _this.props.hsl.l, - a: Math.round(100 * data.a) / 100, - source: 'rgb' - }, - e - )) - : (data.h || data.s || data.l) && - _this.props.onChange( - { - h: data.h || _this.props.hsl.h, - s: (data.s && data.s) || _this.props.hsl.s, - l: (data.l && data.l) || _this.props.hsl.l, - source: 'hsl' - }, - e - ); - }), - (_this.showHighlight = function(e) { - e.target.style.background = '#eee'; - }), - (_this.hideHighlight = function(e) { - e.target.style.background = 'transparent'; - }), - _possibleConstructorReturn(_this, _temp) - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(ChromeFields, _react2.default.Component), - _createClass(ChromeFields, [ - { - key: 'componentDidMount', - value: function componentDidMount() { - 1 === this.props.hsl.a && 'hex' !== this.state.view - ? this.setState({ view: 'hex' }) - : 'rgb' !== this.state.view && - 'hsl' !== this.state.view && - this.setState({ view: 'rgb' }); - } - }, - { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps) { - 1 !== nextProps.hsl.a && 'hex' === this.state.view && this.setState({ view: 'rgb' }); - } - }, - { - key: 'render', - value: function render() { - var _this2 = this, - styles = (0, _reactcss2.default)( - { - default: { - wrap: { paddingTop: '16px', display: 'flex' }, - fields: { flex: '1', display: 'flex', marginLeft: '-6px' }, - field: { paddingLeft: '6px', width: '100%' }, - alpha: { paddingLeft: '6px', width: '100%' }, - toggle: { width: '32px', textAlign: 'right', position: 'relative' }, - icon: { - marginRight: '-4px', - marginTop: '12px', - cursor: 'pointer', - position: 'relative' - }, - iconHighlight: { - position: 'absolute', - width: '24px', - height: '28px', - background: '#eee', - borderRadius: '4px', - top: '10px', - left: '12px', - display: 'none' - }, - input: { - fontSize: '11px', - color: '#333', - width: '100%', - borderRadius: '2px', - border: 'none', - boxShadow: 'inset 0 0 0 1px #dadada', - height: '21px', - textAlign: 'center' - }, - label: { - textTransform: 'uppercase', - fontSize: '11px', - lineHeight: '11px', - color: '#969696', - textAlign: 'center', - display: 'block', - marginTop: '12px' - }, - svg: { - width: '24px', - height: '24px', - border: '1px transparent solid', - borderRadius: '5px' - } - }, - disableAlpha: { alpha: { display: 'none' } } - }, - this.props, - this.state - ), - fields = void 0; - return ( - 'hex' === this.state.view - ? (fields = _react2.default.createElement( - 'div', - { style: styles.fields, className: 'flexbox-fix' }, - _react2.default.createElement( - 'div', - { style: styles.field }, - _react2.default.createElement(_common.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'hex', - value: this.props.hex, - onChange: this.handleChange - }) - ) - )) - : 'rgb' === this.state.view - ? (fields = _react2.default.createElement( - 'div', - { style: styles.fields, className: 'flexbox-fix' }, - _react2.default.createElement( - 'div', - { style: styles.field }, - _react2.default.createElement(_common.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'r', - value: this.props.rgb.r, - onChange: this.handleChange - }) - ), - _react2.default.createElement( - 'div', - { style: styles.field }, - _react2.default.createElement(_common.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'g', - value: this.props.rgb.g, - onChange: this.handleChange - }) - ), - _react2.default.createElement( - 'div', - { style: styles.field }, - _react2.default.createElement(_common.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'b', - value: this.props.rgb.b, - onChange: this.handleChange - }) - ), - _react2.default.createElement( - 'div', - { style: styles.alpha }, - _react2.default.createElement(_common.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'a', - value: this.props.rgb.a, - arrowOffset: 0.01, - onChange: this.handleChange - }) - ) - )) - : 'hsl' === this.state.view && - (fields = _react2.default.createElement( - 'div', - { style: styles.fields, className: 'flexbox-fix' }, - _react2.default.createElement( - 'div', - { style: styles.field }, - _react2.default.createElement(_common.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'h', - value: Math.round(this.props.hsl.h), - onChange: this.handleChange - }) - ), - _react2.default.createElement( - 'div', - { style: styles.field }, - _react2.default.createElement(_common.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 's', - value: Math.round(100 * this.props.hsl.s) + '%', - onChange: this.handleChange - }) - ), - _react2.default.createElement( - 'div', - { style: styles.field }, - _react2.default.createElement(_common.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'l', - value: Math.round(100 * this.props.hsl.l) + '%', - onChange: this.handleChange - }) - ), - _react2.default.createElement( - 'div', - { style: styles.alpha }, - _react2.default.createElement(_common.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'a', - value: this.props.hsl.a, - arrowOffset: 0.01, - onChange: this.handleChange - }) - ) - )), - _react2.default.createElement( - 'div', - { style: styles.wrap, className: 'flexbox-fix' }, - fields, - _react2.default.createElement( - 'div', - { style: styles.toggle }, - _react2.default.createElement( - 'div', - { - style: styles.icon, - onClick: this.toggleViews, - ref: function ref(icon) { - return (_this2.icon = icon); - } - }, - _react2.default.createElement( - 'svg', - { - style: styles.svg, - viewBox: '0 0 24 24', - onMouseOver: this.showHighlight, - onMouseEnter: this.showHighlight, - onMouseOut: this.hideHighlight - }, - _react2.default.createElement('path', { - ref: function ref(iconUp) { - return (_this2.iconUp = iconUp); - }, - fill: '#333', - d: 'M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z' - }), - _react2.default.createElement('path', { - ref: function ref(iconDown) { - return (_this2.iconDown = iconDown); - }, - fill: '#333', - d: 'M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15Z' - }) - ) - ) - ) - ) - ); - } - } - ]), - ChromeFields - ); - })()); - exports.default = ChromeFields; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.ChromePointer = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ChromePointer = (exports.ChromePointer = function ChromePointer() { - var styles = (0, _reactcss2.default)({ - default: { - picker: { - width: '12px', - height: '12px', - borderRadius: '6px', - transform: 'translate(-6px, -1px)', - backgroundColor: 'rgb(248, 248, 248)', - boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)' - } - } - }); - return _react2.default.createElement('div', { style: styles.picker }); - }); - exports.default = ChromePointer; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.ChromePointerCircle = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ChromePointerCircle = (exports.ChromePointerCircle = function ChromePointerCircle() { - var styles = (0, _reactcss2.default)({ - default: { - picker: { - width: '12px', - height: '12px', - borderRadius: '6px', - boxShadow: 'inset 0 0 0 1px #fff', - transform: 'translate(-6px, -6px)' - } - } - }); - return _react2.default.createElement('div', { style: styles.picker }); - }); - exports.default = ChromePointerCircle; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.Compact = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _map2 = _interopRequireDefault(__webpack_require__(124)), - _color2 = _interopRequireDefault(__webpack_require__(109)), - _common = __webpack_require__(23), - _CompactColor2 = _interopRequireDefault(__webpack_require__(1088)), - _CompactFields2 = _interopRequireDefault(__webpack_require__(1089)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Compact = (exports.Compact = function Compact(_ref) { - var onChange = _ref.onChange, - onSwatchHover = _ref.onSwatchHover, - colors = _ref.colors, - hex = _ref.hex, - rgb = _ref.rgb, - _ref$className = _ref.className, - className = void 0 === _ref$className ? '' : _ref$className, - styles = (0, _reactcss2.default)({ - default: { - Compact: { background: '#f6f6f6', radius: '4px' }, - compact: { - paddingTop: '5px', - paddingLeft: '5px', - boxSizing: 'initial', - width: '240px' - }, - clear: { clear: 'both' } - } - }), - handleChange = function handleChange(data, e) { - data.hex - ? _color2.default.isValidHex(data.hex) && onChange({ hex: data.hex, source: 'hex' }, e) - : onChange(data, e); - }; - return _react2.default.createElement( - _common.Raised, - { style: styles.Compact }, - _react2.default.createElement( - 'div', - { style: styles.compact, className: 'compact-picker ' + className }, - _react2.default.createElement( - 'div', - null, - (0, _map2.default)(colors, function(c) { - return _react2.default.createElement(_CompactColor2.default, { - key: c, - color: c, - active: c.toLowerCase() === hex, - onClick: handleChange, - onSwatchHover: onSwatchHover - }); - }), - _react2.default.createElement('div', { style: styles.clear }) - ), - _react2.default.createElement(_CompactFields2.default, { - hex: hex, - rgb: rgb, - onChange: handleChange - }) - ) - ); - }); - (Compact.propTypes = { colors: _propTypes2.default.arrayOf(_propTypes2.default.string) }), - (Compact.defaultProps = { - colors: [ - '#4D4D4D', - '#999999', - '#FFFFFF', - '#F44E3B', - '#FE9200', - '#FCDC00', - '#DBDF00', - '#A4DD00', - '#68CCCA', - '#73D8FF', - '#AEA1FF', - '#FDA1FF', - '#333333', - '#808080', - '#cccccc', - '#D33115', - '#E27300', - '#FCC400', - '#B0BC00', - '#68BC00', - '#16A5A5', - '#009CE0', - '#7B64FF', - '#FA28FF', - '#000000', - '#666666', - '#B3B3B3', - '#9F0500', - '#C45100', - '#FB9E00', - '#808900', - '#194D33', - '#0C797D', - '#0062B1', - '#653294', - '#AB149E' - ] - }), - (exports.default = (0, _common.ColorWrap)(Compact)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.CompactColor = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _common = __webpack_require__(23); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var CompactColor = (exports.CompactColor = function CompactColor(_ref) { - var color = _ref.color, - _ref$onClick = _ref.onClick, - onClick = void 0 === _ref$onClick ? function() {} : _ref$onClick, - onSwatchHover = _ref.onSwatchHover, - active = _ref.active, - styles = (0, _reactcss2.default)( - { - default: { - color: { - background: color, - width: '15px', - height: '15px', - float: 'left', - marginRight: '5px', - marginBottom: '5px', - position: 'relative', - cursor: 'pointer' - }, - dot: { - absolute: '5px 5px 5px 5px', - background: '#fff', - borderRadius: '50%', - opacity: '0' - } - }, - active: { dot: { opacity: '1' } }, - 'color-#FFFFFF': { - color: { boxShadow: 'inset 0 0 0 1px #ddd' }, - dot: { background: '#000' } - }, - transparent: { dot: { background: '#000' } } - }, - { - active: active, - 'color-#FFFFFF': '#FFFFFF' === color, - transparent: 'transparent' === color - } - ); - return _react2.default.createElement( - _common.Swatch, - { - style: styles.color, - color: color, - onClick: onClick, - onHover: onSwatchHover, - focusStyle: { boxShadow: '0 0 4px ' + color } - }, - _react2.default.createElement('div', { style: styles.dot }) - ); - }); - exports.default = CompactColor; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.CompactFields = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _common = __webpack_require__(23); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var CompactFields = (exports.CompactFields = function CompactFields(_ref) { - var hex = _ref.hex, - rgb = _ref.rgb, - onChange = _ref.onChange, - styles = (0, _reactcss2.default)({ - default: { - fields: { - display: 'flex', - paddingBottom: '6px', - paddingRight: '5px', - position: 'relative' - }, - active: { - position: 'absolute', - top: '6px', - left: '5px', - height: '9px', - width: '9px', - background: hex - }, - HEXwrap: { flex: '6', position: 'relative' }, - HEXinput: { - width: '80%', - padding: '0px', - paddingLeft: '20%', - border: 'none', - outline: 'none', - background: 'none', - fontSize: '12px', - color: '#333', - height: '16px' - }, - HEXlabel: { display: 'none' }, - RGBwrap: { flex: '3', position: 'relative' }, - RGBinput: { - width: '70%', - padding: '0px', - paddingLeft: '30%', - border: 'none', - outline: 'none', - background: 'none', - fontSize: '12px', - color: '#333', - height: '16px' - }, - RGBlabel: { - position: 'absolute', - top: '3px', - left: '0px', - lineHeight: '16px', - textTransform: 'uppercase', - fontSize: '12px', - color: '#999' - } - } - }), - handleChange = function handleChange(data, e) { - data.r || data.g || data.b - ? onChange( - { r: data.r || rgb.r, g: data.g || rgb.g, b: data.b || rgb.b, source: 'rgb' }, - e - ) - : onChange({ hex: data.hex, source: 'hex' }, e); - }; - return _react2.default.createElement( - 'div', - { style: styles.fields, className: 'flexbox-fix' }, - _react2.default.createElement('div', { style: styles.active }), - _react2.default.createElement(_common.EditableInput, { - style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel }, - label: 'hex', - value: hex, - onChange: handleChange - }), - _react2.default.createElement(_common.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'r', - value: rgb.r, - onChange: handleChange - }), - _react2.default.createElement(_common.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'g', - value: rgb.g, - onChange: handleChange - }), - _react2.default.createElement(_common.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'b', - value: rgb.b, - onChange: handleChange - }) - ); - }); - exports.default = CompactFields; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.Github = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _map2 = _interopRequireDefault(__webpack_require__(124)), - _common = __webpack_require__(23), - _GithubSwatch2 = _interopRequireDefault(__webpack_require__(1091)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Github = (exports.Github = function Github(_ref) { - var width = _ref.width, - colors = _ref.colors, - onChange = _ref.onChange, - onSwatchHover = _ref.onSwatchHover, - triangle = _ref.triangle, - _ref$className = _ref.className, - className = void 0 === _ref$className ? '' : _ref$className, - styles = (0, _reactcss2.default)( - { - default: { - card: { - width: width, - background: '#fff', - border: '1px solid rgba(0,0,0,0.2)', - boxShadow: '0 3px 12px rgba(0,0,0,0.15)', - borderRadius: '4px', - position: 'relative', - padding: '5px', - display: 'flex', - flexWrap: 'wrap' - }, - triangle: { - position: 'absolute', - border: '7px solid transparent', - borderBottomColor: '#fff' - }, - triangleShadow: { - position: 'absolute', - border: '8px solid transparent', - borderBottomColor: 'rgba(0,0,0,0.15)' - } - }, - 'hide-triangle': { triangle: { display: 'none' }, triangleShadow: { display: 'none' } }, - 'top-left-triangle': { - triangle: { top: '-14px', left: '10px' }, - triangleShadow: { top: '-16px', left: '9px' } - }, - 'top-right-triangle': { - triangle: { top: '-14px', right: '10px' }, - triangleShadow: { top: '-16px', right: '9px' } - }, - 'bottom-right-triangle': { - triangle: { top: '35px', right: '10px', transform: 'rotate(180deg)' }, - triangleShadow: { top: '37px', right: '9px', transform: 'rotate(180deg)' } - } - }, - { - 'hide-triangle': 'hide' === triangle, - 'top-left-triangle': 'top-left' === triangle, - 'top-right-triangle': 'top-right' === triangle, - 'bottom-right-triangle': 'bottom-right' === triangle - } - ), - handleChange = function handleChange(hex, e) { - return onChange({ hex: hex, source: 'hex' }, e); - }; - return _react2.default.createElement( - 'div', - { style: styles.card, className: 'github-picker ' + className }, - _react2.default.createElement('div', { style: styles.triangleShadow }), - _react2.default.createElement('div', { style: styles.triangle }), - (0, _map2.default)(colors, function(c) { - return _react2.default.createElement(_GithubSwatch2.default, { - color: c, - key: c, - onClick: handleChange, - onSwatchHover: onSwatchHover - }); - }) - ); - }); - (Github.propTypes = { - width: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.number - ]), - colors: _propTypes2.default.arrayOf(_propTypes2.default.string), - triangle: _propTypes2.default.oneOf(['hide', 'top-left', 'top-right']) - }), - (Github.defaultProps = { - width: 200, - colors: [ - '#B80000', - '#DB3E00', - '#FCCB00', - '#008B02', - '#006B76', - '#1273DE', - '#004DCF', - '#5300EB', - '#EB9694', - '#FAD0C3', - '#FEF3BD', - '#C1E1C5', - '#BEDADC', - '#C4DEF6', - '#BED3F3', - '#D4C4FB' - ], - triangle: 'top-left' - }), - (exports.default = (0, _common.ColorWrap)(Github)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.GithubSwatch = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss = __webpack_require__(14), - _reactcss2 = _interopRequireDefault(_reactcss), - _common = __webpack_require__(23); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var GithubSwatch = (exports.GithubSwatch = function GithubSwatch(_ref) { - var hover = _ref.hover, - color = _ref.color, - onClick = _ref.onClick, - onSwatchHover = _ref.onSwatchHover, - hoverSwatch = { - position: 'relative', - zIndex: '2', - outline: '2px solid #fff', - boxShadow: '0 0 5px 2px rgba(0,0,0,0.25)' - }, - styles = (0, _reactcss2.default)( - { - default: { swatch: { width: '25px', height: '25px', fontSize: '0' } }, - hover: { swatch: hoverSwatch } - }, - { hover: hover } - ); - return _react2.default.createElement( - 'div', - { style: styles.swatch }, - _react2.default.createElement(_common.Swatch, { - color: color, - onClick: onClick, - onHover: onSwatchHover, - focusStyle: hoverSwatch - }) - ); - }); - exports.default = (0, _reactcss.handleHover)(GithubSwatch); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.HuePicker = void 0); - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }, - _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _common = __webpack_require__(23), - _HuePointer2 = _interopRequireDefault(__webpack_require__(1093)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var HuePicker = (exports.HuePicker = function HuePicker(_ref) { - var width = _ref.width, - height = _ref.height, - onChange = _ref.onChange, - hsl = _ref.hsl, - direction = _ref.direction, - pointer = _ref.pointer, - _ref$className = _ref.className, - className = void 0 === _ref$className ? '' : _ref$className, - styles = (0, _reactcss2.default)({ - default: { - picker: { position: 'relative', width: width, height: height }, - hue: { radius: '2px' } - } - }); - return _react2.default.createElement( - 'div', - { style: styles.picker, className: 'hue-picker ' + className }, - _react2.default.createElement( - _common.Hue, - _extends({}, styles.hue, { - hsl: hsl, - pointer: pointer, - onChange: function handleChange(data) { - return onChange({ a: 1, h: data.h, l: 0.5, s: 1 }); - }, - direction: direction - }) - ) - ); - }); - (HuePicker.defaultProps = { - width: '316px', - height: '16px', - direction: 'horizontal', - pointer: _HuePointer2.default - }), - (exports.default = (0, _common.ColorWrap)(HuePicker)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.SliderPointer = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var SliderPointer = (exports.SliderPointer = function SliderPointer(_ref) { - var direction = _ref.direction, - styles = (0, _reactcss2.default)( - { - default: { - picker: { - width: '18px', - height: '18px', - borderRadius: '50%', - transform: 'translate(-9px, -1px)', - backgroundColor: 'rgb(248, 248, 248)', - boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)' - } - }, - vertical: { picker: { transform: 'translate(-3px, -9px)' } } - }, - { vertical: 'vertical' === direction } - ); - return _react2.default.createElement('div', { style: styles.picker }); - }); - exports.default = SliderPointer; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.Material = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _color2 = _interopRequireDefault(__webpack_require__(109)), - _common = __webpack_require__(23); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Material = (exports.Material = function Material(_ref) { - var onChange = _ref.onChange, - hex = _ref.hex, - rgb = _ref.rgb, - _ref$className = _ref.className, - className = void 0 === _ref$className ? '' : _ref$className, - styles = (0, _reactcss2.default)({ - default: { - material: { width: '98px', height: '98px', padding: '16px', fontFamily: 'Roboto' }, - HEXwrap: { position: 'relative' }, - HEXinput: { - width: '100%', - marginTop: '12px', - fontSize: '15px', - color: '#333', - padding: '0px', - border: '0px', - borderBottom: '2px solid ' + hex, - outline: 'none', - height: '30px' - }, - HEXlabel: { - position: 'absolute', - top: '0px', - left: '0px', - fontSize: '11px', - color: '#999999', - textTransform: 'capitalize' - }, - Hex: { style: {} }, - RGBwrap: { position: 'relative' }, - RGBinput: { - width: '100%', - marginTop: '12px', - fontSize: '15px', - color: '#333', - padding: '0px', - border: '0px', - borderBottom: '1px solid #eee', - outline: 'none', - height: '30px' - }, - RGBlabel: { - position: 'absolute', - top: '0px', - left: '0px', - fontSize: '11px', - color: '#999999', - textTransform: 'capitalize' - }, - split: { display: 'flex', marginRight: '-10px', paddingTop: '11px' }, - third: { flex: '1', paddingRight: '10px' } - } - }), - handleChange = function handleChange(data, e) { - data.hex - ? _color2.default.isValidHex(data.hex) && onChange({ hex: data.hex, source: 'hex' }, e) - : (data.r || data.g || data.b) && - onChange( - { r: data.r || rgb.r, g: data.g || rgb.g, b: data.b || rgb.b, source: 'rgb' }, - e - ); - }; - return _react2.default.createElement( - _common.Raised, - null, - _react2.default.createElement( - 'div', - { style: styles.material, className: 'material-picker ' + className }, - _react2.default.createElement(_common.EditableInput, { - style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel }, - label: 'hex', - value: hex, - onChange: handleChange - }), - _react2.default.createElement( - 'div', - { style: styles.split, className: 'flexbox-fix' }, - _react2.default.createElement( - 'div', - { style: styles.third }, - _react2.default.createElement(_common.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'r', - value: rgb.r, - onChange: handleChange - }) - ), - _react2.default.createElement( - 'div', - { style: styles.third }, - _react2.default.createElement(_common.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'g', - value: rgb.g, - onChange: handleChange - }) - ), - _react2.default.createElement( - 'div', - { style: styles.third }, - _react2.default.createElement(_common.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'b', - value: rgb.b, - onChange: handleChange - }) - ) - ) - ) - ); - }); - exports.default = (0, _common.ColorWrap)(Material); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.Photoshop = void 0); - var _createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - Object.defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _common = __webpack_require__(23), - _PhotoshopFields2 = _interopRequireDefault(__webpack_require__(1096)), - _PhotoshopPointerCircle2 = _interopRequireDefault(__webpack_require__(1097)), - _PhotoshopPointer2 = _interopRequireDefault(__webpack_require__(1098)), - _PhotoshopButton2 = _interopRequireDefault(__webpack_require__(1099)), - _PhotoshopPreviews2 = _interopRequireDefault(__webpack_require__(1100)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Photoshop = (exports.Photoshop = (function(_React$Component) { - function Photoshop(props) { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, Photoshop); - var _this = (function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - })(this, (Photoshop.__proto__ || Object.getPrototypeOf(Photoshop)).call(this)); - return (_this.state = { currentColor: props.hex }), _this; - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(Photoshop, _react2.default.Component), - _createClass(Photoshop, [ - { - key: 'render', - value: function render() { - var _props$className = this.props.className, - className = void 0 === _props$className ? '' : _props$className, - styles = (0, _reactcss2.default)({ - default: { - picker: { - background: '#DCDCDC', - borderRadius: '4px', - boxShadow: '0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)', - boxSizing: 'initial', - width: '513px' - }, - head: { - backgroundImage: 'linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)', - borderBottom: '1px solid #B1B1B1', - boxShadow: - 'inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)', - height: '23px', - lineHeight: '24px', - borderRadius: '4px 4px 0 0', - fontSize: '13px', - color: '#4D4D4D', - textAlign: 'center' - }, - body: { padding: '15px 15px 0', display: 'flex' }, - saturation: { - width: '256px', - height: '256px', - position: 'relative', - border: '2px solid #B3B3B3', - borderBottom: '2px solid #F0F0F0', - overflow: 'hidden' - }, - hue: { - position: 'relative', - height: '256px', - width: '19px', - marginLeft: '10px', - border: '2px solid #B3B3B3', - borderBottom: '2px solid #F0F0F0' - }, - controls: { width: '180px', marginLeft: '10px' }, - top: { display: 'flex' }, - previews: { width: '60px' }, - actions: { flex: '1', marginLeft: '20px' } - } - }); - return _react2.default.createElement( - 'div', - { style: styles.picker, className: 'photoshop-picker ' + className }, - _react2.default.createElement('div', { style: styles.head }, this.props.header), - _react2.default.createElement( - 'div', - { style: styles.body, className: 'flexbox-fix' }, - _react2.default.createElement( - 'div', - { style: styles.saturation }, - _react2.default.createElement(_common.Saturation, { - hsl: this.props.hsl, - hsv: this.props.hsv, - pointer: _PhotoshopPointerCircle2.default, - onChange: this.props.onChange - }) - ), - _react2.default.createElement( - 'div', - { style: styles.hue }, - _react2.default.createElement(_common.Hue, { - direction: 'vertical', - hsl: this.props.hsl, - pointer: _PhotoshopPointer2.default, - onChange: this.props.onChange - }) - ), - _react2.default.createElement( - 'div', - { style: styles.controls }, - _react2.default.createElement( - 'div', - { style: styles.top, className: 'flexbox-fix' }, - _react2.default.createElement( - 'div', - { style: styles.previews }, - _react2.default.createElement(_PhotoshopPreviews2.default, { - rgb: this.props.rgb, - currentColor: this.state.currentColor - }) - ), - _react2.default.createElement( - 'div', - { style: styles.actions }, - _react2.default.createElement(_PhotoshopButton2.default, { - label: 'OK', - onClick: this.props.onAccept, - active: !0 - }), - _react2.default.createElement(_PhotoshopButton2.default, { - label: 'Cancel', - onClick: this.props.onCancel - }), - _react2.default.createElement(_PhotoshopFields2.default, { - onChange: this.props.onChange, - rgb: this.props.rgb, - hsv: this.props.hsv, - hex: this.props.hex - }) - ) - ) - ) - ) - ); - } - } - ]), - Photoshop - ); - })()); - (Photoshop.propTypes = { header: _propTypes2.default.string }), - (Photoshop.defaultProps = { header: 'Color Picker' }), - (exports.default = (0, _common.ColorWrap)(Photoshop)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.PhotoshopPicker = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _color2 = _interopRequireDefault(__webpack_require__(109)), - _common = __webpack_require__(23); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var PhotoshopPicker = (exports.PhotoshopPicker = function PhotoshopPicker(_ref) { - var onChange = _ref.onChange, - rgb = _ref.rgb, - hsv = _ref.hsv, - hex = _ref.hex, - styles = (0, _reactcss2.default)({ - default: { - fields: { - paddingTop: '5px', - paddingBottom: '9px', - width: '80px', - position: 'relative' - }, - divider: { height: '5px' }, - RGBwrap: { position: 'relative' }, - RGBinput: { - marginLeft: '40%', - width: '40%', - height: '18px', - border: '1px solid #888888', - boxShadow: 'inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC', - marginBottom: '5px', - fontSize: '13px', - paddingLeft: '3px', - marginRight: '10px' - }, - RGBlabel: { - left: '0px', - width: '34px', - textTransform: 'uppercase', - fontSize: '13px', - height: '18px', - lineHeight: '22px', - position: 'absolute' - }, - HEXwrap: { position: 'relative' }, - HEXinput: { - marginLeft: '20%', - width: '80%', - height: '18px', - border: '1px solid #888888', - boxShadow: 'inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC', - marginBottom: '6px', - fontSize: '13px', - paddingLeft: '3px' - }, - HEXlabel: { - position: 'absolute', - top: '0px', - left: '0px', - width: '14px', - textTransform: 'uppercase', - fontSize: '13px', - height: '18px', - lineHeight: '22px' - }, - fieldSymbols: { position: 'absolute', top: '5px', right: '-7px', fontSize: '13px' }, - symbol: { height: '20px', lineHeight: '22px', paddingBottom: '7px' } - } - }), - handleChange = function handleChange(data, e) { - data['#'] - ? _color2.default.isValidHex(data['#']) && - onChange({ hex: data['#'], source: 'hex' }, e) - : data.r || data.g || data.b - ? onChange( - { r: data.r || rgb.r, g: data.g || rgb.g, b: data.b || rgb.b, source: 'rgb' }, - e - ) - : (data.h || data.s || data.v) && - onChange( - { h: data.h || hsv.h, s: data.s || hsv.s, v: data.v || hsv.v, source: 'hsv' }, - e - ); - }; - return _react2.default.createElement( - 'div', - { style: styles.fields }, - _react2.default.createElement(_common.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'h', - value: Math.round(hsv.h), - onChange: handleChange - }), - _react2.default.createElement(_common.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 's', - value: Math.round(100 * hsv.s), - onChange: handleChange - }), - _react2.default.createElement(_common.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'v', - value: Math.round(100 * hsv.v), - onChange: handleChange - }), - _react2.default.createElement('div', { style: styles.divider }), - _react2.default.createElement(_common.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'r', - value: rgb.r, - onChange: handleChange - }), - _react2.default.createElement(_common.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'g', - value: rgb.g, - onChange: handleChange - }), - _react2.default.createElement(_common.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'b', - value: rgb.b, - onChange: handleChange - }), - _react2.default.createElement('div', { style: styles.divider }), - _react2.default.createElement(_common.EditableInput, { - style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel }, - label: '#', - value: hex.replace('#', ''), - onChange: handleChange - }), - _react2.default.createElement( - 'div', - { style: styles.fieldSymbols }, - _react2.default.createElement('div', { style: styles.symbol }, '°'), - _react2.default.createElement('div', { style: styles.symbol }, '%'), - _react2.default.createElement('div', { style: styles.symbol }, '%') - ) - ); - }); - exports.default = PhotoshopPicker; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.PhotoshopPointerCircle = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var PhotoshopPointerCircle = (exports.PhotoshopPointerCircle = function PhotoshopPointerCircle( - _ref - ) { - var hsl = _ref.hsl, - styles = (0, _reactcss2.default)( - { - default: { - picker: { - width: '12px', - height: '12px', - borderRadius: '6px', - boxShadow: 'inset 0 0 0 1px #fff', - transform: 'translate(-6px, -6px)' - } - }, - 'black-outline': { picker: { boxShadow: 'inset 0 0 0 1px #000' } } - }, - { 'black-outline': hsl.l > 0.5 } - ); - return _react2.default.createElement('div', { style: styles.picker }); - }); - exports.default = PhotoshopPointerCircle; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.PhotoshopPointerCircle = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var PhotoshopPointerCircle = (exports.PhotoshopPointerCircle = function PhotoshopPointerCircle() { - var styles = (0, _reactcss2.default)({ - default: { - triangle: { - width: 0, - height: 0, - borderStyle: 'solid', - borderWidth: '4px 0 4px 6px', - borderColor: 'transparent transparent transparent #fff', - position: 'absolute', - top: '1px', - left: '1px' - }, - triangleBorder: { - width: 0, - height: 0, - borderStyle: 'solid', - borderWidth: '5px 0 5px 8px', - borderColor: 'transparent transparent transparent #555' - }, - left: { Extend: 'triangleBorder', transform: 'translate(-13px, -4px)' }, - leftInside: { Extend: 'triangle', transform: 'translate(-8px, -5px)' }, - right: { Extend: 'triangleBorder', transform: 'translate(20px, -14px) rotate(180deg)' }, - rightInside: { Extend: 'triangle', transform: 'translate(-8px, -5px)' } - } - }); - return _react2.default.createElement( - 'div', - { style: styles.pointer }, - _react2.default.createElement( - 'div', - { style: styles.left }, - _react2.default.createElement('div', { style: styles.leftInside }) - ), - _react2.default.createElement( - 'div', - { style: styles.right }, - _react2.default.createElement('div', { style: styles.rightInside }) - ) - ); - }); - exports.default = PhotoshopPointerCircle; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.PhotoshopBotton = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var PhotoshopBotton = (exports.PhotoshopBotton = function PhotoshopBotton(_ref) { - var onClick = _ref.onClick, - label = _ref.label, - children = _ref.children, - active = _ref.active, - styles = (0, _reactcss2.default)( - { - default: { - button: { - backgroundImage: 'linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)', - border: '1px solid #878787', - borderRadius: '2px', - height: '20px', - boxShadow: '0 1px 0 0 #EAEAEA', - fontSize: '14px', - color: '#000', - lineHeight: '20px', - textAlign: 'center', - marginBottom: '10px', - cursor: 'pointer' - } - }, - active: { button: { boxShadow: '0 0 0 1px #878787' } } - }, - { active: active } - ); - return _react2.default.createElement( - 'div', - { style: styles.button, onClick: onClick }, - label || children - ); - }); - exports.default = PhotoshopBotton; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.PhotoshopPreviews = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var PhotoshopPreviews = (exports.PhotoshopPreviews = function PhotoshopPreviews(_ref) { - var rgb = _ref.rgb, - currentColor = _ref.currentColor, - styles = (0, _reactcss2.default)({ - default: { - swatches: { - border: '1px solid #B3B3B3', - borderBottom: '1px solid #F0F0F0', - marginBottom: '2px', - marginTop: '1px' - }, - new: { - height: '34px', - background: 'rgb(' + rgb.r + ',' + rgb.g + ', ' + rgb.b + ')', - boxShadow: 'inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000' - }, - current: { - height: '34px', - background: currentColor, - boxShadow: 'inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000' - }, - label: { fontSize: '14px', color: '#000', textAlign: 'center' } - } - }); - return _react2.default.createElement( - 'div', - null, - _react2.default.createElement('div', { style: styles.label }, 'new'), - _react2.default.createElement( - 'div', - { style: styles.swatches }, - _react2.default.createElement('div', { style: styles.new }), - _react2.default.createElement('div', { style: styles.current }) - ), - _react2.default.createElement('div', { style: styles.label }, 'current') - ); - }); - exports.default = PhotoshopPreviews; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.Sketch = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _common = __webpack_require__(23), - _SketchFields2 = _interopRequireDefault(__webpack_require__(1102)), - _SketchPresetColors2 = _interopRequireDefault(__webpack_require__(1103)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Sketch = (exports.Sketch = function Sketch(_ref) { - var width = _ref.width, - rgb = _ref.rgb, - hex = _ref.hex, - hsv = _ref.hsv, - hsl = _ref.hsl, - onChange = _ref.onChange, - onSwatchHover = _ref.onSwatchHover, - disableAlpha = _ref.disableAlpha, - presetColors = _ref.presetColors, - renderers = _ref.renderers, - _ref$className = _ref.className, - className = void 0 === _ref$className ? '' : _ref$className, - styles = (0, _reactcss2.default)( - { - default: { - picker: { - width: width, - padding: '10px 10px 0', - boxSizing: 'initial', - background: '#fff', - borderRadius: '4px', - boxShadow: '0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)' - }, - saturation: { - width: '100%', - paddingBottom: '75%', - position: 'relative', - overflow: 'hidden' - }, - Saturation: { - radius: '3px', - shadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)' - }, - controls: { display: 'flex' }, - sliders: { padding: '4px 0', flex: '1' }, - color: { - width: '24px', - height: '24px', - position: 'relative', - marginTop: '4px', - marginLeft: '4px', - borderRadius: '3px' - }, - activeColor: { - absolute: '0px 0px 0px 0px', - borderRadius: '2px', - background: 'rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ',' + rgb.a + ')', - boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)' - }, - hue: { position: 'relative', height: '10px', overflow: 'hidden' }, - Hue: { - radius: '2px', - shadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)' - }, - alpha: { position: 'relative', height: '10px', marginTop: '4px', overflow: 'hidden' }, - Alpha: { - radius: '2px', - shadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)' - } - }, - disableAlpha: { - color: { height: '10px' }, - hue: { height: '10px' }, - alpha: { display: 'none' } - } - }, - { disableAlpha: disableAlpha } - ); - return _react2.default.createElement( - 'div', - { style: styles.picker, className: 'sketch-picker ' + className }, - _react2.default.createElement( - 'div', - { style: styles.saturation }, - _react2.default.createElement(_common.Saturation, { - style: styles.Saturation, - hsl: hsl, - hsv: hsv, - onChange: onChange - }) - ), - _react2.default.createElement( - 'div', - { style: styles.controls, className: 'flexbox-fix' }, - _react2.default.createElement( - 'div', - { style: styles.sliders }, - _react2.default.createElement( - 'div', - { style: styles.hue }, - _react2.default.createElement(_common.Hue, { - style: styles.Hue, - hsl: hsl, - onChange: onChange - }) - ), - _react2.default.createElement( - 'div', - { style: styles.alpha }, - _react2.default.createElement(_common.Alpha, { - style: styles.Alpha, - rgb: rgb, - hsl: hsl, - renderers: renderers, - onChange: onChange - }) - ) - ), - _react2.default.createElement( - 'div', - { style: styles.color }, - _react2.default.createElement(_common.Checkboard, null), - _react2.default.createElement('div', { style: styles.activeColor }) - ) - ), - _react2.default.createElement(_SketchFields2.default, { - rgb: rgb, - hsl: hsl, - hex: hex, - onChange: onChange, - disableAlpha: disableAlpha - }), - _react2.default.createElement(_SketchPresetColors2.default, { - colors: presetColors, - onClick: onChange, - onSwatchHover: onSwatchHover - }) - ); - }); - (Sketch.propTypes = { - disableAlpha: _propTypes2.default.bool, - width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]) - }), - (Sketch.defaultProps = { - disableAlpha: !1, - width: 200, - presetColors: [ - '#D0021B', - '#F5A623', - '#F8E71C', - '#8B572A', - '#7ED321', - '#417505', - '#BD10E0', - '#9013FE', - '#4A90E2', - '#50E3C2', - '#B8E986', - '#000000', - '#4A4A4A', - '#9B9B9B', - '#FFFFFF' - ] - }), - (exports.default = (0, _common.ColorWrap)(Sketch)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.SketchFields = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _color2 = _interopRequireDefault(__webpack_require__(109)), - _common = __webpack_require__(23); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var SketchFields = (exports.SketchFields = function SketchFields(_ref) { - var onChange = _ref.onChange, - rgb = _ref.rgb, - hsl = _ref.hsl, - hex = _ref.hex, - disableAlpha = _ref.disableAlpha, - styles = (0, _reactcss2.default)( - { - default: { - fields: { display: 'flex', paddingTop: '4px' }, - single: { flex: '1', paddingLeft: '6px' }, - alpha: { flex: '1', paddingLeft: '6px' }, - double: { flex: '2' }, - input: { - width: '80%', - padding: '4px 10% 3px', - border: 'none', - boxShadow: 'inset 0 0 0 1px #ccc', - fontSize: '11px' - }, - label: { - display: 'block', - textAlign: 'center', - fontSize: '11px', - color: '#222', - paddingTop: '3px', - paddingBottom: '4px', - textTransform: 'capitalize' - } - }, - disableAlpha: { alpha: { display: 'none' } } - }, - { disableAlpha: disableAlpha } - ), - handleChange = function handleChange(data, e) { - data.hex - ? _color2.default.isValidHex(data.hex) && onChange({ hex: data.hex, source: 'hex' }, e) - : data.r || data.g || data.b - ? onChange( - { - r: data.r || rgb.r, - g: data.g || rgb.g, - b: data.b || rgb.b, - a: rgb.a, - source: 'rgb' - }, - e - ) - : data.a && - (data.a < 0 ? (data.a = 0) : data.a > 100 && (data.a = 100), - (data.a /= 100), - onChange({ h: hsl.h, s: hsl.s, l: hsl.l, a: data.a, source: 'rgb' }, e)); - }; - return _react2.default.createElement( - 'div', - { style: styles.fields, className: 'flexbox-fix' }, - _react2.default.createElement( - 'div', - { style: styles.double }, - _react2.default.createElement(_common.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'hex', - value: hex.replace('#', ''), - onChange: handleChange - }) - ), - _react2.default.createElement( - 'div', - { style: styles.single }, - _react2.default.createElement(_common.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'r', - value: rgb.r, - onChange: handleChange, - dragLabel: 'true', - dragMax: '255' - }) - ), - _react2.default.createElement( - 'div', - { style: styles.single }, - _react2.default.createElement(_common.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'g', - value: rgb.g, - onChange: handleChange, - dragLabel: 'true', - dragMax: '255' - }) - ), - _react2.default.createElement( - 'div', - { style: styles.single }, - _react2.default.createElement(_common.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'b', - value: rgb.b, - onChange: handleChange, - dragLabel: 'true', - dragMax: '255' - }) - ), - _react2.default.createElement( - 'div', - { style: styles.alpha }, - _react2.default.createElement(_common.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'a', - value: Math.round(100 * rgb.a), - onChange: handleChange, - dragLabel: 'true', - dragMax: '100' - }) - ) - ); - }); - exports.default = SketchFields; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.SketchPresetColors = void 0); - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }, - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _common = __webpack_require__(23); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var SketchPresetColors = (exports.SketchPresetColors = function SketchPresetColors(_ref) { - var colors = _ref.colors, - _ref$onClick = _ref.onClick, - onClick = void 0 === _ref$onClick ? function() {} : _ref$onClick, - onSwatchHover = _ref.onSwatchHover, - styles = (0, _reactcss2.default)( - { - default: { - colors: { - margin: '0 -10px', - padding: '10px 0 0 10px', - borderTop: '1px solid #eee', - display: 'flex', - flexWrap: 'wrap', - position: 'relative' - }, - swatchWrap: { width: '16px', height: '16px', margin: '0 10px 10px 0' }, - swatch: { borderRadius: '3px', boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15)' } - }, - 'no-presets': { colors: { display: 'none' } } - }, - { 'no-presets': !colors || !colors.length } - ), - handleClick = function handleClick(hex, e) { - onClick({ hex: hex, source: 'hex' }, e); - }; - return _react2.default.createElement( - 'div', - { style: styles.colors, className: 'flexbox-fix' }, - colors.map(function(colorObjOrString) { - var c = - 'string' == typeof colorObjOrString ? { color: colorObjOrString } : colorObjOrString; - return _react2.default.createElement( - 'div', - { key: c.color, style: styles.swatchWrap }, - _react2.default.createElement( - _common.Swatch, - _extends({}, c, { - style: styles.swatch, - onClick: handleClick, - onHover: onSwatchHover, - focusStyle: { boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px ' + c.color } - }) - ) - ); - }) - ); - }); - (SketchPresetColors.propTypes = { - colors: _propTypes2.default.arrayOf( - _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.shape({ - color: _propTypes2.default.string, - title: _propTypes2.default.string - }) - ]) - ).isRequired - }), - (exports.default = SketchPresetColors); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.Slider = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _common = __webpack_require__(23), - _SliderSwatches2 = _interopRequireDefault(__webpack_require__(1105)), - _SliderPointer2 = _interopRequireDefault(__webpack_require__(1107)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Slider = (exports.Slider = function Slider(_ref) { - var hsl = _ref.hsl, - onChange = _ref.onChange, - pointer = _ref.pointer, - _ref$className = _ref.className, - className = void 0 === _ref$className ? '' : _ref$className, - styles = (0, _reactcss2.default)({ - default: { hue: { height: '12px', position: 'relative' }, Hue: { radius: '2px' } } - }); - return _react2.default.createElement( - 'div', - { className: 'slider-picker ' + className }, - _react2.default.createElement( - 'div', - { style: styles.hue }, - _react2.default.createElement(_common.Hue, { - style: styles.Hue, - hsl: hsl, - pointer: pointer, - onChange: onChange - }) - ), - _react2.default.createElement( - 'div', - { style: styles.swatches }, - _react2.default.createElement(_SliderSwatches2.default, { hsl: hsl, onClick: onChange }) - ) - ); - }); - (Slider.defaultProps = { pointer: _SliderPointer2.default }), - (exports.default = (0, _common.ColorWrap)(Slider)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.SliderSwatches = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _SliderSwatch2 = _interopRequireDefault(__webpack_require__(1106)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var SliderSwatches = (exports.SliderSwatches = function SliderSwatches(_ref) { - var onClick = _ref.onClick, - hsl = _ref.hsl, - styles = (0, _reactcss2.default)({ - default: { - swatches: { marginTop: '20px' }, - swatch: { boxSizing: 'border-box', width: '20%', paddingRight: '1px', float: 'left' }, - clear: { clear: 'both' } - } - }); - return _react2.default.createElement( - 'div', - { style: styles.swatches }, - _react2.default.createElement( - 'div', - { style: styles.swatch }, - _react2.default.createElement(_SliderSwatch2.default, { - hsl: hsl, - offset: '.80', - active: Math.round(100 * hsl.l) / 100 == 0.8 && Math.round(100 * hsl.s) / 100 == 0.5, - onClick: onClick, - first: !0 - }) - ), - _react2.default.createElement( - 'div', - { style: styles.swatch }, - _react2.default.createElement(_SliderSwatch2.default, { - hsl: hsl, - offset: '.65', - active: Math.round(100 * hsl.l) / 100 == 0.65 && Math.round(100 * hsl.s) / 100 == 0.5, - onClick: onClick - }) - ), - _react2.default.createElement( - 'div', - { style: styles.swatch }, - _react2.default.createElement(_SliderSwatch2.default, { - hsl: hsl, - offset: '.50', - active: Math.round(100 * hsl.l) / 100 == 0.5 && Math.round(100 * hsl.s) / 100 == 0.5, - onClick: onClick - }) - ), - _react2.default.createElement( - 'div', - { style: styles.swatch }, - _react2.default.createElement(_SliderSwatch2.default, { - hsl: hsl, - offset: '.35', - active: Math.round(100 * hsl.l) / 100 == 0.35 && Math.round(100 * hsl.s) / 100 == 0.5, - onClick: onClick - }) - ), - _react2.default.createElement( - 'div', - { style: styles.swatch }, - _react2.default.createElement(_SliderSwatch2.default, { - hsl: hsl, - offset: '.20', - active: Math.round(100 * hsl.l) / 100 == 0.2 && Math.round(100 * hsl.s) / 100 == 0.5, - onClick: onClick, - last: !0 - }) - ), - _react2.default.createElement('div', { style: styles.clear }) - ); - }); - exports.default = SliderSwatches; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.SliderSwatch = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var SliderSwatch = (exports.SliderSwatch = function SliderSwatch(_ref) { - var hsl = _ref.hsl, - offset = _ref.offset, - _ref$onClick = _ref.onClick, - onClick = void 0 === _ref$onClick ? function() {} : _ref$onClick, - active = _ref.active, - first = _ref.first, - last = _ref.last, - styles = (0, _reactcss2.default)( - { - default: { - swatch: { - height: '12px', - background: 'hsl(' + hsl.h + ', 50%, ' + 100 * offset + '%)', - cursor: 'pointer' - } - }, - first: { swatch: { borderRadius: '2px 0 0 2px' } }, - last: { swatch: { borderRadius: '0 2px 2px 0' } }, - active: { swatch: { transform: 'scaleY(1.8)', borderRadius: '3.6px/2px' } } - }, - { active: active, first: first, last: last } - ); - return _react2.default.createElement('div', { - style: styles.swatch, - onClick: function handleClick(e) { - return onClick({ h: hsl.h, s: 0.5, l: offset, source: 'hsl' }, e); - } - }); - }); - exports.default = SliderSwatch; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.SliderPointer = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var SliderPointer = (exports.SliderPointer = function SliderPointer() { - var styles = (0, _reactcss2.default)({ - default: { - picker: { - width: '14px', - height: '14px', - borderRadius: '6px', - transform: 'translate(-7px, -1px)', - backgroundColor: 'rgb(248, 248, 248)', - boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)' - } - } - }); - return _react2.default.createElement('div', { style: styles.picker }); - }); - exports.default = SliderPointer; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.Swatches = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _map2 = _interopRequireDefault(__webpack_require__(124)), - _color2 = _interopRequireDefault(__webpack_require__(109)), - material = (function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) return obj; - var newObj = {}; - if (null != obj) - for (var key in obj) - Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); - return (newObj.default = obj), newObj; - })(__webpack_require__(676)), - _common = __webpack_require__(23), - _SwatchesGroup2 = _interopRequireDefault(__webpack_require__(1109)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Swatches = (exports.Swatches = function Swatches(_ref) { - var width = _ref.width, - height = _ref.height, - onChange = _ref.onChange, - onSwatchHover = _ref.onSwatchHover, - colors = _ref.colors, - hex = _ref.hex, - _ref$className = _ref.className, - className = void 0 === _ref$className ? '' : _ref$className, - styles = (0, _reactcss2.default)({ - default: { - picker: { width: width, height: height }, - overflow: { height: height, overflowY: 'scroll' }, - body: { padding: '16px 0 6px 16px' }, - clear: { clear: 'both' } - } - }), - handleChange = function handleChange(data, e) { - _color2.default.isValidHex(data) && onChange({ hex: data, source: 'hex' }, e); - }; - return _react2.default.createElement( - 'div', - { style: styles.picker, className: 'swatches-picker ' + className }, - _react2.default.createElement( - _common.Raised, - null, - _react2.default.createElement( - 'div', - { style: styles.overflow }, - _react2.default.createElement( - 'div', - { style: styles.body }, - (0, _map2.default)(colors, function(group) { - return _react2.default.createElement(_SwatchesGroup2.default, { - key: group.toString(), - group: group, - active: hex, - onClick: handleChange, - onSwatchHover: onSwatchHover - }); - }), - _react2.default.createElement('div', { style: styles.clear }) - ) - ) - ) - ); - }); - (Swatches.propTypes = { - width: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.number - ]), - height: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.number - ]), - colors: _propTypes2.default.arrayOf(_propTypes2.default.arrayOf(_propTypes2.default.string)) - }), - (Swatches.defaultProps = { - width: 320, - height: 240, - colors: [ - [ - material.red[900], - material.red[700], - material.red[500], - material.red[300], - material.red[100] - ], - [ - material.pink[900], - material.pink[700], - material.pink[500], - material.pink[300], - material.pink[100] - ], - [ - material.purple[900], - material.purple[700], - material.purple[500], - material.purple[300], - material.purple[100] - ], - [ - material.deepPurple[900], - material.deepPurple[700], - material.deepPurple[500], - material.deepPurple[300], - material.deepPurple[100] - ], - [ - material.indigo[900], - material.indigo[700], - material.indigo[500], - material.indigo[300], - material.indigo[100] - ], - [ - material.blue[900], - material.blue[700], - material.blue[500], - material.blue[300], - material.blue[100] - ], - [ - material.lightBlue[900], - material.lightBlue[700], - material.lightBlue[500], - material.lightBlue[300], - material.lightBlue[100] - ], - [ - material.cyan[900], - material.cyan[700], - material.cyan[500], - material.cyan[300], - material.cyan[100] - ], - [ - material.teal[900], - material.teal[700], - material.teal[500], - material.teal[300], - material.teal[100] - ], - [ - '#194D33', - material.green[700], - material.green[500], - material.green[300], - material.green[100] - ], - [ - material.lightGreen[900], - material.lightGreen[700], - material.lightGreen[500], - material.lightGreen[300], - material.lightGreen[100] - ], - [ - material.lime[900], - material.lime[700], - material.lime[500], - material.lime[300], - material.lime[100] - ], - [ - material.yellow[900], - material.yellow[700], - material.yellow[500], - material.yellow[300], - material.yellow[100] - ], - [ - material.amber[900], - material.amber[700], - material.amber[500], - material.amber[300], - material.amber[100] - ], - [ - material.orange[900], - material.orange[700], - material.orange[500], - material.orange[300], - material.orange[100] - ], - [ - material.deepOrange[900], - material.deepOrange[700], - material.deepOrange[500], - material.deepOrange[300], - material.deepOrange[100] - ], - [ - material.brown[900], - material.brown[700], - material.brown[500], - material.brown[300], - material.brown[100] - ], - [ - material.blueGrey[900], - material.blueGrey[700], - material.blueGrey[500], - material.blueGrey[300], - material.blueGrey[100] - ], - ['#000000', '#525252', '#969696', '#D9D9D9', '#FFFFFF'] - ] - }), - (exports.default = (0, _common.ColorWrap)(Swatches)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.SwatchesGroup = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _map2 = _interopRequireDefault(__webpack_require__(124)), - _SwatchesColor2 = _interopRequireDefault(__webpack_require__(1110)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var SwatchesGroup = (exports.SwatchesGroup = function SwatchesGroup(_ref) { - var onClick = _ref.onClick, - onSwatchHover = _ref.onSwatchHover, - group = _ref.group, - active = _ref.active, - styles = (0, _reactcss2.default)({ - default: { - group: { paddingBottom: '10px', width: '40px', float: 'left', marginRight: '10px' } - } - }); - return _react2.default.createElement( - 'div', - { style: styles.group }, - (0, _map2.default)(group, function(color, i) { - return _react2.default.createElement(_SwatchesColor2.default, { - key: color, - color: color, - active: color.toLowerCase() === active, - first: 0 === i, - last: i === group.length - 1, - onClick: onClick, - onSwatchHover: onSwatchHover - }); - }) - ); - }); - exports.default = SwatchesGroup; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.SwatchesColor = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _common = __webpack_require__(23); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var SwatchesColor = (exports.SwatchesColor = function SwatchesColor(_ref) { - var color = _ref.color, - _ref$onClick = _ref.onClick, - onClick = void 0 === _ref$onClick ? function() {} : _ref$onClick, - onSwatchHover = _ref.onSwatchHover, - first = _ref.first, - last = _ref.last, - active = _ref.active, - styles = (0, _reactcss2.default)( - { - default: { - color: { - width: '40px', - height: '24px', - cursor: 'pointer', - background: color, - marginBottom: '1px' - }, - check: { fill: '#fff', marginLeft: '8px', display: 'none' } - }, - first: { color: { overflow: 'hidden', borderRadius: '2px 2px 0 0' } }, - last: { color: { overflow: 'hidden', borderRadius: '0 0 2px 2px' } }, - active: { check: { display: 'block' } }, - 'color-#FFFFFF': { - color: { boxShadow: 'inset 0 0 0 1px #ddd' }, - check: { fill: '#333' } - }, - transparent: { check: { fill: '#333' } } - }, - { - first: first, - last: last, - active: active, - 'color-#FFFFFF': '#FFFFFF' === color, - transparent: 'transparent' === color - } - ); - return _react2.default.createElement( - _common.Swatch, - { - color: color, - style: styles.color, - onClick: onClick, - onHover: onSwatchHover, - focusStyle: { boxShadow: '0 0 4px ' + color } - }, - _react2.default.createElement( - 'div', - { style: styles.check }, - _react2.default.createElement( - 'svg', - { style: { width: '24px', height: '24px' }, viewBox: '0 0 24 24' }, - _react2.default.createElement('path', { - d: 'M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z' - }) - ) - ) - ); - }); - exports.default = SwatchesColor; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.Twitter = void 0); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _reactcss2 = _interopRequireDefault(__webpack_require__(14)), - _map2 = _interopRequireDefault(__webpack_require__(124)), - _color2 = _interopRequireDefault(__webpack_require__(109)), - _common = __webpack_require__(23); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Twitter = (exports.Twitter = function Twitter(_ref) { - var onChange = _ref.onChange, - onSwatchHover = _ref.onSwatchHover, - hex = _ref.hex, - colors = _ref.colors, - width = _ref.width, - triangle = _ref.triangle, - _ref$className = _ref.className, - className = void 0 === _ref$className ? '' : _ref$className, - styles = (0, _reactcss2.default)( - { - default: { - card: { - width: width, - background: '#fff', - border: '0 solid rgba(0,0,0,0.25)', - boxShadow: '0 1px 4px rgba(0,0,0,0.25)', - borderRadius: '4px', - position: 'relative' - }, - body: { padding: '15px 9px 9px 15px' }, - label: { fontSize: '18px', color: '#fff' }, - triangle: { - width: '0px', - height: '0px', - borderStyle: 'solid', - borderWidth: '0 9px 10px 9px', - borderColor: 'transparent transparent #fff transparent', - position: 'absolute' - }, - triangleShadow: { - width: '0px', - height: '0px', - borderStyle: 'solid', - borderWidth: '0 9px 10px 9px', - borderColor: 'transparent transparent rgba(0,0,0,.1) transparent', - position: 'absolute' - }, - hash: { - background: '#F0F0F0', - height: '30px', - width: '30px', - borderRadius: '4px 0 0 4px', - float: 'left', - color: '#98A1A4', - display: 'flex', - alignItems: 'center', - justifyContent: 'center' - }, - input: { - width: '100px', - fontSize: '14px', - color: '#666', - border: '0px', - outline: 'none', - height: '28px', - boxShadow: 'inset 0 0 0 1px #F0F0F0', - boxSizing: 'content-box', - borderRadius: '0 4px 4px 0', - float: 'left', - paddingLeft: '8px' - }, - swatch: { - width: '30px', - height: '30px', - float: 'left', - borderRadius: '4px', - margin: '0 6px 6px 0' - }, - clear: { clear: 'both' } - }, - 'hide-triangle': { triangle: { display: 'none' }, triangleShadow: { display: 'none' } }, - 'top-left-triangle': { - triangle: { top: '-10px', left: '12px' }, - triangleShadow: { top: '-11px', left: '12px' } - }, - 'top-right-triangle': { - triangle: { top: '-10px', right: '12px' }, - triangleShadow: { top: '-11px', right: '12px' } - } - }, - { - 'hide-triangle': 'hide' === triangle, - 'top-left-triangle': 'top-left' === triangle, - 'top-right-triangle': 'top-right' === triangle - } - ), - handleChange = function handleChange(hexcode, e) { - _color2.default.isValidHex(hexcode) && onChange({ hex: hexcode, source: 'hex' }, e); - }; - return _react2.default.createElement( - 'div', - { style: styles.card, className: 'twitter-picker ' + className }, - _react2.default.createElement('div', { style: styles.triangleShadow }), - _react2.default.createElement('div', { style: styles.triangle }), - _react2.default.createElement( - 'div', - { style: styles.body }, - (0, _map2.default)(colors, function(c, i) { - return _react2.default.createElement(_common.Swatch, { - key: i, - color: c, - hex: c, - style: styles.swatch, - onClick: handleChange, - onHover: onSwatchHover, - focusStyle: { boxShadow: '0 0 4px ' + c } - }); - }), - _react2.default.createElement('div', { style: styles.hash }, '#'), - _react2.default.createElement(_common.EditableInput, { - style: { input: styles.input }, - value: hex.replace('#', ''), - onChange: handleChange - }), - _react2.default.createElement('div', { style: styles.clear }) - ) - ); - }); - (Twitter.propTypes = { - width: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.number - ]), - triangle: _propTypes2.default.oneOf(['hide', 'top-left', 'top-right']), - colors: _propTypes2.default.arrayOf(_propTypes2.default.string) - }), - (Twitter.defaultProps = { - width: 276, - colors: [ - '#FF6900', - '#FCB900', - '#7BDCB5', - '#00D084', - '#8ED1FC', - '#0693E3', - '#ABB8C3', - '#EB144C', - '#F78DA7', - '#9900EF' - ], - triangle: 'top-left' - }), - (exports.default = (0, _common.ColorWrap)(Twitter)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react2 = _interopRequireDefault(__webpack_require__(0)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var styles = { - display: 'table-cell', - boxSizing: 'border-box', - verticalAlign: 'top', - height: 21, - outline: 'none', - border: '1px solid #ececec', - fontSize: '12px', - color: '#555' - }, - BooleanType = (function(_React$Component) { - function BooleanType() { - return ( - (0, _classCallCheck3.default)(this, BooleanType), - (0, _possibleConstructorReturn3.default)( - this, - (BooleanType.__proto__ || (0, _getPrototypeOf2.default)(BooleanType)).apply( - this, - arguments - ) - ) - ); - } - return ( - (0, _inherits3.default)(BooleanType, _React$Component), - (0, _createClass3.default)(BooleanType, [ - { - key: 'render', - value: function render() { - var _this2 = this, - _props = this.props, - knob = _props.knob, - _onChange = _props.onChange; - return _react2.default.createElement('input', { - id: knob.name, - ref: function ref(c) { - _this2.input = c; - }, - style: styles, - type: 'checkbox', - onChange: function onChange() { - return _onChange(_this2.input.checked); - }, - checked: knob.value - }); - } - } - ]), - BooleanType - ); - })(_react2.default.Component); - (BooleanType.defaultProps = { - knob: {}, - onChange: function onChange(value) { - return value; - } - }), - (BooleanType.propTypes = { - knob: _propTypes2.default.shape({ - name: _propTypes2.default.string, - value: _propTypes2.default.bool - }), - onChange: _propTypes2.default.func - }), - (BooleanType.serialize = function(value) { - return String(value); - }), - (BooleanType.deserialize = function(value) { - return 'true' === value; - }), - (exports.default = BooleanType); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _stringify2 = _interopRequireDefault(__webpack_require__(123)), - _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactTextareaAutosize2 = _interopRequireDefault(__webpack_require__(594)), - _deepEqual2 = _interopRequireDefault(__webpack_require__(146)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var styles = { - display: 'table-cell', - boxSizing: 'border-box', - verticalAlign: 'middle', - width: '100%', - outline: 'none', - border: '1px solid #f7f4f4', - borderRadius: 2, - fontSize: 11, - padding: '5px', - color: '#555', - fontFamily: 'monospace' - }, - ObjectType = (function(_React$Component) { - function ObjectType() { - var _ref; - (0, _classCallCheck3.default)(this, ObjectType); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) - args[_key] = arguments[_key]; - var _this = (0, _possibleConstructorReturn3.default)( - this, - (_ref = ObjectType.__proto__ || (0, _getPrototypeOf2.default)(ObjectType)).call.apply( - _ref, - [this].concat(args) - ) - ); - return (_this.state = {}), _this; - } - return ( - (0, _inherits3.default)(ObjectType, _React$Component), - (0, _createClass3.default)(ObjectType, [ - { - key: 'getJSONString', - value: function getJSONString() { - var _state = this.state, - json = _state.json, - jsonString = _state.jsonString, - knob = this.props.knob; - return this.failed - ? jsonString - : (0, _deepEqual2.default)(json, knob.value) - ? jsonString - : (0, _stringify2.default)(knob.value, null, 2); - } - }, - { - key: 'handleChange', - value: function handleChange(e) { - var onChange = this.props.onChange, - newState = { jsonString: e.target.value }; - try { - (newState.json = JSON.parse(e.target.value.trim())), - onChange(newState.json), - (this.failed = !1); - } catch (err) { - this.failed = !0; - } - this.setState(newState); - } - }, - { - key: 'render', - value: function render() { - var _this2 = this, - knob = this.props.knob, - jsonString = this.getJSONString(), - extraStyle = {}; - return ( - this.failed && - ((extraStyle.border = '1px solid #fadddd'), - (extraStyle.backgroundColor = '#fff5f5')), - _react2.default.createElement(_reactTextareaAutosize2.default, { - id: knob.name, - style: (0, _extends3.default)({}, styles, extraStyle), - value: jsonString, - onChange: function onChange(e) { - return _this2.handleChange(e); - } - }) - ); - } - } - ]), - ObjectType - ); - })(_react2.default.Component); - (ObjectType.defaultProps = { - knob: {}, - onChange: function onChange(value) { - return value; - } - }), - (ObjectType.propTypes = { - knob: _propTypes2.default.shape({ - name: _propTypes2.default.string, - value: _propTypes2.default.oneOfType([ - _propTypes2.default.object, - _propTypes2.default.array - ]) - }), - onChange: _propTypes2.default.func - }), - (ObjectType.serialize = function(object) { - return (0, _stringify2.default)(object); - }), - (ObjectType.deserialize = function(value) { - return value ? JSON.parse(value) : {}; - }), - (exports.default = ObjectType); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _keys2 = _interopRequireDefault(__webpack_require__(34)), - _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react2 = _interopRequireDefault(__webpack_require__(0)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var styles = { - display: 'table-cell', - boxSizing: 'border-box', - verticalAlign: 'middle', - height: '26px', - width: '100%', - outline: 'none', - border: '1px solid #f7f4f4', - borderRadius: 2, - fontSize: 11, - padding: '5px', - color: '#555' - }, - SelectType = (function(_React$Component) { - function SelectType() { - return ( - (0, _classCallCheck3.default)(this, SelectType), - (0, _possibleConstructorReturn3.default)( - this, - (SelectType.__proto__ || (0, _getPrototypeOf2.default)(SelectType)).apply( - this, - arguments - ) - ) - ); - } - return ( - (0, _inherits3.default)(SelectType, _React$Component), - (0, _createClass3.default)(SelectType, [ - { - key: '_makeOpt', - value: function _makeOpt(key, val) { - var opts = { key: key, value: key }; - return _react2.default.createElement('option', opts, val); - } - }, - { - key: '_options', - value: function _options(values) { - var _this2 = this; - return Array.isArray(values) - ? values.map(function(val) { - return _this2._makeOpt(val, val); - }) - : (0, _keys2.default)(values).map(function(key) { - return _this2._makeOpt(key, values[key]); - }); - } - }, - { - key: 'render', - value: function render() { - var _this3 = this, - _props = this.props, - knob = _props.knob, - _onChange = _props.onChange; - return _react2.default.createElement( - 'select', - { - id: knob.name, - ref: function ref(c) { - _this3.input = c; - }, - style: styles, - value: knob.value, - onChange: function onChange(e) { - return _onChange(e.target.value); - } - }, - this._options(knob.options) - ); - } - } - ]), - SelectType - ); - })(_react2.default.Component); - (SelectType.defaultProps = { - knob: {}, - onChange: function onChange(value) { - return value; - } - }), - (SelectType.propTypes = { - knob: _propTypes2.default.shape({ - name: _propTypes2.default.string, - value: _propTypes2.default.string - }), - onChange: _propTypes2.default.func - }), - (SelectType.serialize = function(value) { - return value; - }), - (SelectType.deserialize = function(value) { - return value; - }), - (exports.default = SelectType); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _toConsumableArray3 = _interopRequireDefault(__webpack_require__(45)), - _keys2 = _interopRequireDefault(__webpack_require__(34)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactTextareaAutosize2 = _interopRequireDefault(__webpack_require__(594)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var styles = { - display: 'table-cell', - boxSizing: 'border-box', - verticalAlign: 'middle', - height: '26px', - width: '100%', - outline: 'none', - border: '1px solid #f7f4f4', - borderRadius: 2, - fontSize: 11, - padding: '5px', - color: '#555' - }; - var ArrayType = function ArrayType(_ref) { - var knob = _ref.knob, - _onChange = _ref.onChange; - return _react2.default.createElement(_reactTextareaAutosize2.default, { - id: knob.name, - style: styles, - value: knob.value.join(knob.separator), - onChange: function onChange(e) { - return _onChange( - (function formatArray(value, separator) { - return '' === value ? [] : value.split(separator); - })(e.target.value, knob.separator) - ); - } - }); - }; - (ArrayType.defaultProps = { - knob: {}, - onChange: function onChange(value) { - return value; - } - }), - (ArrayType.propTypes = { - knob: _propTypes2.default.shape({ - name: _propTypes2.default.string, - value: _propTypes2.default.array - }), - onChange: _propTypes2.default.func - }), - (ArrayType.serialize = function(value) { - return value; - }), - (ArrayType.deserialize = function(value) { - return Array.isArray(value) - ? value - : (0, _keys2.default)(value) - .sort() - .reduce(function(array, key) { - return [].concat((0, _toConsumableArray3.default)(array), [value[key]]); - }, []); - }), - (exports.default = ArrayType); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactDatetime2 = _interopRequireDefault(__webpack_require__(1117)), - _insertCss2 = _interopRequireDefault(__webpack_require__(1124)), - _styles2 = _interopRequireDefault(__webpack_require__(1125)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - (0, _insertCss2.default)(_styles2.default), - (0, _insertCss2.default)( - '\n .rdt input {\n outline: 0;\n width: 100%;\n border: 1px solid #f7f4f4;\n border-radius: 2px;\n font-size: 11px;\n padding: 5px;\n color: #555;\n display: table-cell;\n box-sizing: border-box;\n }\n' - ); - var DateType = function DateType(_ref) { - var knob = _ref.knob, - _onChange = _ref.onChange; - return _react2.default.createElement( - 'div', - null, - _react2.default.createElement(_reactDatetime2.default, { - id: knob.name, - value: knob.value ? new Date(knob.value) : null, - type: 'date', - onChange: function onChange(date) { - return _onChange(date.valueOf()); - } - }) - ); - }; - (DateType.defaultProps = { - knob: {}, - onChange: function onChange(value) { - return value; - } - }), - (DateType.propTypes = { - knob: _propTypes2.default.shape({ - name: _propTypes2.default.string, - value: _propTypes2.default.number - }), - onChange: _propTypes2.default.func - }), - (DateType.serialize = function(value) { - return String(value); - }), - (DateType.deserialize = function(value) { - return parseFloat(value); - }), - (exports.default = DateType); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var assign = __webpack_require__(677), - PropTypes = __webpack_require__(2), - createClass = __webpack_require__(180), - moment = __webpack_require__(1), - React = __webpack_require__(0), - CalendarContainer = __webpack_require__(1119), - TYPES = PropTypes, - Datetime = createClass({ - propTypes: { - onFocus: TYPES.func, - onBlur: TYPES.func, - onChange: TYPES.func, - onViewModeChange: TYPES.func, - locale: TYPES.string, - utc: TYPES.bool, - input: TYPES.bool, - inputProps: TYPES.object, - timeConstraints: TYPES.object, - viewMode: TYPES.oneOf(['years', 'months', 'days', 'time']), - isValidDate: TYPES.func, - open: TYPES.bool, - strictParsing: TYPES.bool, - closeOnSelect: TYPES.bool, - closeOnTab: TYPES.bool - }, - getDefaultProps: function() { - var nof = function() {}; - return { - className: '', - defaultValue: '', - inputProps: {}, - input: !0, - onFocus: nof, - onBlur: nof, - onChange: nof, - onViewModeChange: nof, - timeFormat: !0, - timeConstraints: {}, - dateFormat: !0, - strictParsing: !0, - closeOnSelect: !1, - closeOnTab: !0, - utc: !1 - }; - }, - getInitialState: function() { - var state = this.getStateFromProps(this.props); - return ( - void 0 === state.open && (state.open = !this.props.input), - (state.currentView = this.props.dateFormat - ? this.props.viewMode || state.updateOn || 'days' - : 'time'), - state - ); - }, - getStateFromProps: function(props) { - var selectedDate, - viewDate, - updateOn, - inputValue, - formats = this.getFormats(props), - date = props.value || props.defaultValue; - return ( - date && 'string' == typeof date - ? (selectedDate = this.localMoment(date, formats.datetime)) - : date && (selectedDate = this.localMoment(date)), - selectedDate && !selectedDate.isValid() && (selectedDate = null), - (viewDate = selectedDate - ? selectedDate.clone().startOf('month') - : this.localMoment().startOf('month')), - (updateOn = this.getUpdateOn(formats)), - (inputValue = selectedDate - ? selectedDate.format(formats.datetime) - : date.isValid && !date.isValid() ? '' : date || ''), - { - updateOn: updateOn, - inputFormat: formats.datetime, - viewDate: viewDate, - selectedDate: selectedDate, - inputValue: inputValue, - open: props.open - } - ); - }, - getUpdateOn: function(formats) { - return formats.date.match(/[lLD]/) - ? 'days' - : -1 !== formats.date.indexOf('M') - ? 'months' - : -1 !== formats.date.indexOf('Y') ? 'years' : 'days'; - }, - getFormats: function(props) { - var formats = { date: props.dateFormat || '', time: props.timeFormat || '' }, - locale = this.localMoment(props.date, null, props).localeData(); - return ( - !0 === formats.date - ? (formats.date = locale.longDateFormat('L')) - : 'days' !== this.getUpdateOn(formats) && (formats.time = ''), - !0 === formats.time && (formats.time = locale.longDateFormat('LT')), - (formats.datetime = - formats.date && formats.time - ? formats.date + ' ' + formats.time - : formats.date || formats.time), - formats - ); - }, - componentWillReceiveProps: function(nextProps) { - var formats = this.getFormats(nextProps), - updatedState = {}; - if ( - ((nextProps.value === this.props.value && - formats.datetime === this.getFormats(this.props).datetime) || - (updatedState = this.getStateFromProps(nextProps)), - void 0 === updatedState.open && - (void 0 !== nextProps.open - ? (updatedState.open = nextProps.open) - : this.props.closeOnSelect && 'time' !== this.state.currentView - ? (updatedState.open = !1) - : (updatedState.open = this.state.open)), - nextProps.viewMode !== this.props.viewMode && - (updatedState.currentView = nextProps.viewMode), - nextProps.locale !== this.props.locale) - ) { - if (this.state.viewDate) { - var updatedViewDate = this.state.viewDate.clone().locale(nextProps.locale); - updatedState.viewDate = updatedViewDate; - } - if (this.state.selectedDate) { - var updatedSelectedDate = this.state.selectedDate.clone().locale(nextProps.locale); - (updatedState.selectedDate = updatedSelectedDate), - (updatedState.inputValue = updatedSelectedDate.format(formats.datetime)); - } - } - nextProps.utc !== this.props.utc && - (nextProps.utc - ? (this.state.viewDate && (updatedState.viewDate = this.state.viewDate.clone().utc()), - this.state.selectedDate && - ((updatedState.selectedDate = this.state.selectedDate.clone().utc()), - (updatedState.inputValue = updatedState.selectedDate.format(formats.datetime)))) - : (this.state.viewDate && - (updatedState.viewDate = this.state.viewDate.clone().local()), - this.state.selectedDate && - ((updatedState.selectedDate = this.state.selectedDate.clone().local()), - (updatedState.inputValue = updatedState.selectedDate.format(formats.datetime))))), - this.setState(updatedState); - }, - onInputChange: function(e) { - var value = null === e.target ? e : e.target.value, - localMoment = this.localMoment(value, this.state.inputFormat), - update = { inputValue: value }; - return ( - localMoment.isValid() && !this.props.value - ? ((update.selectedDate = localMoment), - (update.viewDate = localMoment.clone().startOf('month'))) - : (update.selectedDate = null), - this.setState(update, function() { - return this.props.onChange( - localMoment.isValid() ? localMoment : this.state.inputValue - ); - }) - ); - }, - onInputKey: function(e) { - 9 === e.which && this.props.closeOnTab && this.closeCalendar(); - }, - showView: function(view) { - var me = this; - return function() { - me.state.currentView !== view && me.props.onViewModeChange(view), - me.setState({ currentView: view }); - }; - }, - setDate: function(type) { - var me = this, - nextViews = { month: 'days', year: 'months' }; - return function(e) { - me.setState({ - viewDate: me.state.viewDate - .clone() - [type](parseInt(e.target.getAttribute('data-value'), 10)) - .startOf(type), - currentView: nextViews[type] - }), - me.props.onViewModeChange(nextViews[type]); - }; - }, - addTime: function(amount, type, toSelected) { - return this.updateTime('add', amount, type, toSelected); - }, - subtractTime: function(amount, type, toSelected) { - return this.updateTime('subtract', amount, type, toSelected); - }, - updateTime: function(op, amount, type, toSelected) { - var me = this; - return function() { - var update = {}, - date = toSelected ? 'selectedDate' : 'viewDate'; - (update[date] = me.state[date].clone()[op](amount, type)), me.setState(update); - }; - }, - allowedSetTime: ['hours', 'minutes', 'seconds', 'milliseconds'], - setTime: function(type, value) { - var nextType, - index = this.allowedSetTime.indexOf(type) + 1, - state = this.state, - date = (state.selectedDate || state.viewDate).clone(); - for (date[type](value); index < this.allowedSetTime.length; index++) - date[(nextType = this.allowedSetTime[index])](date[nextType]()); - this.props.value || - this.setState({ selectedDate: date, inputValue: date.format(state.inputFormat) }), - this.props.onChange(date); - }, - updateSelectedDate: function(e, close) { - var date, - target = e.target, - modifier = 0, - viewDate = this.state.viewDate, - currentDate = this.state.selectedDate || viewDate; - if ( - (-1 !== target.className.indexOf('rdtDay') - ? (-1 !== target.className.indexOf('rdtNew') - ? (modifier = 1) - : -1 !== target.className.indexOf('rdtOld') && (modifier = -1), - (date = viewDate - .clone() - .month(viewDate.month() + modifier) - .date(parseInt(target.getAttribute('data-value'), 10)))) - : -1 !== target.className.indexOf('rdtMonth') - ? (date = viewDate - .clone() - .month(parseInt(target.getAttribute('data-value'), 10)) - .date(currentDate.date())) - : -1 !== target.className.indexOf('rdtYear') && - (date = viewDate - .clone() - .month(currentDate.month()) - .date(currentDate.date()) - .year(parseInt(target.getAttribute('data-value'), 10))), - date - .hours(currentDate.hours()) - .minutes(currentDate.minutes()) - .seconds(currentDate.seconds()) - .milliseconds(currentDate.milliseconds()), - this.props.value) - ) - this.props.closeOnSelect && close && this.closeCalendar(); - else { - var open = !(this.props.closeOnSelect && close); - open || this.props.onBlur(date), - this.setState({ - selectedDate: date, - viewDate: date.clone().startOf('month'), - inputValue: date.format(this.state.inputFormat), - open: open - }); - } - this.props.onChange(date); - }, - openCalendar: function(e) { - this.state.open || - this.setState({ open: !0 }, function() { - this.props.onFocus(e); - }); - }, - closeCalendar: function() { - this.setState({ open: !1 }, function() { - this.props.onBlur(this.state.selectedDate || this.state.inputValue); - }); - }, - handleClickOutside: function() { - this.props.input && - this.state.open && - !this.props.open && - this.setState({ open: !1 }, function() { - this.props.onBlur(this.state.selectedDate || this.state.inputValue); - }); - }, - localMoment: function(date, format, props) { - var m = ((props = props || this.props).utc ? moment.utc : moment)( - date, - format, - props.strictParsing - ); - return props.locale && m.locale(props.locale), m; - }, - componentProps: { - fromProps: [ - 'value', - 'isValidDate', - 'renderDay', - 'renderMonth', - 'renderYear', - 'timeConstraints' - ], - fromState: ['viewDate', 'selectedDate', 'updateOn'], - fromThis: [ - 'setDate', - 'setTime', - 'showView', - 'addTime', - 'subtractTime', - 'updateSelectedDate', - 'localMoment', - 'handleClickOutside' - ] - }, - getComponentProps: function() { - var me = this, - formats = this.getFormats(this.props), - props = { dateFormat: formats.date, timeFormat: formats.time }; - return ( - this.componentProps.fromProps.forEach(function(name) { - props[name] = me.props[name]; - }), - this.componentProps.fromState.forEach(function(name) { - props[name] = me.state[name]; - }), - this.componentProps.fromThis.forEach(function(name) { - props[name] = me[name]; - }), - props - ); - }, - render: function() { - var className = - 'rdt' + - (this.props.className - ? Array.isArray(this.props.className) - ? ' ' + this.props.className.join(' ') - : ' ' + this.props.className - : ''), - children = []; - if (this.props.input) { - var finalInputProps = assign( - { - type: 'text', - className: 'form-control', - onClick: this.openCalendar, - onFocus: this.openCalendar, - onChange: this.onInputChange, - onKeyDown: this.onInputKey, - value: this.state.inputValue - }, - this.props.inputProps - ); - children = this.props.renderInput - ? [ - React.createElement( - 'div', - { key: 'i' }, - this.props.renderInput(finalInputProps, this.openCalendar) - ) - ] - : [React.createElement('input', assign({ key: 'i' }, finalInputProps))]; - } else className += ' rdtStatic'; - return ( - this.state.open && (className += ' rdtOpen'), - React.createElement( - 'div', - { className: className }, - children.concat( - React.createElement( - 'div', - { key: 'dt', className: 'rdtPicker' }, - React.createElement(CalendarContainer, { - view: this.state.currentView, - viewProps: this.getComponentProps(), - onClickOutside: this.handleClickOutside - }) - ) - ) - ) - ); - } - }); - (Datetime.moment = moment), (module.exports = Datetime); - }, - function(module, exports, __webpack_require__) { - var map = { - './af': 678, - './af.js': 678, - './ar': 679, - './ar-dz': 680, - './ar-dz.js': 680, - './ar-kw': 681, - './ar-kw.js': 681, - './ar-ly': 682, - './ar-ly.js': 682, - './ar-ma': 683, - './ar-ma.js': 683, - './ar-sa': 684, - './ar-sa.js': 684, - './ar-tn': 685, - './ar-tn.js': 685, - './ar.js': 679, - './az': 686, - './az.js': 686, - './be': 687, - './be.js': 687, - './bg': 688, - './bg.js': 688, - './bm': 689, - './bm.js': 689, - './bn': 690, - './bn.js': 690, - './bo': 691, - './bo.js': 691, - './br': 692, - './br.js': 692, - './bs': 693, - './bs.js': 693, - './ca': 694, - './ca.js': 694, - './cs': 695, - './cs.js': 695, - './cv': 696, - './cv.js': 696, - './cy': 697, - './cy.js': 697, - './da': 698, - './da.js': 698, - './de': 699, - './de-at': 700, - './de-at.js': 700, - './de-ch': 701, - './de-ch.js': 701, - './de.js': 699, - './dv': 702, - './dv.js': 702, - './el': 703, - './el.js': 703, - './en-au': 704, - './en-au.js': 704, - './en-ca': 705, - './en-ca.js': 705, - './en-gb': 706, - './en-gb.js': 706, - './en-ie': 707, - './en-ie.js': 707, - './en-nz': 708, - './en-nz.js': 708, - './eo': 709, - './eo.js': 709, - './es': 710, - './es-do': 711, - './es-do.js': 711, - './es-us': 712, - './es-us.js': 712, - './es.js': 710, - './et': 713, - './et.js': 713, - './eu': 714, - './eu.js': 714, - './fa': 715, - './fa.js': 715, - './fi': 716, - './fi.js': 716, - './fo': 717, - './fo.js': 717, - './fr': 718, - './fr-ca': 719, - './fr-ca.js': 719, - './fr-ch': 720, - './fr-ch.js': 720, - './fr.js': 718, - './fy': 721, - './fy.js': 721, - './gd': 722, - './gd.js': 722, - './gl': 723, - './gl.js': 723, - './gom-latn': 724, - './gom-latn.js': 724, - './gu': 725, - './gu.js': 725, - './he': 726, - './he.js': 726, - './hi': 727, - './hi.js': 727, - './hr': 728, - './hr.js': 728, - './hu': 729, - './hu.js': 729, - './hy-am': 730, - './hy-am.js': 730, - './id': 731, - './id.js': 731, - './is': 732, - './is.js': 732, - './it': 733, - './it.js': 733, - './ja': 734, - './ja.js': 734, - './jv': 735, - './jv.js': 735, - './ka': 736, - './ka.js': 736, - './kk': 737, - './kk.js': 737, - './km': 738, - './km.js': 738, - './kn': 739, - './kn.js': 739, - './ko': 740, - './ko.js': 740, - './ky': 741, - './ky.js': 741, - './lb': 742, - './lb.js': 742, - './lo': 743, - './lo.js': 743, - './lt': 744, - './lt.js': 744, - './lv': 745, - './lv.js': 745, - './me': 746, - './me.js': 746, - './mi': 747, - './mi.js': 747, - './mk': 748, - './mk.js': 748, - './ml': 749, - './ml.js': 749, - './mr': 750, - './mr.js': 750, - './ms': 751, - './ms-my': 752, - './ms-my.js': 752, - './ms.js': 751, - './mt': 753, - './mt.js': 753, - './my': 754, - './my.js': 754, - './nb': 755, - './nb.js': 755, - './ne': 756, - './ne.js': 756, - './nl': 757, - './nl-be': 758, - './nl-be.js': 758, - './nl.js': 757, - './nn': 759, - './nn.js': 759, - './pa-in': 760, - './pa-in.js': 760, - './pl': 761, - './pl.js': 761, - './pt': 762, - './pt-br': 763, - './pt-br.js': 763, - './pt.js': 762, - './ro': 764, - './ro.js': 764, - './ru': 765, - './ru.js': 765, - './sd': 766, - './sd.js': 766, - './se': 767, - './se.js': 767, - './si': 768, - './si.js': 768, - './sk': 769, - './sk.js': 769, - './sl': 770, - './sl.js': 770, - './sq': 771, - './sq.js': 771, - './sr': 772, - './sr-cyrl': 773, - './sr-cyrl.js': 773, - './sr.js': 772, - './ss': 774, - './ss.js': 774, - './sv': 775, - './sv.js': 775, - './sw': 776, - './sw.js': 776, - './ta': 777, - './ta.js': 777, - './te': 778, - './te.js': 778, - './tet': 779, - './tet.js': 779, - './th': 780, - './th.js': 780, - './tl-ph': 781, - './tl-ph.js': 781, - './tlh': 782, - './tlh.js': 782, - './tr': 783, - './tr.js': 783, - './tzl': 784, - './tzl.js': 784, - './tzm': 785, - './tzm-latn': 786, - './tzm-latn.js': 786, - './tzm.js': 785, - './uk': 787, - './uk.js': 787, - './ur': 788, - './ur.js': 788, - './uz': 789, - './uz-latn': 790, - './uz-latn.js': 790, - './uz.js': 789, - './vi': 791, - './vi.js': 791, - './x-pseudo': 792, - './x-pseudo.js': 792, - './yo': 793, - './yo.js': 793, - './zh-cn': 794, - './zh-cn.js': 794, - './zh-hk': 795, - './zh-hk.js': 795, - './zh-tw': 796, - './zh-tw.js': 796 - }; - function webpackContext(req) { - return __webpack_require__(webpackContextResolve(req)); - } - function webpackContextResolve(req) { - var id = map[req]; - if (!(id + 1)) throw new Error("Cannot find module '" + req + "'."); - return id; - } - (webpackContext.keys = function webpackContextKeys() { - return Object.keys(map); - }), - (webpackContext.resolve = webpackContextResolve), - (module.exports = webpackContext), - (webpackContext.id = 1118); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var React = __webpack_require__(0), - CalendarContainer = __webpack_require__(180)({ - viewComponents: { - days: __webpack_require__(1120), - months: __webpack_require__(1121), - years: __webpack_require__(1122), - time: __webpack_require__(1123) - }, - render: function() { - return React.createElement(this.viewComponents[this.props.view], this.props.viewProps); - } - }); - module.exports = CalendarContainer; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var React = __webpack_require__(0), - createClass = __webpack_require__(180), - moment = __webpack_require__(1), - DateTimePickerDays = (0, __webpack_require__(300).default)( - createClass({ - render: function() { - var tableChildren, - footer = this.renderFooter(), - date = this.props.viewDate, - locale = date.localeData(); - return ( - (tableChildren = [ - React.createElement('thead', { key: 'th' }, [ - React.createElement('tr', { key: 'h' }, [ - React.createElement( - 'th', - { - key: 'p', - className: 'rdtPrev', - onClick: this.props.subtractTime(1, 'months') - }, - React.createElement('span', {}, '‹') - ), - React.createElement( - 'th', - { - key: 's', - className: 'rdtSwitch', - onClick: this.props.showView('months'), - colSpan: 5, - 'data-value': this.props.viewDate.month() - }, - locale.months(date) + ' ' + date.year() - ), - React.createElement( - 'th', - { key: 'n', className: 'rdtNext', onClick: this.props.addTime(1, 'months') }, - React.createElement('span', {}, '›') - ) - ]), - React.createElement( - 'tr', - { key: 'd' }, - this.getDaysOfWeek(locale).map(function(day, index) { - return React.createElement('th', { key: day + index, className: 'dow' }, day); - }) - ) - ]), - React.createElement('tbody', { key: 'tb' }, this.renderDays()) - ]), - footer && tableChildren.push(footer), - React.createElement( - 'div', - { className: 'rdtDays' }, - React.createElement('table', {}, tableChildren) - ) - ); - }, - getDaysOfWeek: function(locale) { - var days = locale._weekdaysMin, - first = locale.firstDayOfWeek(), - dow = [], - i = 0; - return ( - days.forEach(function(day) { - dow[(7 + i++ - first) % 7] = day; - }), - dow - ); - }, - renderDays: function() { - var classes, - isDisabled, - dayProps, - currentDate, - date = this.props.viewDate, - selected = this.props.selectedDate && this.props.selectedDate.clone(), - prevMonth = date.clone().subtract(1, 'months'), - currentYear = date.year(), - currentMonth = date.month(), - weeks = [], - days = [], - renderer = this.props.renderDay || this.renderDay, - isValid = this.props.isValidDate || this.alwaysValidDate; - prevMonth.date(prevMonth.daysInMonth()).startOf('week'); - for (var lastDay = prevMonth.clone().add(42, 'd'); prevMonth.isBefore(lastDay); ) - (classes = 'rdtDay'), - (currentDate = prevMonth.clone()), - (prevMonth.year() === currentYear && prevMonth.month() < currentMonth) || - prevMonth.year() < currentYear - ? (classes += ' rdtOld') - : ((prevMonth.year() === currentYear && prevMonth.month() > currentMonth) || - prevMonth.year() > currentYear) && - (classes += ' rdtNew'), - selected && prevMonth.isSame(selected, 'day') && (classes += ' rdtActive'), - prevMonth.isSame(moment(), 'day') && (classes += ' rdtToday'), - (isDisabled = !isValid(currentDate, selected)) && (classes += ' rdtDisabled'), - (dayProps = { - key: prevMonth.format('M_D'), - 'data-value': prevMonth.date(), - className: classes - }), - isDisabled || (dayProps.onClick = this.updateSelectedDate), - days.push(renderer(dayProps, currentDate, selected)), - 7 === days.length && - (weeks.push(React.createElement('tr', { key: prevMonth.format('M_D') }, days)), - (days = [])), - prevMonth.add(1, 'd'); - return weeks; - }, - updateSelectedDate: function(event) { - this.props.updateSelectedDate(event, !0); - }, - renderDay: function(props, currentDate) { - return React.createElement('td', props, currentDate.date()); - }, - renderFooter: function() { - if (!this.props.timeFormat) return ''; - var date = this.props.selectedDate || this.props.viewDate; - return React.createElement( - 'tfoot', - { key: 'tf' }, - React.createElement( - 'tr', - {}, - React.createElement( - 'td', - { onClick: this.props.showView('time'), colSpan: 7, className: 'rdtTimeToggle' }, - date.format(this.props.timeFormat) - ) - ) - ); - }, - alwaysValidDate: function() { - return 1; - }, - handleClickOutside: function() { - this.props.handleClickOutside(); - } - }) - ); - module.exports = DateTimePickerDays; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var React = __webpack_require__(0), - createClass = __webpack_require__(180), - DateTimePickerMonths = (0, __webpack_require__(300).default)( - createClass({ - render: function() { - return React.createElement('div', { className: 'rdtMonths' }, [ - React.createElement( - 'table', - { key: 'a' }, - React.createElement( - 'thead', - {}, - React.createElement('tr', {}, [ - React.createElement( - 'th', - { - key: 'prev', - className: 'rdtPrev', - onClick: this.props.subtractTime(1, 'years') - }, - React.createElement('span', {}, '‹') - ), - React.createElement( - 'th', - { - key: 'year', - className: 'rdtSwitch', - onClick: this.props.showView('years'), - colSpan: 2, - 'data-value': this.props.viewDate.year() - }, - this.props.viewDate.year() - ), - React.createElement( - 'th', - { - key: 'next', - className: 'rdtNext', - onClick: this.props.addTime(1, 'years') - }, - React.createElement('span', {}, '›') - ) - ]) - ) - ), - React.createElement( - 'table', - { key: 'months' }, - React.createElement('tbody', { key: 'b' }, this.renderMonths()) - ) - ]); - }, - renderMonths: function() { - for ( - var classes, - props, - currentMonth, - isDisabled, - noOfDaysInMonth, - date = this.props.selectedDate, - month = this.props.viewDate.month(), - year = this.props.viewDate.year(), - rows = [], - i = 0, - months = [], - renderer = this.props.renderMonth || this.renderMonth, - isValid = this.props.isValidDate || this.alwaysValidDate; - i < 12; - - ) - (classes = 'rdtMonth'), - (noOfDaysInMonth = (currentMonth = this.props.viewDate - .clone() - .set({ year: year, month: i, date: 1 })) - .endOf('month') - .format('D')), - (isDisabled = - void 0 === - Array.from({ length: noOfDaysInMonth }, function(e, i) { - return i + 1; - }).find(function(d) { - var day = currentMonth.clone().set('date', d); - return isValid(day); - })) && (classes += ' rdtDisabled'), - date && i === date.month() && year === date.year() && (classes += ' rdtActive'), - (props = { key: i, 'data-value': i, className: classes }), - isDisabled || - (props.onClick = - 'months' === this.props.updateOn - ? this.updateSelectedMonth - : this.props.setDate('month')), - months.push(renderer(props, i, year, date && date.clone())), - 4 === months.length && - (rows.push(React.createElement('tr', { key: month + '_' + rows.length }, months)), - (months = [])), - i++; - return rows; - }, - updateSelectedMonth: function(event) { - this.props.updateSelectedDate(event); - }, - renderMonth: function(props, month) { - var localMoment = this.props.viewDate, - monthStrFixedLength = localMoment - .localeData() - .monthsShort(localMoment.month(month)) - .substring(0, 3); - return React.createElement( - 'td', - props, - (function capitalize(str) { - return str.charAt(0).toUpperCase() + str.slice(1); - })(monthStrFixedLength) - ); - }, - alwaysValidDate: function() { - return 1; - }, - handleClickOutside: function() { - this.props.handleClickOutside(); - } - }) - ); - module.exports = DateTimePickerMonths; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var React = __webpack_require__(0), - createClass = __webpack_require__(180), - DateTimePickerYears = (0, __webpack_require__(300).default)( - createClass({ - render: function() { - var year = 10 * parseInt(this.props.viewDate.year() / 10, 10); - return React.createElement('div', { className: 'rdtYears' }, [ - React.createElement( - 'table', - { key: 'a' }, - React.createElement( - 'thead', - {}, - React.createElement('tr', {}, [ - React.createElement( - 'th', - { - key: 'prev', - className: 'rdtPrev', - onClick: this.props.subtractTime(10, 'years') - }, - React.createElement('span', {}, '‹') - ), - React.createElement( - 'th', - { - key: 'year', - className: 'rdtSwitch', - onClick: this.props.showView('years'), - colSpan: 2 - }, - year + '-' + (year + 9) - ), - React.createElement( - 'th', - { - key: 'next', - className: 'rdtNext', - onClick: this.props.addTime(10, 'years') - }, - React.createElement('span', {}, '›') - ) - ]) - ) - ), - React.createElement( - 'table', - { key: 'years' }, - React.createElement('tbody', {}, this.renderYears(year)) - ) - ]); - }, - renderYears: function(year) { - var classes, - props, - currentYear, - isDisabled, - noOfDaysInYear, - years = [], - i = -1, - rows = [], - renderer = this.props.renderYear || this.renderYear, - selectedDate = this.props.selectedDate, - isValid = this.props.isValidDate || this.alwaysValidDate; - for (year--; i < 11; ) - (classes = 'rdtYear'), - (noOfDaysInYear = (currentYear = this.props.viewDate - .clone() - .set({ year: year, month: 0, date: 1 })) - .endOf('year') - .format('DDD')), - (isDisabled = - void 0 === - Array.from({ length: noOfDaysInYear }, function(e, i) { - return i + 1; - }).find(function(d) { - var day = currentYear.clone().dayOfYear(d); - return isValid(day); - })) && (classes += ' rdtDisabled'), - selectedDate && selectedDate.year() === year && (classes += ' rdtActive'), - (props = { key: year, 'data-value': year, className: classes }), - isDisabled || - (props.onClick = - 'years' === this.props.updateOn - ? this.updateSelectedYear - : this.props.setDate('year')), - years.push(renderer(props, year, selectedDate && selectedDate.clone())), - 4 === years.length && - (rows.push(React.createElement('tr', { key: i }, years)), (years = [])), - year++, - i++; - return rows; - }, - updateSelectedYear: function(event) { - this.props.updateSelectedDate(event); - }, - renderYear: function(props, year) { - return React.createElement('td', props, year); - }, - alwaysValidDate: function() { - return 1; - }, - handleClickOutside: function() { - this.props.handleClickOutside(); - } - }) - ); - module.exports = DateTimePickerYears; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var React = __webpack_require__(0), - createClass = __webpack_require__(180), - assign = __webpack_require__(677), - DateTimePickerTime = (0, __webpack_require__(300).default)( - createClass({ - getInitialState: function() { - return this.calculateState(this.props); - }, - calculateState: function(props) { - var date = props.selectedDate || props.viewDate, - format = props.timeFormat, - counters = []; - -1 !== format.toLowerCase().indexOf('h') && - (counters.push('hours'), - -1 !== format.indexOf('m') && - (counters.push('minutes'), -1 !== format.indexOf('s') && counters.push('seconds'))); - var hours = date.format('H'), - daypart = !1; - return ( - null !== this.state && - -1 !== this.props.timeFormat.toLowerCase().indexOf(' a') && - (daypart = - -1 !== this.props.timeFormat.indexOf(' A') - ? hours >= 12 ? 'PM' : 'AM' - : hours >= 12 ? 'pm' : 'am'), - { - hours: hours, - minutes: date.format('mm'), - seconds: date.format('ss'), - milliseconds: date.format('SSS'), - daypart: daypart, - counters: counters - } - ); - }, - renderCounter: function(type) { - if ('daypart' !== type) { - var value = this.state[type]; - return ( - 'hours' === type && - -1 !== this.props.timeFormat.toLowerCase().indexOf(' a') && - 0 === (value = (value - 1) % 12 + 1) && - (value = 12), - React.createElement('div', { key: type, className: 'rdtCounter' }, [ - React.createElement( - 'span', - { - key: 'up', - className: 'rdtBtn', - onMouseDown: this.onStartClicking('increase', type), - onContextMenu: this.disableContextMenu - }, - '▲' - ), - React.createElement('div', { key: 'c', className: 'rdtCount' }, value), - React.createElement( - 'span', - { - key: 'do', - className: 'rdtBtn', - onMouseDown: this.onStartClicking('decrease', type), - onContextMenu: this.disableContextMenu - }, - '▼' - ) - ]) - ); - } - return ''; - }, - renderDayPart: function() { - return React.createElement('div', { key: 'dayPart', className: 'rdtCounter' }, [ - React.createElement( - 'span', - { - key: 'up', - className: 'rdtBtn', - onMouseDown: this.onStartClicking('toggleDayPart', 'hours'), - onContextMenu: this.disableContextMenu - }, - '▲' - ), - React.createElement( - 'div', - { key: this.state.daypart, className: 'rdtCount' }, - this.state.daypart - ), - React.createElement( - 'span', - { - key: 'do', - className: 'rdtBtn', - onMouseDown: this.onStartClicking('toggleDayPart', 'hours'), - onContextMenu: this.disableContextMenu - }, - '▼' - ) - ]); - }, - render: function() { - var me = this, - counters = []; - return ( - this.state.counters.forEach(function(c) { - counters.length && - counters.push( - React.createElement( - 'div', - { key: 'sep' + counters.length, className: 'rdtCounterSeparator' }, - ':' - ) - ), - counters.push(me.renderCounter(c)); - }), - !1 !== this.state.daypart && counters.push(me.renderDayPart()), - 3 === this.state.counters.length && - -1 !== this.props.timeFormat.indexOf('S') && - (counters.push( - React.createElement('div', { className: 'rdtCounterSeparator', key: 'sep5' }, ':') - ), - counters.push( - React.createElement( - 'div', - { className: 'rdtCounter rdtMilli', key: 'm' }, - React.createElement('input', { - value: this.state.milliseconds, - type: 'text', - onChange: this.updateMilli - }) - ) - )), - React.createElement( - 'div', - { className: 'rdtTime' }, - React.createElement('table', {}, [ - this.renderHeader(), - React.createElement( - 'tbody', - { key: 'b' }, - React.createElement( - 'tr', - {}, - React.createElement( - 'td', - {}, - React.createElement('div', { className: 'rdtCounters' }, counters) - ) - ) - ) - ]) - ) - ); - }, - componentWillMount: function() { - var me = this; - (me.timeConstraints = { - hours: { min: 0, max: 23, step: 1 }, - minutes: { min: 0, max: 59, step: 1 }, - seconds: { min: 0, max: 59, step: 1 }, - milliseconds: { min: 0, max: 999, step: 1 } - }), - ['hours', 'minutes', 'seconds', 'milliseconds'].forEach(function(type) { - assign(me.timeConstraints[type], me.props.timeConstraints[type]); - }), - this.setState(this.calculateState(this.props)); - }, - componentWillReceiveProps: function(nextProps) { - this.setState(this.calculateState(nextProps)); - }, - updateMilli: function(e) { - var milli = parseInt(e.target.value, 10); - milli === e.target.value && - milli >= 0 && - milli < 1e3 && - (this.props.setTime('milliseconds', milli), this.setState({ milliseconds: milli })); - }, - renderHeader: function() { - if (!this.props.dateFormat) return null; - var date = this.props.selectedDate || this.props.viewDate; - return React.createElement( - 'thead', - { key: 'h' }, - React.createElement( - 'tr', - {}, - React.createElement( - 'th', - { className: 'rdtSwitch', colSpan: 4, onClick: this.props.showView('days') }, - date.format(this.props.dateFormat) - ) - ) - ); - }, - onStartClicking: function(action, type) { - var me = this; - return function() { - var update = {}; - (update[type] = me[action](type)), - me.setState(update), - (me.timer = setTimeout(function() { - me.increaseTimer = setInterval(function() { - (update[type] = me[action](type)), me.setState(update); - }, 70); - }, 500)), - (me.mouseUpListener = function() { - clearTimeout(me.timer), - clearInterval(me.increaseTimer), - me.props.setTime(type, me.state[type]), - document.body.removeEventListener('mouseup', me.mouseUpListener); - }), - document.body.addEventListener('mouseup', me.mouseUpListener); - }; - }, - disableContextMenu: function(event) { - return event.preventDefault(), !1; - }, - padValues: { hours: 1, minutes: 2, seconds: 2, milliseconds: 3 }, - toggleDayPart: function(type) { - var value = parseInt(this.state[type], 10) + 12; - return ( - value > this.timeConstraints[type].max && - (value = - this.timeConstraints[type].min + (value - (this.timeConstraints[type].max + 1))), - this.pad(type, value) - ); - }, - increase: function(type) { - var value = parseInt(this.state[type], 10) + this.timeConstraints[type].step; - return ( - value > this.timeConstraints[type].max && - (value = - this.timeConstraints[type].min + (value - (this.timeConstraints[type].max + 1))), - this.pad(type, value) - ); - }, - decrease: function(type) { - var value = parseInt(this.state[type], 10) - this.timeConstraints[type].step; - return ( - value < this.timeConstraints[type].min && - (value = - this.timeConstraints[type].max + 1 - (this.timeConstraints[type].min - value)), - this.pad(type, value) - ); - }, - pad: function(type, value) { - for (var str = value + ''; str.length < this.padValues[type]; ) str = '0' + str; - return str; - }, - handleClickOutside: function() { - this.props.handleClickOutside(); - } - }) - ); - module.exports = DateTimePickerTime; - }, - function(module, exports) { - var containers = [], - styleElements = [], - usage = - 'insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).'; - function insertCss(css, options) { - if (((options = options || {}), void 0 === css)) throw new Error(usage); - var styleElement, - position = !0 === options.prepend ? 'prepend' : 'append', - container = - void 0 !== options.container ? options.container : document.querySelector('head'), - containerId = containers.indexOf(container); - return ( - -1 === containerId && - ((containerId = containers.push(container) - 1), (styleElements[containerId] = {})), - void 0 !== styleElements[containerId] && void 0 !== styleElements[containerId][position] - ? (styleElement = styleElements[containerId][position]) - : ((styleElement = styleElements[containerId][position] = (function createStyleElement() { - var styleElement = document.createElement('style'); - return styleElement.setAttribute('type', 'text/css'), styleElement; - })()), - 'prepend' === position - ? container.insertBefore(styleElement, container.childNodes[0]) - : container.appendChild(styleElement)), - 65279 === css.charCodeAt(0) && (css = css.substr(1, css.length)), - styleElement.styleSheet - ? (styleElement.styleSheet.cssText += css) - : (styleElement.textContent += css), - styleElement - ); - } - (module.exports = insertCss), (module.exports.insertCss = insertCss); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = - "\n .rdt {\n position: relative;\n }\n .rdtPicker {\n display: none;\n position: absolute;\n width: 200px;\n padding: 4px;\n margin-top: 1px;\n z-index: 99999 !important;\n background: #fff;\n box-shadow: 0 1px 3px rgba(0,0,0,.1);\n border: 1px solid #f9f9f9;\n }\n .rdtOpen .rdtPicker {\n display: block;\n }\n .rdtStatic .rdtPicker {\n box-shadow: none;\n position: static;\n }\n\n .rdtPicker .rdtTimeToggle {\n text-align: center;\n font-size:11px;\n }\n\n .rdtPicker table {\n width: 100%;\n margin: 0;\n }\n .rdtPicker td,\n .rdtPicker th {\n text-align: center;\n height: 28px;\n }\n .rdtPicker td {\n cursor: pointer;\n }\n .rdtPicker td.rdtDay:hover,\n .rdtPicker td.rdtHour:hover,\n .rdtPicker td.rdtMinute:hover,\n .rdtPicker td.rdtSecond:hover,\n .rdtPicker .rdtTimeToggle:hover {\n background: #eeeeee;\n cursor: pointer;\n }\n .rdtPicker td.rdtOld,\n .rdtPicker td.rdtNew {\n color: #999999;\n }\n .rdtPicker td.rdtToday {\n position: relative;\n }\n .rdtPicker td.rdtToday:before {\n content: '';\n display: inline-block;\n border-left: 7px solid transparent;\n border-bottom: 7px solid #428bca;\n border-top-color: rgba(0, 0, 0, 0.2);\n position: absolute;\n bottom: 4px;\n right: 4px;\n }\n .rdtPicker td.rdtActive,\n .rdtPicker td.rdtActive:hover {\n background-color: #428bca;\n color: #fff;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n }\n .rdtPicker td.rdtActive.rdtToday:before {\n border-bottom-color: #fff;\n }\n .rdtPicker td.rdtDisabled,\n .rdtPicker td.rdtDisabled:hover {\n background: none;\n color: #999999;\n cursor: not-allowed;\n }\n\n .rdtPicker td span.rdtOld {\n color: #999999;\n }\n .rdtPicker td span.rdtDisabled,\n .rdtPicker td span.rdtDisabled:hover {\n background: none;\n color: #999999;\n cursor: not-allowed;\n }\n .rdtPicker th {\n border-bottom: 1px solid #f9f9f9;\n }\n .rdtPicker .dow {\n width: 14.2857%;\n font-size: 11px;\n border-bottom: none;\n }\n .rdtPicker th.rdtSwitch {\n width: 100px;\n font-size: 11px;\n }\n .rdtPicker th.rdtNext,\n .rdtPicker th.rdtPrev {\n font-size: 11px;\n vertical-align: top;\n }\n\n .rdtPrev span,\n .rdtNext span {\n display: block;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Chrome/Safari/Opera */\n -khtml-user-select: none; /* Konqueror */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n }\n\n .rdtPicker th.rdtDisabled,\n .rdtPicker th.rdtDisabled:hover {\n background: none;\n color: #999999;\n cursor: not-allowed;\n }\n .rdtPicker thead tr:first-child th {\n cursor: pointer;\n }\n .rdtPicker thead tr:first-child th:hover {\n background: #eeeeee;\n }\n\n .rdtPicker tfoot {\n border-top: 1px solid #f9f9f9;\n }\n\n .rdtPicker button {\n border: none;\n background: none;\n cursor: pointer;\n }\n .rdtPicker button:hover {\n background-color: #eee;\n }\n\n .rdtPicker thead button {\n width: 100%;\n height: 100%;\n }\n\n td.rdtMonth,\n td.rdtYear {\n height: 50px;\n width: 25%;\n cursor: pointer;\n }\n td.rdtMonth:hover,\n td.rdtYear:hover {\n background: #eee;\n }\n\n td.rdtDay {\n font-size: 11px\n }\n\n .rdtCounters {\n display: inline-block;\n }\n\n .rdtCounters > div {\n float: left;\n }\n\n .rdtCounter {\n height: 100px;\n }\n\n .rdtCounter {\n width: 40px;\n }\n\n .rdtCounterSeparator {\n line-height: 100px;\n }\n\n .rdtCounter .rdtBtn {\n height: 40%;\n line-height: 40px;\n cursor: pointer;\n display: block;\n font-size: 11px;\n\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Chrome/Safari/Opera */\n -khtml-user-select: none; /* Konqueror */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n }\n .rdtCounter .rdtBtn:hover {\n background: #eee;\n }\n .rdtCounter .rdtCount {\n height: 20%;\n font-size: 11px;\n }\n\n .rdtMilli {\n vertical-align: middle;\n padding-left: 8px;\n width: 48px;\n }\n\n .rdtMilli input {\n width: 100%;\n font-size: 11px;\n margin-top: 37px;\n }\n"); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react2 = _interopRequireDefault(__webpack_require__(0)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var styles = { height: '26px' }, - ButtonType = (function(_React$Component) { - function ButtonType() { - return ( - (0, _classCallCheck3.default)(this, ButtonType), - (0, _possibleConstructorReturn3.default)( - this, - (ButtonType.__proto__ || (0, _getPrototypeOf2.default)(ButtonType)).apply( - this, - arguments - ) - ) - ); - } - return ( - (0, _inherits3.default)(ButtonType, _React$Component), - (0, _createClass3.default)(ButtonType, [ - { - key: 'render', - value: function render() { - var _this2 = this, - _props = this.props, - knob = _props.knob, - _onClick = _props.onClick; - return _react2.default.createElement( - 'button', - { - type: 'button', - id: knob.name, - ref: function ref(c) { - _this2.input = c; - }, - style: styles, - onClick: function onClick() { - return _onClick(knob); - } - }, - knob.name - ); - } - } - ]), - ButtonType - ); - })(_react2.default.Component); - (ButtonType.defaultProps = { knob: {} }), - (ButtonType.propTypes = { - knob: _propTypes2.default.shape({ name: _propTypes2.default.string }), - onClick: _propTypes2.default.func.isRequired - }), - (ButtonType.serialize = function(value) { - return value; - }), - (ButtonType.deserialize = function(value) { - return value; - }), - (exports.default = ButtonType); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(176).register(); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(1129); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(1130).init(); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.init = function init() { - _addons2.default.register(_shared.ADDON_ID, function(api) { - var channel = _addons2.default.getChannel(); - channel.on(_shared.EVENT_ID, function(data) { - api.setOptions(data.options); - }); - }); - }); - var _addons2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(40)), - _shared = __webpack_require__(425); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _ui2 = _interopRequireDefault(__webpack_require__(797)), - _provider2 = _interopRequireDefault(__webpack_require__(1335)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var rootEl = document.getElementById('root'); - (0, _ui2.default)(rootEl, new _provider2.default()); - }, - function(module, exports, __webpack_require__) { - module.exports = __webpack_require__(1133); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.disable = exports.composeAll = exports.composeWithObservable = exports.composeWithPromise = exports.composeWithTracker = exports.compose = exports.useDeps = exports.createApp = void 0); - var _reactSimpleDi = __webpack_require__(798), - _reactKomposer = __webpack_require__(800), - _app2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(1141)); - (exports.createApp = function createApp() { - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) - args[_key] = arguments[_key]; - return new (Function.prototype.bind.apply(_app2.default, [null].concat(args)))(); - }), - (exports.useDeps = _reactSimpleDi.useDeps), - (exports.compose = _reactKomposer.compose), - (exports.composeWithTracker = _reactKomposer.composeWithTracker), - (exports.composeWithPromise = _reactKomposer.composeWithPromise), - (exports.composeWithObservable = _reactKomposer.composeWithObservable), - (exports.composeAll = _reactKomposer.composeAll), - (exports.disable = _reactKomposer.disable); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)); - (exports.injectDeps = function injectDeps(context, _actions) { - var actions = {}; - for (var key in _actions) - if (_actions.hasOwnProperty(key)) { - var actionMap = _actions[key], - newActionMap = {}; - for (var actionName in actionMap) - actionMap.hasOwnProperty(actionName) && - (newActionMap[actionName] = actionMap[actionName].bind(null, context)); - actions[key] = newActionMap; - } - return function(Component) { - var ComponentWithDeps = (0, _createReactClass2.default)({ - childContextTypes: { - context: _propTypes2.default.object, - actions: _propTypes2.default.object - }, - getChildContext: function getChildContext() { - return { context: context, actions: actions }; - }, - render: function render() { - return _react2.default.createElement(Component, this.props); - } - }); - return ( - (ComponentWithDeps.displayName = 'WithDeps(' + getDisplayName(Component) + ')'), - (0, _hoistNonReactStatics2.default)(ComponentWithDeps, Component) - ); - }; - }), - (exports.useDeps = function useDeps() { - var mapper = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : defaultMapper; - return function(Component) { - var ComponentUseDeps = (0, _createReactClass2.default)({ - render: function render() { - var _context2 = this.context, - context = _context2.context, - actions = _context2.actions, - mappedProps = mapper(context, actions), - newProps = (0, _extends3.default)({}, this.props, mappedProps); - return _react2.default.createElement(Component, newProps); - }, - contextTypes: { - context: _propTypes2.default.object, - actions: _propTypes2.default.object - } - }); - return ( - (ComponentUseDeps.displayName = 'UseDeps(' + getDisplayName(Component) + ')'), - (0, _hoistNonReactStatics2.default)(ComponentUseDeps, Component) - ); - }; - }); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _createReactClass2 = _interopRequireDefault(__webpack_require__(180)), - _hoistNonReactStatics2 = _interopRequireDefault(__webpack_require__(799)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var getDisplayName = function getDisplayName(Component) { - return Component.displayName || Component.name || 'Component'; - }; - var defaultMapper = function defaultMapper(_context, _actions2) { - return { - context: function context() { - return _context; - }, - actions: function actions() { - return _actions2; - } - }; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)); - exports.default = function compose(dataLoader) { - var options = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - return function(Child) { - var _options$errorHandler = options.errorHandler, - errorHandler = - void 0 === _options$errorHandler - ? function(err) { - throw err; - } - : _options$errorHandler, - _options$loadingHandl = options.loadingHandler, - loadingHandler = - void 0 === _options$loadingHandl - ? function() { - return null; - } - : _options$loadingHandl, - _options$env = options.env, - env = void 0 === _options$env ? {} : _options$env, - _options$pure = options.pure, - pure = void 0 !== _options$pure && _options$pure, - _options$propsToWatch = options.propsToWatch, - propsToWatch = void 0 === _options$propsToWatch ? null : _options$propsToWatch, - _options$shouldSubscr = options.shouldSubscribe, - shouldSubscribe = void 0 === _options$shouldSubscr ? null : _options$shouldSubscr, - _options$shouldUpdate = options.shouldUpdate, - shouldUpdate = void 0 === _options$shouldUpdate ? null : _options$shouldUpdate, - _options$withRef = options.withRef, - withRef = void 0 === _options$withRef || _options$withRef, - Container = (function(_React$Component) { - function Container(props) { - var _ref; - (0, _classCallCheck3.default)(this, Container); - for ( - var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; - _key < _len; - _key++ - ) - args[_key - 1] = arguments[_key]; - var _this = (0, _possibleConstructorReturn3.default)( - this, - (_ref = Container.__proto__ || (0, _getPrototypeOf2.default)(Container)).call.apply( - _ref, - [this, props].concat(args) - ) - ); - return (_this.state = {}), (_this.propsCache = {}), _this._subscribe(props), _this; - } - return ( - (0, _inherits3.default)(Container, _React$Component), - (0, _createClass3.default)(Container, [ - { - key: 'componentDidMount', - value: function componentDidMount() { - this._mounted = !0; - } - }, - { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(props) { - this._subscribe(props); - } - }, - { - key: 'shouldComponentUpdate', - value: function shouldComponentUpdate(nextProps, nextState) { - return shouldUpdate - ? shouldUpdate(this.props, nextProps) - : !pure || - (!(0, _shallowequal2.default)(this.props, nextProps) || - this.state.error !== nextState.error || - !(0, _shallowequal2.default)(this.state.data, nextState.data)); - } - }, - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - (this._unmounted = !0), this._unsubscribe(); - } - }, - { - key: '_shouldSubscribe', - value: function _shouldSubscribe(props) { - var firstRun = !this._cachedWatchingProps, - nextProps = (0, _lodash2.default)(props, propsToWatch), - currentProps = this._cachedWatchingProps || {}; - return ( - (this._cachedWatchingProps = nextProps), - !!firstRun || - ('function' == typeof shouldSubscribe - ? shouldSubscribe(currentProps, nextProps) - : null === propsToWatch || - (0 !== propsToWatch.length && - !(0, _shallowequal2.default)(currentProps, nextProps))) - ); - } - }, - { - key: '_subscribe', - value: function _subscribe(props) { - var _this2 = this; - if (this._shouldSubscribe(props)) { - this._unsubscribe(), - (this._stop = dataLoader( - props, - function onData(error, data) { - if (_this2._unmounted) - throw new Error( - 'Trying to set data after component(' + - Container.displayName + - ') has unmounted.' - ); - var payload = { error: error, data: data }; - if (!_this2._mounted) - return void (_this2.state = (0, _extends3.default)( - {}, - _this2.state, - payload - )); - _this2.setState(payload); - }, - env - )); - } - } - }, - { - key: '_unsubscribe', - value: function _unsubscribe() { - this._stop && this._stop(); - } - }, - { - key: 'render', - value: function render() { - var _this3 = this, - props = this.props, - _state = this.state, - data = _state.data, - error = _state.error; - if (error) return errorHandler(error); - if (!data) return loadingHandler(); - var finalProps = (0, _extends3.default)({}, props, data); - return withRef - ? _react2.default.createElement( - Child, - (0, _extends3.default)( - { - ref: function setChildRef(c) { - _this3.child = c; - } - }, - finalProps - ) - ) - : _react2.default.createElement(Child, finalProps); - } - } - ]), - Container - ); - })(_react2.default.Component); - return ( - (Container.__komposerData = { dataLoader: dataLoader, options: options }), - (0, _utils.inheritStatics)(Container, Child), - (0, _reactStubber.mayBeStubbed)(Container) - ); - }; - }; - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _shallowequal2 = _interopRequireDefault(__webpack_require__(802)), - _lodash2 = _interopRequireDefault(__webpack_require__(270)), - _reactStubber = __webpack_require__(801), - _utils = __webpack_require__(1140); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - }, - function(module, exports, __webpack_require__) { - var getNative = __webpack_require__(1137), - isArguments = __webpack_require__(1138), - isArray = __webpack_require__(1139), - reIsUint = /^\d+$/, - hasOwnProperty = Object.prototype.hasOwnProperty, - nativeKeys = getNative(Object, 'keys'), - MAX_SAFE_INTEGER = 9007199254740991; - var getLength = (function baseProperty(key) { - return function(object) { - return null == object ? void 0 : object[key]; - }; - })('length'); - function isIndex(value, length) { - return ( - (value = 'number' == typeof value || reIsUint.test(value) ? +value : -1), - (length = null == length ? MAX_SAFE_INTEGER : length), - value > -1 && value % 1 == 0 && value < length - ); - } - function isLength(value) { - return 'number' == typeof value && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; - } - function shimKeys(object) { - for ( - var props = (function keysIn(object) { - if (null == object) return []; - isObject(object) || (object = Object(object)); - var length = object.length; - length = - (length && isLength(length) && (isArray(object) || isArguments(object)) && length) || - 0; - var Ctor = object.constructor, - index = -1, - isProto = 'function' == typeof Ctor && Ctor.prototype === object, - result = Array(length), - skipIndexes = length > 0; - for (; ++index < length; ) result[index] = index + ''; - for (var key in object) - (skipIndexes && isIndex(key, length)) || - ('constructor' == key && (isProto || !hasOwnProperty.call(object, key))) || - result.push(key); - return result; - })(object), - propsLength = props.length, - length = propsLength && object.length, - allowIndexes = !!length && isLength(length) && (isArray(object) || isArguments(object)), - index = -1, - result = []; - ++index < propsLength; - - ) { - var key = props[index]; - ((allowIndexes && isIndex(key, length)) || hasOwnProperty.call(object, key)) && - result.push(key); - } - return result; - } - function isObject(value) { - var type = typeof value; - return !!value && ('object' == type || 'function' == type); - } - var keys = nativeKeys - ? function(object) { - var Ctor = null == object ? void 0 : object.constructor; - return ('function' == typeof Ctor && Ctor.prototype === object) || - ('function' != typeof object && - (function isArrayLike(value) { - return null != value && isLength(getLength(value)); - })(object)) - ? shimKeys(object) - : isObject(object) ? nativeKeys(object) : []; - } - : shimKeys; - module.exports = keys; - }, - function(module, exports) { - var funcTag = '[object Function]', - reIsHostCtor = /^\[object .+?Constructor\]$/; - var objectProto = Object.prototype, - fnToString = Function.prototype.toString, - hasOwnProperty = objectProto.hasOwnProperty, - objToString = objectProto.toString, - reIsNative = RegExp( - '^' + - fnToString - .call(hasOwnProperty) - .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + - '$' - ); - module.exports = function getNative(object, key) { - var value = null == object ? void 0 : object[key]; - return (function isNative(value) { - return ( - null != value && - ((function isFunction(value) { - return ( - (function isObject(value) { - var type = typeof value; - return !!value && ('object' == type || 'function' == type); - })(value) && objToString.call(value) == funcTag - ); - })(value) - ? reIsNative.test(fnToString.call(value)) - : (function isObjectLike(value) { - return !!value && 'object' == typeof value; - })(value) && reIsHostCtor.test(value)) - ); - })(value) - ? value - : void 0; - }; - }, - function(module, exports) { - var MAX_SAFE_INTEGER = 9007199254740991, - argsTag = '[object Arguments]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - objectProto = Object.prototype, - hasOwnProperty = objectProto.hasOwnProperty, - objectToString = objectProto.toString, - propertyIsEnumerable = objectProto.propertyIsEnumerable; - module.exports = function isArguments(value) { - return ( - (function isArrayLikeObject(value) { - return ( - (function isObjectLike(value) { - return !!value && 'object' == typeof value; - })(value) && - (function isArrayLike(value) { - return ( - null != value && - (function isLength(value) { - return ( - 'number' == typeof value && - value > -1 && - value % 1 == 0 && - value <= MAX_SAFE_INTEGER - ); - })(value.length) && - !(function isFunction(value) { - var tag = (function isObject(value) { - var type = typeof value; - return !!value && ('object' == type || 'function' == type); - })(value) - ? objectToString.call(value) - : ''; - return tag == funcTag || tag == genTag; - })(value) - ); - })(value) - ); - })(value) && - hasOwnProperty.call(value, 'callee') && - (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag) - ); - }; - }, - function(module, exports) { - var funcTag = '[object Function]', - reIsHostCtor = /^\[object .+?Constructor\]$/; - function isObjectLike(value) { - return !!value && 'object' == typeof value; - } - var objectProto = Object.prototype, - fnToString = Function.prototype.toString, - hasOwnProperty = objectProto.hasOwnProperty, - objToString = objectProto.toString, - reIsNative = RegExp( - '^' + - fnToString - .call(hasOwnProperty) - .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + - '$' - ), - MAX_SAFE_INTEGER = 9007199254740991; - var isArray = - (function getNative(object, key) { - var value = null == object ? void 0 : object[key]; - return (function isNative(value) { - if (null == value) return !1; - if ( - (function isFunction(value) { - return ( - (function isObject(value) { - var type = typeof value; - return !!value && ('object' == type || 'function' == type); - })(value) && objToString.call(value) == funcTag - ); - })(value) - ) - return reIsNative.test(fnToString.call(value)); - return isObjectLike(value) && reIsHostCtor.test(value); - })(value) - ? value - : void 0; - })(Array, 'isArray') || - function(value) { - return ( - isObjectLike(value) && - (function isLength(value) { - return ( - 'number' == typeof value && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER - ); - })(value.length) && - '[object Array]' == objToString.call(value) - ); - }; - module.exports = isArray; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.inheritStatics = function inheritStatics(Container, ChildComponent) { - var childDisplayName = - ChildComponent.displayName || ChildComponent.name || 'ChildComponent'; - return ( - (Container.displayName = 'Container(' + childDisplayName + ')'), - (0, _hoistNonReactStatics2.default)(Container, ChildComponent) - ); - }); - var _hoistNonReactStatics2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(799)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getIterator3 = _interopRequireDefault(__webpack_require__(259)), - _extends3 = _interopRequireDefault(__webpack_require__(8)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _reactSimpleDi = __webpack_require__(798); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var App = (function() { - function App(context) { - if (((0, _classCallCheck3.default)(this, App), !context)) { - throw new Error('Context is required when creating a new app.'); - } - (this.context = context), (this.actions = {}), (this._routeFns = []); - } - return ( - (0, _createClass3.default)(App, [ - { - key: '_bindContext', - value: function _bindContext(_actions) { - var actions = {}; - for (var key in _actions) - if (_actions.hasOwnProperty(key)) { - var actionMap = _actions[key], - newActionMap = {}; - for (var actionName in actionMap) - actionMap.hasOwnProperty(actionName) && - (newActionMap[actionName] = actionMap[actionName].bind(null, this.context)); - actions[key] = newActionMap; - } - return actions; - } - }, - { - key: 'loadModule', - value: function loadModule(module) { - if ((this._checkForInit(), !module)) { - throw new Error('Should provide a module to load.'); - } - if (module.__loaded) { - throw new Error('This module is already loaded.'); - } - if (module.routes) { - if ('function' != typeof module.routes) { - throw new Error("Module's routes field should be a function."); - } - this._routeFns.push(module.routes); - } - var actions = module.actions || {}; - if ( - ((this.actions = (0, _extends3.default)({}, this.actions, actions)), module.load) - ) { - if ('function' != typeof module.load) { - throw new Error('module.load should be a function'); - } - var boundedActions = this._bindContext(this.actions); - module.load(this.context, boundedActions); - } - module.__loaded = !0; - } - }, - { - key: 'init', - value: function init() { - var _this = this; - this._checkForInit(); - var _iteratorNormalCompletion = !0, - _didIteratorError = !1, - _iteratorError = void 0; - try { - for ( - var _step, _iterator = (0, _getIterator3.default)(this._routeFns); - !(_iteratorNormalCompletion = (_step = _iterator.next()).done); - _iteratorNormalCompletion = !0 - ) { - (0, _step.value)( - function inject(comp) { - return (0, _reactSimpleDi.injectDeps)(_this.context, _this.actions)(comp); - }, - this.context, - this.actions - ); - } - } catch (err) { - (_didIteratorError = !0), (_iteratorError = err); - } finally { - try { - !_iteratorNormalCompletion && _iterator.return && _iterator.return(); - } finally { - if (_didIteratorError) throw _iteratorError; - } - } - (this._routeFns = []), (this.__initialized = !0); - } - }, - { - key: '_checkForInit', - value: function _checkForInit() { - if (this.__initialized) { - throw new Error('App is already initialized'); - } - } - } - ]), - App - ); - })(); - exports.default = App; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _keys2 = _interopRequireDefault(__webpack_require__(34)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _immutable2 = _interopRequireDefault(__webpack_require__(1143)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Podda = (function() { - function Podda() { - var defaults = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; - (0, _classCallCheck3.default)(this, Podda), - (this.data = _immutable2.default.Map(defaults)), - (this.callbacks = []), - (this.watchCallbacks = {}); - } - return ( - (0, _createClass3.default)(Podda, [ - { - key: 'fireSubscriptions', - value: function fireSubscriptions() { - var _this = this; - this.callbacks.forEach(function(cb) { - cb(_this.getAll()); - }); - } - }, - { - key: 'fire', - value: function fire(key, value) { - (this.watchCallbacks[key] || []).forEach(function(callback) { - callback(value); - }); - } - }, - { - key: '_set', - value: function _set(key, value) { - (this.data = this.data.set(key, _immutable2.default.fromJS(value))), - this.fire(key, value); - } - }, - { - key: 'set', - value: function set(key, value) { - this._set(key, value), this.fireSubscriptions(); - } - }, - { - key: 'update', - value: function update(fn) { - var _this2 = this, - newFields = fn(this.data.toJS()); - if (null === newFields || void 0 === newFields) - throw new Error('You must provide an object with updated values for Podda.set(fn)'); - (0, _keys2.default)(newFields).forEach(function(key) { - _this2._set(key, newFields[key]); - }), - this.fireSubscriptions(); - } - }, - { - key: 'get', - value: function get(key) { - var value = this.data.get(key); - return null === value || void 0 === value ? value : value.toJS ? value.toJS() : value; - } - }, - { - key: 'getAll', - value: function getAll() { - return this.data.toJS(); - } - }, - { - key: 'subscribe', - value: function subscribe(cb) { - var _this3 = this; - this.callbacks.push(cb); - var stopped = !1; - return function stop() { - if (!stopped) { - var index = _this3.callbacks.indexOf(cb); - _this3.callbacks.splice(index, 1), (stopped = !0); - } - }; - } - }, - { - key: 'watch', - value: function watch(key, callback) { - this.watchCallbacks[key] || (this.watchCallbacks[key] = []); - var callbacks = this.watchCallbacks[key]; - callbacks.push(callback); - var stopped = !1; - return function stop() { - if (!stopped) { - var index = callbacks.indexOf(callback); - callbacks.splice(index, 1), (stopped = !0); - } - }; - } - }, - { - key: 'watchFor', - value: function watchFor(key, expectedValue, callback) { - return this.watch(key, function callbackAndCheck(value) { - value === expectedValue && callback(value); - }); - } - }, - { - key: 'registerAPI', - value: function registerAPI(method, fn) { - var _this4 = this; - if (this[method]) - throw new Error('Cannot add an API for the existing API: "' + method + '".'); - this[method] = function() { - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) - args[_key] = arguments[_key]; - return fn.apply(void 0, [_this4].concat(args)); - }; - } - } - ]), - Podda - ); - })(); - exports.default = Podda; - }, - function(module, exports, __webpack_require__) { - var factory; - (factory = function() { - 'use strict'; - var SLICE$0 = Array.prototype.slice; - function createClass(ctor, superClass) { - superClass && (ctor.prototype = Object.create(superClass.prototype)), - (ctor.prototype.constructor = ctor); - } - function Iterable(value) { - return isIterable(value) ? value : Seq(value); - } - function KeyedIterable(value) { - return isKeyed(value) ? value : KeyedSeq(value); - } - function IndexedIterable(value) { - return isIndexed(value) ? value : IndexedSeq(value); - } - function SetIterable(value) { - return isIterable(value) && !isAssociative(value) ? value : SetSeq(value); - } - function isIterable(maybeIterable) { - return !(!maybeIterable || !maybeIterable[IS_ITERABLE_SENTINEL]); - } - function isKeyed(maybeKeyed) { - return !(!maybeKeyed || !maybeKeyed[IS_KEYED_SENTINEL]); - } - function isIndexed(maybeIndexed) { - return !(!maybeIndexed || !maybeIndexed[IS_INDEXED_SENTINEL]); - } - function isAssociative(maybeAssociative) { - return isKeyed(maybeAssociative) || isIndexed(maybeAssociative); - } - function isOrdered(maybeOrdered) { - return !(!maybeOrdered || !maybeOrdered[IS_ORDERED_SENTINEL]); - } - createClass(KeyedIterable, Iterable), - createClass(IndexedIterable, Iterable), - createClass(SetIterable, Iterable), - (Iterable.isIterable = isIterable), - (Iterable.isKeyed = isKeyed), - (Iterable.isIndexed = isIndexed), - (Iterable.isAssociative = isAssociative), - (Iterable.isOrdered = isOrdered), - (Iterable.Keyed = KeyedIterable), - (Iterable.Indexed = IndexedIterable), - (Iterable.Set = SetIterable); - var IS_ITERABLE_SENTINEL = '@@__IMMUTABLE_ITERABLE__@@', - IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@', - IS_INDEXED_SENTINEL = '@@__IMMUTABLE_INDEXED__@@', - IS_ORDERED_SENTINEL = '@@__IMMUTABLE_ORDERED__@@', - SHIFT = 5, - SIZE = 1 << SHIFT, - MASK = SIZE - 1, - NOT_SET = {}, - CHANGE_LENGTH = { value: !1 }, - DID_ALTER = { value: !1 }; - function MakeRef(ref) { - return (ref.value = !1), ref; - } - function SetRef(ref) { - ref && (ref.value = !0); - } - function OwnerID() {} - function arrCopy(arr, offset) { - offset = offset || 0; - for ( - var len = Math.max(0, arr.length - offset), newArr = new Array(len), ii = 0; - ii < len; - ii++ - ) - newArr[ii] = arr[ii + offset]; - return newArr; - } - function ensureSize(iter) { - return void 0 === iter.size && (iter.size = iter.__iterate(returnTrue)), iter.size; - } - function wrapIndex(iter, index) { - if ('number' != typeof index) { - var uint32Index = index >>> 0; - if ('' + uint32Index !== index || 4294967295 === uint32Index) return NaN; - index = uint32Index; - } - return index < 0 ? ensureSize(iter) + index : index; - } - function returnTrue() { - return !0; - } - function wholeSlice(begin, end, size) { - return ( - (0 === begin || (void 0 !== size && begin <= -size)) && - (void 0 === end || (void 0 !== size && end >= size)) - ); - } - function resolveBegin(begin, size) { - return resolveIndex(begin, size, 0); - } - function resolveEnd(end, size) { - return resolveIndex(end, size, size); - } - function resolveIndex(index, size, defaultIndex) { - return void 0 === index - ? defaultIndex - : index < 0 ? Math.max(0, size + index) : void 0 === size ? index : Math.min(size, index); - } - var ITERATE_KEYS = 0, - ITERATE_VALUES = 1, - ITERATE_ENTRIES = 2, - REAL_ITERATOR_SYMBOL = 'function' == typeof Symbol && Symbol.iterator, - FAUX_ITERATOR_SYMBOL = '@@iterator', - ITERATOR_SYMBOL = REAL_ITERATOR_SYMBOL || FAUX_ITERATOR_SYMBOL; - function Iterator(next) { - this.next = next; - } - function iteratorValue(type, k, v, iteratorResult) { - var value = 0 === type ? k : 1 === type ? v : [k, v]; - return ( - iteratorResult - ? (iteratorResult.value = value) - : (iteratorResult = { value: value, done: !1 }), - iteratorResult - ); - } - function iteratorDone() { - return { value: void 0, done: !0 }; - } - function hasIterator(maybeIterable) { - return !!getIteratorFn(maybeIterable); - } - function isIterator(maybeIterator) { - return maybeIterator && 'function' == typeof maybeIterator.next; - } - function getIterator(iterable) { - var iteratorFn = getIteratorFn(iterable); - return iteratorFn && iteratorFn.call(iterable); - } - function getIteratorFn(iterable) { - var iteratorFn = - iterable && - ((REAL_ITERATOR_SYMBOL && iterable[REAL_ITERATOR_SYMBOL]) || - iterable[FAUX_ITERATOR_SYMBOL]); - if ('function' == typeof iteratorFn) return iteratorFn; - } - function isArrayLike(value) { - return value && 'number' == typeof value.length; - } - function Seq(value) { - return null === value || void 0 === value - ? emptySequence() - : isIterable(value) - ? value.toSeq() - : (function seqFromValue(value) { - var seq = - maybeIndexedSeqFromValue(value) || - ('object' == typeof value && new ObjectSeq(value)); - if (!seq) - throw new TypeError( - 'Expected Array or iterable object of values, or keyed object: ' + value - ); - return seq; - })(value); - } - function KeyedSeq(value) { - return null === value || void 0 === value - ? emptySequence().toKeyedSeq() - : isIterable(value) - ? isKeyed(value) ? value.toSeq() : value.fromEntrySeq() - : keyedSeqFromValue(value); - } - function IndexedSeq(value) { - return null === value || void 0 === value - ? emptySequence() - : isIterable(value) - ? isKeyed(value) ? value.entrySeq() : value.toIndexedSeq() - : indexedSeqFromValue(value); - } - function SetSeq(value) { - return (null === value || void 0 === value - ? emptySequence() - : isIterable(value) - ? isKeyed(value) ? value.entrySeq() : value - : indexedSeqFromValue(value) - ).toSetSeq(); - } - (Iterator.prototype.toString = function() { - return '[Iterator]'; - }), - (Iterator.KEYS = ITERATE_KEYS), - (Iterator.VALUES = ITERATE_VALUES), - (Iterator.ENTRIES = ITERATE_ENTRIES), - (Iterator.prototype.inspect = Iterator.prototype.toSource = function() { - return this.toString(); - }), - (Iterator.prototype[ITERATOR_SYMBOL] = function() { - return this; - }), - createClass(Seq, Iterable), - (Seq.of = function() { - return Seq(arguments); - }), - (Seq.prototype.toSeq = function() { - return this; - }), - (Seq.prototype.toString = function() { - return this.__toString('Seq {', '}'); - }), - (Seq.prototype.cacheResult = function() { - return ( - !this._cache && - this.__iterateUncached && - ((this._cache = this.entrySeq().toArray()), (this.size = this._cache.length)), - this - ); - }), - (Seq.prototype.__iterate = function(fn, reverse) { - return seqIterate(this, fn, reverse, !0); - }), - (Seq.prototype.__iterator = function(type, reverse) { - return seqIterator(this, type, reverse, !0); - }), - createClass(KeyedSeq, Seq), - (KeyedSeq.prototype.toKeyedSeq = function() { - return this; - }), - createClass(IndexedSeq, Seq), - (IndexedSeq.of = function() { - return IndexedSeq(arguments); - }), - (IndexedSeq.prototype.toIndexedSeq = function() { - return this; - }), - (IndexedSeq.prototype.toString = function() { - return this.__toString('Seq [', ']'); - }), - (IndexedSeq.prototype.__iterate = function(fn, reverse) { - return seqIterate(this, fn, reverse, !1); - }), - (IndexedSeq.prototype.__iterator = function(type, reverse) { - return seqIterator(this, type, reverse, !1); - }), - createClass(SetSeq, Seq), - (SetSeq.of = function() { - return SetSeq(arguments); - }), - (SetSeq.prototype.toSetSeq = function() { - return this; - }), - (Seq.isSeq = isSeq), - (Seq.Keyed = KeyedSeq), - (Seq.Set = SetSeq), - (Seq.Indexed = IndexedSeq); - var EMPTY_SEQ, - EMPTY_REPEAT, - EMPTY_RANGE, - IS_SEQ_SENTINEL = '@@__IMMUTABLE_SEQ__@@'; - function ArraySeq(array) { - (this._array = array), (this.size = array.length); - } - function ObjectSeq(object) { - var keys = Object.keys(object); - (this._object = object), (this._keys = keys), (this.size = keys.length); - } - function IterableSeq(iterable) { - (this._iterable = iterable), (this.size = iterable.length || iterable.size); - } - function IteratorSeq(iterator) { - (this._iterator = iterator), (this._iteratorCache = []); - } - function isSeq(maybeSeq) { - return !(!maybeSeq || !maybeSeq[IS_SEQ_SENTINEL]); - } - function emptySequence() { - return EMPTY_SEQ || (EMPTY_SEQ = new ArraySeq([])); - } - function keyedSeqFromValue(value) { - var seq = Array.isArray(value) - ? new ArraySeq(value).fromEntrySeq() - : isIterator(value) - ? new IteratorSeq(value).fromEntrySeq() - : hasIterator(value) - ? new IterableSeq(value).fromEntrySeq() - : 'object' == typeof value ? new ObjectSeq(value) : void 0; - if (!seq) - throw new TypeError( - 'Expected Array or iterable object of [k, v] entries, or keyed object: ' + value - ); - return seq; - } - function indexedSeqFromValue(value) { - var seq = maybeIndexedSeqFromValue(value); - if (!seq) throw new TypeError('Expected Array or iterable object of values: ' + value); - return seq; - } - function maybeIndexedSeqFromValue(value) { - return isArrayLike(value) - ? new ArraySeq(value) - : isIterator(value) - ? new IteratorSeq(value) - : hasIterator(value) ? new IterableSeq(value) : void 0; - } - function seqIterate(seq, fn, reverse, useKeys) { - var cache = seq._cache; - if (cache) { - for (var maxIndex = cache.length - 1, ii = 0; ii <= maxIndex; ii++) { - var entry = cache[reverse ? maxIndex - ii : ii]; - if (!1 === fn(entry[1], useKeys ? entry[0] : ii, seq)) return ii + 1; - } - return ii; - } - return seq.__iterateUncached(fn, reverse); - } - function seqIterator(seq, type, reverse, useKeys) { - var cache = seq._cache; - if (cache) { - var maxIndex = cache.length - 1, - ii = 0; - return new Iterator(function() { - var entry = cache[reverse ? maxIndex - ii : ii]; - return ii++ > maxIndex - ? { value: void 0, done: !0 } - : iteratorValue(type, useKeys ? entry[0] : ii - 1, entry[1]); - }); - } - return seq.__iteratorUncached(type, reverse); - } - function fromJS(json, converter) { - return converter - ? (function fromJSWith(converter, json, key, parentJSON) { - if (Array.isArray(json)) - return converter.call( - parentJSON, - key, - IndexedSeq(json).map(function(v, k) { - return fromJSWith(converter, v, k, json); - }) - ); - if (isPlainObj(json)) - return converter.call( - parentJSON, - key, - KeyedSeq(json).map(function(v, k) { - return fromJSWith(converter, v, k, json); - }) - ); - return json; - })(converter, json, '', { '': json }) - : fromJSDefault(json); - } - function fromJSDefault(json) { - return Array.isArray(json) - ? IndexedSeq(json) - .map(fromJSDefault) - .toList() - : isPlainObj(json) - ? KeyedSeq(json) - .map(fromJSDefault) - .toMap() - : json; - } - function isPlainObj(value) { - return value && (value.constructor === Object || void 0 === value.constructor); - } - function is(valueA, valueB) { - if (valueA === valueB || (valueA != valueA && valueB != valueB)) return !0; - if (!valueA || !valueB) return !1; - if ('function' == typeof valueA.valueOf && 'function' == typeof valueB.valueOf) { - if ( - (valueA = valueA.valueOf()) === (valueB = valueB.valueOf()) || - (valueA != valueA && valueB != valueB) - ) - return !0; - if (!valueA || !valueB) return !1; - } - return !( - 'function' != typeof valueA.equals || - 'function' != typeof valueB.equals || - !valueA.equals(valueB) - ); - } - function deepEqual(a, b) { - if (a === b) return !0; - if ( - !isIterable(b) || - (void 0 !== a.size && void 0 !== b.size && a.size !== b.size) || - (void 0 !== a.__hash && void 0 !== b.__hash && a.__hash !== b.__hash) || - isKeyed(a) !== isKeyed(b) || - isIndexed(a) !== isIndexed(b) || - isOrdered(a) !== isOrdered(b) - ) - return !1; - if (0 === a.size && 0 === b.size) return !0; - var notAssociative = !isAssociative(a); - if (isOrdered(a)) { - var entries = a.entries(); - return ( - b.every(function(v, k) { - var entry = entries.next().value; - return entry && is(entry[1], v) && (notAssociative || is(entry[0], k)); - }) && entries.next().done - ); - } - var flipped = !1; - if (void 0 === a.size) - if (void 0 === b.size) 'function' == typeof a.cacheResult && a.cacheResult(); - else { - flipped = !0; - var _ = a; - (a = b), (b = _); - } - var allEqual = !0, - bSize = b.__iterate(function(v, k) { - if ( - notAssociative - ? !a.has(v) - : flipped ? !is(v, a.get(k, NOT_SET)) : !is(a.get(k, NOT_SET), v) - ) - return (allEqual = !1), !1; - }); - return allEqual && a.size === bSize; - } - function Repeat(value, times) { - if (!(this instanceof Repeat)) return new Repeat(value, times); - if ( - ((this._value = value), - (this.size = void 0 === times ? 1 / 0 : Math.max(0, times)), - 0 === this.size) - ) { - if (EMPTY_REPEAT) return EMPTY_REPEAT; - EMPTY_REPEAT = this; - } - } - function invariant(condition, error) { - if (!condition) throw new Error(error); - } - function Range(start, end, step) { - if (!(this instanceof Range)) return new Range(start, end, step); - if ( - (invariant(0 !== step, 'Cannot step a Range by 0'), - (start = start || 0), - void 0 === end && (end = 1 / 0), - (step = void 0 === step ? 1 : Math.abs(step)), - end < start && (step = -step), - (this._start = start), - (this._end = end), - (this._step = step), - (this.size = Math.max(0, Math.ceil((end - start) / step - 1) + 1)), - 0 === this.size) - ) { - if (EMPTY_RANGE) return EMPTY_RANGE; - EMPTY_RANGE = this; - } - } - function Collection() { - throw TypeError('Abstract'); - } - function KeyedCollection() {} - function IndexedCollection() {} - function SetCollection() {} - (Seq.prototype[IS_SEQ_SENTINEL] = !0), - createClass(ArraySeq, IndexedSeq), - (ArraySeq.prototype.get = function(index, notSetValue) { - return this.has(index) ? this._array[wrapIndex(this, index)] : notSetValue; - }), - (ArraySeq.prototype.__iterate = function(fn, reverse) { - for (var array = this._array, maxIndex = array.length - 1, ii = 0; ii <= maxIndex; ii++) - if (!1 === fn(array[reverse ? maxIndex - ii : ii], ii, this)) return ii + 1; - return ii; - }), - (ArraySeq.prototype.__iterator = function(type, reverse) { - var array = this._array, - maxIndex = array.length - 1, - ii = 0; - return new Iterator(function() { - return ii > maxIndex - ? { value: void 0, done: !0 } - : iteratorValue(type, ii, array[reverse ? maxIndex - ii++ : ii++]); - }); - }), - createClass(ObjectSeq, KeyedSeq), - (ObjectSeq.prototype.get = function(key, notSetValue) { - return void 0 === notSetValue || this.has(key) ? this._object[key] : notSetValue; - }), - (ObjectSeq.prototype.has = function(key) { - return this._object.hasOwnProperty(key); - }), - (ObjectSeq.prototype.__iterate = function(fn, reverse) { - for ( - var object = this._object, keys = this._keys, maxIndex = keys.length - 1, ii = 0; - ii <= maxIndex; - ii++ - ) { - var key = keys[reverse ? maxIndex - ii : ii]; - if (!1 === fn(object[key], key, this)) return ii + 1; - } - return ii; - }), - (ObjectSeq.prototype.__iterator = function(type, reverse) { - var object = this._object, - keys = this._keys, - maxIndex = keys.length - 1, - ii = 0; - return new Iterator(function() { - var key = keys[reverse ? maxIndex - ii : ii]; - return ii++ > maxIndex - ? { value: void 0, done: !0 } - : iteratorValue(type, key, object[key]); - }); - }), - (ObjectSeq.prototype[IS_ORDERED_SENTINEL] = !0), - createClass(IterableSeq, IndexedSeq), - (IterableSeq.prototype.__iterateUncached = function(fn, reverse) { - if (reverse) return this.cacheResult().__iterate(fn, reverse); - var iterator = getIterator(this._iterable), - iterations = 0; - if (isIterator(iterator)) - for ( - var step; - !(step = iterator.next()).done && !1 !== fn(step.value, iterations++, this); - - ); - return iterations; - }), - (IterableSeq.prototype.__iteratorUncached = function(type, reverse) { - if (reverse) return this.cacheResult().__iterator(type, reverse); - var iterator = getIterator(this._iterable); - if (!isIterator(iterator)) return new Iterator(iteratorDone); - var iterations = 0; - return new Iterator(function() { - var step = iterator.next(); - return step.done ? step : iteratorValue(type, iterations++, step.value); - }); - }), - createClass(IteratorSeq, IndexedSeq), - (IteratorSeq.prototype.__iterateUncached = function(fn, reverse) { - if (reverse) return this.cacheResult().__iterate(fn, reverse); - for ( - var step, iterator = this._iterator, cache = this._iteratorCache, iterations = 0; - iterations < cache.length; - - ) - if (!1 === fn(cache[iterations], iterations++, this)) return iterations; - for (; !(step = iterator.next()).done; ) { - var val = step.value; - if (((cache[iterations] = val), !1 === fn(val, iterations++, this))) break; - } - return iterations; - }), - (IteratorSeq.prototype.__iteratorUncached = function(type, reverse) { - if (reverse) return this.cacheResult().__iterator(type, reverse); - var iterator = this._iterator, - cache = this._iteratorCache, - iterations = 0; - return new Iterator(function() { - if (iterations >= cache.length) { - var step = iterator.next(); - if (step.done) return step; - cache[iterations] = step.value; - } - return iteratorValue(type, iterations, cache[iterations++]); - }); - }), - createClass(Repeat, IndexedSeq), - (Repeat.prototype.toString = function() { - return 0 === this.size - ? 'Repeat []' - : 'Repeat [ ' + this._value + ' ' + this.size + ' times ]'; - }), - (Repeat.prototype.get = function(index, notSetValue) { - return this.has(index) ? this._value : notSetValue; - }), - (Repeat.prototype.includes = function(searchValue) { - return is(this._value, searchValue); - }), - (Repeat.prototype.slice = function(begin, end) { - var size = this.size; - return wholeSlice(begin, end, size) - ? this - : new Repeat(this._value, resolveEnd(end, size) - resolveBegin(begin, size)); - }), - (Repeat.prototype.reverse = function() { - return this; - }), - (Repeat.prototype.indexOf = function(searchValue) { - return is(this._value, searchValue) ? 0 : -1; - }), - (Repeat.prototype.lastIndexOf = function(searchValue) { - return is(this._value, searchValue) ? this.size : -1; - }), - (Repeat.prototype.__iterate = function(fn, reverse) { - for (var ii = 0; ii < this.size; ii++) - if (!1 === fn(this._value, ii, this)) return ii + 1; - return ii; - }), - (Repeat.prototype.__iterator = function(type, reverse) { - var this$0 = this, - ii = 0; - return new Iterator(function() { - return ii < this$0.size - ? iteratorValue(type, ii++, this$0._value) - : { value: void 0, done: !0 }; - }); - }), - (Repeat.prototype.equals = function(other) { - return other instanceof Repeat ? is(this._value, other._value) : deepEqual(other); - }), - createClass(Range, IndexedSeq), - (Range.prototype.toString = function() { - return 0 === this.size - ? 'Range []' - : 'Range [ ' + - this._start + - '...' + - this._end + - (1 !== this._step ? ' by ' + this._step : '') + - ' ]'; - }), - (Range.prototype.get = function(index, notSetValue) { - return this.has(index) ? this._start + wrapIndex(this, index) * this._step : notSetValue; - }), - (Range.prototype.includes = function(searchValue) { - var possibleIndex = (searchValue - this._start) / this._step; - return ( - possibleIndex >= 0 && - possibleIndex < this.size && - possibleIndex === Math.floor(possibleIndex) - ); - }), - (Range.prototype.slice = function(begin, end) { - return wholeSlice(begin, end, this.size) - ? this - : ((begin = resolveBegin(begin, this.size)), - (end = resolveEnd(end, this.size)) <= begin - ? new Range(0, 0) - : new Range(this.get(begin, this._end), this.get(end, this._end), this._step)); - }), - (Range.prototype.indexOf = function(searchValue) { - var offsetValue = searchValue - this._start; - if (offsetValue % this._step == 0) { - var index = offsetValue / this._step; - if (index >= 0 && index < this.size) return index; - } - return -1; - }), - (Range.prototype.lastIndexOf = function(searchValue) { - return this.indexOf(searchValue); - }), - (Range.prototype.__iterate = function(fn, reverse) { - for ( - var maxIndex = this.size - 1, - step = this._step, - value = reverse ? this._start + maxIndex * step : this._start, - ii = 0; - ii <= maxIndex; - ii++ - ) { - if (!1 === fn(value, ii, this)) return ii + 1; - value += reverse ? -step : step; - } - return ii; - }), - (Range.prototype.__iterator = function(type, reverse) { - var maxIndex = this.size - 1, - step = this._step, - value = reverse ? this._start + maxIndex * step : this._start, - ii = 0; - return new Iterator(function() { - var v = value; - return ( - (value += reverse ? -step : step), - ii > maxIndex ? { value: void 0, done: !0 } : iteratorValue(type, ii++, v) - ); - }); - }), - (Range.prototype.equals = function(other) { - return other instanceof Range - ? this._start === other._start && this._end === other._end && this._step === other._step - : deepEqual(this, other); - }), - createClass(Collection, Iterable), - createClass(KeyedCollection, Collection), - createClass(IndexedCollection, Collection), - createClass(SetCollection, Collection), - (Collection.Keyed = KeyedCollection), - (Collection.Indexed = IndexedCollection), - (Collection.Set = SetCollection); - var imul = - 'function' == typeof Math.imul && -2 === Math.imul(4294967295, 2) - ? Math.imul - : function imul(a, b) { - var c = 65535 & (a |= 0), - d = 65535 & (b |= 0); - return (c * d + ((((a >>> 16) * d + c * (b >>> 16)) << 16) >>> 0)) | 0; - }; - function smi(i32) { - return ((i32 >>> 1) & 1073741824) | (3221225471 & i32); - } - function hash(o) { - if (!1 === o || null === o || void 0 === o) return 0; - if ( - 'function' == typeof o.valueOf && - (!1 === (o = o.valueOf()) || null === o || void 0 === o) - ) - return 0; - if (!0 === o) return 1; - var type = typeof o; - if ('number' === type) { - if (o != o || o === 1 / 0) return 0; - var h = 0 | o; - for (h !== o && (h ^= 4294967295 * o); o > 4294967295; ) h ^= o /= 4294967295; - return smi(h); - } - if ('string' === type) - return o.length > STRING_HASH_CACHE_MIN_STRLEN - ? (function cachedHashString(string) { - var hash = stringHashCache[string]; - void 0 === hash && - ((hash = hashString(string)), - STRING_HASH_CACHE_SIZE === STRING_HASH_CACHE_MAX_SIZE && - ((STRING_HASH_CACHE_SIZE = 0), (stringHashCache = {})), - STRING_HASH_CACHE_SIZE++, - (stringHashCache[string] = hash)); - return hash; - })(o) - : hashString(o); - if ('function' == typeof o.hashCode) return o.hashCode(); - if ('object' === type) - return (function hashJSObj(obj) { - var hash; - if (usingWeakMap && void 0 !== (hash = weakMap.get(obj))) return hash; - if (void 0 !== (hash = obj[UID_HASH_KEY])) return hash; - if (!canDefineProperty) { - if ( - void 0 !== - (hash = obj.propertyIsEnumerable && obj.propertyIsEnumerable[UID_HASH_KEY]) - ) - return hash; - if ( - void 0 !== - (hash = (function getIENodeHash(node) { - if (node && node.nodeType > 0) - switch (node.nodeType) { - case 1: - return node.uniqueID; - case 9: - return node.documentElement && node.documentElement.uniqueID; - } - })(obj)) - ) - return hash; - } - (hash = ++objHashUID), 1073741824 & objHashUID && (objHashUID = 0); - if (usingWeakMap) weakMap.set(obj, hash); - else { - if (void 0 !== isExtensible && !1 === isExtensible(obj)) - throw new Error('Non-extensible objects are not allowed as keys.'); - if (canDefineProperty) - Object.defineProperty(obj, UID_HASH_KEY, { - enumerable: !1, - configurable: !1, - writable: !1, - value: hash - }); - else if ( - void 0 !== obj.propertyIsEnumerable && - obj.propertyIsEnumerable === obj.constructor.prototype.propertyIsEnumerable - ) - (obj.propertyIsEnumerable = function() { - return this.constructor.prototype.propertyIsEnumerable.apply(this, arguments); - }), - (obj.propertyIsEnumerable[UID_HASH_KEY] = hash); - else { - if (void 0 === obj.nodeType) - throw new Error('Unable to set a non-enumerable property on object.'); - obj[UID_HASH_KEY] = hash; - } - } - return hash; - })(o); - if ('function' == typeof o.toString) return hashString(o.toString()); - throw new Error('Value type ' + type + ' cannot be hashed.'); - } - function hashString(string) { - for (var hash = 0, ii = 0; ii < string.length; ii++) - hash = (31 * hash + string.charCodeAt(ii)) | 0; - return smi(hash); - } - var isExtensible = Object.isExtensible, - canDefineProperty = (function() { - try { - return Object.defineProperty({}, '@', {}), !0; - } catch (e) { - return !1; - } - })(); - var weakMap, - usingWeakMap = 'function' == typeof WeakMap; - usingWeakMap && (weakMap = new WeakMap()); - var objHashUID = 0, - UID_HASH_KEY = '__immutablehash__'; - 'function' == typeof Symbol && (UID_HASH_KEY = Symbol(UID_HASH_KEY)); - var STRING_HASH_CACHE_MIN_STRLEN = 16, - STRING_HASH_CACHE_MAX_SIZE = 255, - STRING_HASH_CACHE_SIZE = 0, - stringHashCache = {}; - function assertNotInfinite(size) { - invariant(size !== 1 / 0, 'Cannot perform this action with an infinite size.'); - } - function Map(value) { - return null === value || void 0 === value - ? emptyMap() - : isMap(value) && !isOrdered(value) - ? value - : emptyMap().withMutations(function(map) { - var iter = KeyedIterable(value); - assertNotInfinite(iter.size), - iter.forEach(function(v, k) { - return map.set(k, v); - }); - }); - } - function isMap(maybeMap) { - return !(!maybeMap || !maybeMap[IS_MAP_SENTINEL]); - } - createClass(Map, KeyedCollection), - (Map.of = function() { - var keyValues = SLICE$0.call(arguments, 0); - return emptyMap().withMutations(function(map) { - for (var i = 0; i < keyValues.length; i += 2) { - if (i + 1 >= keyValues.length) - throw new Error('Missing value for key: ' + keyValues[i]); - map.set(keyValues[i], keyValues[i + 1]); - } - }); - }), - (Map.prototype.toString = function() { - return this.__toString('Map {', '}'); - }), - (Map.prototype.get = function(k, notSetValue) { - return this._root ? this._root.get(0, void 0, k, notSetValue) : notSetValue; - }), - (Map.prototype.set = function(k, v) { - return updateMap(this, k, v); - }), - (Map.prototype.setIn = function(keyPath, v) { - return this.updateIn(keyPath, NOT_SET, function() { - return v; - }); - }), - (Map.prototype.remove = function(k) { - return updateMap(this, k, NOT_SET); - }), - (Map.prototype.deleteIn = function(keyPath) { - return this.updateIn(keyPath, function() { - return NOT_SET; - }); - }), - (Map.prototype.update = function(k, notSetValue, updater) { - return 1 === arguments.length ? k(this) : this.updateIn([k], notSetValue, updater); - }), - (Map.prototype.updateIn = function(keyPath, notSetValue, updater) { - updater || ((updater = notSetValue), (notSetValue = void 0)); - var updatedValue = (function updateInDeepMap( - existing, - keyPathIter, - notSetValue, - updater - ) { - var isNotSet = existing === NOT_SET; - var step = keyPathIter.next(); - if (step.done) { - var existingValue = isNotSet ? notSetValue : existing, - newValue = updater(existingValue); - return newValue === existingValue ? existing : newValue; - } - invariant(isNotSet || (existing && existing.set), 'invalid keyPath'); - var key = step.value; - var nextExisting = isNotSet ? NOT_SET : existing.get(key, NOT_SET); - var nextUpdated = updateInDeepMap(nextExisting, keyPathIter, notSetValue, updater); - return nextUpdated === nextExisting - ? existing - : nextUpdated === NOT_SET - ? existing.remove(key) - : (isNotSet ? emptyMap() : existing).set(key, nextUpdated); - })(this, forceIterator(keyPath), notSetValue, updater); - return updatedValue === NOT_SET ? void 0 : updatedValue; - }), - (Map.prototype.clear = function() { - return 0 === this.size - ? this - : this.__ownerID - ? ((this.size = 0), - (this._root = null), - (this.__hash = void 0), - (this.__altered = !0), - this) - : emptyMap(); - }), - (Map.prototype.merge = function() { - return mergeIntoMapWith(this, void 0, arguments); - }), - (Map.prototype.mergeWith = function(merger) { - return mergeIntoMapWith(this, merger, SLICE$0.call(arguments, 1)); - }), - (Map.prototype.mergeIn = function(keyPath) { - var iters = SLICE$0.call(arguments, 1); - return this.updateIn(keyPath, emptyMap(), function(m) { - return 'function' == typeof m.merge ? m.merge.apply(m, iters) : iters[iters.length - 1]; - }); - }), - (Map.prototype.mergeDeep = function() { - return mergeIntoMapWith(this, deepMerger, arguments); - }), - (Map.prototype.mergeDeepWith = function(merger) { - var iters = SLICE$0.call(arguments, 1); - return mergeIntoMapWith(this, deepMergerWith(merger), iters); - }), - (Map.prototype.mergeDeepIn = function(keyPath) { - var iters = SLICE$0.call(arguments, 1); - return this.updateIn(keyPath, emptyMap(), function(m) { - return 'function' == typeof m.mergeDeep - ? m.mergeDeep.apply(m, iters) - : iters[iters.length - 1]; - }); - }), - (Map.prototype.sort = function(comparator) { - return OrderedMap(sortFactory(this, comparator)); - }), - (Map.prototype.sortBy = function(mapper, comparator) { - return OrderedMap(sortFactory(this, comparator, mapper)); - }), - (Map.prototype.withMutations = function(fn) { - var mutable = this.asMutable(); - return fn(mutable), mutable.wasAltered() ? mutable.__ensureOwner(this.__ownerID) : this; - }), - (Map.prototype.asMutable = function() { - return this.__ownerID ? this : this.__ensureOwner(new OwnerID()); - }), - (Map.prototype.asImmutable = function() { - return this.__ensureOwner(); - }), - (Map.prototype.wasAltered = function() { - return this.__altered; - }), - (Map.prototype.__iterator = function(type, reverse) { - return new MapIterator(this, type, reverse); - }), - (Map.prototype.__iterate = function(fn, reverse) { - var this$0 = this, - iterations = 0; - return ( - this._root && - this._root.iterate(function(entry) { - return iterations++, fn(entry[1], entry[0], this$0); - }, reverse), - iterations - ); - }), - (Map.prototype.__ensureOwner = function(ownerID) { - return ownerID === this.__ownerID - ? this - : ownerID - ? makeMap(this.size, this._root, ownerID, this.__hash) - : ((this.__ownerID = ownerID), (this.__altered = !1), this); - }), - (Map.isMap = isMap); - var EMPTY_MAP, - IS_MAP_SENTINEL = '@@__IMMUTABLE_MAP__@@', - MapPrototype = Map.prototype; - function ArrayMapNode(ownerID, entries) { - (this.ownerID = ownerID), (this.entries = entries); - } - function BitmapIndexedNode(ownerID, bitmap, nodes) { - (this.ownerID = ownerID), (this.bitmap = bitmap), (this.nodes = nodes); - } - function HashArrayMapNode(ownerID, count, nodes) { - (this.ownerID = ownerID), (this.count = count), (this.nodes = nodes); - } - function HashCollisionNode(ownerID, keyHash, entries) { - (this.ownerID = ownerID), (this.keyHash = keyHash), (this.entries = entries); - } - function ValueNode(ownerID, keyHash, entry) { - (this.ownerID = ownerID), (this.keyHash = keyHash), (this.entry = entry); - } - function MapIterator(map, type, reverse) { - (this._type = type), - (this._reverse = reverse), - (this._stack = map._root && mapIteratorFrame(map._root)); - } - function mapIteratorValue(type, entry) { - return iteratorValue(type, entry[0], entry[1]); - } - function mapIteratorFrame(node, prev) { - return { node: node, index: 0, __prev: prev }; - } - function makeMap(size, root, ownerID, hash) { - var map = Object.create(MapPrototype); - return ( - (map.size = size), - (map._root = root), - (map.__ownerID = ownerID), - (map.__hash = hash), - (map.__altered = !1), - map - ); - } - function emptyMap() { - return EMPTY_MAP || (EMPTY_MAP = makeMap(0)); - } - function updateMap(map, k, v) { - var newRoot, newSize; - if (map._root) { - var didChangeSize = MakeRef(CHANGE_LENGTH), - didAlter = MakeRef(DID_ALTER); - if ( - ((newRoot = updateNode( - map._root, - map.__ownerID, - 0, - void 0, - k, - v, - didChangeSize, - didAlter - )), - !didAlter.value) - ) - return map; - newSize = map.size + (didChangeSize.value ? (v === NOT_SET ? -1 : 1) : 0); - } else { - if (v === NOT_SET) return map; - (newSize = 1), (newRoot = new ArrayMapNode(map.__ownerID, [[k, v]])); - } - return map.__ownerID - ? ((map.size = newSize), - (map._root = newRoot), - (map.__hash = void 0), - (map.__altered = !0), - map) - : newRoot ? makeMap(newSize, newRoot) : emptyMap(); - } - function updateNode(node, ownerID, shift, keyHash, key, value, didChangeSize, didAlter) { - return node - ? node.update(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) - : value === NOT_SET - ? node - : (SetRef(didAlter), - SetRef(didChangeSize), - new ValueNode(ownerID, keyHash, [key, value])); - } - function isLeafNode(node) { - return node.constructor === ValueNode || node.constructor === HashCollisionNode; - } - function mergeIntoNode(node, ownerID, shift, keyHash, entry) { - if (node.keyHash === keyHash) - return new HashCollisionNode(ownerID, keyHash, [node.entry, entry]); - var newNode, - idx1 = (0 === shift ? node.keyHash : node.keyHash >>> shift) & MASK, - idx2 = (0 === shift ? keyHash : keyHash >>> shift) & MASK; - return new BitmapIndexedNode( - ownerID, - (1 << idx1) | (1 << idx2), - idx1 === idx2 - ? [mergeIntoNode(node, ownerID, shift + SHIFT, keyHash, entry)] - : ((newNode = new ValueNode(ownerID, keyHash, entry)), - idx1 < idx2 ? [node, newNode] : [newNode, node]) - ); - } - function mergeIntoMapWith(map, merger, iterables) { - for (var iters = [], ii = 0; ii < iterables.length; ii++) { - var value = iterables[ii], - iter = KeyedIterable(value); - isIterable(value) || - (iter = iter.map(function(v) { - return fromJS(v); - })), - iters.push(iter); - } - return mergeIntoCollectionWith(map, merger, iters); - } - function deepMerger(existing, value, key) { - return existing && existing.mergeDeep && isIterable(value) - ? existing.mergeDeep(value) - : is(existing, value) ? existing : value; - } - function deepMergerWith(merger) { - return function(existing, value, key) { - if (existing && existing.mergeDeepWith && isIterable(value)) - return existing.mergeDeepWith(merger, value); - var nextValue = merger(existing, value, key); - return is(existing, nextValue) ? existing : nextValue; - }; - } - function mergeIntoCollectionWith(collection, merger, iters) { - return 0 === - (iters = iters.filter(function(x) { - return 0 !== x.size; - })).length - ? collection - : 0 !== collection.size || collection.__ownerID || 1 !== iters.length - ? collection.withMutations(function(collection) { - for ( - var mergeIntoMap = merger - ? function(value, key) { - collection.update(key, NOT_SET, function(existing) { - return existing === NOT_SET ? value : merger(existing, value, key); - }); - } - : function(value, key) { - collection.set(key, value); - }, - ii = 0; - ii < iters.length; - ii++ - ) - iters[ii].forEach(mergeIntoMap); - }) - : collection.constructor(iters[0]); - } - function popCount(x) { - return ( - (x = - ((x = (858993459 & (x -= (x >> 1) & 1431655765)) + ((x >> 2) & 858993459)) + (x >> 4)) & - 252645135), - (x += x >> 8), - 127 & (x += x >> 16) - ); - } - function setIn(array, idx, val, canEdit) { - var newArray = canEdit ? array : arrCopy(array); - return (newArray[idx] = val), newArray; - } - (MapPrototype[IS_MAP_SENTINEL] = !0), - (MapPrototype.delete = MapPrototype.remove), - (MapPrototype.removeIn = MapPrototype.deleteIn), - (ArrayMapNode.prototype.get = function(shift, keyHash, key, notSetValue) { - for (var entries = this.entries, ii = 0, len = entries.length; ii < len; ii++) - if (is(key, entries[ii][0])) return entries[ii][1]; - return notSetValue; - }), - (ArrayMapNode.prototype.update = function( - ownerID, - shift, - keyHash, - key, - value, - didChangeSize, - didAlter - ) { - for ( - var removed = value === NOT_SET, entries = this.entries, idx = 0, len = entries.length; - idx < len && !is(key, entries[idx][0]); - idx++ - ); - var exists = idx < len; - if (exists ? entries[idx][1] === value : removed) return this; - if ( - (SetRef(didAlter), - (removed || !exists) && SetRef(didChangeSize), - !removed || 1 !== entries.length) - ) { - if (!exists && !removed && entries.length >= MAX_ARRAY_MAP_SIZE) - return (function createNodes(ownerID, entries, key, value) { - ownerID || (ownerID = new OwnerID()); - for ( - var node = new ValueNode(ownerID, hash(key), [key, value]), ii = 0; - ii < entries.length; - ii++ - ) { - var entry = entries[ii]; - node = node.update(ownerID, 0, void 0, entry[0], entry[1]); - } - return node; - })(ownerID, entries, key, value); - var isEditable = ownerID && ownerID === this.ownerID, - newEntries = isEditable ? entries : arrCopy(entries); - return ( - exists - ? removed - ? idx === len - 1 ? newEntries.pop() : (newEntries[idx] = newEntries.pop()) - : (newEntries[idx] = [key, value]) - : newEntries.push([key, value]), - isEditable - ? ((this.entries = newEntries), this) - : new ArrayMapNode(ownerID, newEntries) - ); - } - }), - (BitmapIndexedNode.prototype.get = function(shift, keyHash, key, notSetValue) { - void 0 === keyHash && (keyHash = hash(key)); - var bit = 1 << ((0 === shift ? keyHash : keyHash >>> shift) & MASK), - bitmap = this.bitmap; - return 0 == (bitmap & bit) - ? notSetValue - : this.nodes[popCount(bitmap & (bit - 1))].get( - shift + SHIFT, - keyHash, - key, - notSetValue - ); - }), - (BitmapIndexedNode.prototype.update = function( - ownerID, - shift, - keyHash, - key, - value, - didChangeSize, - didAlter - ) { - void 0 === keyHash && (keyHash = hash(key)); - var keyHashFrag = (0 === shift ? keyHash : keyHash >>> shift) & MASK, - bit = 1 << keyHashFrag, - bitmap = this.bitmap, - exists = 0 != (bitmap & bit); - if (!exists && value === NOT_SET) return this; - var idx = popCount(bitmap & (bit - 1)), - nodes = this.nodes, - node = exists ? nodes[idx] : void 0, - newNode = updateNode( - node, - ownerID, - shift + SHIFT, - keyHash, - key, - value, - didChangeSize, - didAlter - ); - if (newNode === node) return this; - if (!exists && newNode && nodes.length >= MAX_BITMAP_INDEXED_SIZE) - return (function expandNodes(ownerID, nodes, bitmap, including, node) { - for ( - var count = 0, expandedNodes = new Array(SIZE), ii = 0; - 0 !== bitmap; - ii++, bitmap >>>= 1 - ) - expandedNodes[ii] = 1 & bitmap ? nodes[count++] : void 0; - return ( - (expandedNodes[including] = node), - new HashArrayMapNode(ownerID, count + 1, expandedNodes) - ); - })(ownerID, nodes, bitmap, keyHashFrag, newNode); - if (exists && !newNode && 2 === nodes.length && isLeafNode(nodes[1 ^ idx])) - return nodes[1 ^ idx]; - if (exists && newNode && 1 === nodes.length && isLeafNode(newNode)) return newNode; - var isEditable = ownerID && ownerID === this.ownerID, - newBitmap = exists ? (newNode ? bitmap : bitmap ^ bit) : bitmap | bit, - newNodes = exists - ? newNode - ? setIn(nodes, idx, newNode, isEditable) - : (function spliceOut(array, idx, canEdit) { - var newLen = array.length - 1; - if (canEdit && idx === newLen) return array.pop(), array; - for (var newArray = new Array(newLen), after = 0, ii = 0; ii < newLen; ii++) - ii === idx && (after = 1), (newArray[ii] = array[ii + after]); - return newArray; - })(nodes, idx, isEditable) - : (function spliceIn(array, idx, val, canEdit) { - var newLen = array.length + 1; - if (canEdit && idx + 1 === newLen) return (array[idx] = val), array; - for (var newArray = new Array(newLen), after = 0, ii = 0; ii < newLen; ii++) - ii === idx - ? ((newArray[ii] = val), (after = -1)) - : (newArray[ii] = array[ii + after]); - return newArray; - })(nodes, idx, newNode, isEditable); - return isEditable - ? ((this.bitmap = newBitmap), (this.nodes = newNodes), this) - : new BitmapIndexedNode(ownerID, newBitmap, newNodes); - }), - (HashArrayMapNode.prototype.get = function(shift, keyHash, key, notSetValue) { - void 0 === keyHash && (keyHash = hash(key)); - var idx = (0 === shift ? keyHash : keyHash >>> shift) & MASK, - node = this.nodes[idx]; - return node ? node.get(shift + SHIFT, keyHash, key, notSetValue) : notSetValue; - }), - (HashArrayMapNode.prototype.update = function( - ownerID, - shift, - keyHash, - key, - value, - didChangeSize, - didAlter - ) { - void 0 === keyHash && (keyHash = hash(key)); - var idx = (0 === shift ? keyHash : keyHash >>> shift) & MASK, - removed = value === NOT_SET, - nodes = this.nodes, - node = nodes[idx]; - if (removed && !node) return this; - var newNode = updateNode( - node, - ownerID, - shift + SHIFT, - keyHash, - key, - value, - didChangeSize, - didAlter - ); - if (newNode === node) return this; - var newCount = this.count; - if (node) { - if (!newNode && --newCount < MIN_HASH_ARRAY_MAP_SIZE) - return (function packNodes(ownerID, nodes, count, excluding) { - for ( - var bitmap = 0, - packedII = 0, - packedNodes = new Array(count), - ii = 0, - bit = 1, - len = nodes.length; - ii < len; - ii++, bit <<= 1 - ) { - var node = nodes[ii]; - void 0 !== node && - ii !== excluding && - ((bitmap |= bit), (packedNodes[packedII++] = node)); - } - return new BitmapIndexedNode(ownerID, bitmap, packedNodes); - })(ownerID, nodes, newCount, idx); - } else newCount++; - var isEditable = ownerID && ownerID === this.ownerID, - newNodes = setIn(nodes, idx, newNode, isEditable); - return isEditable - ? ((this.count = newCount), (this.nodes = newNodes), this) - : new HashArrayMapNode(ownerID, newCount, newNodes); - }), - (HashCollisionNode.prototype.get = function(shift, keyHash, key, notSetValue) { - for (var entries = this.entries, ii = 0, len = entries.length; ii < len; ii++) - if (is(key, entries[ii][0])) return entries[ii][1]; - return notSetValue; - }), - (HashCollisionNode.prototype.update = function( - ownerID, - shift, - keyHash, - key, - value, - didChangeSize, - didAlter - ) { - void 0 === keyHash && (keyHash = hash(key)); - var removed = value === NOT_SET; - if (keyHash !== this.keyHash) - return removed - ? this - : (SetRef(didAlter), - SetRef(didChangeSize), - mergeIntoNode(this, ownerID, shift, keyHash, [key, value])); - for ( - var entries = this.entries, idx = 0, len = entries.length; - idx < len && !is(key, entries[idx][0]); - idx++ - ); - var exists = idx < len; - if (exists ? entries[idx][1] === value : removed) return this; - if ( - (SetRef(didAlter), (removed || !exists) && SetRef(didChangeSize), removed && 2 === len) - ) - return new ValueNode(ownerID, this.keyHash, entries[1 ^ idx]); - var isEditable = ownerID && ownerID === this.ownerID, - newEntries = isEditable ? entries : arrCopy(entries); - return ( - exists - ? removed - ? idx === len - 1 ? newEntries.pop() : (newEntries[idx] = newEntries.pop()) - : (newEntries[idx] = [key, value]) - : newEntries.push([key, value]), - isEditable - ? ((this.entries = newEntries), this) - : new HashCollisionNode(ownerID, this.keyHash, newEntries) - ); - }), - (ValueNode.prototype.get = function(shift, keyHash, key, notSetValue) { - return is(key, this.entry[0]) ? this.entry[1] : notSetValue; - }), - (ValueNode.prototype.update = function( - ownerID, - shift, - keyHash, - key, - value, - didChangeSize, - didAlter - ) { - var removed = value === NOT_SET, - keyMatch = is(key, this.entry[0]); - return (keyMatch ? value === this.entry[1] : removed) - ? this - : (SetRef(didAlter), - removed - ? void SetRef(didChangeSize) - : keyMatch - ? ownerID && ownerID === this.ownerID - ? ((this.entry[1] = value), this) - : new ValueNode(ownerID, this.keyHash, [key, value]) - : (SetRef(didChangeSize), - mergeIntoNode(this, ownerID, shift, hash(key), [key, value]))); - }), - (ArrayMapNode.prototype.iterate = HashCollisionNode.prototype.iterate = function( - fn, - reverse - ) { - for ( - var entries = this.entries, ii = 0, maxIndex = entries.length - 1; - ii <= maxIndex; - ii++ - ) - if (!1 === fn(entries[reverse ? maxIndex - ii : ii])) return !1; - }), - (BitmapIndexedNode.prototype.iterate = HashArrayMapNode.prototype.iterate = function( - fn, - reverse - ) { - for (var nodes = this.nodes, ii = 0, maxIndex = nodes.length - 1; ii <= maxIndex; ii++) { - var node = nodes[reverse ? maxIndex - ii : ii]; - if (node && !1 === node.iterate(fn, reverse)) return !1; - } - }), - (ValueNode.prototype.iterate = function(fn, reverse) { - return fn(this.entry); - }), - createClass(MapIterator, Iterator), - (MapIterator.prototype.next = function() { - for (var type = this._type, stack = this._stack; stack; ) { - var maxIndex, - node = stack.node, - index = stack.index++; - if (node.entry) { - if (0 === index) return mapIteratorValue(type, node.entry); - } else if (node.entries) { - if (index <= (maxIndex = node.entries.length - 1)) - return mapIteratorValue( - type, - node.entries[this._reverse ? maxIndex - index : index] - ); - } else if (index <= (maxIndex = node.nodes.length - 1)) { - var subNode = node.nodes[this._reverse ? maxIndex - index : index]; - if (subNode) { - if (subNode.entry) return mapIteratorValue(type, subNode.entry); - stack = this._stack = mapIteratorFrame(subNode, stack); - } - continue; - } - stack = this._stack = this._stack.__prev; - } - return { value: void 0, done: !0 }; - }); - var MAX_ARRAY_MAP_SIZE = SIZE / 4, - MAX_BITMAP_INDEXED_SIZE = SIZE / 2, - MIN_HASH_ARRAY_MAP_SIZE = SIZE / 4; - function List(value) { - var empty = emptyList(); - if (null === value || void 0 === value) return empty; - if (isList(value)) return value; - var iter = IndexedIterable(value), - size = iter.size; - return 0 === size - ? empty - : (assertNotInfinite(size), - size > 0 && size < SIZE - ? makeList(0, size, SHIFT, null, new VNode(iter.toArray())) - : empty.withMutations(function(list) { - list.setSize(size), - iter.forEach(function(v, i) { - return list.set(i, v); - }); - })); - } - function isList(maybeList) { - return !(!maybeList || !maybeList[IS_LIST_SENTINEL]); - } - createClass(List, IndexedCollection), - (List.of = function() { - return this(arguments); - }), - (List.prototype.toString = function() { - return this.__toString('List [', ']'); - }), - (List.prototype.get = function(index, notSetValue) { - if ((index = wrapIndex(this, index)) >= 0 && index < this.size) { - var node = listNodeFor(this, (index += this._origin)); - return node && node.array[index & MASK]; - } - return notSetValue; - }), - (List.prototype.set = function(index, value) { - return (function updateList(list, index, value) { - if ((index = wrapIndex(list, index)) != index) return list; - if (index >= list.size || index < 0) - return list.withMutations(function(list) { - index < 0 - ? setListBounds(list, index).set(0, value) - : setListBounds(list, 0, index + 1).set(index, value); - }); - index += list._origin; - var newTail = list._tail, - newRoot = list._root, - didAlter = MakeRef(DID_ALTER); - index >= getTailOffset(list._capacity) - ? (newTail = updateVNode(newTail, list.__ownerID, 0, index, value, didAlter)) - : (newRoot = updateVNode( - newRoot, - list.__ownerID, - list._level, - index, - value, - didAlter - )); - if (!didAlter.value) return list; - if (list.__ownerID) - return ( - (list._root = newRoot), - (list._tail = newTail), - (list.__hash = void 0), - (list.__altered = !0), - list - ); - return makeList(list._origin, list._capacity, list._level, newRoot, newTail); - })(this, index, value); - }), - (List.prototype.remove = function(index) { - return this.has(index) - ? 0 === index - ? this.shift() - : index === this.size - 1 ? this.pop() : this.splice(index, 1) - : this; - }), - (List.prototype.insert = function(index, value) { - return this.splice(index, 0, value); - }), - (List.prototype.clear = function() { - return 0 === this.size - ? this - : this.__ownerID - ? ((this.size = this._origin = this._capacity = 0), - (this._level = SHIFT), - (this._root = this._tail = null), - (this.__hash = void 0), - (this.__altered = !0), - this) - : emptyList(); - }), - (List.prototype.push = function() { - var values = arguments, - oldSize = this.size; - return this.withMutations(function(list) { - setListBounds(list, 0, oldSize + values.length); - for (var ii = 0; ii < values.length; ii++) list.set(oldSize + ii, values[ii]); - }); - }), - (List.prototype.pop = function() { - return setListBounds(this, 0, -1); - }), - (List.prototype.unshift = function() { - var values = arguments; - return this.withMutations(function(list) { - setListBounds(list, -values.length); - for (var ii = 0; ii < values.length; ii++) list.set(ii, values[ii]); - }); - }), - (List.prototype.shift = function() { - return setListBounds(this, 1); - }), - (List.prototype.merge = function() { - return mergeIntoListWith(this, void 0, arguments); - }), - (List.prototype.mergeWith = function(merger) { - return mergeIntoListWith(this, merger, SLICE$0.call(arguments, 1)); - }), - (List.prototype.mergeDeep = function() { - return mergeIntoListWith(this, deepMerger, arguments); - }), - (List.prototype.mergeDeepWith = function(merger) { - var iters = SLICE$0.call(arguments, 1); - return mergeIntoListWith(this, deepMergerWith(merger), iters); - }), - (List.prototype.setSize = function(size) { - return setListBounds(this, 0, size); - }), - (List.prototype.slice = function(begin, end) { - var size = this.size; - return wholeSlice(begin, end, size) - ? this - : setListBounds(this, resolveBegin(begin, size), resolveEnd(end, size)); - }), - (List.prototype.__iterator = function(type, reverse) { - var index = 0, - values = iterateList(this, reverse); - return new Iterator(function() { - var value = values(); - return value === DONE - ? { value: void 0, done: !0 } - : iteratorValue(type, index++, value); - }); - }), - (List.prototype.__iterate = function(fn, reverse) { - for ( - var value, index = 0, values = iterateList(this, reverse); - (value = values()) !== DONE && !1 !== fn(value, index++, this); - - ); - return index; - }), - (List.prototype.__ensureOwner = function(ownerID) { - return ownerID === this.__ownerID - ? this - : ownerID - ? makeList( - this._origin, - this._capacity, - this._level, - this._root, - this._tail, - ownerID, - this.__hash - ) - : ((this.__ownerID = ownerID), this); - }), - (List.isList = isList); - var IS_LIST_SENTINEL = '@@__IMMUTABLE_LIST__@@', - ListPrototype = List.prototype; - function VNode(array, ownerID) { - (this.array = array), (this.ownerID = ownerID); - } - (ListPrototype[IS_LIST_SENTINEL] = !0), - (ListPrototype.delete = ListPrototype.remove), - (ListPrototype.setIn = MapPrototype.setIn), - (ListPrototype.deleteIn = ListPrototype.removeIn = MapPrototype.removeIn), - (ListPrototype.update = MapPrototype.update), - (ListPrototype.updateIn = MapPrototype.updateIn), - (ListPrototype.mergeIn = MapPrototype.mergeIn), - (ListPrototype.mergeDeepIn = MapPrototype.mergeDeepIn), - (ListPrototype.withMutations = MapPrototype.withMutations), - (ListPrototype.asMutable = MapPrototype.asMutable), - (ListPrototype.asImmutable = MapPrototype.asImmutable), - (ListPrototype.wasAltered = MapPrototype.wasAltered), - (VNode.prototype.removeBefore = function(ownerID, level, index) { - if (index === level ? 1 << level : 0 === this.array.length) return this; - var originIndex = (index >>> level) & MASK; - if (originIndex >= this.array.length) return new VNode([], ownerID); - var newChild, - removingFirst = 0 === originIndex; - if (level > 0) { - var oldChild = this.array[originIndex]; - if ( - (newChild = oldChild && oldChild.removeBefore(ownerID, level - SHIFT, index)) === - oldChild && - removingFirst - ) - return this; - } - if (removingFirst && !newChild) return this; - var editable = editableVNode(this, ownerID); - if (!removingFirst) for (var ii = 0; ii < originIndex; ii++) editable.array[ii] = void 0; - return newChild && (editable.array[originIndex] = newChild), editable; - }), - (VNode.prototype.removeAfter = function(ownerID, level, index) { - if (index === (level ? 1 << level : 0) || 0 === this.array.length) return this; - var newChild, - sizeIndex = ((index - 1) >>> level) & MASK; - if (sizeIndex >= this.array.length) return this; - if (level > 0) { - var oldChild = this.array[sizeIndex]; - if ( - (newChild = oldChild && oldChild.removeAfter(ownerID, level - SHIFT, index)) === - oldChild && - sizeIndex === this.array.length - 1 - ) - return this; - } - var editable = editableVNode(this, ownerID); - return ( - editable.array.splice(sizeIndex + 1), - newChild && (editable.array[sizeIndex] = newChild), - editable - ); - }); - var EMPTY_LIST, - EMPTY_ORDERED_MAP, - DONE = {}; - function iterateList(list, reverse) { - var left = list._origin, - right = list._capacity, - tailPos = getTailOffset(right), - tail = list._tail; - return iterateNodeOrLeaf(list._root, list._level, 0); - function iterateNodeOrLeaf(node, level, offset) { - return 0 === level - ? (function iterateLeaf(node, offset) { - var array = offset === tailPos ? tail && tail.array : node && node.array, - from = offset > left ? 0 : left - offset, - to = right - offset; - to > SIZE && (to = SIZE); - return function() { - if (from === to) return DONE; - var idx = reverse ? --to : from++; - return array && array[idx]; - }; - })(node, offset) - : (function iterateNode(node, level, offset) { - var values, - array = node && node.array, - from = offset > left ? 0 : (left - offset) >> level, - to = 1 + ((right - offset) >> level); - to > SIZE && (to = SIZE); - return function() { - for (;;) { - if (values) { - var value = values(); - if (value !== DONE) return value; - values = null; - } - if (from === to) return DONE; - var idx = reverse ? --to : from++; - values = iterateNodeOrLeaf( - array && array[idx], - level - SHIFT, - offset + (idx << level) - ); - } - }; - })(node, level, offset); - } - } - function makeList(origin, capacity, level, root, tail, ownerID, hash) { - var list = Object.create(ListPrototype); - return ( - (list.size = capacity - origin), - (list._origin = origin), - (list._capacity = capacity), - (list._level = level), - (list._root = root), - (list._tail = tail), - (list.__ownerID = ownerID), - (list.__hash = hash), - (list.__altered = !1), - list - ); - } - function emptyList() { - return EMPTY_LIST || (EMPTY_LIST = makeList(0, 0, SHIFT)); - } - function updateVNode(node, ownerID, level, index, value, didAlter) { - var newNode, - idx = (index >>> level) & MASK, - nodeHas = node && idx < node.array.length; - if (!nodeHas && void 0 === value) return node; - if (level > 0) { - var lowerNode = node && node.array[idx], - newLowerNode = updateVNode(lowerNode, ownerID, level - SHIFT, index, value, didAlter); - return newLowerNode === lowerNode - ? node - : (((newNode = editableVNode(node, ownerID)).array[idx] = newLowerNode), newNode); - } - return nodeHas && node.array[idx] === value - ? node - : (SetRef(didAlter), - (newNode = editableVNode(node, ownerID)), - void 0 === value && idx === newNode.array.length - 1 - ? newNode.array.pop() - : (newNode.array[idx] = value), - newNode); - } - function editableVNode(node, ownerID) { - return ownerID && node && ownerID === node.ownerID - ? node - : new VNode(node ? node.array.slice() : [], ownerID); - } - function listNodeFor(list, rawIndex) { - if (rawIndex >= getTailOffset(list._capacity)) return list._tail; - if (rawIndex < 1 << (list._level + SHIFT)) { - for (var node = list._root, level = list._level; node && level > 0; ) - (node = node.array[(rawIndex >>> level) & MASK]), (level -= SHIFT); - return node; - } - } - function setListBounds(list, begin, end) { - void 0 !== begin && (begin |= 0), void 0 !== end && (end |= 0); - var owner = list.__ownerID || new OwnerID(), - oldOrigin = list._origin, - oldCapacity = list._capacity, - newOrigin = oldOrigin + begin, - newCapacity = - void 0 === end ? oldCapacity : end < 0 ? oldCapacity + end : oldOrigin + end; - if (newOrigin === oldOrigin && newCapacity === oldCapacity) return list; - if (newOrigin >= newCapacity) return list.clear(); - for ( - var newLevel = list._level, newRoot = list._root, offsetShift = 0; - newOrigin + offsetShift < 0; - - ) - (newRoot = new VNode(newRoot && newRoot.array.length ? [void 0, newRoot] : [], owner)), - (offsetShift += 1 << (newLevel += SHIFT)); - offsetShift && - ((newOrigin += offsetShift), - (oldOrigin += offsetShift), - (newCapacity += offsetShift), - (oldCapacity += offsetShift)); - for ( - var oldTailOffset = getTailOffset(oldCapacity), - newTailOffset = getTailOffset(newCapacity); - newTailOffset >= 1 << (newLevel + SHIFT); - - ) - (newRoot = new VNode(newRoot && newRoot.array.length ? [newRoot] : [], owner)), - (newLevel += SHIFT); - var oldTail = list._tail, - newTail = - newTailOffset < oldTailOffset - ? listNodeFor(list, newCapacity - 1) - : newTailOffset > oldTailOffset ? new VNode([], owner) : oldTail; - if ( - oldTail && - newTailOffset > oldTailOffset && - newOrigin < oldCapacity && - oldTail.array.length - ) { - for ( - var node = (newRoot = editableVNode(newRoot, owner)), level = newLevel; - level > SHIFT; - level -= SHIFT - ) { - var idx = (oldTailOffset >>> level) & MASK; - node = node.array[idx] = editableVNode(node.array[idx], owner); - } - node.array[(oldTailOffset >>> SHIFT) & MASK] = oldTail; - } - if ( - (newCapacity < oldCapacity && - (newTail = newTail && newTail.removeAfter(owner, 0, newCapacity)), - newOrigin >= newTailOffset) - ) - (newOrigin -= newTailOffset), - (newCapacity -= newTailOffset), - (newLevel = SHIFT), - (newRoot = null), - (newTail = newTail && newTail.removeBefore(owner, 0, newOrigin)); - else if (newOrigin > oldOrigin || newTailOffset < oldTailOffset) { - for (offsetShift = 0; newRoot; ) { - var beginIndex = (newOrigin >>> newLevel) & MASK; - if ((beginIndex !== newTailOffset >>> newLevel) & MASK) break; - beginIndex && (offsetShift += (1 << newLevel) * beginIndex), - (newLevel -= SHIFT), - (newRoot = newRoot.array[beginIndex]); - } - newRoot && - newOrigin > oldOrigin && - (newRoot = newRoot.removeBefore(owner, newLevel, newOrigin - offsetShift)), - newRoot && - newTailOffset < oldTailOffset && - (newRoot = newRoot.removeAfter(owner, newLevel, newTailOffset - offsetShift)), - offsetShift && ((newOrigin -= offsetShift), (newCapacity -= offsetShift)); - } - return list.__ownerID - ? ((list.size = newCapacity - newOrigin), - (list._origin = newOrigin), - (list._capacity = newCapacity), - (list._level = newLevel), - (list._root = newRoot), - (list._tail = newTail), - (list.__hash = void 0), - (list.__altered = !0), - list) - : makeList(newOrigin, newCapacity, newLevel, newRoot, newTail); - } - function mergeIntoListWith(list, merger, iterables) { - for (var iters = [], maxSize = 0, ii = 0; ii < iterables.length; ii++) { - var value = iterables[ii], - iter = IndexedIterable(value); - iter.size > maxSize && (maxSize = iter.size), - isIterable(value) || - (iter = iter.map(function(v) { - return fromJS(v); - })), - iters.push(iter); - } - return ( - maxSize > list.size && (list = list.setSize(maxSize)), - mergeIntoCollectionWith(list, merger, iters) - ); - } - function getTailOffset(size) { - return size < SIZE ? 0 : ((size - 1) >>> SHIFT) << SHIFT; - } - function OrderedMap(value) { - return null === value || void 0 === value - ? emptyOrderedMap() - : isOrderedMap(value) - ? value - : emptyOrderedMap().withMutations(function(map) { - var iter = KeyedIterable(value); - assertNotInfinite(iter.size), - iter.forEach(function(v, k) { - return map.set(k, v); - }); - }); - } - function isOrderedMap(maybeOrderedMap) { - return isMap(maybeOrderedMap) && isOrdered(maybeOrderedMap); - } - function makeOrderedMap(map, list, ownerID, hash) { - var omap = Object.create(OrderedMap.prototype); - return ( - (omap.size = map ? map.size : 0), - (omap._map = map), - (omap._list = list), - (omap.__ownerID = ownerID), - (omap.__hash = hash), - omap - ); - } - function emptyOrderedMap() { - return EMPTY_ORDERED_MAP || (EMPTY_ORDERED_MAP = makeOrderedMap(emptyMap(), emptyList())); - } - function updateOrderedMap(omap, k, v) { - var newMap, - newList, - map = omap._map, - list = omap._list, - i = map.get(k), - has = void 0 !== i; - if (v === NOT_SET) { - if (!has) return omap; - list.size >= SIZE && list.size >= 2 * map.size - ? ((newMap = (newList = list.filter(function(entry, idx) { - return void 0 !== entry && i !== idx; - })) - .toKeyedSeq() - .map(function(entry) { - return entry[0]; - }) - .flip() - .toMap()), - omap.__ownerID && (newMap.__ownerID = newList.__ownerID = omap.__ownerID)) - : ((newMap = map.remove(k)), - (newList = i === list.size - 1 ? list.pop() : list.set(i, void 0))); - } else if (has) { - if (v === list.get(i)[1]) return omap; - (newMap = map), (newList = list.set(i, [k, v])); - } else (newMap = map.set(k, list.size)), (newList = list.set(list.size, [k, v])); - return omap.__ownerID - ? ((omap.size = newMap.size), - (omap._map = newMap), - (omap._list = newList), - (omap.__hash = void 0), - omap) - : makeOrderedMap(newMap, newList); - } - function ToKeyedSequence(indexed, useKeys) { - (this._iter = indexed), (this._useKeys = useKeys), (this.size = indexed.size); - } - function ToIndexedSequence(iter) { - (this._iter = iter), (this.size = iter.size); - } - function ToSetSequence(iter) { - (this._iter = iter), (this.size = iter.size); - } - function FromEntriesSequence(entries) { - (this._iter = entries), (this.size = entries.size); - } - function flipFactory(iterable) { - var flipSequence = makeSequence(iterable); - return ( - (flipSequence._iter = iterable), - (flipSequence.size = iterable.size), - (flipSequence.flip = function() { - return iterable; - }), - (flipSequence.reverse = function() { - var reversedSequence = iterable.reverse.apply(this); - return ( - (reversedSequence.flip = function() { - return iterable.reverse(); - }), - reversedSequence - ); - }), - (flipSequence.has = function(key) { - return iterable.includes(key); - }), - (flipSequence.includes = function(key) { - return iterable.has(key); - }), - (flipSequence.cacheResult = cacheResultThrough), - (flipSequence.__iterateUncached = function(fn, reverse) { - var this$0 = this; - return iterable.__iterate(function(v, k) { - return !1 !== fn(k, v, this$0); - }, reverse); - }), - (flipSequence.__iteratorUncached = function(type, reverse) { - if (type === ITERATE_ENTRIES) { - var iterator = iterable.__iterator(type, reverse); - return new Iterator(function() { - var step = iterator.next(); - if (!step.done) { - var k = step.value[0]; - (step.value[0] = step.value[1]), (step.value[1] = k); - } - return step; - }); - } - return iterable.__iterator( - type === ITERATE_VALUES ? ITERATE_KEYS : ITERATE_VALUES, - reverse - ); - }), - flipSequence - ); - } - function mapFactory(iterable, mapper, context) { - var mappedSequence = makeSequence(iterable); - return ( - (mappedSequence.size = iterable.size), - (mappedSequence.has = function(key) { - return iterable.has(key); - }), - (mappedSequence.get = function(key, notSetValue) { - var v = iterable.get(key, NOT_SET); - return v === NOT_SET ? notSetValue : mapper.call(context, v, key, iterable); - }), - (mappedSequence.__iterateUncached = function(fn, reverse) { - var this$0 = this; - return iterable.__iterate(function(v, k, c) { - return !1 !== fn(mapper.call(context, v, k, c), k, this$0); - }, reverse); - }), - (mappedSequence.__iteratorUncached = function(type, reverse) { - var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse); - return new Iterator(function() { - var step = iterator.next(); - if (step.done) return step; - var entry = step.value, - key = entry[0]; - return iteratorValue(type, key, mapper.call(context, entry[1], key, iterable), step); - }); - }), - mappedSequence - ); - } - function reverseFactory(iterable, useKeys) { - var reversedSequence = makeSequence(iterable); - return ( - (reversedSequence._iter = iterable), - (reversedSequence.size = iterable.size), - (reversedSequence.reverse = function() { - return iterable; - }), - iterable.flip && - (reversedSequence.flip = function() { - var flipSequence = flipFactory(iterable); - return ( - (flipSequence.reverse = function() { - return iterable.flip(); - }), - flipSequence - ); - }), - (reversedSequence.get = function(key, notSetValue) { - return iterable.get(useKeys ? key : -1 - key, notSetValue); - }), - (reversedSequence.has = function(key) { - return iterable.has(useKeys ? key : -1 - key); - }), - (reversedSequence.includes = function(value) { - return iterable.includes(value); - }), - (reversedSequence.cacheResult = cacheResultThrough), - (reversedSequence.__iterate = function(fn, reverse) { - var this$0 = this; - return iterable.__iterate(function(v, k) { - return fn(v, k, this$0); - }, !reverse); - }), - (reversedSequence.__iterator = function(type, reverse) { - return iterable.__iterator(type, !reverse); - }), - reversedSequence - ); - } - function filterFactory(iterable, predicate, context, useKeys) { - var filterSequence = makeSequence(iterable); - return ( - useKeys && - ((filterSequence.has = function(key) { - var v = iterable.get(key, NOT_SET); - return v !== NOT_SET && !!predicate.call(context, v, key, iterable); - }), - (filterSequence.get = function(key, notSetValue) { - var v = iterable.get(key, NOT_SET); - return v !== NOT_SET && predicate.call(context, v, key, iterable) ? v : notSetValue; - })), - (filterSequence.__iterateUncached = function(fn, reverse) { - var this$0 = this, - iterations = 0; - return ( - iterable.__iterate(function(v, k, c) { - if (predicate.call(context, v, k, c)) - return iterations++, fn(v, useKeys ? k : iterations - 1, this$0); - }, reverse), - iterations - ); - }), - (filterSequence.__iteratorUncached = function(type, reverse) { - var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse), - iterations = 0; - return new Iterator(function() { - for (;;) { - var step = iterator.next(); - if (step.done) return step; - var entry = step.value, - key = entry[0], - value = entry[1]; - if (predicate.call(context, value, key, iterable)) - return iteratorValue(type, useKeys ? key : iterations++, value, step); - } - }); - }), - filterSequence - ); - } - function sliceFactory(iterable, begin, end, useKeys) { - var originalSize = iterable.size; - if ( - (void 0 !== begin && (begin |= 0), - void 0 !== end && (end === 1 / 0 ? (end = originalSize) : (end |= 0)), - wholeSlice(begin, end, originalSize)) - ) - return iterable; - var resolvedBegin = resolveBegin(begin, originalSize), - resolvedEnd = resolveEnd(end, originalSize); - if (resolvedBegin != resolvedBegin || resolvedEnd != resolvedEnd) - return sliceFactory(iterable.toSeq().cacheResult(), begin, end, useKeys); - var sliceSize, - resolvedSize = resolvedEnd - resolvedBegin; - resolvedSize == resolvedSize && (sliceSize = resolvedSize < 0 ? 0 : resolvedSize); - var sliceSeq = makeSequence(iterable); - return ( - (sliceSeq.size = 0 === sliceSize ? sliceSize : (iterable.size && sliceSize) || void 0), - !useKeys && - isSeq(iterable) && - sliceSize >= 0 && - (sliceSeq.get = function(index, notSetValue) { - return (index = wrapIndex(this, index)) >= 0 && index < sliceSize - ? iterable.get(index + resolvedBegin, notSetValue) - : notSetValue; - }), - (sliceSeq.__iterateUncached = function(fn, reverse) { - var this$0 = this; - if (0 === sliceSize) return 0; - if (reverse) return this.cacheResult().__iterate(fn, reverse); - var skipped = 0, - isSkipping = !0, - iterations = 0; - return ( - iterable.__iterate(function(v, k) { - if (!isSkipping || !(isSkipping = skipped++ < resolvedBegin)) - return ( - iterations++, - !1 !== fn(v, useKeys ? k : iterations - 1, this$0) && iterations !== sliceSize - ); - }), - iterations - ); - }), - (sliceSeq.__iteratorUncached = function(type, reverse) { - if (0 !== sliceSize && reverse) return this.cacheResult().__iterator(type, reverse); - var iterator = 0 !== sliceSize && iterable.__iterator(type, reverse), - skipped = 0, - iterations = 0; - return new Iterator(function() { - for (; skipped++ < resolvedBegin; ) iterator.next(); - if (++iterations > sliceSize) return { value: void 0, done: !0 }; - var step = iterator.next(); - return useKeys || type === ITERATE_VALUES - ? step - : iteratorValue( - type, - iterations - 1, - type === ITERATE_KEYS ? void 0 : step.value[1], - step - ); - }); - }), - sliceSeq - ); - } - function skipWhileFactory(iterable, predicate, context, useKeys) { - var skipSequence = makeSequence(iterable); - return ( - (skipSequence.__iterateUncached = function(fn, reverse) { - var this$0 = this; - if (reverse) return this.cacheResult().__iterate(fn, reverse); - var isSkipping = !0, - iterations = 0; - return ( - iterable.__iterate(function(v, k, c) { - if (!isSkipping || !(isSkipping = predicate.call(context, v, k, c))) - return iterations++, fn(v, useKeys ? k : iterations - 1, this$0); - }), - iterations - ); - }), - (skipSequence.__iteratorUncached = function(type, reverse) { - var this$0 = this; - if (reverse) return this.cacheResult().__iterator(type, reverse); - var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse), - skipping = !0, - iterations = 0; - return new Iterator(function() { - var step, k, v; - do { - if ((step = iterator.next()).done) - return useKeys || type === ITERATE_VALUES - ? step - : iteratorValue( - type, - iterations++, - type === ITERATE_KEYS ? void 0 : step.value[1], - step - ); - var entry = step.value; - (k = entry[0]), - (v = entry[1]), - skipping && (skipping = predicate.call(context, v, k, this$0)); - } while (skipping); - return type === ITERATE_ENTRIES ? step : iteratorValue(type, k, v, step); - }); - }), - skipSequence - ); - } - function flattenFactory(iterable, depth, useKeys) { - var flatSequence = makeSequence(iterable); - return ( - (flatSequence.__iterateUncached = function(fn, reverse) { - var iterations = 0, - stopped = !1; - return ( - (function flatDeep(iter, currentDepth) { - var this$0 = this; - iter.__iterate(function(v, k) { - return ( - (!depth || currentDepth < depth) && isIterable(v) - ? flatDeep(v, currentDepth + 1) - : !1 === fn(v, useKeys ? k : iterations++, this$0) && (stopped = !0), - !stopped - ); - }, reverse); - })(iterable, 0), - iterations - ); - }), - (flatSequence.__iteratorUncached = function(type, reverse) { - var iterator = iterable.__iterator(type, reverse), - stack = [], - iterations = 0; - return new Iterator(function() { - for (; iterator; ) { - var step = iterator.next(); - if (!1 === step.done) { - var v = step.value; - if ( - (type === ITERATE_ENTRIES && (v = v[1]), - (depth && !(stack.length < depth)) || !isIterable(v)) - ) - return useKeys ? step : iteratorValue(type, iterations++, v, step); - stack.push(iterator), (iterator = v.__iterator(type, reverse)); - } else iterator = stack.pop(); - } - return { value: void 0, done: !0 }; - }); - }), - flatSequence - ); - } - function sortFactory(iterable, comparator, mapper) { - comparator || (comparator = defaultComparator); - var isKeyedIterable = isKeyed(iterable), - index = 0, - entries = iterable - .toSeq() - .map(function(v, k) { - return [k, v, index++, mapper ? mapper(v, k, iterable) : v]; - }) - .toArray(); - return ( - entries - .sort(function(a, b) { - return comparator(a[3], b[3]) || a[2] - b[2]; - }) - .forEach( - isKeyedIterable - ? function(v, i) { - entries[i].length = 2; - } - : function(v, i) { - entries[i] = v[1]; - } - ), - isKeyedIterable - ? KeyedSeq(entries) - : isIndexed(iterable) ? IndexedSeq(entries) : SetSeq(entries) - ); - } - function maxFactory(iterable, comparator, mapper) { - if ((comparator || (comparator = defaultComparator), mapper)) { - var entry = iterable - .toSeq() - .map(function(v, k) { - return [v, mapper(v, k, iterable)]; - }) - .reduce(function(a, b) { - return maxCompare(comparator, a[1], b[1]) ? b : a; - }); - return entry && entry[0]; - } - return iterable.reduce(function(a, b) { - return maxCompare(comparator, a, b) ? b : a; - }); - } - function maxCompare(comparator, a, b) { - var comp = comparator(b, a); - return (0 === comp && b !== a && (void 0 === b || null === b || b != b)) || comp > 0; - } - function zipWithFactory(keyIter, zipper, iters) { - var zipSequence = makeSequence(keyIter); - return ( - (zipSequence.size = new ArraySeq(iters) - .map(function(i) { - return i.size; - }) - .min()), - (zipSequence.__iterate = function(fn, reverse) { - for ( - var step, iterator = this.__iterator(ITERATE_VALUES, reverse), iterations = 0; - !(step = iterator.next()).done && !1 !== fn(step.value, iterations++, this); - - ); - return iterations; - }), - (zipSequence.__iteratorUncached = function(type, reverse) { - var iterators = iters.map(function(i) { - return (i = Iterable(i)), getIterator(reverse ? i.reverse() : i); - }), - iterations = 0, - isDone = !1; - return new Iterator(function() { - var steps; - return ( - isDone || - ((steps = iterators.map(function(i) { - return i.next(); - })), - (isDone = steps.some(function(s) { - return s.done; - }))), - isDone - ? { value: void 0, done: !0 } - : iteratorValue( - type, - iterations++, - zipper.apply( - null, - steps.map(function(s) { - return s.value; - }) - ) - ) - ); - }); - }), - zipSequence - ); - } - function reify(iter, seq) { - return isSeq(iter) ? seq : iter.constructor(seq); - } - function validateEntry(entry) { - if (entry !== Object(entry)) throw new TypeError('Expected [K, V] tuple: ' + entry); - } - function resolveSize(iter) { - return assertNotInfinite(iter.size), ensureSize(iter); - } - function iterableClass(iterable) { - return isKeyed(iterable) - ? KeyedIterable - : isIndexed(iterable) ? IndexedIterable : SetIterable; - } - function makeSequence(iterable) { - return Object.create( - (isKeyed(iterable) ? KeyedSeq : isIndexed(iterable) ? IndexedSeq : SetSeq).prototype - ); - } - function cacheResultThrough() { - return this._iter.cacheResult - ? (this._iter.cacheResult(), (this.size = this._iter.size), this) - : Seq.prototype.cacheResult.call(this); - } - function defaultComparator(a, b) { - return a > b ? 1 : a < b ? -1 : 0; - } - function forceIterator(keyPath) { - var iter = getIterator(keyPath); - if (!iter) { - if (!isArrayLike(keyPath)) - throw new TypeError('Expected iterable or array-like: ' + keyPath); - iter = getIterator(Iterable(keyPath)); - } - return iter; - } - function Record(defaultValues, name) { - var hasInitialized, - RecordType = function Record(values) { - if (values instanceof RecordType) return values; - if (!(this instanceof RecordType)) return new RecordType(values); - if (!hasInitialized) { - hasInitialized = !0; - var keys = Object.keys(defaultValues); - !(function setProps(prototype, names) { - try { - names.forEach( - function setProp(prototype, name) { - Object.defineProperty(prototype, name, { - get: function() { - return this.get(name); - }, - set: function(value) { - invariant(this.__ownerID, 'Cannot set on an immutable record.'), - this.set(name, value); - } - }); - }.bind(void 0, prototype) - ); - } catch (error) {} - })(RecordTypePrototype, keys), - (RecordTypePrototype.size = keys.length), - (RecordTypePrototype._name = name), - (RecordTypePrototype._keys = keys), - (RecordTypePrototype._defaultValues = defaultValues); - } - this._map = Map(values); - }, - RecordTypePrototype = (RecordType.prototype = Object.create(RecordPrototype)); - return (RecordTypePrototype.constructor = RecordType), RecordType; - } - createClass(OrderedMap, Map), - (OrderedMap.of = function() { - return this(arguments); - }), - (OrderedMap.prototype.toString = function() { - return this.__toString('OrderedMap {', '}'); - }), - (OrderedMap.prototype.get = function(k, notSetValue) { - var index = this._map.get(k); - return void 0 !== index ? this._list.get(index)[1] : notSetValue; - }), - (OrderedMap.prototype.clear = function() { - return 0 === this.size - ? this - : this.__ownerID - ? ((this.size = 0), this._map.clear(), this._list.clear(), this) - : emptyOrderedMap(); - }), - (OrderedMap.prototype.set = function(k, v) { - return updateOrderedMap(this, k, v); - }), - (OrderedMap.prototype.remove = function(k) { - return updateOrderedMap(this, k, NOT_SET); - }), - (OrderedMap.prototype.wasAltered = function() { - return this._map.wasAltered() || this._list.wasAltered(); - }), - (OrderedMap.prototype.__iterate = function(fn, reverse) { - var this$0 = this; - return this._list.__iterate(function(entry) { - return entry && fn(entry[1], entry[0], this$0); - }, reverse); - }), - (OrderedMap.prototype.__iterator = function(type, reverse) { - return this._list.fromEntrySeq().__iterator(type, reverse); - }), - (OrderedMap.prototype.__ensureOwner = function(ownerID) { - if (ownerID === this.__ownerID) return this; - var newMap = this._map.__ensureOwner(ownerID), - newList = this._list.__ensureOwner(ownerID); - return ownerID - ? makeOrderedMap(newMap, newList, ownerID, this.__hash) - : ((this.__ownerID = ownerID), (this._map = newMap), (this._list = newList), this); - }), - (OrderedMap.isOrderedMap = isOrderedMap), - (OrderedMap.prototype[IS_ORDERED_SENTINEL] = !0), - (OrderedMap.prototype.delete = OrderedMap.prototype.remove), - createClass(ToKeyedSequence, KeyedSeq), - (ToKeyedSequence.prototype.get = function(key, notSetValue) { - return this._iter.get(key, notSetValue); - }), - (ToKeyedSequence.prototype.has = function(key) { - return this._iter.has(key); - }), - (ToKeyedSequence.prototype.valueSeq = function() { - return this._iter.valueSeq(); - }), - (ToKeyedSequence.prototype.reverse = function() { - var this$0 = this, - reversedSequence = reverseFactory(this, !0); - return ( - this._useKeys || - (reversedSequence.valueSeq = function() { - return this$0._iter.toSeq().reverse(); - }), - reversedSequence - ); - }), - (ToKeyedSequence.prototype.map = function(mapper, context) { - var this$0 = this, - mappedSequence = mapFactory(this, mapper, context); - return ( - this._useKeys || - (mappedSequence.valueSeq = function() { - return this$0._iter.toSeq().map(mapper, context); - }), - mappedSequence - ); - }), - (ToKeyedSequence.prototype.__iterate = function(fn, reverse) { - var ii, - this$0 = this; - return this._iter.__iterate( - this._useKeys - ? function(v, k) { - return fn(v, k, this$0); - } - : ((ii = reverse ? resolveSize(this) : 0), - function(v) { - return fn(v, reverse ? --ii : ii++, this$0); - }), - reverse - ); - }), - (ToKeyedSequence.prototype.__iterator = function(type, reverse) { - if (this._useKeys) return this._iter.__iterator(type, reverse); - var iterator = this._iter.__iterator(ITERATE_VALUES, reverse), - ii = reverse ? resolveSize(this) : 0; - return new Iterator(function() { - var step = iterator.next(); - return step.done ? step : iteratorValue(type, reverse ? --ii : ii++, step.value, step); - }); - }), - (ToKeyedSequence.prototype[IS_ORDERED_SENTINEL] = !0), - createClass(ToIndexedSequence, IndexedSeq), - (ToIndexedSequence.prototype.includes = function(value) { - return this._iter.includes(value); - }), - (ToIndexedSequence.prototype.__iterate = function(fn, reverse) { - var this$0 = this, - iterations = 0; - return this._iter.__iterate(function(v) { - return fn(v, iterations++, this$0); - }, reverse); - }), - (ToIndexedSequence.prototype.__iterator = function(type, reverse) { - var iterator = this._iter.__iterator(ITERATE_VALUES, reverse), - iterations = 0; - return new Iterator(function() { - var step = iterator.next(); - return step.done ? step : iteratorValue(type, iterations++, step.value, step); - }); - }), - createClass(ToSetSequence, SetSeq), - (ToSetSequence.prototype.has = function(key) { - return this._iter.includes(key); - }), - (ToSetSequence.prototype.__iterate = function(fn, reverse) { - var this$0 = this; - return this._iter.__iterate(function(v) { - return fn(v, v, this$0); - }, reverse); - }), - (ToSetSequence.prototype.__iterator = function(type, reverse) { - var iterator = this._iter.__iterator(ITERATE_VALUES, reverse); - return new Iterator(function() { - var step = iterator.next(); - return step.done ? step : iteratorValue(type, step.value, step.value, step); - }); - }), - createClass(FromEntriesSequence, KeyedSeq), - (FromEntriesSequence.prototype.entrySeq = function() { - return this._iter.toSeq(); - }), - (FromEntriesSequence.prototype.__iterate = function(fn, reverse) { - var this$0 = this; - return this._iter.__iterate(function(entry) { - if (entry) { - validateEntry(entry); - var indexedIterable = isIterable(entry); - return fn( - indexedIterable ? entry.get(1) : entry[1], - indexedIterable ? entry.get(0) : entry[0], - this$0 - ); - } - }, reverse); - }), - (FromEntriesSequence.prototype.__iterator = function(type, reverse) { - var iterator = this._iter.__iterator(ITERATE_VALUES, reverse); - return new Iterator(function() { - for (;;) { - var step = iterator.next(); - if (step.done) return step; - var entry = step.value; - if (entry) { - validateEntry(entry); - var indexedIterable = isIterable(entry); - return iteratorValue( - type, - indexedIterable ? entry.get(0) : entry[0], - indexedIterable ? entry.get(1) : entry[1], - step - ); - } - } - }); - }), - (ToIndexedSequence.prototype.cacheResult = ToKeyedSequence.prototype.cacheResult = ToSetSequence.prototype.cacheResult = FromEntriesSequence.prototype.cacheResult = cacheResultThrough), - createClass(Record, KeyedCollection), - (Record.prototype.toString = function() { - return this.__toString(recordName(this) + ' {', '}'); - }), - (Record.prototype.has = function(k) { - return this._defaultValues.hasOwnProperty(k); - }), - (Record.prototype.get = function(k, notSetValue) { - if (!this.has(k)) return notSetValue; - var defaultVal = this._defaultValues[k]; - return this._map ? this._map.get(k, defaultVal) : defaultVal; - }), - (Record.prototype.clear = function() { - if (this.__ownerID) return this._map && this._map.clear(), this; - var RecordType = this.constructor; - return RecordType._empty || (RecordType._empty = makeRecord(this, emptyMap())); - }), - (Record.prototype.set = function(k, v) { - if (!this.has(k)) - throw new Error('Cannot set unknown key "' + k + '" on ' + recordName(this)); - if (this._map && !this._map.has(k) && v === this._defaultValues[k]) return this; - var newMap = this._map && this._map.set(k, v); - return this.__ownerID || newMap === this._map ? this : makeRecord(this, newMap); - }), - (Record.prototype.remove = function(k) { - if (!this.has(k)) return this; - var newMap = this._map && this._map.remove(k); - return this.__ownerID || newMap === this._map ? this : makeRecord(this, newMap); - }), - (Record.prototype.wasAltered = function() { - return this._map.wasAltered(); - }), - (Record.prototype.__iterator = function(type, reverse) { - var this$0 = this; - return KeyedIterable(this._defaultValues) - .map(function(_, k) { - return this$0.get(k); - }) - .__iterator(type, reverse); - }), - (Record.prototype.__iterate = function(fn, reverse) { - var this$0 = this; - return KeyedIterable(this._defaultValues) - .map(function(_, k) { - return this$0.get(k); - }) - .__iterate(fn, reverse); - }), - (Record.prototype.__ensureOwner = function(ownerID) { - if (ownerID === this.__ownerID) return this; - var newMap = this._map && this._map.__ensureOwner(ownerID); - return ownerID - ? makeRecord(this, newMap, ownerID) - : ((this.__ownerID = ownerID), (this._map = newMap), this); - }); - var RecordPrototype = Record.prototype; - function makeRecord(likeRecord, map, ownerID) { - var record = Object.create(Object.getPrototypeOf(likeRecord)); - return (record._map = map), (record.__ownerID = ownerID), record; - } - function recordName(record) { - return record._name || record.constructor.name || 'Record'; - } - function Set(value) { - return null === value || void 0 === value - ? emptySet() - : isSet(value) && !isOrdered(value) - ? value - : emptySet().withMutations(function(set) { - var iter = SetIterable(value); - assertNotInfinite(iter.size), - iter.forEach(function(v) { - return set.add(v); - }); - }); - } - function isSet(maybeSet) { - return !(!maybeSet || !maybeSet[IS_SET_SENTINEL]); - } - (RecordPrototype.delete = RecordPrototype.remove), - (RecordPrototype.deleteIn = RecordPrototype.removeIn = MapPrototype.removeIn), - (RecordPrototype.merge = MapPrototype.merge), - (RecordPrototype.mergeWith = MapPrototype.mergeWith), - (RecordPrototype.mergeIn = MapPrototype.mergeIn), - (RecordPrototype.mergeDeep = MapPrototype.mergeDeep), - (RecordPrototype.mergeDeepWith = MapPrototype.mergeDeepWith), - (RecordPrototype.mergeDeepIn = MapPrototype.mergeDeepIn), - (RecordPrototype.setIn = MapPrototype.setIn), - (RecordPrototype.update = MapPrototype.update), - (RecordPrototype.updateIn = MapPrototype.updateIn), - (RecordPrototype.withMutations = MapPrototype.withMutations), - (RecordPrototype.asMutable = MapPrototype.asMutable), - (RecordPrototype.asImmutable = MapPrototype.asImmutable), - createClass(Set, SetCollection), - (Set.of = function() { - return this(arguments); - }), - (Set.fromKeys = function(value) { - return this(KeyedIterable(value).keySeq()); - }), - (Set.prototype.toString = function() { - return this.__toString('Set {', '}'); - }), - (Set.prototype.has = function(value) { - return this._map.has(value); - }), - (Set.prototype.add = function(value) { - return updateSet(this, this._map.set(value, !0)); - }), - (Set.prototype.remove = function(value) { - return updateSet(this, this._map.remove(value)); - }), - (Set.prototype.clear = function() { - return updateSet(this, this._map.clear()); - }), - (Set.prototype.union = function() { - var iters = SLICE$0.call(arguments, 0); - return 0 === - (iters = iters.filter(function(x) { - return 0 !== x.size; - })).length - ? this - : 0 !== this.size || this.__ownerID || 1 !== iters.length - ? this.withMutations(function(set) { - for (var ii = 0; ii < iters.length; ii++) - SetIterable(iters[ii]).forEach(function(value) { - return set.add(value); - }); - }) - : this.constructor(iters[0]); - }), - (Set.prototype.intersect = function() { - var iters = SLICE$0.call(arguments, 0); - if (0 === iters.length) return this; - iters = iters.map(function(iter) { - return SetIterable(iter); - }); - var originalSet = this; - return this.withMutations(function(set) { - originalSet.forEach(function(value) { - iters.every(function(iter) { - return iter.includes(value); - }) || set.remove(value); - }); - }); - }), - (Set.prototype.subtract = function() { - var iters = SLICE$0.call(arguments, 0); - if (0 === iters.length) return this; - iters = iters.map(function(iter) { - return SetIterable(iter); - }); - var originalSet = this; - return this.withMutations(function(set) { - originalSet.forEach(function(value) { - iters.some(function(iter) { - return iter.includes(value); - }) && set.remove(value); - }); - }); - }), - (Set.prototype.merge = function() { - return this.union.apply(this, arguments); - }), - (Set.prototype.mergeWith = function(merger) { - var iters = SLICE$0.call(arguments, 1); - return this.union.apply(this, iters); - }), - (Set.prototype.sort = function(comparator) { - return OrderedSet(sortFactory(this, comparator)); - }), - (Set.prototype.sortBy = function(mapper, comparator) { - return OrderedSet(sortFactory(this, comparator, mapper)); - }), - (Set.prototype.wasAltered = function() { - return this._map.wasAltered(); - }), - (Set.prototype.__iterate = function(fn, reverse) { - var this$0 = this; - return this._map.__iterate(function(_, k) { - return fn(k, k, this$0); - }, reverse); - }), - (Set.prototype.__iterator = function(type, reverse) { - return this._map - .map(function(_, k) { - return k; - }) - .__iterator(type, reverse); - }), - (Set.prototype.__ensureOwner = function(ownerID) { - if (ownerID === this.__ownerID) return this; - var newMap = this._map.__ensureOwner(ownerID); - return ownerID - ? this.__make(newMap, ownerID) - : ((this.__ownerID = ownerID), (this._map = newMap), this); - }), - (Set.isSet = isSet); - var EMPTY_SET, - IS_SET_SENTINEL = '@@__IMMUTABLE_SET__@@', - SetPrototype = Set.prototype; - function updateSet(set, newMap) { - return set.__ownerID - ? ((set.size = newMap.size), (set._map = newMap), set) - : newMap === set._map ? set : 0 === newMap.size ? set.__empty() : set.__make(newMap); - } - function makeSet(map, ownerID) { - var set = Object.create(SetPrototype); - return (set.size = map ? map.size : 0), (set._map = map), (set.__ownerID = ownerID), set; - } - function emptySet() { - return EMPTY_SET || (EMPTY_SET = makeSet(emptyMap())); - } - function OrderedSet(value) { - return null === value || void 0 === value - ? emptyOrderedSet() - : isOrderedSet(value) - ? value - : emptyOrderedSet().withMutations(function(set) { - var iter = SetIterable(value); - assertNotInfinite(iter.size), - iter.forEach(function(v) { - return set.add(v); - }); - }); - } - function isOrderedSet(maybeOrderedSet) { - return isSet(maybeOrderedSet) && isOrdered(maybeOrderedSet); - } - (SetPrototype[IS_SET_SENTINEL] = !0), - (SetPrototype.delete = SetPrototype.remove), - (SetPrototype.mergeDeep = SetPrototype.merge), - (SetPrototype.mergeDeepWith = SetPrototype.mergeWith), - (SetPrototype.withMutations = MapPrototype.withMutations), - (SetPrototype.asMutable = MapPrototype.asMutable), - (SetPrototype.asImmutable = MapPrototype.asImmutable), - (SetPrototype.__empty = emptySet), - (SetPrototype.__make = makeSet), - createClass(OrderedSet, Set), - (OrderedSet.of = function() { - return this(arguments); - }), - (OrderedSet.fromKeys = function(value) { - return this(KeyedIterable(value).keySeq()); - }), - (OrderedSet.prototype.toString = function() { - return this.__toString('OrderedSet {', '}'); - }), - (OrderedSet.isOrderedSet = isOrderedSet); - var EMPTY_ORDERED_SET, - OrderedSetPrototype = OrderedSet.prototype; - function makeOrderedSet(map, ownerID) { - var set = Object.create(OrderedSetPrototype); - return (set.size = map ? map.size : 0), (set._map = map), (set.__ownerID = ownerID), set; - } - function emptyOrderedSet() { - return EMPTY_ORDERED_SET || (EMPTY_ORDERED_SET = makeOrderedSet(emptyOrderedMap())); - } - function Stack(value) { - return null === value || void 0 === value - ? emptyStack() - : isStack(value) ? value : emptyStack().unshiftAll(value); - } - function isStack(maybeStack) { - return !(!maybeStack || !maybeStack[IS_STACK_SENTINEL]); - } - (OrderedSetPrototype[IS_ORDERED_SENTINEL] = !0), - (OrderedSetPrototype.__empty = emptyOrderedSet), - (OrderedSetPrototype.__make = makeOrderedSet), - createClass(Stack, IndexedCollection), - (Stack.of = function() { - return this(arguments); - }), - (Stack.prototype.toString = function() { - return this.__toString('Stack [', ']'); - }), - (Stack.prototype.get = function(index, notSetValue) { - var head = this._head; - for (index = wrapIndex(this, index); head && index--; ) head = head.next; - return head ? head.value : notSetValue; - }), - (Stack.prototype.peek = function() { - return this._head && this._head.value; - }), - (Stack.prototype.push = function() { - if (0 === arguments.length) return this; - for ( - var newSize = this.size + arguments.length, - head = this._head, - ii = arguments.length - 1; - ii >= 0; - ii-- - ) - head = { value: arguments[ii], next: head }; - return this.__ownerID - ? ((this.size = newSize), - (this._head = head), - (this.__hash = void 0), - (this.__altered = !0), - this) - : makeStack(newSize, head); - }), - (Stack.prototype.pushAll = function(iter) { - if (0 === (iter = IndexedIterable(iter)).size) return this; - assertNotInfinite(iter.size); - var newSize = this.size, - head = this._head; - return ( - iter.reverse().forEach(function(value) { - newSize++, (head = { value: value, next: head }); - }), - this.__ownerID - ? ((this.size = newSize), - (this._head = head), - (this.__hash = void 0), - (this.__altered = !0), - this) - : makeStack(newSize, head) - ); - }), - (Stack.prototype.pop = function() { - return this.slice(1); - }), - (Stack.prototype.unshift = function() { - return this.push.apply(this, arguments); - }), - (Stack.prototype.unshiftAll = function(iter) { - return this.pushAll(iter); - }), - (Stack.prototype.shift = function() { - return this.pop.apply(this, arguments); - }), - (Stack.prototype.clear = function() { - return 0 === this.size - ? this - : this.__ownerID - ? ((this.size = 0), - (this._head = void 0), - (this.__hash = void 0), - (this.__altered = !0), - this) - : emptyStack(); - }), - (Stack.prototype.slice = function(begin, end) { - if (wholeSlice(begin, end, this.size)) return this; - var resolvedBegin = resolveBegin(begin, this.size); - if (resolveEnd(end, this.size) !== this.size) - return IndexedCollection.prototype.slice.call(this, begin, end); - for (var newSize = this.size - resolvedBegin, head = this._head; resolvedBegin--; ) - head = head.next; - return this.__ownerID - ? ((this.size = newSize), - (this._head = head), - (this.__hash = void 0), - (this.__altered = !0), - this) - : makeStack(newSize, head); - }), - (Stack.prototype.__ensureOwner = function(ownerID) { - return ownerID === this.__ownerID - ? this - : ownerID - ? makeStack(this.size, this._head, ownerID, this.__hash) - : ((this.__ownerID = ownerID), (this.__altered = !1), this); - }), - (Stack.prototype.__iterate = function(fn, reverse) { - if (reverse) return this.reverse().__iterate(fn); - for ( - var iterations = 0, node = this._head; - node && !1 !== fn(node.value, iterations++, this); - - ) - node = node.next; - return iterations; - }), - (Stack.prototype.__iterator = function(type, reverse) { - if (reverse) return this.reverse().__iterator(type); - var iterations = 0, - node = this._head; - return new Iterator(function() { - if (node) { - var value = node.value; - return (node = node.next), iteratorValue(type, iterations++, value); - } - return { value: void 0, done: !0 }; - }); - }), - (Stack.isStack = isStack); - var EMPTY_STACK, - IS_STACK_SENTINEL = '@@__IMMUTABLE_STACK__@@', - StackPrototype = Stack.prototype; - function makeStack(size, head, ownerID, hash) { - var map = Object.create(StackPrototype); - return ( - (map.size = size), - (map._head = head), - (map.__ownerID = ownerID), - (map.__hash = hash), - (map.__altered = !1), - map - ); - } - function emptyStack() { - return EMPTY_STACK || (EMPTY_STACK = makeStack(0)); - } - function mixin(ctor, methods) { - var keyCopier = function(key) { - ctor.prototype[key] = methods[key]; - }; - return ( - Object.keys(methods).forEach(keyCopier), - Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(methods).forEach(keyCopier), - ctor - ); - } - (StackPrototype[IS_STACK_SENTINEL] = !0), - (StackPrototype.withMutations = MapPrototype.withMutations), - (StackPrototype.asMutable = MapPrototype.asMutable), - (StackPrototype.asImmutable = MapPrototype.asImmutable), - (StackPrototype.wasAltered = MapPrototype.wasAltered), - (Iterable.Iterator = Iterator), - mixin(Iterable, { - toArray: function() { - assertNotInfinite(this.size); - var array = new Array(this.size || 0); - return ( - this.valueSeq().__iterate(function(v, i) { - array[i] = v; - }), - array - ); - }, - toIndexedSeq: function() { - return new ToIndexedSequence(this); - }, - toJS: function() { - return this.toSeq() - .map(function(value) { - return value && 'function' == typeof value.toJS ? value.toJS() : value; - }) - .__toJS(); - }, - toJSON: function() { - return this.toSeq() - .map(function(value) { - return value && 'function' == typeof value.toJSON ? value.toJSON() : value; - }) - .__toJS(); - }, - toKeyedSeq: function() { - return new ToKeyedSequence(this, !0); - }, - toMap: function() { - return Map(this.toKeyedSeq()); - }, - toObject: function() { - assertNotInfinite(this.size); - var object = {}; - return ( - this.__iterate(function(v, k) { - object[k] = v; - }), - object - ); - }, - toOrderedMap: function() { - return OrderedMap(this.toKeyedSeq()); - }, - toOrderedSet: function() { - return OrderedSet(isKeyed(this) ? this.valueSeq() : this); - }, - toSet: function() { - return Set(isKeyed(this) ? this.valueSeq() : this); - }, - toSetSeq: function() { - return new ToSetSequence(this); - }, - toSeq: function() { - return isIndexed(this) - ? this.toIndexedSeq() - : isKeyed(this) ? this.toKeyedSeq() : this.toSetSeq(); - }, - toStack: function() { - return Stack(isKeyed(this) ? this.valueSeq() : this); - }, - toList: function() { - return List(isKeyed(this) ? this.valueSeq() : this); - }, - toString: function() { - return '[Iterable]'; - }, - __toString: function(head, tail) { - return 0 === this.size - ? head + tail - : head + - ' ' + - this.toSeq() - .map(this.__toStringMapper) - .join(', ') + - ' ' + - tail; - }, - concat: function() { - return reify( - this, - (function concatFactory(iterable, values) { - var isKeyedIterable = isKeyed(iterable), - iters = [iterable] - .concat(values) - .map(function(v) { - return ( - isIterable(v) - ? isKeyedIterable && (v = KeyedIterable(v)) - : (v = isKeyedIterable - ? keyedSeqFromValue(v) - : indexedSeqFromValue(Array.isArray(v) ? v : [v])), - v - ); - }) - .filter(function(v) { - return 0 !== v.size; - }); - if (0 === iters.length) return iterable; - if (1 === iters.length) { - var singleton = iters[0]; - if ( - singleton === iterable || - (isKeyedIterable && isKeyed(singleton)) || - (isIndexed(iterable) && isIndexed(singleton)) - ) - return singleton; - } - var concatSeq = new ArraySeq(iters); - return ( - isKeyedIterable - ? (concatSeq = concatSeq.toKeyedSeq()) - : isIndexed(iterable) || (concatSeq = concatSeq.toSetSeq()), - ((concatSeq = concatSeq.flatten(!0)).size = iters.reduce(function(sum, seq) { - if (void 0 !== sum) { - var size = seq.size; - if (void 0 !== size) return sum + size; - } - }, 0)), - concatSeq - ); - })(this, SLICE$0.call(arguments, 0)) - ); - }, - includes: function(searchValue) { - return this.some(function(value) { - return is(value, searchValue); - }); - }, - entries: function() { - return this.__iterator(ITERATE_ENTRIES); - }, - every: function(predicate, context) { - assertNotInfinite(this.size); - var returnValue = !0; - return ( - this.__iterate(function(v, k, c) { - if (!predicate.call(context, v, k, c)) return (returnValue = !1), !1; - }), - returnValue - ); - }, - filter: function(predicate, context) { - return reify(this, filterFactory(this, predicate, context, !0)); - }, - find: function(predicate, context, notSetValue) { - var entry = this.findEntry(predicate, context); - return entry ? entry[1] : notSetValue; - }, - forEach: function(sideEffect, context) { - return ( - assertNotInfinite(this.size), - this.__iterate(context ? sideEffect.bind(context) : sideEffect) - ); - }, - join: function(separator) { - assertNotInfinite(this.size), (separator = void 0 !== separator ? '' + separator : ','); - var joined = '', - isFirst = !0; - return ( - this.__iterate(function(v) { - isFirst ? (isFirst = !1) : (joined += separator), - (joined += null !== v && void 0 !== v ? v.toString() : ''); - }), - joined - ); - }, - keys: function() { - return this.__iterator(ITERATE_KEYS); - }, - map: function(mapper, context) { - return reify(this, mapFactory(this, mapper, context)); - }, - reduce: function(reducer, initialReduction, context) { - var reduction, useFirst; - return ( - assertNotInfinite(this.size), - arguments.length < 2 ? (useFirst = !0) : (reduction = initialReduction), - this.__iterate(function(v, k, c) { - useFirst - ? ((useFirst = !1), (reduction = v)) - : (reduction = reducer.call(context, reduction, v, k, c)); - }), - reduction - ); - }, - reduceRight: function(reducer, initialReduction, context) { - var reversed = this.toKeyedSeq().reverse(); - return reversed.reduce.apply(reversed, arguments); - }, - reverse: function() { - return reify(this, reverseFactory(this, !0)); - }, - slice: function(begin, end) { - return reify(this, sliceFactory(this, begin, end, !0)); - }, - some: function(predicate, context) { - return !this.every(not(predicate), context); - }, - sort: function(comparator) { - return reify(this, sortFactory(this, comparator)); - }, - values: function() { - return this.__iterator(ITERATE_VALUES); - }, - butLast: function() { - return this.slice(0, -1); - }, - isEmpty: function() { - return void 0 !== this.size - ? 0 === this.size - : !this.some(function() { - return !0; - }); - }, - count: function(predicate, context) { - return ensureSize(predicate ? this.toSeq().filter(predicate, context) : this); - }, - countBy: function(grouper, context) { - return (function countByFactory(iterable, grouper, context) { - var groups = Map().asMutable(); - return ( - iterable.__iterate(function(v, k) { - groups.update(grouper.call(context, v, k, iterable), 0, function(a) { - return a + 1; - }); - }), - groups.asImmutable() - ); - })(this, grouper, context); - }, - equals: function(other) { - return deepEqual(this, other); - }, - entrySeq: function() { - var iterable = this; - if (iterable._cache) return new ArraySeq(iterable._cache); - var entriesSequence = iterable - .toSeq() - .map(entryMapper) - .toIndexedSeq(); - return ( - (entriesSequence.fromEntrySeq = function() { - return iterable.toSeq(); - }), - entriesSequence - ); - }, - filterNot: function(predicate, context) { - return this.filter(not(predicate), context); - }, - findEntry: function(predicate, context, notSetValue) { - var found = notSetValue; - return ( - this.__iterate(function(v, k, c) { - if (predicate.call(context, v, k, c)) return (found = [k, v]), !1; - }), - found - ); - }, - findKey: function(predicate, context) { - var entry = this.findEntry(predicate, context); - return entry && entry[0]; - }, - findLast: function(predicate, context, notSetValue) { - return this.toKeyedSeq() - .reverse() - .find(predicate, context, notSetValue); - }, - findLastEntry: function(predicate, context, notSetValue) { - return this.toKeyedSeq() - .reverse() - .findEntry(predicate, context, notSetValue); - }, - findLastKey: function(predicate, context) { - return this.toKeyedSeq() - .reverse() - .findKey(predicate, context); - }, - first: function() { - return this.find(returnTrue); - }, - flatMap: function(mapper, context) { - return reify( - this, - (function flatMapFactory(iterable, mapper, context) { - var coerce = iterableClass(iterable); - return iterable - .toSeq() - .map(function(v, k) { - return coerce(mapper.call(context, v, k, iterable)); - }) - .flatten(!0); - })(this, mapper, context) - ); - }, - flatten: function(depth) { - return reify(this, flattenFactory(this, depth, !0)); - }, - fromEntrySeq: function() { - return new FromEntriesSequence(this); - }, - get: function(searchKey, notSetValue) { - return this.find( - function(_, key) { - return is(key, searchKey); - }, - void 0, - notSetValue - ); - }, - getIn: function(searchKeyPath, notSetValue) { - for ( - var step, nested = this, iter = forceIterator(searchKeyPath); - !(step = iter.next()).done; - - ) { - var key = step.value; - if ((nested = nested && nested.get ? nested.get(key, NOT_SET) : NOT_SET) === NOT_SET) - return notSetValue; - } - return nested; - }, - groupBy: function(grouper, context) { - return (function groupByFactory(iterable, grouper, context) { - var isKeyedIter = isKeyed(iterable), - groups = (isOrdered(iterable) ? OrderedMap() : Map()).asMutable(); - iterable.__iterate(function(v, k) { - groups.update(grouper.call(context, v, k, iterable), function(a) { - return (a = a || []).push(isKeyedIter ? [k, v] : v), a; - }); - }); - var coerce = iterableClass(iterable); - return groups.map(function(arr) { - return reify(iterable, coerce(arr)); - }); - })(this, grouper, context); - }, - has: function(searchKey) { - return this.get(searchKey, NOT_SET) !== NOT_SET; - }, - hasIn: function(searchKeyPath) { - return this.getIn(searchKeyPath, NOT_SET) !== NOT_SET; - }, - isSubset: function(iter) { - return ( - (iter = 'function' == typeof iter.includes ? iter : Iterable(iter)), - this.every(function(value) { - return iter.includes(value); - }) - ); - }, - isSuperset: function(iter) { - return (iter = 'function' == typeof iter.isSubset ? iter : Iterable(iter)).isSubset( - this - ); - }, - keyOf: function(searchValue) { - return this.findKey(function(value) { - return is(value, searchValue); - }); - }, - keySeq: function() { - return this.toSeq() - .map(keyMapper) - .toIndexedSeq(); - }, - last: function() { - return this.toSeq() - .reverse() - .first(); - }, - lastKeyOf: function(searchValue) { - return this.toKeyedSeq() - .reverse() - .keyOf(searchValue); - }, - max: function(comparator) { - return maxFactory(this, comparator); - }, - maxBy: function(mapper, comparator) { - return maxFactory(this, comparator, mapper); - }, - min: function(comparator) { - return maxFactory(this, comparator ? neg(comparator) : defaultNegComparator); - }, - minBy: function(mapper, comparator) { - return maxFactory(this, comparator ? neg(comparator) : defaultNegComparator, mapper); - }, - rest: function() { - return this.slice(1); - }, - skip: function(amount) { - return this.slice(Math.max(0, amount)); - }, - skipLast: function(amount) { - return reify( - this, - this.toSeq() - .reverse() - .skip(amount) - .reverse() - ); - }, - skipWhile: function(predicate, context) { - return reify(this, skipWhileFactory(this, predicate, context, !0)); - }, - skipUntil: function(predicate, context) { - return this.skipWhile(not(predicate), context); - }, - sortBy: function(mapper, comparator) { - return reify(this, sortFactory(this, comparator, mapper)); - }, - take: function(amount) { - return this.slice(0, Math.max(0, amount)); - }, - takeLast: function(amount) { - return reify( - this, - this.toSeq() - .reverse() - .take(amount) - .reverse() - ); - }, - takeWhile: function(predicate, context) { - return reify( - this, - (function takeWhileFactory(iterable, predicate, context) { - var takeSequence = makeSequence(iterable); - return ( - (takeSequence.__iterateUncached = function(fn, reverse) { - var this$0 = this; - if (reverse) return this.cacheResult().__iterate(fn, reverse); - var iterations = 0; - return ( - iterable.__iterate(function(v, k, c) { - return predicate.call(context, v, k, c) && ++iterations && fn(v, k, this$0); - }), - iterations - ); - }), - (takeSequence.__iteratorUncached = function(type, reverse) { - var this$0 = this; - if (reverse) return this.cacheResult().__iterator(type, reverse); - var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse), - iterating = !0; - return new Iterator(function() { - if (!iterating) return { value: void 0, done: !0 }; - var step = iterator.next(); - if (step.done) return step; - var entry = step.value, - k = entry[0], - v = entry[1]; - return predicate.call(context, v, k, this$0) - ? type === ITERATE_ENTRIES ? step : iteratorValue(type, k, v, step) - : ((iterating = !1), { value: void 0, done: !0 }); - }); - }), - takeSequence - ); - })(this, predicate, context) - ); - }, - takeUntil: function(predicate, context) { - return this.takeWhile(not(predicate), context); - }, - valueSeq: function() { - return this.toIndexedSeq(); - }, - hashCode: function() { - return ( - this.__hash || - (this.__hash = (function hashIterable(iterable) { - if (iterable.size === 1 / 0) return 0; - var ordered = isOrdered(iterable), - keyed = isKeyed(iterable), - h = ordered ? 1 : 0; - return (function murmurHashOfSize(size, h) { - return ( - (h = imul(h, 3432918353)), - (h = imul((h << 15) | (h >>> -15), 461845907)), - (h = imul((h << 13) | (h >>> -13), 5)), - (h = imul((h = ((h + 3864292196) | 0) ^ size) ^ (h >>> 16), 2246822507)), - (h = smi((h = imul(h ^ (h >>> 13), 3266489909)) ^ (h >>> 16))) - ); - })( - iterable.__iterate( - keyed - ? ordered - ? function(v, k) { - h = (31 * h + hashMerge(hash(v), hash(k))) | 0; - } - : function(v, k) { - h = (h + hashMerge(hash(v), hash(k))) | 0; - } - : ordered - ? function(v) { - h = (31 * h + hash(v)) | 0; - } - : function(v) { - h = (h + hash(v)) | 0; - } - ), - h - ); - })(this)) - ); - } - }); - var IterablePrototype = Iterable.prototype; - (IterablePrototype[IS_ITERABLE_SENTINEL] = !0), - (IterablePrototype[ITERATOR_SYMBOL] = IterablePrototype.values), - (IterablePrototype.__toJS = IterablePrototype.toArray), - (IterablePrototype.__toStringMapper = quoteString), - (IterablePrototype.inspect = IterablePrototype.toSource = function() { - return this.toString(); - }), - (IterablePrototype.chain = IterablePrototype.flatMap), - (IterablePrototype.contains = IterablePrototype.includes), - mixin(KeyedIterable, { - flip: function() { - return reify(this, flipFactory(this)); - }, - mapEntries: function(mapper, context) { - var this$0 = this, - iterations = 0; - return reify( - this, - this.toSeq() - .map(function(v, k) { - return mapper.call(context, [k, v], iterations++, this$0); - }) - .fromEntrySeq() - ); - }, - mapKeys: function(mapper, context) { - var this$0 = this; - return reify( - this, - this.toSeq() - .flip() - .map(function(k, v) { - return mapper.call(context, k, v, this$0); - }) - .flip() - ); - } - }); - var KeyedIterablePrototype = KeyedIterable.prototype; - function keyMapper(v, k) { - return k; - } - function entryMapper(v, k) { - return [k, v]; - } - function not(predicate) { - return function() { - return !predicate.apply(this, arguments); - }; - } - function neg(predicate) { - return function() { - return -predicate.apply(this, arguments); - }; - } - function quoteString(value) { - return 'string' == typeof value ? JSON.stringify(value) : String(value); - } - function defaultZipper() { - return arrCopy(arguments); - } - function defaultNegComparator(a, b) { - return a < b ? 1 : a > b ? -1 : 0; - } - function hashMerge(a, b) { - return (a ^ (b + 2654435769 + (a << 6) + (a >> 2))) | 0; - } - return ( - (KeyedIterablePrototype[IS_KEYED_SENTINEL] = !0), - (KeyedIterablePrototype[ITERATOR_SYMBOL] = IterablePrototype.entries), - (KeyedIterablePrototype.__toJS = IterablePrototype.toObject), - (KeyedIterablePrototype.__toStringMapper = function(v, k) { - return JSON.stringify(k) + ': ' + quoteString(v); - }), - mixin(IndexedIterable, { - toKeyedSeq: function() { - return new ToKeyedSequence(this, !1); - }, - filter: function(predicate, context) { - return reify(this, filterFactory(this, predicate, context, !1)); - }, - findIndex: function(predicate, context) { - var entry = this.findEntry(predicate, context); - return entry ? entry[0] : -1; - }, - indexOf: function(searchValue) { - var key = this.keyOf(searchValue); - return void 0 === key ? -1 : key; - }, - lastIndexOf: function(searchValue) { - var key = this.lastKeyOf(searchValue); - return void 0 === key ? -1 : key; - }, - reverse: function() { - return reify(this, reverseFactory(this, !1)); - }, - slice: function(begin, end) { - return reify(this, sliceFactory(this, begin, end, !1)); - }, - splice: function(index, removeNum) { - var numArgs = arguments.length; - if ( - ((removeNum = Math.max(0 | removeNum, 0)), - 0 === numArgs || (2 === numArgs && !removeNum)) - ) - return this; - index = resolveBegin(index, index < 0 ? this.count() : this.size); - var spliced = this.slice(0, index); - return reify( - this, - 1 === numArgs - ? spliced - : spliced.concat(arrCopy(arguments, 2), this.slice(index + removeNum)) - ); - }, - findLastIndex: function(predicate, context) { - var entry = this.findLastEntry(predicate, context); - return entry ? entry[0] : -1; - }, - first: function() { - return this.get(0); - }, - flatten: function(depth) { - return reify(this, flattenFactory(this, depth, !1)); - }, - get: function(index, notSetValue) { - return (index = wrapIndex(this, index)) < 0 || - this.size === 1 / 0 || - (void 0 !== this.size && index > this.size) - ? notSetValue - : this.find( - function(_, key) { - return key === index; - }, - void 0, - notSetValue - ); - }, - has: function(index) { - return ( - (index = wrapIndex(this, index)) >= 0 && - (void 0 !== this.size - ? this.size === 1 / 0 || index < this.size - : -1 !== this.indexOf(index)) - ); - }, - interpose: function(separator) { - return reify( - this, - (function interposeFactory(iterable, separator) { - var interposedSequence = makeSequence(iterable); - return ( - (interposedSequence.size = iterable.size && 2 * iterable.size - 1), - (interposedSequence.__iterateUncached = function(fn, reverse) { - var this$0 = this, - iterations = 0; - return ( - iterable.__iterate(function(v, k) { - return ( - (!iterations || !1 !== fn(separator, iterations++, this$0)) && - !1 !== fn(v, iterations++, this$0) - ); - }, reverse), - iterations - ); - }), - (interposedSequence.__iteratorUncached = function(type, reverse) { - var step, - iterator = iterable.__iterator(ITERATE_VALUES, reverse), - iterations = 0; - return new Iterator(function() { - return (!step || iterations % 2) && (step = iterator.next()).done - ? step - : iterations % 2 - ? iteratorValue(type, iterations++, separator) - : iteratorValue(type, iterations++, step.value, step); - }); - }), - interposedSequence - ); - })(this, separator) - ); - }, - interleave: function() { - var iterables = [this].concat(arrCopy(arguments)), - zipped = zipWithFactory(this.toSeq(), IndexedSeq.of, iterables), - interleaved = zipped.flatten(!0); - return ( - zipped.size && (interleaved.size = zipped.size * iterables.length), - reify(this, interleaved) - ); - }, - keySeq: function() { - return Range(0, this.size); - }, - last: function() { - return this.get(-1); - }, - skipWhile: function(predicate, context) { - return reify(this, skipWhileFactory(this, predicate, context, !1)); - }, - zip: function() { - return reify( - this, - zipWithFactory(this, defaultZipper, [this].concat(arrCopy(arguments))) - ); - }, - zipWith: function(zipper) { - var iterables = arrCopy(arguments); - return (iterables[0] = this), reify(this, zipWithFactory(this, zipper, iterables)); - } - }), - (IndexedIterable.prototype[IS_INDEXED_SENTINEL] = !0), - (IndexedIterable.prototype[IS_ORDERED_SENTINEL] = !0), - mixin(SetIterable, { - get: function(value, notSetValue) { - return this.has(value) ? value : notSetValue; - }, - includes: function(value) { - return this.has(value); - }, - keySeq: function() { - return this.valueSeq(); - } - }), - (SetIterable.prototype.has = IterablePrototype.includes), - (SetIterable.prototype.contains = SetIterable.prototype.includes), - mixin(KeyedSeq, KeyedIterable.prototype), - mixin(IndexedSeq, IndexedIterable.prototype), - mixin(SetSeq, SetIterable.prototype), - mixin(KeyedCollection, KeyedIterable.prototype), - mixin(IndexedCollection, IndexedIterable.prototype), - mixin(SetCollection, SetIterable.prototype), - { - Iterable: Iterable, - Seq: Seq, - Collection: Collection, - Map: Map, - OrderedMap: OrderedMap, - List: List, - Stack: Stack, - Set: Set, - OrderedSet: OrderedSet, - Record: Record, - Range: Range, - Repeat: Repeat, - is: is, - fromJS: fromJS - } - ); - }), - (module.exports = factory()); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function(clientStore, domNode, provider) { - return { clientStore: clientStore, domNode: domNode, provider: provider }; - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _actions2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(1146)); - exports.default = { - actions: _actions2.default, - defaultState: { - shortcutOptions: { - goFullScreen: !1, - showStoriesPanel: !0, - showAddonPanel: !0, - showSearchBox: !1, - addonPanelInRight: !1 - } - } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _shortcuts2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(1147)); - exports.default = { shortcuts: _shortcuts2.default }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _defineProperty3 = _interopRequireDefault(__webpack_require__(31)), - _keys2 = _interopRequireDefault(__webpack_require__(34)), - _extends4 = _interopRequireDefault(__webpack_require__(8)); - exports.keyEventToOptions = keyEventToOptions; - var _lodash2 = _interopRequireDefault(__webpack_require__(270)), - _key_events = __webpack_require__(287), - _actions2 = _interopRequireDefault(__webpack_require__(803)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function keyEventToOptions(currentOptions, event) { - switch (event) { - case _key_events.features.FULLSCREEN: - return { goFullScreen: !currentOptions.goFullScreen }; - case _key_events.features.ADDON_PANEL: - return { showAddonPanel: !currentOptions.showAddonPanel }; - case _key_events.features.STORIES_PANEL: - return { showStoriesPanel: !currentOptions.showStoriesPanel }; - case _key_events.features.SHOW_SEARCH: - return { showSearchBox: !0 }; - case _key_events.features.ADDON_PANEL_IN_RIGHT: - return { addonPanelInRight: !currentOptions.addonPanelInRight }; - default: - return {}; - } - } - var renamedOptions = { - showLeftPanel: 'showStoriesPanel', - showDownPanel: 'showAddonPanel', - downPanelInRight: 'addonPanelInRight' - }; - exports.default = { - handleEvent: function handleEvent(context, event) { - var clientStore = context.clientStore; - switch (event) { - case _key_events.features.NEXT_STORY: - _actions2.default.api.jumpToStory(context, 1); - break; - case _key_events.features.PREV_STORY: - _actions2.default.api.jumpToStory(context, -1); - break; - default: - clientStore.update(function(state) { - var newOptions = keyEventToOptions(state.shortcutOptions, event); - return { - shortcutOptions: (0, _extends4.default)({}, state.shortcutOptions, newOptions) - }; - }); - } - }, - setOptions: function setOptions(_ref, options) { - _ref.clientStore.update(function(state) { - var updatedOptions = (0, _extends4.default)( - {}, - state.shortcutOptions, - (0, _lodash2.default)(options, (0, _keys2.default)(state.shortcutOptions)) - ); - return { - shortcutOptions: (0, _keys2.default)(renamedOptions).reduce(function(acc, oldName) { - var newName = renamedOptions[oldName]; - return oldName in options && !(newName in options) - ? (0, _extends4.default)( - {}, - acc, - (0, _defineProperty3.default)({}, newName, options[oldName]) - ) - : acc; - }, updatedOptions) - }; - }); - } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.jumpToStory = void 0); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _keys2 = _interopRequireDefault(__webpack_require__(34)); - (exports.ensureKind = ensureKind), - (exports.ensureStory = ensureStory), - (exports.ensurePanel = ensurePanel); - var _lodash2 = _interopRequireDefault(__webpack_require__(270)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function _jumpToStory(storyKinds, selectedKind, selectedStory, direction) { - var flatteredStories = [], - currentIndex = -1; - storyKinds.forEach(function(_ref) { - var kind = _ref.kind; - _ref.stories.forEach(function(story) { - flatteredStories.push({ kind: kind, story: story }), - kind === selectedKind && - story === selectedStory && - (currentIndex = flatteredStories.length - 1); - }); - }); - var jumpedStory = flatteredStories[currentIndex + direction]; - return jumpedStory - ? { selectedKind: jumpedStory.kind, selectedStory: jumpedStory.story } - : { selectedKind: selectedKind, selectedStory: selectedStory }; - } - function ensureKind(storyKinds, selectedKind) { - if (!storyKinds) return selectedKind; - var found = storyKinds.find(function(item) { - return item.kind === selectedKind; - }); - return found - ? found.kind - : storyKinds.map(function(item) { - return item.kind; - })[0]; - } - function ensureStory(storyKinds, selectedKind, selectedStory) { - if (!storyKinds) return selectedStory; - var kindInfo = storyKinds.find(function(item) { - return item.kind === selectedKind; - }); - if (!kindInfo) return null; - var found = kindInfo.stories.find(function(item) { - return item === selectedStory; - }); - return found || kindInfo.stories[0]; - } - function ensurePanel(panels, selectedPanel, currentPanel) { - if ((0, _keys2.default)(panels).indexOf(selectedPanel) >= 0) return selectedPanel; - var logger = console; - return ( - logger.group('Available Panels ID:'), - (0, _keys2.default)(panels).forEach(function(panelID) { - return logger.log(panelID + ' (' + panels[panelID].title + ')'); - }), - logger.groupEnd('Available Panels ID:'), - currentPanel - ); - } - (exports.jumpToStory = _jumpToStory), - (exports.default = { - setStories: function setStories(_ref2, stories) { - _ref2.clientStore.update(function(state) { - var selectedKind = ensureKind(stories, state.selectedKind), - currentSelectedStory = - selectedKind === state.selectedKind ? state.selectedStory : null, - selectedStory = ensureStory(stories, selectedKind, currentSelectedStory); - return { stories: stories, selectedStory: selectedStory, selectedKind: selectedKind }; - }); - }, - selectStory: function selectStory(_ref3, kind, story) { - _ref3.clientStore.update(function(state) { - var selectedKind = ensureKind(state.stories, kind); - return { - selectedKind: selectedKind, - selectedStory: ensureStory(state.stories, selectedKind, story) - }; - }); - }, - selectInCurrentKind: function selectInCurrentKind(_ref4, story) { - _ref4.clientStore.update(function(state) { - return { selectedStory: ensureStory(state.stories, state.selectedKind, story) }; - }); - }, - jumpToStory: function jumpToStory(_ref5, direction) { - _ref5.clientStore.update(function(state) { - return _jumpToStory(state.stories, state.selectedKind, state.selectedStory, direction); - }); - }, - setOptions: function setOptions(env, options) { - var clientStore = env.clientStore, - provider = env.provider; - clientStore.update(function(state) { - var newOptions = (0, _lodash2.default)(options, (0, _keys2.default)(state.uiOptions)), - updatedUiOptions = (0, _extends3.default)({}, state.uiOptions, newOptions), - otherOptions = {}; - return ( - (0, _keys2.default)((0, _lodash2.default)(options, ['selectedAddonPanel'])).length && - (otherOptions.selectedAddonPanel = ensurePanel( - provider.getPanels(), - options.selectedAddonPanel, - state.selectedAddonPanel - )), - (0, _extends3.default)({ uiOptions: updatedUiOptions }, otherOptions) - ); - }); - }, - setQueryParams: function setQueryParams(_ref6, customQueryParams) { - _ref6.clientStore.update(function(state) { - var updatedQueryParams = (0, _extends3.default)( - {}, - state.customQueryParams, - customQueryParams - ); - return ( - (0, _keys2.default)(customQueryParams).forEach(function(key) { - null === updatedQueryParams[key] && delete updatedQueryParams[key]; - }), - { customQueryParams: updatedQueryParams } - ); - }); - } - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _actions3 = _interopRequireDefault(__webpack_require__(803)), - _init_api2 = _interopRequireDefault(__webpack_require__(1150)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - exports.default = { - actions: _actions3.default, - defaultState: { - uiOptions: { - name: 'STORYBOOK', - url: 'https://github.com/storybooks/storybook', - sortStoriesByKind: !1, - hierarchySeparator: '/', - sidebarAnimations: !0 - } - }, - load: function load(_ref, _actions) { - var clientStore = _ref.clientStore, - provider = _ref.provider; - (0, _init_api2.default)(provider, clientStore, _actions); - } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(8)); - exports.default = function(provider, clientStore, actions) { - var callbacks = new _events.EventEmitter(), - currentKind = void 0, - currentStory = void 0, - providerApi = { - onStory: function onStory(cb) { - return ( - callbacks.on('story', cb), - currentKind && - currentStory && - setTimeout(function() { - return cb(currentKind, currentStory); - }, 0), - function stopListening() { - callbacks.removeListener('story', cb); - } - ); - }, - setStories: actions.api.setStories, - selectStory: actions.api.selectStory, - selectInCurrentKind: actions.api.selectInCurrentKind, - handleShortcut: actions.shortcuts.handleEvent, - setQueryParams: actions.api.setQueryParams, - setOptions: function setOptions() { - var _actions$api, _actions$shortcuts; - (_actions$api = actions.api).setOptions.apply(_actions$api, arguments), - (_actions$shortcuts = actions.shortcuts).setOptions.apply( - _actions$shortcuts, - arguments - ); - }, - getQueryParam: function getQueryParam(key) { - var state = clientStore.getAll(); - if (state.customQueryParams) return state.customQueryParams[key]; - }, - getUrlState: function getUrlState(overrideParams) { - var state = clientStore.getAll(); - return (0, _handle_routing.getUrlState)( - (0, _extends3.default)({}, state, overrideParams) - ); - } - }; - provider.handleAPI(providerApi), - clientStore.subscribe(function() { - var state = clientStore.getAll(); - state.selectedKind && - ((state.selectedKind === currentKind && state.selectedStory === currentStory) || - ((currentKind = state.selectedKind), - (currentStory = state.selectedStory), - callbacks.emit('story', state.selectedKind, state.selectedStory))); - }); - }; - var _events = __webpack_require__(1151), - _handle_routing = __webpack_require__(607); - }, - function(module, exports) { - function EventEmitter() { - (this._events = this._events || {}), (this._maxListeners = this._maxListeners || void 0); - } - function isFunction(arg) { - return 'function' == typeof arg; - } - function isObject(arg) { - return 'object' == typeof arg && null !== arg; - } - function isUndefined(arg) { - return void 0 === arg; - } - (module.exports = EventEmitter), - (EventEmitter.EventEmitter = EventEmitter), - (EventEmitter.prototype._events = void 0), - (EventEmitter.prototype._maxListeners = void 0), - (EventEmitter.defaultMaxListeners = 10), - (EventEmitter.prototype.setMaxListeners = function(n) { - if ( - !(function isNumber(arg) { - return 'number' == typeof arg; - })(n) || - n < 0 || - isNaN(n) - ) - throw TypeError('n must be a positive number'); - return (this._maxListeners = n), this; - }), - (EventEmitter.prototype.emit = function(type) { - var er, handler, len, args, i, listeners; - if ( - (this._events || (this._events = {}), - 'error' === type && - (!this._events.error || (isObject(this._events.error) && !this._events.error.length))) - ) { - if ((er = arguments[1]) instanceof Error) throw er; - var err = new Error('Uncaught, unspecified "error" event. (' + er + ')'); - throw ((err.context = er), err); - } - if (isUndefined((handler = this._events[type]))) return !1; - if (isFunction(handler)) - switch (arguments.length) { - case 1: - handler.call(this); - break; - case 2: - handler.call(this, arguments[1]); - break; - case 3: - handler.call(this, arguments[1], arguments[2]); - break; - default: - (args = Array.prototype.slice.call(arguments, 1)), handler.apply(this, args); - } - else if (isObject(handler)) - for ( - args = Array.prototype.slice.call(arguments, 1), - len = (listeners = handler.slice()).length, - i = 0; - i < len; - i++ - ) - listeners[i].apply(this, args); - return !0; - }), - (EventEmitter.prototype.addListener = function(type, listener) { - var m; - if (!isFunction(listener)) throw TypeError('listener must be a function'); - return ( - this._events || (this._events = {}), - this._events.newListener && - this.emit( - 'newListener', - type, - isFunction(listener.listener) ? listener.listener : listener - ), - this._events[type] - ? isObject(this._events[type]) - ? this._events[type].push(listener) - : (this._events[type] = [this._events[type], listener]) - : (this._events[type] = listener), - isObject(this._events[type]) && - !this._events[type].warned && - (m = isUndefined(this._maxListeners) - ? EventEmitter.defaultMaxListeners - : this._maxListeners) && - m > 0 && - this._events[type].length > m && - ((this._events[type].warned = !0), - console.error( - '(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.', - this._events[type].length - ), - 'function' == typeof console.trace && console.trace()), - this - ); - }), - (EventEmitter.prototype.on = EventEmitter.prototype.addListener), - (EventEmitter.prototype.once = function(type, listener) { - if (!isFunction(listener)) throw TypeError('listener must be a function'); - var fired = !1; - function g() { - this.removeListener(type, g), fired || ((fired = !0), listener.apply(this, arguments)); - } - return (g.listener = listener), this.on(type, g), this; - }), - (EventEmitter.prototype.removeListener = function(type, listener) { - var list, position, length, i; - if (!isFunction(listener)) throw TypeError('listener must be a function'); - if (!this._events || !this._events[type]) return this; - if ( - ((length = (list = this._events[type]).length), - (position = -1), - list === listener || (isFunction(list.listener) && list.listener === listener)) - ) - delete this._events[type], - this._events.removeListener && this.emit('removeListener', type, listener); - else if (isObject(list)) { - for (i = length; i-- > 0; ) - if (list[i] === listener || (list[i].listener && list[i].listener === listener)) { - position = i; - break; - } - if (position < 0) return this; - 1 === list.length - ? ((list.length = 0), delete this._events[type]) - : list.splice(position, 1), - this._events.removeListener && this.emit('removeListener', type, listener); - } - return this; - }), - (EventEmitter.prototype.removeAllListeners = function(type) { - var key, listeners; - if (!this._events) return this; - if (!this._events.removeListener) - return ( - 0 === arguments.length - ? (this._events = {}) - : this._events[type] && delete this._events[type], - this - ); - if (0 === arguments.length) { - for (key in this._events) 'removeListener' !== key && this.removeAllListeners(key); - return this.removeAllListeners('removeListener'), (this._events = {}), this; - } - if (isFunction((listeners = this._events[type]))) this.removeListener(type, listeners); - else if (listeners) - for (; listeners.length; ) this.removeListener(type, listeners[listeners.length - 1]); - return delete this._events[type], this; - }), - (EventEmitter.prototype.listeners = function(type) { - return this._events && this._events[type] - ? isFunction(this._events[type]) ? [this._events[type]] : this._events[type].slice() - : []; - }), - (EventEmitter.prototype.listenerCount = function(type) { - if (this._events) { - var evlistener = this._events[type]; - if (isFunction(evlistener)) return 1; - if (evlistener) return evlistener.length; - } - return 0; - }), - (EventEmitter.listenerCount = function(emitter, type) { - return emitter.listenerCount(type); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _routes2 = _interopRequireDefault(__webpack_require__(1153)), - _actions2 = _interopRequireDefault(__webpack_require__(1331)), - _init_panels2 = _interopRequireDefault(__webpack_require__(1333)), - _handle_routing2 = _interopRequireDefault(__webpack_require__(607)), - _handle_keyevents2 = _interopRequireDefault(__webpack_require__(1334)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - exports.default = { - routes: _routes2.default, - actions: _actions2.default, - defaultState: { showShortcutsHelp: !1 }, - load: function load(c, a) { - (0, _init_panels2.default)(c, a), - (0, _handle_routing2.default)(c, a), - (0, _handle_keyevents2.default)(a); - } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function(injectDeps, _ref) { - var clientStore = _ref.clientStore, - provider = _ref.provider, - domNode = _ref.domNode, - Preview = function Preview() { - var state = clientStore.getAll(); - return provider.renderPreview(state.selectedKind, state.selectedStory); - }; - _reactModal2.default.setAppElement(domNode); - var root = _react2.default.createElement( - 'div', - null, - _react2.default.createElement(_layout2.default, { - storiesPanel: function storiesPanel() { - return _react2.default.createElement(_stories_panel2.default, null); - }, - preview: function preview() { - return _react2.default.createElement(Preview, null); - }, - addonPanel: function addonPanel() { - return _react2.default.createElement(_addon_panel2.default, null); - } - }), - _react2.default.createElement(_shortcuts_help2.default, null), - _react2.default.createElement(_search_box2.default, null) - ); - _reactDom2.default.render(root, domNode); - }); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactDom2 = _interopRequireDefault(__webpack_require__(122)), - _reactModal2 = _interopRequireDefault(__webpack_require__(608)), - _layout2 = _interopRequireDefault(__webpack_require__(1159)), - _stories_panel2 = _interopRequireDefault(__webpack_require__(1198)), - _addon_panel2 = _interopRequireDefault(__webpack_require__(1322)), - _shortcuts_help2 = _interopRequireDefault(__webpack_require__(1325)), - _search_box2 = _interopRequireDefault(__webpack_require__(1327)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.bodyOpenClassName = exports.portalClassName = void 0); - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }, - _createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - Object.defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _reactDom2 = _interopRequireDefault(__webpack_require__(122)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _ModalPortal2 = _interopRequireDefault(__webpack_require__(1155)), - ariaAppHider = (function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) return obj; - var newObj = {}; - if (null != obj) - for (var key in obj) - Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); - return (newObj.default = obj), newObj; - })(__webpack_require__(805)), - _safeHTMLElement = __webpack_require__(808), - _safeHTMLElement2 = _interopRequireDefault(_safeHTMLElement); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - } - var portalClassName = (exports.portalClassName = 'ReactModalPortal'), - bodyOpenClassName = (exports.bodyOpenClassName = 'ReactModal__Body--open'), - isReact16 = void 0 !== _reactDom2.default.createPortal, - createPortal = isReact16 - ? _reactDom2.default.createPortal - : _reactDom2.default.unstable_renderSubtreeIntoContainer; - function getParentElement(parentSelector) { - return parentSelector(); - } - var Modal = (function(_Component) { - function Modal() { - var _ref, _temp, _this; - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, Modal); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) - args[_key] = arguments[_key]; - return ( - (_temp = _this = _possibleConstructorReturn( - this, - (_ref = Modal.__proto__ || Object.getPrototypeOf(Modal)).call.apply( - _ref, - [this].concat(args) - ) - )), - (_this.removePortal = function() { - !isReact16 && _reactDom2.default.unmountComponentAtNode(_this.node), - getParentElement(_this.props.parentSelector).removeChild(_this.node); - }), - (_this.portalRef = function(ref) { - _this.portal = ref; - }), - (_this.renderPortal = function(props) { - var portal = createPortal( - _this, - _react2.default.createElement( - _ModalPortal2.default, - _extends({ defaultStyles: Modal.defaultStyles }, props) - ), - _this.node - ); - _this.portalRef(portal); - }), - _possibleConstructorReturn(_this, _temp) - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(Modal, _react.Component), - _createClass( - Modal, - [ - { - key: 'componentDidMount', - value: function componentDidMount() { - _safeHTMLElement.canUseDOM && - (isReact16 || (this.node = document.createElement('div')), - (this.node.className = this.props.portalClassName), - getParentElement(this.props.parentSelector).appendChild(this.node), - !isReact16 && this.renderPortal(this.props)); - } - }, - { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(newProps) { - if (_safeHTMLElement.canUseDOM) { - var isOpen = newProps.isOpen; - if (this.props.isOpen || isOpen) { - var currentParent = getParentElement(this.props.parentSelector), - newParent = getParentElement(newProps.parentSelector); - newParent !== currentParent && - (currentParent.removeChild(this.node), newParent.appendChild(this.node)), - !isReact16 && this.renderPortal(newProps); - } - } - } - }, - { - key: 'componentWillUpdate', - value: function componentWillUpdate(newProps) { - _safeHTMLElement.canUseDOM && - newProps.portalClassName !== this.props.portalClassName && - (this.node.className = newProps.portalClassName); - } - }, - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - if (_safeHTMLElement.canUseDOM && this.node && this.portal) { - var state = this.portal.state, - now = Date.now(), - closesAt = - state.isOpen && - this.props.closeTimeoutMS && - (state.closesAt || now + this.props.closeTimeoutMS); - closesAt - ? (state.beforeClose || this.portal.closeWithTimeout(), - setTimeout(this.removePortal, closesAt - now)) - : this.removePortal(); - } - } - }, - { - key: 'render', - value: function render() { - return _safeHTMLElement.canUseDOM && isReact16 - ? (!this.node && isReact16 && (this.node = document.createElement('div')), - createPortal( - _react2.default.createElement( - _ModalPortal2.default, - _extends( - { ref: this.portalRef, defaultStyles: Modal.defaultStyles }, - this.props - ) - ), - this.node - )) - : null; - } - } - ], - [ - { - key: 'setAppElement', - value: function setAppElement(element) { - ariaAppHider.setElement(element); - } - } - ] - ), - Modal - ); - })(); - (Modal.propTypes = { - isOpen: _propTypes2.default.bool.isRequired, - style: _propTypes2.default.shape({ - content: _propTypes2.default.object, - overlay: _propTypes2.default.object - }), - portalClassName: _propTypes2.default.string, - bodyOpenClassName: _propTypes2.default.string, - className: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.shape({ - base: _propTypes2.default.string.isRequired, - afterOpen: _propTypes2.default.string.isRequired, - beforeClose: _propTypes2.default.string.isRequired - }) - ]), - overlayClassName: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.shape({ - base: _propTypes2.default.string.isRequired, - afterOpen: _propTypes2.default.string.isRequired, - beforeClose: _propTypes2.default.string.isRequired - }) - ]), - appElement: _propTypes2.default.instanceOf(_safeHTMLElement2.default), - onAfterOpen: _propTypes2.default.func, - onRequestClose: _propTypes2.default.func, - closeTimeoutMS: _propTypes2.default.number, - ariaHideApp: _propTypes2.default.bool, - shouldFocusAfterRender: _propTypes2.default.bool, - shouldCloseOnOverlayClick: _propTypes2.default.bool, - shouldReturnFocusAfterClose: _propTypes2.default.bool, - parentSelector: _propTypes2.default.func, - aria: _propTypes2.default.object, - role: _propTypes2.default.string, - contentLabel: _propTypes2.default.string, - shouldCloseOnEsc: _propTypes2.default.bool - }), - (Modal.defaultProps = { - isOpen: !1, - portalClassName: portalClassName, - bodyOpenClassName: bodyOpenClassName, - ariaHideApp: !0, - closeTimeoutMS: 0, - shouldFocusAfterRender: !0, - shouldCloseOnEsc: !0, - shouldCloseOnOverlayClick: !0, - shouldReturnFocusAfterClose: !0, - parentSelector: function parentSelector() { - return document.body; - } - }), - (Modal.defaultStyles = { - overlay: { - position: 'fixed', - top: 0, - left: 0, - right: 0, - bottom: 0, - backgroundColor: 'rgba(255, 255, 255, 0.75)' - }, - content: { - position: 'absolute', - top: '40px', - left: '40px', - right: '40px', - bottom: '40px', - border: '1px solid #ccc', - background: '#fff', - overflow: 'auto', - WebkitOverflowScrolling: 'touch', - borderRadius: '4px', - outline: 'none', - padding: '20px' - } - }), - (exports.default = Modal); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }, - _typeof = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(obj) { - return typeof obj; - } - : function(obj) { - return obj && - 'function' == typeof Symbol && - obj.constructor === Symbol && - obj !== Symbol.prototype - ? 'symbol' - : typeof obj; - }, - _createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - Object.defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - focusManager = _interopRequireWildcard(__webpack_require__(1156)), - _scopeTab2 = _interopRequireDefault(__webpack_require__(1157)), - ariaAppHider = _interopRequireWildcard(__webpack_require__(805)), - refCount = _interopRequireWildcard(__webpack_require__(807)), - bodyClassList = _interopRequireWildcard(__webpack_require__(1158)), - _safeHTMLElement2 = _interopRequireDefault(__webpack_require__(808)); - function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) return obj; - var newObj = {}; - if (null != obj) - for (var key in obj) - Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); - return (newObj.default = obj), newObj; - } - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var CLASS_NAMES = { overlay: 'ReactModal__Overlay', content: 'ReactModal__Content' }, - TAB_KEY = 9, - ESC_KEY = 27, - ModalPortal = (function(_Component) { - function ModalPortal(props) { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, ModalPortal); - var _this = (function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - })(this, (ModalPortal.__proto__ || Object.getPrototypeOf(ModalPortal)).call(this, props)); - return ( - (_this.setFocusAfterRender = function(focus) { - _this.focusAfterRender = _this.props.shouldFocusAfterRender && focus; - }), - (_this.setOverlayRef = function(overlay) { - _this.overlay = overlay; - }), - (_this.setContentRef = function(content) { - _this.content = content; - }), - (_this.afterClose = function() { - var _this$props = _this.props, - appElement = _this$props.appElement, - ariaHideApp = _this$props.ariaHideApp; - bodyClassList.remove(_this.props.bodyOpenClassName), - ariaHideApp && refCount.totalCount() < 1 && ariaAppHider.show(appElement), - _this.props.shouldFocusAfterRender && - (_this.props.shouldReturnFocusAfterClose - ? (focusManager.returnFocus(), focusManager.teardownScopedFocus()) - : focusManager.popWithoutFocus()); - }), - (_this.open = function() { - _this.beforeOpen(), - _this.state.afterOpen && _this.state.beforeClose - ? (clearTimeout(_this.closeTimer), _this.setState({ beforeClose: !1 })) - : (_this.props.shouldFocusAfterRender && - (focusManager.setupScopedFocus(_this.node), focusManager.markForFocusLater()), - _this.setState({ isOpen: !0 }, function() { - _this.setState({ afterOpen: !0 }), - _this.props.isOpen && _this.props.onAfterOpen && _this.props.onAfterOpen(); - })); - }), - (_this.close = function() { - _this.props.closeTimeoutMS > 0 - ? _this.closeWithTimeout() - : _this.closeWithoutTimeout(); - }), - (_this.focusContent = function() { - return _this.content && !_this.contentHasFocus() && _this.content.focus(); - }), - (_this.closeWithTimeout = function() { - var closesAt = Date.now() + _this.props.closeTimeoutMS; - _this.setState({ beforeClose: !0, closesAt: closesAt }, function() { - _this.closeTimer = setTimeout( - _this.closeWithoutTimeout, - _this.state.closesAt - Date.now() - ); - }); - }), - (_this.closeWithoutTimeout = function() { - _this.setState( - { beforeClose: !1, isOpen: !1, afterOpen: !1, closesAt: null }, - _this.afterClose - ); - }), - (_this.handleKeyDown = function(event) { - event.keyCode === TAB_KEY && (0, _scopeTab2.default)(_this.content, event), - _this.props.shouldCloseOnEsc && - event.keyCode === ESC_KEY && - (event.stopPropagation(), _this.requestClose(event)); - }), - (_this.handleOverlayOnClick = function(event) { - null === _this.shouldClose && (_this.shouldClose = !0), - _this.shouldClose && - _this.props.shouldCloseOnOverlayClick && - (_this.ownerHandlesClose() ? _this.requestClose(event) : _this.focusContent()), - (_this.shouldClose = null), - (_this.moveFromContentToOverlay = null); - }), - (_this.handleOverlayOnMouseUp = function() { - null === _this.moveFromContentToOverlay && (_this.shouldClose = !1); - }), - (_this.handleContentOnMouseUp = function() { - _this.shouldClose = !1; - }), - (_this.handleOverlayOnMouseDown = function(event) { - _this.props.shouldCloseOnOverlayClick || - event.target != _this.overlay || - event.preventDefault(), - (_this.moveFromContentToOverlay = !1); - }), - (_this.handleContentOnClick = function() { - _this.shouldClose = !1; - }), - (_this.handleContentOnMouseDown = function() { - (_this.shouldClose = !1), (_this.moveFromContentToOverlay = !1); - }), - (_this.requestClose = function(event) { - return _this.ownerHandlesClose() && _this.props.onRequestClose(event); - }), - (_this.ownerHandlesClose = function() { - return _this.props.onRequestClose; - }), - (_this.shouldBeClosed = function() { - return !_this.state.isOpen && !_this.state.beforeClose; - }), - (_this.contentHasFocus = function() { - return ( - document.activeElement === _this.content || - _this.content.contains(document.activeElement) - ); - }), - (_this.buildClassName = function(which, additional) { - var classNames = - 'object' === (void 0 === additional ? 'undefined' : _typeof(additional)) - ? additional - : { - base: CLASS_NAMES[which], - afterOpen: CLASS_NAMES[which] + '--after-open', - beforeClose: CLASS_NAMES[which] + '--before-close' - }, - className = classNames.base; - return ( - _this.state.afterOpen && (className = className + ' ' + classNames.afterOpen), - _this.state.beforeClose && (className = className + ' ' + classNames.beforeClose), - 'string' == typeof additional && additional - ? className + ' ' + additional - : className - ); - }), - (_this.ariaAttributes = function(items) { - return Object.keys(items).reduce(function(acc, name) { - return (acc['aria-' + name] = items[name]), acc; - }, {}); - }), - (_this.state = { afterOpen: !1, beforeClose: !1 }), - (_this.shouldClose = null), - (_this.moveFromContentToOverlay = null), - _this - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(ModalPortal, _react.Component), - _createClass(ModalPortal, [ - { - key: 'componentDidMount', - value: function componentDidMount() { - this.props.isOpen && (this.setFocusAfterRender(!0), this.open()); - } - }, - { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(newProps) { - !this.props.isOpen && newProps.isOpen - ? (this.setFocusAfterRender(!0), this.open()) - : this.props.isOpen && !newProps.isOpen && this.close(); - } - }, - { - key: 'componentDidUpdate', - value: function componentDidUpdate() { - this.focusAfterRender && (this.focusContent(), this.setFocusAfterRender(!1)); - } - }, - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.afterClose(), clearTimeout(this.closeTimer); - } - }, - { - key: 'beforeOpen', - value: function beforeOpen() { - var _props = this.props, - appElement = _props.appElement, - ariaHideApp = _props.ariaHideApp, - bodyOpenClassName = _props.bodyOpenClassName; - bodyClassList.add(bodyOpenClassName), ariaHideApp && ariaAppHider.hide(appElement); - } - }, - { - key: 'render', - value: function render() { - var _props2 = this.props, - className = _props2.className, - overlayClassName = _props2.overlayClassName, - defaultStyles = _props2.defaultStyles, - contentStyles = className ? {} : defaultStyles.content, - overlayStyles = overlayClassName ? {} : defaultStyles.overlay; - return this.shouldBeClosed() - ? null - : _react2.default.createElement( - 'div', - { - ref: this.setOverlayRef, - className: this.buildClassName('overlay', overlayClassName), - style: _extends({}, overlayStyles, this.props.style.overlay), - onClick: this.handleOverlayOnClick, - onMouseDown: this.handleOverlayOnMouseDown, - onMouseUp: this.handleOverlayOnMouseUp, - 'aria-modal': 'true' - }, - _react2.default.createElement( - 'div', - _extends( - { - ref: this.setContentRef, - style: _extends({}, contentStyles, this.props.style.content), - className: this.buildClassName('content', className), - tabIndex: '-1', - onKeyDown: this.handleKeyDown, - onMouseDown: this.handleContentOnMouseDown, - onMouseUp: this.handleContentOnMouseUp, - onClick: this.handleContentOnClick, - role: this.props.role, - 'aria-label': this.props.contentLabel - }, - this.ariaAttributes(this.props.aria || {}) - ), - this.props.children - ) - ); - } - } - ]), - ModalPortal - ); - })(); - (ModalPortal.defaultProps = { style: { overlay: {}, content: {} } }), - (ModalPortal.propTypes = { - isOpen: _propTypes2.default.bool.isRequired, - defaultStyles: _propTypes2.default.shape({ - content: _propTypes2.default.object, - overlay: _propTypes2.default.object - }), - style: _propTypes2.default.shape({ - content: _propTypes2.default.object, - overlay: _propTypes2.default.object - }), - className: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.object - ]), - overlayClassName: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.object - ]), - bodyOpenClassName: _propTypes2.default.string, - ariaHideApp: _propTypes2.default.bool, - appElement: _propTypes2.default.instanceOf(_safeHTMLElement2.default), - onAfterOpen: _propTypes2.default.func, - onRequestClose: _propTypes2.default.func, - closeTimeoutMS: _propTypes2.default.number, - shouldFocusAfterRender: _propTypes2.default.bool, - shouldCloseOnOverlayClick: _propTypes2.default.bool, - shouldReturnFocusAfterClose: _propTypes2.default.bool, - role: _propTypes2.default.string, - contentLabel: _propTypes2.default.string, - aria: _propTypes2.default.object, - children: _propTypes2.default.node, - shouldCloseOnEsc: _propTypes2.default.bool - }), - (exports.default = ModalPortal), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.handleBlur = handleBlur), - (exports.handleFocus = handleFocus), - (exports.markForFocusLater = function markForFocusLater() { - focusLaterElements.push(document.activeElement); - }), - (exports.returnFocus = function returnFocus() { - var toFocus = null; - try { - return void ( - 0 !== focusLaterElements.length && (toFocus = focusLaterElements.pop()).focus() - ); - } catch (e) { - console.warn( - ['You tried to return focus to', toFocus, 'but it is not in the DOM anymore'].join(' ') - ); - } - }), - (exports.popWithoutFocus = function popWithoutFocus() { - focusLaterElements.length > 0 && focusLaterElements.pop(); - }), - (exports.setupScopedFocus = function setupScopedFocus(element) { - (modalElement = element), - window.addEventListener - ? (window.addEventListener('blur', handleBlur, !1), - document.addEventListener('focus', handleFocus, !0)) - : (window.attachEvent('onBlur', handleBlur), - document.attachEvent('onFocus', handleFocus)); - }), - (exports.teardownScopedFocus = function teardownScopedFocus() { - (modalElement = null), - window.addEventListener - ? (window.removeEventListener('blur', handleBlur), - document.removeEventListener('focus', handleFocus)) - : (window.detachEvent('onBlur', handleBlur), - document.detachEvent('onFocus', handleFocus)); - }); - var _tabbable2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(804)); - var focusLaterElements = [], - modalElement = null, - needToFocus = !1; - function handleBlur() { - needToFocus = !0; - } - function handleFocus() { - if (needToFocus) { - if (((needToFocus = !1), !modalElement)) return; - setTimeout(function() { - modalElement.contains(document.activeElement) || - ((0, _tabbable2.default)(modalElement)[0] || modalElement).focus(); - }, 0); - } - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function scopeTab(node, event) { - var tabbable = (0, _tabbable2.default)(node); - if (!tabbable.length) return void event.preventDefault(); - var target, - shiftKey = event.shiftKey, - head = tabbable[0], - tail = tabbable[tabbable.length - 1]; - if (node === document.activeElement) return; - tail !== document.activeElement || shiftKey || (target = head); - head === document.activeElement && shiftKey && (target = tail); - if (target) return event.preventDefault(), void target.focus(); - var checkSafari = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent); - if ( - null == checkSafari || - 'Chrome' == checkSafari[1] || - null != /\biPod\b|\biPad\b/g.exec(navigator.userAgent) - ) - return; - var x = tabbable.indexOf(document.activeElement); - x > -1 && (x += shiftKey ? -1 : 1); - event.preventDefault(), tabbable[x].focus(); - }); - var _tabbable2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(804)); - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.add = function add(bodyClass) { - bodyClass - .split(' ') - .map(refCount.add) - .forEach(function(className) { - return document.body.classList.add(className); - }); - }), - (exports.remove = function remove(bodyClass) { - var classListMap = refCount.get(); - bodyClass - .split(' ') - .map(refCount.remove) - .filter(function(className) { - return 0 === classListMap[className]; - }) - .forEach(function(className) { - return document.body.classList.remove(className); - }); - }); - var refCount = (function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) return obj; - var newObj = {}; - if (null != obj) - for (var key in obj) - Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); - return (newObj.default = obj), newObj; - })(__webpack_require__(807)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.mapper = void 0); - var _lodash2 = _interopRequireDefault(__webpack_require__(270)), - _layout2 = _interopRequireDefault(__webpack_require__(1160)), - _gen_podda_loader2 = _interopRequireDefault(__webpack_require__(187)), - _compose2 = _interopRequireDefault(__webpack_require__(182)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var mapper = (exports.mapper = function mapper(_ref) { - var shortcutOptions = _ref.shortcutOptions; - return (0, _lodash2.default)( - shortcutOptions, - 'showStoriesPanel', - 'showAddonPanel', - 'goFullScreen', - 'addonPanelInRight' - ); - }); - exports.default = (0, _compose2.default)((0, _gen_podda_loader2.default)(mapper))( - _layout2.default - ); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _stringify2 = _interopRequireDefault(__webpack_require__(123)), - _global = __webpack_require__(50), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactSplitPane2 = _interopRequireDefault(__webpack_require__(1161)), - _usplit2 = _interopRequireDefault(__webpack_require__(1183)), - _dimensions2 = _interopRequireDefault(__webpack_require__(1184)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var rootStyle = { height: '100vh', backgroundColor: '#F7F7F7' }, - resizerCursor = function resizerCursor(isVert) { - return isVert ? 'col-resize' : 'row-resize'; - }, - normalPreviewStyle = { - width: '100%', - height: '100%', - backgroundColor: '#FFF', - border: '1px solid #ECECEC', - borderRadius: 4 - }, - fullScreenPreviewStyle = { - position: 'fixed', - left: '0px', - right: '0px', - top: '0px', - zIndex: 1, - backgroundColor: '#FFF', - height: '100%', - width: '100%', - border: 0, - margin: 0, - padding: 0, - WebkitOverflowScrolling: 'touch' - }, - defaultSizes = { - addonPanel: { down: 200, right: 400 }, - storiesPanel: { left: 250, top: 400 } - }, - saveSizes = function saveSizes(sizes) { - try { - return _global.localStorage.setItem('panelSizes', (0, _stringify2.default)(sizes)), !0; - } catch (e) { - return !1; - } - }, - getSavedSizes = function getSavedSizes(sizes) { - try { - var panelSizes = _global.localStorage.getItem('panelSizes'); - return panelSizes ? JSON.parse(panelSizes) : (saveSizes(sizes), sizes); - } catch (e) { - return saveSizes(sizes), sizes; - } - }, - Layout = (function(_React$Component) { - function Layout(props) { - (0, _classCallCheck3.default)(this, Layout); - var _this = (0, _possibleConstructorReturn3.default)( - this, - (Layout.__proto__ || (0, _getPrototypeOf2.default)(Layout)).call(this, props) - ); - return ( - (_this.layerSizes = getSavedSizes(defaultSizes)), - (_this.state = { previewPanelDimensions: { height: 0, width: 0 }, isDragging: !1 }), - (_this.onResize = _this.onResize.bind(_this)), - (_this.onDragStart = _this.onDragStart.bind(_this)), - (_this.onDragEnd = _this.onDragEnd.bind(_this)), - _this - ); - } - return ( - (0, _inherits3.default)(Layout, _React$Component), - (0, _createClass3.default)(Layout, [ - { - key: 'componentDidMount', - value: function componentDidMount() { - _global.window.addEventListener('resize', this.onResize); - } - }, - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - _global.window.removeEventListener('resize', this.onResize); - } - }, - { - key: 'onDragStart', - value: function onDragStart() { - this.setState({ isDragging: !0 }); - } - }, - { - key: 'onDragEnd', - value: function onDragEnd() { - this.setState({ isDragging: !1 }); - } - }, - { - key: 'onResize', - value: function onResize(pane, mode) { - var _this2 = this; - return function(size) { - (_this2.layerSizes[pane][mode] = size), saveSizes(_this2.layerSizes); - var _previewPanelRef = _this2.previewPanelRef, - clientWidth = _previewPanelRef.clientWidth, - clientHeight = _previewPanelRef.clientHeight; - _this2.setState({ - previewPanelDimensions: { width: clientWidth, height: clientHeight } - }); - }; - } - }, - { - key: 'render', - value: function render() { - var _this3 = this, - _props = this.props, - goFullScreen = _props.goFullScreen, - showStoriesPanel = _props.showStoriesPanel, - showAddonPanel = _props.showAddonPanel, - addonPanelInRight = _props.addonPanelInRight, - addonPanel = _props.addonPanel, - storiesPanel = _props.storiesPanel, - preview = _props.preview, - previewPanelDimensions = this.state.previewPanelDimensions, - previewStyle = normalPreviewStyle; - goFullScreen && (previewStyle = fullScreenPreviewStyle); - var sizes = getSavedSizes(this.layerSizes), - storiesPanelDefaultSize = sizes.storiesPanel.left, - addonPanelDefaultSize = addonPanelInRight - ? sizes.addonPanel.right - : sizes.addonPanel.down, - addonSplit = addonPanelInRight ? 'vertical' : 'horizontal'; - return _react2.default.createElement( - 'div', - { style: rootStyle }, - _react2.default.createElement( - _reactSplitPane2.default, - { - split: 'vertical', - allowResize: showStoriesPanel, - minSize: 150, - maxSize: -400, - size: showStoriesPanel ? storiesPanelDefaultSize : 1, - defaultSize: storiesPanelDefaultSize, - resizerStyle: (function storiesResizerStyle( - showStoriesPanel, - storiesPanelOnTop - ) { - return { - cursor: showStoriesPanel ? resizerCursor(!storiesPanelOnTop) : void 0, - height: storiesPanelOnTop ? 10 : 'auto', - width: storiesPanelOnTop ? '100%' : 10, - zIndex: 1 - }; - })(showStoriesPanel, !1), - onDragStarted: this.onDragStart, - onDragFinished: this.onDragEnd, - onChange: this.onResize('storiesPanel', 'left') - }, - _react2.default.createElement( - 'div', - { - style: (function storiesPanelStyle(showStoriesPanel, storiesPanelOnTop) { - return { - width: '100%', - display: showStoriesPanel ? 'flex' : 'none', - flexDirection: storiesPanelOnTop ? 'column' : 'row', - alignItems: 'stretch', - paddingRight: storiesPanelOnTop ? 10 : 0 - }; - })(showStoriesPanel, !1) - }, - _react2.default.createElement( - 'div', - { style: { flexGrow: 1, height: '100%', width: '100%' } }, - storiesPanel() - ), - _react2.default.createElement(_usplit2.default, { - shift: 5, - split: 'vertical' - }) - ), - _react2.default.createElement( - _reactSplitPane2.default, - { - split: addonSplit, - allowResize: showAddonPanel, - primary: 'second', - minSize: addonPanelInRight ? 200 : 100, - maxSize: -200, - size: showAddonPanel ? addonPanelDefaultSize : 1, - defaultSize: addonPanelDefaultSize, - resizerStyle: (function addonResizerStyle( - showAddonPanel, - addonPanelInRight - ) { - return { - cursor: showAddonPanel ? resizerCursor(addonPanelInRight) : void 0, - height: addonPanelInRight ? '100%' : 10, - width: addonPanelInRight ? 10 : '100%', - zIndex: 1 - }; - })(showAddonPanel, addonPanelInRight), - onDragStarted: this.onDragStart, - onDragFinished: this.onDragEnd, - onChange: this.onResize('addonPanel', addonPanelInRight ? 'right' : 'down') - }, - _react2.default.createElement( - 'div', - { - style: (function contentPanelStyle(addonPanelInRight, storiesPanelOnTop) { - return { - position: 'absolute', - boxSizing: 'border-box', - width: '100%', - height: '100%', - padding: addonPanelInRight ? '10px 2px 10px 0' : '10px 10px 2px 0', - paddingTop: storiesPanelOnTop ? 0 : 10 - }; - })(addonPanelInRight, !1) - }, - _react2.default.createElement('div', { - style: (function overlayStyle(isDragging) { - return { - display: isDragging ? 'block' : 'none', - position: 'absolute', - top: '0px', - right: '0px', - bottom: '0px', - left: '0px' - }; - })(this.state.isDragging) - }), - _react2.default.createElement( - 'div', - { - style: previewStyle, - ref: function ref(_ref) { - _this3.previewPanelRef = _ref; - } - }, - preview() - ), - _react2.default.createElement(_dimensions2.default, previewPanelDimensions) - ), - _react2.default.createElement( - 'div', - { - style: (function addonPanelStyle(showAddonPanel, addonPanelInRight) { - return { - display: showAddonPanel ? 'flex' : 'none', - flexDirection: addonPanelInRight ? 'row' : 'column', - alignItems: 'stretch', - position: 'absolute', - width: '100%', - height: '100%', - padding: addonPanelInRight ? '5px 10px 10px 0' : '0px 10px 10px 0', - boxSizing: 'border-box' - }; - })(showAddonPanel, addonPanelInRight) - }, - _react2.default.createElement(_usplit2.default, { - shift: -5, - split: addonSplit - }), - addonPanel() - ) - ) - ) - ); - } - } - ]), - Layout - ); - })(_react2.default.Component); - (Layout.propTypes = { - showStoriesPanel: _propTypes2.default.bool.isRequired, - showAddonPanel: _propTypes2.default.bool.isRequired, - goFullScreen: _propTypes2.default.bool.isRequired, - storiesPanel: _propTypes2.default.func.isRequired, - preview: _propTypes2.default.func.isRequired, - addonPanel: _propTypes2.default.func.isRequired, - addonPanelInRight: _propTypes2.default.bool.isRequired - }), - (exports.default = Layout); - }, - function(module, exports, __webpack_require__) { - var SplitPane = __webpack_require__(1162); - module.exports = SplitPane; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }, - _createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - Object.defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _reactDom2 = _interopRequireDefault(__webpack_require__(122)), - _inlineStylePrefixer2 = _interopRequireDefault(__webpack_require__(609)), - _reactStyleProptype2 = _interopRequireDefault(__webpack_require__(613)), - _Pane2 = _interopRequireDefault(__webpack_require__(1181)), - _Resizer = __webpack_require__(1182), - _Resizer2 = _interopRequireDefault(_Resizer); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var USER_AGENT = - 'undefined' != typeof navigator - ? navigator.userAgent - : 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Safari/537.2'; - function unFocus(document, window) { - if (document.selection) document.selection.empty(); - else - try { - window.getSelection().removeAllRanges(); - } catch (e) {} - } - var SplitPane = (function(_React$Component) { - function SplitPane() { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, SplitPane); - var _this = (function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - })(this, (SplitPane.__proto__ || Object.getPrototypeOf(SplitPane)).call(this)); - return ( - (_this.onMouseDown = _this.onMouseDown.bind(_this)), - (_this.onTouchStart = _this.onTouchStart.bind(_this)), - (_this.onMouseMove = _this.onMouseMove.bind(_this)), - (_this.onTouchMove = _this.onTouchMove.bind(_this)), - (_this.onMouseUp = _this.onMouseUp.bind(_this)), - (_this.state = { active: !1, resized: !1 }), - _this - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(SplitPane, _react2.default.Component), - _createClass(SplitPane, [ - { - key: 'componentDidMount', - value: function componentDidMount() { - this.setSize(this.props, this.state), - document.addEventListener('mouseup', this.onMouseUp), - document.addEventListener('mousemove', this.onMouseMove), - document.addEventListener('touchmove', this.onTouchMove); - } - }, - { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(props) { - this.setSize(props, this.state); - } - }, - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - document.removeEventListener('mouseup', this.onMouseUp), - document.removeEventListener('mousemove', this.onMouseMove), - document.removeEventListener('touchmove', this.onTouchMove); - } - }, - { - key: 'onMouseDown', - value: function onMouseDown(event) { - var eventWithTouches = _extends({}, event, { - touches: [{ clientX: event.clientX, clientY: event.clientY }] - }); - this.onTouchStart(eventWithTouches); - } - }, - { - key: 'onTouchStart', - value: function onTouchStart(event) { - var _props = this.props, - allowResize = _props.allowResize, - onDragStarted = _props.onDragStarted, - split = _props.split; - if (allowResize) { - unFocus(document, window); - var position = - 'vertical' === split ? event.touches[0].clientX : event.touches[0].clientY; - 'function' == typeof onDragStarted && onDragStarted(), - this.setState({ active: !0, position: position }); - } - } - }, - { - key: 'onMouseMove', - value: function onMouseMove(event) { - var eventWithTouches = _extends({}, event, { - touches: [{ clientX: event.clientX, clientY: event.clientY }] - }); - this.onTouchMove(eventWithTouches); - } - }, - { - key: 'onTouchMove', - value: function onTouchMove(event) { - var _props2 = this.props, - allowResize = _props2.allowResize, - maxSize = _props2.maxSize, - minSize = _props2.minSize, - onChange = _props2.onChange, - split = _props2.split, - step = _props2.step, - _state = this.state, - active = _state.active, - position = _state.position; - if (allowResize && active) { - unFocus(document, window); - var isPrimaryFirst = 'first' === this.props.primary, - ref = isPrimaryFirst ? this.pane1 : this.pane2, - ref2 = isPrimaryFirst ? this.pane2 : this.pane1; - if (ref) { - var node = _reactDom2.default.findDOMNode(ref), - node2 = _reactDom2.default.findDOMNode(ref2); - if (node.getBoundingClientRect) { - var width = node.getBoundingClientRect().width, - height = node.getBoundingClientRect().height, - current = - 'vertical' === split ? event.touches[0].clientX : event.touches[0].clientY, - size = 'vertical' === split ? width : height, - positionDelta = position - current; - if (step) { - if (Math.abs(positionDelta) < step) return; - positionDelta = ~~(positionDelta / step) * step; - } - var sizeDelta = isPrimaryFirst ? positionDelta : -positionDelta; - parseInt(window.getComputedStyle(node).order) > - parseInt(window.getComputedStyle(node2).order) && (sizeDelta = -sizeDelta); - var newMaxSize = maxSize; - if (void 0 !== maxSize && maxSize <= 0) { - var splPane = this.splitPane; - newMaxSize = - 'vertical' === split - ? splPane.getBoundingClientRect().width + maxSize - : splPane.getBoundingClientRect().height + maxSize; - } - var newSize = size - sizeDelta, - newPosition = position - positionDelta; - newSize < minSize - ? (newSize = minSize) - : void 0 !== maxSize && newSize > newMaxSize - ? (newSize = newMaxSize) - : this.setState({ position: newPosition, resized: !0 }), - onChange && onChange(newSize), - this.setState({ draggedSize: newSize }), - ref.setState({ size: newSize }); - } - } - } - } - }, - { - key: 'onMouseUp', - value: function onMouseUp() { - var _props3 = this.props, - allowResize = _props3.allowResize, - onDragFinished = _props3.onDragFinished, - _state2 = this.state, - active = _state2.active, - draggedSize = _state2.draggedSize; - allowResize && - active && - ('function' == typeof onDragFinished && onDragFinished(draggedSize), - this.setState({ active: !1 })); - } - }, - { - key: 'setSize', - value: function setSize(props, state) { - var ref = 'first' === this.props.primary ? this.pane1 : this.pane2, - newSize = void 0; - ref && - ((newSize = - props.size || (state && state.draggedSize) || props.defaultSize || props.minSize), - ref.setState({ size: newSize }), - props.size !== state.draggedSize && this.setState({ draggedSize: newSize })); - } - }, - { - key: 'render', - value: function render() { - var _this2 = this, - _props4 = this.props, - allowResize = _props4.allowResize, - children = _props4.children, - className = _props4.className, - defaultSize = _props4.defaultSize, - minSize = _props4.minSize, - onResizerClick = _props4.onResizerClick, - onResizerDoubleClick = _props4.onResizerDoubleClick, - paneClassName = _props4.paneClassName, - pane1ClassName = _props4.pane1ClassName, - pane2ClassName = _props4.pane2ClassName, - paneStyle = _props4.paneStyle, - pane1StyleProps = _props4.pane1Style, - pane2StyleProps = _props4.pane2Style, - primary = _props4.primary, - prefixer = _props4.prefixer, - resizerClassName = _props4.resizerClassName, - resizerStyle = _props4.resizerStyle, - size = _props4.size, - split = _props4.split, - styleProps = _props4.style, - disabledClass = allowResize ? '' : 'disabled', - resizerClassNamesIncludingDefault = resizerClassName - ? resizerClassName + ' ' + _Resizer.RESIZER_DEFAULT_CLASSNAME - : resizerClassName, - style = _extends( - {}, - { - display: 'flex', - flex: 1, - height: '100%', - position: 'absolute', - outline: 'none', - overflow: 'hidden', - MozUserSelect: 'text', - WebkitUserSelect: 'text', - msUserSelect: 'text', - userSelect: 'text' - }, - styleProps || {} - ); - _extends( - style, - 'vertical' === split - ? { flexDirection: 'row', left: 0, right: 0 } - : { bottom: 0, flexDirection: 'column', minHeight: '100%', top: 0, width: '100%' } - ); - var classes = ['SplitPane', className, split, disabledClass], - pane1Style = prefixer.prefix(_extends({}, paneStyle || {}, pane1StyleProps || {})), - pane2Style = prefixer.prefix(_extends({}, paneStyle || {}, pane2StyleProps || {})), - pane1Classes = ['Pane1', paneClassName, pane1ClassName].join(' '), - pane2Classes = ['Pane2', paneClassName, pane2ClassName].join(' '); - return _react2.default.createElement( - 'div', - { - className: classes.join(' '), - ref: function ref(node) { - _this2.splitPane = node; - }, - style: prefixer.prefix(style) - }, - _react2.default.createElement( - _Pane2.default, - { - className: pane1Classes, - key: 'pane1', - ref: function ref(node) { - _this2.pane1 = node; - }, - size: 'first' === primary ? size || defaultSize || minSize : void 0, - split: split, - style: pane1Style - }, - children[0] - ), - _react2.default.createElement(_Resizer2.default, { - className: disabledClass, - onClick: onResizerClick, - onDoubleClick: onResizerDoubleClick, - onMouseDown: this.onMouseDown, - onTouchStart: this.onTouchStart, - onTouchEnd: this.onMouseUp, - key: 'resizer', - ref: function ref(node) { - _this2.resizer = node; - }, - resizerClassName: resizerClassNamesIncludingDefault, - split: split, - style: resizerStyle || {} - }), - _react2.default.createElement( - _Pane2.default, - { - className: pane2Classes, - key: 'pane2', - ref: function ref(node) { - _this2.pane2 = node; - }, - size: 'second' === primary ? size || defaultSize || minSize : void 0, - split: split, - style: pane2Style - }, - children[1] - ) - ); - } - } - ]), - SplitPane - ); - })(); - (SplitPane.propTypes = { - allowResize: _propTypes2.default.bool, - children: _propTypes2.default.arrayOf(_propTypes2.default.node).isRequired, - className: _propTypes2.default.string, - primary: _propTypes2.default.oneOf(['first', 'second']), - minSize: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.number - ]), - maxSize: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.number - ]), - defaultSize: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.number - ]), - size: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]), - split: _propTypes2.default.oneOf(['vertical', 'horizontal']), - onDragStarted: _propTypes2.default.func, - onDragFinished: _propTypes2.default.func, - onChange: _propTypes2.default.func, - onResizerClick: _propTypes2.default.func, - onResizerDoubleClick: _propTypes2.default.func, - prefixer: _propTypes2.default.instanceOf(_inlineStylePrefixer2.default).isRequired, - style: _reactStyleProptype2.default, - resizerStyle: _reactStyleProptype2.default, - paneClassName: _propTypes2.default.string, - pane1ClassName: _propTypes2.default.string, - pane2ClassName: _propTypes2.default.string, - paneStyle: _reactStyleProptype2.default, - pane1Style: _reactStyleProptype2.default, - pane2Style: _reactStyleProptype2.default, - resizerClassName: _propTypes2.default.string, - step: _propTypes2.default.number - }), - (SplitPane.defaultProps = { - allowResize: !0, - minSize: 50, - prefixer: new _inlineStylePrefixer2.default({ userAgent: USER_AGENT }), - primary: 'first', - split: 'vertical', - paneClassName: '', - pane1ClassName: '', - pane2ClassName: '' - }), - (exports.default = SplitPane), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - Object.defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(); - exports.default = function createPrefixer(_ref) { - var prefixMap = _ref.prefixMap, - plugins = _ref.plugins, - fallback = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : function(style) { - return style; - }; - return (function() { - function Prefixer() { - var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, Prefixer); - var defaultUserAgent = 'undefined' != typeof navigator ? navigator.userAgent : void 0; - if ( - ((this._userAgent = options.userAgent || defaultUserAgent), - (this._keepUnprefixed = options.keepUnprefixed || !1), - this._userAgent && - (this._browserInfo = (0, _getBrowserInformation2.default)(this._userAgent)), - !this._browserInfo || !this._browserInfo.cssPrefix) - ) - return (this._useFallback = !0), !1; - this.prefixedKeyframes = (0, _getPrefixedKeyframes2.default)( - this._browserInfo.browserName, - this._browserInfo.browserVersion, - this._browserInfo.cssPrefix - ); - var prefixData = - this._browserInfo.browserName && prefixMap[this._browserInfo.browserName]; - if (prefixData) { - this._requiresPrefix = {}; - for (var property in prefixData) - prefixData[property] >= this._browserInfo.browserVersion && - (this._requiresPrefix[property] = !0); - this._hasPropsRequiringPrefix = Object.keys(this._requiresPrefix).length > 0; - } else this._useFallback = !0; - this._metaData = { - browserVersion: this._browserInfo.browserVersion, - browserName: this._browserInfo.browserName, - cssPrefix: this._browserInfo.cssPrefix, - jsPrefix: this._browserInfo.jsPrefix, - keepUnprefixed: this._keepUnprefixed, - requiresPrefix: this._requiresPrefix - }; - } - return ( - _createClass( - Prefixer, - [ - { - key: 'prefix', - value: function prefix(style) { - return this._useFallback - ? fallback(style) - : this._hasPropsRequiringPrefix ? this._prefixStyle(style) : style; - } - }, - { - key: '_prefixStyle', - value: function _prefixStyle(style) { - for (var property in style) { - var value = style[property]; - if ((0, _isObject2.default)(value)) style[property] = this.prefix(value); - else if (Array.isArray(value)) { - for (var combinedValue = [], i = 0, len = value.length; i < len; ++i) { - var processedValue = (0, _prefixValue2.default)( - plugins, - property, - value[i], - style, - this._metaData - ); - (0, _addNewValuesOnly2.default)(combinedValue, processedValue || value[i]); - } - combinedValue.length > 0 && (style[property] = combinedValue); - } else { - var _processedValue = (0, _prefixValue2.default)( - plugins, - property, - value, - style, - this._metaData - ); - _processedValue && (style[property] = _processedValue), - this._requiresPrefix.hasOwnProperty(property) && - ((style[ - this._browserInfo.jsPrefix + (0, _capitalizeString2.default)(property) - ] = value), - this._keepUnprefixed || delete style[property]); - } - } - return style; - } - } - ], - [ - { - key: 'prefixAll', - value: function prefixAll(styles) { - return fallback(styles); - } - } - ] - ), - Prefixer - ); - })(); - }; - var _getBrowserInformation2 = _interopRequireDefault(__webpack_require__(1164)), - _getPrefixedKeyframes2 = _interopRequireDefault(__webpack_require__(1166)), - _capitalizeString2 = _interopRequireDefault(__webpack_require__(610)), - _addNewValuesOnly2 = _interopRequireDefault(__webpack_require__(811)), - _isObject2 = _interopRequireDefault(__webpack_require__(812)), - _prefixValue2 = _interopRequireDefault(__webpack_require__(611)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function getBrowserInformation(userAgent) { - var browserInfo = _bowser2.default._detect(userAgent); - browserInfo.yandexbrowser && - (browserInfo = _bowser2.default._detect(userAgent.replace(/YaBrowser\/[0-9.]*/, ''))); - for (var browser in prefixByBrowser) - if (browserInfo.hasOwnProperty(browser)) { - var prefix = prefixByBrowser[browser]; - (browserInfo.jsPrefix = prefix), - (browserInfo.cssPrefix = '-' + prefix.toLowerCase() + '-'); - break; - } - (browserInfo.browserName = (function getBrowserName(browserInfo) { - if (browserInfo.firefox) return 'firefox'; - if (browserInfo.mobile || browserInfo.tablet) { - if (browserInfo.ios) return 'ios_saf'; - if (browserInfo.android) return 'android'; - if (browserInfo.opera) return 'op_mini'; - } - for (var browser in browserByCanIuseAlias) - if (browserInfo.hasOwnProperty(browser)) return browserByCanIuseAlias[browser]; - })(browserInfo)), - browserInfo.version - ? (browserInfo.browserVersion = parseFloat(browserInfo.version)) - : (browserInfo.browserVersion = parseInt(parseFloat(browserInfo.osversion), 10)); - (browserInfo.osVersion = parseFloat(browserInfo.osversion)), - 'ios_saf' === browserInfo.browserName && - browserInfo.browserVersion > browserInfo.osVersion && - (browserInfo.browserVersion = browserInfo.osVersion); - 'android' === browserInfo.browserName && - browserInfo.chrome && - browserInfo.browserVersion > 37 && - (browserInfo.browserName = 'and_chr'); - 'android' === browserInfo.browserName && - browserInfo.osVersion < 5 && - (browserInfo.browserVersion = browserInfo.osVersion); - 'android' === browserInfo.browserName && - browserInfo.samsungBrowser && - ((browserInfo.browserName = 'and_chr'), (browserInfo.browserVersion = 44)); - return browserInfo; - }); - var _bowser2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(810)); - var prefixByBrowser = { - chrome: 'Webkit', - safari: 'Webkit', - ios: 'Webkit', - android: 'Webkit', - phantom: 'Webkit', - opera: 'Webkit', - webos: 'Webkit', - blackberry: 'Webkit', - bada: 'Webkit', - tizen: 'Webkit', - chromium: 'Webkit', - vivaldi: 'Webkit', - firefox: 'Moz', - seamoney: 'Moz', - sailfish: 'Moz', - msie: 'ms', - msedge: 'ms' - }, - browserByCanIuseAlias = { - chrome: 'chrome', - chromium: 'chrome', - safari: 'safari', - firfox: 'firefox', - msedge: 'edge', - opera: 'opera', - vivaldi: 'opera', - msie: 'ie' - }; - module.exports = exports.default; - }, - function(module, exports) { - module.exports = function() { - throw new Error('define cannot be used indirect'); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function getPrefixedKeyframes(browserName, browserVersion, cssPrefix) { - if ( - ('chrome' === browserName && browserVersion < 43) || - (('safari' === browserName || 'ios_saf' === browserName) && browserVersion < 9) || - ('opera' === browserName && browserVersion < 30) || - ('android' === browserName && browserVersion <= 4.4) || - 'and_uc' === browserName - ) - return cssPrefix + 'keyframes'; - return 'keyframes'; - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function cursor(property, value, style, _ref) { - var browserName = _ref.browserName, - browserVersion = _ref.browserVersion, - cssPrefix = _ref.cssPrefix, - keepUnprefixed = _ref.keepUnprefixed; - if ( - 'cursor' === property && - grabValues[value] && - ('firefox' === browserName || - 'chrome' === browserName || - 'safari' === browserName || - 'opera' === browserName) - ) - return (0, _getPrefixedValue2.default)(cssPrefix + value, value, keepUnprefixed); - if ( - 'cursor' === property && - zoomValues[value] && - (('firefox' === browserName && browserVersion < 24) || - ('chrome' === browserName && browserVersion < 37) || - ('safari' === browserName && browserVersion < 9) || - ('opera' === browserName && browserVersion < 24)) - ) - return (0, _getPrefixedValue2.default)(cssPrefix + value, value, keepUnprefixed); - }); - var _getPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(110)); - var grabValues = { grab: !0, grabbing: !0 }, - zoomValues = { 'zoom-in': !0, 'zoom-out': !0 }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function crossFade(property, value, style, _ref) { - var browserName = _ref.browserName, - browserVersion = _ref.browserVersion, - cssPrefix = _ref.cssPrefix, - keepUnprefixed = _ref.keepUnprefixed; - if ( - 'string' == typeof value && - value.indexOf('cross-fade(') > -1 && - ('chrome' === browserName || - 'opera' === browserName || - 'and_chr' === browserName || - (('ios_saf' === browserName || 'safari' === browserName) && browserVersion < 10)) - ) - return (0, _getPrefixedValue2.default)( - value.replace(/cross-fade\(/g, cssPrefix + 'cross-fade('), - value, - keepUnprefixed - ); - }); - var _getPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(110)); - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function filter(property, value, style, _ref) { - var browserName = _ref.browserName, - browserVersion = _ref.browserVersion, - cssPrefix = _ref.cssPrefix, - keepUnprefixed = _ref.keepUnprefixed; - if ( - 'string' == typeof value && - value.indexOf('filter(') > -1 && - ('ios_saf' === browserName || ('safari' === browserName && browserVersion < 9.1)) - ) - return (0, _getPrefixedValue2.default)( - value.replace(/filter\(/g, cssPrefix + 'filter('), - value, - keepUnprefixed - ); - }); - var _getPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(110)); - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function flex(property, value, style, _ref) { - var browserName = _ref.browserName, - browserVersion = _ref.browserVersion, - cssPrefix = _ref.cssPrefix, - keepUnprefixed = _ref.keepUnprefixed; - if ( - 'display' === property && - values[value] && - (('chrome' === browserName && browserVersion < 29 && browserVersion > 20) || - (('safari' === browserName || 'ios_saf' === browserName) && - browserVersion < 9 && - browserVersion > 6) || - ('opera' === browserName && (15 === browserVersion || 16 === browserVersion))) - ) - return (0, _getPrefixedValue2.default)(cssPrefix + value, value, keepUnprefixed); - }); - var _getPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(110)); - var values = { flex: !0, 'inline-flex': !0 }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function flexboxOld(property, value, style, _ref) { - var browserName = _ref.browserName, - browserVersion = _ref.browserVersion, - cssPrefix = _ref.cssPrefix, - keepUnprefixed = _ref.keepUnprefixed, - requiresPrefix = _ref.requiresPrefix; - if ( - (properties.indexOf(property) > -1 || - ('display' === property && 'string' == typeof value && value.indexOf('flex') > -1)) && - (('firefox' === browserName && browserVersion < 22) || - ('chrome' === browserName && browserVersion < 21) || - (('safari' === browserName || 'ios_saf' === browserName) && browserVersion <= 6.1) || - ('android' === browserName && browserVersion < 4.4) || - 'and_uc' === browserName) - ) { - if ( - (delete requiresPrefix[property], - keepUnprefixed || Array.isArray(style[property]) || delete style[property], - 'flexDirection' === property && - 'string' == typeof value && - (value.indexOf('column') > -1 - ? (style.WebkitBoxOrient = 'vertical') - : (style.WebkitBoxOrient = 'horizontal'), - value.indexOf('reverse') > -1 - ? (style.WebkitBoxDirection = 'reverse') - : (style.WebkitBoxDirection = 'normal')), - 'display' === property && alternativeValues.hasOwnProperty(value)) - ) - return (0, _getPrefixedValue2.default)( - cssPrefix + alternativeValues[value], - value, - keepUnprefixed - ); - alternativeProps.hasOwnProperty(property) && - (style[alternativeProps[property]] = alternativeValues[value] || value); - } - }); - var _getPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(110)); - var alternativeValues = { - 'space-around': 'justify', - 'space-between': 'justify', - 'flex-start': 'start', - 'flex-end': 'end', - 'wrap-reverse': 'multiple', - wrap: 'multiple', - flex: 'box', - 'inline-flex': 'inline-box' - }, - alternativeProps = { - alignItems: 'WebkitBoxAlign', - justifyContent: 'WebkitBoxPack', - flexWrap: 'WebkitBoxLines' - }, - properties = Object.keys(alternativeProps).concat([ - 'alignContent', - 'alignSelf', - 'order', - 'flexGrow', - 'flexShrink', - 'flexBasis', - 'flexDirection' - ]); - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function gradient(property, value, style, _ref) { - var browserName = _ref.browserName, - browserVersion = _ref.browserVersion, - cssPrefix = _ref.cssPrefix, - keepUnprefixed = _ref.keepUnprefixed; - if ( - 'string' == typeof value && - values.test(value) && - (('firefox' === browserName && browserVersion < 16) || - ('chrome' === browserName && browserVersion < 26) || - (('safari' === browserName || 'ios_saf' === browserName) && browserVersion < 7) || - (('opera' === browserName || 'op_mini' === browserName) && browserVersion < 12.1) || - ('android' === browserName && browserVersion < 4.4) || - 'and_uc' === browserName) - ) - return (0, _getPrefixedValue2.default)(cssPrefix + value, value, keepUnprefixed); - }); - var _getPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(110)); - var values = /linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function imageSet(property, value, style, _ref) { - var browserName = _ref.browserName, - cssPrefix = _ref.cssPrefix, - keepUnprefixed = _ref.keepUnprefixed; - if ( - 'string' == typeof value && - value.indexOf('image-set(') > -1 && - ('chrome' === browserName || - 'opera' === browserName || - 'and_chr' === browserName || - 'and_uc' === browserName || - 'ios_saf' === browserName || - 'safari' === browserName) - ) - return (0, _getPrefixedValue2.default)( - value.replace(/image-set\(/g, cssPrefix + 'image-set('), - value, - keepUnprefixed - ); - }); - var _getPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(110)); - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function position(property, value, style, _ref) { - var browserName = _ref.browserName, - cssPrefix = _ref.cssPrefix, - keepUnprefixed = _ref.keepUnprefixed; - if ( - 'position' === property && - 'sticky' === value && - ('safari' === browserName || 'ios_saf' === browserName) - ) - return (0, _getPrefixedValue2.default)(cssPrefix + value, value, keepUnprefixed); - }); - var _getPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(110)); - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function sizing(property, value, style, _ref) { - var cssPrefix = _ref.cssPrefix, - keepUnprefixed = _ref.keepUnprefixed; - if (properties.hasOwnProperty(property) && values.hasOwnProperty(value)) - return (0, _getPrefixedValue2.default)(cssPrefix + value, value, keepUnprefixed); - }); - var _getPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(110)); - var properties = { - maxHeight: !0, - maxWidth: !0, - width: !0, - height: !0, - columnWidth: !0, - minWidth: !0, - minHeight: !0 - }, - values = { - 'min-content': !0, - 'max-content': !0, - 'fill-available': !0, - 'fit-content': !0, - 'contain-floats': !0 - }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function transition(property, value, style, _ref) { - var cssPrefix = _ref.cssPrefix, - keepUnprefixed = _ref.keepUnprefixed, - requiresPrefix = _ref.requiresPrefix; - if ('string' == typeof value && properties.hasOwnProperty(property)) { - requiresPrefixDashCased || - (requiresPrefixDashCased = Object.keys(requiresPrefix).map(function(prop) { - return (0, _hyphenateProperty2.default)(prop); - })); - var multipleValues = value.split(/,(?![^()]*(?:\([^()]*\))?\))/g); - return ( - requiresPrefixDashCased.forEach(function(prop) { - multipleValues.forEach(function(val, index) { - val.indexOf(prop) > -1 && - 'order' !== prop && - (multipleValues[index] = - val.replace(prop, cssPrefix + prop) + (keepUnprefixed ? ',' + val : '')); - }); - }), - multipleValues.join(',') - ); - } - }); - var _hyphenateProperty2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(813)); - var properties = { - transition: !0, - transitionProperty: !0, - WebkitTransition: !0, - WebkitTransitionProperty: !0, - MozTransition: !0, - MozTransitionProperty: !0 - }, - requiresPrefixDashCased = void 0; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _createPrefixer2 = _interopRequireDefault(__webpack_require__(1178)), - _staticData2 = _interopRequireDefault(__webpack_require__(815)), - _cursor2 = _interopRequireDefault(__webpack_require__(816)), - _crossFade2 = _interopRequireDefault(__webpack_require__(817)), - _filter2 = _interopRequireDefault(__webpack_require__(818)), - _flex2 = _interopRequireDefault(__webpack_require__(819)), - _flexboxOld2 = _interopRequireDefault(__webpack_require__(820)), - _gradient2 = _interopRequireDefault(__webpack_require__(821)), - _imageSet2 = _interopRequireDefault(__webpack_require__(822)), - _position2 = _interopRequireDefault(__webpack_require__(823)), - _sizing2 = _interopRequireDefault(__webpack_require__(824)), - _transition2 = _interopRequireDefault(__webpack_require__(825)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var plugins = [ - _crossFade2.default, - _cursor2.default, - _filter2.default, - _flexboxOld2.default, - _gradient2.default, - _imageSet2.default, - _position2.default, - _sizing2.default, - _transition2.default, - _flex2.default - ]; - (exports.default = (0, _createPrefixer2.default)({ - prefixMap: _staticData2.default.prefixMap, - plugins: plugins - })), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function createPrefixer(_ref) { - var prefixMap = _ref.prefixMap, - plugins = _ref.plugins; - return function prefixAll(style) { - for (var property in style) { - var value = style[property]; - if ((0, _isObject2.default)(value)) style[property] = prefixAll(value); - else if (Array.isArray(value)) { - for (var combinedValue = [], i = 0, len = value.length; i < len; ++i) { - var processedValue = (0, _prefixValue2.default)( - plugins, - property, - value[i], - style, - prefixMap - ); - (0, _addNewValuesOnly2.default)(combinedValue, processedValue || value[i]); - } - combinedValue.length > 0 && (style[property] = combinedValue); - } else { - var _processedValue = (0, _prefixValue2.default)( - plugins, - property, - value, - style, - prefixMap - ); - _processedValue && (style[property] = _processedValue), - (0, _prefixProperty2.default)(prefixMap, property, style); - } - } - return style; - }; - }); - var _prefixProperty2 = _interopRequireDefault(__webpack_require__(814)), - _prefixValue2 = _interopRequireDefault(__webpack_require__(611)), - _addNewValuesOnly2 = _interopRequireDefault(__webpack_require__(811)), - _isObject2 = _interopRequireDefault(__webpack_require__(812)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = { - plugins: [], - prefixMap: { - chrome: { - appearance: 64, - userSelect: 53, - textEmphasisPosition: 64, - textEmphasis: 64, - textEmphasisStyle: 64, - textEmphasisColor: 64, - boxDecorationBreak: 64, - clipPath: 54, - maskImage: 64, - maskMode: 64, - maskRepeat: 64, - maskPosition: 64, - maskClip: 64, - maskOrigin: 64, - maskSize: 64, - maskComposite: 64, - mask: 64, - maskBorderSource: 64, - maskBorderMode: 64, - maskBorderSlice: 64, - maskBorderWidth: 64, - maskBorderOutset: 64, - maskBorderRepeat: 64, - maskBorder: 64, - maskType: 64, - textDecorationStyle: 56, - textDecorationSkip: 56, - textDecorationLine: 56, - textDecorationColor: 56, - filter: 52, - fontFeatureSettings: 47, - breakAfter: 49, - breakBefore: 49, - breakInside: 49, - columnCount: 49, - columnFill: 49, - columnGap: 49, - columnRule: 49, - columnRuleColor: 49, - columnRuleStyle: 49, - columnRuleWidth: 49, - columns: 49, - columnSpan: 49, - columnWidth: 49, - writingMode: 47 - }, - safari: { - flex: 8, - flexBasis: 8, - flexDirection: 8, - flexGrow: 8, - flexFlow: 8, - flexShrink: 8, - flexWrap: 8, - alignContent: 8, - alignItems: 8, - alignSelf: 8, - justifyContent: 8, - order: 8, - transform: 8, - transformOrigin: 8, - transformOriginX: 8, - transformOriginY: 8, - backfaceVisibility: 8, - perspective: 8, - perspectiveOrigin: 8, - transformStyle: 8, - transformOriginZ: 8, - animation: 8, - animationDelay: 8, - animationDirection: 8, - animationFillMode: 8, - animationDuration: 8, - animationIterationCount: 8, - animationName: 8, - animationPlayState: 8, - animationTimingFunction: 8, - appearance: 11, - userSelect: 11, - backdropFilter: 11, - fontKerning: 9, - scrollSnapType: 10.1, - scrollSnapPointsX: 10.1, - scrollSnapPointsY: 10.1, - scrollSnapDestination: 10.1, - scrollSnapCoordinate: 10.1, - boxDecorationBreak: 11, - clipPath: 11, - maskImage: 11, - maskMode: 11, - maskRepeat: 11, - maskPosition: 11, - maskClip: 11, - maskOrigin: 11, - maskSize: 11, - maskComposite: 11, - mask: 11, - maskBorderSource: 11, - maskBorderMode: 11, - maskBorderSlice: 11, - maskBorderWidth: 11, - maskBorderOutset: 11, - maskBorderRepeat: 11, - maskBorder: 11, - maskType: 11, - textDecorationStyle: 11, - textDecorationSkip: 11, - textDecorationLine: 11, - textDecorationColor: 11, - shapeImageThreshold: 10, - shapeImageMargin: 10, - shapeImageOutside: 10, - filter: 9, - hyphens: 11, - flowInto: 11, - flowFrom: 11, - breakBefore: 8, - breakAfter: 8, - breakInside: 8, - regionFragment: 11, - columnCount: 8, - columnFill: 8, - columnGap: 8, - columnRule: 8, - columnRuleColor: 8, - columnRuleStyle: 8, - columnRuleWidth: 8, - columns: 8, - columnSpan: 8, - columnWidth: 8, - writingMode: 11 - }, - firefox: { - appearance: 58, - userSelect: 58, - textAlignLast: 48, - tabSize: 58, - hyphens: 42, - breakAfter: 51, - breakBefore: 51, - breakInside: 51, - columnCount: 51, - columnFill: 51, - columnGap: 51, - columnRule: 51, - columnRuleColor: 51, - columnRuleStyle: 51, - columnRuleWidth: 51, - columns: 51, - columnSpan: 51, - columnWidth: 51 - }, - opera: { - flex: 16, - flexBasis: 16, - flexDirection: 16, - flexGrow: 16, - flexFlow: 16, - flexShrink: 16, - flexWrap: 16, - alignContent: 16, - alignItems: 16, - alignSelf: 16, - justifyContent: 16, - order: 16, - transform: 22, - transformOrigin: 22, - transformOriginX: 22, - transformOriginY: 22, - backfaceVisibility: 22, - perspective: 22, - perspectiveOrigin: 22, - transformStyle: 22, - transformOriginZ: 22, - animation: 29, - animationDelay: 29, - animationDirection: 29, - animationFillMode: 29, - animationDuration: 29, - animationIterationCount: 29, - animationName: 29, - animationPlayState: 29, - animationTimingFunction: 29, - appearance: 49, - userSelect: 40, - fontKerning: 19, - textEmphasisPosition: 49, - textEmphasis: 49, - textEmphasisStyle: 49, - textEmphasisColor: 49, - boxDecorationBreak: 49, - clipPath: 41, - maskImage: 49, - maskMode: 49, - maskRepeat: 49, - maskPosition: 49, - maskClip: 49, - maskOrigin: 49, - maskSize: 49, - maskComposite: 49, - mask: 49, - maskBorderSource: 49, - maskBorderMode: 49, - maskBorderSlice: 49, - maskBorderWidth: 49, - maskBorderOutset: 49, - maskBorderRepeat: 49, - maskBorder: 49, - maskType: 49, - textDecorationStyle: 43, - textDecorationSkip: 43, - textDecorationLine: 43, - textDecorationColor: 43, - filter: 39, - fontFeatureSettings: 34, - breakAfter: 36, - breakBefore: 36, - breakInside: 36, - columnCount: 36, - columnFill: 36, - columnGap: 36, - columnRule: 36, - columnRuleColor: 36, - columnRuleStyle: 36, - columnRuleWidth: 36, - columns: 36, - columnSpan: 36, - columnWidth: 36, - writingMode: 34 - }, - ie: { - userSelect: 11, - wrapFlow: 11, - wrapThrough: 11, - wrapMargin: 11, - scrollSnapType: 11, - scrollSnapPointsX: 11, - scrollSnapPointsY: 11, - scrollSnapDestination: 11, - scrollSnapCoordinate: 11, - hyphens: 11, - flowInto: 11, - flowFrom: 11, - breakBefore: 11, - breakAfter: 11, - breakInside: 11, - regionFragment: 11, - gridTemplateColumns: 11, - gridTemplateRows: 11, - gridTemplateAreas: 11, - gridTemplate: 11, - gridAutoColumns: 11, - gridAutoRows: 11, - gridAutoFlow: 11, - grid: 11, - gridRowStart: 11, - gridColumnStart: 11, - gridRowEnd: 11, - gridRow: 11, - gridColumn: 11, - gridColumnEnd: 11, - gridColumnGap: 11, - gridRowGap: 11, - gridArea: 11, - gridGap: 11, - textSizeAdjust: 11, - writingMode: 11 - }, - edge: { - userSelect: 16, - wrapFlow: 16, - wrapThrough: 16, - wrapMargin: 16, - scrollSnapType: 16, - scrollSnapPointsX: 16, - scrollSnapPointsY: 16, - scrollSnapDestination: 16, - scrollSnapCoordinate: 16, - hyphens: 16, - flowInto: 16, - flowFrom: 16, - breakBefore: 16, - breakAfter: 16, - breakInside: 16, - regionFragment: 16, - gridTemplateColumns: 15, - gridTemplateRows: 15, - gridTemplateAreas: 15, - gridTemplate: 15, - gridAutoColumns: 15, - gridAutoRows: 15, - gridAutoFlow: 15, - grid: 15, - gridRowStart: 15, - gridColumnStart: 15, - gridRowEnd: 15, - gridRow: 15, - gridColumn: 15, - gridColumnEnd: 15, - gridColumnGap: 15, - gridRowGap: 15, - gridArea: 15, - gridGap: 15 - }, - ios_saf: { - flex: 8.1, - flexBasis: 8.1, - flexDirection: 8.1, - flexGrow: 8.1, - flexFlow: 8.1, - flexShrink: 8.1, - flexWrap: 8.1, - alignContent: 8.1, - alignItems: 8.1, - alignSelf: 8.1, - justifyContent: 8.1, - order: 8.1, - transform: 8.1, - transformOrigin: 8.1, - transformOriginX: 8.1, - transformOriginY: 8.1, - backfaceVisibility: 8.1, - perspective: 8.1, - perspectiveOrigin: 8.1, - transformStyle: 8.1, - transformOriginZ: 8.1, - animation: 8.1, - animationDelay: 8.1, - animationDirection: 8.1, - animationFillMode: 8.1, - animationDuration: 8.1, - animationIterationCount: 8.1, - animationName: 8.1, - animationPlayState: 8.1, - animationTimingFunction: 8.1, - appearance: 11, - userSelect: 11, - backdropFilter: 11, - fontKerning: 11, - scrollSnapType: 11, - scrollSnapPointsX: 11, - scrollSnapPointsY: 11, - scrollSnapDestination: 11, - scrollSnapCoordinate: 11, - boxDecorationBreak: 11, - clipPath: 11, - maskImage: 11, - maskMode: 11, - maskRepeat: 11, - maskPosition: 11, - maskClip: 11, - maskOrigin: 11, - maskSize: 11, - maskComposite: 11, - mask: 11, - maskBorderSource: 11, - maskBorderMode: 11, - maskBorderSlice: 11, - maskBorderWidth: 11, - maskBorderOutset: 11, - maskBorderRepeat: 11, - maskBorder: 11, - maskType: 11, - textSizeAdjust: 11, - textDecorationStyle: 11, - textDecorationSkip: 11, - textDecorationLine: 11, - textDecorationColor: 11, - shapeImageThreshold: 10, - shapeImageMargin: 10, - shapeImageOutside: 10, - filter: 9, - hyphens: 11, - flowInto: 11, - flowFrom: 11, - breakBefore: 8.1, - breakAfter: 8.1, - breakInside: 8.1, - regionFragment: 11, - columnCount: 8.1, - columnFill: 8.1, - columnGap: 8.1, - columnRule: 8.1, - columnRuleColor: 8.1, - columnRuleStyle: 8.1, - columnRuleWidth: 8.1, - columns: 8.1, - columnSpan: 8.1, - columnWidth: 8.1, - writingMode: 11 - }, - android: { - borderImage: 4.2, - borderImageOutset: 4.2, - borderImageRepeat: 4.2, - borderImageSlice: 4.2, - borderImageSource: 4.2, - borderImageWidth: 4.2, - flex: 4.2, - flexBasis: 4.2, - flexDirection: 4.2, - flexGrow: 4.2, - flexFlow: 4.2, - flexShrink: 4.2, - flexWrap: 4.2, - alignContent: 4.2, - alignItems: 4.2, - alignSelf: 4.2, - justifyContent: 4.2, - order: 4.2, - transition: 4.2, - transitionDelay: 4.2, - transitionDuration: 4.2, - transitionProperty: 4.2, - transitionTimingFunction: 4.2, - transform: 4.4, - transformOrigin: 4.4, - transformOriginX: 4.4, - transformOriginY: 4.4, - backfaceVisibility: 4.4, - perspective: 4.4, - perspectiveOrigin: 4.4, - transformStyle: 4.4, - transformOriginZ: 4.4, - animation: 4.4, - animationDelay: 4.4, - animationDirection: 4.4, - animationFillMode: 4.4, - animationDuration: 4.4, - animationIterationCount: 4.4, - animationName: 4.4, - animationPlayState: 4.4, - animationTimingFunction: 4.4, - appearance: 56, - userSelect: 4.4, - fontKerning: 4.4, - textEmphasisPosition: 56, - textEmphasis: 56, - textEmphasisStyle: 56, - textEmphasisColor: 56, - boxDecorationBreak: 56, - clipPath: 4.4, - maskImage: 56, - maskMode: 56, - maskRepeat: 56, - maskPosition: 56, - maskClip: 56, - maskOrigin: 56, - maskSize: 56, - maskComposite: 56, - mask: 56, - maskBorderSource: 56, - maskBorderMode: 56, - maskBorderSlice: 56, - maskBorderWidth: 56, - maskBorderOutset: 56, - maskBorderRepeat: 56, - maskBorder: 56, - maskType: 56, - filter: 4.4, - fontFeatureSettings: 4.4, - breakAfter: 4.4, - breakBefore: 4.4, - breakInside: 4.4, - columnCount: 4.4, - columnFill: 4.4, - columnGap: 4.4, - columnRule: 4.4, - columnRuleColor: 4.4, - columnRuleStyle: 4.4, - columnRuleWidth: 4.4, - columns: 4.4, - columnSpan: 4.4, - columnWidth: 4.4, - writingMode: 4.4 - }, - and_chr: { - appearance: 61, - textEmphasisPosition: 61, - textEmphasis: 61, - textEmphasisStyle: 61, - textEmphasisColor: 61, - boxDecorationBreak: 61, - maskImage: 61, - maskMode: 61, - maskRepeat: 61, - maskPosition: 61, - maskClip: 61, - maskOrigin: 61, - maskSize: 61, - maskComposite: 61, - mask: 61, - maskBorderSource: 61, - maskBorderMode: 61, - maskBorderSlice: 61, - maskBorderWidth: 61, - maskBorderOutset: 61, - maskBorderRepeat: 61, - maskBorder: 61, - maskType: 61 - }, - and_uc: { - flex: 11.4, - flexBasis: 11.4, - flexDirection: 11.4, - flexGrow: 11.4, - flexFlow: 11.4, - flexShrink: 11.4, - flexWrap: 11.4, - alignContent: 11.4, - alignItems: 11.4, - alignSelf: 11.4, - justifyContent: 11.4, - order: 11.4, - transform: 11.4, - transformOrigin: 11.4, - transformOriginX: 11.4, - transformOriginY: 11.4, - backfaceVisibility: 11.4, - perspective: 11.4, - perspectiveOrigin: 11.4, - transformStyle: 11.4, - transformOriginZ: 11.4, - animation: 11.4, - animationDelay: 11.4, - animationDirection: 11.4, - animationFillMode: 11.4, - animationDuration: 11.4, - animationIterationCount: 11.4, - animationName: 11.4, - animationPlayState: 11.4, - animationTimingFunction: 11.4, - appearance: 11.4, - userSelect: 11.4, - textEmphasisPosition: 11.4, - textEmphasis: 11.4, - textEmphasisStyle: 11.4, - textEmphasisColor: 11.4, - clipPath: 11.4, - maskImage: 11.4, - maskMode: 11.4, - maskRepeat: 11.4, - maskPosition: 11.4, - maskClip: 11.4, - maskOrigin: 11.4, - maskSize: 11.4, - maskComposite: 11.4, - mask: 11.4, - maskBorderSource: 11.4, - maskBorderMode: 11.4, - maskBorderSlice: 11.4, - maskBorderWidth: 11.4, - maskBorderOutset: 11.4, - maskBorderRepeat: 11.4, - maskBorder: 11.4, - maskType: 11.4, - textSizeAdjust: 11.4, - filter: 11.4, - hyphens: 11.4, - fontFeatureSettings: 11.4, - breakAfter: 11.4, - breakBefore: 11.4, - breakInside: 11.4, - columnCount: 11.4, - columnFill: 11.4, - columnGap: 11.4, - columnRule: 11.4, - columnRuleColor: 11.4, - columnRuleStyle: 11.4, - columnRuleWidth: 11.4, - columns: 11.4, - columnSpan: 11.4, - columnWidth: 11.4, - writingMode: 11.4 - }, - op_mini: {} - } - }), - (module.exports = exports.default); - }, - function(module, exports) { - module.exports = [ - 'alignContent', - 'MozAlignContent', - 'WebkitAlignContent', - 'MSAlignContent', - 'OAlignContent', - 'alignItems', - 'MozAlignItems', - 'WebkitAlignItems', - 'MSAlignItems', - 'OAlignItems', - 'alignSelf', - 'MozAlignSelf', - 'WebkitAlignSelf', - 'MSAlignSelf', - 'OAlignSelf', - 'all', - 'MozAll', - 'WebkitAll', - 'MSAll', - 'OAll', - 'animation', - 'MozAnimation', - 'WebkitAnimation', - 'MSAnimation', - 'OAnimation', - 'animationDelay', - 'MozAnimationDelay', - 'WebkitAnimationDelay', - 'MSAnimationDelay', - 'OAnimationDelay', - 'animationDirection', - 'MozAnimationDirection', - 'WebkitAnimationDirection', - 'MSAnimationDirection', - 'OAnimationDirection', - 'animationDuration', - 'MozAnimationDuration', - 'WebkitAnimationDuration', - 'MSAnimationDuration', - 'OAnimationDuration', - 'animationFillMode', - 'MozAnimationFillMode', - 'WebkitAnimationFillMode', - 'MSAnimationFillMode', - 'OAnimationFillMode', - 'animationIterationCount', - 'MozAnimationIterationCount', - 'WebkitAnimationIterationCount', - 'MSAnimationIterationCount', - 'OAnimationIterationCount', - 'animationName', - 'MozAnimationName', - 'WebkitAnimationName', - 'MSAnimationName', - 'OAnimationName', - 'animationPlayState', - 'MozAnimationPlayState', - 'WebkitAnimationPlayState', - 'MSAnimationPlayState', - 'OAnimationPlayState', - 'animationTimingFunction', - 'MozAnimationTimingFunction', - 'WebkitAnimationTimingFunction', - 'MSAnimationTimingFunction', - 'OAnimationTimingFunction', - 'backfaceVisibility', - 'MozBackfaceVisibility', - 'WebkitBackfaceVisibility', - 'MSBackfaceVisibility', - 'OBackfaceVisibility', - 'background', - 'MozBackground', - 'WebkitBackground', - 'MSBackground', - 'OBackground', - 'backgroundAttachment', - 'MozBackgroundAttachment', - 'WebkitBackgroundAttachment', - 'MSBackgroundAttachment', - 'OBackgroundAttachment', - 'backgroundBlendMode', - 'MozBackgroundBlendMode', - 'WebkitBackgroundBlendMode', - 'MSBackgroundBlendMode', - 'OBackgroundBlendMode', - 'backgroundClip', - 'MozBackgroundClip', - 'WebkitBackgroundClip', - 'MSBackgroundClip', - 'OBackgroundClip', - 'backgroundColor', - 'MozBackgroundColor', - 'WebkitBackgroundColor', - 'MSBackgroundColor', - 'OBackgroundColor', - 'backgroundImage', - 'MozBackgroundImage', - 'WebkitBackgroundImage', - 'MSBackgroundImage', - 'OBackgroundImage', - 'backgroundOrigin', - 'MozBackgroundOrigin', - 'WebkitBackgroundOrigin', - 'MSBackgroundOrigin', - 'OBackgroundOrigin', - 'backgroundPosition', - 'MozBackgroundPosition', - 'WebkitBackgroundPosition', - 'MSBackgroundPosition', - 'OBackgroundPosition', - 'backgroundRepeat', - 'MozBackgroundRepeat', - 'WebkitBackgroundRepeat', - 'MSBackgroundRepeat', - 'OBackgroundRepeat', - 'backgroundSize', - 'MozBackgroundSize', - 'WebkitBackgroundSize', - 'MSBackgroundSize', - 'OBackgroundSize', - 'blockSize', - 'MozBlockSize', - 'WebkitBlockSize', - 'MSBlockSize', - 'OBlockSize', - 'border', - 'MozBorder', - 'WebkitBorder', - 'MSBorder', - 'OBorder', - 'borderBlockEnd', - 'MozBorderBlockEnd', - 'WebkitBorderBlockEnd', - 'MSBorderBlockEnd', - 'OBorderBlockEnd', - 'borderBlockEndColor', - 'MozBorderBlockEndColor', - 'WebkitBorderBlockEndColor', - 'MSBorderBlockEndColor', - 'OBorderBlockEndColor', - 'borderBlockEndStyle', - 'MozBorderBlockEndStyle', - 'WebkitBorderBlockEndStyle', - 'MSBorderBlockEndStyle', - 'OBorderBlockEndStyle', - 'borderBlockEndWidth', - 'MozBorderBlockEndWidth', - 'WebkitBorderBlockEndWidth', - 'MSBorderBlockEndWidth', - 'OBorderBlockEndWidth', - 'borderBlockStart', - 'MozBorderBlockStart', - 'WebkitBorderBlockStart', - 'MSBorderBlockStart', - 'OBorderBlockStart', - 'borderBlockStartColor', - 'MozBorderBlockStartColor', - 'WebkitBorderBlockStartColor', - 'MSBorderBlockStartColor', - 'OBorderBlockStartColor', - 'borderBlockStartStyle', - 'MozBorderBlockStartStyle', - 'WebkitBorderBlockStartStyle', - 'MSBorderBlockStartStyle', - 'OBorderBlockStartStyle', - 'borderBlockStartWidth', - 'MozBorderBlockStartWidth', - 'WebkitBorderBlockStartWidth', - 'MSBorderBlockStartWidth', - 'OBorderBlockStartWidth', - 'borderBottom', - 'MozBorderBottom', - 'WebkitBorderBottom', - 'MSBorderBottom', - 'OBorderBottom', - 'borderBottomColor', - 'MozBorderBottomColor', - 'WebkitBorderBottomColor', - 'MSBorderBottomColor', - 'OBorderBottomColor', - 'borderBottomLeftRadius', - 'MozBorderBottomLeftRadius', - 'WebkitBorderBottomLeftRadius', - 'MSBorderBottomLeftRadius', - 'OBorderBottomLeftRadius', - 'borderBottomRightRadius', - 'MozBorderBottomRightRadius', - 'WebkitBorderBottomRightRadius', - 'MSBorderBottomRightRadius', - 'OBorderBottomRightRadius', - 'borderBottomStyle', - 'MozBorderBottomStyle', - 'WebkitBorderBottomStyle', - 'MSBorderBottomStyle', - 'OBorderBottomStyle', - 'borderBottomWidth', - 'MozBorderBottomWidth', - 'WebkitBorderBottomWidth', - 'MSBorderBottomWidth', - 'OBorderBottomWidth', - 'borderCollapse', - 'MozBorderCollapse', - 'WebkitBorderCollapse', - 'MSBorderCollapse', - 'OBorderCollapse', - 'borderColor', - 'MozBorderColor', - 'WebkitBorderColor', - 'MSBorderColor', - 'OBorderColor', - 'borderImage', - 'MozBorderImage', - 'WebkitBorderImage', - 'MSBorderImage', - 'OBorderImage', - 'borderImageOutset', - 'MozBorderImageOutset', - 'WebkitBorderImageOutset', - 'MSBorderImageOutset', - 'OBorderImageOutset', - 'borderImageRepeat', - 'MozBorderImageRepeat', - 'WebkitBorderImageRepeat', - 'MSBorderImageRepeat', - 'OBorderImageRepeat', - 'borderImageSlice', - 'MozBorderImageSlice', - 'WebkitBorderImageSlice', - 'MSBorderImageSlice', - 'OBorderImageSlice', - 'borderImageSource', - 'MozBorderImageSource', - 'WebkitBorderImageSource', - 'MSBorderImageSource', - 'OBorderImageSource', - 'borderImageWidth', - 'MozBorderImageWidth', - 'WebkitBorderImageWidth', - 'MSBorderImageWidth', - 'OBorderImageWidth', - 'borderInlineEnd', - 'MozBorderInlineEnd', - 'WebkitBorderInlineEnd', - 'MSBorderInlineEnd', - 'OBorderInlineEnd', - 'borderInlineEndColor', - 'MozBorderInlineEndColor', - 'WebkitBorderInlineEndColor', - 'MSBorderInlineEndColor', - 'OBorderInlineEndColor', - 'borderInlineEndStyle', - 'MozBorderInlineEndStyle', - 'WebkitBorderInlineEndStyle', - 'MSBorderInlineEndStyle', - 'OBorderInlineEndStyle', - 'borderInlineEndWidth', - 'MozBorderInlineEndWidth', - 'WebkitBorderInlineEndWidth', - 'MSBorderInlineEndWidth', - 'OBorderInlineEndWidth', - 'borderInlineStart', - 'MozBorderInlineStart', - 'WebkitBorderInlineStart', - 'MSBorderInlineStart', - 'OBorderInlineStart', - 'borderInlineStartColor', - 'MozBorderInlineStartColor', - 'WebkitBorderInlineStartColor', - 'MSBorderInlineStartColor', - 'OBorderInlineStartColor', - 'borderInlineStartStyle', - 'MozBorderInlineStartStyle', - 'WebkitBorderInlineStartStyle', - 'MSBorderInlineStartStyle', - 'OBorderInlineStartStyle', - 'borderInlineStartWidth', - 'MozBorderInlineStartWidth', - 'WebkitBorderInlineStartWidth', - 'MSBorderInlineStartWidth', - 'OBorderInlineStartWidth', - 'borderLeft', - 'MozBorderLeft', - 'WebkitBorderLeft', - 'MSBorderLeft', - 'OBorderLeft', - 'borderLeftColor', - 'MozBorderLeftColor', - 'WebkitBorderLeftColor', - 'MSBorderLeftColor', - 'OBorderLeftColor', - 'borderLeftStyle', - 'MozBorderLeftStyle', - 'WebkitBorderLeftStyle', - 'MSBorderLeftStyle', - 'OBorderLeftStyle', - 'borderLeftWidth', - 'MozBorderLeftWidth', - 'WebkitBorderLeftWidth', - 'MSBorderLeftWidth', - 'OBorderLeftWidth', - 'borderRadius', - 'MozBorderRadius', - 'WebkitBorderRadius', - 'MSBorderRadius', - 'OBorderRadius', - 'borderRight', - 'MozBorderRight', - 'WebkitBorderRight', - 'MSBorderRight', - 'OBorderRight', - 'borderRightColor', - 'MozBorderRightColor', - 'WebkitBorderRightColor', - 'MSBorderRightColor', - 'OBorderRightColor', - 'borderRightStyle', - 'MozBorderRightStyle', - 'WebkitBorderRightStyle', - 'MSBorderRightStyle', - 'OBorderRightStyle', - 'borderRightWidth', - 'MozBorderRightWidth', - 'WebkitBorderRightWidth', - 'MSBorderRightWidth', - 'OBorderRightWidth', - 'borderSpacing', - 'MozBorderSpacing', - 'WebkitBorderSpacing', - 'MSBorderSpacing', - 'OBorderSpacing', - 'borderStyle', - 'MozBorderStyle', - 'WebkitBorderStyle', - 'MSBorderStyle', - 'OBorderStyle', - 'borderTop', - 'MozBorderTop', - 'WebkitBorderTop', - 'MSBorderTop', - 'OBorderTop', - 'borderTopColor', - 'MozBorderTopColor', - 'WebkitBorderTopColor', - 'MSBorderTopColor', - 'OBorderTopColor', - 'borderTopLeftRadius', - 'MozBorderTopLeftRadius', - 'WebkitBorderTopLeftRadius', - 'MSBorderTopLeftRadius', - 'OBorderTopLeftRadius', - 'borderTopRightRadius', - 'MozBorderTopRightRadius', - 'WebkitBorderTopRightRadius', - 'MSBorderTopRightRadius', - 'OBorderTopRightRadius', - 'borderTopStyle', - 'MozBorderTopStyle', - 'WebkitBorderTopStyle', - 'MSBorderTopStyle', - 'OBorderTopStyle', - 'borderTopWidth', - 'MozBorderTopWidth', - 'WebkitBorderTopWidth', - 'MSBorderTopWidth', - 'OBorderTopWidth', - 'borderWidth', - 'MozBorderWidth', - 'WebkitBorderWidth', - 'MSBorderWidth', - 'OBorderWidth', - 'bottom', - 'MozBottom', - 'WebkitBottom', - 'MSBottom', - 'OBottom', - 'boxDecorationBreak', - 'MozBoxDecorationBreak', - 'WebkitBoxDecorationBreak', - 'MSBoxDecorationBreak', - 'OBoxDecorationBreak', - 'boxShadow', - 'MozBoxShadow', - 'WebkitBoxShadow', - 'MSBoxShadow', - 'OBoxShadow', - 'boxSizing', - 'MozBoxSizing', - 'WebkitBoxSizing', - 'MSBoxSizing', - 'OBoxSizing', - 'breakAfter', - 'MozBreakAfter', - 'WebkitBreakAfter', - 'MSBreakAfter', - 'OBreakAfter', - 'breakBefore', - 'MozBreakBefore', - 'WebkitBreakBefore', - 'MSBreakBefore', - 'OBreakBefore', - 'breakInside', - 'MozBreakInside', - 'WebkitBreakInside', - 'MSBreakInside', - 'OBreakInside', - 'captionSide', - 'MozCaptionSide', - 'WebkitCaptionSide', - 'MSCaptionSide', - 'OCaptionSide', - 'caretColor', - 'MozCaretColor', - 'WebkitCaretColor', - 'MSCaretColor', - 'OCaretColor', - 'ch', - 'MozCh', - 'WebkitCh', - 'MSCh', - 'OCh', - 'clear', - 'MozClear', - 'WebkitClear', - 'MSClear', - 'OClear', - 'clip', - 'MozClip', - 'WebkitClip', - 'MSClip', - 'OClip', - 'clipPath', - 'MozClipPath', - 'WebkitClipPath', - 'MSClipPath', - 'OClipPath', - 'cm', - 'MozCm', - 'WebkitCm', - 'MSCm', - 'OCm', - 'color', - 'MozColor', - 'WebkitColor', - 'MSColor', - 'OColor', - 'columnCount', - 'MozColumnCount', - 'WebkitColumnCount', - 'MSColumnCount', - 'OColumnCount', - 'columnFill', - 'MozColumnFill', - 'WebkitColumnFill', - 'MSColumnFill', - 'OColumnFill', - 'columnGap', - 'MozColumnGap', - 'WebkitColumnGap', - 'MSColumnGap', - 'OColumnGap', - 'columnRule', - 'MozColumnRule', - 'WebkitColumnRule', - 'MSColumnRule', - 'OColumnRule', - 'columnRuleColor', - 'MozColumnRuleColor', - 'WebkitColumnRuleColor', - 'MSColumnRuleColor', - 'OColumnRuleColor', - 'columnRuleStyle', - 'MozColumnRuleStyle', - 'WebkitColumnRuleStyle', - 'MSColumnRuleStyle', - 'OColumnRuleStyle', - 'columnRuleWidth', - 'MozColumnRuleWidth', - 'WebkitColumnRuleWidth', - 'MSColumnRuleWidth', - 'OColumnRuleWidth', - 'columnSpan', - 'MozColumnSpan', - 'WebkitColumnSpan', - 'MSColumnSpan', - 'OColumnSpan', - 'columnWidth', - 'MozColumnWidth', - 'WebkitColumnWidth', - 'MSColumnWidth', - 'OColumnWidth', - 'columns', - 'MozColumns', - 'WebkitColumns', - 'MSColumns', - 'OColumns', - 'content', - 'MozContent', - 'WebkitContent', - 'MSContent', - 'OContent', - 'counterIncrement', - 'MozCounterIncrement', - 'WebkitCounterIncrement', - 'MSCounterIncrement', - 'OCounterIncrement', - 'counterReset', - 'MozCounterReset', - 'WebkitCounterReset', - 'MSCounterReset', - 'OCounterReset', - 'cursor', - 'MozCursor', - 'WebkitCursor', - 'MSCursor', - 'OCursor', - 'deg', - 'MozDeg', - 'WebkitDeg', - 'MSDeg', - 'ODeg', - 'direction', - 'MozDirection', - 'WebkitDirection', - 'MSDirection', - 'ODirection', - 'display', - 'MozDisplay', - 'WebkitDisplay', - 'MSDisplay', - 'ODisplay', - 'dpcm', - 'MozDpcm', - 'WebkitDpcm', - 'MSDpcm', - 'ODpcm', - 'dpi', - 'MozDpi', - 'WebkitDpi', - 'MSDpi', - 'ODpi', - 'dppx', - 'MozDppx', - 'WebkitDppx', - 'MSDppx', - 'ODppx', - 'em', - 'MozEm', - 'WebkitEm', - 'MSEm', - 'OEm', - 'emptyCells', - 'MozEmptyCells', - 'WebkitEmptyCells', - 'MSEmptyCells', - 'OEmptyCells', - 'ex', - 'MozEx', - 'WebkitEx', - 'MSEx', - 'OEx', - 'filter', - 'MozFilter', - 'WebkitFilter', - 'MSFilter', - 'OFilter', - 'flexBasis', - 'MozFlexBasis', - 'WebkitFlexBasis', - 'MSFlexBasis', - 'OFlexBasis', - 'flexDirection', - 'MozFlexDirection', - 'WebkitFlexDirection', - 'MSFlexDirection', - 'OFlexDirection', - 'flexFlow', - 'MozFlexFlow', - 'WebkitFlexFlow', - 'MSFlexFlow', - 'OFlexFlow', - 'flexGrow', - 'MozFlexGrow', - 'WebkitFlexGrow', - 'MSFlexGrow', - 'OFlexGrow', - 'flexShrink', - 'MozFlexShrink', - 'WebkitFlexShrink', - 'MSFlexShrink', - 'OFlexShrink', - 'flexWrap', - 'MozFlexWrap', - 'WebkitFlexWrap', - 'MSFlexWrap', - 'OFlexWrap', - 'float', - 'MozFloat', - 'WebkitFloat', - 'MSFloat', - 'OFloat', - 'font', - 'MozFont', - 'WebkitFont', - 'MSFont', - 'OFont', - 'fontFamily', - 'MozFontFamily', - 'WebkitFontFamily', - 'MSFontFamily', - 'OFontFamily', - 'fontFeatureSettings', - 'MozFontFeatureSettings', - 'WebkitFontFeatureSettings', - 'MSFontFeatureSettings', - 'OFontFeatureSettings', - 'fontKerning', - 'MozFontKerning', - 'WebkitFontKerning', - 'MSFontKerning', - 'OFontKerning', - 'fontLanguageOverride', - 'MozFontLanguageOverride', - 'WebkitFontLanguageOverride', - 'MSFontLanguageOverride', - 'OFontLanguageOverride', - 'fontSize', - 'MozFontSize', - 'WebkitFontSize', - 'MSFontSize', - 'OFontSize', - 'fontSizeAdjust', - 'MozFontSizeAdjust', - 'WebkitFontSizeAdjust', - 'MSFontSizeAdjust', - 'OFontSizeAdjust', - 'fontStretch', - 'MozFontStretch', - 'WebkitFontStretch', - 'MSFontStretch', - 'OFontStretch', - 'fontStyle', - 'MozFontStyle', - 'WebkitFontStyle', - 'MSFontStyle', - 'OFontStyle', - 'fontSynthesis', - 'MozFontSynthesis', - 'WebkitFontSynthesis', - 'MSFontSynthesis', - 'OFontSynthesis', - 'fontVariant', - 'MozFontVariant', - 'WebkitFontVariant', - 'MSFontVariant', - 'OFontVariant', - 'fontVariantAlternates', - 'MozFontVariantAlternates', - 'WebkitFontVariantAlternates', - 'MSFontVariantAlternates', - 'OFontVariantAlternates', - 'fontVariantCaps', - 'MozFontVariantCaps', - 'WebkitFontVariantCaps', - 'MSFontVariantCaps', - 'OFontVariantCaps', - 'fontVariantEastAsian', - 'MozFontVariantEastAsian', - 'WebkitFontVariantEastAsian', - 'MSFontVariantEastAsian', - 'OFontVariantEastAsian', - 'fontVariantLigatures', - 'MozFontVariantLigatures', - 'WebkitFontVariantLigatures', - 'MSFontVariantLigatures', - 'OFontVariantLigatures', - 'fontVariantNumeric', - 'MozFontVariantNumeric', - 'WebkitFontVariantNumeric', - 'MSFontVariantNumeric', - 'OFontVariantNumeric', - 'fontVariantPosition', - 'MozFontVariantPosition', - 'WebkitFontVariantPosition', - 'MSFontVariantPosition', - 'OFontVariantPosition', - 'fontWeight', - 'MozFontWeight', - 'WebkitFontWeight', - 'MSFontWeight', - 'OFontWeight', - 'fr', - 'MozFr', - 'WebkitFr', - 'MSFr', - 'OFr', - 'grad', - 'MozGrad', - 'WebkitGrad', - 'MSGrad', - 'OGrad', - 'grid', - 'MozGrid', - 'WebkitGrid', - 'MSGrid', - 'OGrid', - 'gridArea', - 'MozGridArea', - 'WebkitGridArea', - 'MSGridArea', - 'OGridArea', - 'gridAutoColumns', - 'MozGridAutoColumns', - 'WebkitGridAutoColumns', - 'MSGridAutoColumns', - 'OGridAutoColumns', - 'gridAutoFlow', - 'MozGridAutoFlow', - 'WebkitGridAutoFlow', - 'MSGridAutoFlow', - 'OGridAutoFlow', - 'gridAutoRows', - 'MozGridAutoRows', - 'WebkitGridAutoRows', - 'MSGridAutoRows', - 'OGridAutoRows', - 'gridColumn', - 'MozGridColumn', - 'WebkitGridColumn', - 'MSGridColumn', - 'OGridColumn', - 'gridColumnEnd', - 'MozGridColumnEnd', - 'WebkitGridColumnEnd', - 'MSGridColumnEnd', - 'OGridColumnEnd', - 'gridColumnGap', - 'MozGridColumnGap', - 'WebkitGridColumnGap', - 'MSGridColumnGap', - 'OGridColumnGap', - 'gridColumnStart', - 'MozGridColumnStart', - 'WebkitGridColumnStart', - 'MSGridColumnStart', - 'OGridColumnStart', - 'gridGap', - 'MozGridGap', - 'WebkitGridGap', - 'MSGridGap', - 'OGridGap', - 'gridRow', - 'MozGridRow', - 'WebkitGridRow', - 'MSGridRow', - 'OGridRow', - 'gridRowEnd', - 'MozGridRowEnd', - 'WebkitGridRowEnd', - 'MSGridRowEnd', - 'OGridRowEnd', - 'gridRowGap', - 'MozGridRowGap', - 'WebkitGridRowGap', - 'MSGridRowGap', - 'OGridRowGap', - 'gridRowStart', - 'MozGridRowStart', - 'WebkitGridRowStart', - 'MSGridRowStart', - 'OGridRowStart', - 'gridTemplate', - 'MozGridTemplate', - 'WebkitGridTemplate', - 'MSGridTemplate', - 'OGridTemplate', - 'gridTemplateAreas', - 'MozGridTemplateAreas', - 'WebkitGridTemplateAreas', - 'MSGridTemplateAreas', - 'OGridTemplateAreas', - 'gridTemplateColumns', - 'MozGridTemplateColumns', - 'WebkitGridTemplateColumns', - 'MSGridTemplateColumns', - 'OGridTemplateColumns', - 'gridTemplateRows', - 'MozGridTemplateRows', - 'WebkitGridTemplateRows', - 'MSGridTemplateRows', - 'OGridTemplateRows', - 'height', - 'MozHeight', - 'WebkitHeight', - 'MSHeight', - 'OHeight', - 'hyphens', - 'MozHyphens', - 'WebkitHyphens', - 'MSHyphens', - 'OHyphens', - 'hz', - 'MozHz', - 'WebkitHz', - 'MSHz', - 'OHz', - 'imageOrientation', - 'MozImageOrientation', - 'WebkitImageOrientation', - 'MSImageOrientation', - 'OImageOrientation', - 'imageRendering', - 'MozImageRendering', - 'WebkitImageRendering', - 'MSImageRendering', - 'OImageRendering', - 'imageResolution', - 'MozImageResolution', - 'WebkitImageResolution', - 'MSImageResolution', - 'OImageResolution', - 'imeMode', - 'MozImeMode', - 'WebkitImeMode', - 'MSImeMode', - 'OImeMode', - 'in', - 'MozIn', - 'WebkitIn', - 'MSIn', - 'OIn', - 'inherit', - 'MozInherit', - 'WebkitInherit', - 'MSInherit', - 'OInherit', - 'initial', - 'MozInitial', - 'WebkitInitial', - 'MSInitial', - 'OInitial', - 'inlineSize', - 'MozInlineSize', - 'WebkitInlineSize', - 'MSInlineSize', - 'OInlineSize', - 'isolation', - 'MozIsolation', - 'WebkitIsolation', - 'MSIsolation', - 'OIsolation', - 'justifyContent', - 'MozJustifyContent', - 'WebkitJustifyContent', - 'MSJustifyContent', - 'OJustifyContent', - 'khz', - 'MozKhz', - 'WebkitKhz', - 'MSKhz', - 'OKhz', - 'left', - 'MozLeft', - 'WebkitLeft', - 'MSLeft', - 'OLeft', - 'letterSpacing', - 'MozLetterSpacing', - 'WebkitLetterSpacing', - 'MSLetterSpacing', - 'OLetterSpacing', - 'lineBreak', - 'MozLineBreak', - 'WebkitLineBreak', - 'MSLineBreak', - 'OLineBreak', - 'lineHeight', - 'MozLineHeight', - 'WebkitLineHeight', - 'MSLineHeight', - 'OLineHeight', - 'listStyle', - 'MozListStyle', - 'WebkitListStyle', - 'MSListStyle', - 'OListStyle', - 'listStyleImage', - 'MozListStyleImage', - 'WebkitListStyleImage', - 'MSListStyleImage', - 'OListStyleImage', - 'listStylePosition', - 'MozListStylePosition', - 'WebkitListStylePosition', - 'MSListStylePosition', - 'OListStylePosition', - 'listStyleType', - 'MozListStyleType', - 'WebkitListStyleType', - 'MSListStyleType', - 'OListStyleType', - 'margin', - 'MozMargin', - 'WebkitMargin', - 'MSMargin', - 'OMargin', - 'marginBlockEnd', - 'MozMarginBlockEnd', - 'WebkitMarginBlockEnd', - 'MSMarginBlockEnd', - 'OMarginBlockEnd', - 'marginBlockStart', - 'MozMarginBlockStart', - 'WebkitMarginBlockStart', - 'MSMarginBlockStart', - 'OMarginBlockStart', - 'marginBottom', - 'MozMarginBottom', - 'WebkitMarginBottom', - 'MSMarginBottom', - 'OMarginBottom', - 'marginInlineEnd', - 'MozMarginInlineEnd', - 'WebkitMarginInlineEnd', - 'MSMarginInlineEnd', - 'OMarginInlineEnd', - 'marginInlineStart', - 'MozMarginInlineStart', - 'WebkitMarginInlineStart', - 'MSMarginInlineStart', - 'OMarginInlineStart', - 'marginLeft', - 'MozMarginLeft', - 'WebkitMarginLeft', - 'MSMarginLeft', - 'OMarginLeft', - 'marginRight', - 'MozMarginRight', - 'WebkitMarginRight', - 'MSMarginRight', - 'OMarginRight', - 'marginTop', - 'MozMarginTop', - 'WebkitMarginTop', - 'MSMarginTop', - 'OMarginTop', - 'mask', - 'MozMask', - 'WebkitMask', - 'MSMask', - 'OMask', - 'maskClip', - 'MozMaskClip', - 'WebkitMaskClip', - 'MSMaskClip', - 'OMaskClip', - 'maskComposite', - 'MozMaskComposite', - 'WebkitMaskComposite', - 'MSMaskComposite', - 'OMaskComposite', - 'maskImage', - 'MozMaskImage', - 'WebkitMaskImage', - 'MSMaskImage', - 'OMaskImage', - 'maskMode', - 'MozMaskMode', - 'WebkitMaskMode', - 'MSMaskMode', - 'OMaskMode', - 'maskOrigin', - 'MozMaskOrigin', - 'WebkitMaskOrigin', - 'MSMaskOrigin', - 'OMaskOrigin', - 'maskPosition', - 'MozMaskPosition', - 'WebkitMaskPosition', - 'MSMaskPosition', - 'OMaskPosition', - 'maskRepeat', - 'MozMaskRepeat', - 'WebkitMaskRepeat', - 'MSMaskRepeat', - 'OMaskRepeat', - 'maskSize', - 'MozMaskSize', - 'WebkitMaskSize', - 'MSMaskSize', - 'OMaskSize', - 'maskType', - 'MozMaskType', - 'WebkitMaskType', - 'MSMaskType', - 'OMaskType', - 'maxHeight', - 'MozMaxHeight', - 'WebkitMaxHeight', - 'MSMaxHeight', - 'OMaxHeight', - 'maxWidth', - 'MozMaxWidth', - 'WebkitMaxWidth', - 'MSMaxWidth', - 'OMaxWidth', - 'minBlockSize', - 'MozMinBlockSize', - 'WebkitMinBlockSize', - 'MSMinBlockSize', - 'OMinBlockSize', - 'minHeight', - 'MozMinHeight', - 'WebkitMinHeight', - 'MSMinHeight', - 'OMinHeight', - 'minInlineSize', - 'MozMinInlineSize', - 'WebkitMinInlineSize', - 'MSMinInlineSize', - 'OMinInlineSize', - 'minWidth', - 'MozMinWidth', - 'WebkitMinWidth', - 'MSMinWidth', - 'OMinWidth', - 'mixBlendMode', - 'MozMixBlendMode', - 'WebkitMixBlendMode', - 'MSMixBlendMode', - 'OMixBlendMode', - 'mm', - 'MozMm', - 'WebkitMm', - 'MSMm', - 'OMm', - 'ms', - 'MozMs', - 'WebkitMs', - 'MSMs', - 'OMs', - 'objectFit', - 'MozObjectFit', - 'WebkitObjectFit', - 'MSObjectFit', - 'OObjectFit', - 'objectPosition', - 'MozObjectPosition', - 'WebkitObjectPosition', - 'MSObjectPosition', - 'OObjectPosition', - 'offsetBlockEnd', - 'MozOffsetBlockEnd', - 'WebkitOffsetBlockEnd', - 'MSOffsetBlockEnd', - 'OOffsetBlockEnd', - 'offsetBlockStart', - 'MozOffsetBlockStart', - 'WebkitOffsetBlockStart', - 'MSOffsetBlockStart', - 'OOffsetBlockStart', - 'offsetInlineEnd', - 'MozOffsetInlineEnd', - 'WebkitOffsetInlineEnd', - 'MSOffsetInlineEnd', - 'OOffsetInlineEnd', - 'offsetInlineStart', - 'MozOffsetInlineStart', - 'WebkitOffsetInlineStart', - 'MSOffsetInlineStart', - 'OOffsetInlineStart', - 'opacity', - 'MozOpacity', - 'WebkitOpacity', - 'MSOpacity', - 'OOpacity', - 'order', - 'MozOrder', - 'WebkitOrder', - 'MSOrder', - 'OOrder', - 'orphans', - 'MozOrphans', - 'WebkitOrphans', - 'MSOrphans', - 'OOrphans', - 'outline', - 'MozOutline', - 'WebkitOutline', - 'MSOutline', - 'OOutline', - 'outlineColor', - 'MozOutlineColor', - 'WebkitOutlineColor', - 'MSOutlineColor', - 'OOutlineColor', - 'outlineOffset', - 'MozOutlineOffset', - 'WebkitOutlineOffset', - 'MSOutlineOffset', - 'OOutlineOffset', - 'outlineStyle', - 'MozOutlineStyle', - 'WebkitOutlineStyle', - 'MSOutlineStyle', - 'OOutlineStyle', - 'outlineWidth', - 'MozOutlineWidth', - 'WebkitOutlineWidth', - 'MSOutlineWidth', - 'OOutlineWidth', - 'overflow', - 'MozOverflow', - 'WebkitOverflow', - 'MSOverflow', - 'OOverflow', - 'overflowWrap', - 'MozOverflowWrap', - 'WebkitOverflowWrap', - 'MSOverflowWrap', - 'OOverflowWrap', - 'overflowX', - 'MozOverflowX', - 'WebkitOverflowX', - 'MSOverflowX', - 'OOverflowX', - 'overflowY', - 'MozOverflowY', - 'WebkitOverflowY', - 'MSOverflowY', - 'OOverflowY', - 'padding', - 'MozPadding', - 'WebkitPadding', - 'MSPadding', - 'OPadding', - 'paddingBlockEnd', - 'MozPaddingBlockEnd', - 'WebkitPaddingBlockEnd', - 'MSPaddingBlockEnd', - 'OPaddingBlockEnd', - 'paddingBlockStart', - 'MozPaddingBlockStart', - 'WebkitPaddingBlockStart', - 'MSPaddingBlockStart', - 'OPaddingBlockStart', - 'paddingBottom', - 'MozPaddingBottom', - 'WebkitPaddingBottom', - 'MSPaddingBottom', - 'OPaddingBottom', - 'paddingInlineEnd', - 'MozPaddingInlineEnd', - 'WebkitPaddingInlineEnd', - 'MSPaddingInlineEnd', - 'OPaddingInlineEnd', - 'paddingInlineStart', - 'MozPaddingInlineStart', - 'WebkitPaddingInlineStart', - 'MSPaddingInlineStart', - 'OPaddingInlineStart', - 'paddingLeft', - 'MozPaddingLeft', - 'WebkitPaddingLeft', - 'MSPaddingLeft', - 'OPaddingLeft', - 'paddingRight', - 'MozPaddingRight', - 'WebkitPaddingRight', - 'MSPaddingRight', - 'OPaddingRight', - 'paddingTop', - 'MozPaddingTop', - 'WebkitPaddingTop', - 'MSPaddingTop', - 'OPaddingTop', - 'pageBreakAfter', - 'MozPageBreakAfter', - 'WebkitPageBreakAfter', - 'MSPageBreakAfter', - 'OPageBreakAfter', - 'pageBreakBefore', - 'MozPageBreakBefore', - 'WebkitPageBreakBefore', - 'MSPageBreakBefore', - 'OPageBreakBefore', - 'pageBreakInside', - 'MozPageBreakInside', - 'WebkitPageBreakInside', - 'MSPageBreakInside', - 'OPageBreakInside', - 'pc', - 'MozPc', - 'WebkitPc', - 'MSPc', - 'OPc', - 'perspective', - 'MozPerspective', - 'WebkitPerspective', - 'MSPerspective', - 'OPerspective', - 'perspectiveOrigin', - 'MozPerspectiveOrigin', - 'WebkitPerspectiveOrigin', - 'MSPerspectiveOrigin', - 'OPerspectiveOrigin', - 'pointerEvents', - 'MozPointerEvents', - 'WebkitPointerEvents', - 'MSPointerEvents', - 'OPointerEvents', - 'position', - 'MozPosition', - 'WebkitPosition', - 'MSPosition', - 'OPosition', - 'pt', - 'MozPt', - 'WebkitPt', - 'MSPt', - 'OPt', - 'px', - 'MozPx', - 'WebkitPx', - 'MSPx', - 'OPx', - 'q', - 'MozQ', - 'WebkitQ', - 'MSQ', - 'OQ', - 'quotes', - 'MozQuotes', - 'WebkitQuotes', - 'MSQuotes', - 'OQuotes', - 'rad', - 'MozRad', - 'WebkitRad', - 'MSRad', - 'ORad', - 'rem', - 'MozRem', - 'WebkitRem', - 'MSRem', - 'ORem', - 'resize', - 'MozResize', - 'WebkitResize', - 'MSResize', - 'OResize', - 'revert', - 'MozRevert', - 'WebkitRevert', - 'MSRevert', - 'ORevert', - 'right', - 'MozRight', - 'WebkitRight', - 'MSRight', - 'ORight', - 'rubyAlign', - 'MozRubyAlign', - 'WebkitRubyAlign', - 'MSRubyAlign', - 'ORubyAlign', - 'rubyMerge', - 'MozRubyMerge', - 'WebkitRubyMerge', - 'MSRubyMerge', - 'ORubyMerge', - 'rubyPosition', - 'MozRubyPosition', - 'WebkitRubyPosition', - 'MSRubyPosition', - 'ORubyPosition', - 's', - 'MozS', - 'WebkitS', - 'MSS', - 'OS', - 'scrollBehavior', - 'MozScrollBehavior', - 'WebkitScrollBehavior', - 'MSScrollBehavior', - 'OScrollBehavior', - 'scrollSnapCoordinate', - 'MozScrollSnapCoordinate', - 'WebkitScrollSnapCoordinate', - 'MSScrollSnapCoordinate', - 'OScrollSnapCoordinate', - 'scrollSnapDestination', - 'MozScrollSnapDestination', - 'WebkitScrollSnapDestination', - 'MSScrollSnapDestination', - 'OScrollSnapDestination', - 'scrollSnapType', - 'MozScrollSnapType', - 'WebkitScrollSnapType', - 'MSScrollSnapType', - 'OScrollSnapType', - 'shapeImageThreshold', - 'MozShapeImageThreshold', - 'WebkitShapeImageThreshold', - 'MSShapeImageThreshold', - 'OShapeImageThreshold', - 'shapeMargin', - 'MozShapeMargin', - 'WebkitShapeMargin', - 'MSShapeMargin', - 'OShapeMargin', - 'shapeOutside', - 'MozShapeOutside', - 'WebkitShapeOutside', - 'MSShapeOutside', - 'OShapeOutside', - 'tabSize', - 'MozTabSize', - 'WebkitTabSize', - 'MSTabSize', - 'OTabSize', - 'tableLayout', - 'MozTableLayout', - 'WebkitTableLayout', - 'MSTableLayout', - 'OTableLayout', - 'textAlign', - 'MozTextAlign', - 'WebkitTextAlign', - 'MSTextAlign', - 'OTextAlign', - 'textAlignLast', - 'MozTextAlignLast', - 'WebkitTextAlignLast', - 'MSTextAlignLast', - 'OTextAlignLast', - 'textCombineUpright', - 'MozTextCombineUpright', - 'WebkitTextCombineUpright', - 'MSTextCombineUpright', - 'OTextCombineUpright', - 'textDecoration', - 'MozTextDecoration', - 'WebkitTextDecoration', - 'MSTextDecoration', - 'OTextDecoration', - 'textDecorationColor', - 'MozTextDecorationColor', - 'WebkitTextDecorationColor', - 'MSTextDecorationColor', - 'OTextDecorationColor', - 'textDecorationLine', - 'MozTextDecorationLine', - 'WebkitTextDecorationLine', - 'MSTextDecorationLine', - 'OTextDecorationLine', - 'textDecorationStyle', - 'MozTextDecorationStyle', - 'WebkitTextDecorationStyle', - 'MSTextDecorationStyle', - 'OTextDecorationStyle', - 'textEmphasis', - 'MozTextEmphasis', - 'WebkitTextEmphasis', - 'MSTextEmphasis', - 'OTextEmphasis', - 'textEmphasisColor', - 'MozTextEmphasisColor', - 'WebkitTextEmphasisColor', - 'MSTextEmphasisColor', - 'OTextEmphasisColor', - 'textEmphasisPosition', - 'MozTextEmphasisPosition', - 'WebkitTextEmphasisPosition', - 'MSTextEmphasisPosition', - 'OTextEmphasisPosition', - 'textEmphasisStyle', - 'MozTextEmphasisStyle', - 'WebkitTextEmphasisStyle', - 'MSTextEmphasisStyle', - 'OTextEmphasisStyle', - 'textIndent', - 'MozTextIndent', - 'WebkitTextIndent', - 'MSTextIndent', - 'OTextIndent', - 'textOrientation', - 'MozTextOrientation', - 'WebkitTextOrientation', - 'MSTextOrientation', - 'OTextOrientation', - 'textOverflow', - 'MozTextOverflow', - 'WebkitTextOverflow', - 'MSTextOverflow', - 'OTextOverflow', - 'textRendering', - 'MozTextRendering', - 'WebkitTextRendering', - 'MSTextRendering', - 'OTextRendering', - 'textShadow', - 'MozTextShadow', - 'WebkitTextShadow', - 'MSTextShadow', - 'OTextShadow', - 'textTransform', - 'MozTextTransform', - 'WebkitTextTransform', - 'MSTextTransform', - 'OTextTransform', - 'textUnderlinePosition', - 'MozTextUnderlinePosition', - 'WebkitTextUnderlinePosition', - 'MSTextUnderlinePosition', - 'OTextUnderlinePosition', - 'top', - 'MozTop', - 'WebkitTop', - 'MSTop', - 'OTop', - 'touchAction', - 'MozTouchAction', - 'WebkitTouchAction', - 'MSTouchAction', - 'OTouchAction', - 'transform', - 'MozTransform', - 'WebkitTransform', - 'msTransform', - 'OTransform', - 'transformBox', - 'MozTransformBox', - 'WebkitTransformBox', - 'MSTransformBox', - 'OTransformBox', - 'transformOrigin', - 'MozTransformOrigin', - 'WebkitTransformOrigin', - 'MSTransformOrigin', - 'OTransformOrigin', - 'transformStyle', - 'MozTransformStyle', - 'WebkitTransformStyle', - 'MSTransformStyle', - 'OTransformStyle', - 'transition', - 'MozTransition', - 'WebkitTransition', - 'MSTransition', - 'OTransition', - 'transitionDelay', - 'MozTransitionDelay', - 'WebkitTransitionDelay', - 'MSTransitionDelay', - 'OTransitionDelay', - 'transitionDuration', - 'MozTransitionDuration', - 'WebkitTransitionDuration', - 'MSTransitionDuration', - 'OTransitionDuration', - 'transitionProperty', - 'MozTransitionProperty', - 'WebkitTransitionProperty', - 'MSTransitionProperty', - 'OTransitionProperty', - 'transitionTimingFunction', - 'MozTransitionTimingFunction', - 'WebkitTransitionTimingFunction', - 'MSTransitionTimingFunction', - 'OTransitionTimingFunction', - 'turn', - 'MozTurn', - 'WebkitTurn', - 'MSTurn', - 'OTurn', - 'unicodeBidi', - 'MozUnicodeBidi', - 'WebkitUnicodeBidi', - 'MSUnicodeBidi', - 'OUnicodeBidi', - 'unset', - 'MozUnset', - 'WebkitUnset', - 'MSUnset', - 'OUnset', - 'verticalAlign', - 'MozVerticalAlign', - 'WebkitVerticalAlign', - 'MSVerticalAlign', - 'OVerticalAlign', - 'vh', - 'MozVh', - 'WebkitVh', - 'MSVh', - 'OVh', - 'visibility', - 'MozVisibility', - 'WebkitVisibility', - 'MSVisibility', - 'OVisibility', - 'vmax', - 'MozVmax', - 'WebkitVmax', - 'MSVmax', - 'OVmax', - 'vmin', - 'MozVmin', - 'WebkitVmin', - 'MSVmin', - 'OVmin', - 'vw', - 'MozVw', - 'WebkitVw', - 'MSVw', - 'OVw', - 'whiteSpace', - 'MozWhiteSpace', - 'WebkitWhiteSpace', - 'MSWhiteSpace', - 'OWhiteSpace', - 'widows', - 'MozWidows', - 'WebkitWidows', - 'MSWidows', - 'OWidows', - 'width', - 'MozWidth', - 'WebkitWidth', - 'MSWidth', - 'OWidth', - 'willChange', - 'MozWillChange', - 'WebkitWillChange', - 'MSWillChange', - 'OWillChange', - 'wordBreak', - 'MozWordBreak', - 'WebkitWordBreak', - 'MSWordBreak', - 'OWordBreak', - 'wordSpacing', - 'MozWordSpacing', - 'WebkitWordSpacing', - 'MSWordSpacing', - 'OWordSpacing', - 'wordWrap', - 'MozWordWrap', - 'WebkitWordWrap', - 'MSWordWrap', - 'OWordWrap', - 'writingMode', - 'MozWritingMode', - 'WebkitWritingMode', - 'MSWritingMode', - 'OWritingMode', - 'zIndex', - 'MozZIndex', - 'WebkitZIndex', - 'MSZIndex', - 'OZIndex', - 'fontSize', - 'MozFontSize', - 'WebkitFontSize', - 'MSFontSize', - 'OFontSize', - 'flex', - 'MozFlex', - 'WebkitFlex', - 'MSFlex', - 'OFlex', - 'fr', - 'MozFr', - 'WebkitFr', - 'MSFr', - 'OFr', - 'overflowScrolling', - 'MozOverflowScrolling', - 'WebkitOverflowScrolling', - 'MSOverflowScrolling', - 'OOverflowScrolling' - ]; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }, - _createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - Object.defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _inlineStylePrefixer2 = _interopRequireDefault(__webpack_require__(609)), - _reactStyleProptype2 = _interopRequireDefault(__webpack_require__(613)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var USER_AGENT = - 'undefined' != typeof navigator - ? navigator.userAgent - : 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Safari/537.2', - Pane = (function(_React$Component) { - function Pane(props) { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, Pane); - var _this = (function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - })(this, (Pane.__proto__ || Object.getPrototypeOf(Pane)).call(this, props)); - return (_this.state = { size: _this.props.size }), _this; - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(Pane, _react2.default.Component), - _createClass(Pane, [ - { - key: 'render', - value: function render() { - var _props = this.props, - children = _props.children, - className = _props.className, - prefixer = _props.prefixer, - split = _props.split, - styleProps = _props.style, - size = this.state.size, - classes = ['Pane', split, className], - style = _extends({}, styleProps || {}, { - flex: 1, - position: 'relative', - outline: 'none' - }); - return ( - void 0 !== size && - ('vertical' === split - ? (style.width = size) - : ((style.height = size), (style.display = 'flex')), - (style.flex = 'none')), - _react2.default.createElement( - 'div', - { className: classes.join(' '), style: prefixer.prefix(style) }, - children - ) - ); - } - } - ]), - Pane - ); - })(); - (Pane.propTypes = { - className: _propTypes2.default.string.isRequired, - children: _propTypes2.default.node.isRequired, - prefixer: _propTypes2.default.instanceOf(_inlineStylePrefixer2.default).isRequired, - size: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]), - split: _propTypes2.default.oneOf(['vertical', 'horizontal']), - style: _reactStyleProptype2.default - }), - (Pane.defaultProps = { - prefixer: new _inlineStylePrefixer2.default({ userAgent: USER_AGENT }) - }), - (exports.default = Pane), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.RESIZER_DEFAULT_CLASSNAME = void 0); - var _createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - Object.defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _inlineStylePrefixer2 = _interopRequireDefault(__webpack_require__(609)), - _reactStyleProptype2 = _interopRequireDefault(__webpack_require__(613)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var USER_AGENT = - 'undefined' != typeof navigator - ? navigator.userAgent - : 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Safari/537.2', - RESIZER_DEFAULT_CLASSNAME = (exports.RESIZER_DEFAULT_CLASSNAME = 'Resizer'), - Resizer = (function(_React$Component) { - function Resizer() { - return ( - (function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, Resizer), - (function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - })(this, (Resizer.__proto__ || Object.getPrototypeOf(Resizer)).apply(this, arguments)) - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(Resizer, _react2.default.Component), - _createClass(Resizer, [ - { - key: 'render', - value: function render() { - var _props = this.props, - className = _props.className, - _onClick = _props.onClick, - _onDoubleClick = _props.onDoubleClick, - _onMouseDown = _props.onMouseDown, - _onTouchEnd = _props.onTouchEnd, - _onTouchStart = _props.onTouchStart, - prefixer = _props.prefixer, - resizerClassName = _props.resizerClassName, - split = _props.split, - style = _props.style, - classes = [resizerClassName, split, className]; - return _react2.default.createElement('span', { - className: classes.join(' '), - style: prefixer.prefix(style) || {}, - onMouseDown: function onMouseDown(event) { - return _onMouseDown(event); - }, - onTouchStart: function onTouchStart(event) { - event.preventDefault(), _onTouchStart(event); - }, - onTouchEnd: function onTouchEnd(event) { - event.preventDefault(), _onTouchEnd(event); - }, - onClick: function onClick(event) { - _onClick && (event.preventDefault(), _onClick(event)); - }, - onDoubleClick: function onDoubleClick(event) { - _onDoubleClick && (event.preventDefault(), _onDoubleClick(event)); - } - }); - } - } - ]), - Resizer - ); - })(); - (Resizer.propTypes = { - className: _propTypes2.default.string.isRequired, - onClick: _propTypes2.default.func, - onDoubleClick: _propTypes2.default.func, - onMouseDown: _propTypes2.default.func.isRequired, - onTouchStart: _propTypes2.default.func.isRequired, - onTouchEnd: _propTypes2.default.func.isRequired, - prefixer: _propTypes2.default.instanceOf(_inlineStylePrefixer2.default).isRequired, - split: _propTypes2.default.oneOf(['vertical', 'horizontal']), - style: _reactStyleProptype2.default, - resizerClassName: _propTypes2.default.string.isRequired - }), - (Resizer.defaultProps = { - prefixer: new _inlineStylePrefixer2.default({ userAgent: USER_AGENT }), - resizerClassName: RESIZER_DEFAULT_CLASSNAME - }), - (exports.default = Resizer); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var wrapStyle = { - vertical: function vertical(shift) { - return { - width: 10, - marginLeft: shift - 5, - marginRight: -shift - 5, - position: 'relative' - }; - }, - horizontal: function horizontal(shift) { - return { - height: 10, - marginTop: shift - 5, - marginBottom: -shift - 5, - position: 'relative' - }; - } - }, - spanStyle = { - vertical: function vertical() { - return { - width: 1, - height: 20, - left: 3.5, - top: '50%', - position: 'absolute', - borderLeft: 'solid 1px rgba(0,0,0,0.1)', - borderRight: 'solid 1px rgba(0,0,0,0.1)' - }; - }, - horizontal: function horizontal() { - return { - height: 1, - width: 20, - top: 3.5, - left: '50%', - position: 'absolute', - borderTop: 'solid 1px rgba(0,0,0,0.1)', - borderBottom: 'solid 1px rgba(0,0,0,0.1)' - }; - } - }, - USplit = function USplit(_ref) { - var shift = _ref.shift, - split = _ref.split; - return _react2.default.createElement( - 'div', - { style: wrapStyle[split](shift) }, - _react2.default.createElement('span', { style: spanStyle[split]() }) - ); - }; - (USplit.propTypes = { - shift: _propTypes2.default.number, - split: _propTypes2.default.oneOf(['vertical', 'horizontal']) - }), - (USplit.defaultProps = { shift: 0, split: 'vertical' }), - (exports.default = USplit); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _extends3 = _interopRequireDefault(__webpack_require__(8)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _components = __webpack_require__(181); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var container = { - position: 'absolute', - padding: 5, - bottom: 10, - right: 10, - backgroundColor: 'rgba(255, 255, 255, 0.5)' - }, - dimensionStyle = (0, _extends3.default)({ fontSize: 12 }, _components.baseFonts), - delimeterStyle = (0, _extends3.default)( - { margin: '0px 5px', fontSize: 12 }, - _components.baseFonts - ), - Dimensions = (function(_React$Component) { - function Dimensions(props) { - (0, _classCallCheck3.default)(this, Dimensions); - var _this = (0, _possibleConstructorReturn3.default)( - this, - (Dimensions.__proto__ || (0, _getPrototypeOf2.default)(Dimensions)).call(this, props) - ); - return (_this.state = { isVisible: !1 }), (_this.hideTimeout = null), _this; - } - return ( - (0, _inherits3.default)(Dimensions, _React$Component), - (0, _createClass3.default)(Dimensions, [ - { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(_ref) { - var width = _ref.width, - height = _ref.height; - (width === this.state.width && height === this.state.height) || - this.onChange(width, height); - } - }, - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - clearTimeout(this.hideTimeout); - } - }, - { - key: 'onChange', - value: function onChange(width, height) { - var _this2 = this; - this.setState({ isVisible: !0 }), - (this.hideTimeout = setTimeout(function() { - width === _this2.props.width && - height === _this2.props.height && - _this2.setState({ isVisible: !1 }); - }, 1e3)); - } - }, - { - key: 'render', - value: function render() { - if (!this.state.isVisible) return null; - var _props = this.props, - width = _props.width, - height = _props.height; - return _react2.default.createElement( - 'div', - { style: container }, - _react2.default.createElement('span', { style: dimensionStyle }, width + 'px'), - _react2.default.createElement('span', { style: delimeterStyle }, 'x'), - _react2.default.createElement('span', { style: dimensionStyle }, height + 'px') - ); - } - } - ]), - Dimensions - ); - })(_react2.default.Component); - (Dimensions.propTypes = { - width: _propTypes2.default.number.isRequired, - height: _propTypes2.default.number.isRequired - }), - (exports.default = Dimensions); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - (exports.baseFonts = { - fontFamily: - '-apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Lucida Grande", "Arial", sans-serif', - color: '#444', - WebkitFontSmoothing: 'antialiased' - }), - (exports.monoFonts = { - fontFamily: - '"Operator Mono", "Fira Code Retina", "Fira Code", "FiraCode-Retina", "Andale Mono", "Lucida Console", Consolas, Monaco, monospace', - color: '#444', - WebkitFontSmoothing: 'antialiased' - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _glamorous2 = _interopRequireDefault(__webpack_require__(301)), - _routed_link2 = _interopRequireDefault(__webpack_require__(826)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - exports.default = (0, _glamorous2.default)(_routed_link2.default, { rootEl: 'a' })( - { - display: 'block', - color: '#828282', - textDecoration: 'none', - fontSize: '13px', - lineHeight: '16px', - padding: '1px 5px 4px', - marginLeft: '5px', - position: 'relative', - zIndex: 1 - }, - function(_ref) { - return ( - _ref.active && { - color: 'inherit', - fontWeight: 'bold', - backgroundColor: '#EEE', - zIndex: 0 - } - ); - } - ); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.compose = exports.merge = exports.$ = exports.style = exports.presets = exports.keyframes = exports.fontFace = exports.insertGlobal = exports.insertRule = exports.plugins = exports.styleSheet = void 0), - (exports.speedy = function speedy(bool) { - return styleSheet.speedy(bool); - }), - (exports.simulations = function simulations() { - var bool = !(arguments.length > 0 && void 0 !== arguments[0]) || arguments[0]; - canSimulate = !!bool; - }), - (exports.simulate = function simulate() { - for (var _len = arguments.length, pseudos = Array(_len), _key = 0; _key < _len; _key++) - pseudos[_key] = arguments[_key]; - if (!(pseudos = (0, _clean2.default)(pseudos))) return {}; - if (!canSimulate) - return ( - warned1 || - (console.warn("can't simulate without once calling simulations(true)"), - (warned1 = !0)), - isDev || - isTest || - warned2 || - (console.warn("don't use simulation outside dev"), (warned2 = !0)), - {} - ); - return pseudos.reduce(function(o, p) { - return (o['data-simulate-' + simple(p)] = ''), o; - }, {}); - }), - (exports.cssLabels = function cssLabels(bool) { - hasLabels = !!bool; - }), - (exports.isLikeRule = isLikeRule), - (exports.idFor = idFor), - (exports.css = css), - (exports.rehydrate = function rehydrate(ids) { - (0, _objectAssign2.default)( - inserted, - ids.reduce(function(o, i) { - return (o[i] = !0), o; - }, {}) - ); - }), - (exports.flush = function flush() { - (inserted = styleSheet.inserted = {}), - (registered = styleSheet.registered = {}), - (ruleCache = {}), - styleSheet.flush(), - styleSheet.inject(); - }), - (exports.select = select), - (exports.parent = function parent(selector) { - for ( - var _len4 = arguments.length, styles = Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; - _key4 < _len4; - _key4++ - ) - styles[_key4 - 1] = arguments[_key4]; - return css(_defineProperty({}, selector + ' &', styles)); - }), - (exports.media = function media(query) { - for ( - var _len5 = arguments.length, rules = Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; - _key5 < _len5; - _key5++ - ) - rules[_key5 - 1] = arguments[_key5]; - return css(_defineProperty({}, '@media ' + query, rules)); - }), - (exports.pseudo = pseudo), - (exports.active = function active(x) { - return pseudo(':active', x); - }), - (exports.any = function any(x) { - return pseudo(':any', x); - }), - (exports.checked = function checked(x) { - return pseudo(':checked', x); - }), - (exports.disabled = function disabled(x) { - return pseudo(':disabled', x); - }), - (exports.empty = function empty(x) { - return pseudo(':empty', x); - }), - (exports.enabled = function enabled(x) { - return pseudo(':enabled', x); - }), - (exports._default = function _default(x) { - return pseudo(':default', x); - }), - (exports.first = function first(x) { - return pseudo(':first', x); - }), - (exports.firstChild = function firstChild(x) { - return pseudo(':first-child', x); - }), - (exports.firstOfType = function firstOfType(x) { - return pseudo(':first-of-type', x); - }), - (exports.fullscreen = function fullscreen(x) { - return pseudo(':fullscreen', x); - }), - (exports.focus = function focus(x) { - return pseudo(':focus', x); - }), - (exports.hover = function hover(x) { - return pseudo(':hover', x); - }), - (exports.indeterminate = function indeterminate(x) { - return pseudo(':indeterminate', x); - }), - (exports.inRange = function inRange(x) { - return pseudo(':in-range', x); - }), - (exports.invalid = function invalid(x) { - return pseudo(':invalid', x); - }), - (exports.lastChild = function lastChild(x) { - return pseudo(':last-child', x); - }), - (exports.lastOfType = function lastOfType(x) { - return pseudo(':last-of-type', x); - }), - (exports.left = function left(x) { - return pseudo(':left', x); - }), - (exports.link = function link(x) { - return pseudo(':link', x); - }), - (exports.onlyChild = function onlyChild(x) { - return pseudo(':only-child', x); - }), - (exports.onlyOfType = function onlyOfType(x) { - return pseudo(':only-of-type', x); - }), - (exports.optional = function optional(x) { - return pseudo(':optional', x); - }), - (exports.outOfRange = function outOfRange(x) { - return pseudo(':out-of-range', x); - }), - (exports.readOnly = function readOnly(x) { - return pseudo(':read-only', x); - }), - (exports.readWrite = function readWrite(x) { - return pseudo(':read-write', x); - }), - (exports.required = function required(x) { - return pseudo(':required', x); - }), - (exports.right = function right(x) { - return pseudo(':right', x); - }), - (exports.root = function root(x) { - return pseudo(':root', x); - }), - (exports.scope = function scope(x) { - return pseudo(':scope', x); - }), - (exports.target = function target(x) { - return pseudo(':target', x); - }), - (exports.valid = function valid(x) { - return pseudo(':valid', x); - }), - (exports.visited = function visited(x) { - return pseudo(':visited', x); - }), - (exports.dir = function dir(p, x) { - return pseudo(':dir(' + p + ')', x); - }), - (exports.lang = function lang(p, x) { - return pseudo(':lang(' + p + ')', x); - }), - (exports.not = function not(p, x) { - var selector = p - .split(',') - .map(function(x) { - return x.trim(); - }) - .map(function(x) { - return ':not(' + x + ')'; - }); - if (1 === selector.length) return pseudo(':not(' + p + ')', x); - return select(selector.join(''), x); - }), - (exports.nthChild = function nthChild(p, x) { - return pseudo(':nth-child(' + p + ')', x); - }), - (exports.nthLastChild = function nthLastChild(p, x) { - return pseudo(':nth-last-child(' + p + ')', x); - }), - (exports.nthLastOfType = function nthLastOfType(p, x) { - return pseudo(':nth-last-of-type(' + p + ')', x); - }), - (exports.nthOfType = function nthOfType(p, x) { - return pseudo(':nth-of-type(' + p + ')', x); - }), - (exports.after = function after(x) { - return pseudo('::after', x); - }), - (exports.before = function before(x) { - return pseudo('::before', x); - }), - (exports.firstLetter = function firstLetter(x) { - return pseudo('::first-letter', x); - }), - (exports.firstLine = function firstLine(x) { - return pseudo('::first-line', x); - }), - (exports.selection = function selection(x) { - return pseudo('::selection', x); - }), - (exports.backdrop = function backdrop(x) { - return pseudo('::backdrop', x); - }), - (exports.placeholder = function placeholder(x) { - return css({ '::placeholder': x }); - }), - (exports.cssFor = function cssFor() { - for (var _len7 = arguments.length, rules = Array(_len7), _key7 = 0; _key7 < _len7; _key7++) - rules[_key7] = arguments[_key7]; - return (rules = (0, _clean2.default)(rules)) - ? rules - .map(function(r) { - var style = { label: [] }; - return ( - build(style, { src: r }), - deconstructedStyleToCSS(hashify(style), deconstruct(style)).join('') - ); - }) - .join('') - : ''; - }), - (exports.attribsFor = function attribsFor() { - for (var _len8 = arguments.length, rules = Array(_len8), _key8 = 0; _key8 < _len8; _key8++) - rules[_key8] = arguments[_key8]; - return (rules = (0, _clean2.default)(rules)) - ? rules - .map(function(rule) { - idFor(rule); - var key = Object.keys(rule)[0], - value = rule[key]; - return key + '="' + (value || '') + '"'; - }) - .join(' ') - : ''; - }); - var _objectAssign2 = _interopRequireDefault(__webpack_require__(9)), - _sheet = __webpack_require__(1188), - _CSSPropertyOperations = __webpack_require__(827), - _clean2 = _interopRequireDefault(__webpack_require__(1191)), - _plugins = __webpack_require__(1192), - _hash2 = _interopRequireDefault(__webpack_require__(1194)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function _defineProperty(obj, key, value) { - return ( - key in obj - ? Object.defineProperty(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (obj[key] = value), - obj - ); - } - var styleSheet = (exports.styleSheet = new _sheet.StyleSheet()); - styleSheet.inject(); - var plugins = (exports.plugins = styleSheet.plugins = new _plugins.PluginSet([ - _plugins.prefixes, - _plugins.contentWrap, - _plugins.fallbacks - ])); - (plugins.media = new _plugins.PluginSet()), - (plugins.fontFace = new _plugins.PluginSet()), - (plugins.keyframes = new _plugins.PluginSet([_plugins.prefixes, _plugins.fallbacks])); - var isDev = !1, - isTest = !1, - isBrowser = 'undefined' != typeof window, - canSimulate = isDev, - warned1 = !1, - warned2 = !1; - var hasLabels = isDev; - function simple(str) { - var char = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : ''; - return str.toLowerCase().replace(/[^a-z0-9]/g, char); - } - function hashify(obj) { - var str = JSON.stringify(obj), - toRet = (0, _hash2.default)(str).toString(36); - return obj.label && obj.label.length > 0 && isDev - ? simple(obj.label.join('.'), '-') + '-' + toRet - : toRet; - } - function isLikeRule(rule) { - var keys = Object.keys(rule).filter(function(x) { - return 'toString' !== x; - }); - return 1 === keys.length && !!/data\-css\-([a-zA-Z0-9\-_]+)/.exec(keys[0]); - } - function idFor(rule) { - var keys = Object.keys(rule).filter(function(x) { - return 'toString' !== x; - }); - if (1 !== keys.length) throw new Error('not a rule'); - var match = /data\-css\-([a-zA-Z0-9\-_]+)/.exec(keys[0]); - if (!match) throw new Error('not a rule'); - return match[1]; - } - var selectorTokenizer = /[(),]|"(?:\\.|[^"\n])*"|'(?:\\.|[^'\n])*'|\/\*[\s\S]*?\*\//g; - function splitSelector(selector) { - if (-1 === selector.indexOf(',')) return [selector]; - for (var o, indices = [], res = [], inParen = 0; (o = selectorTokenizer.exec(selector)); ) - switch (o[0]) { - case '(': - inParen++; - break; - case ')': - inParen--; - break; - case ',': - if (inParen) break; - indices.push(o.index); - } - for (o = indices.length; o--; ) - res.unshift(selector.slice(indices[o] + 1)), (selector = selector.slice(0, indices[o])); - return res.unshift(selector), res; - } - function selector(id, path) { - if (!id) return path.replace(/\&/g, ''); - if (!path) return '.css-' + id + ',[data-css-' + id + ']'; - var x = splitSelector(path) - .map(function(x) { - return x.indexOf('&') >= 0 - ? [x.replace(/\&/gm, '.css-' + id), x.replace(/\&/gm, '[data-css-' + id + ']')].join( - ',' - ) - : '.css-' + id + x + ',[data-css-' + id + ']' + x; - }) - .join(','); - return ( - canSimulate && - /^\&\:/.exec(path) && - !/\s/.exec(path) && - (x += - ',.css-' + - id + - '[data-simulate-' + - simple(path) + - '],[data-css-' + - id + - '][data-simulate-' + - simple(path) + - ']'), - x - ); - } - function toCSS(_ref) { - var selector = _ref.selector, - style = _ref.style, - result = plugins.transform({ selector: selector, style: style }); - return ( - result.selector + - '{' + - (0, _CSSPropertyOperations.createMarkupForStyles)(result.style) + - '}' - ); - } - function deconstruct(style) { - var plain = void 0, - selects = void 0, - medias = void 0, - supports = void 0; - return ( - Object.keys(style).forEach(function(key) { - key.indexOf('&') >= 0 - ? ((selects = selects || {})[key] = style[key]) - : 0 === key.indexOf('@media') - ? ((medias = medias || {})[key] = deconstruct(style[key])) - : 0 === key.indexOf('@supports') - ? ((supports = supports || {})[key] = deconstruct(style[key])) - : 'label' === key - ? style.label.length > 0 && - ((plain = plain || {}).label = hasLabels ? style.label.join('.') : '') - : ((plain = plain || {})[key] = style[key]); - }), - { plain: plain, selects: selects, medias: medias, supports: supports } - ); - } - function deconstructedStyleToCSS(id, style) { - var css = [], - plain = style.plain, - selects = style.selects, - medias = style.medias, - supports = style.supports; - return ( - plain && css.push(toCSS({ style: plain, selector: selector(id) })), - selects && - Object.keys(selects).forEach(function(key) { - return css.push(toCSS({ style: selects[key], selector: selector(id, key) })); - }), - medias && - Object.keys(medias).forEach(function(key) { - return css.push(key + '{' + deconstructedStyleToCSS(id, medias[key]).join('') + '}'); - }), - supports && - Object.keys(supports).forEach(function(key) { - return css.push(key + '{' + deconstructedStyleToCSS(id, supports[key]).join('') + '}'); - }), - css - ); - } - var inserted = (styleSheet.inserted = {}); - var registered = (styleSheet.registered = {}); - function register(spec) { - registered[spec.id] || (registered[spec.id] = spec); - } - var ruleCache = {}; - function toRule(spec) { - if ( - (register(spec), - (function insert(spec) { - if (!inserted[spec.id]) { - inserted[spec.id] = !0; - var deconstructed = deconstruct(spec.style), - rules = deconstructedStyleToCSS(spec.id, deconstructed); - (inserted[spec.id] = !!isBrowser || rules), - rules.forEach(function(cssRule) { - return styleSheet.insert(cssRule); - }); - } - })(spec), - ruleCache[spec.id]) - ) - return ruleCache[spec.id]; - var ret = _defineProperty({}, 'data-css-' + spec.id, (hasLabels && spec.label) || ''); - return ( - Object.defineProperty(ret, 'toString', { - enumerable: !1, - value: function value() { - return 'css-' + spec.id; - } - }), - (ruleCache[spec.id] = ret), - ret - ); - } - function joinSelectors(a, b) { - var as = splitSelector(a).map(function(a) { - return a.indexOf('&') >= 0 ? a : '&' + a; - }); - return splitSelector(b) - .map(function(b) { - return b.indexOf('&') >= 0 ? b : '&' + b; - }) - .reduce(function(arr, b) { - return arr.concat( - as.map(function(a) { - return b.replace(/\&/g, a); - }) - ); - }, []) - .join(','); - } - var prefixedPseudoSelectors = { - '::placeholder': [ - '::-webkit-input-placeholder', - '::-moz-placeholder', - '::-ms-input-placeholder' - ], - ':fullscreen': [':-webkit-full-screen', ':-moz-full-screen', ':-ms-fullscreen'] - }; - function build(dest, _ref2) { - var _ref2$selector = _ref2.selector, - selector = void 0 === _ref2$selector ? '' : _ref2$selector, - _ref2$mq = _ref2.mq, - mq = void 0 === _ref2$mq ? '' : _ref2$mq, - _ref2$supp = _ref2.supp, - supp = void 0 === _ref2$supp ? '' : _ref2$supp, - _ref2$src = _ref2.src, - src = void 0 === _ref2$src ? {} : _ref2$src; - Array.isArray(src) || (src = [src]), - (src = (function flatten(inArr) { - for (var arr = [], i = 0; i < inArr.length; i++) - arr = Array.isArray(inArr[i]) ? arr.concat(flatten(inArr[i])) : arr.concat(inArr[i]); - return arr; - })(src)).forEach(function(_src) { - if (isLikeRule(_src)) { - var reg = (function _getRegistered(rule) { - if (isLikeRule(rule)) { - var ret = registered[idFor(rule)]; - if (null == ret) - throw new Error( - '[glamor] an unexpected rule cache miss occurred. This is probably a sign of multiple glamor instances in your app. See https://github.com/threepointone/glamor/issues/79' - ); - return ret; - } - return rule; - })(_src); - if ('css' !== reg.type) throw new Error('cannot merge this rule'); - _src = reg.style; - } - (_src = (0, _clean2.default)(_src)) && - _src.composes && - build(dest, { selector: selector, mq: mq, supp: supp, src: _src.composes }), - Object.keys(_src || {}).forEach(function(key) { - if ( - (function isSelector(key) { - for ( - var possibles = [':', '.', '[', '>', ' '], - found = !1, - ch = key.charAt(0), - i = 0; - i < possibles.length; - i++ - ) - if (ch === possibles[i]) { - found = !0; - break; - } - return found || key.indexOf('&') >= 0; - })(key) - ) - prefixedPseudoSelectors[key] && - prefixedPseudoSelectors[key].forEach(function(p) { - return build(dest, { - selector: joinSelectors(selector, p), - mq: mq, - supp: supp, - src: _src[key] - }); - }), - build(dest, { - selector: joinSelectors(selector, key), - mq: mq, - supp: supp, - src: _src[key] - }); - else if ( - (function isMediaQuery(key) { - return 0 === key.indexOf('@media'); - })(key) - ) - build(dest, { - selector: selector, - mq: (function joinMediaQueries(a, b) { - return a ? '@media ' + a.substring(6) + ' and ' + b.substring(6) : b; - })(mq, key), - supp: supp, - src: _src[key] - }); - else if ( - (function isSupports(key) { - return 0 === key.indexOf('@supports'); - })(key) - ) - build(dest, { - selector: selector, - mq: mq, - supp: (function joinSupports(a, b) { - return a ? '@supports ' + a.substring(9) + ' and ' + b.substring(9) : b; - })(supp, key), - src: _src[key] - }); - else if ('composes' === key); - else { - var _dest = dest; - supp && ((_dest[supp] = _dest[supp] || {}), (_dest = _dest[supp])), - mq && ((_dest[mq] = _dest[mq] || {}), (_dest = _dest[mq])), - selector && - ((_dest[selector] = _dest[selector] || {}), (_dest = _dest[selector])), - 'label' === key - ? hasLabels && (dest.label = dest.label.concat(_src.label)) - : (_dest[key] = _src[key]); - } - }); - }); - } - function _css(rules) { - var style = { label: [] }; - return ( - build(style, { src: rules }), - toRule({ - id: hashify(style), - style: style, - label: hasLabels ? style.label.join('.') : '', - type: 'css' - }) - ); - } - var nullrule = {}; - Object.defineProperty(nullrule, 'toString', { - enumerable: !1, - value: function value() { - return 'css-nil'; - } - }); - var inputCaches = - 'undefined' != typeof WeakMap - ? [nullrule, new WeakMap(), new WeakMap(), new WeakMap()] - : [nullrule], - warnedWeakMapError = !1; - var cachedCss = - 'undefined' != typeof WeakMap - ? (function multiIndexCache(fn) { - return function(args) { - if (inputCaches[args.length]) { - for (var coi = inputCaches[args.length], ctr = 0; ctr < args.length - 1; ) - coi.has(args[ctr]) || coi.set(args[ctr], new WeakMap()), - (coi = coi.get(args[ctr])), - ctr++; - if (coi.has(args[args.length - 1])) { - var ret = coi.get(args[ctr]); - if (registered[ret.toString().substring(4)]) return ret; - } - } - var value = fn(args); - if (inputCaches[args.length]) { - for (var _ctr = 0, _coi = inputCaches[args.length]; _ctr < args.length - 1; ) - (_coi = _coi.get(args[_ctr])), _ctr++; - try { - _coi.set(args[_ctr], value); - } catch (err) { - var _console; - isDev && - !warnedWeakMapError && - ((warnedWeakMapError = !0), - (_console = console).warn.apply( - _console, - ['failed setting the WeakMap cache for args:'].concat( - (function _toConsumableArray(arr) { - if (Array.isArray(arr)) { - for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) - arr2[i] = arr[i]; - return arr2; - } - return Array.from(arr); - })(args) - ) - ), - console.warn('this should NOT happen, please file a bug on the github repo.')); - } - } - return value; - }; - })(_css) - : _css; - function css() { - for (var _len2 = arguments.length, rules = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) - rules[_key2] = arguments[_key2]; - if (rules[0] && rules[0].length && rules[0].raw) - throw new Error('you forgot to include glamor/babel in your babel plugins.'); - return (rules = (0, _clean2.default)(rules)) ? cachedCss(rules) : nullrule; - } - css.insert = function(css) { - var spec = { id: hashify(css), css: css, type: 'raw' }; - register(spec), - inserted[spec.id] || - (styleSheet.insert(spec.css), (inserted[spec.id] = !!isBrowser || [spec.css])); - }; - exports.insertRule = css.insert; - css.global = function(selector, style) { - if ((style = (0, _clean2.default)(style))) - return css.insert(toCSS({ selector: selector, style: style })); - }; - exports.insertGlobal = css.global; - (css.keyframes = function(name, kfs) { - kfs || ((kfs = name), (name = 'animation')); - var spec = { - id: hashify({ name: name, kfs: (kfs = (0, _clean2.default)(kfs) || {}) }), - type: 'keyframes', - name: name, - keyframes: kfs - }; - return ( - register(spec), - (function insertKeyframe(spec) { - if (!inserted[spec.id]) { - var inner = Object.keys(spec.keyframes) - .map(function(kf) { - var result = plugins.keyframes.transform({ - id: spec.id, - name: kf, - style: spec.keyframes[kf] - }); - return ( - result.name + - '{' + - (0, _CSSPropertyOperations.createMarkupForStyles)(result.style) + - '}' - ); - }) - .join(''), - rules = ['-webkit-', '-moz-', '-o-', ''].map(function(prefix) { - return '@' + prefix + 'keyframes ' + spec.name + '_' + spec.id + '{' + inner + '}'; - }); - rules.forEach(function(rule) { - return styleSheet.insert(rule); - }), - (inserted[spec.id] = !!isBrowser || rules); - } - })(spec), - name + '_' + spec.id - ); - }), - (css.fontFace = function(font) { - var spec = { - id: hashify((font = (0, _clean2.default)(font))), - type: 'font-face', - font: font - }; - return ( - register(spec), - (function insertFontFace(spec) { - if (!inserted[spec.id]) { - var rule = - '@font-face{' + (0, _CSSPropertyOperations.createMarkupForStyles)(spec.font) + '}'; - styleSheet.insert(rule), (inserted[spec.id] = !!isBrowser || [rule]); - } - })(spec), - font.fontFamily - ); - }); - (exports.fontFace = css.fontFace), (exports.keyframes = css.keyframes); - exports.presets = { - mobile: '(min-width: 400px)', - Mobile: '@media (min-width: 400px)', - phablet: '(min-width: 550px)', - Phablet: '@media (min-width: 550px)', - tablet: '(min-width: 750px)', - Tablet: '@media (min-width: 750px)', - desktop: '(min-width: 1000px)', - Desktop: '@media (min-width: 1000px)', - hd: '(min-width: 1200px)', - Hd: '@media (min-width: 1200px)' - }; - var style = (exports.style = css); - function select(selector) { - for ( - var _len3 = arguments.length, styles = Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; - _key3 < _len3; - _key3++ - ) - styles[_key3 - 1] = arguments[_key3]; - return selector ? css(_defineProperty({}, selector, styles)) : style(styles); - } - exports.$ = select; - (exports.merge = css), (exports.compose = css); - function pseudo(selector) { - for ( - var _len6 = arguments.length, styles = Array(_len6 > 1 ? _len6 - 1 : 0), _key6 = 1; - _key6 < _len6; - _key6++ - ) - styles[_key6 - 1] = arguments[_key6]; - return css(_defineProperty({}, selector, styles)); - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.StyleSheet = StyleSheet); - var _objectAssign2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(9)); - function last(arr) { - return arr[arr.length - 1]; - } - function sheetForTag(tag) { - if (tag.sheet) return tag.sheet; - for (var i = 0; i < document.styleSheets.length; i++) - if (document.styleSheets[i].ownerNode === tag) return document.styleSheets[i]; - } - var isBrowser = 'undefined' != typeof window, - isDev = !1, - isTest = !1, - oldIE = (function() { - if (isBrowser) { - var div = document.createElement('div'); - return ( - (div.innerHTML = '\x3c!--[if lt IE 10]> 0 && void 0 !== arguments[0] ? arguments[0] : {}, - _ref$speedy = _ref.speedy, - speedy = void 0 === _ref$speedy ? !isDev && !isTest : _ref$speedy, - _ref$maxLength = _ref.maxLength, - maxLength = void 0 === _ref$maxLength ? (isBrowser && oldIE ? 4e3 : 65e3) : _ref$maxLength; - (this.isSpeedy = speedy), - (this.sheet = void 0), - (this.tags = []), - (this.maxLength = maxLength), - (this.ctr = 0); - } - (0, _objectAssign2.default)(StyleSheet.prototype, { - getSheet: function getSheet() { - return sheetForTag(last(this.tags)); - }, - inject: function inject() { - var _this = this; - if (this.injected) throw new Error('already injected stylesheet!'); - isBrowser - ? (this.tags[0] = makeStyleTag()) - : (this.sheet = { - cssRules: [], - insertRule: function insertRule(rule) { - _this.sheet.cssRules.push({ cssText: rule }); - } - }), - (this.injected = !0); - }, - speedy: function speedy(bool) { - if (0 !== this.ctr) - throw new Error( - 'cannot change speedy mode after inserting any rule to sheet. Either call speedy(' + - bool + - ') earlier in your app, or call flush() before speedy(' + - bool + - ')' - ); - this.isSpeedy = !!bool; - }, - _insert: function _insert(rule) { - try { - var sheet = this.getSheet(); - sheet.insertRule(rule, -1 !== rule.indexOf('@import') ? 0 : sheet.cssRules.length); - } catch (e) { - isDev && console.warn('whoops, illegal rule inserted', rule); - } - }, - insert: function insert(rule) { - if (isBrowser) - if (this.isSpeedy && this.getSheet().insertRule) this._insert(rule); - else if (-1 !== rule.indexOf('@import')) { - var tag = last(this.tags); - tag.insertBefore(document.createTextNode(rule), tag.firstChild); - } else last(this.tags).appendChild(document.createTextNode(rule)); - else - this.sheet.insertRule( - rule, - -1 !== rule.indexOf('@import') ? 0 : this.sheet.cssRules.length - ); - return ( - this.ctr++, - isBrowser && this.ctr % this.maxLength == 0 && this.tags.push(makeStyleTag()), - this.ctr - 1 - ); - }, - delete: function _delete(index) { - return this.replace(index, ''); - }, - flush: function flush() { - isBrowser - ? (this.tags.forEach(function(tag) { - return tag.parentNode.removeChild(tag); - }), - (this.tags = []), - (this.sheet = null), - (this.ctr = 0)) - : (this.sheet.cssRules = []), - (this.injected = !1); - }, - rules: function rules() { - if (!isBrowser) return this.sheet.cssRules; - var arr = []; - return ( - this.tags.forEach(function(tag) { - return arr.splice.apply( - arr, - [arr.length, 0].concat( - (function _toConsumableArray(arr) { - if (Array.isArray(arr)) { - for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; - return arr2; - } - return Array.from(arr); - })(Array.from(sheetForTag(tag).cssRules)) - ) - ); - }), - arr - ); - } - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _CSSProperty2 = _interopRequireDefault(__webpack_require__(1190)); - _interopRequireDefault(__webpack_require__(6)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var isUnitlessNumber = _CSSProperty2.default.isUnitlessNumber; - exports.default = function dangerousStyleValue(name, value, component) { - return null == value || 'boolean' == typeof value || '' === value - ? '' - : isNaN(value) || - 0 === value || - (isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]) - ? '' + value - : ('string' == typeof value && (value = value.trim()), value + 'px'); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var isUnitlessNumber = { - animationIterationCount: !0, - borderImageOutset: !0, - borderImageSlice: !0, - borderImageWidth: !0, - boxFlex: !0, - boxFlexGroup: !0, - boxOrdinalGroup: !0, - columnCount: !0, - flex: !0, - flexGrow: !0, - flexPositive: !0, - flexShrink: !0, - flexNegative: !0, - flexOrder: !0, - gridRow: !0, - gridRowStart: !0, - gridRowEnd: !0, - gridColumn: !0, - gridColumnStart: !0, - gridColumnEnd: !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 - }; - var prefixes = ['Webkit', 'ms', 'Moz', 'O']; - Object.keys(isUnitlessNumber).forEach(function(prop) { - prefixes.forEach(function(prefix) { - isUnitlessNumber[ - (function prefixKey(prefix, key) { - return prefix + key.charAt(0).toUpperCase() + key.substring(1); - })(prefix, prop) - ] = - isUnitlessNumber[prop]; - }); - }); - var CSSProperty = { - isUnitlessNumber: isUnitlessNumber, - shorthandPropertyExpansions: { - background: { - backgroundAttachment: !0, - backgroundColor: !0, - backgroundImage: !0, - backgroundPositionX: !0, - backgroundPositionY: !0, - backgroundRepeat: !0 - }, - backgroundPosition: { backgroundPositionX: !0, backgroundPositionY: !0 }, - border: { borderWidth: !0, borderStyle: !0, borderColor: !0 }, - borderBottom: { borderBottomWidth: !0, borderBottomStyle: !0, borderBottomColor: !0 }, - borderLeft: { borderLeftWidth: !0, borderLeftStyle: !0, borderLeftColor: !0 }, - borderRight: { borderRightWidth: !0, borderRightStyle: !0, borderRightColor: !0 }, - borderTop: { borderTopWidth: !0, borderTopStyle: !0, borderTopColor: !0 }, - font: { - fontStyle: !0, - fontVariant: !0, - fontWeight: !0, - fontSize: !0, - lineHeight: !0, - fontFamily: !0 - }, - outline: { outlineWidth: !0, outlineStyle: !0, outlineColor: !0 } - } - }; - exports.default = CSSProperty; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _typeof = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(obj) { - return typeof obj; - } - : function(obj) { - return obj && - 'function' == typeof Symbol && - obj.constructor === Symbol && - obj !== Symbol.prototype - ? 'symbol' - : typeof obj; - }; - function cleanObject(object) { - if ( - (function isFalsy(value) { - return ( - null === value || - void 0 === value || - !1 === value || - ('object' === (void 0 === value ? 'undefined' : _typeof(value)) && - 0 === Object.keys(value).length) - ); - })(object) - ) - return null; - if ('object' !== (void 0 === object ? 'undefined' : _typeof(object))) return object; - for (var acc = {}, keys = Object.keys(object), hasFalsy = !1, i = 0; i < keys.length; i++) { - var value = object[keys[i]], - filteredValue = clean(value); - (null !== filteredValue && filteredValue === value) || (hasFalsy = !0), - null !== filteredValue && (acc[keys[i]] = filteredValue); - } - return 0 === Object.keys(acc).length ? null : hasFalsy ? acc : object; - } - function clean(input) { - return Array.isArray(input) - ? (function cleanArray(rules) { - var hasFalsy = !1, - filtered = []; - return ( - rules.forEach(function(rule) { - var filteredRule = clean(rule); - (null !== filteredRule && filteredRule === rule) || (hasFalsy = !0), - null !== filteredRule && filtered.push(filteredRule); - }), - 0 == filtered.length ? null : hasFalsy ? filtered : rules - ); - })(input) - : cleanObject(input); - } - exports.default = clean; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }; - (exports.PluginSet = PluginSet), - (exports.fallbacks = function fallbacks(node) { - if ( - Object.keys(node.style) - .map(function(x) { - return Array.isArray(node.style[x]); - }) - .indexOf(!0) >= 0 - ) { - var style = node.style, - flattened = Object.keys(style).reduce(function(o, key) { - return ( - (o[key] = Array.isArray(style[key]) - ? style[key].join('; ' + (0, _CSSPropertyOperations.processStyleName)(key) + ': ') - : style[key]), - o - ); - }, {}); - return (0, _objectAssign2.default)({}, node, { style: flattened }); - } - return node; - }), - (exports.contentWrap = function contentWrap(node) { - if (node.style.content) { - var cont = node.style.content; - return contentValues.indexOf(cont) >= 0 - ? node - : /^(attr|calc|counters?|url)\(/.test(cont) - ? node - : cont.charAt(0) !== cont.charAt(cont.length - 1) || - ('"' !== cont.charAt(0) && "'" !== cont.charAt(0)) - ? _extends({}, node, { - style: _extends({}, node.style, { content: '"' + cont + '"' }) - }) - : node; - } - return node; - }), - (exports.prefixes = function prefixes(node) { - return (0, _objectAssign2.default)({}, node, { - style: (0, _prefixer2.default)(_extends({}, node.style)) - }); - }); - var _objectAssign2 = _interopRequireDefault(__webpack_require__(9)), - _CSSPropertyOperations = __webpack_require__(827), - _prefixer2 = _interopRequireDefault(__webpack_require__(1193)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function PluginSet(initial) { - this.fns = initial || []; - } - (0, _objectAssign2.default)(PluginSet.prototype, { - add: function add() { - for ( - var _this = this, _len = arguments.length, fns = Array(_len), _key = 0; - _key < _len; - _key++ - ) - fns[_key] = arguments[_key]; - fns.forEach(function(fn) { - _this.fns.indexOf(fn) >= 0 || (_this.fns = [fn].concat(_this.fns)); - }); - }, - remove: function remove(fn) { - this.fns = this.fns.filter(function(x) { - return x !== fn; - }); - }, - clear: function clear() { - this.fns = []; - }, - transform: function transform(o) { - return this.fns.reduce(function(o, fn) { - return fn(o); - }, o); - } - }); - var contentValues = [ - 'normal', - 'none', - 'counter', - 'open-quote', - 'close-quote', - 'no-open-quote', - 'no-close-quote', - 'initial', - 'inherit' - ]; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function prefixer(style) { - for (var property in style) { - var value = style[property], - processedValue = (0, _prefixValue2.default)(plugins, property, value, style, prefixMap); - processedValue && (style[property] = processedValue), - (0, _prefixProperty2.default)(prefixMap, property, style); - } - return style; - }); - var _staticData2 = _interopRequireDefault(__webpack_require__(815)), - _prefixProperty2 = _interopRequireDefault(__webpack_require__(814)), - _prefixValue2 = _interopRequireDefault(__webpack_require__(611)), - _cursor2 = _interopRequireDefault(__webpack_require__(816)), - _crossFade2 = _interopRequireDefault(__webpack_require__(817)), - _filter2 = _interopRequireDefault(__webpack_require__(818)), - _flex2 = _interopRequireDefault(__webpack_require__(819)), - _flexboxOld2 = _interopRequireDefault(__webpack_require__(820)), - _gradient2 = _interopRequireDefault(__webpack_require__(821)), - _imageSet2 = _interopRequireDefault(__webpack_require__(822)), - _position2 = _interopRequireDefault(__webpack_require__(823)), - _sizing2 = _interopRequireDefault(__webpack_require__(824)), - _transition2 = _interopRequireDefault(__webpack_require__(825)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var plugins = [ - _crossFade2.default, - _cursor2.default, - _filter2.default, - _flexboxOld2.default, - _gradient2.default, - _imageSet2.default, - _position2.default, - _sizing2.default, - _transition2.default, - _flex2.default - ], - prefixMap = _staticData2.default.prefixMap; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - function UInt32(str, pos) { - return ( - str.charCodeAt(pos++) + - (str.charCodeAt(pos++) << 8) + - (str.charCodeAt(pos++) << 16) + - (str.charCodeAt(pos) << 24) - ); - } - function UInt16(str, pos) { - return str.charCodeAt(pos++) + (str.charCodeAt(pos++) << 8); - } - function Umul32(n, m) { - return ((65535 & (n |= 0)) * (m |= 0) + ((((n >>> 16) * m) & 65535) << 16)) | 0; - } - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function doHash(str, seed) { - var m = 1540483477, - h = seed ^ str.length, - length = str.length, - currentIndex = 0; - for (; length >= 4; ) { - var k = UInt32(str, currentIndex); - (k = Umul32(k, m)), - (k = Umul32((k ^= k >>> 24), m)), - (h = Umul32(h, m)), - (h ^= k), - (currentIndex += 4), - (length -= 4); - } - switch (length) { - case 3: - (h ^= UInt16(str, currentIndex)), - (h = Umul32((h ^= str.charCodeAt(currentIndex + 2) << 16), m)); - break; - case 2: - h = Umul32((h ^= UInt16(str, currentIndex)), m); - break; - case 1: - h = Umul32((h ^= str.charCodeAt(currentIndex)), m); - } - return (h = Umul32((h ^= h >>> 13), m)), (h ^= h >>> 15) >>> 0; - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _glamorous2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(301)); - exports.default = _glamorous2.default.button( - { - border: '1px solid rgba(0, 0, 0, 0)', - font: 'inherit', - background: 'none', - boxShadow: 'none', - padding: 0, - ':hover': { backgroundColor: 'rgba(0, 0, 0, 0.05)', border: '1px solid #ccc' } - }, - function(props) { - var styles = []; - return ( - props.highlight && - styles.push({ backgroundColor: 'rgba(0, 0, 0, 0.05)', border: '1px solid #ccc' }), - styles - ); - } - ); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _glamorous2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(301)); - exports.default = _glamorous2.default.table({ borderCollapse: 'collapse' }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.th = exports.td = void 0); - var _glamorous2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(301)); - var dynamicStyles = function dynamicStyles(props) { - var styles = []; - return ( - props.bordered && styles.push({ border: '1px solid #ccc' }), - props.code && - styles.push({ - whiteSpace: 'nowrap', - fontFamily: 'Monaco, Consolas, "Courier New", monospace' - }), - styles - ); - }, - styles = { padding: '2px 6px' }; - (exports.td = _glamorous2.default.td(styles, dynamicStyles)), - (exports.th = _glamorous2.default.th(styles, dynamicStyles)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.mapper = void 0); - var _stories_panel2 = _interopRequireDefault(__webpack_require__(1199)), - filters = (function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) return obj; - var newObj = {}; - if (null != obj) - for (var key in obj) - Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); - return (newObj.default = obj), newObj; - })(__webpack_require__(1311)), - _gen_podda_loader2 = _interopRequireDefault(__webpack_require__(187)), - _compose2 = _interopRequireDefault(__webpack_require__(182)), - _hierarchy = __webpack_require__(1321); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var mapper = (exports.mapper = function mapper(state, props, _ref) { - var actionMap = (0, _ref.actions)(), - stories = state.stories, - selectedKind = state.selectedKind, - selectedStory = state.selectedStory, - uiOptions = state.uiOptions, - storyFilter = state.storyFilter, - name = uiOptions.name, - url = uiOptions.url, - sortStoriesByKind = uiOptions.sortStoriesByKind, - hierarchySeparator = uiOptions.hierarchySeparator, - sidebarAnimations = uiOptions.sidebarAnimations, - preparedStories = (0, _hierarchy.prepareStoriesForHierarchy)(stories, hierarchySeparator), - filteredStories = filters.storyFilter( - preparedStories, - storyFilter, - selectedKind, - selectedStory, - sortStoriesByKind - ); - return { - storiesHierarchy: (0, _hierarchy.createHierarchy)(filteredStories), - selectedKind: selectedKind, - selectedStory: selectedStory, - selectedHierarchy: (0, _hierarchy.resolveStoryHierarchy)(selectedKind, hierarchySeparator), - onSelectStory: actionMap.api.selectStory, - storyFilter: storyFilter, - onStoryFilter: actionMap.ui.setStoryFilter, - openShortcutsHelp: actionMap.ui.toggleShortcutsHelp, - sidebarAnimations: sidebarAnimations, - name: name, - url: url - }; - }); - exports.default = (0, _compose2.default)((0, _gen_podda_loader2.default)(mapper))( - _stories_panel2.default - ); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _lodash2 = _interopRequireDefault(__webpack_require__(270)), - _header2 = _interopRequireDefault(__webpack_require__(1200)), - _stories_tree2 = _interopRequireDefault(__webpack_require__(1201)), - _text_filter2 = _interopRequireDefault(__webpack_require__(1310)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var scrollStyle = { height: 'calc(100vh - 105px)', marginTop: 10, overflow: 'auto' }, - mainStyle = { padding: '10px 0 10px 10px' }, - storyProps = [ - 'storiesHierarchy', - 'selectedKind', - 'selectedHierarchy', - 'selectedStory', - 'onSelectStory', - 'storyFilter', - 'sidebarAnimations' - ]; - var StoriesPanel = (function(_Component) { - function StoriesPanel() { - return ( - (0, _classCallCheck3.default)(this, StoriesPanel), - (0, _possibleConstructorReturn3.default)( - this, - (StoriesPanel.__proto__ || (0, _getPrototypeOf2.default)(StoriesPanel)).apply( - this, - arguments - ) - ) - ); - } - return ( - (0, _inherits3.default)(StoriesPanel, _Component), - (0, _createClass3.default)(StoriesPanel, [ - { - key: 'render', - value: function render() { - var _props = this.props, - name = _props.name, - onStoryFilter = _props.onStoryFilter, - openShortcutsHelp = _props.openShortcutsHelp, - storiesHierarchy = _props.storiesHierarchy, - storyFilter = _props.storyFilter, - url = _props.url; - return _react2.default.createElement( - 'div', - { style: mainStyle }, - _react2.default.createElement(_header2.default, { - name: name, - url: url, - openShortcutsHelp: openShortcutsHelp - }), - _react2.default.createElement(_text_filter2.default, { - text: storyFilter, - onClear: function onClear() { - return onStoryFilter(''); - }, - onChange: function onChange(text) { - return onStoryFilter(text); - } - }), - _react2.default.createElement( - 'div', - { style: scrollStyle }, - (function hierarchyContainsStories(storiesHierarchy) { - return storiesHierarchy && storiesHierarchy.map.size; - })(storiesHierarchy) - ? _react2.default.createElement( - _stories_tree2.default, - (0, _lodash2.default)(this.props, storyProps) - ) - : null - ) - ); - } - } - ]), - StoriesPanel - ); - })(_react.Component); - (StoriesPanel.defaultProps = { - storiesHierarchy: null, - storyFilter: null, - onStoryFilter: function onStoryFilter() {}, - openShortcutsHelp: null, - name: '', - url: '' - }), - (StoriesPanel.propTypes = { - storiesHierarchy: _propTypes2.default.shape({ - namespaces: _propTypes2.default.arrayOf(_propTypes2.default.string), - name: _propTypes2.default.string, - map: _propTypes2.default.object - }), - storyFilter: _propTypes2.default.string, - onStoryFilter: _propTypes2.default.func, - openShortcutsHelp: _propTypes2.default.func, - name: _propTypes2.default.string, - url: _propTypes2.default.string - }), - (exports.default = StoriesPanel); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _components = __webpack_require__(181); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var wrapperStyle = { background: '#F7F7F7', marginBottom: 10, display: 'flex' }, - headingStyle = (0, _extends3.default)({}, _components.baseFonts, { - textTransform: 'uppercase', - letterSpacing: '1.5px', - fontSize: '12px', - fontWeight: 'bolder', - color: '#828282', - textAlign: 'center', - cursor: 'pointer', - padding: '5px', - margin: 0, - overflow: 'hidden' - }), - shortcutIconStyle = { - textTransform: 'uppercase', - fontSize: 12, - fontWeight: 'bolder', - color: 'rgb(130, 130, 130)', - border: '1px solid rgb(193, 193, 193)', - textAlign: 'center', - borderRadius: 2, - cursor: 'pointer', - display: 'inlineBlock', - padding: 0, - margin: '0 0 0 5px', - backgroundColor: 'inherit', - outline: 0, - width: 30, - flexShrink: 0 - }, - linkStyle = { - textDecoration: 'none', - flexGrow: 1, - display: 'flex', - alignItems: 'center', - justifyContent: 'center', - border: '1px solid rgb(193, 193, 193)', - borderRadius: 2 - }, - Header = function Header(_ref) { - var openShortcutsHelp = _ref.openShortcutsHelp, - name = _ref.name, - url = _ref.url; - return _react2.default.createElement( - 'div', - { style: wrapperStyle }, - _react2.default.createElement( - 'a', - { style: linkStyle, href: url, target: '_blank', rel: 'noopener noreferrer' }, - _react2.default.createElement('h3', { style: headingStyle }, name) - ), - _react2.default.createElement( - 'button', - { style: shortcutIconStyle, onClick: openShortcutsHelp }, - '⌘' - ) - ); - }; - (Header.defaultProps = { openShortcutsHelp: null, name: '', url: '' }), - (Header.propTypes = { - openShortcutsHelp: _propTypes2.default.func, - name: _propTypes2.default.string, - url: _propTypes2.default.string - }), - (exports.default = Header); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _defineProperty3 = _interopRequireDefault(__webpack_require__(31)), - _extends6 = _interopRequireDefault(__webpack_require__(8)), - _toConsumableArray3 = _interopRequireDefault(__webpack_require__(45)), - _reactTreebeard = __webpack_require__(828), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _deepEqual2 = _interopRequireDefault(__webpack_require__(146)), - _tree_node_type2 = _interopRequireDefault(__webpack_require__(857)), - _tree_decorators2 = _interopRequireDefault(__webpack_require__(1303)), - _tree_style2 = _interopRequireDefault(__webpack_require__(1309)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var namespaceSeparator = '@'; - function createNodeKey(_ref) { - var namespaces = _ref.namespaces, - type = _ref.type; - return [] - .concat((0, _toConsumableArray3.default)(namespaces), [[type]]) - .join(namespaceSeparator); - } - function getSelectedNodes(selectedHierarchy) { - return selectedHierarchy - .reduce(function(nodes, namespace) { - var node = {}; - if (((node.type = _tree_node_type2.default.NAMESPACE), nodes.length)) { - var lastNode = nodes[nodes.length - 1]; - node.namespaces = [].concat((0, _toConsumableArray3.default)(lastNode.namespaces), [ - [namespace] - ]); - } else node.namespaces = [namespace]; - return nodes.push(node), nodes; - }, []) - .reduce(function(nodesMap, node) { - return (0, - _extends6.default)({}, nodesMap, (0, _defineProperty3.default)({}, createNodeKey(node), !0)); - }, {}); - } - var Stories = (function(_React$Component) { - function Stories() { - var _ref2; - (0, _classCallCheck3.default)(this, Stories); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) - args[_key] = arguments[_key]; - var _this = (0, _possibleConstructorReturn3.default)( - this, - (_ref2 = Stories.__proto__ || (0, _getPrototypeOf2.default)(Stories)).call.apply( - _ref2, - [this].concat(args) - ) - ); - _this.onToggle = _this.onToggle.bind(_this); - var selectedHierarchy = _this.props.selectedHierarchy; - return ( - (_this.state = { - overriddenFilteredNodes: {}, - nodes: getSelectedNodes(selectedHierarchy) - }), - _this - ); - } - return ( - (0, _inherits3.default)(Stories, _React$Component), - (0, _createClass3.default)(Stories, [ - { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps) { - var _nextProps$selectedHi = nextProps.selectedHierarchy, - nextSelectedHierarchy = - void 0 === _nextProps$selectedHi ? [] : _nextProps$selectedHi, - nextStoryFilter = nextProps.storyFilter, - _props = this.props, - _props$selectedHierar = _props.selectedHierarchy, - currentSelectedHierarchy = - void 0 === _props$selectedHierar ? [] : _props$selectedHierar, - shouldClearFilteredNodes = nextStoryFilter !== _props.storyFilter; - if ( - !(0, _deepEqual2.default)(nextSelectedHierarchy, currentSelectedHierarchy) || - shouldClearFilteredNodes - ) { - var selectedNodes = getSelectedNodes(nextSelectedHierarchy); - this.setState(function(prevState) { - return { - overriddenFilteredNodes: shouldClearFilteredNodes - ? {} - : prevState.overriddenFilteredNodes, - nodes: (0, _extends6.default)({}, prevState.nodes, selectedNodes) - }; - }); - } - } - }, - { - key: 'onToggle', - value: function onToggle(node, toggled) { - node.story && this.fireOnKindAndStory(node.kind, node.story), - node.namespaces && - this.setState(function(prevState) { - return { - nodes: (0, _extends6.default)( - {}, - prevState.nodes, - (0, _defineProperty3.default)({}, node.key, toggled) - ), - overriddenFilteredNodes: (0, _extends6.default)( - {}, - prevState.overriddenFilteredNodes, - (0, _defineProperty3.default)({}, node.key, !toggled) - ) - }; - }); - } - }, - { - key: 'fireOnKindAndStory', - value: function fireOnKindAndStory(kind, story) { - var onSelectStory = this.props.onSelectStory; - onSelectStory && onSelectStory(kind, story); - } - }, - { - key: 'mapStoriesHierarchy', - value: function mapStoriesHierarchy(storiesHierarchy) { - var _this2 = this, - treeModel = { - namespaces: storiesHierarchy.namespaces, - name: storiesHierarchy.name, - highlight: storiesHierarchy.highlight, - children: [] - }; - if (storiesHierarchy.stories && storiesHierarchy.stories.length) { - var _props2 = this.props, - selectedStory = _props2.selectedStory, - selectedKind = _props2.selectedKind; - storiesHierarchy.stories - .map(function(story) { - return { - name: story.name, - story: story.name, - kind: storiesHierarchy.kind, - active: - selectedStory === story.name && selectedKind === storiesHierarchy.kind, - type: _tree_node_type2.default.STORY, - highlight: story.highlight - }; - }) - .forEach(function(story) { - return treeModel.children.push(story); - }); - } - return ( - storiesHierarchy.isNamespace && - ((treeModel.type = _tree_node_type2.default.NAMESPACE), - storiesHierarchy.map.size > 0 && - storiesHierarchy.map.forEach(function(childItem) { - return treeModel.children.push(_this2.mapStoriesHierarchy(childItem)); - })), - (treeModel.key = createNodeKey(treeModel)), - (treeModel.toggled = this.isToggled(treeModel)), - treeModel - ); - } - }, - { - key: 'isToggled', - value: function isToggled(treeModel) { - return this.state.nodes[treeModel.key] || this.isFilteredNode(treeModel.key); - } - }, - { - key: 'isFilteredNode', - value: function isFilteredNode(key) { - return !!this.props.storyFilter && !this.state.overriddenFilteredNodes[key]; - } - }, - { - key: 'render', - value: function render() { - var _props3 = this.props, - storiesHierarchy = _props3.storiesHierarchy, - sidebarAnimations = _props3.sidebarAnimations, - data = this.mapStoriesHierarchy(storiesHierarchy); - return ( - (data.toggled = !0), - (data.root = !0), - _react2.default.createElement(_reactTreebeard.Treebeard, { - style: _tree_style2.default, - data: data, - onToggle: this.onToggle, - animations: !!sidebarAnimations && void 0, - decorators: _tree_decorators2.default - }) - ); - } - } - ]), - Stories - ); - })(_react2.default.Component); - (Stories.defaultProps = { - onSelectStory: null, - storiesHierarchy: null, - storyFilter: null, - sidebarAnimations: !0 - }), - (Stories.propTypes = { - storyFilter: _propTypes2.default.string, - storiesHierarchy: _propTypes2.default.shape({ - namespaces: _propTypes2.default.arrayOf(_propTypes2.default.string), - name: _propTypes2.default.string, - map: _propTypes2.default.object - }), - selectedHierarchy: _propTypes2.default.arrayOf(_propTypes2.default.string).isRequired, - selectedKind: _propTypes2.default.string.isRequired, - selectedStory: _propTypes2.default.string.isRequired, - onSelectStory: _propTypes2.default.func, - sidebarAnimations: _propTypes2.default.bool - }), - (exports.default = Stories); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.theme = exports.animations = exports.decorators = exports.Treebeard = void 0); - var _treebeard2 = _interopRequireDefault(__webpack_require__(1203)), - _decorators2 = _interopRequireDefault(__webpack_require__(844)), - _animations2 = _interopRequireDefault(__webpack_require__(856)), - _default2 = _interopRequireDefault(__webpack_require__(855)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - (exports.Treebeard = _treebeard2.default), - (exports.decorators = _decorators2.default), - (exports.animations = _animations2.default), - (exports.theme = _default2.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _node2 = _interopRequireDefault(__webpack_require__(1204)), - _decorators2 = _interopRequireDefault(__webpack_require__(844)), - _default2 = _interopRequireDefault(__webpack_require__(855)), - _animations2 = _interopRequireDefault(__webpack_require__(856)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var TreeBeard = (function(_React$Component) { - function TreeBeard() { - return ( - (0, _classCallCheck3.default)(this, TreeBeard), - (0, _possibleConstructorReturn3.default)( - this, - (TreeBeard.__proto__ || (0, _getPrototypeOf2.default)(TreeBeard)).apply(this, arguments) - ) - ); - } - return ( - (0, _inherits3.default)(TreeBeard, _React$Component), - (0, _createClass3.default)(TreeBeard, [ - { - key: 'render', - value: function render() { - var _this2 = this, - _props = this.props, - animations = _props.animations, - decorators = _props.decorators, - propsData = _props.data, - onToggle = _props.onToggle, - style = _props.style, - data = propsData; - return ( - Array.isArray(data) || (data = [data]), - _react2.default.createElement( - 'ul', - { - style: style.tree.base, - ref: function ref(_ref) { - return (_this2.treeBaseRef = _ref); - } - }, - data.map(function(node, index) { - return _react2.default.createElement(_node2.default, { - animations: animations, - decorators: decorators, - key: node.id || index, - node: node, - onToggle: onToggle, - style: style.tree.node - }); - }) - ) - ); - } - } - ]), - TreeBeard - ); - })(_react2.default.Component); - (TreeBeard.propTypes = { - style: _propTypes2.default.object, - data: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.array]) - .isRequired, - animations: _propTypes2.default.oneOfType([ - _propTypes2.default.object, - _propTypes2.default.bool - ]), - onToggle: _propTypes2.default.func, - decorators: _propTypes2.default.object - }), - (TreeBeard.defaultProps = { - style: _default2.default, - animations: _animations2.default, - decorators: _decorators2.default - }), - (exports.default = TreeBeard); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _objectWithoutProperties3 = _interopRequireDefault(__webpack_require__(65)), - _assign2 = _interopRequireDefault(__webpack_require__(86)), - _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _velocityReact = __webpack_require__(829), - _header2 = _interopRequireDefault(__webpack_require__(1259)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var TreeNode = (function(_React$Component) { - function TreeNode() { - (0, _classCallCheck3.default)(this, TreeNode); - var _this = (0, _possibleConstructorReturn3.default)( - this, - (TreeNode.__proto__ || (0, _getPrototypeOf2.default)(TreeNode)).call(this) - ); - return (_this.onClick = _this.onClick.bind(_this)), _this; - } - return ( - (0, _inherits3.default)(TreeNode, _React$Component), - (0, _createClass3.default)(TreeNode, [ - { - key: 'onClick', - value: function onClick() { - var _props = this.props, - node = _props.node, - onToggle = _props.onToggle, - toggled = node.toggled; - onToggle && onToggle(node, !toggled); - } - }, - { - key: 'animations', - value: function animations() { - var _props2 = this.props, - animations = _props2.animations, - node = _props2.node; - if (!1 === animations) return !1; - var anim = (0, _assign2.default)({}, animations, node.animations); - return { toggle: anim.toggle(this.props), drawer: anim.drawer(this.props) }; - } - }, - { - key: 'decorators', - value: function decorators() { - var _props3 = this.props, - decorators = _props3.decorators, - nodeDecorators = _props3.node.decorators || {}; - return (0, _assign2.default)({}, decorators, nodeDecorators); - } - }, - { - key: 'render', - value: function render() { - var _this2 = this, - style = this.props.style, - decorators = this.decorators(), - animations = this.animations(); - return _react2.default.createElement( - 'li', - { - ref: function ref(_ref) { - return (_this2.topLevelRef = _ref); - }, - style: style.base - }, - this.renderHeader(decorators, animations), - this.renderDrawer(decorators, animations) - ); - } - }, - { - key: 'renderDrawer', - value: function renderDrawer(decorators, animations) { - var _this3 = this, - toggled = this.props.node.toggled; - if (!animations && !toggled) return null; - if (!animations && toggled) return this.renderChildren(decorators, animations); - var _animations$drawer = animations.drawer, - restAnimationInfo = (_animations$drawer.animation, - _animations$drawer.duration, - (0, _objectWithoutProperties3.default)(_animations$drawer, [ - 'animation', - 'duration' - ])); - return _react2.default.createElement( - _velocityReact.VelocityTransitionGroup, - (0, _extends3.default)({}, restAnimationInfo, { - ref: function ref(_ref2) { - return (_this3.velocityRef = _ref2); - } - }), - toggled ? this.renderChildren(decorators, animations) : null - ); - } - }, - { - key: 'renderHeader', - value: function renderHeader(decorators, animations) { - var _props4 = this.props, - node = _props4.node, - style = _props4.style; - return _react2.default.createElement(_header2.default, { - animations: animations, - decorators: decorators, - node: (0, _assign2.default)({}, node), - onClick: this.onClick, - style: style - }); - } - }, - { - key: 'renderChildren', - value: function renderChildren(decorators) { - var _this4 = this, - _props5 = this.props, - animations = _props5.animations, - propDecorators = _props5.decorators, - node = _props5.node, - style = _props5.style; - if (node.loading) return this.renderLoading(decorators); - var children = node.children; - return ( - Array.isArray(children) || (children = children ? [children] : []), - _react2.default.createElement( - 'ul', - { - style: style.subtree, - ref: function ref(_ref3) { - return (_this4.subtreeRef = _ref3); - } - }, - children.map(function(child, index) { - return _react2.default.createElement( - TreeNode, - (0, _extends3.default)({}, _this4._eventBubbles(), { - animations: animations, - decorators: propDecorators, - key: child.id || index, - node: child, - style: style - }) - ); - }) - ) - ); - } - }, - { - key: 'renderLoading', - value: function renderLoading(decorators) { - var style = this.props.style; - return _react2.default.createElement( - 'ul', - { style: style.subtree }, - _react2.default.createElement( - 'li', - null, - _react2.default.createElement(decorators.Loading, { style: style.loading }) - ) - ); - } - }, - { - key: '_eventBubbles', - value: function _eventBubbles() { - return { onToggle: this.props.onToggle }; - } - } - ]), - TreeNode - ); - })(_react2.default.Component); - (TreeNode.propTypes = { - style: _propTypes2.default.object.isRequired, - node: _propTypes2.default.object.isRequired, - decorators: _propTypes2.default.object.isRequired, - animations: _propTypes2.default.oneOfType([ - _propTypes2.default.object, - _propTypes2.default.bool - ]).isRequired, - onToggle: _propTypes2.default.func - }), - (exports.default = TreeNode); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - Object.defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(); - var _ = { - forEach: __webpack_require__(614), - isEqual: __webpack_require__(835), - keys: __webpack_require__(183), - omit: __webpack_require__(836) - }, - React = __webpack_require__(0), - ReactDOM = __webpack_require__(122), - PropTypes = __webpack_require__(2), - Velocity = __webpack_require__(619), - VelocityComponent = (function(_React$Component) { - function VelocityComponent(props) { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, VelocityComponent); - var _this = (function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - })( - this, - (VelocityComponent.__proto__ || Object.getPrototypeOf(VelocityComponent)).call( - this, - props - ) - ); - return ( - (_this._animationTimeout = null), - (_this.runAnimation = _this.runAnimation.bind(_this)), - _this - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(VelocityComponent, React.Component), - _createClass(VelocityComponent, [ - { - key: 'componentDidMount', - value: function componentDidMount() { - this.runAnimation(), !0 !== this.props.runOnMount && this._finishAnimation(); - } - }, - { - key: 'componentWillUpdate', - value: function componentWillUpdate(newProps, newState) { - _.isEqual(newProps.animation, this.props.animation) || - ('stop' === newProps.interruptBehavior - ? this._stopAnimation() - : 'finish' === newProps.interruptBehavior && this._finishAnimation(), - this._scheduleAnimation()); - } - }, - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this._stopAnimation(), - this._clearVelocityCache(this._getDOMTarget()), - this._animationTimeout && clearTimeout(this._animationTimeout); - } - }, - { - key: 'runAnimation', - value: function runAnimation(config) { - if ( - ((config = config || {}), - (this._animationTimeout = null), - null != this.props.animation) - ) { - config.stop - ? Velocity(this._getDOMTarget(), 'stop', !0) - : config.finish && Velocity(this._getDOMTarget(), 'finishAll', !0); - var opts = _.omit(this.props, _.keys(VelocityComponent.propTypes)); - Velocity(this._getDOMTarget(), this.props.animation, opts); - } - } - }, - { - key: '_scheduleAnimation', - value: function _scheduleAnimation() { - this._animationTimeout || - (this._animationTimeout = setTimeout(this.runAnimation, 0)); - } - }, - { - key: '_getDOMTarget', - value: function _getDOMTarget() { - var node = ReactDOM.findDOMNode(this); - return 'children' === this.props.targetQuerySelector - ? node.children - : null != this.props.targetQuerySelector - ? node.querySelectorAll(this.props.targetQuerySelector) - : node; - } - }, - { - key: '_finishAnimation', - value: function _finishAnimation() { - Velocity(this._getDOMTarget(), 'finishAll', !0); - } - }, - { - key: '_stopAnimation', - value: function _stopAnimation() { - Velocity(this._getDOMTarget(), 'stop', !0); - } - }, - { - key: '_clearVelocityCache', - value: function _clearVelocityCache(target) { - target.length - ? _.forEach(target, this._clearVelocityCache) - : Velocity.Utilities.removeData(target, ['velocity', 'fxqueue']); - } - }, - { - key: 'render', - value: function render() { - return this.props.children; - } - } - ]), - VelocityComponent - ); - })(); - (VelocityComponent.propTypes = { - animation: PropTypes.any, - children: PropTypes.element.isRequired, - runOnMount: PropTypes.bool, - targetQuerySelector: PropTypes.string, - interruptBehavior: PropTypes.string - }), - (VelocityComponent.defaultProps = { - animation: null, - runOnMount: !1, - targetQuerySelector: null, - interruptBehavior: 'stop' - }), - (module.exports = VelocityComponent); - }, - function(module, exports) { - module.exports = function arrayEach(array, iteratee) { - for ( - var index = -1, length = array.length; - ++index < length && !1 !== iteratee(array[index], index, array); - - ); - return array; - }; - }, - function(module, exports, __webpack_require__) { - var baseFor = __webpack_require__(831), - keys = __webpack_require__(183); - module.exports = function baseForOwn(object, iteratee) { - return baseFor(object, iteratee, keys); - }; - }, - function(module, exports, __webpack_require__) { - var toObject = __webpack_require__(111); - module.exports = function createBaseFor(fromRight) { - return function(object, iteratee, keysFunc) { - for ( - var iterable = toObject(object), - props = keysFunc(object), - length = props.length, - index = fromRight ? length : -1; - fromRight ? index-- : ++index < length; - - ) { - var key = props[index]; - if (!1 === iteratee(iterable[key], key, iterable)) break; - } - return object; - }; - }; - }, - function(module, exports, __webpack_require__) { - var isFunction = __webpack_require__(1210), - isObjectLike = __webpack_require__(188), - reIsHostCtor = /^\[object .+?Constructor\]$/, - objectProto = Object.prototype, - fnToString = Function.prototype.toString, - hasOwnProperty = objectProto.hasOwnProperty, - reIsNative = RegExp( - '^' + - fnToString - .call(hasOwnProperty) - .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + - '$' - ); - module.exports = function isNative(value) { - return ( - null != value && - (isFunction(value) - ? reIsNative.test(fnToString.call(value)) - : isObjectLike(value) && reIsHostCtor.test(value)) - ); - }; - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(87), - funcTag = '[object Function]', - objToString = Object.prototype.toString; - module.exports = function isFunction(value) { - return isObject(value) && objToString.call(value) == funcTag; - }; - }, - function(module, exports, __webpack_require__) { - var isArguments = __webpack_require__(615), - isArray = __webpack_require__(112), - isIndex = __webpack_require__(616), - isLength = __webpack_require__(189), - keysIn = __webpack_require__(617), - hasOwnProperty = Object.prototype.hasOwnProperty; - module.exports = function shimKeys(object) { - for ( - var props = keysIn(object), - propsLength = props.length, - length = propsLength && object.length, - allowIndexes = !!length && isLength(length) && (isArray(object) || isArguments(object)), - index = -1, - result = []; - ++index < propsLength; - - ) { - var key = props[index]; - ((allowIndexes && isIndex(key, length)) || hasOwnProperty.call(object, key)) && - result.push(key); - } - return result; - }; - }, - function(module, exports, __webpack_require__) { - var getLength = __webpack_require__(832), - isLength = __webpack_require__(189), - toObject = __webpack_require__(111); - module.exports = function createBaseEach(eachFunc, fromRight) { - return function(collection, iteratee) { - var length = collection ? getLength(collection) : 0; - if (!isLength(length)) return eachFunc(collection, iteratee); - for ( - var index = fromRight ? length : -1, iterable = toObject(collection); - (fromRight ? index-- : ++index < length) && - !1 !== iteratee(iterable[index], index, iterable); - - ); - return collection; - }; - }; - }, - function(module, exports, __webpack_require__) { - var bindCallback = __webpack_require__(273), - isArray = __webpack_require__(112); - module.exports = function createForEach(arrayFunc, eachFunc) { - return function(collection, iteratee, thisArg) { - return 'function' == typeof iteratee && void 0 === thisArg && isArray(collection) - ? arrayFunc(collection, iteratee) - : eachFunc(collection, bindCallback(iteratee, thisArg, 3)); - }; - }; - }, - function(module, exports, __webpack_require__) { - var equalArrays = __webpack_require__(1215), - equalByTag = __webpack_require__(1217), - equalObjects = __webpack_require__(1218), - isArray = __webpack_require__(112), - isTypedArray = __webpack_require__(1219), - argsTag = '[object Arguments]', - arrayTag = '[object Array]', - objectTag = '[object Object]', - objectProto = Object.prototype, - hasOwnProperty = objectProto.hasOwnProperty, - objToString = objectProto.toString; - module.exports = function baseIsEqualDeep( - object, - other, - equalFunc, - customizer, - isLoose, - stackA, - stackB - ) { - var objIsArr = isArray(object), - othIsArr = isArray(other), - objTag = arrayTag, - othTag = arrayTag; - objIsArr || - ((objTag = objToString.call(object)) == argsTag - ? (objTag = objectTag) - : objTag != objectTag && (objIsArr = isTypedArray(object))), - othIsArr || - ((othTag = objToString.call(other)) == argsTag - ? (othTag = objectTag) - : othTag != objectTag && (othIsArr = isTypedArray(other))); - var objIsObj = objTag == objectTag, - othIsObj = othTag == objectTag, - isSameTag = objTag == othTag; - if (isSameTag && !objIsArr && !objIsObj) return equalByTag(object, other, objTag); - if (!isLoose) { - var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), - othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); - if (objIsWrapped || othIsWrapped) - return equalFunc( - objIsWrapped ? object.value() : object, - othIsWrapped ? other.value() : other, - customizer, - isLoose, - stackA, - stackB - ); - } - if (!isSameTag) return !1; - stackA || (stackA = []), stackB || (stackB = []); - for (var length = stackA.length; length--; ) - if (stackA[length] == object) return stackB[length] == other; - stackA.push(object), stackB.push(other); - var result = (objIsArr ? equalArrays : equalObjects)( - object, - other, - equalFunc, - customizer, - isLoose, - stackA, - stackB - ); - return stackA.pop(), stackB.pop(), result; - }; - }, - function(module, exports, __webpack_require__) { - var arraySome = __webpack_require__(1216); - module.exports = function equalArrays( - array, - other, - equalFunc, - customizer, - isLoose, - stackA, - stackB - ) { - var index = -1, - arrLength = array.length, - othLength = other.length; - if (arrLength != othLength && !(isLoose && othLength > arrLength)) return !1; - for (; ++index < arrLength; ) { - var arrValue = array[index], - othValue = other[index], - result = customizer - ? customizer(isLoose ? othValue : arrValue, isLoose ? arrValue : othValue, index) - : void 0; - if (void 0 !== result) { - if (result) continue; - return !1; - } - if (isLoose) { - if ( - !arraySome(other, function(othValue) { - return ( - arrValue === othValue || - equalFunc(arrValue, othValue, customizer, isLoose, stackA, stackB) - ); - }) - ) - return !1; - } else if ( - arrValue !== othValue && - !equalFunc(arrValue, othValue, customizer, isLoose, stackA, stackB) - ) - return !1; - } - return !0; - }; - }, - function(module, exports) { - module.exports = function arraySome(array, predicate) { - for (var index = -1, length = array.length; ++index < length; ) - if (predicate(array[index], index, array)) return !0; - return !1; - }; - }, - function(module, exports) { - var boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - numberTag = '[object Number]', - regexpTag = '[object RegExp]', - stringTag = '[object String]'; - module.exports = function equalByTag(object, other, tag) { - switch (tag) { - case boolTag: - case dateTag: - return +object == +other; - case errorTag: - return object.name == other.name && object.message == other.message; - case numberTag: - return object != +object ? other != +other : object == +other; - case regexpTag: - case stringTag: - return object == other + ''; - } - return !1; - }; - }, - function(module, exports, __webpack_require__) { - var keys = __webpack_require__(183), - hasOwnProperty = Object.prototype.hasOwnProperty; - module.exports = function equalObjects( - object, - other, - equalFunc, - customizer, - isLoose, - stackA, - stackB - ) { - var objProps = keys(object), - objLength = objProps.length; - if (objLength != keys(other).length && !isLoose) return !1; - for (var index = objLength; index--; ) { - var key = objProps[index]; - if (!(isLoose ? key in other : hasOwnProperty.call(other, key))) return !1; - } - for (var skipCtor = isLoose; ++index < objLength; ) { - var objValue = object[(key = objProps[index])], - othValue = other[key], - result = customizer - ? customizer(isLoose ? othValue : objValue, isLoose ? objValue : othValue, key) - : void 0; - if ( - !(void 0 === result - ? equalFunc(objValue, othValue, customizer, isLoose, stackA, stackB) - : result) - ) - return !1; - skipCtor || (skipCtor = 'constructor' == key); - } - if (!skipCtor) { - var objCtor = object.constructor, - othCtor = other.constructor; - if ( - objCtor != othCtor && - 'constructor' in object && - 'constructor' in other && - !( - 'function' == typeof objCtor && - objCtor instanceof objCtor && - 'function' == typeof othCtor && - othCtor instanceof othCtor - ) - ) - return !1; - } - return !0; - }; - }, - function(module, exports, __webpack_require__) { - var isLength = __webpack_require__(189), - isObjectLike = __webpack_require__(188), - typedArrayTags = {}; - (typedArrayTags['[object Float32Array]'] = typedArrayTags[ - '[object Float64Array]' - ] = typedArrayTags['[object Int8Array]'] = typedArrayTags[ - '[object Int16Array]' - ] = typedArrayTags['[object Int32Array]'] = typedArrayTags[ - '[object Uint8Array]' - ] = typedArrayTags['[object Uint8ClampedArray]'] = typedArrayTags[ - '[object Uint16Array]' - ] = typedArrayTags['[object Uint32Array]'] = !0), - (typedArrayTags['[object Arguments]'] = typedArrayTags['[object Array]'] = typedArrayTags[ - '[object ArrayBuffer]' - ] = typedArrayTags['[object Boolean]'] = typedArrayTags['[object Date]'] = typedArrayTags[ - '[object Error]' - ] = typedArrayTags['[object Function]'] = typedArrayTags['[object Map]'] = typedArrayTags[ - '[object Number]' - ] = typedArrayTags['[object Object]'] = typedArrayTags['[object RegExp]'] = typedArrayTags[ - '[object Set]' - ] = typedArrayTags['[object String]'] = typedArrayTags['[object WeakMap]'] = !1); - var objToString = Object.prototype.toString; - module.exports = function isTypedArray(value) { - return ( - isObjectLike(value) && isLength(value.length) && !!typedArrayTags[objToString.call(value)] - ); - }; - }, - function(module, exports, __webpack_require__) { - var baseIndexOf = __webpack_require__(1221), - cacheIndexOf = __webpack_require__(1223), - createCache = __webpack_require__(1224), - LARGE_ARRAY_SIZE = 200; - module.exports = function baseDifference(array, values) { - var length = array ? array.length : 0, - result = []; - if (!length) return result; - var index = -1, - indexOf = baseIndexOf, - isCommon = !0, - cache = isCommon && values.length >= LARGE_ARRAY_SIZE ? createCache(values) : null, - valuesLength = values.length; - cache && ((indexOf = cacheIndexOf), (isCommon = !1), (values = cache)); - outer: for (; ++index < length; ) { - var value = array[index]; - if (isCommon && value == value) { - for (var valuesIndex = valuesLength; valuesIndex--; ) - if (values[valuesIndex] === value) continue outer; - result.push(value); - } else indexOf(values, value, 0) < 0 && result.push(value); - } - return result; - }; - }, - function(module, exports, __webpack_require__) { - var indexOfNaN = __webpack_require__(1222); - module.exports = function baseIndexOf(array, value, fromIndex) { - if (value != value) return indexOfNaN(array, fromIndex); - for (var index = fromIndex - 1, length = array.length; ++index < length; ) - if (array[index] === value) return index; - return -1; - }; - }, - function(module, exports) { - module.exports = function indexOfNaN(array, fromIndex, fromRight) { - for ( - var length = array.length, index = fromIndex + (fromRight ? 0 : -1); - fromRight ? index-- : ++index < length; - - ) { - var other = array[index]; - if (other != other) return index; - } - return -1; - }; - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(87); - module.exports = function cacheIndexOf(cache, value) { - var data = cache.data; - return ('string' == typeof value || isObject(value) ? data.set.has(value) : data.hash[value]) - ? 0 - : -1; - }; - }, - function(module, exports, __webpack_require__) { - (function(global) { - var SetCache = __webpack_require__(1225), - getNative = __webpack_require__(302), - Set = getNative(global, 'Set'), - nativeCreate = getNative(Object, 'create'); - module.exports = function createCache(values) { - return nativeCreate && Set ? new SetCache(values) : null; - }; - }.call(exports, __webpack_require__(27))); - }, - function(module, exports, __webpack_require__) { - (function(global) { - var cachePush = __webpack_require__(1226), - getNative = __webpack_require__(302), - Set = getNative(global, 'Set'), - nativeCreate = getNative(Object, 'create'); - function SetCache(values) { - var length = values ? values.length : 0; - for (this.data = { hash: nativeCreate(null), set: new Set() }; length--; ) - this.push(values[length]); - } - (SetCache.prototype.push = cachePush), (module.exports = SetCache); - }.call(exports, __webpack_require__(27))); - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(87); - module.exports = function cachePush(value) { - var data = this.data; - 'string' == typeof value || isObject(value) ? data.set.add(value) : (data.hash[value] = !0); - }; - }, - function(module, exports, __webpack_require__) { - var arrayPush = __webpack_require__(1228), - isArguments = __webpack_require__(615), - isArray = __webpack_require__(112), - isArrayLike = __webpack_require__(272), - isObjectLike = __webpack_require__(188); - module.exports = function baseFlatten(array, isDeep, isStrict, result) { - result || (result = []); - for (var index = -1, length = array.length; ++index < length; ) { - var value = array[index]; - isObjectLike(value) && - isArrayLike(value) && - (isStrict || isArray(value) || isArguments(value)) - ? isDeep ? baseFlatten(value, isDeep, isStrict, result) : arrayPush(result, value) - : isStrict || (result[result.length] = value); - } - return result; - }; - }, - function(module, exports) { - module.exports = function arrayPush(array, values) { - for (var index = -1, length = values.length, offset = array.length; ++index < length; ) - array[offset + index] = values[index]; - return array; - }; - }, - function(module, exports, __webpack_require__) { - var toObject = __webpack_require__(111); - module.exports = function pickByArray(object, props) { - object = toObject(object); - for (var index = -1, length = props.length, result = {}; ++index < length; ) { - var key = props[index]; - key in object && (result[key] = object[key]); - } - return result; - }; - }, - function(module, exports, __webpack_require__) { - var baseForIn = __webpack_require__(1231); - module.exports = function pickByCallback(object, predicate) { - var result = {}; - return ( - baseForIn(object, function(value, key, object) { - predicate(value, key, object) && (result[key] = value); - }), - result - ); - }; - }, - function(module, exports, __webpack_require__) { - var baseFor = __webpack_require__(831), - keysIn = __webpack_require__(617); - module.exports = function baseForIn(object, iteratee) { - return baseFor(object, iteratee, keysIn); - }; - }, - function(module, exports, __webpack_require__) { - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__; - !(function(window) { - 'use strict'; - if (!window.jQuery) { - var $ = function(selector, context) { - return new $.fn.init(selector, context); - }; - ($.isWindow = function(obj) { - return obj && obj === obj.window; - }), - ($.type = function(obj) { - return obj - ? 'object' == typeof obj || 'function' == typeof obj - ? class2type[toString.call(obj)] || 'object' - : typeof obj - : obj + ''; - }), - ($.isArray = - Array.isArray || - function(obj) { - return 'array' === $.type(obj); - }), - ($.isPlainObject = function(obj) { - var key; - if (!obj || 'object' !== $.type(obj) || obj.nodeType || $.isWindow(obj)) return !1; - try { - if ( - obj.constructor && - !hasOwn.call(obj, 'constructor') && - !hasOwn.call(obj.constructor.prototype, 'isPrototypeOf') - ) - return !1; - } catch (e) { - return !1; - } - for (key in obj); - return void 0 === key || hasOwn.call(obj, key); - }), - ($.each = function(obj, callback, args) { - var i = 0, - length = obj.length, - isArray = isArraylike(obj); - if (args) { - if (isArray) for (; i < length && !1 !== callback.apply(obj[i], args); i++); - else - for (i in obj) - if (obj.hasOwnProperty(i) && !1 === callback.apply(obj[i], args)) break; - } else if (isArray) for (; i < length && !1 !== callback.call(obj[i], i, obj[i]); i++); - else - for (i in obj) - if (obj.hasOwnProperty(i) && !1 === callback.call(obj[i], i, obj[i])) break; - return obj; - }), - ($.data = function(node, key, value) { - if (void 0 === value) { - var getId = node[$.expando], - store = getId && cache[getId]; - if (void 0 === key) return store; - if (store && key in store) return store[key]; - } else if (void 0 !== key) { - var setId = node[$.expando] || (node[$.expando] = ++$.uuid); - return (cache[setId] = cache[setId] || {}), (cache[setId][key] = value), value; - } - }), - ($.removeData = function(node, keys) { - var id = node[$.expando], - store = id && cache[id]; - store && - (keys - ? $.each(keys, function(_, key) { - delete store[key]; - }) - : delete cache[id]); - }), - ($.extend = function() { - var src, - copyIsArray, - copy, - name, - options, - clone, - target = arguments[0] || {}, - i = 1, - length = arguments.length, - deep = !1; - for ( - 'boolean' == typeof target && ((deep = target), (target = arguments[i] || {}), i++), - 'object' != typeof target && 'function' !== $.type(target) && (target = {}), - i === length && ((target = this), i--); - i < length; - i++ - ) - if ((options = arguments[i])) - for (name in options) - options.hasOwnProperty(name) && - ((src = target[name]), - target !== (copy = options[name]) && - (deep && copy && ($.isPlainObject(copy) || (copyIsArray = $.isArray(copy))) - ? (copyIsArray - ? ((copyIsArray = !1), (clone = src && $.isArray(src) ? src : [])) - : (clone = src && $.isPlainObject(src) ? src : {}), - (target[name] = $.extend(deep, clone, copy))) - : void 0 !== copy && (target[name] = copy))); - return target; - }), - ($.queue = function(elem, type, data) { - if (elem) { - type = (type || 'fx') + 'queue'; - var q = $.data(elem, type); - return data - ? (!q || $.isArray(data) - ? (q = $.data( - elem, - type, - (function $makeArray(arr, results) { - var ret = results || []; - return ( - arr && - (isArraylike(Object(arr)) - ? (function(first, second) { - for ( - var len = +second.length, j = 0, i = first.length; - j < len; - - ) - first[i++] = second[j++]; - if (len != len) - for (; void 0 !== second[j]; ) first[i++] = second[j++]; - first.length = i; - })(ret, 'string' == typeof arr ? [arr] : arr) - : [].push.call(ret, arr)), - ret - ); - })(data) - )) - : q.push(data), - q) - : q || []; - } - }), - ($.dequeue = function(elems, type) { - $.each(elems.nodeType ? [elems] : elems, function(i, elem) { - type = type || 'fx'; - var queue = $.queue(elem, type), - fn = queue.shift(); - 'inprogress' === fn && (fn = queue.shift()), - fn && - ('fx' === type && queue.unshift('inprogress'), - fn.call(elem, function() { - $.dequeue(elem, type); - })); - }); - }), - ($.fn = $.prototype = { - init: function(selector) { - if (selector.nodeType) return (this[0] = selector), this; - throw new Error('Not a DOM node.'); - }, - offset: function() { - var box = this[0].getBoundingClientRect - ? this[0].getBoundingClientRect() - : { top: 0, left: 0 }; - return { - top: - box.top + - (window.pageYOffset || document.scrollTop || 0) - - (document.clientTop || 0), - left: - box.left + - (window.pageXOffset || document.scrollLeft || 0) - - (document.clientLeft || 0) - }; - }, - position: function() { - var elem = this[0], - offsetParent = (function offsetParentFn(elem) { - for ( - var offsetParent = elem.offsetParent; - offsetParent && - 'html' !== offsetParent.nodeName.toLowerCase() && - offsetParent.style && - 'static' === offsetParent.style.position.toLowerCase(); - - ) - offsetParent = offsetParent.offsetParent; - return offsetParent || document; - })(elem), - offset = this.offset(), - parentOffset = /^(?:body|html)$/i.test(offsetParent.nodeName) - ? { top: 0, left: 0 } - : $(offsetParent).offset(); - return ( - (offset.top -= parseFloat(elem.style.marginTop) || 0), - (offset.left -= parseFloat(elem.style.marginLeft) || 0), - offsetParent.style && - ((parentOffset.top += parseFloat(offsetParent.style.borderTopWidth) || 0), - (parentOffset.left += parseFloat(offsetParent.style.borderLeftWidth) || 0)), - { top: offset.top - parentOffset.top, left: offset.left - parentOffset.left } - ); - } - }); - var cache = {}; - ($.expando = 'velocity' + new Date().getTime()), ($.uuid = 0); - for ( - var class2type = {}, - hasOwn = class2type.hasOwnProperty, - toString = class2type.toString, - types = 'Boolean Number String Function Array Date RegExp Object Error'.split(' '), - i = 0; - i < types.length; - i++ - ) - class2type['[object ' + types[i] + ']'] = types[i].toLowerCase(); - ($.fn.init.prototype = $.fn), (window.Velocity = { Utilities: $ }); - } - function isArraylike(obj) { - var length = obj.length, - type = $.type(obj); - return ( - 'function' !== type && - !$.isWindow(obj) && - (!(1 !== obj.nodeType || !length) || - ('array' === type || - 0 === length || - ('number' == typeof length && length > 0 && length - 1 in obj))) - ); - } - })(window), - (function(factory) { - 'use strict'; - 'object' == typeof module && 'object' == typeof module.exports - ? (module.exports = factory()) - : void 0 === - (__WEBPACK_AMD_DEFINE_RESULT__ = - 'function' == typeof (__WEBPACK_AMD_DEFINE_FACTORY__ = factory) - ? __WEBPACK_AMD_DEFINE_FACTORY__.call( - exports, - __webpack_require__, - exports, - module - ) - : __WEBPACK_AMD_DEFINE_FACTORY__) || - (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); - })(function() { - 'use strict'; - return (function(global, window, document, undefined) { - var timeLast, - IE = (function() { - if (document.documentMode) return document.documentMode; - for (var i = 7; i > 4; i--) { - var div = document.createElement('div'); - if ( - ((div.innerHTML = '\x3c!--[if IE ' + i + ']>= 0 ? begin : Math.max(0, len + begin), - size = (end < 0 ? len + end : Math.min(end, len)) - start; - if (size > 0) - if (((cloned = new Array(size)), this.charAt)) - for (i = 0; i < size; i++) cloned[i] = this.charAt(start + i); - else for (i = 0; i < size; i++) cloned[i] = this[start + i]; - return cloned; - }; - } - })(), - _inArray = function() { - return Array.prototype.includes - ? function(arr, val) { - return arr.includes(val); - } - : Array.prototype.indexOf - ? function(arr, val) { - return arr.indexOf(val) >= 0; - } - : function(arr, val) { - for (var i = 0; i < arr.length; i++) if (arr[i] === val) return !0; - return !1; - }; - }; - function sanitizeElements(elements) { - return ( - Type.isWrapped(elements) - ? (elements = _slice.call(elements)) - : Type.isNode(elements) && (elements = [elements]), - elements - ); - } - var $, - Type = { - isNumber: function(variable) { - return 'number' == typeof variable; - }, - isString: function(variable) { - return 'string' == typeof variable; - }, - isArray: - Array.isArray || - function(variable) { - return '[object Array]' === Object.prototype.toString.call(variable); - }, - isFunction: function(variable) { - return '[object Function]' === Object.prototype.toString.call(variable); - }, - isNode: function(variable) { - return variable && variable.nodeType; - }, - isWrapped: function(variable) { - return ( - variable && - variable !== window && - Type.isNumber(variable.length) && - !Type.isString(variable) && - !Type.isFunction(variable) && - !Type.isNode(variable) && - (0 === variable.length || Type.isNode(variable[0])) - ); - }, - isSVG: function(variable) { - return window.SVGElement && variable instanceof window.SVGElement; - }, - isEmptyObject: function(variable) { - for (var name in variable) if (variable.hasOwnProperty(name)) return !1; - return !0; - } - }, - isJQuery = !1; - if ( - (global.fn && global.fn.jquery - ? (($ = global), (isJQuery = !0)) - : ($ = window.Velocity.Utilities), - IE <= 8 && !isJQuery) - ) - throw new Error('Velocity: IE8 and below require jQuery to be loaded before Velocity.'); - if (!(IE <= 7)) { - var DURATION_DEFAULT = 400, - EASING_DEFAULT = 'swing', - Velocity = { - State: { - isMobile: /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - window.navigator.userAgent - ), - isAndroid: /Android/i.test(window.navigator.userAgent), - isGingerbread: /Android 2\.3\.[3-7]/i.test(window.navigator.userAgent), - isChrome: window.chrome, - isFirefox: /Firefox/i.test(window.navigator.userAgent), - prefixElement: document.createElement('div'), - prefixMatches: {}, - scrollAnchor: null, - scrollPropertyLeft: null, - scrollPropertyTop: null, - isTicking: !1, - calls: [], - delayedElements: { count: 0 } - }, - CSS: {}, - Utilities: $, - Redirects: {}, - Easings: {}, - Promise: window.Promise, - defaults: { - queue: '', - duration: DURATION_DEFAULT, - easing: EASING_DEFAULT, - begin: undefined, - complete: undefined, - progress: undefined, - display: undefined, - visibility: undefined, - loop: !1, - delay: !1, - mobileHA: !0, - _cacheValues: !0, - promiseRejectEmpty: !0 - }, - init: function(element) { - $.data(element, 'velocity', { - isSVG: Type.isSVG(element), - isAnimating: !1, - computedStyle: null, - tweensContainer: null, - rootPropertyValueCache: {}, - transformCache: {} - }); - }, - hook: null, - mock: !1, - version: { major: 1, minor: 5, patch: 1 }, - debug: !1, - timestamp: !0, - pauseAll: function(queueName) { - var currentTime = new Date().getTime(); - $.each(Velocity.State.calls, function(i, activeCall) { - if (activeCall) { - if ( - queueName !== undefined && - (activeCall[2].queue !== queueName || !1 === activeCall[2].queue) - ) - return !0; - activeCall[5] = { resume: !1 }; - } - }), - $.each(Velocity.State.delayedElements, function(k, element) { - element && pauseDelayOnElement(element, currentTime); - }); - }, - resumeAll: function(queueName) { - var currentTime = new Date().getTime(); - $.each(Velocity.State.calls, function(i, activeCall) { - if (activeCall) { - if ( - queueName !== undefined && - (activeCall[2].queue !== queueName || !1 === activeCall[2].queue) - ) - return !0; - activeCall[5] && (activeCall[5].resume = !0); - } - }), - $.each(Velocity.State.delayedElements, function(k, element) { - element && resumeDelayOnElement(element, currentTime); - }); - } - }; - window.pageYOffset !== undefined - ? ((Velocity.State.scrollAnchor = window), - (Velocity.State.scrollPropertyLeft = 'pageXOffset'), - (Velocity.State.scrollPropertyTop = 'pageYOffset')) - : ((Velocity.State.scrollAnchor = - document.documentElement || document.body.parentNode || document.body), - (Velocity.State.scrollPropertyLeft = 'scrollLeft'), - (Velocity.State.scrollPropertyTop = 'scrollTop')); - var generateSpringRK4 = (function() { - function springAccelerationForState(state) { - return -state.tension * state.x - state.friction * state.v; - } - function springEvaluateStateWithDerivative(initialState, dt, derivative) { - var state = { - x: initialState.x + derivative.dx * dt, - v: initialState.v + derivative.dv * dt, - tension: initialState.tension, - friction: initialState.friction - }; - return { dx: state.v, dv: springAccelerationForState(state) }; - } - function springIntegrateState(state, dt) { - var a = { dx: state.v, dv: springAccelerationForState(state) }, - b = springEvaluateStateWithDerivative(state, 0.5 * dt, a), - c = springEvaluateStateWithDerivative(state, 0.5 * dt, b), - d = springEvaluateStateWithDerivative(state, dt, c), - dxdt = 1 / 6 * (a.dx + 2 * (b.dx + c.dx) + d.dx), - dvdt = 1 / 6 * (a.dv + 2 * (b.dv + c.dv) + d.dv); - return (state.x = state.x + dxdt * dt), (state.v = state.v + dvdt * dt), state; - } - return function springRK4Factory(tension, friction, duration) { - var have_duration, - dt, - last_state, - initState = { x: -1, v: 0, tension: null, friction: null }, - path = [0], - time_lapsed = 0; - for ( - tension = parseFloat(tension) || 500, - friction = parseFloat(friction) || 20, - duration = duration || null, - initState.tension = tension, - initState.friction = friction, - dt = (have_duration = null !== duration) - ? (time_lapsed = springRK4Factory(tension, friction)) / duration * 0.016 - : 0.016; - (last_state = springIntegrateState(last_state || initState, dt)), - path.push(1 + last_state.x), - (time_lapsed += 16), - Math.abs(last_state.x) > 1e-4 && Math.abs(last_state.v) > 1e-4; - - ); - return have_duration - ? function(percentComplete) { - return path[(percentComplete * (path.length - 1)) | 0]; - } - : time_lapsed; - }; - })(); - (Velocity.Easings = { - linear: function(p) { - return p; - }, - swing: function(p) { - return 0.5 - Math.cos(p * Math.PI) / 2; - }, - spring: function(p) { - return 1 - Math.cos(4.5 * p * Math.PI) * Math.exp(6 * -p); - } - }), - $.each( - [ - ['ease', [0.25, 0.1, 0.25, 1]], - ['ease-in', [0.42, 0, 1, 1]], - ['ease-out', [0, 0, 0.58, 1]], - ['ease-in-out', [0.42, 0, 0.58, 1]], - ['easeInSine', [0.47, 0, 0.745, 0.715]], - ['easeOutSine', [0.39, 0.575, 0.565, 1]], - ['easeInOutSine', [0.445, 0.05, 0.55, 0.95]], - ['easeInQuad', [0.55, 0.085, 0.68, 0.53]], - ['easeOutQuad', [0.25, 0.46, 0.45, 0.94]], - ['easeInOutQuad', [0.455, 0.03, 0.515, 0.955]], - ['easeInCubic', [0.55, 0.055, 0.675, 0.19]], - ['easeOutCubic', [0.215, 0.61, 0.355, 1]], - ['easeInOutCubic', [0.645, 0.045, 0.355, 1]], - ['easeInQuart', [0.895, 0.03, 0.685, 0.22]], - ['easeOutQuart', [0.165, 0.84, 0.44, 1]], - ['easeInOutQuart', [0.77, 0, 0.175, 1]], - ['easeInQuint', [0.755, 0.05, 0.855, 0.06]], - ['easeOutQuint', [0.23, 1, 0.32, 1]], - ['easeInOutQuint', [0.86, 0, 0.07, 1]], - ['easeInExpo', [0.95, 0.05, 0.795, 0.035]], - ['easeOutExpo', [0.19, 1, 0.22, 1]], - ['easeInOutExpo', [1, 0, 0, 1]], - ['easeInCirc', [0.6, 0.04, 0.98, 0.335]], - ['easeOutCirc', [0.075, 0.82, 0.165, 1]], - ['easeInOutCirc', [0.785, 0.135, 0.15, 0.86]] - ], - function(i, easingArray) { - Velocity.Easings[easingArray[0]] = generateBezier.apply(null, easingArray[1]); - } - ); - var CSS = (Velocity.CSS = { - RegEx: { - isHex: /^#([A-f\d]{3}){1,2}$/i, - valueUnwrap: /^[A-z]+\((.*)\)$/i, - wrappedValueAlreadyExtracted: /[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/, - valueSplit: /([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi - }, - Lists: { - colors: [ - 'fill', - 'stroke', - 'stopColor', - 'color', - 'backgroundColor', - 'borderColor', - 'borderTopColor', - 'borderRightColor', - 'borderBottomColor', - 'borderLeftColor', - 'outlineColor' - ], - transformsBase: [ - 'translateX', - 'translateY', - 'scale', - 'scaleX', - 'scaleY', - 'skewX', - 'skewY', - 'rotateZ' - ], - transforms3D: [ - 'transformPerspective', - 'translateZ', - 'scaleZ', - 'rotateX', - 'rotateY' - ], - units: [ - '%', - 'em', - 'ex', - 'ch', - 'rem', - 'vw', - 'vh', - 'vmin', - 'vmax', - 'cm', - 'mm', - 'Q', - 'in', - 'pc', - 'pt', - 'px', - 'deg', - 'grad', - 'rad', - 'turn', - 's', - 'ms' - ], - colorNames: { - aliceblue: '240,248,255', - antiquewhite: '250,235,215', - aquamarine: '127,255,212', - aqua: '0,255,255', - azure: '240,255,255', - beige: '245,245,220', - bisque: '255,228,196', - black: '0,0,0', - blanchedalmond: '255,235,205', - blueviolet: '138,43,226', - blue: '0,0,255', - brown: '165,42,42', - burlywood: '222,184,135', - cadetblue: '95,158,160', - chartreuse: '127,255,0', - chocolate: '210,105,30', - coral: '255,127,80', - cornflowerblue: '100,149,237', - cornsilk: '255,248,220', - crimson: '220,20,60', - cyan: '0,255,255', - darkblue: '0,0,139', - darkcyan: '0,139,139', - darkgoldenrod: '184,134,11', - darkgray: '169,169,169', - darkgrey: '169,169,169', - darkgreen: '0,100,0', - darkkhaki: '189,183,107', - darkmagenta: '139,0,139', - darkolivegreen: '85,107,47', - darkorange: '255,140,0', - darkorchid: '153,50,204', - darkred: '139,0,0', - darksalmon: '233,150,122', - darkseagreen: '143,188,143', - darkslateblue: '72,61,139', - darkslategray: '47,79,79', - darkturquoise: '0,206,209', - darkviolet: '148,0,211', - deeppink: '255,20,147', - deepskyblue: '0,191,255', - dimgray: '105,105,105', - dimgrey: '105,105,105', - dodgerblue: '30,144,255', - firebrick: '178,34,34', - floralwhite: '255,250,240', - forestgreen: '34,139,34', - fuchsia: '255,0,255', - gainsboro: '220,220,220', - ghostwhite: '248,248,255', - gold: '255,215,0', - goldenrod: '218,165,32', - gray: '128,128,128', - grey: '128,128,128', - greenyellow: '173,255,47', - green: '0,128,0', - honeydew: '240,255,240', - hotpink: '255,105,180', - indianred: '205,92,92', - indigo: '75,0,130', - ivory: '255,255,240', - khaki: '240,230,140', - lavenderblush: '255,240,245', - lavender: '230,230,250', - lawngreen: '124,252,0', - lemonchiffon: '255,250,205', - lightblue: '173,216,230', - lightcoral: '240,128,128', - lightcyan: '224,255,255', - lightgoldenrodyellow: '250,250,210', - lightgray: '211,211,211', - lightgrey: '211,211,211', - lightgreen: '144,238,144', - lightpink: '255,182,193', - lightsalmon: '255,160,122', - lightseagreen: '32,178,170', - lightskyblue: '135,206,250', - lightslategray: '119,136,153', - lightsteelblue: '176,196,222', - lightyellow: '255,255,224', - limegreen: '50,205,50', - lime: '0,255,0', - linen: '250,240,230', - magenta: '255,0,255', - maroon: '128,0,0', - mediumaquamarine: '102,205,170', - mediumblue: '0,0,205', - mediumorchid: '186,85,211', - mediumpurple: '147,112,219', - mediumseagreen: '60,179,113', - mediumslateblue: '123,104,238', - mediumspringgreen: '0,250,154', - mediumturquoise: '72,209,204', - mediumvioletred: '199,21,133', - midnightblue: '25,25,112', - mintcream: '245,255,250', - mistyrose: '255,228,225', - moccasin: '255,228,181', - navajowhite: '255,222,173', - navy: '0,0,128', - oldlace: '253,245,230', - olivedrab: '107,142,35', - olive: '128,128,0', - orangered: '255,69,0', - orange: '255,165,0', - orchid: '218,112,214', - palegoldenrod: '238,232,170', - palegreen: '152,251,152', - paleturquoise: '175,238,238', - palevioletred: '219,112,147', - papayawhip: '255,239,213', - peachpuff: '255,218,185', - peru: '205,133,63', - pink: '255,192,203', - plum: '221,160,221', - powderblue: '176,224,230', - purple: '128,0,128', - red: '255,0,0', - rosybrown: '188,143,143', - royalblue: '65,105,225', - saddlebrown: '139,69,19', - salmon: '250,128,114', - sandybrown: '244,164,96', - seagreen: '46,139,87', - seashell: '255,245,238', - sienna: '160,82,45', - silver: '192,192,192', - skyblue: '135,206,235', - slateblue: '106,90,205', - slategray: '112,128,144', - snow: '255,250,250', - springgreen: '0,255,127', - steelblue: '70,130,180', - tan: '210,180,140', - teal: '0,128,128', - thistle: '216,191,216', - tomato: '255,99,71', - turquoise: '64,224,208', - violet: '238,130,238', - wheat: '245,222,179', - whitesmoke: '245,245,245', - white: '255,255,255', - yellowgreen: '154,205,50', - yellow: '255,255,0' - } - }, - Hooks: { - templates: { - textShadow: ['Color X Y Blur', 'black 0px 0px 0px'], - boxShadow: ['Color X Y Blur Spread', 'black 0px 0px 0px 0px'], - clip: ['Top Right Bottom Left', '0px 0px 0px 0px'], - backgroundPosition: ['X Y', '0% 0%'], - transformOrigin: ['X Y Z', '50% 50% 0px'], - perspectiveOrigin: ['X Y', '50% 50%'] - }, - registered: {}, - register: function() { - for (var i = 0; i < CSS.Lists.colors.length; i++) { - var rgbComponents = - 'color' === CSS.Lists.colors[i] ? '0 0 0 1' : '255 255 255 1'; - CSS.Hooks.templates[CSS.Lists.colors[i]] = [ - 'Red Green Blue Alpha', - rgbComponents - ]; - } - var rootProperty, hookTemplate, hookNames; - if (IE) - for (rootProperty in CSS.Hooks.templates) - if (CSS.Hooks.templates.hasOwnProperty(rootProperty)) { - hookNames = (hookTemplate = CSS.Hooks.templates[rootProperty])[0].split( - ' ' - ); - var defaultValues = hookTemplate[1].match(CSS.RegEx.valueSplit); - 'Color' === hookNames[0] && - (hookNames.push(hookNames.shift()), - defaultValues.push(defaultValues.shift()), - (CSS.Hooks.templates[rootProperty] = [ - hookNames.join(' '), - defaultValues.join(' ') - ])); - } - for (rootProperty in CSS.Hooks.templates) - if (CSS.Hooks.templates.hasOwnProperty(rootProperty)) { - hookNames = (hookTemplate = CSS.Hooks.templates[rootProperty])[0].split(' '); - for (var j in hookNames) - if (hookNames.hasOwnProperty(j)) { - var fullHookName = rootProperty + hookNames[j], - hookPosition = j; - CSS.Hooks.registered[fullHookName] = [rootProperty, hookPosition]; - } - } - }, - getRoot: function(property) { - var hookData = CSS.Hooks.registered[property]; - return hookData ? hookData[0] : property; - }, - getUnit: function(str, start) { - var unit = (str.substr(start || 0, 5).match(/^[a-z%]+/) || [])[0] || ''; - return unit && _inArray(CSS.Lists.units, unit) ? unit : ''; - }, - fixColors: function(str) { - return str.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g, function($0, $1, $2) { - return CSS.Lists.colorNames.hasOwnProperty($2) - ? ($1 || 'rgba(') + CSS.Lists.colorNames[$2] + ($1 ? '' : ',1)') - : $1 + $2; - }); - }, - cleanRootPropertyValue: function(rootProperty, rootPropertyValue) { - return ( - CSS.RegEx.valueUnwrap.test(rootPropertyValue) && - (rootPropertyValue = rootPropertyValue.match(CSS.RegEx.valueUnwrap)[1]), - CSS.Values.isCSSNullValue(rootPropertyValue) && - (rootPropertyValue = CSS.Hooks.templates[rootProperty][1]), - rootPropertyValue - ); - }, - extractValue: function(fullHookName, rootPropertyValue) { - var hookData = CSS.Hooks.registered[fullHookName]; - if (hookData) { - var hookRoot = hookData[0], - hookPosition = hookData[1]; - return (rootPropertyValue = CSS.Hooks.cleanRootPropertyValue( - hookRoot, - rootPropertyValue - )) - .toString() - .match(CSS.RegEx.valueSplit)[hookPosition]; - } - return rootPropertyValue; - }, - injectValue: function(fullHookName, hookValue, rootPropertyValue) { - var hookData = CSS.Hooks.registered[fullHookName]; - if (hookData) { - var rootPropertyValueParts, - hookRoot = hookData[0], - hookPosition = hookData[1]; - return ( - ((rootPropertyValueParts = (rootPropertyValue = CSS.Hooks.cleanRootPropertyValue( - hookRoot, - rootPropertyValue - )) - .toString() - .match(CSS.RegEx.valueSplit))[hookPosition] = hookValue), - rootPropertyValueParts.join(' ') - ); - } - return rootPropertyValue; - } - }, - Normalizations: { - registered: { - clip: function(type, element, propertyValue) { - switch (type) { - case 'name': - return 'clip'; - case 'extract': - var extracted; - return (extracted = CSS.RegEx.wrappedValueAlreadyExtracted.test( - propertyValue - ) - ? propertyValue - : (extracted = propertyValue.toString().match(CSS.RegEx.valueUnwrap)) - ? extracted[1].replace(/,(\s+)?/g, ' ') - : propertyValue); - case 'inject': - return 'rect(' + propertyValue + ')'; - } - }, - blur: function(type, element, propertyValue) { - switch (type) { - case 'name': - return Velocity.State.isFirefox ? 'filter' : '-webkit-filter'; - case 'extract': - var extracted = parseFloat(propertyValue); - if (!extracted && 0 !== extracted) { - var blurComponent = propertyValue - .toString() - .match(/blur\(([0-9]+[A-z]+)\)/i); - extracted = blurComponent ? blurComponent[1] : 0; - } - return extracted; - case 'inject': - return parseFloat(propertyValue) ? 'blur(' + propertyValue + ')' : 'none'; - } - }, - opacity: function(type, element, propertyValue) { - if (IE <= 8) - switch (type) { - case 'name': - return 'filter'; - case 'extract': - var extracted = propertyValue.toString().match(/alpha\(opacity=(.*)\)/i); - return (propertyValue = extracted ? extracted[1] / 100 : 1); - case 'inject': - return ( - (element.style.zoom = 1), - parseFloat(propertyValue) >= 1 - ? '' - : 'alpha(opacity=' + - parseInt(100 * parseFloat(propertyValue), 10) + - ')' - ); - } - else - switch (type) { - case 'name': - return 'opacity'; - case 'extract': - case 'inject': - return propertyValue; - } - } - }, - register: function() { - (IE && !(IE > 9)) || - Velocity.State.isGingerbread || - (CSS.Lists.transformsBase = CSS.Lists.transformsBase.concat( - CSS.Lists.transforms3D - )); - for (var i = 0; i < CSS.Lists.transformsBase.length; i++) - !(function() { - var transformName = CSS.Lists.transformsBase[i]; - CSS.Normalizations.registered[transformName] = function( - type, - element, - propertyValue - ) { - switch (type) { - case 'name': - return 'transform'; - case 'extract': - return Data(element) === undefined || - Data(element).transformCache[transformName] === undefined - ? /^scale/i.test(transformName) ? 1 : 0 - : Data(element).transformCache[transformName].replace(/[()]/g, ''); - case 'inject': - var invalid = !1; - switch (transformName.substr(0, transformName.length - 1)) { - case 'translate': - invalid = !/(%|px|em|rem|vw|vh|\d)$/i.test(propertyValue); - break; - case 'scal': - case 'scale': - Velocity.State.isAndroid && - Data(element).transformCache[transformName] === undefined && - propertyValue < 1 && - (propertyValue = 1), - (invalid = !/(\d)$/i.test(propertyValue)); - break; - case 'skew': - case 'rotate': - invalid = !/(deg|\d)$/i.test(propertyValue); - } - return ( - invalid || - (Data(element).transformCache[transformName] = - '(' + propertyValue + ')'), - Data(element).transformCache[transformName] - ); - } - }; - })(); - for (var j = 0; j < CSS.Lists.colors.length; j++) - !(function() { - var colorName = CSS.Lists.colors[j]; - CSS.Normalizations.registered[colorName] = function( - type, - element, - propertyValue - ) { - switch (type) { - case 'name': - return colorName; - case 'extract': - var extracted; - if (CSS.RegEx.wrappedValueAlreadyExtracted.test(propertyValue)) - extracted = propertyValue; - else { - var converted, - colorNames = { - black: 'rgb(0, 0, 0)', - blue: 'rgb(0, 0, 255)', - gray: 'rgb(128, 128, 128)', - green: 'rgb(0, 128, 0)', - red: 'rgb(255, 0, 0)', - white: 'rgb(255, 255, 255)' - }; - /^[A-z]+$/i.test(propertyValue) - ? (converted = - colorNames[propertyValue] !== undefined - ? colorNames[propertyValue] - : colorNames.black) - : CSS.RegEx.isHex.test(propertyValue) - ? (converted = - 'rgb(' + CSS.Values.hexToRgb(propertyValue).join(' ') + ')') - : /^rgba?\(/i.test(propertyValue) || - (converted = colorNames.black), - (extracted = (converted || propertyValue) - .toString() - .match(CSS.RegEx.valueUnwrap)[1] - .replace(/,(\s+)?/g, ' ')); - } - return ( - (!IE || IE > 8) && - 3 === extracted.split(' ').length && - (extracted += ' 1'), - extracted - ); - case 'inject': - return /^rgb/.test(propertyValue) - ? propertyValue - : (IE <= 8 - ? 4 === propertyValue.split(' ').length && - (propertyValue = propertyValue - .split(/\s+/) - .slice(0, 3) - .join(' ')) - : 3 === propertyValue.split(' ').length && - (propertyValue += ' 1'), - (IE <= 8 ? 'rgb' : 'rgba') + - '(' + - propertyValue.replace(/\s+/g, ',').replace(/\.(\d)+(?=,)/g, '') + - ')'); - } - }; - })(); - function augmentDimension(name, element, wantInner) { - if ( - ('border-box' === - CSS.getPropertyValue(element, 'boxSizing') - .toString() - .toLowerCase()) === - (wantInner || !1) - ) { - var i, - value, - augment = 0, - sides = 'width' === name ? ['Left', 'Right'] : ['Top', 'Bottom'], - fields = [ - 'padding' + sides[0], - 'padding' + sides[1], - 'border' + sides[0] + 'Width', - 'border' + sides[1] + 'Width' - ]; - for (i = 0; i < fields.length; i++) - (value = parseFloat(CSS.getPropertyValue(element, fields[i]))), - isNaN(value) || (augment += value); - return wantInner ? -augment : augment; - } - return 0; - } - function getDimension(name, wantInner) { - return function(type, element, propertyValue) { - switch (type) { - case 'name': - return name; - case 'extract': - return ( - parseFloat(propertyValue) + augmentDimension(name, element, wantInner) - ); - case 'inject': - return ( - parseFloat(propertyValue) - - augmentDimension(name, element, wantInner) + - 'px' - ); - } - }; - } - (CSS.Normalizations.registered.innerWidth = getDimension('width', !0)), - (CSS.Normalizations.registered.innerHeight = getDimension('height', !0)), - (CSS.Normalizations.registered.outerWidth = getDimension('width')), - (CSS.Normalizations.registered.outerHeight = getDimension('height')); - } - }, - Names: { - camelCase: function(property) { - return property.replace(/-(\w)/g, function(match, subMatch) { - return subMatch.toUpperCase(); - }); - }, - SVGAttribute: function(property) { - var SVGAttributes = 'width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2'; - return ( - (IE || (Velocity.State.isAndroid && !Velocity.State.isChrome)) && - (SVGAttributes += '|transform'), - new RegExp('^(' + SVGAttributes + ')$', 'i').test(property) - ); - }, - prefixCheck: function(property) { - if (Velocity.State.prefixMatches[property]) - return [Velocity.State.prefixMatches[property], !0]; - for ( - var vendors = ['', 'Webkit', 'Moz', 'ms', 'O'], - i = 0, - vendorsLength = vendors.length; - i < vendorsLength; - i++ - ) { - var propertyPrefixed; - if ( - ((propertyPrefixed = - 0 === i - ? property - : vendors[i] + - property.replace(/^\w/, function(match) { - return match.toUpperCase(); - })), - Type.isString(Velocity.State.prefixElement.style[propertyPrefixed])) - ) - return ( - (Velocity.State.prefixMatches[property] = propertyPrefixed), - [propertyPrefixed, !0] - ); - } - return [property, !1]; - } - }, - Values: { - hexToRgb: function(hex) { - var rgbParts; - return ( - (hex = hex.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, function(m, r, g, b) { - return r + r + g + g + b + b; - })), - (rgbParts = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex)) - ? [ - parseInt(rgbParts[1], 16), - parseInt(rgbParts[2], 16), - parseInt(rgbParts[3], 16) - ] - : [0, 0, 0] - ); - }, - isCSSNullValue: function(value) { - return !value || /^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(value); - }, - getUnitType: function(property) { - return /^(rotate|skew)/i.test(property) - ? 'deg' - : /(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test( - property - ) - ? '' - : 'px'; - }, - getDisplayType: function(element) { - var tagName = element && element.tagName.toString().toLowerCase(); - return /^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test( - tagName - ) - ? 'inline' - : /^(li)$/i.test(tagName) - ? 'list-item' - : /^(tr)$/i.test(tagName) - ? 'table-row' - : /^(table)$/i.test(tagName) - ? 'table' - : /^(tbody)$/i.test(tagName) ? 'table-row-group' : 'block'; - }, - addClass: function(element, className) { - if (element) - if (element.classList) element.classList.add(className); - else if (Type.isString(element.className)) - element.className += (element.className.length ? ' ' : '') + className; - else { - var currentClass = - element.getAttribute(IE <= 7 ? 'className' : 'class') || ''; - element.setAttribute( - 'class', - currentClass + (currentClass ? ' ' : '') + className - ); - } - }, - removeClass: function(element, className) { - if (element) - if (element.classList) element.classList.remove(className); - else if (Type.isString(element.className)) - element.className = element.className - .toString() - .replace( - new RegExp('(^|\\s)' + className.split(' ').join('|') + '(\\s|$)', 'gi'), - ' ' - ); - else { - var currentClass = - element.getAttribute(IE <= 7 ? 'className' : 'class') || ''; - element.setAttribute( - 'class', - currentClass.replace( - new RegExp('(^|s)' + className.split(' ').join('|') + '(s|$)', 'gi'), - ' ' - ) - ); - } - } - }, - getPropertyValue: function(element, property, rootPropertyValue, forceStyleLookup) { - function computePropertyValue(element, property) { - var computedValue = 0; - if (IE <= 8) computedValue = $.css(element, property); - else { - var toggleDisplay = !1; - /^(width|height)$/.test(property) && - 0 === CSS.getPropertyValue(element, 'display') && - ((toggleDisplay = !0), - CSS.setPropertyValue(element, 'display', CSS.Values.getDisplayType(element))); - var computedStyle, - revertDisplay = function() { - toggleDisplay && CSS.setPropertyValue(element, 'display', 'none'); - }; - if (!forceStyleLookup) { - if ( - 'height' === property && - 'border-box' !== - CSS.getPropertyValue(element, 'boxSizing') - .toString() - .toLowerCase() - ) { - var contentBoxHeight = - element.offsetHeight - - (parseFloat(CSS.getPropertyValue(element, 'borderTopWidth')) || 0) - - (parseFloat(CSS.getPropertyValue(element, 'borderBottomWidth')) || 0) - - (parseFloat(CSS.getPropertyValue(element, 'paddingTop')) || 0) - - (parseFloat(CSS.getPropertyValue(element, 'paddingBottom')) || 0); - return revertDisplay(), contentBoxHeight; - } - if ( - 'width' === property && - 'border-box' !== - CSS.getPropertyValue(element, 'boxSizing') - .toString() - .toLowerCase() - ) { - var contentBoxWidth = - element.offsetWidth - - (parseFloat(CSS.getPropertyValue(element, 'borderLeftWidth')) || 0) - - (parseFloat(CSS.getPropertyValue(element, 'borderRightWidth')) || 0) - - (parseFloat(CSS.getPropertyValue(element, 'paddingLeft')) || 0) - - (parseFloat(CSS.getPropertyValue(element, 'paddingRight')) || 0); - return revertDisplay(), contentBoxWidth; - } - } - (computedStyle = - Data(element) === undefined - ? window.getComputedStyle(element, null) - : Data(element).computedStyle - ? Data(element).computedStyle - : (Data(element).computedStyle = window.getComputedStyle(element, null))), - 'borderColor' === property && (property = 'borderTopColor'), - ('' !== - (computedValue = - 9 === IE && 'filter' === property - ? computedStyle.getPropertyValue(property) - : computedStyle[property]) && - null !== computedValue) || - (computedValue = element.style[property]), - revertDisplay(); - } - if ('auto' === computedValue && /^(top|right|bottom|left)$/i.test(property)) { - var position = computePropertyValue(element, 'position'); - ('fixed' === position || - ('absolute' === position && /top|left/i.test(property))) && - (computedValue = $(element).position()[property] + 'px'); - } - return computedValue; - } - var propertyValue; - if (CSS.Hooks.registered[property]) { - var hook = property, - hookRoot = CSS.Hooks.getRoot(hook); - rootPropertyValue === undefined && - (rootPropertyValue = CSS.getPropertyValue( - element, - CSS.Names.prefixCheck(hookRoot)[0] - )), - CSS.Normalizations.registered[hookRoot] && - (rootPropertyValue = CSS.Normalizations.registered[hookRoot]( - 'extract', - element, - rootPropertyValue - )), - (propertyValue = CSS.Hooks.extractValue(hook, rootPropertyValue)); - } else if (CSS.Normalizations.registered[property]) { - var normalizedPropertyName, normalizedPropertyValue; - 'transform' !== - (normalizedPropertyName = CSS.Normalizations.registered[property]( - 'name', - element - )) && - ((normalizedPropertyValue = computePropertyValue( - element, - CSS.Names.prefixCheck(normalizedPropertyName)[0] - )), - CSS.Values.isCSSNullValue(normalizedPropertyValue) && - CSS.Hooks.templates[property] && - (normalizedPropertyValue = CSS.Hooks.templates[property][1])), - (propertyValue = CSS.Normalizations.registered[property]( - 'extract', - element, - normalizedPropertyValue - )); - } - if (!/^[\d-]/.test(propertyValue)) { - var data = Data(element); - if (data && data.isSVG && CSS.Names.SVGAttribute(property)) - if (/^(height|width)$/i.test(property)) - try { - propertyValue = element.getBBox()[property]; - } catch (error) { - propertyValue = 0; - } - else propertyValue = element.getAttribute(property); - else - propertyValue = computePropertyValue( - element, - CSS.Names.prefixCheck(property)[0] - ); - } - return ( - CSS.Values.isCSSNullValue(propertyValue) && (propertyValue = 0), - Velocity.debug >= 2 && console.log('Get ' + property + ': ' + propertyValue), - propertyValue - ); - }, - setPropertyValue: function( - element, - property, - propertyValue, - rootPropertyValue, - scrollData - ) { - var propertyName = property; - if ('scroll' === property) - scrollData.container - ? (scrollData.container['scroll' + scrollData.direction] = propertyValue) - : 'Left' === scrollData.direction - ? window.scrollTo(propertyValue, scrollData.alternateValue) - : window.scrollTo(scrollData.alternateValue, propertyValue); - else if ( - CSS.Normalizations.registered[property] && - 'transform' === CSS.Normalizations.registered[property]('name', element) - ) - CSS.Normalizations.registered[property]('inject', element, propertyValue), - (propertyName = 'transform'), - (propertyValue = Data(element).transformCache[property]); - else { - if (CSS.Hooks.registered[property]) { - var hookName = property, - hookRoot = CSS.Hooks.getRoot(property); - (rootPropertyValue = - rootPropertyValue || CSS.getPropertyValue(element, hookRoot)), - (propertyValue = CSS.Hooks.injectValue( - hookName, - propertyValue, - rootPropertyValue - )), - (property = hookRoot); - } - if ( - (CSS.Normalizations.registered[property] && - ((propertyValue = CSS.Normalizations.registered[property]( - 'inject', - element, - propertyValue - )), - (property = CSS.Normalizations.registered[property]('name', element))), - (propertyName = CSS.Names.prefixCheck(property)[0]), - IE <= 8) - ) - try { - element.style[propertyName] = propertyValue; - } catch (error) { - Velocity.debug && - console.log( - 'Browser does not support [' + - propertyValue + - '] for [' + - propertyName + - ']' - ); - } - else { - var data = Data(element); - data && data.isSVG && CSS.Names.SVGAttribute(property) - ? element.setAttribute(property, propertyValue) - : (element.style[propertyName] = propertyValue); - } - Velocity.debug >= 2 && - console.log('Set ' + property + ' (' + propertyName + '): ' + propertyValue); - } - return [propertyName, propertyValue]; - }, - flushTransformCache: function(element) { - var transformString = '', - data = Data(element); - if ( - (IE || (Velocity.State.isAndroid && !Velocity.State.isChrome)) && - data && - data.isSVG - ) { - var getTransformFloat = function(transformProperty) { - return parseFloat(CSS.getPropertyValue(element, transformProperty)); - }, - SVGTransforms = { - translate: [getTransformFloat('translateX'), getTransformFloat('translateY')], - skewX: [getTransformFloat('skewX')], - skewY: [getTransformFloat('skewY')], - scale: - 1 !== getTransformFloat('scale') - ? [getTransformFloat('scale'), getTransformFloat('scale')] - : [getTransformFloat('scaleX'), getTransformFloat('scaleY')], - rotate: [getTransformFloat('rotateZ'), 0, 0] - }; - $.each(Data(element).transformCache, function(transformName) { - /^translate/i.test(transformName) - ? (transformName = 'translate') - : /^scale/i.test(transformName) - ? (transformName = 'scale') - : /^rotate/i.test(transformName) && (transformName = 'rotate'), - SVGTransforms[transformName] && - ((transformString += - transformName + '(' + SVGTransforms[transformName].join(' ') + ') '), - delete SVGTransforms[transformName]); - }); - } else { - var transformValue, perspective; - $.each(Data(element).transformCache, function(transformName) { - if ( - ((transformValue = Data(element).transformCache[transformName]), - 'transformPerspective' === transformName) - ) - return (perspective = transformValue), !0; - 9 === IE && 'rotateZ' === transformName && (transformName = 'rotate'), - (transformString += transformName + transformValue + ' '); - }), - perspective && - (transformString = 'perspective' + perspective + ' ' + transformString); - } - CSS.setPropertyValue(element, 'transform', transformString); - } - }); - CSS.Hooks.register(), - CSS.Normalizations.register(), - (Velocity.hook = function(elements, arg2, arg3) { - var value; - return ( - (elements = sanitizeElements(elements)), - $.each(elements, function(i, element) { - if ((Data(element) === undefined && Velocity.init(element), arg3 === undefined)) - value === undefined && (value = CSS.getPropertyValue(element, arg2)); - else { - var adjustedSet = CSS.setPropertyValue(element, arg2, arg3); - 'transform' === adjustedSet[0] && Velocity.CSS.flushTransformCache(element), - (value = adjustedSet); - } - }), - value - ); - }); - var animate = function() { - var opts; - function getChain() { - return isUtility ? promiseData.promise || null : elementsWrapped; - } - var isUtility, - elementsWrapped, - argumentIndex, - elements, - propertiesMap, - options, - syntacticSugar = - arguments[0] && - (arguments[0].p || - ($.isPlainObject(arguments[0].properties) && !arguments[0].properties.names) || - Type.isString(arguments[0].properties)); - Type.isWrapped(this) - ? ((isUtility = !1), - (argumentIndex = 0), - (elements = this), - (elementsWrapped = this)) - : ((isUtility = !0), - (argumentIndex = 1), - (elements = syntacticSugar - ? arguments[0].elements || arguments[0].e - : arguments[0])); - var promiseData = { promise: null, resolver: null, rejecter: null }; - if ( - (isUtility && - Velocity.Promise && - (promiseData.promise = new Velocity.Promise(function(resolve, reject) { - (promiseData.resolver = resolve), (promiseData.rejecter = reject); - })), - syntacticSugar - ? ((propertiesMap = arguments[0].properties || arguments[0].p), - (options = arguments[0].options || arguments[0].o)) - : ((propertiesMap = arguments[argumentIndex]), - (options = arguments[argumentIndex + 1])), - (elements = sanitizeElements(elements))) - ) { - var action, - elementsLength = elements.length, - elementsIndex = 0; - if ( - !/^(stop|finish|finishAll|pause|resume)$/i.test(propertiesMap) && - !$.isPlainObject(options) - ) { - options = {}; - for (var i = argumentIndex + 1; i < arguments.length; i++) - Type.isArray(arguments[i]) || - (!/^(fast|normal|slow)$/i.test(arguments[i]) && !/^\d/.test(arguments[i])) - ? Type.isString(arguments[i]) || Type.isArray(arguments[i]) - ? (options.easing = arguments[i]) - : Type.isFunction(arguments[i]) && (options.complete = arguments[i]) - : (options.duration = arguments[i]); - } - switch (propertiesMap) { - case 'scroll': - action = 'scroll'; - break; - case 'reverse': - action = 'reverse'; - break; - case 'pause': - var currentTime = new Date().getTime(); - return ( - $.each(elements, function(i, element) { - pauseDelayOnElement(element, currentTime); - }), - $.each(Velocity.State.calls, function(i, activeCall) { - var found = !1; - activeCall && - $.each(activeCall[1], function(k, activeElement) { - var queueName = options === undefined ? '' : options; - return ( - (!0 !== queueName && - activeCall[2].queue !== queueName && - (options !== undefined || !1 !== activeCall[2].queue)) || - ($.each(elements, function(l, element) { - if (element === activeElement) - return (activeCall[5] = { resume: !1 }), (found = !0), !1; - }), - !found && void 0) - ); - }); - }), - getChain() - ); - case 'resume': - return ( - $.each(elements, function(i, element) { - resumeDelayOnElement(element); - }), - $.each(Velocity.State.calls, function(i, activeCall) { - var found = !1; - activeCall && - $.each(activeCall[1], function(k, activeElement) { - var queueName = options === undefined ? '' : options; - return ( - (!0 !== queueName && - activeCall[2].queue !== queueName && - (options !== undefined || !1 !== activeCall[2].queue)) || - (!activeCall[5] || - ($.each(elements, function(l, element) { - if (element === activeElement) - return (activeCall[5].resume = !0), (found = !0), !1; - }), - !found && void 0)) - ); - }); - }), - getChain() - ); - case 'finish': - case 'finishAll': - case 'stop': - $.each(elements, function(i, element) { - Data(element) && - Data(element).delayTimer && - (clearTimeout(Data(element).delayTimer.setTimeout), - Data(element).delayTimer.next && Data(element).delayTimer.next(), - delete Data(element).delayTimer), - 'finishAll' !== propertiesMap || - (!0 !== options && !Type.isString(options)) || - ($.each($.queue(element, Type.isString(options) ? options : ''), function( - _, - item - ) { - Type.isFunction(item) && item(); - }), - $.queue(element, Type.isString(options) ? options : '', [])); - }); - var callsToStop = []; - return ( - $.each(Velocity.State.calls, function(i, activeCall) { - activeCall && - $.each(activeCall[1], function(k, activeElement) { - var queueName = options === undefined ? '' : options; - if ( - !0 !== queueName && - activeCall[2].queue !== queueName && - (options !== undefined || !1 !== activeCall[2].queue) - ) - return !0; - $.each(elements, function(l, element) { - if (element === activeElement) - if ( - ((!0 === options || Type.isString(options)) && - ($.each( - $.queue(element, Type.isString(options) ? options : ''), - function(_, item) { - Type.isFunction(item) && item(null, !0); - } - ), - $.queue(element, Type.isString(options) ? options : '', [])), - 'stop' === propertiesMap) - ) { - var data = Data(element); - data && - data.tweensContainer && - !1 !== queueName && - $.each(data.tweensContainer, function(m, activeTween) { - activeTween.endValue = activeTween.currentValue; - }), - callsToStop.push(i); - } else - ('finish' !== propertiesMap && 'finishAll' !== propertiesMap) || - (activeCall[2].duration = 1); - }); - }); - }), - 'stop' === propertiesMap && - ($.each(callsToStop, function(i, j) { - completeCall(j, !0); - }), - promiseData.promise && promiseData.resolver(elements)), - getChain() - ); - default: - if (!$.isPlainObject(propertiesMap) || Type.isEmptyObject(propertiesMap)) { - if (Type.isString(propertiesMap) && Velocity.Redirects[propertiesMap]) { - var durationOriginal = (opts = $.extend({}, options)).duration, - delayOriginal = opts.delay || 0; - return ( - !0 === opts.backwards && - (elements = $.extend(!0, [], elements).reverse()), - $.each(elements, function(elementIndex, element) { - parseFloat(opts.stagger) - ? (opts.delay = - delayOriginal + parseFloat(opts.stagger) * elementIndex) - : Type.isFunction(opts.stagger) && - (opts.delay = - delayOriginal + - opts.stagger.call(element, elementIndex, elementsLength)), - opts.drag && - ((opts.duration = - parseFloat(durationOriginal) || - (/^(callout|transition)/.test(propertiesMap) - ? 1e3 - : DURATION_DEFAULT)), - (opts.duration = Math.max( - opts.duration * - (opts.backwards - ? 1 - elementIndex / elementsLength - : (elementIndex + 1) / elementsLength), - 0.75 * opts.duration, - 200 - ))), - Velocity.Redirects[propertiesMap].call( - element, - element, - opts || {}, - elementIndex, - elementsLength, - elements, - promiseData.promise ? promiseData : undefined - ); - }), - getChain() - ); - } - var abortError = - 'Velocity: First argument (' + - propertiesMap + - ') was not a property map, a known action, or a registered redirect. Aborting.'; - return ( - promiseData.promise - ? promiseData.rejecter(new Error(abortError)) - : window.console && console.log(abortError), - getChain() - ); - } - action = 'start'; - } - var callUnitConversionData = { - lastParent: null, - lastPosition: null, - lastFontSize: null, - lastPercentToPxWidth: null, - lastPercentToPxHeight: null, - lastEmToPx: null, - remToPx: null, - vwToPx: null, - vhToPx: null - }, - call = []; - $.each(elements, function(i, element) { - Type.isNode(element) && - (function processElement(element, elementArrayIndex) { - var elementUnitConversionData, - index, - opts = $.extend({}, Velocity.defaults, options), - tweensContainer = {}; - switch ((Data(element) === undefined && Velocity.init(element), - parseFloat(opts.delay) && - !1 !== opts.queue && - $.queue(element, opts.queue, function(next, clearQueue) { - if (!0 === clearQueue) return !0; - Velocity.velocityQueueEntryFlag = !0; - var callIndex = Velocity.State.delayedElements.count++; - Velocity.State.delayedElements[callIndex] = element; - var index, - delayComplete = ((index = callIndex), - function() { - (Velocity.State.delayedElements[index] = !1), next(); - }); - (Data(element).delayBegin = new Date().getTime()), - (Data(element).delay = parseFloat(opts.delay)), - (Data(element).delayTimer = { - setTimeout: setTimeout(next, parseFloat(opts.delay)), - next: delayComplete - }); - }), - opts.duration.toString().toLowerCase())) { - case 'fast': - opts.duration = 200; - break; - case 'normal': - opts.duration = DURATION_DEFAULT; - break; - case 'slow': - opts.duration = 600; - break; - default: - opts.duration = parseFloat(opts.duration) || 1; - } - function buildQueue(next) { - var data, lastTweensContainer; - if (opts.begin && 0 === elementsIndex) - try { - opts.begin.call(elements, elements); - } catch (error) { - setTimeout(function() { - throw error; - }, 1); - } - if ('scroll' === action) { - var scrollPositionCurrent, - scrollPositionCurrentAlternate, - scrollPositionEnd, - scrollDirection = /^x$/i.test(opts.axis) ? 'Left' : 'Top', - scrollOffset = parseFloat(opts.offset) || 0; - opts.container - ? Type.isWrapped(opts.container) || Type.isNode(opts.container) - ? ((opts.container = opts.container[0] || opts.container), - (scrollPositionEnd = - (scrollPositionCurrent = - opts.container['scroll' + scrollDirection]) + - $(element).position()[scrollDirection.toLowerCase()] + - scrollOffset)) - : (opts.container = null) - : ((scrollPositionCurrent = - Velocity.State.scrollAnchor[ - Velocity.State['scrollProperty' + scrollDirection] - ]), - (scrollPositionCurrentAlternate = - Velocity.State.scrollAnchor[ - Velocity.State[ - 'scrollProperty' + ('Left' === scrollDirection ? 'Top' : 'Left') - ] - ]), - (scrollPositionEnd = - $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset)), - (tweensContainer = { - scroll: { - rootPropertyValue: !1, - startValue: scrollPositionCurrent, - currentValue: scrollPositionCurrent, - endValue: scrollPositionEnd, - unitType: '', - easing: opts.easing, - scrollData: { - container: opts.container, - direction: scrollDirection, - alternateValue: scrollPositionCurrentAlternate - } - }, - element: element - }), - Velocity.debug && - console.log( - 'tweensContainer (scroll): ', - tweensContainer.scroll, - element - ); - } else if ('reverse' === action) { - if (!(data = Data(element))) return; - if (!data.tweensContainer) return void $.dequeue(element, opts.queue); - 'none' === data.opts.display && (data.opts.display = 'auto'), - 'hidden' === data.opts.visibility && (data.opts.visibility = 'visible'), - (data.opts.loop = !1), - (data.opts.begin = null), - (data.opts.complete = null), - options.easing || delete opts.easing, - options.duration || delete opts.duration, - (opts = $.extend({}, data.opts, opts)), - (lastTweensContainer = $.extend( - !0, - {}, - data ? data.tweensContainer : null - )); - for (var lastTween in lastTweensContainer) - if ( - lastTweensContainer.hasOwnProperty(lastTween) && - 'element' !== lastTween - ) { - var lastStartValue = lastTweensContainer[lastTween].startValue; - (lastTweensContainer[lastTween].startValue = lastTweensContainer[ - lastTween - ].currentValue = - lastTweensContainer[lastTween].endValue), - (lastTweensContainer[lastTween].endValue = lastStartValue), - Type.isEmptyObject(options) || - (lastTweensContainer[lastTween].easing = opts.easing), - Velocity.debug && - console.log( - 'reverse tweensContainer (' + - lastTween + - '): ' + - JSON.stringify(lastTweensContainer[lastTween]), - element - ); - } - tweensContainer = lastTweensContainer; - } else if ('start' === action) { - (data = Data(element)) && - data.tweensContainer && - !0 === data.isAnimating && - (lastTweensContainer = data.tweensContainer); - var parsePropertyValue = function(valueData, skipResolvingEasing) { - var endValue, easing, startValue; - return ( - Type.isFunction(valueData) && - (valueData = valueData.call( - element, - elementArrayIndex, - elementsLength - )), - Type.isArray(valueData) - ? ((endValue = valueData[0]), - (!Type.isArray(valueData[1]) && /^[\d-]/.test(valueData[1])) || - Type.isFunction(valueData[1]) || - CSS.RegEx.isHex.test(valueData[1]) - ? (startValue = valueData[1]) - : (Type.isString(valueData[1]) && - !CSS.RegEx.isHex.test(valueData[1]) && - Velocity.Easings[valueData[1]]) || - Type.isArray(valueData[1]) - ? ((easing = skipResolvingEasing - ? valueData[1] - : getEasing(valueData[1], opts.duration)), - (startValue = valueData[2])) - : (startValue = valueData[1] || valueData[2])) - : (endValue = valueData), - skipResolvingEasing || (easing = easing || opts.easing), - Type.isFunction(endValue) && - (endValue = endValue.call( - element, - elementArrayIndex, - elementsLength - )), - Type.isFunction(startValue) && - (startValue = startValue.call( - element, - elementArrayIndex, - elementsLength - )), - [endValue || 0, easing, startValue] - ); - }, - fixPropertyValue = function(property, valueData) { - var pattern, - rootProperty = CSS.Hooks.getRoot(property), - rootPropertyValue = !1, - endValue = valueData[0], - easing = valueData[1], - startValue = valueData[2]; - if ( - (data && data.isSVG) || - 'tween' === rootProperty || - !1 !== CSS.Names.prefixCheck(rootProperty)[1] || - CSS.Normalizations.registered[rootProperty] !== undefined - ) { - ((opts.display !== undefined && - null !== opts.display && - 'none' !== opts.display) || - (opts.visibility !== undefined && - 'hidden' !== opts.visibility)) && - /opacity|filter/.test(property) && - !startValue && - 0 !== endValue && - (startValue = 0), - opts._cacheValues && - lastTweensContainer && - lastTweensContainer[property] - ? (startValue === undefined && - (startValue = - lastTweensContainer[property].endValue + - lastTweensContainer[property].unitType), - (rootPropertyValue = - data.rootPropertyValueCache[rootProperty])) - : CSS.Hooks.registered[property] - ? startValue === undefined - ? ((rootPropertyValue = CSS.getPropertyValue( - element, - rootProperty - )), - (startValue = CSS.getPropertyValue( - element, - property, - rootPropertyValue - ))) - : (rootPropertyValue = CSS.Hooks.templates[rootProperty][1]) - : startValue === undefined && - (startValue = CSS.getPropertyValue(element, property)); - var separatedValue, - endValueUnitType, - startValueUnitType, - operator = !1, - separateValue = function(property, value) { - var unitType, numericValue; - return ( - (numericValue = (value || '0') - .toString() - .toLowerCase() - .replace(/[%A-z]+$/, function(match) { - return (unitType = match), ''; - })), - unitType || (unitType = CSS.Values.getUnitType(property)), - [numericValue, unitType] - ); - }; - if ( - startValue !== endValue && - Type.isString(startValue) && - Type.isString(endValue) - ) { - pattern = ''; - var iStart = 0, - iEnd = 0, - aStart = [], - aEnd = [], - inCalc = 0, - inRGB = 0, - inRGBA = 0; - for ( - startValue = CSS.Hooks.fixColors(startValue), - endValue = CSS.Hooks.fixColors(endValue); - iStart < startValue.length && iEnd < endValue.length; - - ) { - var cStart = startValue[iStart], - cEnd = endValue[iEnd]; - if (/[\d\.-]/.test(cStart) && /[\d\.-]/.test(cEnd)) { - for ( - var tStart = cStart, - tEnd = cEnd, - dotStart = '.', - dotEnd = '.'; - ++iStart < startValue.length; - - ) { - if ((cStart = startValue[iStart]) === dotStart) - dotStart = '..'; - else if (!/\d/.test(cStart)) break; - tStart += cStart; - } - for (; ++iEnd < endValue.length; ) { - if ((cEnd = endValue[iEnd]) === dotEnd) dotEnd = '..'; - else if (!/\d/.test(cEnd)) break; - tEnd += cEnd; - } - var uStart = CSS.Hooks.getUnit(startValue, iStart), - uEnd = CSS.Hooks.getUnit(endValue, iEnd); - if ( - ((iStart += uStart.length), - (iEnd += uEnd.length), - uStart === uEnd) - ) - tStart === tEnd - ? (pattern += tStart + uStart) - : ((pattern += - '{' + - aStart.length + - (inRGB ? '!' : '') + - '}' + - uStart), - aStart.push(parseFloat(tStart)), - aEnd.push(parseFloat(tEnd))); - else { - var nStart = parseFloat(tStart), - nEnd = parseFloat(tEnd); - (pattern += - (inCalc < 5 ? 'calc' : '') + - '(' + - (nStart - ? '{' + aStart.length + (inRGB ? '!' : '') + '}' - : '0') + - uStart + - ' + ' + - (nEnd - ? '{' + - (aStart.length + (nStart ? 1 : 0)) + - (inRGB ? '!' : '') + - '}' - : '0') + - uEnd + - ')'), - nStart && (aStart.push(nStart), aEnd.push(0)), - nEnd && (aStart.push(0), aEnd.push(nEnd)); - } - } else { - if (cStart !== cEnd) { - inCalc = 0; - break; - } - (pattern += cStart), - iStart++, - iEnd++, - (0 === inCalc && 'c' === cStart) || - (1 === inCalc && 'a' === cStart) || - (2 === inCalc && 'l' === cStart) || - (3 === inCalc && 'c' === cStart) || - (inCalc >= 4 && '(' === cStart) - ? inCalc++ - : ((inCalc && inCalc < 5) || - (inCalc >= 4 && ')' === cStart && --inCalc < 5)) && - (inCalc = 0), - (0 === inRGB && 'r' === cStart) || - (1 === inRGB && 'g' === cStart) || - (2 === inRGB && 'b' === cStart) || - (3 === inRGB && 'a' === cStart) || - (inRGB >= 3 && '(' === cStart) - ? (3 === inRGB && 'a' === cStart && (inRGBA = 1), inRGB++) - : inRGBA && ',' === cStart - ? ++inRGBA > 3 && (inRGB = inRGBA = 0) - : ((inRGBA && inRGB < (inRGBA ? 5 : 4)) || - (inRGB >= (inRGBA ? 4 : 3) && - ')' === cStart && - --inRGB < (inRGBA ? 5 : 4))) && - (inRGB = inRGBA = 0); - } - } - (iStart === startValue.length && iEnd === endValue.length) || - (Velocity.debug && - console.error( - 'Trying to pattern match mis-matched strings ["' + - endValue + - '", "' + - startValue + - '"]' - ), - (pattern = undefined)), - pattern && - (aStart.length - ? (Velocity.debug && - console.log( - 'Pattern found "' + pattern + '" -> ', - aStart, - aEnd, - '[' + startValue + ',' + endValue + ']' - ), - (startValue = aStart), - (endValue = aEnd), - (endValueUnitType = startValueUnitType = '')) - : (pattern = undefined)); - } - if ( - (pattern || - ((startValue = (separatedValue = separateValue( - property, - startValue - ))[0]), - (startValueUnitType = separatedValue[1]), - (endValue = (separatedValue = separateValue( - property, - endValue - ))[0].replace(/^([+-\/*])=/, function(match, subMatch) { - return (operator = subMatch), ''; - })), - (endValueUnitType = separatedValue[1]), - (startValue = parseFloat(startValue) || 0), - (endValue = parseFloat(endValue) || 0), - '%' === endValueUnitType && - (/^(fontSize|lineHeight)$/.test(property) - ? ((endValue /= 100), (endValueUnitType = 'em')) - : /^scale/.test(property) - ? ((endValue /= 100), (endValueUnitType = '')) - : /(Red|Green|Blue)$/i.test(property) && - ((endValue = endValue / 100 * 255), - (endValueUnitType = '')))), - /[\/*]/.test(operator)) - ) - endValueUnitType = startValueUnitType; - else if ( - startValueUnitType !== endValueUnitType && - 0 !== startValue - ) - if (0 === endValue) endValueUnitType = startValueUnitType; - else { - elementUnitConversionData = - elementUnitConversionData || - (function() { - var sameRatioIndicators = { - myParent: element.parentNode || document.body, - position: CSS.getPropertyValue(element, 'position'), - fontSize: CSS.getPropertyValue(element, 'fontSize') - }, - samePercentRatio = - sameRatioIndicators.position === - callUnitConversionData.lastPosition && - sameRatioIndicators.myParent === - callUnitConversionData.lastParent, - sameEmRatio = - sameRatioIndicators.fontSize === - callUnitConversionData.lastFontSize; - (callUnitConversionData.lastParent = - sameRatioIndicators.myParent), - (callUnitConversionData.lastPosition = - sameRatioIndicators.position), - (callUnitConversionData.lastFontSize = - sameRatioIndicators.fontSize); - var unitRatios = {}; - if (sameEmRatio && samePercentRatio) - (unitRatios.emToPx = callUnitConversionData.lastEmToPx), - (unitRatios.percentToPxWidth = - callUnitConversionData.lastPercentToPxWidth), - (unitRatios.percentToPxHeight = - callUnitConversionData.lastPercentToPxHeight); - else { - var dummy = - data && data.isSVG - ? document.createElementNS( - 'http://www.w3.org/2000/svg', - 'rect' - ) - : document.createElement('div'); - Velocity.init(dummy), - sameRatioIndicators.myParent.appendChild(dummy), - $.each(['overflow', 'overflowX', 'overflowY'], function( - i, - property - ) { - Velocity.CSS.setPropertyValue( - dummy, - property, - 'hidden' - ); - }), - Velocity.CSS.setPropertyValue( - dummy, - 'position', - sameRatioIndicators.position - ), - Velocity.CSS.setPropertyValue( - dummy, - 'fontSize', - sameRatioIndicators.fontSize - ), - Velocity.CSS.setPropertyValue( - dummy, - 'boxSizing', - 'content-box' - ), - $.each( - [ - 'minWidth', - 'maxWidth', - 'width', - 'minHeight', - 'maxHeight', - 'height' - ], - function(i, property) { - Velocity.CSS.setPropertyValue( - dummy, - property, - '100%' - ); - } - ), - Velocity.CSS.setPropertyValue( - dummy, - 'paddingLeft', - '100em' - ), - (unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = - (parseFloat( - CSS.getPropertyValue(dummy, 'width', null, !0) - ) || 1) / 100), - (unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = - (parseFloat( - CSS.getPropertyValue(dummy, 'height', null, !0) - ) || 1) / 100), - (unitRatios.emToPx = callUnitConversionData.lastEmToPx = - (parseFloat( - CSS.getPropertyValue(dummy, 'paddingLeft') - ) || 1) / 100), - sameRatioIndicators.myParent.removeChild(dummy); - } - return ( - null === callUnitConversionData.remToPx && - (callUnitConversionData.remToPx = - parseFloat( - CSS.getPropertyValue(document.body, 'fontSize') - ) || 16), - null === callUnitConversionData.vwToPx && - ((callUnitConversionData.vwToPx = - parseFloat(window.innerWidth) / 100), - (callUnitConversionData.vhToPx = - parseFloat(window.innerHeight) / 100)), - (unitRatios.remToPx = callUnitConversionData.remToPx), - (unitRatios.vwToPx = callUnitConversionData.vwToPx), - (unitRatios.vhToPx = callUnitConversionData.vhToPx), - Velocity.debug >= 1 && - console.log( - 'Unit ratios: ' + JSON.stringify(unitRatios), - element - ), - unitRatios - ); - })(); - var axis = - /margin|padding|left|right|width|text|word|letter/i.test( - property - ) || - /X$/.test(property) || - 'x' === property - ? 'x' - : 'y'; - switch (startValueUnitType) { - case '%': - startValue *= - 'x' === axis - ? elementUnitConversionData.percentToPxWidth - : elementUnitConversionData.percentToPxHeight; - break; - case 'px': - break; - default: - startValue *= - elementUnitConversionData[startValueUnitType + 'ToPx']; - } - switch (endValueUnitType) { - case '%': - startValue *= - 1 / - ('x' === axis - ? elementUnitConversionData.percentToPxWidth - : elementUnitConversionData.percentToPxHeight); - break; - case 'px': - break; - default: - startValue *= - 1 / elementUnitConversionData[endValueUnitType + 'ToPx']; - } - } - switch (operator) { - case '+': - endValue = startValue + endValue; - break; - case '-': - endValue = startValue - endValue; - break; - case '*': - endValue *= startValue; - break; - case '/': - endValue = startValue / endValue; - } - (tweensContainer[property] = { - rootPropertyValue: rootPropertyValue, - startValue: startValue, - currentValue: startValue, - endValue: endValue, - unitType: endValueUnitType, - easing: easing - }), - pattern && (tweensContainer[property].pattern = pattern), - Velocity.debug && - console.log( - 'tweensContainer (' + - property + - '): ' + - JSON.stringify(tweensContainer[property]), - element - ); - } else - Velocity.debug && - console.log( - 'Skipping [' + - rootProperty + - '] due to a lack of browser support.' - ); - }; - for (var property in propertiesMap) - if (propertiesMap.hasOwnProperty(property)) { - var propertyName = CSS.Names.camelCase(property), - valueData = parsePropertyValue(propertiesMap[property]); - if (_inArray(CSS.Lists.colors, propertyName)) { - var endValue = valueData[0], - easing = valueData[1], - startValue = valueData[2]; - if (CSS.RegEx.isHex.test(endValue)) { - for ( - var colorComponents = ['Red', 'Green', 'Blue'], - endValueRGB = CSS.Values.hexToRgb(endValue), - startValueRGB = startValue - ? CSS.Values.hexToRgb(startValue) - : undefined, - i = 0; - i < colorComponents.length; - i++ - ) { - var dataArray = [endValueRGB[i]]; - easing && dataArray.push(easing), - startValueRGB !== undefined && - dataArray.push(startValueRGB[i]), - fixPropertyValue( - propertyName + colorComponents[i], - dataArray - ); - } - continue; - } - } - fixPropertyValue(propertyName, valueData); - } - tweensContainer.element = element; - } - tweensContainer.element && - (CSS.Values.addClass(element, 'velocity-animating'), - call.push(tweensContainer), - (data = Data(element)) && - ('' === opts.queue && - ((data.tweensContainer = tweensContainer), (data.opts = opts)), - (data.isAnimating = !0)), - elementsIndex === elementsLength - 1 - ? (Velocity.State.calls.push([ - call, - elements, - opts, - null, - promiseData.resolver, - null, - 0 - ]), - !1 === Velocity.State.isTicking && - ((Velocity.State.isTicking = !0), tick())) - : elementsIndex++); - } - if ( - (!1 !== Velocity.mock && - (!0 === Velocity.mock - ? (opts.duration = opts.delay = 1) - : ((opts.duration *= parseFloat(Velocity.mock) || 1), - (opts.delay *= parseFloat(Velocity.mock) || 1))), - (opts.easing = getEasing(opts.easing, opts.duration)), - opts.begin && !Type.isFunction(opts.begin) && (opts.begin = null), - opts.progress && !Type.isFunction(opts.progress) && (opts.progress = null), - opts.complete && !Type.isFunction(opts.complete) && (opts.complete = null), - opts.display !== undefined && - null !== opts.display && - ((opts.display = opts.display.toString().toLowerCase()), - 'auto' === opts.display && - (opts.display = Velocity.CSS.Values.getDisplayType(element))), - opts.visibility !== undefined && - null !== opts.visibility && - (opts.visibility = opts.visibility.toString().toLowerCase()), - (opts.mobileHA = - opts.mobileHA && - Velocity.State.isMobile && - !Velocity.State.isGingerbread), - !1 === opts.queue) - ) - if (opts.delay) { - var callIndex = Velocity.State.delayedElements.count++; - Velocity.State.delayedElements[callIndex] = element; - var delayComplete = ((index = callIndex), - function() { - (Velocity.State.delayedElements[index] = !1), buildQueue(); - }); - (Data(element).delayBegin = new Date().getTime()), - (Data(element).delay = parseFloat(opts.delay)), - (Data(element).delayTimer = { - setTimeout: setTimeout(buildQueue, parseFloat(opts.delay)), - next: delayComplete - }); - } else buildQueue(); - else - $.queue(element, opts.queue, function(next, clearQueue) { - if (!0 === clearQueue) - return promiseData.promise && promiseData.resolver(elements), !0; - (Velocity.velocityQueueEntryFlag = !0), buildQueue(); - }); - ('' !== opts.queue && 'fx' !== opts.queue) || - 'inprogress' === $.queue(element)[0] || - $.dequeue(element); - })(element, i); - }), - ((opts = $.extend({}, Velocity.defaults, options)).loop = parseInt( - opts.loop, - 10 - )); - var reverseCallsCount = 2 * opts.loop - 1; - if (opts.loop) - for (var x = 0; x < reverseCallsCount; x++) { - var reverseOptions = { delay: opts.delay, progress: opts.progress }; - x === reverseCallsCount - 1 && - ((reverseOptions.display = opts.display), - (reverseOptions.visibility = opts.visibility), - (reverseOptions.complete = opts.complete)), - animate(elements, 'reverse', reverseOptions); - } - return getChain(); - } - promiseData.promise && - (propertiesMap && options && !1 === options.promiseRejectEmpty - ? promiseData.resolver() - : promiseData.rejecter()); - }; - (Velocity = $.extend(animate, Velocity)).animate = animate; - var ticker = window.requestAnimationFrame || rAFShim; - if (!Velocity.State.isMobile && document.hidden !== undefined) { - var updateTicker = function() { - document.hidden - ? ((ticker = function(callback) { - return setTimeout(function() { - callback(!0); - }, 16); - }), - tick()) - : (ticker = window.requestAnimationFrame || rAFShim); - }; - updateTicker(), document.addEventListener('visibilitychange', updateTicker); - } - return ( - (global.Velocity = Velocity), - global !== window && - ((global.fn.velocity = animate), (global.fn.velocity.defaults = Velocity.defaults)), - $.each(['Down', 'Up'], function(i, direction) { - Velocity.Redirects['slide' + direction] = function( - element, - options, - elementsIndex, - elementsSize, - elements, - promiseData - ) { - var opts = $.extend({}, options), - begin = opts.begin, - complete = opts.complete, - inlineValues = {}, - computedValues = { - height: '', - marginTop: '', - marginBottom: '', - paddingTop: '', - paddingBottom: '' - }; - opts.display === undefined && - (opts.display = - 'Down' === direction - ? 'inline' === Velocity.CSS.Values.getDisplayType(element) - ? 'inline-block' - : 'block' - : 'none'), - (opts.begin = function() { - 0 === elementsIndex && begin && begin.call(elements, elements); - for (var property in computedValues) - if (computedValues.hasOwnProperty(property)) { - inlineValues[property] = element.style[property]; - var propertyValue = CSS.getPropertyValue(element, property); - computedValues[property] = - 'Down' === direction ? [propertyValue, 0] : [0, propertyValue]; - } - (inlineValues.overflow = element.style.overflow), - (element.style.overflow = 'hidden'); - }), - (opts.complete = function() { - for (var property in inlineValues) - inlineValues.hasOwnProperty(property) && - (element.style[property] = inlineValues[property]); - elementsIndex === elementsSize - 1 && - (complete && complete.call(elements, elements), - promiseData && promiseData.resolver(elements)); - }), - Velocity(element, computedValues, opts); - }; - }), - $.each(['In', 'Out'], function(i, direction) { - Velocity.Redirects['fade' + direction] = function( - element, - options, - elementsIndex, - elementsSize, - elements, - promiseData - ) { - var opts = $.extend({}, options), - complete = opts.complete, - propertiesMap = { opacity: 'In' === direction ? 1 : 0 }; - 0 !== elementsIndex && (opts.begin = null), - (opts.complete = - elementsIndex !== elementsSize - 1 - ? null - : function() { - complete && complete.call(elements, elements), - promiseData && promiseData.resolver(elements); - }), - opts.display === undefined && - (opts.display = 'In' === direction ? 'auto' : 'none'), - Velocity(this, propertiesMap, opts); - }; - }), - Velocity - ); - } - function Data(element) { - var response = $.data(element, 'velocity'); - return null === response ? undefined : response; - } - function pauseDelayOnElement(element, currentTime) { - var data = Data(element); - data && - data.delayTimer && - !data.delayPaused && - ((data.delayRemaining = data.delay - currentTime + data.delayBegin), - (data.delayPaused = !0), - clearTimeout(data.delayTimer.setTimeout)); - } - function resumeDelayOnElement(element, currentTime) { - var data = Data(element); - data && - data.delayTimer && - data.delayPaused && - ((data.delayPaused = !1), - (data.delayTimer.setTimeout = setTimeout(data.delayTimer.next, data.delayRemaining))); - } - function generateBezier(mX1, mY1, mX2, mY2) { - var NEWTON_ITERATIONS = 4, - NEWTON_MIN_SLOPE = 0.001, - SUBDIVISION_PRECISION = 1e-7, - SUBDIVISION_MAX_ITERATIONS = 10, - kSplineTableSize = 11, - kSampleStepSize = 1 / (kSplineTableSize - 1), - float32ArraySupported = 'Float32Array' in window; - if (4 !== arguments.length) return !1; - for (var i = 0; i < 4; ++i) - if ('number' != typeof arguments[i] || isNaN(arguments[i]) || !isFinite(arguments[i])) - return !1; - (mX1 = Math.min(mX1, 1)), - (mX2 = Math.min(mX2, 1)), - (mX1 = Math.max(mX1, 0)), - (mX2 = Math.max(mX2, 0)); - var mSampleValues = float32ArraySupported - ? new Float32Array(kSplineTableSize) - : new Array(kSplineTableSize); - function A(aA1, aA2) { - return 1 - 3 * aA2 + 3 * aA1; - } - function B(aA1, aA2) { - return 3 * aA2 - 6 * aA1; - } - function C(aA1) { - return 3 * aA1; - } - function calcBezier(aT, aA1, aA2) { - return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT; - } - function getSlope(aT, aA1, aA2) { - return 3 * A(aA1, aA2) * aT * aT + 2 * B(aA1, aA2) * aT + C(aA1); - } - function getTForX(aX) { - for ( - var intervalStart = 0, currentSample = 1, lastSample = kSplineTableSize - 1; - currentSample !== lastSample && mSampleValues[currentSample] <= aX; - ++currentSample - ) - intervalStart += kSampleStepSize; - var guessForT = - intervalStart + - (aX - mSampleValues[--currentSample]) / - (mSampleValues[currentSample + 1] - mSampleValues[currentSample]) * - kSampleStepSize, - initialSlope = getSlope(guessForT, mX1, mX2); - return initialSlope >= NEWTON_MIN_SLOPE - ? (function newtonRaphsonIterate(aX, aGuessT) { - for (var i = 0; i < NEWTON_ITERATIONS; ++i) { - var currentSlope = getSlope(aGuessT, mX1, mX2); - if (0 === currentSlope) return aGuessT; - aGuessT -= (calcBezier(aGuessT, mX1, mX2) - aX) / currentSlope; - } - return aGuessT; - })(aX, guessForT) - : 0 === initialSlope - ? guessForT - : (function binarySubdivide(aX, aA, aB) { - var currentX, - currentT, - i = 0; - do { - (currentX = calcBezier((currentT = aA + (aB - aA) / 2), mX1, mX2) - aX) > 0 - ? (aB = currentT) - : (aA = currentT); - } while ( - Math.abs(currentX) > SUBDIVISION_PRECISION && - ++i < SUBDIVISION_MAX_ITERATIONS - ); - return currentT; - })(aX, intervalStart, intervalStart + kSampleStepSize); - } - var _precomputed = !1; - function precompute() { - (_precomputed = !0), - (mX1 === mY1 && mX2 === mY2) || - (function calcSampleValues() { - for (var i = 0; i < kSplineTableSize; ++i) - mSampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2); - })(); - } - var f = function(aX) { - return ( - _precomputed || precompute(), - mX1 === mY1 && mX2 === mY2 - ? aX - : 0 === aX ? 0 : 1 === aX ? 1 : calcBezier(getTForX(aX), mY1, mY2) - ); - }; - f.getControlPoints = function() { - return [{ x: mX1, y: mY1 }, { x: mX2, y: mY2 }]; - }; - var str = 'generateBezier(' + [mX1, mY1, mX2, mY2] + ')'; - return ( - (f.toString = function() { - return str; - }), - f - ); - } - function getEasing(value, duration) { - var easing = value; - return ( - Type.isString(value) - ? Velocity.Easings[value] || (easing = !1) - : (easing = - Type.isArray(value) && 1 === value.length - ? function generateStep(steps) { - return function(p) { - return Math.round(p * steps) * (1 / steps); - }; - }.apply(null, value) - : Type.isArray(value) && 2 === value.length - ? generateSpringRK4.apply(null, value.concat([duration])) - : !(!Type.isArray(value) || 4 !== value.length) && - generateBezier.apply(null, value)), - !1 === easing && - (easing = Velocity.Easings[Velocity.defaults.easing] - ? Velocity.defaults.easing - : EASING_DEFAULT), - easing - ); - } - function tick(timestamp) { - if (timestamp) { - var timeCurrent = - Velocity.timestamp && !0 !== timestamp ? timestamp : performance.now(), - callsLength = Velocity.State.calls.length; - callsLength > 1e4 && - ((Velocity.State.calls = (function compactSparseArray(array) { - for ( - var index = -1, length = array ? array.length : 0, result = []; - ++index < length; - - ) { - var value = array[index]; - value && result.push(value); - } - return result; - })(Velocity.State.calls)), - (callsLength = Velocity.State.calls.length)); - for (var i = 0; i < callsLength; i++) - if (Velocity.State.calls[i]) { - var callContainer = Velocity.State.calls[i], - call = callContainer[0], - opts = callContainer[2], - timeStart = callContainer[3], - firstTick = !timeStart, - tweenDummyValue = null, - pauseObject = callContainer[5], - millisecondsEllapsed = callContainer[6]; - if ( - (timeStart || (timeStart = Velocity.State.calls[i][3] = timeCurrent - 16), - pauseObject) - ) { - if (!0 !== pauseObject.resume) continue; - (timeStart = callContainer[3] = Math.round( - timeCurrent - millisecondsEllapsed - 16 - )), - (callContainer[5] = null); - } - millisecondsEllapsed = callContainer[6] = timeCurrent - timeStart; - for ( - var percentComplete = Math.min(millisecondsEllapsed / opts.duration, 1), - j = 0, - callLength = call.length; - j < callLength; - j++ - ) { - var tweensContainer = call[j], - element = tweensContainer.element; - if (Data(element)) { - var transformPropertyExists = !1; - if ( - opts.display !== undefined && - null !== opts.display && - 'none' !== opts.display - ) { - if ('flex' === opts.display) { - $.each( - ['-webkit-box', '-moz-box', '-ms-flexbox', '-webkit-flex'], - function(i, flexValue) { - CSS.setPropertyValue(element, 'display', flexValue); - } - ); - } - CSS.setPropertyValue(element, 'display', opts.display); - } - opts.visibility !== undefined && - 'hidden' !== opts.visibility && - CSS.setPropertyValue(element, 'visibility', opts.visibility); - for (var property in tweensContainer) - if (tweensContainer.hasOwnProperty(property) && 'element' !== property) { - var currentValue, - tween = tweensContainer[property], - easing = Type.isString(tween.easing) - ? Velocity.Easings[tween.easing] - : tween.easing; - if (Type.isString(tween.pattern)) { - var patternReplace = - 1 === percentComplete - ? function($0, index, round) { - var result = tween.endValue[index]; - return round ? Math.round(result) : result; - } - : function($0, index, round) { - var startValue = tween.startValue[index], - tweenDelta = tween.endValue[index] - startValue, - result = - startValue + - tweenDelta * easing(percentComplete, opts, tweenDelta); - return round ? Math.round(result) : result; - }; - currentValue = tween.pattern.replace(/{(\d+)(!)?}/g, patternReplace); - } else if (1 === percentComplete) currentValue = tween.endValue; - else { - var tweenDelta = tween.endValue - tween.startValue; - currentValue = - tween.startValue + - tweenDelta * easing(percentComplete, opts, tweenDelta); - } - if (!firstTick && currentValue === tween.currentValue) continue; - if (((tween.currentValue = currentValue), 'tween' === property)) - tweenDummyValue = currentValue; - else { - var hookRoot; - if (CSS.Hooks.registered[property]) { - hookRoot = CSS.Hooks.getRoot(property); - var rootPropertyValueCache = Data(element).rootPropertyValueCache[ - hookRoot - ]; - rootPropertyValueCache && - (tween.rootPropertyValue = rootPropertyValueCache); - } - var adjustedSetData = CSS.setPropertyValue( - element, - property, - tween.currentValue + - (IE < 9 && 0 === parseFloat(currentValue) ? '' : tween.unitType), - tween.rootPropertyValue, - tween.scrollData - ); - CSS.Hooks.registered[property] && - (CSS.Normalizations.registered[hookRoot] - ? (Data(element).rootPropertyValueCache[ - hookRoot - ] = CSS.Normalizations.registered[hookRoot]( - 'extract', - null, - adjustedSetData[1] - )) - : (Data(element).rootPropertyValueCache[hookRoot] = - adjustedSetData[1])), - 'transform' === adjustedSetData[0] && (transformPropertyExists = !0); - } - } - opts.mobileHA && - Data(element).transformCache.translate3d === undefined && - ((Data(element).transformCache.translate3d = '(0px, 0px, 0px)'), - (transformPropertyExists = !0)), - transformPropertyExists && CSS.flushTransformCache(element); - } - } - opts.display !== undefined && - 'none' !== opts.display && - (Velocity.State.calls[i][2].display = !1), - opts.visibility !== undefined && - 'hidden' !== opts.visibility && - (Velocity.State.calls[i][2].visibility = !1), - opts.progress && - opts.progress.call( - callContainer[1], - callContainer[1], - percentComplete, - Math.max(0, timeStart + opts.duration - timeCurrent), - timeStart, - tweenDummyValue - ), - 1 === percentComplete && completeCall(i); - } - } - Velocity.State.isTicking && ticker(tick); - } - function completeCall(callIndex, isStopped) { - if (!Velocity.State.calls[callIndex]) return !1; - for ( - var call = Velocity.State.calls[callIndex][0], - elements = Velocity.State.calls[callIndex][1], - opts = Velocity.State.calls[callIndex][2], - resolver = Velocity.State.calls[callIndex][4], - remainingCallsExist = !1, - i = 0, - callLength = call.length; - i < callLength; - i++ - ) { - var element = call[i].element; - isStopped || - opts.loop || - ('none' === opts.display && CSS.setPropertyValue(element, 'display', opts.display), - 'hidden' === opts.visibility && - CSS.setPropertyValue(element, 'visibility', opts.visibility)); - var data = Data(element); - if ( - !0 !== opts.loop && - ($.queue(element)[1] === undefined || - !/\.velocityQueueEntryFlag/i.test($.queue(element)[1])) && - data - ) { - (data.isAnimating = !1), (data.rootPropertyValueCache = {}); - var transformHAPropertyExists = !1; - $.each(CSS.Lists.transforms3D, function(i, transformName) { - var defaultValue = /^scale/.test(transformName) ? 1 : 0, - currentValue = data.transformCache[transformName]; - data.transformCache[transformName] !== undefined && - new RegExp('^\\(' + defaultValue + '[^.]').test(currentValue) && - ((transformHAPropertyExists = !0), delete data.transformCache[transformName]); - }), - opts.mobileHA && - ((transformHAPropertyExists = !0), delete data.transformCache.translate3d), - transformHAPropertyExists && CSS.flushTransformCache(element), - CSS.Values.removeClass(element, 'velocity-animating'); - } - if (!isStopped && opts.complete && !opts.loop && i === callLength - 1) - try { - opts.complete.call(elements, elements); - } catch (error) { - setTimeout(function() { - throw error; - }, 1); - } - resolver && !0 !== opts.loop && resolver(elements), - data && - !0 === opts.loop && - !isStopped && - ($.each(data.tweensContainer, function(propertyName, tweenContainer) { - if ( - /^rotate/.test(propertyName) && - (parseFloat(tweenContainer.startValue) - - parseFloat(tweenContainer.endValue)) % - 360 == - 0 - ) { - var oldStartValue = tweenContainer.startValue; - (tweenContainer.startValue = tweenContainer.endValue), - (tweenContainer.endValue = oldStartValue); - } - /^backgroundPosition/.test(propertyName) && - 100 === parseFloat(tweenContainer.endValue) && - '%' === tweenContainer.unitType && - ((tweenContainer.endValue = 0), (tweenContainer.startValue = 100)); - }), - Velocity(element, 'reverse', { loop: !0, delay: opts.delay })), - !1 !== opts.queue && $.dequeue(element, opts.queue); - } - Velocity.State.calls[callIndex] = !1; - for (var j = 0, callsLength = Velocity.State.calls.length; j < callsLength; j++) - if (!1 !== Velocity.State.calls[j]) { - remainingCallsExist = !0; - break; - } - !1 === remainingCallsExist && - ((Velocity.State.isTicking = !1), - delete Velocity.State.calls, - (Velocity.State.calls = [])); - } - jQuery.fn.velocity = jQuery.fn.animate; - })(window.jQuery || window.Zepto || window, window, window ? window.document : void 0); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - Object.defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(); - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - } - function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - } - function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - } - var _ = { - each: __webpack_require__(1234), - extend: __webpack_require__(1235), - forEach: __webpack_require__(614), - isEqual: __webpack_require__(835), - keys: __webpack_require__(183), - omit: __webpack_require__(836), - pluck: __webpack_require__(1242) - }, - React = __webpack_require__(0), - ReactDOM = __webpack_require__(122), - PropTypes = __webpack_require__(2), - TransitionGroup = __webpack_require__(1255), - Velocity = __webpack_require__(619), - shimRequestAnimationFrame = - 'undefined' != typeof window && - (window.requestAnimationFrame || - window.webkitRequestAnimationFrame || - window.mozRequestAnimationFrame || - function(callback) { - window.setTimeout(callback, 0); - }); - shimRequestAnimationFrame = - 'undefined' != typeof window && shimRequestAnimationFrame.bind(window); - var shimCancelAnimationFrame = - 'undefined' != typeof window && - (window.cancelAnimationFrame || - window.webkitCancelAnimationFrame || - window.mozCancelAnimationFrame || - function(timeout) { - window.clearTimeout(timeout); - }); - shimCancelAnimationFrame = - 'undefined' != typeof window && shimCancelAnimationFrame.bind(window); - var VelocityTransitionGroupChild = (function(_React$Component) { - function VelocityTransitionGroupChild() { - return ( - _classCallCheck(this, VelocityTransitionGroupChild), - _possibleConstructorReturn( - this, - ( - VelocityTransitionGroupChild.__proto__ || - Object.getPrototypeOf(VelocityTransitionGroupChild) - ).apply(this, arguments) - ) - ); - } - return ( - _inherits(VelocityTransitionGroupChild, React.Component), - _createClass(VelocityTransitionGroupChild, [ - { - key: 'componentWillAppear', - value: function componentWillAppear(doneFn) { - this.props.willAppearFunc(ReactDOM.findDOMNode(this), doneFn); - } - }, - { - key: 'componentWillEnter', - value: function componentWillEnter(doneFn) { - this.props.willEnterFunc(ReactDOM.findDOMNode(this), doneFn); - } - }, - { - key: 'componentWillLeave', - value: function componentWillLeave(doneFn) { - this.props.willLeaveFunc(ReactDOM.findDOMNode(this), doneFn); - } - }, - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - Velocity.Utilities.removeData(ReactDOM.findDOMNode(this), ['velocity', 'fxqueue']); - } - }, - { - key: 'render', - value: function render() { - return React.Children.only(this.props.children); - } - } - ]), - VelocityTransitionGroupChild - ); - })(); - VelocityTransitionGroupChild.propTypes = { - children: PropTypes.element.isRequired, - willAppearFunc: PropTypes.func.isRequired, - willEnterFunc: PropTypes.func.isRequired, - willLeaveFunc: PropTypes.func.isRequired - }; - var VelocityTransitionGroup = (function(_React$Component2) { - function VelocityTransitionGroup(props) { - _classCallCheck(this, VelocityTransitionGroup); - var _this2 = _possibleConstructorReturn( - this, - ( - VelocityTransitionGroup.__proto__ || Object.getPrototypeOf(VelocityTransitionGroup) - ).call(this, props) - ); - return ( - (_this2._scheduledAnimationFrame = null), - (_this2._scheduledAnimationRunFrames = []), - (_this2._entering = []), - (_this2._leaving = []), - (_this2._timers = []), - (_this2._unmounted = !1), - (_this2.childWillAppear = _this2.childWillAppear.bind(_this2)), - (_this2.childWillEnter = _this2.childWillEnter.bind(_this2)), - (_this2.childWillLeave = _this2.childWillLeave.bind(_this2)), - (_this2._runAnimations = _this2._runAnimations.bind(_this2)), - (_this2._wrapChild = _this2._wrapChild.bind(_this2)), - _this2 - ); - } - return ( - _inherits(VelocityTransitionGroup, React.Component), - _createClass(VelocityTransitionGroup, [ - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this._scheduledAnimationFrame && - shimCancelAnimationFrame(this._scheduledAnimationFrame), - _.forEach(this._timers, function(timer) { - clearTimeout(timer); - }), - _.forEach(this._scheduledAnimationRunFrames, function(frame) { - shimCancelAnimationFrame(frame); - }), - (this._unmounted = !0); - } - }, - { - key: 'render', - value: function render() { - var transitionGroupProps = _.omit( - this.props, - _.keys(VelocityTransitionGroup.propTypes) - ); - return ( - this.constructor.disabledForTest || - Velocity.velocityReactServerShim || - (transitionGroupProps.childFactory = this._wrapChild), - React.createElement(TransitionGroup, transitionGroupProps, this.props.children) - ); - } - }, - { - key: 'childWillAppear', - value: function childWillAppear(node, doneFn) { - var _this3 = this; - if (this.props.runOnMount) this.childWillEnter(node, doneFn); - else { - this._finishAnimation(node, this.props.enter); - var t = setTimeout(function() { - var idx = _this3._timers.indexOf(t); - idx >= 0 && _this3._timers.splice(idx, 1), doneFn(); - }, 0); - this._timers.push(t); - } - } - }, - { - key: 'childWillEnter', - value: function childWillEnter(node, doneFn) { - this._shortCircuitAnimation(this.props.enter, doneFn) || - (this._finishAnimation(node, this.props.leave, { begin: void 0, complete: void 0 }), - _.forEach(this.props.enterHideStyle, function(val, key) { - Velocity.CSS.setPropertyValue(node, key, val); - }), - this._entering.push({ node: node, doneFn: doneFn }), - this._schedule()); - } - }, - { - key: 'childWillLeave', - value: function childWillLeave(node, doneFn) { - this._shortCircuitAnimation(this.props.leave, doneFn) || - (this._leaving.push({ node: node, doneFn: doneFn }), this._schedule()); - } - }, - { - key: '_shortCircuitAnimation', - value: function _shortCircuitAnimation(animationProp, doneFn) { - return ( - !(!document.hidden && null != this._parseAnimationProp(animationProp).animation) && - (doneFn(), !0) - ); - } - }, - { - key: '_schedule', - value: function _schedule() { - this._scheduledAnimationFrame || - (this._scheduledAnimationFrame = shimRequestAnimationFrame(this._runAnimations)); - } - }, - { - key: '_runAnimations', - value: function _runAnimations() { - (this._scheduledAnimationFrame = null), - this._runAnimation(!0, this._entering, this.props.enter), - this._runAnimation(!1, this._leaving, this.props.leave), - (this._entering = []), - (this._leaving = []); - } - }, - { - key: '_parseAnimationProp', - value: function _parseAnimationProp(animationProp) { - var animation, opts, style; - return ( - 'string' == typeof animationProp - ? ((animation = animationProp), (style = null), (opts = {})) - : ((animation = null != animationProp ? animationProp.animation : null), - (style = null != animationProp ? animationProp.style : null), - (opts = _.omit(animationProp, 'animation', 'style'))), - { animation: animation, style: style, opts: opts } - ); - } - }, - { - key: '_runAnimation', - value: function _runAnimation(entering, queue, animationProp) { - var _this4 = this; - if (0 !== queue.length) { - var nodes = _.pluck(queue, 'node'), - doneFns = _.pluck(queue, 'doneFn'), - parsedAnimation = this._parseAnimationProp(animationProp), - animation = parsedAnimation.animation, - style = parsedAnimation.style, - opts = parsedAnimation.opts; - entering && - ((_.isEqual(this.props.enterShowStyle, { display: '' }) && - (/^(fade|slide)/.test(animation) || /In$/.test(animation))) || - (style = _.extend({}, this.props.enterShowStyle, style))), - null != style && - _.each(style, function(value, key) { - Velocity.hook(nodes, key, value); - }); - var combinedCompleteFn, - doneFn = function doneFn() { - _this4._unmounted || - doneFns.map(function(doneFn) { - doneFn(); - }); - }; - if ( - (entering ? (doneFn(), (doneFn = null)) : Velocity(nodes, 'stop'), - doneFn && opts.complete) - ) { - var optsCompleteFn = opts.complete; - combinedCompleteFn = function combinedCompleteFn() { - doneFn(), optsCompleteFn.apply(this, arguments); - }; - } else combinedCompleteFn = doneFn || opts.complete; - var t = shimRequestAnimationFrame(function() { - var idx = _this4._scheduledAnimationRunFrames.indexOf(t); - idx >= 0 && _this4._scheduledAnimationRunFrames.splice(idx, 1), - Velocity( - nodes, - animation, - _.extend({}, opts, { complete: combinedCompleteFn }) - ); - }); - this._scheduledAnimationRunFrames.push(t); - } - } - }, - { - key: '_finishAnimation', - value: function _finishAnimation(node, animationProp, overrideOpts) { - var parsedAnimation = this._parseAnimationProp(animationProp), - animation = parsedAnimation.animation, - style = parsedAnimation.style, - opts = _.extend({}, parsedAnimation.opts, overrideOpts); - null != style && - _.each(style, function(value, key) { - Velocity.hook(node, key, value); - }), - null != animation && - (Velocity(node, animation, opts), Velocity(node, 'finishAll', !0)); - } - }, - { - key: '_wrapChild', - value: function _wrapChild(child) { - return React.createElement( - VelocityTransitionGroupChild, - { - willAppearFunc: this.childWillAppear, - willEnterFunc: this.childWillEnter, - willLeaveFunc: this.childWillLeave - }, - child - ); - } - } - ]), - VelocityTransitionGroup - ); - })(); - (VelocityTransitionGroup.disabledForTest = !1), - (VelocityTransitionGroup.propTypes = { - runOnMount: PropTypes.bool, - enter: PropTypes.any, - leave: PropTypes.any, - children: PropTypes.any, - enterHideStyle: PropTypes.object, - enterShowStyle: PropTypes.object - }), - (VelocityTransitionGroup.defaultProps = { - runOnMount: !1, - enter: null, - leave: null, - enterHideStyle: { display: 'none' }, - enterShowStyle: { display: '' } - }), - (module.exports = VelocityTransitionGroup); - }, - function(module, exports, __webpack_require__) { - module.exports = __webpack_require__(614); - }, - function(module, exports, __webpack_require__) { - module.exports = __webpack_require__(1236); - }, - function(module, exports, __webpack_require__) { - var assignWith = __webpack_require__(1237), - baseAssign = __webpack_require__(1238), - assign = __webpack_require__(1240)(function(object, source, customizer) { - return customizer ? assignWith(object, source, customizer) : baseAssign(object, source); - }); - module.exports = assign; - }, - function(module, exports, __webpack_require__) { - var keys = __webpack_require__(183); - module.exports = function assignWith(object, source, customizer) { - for (var index = -1, props = keys(source), length = props.length; ++index < length; ) { - var key = props[index], - value = object[key], - result = customizer(value, source[key], key, object, source); - ((result == result ? result === value : value != value) && - (void 0 !== value || key in object)) || - (object[key] = result); - } - return object; - }; - }, - function(module, exports, __webpack_require__) { - var baseCopy = __webpack_require__(1239), - keys = __webpack_require__(183); - module.exports = function baseAssign(object, source) { - return null == source ? object : baseCopy(source, keys(source), object); - }; - }, - function(module, exports) { - module.exports = function baseCopy(source, props, object) { - object || (object = {}); - for (var index = -1, length = props.length; ++index < length; ) { - var key = props[index]; - object[key] = source[key]; - } - return object; - }; - }, - function(module, exports, __webpack_require__) { - var bindCallback = __webpack_require__(273), - isIterateeCall = __webpack_require__(1241), - restParam = __webpack_require__(838); - module.exports = function createAssigner(assigner) { - return restParam(function(object, sources) { - var index = -1, - length = null == object ? 0 : sources.length, - customizer = length > 2 ? sources[length - 2] : void 0, - guard = length > 2 ? sources[2] : void 0, - thisArg = length > 1 ? sources[length - 1] : void 0; - for ( - 'function' == typeof customizer - ? ((customizer = bindCallback(customizer, thisArg, 5)), (length -= 2)) - : (length -= (customizer = 'function' == typeof thisArg ? thisArg : void 0) ? 1 : 0), - guard && - isIterateeCall(sources[0], sources[1], guard) && - ((customizer = length < 3 ? void 0 : customizer), (length = 1)); - ++index < length; - - ) { - var source = sources[index]; - source && assigner(object, source, customizer); - } - return object; - }); - }; - }, - function(module, exports, __webpack_require__) { - var isArrayLike = __webpack_require__(272), - isIndex = __webpack_require__(616), - isObject = __webpack_require__(87); - module.exports = function isIterateeCall(value, index, object) { - if (!isObject(object)) return !1; - var type = typeof index; - if ( - 'number' == type - ? isArrayLike(object) && isIndex(index, object.length) - : 'string' == type && index in object - ) { - var other = object[index]; - return value == value ? value === other : other != other; - } - return !1; - }; - }, - function(module, exports, __webpack_require__) { - var map = __webpack_require__(1243), - property = __webpack_require__(843); - module.exports = function pluck(collection, path) { - return map(collection, property(path)); - }; - }, - function(module, exports, __webpack_require__) { - var arrayMap = __webpack_require__(837), - baseCallback = __webpack_require__(1244), - baseMap = __webpack_require__(1254), - isArray = __webpack_require__(112); - module.exports = function map(collection, iteratee, thisArg) { - return (isArray(collection) ? arrayMap : baseMap)( - collection, - (iteratee = baseCallback(iteratee, thisArg, 3)) - ); - }; - }, - function(module, exports, __webpack_require__) { - var baseMatches = __webpack_require__(1245), - baseMatchesProperty = __webpack_require__(1249), - bindCallback = __webpack_require__(273), - identity = __webpack_require__(834), - property = __webpack_require__(843); - module.exports = function baseCallback(func, thisArg, argCount) { - var type = typeof func; - return 'function' == type - ? void 0 === thisArg ? func : bindCallback(func, thisArg, argCount) - : null == func - ? identity - : 'object' == type - ? baseMatches(func) - : void 0 === thisArg ? property(func) : baseMatchesProperty(func, thisArg); - }; - }, - function(module, exports, __webpack_require__) { - var baseIsMatch = __webpack_require__(1246), - getMatchData = __webpack_require__(1247), - toObject = __webpack_require__(111); - module.exports = function baseMatches(source) { - var matchData = getMatchData(source); - if (1 == matchData.length && matchData[0][2]) { - var key = matchData[0][0], - value = matchData[0][1]; - return function(object) { - return ( - null != object && object[key] === value && (void 0 !== value || key in toObject(object)) - ); - }; - } - return function(object) { - return baseIsMatch(object, matchData); - }; - }; - }, - function(module, exports, __webpack_require__) { - var baseIsEqual = __webpack_require__(618), - toObject = __webpack_require__(111); - module.exports = function baseIsMatch(object, matchData, customizer) { - var index = matchData.length, - length = index, - noCustomizer = !customizer; - if (null == object) return !length; - for (object = toObject(object); index--; ) { - var data = matchData[index]; - if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) return !1; - } - for (; ++index < length; ) { - var key = (data = matchData[index])[0], - objValue = object[key], - srcValue = data[1]; - if (noCustomizer && data[2]) { - if (void 0 === objValue && !(key in object)) return !1; - } else { - var result = customizer ? customizer(objValue, srcValue, key) : void 0; - if (!(void 0 === result ? baseIsEqual(srcValue, objValue, customizer, !0) : result)) - return !1; - } - } - return !0; - }; - }, - function(module, exports, __webpack_require__) { - var isStrictComparable = __webpack_require__(839), - pairs = __webpack_require__(1248); - module.exports = function getMatchData(object) { - for (var result = pairs(object), length = result.length; length--; ) - result[length][2] = isStrictComparable(result[length][1]); - return result; - }; - }, - function(module, exports, __webpack_require__) { - var keys = __webpack_require__(183), - toObject = __webpack_require__(111); - module.exports = function pairs(object) { - object = toObject(object); - for ( - var index = -1, props = keys(object), length = props.length, result = Array(length); - ++index < length; - - ) { - var key = props[index]; - result[index] = [key, object[key]]; - } - return result; - }; - }, - function(module, exports, __webpack_require__) { - var baseGet = __webpack_require__(840), - baseIsEqual = __webpack_require__(618), - baseSlice = __webpack_require__(1250), - isArray = __webpack_require__(112), - isKey = __webpack_require__(841), - isStrictComparable = __webpack_require__(839), - last = __webpack_require__(1251), - toObject = __webpack_require__(111), - toPath = __webpack_require__(842); - module.exports = function baseMatchesProperty(path, srcValue) { - var isArr = isArray(path), - isCommon = isKey(path) && isStrictComparable(srcValue), - pathKey = path + ''; - return ( - (path = toPath(path)), - function(object) { - if (null == object) return !1; - var key = pathKey; - if (((object = toObject(object)), (isArr || !isCommon) && !(key in object))) { - if ( - null == (object = 1 == path.length ? object : baseGet(object, baseSlice(path, 0, -1))) - ) - return !1; - (key = last(path)), (object = toObject(object)); - } - return object[key] === srcValue - ? void 0 !== srcValue || key in object - : baseIsEqual(srcValue, object[key], void 0, !0); - } - ); - }; - }, - function(module, exports) { - module.exports = function baseSlice(array, start, end) { - var index = -1, - length = array.length; - (start = null == start ? 0 : +start || 0) < 0 && - (start = -start > length ? 0 : length + start), - (end = void 0 === end || end > length ? length : +end || 0) < 0 && (end += length), - (length = start > end ? 0 : (end - start) >>> 0), - (start >>>= 0); - for (var result = Array(length); ++index < length; ) result[index] = array[index + start]; - return result; - }; - }, - function(module, exports) { - module.exports = function last(array) { - var length = array ? array.length : 0; - return length ? array[length - 1] : void 0; - }; - }, - function(module, exports) { - module.exports = function baseToString(value) { - return null == value ? '' : value + ''; - }; - }, - function(module, exports, __webpack_require__) { - var baseGet = __webpack_require__(840), - toPath = __webpack_require__(842); - module.exports = function basePropertyDeep(path) { - var pathKey = path + ''; - return ( - (path = toPath(path)), - function(object) { - return baseGet(object, path, pathKey); - } - ); - }; - }, - function(module, exports, __webpack_require__) { - var baseEach = __webpack_require__(830), - isArrayLike = __webpack_require__(272); - module.exports = function baseMap(collection, iteratee) { - var index = -1, - result = isArrayLike(collection) ? Array(collection.length) : []; - return ( - baseEach(collection, function(value, key, collection) { - result[++index] = iteratee(value, key, collection); - }), - result - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = !0; - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }, - _chainFunction2 = _interopRequireDefault(__webpack_require__(1256)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _ChildMapping = (_interopRequireDefault(__webpack_require__(806)), __webpack_require__(1257)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - _propTypes2.default.any, _propTypes2.default.func, _propTypes2.default.node; - var TransitionGroup = (function(_React$Component) { - function TransitionGroup(props, context) { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, TransitionGroup); - var _this = (function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - })(this, _React$Component.call(this, props, context)); - return ( - (_this.performAppear = function(key, component) { - (_this.currentlyTransitioningKeys[key] = !0), - component.componentWillAppear - ? component.componentWillAppear( - _this._handleDoneAppearing.bind(_this, key, component) - ) - : _this._handleDoneAppearing(key, component); - }), - (_this._handleDoneAppearing = function(key, component) { - component.componentDidAppear && component.componentDidAppear(), - delete _this.currentlyTransitioningKeys[key]; - var currentChildMapping = (0, _ChildMapping.getChildMapping)(_this.props.children); - (currentChildMapping && currentChildMapping.hasOwnProperty(key)) || - _this.performLeave(key, component); - }), - (_this.performEnter = function(key, component) { - (_this.currentlyTransitioningKeys[key] = !0), - component.componentWillEnter - ? component.componentWillEnter( - _this._handleDoneEntering.bind(_this, key, component) - ) - : _this._handleDoneEntering(key, component); - }), - (_this._handleDoneEntering = function(key, component) { - component.componentDidEnter && component.componentDidEnter(), - delete _this.currentlyTransitioningKeys[key]; - var currentChildMapping = (0, _ChildMapping.getChildMapping)(_this.props.children); - (currentChildMapping && currentChildMapping.hasOwnProperty(key)) || - _this.performLeave(key, component); - }), - (_this.performLeave = function(key, component) { - (_this.currentlyTransitioningKeys[key] = !0), - component.componentWillLeave - ? component.componentWillLeave(_this._handleDoneLeaving.bind(_this, key, component)) - : _this._handleDoneLeaving(key, component); - }), - (_this._handleDoneLeaving = function(key, component) { - component.componentDidLeave && component.componentDidLeave(), - delete _this.currentlyTransitioningKeys[key]; - var currentChildMapping = (0, _ChildMapping.getChildMapping)(_this.props.children); - currentChildMapping && currentChildMapping.hasOwnProperty(key) - ? _this.keysToEnter.push(key) - : _this.setState(function(state) { - var newChildren = _extends({}, state.children); - return delete newChildren[key], { children: newChildren }; - }); - }), - (_this.childRefs = Object.create(null)), - (_this.state = { children: (0, _ChildMapping.getChildMapping)(props.children) }), - _this - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(TransitionGroup, _React$Component), - (TransitionGroup.prototype.componentWillMount = function componentWillMount() { - (this.currentlyTransitioningKeys = {}), (this.keysToEnter = []), (this.keysToLeave = []); - }), - (TransitionGroup.prototype.componentDidMount = function componentDidMount() { - var initialChildMapping = this.state.children; - for (var key in initialChildMapping) - initialChildMapping[key] && this.performAppear(key, this.childRefs[key]); - }), - (TransitionGroup.prototype.componentWillReceiveProps = function componentWillReceiveProps( - nextProps - ) { - var nextChildMapping = (0, _ChildMapping.getChildMapping)(nextProps.children), - prevChildMapping = this.state.children; - this.setState({ - children: (0, _ChildMapping.mergeChildMappings)(prevChildMapping, nextChildMapping) - }); - for (var key in nextChildMapping) { - var hasPrev = prevChildMapping && prevChildMapping.hasOwnProperty(key); - !nextChildMapping[key] || - hasPrev || - this.currentlyTransitioningKeys[key] || - this.keysToEnter.push(key); - } - for (var _key in prevChildMapping) { - var hasNext = nextChildMapping && nextChildMapping.hasOwnProperty(_key); - !prevChildMapping[_key] || - hasNext || - this.currentlyTransitioningKeys[_key] || - this.keysToLeave.push(_key); - } - }), - (TransitionGroup.prototype.componentDidUpdate = function componentDidUpdate() { - var _this2 = this, - keysToEnter = this.keysToEnter; - (this.keysToEnter = []), - keysToEnter.forEach(function(key) { - return _this2.performEnter(key, _this2.childRefs[key]); - }); - var keysToLeave = this.keysToLeave; - (this.keysToLeave = []), - keysToLeave.forEach(function(key) { - return _this2.performLeave(key, _this2.childRefs[key]); - }); - }), - (TransitionGroup.prototype.render = function render() { - var _this3 = this, - childrenToRender = [], - _loop = function _loop(key) { - var child = _this3.state.children[key]; - if (child) { - var isCallbackRef = 'string' != typeof child.ref, - factoryChild = _this3.props.childFactory(child), - ref = function ref(r) { - _this3.childRefs[key] = r; - }; - factoryChild === child && - isCallbackRef && - (ref = (0, _chainFunction2.default)(child.ref, ref)), - childrenToRender.push( - _react2.default.cloneElement(factoryChild, { key: key, ref: ref }) - ); - } - }; - for (var key in this.state.children) _loop(key); - var props = _extends({}, this.props); - return ( - delete props.transitionLeave, - delete props.transitionName, - delete props.transitionAppear, - delete props.transitionEnter, - delete props.childFactory, - delete props.transitionLeaveTimeout, - delete props.transitionEnterTimeout, - delete props.transitionAppearTimeout, - delete props.component, - _react2.default.createElement(this.props.component, props, childrenToRender) - ); - }), - TransitionGroup - ); - })(_react2.default.Component); - (TransitionGroup.displayName = 'TransitionGroup'), - (TransitionGroup.propTypes = {}), - (TransitionGroup.defaultProps = { - component: 'span', - childFactory: function childFactory(child) { - return child; - } - }), - (exports.default = TransitionGroup), - (module.exports = exports.default); - }, - function(module, exports) { - module.exports = function chain() { - for (var len = arguments.length, args = [], i = 0; i < len; i++) args[i] = arguments[i]; - if ( - 0 !== - (args = args.filter(function(fn) { - return null != fn; - })).length - ) - return 1 === args.length - ? args[0] - : args.reduce(function(current, next) { - return function chainedFunction() { - current.apply(this, arguments), next.apply(this, arguments); - }; - }); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - (exports.__esModule = !0), - (exports.getChildMapping = function getChildMapping(children) { - if (!children) return children; - var result = {}; - return ( - _react.Children.map(children, function(child) { - return child; - }).forEach(function(child) { - result[child.key] = child; - }), - result - ); - }), - (exports.mergeChildMappings = function mergeChildMappings(prev, next) { - function getValueForKey(key) { - return next.hasOwnProperty(key) ? next[key] : prev[key]; - } - (prev = prev || {}), (next = next || {}); - var nextKeysPending = {}, - pendingKeys = []; - for (var prevKey in prev) - next.hasOwnProperty(prevKey) - ? pendingKeys.length && ((nextKeysPending[prevKey] = pendingKeys), (pendingKeys = [])) - : pendingKeys.push(prevKey); - var i = void 0, - childMapping = {}; - for (var nextKey in next) { - if (nextKeysPending.hasOwnProperty(nextKey)) - for (i = 0; i < nextKeysPending[nextKey].length; i++) { - var pendingNextKey = nextKeysPending[nextKey][i]; - childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey); - } - childMapping[nextKey] = getValueForKey(nextKey); - } - for (i = 0; i < pendingKeys.length; i++) - childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]); - return childMapping; - }); - var _react = __webpack_require__(0); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _ = { isObject: __webpack_require__(87) }, - Velocity = __webpack_require__(619), - effectCounter = 0; - module.exports = { - registerEffect: function registerEffect(suffix, animation) { - _.isObject(suffix) && ((animation = suffix), (suffix = '')); - var key = 'VelocityHelper.animation.' + effectCounter++ + suffix; - if (Velocity.velocityReactServerShim) return key; - if (void 0 === Velocity.RegisterEffect) - throw "Velocity.RegisterEffect not found. You need to require 'velocity-animate/velocity.ui' at a top level for UI Pack."; - return Velocity.RegisterEffect(key, animation), key; - } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _assign2 = _interopRequireDefault(__webpack_require__(86)), - _keys2 = _interopRequireDefault(__webpack_require__(34)), - _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _shallowequal2 = _interopRequireDefault(__webpack_require__(802)), - _deepEqual2 = _interopRequireDefault(__webpack_require__(146)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var NodeHeader = (function(_React$Component) { - function NodeHeader() { - return ( - (0, _classCallCheck3.default)(this, NodeHeader), - (0, _possibleConstructorReturn3.default)( - this, - (NodeHeader.__proto__ || (0, _getPrototypeOf2.default)(NodeHeader)).apply( - this, - arguments - ) - ) - ); - } - return ( - (0, _inherits3.default)(NodeHeader, _React$Component), - (0, _createClass3.default)(NodeHeader, [ - { - key: 'shouldComponentUpdate', - value: function shouldComponentUpdate(nextProps) { - for ( - var props = this.props, nextPropKeys = (0, _keys2.default)(nextProps), i = 0; - i < nextPropKeys.length; - i++ - ) { - var key = nextPropKeys[i]; - if ('animations' !== key) - if (!(0, _shallowequal2.default)(props[key], nextProps[key])) return !0; - } - return !(0, _deepEqual2.default)(props.animations, nextProps.animations, { - strict: !0 - }); - } - }, - { - key: 'render', - value: function render() { - var _props = this.props, - animations = _props.animations, - decorators = _props.decorators, - node = _props.node, - onClick = _props.onClick, - style = _props.style, - active = node.active, - terminal = !node.children, - container = [style.link, active ? style.activeLink : null], - headerStyles = (0, _assign2.default)({ container: container }, style); - return _react2.default.createElement(decorators.Container, { - animations: animations, - decorators: decorators, - node: node, - onClick: onClick, - style: headerStyles, - terminal: terminal - }); - } - } - ]), - NodeHeader - ); - })(_react2.default.Component); - (NodeHeader.propTypes = { - style: _propTypes2.default.object.isRequired, - decorators: _propTypes2.default.object.isRequired, - animations: _propTypes2.default.oneOfType([ - _propTypes2.default.object, - _propTypes2.default.bool - ]).isRequired, - node: _propTypes2.default.object.isRequired, - onClick: _propTypes2.default.func - }), - (exports.default = NodeHeader); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _enhancer2 = _interopRequireDefault(__webpack_require__(845)), - _plugins2 = _interopRequireDefault(__webpack_require__(854)), - _style2 = _interopRequireDefault(__webpack_require__(1299)), - _styleRoot2 = _interopRequireDefault(__webpack_require__(1300)), - _getState2 = _interopRequireDefault(__webpack_require__(851)), - _keyframes2 = _interopRequireDefault(__webpack_require__(1302)); - __webpack_require__(846); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function Radium(ComposedComponent) { - return (0, _enhancer2.default)(ComposedComponent); - } - (Radium.Plugins = _plugins2.default), - (Radium.Style = _style2.default), - (Radium.StyleRoot = _styleRoot2.default), - (Radium.getState = _getState2.default), - (Radium.keyframes = _keyframes2.default), - (exports.default = Radium), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function appendImportantToEachValue(style) { - return (0, _mapObject2.default)(style, function(result, key) { - return (0, _appendPxIfNeeded2.default)(key, style[key]) + ' !important'; - }); - }); - var _appendPxIfNeeded2 = _interopRequireDefault(__webpack_require__(847)), - _mapObject2 = _interopRequireDefault(__webpack_require__(848)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _camelCaseRegex = /([a-z])?([A-Z])/g, - _camelCaseReplacer = function _camelCaseReplacer(match, p1, p2) { - return (p1 || '') + '-' + p2.toLowerCase(); - }; - (exports.default = function camelCasePropsToDashCase(prefixedStyle) { - return Object.keys(prefixedStyle).reduce(function(result, key) { - var dashCaseKey = (function _camelCaseToDashCase(s) { - return s.replace(_camelCaseRegex, _camelCaseReplacer); - })(key); - return ( - /^ms-/.test(dashCaseKey) && (dashCaseKey = '-' + dashCaseKey), - (result[dashCaseKey] = prefixedStyle[key]), - result - ); - }, {}); - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - Object.defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(), - _prefixAll3 = _interopRequireDefault(__webpack_require__(1264)), - _getBrowserInformation2 = _interopRequireDefault(__webpack_require__(1275)), - _getPrefixedKeyframes2 = _interopRequireDefault(__webpack_require__(1276)), - _capitalizeString2 = _interopRequireDefault(__webpack_require__(623)), - _sortPrefixedStyle2 = _interopRequireDefault(__webpack_require__(850)), - _prefixProps2 = _interopRequireDefault(__webpack_require__(1277)), - _position2 = _interopRequireDefault(__webpack_require__(1278)), - _calc2 = _interopRequireDefault(__webpack_require__(1279)), - _zoomCursor2 = _interopRequireDefault(__webpack_require__(1280)), - _grabCursor2 = _interopRequireDefault(__webpack_require__(1281)), - _flex2 = _interopRequireDefault(__webpack_require__(1282)), - _sizing2 = _interopRequireDefault(__webpack_require__(1283)), - _gradient2 = _interopRequireDefault(__webpack_require__(1284)), - _transition2 = _interopRequireDefault(__webpack_require__(1285)), - _flexboxIE2 = _interopRequireDefault(__webpack_require__(1287)), - _flexboxOld2 = _interopRequireDefault(__webpack_require__(1288)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var plugins = [ - _position2.default, - _calc2.default, - _zoomCursor2.default, - _grabCursor2.default, - _sizing2.default, - _gradient2.default, - _transition2.default, - _flexboxIE2.default, - _flexboxOld2.default, - _flex2.default - ], - Prefixer = (function() { - function Prefixer() { - var _this = this, - options = arguments.length <= 0 || void 0 === arguments[0] ? {} : arguments[0]; - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, Prefixer); - var defaultUserAgent = 'undefined' != typeof navigator ? navigator.userAgent : void 0; - if ( - ((this._userAgent = options.userAgent || defaultUserAgent), - (this._keepUnprefixed = options.keepUnprefixed || !1), - (this._browserInfo = (0, _getBrowserInformation2.default)(this._userAgent)), - !this._browserInfo || !this._browserInfo.prefix) - ) - return (this._usePrefixAllFallback = !0), !1; - (this.cssPrefix = this._browserInfo.prefix.css), - (this.jsPrefix = this._browserInfo.prefix.inline), - (this.prefixedKeyframes = (0, _getPrefixedKeyframes2.default)(this._browserInfo)); - var data = this._browserInfo.browser && _prefixProps2.default[this._browserInfo.browser]; - data - ? ((this._requiresPrefix = Object.keys(data) - .filter(function(key) { - return data[key] >= _this._browserInfo.version; - }) - .reduce(function(result, name) { - return (result[name] = !0), result; - }, {})), - (this._hasPropsRequiringPrefix = Object.keys(this._requiresPrefix).length > 0)) - : (this._usePrefixAllFallback = !0); - } - return ( - _createClass( - Prefixer, - [ - { - key: 'prefix', - value: function prefix(styles) { - var _this2 = this; - return this._usePrefixAllFallback - ? (0, _prefixAll3.default)(styles) - : this._hasPropsRequiringPrefix - ? (Object.keys(styles).forEach(function(property) { - var value = styles[property]; - value instanceof Object && !Array.isArray(value) - ? (styles[property] = _this2.prefix(value)) - : _this2._requiresPrefix[property] && - ((styles[ - _this2.jsPrefix + (0, _capitalizeString2.default)(property) - ] = value), - _this2._keepUnprefixed || delete styles[property]); - }), - Object.keys(styles).forEach(function(property) { - [].concat(styles[property]).forEach(function(value) { - plugins.forEach(function(plugin) { - !(function assignStyles(base) { - var extend = - arguments.length <= 1 || void 0 === arguments[1] - ? {} - : arguments[1], - value = arguments[2], - keepUnprefixed = arguments[3]; - Object.keys(extend).forEach(function(property) { - var baseValue = base[property]; - Array.isArray(baseValue) - ? [].concat(extend[property]).forEach(function(val) { - -1 === base[property].indexOf(val) && - base[property].splice( - baseValue.indexOf(value), - keepUnprefixed ? 0 : 1, - val - ); - }) - : (base[property] = extend[property]); - }); - })( - styles, - plugin({ - property: property, - value: value, - styles: styles, - browserInfo: _this2._browserInfo, - prefix: { - js: _this2.jsPrefix, - css: _this2.cssPrefix, - keyframes: _this2.prefixedKeyframes - }, - keepUnprefixed: _this2._keepUnprefixed, - requiresPrefix: _this2._requiresPrefix - }), - value, - _this2._keepUnprefixed - ); - }); - }); - }), - (0, _sortPrefixedStyle2.default)(styles)) - : styles; - } - } - ], - [ - { - key: 'prefixAll', - value: function prefixAll(styles) { - return (0, _prefixAll3.default)(styles); - } - } - ] - ), - Prefixer - ); - })(); - (exports.default = Prefixer), (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function prefixAll(styles) { - Object.keys(styles).forEach(function(property) { - var value = styles[property]; - value instanceof Object && !Array.isArray(value) - ? (styles[property] = prefixAll(value)) - : Object.keys(_prefixProps2.default).forEach(function(prefix) { - var properties = _prefixProps2.default[prefix]; - properties[property] && - (styles[prefix + (0, _capitalizeString2.default)(property)] = value); - }); - }); - Object.keys(styles).forEach(function(property) { - [].concat(styles[property]).forEach(function(value, index) { - plugins.forEach(function(plugin) { - return (function assignStyles(base) { - var extend = arguments.length <= 1 || void 0 === arguments[1] ? {} : arguments[1]; - Object.keys(extend).forEach(function(property) { - var baseValue = base[property]; - Array.isArray(baseValue) - ? [].concat(extend[property]).forEach(function(value) { - var valueIndex = baseValue.indexOf(value); - valueIndex > -1 && base[property].splice(valueIndex, 1), - base[property].push(value); - }) - : (base[property] = extend[property]); - }); - })(styles, plugin(property, value)); - }); - }); - }); - return (0, _sortPrefixedStyle2.default)(styles); - }); - var _prefixProps2 = _interopRequireDefault(__webpack_require__(849)), - _capitalizeString2 = _interopRequireDefault(__webpack_require__(623)), - _sortPrefixedStyle2 = _interopRequireDefault(__webpack_require__(850)), - _position2 = _interopRequireDefault(__webpack_require__(1266)), - _calc2 = _interopRequireDefault(__webpack_require__(1267)), - _cursor2 = _interopRequireDefault(__webpack_require__(1268)), - _flex2 = _interopRequireDefault(__webpack_require__(1269)), - _sizing2 = _interopRequireDefault(__webpack_require__(1270)), - _gradient2 = _interopRequireDefault(__webpack_require__(1271)), - _transition2 = _interopRequireDefault(__webpack_require__(1272)), - _flexboxIE2 = _interopRequireDefault(__webpack_require__(1273)), - _flexboxOld2 = _interopRequireDefault(__webpack_require__(1274)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var plugins = [ - _position2.default, - _calc2.default, - _cursor2.default, - _sizing2.default, - _gradient2.default, - _transition2.default, - _flexboxIE2.default, - _flexboxOld2.default, - _flex2.default - ]; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function(property) { - return null !== property.match(/^(Webkit|Moz|O|ms)/); - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function position(property, value) { - if ('position' === property && 'sticky' === value) - return { position: ['-webkit-sticky', 'sticky'] }; - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function calc(property, value) { - if ( - 'string' == typeof value && - !(0, _isPrefixedValue2.default)(value) && - value.indexOf('calc(') > -1 - ) - return (0, _joinPrefixedValue2.default)(property, value, function(prefix, value) { - return value.replace(/calc\(/g, prefix + 'calc('); - }); - }); - var _joinPrefixedValue2 = _interopRequireDefault(__webpack_require__(303)), - _isPrefixedValue2 = _interopRequireDefault(__webpack_require__(624)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function cursor(property, value) { - if ('cursor' === property && values[value]) - return (0, _joinPrefixedValue2.default)(property, value); - }); - var _joinPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(303)); - var values = { 'zoom-in': !0, 'zoom-out': !0, grab: !0, grabbing: !0 }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function flex(property, value) { - if ('display' === property && values[value]) - return { - display: ['-webkit-box', '-moz-box', '-ms-' + value + 'box', '-webkit-' + value, value] - }; - }); - var values = { flex: !0, 'inline-flex': !0 }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function sizing(property, value) { - if (properties[property] && values[value]) - return (0, _joinPrefixedValue2.default)(property, value); - }); - var _joinPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(303)); - var properties = { - maxHeight: !0, - maxWidth: !0, - width: !0, - height: !0, - columnWidth: !0, - minWidth: !0, - minHeight: !0 - }, - values = { - 'min-content': !0, - 'max-content': !0, - 'fill-available': !0, - 'fit-content': !0, - 'contain-floats': !0 - }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function gradient(property, value) { - if ( - 'string' == typeof value && - !(0, _isPrefixedValue2.default)(value) && - null !== value.match(values) - ) - return (0, _joinPrefixedValue2.default)(property, value); - }); - var _joinPrefixedValue2 = _interopRequireDefault(__webpack_require__(303)), - _isPrefixedValue2 = _interopRequireDefault(__webpack_require__(624)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var values = /linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function transition(property, value) { - if ('string' == typeof value && properties[property]) { - var _ref2, - outputValue = (function prefixValue(value) { - if ((0, _isPrefixedValue2.default)(value)) return value; - var multipleValues = value.split(/,(?![^()]*(?:\([^()]*\))?\))/g); - return ( - multipleValues.forEach(function(val, index) { - multipleValues[index] = Object.keys(_prefixProps2.default).reduce(function( - out, - prefix - ) { - var dashCasePrefix = '-' + prefix.toLowerCase() + '-'; - return ( - Object.keys(_prefixProps2.default[prefix]).forEach(function(prop) { - var dashCaseProperty = (0, _hyphenateStyleName2.default)(prop); - val.indexOf(dashCaseProperty) > -1 && - 'order' !== dashCaseProperty && - (out = - val.replace(dashCaseProperty, dashCasePrefix + dashCaseProperty) + - ',' + - out); - }), - out - ); - }, - val); - }), - multipleValues.join(',') - ); - })(value), - webkitOutput = outputValue - .split(/,(?![^()]*(?:\([^()]*\))?\))/g) - .filter(function(value) { - return null === value.match(/-moz-|-ms-/); - }) - .join(','); - return property.indexOf('Webkit') > -1 - ? _defineProperty({}, property, webkitOutput) - : (_defineProperty( - (_ref2 = {}), - 'Webkit' + (0, _capitalizeString2.default)(property), - webkitOutput - ), - _defineProperty(_ref2, property, outputValue), - _ref2); - } - }); - var _hyphenateStyleName2 = _interopRequireDefault(__webpack_require__(612)), - _capitalizeString2 = _interopRequireDefault(__webpack_require__(623)), - _isPrefixedValue2 = _interopRequireDefault(__webpack_require__(624)), - _prefixProps2 = _interopRequireDefault(__webpack_require__(849)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function _defineProperty(obj, key, value) { - return ( - key in obj - ? Object.defineProperty(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (obj[key] = value), - obj - ); - } - var properties = { - transition: !0, - transitionProperty: !0, - WebkitTransition: !0, - WebkitTransitionProperty: !0 - }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function flexboxIE(property, value) { - if (alternativeProps[property]) - return (function _defineProperty(obj, key, value) { - key in obj - ? Object.defineProperty(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (obj[key] = value); - return obj; - })({}, alternativeProps[property], alternativeValues[value] || value); - }); - var alternativeValues = { - 'space-around': 'distribute', - 'space-between': 'justify', - 'flex-start': 'start', - 'flex-end': 'end' - }, - alternativeProps = { - alignContent: 'msFlexLinePack', - alignSelf: 'msFlexItemAlign', - alignItems: 'msFlexAlign', - justifyContent: 'msFlexPack', - order: 'msFlexOrder', - flexGrow: 'msFlexPositive', - flexShrink: 'msFlexNegative', - flexBasis: 'msPreferredSize' - }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function flexboxOld(property, value) { - if ('flexDirection' === property && 'string' == typeof value) - return { - WebkitBoxOrient: value.indexOf('column') > -1 ? 'vertical' : 'horizontal', - WebkitBoxDirection: value.indexOf('reverse') > -1 ? 'reverse' : 'normal' - }; - if (alternativeProps[property]) - return (function _defineProperty(obj, key, value) { - key in obj - ? Object.defineProperty(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (obj[key] = value); - return obj; - })({}, alternativeProps[property], alternativeValues[value] || value); - }); - var alternativeValues = { - 'space-around': 'justify', - 'space-between': 'justify', - 'flex-start': 'start', - 'flex-end': 'end', - 'wrap-reverse': 'multiple', - wrap: 'multiple' - }, - alternativeProps = { - alignItems: 'WebkitBoxAlign', - justifyContent: 'WebkitBoxPack', - flexWrap: 'WebkitBoxLines' - }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _bowser2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(810)); - var vendorPrefixes = { - Webkit: [ - 'chrome', - 'safari', - 'ios', - 'android', - 'phantom', - 'opera', - 'webos', - 'blackberry', - 'bada', - 'tizen', - 'chromium', - 'vivaldi' - ], - Moz: ['firefox', 'seamonkey', 'sailfish'], - ms: ['msie', 'msedge'] - }, - browsers = { - chrome: [['chrome'], ['chromium']], - safari: [['safari']], - firefox: [['firefox']], - edge: [['msedge']], - opera: [['opera'], ['vivaldi']], - ios_saf: [['ios', 'mobile'], ['ios', 'tablet']], - ie: [['msie']], - op_mini: [['opera', 'mobile'], ['opera', 'tablet']], - and_uc: [['android', 'mobile'], ['android', 'tablet']], - android: [['android', 'mobile'], ['android', 'tablet']] - }; - (exports.default = function(userAgent) { - if (!userAgent) return !1; - var info = _bowser2.default._detect(userAgent); - return ( - Object.keys(vendorPrefixes).forEach(function(prefix) { - vendorPrefixes[prefix].forEach(function(browser) { - info[browser] && - (info.prefix = { inline: prefix, css: '-' + prefix.toLowerCase() + '-' }); - }); - }), - (info.browser = (function browserByInfo(info) { - if (info.firefox) return 'firefox'; - var name = ''; - return ( - Object.keys(browsers).forEach(function(browser) { - browsers[browser].forEach(function(condition) { - var match = 0; - condition.forEach(function(single) { - info[single] && (match += 1); - }), - condition.length === match && (name = browser); - }); - }), - name - ); - })(info)), - (info.version = info.version - ? parseFloat(info.version) - : parseInt(parseFloat(info.osversion), 10)), - (info.osversion = parseFloat(info.osversion)), - 'ios_saf' === info.browser && - info.version > info.osversion && - ((info.version = info.osversion), (info.safari = !0)), - 'android' === info.browser && - info.chrome && - info.version > 37 && - (info.browser = 'and_chr'), - 'android' === info.browser && info.osversion < 5 && (info.version = info.osversion), - info - ); - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function(_ref) { - var browser = _ref.browser, - version = _ref.version, - prefix = _ref.prefix, - prefixedKeyframes = 'keyframes'; - return ( - (('chrome' === browser && version < 43) || - (('safari' === browser || 'ios_saf' === browser) && version < 9) || - ('opera' === browser && version < 30) || - ('android' === browser && version <= 4.4) || - 'and_uc' === browser) && - (prefixedKeyframes = prefix.css + prefixedKeyframes), - prefixedKeyframes - ); - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = { - chrome: { - transform: 35, - transformOrigin: 35, - transformOriginX: 35, - transformOriginY: 35, - backfaceVisibility: 35, - perspective: 35, - perspectiveOrigin: 35, - transformStyle: 35, - transformOriginZ: 35, - animation: 42, - animationDelay: 42, - animationDirection: 42, - animationFillMode: 42, - animationDuration: 42, - animationIterationCount: 42, - animationName: 42, - animationPlayState: 42, - animationTimingFunction: 42, - appearance: 55, - userSelect: 55, - fontKerning: 32, - textEmphasisPosition: 55, - textEmphasis: 55, - textEmphasisStyle: 55, - textEmphasisColor: 55, - boxDecorationBreak: 55, - clipPath: 55, - maskImage: 55, - maskMode: 55, - maskRepeat: 55, - maskPosition: 55, - maskClip: 55, - maskOrigin: 55, - maskSize: 55, - maskComposite: 55, - mask: 55, - maskBorderSource: 55, - maskBorderMode: 55, - maskBorderSlice: 55, - maskBorderWidth: 55, - maskBorderOutset: 55, - maskBorderRepeat: 55, - maskBorder: 55, - maskType: 55, - textDecorationStyle: 55, - textDecorationSkip: 55, - textDecorationLine: 55, - textDecorationColor: 55, - filter: 52, - fontFeatureSettings: 47, - breakAfter: 49, - breakBefore: 49, - breakInside: 49, - columnCount: 49, - columnFill: 49, - columnGap: 49, - columnRule: 49, - columnRuleColor: 49, - columnRuleStyle: 49, - columnRuleWidth: 49, - columns: 49, - columnSpan: 49, - columnWidth: 49 - }, - safari: { - flex: 8, - flexBasis: 8, - flexDirection: 8, - flexGrow: 8, - flexFlow: 8, - flexShrink: 8, - flexWrap: 8, - alignContent: 8, - alignItems: 8, - alignSelf: 8, - justifyContent: 8, - order: 8, - transition: 6, - transitionDelay: 6, - transitionDuration: 6, - transitionProperty: 6, - transitionTimingFunction: 6, - transform: 8, - transformOrigin: 8, - transformOriginX: 8, - transformOriginY: 8, - backfaceVisibility: 8, - perspective: 8, - perspectiveOrigin: 8, - transformStyle: 8, - transformOriginZ: 8, - animation: 8, - animationDelay: 8, - animationDirection: 8, - animationFillMode: 8, - animationDuration: 8, - animationIterationCount: 8, - animationName: 8, - animationPlayState: 8, - animationTimingFunction: 8, - appearance: 10, - userSelect: 10, - backdropFilter: 10, - fontKerning: 9, - scrollSnapType: 10, - scrollSnapPointsX: 10, - scrollSnapPointsY: 10, - scrollSnapDestination: 10, - scrollSnapCoordinate: 10, - textEmphasisPosition: 7, - textEmphasis: 7, - textEmphasisStyle: 7, - textEmphasisColor: 7, - boxDecorationBreak: 10, - clipPath: 10, - maskImage: 10, - maskMode: 10, - maskRepeat: 10, - maskPosition: 10, - maskClip: 10, - maskOrigin: 10, - maskSize: 10, - maskComposite: 10, - mask: 10, - maskBorderSource: 10, - maskBorderMode: 10, - maskBorderSlice: 10, - maskBorderWidth: 10, - maskBorderOutset: 10, - maskBorderRepeat: 10, - maskBorder: 10, - maskType: 10, - textDecorationStyle: 10, - textDecorationSkip: 10, - textDecorationLine: 10, - textDecorationColor: 10, - shapeImageThreshold: 10, - shapeImageMargin: 10, - shapeImageOutside: 10, - filter: 9, - hyphens: 10, - flowInto: 10, - flowFrom: 10, - breakBefore: 8, - breakAfter: 8, - breakInside: 8, - regionFragment: 10, - columnCount: 8, - columnFill: 8, - columnGap: 8, - columnRule: 8, - columnRuleColor: 8, - columnRuleStyle: 8, - columnRuleWidth: 8, - columns: 8, - columnSpan: 8, - columnWidth: 8 - }, - firefox: { - appearance: 51, - userSelect: 51, - boxSizing: 28, - textAlignLast: 48, - textDecorationStyle: 35, - textDecorationSkip: 35, - textDecorationLine: 35, - textDecorationColor: 35, - tabSize: 51, - hyphens: 42, - fontFeatureSettings: 33, - breakAfter: 51, - breakBefore: 51, - breakInside: 51, - columnCount: 51, - columnFill: 51, - columnGap: 51, - columnRule: 51, - columnRuleColor: 51, - columnRuleStyle: 51, - columnRuleWidth: 51, - columns: 51, - columnSpan: 51, - columnWidth: 51 - }, - opera: { - flex: 16, - flexBasis: 16, - flexDirection: 16, - flexGrow: 16, - flexFlow: 16, - flexShrink: 16, - flexWrap: 16, - alignContent: 16, - alignItems: 16, - alignSelf: 16, - justifyContent: 16, - order: 16, - transform: 22, - transformOrigin: 22, - transformOriginX: 22, - transformOriginY: 22, - backfaceVisibility: 22, - perspective: 22, - perspectiveOrigin: 22, - transformStyle: 22, - transformOriginZ: 22, - animation: 29, - animationDelay: 29, - animationDirection: 29, - animationFillMode: 29, - animationDuration: 29, - animationIterationCount: 29, - animationName: 29, - animationPlayState: 29, - animationTimingFunction: 29, - appearance: 41, - userSelect: 41, - fontKerning: 19, - textEmphasisPosition: 41, - textEmphasis: 41, - textEmphasisStyle: 41, - textEmphasisColor: 41, - boxDecorationBreak: 41, - clipPath: 41, - maskImage: 41, - maskMode: 41, - maskRepeat: 41, - maskPosition: 41, - maskClip: 41, - maskOrigin: 41, - maskSize: 41, - maskComposite: 41, - mask: 41, - maskBorderSource: 41, - maskBorderMode: 41, - maskBorderSlice: 41, - maskBorderWidth: 41, - maskBorderOutset: 41, - maskBorderRepeat: 41, - maskBorder: 41, - maskType: 41, - textDecorationStyle: 41, - textDecorationSkip: 41, - textDecorationLine: 41, - textDecorationColor: 41, - filter: 39, - fontFeatureSettings: 34, - breakAfter: 36, - breakBefore: 36, - breakInside: 36, - columnCount: 36, - columnFill: 36, - columnGap: 36, - columnRule: 36, - columnRuleColor: 36, - columnRuleStyle: 36, - columnRuleWidth: 36, - columns: 36, - columnSpan: 36, - columnWidth: 36 - }, - ie: { - flex: 10, - flexDirection: 10, - flexFlow: 10, - flexWrap: 10, - transform: 9, - transformOrigin: 9, - transformOriginX: 9, - transformOriginY: 9, - userSelect: 11, - wrapFlow: 11, - wrapThrough: 11, - wrapMargin: 11, - scrollSnapType: 11, - scrollSnapPointsX: 11, - scrollSnapPointsY: 11, - scrollSnapDestination: 11, - scrollSnapCoordinate: 11, - touchAction: 10, - hyphens: 11, - flowInto: 11, - flowFrom: 11, - breakBefore: 11, - breakAfter: 11, - breakInside: 11, - regionFragment: 11, - gridTemplateColumns: 11, - gridTemplateRows: 11, - gridTemplateAreas: 11, - gridTemplate: 11, - gridAutoColumns: 11, - gridAutoRows: 11, - gridAutoFlow: 11, - grid: 11, - gridRowStart: 11, - gridColumnStart: 11, - gridRowEnd: 11, - gridRow: 11, - gridColumn: 11, - gridColumnEnd: 11, - gridColumnGap: 11, - gridRowGap: 11, - gridArea: 11, - gridGap: 11, - textSizeAdjust: 11 - }, - edge: { - userSelect: 14, - wrapFlow: 14, - wrapThrough: 14, - wrapMargin: 14, - scrollSnapType: 14, - scrollSnapPointsX: 14, - scrollSnapPointsY: 14, - scrollSnapDestination: 14, - scrollSnapCoordinate: 14, - hyphens: 14, - flowInto: 14, - flowFrom: 14, - breakBefore: 14, - breakAfter: 14, - breakInside: 14, - regionFragment: 14, - gridTemplateColumns: 14, - gridTemplateRows: 14, - gridTemplateAreas: 14, - gridTemplate: 14, - gridAutoColumns: 14, - gridAutoRows: 14, - gridAutoFlow: 14, - grid: 14, - gridRowStart: 14, - gridColumnStart: 14, - gridRowEnd: 14, - gridRow: 14, - gridColumn: 14, - gridColumnEnd: 14, - gridColumnGap: 14, - gridRowGap: 14, - gridArea: 14, - gridGap: 14 - }, - ios_saf: { - flex: 8.1, - flexBasis: 8.1, - flexDirection: 8.1, - flexGrow: 8.1, - flexFlow: 8.1, - flexShrink: 8.1, - flexWrap: 8.1, - alignContent: 8.1, - alignItems: 8.1, - alignSelf: 8.1, - justifyContent: 8.1, - order: 8.1, - transition: 6, - transitionDelay: 6, - transitionDuration: 6, - transitionProperty: 6, - transitionTimingFunction: 6, - transform: 8.1, - transformOrigin: 8.1, - transformOriginX: 8.1, - transformOriginY: 8.1, - backfaceVisibility: 8.1, - perspective: 8.1, - perspectiveOrigin: 8.1, - transformStyle: 8.1, - transformOriginZ: 8.1, - animation: 8.1, - animationDelay: 8.1, - animationDirection: 8.1, - animationFillMode: 8.1, - animationDuration: 8.1, - animationIterationCount: 8.1, - animationName: 8.1, - animationPlayState: 8.1, - animationTimingFunction: 8.1, - appearance: 9.3, - userSelect: 9.3, - backdropFilter: 9.3, - fontKerning: 9.3, - scrollSnapType: 9.3, - scrollSnapPointsX: 9.3, - scrollSnapPointsY: 9.3, - scrollSnapDestination: 9.3, - scrollSnapCoordinate: 9.3, - boxDecorationBreak: 9.3, - clipPath: 9.3, - maskImage: 9.3, - maskMode: 9.3, - maskRepeat: 9.3, - maskPosition: 9.3, - maskClip: 9.3, - maskOrigin: 9.3, - maskSize: 9.3, - maskComposite: 9.3, - mask: 9.3, - maskBorderSource: 9.3, - maskBorderMode: 9.3, - maskBorderSlice: 9.3, - maskBorderWidth: 9.3, - maskBorderOutset: 9.3, - maskBorderRepeat: 9.3, - maskBorder: 9.3, - maskType: 9.3, - textSizeAdjust: 9.3, - textDecorationStyle: 9.3, - textDecorationSkip: 9.3, - textDecorationLine: 9.3, - textDecorationColor: 9.3, - shapeImageThreshold: 9.3, - shapeImageMargin: 9.3, - shapeImageOutside: 9.3, - filter: 9, - hyphens: 9.3, - flowInto: 9.3, - flowFrom: 9.3, - breakBefore: 8.1, - breakAfter: 8.1, - breakInside: 8.1, - regionFragment: 9.3, - columnCount: 8.1, - columnFill: 8.1, - columnGap: 8.1, - columnRule: 8.1, - columnRuleColor: 8.1, - columnRuleStyle: 8.1, - columnRuleWidth: 8.1, - columns: 8.1, - columnSpan: 8.1, - columnWidth: 8.1 - }, - android: { - flex: 4.2, - flexBasis: 4.2, - flexDirection: 4.2, - flexGrow: 4.2, - flexFlow: 4.2, - flexShrink: 4.2, - flexWrap: 4.2, - alignContent: 4.2, - alignItems: 4.2, - alignSelf: 4.2, - justifyContent: 4.2, - order: 4.2, - transition: 4.2, - transitionDelay: 4.2, - transitionDuration: 4.2, - transitionProperty: 4.2, - transitionTimingFunction: 4.2, - transform: 4.4, - transformOrigin: 4.4, - transformOriginX: 4.4, - transformOriginY: 4.4, - backfaceVisibility: 4.4, - perspective: 4.4, - perspectiveOrigin: 4.4, - transformStyle: 4.4, - transformOriginZ: 4.4, - animation: 4.4, - animationDelay: 4.4, - animationDirection: 4.4, - animationFillMode: 4.4, - animationDuration: 4.4, - animationIterationCount: 4.4, - animationName: 4.4, - animationPlayState: 4.4, - animationTimingFunction: 4.4, - appearance: 51, - userSelect: 51, - fontKerning: 4.4, - textEmphasisPosition: 51, - textEmphasis: 51, - textEmphasisStyle: 51, - textEmphasisColor: 51, - boxDecorationBreak: 51, - clipPath: 51, - maskImage: 51, - maskMode: 51, - maskRepeat: 51, - maskPosition: 51, - maskClip: 51, - maskOrigin: 51, - maskSize: 51, - maskComposite: 51, - mask: 51, - maskBorderSource: 51, - maskBorderMode: 51, - maskBorderSlice: 51, - maskBorderWidth: 51, - maskBorderOutset: 51, - maskBorderRepeat: 51, - maskBorder: 51, - maskType: 51, - filter: 51, - fontFeatureSettings: 4.4, - breakAfter: 51, - breakBefore: 51, - breakInside: 51, - columnCount: 51, - columnFill: 51, - columnGap: 51, - columnRule: 51, - columnRuleColor: 51, - columnRuleStyle: 51, - columnRuleWidth: 51, - columns: 51, - columnSpan: 51, - columnWidth: 51 - }, - and_chr: { - appearance: 51, - userSelect: 51, - textEmphasisPosition: 51, - textEmphasis: 51, - textEmphasisStyle: 51, - textEmphasisColor: 51, - boxDecorationBreak: 51, - clipPath: 51, - maskImage: 51, - maskMode: 51, - maskRepeat: 51, - maskPosition: 51, - maskClip: 51, - maskOrigin: 51, - maskSize: 51, - maskComposite: 51, - mask: 51, - maskBorderSource: 51, - maskBorderMode: 51, - maskBorderSlice: 51, - maskBorderWidth: 51, - maskBorderOutset: 51, - maskBorderRepeat: 51, - maskBorder: 51, - maskType: 51, - textDecorationStyle: 51, - textDecorationSkip: 51, - textDecorationLine: 51, - textDecorationColor: 51, - filter: 51 - }, - and_uc: { - flex: 9.9, - flexBasis: 9.9, - flexDirection: 9.9, - flexGrow: 9.9, - flexFlow: 9.9, - flexShrink: 9.9, - flexWrap: 9.9, - alignContent: 9.9, - alignItems: 9.9, - alignSelf: 9.9, - justifyContent: 9.9, - order: 9.9, - transition: 9.9, - transitionDelay: 9.9, - transitionDuration: 9.9, - transitionProperty: 9.9, - transitionTimingFunction: 9.9, - transform: 9.9, - transformOrigin: 9.9, - transformOriginX: 9.9, - transformOriginY: 9.9, - backfaceVisibility: 9.9, - perspective: 9.9, - perspectiveOrigin: 9.9, - transformStyle: 9.9, - transformOriginZ: 9.9, - animation: 9.9, - animationDelay: 9.9, - animationDirection: 9.9, - animationFillMode: 9.9, - animationDuration: 9.9, - animationIterationCount: 9.9, - animationName: 9.9, - animationPlayState: 9.9, - animationTimingFunction: 9.9, - appearance: 9.9, - userSelect: 9.9, - fontKerning: 9.9, - textEmphasisPosition: 9.9, - textEmphasis: 9.9, - textEmphasisStyle: 9.9, - textEmphasisColor: 9.9, - maskImage: 9.9, - maskMode: 9.9, - maskRepeat: 9.9, - maskPosition: 9.9, - maskClip: 9.9, - maskOrigin: 9.9, - maskSize: 9.9, - maskComposite: 9.9, - mask: 9.9, - maskBorderSource: 9.9, - maskBorderMode: 9.9, - maskBorderSlice: 9.9, - maskBorderWidth: 9.9, - maskBorderOutset: 9.9, - maskBorderRepeat: 9.9, - maskBorder: 9.9, - maskType: 9.9, - textSizeAdjust: 9.9, - filter: 9.9, - hyphens: 9.9, - flowInto: 9.9, - flowFrom: 9.9, - breakBefore: 9.9, - breakAfter: 9.9, - breakInside: 9.9, - regionFragment: 9.9, - fontFeatureSettings: 9.9, - columnCount: 9.9, - columnFill: 9.9, - columnGap: 9.9, - columnRule: 9.9, - columnRuleColor: 9.9, - columnRuleStyle: 9.9, - columnRuleWidth: 9.9, - columns: 9.9, - columnSpan: 9.9, - columnWidth: 9.9 - }, - op_mini: {} - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function position(_ref) { - var property = _ref.property, - value = _ref.value, - browser = _ref.browserInfo.browser, - css = _ref.prefix.css, - keepUnprefixed = _ref.keepUnprefixed; - if ( - 'position' === property && - 'sticky' === value && - ('safari' === browser || 'ios_saf' === browser) - ) - return (function _defineProperty(obj, key, value) { - key in obj - ? Object.defineProperty(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (obj[key] = value); - return obj; - })({}, property, (0, _getPrefixedValue2.default)(css + value, value, keepUnprefixed)); - }); - var _getPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(113)); - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function calc(_ref) { - var property = _ref.property, - value = _ref.value, - _ref$browserInfo = _ref.browserInfo, - browser = _ref$browserInfo.browser, - version = _ref$browserInfo.version, - css = _ref.prefix.css, - keepUnprefixed = _ref.keepUnprefixed; - if ( - 'string' == typeof value && - value.indexOf('calc(') > -1 && - (('firefox' === browser && version < 15) || - ('chrome' === browser && version < 25) || - ('safari' === browser && version < 6.1) || - ('ios_saf' === browser && version < 7)) - ) - return (function _defineProperty(obj, key, value) { - key in obj - ? Object.defineProperty(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (obj[key] = value); - return obj; - })( - {}, - property, - (0, _getPrefixedValue2.default)( - value.replace(/calc\(/g, css + 'calc('), - value, - keepUnprefixed - ) - ); - }); - var _getPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(113)); - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function zoomCursor(_ref) { - var property = _ref.property, - value = _ref.value, - _ref$browserInfo = _ref.browserInfo, - browser = _ref$browserInfo.browser, - version = _ref$browserInfo.version, - css = _ref.prefix.css, - keepUnprefixed = _ref.keepUnprefixed; - if ( - 'cursor' === property && - values[value] && - (('firefox' === browser && version < 24) || - ('chrome' === browser && version < 37) || - ('safari' === browser && version < 9) || - ('opera' === browser && version < 24)) - ) - return { cursor: (0, _getPrefixedValue2.default)(css + value, value, keepUnprefixed) }; - }); - var _getPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(113)); - var values = { 'zoom-in': !0, 'zoom-out': !0 }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function grabCursor(_ref) { - var property = _ref.property, - value = _ref.value, - browser = _ref.browserInfo.browser, - css = _ref.prefix.css, - keepUnprefixed = _ref.keepUnprefixed; - if ( - 'cursor' === property && - values[value] && - ('firefox' === browser || - 'chrome' === browser || - 'safari' === browser || - 'opera' === browser) - ) - return { cursor: (0, _getPrefixedValue2.default)(css + value, value, keepUnprefixed) }; - }); - var _getPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(113)); - var values = { grab: !0, grabbing: !0 }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function flex(_ref) { - var property = _ref.property, - value = _ref.value, - _ref$browserInfo = _ref.browserInfo, - browser = _ref$browserInfo.browser, - version = _ref$browserInfo.version, - css = _ref.prefix.css, - keepUnprefixed = _ref.keepUnprefixed; - if ( - 'display' === property && - values[value] && - (('chrome' === browser && version < 29 && version > 20) || - (('safari' === browser || 'ios_saf' === browser) && version < 9 && version > 6) || - ('opera' === browser && (15 == version || 16 == version))) - ) - return { display: (0, _getPrefixedValue2.default)(css + value, value, keepUnprefixed) }; - }); - var _getPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(113)); - var values = { flex: !0, 'inline-flex': !0 }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function sizing(_ref) { - var property = _ref.property, - value = _ref.value, - css = _ref.prefix.css, - keepUnprefixed = _ref.keepUnprefixed; - if (properties[property] && values[value]) - return (function _defineProperty(obj, key, value) { - key in obj - ? Object.defineProperty(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (obj[key] = value); - return obj; - })({}, property, (0, _getPrefixedValue2.default)(css + value, value, keepUnprefixed)); - }); - var _getPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(113)); - var properties = { - maxHeight: !0, - maxWidth: !0, - width: !0, - height: !0, - columnWidth: !0, - minWidth: !0, - minHeight: !0 - }, - values = { - 'min-content': !0, - 'max-content': !0, - 'fill-available': !0, - 'fit-content': !0, - 'contain-floats': !0 - }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function gradient(_ref) { - var property = _ref.property, - value = _ref.value, - _ref$browserInfo = _ref.browserInfo, - browser = _ref$browserInfo.browser, - version = _ref$browserInfo.version, - css = _ref.prefix.css, - keepUnprefixed = _ref.keepUnprefixed; - if ( - 'string' == typeof value && - null !== value.match(values) && - (('firefox' === browser && version < 16) || - ('chrome' === browser && version < 26) || - (('safari' === browser || 'ios_saf' === browser) && version < 7) || - (('opera' === browser || 'op_mini' === browser) && version < 12.1) || - ('android' === browser && version < 4.4) || - 'and_uc' === browser) - ) - return (function _defineProperty(obj, key, value) { - key in obj - ? Object.defineProperty(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (obj[key] = value); - return obj; - })({}, property, (0, _getPrefixedValue2.default)(css + value, value, keepUnprefixed)); - }); - var _getPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(113)); - var values = /linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _typeof = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(obj) { - return typeof obj; - } - : function(obj) { - return obj && 'function' == typeof Symbol && obj.constructor === Symbol - ? 'symbol' - : typeof obj; - }; - exports.default = function transition(_ref) { - var property = _ref.property, - value = _ref.value, - css = _ref.prefix.css, - requiresPrefix = _ref.requiresPrefix, - keepUnprefixed = _ref.keepUnprefixed, - unprefixedProperty = (0, _unprefixProperty2.default)(property); - if ('string' == typeof value && properties[unprefixedProperty]) { - var _ret = ((requiresPrefixDashCased = Object.keys(requiresPrefix).map(function(prop) { - return (0, _hyphenateStyleName2.default)(prop); - })), - (multipleValues = value.split(/,(?![^()]*(?:\([^()]*\))?\))/g)), - requiresPrefixDashCased.forEach(function(prop) { - multipleValues.forEach(function(val, index) { - val.indexOf(prop) > -1 && - 'order' !== prop && - (multipleValues[index] = - val.replace(prop, css + prop) + (keepUnprefixed ? ',' + val : '')); - }); - }), - { - v: (function _defineProperty(obj, key, value) { - return ( - key in obj - ? Object.defineProperty(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (obj[key] = value), - obj - ); - })({}, property, multipleValues.join(',')) - }); - if ('object' === (void 0 === _ret ? 'undefined' : _typeof(_ret))) return _ret.v; - } - var requiresPrefixDashCased, multipleValues; - }; - var _hyphenateStyleName2 = _interopRequireDefault(__webpack_require__(612)), - _unprefixProperty2 = _interopRequireDefault(__webpack_require__(1286)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var properties = { transition: !0, transitionProperty: !0 }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function(property) { - var unprefixed = property.replace(/^(ms|Webkit|Moz|O)/, ''); - return unprefixed.charAt(0).toLowerCase() + unprefixed.slice(1); - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function flexboxIE(_ref) { - var property = _ref.property, - value = _ref.value, - styles = _ref.styles, - _ref$browserInfo = _ref.browserInfo, - browser = _ref$browserInfo.browser, - version = _ref$browserInfo.version, - css = _ref.prefix.css, - keepUnprefixed = _ref.keepUnprefixed; - if ( - (alternativeProps[property] || - ('display' === property && 'string' == typeof value && value.indexOf('flex') > -1)) && - ('ie_mob' === browser || 'ie' === browser) && - 10 == version - ) { - if ( - (keepUnprefixed || Array.isArray(styles[property]) || delete styles[property], - 'display' === property && alternativeValues[value]) - ) - return { - display: (0, _getPrefixedValue2.default)( - css + alternativeValues[value], - value, - keepUnprefixed - ) - }; - if (alternativeProps[property]) - return (function _defineProperty(obj, key, value) { - key in obj - ? Object.defineProperty(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (obj[key] = value); - return obj; - })({}, alternativeProps[property], alternativeValues[value] || value); - } - }); - var _getPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(113)); - var alternativeValues = { - 'space-around': 'distribute', - 'space-between': 'justify', - 'flex-start': 'start', - 'flex-end': 'end', - flex: 'flexbox', - 'inline-flex': 'inline-flexbox' - }, - alternativeProps = { - alignContent: 'msFlexLinePack', - alignSelf: 'msFlexItemAlign', - alignItems: 'msFlexAlign', - justifyContent: 'msFlexPack', - order: 'msFlexOrder', - flexGrow: 'msFlexPositive', - flexShrink: 'msFlexNegative', - flexBasis: 'msPreferredSize' - }; - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function flexboxOld(_ref) { - var property = _ref.property, - value = _ref.value, - styles = _ref.styles, - _ref$browserInfo = _ref.browserInfo, - browser = _ref$browserInfo.browser, - version = _ref$browserInfo.version, - css = _ref.prefix.css, - keepUnprefixed = _ref.keepUnprefixed; - if ( - (properties.indexOf(property) > -1 || - ('display' === property && 'string' == typeof value && value.indexOf('flex') > -1)) && - (('firefox' === browser && version < 22) || - ('chrome' === browser && version < 21) || - (('safari' === browser || 'ios_saf' === browser) && version <= 6.1) || - ('android' === browser && version < 4.4) || - 'and_uc' === browser) - ) { - if ( - (keepUnprefixed || Array.isArray(styles[property]) || delete styles[property], - 'flexDirection' === property && 'string' == typeof value) - ) - return { - WebkitBoxOrient: value.indexOf('column') > -1 ? 'vertical' : 'horizontal', - WebkitBoxDirection: value.indexOf('reverse') > -1 ? 'reverse' : 'normal' - }; - if ('display' === property && alternativeValues[value]) - return { - display: (0, _getPrefixedValue2.default)( - css + alternativeValues[value], - value, - keepUnprefixed - ) - }; - if (alternativeProps[property]) - return (function _defineProperty(obj, key, value) { - key in obj - ? Object.defineProperty(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (obj[key] = value); - return obj; - })({}, alternativeProps[property], alternativeValues[value] || value); - } - }); - var _getPrefixedValue2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(113)); - var alternativeValues = { - 'space-around': 'justify', - 'space-between': 'justify', - 'flex-start': 'start', - 'flex-end': 'end', - 'wrap-reverse': 'multiple', - wrap: 'multiple', - flex: 'box', - 'inline-flex': 'inline-box' - }, - alternativeProps = { - alignItems: 'WebkitBoxAlign', - justifyContent: 'WebkitBoxPack', - flexWrap: 'WebkitBoxLines' - }, - properties = Object.keys(alternativeProps).concat([ - 'alignContent', - 'alignSelf', - 'order', - 'flexGrow', - 'flexShrink', - 'flexBasis', - 'flexDirection' - ]); - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _typeof = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(obj) { - return typeof obj; - } - : function(obj) { - return obj && - 'function' == typeof Symbol && - obj.constructor === Symbol && - obj !== Symbol.prototype - ? 'symbol' - : typeof obj; - }; - function isNestedStyle(value) { - return value && value.constructor === Object && value.toString === Object.prototype.toString; - } - (exports.isNestedStyle = isNestedStyle), - (exports.mergeStyles = function mergeStyles(styles) { - var result = {}; - styles.forEach(function(style) { - style && - 'object' === (void 0 === style ? 'undefined' : _typeof(style)) && - (Array.isArray(style) && (style = mergeStyles(style)), - Object.keys(style).forEach(function(key) { - if (isNestedStyle(style[key]) && isNestedStyle(result[key])) { - if (0 === key.indexOf('@media')) - for (var newKey = key; ; ) - if (!result[(newKey += ' ')]) return void (result[newKey] = style[key]); - result[key] = mergeStyles([result[key], style[key]]); - } else result[key] = style[key]; - })); - }); - return result; - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - Object.assign, 'function' == typeof Symbol && Symbol.iterator; - var _checkProps = function checkProps() {}; - (exports.default = _checkProps), (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function keyframesPlugin(_ref) { - var addCSS = _ref.addCSS, - config = _ref.config, - style = _ref.style; - return { - style: Object.keys(style).reduce(function(newStyleInProgress, key) { - var value = style[key]; - if ('animationName' === key && value && value.__radiumKeyframes) { - var keyframesValue = value, - _keyframesValue$__pro = keyframesValue.__process(config.userAgent), - animationName = _keyframesValue$__pro.animationName, - css = _keyframesValue$__pro.css; - addCSS(css), (value = animationName); - } - return (newStyleInProgress[key] = value), newStyleInProgress; - }, {}) - }; - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - (exports.default = function mergeStyleArrayPlugin(_ref) { - var style = _ref.style, - mergeStyles = _ref.mergeStyles; - return { style: Array.isArray(style) ? mergeStyles(style) : style }; - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function prefixPlugin(_ref) { - var config = _ref.config, - style = _ref.style; - return { style: (0, _prefixer.getPrefixedStyle)(style, config.userAgent) }; - }); - var _prefixer = __webpack_require__(622); - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function removeNestedStyles(_ref) { - var isNestedStyle = _ref.isNestedStyle, - style = _ref.style; - return { - style: Object.keys(style).reduce(function(newStyleInProgress, key) { - var value = style[key]; - return isNestedStyle(value) || (newStyleInProgress[key] = value), newStyleInProgress; - }, {}) - }; - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _mouseUpListener2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(1296)); - var _isInteractiveStyleField = function _isInteractiveStyleField(styleFieldName) { - return ( - ':hover' === styleFieldName || ':active' === styleFieldName || ':focus' === styleFieldName - ); - }; - (exports.default = function resolveInteractionStyles(config) { - var ExecutionEnvironment = config.ExecutionEnvironment, - getComponentField = config.getComponentField, - getState = config.getState, - mergeStyles = config.mergeStyles, - props = config.props, - setState = config.setState, - style = config.style, - newComponentFields = {}, - newProps = {}; - if (style[':hover']) { - var existingOnMouseEnter = props.onMouseEnter; - newProps.onMouseEnter = function(e) { - existingOnMouseEnter && existingOnMouseEnter(e), setState(':hover', !0); - }; - var existingOnMouseLeave = props.onMouseLeave; - newProps.onMouseLeave = function(e) { - existingOnMouseLeave && existingOnMouseLeave(e), setState(':hover', !1); - }; - } - if (style[':active']) { - var existingOnMouseDown = props.onMouseDown; - newProps.onMouseDown = function(e) { - existingOnMouseDown && existingOnMouseDown(e), - (newComponentFields._lastMouseDown = Date.now()), - setState(':active', 'viamousedown'); - }; - var existingOnKeyDown = props.onKeyDown; - newProps.onKeyDown = function(e) { - existingOnKeyDown && existingOnKeyDown(e), - (' ' !== e.key && 'Enter' !== e.key) || setState(':active', 'viakeydown'); - }; - var existingOnKeyUp = props.onKeyUp; - newProps.onKeyUp = function(e) { - existingOnKeyUp && existingOnKeyUp(e), - (' ' !== e.key && 'Enter' !== e.key) || setState(':active', !1); - }; - } - if (style[':focus']) { - var existingOnFocus = props.onFocus; - newProps.onFocus = function(e) { - existingOnFocus && existingOnFocus(e), setState(':focus', !0); - }; - var existingOnBlur = props.onBlur; - newProps.onBlur = function(e) { - existingOnBlur && existingOnBlur(e), setState(':focus', !1); - }; - } - style[':active'] && - !getComponentField('_radiumMouseUpListener') && - ExecutionEnvironment.canUseEventListeners && - (newComponentFields._radiumMouseUpListener = _mouseUpListener2.default.subscribe( - function() { - Object.keys(getComponentField('state')._radiumStyleState).forEach(function(key) { - 'viamousedown' === getState(':active', key) && setState(':active', !1, key); - }); - } - )); - var interactionStyles = props.disabled - ? [style[':disabled']] - : Object.keys(style) - .filter(function(name) { - return _isInteractiveStyleField(name) && getState(name); - }) - .map(function(name) { - return style[name]; - }), - newStyle = mergeStyles([style].concat(interactionStyles)); - return ( - (newStyle = Object.keys(newStyle).reduce(function(styleWithoutInteractions, name) { - return ( - _isInteractiveStyleField(name) || - ':disabled' === name || - (styleWithoutInteractions[name] = newStyle[name]), - styleWithoutInteractions - ); - }, {})), - { componentFields: newComponentFields, props: newProps, style: newStyle } - ); - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _callbacks = [], - _mouseUpListenerIsActive = !1; - function _handleMouseUp() { - _callbacks.forEach(function(callback) { - callback(); - }); - } - (exports.default = { - subscribe: function subscribe(callback) { - return ( - -1 === _callbacks.indexOf(callback) && _callbacks.push(callback), - _mouseUpListenerIsActive || - (window.addEventListener('mouseup', _handleMouseUp), (_mouseUpListenerIsActive = !0)), - { - remove: function remove() { - var index = _callbacks.indexOf(callback); - _callbacks.splice(index, 1), - 0 === _callbacks.length && - _mouseUpListenerIsActive && - (window.removeEventListener('mouseup', _handleMouseUp), - (_mouseUpListenerIsActive = !1)); - } - } - ); - }, - __triggerForTests: _handleMouseUp - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }; - exports.default = function resolveMediaQueries(_ref3) { - var ExecutionEnvironment = _ref3.ExecutionEnvironment, - addCSS = _ref3.addCSS, - appendImportantToEachValue = _ref3.appendImportantToEachValue, - config = _ref3.config, - cssRuleSetToString = _ref3.cssRuleSetToString, - getComponentField = _ref3.getComponentField, - getGlobalState = _ref3.getGlobalState, - hash = _ref3.hash, - isNestedStyle = _ref3.isNestedStyle, - mergeStyles = _ref3.mergeStyles, - props = _ref3.props, - setState = _ref3.setState, - style = _ref3.style, - newStyle = (function _removeMediaQueries(style) { - return Object.keys(style).reduce(function(styleWithoutMedia, key) { - return ( - 0 !== key.indexOf('@media') && (styleWithoutMedia[key] = style[key]), - styleWithoutMedia - ); - }, {}); - })(style), - mediaQueryClassNames = (function _topLevelRulesToCSS(_ref) { - var addCSS = _ref.addCSS, - appendImportantToEachValue = _ref.appendImportantToEachValue, - cssRuleSetToString = _ref.cssRuleSetToString, - hash = _ref.hash, - isNestedStyle = _ref.isNestedStyle, - style = _ref.style, - userAgent = _ref.userAgent, - className = ''; - return ( - Object.keys(style) - .filter(function(name) { - return 0 === name.indexOf('@media'); - }) - .map(function(query) { - var topLevelRules = appendImportantToEachValue( - _filterObject(style[query], function(value) { - return !isNestedStyle(value); - }) - ); - if (Object.keys(topLevelRules).length) { - var ruleCSS = cssRuleSetToString('', topLevelRules, userAgent), - mediaQueryClassName = 'rmq-' + hash(query + ruleCSS); - addCSS(query + '{ .' + mediaQueryClassName + ruleCSS + '}'), - (className += (className ? ' ' : '') + mediaQueryClassName); - } - }), - className - ); - })({ - addCSS: addCSS, - appendImportantToEachValue: appendImportantToEachValue, - cssRuleSetToString: cssRuleSetToString, - hash: hash, - isNestedStyle: isNestedStyle, - style: style, - userAgent: config.userAgent - }), - newProps = mediaQueryClassNames - ? { className: mediaQueryClassNames + (props.className ? ' ' + props.className : '') } - : null, - matchMedia = - config.matchMedia || - (function _getWindowMatchMedia(ExecutionEnvironment) { - void 0 === _windowMatchMedia && - (_windowMatchMedia = - (!!ExecutionEnvironment.canUseDOM && - !!window && - !!window.matchMedia && - function(mediaQueryString) { - return window.matchMedia(mediaQueryString); - }) || - null); - return _windowMatchMedia; - })(ExecutionEnvironment); - if (!matchMedia) return { props: newProps, style: newStyle }; - var listenersByQuery = _extends({}, getComponentField('_radiumMediaQueryListenersByQuery')), - mediaQueryListsByQuery = getGlobalState('mediaQueryListsByQuery') || {}; - return ( - Object.keys(style) - .filter(function(name) { - return 0 === name.indexOf('@media'); - }) - .map(function(query) { - var nestedRules = _filterObject(style[query], isNestedStyle); - if (Object.keys(nestedRules).length) { - var mql = (function _subscribeToMediaQuery(_ref2) { - var listener = _ref2.listener, - listenersByQuery = _ref2.listenersByQuery, - matchMedia = _ref2.matchMedia, - mediaQueryListsByQuery = _ref2.mediaQueryListsByQuery, - query = _ref2.query; - query = query.replace('@media ', ''); - var mql = mediaQueryListsByQuery[query]; - return ( - !mql && matchMedia && (mediaQueryListsByQuery[query] = mql = matchMedia(query)), - (listenersByQuery && listenersByQuery[query]) || - (mql.addListener(listener), - (listenersByQuery[query] = { - remove: function remove() { - mql.removeListener(listener); - } - })), - mql - ); - })({ - listener: function listener() { - return setState(query, mql.matches, '_all'); - }, - listenersByQuery: listenersByQuery, - matchMedia: matchMedia, - mediaQueryListsByQuery: mediaQueryListsByQuery, - query: query - }); - mql.matches && (newStyle = mergeStyles([newStyle, nestedRules])); - } - }), - { - componentFields: { _radiumMediaQueryListenersByQuery: listenersByQuery }, - globalState: { mediaQueryListsByQuery: mediaQueryListsByQuery }, - props: newProps, - style: newStyle - } - ); - }; - var _windowMatchMedia = void 0; - function _filterObject(obj, predicate) { - return Object.keys(obj) - .filter(function(key) { - return predicate(obj[key], key); - }) - .reduce(function(result, key) { - return (result[key] = obj[key]), result; - }, {}); - } - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function visited(_ref) { - var addCSS = _ref.addCSS, - appendImportantToEachValue = _ref.appendImportantToEachValue, - config = _ref.config, - cssRuleSetToString = _ref.cssRuleSetToString, - hash = _ref.hash, - props = _ref.props, - style = _ref.style, - className = props.className, - newStyle = Object.keys(style).reduce(function(newStyleInProgress, key) { - var value = style[key]; - if (':visited' === key) { - value = appendImportantToEachValue(value); - var ruleCSS = cssRuleSetToString('', value, config.userAgent), - visitedClassName = 'rad-' + hash(ruleCSS), - css = '.' + visitedClassName + ':visited' + ruleCSS; - addCSS(css), (className = (className ? className + ' ' : '') + visitedClassName); - } else newStyleInProgress[key] = value; - return newStyleInProgress; - }, {}); - return { - props: className === props.className ? null : { className: className }, - style: newStyle - }; - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _class, - _temp, - _typeof = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(obj) { - return typeof obj; - } - : function(obj) { - return obj && - 'function' == typeof Symbol && - obj.constructor === Symbol && - obj !== Symbol.prototype - ? 'symbol' - : typeof obj; - }, - _cssRuleSetToString2 = _interopRequireDefault(__webpack_require__(621)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Style = ((_temp = _class = (function(_PureComponent) { - function Style() { - return ( - (function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, Style), - (function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - })(this, _PureComponent.apply(this, arguments)) - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(Style, _PureComponent), - (Style.prototype._buildStyles = function _buildStyles(styles) { - var _this2 = this, - userAgent = - (this.props.radiumConfig && this.props.radiumConfig.userAgent) || - (this.context && this.context._radiumConfig && this.context._radiumConfig.userAgent), - scopeSelector = this.props.scopeSelector, - rootRules = Object.keys(styles).reduce(function(accumulator, selector) { - return ( - 'object' !== _typeof(styles[selector]) && - (accumulator[selector] = styles[selector]), - accumulator - ); - }, {}); - return ( - (Object.keys(rootRules).length - ? (0, _cssRuleSetToString2.default)(scopeSelector || '', rootRules, userAgent) - : '') + - Object.keys(styles).reduce(function(accumulator, selector) { - var rules = styles[selector]; - if ('mediaQueries' === selector) accumulator += _this2._buildMediaQueryString(rules); - else if ('object' === _typeof(styles[selector])) { - var completeSelector = scopeSelector - ? selector - .split(',') - .map(function(part) { - return scopeSelector + ' ' + part.trim(); - }) - .join(',') - : selector; - accumulator += (0, _cssRuleSetToString2.default)( - completeSelector, - rules, - userAgent - ); - } - return accumulator; - }, '') - ); - }), - (Style.prototype._buildMediaQueryString = function _buildMediaQueryString( - stylesByMediaQuery - ) { - var _this3 = this, - mediaQueryString = ''; - return ( - Object.keys(stylesByMediaQuery).forEach(function(query) { - mediaQueryString += - '@media ' + query + '{' + _this3._buildStyles(stylesByMediaQuery[query]) + '}'; - }), - mediaQueryString - ); - }), - (Style.prototype.render = function render() { - if (!this.props.rules) return null; - var styles = this._buildStyles(this.props.rules); - return _react2.default.createElement('style', { - dangerouslySetInnerHTML: { __html: styles } - }); - }), - Style - ); - })(_react.PureComponent)), - (_class.propTypes = { - radiumConfig: _propTypes2.default.object, - rules: _propTypes2.default.object, - scopeSelector: _propTypes2.default.string - }), - (_class.contextTypes = { _radiumConfig: _propTypes2.default.object }), - (_class.defaultProps = { scopeSelector: '' }), - _temp); - (exports.default = Style), (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _enhancer2 = _interopRequireDefault(__webpack_require__(845)), - _styleKeeper2 = _interopRequireDefault(__webpack_require__(620)), - _styleSheet2 = _interopRequireDefault(__webpack_require__(1301)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function _getStyleKeeper(instance) { - if (!instance._radiumStyleKeeper) { - var userAgent = - (instance.props.radiumConfig && instance.props.radiumConfig.userAgent) || - (instance.context._radiumConfig && instance.context._radiumConfig.userAgent); - instance._radiumStyleKeeper = new _styleKeeper2.default(userAgent); - } - return instance._radiumStyleKeeper; - } - var StyleRoot = (function(_PureComponent) { - function StyleRoot() { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, StyleRoot); - var _this = (function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - })(this, _PureComponent.apply(this, arguments)); - return _getStyleKeeper(_this), _this; - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(StyleRoot, _PureComponent), - (StyleRoot.prototype.getChildContext = function getChildContext() { - return { _radiumStyleKeeper: _getStyleKeeper(this) }; - }), - (StyleRoot.prototype.render = function render() { - var _props = this.props, - otherProps = (_props.radiumConfig, - (function _objectWithoutProperties(obj, keys) { - var target = {}; - for (var i in obj) - keys.indexOf(i) >= 0 || - (Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i])); - return target; - })(_props, ['radiumConfig'])); - return _react2.default.createElement( - 'div', - otherProps, - this.props.children, - _react2.default.createElement(_styleSheet2.default, null) - ); - }), - StyleRoot - ); - })(_react.PureComponent); - (StyleRoot.contextTypes = { - _radiumConfig: _propTypes2.default.object, - _radiumStyleKeeper: _propTypes2.default.instanceOf(_styleKeeper2.default) - }), - (StyleRoot.childContextTypes = { - _radiumStyleKeeper: _propTypes2.default.instanceOf(_styleKeeper2.default) - }), - (StyleRoot = (0, _enhancer2.default)(StyleRoot)), - (exports.default = StyleRoot), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _class, _temp; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.default = void 0); - var _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _styleKeeper2 = _interopRequireDefault(__webpack_require__(620)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var StyleSheet = ((_temp = _class = (function(_PureComponent) { - function StyleSheet() { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, StyleSheet); - var _this = (function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || ('object' != typeof call && 'function' != typeof call) ? self : call; - })(this, _PureComponent.apply(this, arguments)); - return ( - (_this._onChange = function() { - setTimeout(function() { - _this._isMounted && _this.setState(_this._getCSSState()); - }, 0); - }), - (_this.state = _this._getCSSState()), - _this - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - 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: !1, writable: !0, configurable: !0 } - })), - superClass && - (Object.setPrototypeOf - ? Object.setPrototypeOf(subClass, superClass) - : (subClass.__proto__ = superClass)); - })(StyleSheet, _PureComponent), - (StyleSheet.prototype.componentDidMount = function componentDidMount() { - (this._isMounted = !0), - (this._subscription = this.context._radiumStyleKeeper.subscribe(this._onChange)), - this._onChange(); - }), - (StyleSheet.prototype.componentWillUnmount = function componentWillUnmount() { - (this._isMounted = !1), this._subscription && this._subscription.remove(); - }), - (StyleSheet.prototype._getCSSState = function _getCSSState() { - return { css: this.context._radiumStyleKeeper.getCSS() }; - }), - (StyleSheet.prototype.render = function render() { - return _react2.default.createElement('style', { - dangerouslySetInnerHTML: { __html: this.state.css } - }); - }), - StyleSheet - ); - })(_react.PureComponent)), - (_class.contextTypes = { - _radiumStyleKeeper: _propTypes2.default.instanceOf(_styleKeeper2.default) - }), - _temp); - (exports.default = StyleSheet), (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function keyframes(keyframeRules, name) { - return { - __radiumKeyframes: !0, - __process: function __process(userAgent) { - var keyframesPrefixed = (0, _prefixer.getPrefixedKeyframes)(userAgent), - rules = Object.keys(keyframeRules) - .map(function(percentage) { - return (0, - _cssRuleSetToString2.default)(percentage, keyframeRules[percentage], userAgent); - }) - .join('\n'), - animationName = - (name ? name + '-' : '') + 'radium-animation-' + (0, _hash2.default)(rules), - css = '@' + keyframesPrefixed + ' ' + animationName + ' {\n' + rules + '\n}\n'; - return { css: css, animationName: animationName }; - } - }; - }); - var _cssRuleSetToString2 = _interopRequireDefault(__webpack_require__(621)), - _hash2 = _interopRequireDefault(__webpack_require__(853)), - _prefixer = __webpack_require__(622); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - module.exports = exports.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _objectWithoutProperties3 = _interopRequireDefault(__webpack_require__(65)), - _reactTreebeard = __webpack_require__(828), - _chevronRight2 = _interopRequireDefault(__webpack_require__(1304)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _routed_link = __webpack_require__(1306), - _menu_item2 = _interopRequireDefault(__webpack_require__(1307)), - _tree_node_type2 = _interopRequireDefault(__webpack_require__(857)), - _tree_decorators_utils = __webpack_require__(1308); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function noop() {} - function ToggleDecorator(_ref) { - var style = _ref.style, - height = style.height, - width = style.width, - arrow = style.arrow; - return _react2.default.createElement( - 'div', - { style: style.base }, - _react2.default.createElement( - 'div', - { style: style.wrapper }, - _react2.default.createElement(_chevronRight2.default, { - height: height, - width: width, - style: arrow - }) - ) - ); - } - function ContainerDecorator(props) { - var node = props.node, - style = props.style, - onClick = props.onClick, - container = style.container, - restStyles = (0, _objectWithoutProperties3.default)(style, ['container']); - if (node.root) return null; - var containerStyle = container.reduce(function(acc, styles) { - return (0, _extends3.default)({}, acc, styles); - }, {}), - innerContainer = _react2.default.createElement( - _reactTreebeard.decorators.Container, - (0, _extends3.default)({}, props, { style: restStyles, onClick: noop }) - ); - if (node.type !== _tree_node_type2.default.STORY) - return _react2.default.createElement( - _menu_item2.default, - { style: containerStyle, onClick: onClick, 'data-name': node.name }, - innerContainer - ); - var overrideParams = { selectedKind: node.kind, selectedStory: node.story }; - return _react2.default.createElement( - _routed_link.MenuLink, - { - active: node.active, - overrideParams: overrideParams, - onClick: onClick, - 'data-name': node.name - }, - innerContainer - ); - } - function HeaderDecorator(props) { - var style = props.style, - node = props.node, - restProps = (0, _objectWithoutProperties3.default)(props, ['style', 'node']), - newStyle = style; - node.type === _tree_node_type2.default.STORY && - (newStyle = (0, _extends3.default)({}, style, { title: null })); - var name = (0, _tree_decorators_utils.highlightNode)(node, style), - newNode = (0, _extends3.default)({}, node, { name: name }); - return _react2.default.createElement( - _reactTreebeard.decorators.Header, - (0, _extends3.default)({ style: newStyle, node: newNode }, restProps) - ); - } - (ToggleDecorator.propTypes = { - style: _propTypes2.default.shape({ - width: _propTypes2.default.number.isRequired, - height: _propTypes2.default.number.isRequired, - arrow: _propTypes2.default.object.isRequired - }).isRequired - }), - (ContainerDecorator.propTypes = { - style: _propTypes2.default.shape({ container: _propTypes2.default.array.isRequired }) - .isRequired, - node: _propTypes2.default.shape({ - root: _propTypes2.default.bool, - type: _propTypes2.default.oneOf([ - _tree_node_type2.default.NAMESPACE, - _tree_node_type2.default.STORY - ]).isRequired, - name: _propTypes2.default.string.isRequired, - kind: _propTypes2.default.string, - story: _propTypes2.default.string, - active: _propTypes2.default.bool - }).isRequired, - onClick: _propTypes2.default.func.isRequired - }), - (HeaderDecorator.propTypes = { - style: _propTypes2.default.shape({ - title: _propTypes2.default.object.isRequired, - base: _propTypes2.default.object.isRequired - }).isRequired, - node: _propTypes2.default.shape({ - type: _propTypes2.default.oneOf([ - _tree_node_type2.default.NAMESPACE, - _tree_node_type2.default.STORY - ]), - highlight: _propTypes2.default.arrayOf( - _propTypes2.default.arrayOf(_propTypes2.default.number) - ) - }).isRequired - }), - (exports.default = (0, _extends3.default)({}, _reactTreebeard.decorators, { - Header: HeaderDecorator, - Container: ContainerDecorator, - Toggle: ToggleDecorator - })); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }, - _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactIconBase2 = _interopRequireDefault(__webpack_require__(1305)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - (exports.default = function IoChevronRight(props) { - return _react2.default.createElement( - _reactIconBase2.default, - _extends({ viewBox: '0 0 40 40' }, props), - _react2.default.createElement( - 'g', - null, - _react2.default.createElement('path', { - d: - 'm23.3 20l-13.1-13.6c-0.3-0.3-0.3-0.9 0-1.2l2.4-2.4c0.3-0.3 0.9-0.4 1.2-0.1l16 16.7c0.1 0.1 0.2 0.4 0.2 0.6s-0.1 0.5-0.2 0.6l-16 16.7c-0.3 0.3-0.9 0.3-1.2 0l-2.4-2.5c-0.3-0.3-0.3-0.9 0-1.2z' - }) - ) - ); - }), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }, - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var IconBase = function IconBase(_ref, _ref2) { - var children = _ref.children, - color = _ref.color, - size = _ref.size, - style = _ref.style, - width = _ref.width, - height = _ref.height, - props = (function _objectWithoutProperties(obj, keys) { - var target = {}; - for (var i in obj) - keys.indexOf(i) >= 0 || - (Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i])); - return target; - })(_ref, ['children', 'color', 'size', 'style', 'width', 'height']), - _ref2$reactIconBase = _ref2.reactIconBase, - reactIconBase = void 0 === _ref2$reactIconBase ? {} : _ref2$reactIconBase, - computedSize = size || reactIconBase.size || '1em'; - return _react2.default.createElement( - 'svg', - _extends( - { - children: children, - fill: 'currentColor', - preserveAspectRatio: 'xMidYMid meet', - height: height || computedSize, - width: width || computedSize - }, - reactIconBase, - props, - { - style: _extends( - { verticalAlign: 'middle', color: color || reactIconBase.color }, - reactIconBase.style || {}, - style - ) - } - ) - ); - }; - (IconBase.propTypes = { - color: _propTypes2.default.string, - size: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]), - width: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.number - ]), - height: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.number - ]), - style: _propTypes2.default.object - }), - (IconBase.contextTypes = { reactIconBase: _propTypes2.default.shape(IconBase.propTypes) }), - (exports.default = IconBase), - (module.exports = exports.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.RoutedLink = exports.MenuLink = void 0); - var _extends3 = _interopRequireDefault(__webpack_require__(8)); - exports.mapper = mapper; - var _components = __webpack_require__(181), - _gen_podda_loader2 = _interopRequireDefault(__webpack_require__(187)), - _handle_routing = __webpack_require__(607); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function mapper(state, props) { - return { - href: (0, _handle_routing.getUrlState)( - (0, _extends3.default)({}, state, props.overrideParams) - ).url - }; - } - var composer = (0, _interopRequireDefault(__webpack_require__(182)).default)( - (0, _gen_podda_loader2.default)(mapper) - ), - ComposedMenuLink = composer(_components.MenuLink); - exports.MenuLink = ComposedMenuLink; - var ComposedRoutedLink = composer(_components.RoutedLink); - exports.RoutedLink = ComposedRoutedLink; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _objectWithoutProperties3 = _interopRequireDefault(__webpack_require__(65)), - _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var MenuItem = (function(_React$Component) { - function MenuItem() { - var _ref; - (0, _classCallCheck3.default)(this, MenuItem); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) - args[_key] = arguments[_key]; - var _this = (0, _possibleConstructorReturn3.default)( - this, - (_ref = MenuItem.__proto__ || (0, _getPrototypeOf2.default)(MenuItem)).call.apply( - _ref, - [this].concat(args) - ) - ); - return (_this.onKeyDown = _this.onKeyDown.bind(_this)), _this; - } - return ( - (0, _inherits3.default)(MenuItem, _React$Component), - (0, _createClass3.default)(MenuItem, [ - { - key: 'onMouseDown', - value: function onMouseDown(event) { - event.preventDefault(); - } - }, - { - key: 'onKeyDown', - value: function onKeyDown(e) { - 13 === e.keyCode && this.props.onClick(e); - } - }, - { - key: 'render', - value: function render() { - var _props = this.props, - children = _props.children, - restProps = (0, _objectWithoutProperties3.default)(_props, ['children']); - return _react2.default.createElement( - 'div', - (0, _extends3.default)( - { - role: 'menuitem', - tabIndex: '0', - onKeyDown: this.onKeyDown, - onMouseDown: this.onMouseDown - }, - restProps - ), - children - ); - } - } - ]), - MenuItem - ); - })(_react2.default.Component); - (exports.default = MenuItem), - (MenuItem.propTypes = { - children: _propTypes2.default.node.isRequired, - onClick: _propTypes2.default.func.isRequired - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _slicedToArray3 = _interopRequireDefault(__webpack_require__(186)); - exports.highlightNode = function highlightNode(node, style) { - var name = node.name, - highlight = node.highlight; - if (!highlight || !highlight.length) return name; - return (function getParts(name, highlight) { - var nameParts = [], - last = 0; - highlight.forEach(function(_ref) { - var _ref2 = (0, _slicedToArray3.default)(_ref, 2), - start = _ref2[0], - end = _ref2[1]; - last < start && nameParts.push({ strong: !1, text: name.substring(last, start) }), - nameParts.push({ strong: !0, text: name.substring(start, end + 1) }), - (last = end + 1); - }), - last < name.length && - nameParts.push({ strong: !1, text: name.substring(last, name.length) }); - return nameParts; - })(name, highlight) - .filter(function(part) { - return part.text; - }) - .map(function(part, index) { - var key = part.text + '-' + index; - return part.strong - ? _react2.default.createElement( - 'strong', - { key: key, style: style.highLightText }, - part.text - ) - : _react2.default.createElement('span', { key: key }, part.text); - }); - }; - var _react2 = _interopRequireDefault(__webpack_require__(0)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _components = __webpack_require__(181); - exports.default = { - tree: { - base: { - listStyle: 'none', - margin: 0, - padding: '5px', - fontFamily: _components.baseFonts.fontFamily, - fontSize: '15px', - minWidth: '200px', - marginLeft: '-19px' - }, - node: { - base: { position: 'relative' }, - link: { - cursor: 'pointer', - position: 'relative', - overflow: 'hidden', - padding: '0px 5px', - display: 'block', - zIndex: 1 - }, - toggle: { - base: { - position: 'relative', - display: 'inline-block', - verticalAlign: 'top', - marginLeft: '-5px', - height: '24px', - width: '24px', - transformOrigin: '50% 11px' - }, - wrapper: { position: 'absolute', top: '50%', left: '50%', margin: '-6px 0 0 -5px' }, - height: 10, - width: 10, - arrow: { verticalAlign: 'top', fill: '#9DA5AB' } - }, - header: { - base: { display: 'inline-block', verticalAlign: 'top', maxWidth: 'calc(100% - 24px)' }, - connector: { - width: '2px', - height: '12px', - borderLeft: 'solid 2px black', - borderBottom: 'solid 2px black', - position: 'absolute', - top: '0px', - left: '-21px' - }, - title: { lineHeight: '18px', padding: '1px 0 5px' }, - highLightText: { backgroundColor: '#FFFEAA', fontWeight: 'inherit' } - }, - subtree: { paddingLeft: '19px', listStyle: 'none' } - } - } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _extends3 = _interopRequireDefault(__webpack_require__(8)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _lodash2 = _interopRequireDefault(__webpack_require__(638)), - _components = __webpack_require__(181); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var mainStyle = (0, _extends3.default)({}, _components.baseFonts, { - border: '1px solid #ECECEC', - borderRadius: 2, - position: 'relative' - }), - textWrapStyle = { background: '#F7F7F7' }, - textStyle = { - fontSize: 12, - color: '#828282', - padding: 5, - display: 'block', - width: '100%', - boxSizing: 'border-box', - outline: 'none', - border: 0, - height: 26 - }, - clearButtonStyle = { - position: 'absolute', - backgroundColor: 'transparent', - color: '#868686', - border: 'none', - width: 25, - height: 26, - right: 1, - top: 0, - textAlign: 'center', - cursor: 'pointer', - lineHeight: '23px', - fontSize: 20 - }, - debounceFilterChangeTimeout = 500, - TextFilter = (function(_React$Component) { - function TextFilter(props) { - (0, _classCallCheck3.default)(this, TextFilter); - var _this = (0, _possibleConstructorReturn3.default)( - this, - (TextFilter.__proto__ || (0, _getPrototypeOf2.default)(TextFilter)).call(this, props) - ); - return ( - (_this.state = { query: props.text }), - (_this.onChange = _this.onChange.bind(_this)), - (_this.fireOnClear = _this.fireOnClear.bind(_this)), - (_this.changeFilter = (0, _lodash2.default)( - _this.changeFilter, - debounceFilterChangeTimeout - )), - _this - ); - } - return ( - (0, _inherits3.default)(TextFilter, _React$Component), - (0, _createClass3.default)(TextFilter, [ - { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps) { - nextProps.text !== this.state.query && this.setState({ query: nextProps.text }); - } - }, - { - key: 'onChange', - value: function onChange(event) { - var text = event.target.value; - this.setState({ query: text }), this.changeFilter(text); - } - }, - { - key: 'fireOnClear', - value: function fireOnClear() { - this.setState({ query: '' }); - var onClear = this.props.onClear; - onClear && onClear(); - } - }, - { - key: 'changeFilter', - value: function changeFilter(text) { - var onChange = this.props.onChange; - onChange && onChange(text); - } - }, - { - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { style: mainStyle }, - _react2.default.createElement( - 'div', - { style: textWrapStyle }, - _react2.default.createElement('input', { - style: textStyle, - type: 'text', - placeholder: 'Filter', - name: 'filter-text', - value: this.state.query || '', - onChange: this.onChange - }) - ), - this.state.query && - this.state.query.length && - _react2.default.createElement( - 'button', - { style: clearButtonStyle, onClick: this.fireOnClear, className: 'clear' }, - '×' - ) - ); - } - } - ]), - TextFilter - ); - })(_react2.default.Component); - (exports.default = TextFilter), - (TextFilter.defaultProps = { text: '', onChange: null, onClear: null }), - (TextFilter.propTypes = { - text: _propTypes2.default.string, - onChange: _propTypes2.default.func, - onClear: _propTypes2.default.func - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _from2 = _interopRequireDefault(__webpack_require__(281)), - _map2 = _interopRequireDefault(__webpack_require__(858)), - _extends3 = _interopRequireDefault(__webpack_require__(8)); - exports.storyFilter = function storyFilter( - stories, - filter, - selectedKind, - selectedStory, - sortStoriesByKind - ) { - if (!stories) return null; - var sorted = (function sort(stories, sortStoriesByKind) { - return sortStoriesByKind ? (0, _lodash2.default)(stories, ['kind']) : stories; - })(stories, sortStoriesByKind); - if (!filter) return sorted; - var storiesWithHook = (function applySearchHookForSelectedKind( - stories, - filter, - selectedKind, - selectedStory - ) { - return stories.map(function(story) { - return story.kind === selectedKind && story.storyName === selectedStory - ? (0, _extends3.default)({}, story, { searchHook: filter }) - : story; - }); - })( - (function flattenStories(items) { - return items.reduce(function(arr, item) { - var flatten = item.stories.map(function(story) { - return { kind: item.kind, namespaces: item.namespaces, storyName: story }; - }); - return arr.concat(flatten); - }, []); - })(sorted), - filter, - selectedKind, - selectedStory - ); - return (function groupStories(matchedItems) { - var storiesMap = matchedItems.reduce(function(map, matchedItem) { - var item = matchedItem.item, - matches = matchedItem.matches, - groupedStoryItem = (function getGroupedStoryItem(map, item, matches) { - var storyItem = map.get(item.kind); - storyItem || - ((storyItem = { - kind: item.kind, - namespaces: item.namespaces, - stories: [], - matches: matches.filter(function(match) { - return 'namespaces' === match.key; - }) - }), - map.set(item.kind, storyItem)); - return storyItem; - })(map, item, matches); - return ( - groupedStoryItem.stories.push(item.storyName), - (function appendStoryMatch(item, matches) { - var storyMatch = matches.find(function(match) { - return 'storyName' === match.key; - }); - storyMatch && - item.matches.push({ - indices: storyMatch.indices, - value: storyMatch.value, - key: 'stories' - }); - })(groupedStoryItem, matches), - map - ); - }, new _map2.default()); - return (0, _from2.default)(storiesMap.values()); - })(new _fuse2.default(storiesWithHook, searchOptions).search(filter)); - }; - var _fuse2 = _interopRequireDefault(__webpack_require__(859)), - _lodash2 = _interopRequireDefault(__webpack_require__(1320)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var searchOptions = { - shouldSort: !1, - tokenize: !0, - matchAllTokens: !1, - includeMatches: !0, - findAllMatches: !0, - includeScore: !1, - threshold: 0.2, - location: 0, - distance: 200, - maxPatternLength: 32, - minMatchCharLength: 2, - keys: ['namespaces', 'storyName', 'searchHook'] - }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(117), - __webpack_require__(63), - __webpack_require__(64), - __webpack_require__(1313), - __webpack_require__(1315), - __webpack_require__(1318), - __webpack_require__(1319), - (module.exports = __webpack_require__(10).Map); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var strong = __webpack_require__(1314), - validate = __webpack_require__(172); - module.exports = __webpack_require__(288)( - 'Map', - function(get) { - return function Map() { - return get(this, arguments.length > 0 ? arguments[0] : void 0); - }; - }, - { - get: function get(key) { - var entry = strong.getEntry(validate(this, 'Map'), key); - return entry && entry.v; - }, - set: function set(key, value) { - return strong.def(validate(this, 'Map'), 0 === key ? 0 : key, value); - } - }, - strong, - !0 - ); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var dP = __webpack_require__(26).f, - create = __webpack_require__(116), - redefineAll = __webpack_require__(121), - ctx = __webpack_require__(35), - anInstance = __webpack_require__(120), - forOf = __webpack_require__(78), - $iterDefine = __webpack_require__(184), - step = __webpack_require__(277), - setSpecies = __webpack_require__(280), - DESCRIPTORS = __webpack_require__(29), - fastKey = __webpack_require__(77).fastKey, - validate = __webpack_require__(172), - SIZE = DESCRIPTORS ? '_s' : 'size', - getEntry = function(that, key) { - var entry, - index = fastKey(key); - if ('F' !== index) return that._i[index]; - for (entry = that._f; entry; entry = entry.n) if (entry.k == key) return entry; - }; - module.exports = { - getConstructor: function(wrapper, NAME, IS_MAP, ADDER) { - var C = wrapper(function(that, iterable) { - anInstance(that, C, NAME, '_i'), - (that._t = NAME), - (that._i = create(null)), - (that._f = void 0), - (that._l = void 0), - (that[SIZE] = 0), - void 0 != iterable && forOf(iterable, IS_MAP, that[ADDER], that); - }); - return ( - redefineAll(C.prototype, { - clear: function clear() { - for ( - var that = validate(this, NAME), data = that._i, entry = that._f; - entry; - entry = entry.n - ) - (entry.r = !0), entry.p && (entry.p = entry.p.n = void 0), delete data[entry.i]; - (that._f = that._l = void 0), (that[SIZE] = 0); - }, - delete: function(key) { - var that = validate(this, NAME), - entry = getEntry(that, key); - if (entry) { - var next = entry.n, - prev = entry.p; - delete that._i[entry.i], - (entry.r = !0), - prev && (prev.n = next), - next && (next.p = prev), - that._f == entry && (that._f = next), - that._l == entry && (that._l = prev), - that[SIZE]--; - } - return !!entry; - }, - forEach: function forEach(callbackfn) { - validate(this, NAME); - for ( - var entry, f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : void 0, 3); - (entry = entry ? entry.n : this._f); - - ) - for (f(entry.v, entry.k, this); entry && entry.r; ) entry = entry.p; - }, - has: function has(key) { - return !!getEntry(validate(this, NAME), key); - } - }), - DESCRIPTORS && - dP(C.prototype, 'size', { - get: function() { - return validate(this, NAME)[SIZE]; - } - }), - C - ); - }, - def: function(that, key, value) { - var prev, - index, - entry = getEntry(that, key); - return ( - entry - ? (entry.v = value) - : ((that._l = entry = { - i: (index = fastKey(key, !0)), - k: key, - v: value, - p: (prev = that._l), - n: void 0, - r: !1 - }), - that._f || (that._f = entry), - prev && (prev.n = entry), - that[SIZE]++, - 'F' !== index && (that._i[index] = entry)), - that - ); - }, - getEntry: getEntry, - setStrong: function(C, NAME, IS_MAP) { - $iterDefine( - C, - NAME, - function(iterated, kind) { - (this._t = validate(iterated, NAME)), (this._k = kind), (this._l = void 0); - }, - function() { - for (var kind = this._k, entry = this._l; entry && entry.r; ) entry = entry.p; - return this._t && (this._l = entry = entry ? entry.n : this._t._f) - ? step(0, 'keys' == kind ? entry.k : 'values' == kind ? entry.v : [entry.k, entry.v]) - : ((this._t = void 0), step(1)); - }, - IS_MAP ? 'entries' : 'values', - !IS_MAP, - !0 - ), - setSpecies(NAME); - } - }; - }, - function(module, exports, __webpack_require__) { - var $export = __webpack_require__(16); - $export($export.P + $export.R, 'Map', { toJSON: __webpack_require__(1316)('Map') }); - }, - function(module, exports, __webpack_require__) { - var classof = __webpack_require__(119), - from = __webpack_require__(1317); - module.exports = function(NAME) { - return function toJSON() { - if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic"); - return from(this); - }; - }; - }, - function(module, exports, __webpack_require__) { - var forOf = __webpack_require__(78); - module.exports = function(iter, ITERATOR) { - var result = []; - return forOf(iter, !1, result.push, result, ITERATOR), result; - }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(289)('Map'); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(290)('Map'); - }, - function(module, exports, __webpack_require__) { - (function(global, module) { - var LARGE_ARRAY_SIZE = 200, - FUNC_ERROR_TEXT = 'Expected a function', - HASH_UNDEFINED = '__lodash_hash_undefined__', - UNORDERED_COMPARE_FLAG = 1, - PARTIAL_COMPARE_FLAG = 2, - INFINITY = 1 / 0, - MAX_SAFE_INTEGER = 9007199254740991, - argsTag = '[object Arguments]', - arrayTag = '[object Array]', - boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - mapTag = '[object Map]', - numberTag = '[object Number]', - objectTag = '[object Object]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - symbolTag = '[object Symbol]', - arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]', - reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - reIsPlainProp = /^\w*$/, - reLeadingDot = /^\./, - rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, - reEscapeChar = /\\(\\)?/g, - reIsHostCtor = /^\[object .+?Constructor\]$/, - reIsUint = /^(?:0|[1-9]\d*)$/, - typedArrayTags = {}; - (typedArrayTags['[object Float32Array]'] = typedArrayTags[ - '[object Float64Array]' - ] = typedArrayTags['[object Int8Array]'] = typedArrayTags[ - '[object Int16Array]' - ] = typedArrayTags['[object Int32Array]'] = typedArrayTags[ - '[object Uint8Array]' - ] = typedArrayTags['[object Uint8ClampedArray]'] = typedArrayTags[ - '[object Uint16Array]' - ] = typedArrayTags['[object Uint32Array]'] = !0), - (typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[ - arrayBufferTag - ] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[ - dateTag - ] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[ - mapTag - ] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[ - regexpTag - ] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[ - '[object WeakMap]' - ] = !1); - var freeGlobal = 'object' == typeof global && global && global.Object === Object && global, - freeSelf = 'object' == typeof self && self && self.Object === Object && self, - root = freeGlobal || freeSelf || Function('return this')(), - freeExports = 'object' == typeof exports && exports && !exports.nodeType && exports, - freeModule = - freeExports && 'object' == typeof module && module && !module.nodeType && module, - freeProcess = freeModule && freeModule.exports === freeExports && freeGlobal.process, - nodeUtil = (function() { - try { - return freeProcess && freeProcess.binding('util'); - } catch (e) {} - })(), - nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; - function arrayMap(array, iteratee) { - for ( - var index = -1, length = array ? array.length : 0, result = Array(length); - ++index < length; - - ) - result[index] = iteratee(array[index], index, array); - return result; - } - function arrayPush(array, values) { - for (var index = -1, length = values.length, offset = array.length; ++index < length; ) - array[offset + index] = values[index]; - return array; - } - function arraySome(array, predicate) { - for (var index = -1, length = array ? array.length : 0; ++index < length; ) - if (predicate(array[index], index, array)) return !0; - return !1; - } - function baseUnary(func) { - return function(value) { - return func(value); - }; - } - function isHostObject(value) { - var result = !1; - if (null != value && 'function' != typeof value.toString) - try { - result = !!(value + ''); - } catch (e) {} - return result; - } - function mapToArray(map) { - var index = -1, - result = Array(map.size); - return ( - map.forEach(function(value, key) { - result[++index] = [key, value]; - }), - result - ); - } - function setToArray(set) { - var index = -1, - result = Array(set.size); - return ( - set.forEach(function(value) { - result[++index] = value; - }), - result - ); - } - var uid, - arrayProto = Array.prototype, - funcProto = Function.prototype, - objectProto = Object.prototype, - coreJsData = root['__core-js_shared__'], - maskSrcKey = (uid = /[^.]+$/.exec( - (coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO) || '' - )) - ? 'Symbol(src)_1.' + uid - : '', - funcToString = funcProto.toString, - hasOwnProperty = objectProto.hasOwnProperty, - objectToString = objectProto.toString, - reIsNative = RegExp( - '^' + - funcToString - .call(hasOwnProperty) - .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + - '$' - ), - Symbol = root.Symbol, - Uint8Array = root.Uint8Array, - propertyIsEnumerable = objectProto.propertyIsEnumerable, - splice = arrayProto.splice, - spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : void 0, - nativeKeys = (function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; - })(Object.keys, Object), - nativeMax = Math.max, - DataView = getNative(root, 'DataView'), - Map = getNative(root, 'Map'), - Promise = getNative(root, 'Promise'), - Set = getNative(root, 'Set'), - WeakMap = getNative(root, 'WeakMap'), - nativeCreate = getNative(Object, 'create'), - dataViewCtorString = toSource(DataView), - mapCtorString = toSource(Map), - promiseCtorString = toSource(Promise), - setCtorString = toSource(Set), - weakMapCtorString = toSource(WeakMap), - symbolProto = Symbol ? Symbol.prototype : void 0, - symbolValueOf = symbolProto ? symbolProto.valueOf : void 0, - symbolToString = symbolProto ? symbolProto.toString : void 0; - function Hash(entries) { - var index = -1, - length = entries ? entries.length : 0; - for (this.clear(); ++index < length; ) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - function ListCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - for (this.clear(); ++index < length; ) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - function MapCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - for (this.clear(); ++index < length; ) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - function SetCache(values) { - var index = -1, - length = values ? values.length : 0; - for (this.__data__ = new MapCache(); ++index < length; ) this.add(values[index]); - } - function Stack(entries) { - this.__data__ = new ListCache(entries); - } - function arrayLikeKeys(value, inherited) { - var result = - isArray(value) || isArguments(value) - ? (function baseTimes(n, iteratee) { - for (var index = -1, result = Array(n); ++index < n; ) - result[index] = iteratee(index); - return result; - })(value.length, String) - : [], - length = result.length, - skipIndexes = !!length; - for (var key in value) - (!inherited && !hasOwnProperty.call(value, key)) || - (skipIndexes && ('length' == key || isIndex(key, length))) || - result.push(key); - return result; - } - function assocIndexOf(array, key) { - for (var length = array.length; length--; ) if (eq(array[length][0], key)) return length; - return -1; - } - (Hash.prototype.clear = function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - }), - (Hash.prototype.delete = function hashDelete(key) { - return this.has(key) && delete this.__data__[key]; - }), - (Hash.prototype.get = function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? void 0 : result; - } - return hasOwnProperty.call(data, key) ? data[key] : void 0; - }), - (Hash.prototype.has = function hashHas(key) { - var data = this.__data__; - return nativeCreate ? void 0 !== data[key] : hasOwnProperty.call(data, key); - }), - (Hash.prototype.set = function hashSet(key, value) { - return ( - (this.__data__[key] = nativeCreate && void 0 === value ? HASH_UNDEFINED : value), this - ); - }), - (ListCache.prototype.clear = function listCacheClear() { - this.__data__ = []; - }), - (ListCache.prototype.delete = function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - return !( - index < 0 || (index == data.length - 1 ? data.pop() : splice.call(data, index, 1), 0) - ); - }), - (ListCache.prototype.get = function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - return index < 0 ? void 0 : data[index][1]; - }), - (ListCache.prototype.has = function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; - }), - (ListCache.prototype.set = function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - return index < 0 ? data.push([key, value]) : (data[index][1] = value), this; - }), - (MapCache.prototype.clear = function mapCacheClear() { - this.__data__ = { hash: new Hash(), map: new (Map || ListCache)(), string: new Hash() }; - }), - (MapCache.prototype.delete = function mapCacheDelete(key) { - return getMapData(this, key).delete(key); - }), - (MapCache.prototype.get = function mapCacheGet(key) { - return getMapData(this, key).get(key); - }), - (MapCache.prototype.has = function mapCacheHas(key) { - return getMapData(this, key).has(key); - }), - (MapCache.prototype.set = function mapCacheSet(key, value) { - return getMapData(this, key).set(key, value), this; - }), - (SetCache.prototype.add = SetCache.prototype.push = function setCacheAdd(value) { - return this.__data__.set(value, HASH_UNDEFINED), this; - }), - (SetCache.prototype.has = function setCacheHas(value) { - return this.__data__.has(value); - }), - (Stack.prototype.clear = function stackClear() { - this.__data__ = new ListCache(); - }), - (Stack.prototype.delete = function stackDelete(key) { - return this.__data__.delete(key); - }), - (Stack.prototype.get = function stackGet(key) { - return this.__data__.get(key); - }), - (Stack.prototype.has = function stackHas(key) { - return this.__data__.has(key); - }), - (Stack.prototype.set = function stackSet(key, value) { - var cache = this.__data__; - if (cache instanceof ListCache) { - var pairs = cache.__data__; - if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) return pairs.push([key, value]), this; - cache = this.__data__ = new MapCache(pairs); - } - return cache.set(key, value), this; - }); - var baseEach = (function createBaseEach(eachFunc, fromRight) { - return function(collection, iteratee) { - if (null == collection) return collection; - if (!isArrayLike(collection)) return eachFunc(collection, iteratee); - for ( - var length = collection.length, - index = fromRight ? length : -1, - iterable = Object(collection); - (fromRight ? index-- : ++index < length) && - !1 !== iteratee(iterable[index], index, iterable); - - ); - return collection; - }; - })(function baseForOwn(object, iteratee) { - return object && baseFor(object, iteratee, keys); - }); - var baseFor = (function createBaseFor(fromRight) { - return function(object, iteratee, keysFunc) { - for ( - var index = -1, - iterable = Object(object), - props = keysFunc(object), - length = props.length; - length--; - - ) { - var key = props[fromRight ? length : ++index]; - if (!1 === iteratee(iterable[key], key, iterable)) break; - } - return object; - }; - })(); - function baseGet(object, path) { - for ( - var index = 0, length = (path = isKey(path, object) ? [path] : castPath(path)).length; - null != object && index < length; - - ) - object = object[toKey(path[index++])]; - return index && index == length ? object : void 0; - } - function baseHasIn(object, key) { - return null != object && key in Object(object); - } - function baseIsEqual(value, other, customizer, bitmask, stack) { - return ( - value === other || - (null == value || null == other || (!isObject(value) && !isObjectLike(other)) - ? value != value && other != other - : (function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) { - var objIsArr = isArray(object), - othIsArr = isArray(other), - objTag = arrayTag, - othTag = arrayTag; - objIsArr || (objTag = (objTag = getTag(object)) == argsTag ? objectTag : objTag); - othIsArr || (othTag = (othTag = getTag(other)) == argsTag ? objectTag : othTag); - var objIsObj = objTag == objectTag && !isHostObject(object), - othIsObj = othTag == objectTag && !isHostObject(other), - isSameTag = objTag == othTag; - if (isSameTag && !objIsObj) - return ( - stack || (stack = new Stack()), - objIsArr || isTypedArray(object) - ? equalArrays(object, other, equalFunc, customizer, bitmask, stack) - : (function equalByTag( - object, - other, - tag, - equalFunc, - customizer, - bitmask, - stack - ) { - switch (tag) { - case dataViewTag: - if ( - object.byteLength != other.byteLength || - object.byteOffset != other.byteOffset - ) - return !1; - (object = object.buffer), (other = other.buffer); - case arrayBufferTag: - return !( - object.byteLength != other.byteLength || - !equalFunc(new Uint8Array(object), new Uint8Array(other)) - ); - case boolTag: - case dateTag: - case numberTag: - return eq(+object, +other); - case errorTag: - return object.name == other.name && object.message == other.message; - case regexpTag: - case stringTag: - return object == other + ''; - case mapTag: - var convert = mapToArray; - case setTag: - var isPartial = bitmask & PARTIAL_COMPARE_FLAG; - if ( - (convert || (convert = setToArray), - object.size != other.size && !isPartial) - ) - return !1; - var stacked = stack.get(object); - if (stacked) return stacked == other; - (bitmask |= UNORDERED_COMPARE_FLAG), stack.set(object, other); - var result = equalArrays( - convert(object), - convert(other), - equalFunc, - customizer, - bitmask, - stack - ); - return stack.delete(object), result; - case symbolTag: - if (symbolValueOf) - return symbolValueOf.call(object) == symbolValueOf.call(other); - } - return !1; - })(object, other, objTag, equalFunc, customizer, bitmask, stack) - ); - if (!(bitmask & PARTIAL_COMPARE_FLAG)) { - var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), - othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); - if (objIsWrapped || othIsWrapped) { - var objUnwrapped = objIsWrapped ? object.value() : object, - othUnwrapped = othIsWrapped ? other.value() : other; - return ( - stack || (stack = new Stack()), - equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack) - ); - } - } - if (!isSameTag) return !1; - return ( - stack || (stack = new Stack()), - (function equalObjects(object, other, equalFunc, customizer, bitmask, stack) { - var isPartial = bitmask & PARTIAL_COMPARE_FLAG, - objProps = keys(object), - objLength = objProps.length, - othLength = keys(other).length; - if (objLength != othLength && !isPartial) return !1; - for (var index = objLength; index--; ) { - var key = objProps[index]; - if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) return !1; - } - var stacked = stack.get(object); - if (stacked && stack.get(other)) return stacked == other; - var result = !0; - stack.set(object, other), stack.set(other, object); - for (var skipCtor = isPartial; ++index < objLength; ) { - key = objProps[index]; - var objValue = object[key], - othValue = other[key]; - if (customizer) - var compared = isPartial - ? customizer(othValue, objValue, key, other, object, stack) - : customizer(objValue, othValue, key, object, other, stack); - if ( - !(void 0 === compared - ? objValue === othValue || - equalFunc(objValue, othValue, customizer, bitmask, stack) - : compared) - ) { - result = !1; - break; - } - skipCtor || (skipCtor = 'constructor' == key); - } - if (result && !skipCtor) { - var objCtor = object.constructor, - othCtor = other.constructor; - objCtor != othCtor && - 'constructor' in object && - 'constructor' in other && - !( - 'function' == typeof objCtor && - objCtor instanceof objCtor && - 'function' == typeof othCtor && - othCtor instanceof othCtor - ) && - (result = !1); - } - return stack.delete(object), stack.delete(other), result; - })(object, other, equalFunc, customizer, bitmask, stack) - ); - })(value, other, baseIsEqual, customizer, bitmask, stack)) - ); - } - function baseIsNative(value) { - return ( - !( - !isObject(value) || - (function isMasked(func) { - return !!maskSrcKey && maskSrcKey in func; - })(value) - ) && - (isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor).test( - toSource(value) - ) - ); - } - function baseIteratee(value) { - return 'function' == typeof value - ? value - : null == value - ? identity - : 'object' == typeof value - ? isArray(value) - ? (function baseMatchesProperty(path, srcValue) { - if (isKey(path) && isStrictComparable(srcValue)) - return matchesStrictComparable(toKey(path), srcValue); - return function(object) { - var objValue = (function get(object, path, defaultValue) { - var result = null == object ? void 0 : baseGet(object, path); - return void 0 === result ? defaultValue : result; - })(object, path); - return void 0 === objValue && objValue === srcValue - ? (function hasIn(object, path) { - return ( - null != object && - (function hasPath(object, path, hasFunc) { - var result, - index = -1, - length = (path = isKey(path, object) ? [path] : castPath(path)) - .length; - for (; ++index < length; ) { - var key = toKey(path[index]); - if (!(result = null != object && hasFunc(object, key))) break; - object = object[key]; - } - if (result) return result; - return ( - !!(length = object ? object.length : 0) && - isLength(length) && - isIndex(key, length) && - (isArray(object) || isArguments(object)) - ); - })(object, path, baseHasIn) - ); - })(object, path) - : baseIsEqual( - srcValue, - objValue, - void 0, - UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG - ); - }; - })(value[0], value[1]) - : (function baseMatches(source) { - var matchData = (function getMatchData(object) { - var result = keys(object), - length = result.length; - for (; length--; ) { - var key = result[length], - value = object[key]; - result[length] = [key, value, isStrictComparable(value)]; - } - return result; - })(source); - if (1 == matchData.length && matchData[0][2]) - return matchesStrictComparable(matchData[0][0], matchData[0][1]); - return function(object) { - return ( - object === source || - (function baseIsMatch(object, source, matchData, customizer) { - var index = matchData.length, - length = index, - noCustomizer = !customizer; - if (null == object) return !length; - for (object = Object(object); index--; ) { - var data = matchData[index]; - if ( - noCustomizer && data[2] - ? data[1] !== object[data[0]] - : !(data[0] in object) - ) - return !1; - } - for (; ++index < length; ) { - var key = (data = matchData[index])[0], - objValue = object[key], - srcValue = data[1]; - if (noCustomizer && data[2]) { - if (void 0 === objValue && !(key in object)) return !1; - } else { - var stack = new Stack(); - if (customizer) - var result = customizer( - objValue, - srcValue, - key, - object, - source, - stack - ); - if ( - !(void 0 === result - ? baseIsEqual( - srcValue, - objValue, - customizer, - UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, - stack - ) - : result) - ) - return !1; - } - } - return !0; - })(object, source, matchData) - ); - }; - })(value) - : (function property(path) { - return isKey(path) - ? (function baseProperty(key) { - return function(object) { - return null == object ? void 0 : object[key]; - }; - })(toKey(path)) - : (function basePropertyDeep(path) { - return function(object) { - return baseGet(object, path); - }; - })(path); - })(value); - } - function baseKeys(object) { - if ( - !(function isPrototype(value) { - var Ctor = value && value.constructor, - proto = ('function' == typeof Ctor && Ctor.prototype) || objectProto; - return value === proto; - })(object) - ) - return nativeKeys(object); - var result = []; - for (var key in Object(object)) - hasOwnProperty.call(object, key) && 'constructor' != key && result.push(key); - return result; - } - function baseOrderBy(collection, iteratees, orders) { - var index = -1; - return ( - (iteratees = arrayMap( - iteratees.length ? iteratees : [identity], - baseUnary(baseIteratee) - )), - (function baseSortBy(array, comparer) { - var length = array.length; - for (array.sort(comparer); length--; ) array[length] = array[length].value; - return array; - })( - (function baseMap(collection, iteratee) { - var index = -1, - result = isArrayLike(collection) ? Array(collection.length) : []; - return ( - baseEach(collection, function(value, key, collection) { - result[++index] = iteratee(value, key, collection); - }), - result - ); - })(collection, function(value, key, collection) { - return { - criteria: arrayMap(iteratees, function(iteratee) { - return iteratee(value); - }), - index: ++index, - value: value - }; - }), - function(object, other) { - return (function compareMultiple(object, other, orders) { - var index = -1, - objCriteria = object.criteria, - othCriteria = other.criteria, - length = objCriteria.length, - ordersLength = orders.length; - for (; ++index < length; ) { - var result = compareAscending(objCriteria[index], othCriteria[index]); - if (result) { - if (index >= ordersLength) return result; - var order = orders[index]; - return result * ('desc' == order ? -1 : 1); - } - } - return object.index - other.index; - })(object, other, orders); - } - ) - ); - } - function castPath(value) { - return isArray(value) ? value : stringToPath(value); - } - function compareAscending(value, other) { - if (value !== other) { - var valIsDefined = void 0 !== value, - valIsNull = null === value, - valIsReflexive = value == value, - valIsSymbol = isSymbol(value), - othIsDefined = void 0 !== other, - othIsNull = null === other, - othIsReflexive = other == other, - othIsSymbol = isSymbol(other); - if ( - (!othIsNull && !othIsSymbol && !valIsSymbol && value > other) || - (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) || - (valIsNull && othIsDefined && othIsReflexive) || - (!valIsDefined && othIsReflexive) || - !valIsReflexive - ) - return 1; - if ( - (!valIsNull && !valIsSymbol && !othIsSymbol && value < other) || - (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) || - (othIsNull && valIsDefined && valIsReflexive) || - (!othIsDefined && valIsReflexive) || - !othIsReflexive - ) - return -1; - } - return 0; - } - function equalArrays(array, other, equalFunc, customizer, bitmask, stack) { - var isPartial = bitmask & PARTIAL_COMPARE_FLAG, - arrLength = array.length, - othLength = other.length; - if (arrLength != othLength && !(isPartial && othLength > arrLength)) return !1; - var stacked = stack.get(array); - if (stacked && stack.get(other)) return stacked == other; - var index = -1, - result = !0, - seen = bitmask & UNORDERED_COMPARE_FLAG ? new SetCache() : void 0; - for (stack.set(array, other), stack.set(other, array); ++index < arrLength; ) { - var arrValue = array[index], - othValue = other[index]; - if (customizer) - var compared = isPartial - ? customizer(othValue, arrValue, index, other, array, stack) - : customizer(arrValue, othValue, index, array, other, stack); - if (void 0 !== compared) { - if (compared) continue; - result = !1; - break; - } - if (seen) { - if ( - !arraySome(other, function(othValue, othIndex) { - if ( - !seen.has(othIndex) && - (arrValue === othValue || - equalFunc(arrValue, othValue, customizer, bitmask, stack)) - ) - return seen.add(othIndex); - }) - ) { - result = !1; - break; - } - } else if ( - arrValue !== othValue && - !equalFunc(arrValue, othValue, customizer, bitmask, stack) - ) { - result = !1; - break; - } - } - return stack.delete(array), stack.delete(other), result; - } - function getMapData(map, key) { - var data = map.__data__; - return (function isKeyable(value) { - var type = typeof value; - return 'string' == type || 'number' == type || 'symbol' == type || 'boolean' == type - ? '__proto__' !== value - : null === value; - })(key) - ? data['string' == typeof key ? 'string' : 'hash'] - : data.map; - } - function getNative(object, key) { - var value = (function getValue(object, key) { - return null == object ? void 0 : object[key]; - })(object, key); - return baseIsNative(value) ? value : void 0; - } - var getTag = function baseGetTag(value) { - return objectToString.call(value); - }; - function isFlattenable(value) { - return ( - isArray(value) || - isArguments(value) || - !!(spreadableSymbol && value && value[spreadableSymbol]) - ); - } - function isIndex(value, length) { - return ( - !!(length = null == length ? MAX_SAFE_INTEGER : length) && - ('number' == typeof value || reIsUint.test(value)) && - value > -1 && - value % 1 == 0 && - value < length - ); - } - function isIterateeCall(value, index, object) { - if (!isObject(object)) return !1; - var type = typeof index; - return ( - !!('number' == type - ? isArrayLike(object) && isIndex(index, object.length) - : 'string' == type && index in object) && eq(object[index], value) - ); - } - function isKey(value, object) { - if (isArray(value)) return !1; - var type = typeof value; - return ( - !( - 'number' != type && - 'symbol' != type && - 'boolean' != type && - null != value && - !isSymbol(value) - ) || - (reIsPlainProp.test(value) || - !reIsDeepProp.test(value) || - (null != object && value in Object(object))) - ); - } - function isStrictComparable(value) { - return value == value && !isObject(value); - } - function matchesStrictComparable(key, srcValue) { - return function(object) { - return ( - null != object && - (object[key] === srcValue && (void 0 !== srcValue || key in Object(object))) - ); - }; - } - ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || - (Map && getTag(new Map()) != mapTag) || - (Promise && '[object Promise]' != getTag(Promise.resolve())) || - (Set && getTag(new Set()) != setTag) || - (WeakMap && '[object WeakMap]' != getTag(new WeakMap()))) && - (getTag = function(value) { - var result = objectToString.call(value), - Ctor = result == objectTag ? value.constructor : void 0, - ctorString = Ctor ? toSource(Ctor) : void 0; - if (ctorString) - switch (ctorString) { - case dataViewCtorString: - return dataViewTag; - case mapCtorString: - return mapTag; - case promiseCtorString: - return '[object Promise]'; - case setCtorString: - return setTag; - case weakMapCtorString: - return '[object WeakMap]'; - } - return result; - }); - var stringToPath = memoize(function(string) { - string = (function toString(value) { - return null == value - ? '' - : (function baseToString(value) { - if ('string' == typeof value) return value; - if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : ''; - var result = value + ''; - return '0' == result && 1 / value == -INFINITY ? '-0' : result; - })(value); - })(string); - var result = []; - return ( - reLeadingDot.test(string) && result.push(''), - string.replace(rePropName, function(match, number, quote, string) { - result.push(quote ? string.replace(reEscapeChar, '$1') : number || match); - }), - result - ); - }); - function toKey(value) { - if ('string' == typeof value || isSymbol(value)) return value; - var result = value + ''; - return '0' == result && 1 / value == -INFINITY ? '-0' : result; - } - function toSource(func) { - if (null != func) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return func + ''; - } catch (e) {} - } - return ''; - } - var sortBy = (function baseRest(func, start) { - return ( - (start = nativeMax(void 0 === start ? func.length - 1 : start, 0)), - function() { - for ( - var args = arguments, - index = -1, - length = nativeMax(args.length - start, 0), - array = Array(length); - ++index < length; - - ) - array[index] = args[start + index]; - index = -1; - for (var otherArgs = Array(start + 1); ++index < start; ) - otherArgs[index] = args[index]; - return ( - (otherArgs[start] = array), - (function apply(func, thisArg, args) { - switch (args.length) { - case 0: - return func.call(thisArg); - case 1: - return func.call(thisArg, args[0]); - case 2: - return func.call(thisArg, args[0], args[1]); - case 3: - return func.call(thisArg, args[0], args[1], args[2]); - } - return func.apply(thisArg, args); - })(func, this, otherArgs) - ); - } - ); - })(function(collection, iteratees) { - if (null == collection) return []; - var length = iteratees.length; - return ( - length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1]) - ? (iteratees = []) - : length > 2 && - isIterateeCall(iteratees[0], iteratees[1], iteratees[2]) && - (iteratees = [iteratees[0]]), - baseOrderBy( - collection, - (function baseFlatten(array, depth, predicate, isStrict, result) { - var index = -1, - length = array.length; - for ( - predicate || (predicate = isFlattenable), result || (result = []); - ++index < length; - - ) { - var value = array[index]; - depth > 0 && predicate(value) - ? depth > 1 - ? baseFlatten(value, depth - 1, predicate, isStrict, result) - : arrayPush(result, value) - : isStrict || (result[result.length] = value); - } - return result; - })(iteratees, 1), - [] - ) - ); - }); - function memoize(func, resolver) { - if ('function' != typeof func || (resolver && 'function' != typeof resolver)) - throw new TypeError(FUNC_ERROR_TEXT); - var memoized = function() { - var args = arguments, - key = resolver ? resolver.apply(this, args) : args[0], - cache = memoized.cache; - if (cache.has(key)) return cache.get(key); - var result = func.apply(this, args); - return (memoized.cache = cache.set(key, result)), result; - }; - return (memoized.cache = new (memoize.Cache || MapCache)()), memoized; - } - function eq(value, other) { - return value === other || (value != value && other != other); - } - function isArguments(value) { - return ( - (function isArrayLikeObject(value) { - return isObjectLike(value) && isArrayLike(value); - })(value) && - hasOwnProperty.call(value, 'callee') && - (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag) - ); - } - memoize.Cache = MapCache; - var isArray = Array.isArray; - function isArrayLike(value) { - return null != value && isLength(value.length) && !isFunction(value); - } - function isFunction(value) { - var tag = isObject(value) ? objectToString.call(value) : ''; - return tag == funcTag || tag == genTag; - } - function isLength(value) { - return ( - 'number' == typeof value && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER - ); - } - function isObject(value) { - var type = typeof value; - return !!value && ('object' == type || 'function' == type); - } - function isObjectLike(value) { - return !!value && 'object' == typeof value; - } - function isSymbol(value) { - return ( - 'symbol' == typeof value || - (isObjectLike(value) && objectToString.call(value) == symbolTag) - ); - } - var isTypedArray = nodeIsTypedArray - ? baseUnary(nodeIsTypedArray) - : function baseIsTypedArray(value) { - return ( - isObjectLike(value) && - isLength(value.length) && - !!typedArrayTags[objectToString.call(value)] - ); - }; - function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); - } - function identity(value) { - return value; - } - module.exports = sortBy; - }.call(exports, __webpack_require__(27), __webpack_require__(118)(module))); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _map2 = _interopRequireDefault(__webpack_require__(858)), - _toConsumableArray3 = _interopRequireDefault(__webpack_require__(45)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function findMatches(matches, type, value) { - if (!matches) return null; - var matchForType = matches - .filter(function(match) { - return match.key === type; - }) - .find(function(match) { - return match.value === value; - }); - return matchForType ? matchForType.indices : null; - } - function resolveStoryHierarchy() { - var storyName = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : '', - hierarchySeparator = arguments[1]; - return hierarchySeparator ? storyName.split(new RegExp(hierarchySeparator)) : [storyName]; - } - (exports.createHierarchy = function createHierarchy(stories) { - var hierarchyRoot = { isNamespace: !0, namespaces: [], name: '', map: new _map2.default() }; - stories && - stories.forEach(function(story) { - var namespaces = story.namespaces, - name = namespaces[namespaces.length - 1]; - !(function fillHierarchy(namespaces, hierarchy, story) { - var namespace = namespaces[0]; - var childHierarchy = hierarchy.map.get(namespace); - childHierarchy || - ((childHierarchy = (function createNamespaceNode(namespace, hierarchy, story) { - return { - isNamespace: !0, - name: namespace, - namespaces: [].concat((0, _toConsumableArray3.default)(hierarchy.namespaces), [ - namespace - ]), - highlight: findMatches(story.matches, 'namespaces', namespace), - map: new _map2.default() - }; - })(namespace, hierarchy, story)), - hierarchy.map.set(namespace, childHierarchy)); - if (1 === namespaces.length) - return ( - (childHierarchy.kind = story.kind), - void (childHierarchy.stories = story.stories.map(function(s) { - return { name: s, highlight: findMatches(story.matches, 'stories', s) }; - })) - ); - fillHierarchy(namespaces.slice(1), childHierarchy, story); - })(namespaces, hierarchyRoot, (0, _extends3.default)({}, story, { name: name })); - }); - return hierarchyRoot; - }), - (exports.resolveStoryHierarchy = resolveStoryHierarchy), - (exports.prepareStoriesForHierarchy = function prepareStoriesForHierarchy( - stories, - hierarchySeparator - ) { - if (!stories) return null; - return stories.map(function(story) { - var namespaces = resolveStoryHierarchy(story.kind, hierarchySeparator); - return (0, _extends3.default)({}, story, { namespaces: namespaces }); - }); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.mapper = mapper); - var _addon_panel2 = _interopRequireDefault(__webpack_require__(1323)), - _gen_podda_loader2 = _interopRequireDefault(__webpack_require__(187)), - _compose2 = _interopRequireDefault(__webpack_require__(182)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function mapper(state, props, _ref) { - var context = _ref.context, - actions = _ref.actions, - panels = context().provider.getPanels(), - actionMap = actions(); - return { - panels: panels, - selectedPanel: state.selectedAddonPanel, - onPanelSelect: actionMap.ui.selectAddonPanel - }; - } - exports.default = (0, _compose2.default)((0, _gen_podda_loader2.default)(mapper))( - _addon_panel2.default - ); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _keys2 = _interopRequireDefault(__webpack_require__(34)), - _assign2 = _interopRequireDefault(__webpack_require__(86)), - _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _style2 = _interopRequireDefault(__webpack_require__(1324)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var AddonPanel = (function(_Component) { - function AddonPanel() { - return ( - (0, _classCallCheck3.default)(this, AddonPanel), - (0, _possibleConstructorReturn3.default)( - this, - (AddonPanel.__proto__ || (0, _getPrototypeOf2.default)(AddonPanel)).apply( - this, - arguments - ) - ) - ); - } - return ( - (0, _inherits3.default)(AddonPanel, _Component), - (0, _createClass3.default)(AddonPanel, [ - { - key: 'renderTab', - value: function renderTab(name, panel) { - var _this2 = this, - tabStyle = _style2.default.tablink; - this.props.selectedPanel === name && - (tabStyle = (0, _assign2.default)( - {}, - _style2.default.tablink, - _style2.default.activetab - )); - var title = panel.title; - return ( - 'function' == typeof title && (title = title()), - _react2.default.createElement( - 'button', - { - type: 'button', - key: name, - style: tabStyle, - onClick: function onClick(e) { - e.preventDefault(), _this2.props.onPanelSelect(name); - }, - role: 'tab' - }, - title - ) - ); - } - }, - { - key: 'renderTabs', - value: function renderTabs() { - var _this3 = this; - return (0, _keys2.default)(this.props.panels).map(function(name) { - var panel = _this3.props.panels[name]; - return _this3.renderTab(name, panel); - }); - } - }, - { - key: 'renderPanels', - value: function renderPanels() { - var _this4 = this; - return (0, _keys2.default)(this.props.panels) - .sort() - .map(function(name) { - var panelStyle = { display: 'none' }, - panel = _this4.props.panels[name]; - return ( - name === _this4.props.selectedPanel && - (0, _assign2.default)(panelStyle, { flex: 1, display: 'flex' }), - _react2.default.createElement( - 'div', - { key: name, style: panelStyle, role: 'tabpanel' }, - panel.render() - ) - ); - }); - } - }, - { - key: 'renderEmpty', - value: function renderEmpty() { - return _react2.default.createElement( - 'div', - { style: _style2.default.empty }, - 'no panels available' - ); - } - }, - { - key: 'render', - value: function render() { - return this.props.panels && (0, _keys2.default)(this.props.panels).length - ? _react2.default.createElement( - 'div', - { style: _style2.default.wrapper }, - _react2.default.createElement( - 'div', - { style: _style2.default.tabbar, role: 'tablist' }, - this.renderTabs() - ), - _react2.default.createElement( - 'div', - { style: _style2.default.content }, - this.renderPanels() - ) - ) - : this.renderEmpty(); - } - } - ]), - AddonPanel - ); - })(_react.Component); - (AddonPanel.defaultProps = { - panels: {}, - onPanelSelect: function onPanelSelect() {}, - selectedPanel: null - }), - (AddonPanel.propTypes = { - panels: _propTypes2.default.object, - onPanelSelect: _propTypes2.default.func, - selectedPanel: _propTypes2.default.string - }), - (exports.default = AddonPanel); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(8)), - _components = __webpack_require__(181); - exports.default = { - empty: (0, _extends3.default)({ flex: 1, display: 'flex' }, _components.baseFonts, { - fontSize: 11, - letterSpacing: '1px', - textTransform: 'uppercase', - alignItems: 'center', - justifyContent: 'center' - }), - wrapper: { - flex: '1 1 auto', - display: 'flex', - flexDirection: 'column', - background: 'white', - borderRadius: 4, - border: 'solid 1px rgb(236, 236, 236)', - marginTop: 5, - width: '100%' - }, - tabbar: { - display: 'flex', - flexWrap: 'wrap', - flexDirection: 'row', - justifyContent: 'flex-start', - alignItems: 'center', - borderBottom: 'solid 1px #eaeaea' - }, - content: { flex: '1 1 0', display: 'flex', overflow: 'auto' }, - tablink: (0, _extends3.default)({}, _components.baseFonts, { - fontSize: 11, - letterSpacing: '1px', - padding: '10px 15px', - textTransform: 'uppercase', - transition: 'opacity 0.3s', - opacity: 0.5, - maxHeight: 60, - overflow: 'hidden', - cursor: 'pointer', - background: 'transparent', - border: 'none' - }), - activetab: { opacity: 1 } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.mapper = void 0); - var _global = __webpack_require__(50), - _shortcuts_help = __webpack_require__(1326), - _gen_podda_loader2 = _interopRequireDefault(__webpack_require__(187)), - _compose2 = _interopRequireDefault(__webpack_require__(182)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var mapper = (exports.mapper = function mapper(state, props, _ref) { - var actionMap = (0, _ref.actions)(); - return { - isOpen: state.showShortcutsHelp, - onClose: actionMap.ui.toggleShortcutsHelp, - platform: _global.window.navigator.platform.toLowerCase() - }; - }); - exports.default = (0, _compose2.default)((0, _gen_podda_loader2.default)(mapper))( - _shortcuts_help.ShortcutsHelp - ); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.ShortcutsHelp = exports.Shortcuts = exports.Keys = void 0); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)); - exports.getShortcuts = getShortcuts; - var _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _reactModal2 = _interopRequireDefault(__webpack_require__(608)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var commandStyle = { - backgroundColor: '#eee', - padding: '2px 7px', - borderRadius: 2, - lineHeight: '36px', - marginRight: '9px' - }, - h4Style = { marginTop: 0, textAlign: 'center' }, - modalStyles = { - content: { - left: '50%', - bottom: 'initial', - right: 'initial', - width: 440, - marginLeft: -220, - border: 'none', - overflow: 'visible', - fontFamily: 'sans-serif', - fontSize: 14 - }, - overlay: { backgroundColor: 'rgba(0, 0, 0, 0.74902)', zIndex: 1 } - }; - function getShortcuts(platform) { - return platform && -1 !== platform.indexOf('mac') - ? [ - { name: 'Show Search Box', keys: ['⌘ ⇧ O', '⌃ ⇧ O'] }, - { name: 'Toggle Addon panel position', keys: ['⌘ ⇧ G', '⌃ ⇧ G'] }, - { name: 'Toggle Fullscreen Mode', keys: ['⌘ ⇧ F', '⌃ ⇧ F'] }, - { name: 'Toggle Stories Panel', keys: ['⌘ ⇧ X', '⌃ ⇧ X'] }, - { name: 'Toggle Addon panel', keys: ['⌘ ⇧ C', '⌃ ⇧ C'] }, - { name: 'Next Story', keys: ['⌘ ⇧ →', '⌃ ⇧ →'] }, - { name: 'Previous Story', keys: ['⌘ ⇧ ←', '⌃ ⇧ ←'] } - ] - : [ - { name: 'Show Search Box', keys: ['Ctrl + Shift + O'] }, - { name: 'Toggle Addon panel position', keys: ['Ctrl + Shift + G'] }, - { name: 'Toggle Fullscreen Mode', keys: ['Ctrl + Shift + F'] }, - { name: 'Toggle Stories Panel', keys: ['Ctrl + Shift + X'] }, - { name: 'Toggle Addon panel', keys: ['Ctrl + Shift + C'] }, - { name: 'Next Story', keys: ['Ctrl + Shift + →'] }, - { name: 'Previous Story', keys: ['Ctrl + Shift + ←'] } - ]; - } - var Keys = (exports.Keys = function Keys(_ref) { - var shortcutKeys = _ref.shortcutKeys; - if (1 === shortcutKeys.length) - return _react2.default.createElement( - 'span', - null, - _react2.default.createElement('b', { style: commandStyle }, shortcutKeys[0]) - ); - var keys = shortcutKeys.map(function(key, index, arr) { - return _react2.default.createElement( - 'span', - { key: key }, - _react2.default.createElement('b', { style: commandStyle }, key), - arr.length - 1 !== index ? _react2.default.createElement('span', null, '/  ') : '' - ); - }); - return _react2.default.createElement('span', null, keys); - }); - Keys.propTypes = { - shortcutKeys: _propTypes2.default.arrayOf(_propTypes2.default.string).isRequired - }; - var Shortcuts = (exports.Shortcuts = function Shortcuts(_ref2) { - var shortcuts = _ref2.appShortcuts.map(function(shortcut) { - return _react2.default.createElement( - 'div', - { key: shortcut.name }, - _react2.default.createElement(Keys, { shortcutKeys: shortcut.keys }), - shortcut.name - ); - }); - return _react2.default.createElement( - 'div', - null, - _react2.default.createElement('h4', { style: h4Style }, 'Keyboard Shortcuts'), - shortcuts - ); - }); - Shortcuts.propTypes = { - appShortcuts: _propTypes2.default.arrayOf( - _propTypes2.default.shape({ - name: _propTypes2.default.string.isRequired, - keys: _propTypes2.default.array - }) - ).isRequired - }; - var ShortcutsHelp = (exports.ShortcutsHelp = (function(_Component) { - function ShortcutsHelp() { - return ( - (0, _classCallCheck3.default)(this, ShortcutsHelp), - (0, _possibleConstructorReturn3.default)( - this, - (ShortcutsHelp.__proto__ || (0, _getPrototypeOf2.default)(ShortcutsHelp)).apply( - this, - arguments - ) - ) - ); - } - return ( - (0, _inherits3.default)(ShortcutsHelp, _Component), - (0, _createClass3.default)(ShortcutsHelp, [ - { - key: 'render', - value: function render() { - var _props = this.props, - isOpen = _props.isOpen, - onClose = _props.onClose, - platform = _props.platform; - return _react2.default.createElement( - _reactModal2.default, - { - isOpen: isOpen, - onRequestClose: onClose, - style: modalStyles, - contentLabel: 'Shortcuts' - }, - _react2.default.createElement(Shortcuts, { appShortcuts: getShortcuts(platform) }) - ); - } - } - ]), - ShortcutsHelp - ); - })(_react.Component)); - (ShortcutsHelp.propTypes = { - isOpen: _propTypes2.default.bool, - onClose: _propTypes2.default.func, - platform: _propTypes2.default.string.isRequired - }), - (ShortcutsHelp.defaultProps = { isOpen: !1, onClose: function onClose() {} }), - (exports.default = ShortcutsHelp); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.mapper = void 0); - var _search_box2 = _interopRequireDefault(__webpack_require__(1328)), - _gen_podda_loader2 = _interopRequireDefault(__webpack_require__(187)), - _compose2 = _interopRequireDefault(__webpack_require__(182)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var mapper = (exports.mapper = function mapper(state, props, _ref) { - var actionMap = (0, _ref.actions)(); - return { - showSearchBox: state.shortcutOptions.showSearchBox, - stories: state.stories, - onSelectStory: actionMap.api.selectStory, - onClose: function onClose() { - actionMap.shortcuts.setOptions({ showSearchBox: !1 }); - } - }; - }); - exports.default = (0, _compose2.default)((0, _gen_podda_loader2.default)(mapper))( - _search_box2.default - ); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _extends3 = _interopRequireDefault(__webpack_require__(8)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactModal2 = _interopRequireDefault(__webpack_require__(608)), - _reactFuzzy2 = _interopRequireDefault(__webpack_require__(1329)), - _components = __webpack_require__(181); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var modalStyle = { - content: (0, _extends3.default)( - { - top: '100px', - right: 'auto', - bottom: 'auto', - left: '50%', - marginLeft: '-215px', - border: 'none', - padding: 0, - overflow: 'visible' - }, - _components.baseFonts - ), - overlay: { background: 'transparent', zIndex: '1' } - }, - suggestionTemplate = function suggestionTemplate(props, state, styles, clickHandler) { - return state.results.map(function(val, i) { - var style = state.selectedIndex === i ? styles.selectedResultStyle : styles.resultsStyle; - return _react2.default.createElement( - 'div', - { - tabIndex: 0, - role: 'option', - 'aria-selected': state.selectedIndex === i, - key: val.value + '_' + val.id, - style: (0, _extends3.default)({}, style, { - display: 'flex', - justifyContent: 'space-between' - }), - onClick: function onClick() { - return clickHandler(i); - } - }, - _react2.default.createElement('p', { style: { margin: 0 } }, val.value), - _react2.default.createElement( - 'p', - { style: { opacity: 0.5, margin: 0, paddingLeft: 10, textAlign: 'right' } }, - 'story' === val.type ? 'in ' + val.kind : 'Kind' - ) - ); - }); - }, - SearchBox = (function(_React$Component) { - function SearchBox(props) { - (0, _classCallCheck3.default)(this, SearchBox); - var _this = (0, _possibleConstructorReturn3.default)( - this, - (SearchBox.__proto__ || (0, _getPrototypeOf2.default)(SearchBox)).call(this, props) - ); - return ( - (_this.onSelect = _this.onSelect.bind(_this)), - (_this.fireOnStory = _this.fireOnStory.bind(_this)), - (_this.fireOnKind = _this.fireOnKind.bind(_this)), - (_this.inputRef = _this.inputRef.bind(_this)), - _this - ); - } - return ( - (0, _inherits3.default)(SearchBox, _React$Component), - (0, _createClass3.default)(SearchBox, [ - { - key: 'componentDidUpdate', - value: function componentDidUpdate(prevProps) { - this.props.showSearchBox && - !prevProps.showSearchBox && - null != this.input && - this.input.focus(); - } - }, - { - key: 'onSelect', - value: function onSelect(selected) { - var onClose = this.props.onClose; - 'story' === selected.type - ? this.fireOnStory(selected.value, selected.kind) - : this.fireOnKind(selected.value), - onClose(); - } - }, - { - key: 'fireOnKind', - value: function fireOnKind(kind) { - var onSelectStory = this.props.onSelectStory; - onSelectStory && onSelectStory(kind, null); - } - }, - { - key: 'fireOnStory', - value: function fireOnStory(story, kind) { - var onSelectStory = this.props.onSelectStory; - onSelectStory && onSelectStory(kind, story); - } - }, - { - key: 'inputRef', - value: function inputRef(fuzzy) { - null != fuzzy && (this.input = fuzzy.refs.searchBox); - } - }, - { - key: 'render', - value: function render() { - return _react2.default.createElement( - _reactModal2.default, - { - isOpen: this.props.showSearchBox, - onRequestClose: this.props.onClose, - style: modalStyle, - contentLabel: 'Search', - shouldReturnFocusAfterClose: !1 - }, - _react2.default.createElement(_reactFuzzy2.default, { - list: (function formatStories(stories) { - var formattedStories = [], - i = 0; - return ( - stories.forEach(function(val) { - (i += 1), - formattedStories.push({ type: 'kind', value: val.kind, id: i }), - val.stories.forEach(function(story) { - (i += 1), - formattedStories.push({ - type: 'story', - value: story, - id: i, - kind: val.kind - }); - }); - }), - formattedStories - ); - })(this.props.stories), - onSelect: this.onSelect, - keys: ['value', 'type'], - resultsTemplate: suggestionTemplate, - ref: this.inputRef - }) - ); - } - } - ]), - SearchBox - ); - })(_react2.default.Component); - (exports.default = SearchBox), - (SearchBox.defaultProps = { stories: [] }), - (SearchBox.propTypes = { - showSearchBox: _propTypes2.default.bool.isRequired, - stories: _propTypes2.default.arrayOf(_propTypes2.default.object), - onSelectStory: _propTypes2.default.func.isRequired, - onClose: _propTypes2.default.func.isRequired - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _classnames2 = _interopRequireDefault(__webpack_require__(1330)), - _fuse2 = _interopRequireDefault(__webpack_require__(859)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var styles = { - searchBoxStyle: { - border: '1px solid #eee', - borderRadius: 2, - padding: '8px 10px', - lineHeight: '24px', - width: '100%', - outline: 'none', - fontSize: 16, - color: '#666', - boxSizing: 'border-box', - fontFamily: 'inherit' - }, - searchBoxWrapper: { - padding: '4px', - boxShadow: '0 4px 15px 4px rgba(0,0,0,0.2)', - borderRadius: 2, - backgroundColor: '#fff' - }, - resultsStyle: { - backgroundColor: '#fff', - position: 'relative', - padding: '12px', - borderTop: '1px solid #eee', - color: '#666', - fontSize: 14, - cursor: 'pointer' - }, - selectedResultStyle: { - backgroundColor: '#f9f9f9', - position: 'relative', - padding: '12px', - borderTop: '1px solid #eee', - color: '#666', - fontSize: 14, - cursor: 'pointer' - }, - resultsWrapperStyle: { - width: '100%', - boxShadow: '0px 12px 30px 2px rgba(0, 0, 0, 0.1)', - border: '1px solid #eee', - borderTop: 0, - boxSizing: 'border-box', - maxHeight: 400, - overflow: 'auto', - position: 'relative' - } - }; - var FuzzySearch = (function(_Component) { - function FuzzySearch(props) { - (0, _classCallCheck3.default)(this, FuzzySearch); - var _this = (0, _possibleConstructorReturn3.default)( - this, - (FuzzySearch.__proto__ || (0, _getPrototypeOf2.default)(FuzzySearch)).call(this, props) - ); - return ( - (_this.state = { results: [], selectedIndex: 0, selectedValue: {} }), - (_this.handleChange = _this.handleChange.bind(_this)), - (_this.handleKeyDown = _this.handleKeyDown.bind(_this)), - (_this.handleMouseClick = _this.handleMouseClick.bind(_this)), - (_this.fuse = new _fuse2.default(props.list, _this.getOptions())), - _this - ); - } - return ( - (0, _inherits3.default)(FuzzySearch, _Component), - (0, _createClass3.default)(FuzzySearch, [ - { - key: 'getOptions', - value: function getOptions() { - var _props = this.props; - return { - caseSensitive: _props.caseSensitive, - id: _props.id, - include: _props.include, - keys: _props.keys, - shouldSort: _props.shouldSort, - sortFn: _props.sortFn, - tokenize: _props.tokenize, - verbose: _props.verbose, - maxPatternLength: _props.maxPatternLength, - distance: _props.distance, - threshold: _props.threshold, - location: _props.location - }; - } - }, - { - key: 'getResultsTemplate', - value: function getResultsTemplate() { - var _this2 = this; - return this.state.results.map(function(val, i) { - var style = - _this2.state.selectedIndex === i - ? styles.selectedResultStyle - : styles.resultsStyle; - return _react2.default.createElement('div', { key: i, style: style }, val.title); - }); - } - }, - { - key: 'handleChange', - value: function handleChange(e) { - this.setState({ - results: this.fuse.search(e.target.value).slice(0, this.props.maxResults - 1) - }); - } - }, - { - key: 'handleKeyDown', - value: function handleKeyDown(e) { - var _state = this.state, - results = _state.results, - selectedIndex = _state.selectedIndex; - 40 === e.keyCode && selectedIndex < results.length - 1 - ? this.setState({ selectedIndex: selectedIndex + 1 }) - : 38 === e.keyCode && selectedIndex > 0 - ? this.setState({ selectedIndex: selectedIndex - 1 }) - : 13 === e.keyCode && - (results[selectedIndex] && - (this.props.onSelect(results[this.state.selectedIndex]), - this.setState({ selectedValue: results[this.state.selectedIndex] })), - this.setState({ results: [], selectedIndex: 0 })); - } - }, - { - key: 'handleMouseClick', - value: function handleMouseClick(clickedIndex) { - var results = this.state.results; - results[clickedIndex] && this.props.onSelect(results[clickedIndex]), - this.setState({ results: [], selectedIndex: 0 }); - } - }, - { - key: 'render', - value: function render() { - var _props2 = this.props, - className = _props2.className, - width = _props2.width, - resultsTemplate = _props2.resultsTemplate, - placeholder = _props2.placeholder, - autoFocus = _props2.autoFocus, - mainClass = (0, _classnames2.default)('react-fuzzy-search', className); - return _react2.default.createElement( - 'div', - { className: mainClass, style: { width: width }, onKeyDown: this.handleKeyDown }, - _react2.default.createElement( - 'div', - { style: styles.searchBoxWrapper }, - _react2.default.createElement('input', { - type: 'text', - style: styles.searchBoxStyle, - onChange: this.handleChange, - ref: 'searchBox', - placeholder: placeholder, - autoFocus: autoFocus, - value: this.state.selectedValue && this.state.selectedValue.title - }) - ), - this.state.results && - this.state.results.length > 0 && - _react2.default.createElement( - 'div', - { style: styles.resultsWrapperStyle }, - resultsTemplate(this.props, this.state, styles, this.handleMouseClick) - ) - ); - } - } - ]), - FuzzySearch - ); - })(_react.Component); - (FuzzySearch.propTypes = { - caseSensitive: _propTypes2.default.bool, - className: _propTypes2.default.string, - distance: _propTypes2.default.number, - id: _propTypes2.default.string, - include: _propTypes2.default.array, - maxPatternLength: _propTypes2.default.number, - onSelect: _propTypes2.default.func.isRequired, - width: _propTypes2.default.oneOfType([ - _propTypes2.default.number, - _propTypes2.default.string - ]), - keys: _propTypes2.default.oneOfType([_propTypes2.default.array, _propTypes2.default.string]), - list: _propTypes2.default.array.isRequired, - location: _propTypes2.default.number, - placeholder: _propTypes2.default.string, - resultsTemplate: _propTypes2.default.func, - shouldSort: _propTypes2.default.bool, - sortFn: _propTypes2.default.func, - threshold: _propTypes2.default.number, - tokenize: _propTypes2.default.bool, - verbose: _propTypes2.default.bool, - autoFocus: _propTypes2.default.bool, - maxResults: _propTypes2.default.number - }), - (FuzzySearch.defaultProps = { - caseSensitive: !1, - distance: 100, - include: [], - location: 0, - width: 430, - placeholder: 'Search', - resultsTemplate: function defaultResultsTemplate(props, state, styl, clickHandler) { - return state.results.map(function(val, i) { - var style = state.selectedIndex === i ? styl.selectedResultStyle : styl.resultsStyle; - return _react2.default.createElement( - 'div', - { - key: i, - style: style, - onClick: function onClick() { - return clickHandler(i); - } - }, - val.title - ); - }); - }, - shouldSort: !0, - sortFn: function sortFn(a, b) { - return a.score - b.score; - }, - threshold: 0.6, - tokenize: !1, - verbose: !1, - autoFocus: !1, - maxResults: 10 - }), - (exports.default = FuzzySearch); - }, - function(module, exports, __webpack_require__) { - var __WEBPACK_AMD_DEFINE_RESULT__; - !(function() { - 'use strict'; - var hasOwn = {}.hasOwnProperty; - function classNames() { - for (var classes = [], i = 0; i < arguments.length; i++) { - var arg = arguments[i]; - if (arg) { - var argType = typeof arg; - if ('string' === argType || 'number' === argType) classes.push(arg); - else if (Array.isArray(arg)) classes.push(classNames.apply(null, arg)); - else if ('object' === argType) - for (var key in arg) hasOwn.call(arg, key) && arg[key] && classes.push(key); - } - } - return classes.join(' '); - } - void 0 !== module && module.exports - ? (module.exports = classNames) - : void 0 === - (__WEBPACK_AMD_DEFINE_RESULT__ = function() { - return classNames; - }.apply(exports, [])) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); - })(); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _ui2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(1332)); - exports.default = { ui: _ui2.default }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = { - setStoryFilter: function setStoryFilter(_ref, filter) { - _ref.clientStore.set('storyFilter', filter); - }, - toggleShortcutsHelp: function toggleShortcutsHelp(_ref2) { - _ref2.clientStore.toggle('showShortcutsHelp'); - }, - selectAddonPanel: function selectAddonPanel(_ref3, panelName) { - _ref3.clientStore.set('selectedAddonPanel', panelName); - } - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _keys2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(34)); - exports.default = function(_ref, actionMap) { - var provider = _ref.provider, - panels = (0, _keys2.default)(provider.getPanels()); - panels.length > 0 && actionMap.ui.selectAddonPanel(panels[0]); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function(actions) { - _global.window.onkeydown = function(e) { - var parsedEvent = (0, _key_events2.default)(e); - parsedEvent && actions.shortcuts.handleEvent(parsedEvent); - }; - }); - var _global = __webpack_require__(50), - _key_events2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(287)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _global = __webpack_require__(50), - _qs2 = _interopRequireDefault(__webpack_require__(231)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _ui = __webpack_require__(797), - _addons2 = _interopRequireDefault(__webpack_require__(40)), - _channelPostmessage2 = _interopRequireDefault(__webpack_require__(426)), - _preview2 = _interopRequireDefault(__webpack_require__(1336)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ReactProvider = (function(_Provider) { - function ReactProvider() { - (0, _classCallCheck3.default)(this, ReactProvider); - var _this = (0, _possibleConstructorReturn3.default)( - this, - (ReactProvider.__proto__ || (0, _getPrototypeOf2.default)(ReactProvider)).call(this) - ); - return ( - (_this.channel = (0, _channelPostmessage2.default)({ page: 'manager' })), - _addons2.default.setChannel(_this.channel), - _this - ); - } - return ( - (0, _inherits3.default)(ReactProvider, _Provider), - (0, _createClass3.default)(ReactProvider, [ - { - key: 'getPanels', - value: function getPanels() { - return _addons2.default.getPanels(); - } - }, - { - key: 'renderPreview', - value: function renderPreview(selectedKind, selectedStory) { - var queryParams = { selectedKind: selectedKind, selectedStory: selectedStory }; - /react_perf/.test(_global.location.search) && (queryParams.react_perf = '1'); - var url = 'iframe.html?' + _qs2.default.stringify(queryParams); - return _react2.default.createElement(_preview2.default, { url: url }); - } - }, - { - key: 'handleAPI', - value: function handleAPI(api) { - var _this2 = this; - api.onStory(function(kind, story) { - _this2.channel.emit('setCurrentStory', { kind: kind, story: story }); - }), - this.channel.on('setStories', function(data) { - api.setStories(data.stories); - }), - this.channel.on('selectStory', function(data) { - api.selectStory(data.kind, data.story); - }), - this.channel.on('applyShortcut', function(data) { - api.handleShortcut(data.event); - }), - _addons2.default.loadAddons(api); - } - } - ]), - ReactProvider - ); - })(_ui.Provider); - exports.default = ReactProvider; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var iframeStyle = { width: '100%', height: '100%', border: 0, margin: 0, padding: 0 }, - Preview = (function(_Component) { - function Preview() { - return ( - (0, _classCallCheck3.default)(this, Preview), - (0, _possibleConstructorReturn3.default)( - this, - (Preview.__proto__ || (0, _getPrototypeOf2.default)(Preview)).apply(this, arguments) - ) - ); - } - return ( - (0, _inherits3.default)(Preview, _Component), - (0, _createClass3.default)(Preview, [ - { - key: 'shouldComponentUpdate', - value: function shouldComponentUpdate() { - return !1; - } - }, - { - key: 'render', - value: function render() { - return _react2.default.createElement('iframe', { - id: 'storybook-preview-iframe', - title: 'preview', - style: iframeStyle, - src: this.props.url, - allowFullScreen: !0 - }); - } - } - ]), - Preview - ); - })(_react.Component); - (Preview.propTypes = { url: _propTypes2.default.string.isRequired }), - (exports.default = Preview); - } -]); diff --git a/docs/static/preview.727e21043d067579d316.bundle.js b/docs/static/preview.727e21043d067579d316.bundle.js deleted file mode 100644 index 0c4caa3..0000000 --- a/docs/static/preview.727e21043d067579d316.bundle.js +++ /dev/null @@ -1,40497 +0,0 @@ -!(function(modules) { - var installedModules = {}; - function __webpack_require__(moduleId) { - if (installedModules[moduleId]) return installedModules[moduleId].exports; - var module = (installedModules[moduleId] = { i: moduleId, l: !1, exports: {} }); - return ( - modules[moduleId].call(module.exports, module, module.exports, __webpack_require__), - (module.l = !0), - module.exports - ); - } - (__webpack_require__.m = modules), - (__webpack_require__.c = installedModules), - (__webpack_require__.d = function(exports, name, getter) { - __webpack_require__.o(exports, name) || - Object.defineProperty(exports, name, { configurable: !1, enumerable: !0, get: getter }); - }), - (__webpack_require__.n = function(module) { - var getter = - module && module.__esModule - ? function getDefault() { - return module.default; - } - : function getModuleExports() { - return module; - }; - return __webpack_require__.d(getter, 'a', getter), getter; - }), - (__webpack_require__.o = function(object, property) { - return Object.prototype.hasOwnProperty.call(object, property); - }), - (__webpack_require__.p = ''), - __webpack_require__((__webpack_require__.s = 860)); -})([ - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = __webpack_require__(56); - }, - , - function(module, exports, __webpack_require__) { - module.exports = __webpack_require__(424)(); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var validateFormat = function validateFormat(format) {}; - module.exports = function invariant(condition, format, a, b, c, d, e, f) { - if ((validateFormat(format), !condition)) { - var error; - if (void 0 === format) - error = new Error( - 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.' - ); - else { - var args = [a, b, c, d, e, f], - argIndex = 0; - (error = new Error( - format.replace(/%s/g, function() { - return args[argIndex++]; - }) - )).name = - 'Invariant Violation'; - } - throw ((error.framesToPop = 1), error); - } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - (exports.__esModule = !0), - (exports.default = function(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = !0; - var _defineProperty2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(115)); - exports.default = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - (0, _defineProperty2.default)(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var warning = __webpack_require__(22); - module.exports = warning; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function reactProdInvariant(code) { - for ( - var argCount = arguments.length - 1, - message = - 'Minified React error #' + - code + - '; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=' + - code, - argIdx = 0; - argIdx < argCount; - argIdx++ - ) - message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]); - message += - ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.'; - var error = new Error(message); - throw ((error.name = 'Invariant Violation'), (error.framesToPop = 1), error); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = !0; - var _assign2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(86)); - exports.default = - _assign2.default || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var getOwnPropertySymbols = Object.getOwnPropertySymbols, - hasOwnProperty = Object.prototype.hasOwnProperty, - propIsEnumerable = Object.prototype.propertyIsEnumerable; - module.exports = (function shouldUseNative() { - try { - if (!Object.assign) return !1; - var test1 = new String('abc'); - if (((test1[5] = 'de'), '5' === Object.getOwnPropertyNames(test1)[0])) return !1; - for (var test2 = {}, i = 0; i < 10; i++) test2['_' + String.fromCharCode(i)] = i; - if ( - '0123456789' !== - Object.getOwnPropertyNames(test2) - .map(function(n) { - return test2[n]; - }) - .join('') - ) - return !1; - var test3 = {}; - return ( - 'abcdefghijklmnopqrst'.split('').forEach(function(letter) { - test3[letter] = letter; - }), - 'abcdefghijklmnopqrst' === Object.keys(Object.assign({}, test3)).join('') - ); - } catch (err) { - return !1; - } - })() - ? Object.assign - : function(target, source) { - for ( - var from, - symbols, - to = (function toObject(val) { - if (null === val || void 0 === val) - throw new TypeError('Object.assign cannot be called with null or undefined'); - return Object(val); - })(target), - s = 1; - s < arguments.length; - s++ - ) { - from = Object(arguments[s]); - for (var key in from) hasOwnProperty.call(from, key) && (to[key] = from[key]); - if (getOwnPropertySymbols) { - symbols = getOwnPropertySymbols(from); - for (var i = 0; i < symbols.length; i++) - propIsEnumerable.call(from, symbols[i]) && (to[symbols[i]] = from[symbols[i]]); - } - } - return to; - }; - }, - function(module, exports) { - var core = (module.exports = { version: '2.5.3' }); - 'number' == typeof __e && (__e = core); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = !0; - var _typeof3 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(21)); - exports.default = function(self, call) { - if (!self) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || - ('object' !== (void 0 === call ? 'undefined' : (0, _typeof3.default)(call)) && - 'function' != typeof call) - ? self - : call; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = !0; - var _setPrototypeOf2 = _interopRequireDefault(__webpack_require__(278)), - _create2 = _interopRequireDefault(__webpack_require__(279)), - _typeof3 = _interopRequireDefault(__webpack_require__(21)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - exports.default = function(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - (void 0 === superClass ? 'undefined' : (0, _typeof3.default)(superClass)) - ); - (subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { - constructor: { value: subClass, enumerable: !1, writable: !0, configurable: !0 } - })), - superClass && - (_setPrototypeOf2.default - ? (0, _setPrototypeOf2.default)(subClass, superClass) - : (subClass.__proto__ = superClass)); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - DOMProperty = __webpack_require__(60), - ReactDOMComponentFlags = __webpack_require__(234), - ATTR_NAME = (__webpack_require__(3), DOMProperty.ID_ATTRIBUTE_NAME), - Flags = ReactDOMComponentFlags, - internalInstanceKey = - '__reactInternalInstance$' + - Math.random() - .toString(36) - .slice(2); - function shouldPrecacheNode(node, nodeID) { - return ( - (1 === node.nodeType && node.getAttribute(ATTR_NAME) === String(nodeID)) || - (8 === node.nodeType && node.nodeValue === ' react-text: ' + nodeID + ' ') || - (8 === node.nodeType && node.nodeValue === ' react-empty: ' + nodeID + ' ') - ); - } - function getRenderedHostOrTextFromComponent(component) { - for (var rendered; (rendered = component._renderedComponent); ) component = rendered; - return component; - } - function precacheNode(inst, node) { - var hostInst = getRenderedHostOrTextFromComponent(inst); - (hostInst._hostNode = node), (node[internalInstanceKey] = hostInst); - } - function precacheChildNodes(inst, node) { - if (!(inst._flags & Flags.hasCachedChildNodes)) { - var children = inst._renderedChildren, - childNode = node.firstChild; - outer: for (var name in children) - if (children.hasOwnProperty(name)) { - var childInst = children[name], - childID = getRenderedHostOrTextFromComponent(childInst)._domID; - if (0 !== childID) { - for (; null !== childNode; childNode = childNode.nextSibling) - if (shouldPrecacheNode(childNode, childID)) { - precacheNode(childInst, childNode); - continue outer; - } - _prodInvariant('32', childID); - } - } - inst._flags |= Flags.hasCachedChildNodes; - } - } - function getClosestInstanceFromNode(node) { - if (node[internalInstanceKey]) return node[internalInstanceKey]; - for (var closest, inst, parents = []; !node[internalInstanceKey]; ) { - if ((parents.push(node), !node.parentNode)) return null; - node = node.parentNode; - } - for (; node && (inst = node[internalInstanceKey]); node = parents.pop()) - (closest = inst), parents.length && precacheChildNodes(inst, node); - return closest; - } - var ReactDOMComponentTree = { - getClosestInstanceFromNode: getClosestInstanceFromNode, - getInstanceFromNode: function getInstanceFromNode(node) { - var inst = getClosestInstanceFromNode(node); - return null != inst && inst._hostNode === node ? inst : null; - }, - getNodeFromInstance: function getNodeFromInstance(inst) { - if ((void 0 === inst._hostNode && _prodInvariant('33'), inst._hostNode)) - return inst._hostNode; - for (var parents = []; !inst._hostNode; ) - parents.push(inst), inst._hostParent || _prodInvariant('34'), (inst = inst._hostParent); - for (; parents.length; inst = parents.pop()) precacheChildNodes(inst, inst._hostNode); - return inst._hostNode; - }, - precacheChildNodes: precacheChildNodes, - precacheNode: precacheNode, - uncacheNode: function uncacheNode(inst) { - var node = inst._hostNode; - node && (delete node[internalInstanceKey], (inst._hostNode = null)); - } - }; - module.exports = ReactDOMComponentTree; - }, - , - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(406), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - var global = __webpack_require__(17), - core = __webpack_require__(10), - ctx = __webpack_require__(35), - hide = __webpack_require__(42), - $export = function(type, name, source) { - var key, - own, - out, - IS_FORCED = type & $export.F, - IS_GLOBAL = type & $export.G, - IS_STATIC = type & $export.S, - IS_PROTO = type & $export.P, - IS_BIND = type & $export.B, - IS_WRAP = type & $export.W, - exports = IS_GLOBAL ? core : core[name] || (core[name] = {}), - expProto = exports.prototype, - target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {}).prototype; - IS_GLOBAL && (source = name); - for (key in source) - ((own = !IS_FORCED && target && void 0 !== target[key]) && key in exports) || - ((out = own ? target[key] : source[key]), - (exports[key] = - IS_GLOBAL && 'function' != typeof target[key] - ? source[key] - : IS_BIND && own - ? ctx(out, global) - : IS_WRAP && target[key] == out - ? (function(C) { - var F = function(a, b, c) { - if (this instanceof C) { - switch (arguments.length) { - case 0: - return new C(); - case 1: - return new C(a); - case 2: - return new C(a, b); - } - return new C(a, b, c); - } - return C.apply(this, arguments); - }; - return (F.prototype = C.prototype), F; - })(out) - : IS_PROTO && 'function' == typeof out ? ctx(Function.call, out) : out), - IS_PROTO && - (((exports.virtual || (exports.virtual = {}))[key] = out), - type & $export.R && expProto && !expProto[key] && hide(expProto, key, out))); - }; - ($export.F = 1), - ($export.G = 2), - ($export.S = 4), - ($export.P = 8), - ($export.B = 16), - ($export.W = 32), - ($export.U = 64), - ($export.R = 128), - (module.exports = $export); - }, - function(module, exports) { - var global = (module.exports = - 'undefined' != typeof window && window.Math == Math - ? window - : 'undefined' != typeof self && self.Math == Math ? self : Function('return this')()); - 'number' == typeof __g && (__g = global); - }, - function(module, exports, __webpack_require__) { - var store = __webpack_require__(141)('wks'), - uid = __webpack_require__(95), - Symbol = __webpack_require__(17).Symbol, - USE_SYMBOL = 'function' == typeof Symbol; - (module.exports = function(name) { - return ( - store[name] || - (store[name] = - (USE_SYMBOL && Symbol[name]) || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)) - ); - }).store = store; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var canUseDOM = !( - 'undefined' == typeof window || - !window.document || - !window.document.createElement - ), - ExecutionEnvironment = { - canUseDOM: canUseDOM, - canUseWorkers: 'undefined' != typeof Worker, - canUseEventListeners: canUseDOM && !(!window.addEventListener && !window.attachEvent), - canUseViewport: canUseDOM && !!window.screen, - isInWorker: !canUseDOM - }; - module.exports = ExecutionEnvironment; - }, - function(module, exports) { - module.exports = function(it) { - return 'object' == typeof it ? null !== it : 'function' == typeof it; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = !0; - var _iterator2 = _interopRequireDefault(__webpack_require__(275)), - _symbol2 = _interopRequireDefault(__webpack_require__(185)), - _typeof = - 'function' == typeof _symbol2.default && 'symbol' == typeof _iterator2.default - ? function(obj) { - return typeof obj; - } - : function(obj) { - return obj && - 'function' == typeof _symbol2.default && - obj.constructor === _symbol2.default && - obj !== _symbol2.default.prototype - ? 'symbol' - : typeof obj; - }; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - exports.default = - 'function' == typeof _symbol2.default && 'symbol' === _typeof(_iterator2.default) - ? function(obj) { - return void 0 === obj ? 'undefined' : _typeof(obj); - } - : function(obj) { - return obj && - 'function' == typeof _symbol2.default && - obj.constructor === _symbol2.default && - obj !== _symbol2.default.prototype - ? 'symbol' - : void 0 === obj ? 'undefined' : _typeof(obj); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - function makeEmptyFunction(arg) { - return function() { - return arg; - }; - } - var emptyFunction = function emptyFunction() {}; - (emptyFunction.thatReturns = makeEmptyFunction), - (emptyFunction.thatReturnsFalse = makeEmptyFunction(!1)), - (emptyFunction.thatReturnsTrue = makeEmptyFunction(!0)), - (emptyFunction.thatReturnsNull = makeEmptyFunction(null)), - (emptyFunction.thatReturnsThis = function() { - return this; - }), - (emptyFunction.thatReturnsArgument = function(arg) { - return arg; - }), - (module.exports = emptyFunction); - }, - , - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(20); - module.exports = function(it) { - if (!isObject(it)) throw TypeError(it + ' is not an object!'); - return it; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var debugTool = null; - module.exports = { debugTool: debugTool }; - }, - function(module, exports, __webpack_require__) { - var anObject = __webpack_require__(24), - IE8_DOM_DEFINE = __webpack_require__(217), - toPrimitive = __webpack_require__(144), - dP = Object.defineProperty; - exports.f = __webpack_require__(29) - ? Object.defineProperty - : function defineProperty(O, P, Attributes) { - if ((anObject(O), (P = toPrimitive(P, !0)), anObject(Attributes), IE8_DOM_DEFINE)) - try { - return dP(O, P, Attributes); - } catch (e) {} - if ('get' in Attributes || 'set' in Attributes) - throw TypeError('Accessors not supported!'); - return 'value' in Attributes && (O[P] = Attributes.value), O; - }; - }, - function(module, exports) { - var g; - g = (function() { - return this; - })(); - try { - g = g || Function('return this')() || (0, eval)('this'); - } catch (e) { - 'object' == typeof window && (g = window); - } - module.exports = g; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var keys = __webpack_require__(338), - foreach = __webpack_require__(340), - hasSymbols = 'function' == typeof Symbol && 'symbol' == typeof Symbol(), - toStr = Object.prototype.toString, - supportsDescriptors = - Object.defineProperty && - (function() { - var obj = {}; - try { - Object.defineProperty(obj, 'x', { enumerable: !1, value: obj }); - for (var _ in obj) return !1; - return obj.x === obj; - } catch (e) { - return !1; - } - })(), - defineProperty = function(object, name, value, predicate) { - var fn; - (name in object && - ('function' != typeof (fn = predicate) || - '[object Function]' !== toStr.call(fn) || - !predicate())) || - (supportsDescriptors - ? Object.defineProperty(object, name, { - configurable: !0, - enumerable: !1, - value: value, - writable: !0 - }) - : (object[name] = value)); - }, - defineProperties = function(object, map) { - var predicates = arguments.length > 2 ? arguments[2] : {}, - props = keys(map); - hasSymbols && (props = props.concat(Object.getOwnPropertySymbols(map))), - foreach(props, function(name) { - defineProperty(object, name, map[name], predicates[name]); - }); - }; - (defineProperties.supportsDescriptors = !!supportsDescriptors), - (module.exports = defineProperties); - }, - function(module, exports, __webpack_require__) { - module.exports = !__webpack_require__(43)(function() { - return ( - 7 != - Object.defineProperty({}, 'a', { - get: function() { - return 7; - } - }).a - ); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - _assign = __webpack_require__(9), - CallbackQueue = __webpack_require__(238), - PooledClass = __webpack_require__(47), - ReactFeatureFlags = __webpack_require__(239), - ReactReconciler = __webpack_require__(61), - Transaction = __webpack_require__(98), - invariant = __webpack_require__(3), - dirtyComponents = [], - updateBatchNumber = 0, - asapCallbackQueue = CallbackQueue.getPooled(), - asapEnqueued = !1, - batchingStrategy = null; - function ensureInjected() { - (ReactUpdates.ReactReconcileTransaction && batchingStrategy) || _prodInvariant('123'); - } - var TRANSACTION_WRAPPERS = [ - { - initialize: function() { - this.dirtyComponentsLength = dirtyComponents.length; - }, - close: function() { - this.dirtyComponentsLength !== dirtyComponents.length - ? (dirtyComponents.splice(0, this.dirtyComponentsLength), flushBatchedUpdates()) - : (dirtyComponents.length = 0); - } - }, - { - initialize: function() { - this.callbackQueue.reset(); - }, - close: function() { - this.callbackQueue.notifyAll(); - } - } - ]; - function ReactUpdatesFlushTransaction() { - this.reinitializeTransaction(), - (this.dirtyComponentsLength = null), - (this.callbackQueue = CallbackQueue.getPooled()), - (this.reconcileTransaction = ReactUpdates.ReactReconcileTransaction.getPooled(!0)); - } - function mountOrderComparator(c1, c2) { - return c1._mountOrder - c2._mountOrder; - } - function runBatchedUpdates(transaction) { - var len = transaction.dirtyComponentsLength; - len !== dirtyComponents.length && _prodInvariant('124', len, dirtyComponents.length), - dirtyComponents.sort(mountOrderComparator), - updateBatchNumber++; - for (var i = 0; i < len; i++) { - var markerName, - component = dirtyComponents[i], - callbacks = component._pendingCallbacks; - if (((component._pendingCallbacks = null), ReactFeatureFlags.logTopLevelRenders)) { - var namedComponent = component; - component._currentElement.type.isReactTopLevelWrapper && - (namedComponent = component._renderedComponent), - (markerName = 'React update: ' + namedComponent.getName()), - console.time(markerName); - } - if ( - (ReactReconciler.performUpdateIfNecessary( - component, - transaction.reconcileTransaction, - updateBatchNumber - ), - markerName && console.timeEnd(markerName), - callbacks) - ) - for (var j = 0; j < callbacks.length; j++) - transaction.callbackQueue.enqueue(callbacks[j], component.getPublicInstance()); - } - } - _assign(ReactUpdatesFlushTransaction.prototype, Transaction, { - getTransactionWrappers: function() { - return TRANSACTION_WRAPPERS; - }, - destructor: function() { - (this.dirtyComponentsLength = null), - CallbackQueue.release(this.callbackQueue), - (this.callbackQueue = null), - ReactUpdates.ReactReconcileTransaction.release(this.reconcileTransaction), - (this.reconcileTransaction = null); - }, - perform: function(method, scope, a) { - return Transaction.perform.call( - this, - this.reconcileTransaction.perform, - this.reconcileTransaction, - method, - scope, - a - ); - } - }), - PooledClass.addPoolingTo(ReactUpdatesFlushTransaction); - var flushBatchedUpdates = function() { - for (; dirtyComponents.length || asapEnqueued; ) { - if (dirtyComponents.length) { - var transaction = ReactUpdatesFlushTransaction.getPooled(); - transaction.perform(runBatchedUpdates, null, transaction), - ReactUpdatesFlushTransaction.release(transaction); - } - if (asapEnqueued) { - asapEnqueued = !1; - var queue = asapCallbackQueue; - (asapCallbackQueue = CallbackQueue.getPooled()), - queue.notifyAll(), - CallbackQueue.release(queue); - } - } - }; - var ReactUpdates = { - ReactReconcileTransaction: null, - batchedUpdates: function batchedUpdates(callback, a, b, c, d, e) { - return ensureInjected(), batchingStrategy.batchedUpdates(callback, a, b, c, d, e); - }, - enqueueUpdate: function enqueueUpdate(component) { - ensureInjected(), - batchingStrategy.isBatchingUpdates - ? (dirtyComponents.push(component), - null == component._updateBatchNumber && - (component._updateBatchNumber = updateBatchNumber + 1)) - : batchingStrategy.batchedUpdates(enqueueUpdate, component); - }, - flushBatchedUpdates: flushBatchedUpdates, - injection: { - injectReconcileTransaction: function(ReconcileTransaction) { - ReconcileTransaction || _prodInvariant('126'), - (ReactUpdates.ReactReconcileTransaction = ReconcileTransaction); - }, - injectBatchingStrategy: function(_batchingStrategy) { - _batchingStrategy || _prodInvariant('127'), - 'function' != typeof _batchingStrategy.batchedUpdates && _prodInvariant('128'), - 'boolean' != typeof _batchingStrategy.isBatchingUpdates && _prodInvariant('129'), - (batchingStrategy = _batchingStrategy); - } - }, - asap: function asap(callback, context) { - invariant( - batchingStrategy.isBatchingUpdates, - "ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched." - ), - asapCallbackQueue.enqueue(callback, context), - (asapEnqueued = !0); - } - }; - module.exports = ReactUpdates; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = !0; - var _defineProperty2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(115)); - exports.default = function(obj, key, value) { - return ( - key in obj - ? (0, _defineProperty2.default)(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (obj[key] = value), - obj - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = { current: null }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - PooledClass = __webpack_require__(47), - emptyFunction = __webpack_require__(22), - shouldBeReleasedProperties = (__webpack_require__(6), - [ - 'dispatchConfig', - '_targetInst', - 'nativeEvent', - 'isDefaultPrevented', - 'isPropagationStopped', - '_dispatchListeners', - '_dispatchInstances' - ]), - EventInterface = { - type: null, - target: null, - currentTarget: emptyFunction.thatReturnsNull, - eventPhase: null, - bubbles: null, - cancelable: null, - timeStamp: function(event) { - return event.timeStamp || Date.now(); - }, - defaultPrevented: null, - isTrusted: null - }; - function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { - (this.dispatchConfig = dispatchConfig), - (this._targetInst = targetInst), - (this.nativeEvent = nativeEvent); - var Interface = this.constructor.Interface; - for (var propName in Interface) - if (Interface.hasOwnProperty(propName)) { - 0; - var normalize = Interface[propName]; - normalize - ? (this[propName] = normalize(nativeEvent)) - : 'target' === propName - ? (this.target = nativeEventTarget) - : (this[propName] = nativeEvent[propName]); - } - var defaultPrevented = - null != nativeEvent.defaultPrevented - ? nativeEvent.defaultPrevented - : !1 === nativeEvent.returnValue; - return ( - (this.isDefaultPrevented = defaultPrevented - ? emptyFunction.thatReturnsTrue - : emptyFunction.thatReturnsFalse), - (this.isPropagationStopped = emptyFunction.thatReturnsFalse), - this - ); - } - _assign(SyntheticEvent.prototype, { - preventDefault: function() { - this.defaultPrevented = !0; - var event = this.nativeEvent; - event && - (event.preventDefault - ? event.preventDefault() - : 'unknown' != typeof event.returnValue && (event.returnValue = !1), - (this.isDefaultPrevented = emptyFunction.thatReturnsTrue)); - }, - stopPropagation: function() { - var event = this.nativeEvent; - event && - (event.stopPropagation - ? event.stopPropagation() - : 'unknown' != typeof event.cancelBubble && (event.cancelBubble = !0), - (this.isPropagationStopped = emptyFunction.thatReturnsTrue)); - }, - persist: function() { - this.isPersistent = emptyFunction.thatReturnsTrue; - }, - isPersistent: emptyFunction.thatReturnsFalse, - destructor: function() { - var Interface = this.constructor.Interface; - for (var propName in Interface) this[propName] = null; - for (var i = 0; i < shouldBeReleasedProperties.length; i++) - this[shouldBeReleasedProperties[i]] = null; - } - }), - (SyntheticEvent.Interface = EventInterface), - (SyntheticEvent.augmentClass = function(Class, Interface) { - var E = function() {}; - E.prototype = this.prototype; - var prototype = new E(); - _assign(prototype, Class.prototype), - (Class.prototype = prototype), - (Class.prototype.constructor = Class), - (Class.Interface = _assign({}, this.Interface, Interface)), - (Class.augmentClass = this.augmentClass), - PooledClass.addPoolingTo(Class, PooledClass.fourArgumentPooler); - }), - PooledClass.addPoolingTo(SyntheticEvent, PooledClass.fourArgumentPooler), - (module.exports = SyntheticEvent); - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(395), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - var aFunction = __webpack_require__(74); - module.exports = function(fn, that, length) { - if ((aFunction(fn), void 0 === that)) return fn; - switch (length) { - case 1: - return function(a) { - return fn.call(that, a); - }; - case 2: - return function(a, b) { - return fn.call(that, a, b); - }; - case 3: - return function(a, b, c) { - return fn.call(that, a, b, c); - }; - } - return function() { - return fn.apply(that, arguments); - }; - }; - }, - function(module, exports) { - var global = (module.exports = - 'undefined' != typeof window && window.Math == Math - ? window - : 'undefined' != typeof self && self.Math == Math ? self : Function('return this')()); - 'number' == typeof __g && (__g = global); - }, - function(module, exports) { - var hasOwnProperty = {}.hasOwnProperty; - module.exports = function(it, key) { - return hasOwnProperty.call(it, key); - }; - }, - function(module, exports, __webpack_require__) { - var store = __webpack_require__(126)('wks'), - uid = __webpack_require__(69), - Symbol = __webpack_require__(36).Symbol, - USE_SYMBOL = 'function' == typeof Symbol; - (module.exports = function(name) { - return ( - store[name] || - (store[name] = - (USE_SYMBOL && Symbol[name]) || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)) - ); - }).store = store; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(343); - module.exports = Function.prototype.bind || implementation; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.AddonStore = void 0); - var _keys2 = _interopRequireDefault(__webpack_require__(34)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var AddonStore = (exports.AddonStore = (function() { - function AddonStore() { - (0, _classCallCheck3.default)(this, AddonStore), - (this.loaders = {}), - (this.panels = {}), - (this.channel = null), - (this.preview = null), - (this.database = null); - } - return ( - (0, _createClass3.default)(AddonStore, [ - { - key: 'getChannel', - value: function getChannel() { - if (!this.channel) - throw new Error( - 'Accessing nonexistent addons channel, see https://storybook.js.org/basics/faq/#why-is-there-no-addons-channel' - ); - return this.channel; - } - }, - { - key: 'setChannel', - value: function setChannel(channel) { - this.channel = channel; - } - }, - { - key: 'getPreview', - value: function getPreview() { - return this.preview; - } - }, - { - key: 'setPreview', - value: function setPreview(preview) { - this.preview = preview; - } - }, - { - key: 'getDatabase', - value: function getDatabase() { - return this.database; - } - }, - { - key: 'setDatabase', - value: function setDatabase(database) { - this.database = database; - } - }, - { - key: 'getPanels', - value: function getPanels() { - return this.panels; - } - }, - { - key: 'addPanel', - value: function addPanel(name, panel) { - this.panels[name] = panel; - } - }, - { - key: 'register', - value: function register(name, loader) { - this.loaders[name] = loader; - } - }, - { - key: 'loadAddons', - value: function loadAddons(api) { - var _this = this; - (0, _keys2.default)(this.loaders) - .map(function(name) { - return _this.loaders[name]; - }) - .forEach(function(loader) { - return loader(api); - }); - } - } - ]), - AddonStore - ); - })()); - exports.default = new AddonStore(); - }, - function(module, exports) { - var hasOwnProperty = {}.hasOwnProperty; - module.exports = function(it, key) { - return hasOwnProperty.call(it, key); - }; - }, - function(module, exports, __webpack_require__) { - var dP = __webpack_require__(26), - createDesc = __webpack_require__(75); - module.exports = __webpack_require__(29) - ? function(object, key, value) { - return dP.f(object, key, createDesc(1, value)); - } - : function(object, key, value) { - return (object[key] = value), object; - }; - }, - function(module, exports) { - module.exports = function(exec) { - try { - return !!exec(); - } catch (e) { - return !0; - } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _typeof3 = _interopRequireDefault(__webpack_require__(21)), - themes = (function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) return obj; - var newObj = {}; - if (null != obj) - for (var key in obj) - Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); - return (newObj.default = obj), newObj; - })(__webpack_require__(262)), - _base2 = _interopRequireDefault(__webpack_require__(575)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var styles = Object.keys(themes).reduce(function(styles, themeName) { - return (styles[themeName] = (0, _base2.default)(themes[themeName])), styles; - }, {}); - exports.default = function createStyles(key, theme) { - return 'string' == typeof theme - ? styles[theme][key] - : 'object' === (void 0 === theme ? 'undefined' : (0, _typeof3.default)(theme)) - ? (0, _base2.default)(theme)[key] - : styles.chromeLight[key]; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = !0; - var _from2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(281)); - exports.default = function(arr) { - if (Array.isArray(arr)) { - for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; - return arr2; - } - return (0, _from2.default)(arr); - }; - }, - function(module, exports, __webpack_require__) { - var IObject = __webpack_require__(138), - defined = __webpack_require__(137); - module.exports = function(it) { - return IObject(defined(it)); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - oneArgumentPooler = (__webpack_require__(3), - function(copyFieldsFrom) { - if (this.instancePool.length) { - var instance = this.instancePool.pop(); - return this.call(instance, copyFieldsFrom), instance; - } - return new this(copyFieldsFrom); - }), - standardReleaser = function(instance) { - instance instanceof this || _prodInvariant('25'), - instance.destructor(), - this.instancePool.length < this.poolSize && this.instancePool.push(instance); - }, - DEFAULT_POOLER = oneArgumentPooler, - PooledClass = { - addPoolingTo: function(CopyConstructor, pooler) { - var NewKlass = CopyConstructor; - return ( - (NewKlass.instancePool = []), - (NewKlass.getPooled = pooler || DEFAULT_POOLER), - NewKlass.poolSize || (NewKlass.poolSize = 10), - (NewKlass.release = standardReleaser), - NewKlass - ); - }, - oneArgumentPooler: oneArgumentPooler, - twoArgumentPooler: function(a1, a2) { - if (this.instancePool.length) { - var instance = this.instancePool.pop(); - return this.call(instance, a1, a2), instance; - } - return new this(a1, a2); - }, - threeArgumentPooler: function(a1, a2, a3) { - if (this.instancePool.length) { - var instance = this.instancePool.pop(); - return this.call(instance, a1, a2, a3), instance; - } - return new this(a1, a2, a3); - }, - fourArgumentPooler: function(a1, a2, a3, a4) { - if (this.instancePool.length) { - var instance = this.instancePool.pop(); - return this.call(instance, a1, a2, a3, a4), instance; - } - return new this(a1, a2, a3, a4); - } - }; - module.exports = PooledClass; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__TemplateTag__ = __webpack_require__(897); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__TemplateTag__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__trimResultTransformer__ = __webpack_require__(898); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__trimResultTransformer__.a; - }); - }, - function(module, exports, __webpack_require__) { - (function(global) { - var win; - (win = - 'undefined' != typeof window - ? window - : void 0 !== global ? global : 'undefined' != typeof self ? self : {}), - (module.exports = win); - }.call(exports, __webpack_require__(27))); - }, - function(module, exports, __webpack_require__) { - module.exports = !__webpack_require__(88)(function() { - return ( - 7 != - Object.defineProperty({}, 'a', { - get: function() { - return 7; - } - }).a - ); - }); - }, - function(module, exports, __webpack_require__) { - var dP = __webpack_require__(53), - createDesc = __webpack_require__(90); - module.exports = __webpack_require__(51) - ? function(object, key, value) { - return dP.f(object, key, createDesc(1, value)); - } - : function(object, key, value) { - return (object[key] = value), object; - }; - }, - function(module, exports, __webpack_require__) { - var anObject = __webpack_require__(89), - IE8_DOM_DEFINE = __webpack_require__(191), - toPrimitive = __webpack_require__(125), - dP = Object.defineProperty; - exports.f = __webpack_require__(51) - ? Object.defineProperty - : function defineProperty(O, P, Attributes) { - if ((anObject(O), (P = toPrimitive(P, !0)), anObject(Attributes), IE8_DOM_DEFINE)) - try { - return dP(O, P, Attributes); - } catch (e) {} - if ('get' in Attributes || 'set' in Attributes) - throw TypeError('Accessors not supported!'); - return 'value' in Attributes && (O[P] = Attributes.value), O; - }; - }, - function(module, exports, __webpack_require__) { - var IObject = __webpack_require__(312), - defined = __webpack_require__(195); - module.exports = function(it) { - return IObject(defined(it)); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = __webpack_require__(208); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - ReactBaseClasses = __webpack_require__(210), - ReactChildren = __webpack_require__(383), - ReactDOMFactories = __webpack_require__(388), - ReactElement = __webpack_require__(57), - ReactPropTypes = __webpack_require__(389), - ReactVersion = __webpack_require__(392), - createReactClass = __webpack_require__(393), - onlyChild = __webpack_require__(394), - createElement = ReactElement.createElement, - createFactory = ReactElement.createFactory, - cloneElement = ReactElement.cloneElement, - __spread = _assign, - createMixin = function(mixin) { - return mixin; - }, - React = { - Children: { - map: ReactChildren.map, - forEach: ReactChildren.forEach, - count: ReactChildren.count, - toArray: ReactChildren.toArray, - only: onlyChild - }, - Component: ReactBaseClasses.Component, - PureComponent: ReactBaseClasses.PureComponent, - createElement: createElement, - cloneElement: cloneElement, - isValidElement: ReactElement.isValidElement, - PropTypes: ReactPropTypes, - createClass: createReactClass, - createFactory: createFactory, - createMixin: createMixin, - DOM: ReactDOMFactories, - version: ReactVersion, - __spread: __spread - }; - module.exports = React; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - ReactCurrentOwner = __webpack_require__(32), - hasOwnProperty = (__webpack_require__(6), - __webpack_require__(212), - Object.prototype.hasOwnProperty), - REACT_ELEMENT_TYPE = __webpack_require__(213), - RESERVED_PROPS = { key: !0, ref: !0, __self: !0, __source: !0 }; - function hasValidRef(config) { - return void 0 !== config.ref; - } - function hasValidKey(config) { - return void 0 !== config.key; - } - var ReactElement = function(type, key, ref, self, source, owner, props) { - var element = { - $$typeof: REACT_ELEMENT_TYPE, - type: type, - key: key, - ref: ref, - props: props, - _owner: owner - }; - return element; - }; - (ReactElement.createElement = function(type, config, children) { - var propName, - props = {}, - key = null, - ref = null; - if (null != config) { - hasValidRef(config) && (ref = config.ref), - hasValidKey(config) && (key = '' + config.key), - void 0 === config.__self ? null : config.__self, - void 0 === config.__source ? null : config.__source; - for (propName in config) - hasOwnProperty.call(config, propName) && - !RESERVED_PROPS.hasOwnProperty(propName) && - (props[propName] = config[propName]); - } - var childrenLength = arguments.length - 2; - if (1 === childrenLength) props.children = children; - else if (childrenLength > 1) { - for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) - childArray[i] = arguments[i + 2]; - 0, (props.children = childArray); - } - if (type && type.defaultProps) { - var defaultProps = type.defaultProps; - for (propName in defaultProps) - void 0 === props[propName] && (props[propName] = defaultProps[propName]); - } - return ReactElement(type, key, ref, 0, 0, ReactCurrentOwner.current, props); - }), - (ReactElement.createFactory = function(type) { - var factory = ReactElement.createElement.bind(null, type); - return (factory.type = type), factory; - }), - (ReactElement.cloneAndReplaceKey = function(oldElement, newKey) { - return ReactElement( - oldElement.type, - newKey, - oldElement.ref, - oldElement._self, - oldElement._source, - oldElement._owner, - oldElement.props - ); - }), - (ReactElement.cloneElement = function(element, config, children) { - var propName, - props = _assign({}, element.props), - key = element.key, - ref = element.ref, - owner = (element._self, element._source, element._owner); - if (null != config) { - var defaultProps; - hasValidRef(config) && ((ref = config.ref), (owner = ReactCurrentOwner.current)), - hasValidKey(config) && (key = '' + config.key), - element.type && element.type.defaultProps && (defaultProps = element.type.defaultProps); - for (propName in config) - hasOwnProperty.call(config, propName) && - !RESERVED_PROPS.hasOwnProperty(propName) && - (void 0 === config[propName] && void 0 !== defaultProps - ? (props[propName] = defaultProps[propName]) - : (props[propName] = config[propName])); - } - var childrenLength = arguments.length - 2; - if (1 === childrenLength) props.children = children; - else if (childrenLength > 1) { - for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) - childArray[i] = arguments[i + 2]; - props.children = childArray; - } - return ReactElement(element.type, key, ref, 0, 0, owner, props); - }), - (ReactElement.isValidElement = function(object) { - return ( - 'object' == typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE - ); - }), - (module.exports = ReactElement); - }, - function(module, exports, __webpack_require__) { - var defined = __webpack_require__(137); - module.exports = function(it) { - return Object(defined(it)); - }; - }, - function(module, exports) { - module.exports = {}; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7); - __webpack_require__(3); - function checkMask(value, bitmask) { - return (value & bitmask) === bitmask; - } - var DOMPropertyInjection = { - MUST_USE_PROPERTY: 1, - HAS_BOOLEAN_VALUE: 4, - HAS_NUMERIC_VALUE: 8, - HAS_POSITIVE_NUMERIC_VALUE: 24, - HAS_OVERLOADED_BOOLEAN_VALUE: 32, - injectDOMPropertyConfig: function(domPropertyConfig) { - var Injection = DOMPropertyInjection, - Properties = domPropertyConfig.Properties || {}, - DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {}, - DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {}, - DOMPropertyNames = domPropertyConfig.DOMPropertyNames || {}, - DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {}; - domPropertyConfig.isCustomAttribute && - DOMProperty._isCustomAttributeFunctions.push(domPropertyConfig.isCustomAttribute); - for (var propName in Properties) { - DOMProperty.properties.hasOwnProperty(propName) && _prodInvariant('48', propName); - var lowerCased = propName.toLowerCase(), - propConfig = Properties[propName], - propertyInfo = { - attributeName: lowerCased, - attributeNamespace: null, - propertyName: propName, - mutationMethod: null, - mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY), - hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE), - hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE), - hasPositiveNumericValue: checkMask( - propConfig, - Injection.HAS_POSITIVE_NUMERIC_VALUE - ), - hasOverloadedBooleanValue: checkMask( - propConfig, - Injection.HAS_OVERLOADED_BOOLEAN_VALUE - ) - }; - if ( - (propertyInfo.hasBooleanValue + - propertyInfo.hasNumericValue + - propertyInfo.hasOverloadedBooleanValue <= - 1 || _prodInvariant('50', propName), - DOMAttributeNames.hasOwnProperty(propName)) - ) { - var attributeName = DOMAttributeNames[propName]; - propertyInfo.attributeName = attributeName; - } - DOMAttributeNamespaces.hasOwnProperty(propName) && - (propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName]), - DOMPropertyNames.hasOwnProperty(propName) && - (propertyInfo.propertyName = DOMPropertyNames[propName]), - DOMMutationMethods.hasOwnProperty(propName) && - (propertyInfo.mutationMethod = DOMMutationMethods[propName]), - (DOMProperty.properties[propName] = propertyInfo); - } - } - }, - ATTRIBUTE_NAME_START_CHAR = - ':A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD', - DOMProperty = { - ID_ATTRIBUTE_NAME: 'data-reactid', - ROOT_ATTRIBUTE_NAME: 'data-reactroot', - ATTRIBUTE_NAME_START_CHAR: ATTRIBUTE_NAME_START_CHAR, - ATTRIBUTE_NAME_CHAR: - ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040', - properties: {}, - getPossibleStandardName: null, - _isCustomAttributeFunctions: [], - isCustomAttribute: function(attributeName) { - for (var i = 0; i < DOMProperty._isCustomAttributeFunctions.length; i++) { - if ((0, DOMProperty._isCustomAttributeFunctions[i])(attributeName)) return !0; - } - return !1; - }, - injection: DOMPropertyInjection - }; - module.exports = DOMProperty; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactRef = __webpack_require__(448); - __webpack_require__(25), __webpack_require__(6); - function attachRefs() { - ReactRef.attachRefs(this, this._currentElement); - } - var ReactReconciler = { - mountComponent: function( - internalInstance, - transaction, - hostParent, - hostContainerInfo, - context, - parentDebugID - ) { - var markup = internalInstance.mountComponent( - transaction, - hostParent, - hostContainerInfo, - context, - parentDebugID - ); - return ( - internalInstance._currentElement && - null != internalInstance._currentElement.ref && - transaction.getReactMountReady().enqueue(attachRefs, internalInstance), - markup - ); - }, - getHostNode: function(internalInstance) { - return internalInstance.getHostNode(); - }, - unmountComponent: function(internalInstance, safely) { - ReactRef.detachRefs(internalInstance, internalInstance._currentElement), - internalInstance.unmountComponent(safely); - }, - receiveComponent: function(internalInstance, nextElement, transaction, context) { - var prevElement = internalInstance._currentElement; - if (nextElement !== prevElement || context !== internalInstance._context) { - 0; - var refsChanged = ReactRef.shouldUpdateRefs(prevElement, nextElement); - refsChanged && ReactRef.detachRefs(internalInstance, prevElement), - internalInstance.receiveComponent(nextElement, transaction, context), - refsChanged && - internalInstance._currentElement && - null != internalInstance._currentElement.ref && - transaction.getReactMountReady().enqueue(attachRefs, internalInstance); - } - }, - performUpdateIfNecessary: function(internalInstance, transaction, updateBatchNumber) { - internalInstance._updateBatchNumber === updateBatchNumber && - internalInstance.performUpdateIfNecessary(transaction); - } - }; - module.exports = ReactReconciler; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var DOMNamespaces = __webpack_require__(160), - setInnerHTML = __webpack_require__(100), - createMicrosoftUnsafeLocalFunction = __webpack_require__(161), - setTextContent = __webpack_require__(243), - enableLazy = - ('undefined' != typeof document && 'number' == typeof document.documentMode) || - ('undefined' != typeof navigator && - 'string' == typeof navigator.userAgent && - /\bEdge\/\d/.test(navigator.userAgent)); - function insertTreeChildren(tree) { - if (enableLazy) { - var node = tree.node, - children = tree.children; - if (children.length) - for (var i = 0; i < children.length; i++) insertTreeBefore(node, children[i], null); - else - null != tree.html - ? setInnerHTML(node, tree.html) - : null != tree.text && setTextContent(node, tree.text); - } - } - var insertTreeBefore = createMicrosoftUnsafeLocalFunction(function( - parentNode, - tree, - referenceNode - ) { - 11 === tree.node.nodeType || - (1 === tree.node.nodeType && - 'object' === tree.node.nodeName.toLowerCase() && - (null == tree.node.namespaceURI || tree.node.namespaceURI === DOMNamespaces.html)) - ? (insertTreeChildren(tree), parentNode.insertBefore(tree.node, referenceNode)) - : (parentNode.insertBefore(tree.node, referenceNode), insertTreeChildren(tree)); - }); - function toString() { - return this.node.nodeName; - } - function DOMLazyTree(node) { - return { node: node, children: [], html: null, text: null, toString: toString }; - } - (DOMLazyTree.insertTreeBefore = insertTreeBefore), - (DOMLazyTree.replaceChildWithTree = function replaceChildWithTree(oldNode, newTree) { - oldNode.parentNode.replaceChild(newTree.node, oldNode), insertTreeChildren(newTree); - }), - (DOMLazyTree.queueChild = function queueChild(parentTree, childTree) { - enableLazy - ? parentTree.children.push(childTree) - : parentTree.node.appendChild(childTree.node); - }), - (DOMLazyTree.queueHTML = function queueHTML(tree, html) { - enableLazy ? (tree.html = html) : setInnerHTML(tree.node, html); - }), - (DOMLazyTree.queueText = function queueText(tree, text) { - enableLazy ? (tree.text = text) : setTextContent(tree.node, text); - }), - (module.exports = DOMLazyTree); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var $at = __webpack_require__(409)(!0); - __webpack_require__(184)( - String, - 'String', - function(iterated) { - (this._t = String(iterated)), (this._i = 0); - }, - function() { - var point, - O = this._t, - index = this._i; - return index >= O.length - ? { value: void 0, done: !0 } - : ((point = $at(O, index)), (this._i += point.length), { value: point, done: !1 }); - } - ); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(411); - for ( - var global = __webpack_require__(17), - hide = __webpack_require__(42), - Iterators = __webpack_require__(59), - TO_STRING_TAG = __webpack_require__(18)('toStringTag'), - DOMIterables = 'CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList'.split( - ',' - ), - i = 0; - i < DOMIterables.length; - i++ - ) { - var NAME = DOMIterables[i], - Collection = global[NAME], - proto = Collection && Collection.prototype; - proto && !proto[TO_STRING_TAG] && hide(proto, TO_STRING_TAG, NAME), - (Iterators[NAME] = Iterators.Array); - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - (exports.__esModule = !0), - (exports.default = function(obj, keys) { - var target = {}; - for (var i in obj) - keys.indexOf(i) >= 0 || - (Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i])); - return target; - }); - }, - , - function(module, exports) { - var core = (module.exports = { version: '2.5.3' }); - 'number' == typeof __e && (__e = core); - }, - function(module, exports) { - module.exports = function(it) { - return 'object' == typeof it ? null !== it : 'function' == typeof it; - }; - }, - function(module, exports) { - var id = 0, - px = Math.random(); - module.exports = function(key) { - return 'Symbol('.concat(void 0 === key ? '' : key, ')_', (++id + px).toString(36)); - }; - }, - function(module, exports, __webpack_require__) { - var bind = __webpack_require__(39); - module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function reactProdInvariant(code) { - for ( - var argCount = arguments.length - 1, - message = - 'Minified React error #' + - code + - '; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=' + - code, - argIdx = 0; - argIdx < argCount; - argIdx++ - ) - message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]); - message += - ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.'; - var error = new Error(message); - throw ((error.name = 'Invariant Violation'), (error.framesToPop = 1), error); - }; - }, - function(module, exports, __webpack_require__) { - var $keys = __webpack_require__(216), - enumBugKeys = __webpack_require__(142); - module.exports = - Object.keys || - function keys(O) { - return $keys(O, enumBugKeys); - }; - }, - function(module, exports) { - var toString = {}.toString; - module.exports = function(it) { - return toString.call(it).slice(8, -1); - }; - }, - function(module, exports) { - module.exports = function(it) { - if ('function' != typeof it) throw TypeError(it + ' is not a function!'); - return it; - }; - }, - function(module, exports) { - module.exports = function(bitmap, value) { - return { - enumerable: !(1 & bitmap), - configurable: !(2 & bitmap), - writable: !(4 & bitmap), - value: value - }; - }; - }, - function(module, exports, __webpack_require__) { - var def = __webpack_require__(26).f, - has = __webpack_require__(41), - TAG = __webpack_require__(18)('toStringTag'); - module.exports = function(it, tag, stat) { - it && - !has((it = stat ? it : it.prototype), TAG) && - def(it, TAG, { configurable: !0, value: tag }); - }; - }, - function(module, exports, __webpack_require__) { - var META = __webpack_require__(95)('meta'), - isObject = __webpack_require__(20), - has = __webpack_require__(41), - setDesc = __webpack_require__(26).f, - id = 0, - isExtensible = - Object.isExtensible || - function() { - return !0; - }, - FREEZE = !__webpack_require__(43)(function() { - return isExtensible(Object.preventExtensions({})); - }), - setMeta = function(it) { - setDesc(it, META, { value: { i: 'O' + ++id, w: {} } }); - }, - meta = (module.exports = { - KEY: META, - NEED: !1, - fastKey: function(it, create) { - if (!isObject(it)) - return 'symbol' == typeof it ? it : ('string' == typeof it ? 'S' : 'P') + it; - if (!has(it, META)) { - if (!isExtensible(it)) return 'F'; - if (!create) return 'E'; - setMeta(it); - } - return it[META].i; - }, - getWeak: function(it, create) { - if (!has(it, META)) { - if (!isExtensible(it)) return !0; - if (!create) return !1; - setMeta(it); - } - return it[META].w; - }, - onFreeze: function(it) { - return FREEZE && meta.NEED && isExtensible(it) && !has(it, META) && setMeta(it), it; - } - }); - }, - function(module, exports, __webpack_require__) { - var ctx = __webpack_require__(35), - call = __webpack_require__(224), - isArrayIter = __webpack_require__(225), - anObject = __webpack_require__(24), - toLength = __webpack_require__(94), - getIterFn = __webpack_require__(151), - BREAK = {}, - RETURN = {}; - ((exports = module.exports = function(iterable, entries, fn, that, ITERATOR) { - var length, - step, - iterator, - result, - iterFn = ITERATOR - ? function() { - return iterable; - } - : getIterFn(iterable), - f = ctx(fn, that, entries ? 2 : 1), - index = 0; - if ('function' != typeof iterFn) throw TypeError(iterable + ' is not iterable!'); - if (isArrayIter(iterFn)) { - for (length = toLength(iterable.length); length > index; index++) - if ( - (result = entries - ? f(anObject((step = iterable[index]))[0], step[1]) - : f(iterable[index])) === BREAK || - result === RETURN - ) - return result; - } else - for (iterator = iterFn.call(iterable); !(step = iterator.next()).done; ) - if ((result = call(iterator, f, step.value, entries)) === BREAK || result === RETURN) - return result; - }).BREAK = BREAK), - (exports.RETURN = RETURN); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var EventPluginHub = __webpack_require__(80), - EventPluginUtils = __webpack_require__(154), - accumulateInto = __webpack_require__(235), - forEachAccumulated = __webpack_require__(236), - getListener = (__webpack_require__(6), EventPluginHub.getListener); - function accumulateDirectionalDispatches(inst, phase, event) { - var listener = (function listenerAtPhase(inst, event, propagationPhase) { - var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase]; - return getListener(inst, registrationName); - })(inst, event, phase); - listener && - ((event._dispatchListeners = accumulateInto(event._dispatchListeners, listener)), - (event._dispatchInstances = accumulateInto(event._dispatchInstances, inst))); - } - function accumulateTwoPhaseDispatchesSingle(event) { - event && - event.dispatchConfig.phasedRegistrationNames && - EventPluginUtils.traverseTwoPhase( - event._targetInst, - accumulateDirectionalDispatches, - event - ); - } - function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { - if (event && event.dispatchConfig.phasedRegistrationNames) { - var targetInst = event._targetInst, - parentInst = targetInst ? EventPluginUtils.getParentInstance(targetInst) : null; - EventPluginUtils.traverseTwoPhase(parentInst, accumulateDirectionalDispatches, event); - } - } - function accumulateDispatches(inst, ignoredDirection, event) { - if (event && event.dispatchConfig.registrationName) { - var registrationName = event.dispatchConfig.registrationName, - listener = getListener(inst, registrationName); - listener && - ((event._dispatchListeners = accumulateInto(event._dispatchListeners, listener)), - (event._dispatchInstances = accumulateInto(event._dispatchInstances, inst))); - } - } - function accumulateDirectDispatchesSingle(event) { - event && - event.dispatchConfig.registrationName && - accumulateDispatches(event._targetInst, 0, event); - } - var EventPropagators = { - accumulateTwoPhaseDispatches: function accumulateTwoPhaseDispatches(events) { - forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle); - }, - accumulateTwoPhaseDispatchesSkipTarget: function accumulateTwoPhaseDispatchesSkipTarget( - events - ) { - forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget); - }, - accumulateDirectDispatches: function accumulateDirectDispatches(events) { - forEachAccumulated(events, accumulateDirectDispatchesSingle); - }, - accumulateEnterLeaveDispatches: function accumulateEnterLeaveDispatches( - leave, - enter, - from, - to - ) { - EventPluginUtils.traverseEnterLeave(from, to, accumulateDispatches, leave, enter); - } - }; - module.exports = EventPropagators; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - EventPluginRegistry = __webpack_require__(153), - EventPluginUtils = __webpack_require__(154), - ReactErrorUtils = __webpack_require__(155), - accumulateInto = __webpack_require__(235), - forEachAccumulated = __webpack_require__(236), - listenerBank = (__webpack_require__(3), {}), - eventQueue = null, - executeDispatchesAndRelease = function(event, simulated) { - event && - (EventPluginUtils.executeDispatchesInOrder(event, simulated), - event.isPersistent() || event.constructor.release(event)); - }, - executeDispatchesAndReleaseSimulated = function(e) { - return executeDispatchesAndRelease(e, !0); - }, - executeDispatchesAndReleaseTopLevel = function(e) { - return executeDispatchesAndRelease(e, !1); - }, - getDictionaryKey = function(inst) { - return '.' + inst._rootNodeID; - }; - var EventPluginHub = { - injection: { - injectEventPluginOrder: EventPluginRegistry.injectEventPluginOrder, - injectEventPluginsByName: EventPluginRegistry.injectEventPluginsByName - }, - putListener: function(inst, registrationName, listener) { - 'function' != typeof listener && _prodInvariant('94', registrationName, typeof listener); - var key = getDictionaryKey(inst); - (listenerBank[registrationName] || (listenerBank[registrationName] = {}))[key] = listener; - var PluginModule = EventPluginRegistry.registrationNameModules[registrationName]; - PluginModule && - PluginModule.didPutListener && - PluginModule.didPutListener(inst, registrationName, listener); - }, - getListener: function(inst, registrationName) { - var bankForRegistrationName = listenerBank[registrationName]; - if ( - (function shouldPreventMouseEvent(name, type, props) { - switch (name) { - case 'onClick': - case 'onClickCapture': - case 'onDoubleClick': - case 'onDoubleClickCapture': - case 'onMouseDown': - case 'onMouseDownCapture': - case 'onMouseMove': - case 'onMouseMoveCapture': - case 'onMouseUp': - case 'onMouseUpCapture': - return !( - !props.disabled || - !(function isInteractive(tag) { - return ( - 'button' === tag || 'input' === tag || 'select' === tag || 'textarea' === tag - ); - })(type) - ); - default: - return !1; - } - })(registrationName, inst._currentElement.type, inst._currentElement.props) - ) - return null; - var key = getDictionaryKey(inst); - return bankForRegistrationName && bankForRegistrationName[key]; - }, - deleteListener: function(inst, registrationName) { - var PluginModule = EventPluginRegistry.registrationNameModules[registrationName]; - PluginModule && - PluginModule.willDeleteListener && - PluginModule.willDeleteListener(inst, registrationName); - var bankForRegistrationName = listenerBank[registrationName]; - bankForRegistrationName && delete bankForRegistrationName[getDictionaryKey(inst)]; - }, - deleteAllListeners: function(inst) { - var key = getDictionaryKey(inst); - for (var registrationName in listenerBank) - if ( - listenerBank.hasOwnProperty(registrationName) && - listenerBank[registrationName][key] - ) { - var PluginModule = EventPluginRegistry.registrationNameModules[registrationName]; - PluginModule && - PluginModule.willDeleteListener && - PluginModule.willDeleteListener(inst, registrationName), - delete listenerBank[registrationName][key]; - } - }, - extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - for (var events, plugins = EventPluginRegistry.plugins, i = 0; i < plugins.length; i++) { - var possiblePlugin = plugins[i]; - if (possiblePlugin) { - var extractedEvents = possiblePlugin.extractEvents( - topLevelType, - targetInst, - nativeEvent, - nativeEventTarget - ); - extractedEvents && (events = accumulateInto(events, extractedEvents)); - } - } - return events; - }, - enqueueEvents: function(events) { - events && (eventQueue = accumulateInto(eventQueue, events)); - }, - processEventQueue: function(simulated) { - var processingEventQueue = eventQueue; - (eventQueue = null), - forEachAccumulated( - processingEventQueue, - simulated ? executeDispatchesAndReleaseSimulated : executeDispatchesAndReleaseTopLevel - ), - eventQueue && _prodInvariant('95'), - ReactErrorUtils.rethrowCaughtError(); - }, - __purge: function() { - listenerBank = {}; - }, - __getListenerBank: function() { - return listenerBank; - } - }; - module.exports = EventPluginHub; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticEvent = __webpack_require__(33), - getEventTarget = __webpack_require__(156), - UIEventInterface = { - view: function(event) { - if (event.view) return event.view; - var target = getEventTarget(event); - if (target.window === target) return target; - var doc = target.ownerDocument; - return doc ? doc.defaultView || doc.parentWindow : window; - }, - detail: function(event) { - return event.detail || 0; - } - }; - function SyntheticUIEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { - return SyntheticEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticEvent.augmentClass(SyntheticUIEvent, UIEventInterface), - (module.exports = SyntheticUIEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactInstanceMap = { - remove: function(key) { - key._reactInternalInstance = void 0; - }, - get: function(key) { - return key._reactInternalInstance; - }, - has: function(key) { - return void 0 !== key._reactInternalInstance; - }, - set: function(key, value) { - key._reactInternalInstance = value; - } - }; - module.exports = ReactInstanceMap; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__inlineArrayTransformer__ = __webpack_require__(904); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__inlineArrayTransformer__.a; - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.typeReplacer = exports.typeReviver = exports.prepareArguments = exports.muteProperty = exports.isObject = exports.getPropertiesList = exports.canConfigureName = void 0); - var _canConfigureName3 = _interopRequireDefault(__webpack_require__(260)), - _getPropertiesList3 = _interopRequireDefault(__webpack_require__(540)), - _isObject3 = _interopRequireDefault(__webpack_require__(541)), - _muteProperty3 = _interopRequireDefault(__webpack_require__(542)), - _prepareArguments3 = _interopRequireDefault(__webpack_require__(543)), - _typeReviver3 = _interopRequireDefault(__webpack_require__(544)), - _typeReplacer3 = _interopRequireDefault(__webpack_require__(565)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - (exports.canConfigureName = _canConfigureName3.default), - (exports.getPropertiesList = _getPropertiesList3.default), - (exports.isObject = _isObject3.default), - (exports.muteProperty = _muteProperty3.default), - (exports.prepareArguments = _prepareArguments3.default), - (exports.typeReviver = _typeReviver3.default), - (exports.typeReplacer = _typeReplacer3.default); - }, - , - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(402), __esModule: !0 }; - }, - , - function(module, exports) { - module.exports = function(exec) { - try { - return !!exec(); - } catch (e) { - return !0; - } - }; - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(68); - module.exports = function(it) { - if (!isObject(it)) throw TypeError(it + ' is not an object!'); - return it; - }; - }, - function(module, exports) { - module.exports = function(bitmap, value) { - return { - enumerable: !(1 & bitmap), - configurable: !(2 & bitmap), - writable: !(4 & bitmap), - value: value - }; - }; - }, - function(module, exports, __webpack_require__) { - var global = __webpack_require__(36), - hide = __webpack_require__(52), - has = __webpack_require__(37), - SRC = __webpack_require__(69)('src'), - $toString = Function.toString, - TPL = ('' + $toString).split('toString'); - (__webpack_require__(67).inspectSource = function(it) { - return $toString.call(it); - }), - (module.exports = function(O, key, val, safe) { - var isFunction = 'function' == typeof val; - isFunction && (has(val, 'name') || hide(val, 'name', key)), - O[key] !== val && - (isFunction && - (has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)))), - O === global - ? (O[key] = val) - : safe - ? O[key] ? (O[key] = val) : hide(O, key, val) - : (delete O[key], hide(O, key, val))); - })(Function.prototype, 'toString', function toString() { - return ('function' == typeof this && this[SRC]) || $toString.call(this); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var fnToStr = Function.prototype.toString, - constructorRegex = /^\s*class /, - isES6ClassFn = function isES6ClassFn(value) { - try { - var spaceStripped = fnToStr - .call(value) - .replace(/\/\/.*\n/g, '') - .replace(/\/\*[.\s\S]*\*\//g, '') - .replace(/\n/gm, ' ') - .replace(/ {2}/g, ' '); - return constructorRegex.test(spaceStripped); - } catch (e) { - return !1; - } - }, - toStr = Object.prototype.toString, - hasToStringTag = 'function' == typeof Symbol && 'symbol' == typeof Symbol.toStringTag; - module.exports = function isCallable(value) { - if (!value) return !1; - if ('function' != typeof value && 'object' != typeof value) return !1; - if (hasToStringTag) - return (function tryFunctionObject(value) { - try { - return !isES6ClassFn(value) && (fnToStr.call(value), !0); - } catch (e) { - return !1; - } - })(value); - if (isES6ClassFn(value)) return !1; - var strClass = toStr.call(value); - return '[object Function]' === strClass || '[object GeneratorFunction]' === strClass; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var emptyObject = {}; - module.exports = emptyObject; - }, - function(module, exports, __webpack_require__) { - var toInteger = __webpack_require__(139), - min = Math.min; - module.exports = function(it) { - return it > 0 ? min(toInteger(it), 9007199254740991) : 0; - }; - }, - function(module, exports) { - var id = 0, - px = Math.random(); - module.exports = function(key) { - return 'Symbol('.concat(void 0 === key ? '' : key, ')_', (++id + px).toString(36)); - }; - }, - function(module, exports) { - exports.f = {}.propertyIsEnumerable; - }, - function(module, exports) { - module.exports = !0; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - OBSERVED_ERROR = (__webpack_require__(3), {}), - TransactionImpl = { - reinitializeTransaction: function() { - (this.transactionWrappers = this.getTransactionWrappers()), - this.wrapperInitData ? (this.wrapperInitData.length = 0) : (this.wrapperInitData = []), - (this._isInTransaction = !1); - }, - _isInTransaction: !1, - getTransactionWrappers: null, - isInTransaction: function() { - return !!this._isInTransaction; - }, - perform: function(method, scope, a, b, c, d, e, f) { - var errorThrown, ret; - this.isInTransaction() && _prodInvariant('27'); - try { - (this._isInTransaction = !0), - (errorThrown = !0), - this.initializeAll(0), - (ret = method.call(scope, a, b, c, d, e, f)), - (errorThrown = !1); - } finally { - try { - if (errorThrown) - try { - this.closeAll(0); - } catch (err) {} - else this.closeAll(0); - } finally { - this._isInTransaction = !1; - } - } - return ret; - }, - initializeAll: function(startIndex) { - for ( - var transactionWrappers = this.transactionWrappers, i = startIndex; - i < transactionWrappers.length; - i++ - ) { - var wrapper = transactionWrappers[i]; - try { - (this.wrapperInitData[i] = OBSERVED_ERROR), - (this.wrapperInitData[i] = wrapper.initialize - ? wrapper.initialize.call(this) - : null); - } finally { - if (this.wrapperInitData[i] === OBSERVED_ERROR) - try { - this.initializeAll(i + 1); - } catch (err) {} - } - } - }, - closeAll: function(startIndex) { - this.isInTransaction() || _prodInvariant('28'); - for ( - var transactionWrappers = this.transactionWrappers, i = startIndex; - i < transactionWrappers.length; - i++ - ) { - var errorThrown, - wrapper = transactionWrappers[i], - initData = this.wrapperInitData[i]; - try { - (errorThrown = !0), - initData !== OBSERVED_ERROR && wrapper.close && wrapper.close.call(this, initData), - (errorThrown = !1); - } finally { - if (errorThrown) - try { - this.closeAll(i + 1); - } catch (e) {} - } - } - this.wrapperInitData.length = 0; - } - }; - module.exports = TransactionImpl; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticUIEvent = __webpack_require__(81), - ViewportMetrics = __webpack_require__(242), - MouseEventInterface = { - screenX: null, - screenY: null, - clientX: null, - clientY: null, - ctrlKey: null, - shiftKey: null, - altKey: null, - metaKey: null, - getModifierState: __webpack_require__(158), - button: function(event) { - var button = event.button; - return 'which' in event ? button : 2 === button ? 2 : 4 === button ? 1 : 0; - }, - buttons: null, - relatedTarget: function(event) { - return ( - event.relatedTarget || - (event.fromElement === event.srcElement ? event.toElement : event.fromElement) - ); - }, - pageX: function(event) { - return 'pageX' in event ? event.pageX : event.clientX + ViewportMetrics.currentScrollLeft; - }, - pageY: function(event) { - return 'pageY' in event ? event.pageY : event.clientY + ViewportMetrics.currentScrollTop; - } - }; - function SyntheticMouseEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { - return SyntheticUIEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticUIEvent.augmentClass(SyntheticMouseEvent, MouseEventInterface), - (module.exports = SyntheticMouseEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var reusableSVGContainer, - ExecutionEnvironment = __webpack_require__(19), - DOMNamespaces = __webpack_require__(160), - WHITESPACE_TEST = /^[ \r\n\t\f]/, - NONVISIBLE_TEST = /<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/, - setInnerHTML = __webpack_require__(161)(function(node, html) { - if (node.namespaceURI !== DOMNamespaces.svg || 'innerHTML' in node) node.innerHTML = html; - else { - (reusableSVGContainer = reusableSVGContainer || document.createElement('div')).innerHTML = - '' + html + ''; - for (var svgNode = reusableSVGContainer.firstChild; svgNode.firstChild; ) - node.appendChild(svgNode.firstChild); - } - }); - if (ExecutionEnvironment.canUseDOM) { - var testElement = document.createElement('div'); - (testElement.innerHTML = ' '), - '' === testElement.innerHTML && - (setInnerHTML = function(node, html) { - if ( - (node.parentNode && node.parentNode.replaceChild(node, node), - WHITESPACE_TEST.test(html) || ('<' === html[0] && NONVISIBLE_TEST.test(html))) - ) { - node.innerHTML = String.fromCharCode(65279) + html; - var textNode = node.firstChild; - 1 === textNode.data.length ? node.removeChild(textNode) : textNode.deleteData(0, 1); - } else node.innerHTML = html; - }), - (testElement = null); - } - module.exports = setInnerHTML; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var matchHtmlRegExp = /["'&<>]/; - module.exports = function escapeTextContentForBrowser(text) { - return 'boolean' == typeof text || 'number' == typeof text - ? '' + text - : (function escapeHtml(string) { - var escape, - str = '' + string, - match = matchHtmlRegExp.exec(str); - if (!match) return str; - var html = '', - index = 0, - lastIndex = 0; - for (index = match.index; index < str.length; index++) { - switch (str.charCodeAt(index)) { - case 34: - escape = '"'; - break; - case 38: - escape = '&'; - break; - case 39: - escape = '''; - break; - case 60: - escape = '<'; - break; - case 62: - escape = '>'; - break; - default: - continue; - } - lastIndex !== index && (html += str.substring(lastIndex, index)), - (lastIndex = index + 1), - (html += escape); - } - return lastIndex !== index ? html + str.substring(lastIndex, index) : html; - })(text); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var hasEventPageXY, - _assign = __webpack_require__(9), - EventPluginRegistry = __webpack_require__(153), - ReactEventEmitterMixin = __webpack_require__(466), - ViewportMetrics = __webpack_require__(242), - getVendorPrefixedEventName = __webpack_require__(467), - isEventSupported = __webpack_require__(157), - alreadyListeningTo = {}, - isMonitoringScrollValue = !1, - reactTopListenersCounter = 0, - topEventMapping = { - topAbort: 'abort', - topAnimationEnd: getVendorPrefixedEventName('animationend') || 'animationend', - topAnimationIteration: - getVendorPrefixedEventName('animationiteration') || 'animationiteration', - topAnimationStart: getVendorPrefixedEventName('animationstart') || 'animationstart', - topBlur: 'blur', - topCanPlay: 'canplay', - topCanPlayThrough: 'canplaythrough', - topChange: 'change', - topClick: 'click', - topCompositionEnd: 'compositionend', - topCompositionStart: 'compositionstart', - topCompositionUpdate: 'compositionupdate', - topContextMenu: 'contextmenu', - topCopy: 'copy', - topCut: 'cut', - topDoubleClick: 'dblclick', - topDrag: 'drag', - topDragEnd: 'dragend', - topDragEnter: 'dragenter', - topDragExit: 'dragexit', - topDragLeave: 'dragleave', - topDragOver: 'dragover', - topDragStart: 'dragstart', - topDrop: 'drop', - topDurationChange: 'durationchange', - topEmptied: 'emptied', - topEncrypted: 'encrypted', - topEnded: 'ended', - topError: 'error', - topFocus: 'focus', - topInput: 'input', - topKeyDown: 'keydown', - topKeyPress: 'keypress', - topKeyUp: 'keyup', - topLoadedData: 'loadeddata', - topLoadedMetadata: 'loadedmetadata', - topLoadStart: 'loadstart', - topMouseDown: 'mousedown', - topMouseMove: 'mousemove', - topMouseOut: 'mouseout', - topMouseOver: 'mouseover', - topMouseUp: 'mouseup', - topPaste: 'paste', - topPause: 'pause', - topPlay: 'play', - topPlaying: 'playing', - topProgress: 'progress', - topRateChange: 'ratechange', - topScroll: 'scroll', - topSeeked: 'seeked', - topSeeking: 'seeking', - topSelectionChange: 'selectionchange', - topStalled: 'stalled', - topSuspend: 'suspend', - topTextInput: 'textInput', - topTimeUpdate: 'timeupdate', - topTouchCancel: 'touchcancel', - topTouchEnd: 'touchend', - topTouchMove: 'touchmove', - topTouchStart: 'touchstart', - topTransitionEnd: getVendorPrefixedEventName('transitionend') || 'transitionend', - topVolumeChange: 'volumechange', - topWaiting: 'waiting', - topWheel: 'wheel' - }, - topListenersIDKey = '_reactListenersID' + String(Math.random()).slice(2); - var ReactBrowserEventEmitter = _assign({}, ReactEventEmitterMixin, { - ReactEventListener: null, - injection: { - injectReactEventListener: function(ReactEventListener) { - ReactEventListener.setHandleTopLevel(ReactBrowserEventEmitter.handleTopLevel), - (ReactBrowserEventEmitter.ReactEventListener = ReactEventListener); - } - }, - setEnabled: function(enabled) { - ReactBrowserEventEmitter.ReactEventListener && - ReactBrowserEventEmitter.ReactEventListener.setEnabled(enabled); - }, - isEnabled: function() { - return !( - !ReactBrowserEventEmitter.ReactEventListener || - !ReactBrowserEventEmitter.ReactEventListener.isEnabled() - ); - }, - listenTo: function(registrationName, contentDocumentHandle) { - for ( - var mountAt = contentDocumentHandle, - isListening = (function getListeningForDocument(mountAt) { - return ( - Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey) || - ((mountAt[topListenersIDKey] = reactTopListenersCounter++), - (alreadyListeningTo[mountAt[topListenersIDKey]] = {})), - alreadyListeningTo[mountAt[topListenersIDKey]] - ); - })(mountAt), - dependencies = EventPluginRegistry.registrationNameDependencies[registrationName], - i = 0; - i < dependencies.length; - i++ - ) { - var dependency = dependencies[i]; - (isListening.hasOwnProperty(dependency) && isListening[dependency]) || - ('topWheel' === dependency - ? isEventSupported('wheel') - ? ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent( - 'topWheel', - 'wheel', - mountAt - ) - : isEventSupported('mousewheel') - ? ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent( - 'topWheel', - 'mousewheel', - mountAt - ) - : ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent( - 'topWheel', - 'DOMMouseScroll', - mountAt - ) - : 'topScroll' === dependency - ? isEventSupported('scroll', !0) - ? ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent( - 'topScroll', - 'scroll', - mountAt - ) - : ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent( - 'topScroll', - 'scroll', - ReactBrowserEventEmitter.ReactEventListener.WINDOW_HANDLE - ) - : 'topFocus' === dependency || 'topBlur' === dependency - ? (isEventSupported('focus', !0) - ? (ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent( - 'topFocus', - 'focus', - mountAt - ), - ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent( - 'topBlur', - 'blur', - mountAt - )) - : isEventSupported('focusin') && - (ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent( - 'topFocus', - 'focusin', - mountAt - ), - ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent( - 'topBlur', - 'focusout', - mountAt - )), - (isListening.topBlur = !0), - (isListening.topFocus = !0)) - : topEventMapping.hasOwnProperty(dependency) && - ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent( - dependency, - topEventMapping[dependency], - mountAt - ), - (isListening[dependency] = !0)); - } - }, - trapBubbledEvent: function(topLevelType, handlerBaseName, handle) { - return ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent( - topLevelType, - handlerBaseName, - handle - ); - }, - trapCapturedEvent: function(topLevelType, handlerBaseName, handle) { - return ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent( - topLevelType, - handlerBaseName, - handle - ); - }, - supportsEventPageXY: function() { - if (!document.createEvent) return !1; - var ev = document.createEvent('MouseEvent'); - return null != ev && 'pageX' in ev; - }, - ensureScrollValueMonitoring: function() { - if ( - (void 0 === hasEventPageXY && - (hasEventPageXY = ReactBrowserEventEmitter.supportsEventPageXY()), - !hasEventPageXY && !isMonitoringScrollValue) - ) { - var refresh = ViewportMetrics.refreshScrollValues; - ReactBrowserEventEmitter.ReactEventListener.monitorScrollValue(refresh), - (isMonitoringScrollValue = !0); - } - } - }); - module.exports = ReactBrowserEventEmitter; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__stripIndentTransformer__ = __webpack_require__(899); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__stripIndentTransformer__.a; - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _manager = __webpack_require__(523); - Object.defineProperty(exports, 'register', { - enumerable: !0, - get: function get() { - return _manager.register; - } - }); - var _preview = __webpack_require__(588); - Object.defineProperty(exports, 'action', { - enumerable: !0, - get: function get() { - return _preview.action; - } - }), - Object.defineProperty(exports, 'decorateAction', { - enumerable: !0, - get: function get() { - return _preview.decorateAction; - } - }); - var ADDON_ID = (exports.ADDON_ID = 'storybook/actions'); - (exports.PANEL_ID = ADDON_ID + '/actions-panel'), - (exports.EVENT_ID = ADDON_ID + '/action-event'); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.reviver = exports.retrocycle = exports.decycle = exports.CYCLIC_KEY = void 0); - var _decycle3 = _interopRequireDefault(__webpack_require__(525)), - _retrocycle3 = _interopRequireDefault(__webpack_require__(566)), - _reviver3 = _interopRequireDefault(__webpack_require__(261)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - exports.CYCLIC_KEY = '$___storybook.isCyclic'; - (exports.decycle = _decycle3.default), - (exports.retrocycle = _retrocycle3.default), - (exports.reviver = _reviver3.default); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _createStyles2 = _interopRequireDefault(__webpack_require__(44)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ObjectName = function ObjectName(_ref, _ref2) { - var name = _ref.name, - dimmed = _ref.dimmed, - styles = _ref.styles, - theme = _ref2.theme, - themeStyles = (0, _createStyles2.default)('ObjectName', theme), - appliedStyles = (0, _extends3.default)( - {}, - themeStyles.base, - dimmed ? themeStyles.dimmed : {}, - styles - ); - return _react2.default.createElement('span', { style: appliedStyles }, name); - }; - (ObjectName.propTypes = { name: _propTypes2.default.string, dimmed: _propTypes2.default.bool }), - (ObjectName.defaultProps = { dimmed: !1 }), - (ObjectName.contextTypes = { - theme: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.object - ]) - }), - (exports.default = ObjectName); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _typeof3 = _interopRequireDefault(__webpack_require__(21)), - _extends3 = _interopRequireDefault(__webpack_require__(8)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _createStyles2 = _interopRequireDefault(__webpack_require__(44)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ObjectValue = function ObjectValue(_ref, _ref2) { - var object = _ref.object, - styles = _ref.styles, - theme = _ref2.theme, - themeStyles = (0, _createStyles2.default)('ObjectValue', theme), - mkStyle = function mkStyle(key) { - return (0, _extends3.default)({}, themeStyles[key], styles); - }; - switch (void 0 === object ? 'undefined' : (0, _typeof3.default)(object)) { - case 'number': - return _react2.default.createElement( - 'span', - { style: mkStyle('objectValueNumber') }, - String(object) - ); - case 'string': - return _react2.default.createElement( - 'span', - { style: mkStyle('objectValueString') }, - '"', - object, - '"' - ); - case 'boolean': - return _react2.default.createElement( - 'span', - { style: mkStyle('objectValueBoolean') }, - String(object) - ); - case 'undefined': - return _react2.default.createElement( - 'span', - { style: mkStyle('objectValueUndefined') }, - 'undefined' - ); - case 'object': - return null === object - ? _react2.default.createElement('span', { style: mkStyle('objectValueNull') }, 'null') - : object instanceof Date - ? _react2.default.createElement('span', null, object.toString()) - : object instanceof RegExp - ? _react2.default.createElement( - 'span', - { style: mkStyle('objectValueRegExp') }, - object.toString() - ) - : Array.isArray(object) - ? _react2.default.createElement('span', null, 'Array[' + object.length + ']') - : _react2.default.createElement('span', null, object.constructor.name); - case 'function': - return _react2.default.createElement( - 'span', - null, - _react2.default.createElement( - 'span', - { style: mkStyle('objectValueFunctionKeyword') }, - 'function' - ), - _react2.default.createElement( - 'span', - { style: mkStyle('objectValueFunctionName') }, - ' ', - object.name, - '()' - ) - ); - case 'symbol': - return _react2.default.createElement( - 'span', - { style: mkStyle('objectValueSymbol') }, - object.toString() - ); - default: - return _react2.default.createElement('span', null); - } - }; - (ObjectValue.propTypes = { object: _propTypes2.default.any }), - (ObjectValue.contextTypes = { - theme: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.object - ]) - }), - (exports.default = ObjectValue); - }, - , - , - , - , - , - , - function(module, exports, __webpack_require__) { - var $export = __webpack_require__(16), - core = __webpack_require__(10), - fails = __webpack_require__(43); - module.exports = function(KEY, exec) { - var fn = (core.Object || {})[KEY] || Object[KEY], - exp = {}; - (exp[KEY] = exec(fn)), - $export( - $export.S + - $export.F * - fails(function() { - fn(1); - }), - 'Object', - exp - ); - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(399), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - var anObject = __webpack_require__(24), - dPs = __webpack_require__(276), - enumBugKeys = __webpack_require__(142), - IE_PROTO = __webpack_require__(140)('IE_PROTO'), - Empty = function() {}, - createDict = function() { - var iframeDocument, - iframe = __webpack_require__(143)('iframe'), - i = enumBugKeys.length; - for ( - iframe.style.display = 'none', - __webpack_require__(220).appendChild(iframe), - iframe.src = 'javascript:', - (iframeDocument = iframe.contentWindow.document).open(), - iframeDocument.write(''), - iframeDocument.close(), - createDict = iframeDocument.F; - i--; - - ) - delete createDict.prototype[enumBugKeys[i]]; - return createDict(); - }; - module.exports = - Object.create || - function create(O, Properties) { - var result; - return ( - null !== O - ? ((Empty.prototype = anObject(O)), - (result = new Empty()), - (Empty.prototype = null), - (result[IE_PROTO] = O)) - : (result = createDict()), - void 0 === Properties ? result : dPs(result, Properties) - ); - }; - }, - function(module, exports) {}, - function(module, exports) { - module.exports = function(module) { - return ( - module.webpackPolyfill || - ((module.deprecate = function() {}), - (module.paths = []), - module.children || (module.children = []), - Object.defineProperty(module, 'loaded', { - enumerable: !0, - get: function() { - return module.l; - } - }), - Object.defineProperty(module, 'id', { - enumerable: !0, - get: function() { - return module.i; - } - }), - (module.webpackPolyfill = 1)), - module - ); - }; - }, - function(module, exports, __webpack_require__) { - var cof = __webpack_require__(73), - TAG = __webpack_require__(18)('toStringTag'), - ARG = - 'Arguments' == - cof( - (function() { - return arguments; - })() - ); - module.exports = function(it) { - var O, T, B; - return void 0 === it - ? 'Undefined' - : null === it - ? 'Null' - : 'string' == - typeof (T = (function(it, key) { - try { - return it[key]; - } catch (e) {} - })((O = Object(it)), TAG)) - ? T - : ARG - ? cof(O) - : 'Object' == (B = cof(O)) && 'function' == typeof O.callee ? 'Arguments' : B; - }; - }, - function(module, exports) { - module.exports = function(it, Constructor, name, forbiddenField) { - if (!(it instanceof Constructor) || (void 0 !== forbiddenField && forbiddenField in it)) - throw TypeError(name + ': incorrect invocation!'); - return it; - }; - }, - function(module, exports, __webpack_require__) { - var hide = __webpack_require__(42); - module.exports = function(target, src, safe) { - for (var key in src) - safe && target[key] ? (target[key] = src[key]) : hide(target, key, src[key]); - return target; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = __webpack_require__(440); - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(526), __esModule: !0 }; - }, - , - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(68); - module.exports = function(it, S) { - if (!isObject(it)) return it; - var fn, val; - if (S && 'function' == typeof (fn = it.toString) && !isObject((val = fn.call(it)))) - return val; - if ('function' == typeof (fn = it.valueOf) && !isObject((val = fn.call(it)))) return val; - if (!S && 'function' == typeof (fn = it.toString) && !isObject((val = fn.call(it)))) - return val; - throw TypeError("Can't convert object to primitive value"); - }; - }, - function(module, exports, __webpack_require__) { - var global = __webpack_require__(36), - store = global['__core-js_shared__'] || (global['__core-js_shared__'] = {}); - module.exports = function(key) { - return store[key] || (store[key] = {}); - }; - }, - function(module, exports, __webpack_require__) { - var def = __webpack_require__(53).f, - has = __webpack_require__(37), - TAG = __webpack_require__(38)('toStringTag'); - module.exports = function(it, tag, stat) { - it && - !has((it = stat ? it : it.prototype), TAG) && - def(it, TAG, { configurable: !0, value: tag }); - }; - }, - function(module, exports) { - module.exports = !1; - }, - function(module, exports, __webpack_require__) { - var $keys = __webpack_require__(194), - enumBugKeys = __webpack_require__(132); - module.exports = - Object.keys || - function keys(O) { - return $keys(O, enumBugKeys); - }; - }, - function(module, exports) { - var toString = {}.toString; - module.exports = function(it) { - return toString.call(it).slice(8, -1); - }; - }, - function(module, exports, __webpack_require__) { - var shared = __webpack_require__(126)('keys'), - uid = __webpack_require__(69); - module.exports = function(key) { - return shared[key] || (shared[key] = uid(key)); - }; - }, - function(module, exports) { - module.exports = 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split( - ',' - ); - }, - function(module, exports) { - exports.f = {}.propertyIsEnumerable; - }, - function(module, exports) { - var cachedSetTimeout, - cachedClearTimeout, - process = (module.exports = {}); - function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); - } - function defaultClearTimeout() { - throw new Error('clearTimeout has not been defined'); - } - function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) return setTimeout(fun, 0); - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) - return (cachedSetTimeout = setTimeout), setTimeout(fun, 0); - try { - return cachedSetTimeout(fun, 0); - } catch (e) { - try { - return cachedSetTimeout.call(null, fun, 0); - } catch (e) { - return cachedSetTimeout.call(this, fun, 0); - } - } - } - !(function() { - try { - cachedSetTimeout = 'function' == typeof setTimeout ? setTimeout : defaultSetTimout; - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - cachedClearTimeout = 'function' == typeof clearTimeout ? clearTimeout : defaultClearTimeout; - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } - })(); - var currentQueue, - queue = [], - draining = !1, - queueIndex = -1; - function cleanUpNextTick() { - draining && - currentQueue && - ((draining = !1), - currentQueue.length ? (queue = currentQueue.concat(queue)) : (queueIndex = -1), - queue.length && drainQueue()); - } - function drainQueue() { - if (!draining) { - var timeout = runTimeout(cleanUpNextTick); - draining = !0; - for (var len = queue.length; len; ) { - for (currentQueue = queue, queue = []; ++queueIndex < len; ) - currentQueue && currentQueue[queueIndex].run(); - (queueIndex = -1), (len = queue.length); - } - (currentQueue = null), - (draining = !1), - (function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) return clearTimeout(marker); - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) - return (cachedClearTimeout = clearTimeout), clearTimeout(marker); - try { - return cachedClearTimeout(marker); - } catch (e) { - try { - return cachedClearTimeout.call(null, marker); - } catch (e) { - return cachedClearTimeout.call(this, marker); - } - } - })(timeout); - } - } - function Item(fun, array) { - (this.fun = fun), (this.array = array); - } - function noop() {} - (process.nextTick = function(fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) - for (var i = 1; i < arguments.length; i++) args[i - 1] = arguments[i]; - queue.push(new Item(fun, args)), 1 !== queue.length || draining || runTimeout(drainQueue); - }), - (Item.prototype.run = function() { - this.fun.apply(null, this.array); - }), - (process.title = 'browser'), - (process.browser = !0), - (process.env = {}), - (process.argv = []), - (process.version = ''), - (process.versions = {}), - (process.on = noop), - (process.addListener = noop), - (process.once = noop), - (process.off = noop), - (process.removeListener = noop), - (process.removeAllListeners = noop), - (process.emit = noop), - (process.prependListener = noop), - (process.prependOnceListener = noop), - (process.listeners = function(name) { - return []; - }), - (process.binding = function(name) { - throw new Error('process.binding is not supported'); - }), - (process.cwd = function() { - return '/'; - }), - (process.chdir = function(dir) { - throw new Error('process.chdir is not supported'); - }), - (process.umask = function() { - return 0; - }); - }, - function(module, exports) { - var has = Object.prototype.hasOwnProperty; - module.exports = function assign(target, source) { - if (Object.assign) return Object.assign(target, source); - for (var key in source) has.call(source, key) && (target[key] = source[key]); - return target; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function requirePromise() { - if ('function' != typeof Promise) - throw new TypeError( - '`Promise.prototype.finally` requires a global `Promise` be available.' - ); - }; - }, - function(module, exports) { - module.exports = function(it) { - if (void 0 == it) throw TypeError("Can't call method on " + it); - return it; - }; - }, - function(module, exports, __webpack_require__) { - var cof = __webpack_require__(73); - module.exports = Object('z').propertyIsEnumerable(0) - ? Object - : function(it) { - return 'String' == cof(it) ? it.split('') : Object(it); - }; - }, - function(module, exports) { - var ceil = Math.ceil, - floor = Math.floor; - module.exports = function(it) { - return isNaN((it = +it)) ? 0 : (it > 0 ? floor : ceil)(it); - }; - }, - function(module, exports, __webpack_require__) { - var shared = __webpack_require__(141)('keys'), - uid = __webpack_require__(95); - module.exports = function(key) { - return shared[key] || (shared[key] = uid(key)); - }; - }, - function(module, exports, __webpack_require__) { - var global = __webpack_require__(17), - store = global['__core-js_shared__'] || (global['__core-js_shared__'] = {}); - module.exports = function(key) { - return store[key] || (store[key] = {}); - }; - }, - function(module, exports) { - module.exports = 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split( - ',' - ); - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(20), - document = __webpack_require__(17).document, - is = isObject(document) && isObject(document.createElement); - module.exports = function(it) { - return is ? document.createElement(it) : {}; - }; - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(20); - module.exports = function(it, S) { - if (!isObject(it)) return it; - var fn, val; - if (S && 'function' == typeof (fn = it.toString) && !isObject((val = fn.call(it)))) - return val; - if ('function' == typeof (fn = it.valueOf) && !isObject((val = fn.call(it)))) return val; - if (!S && 'function' == typeof (fn = it.toString) && !isObject((val = fn.call(it)))) - return val; - throw TypeError("Can't convert object to primitive value"); - }; - }, - function(module, exports) { - exports.f = Object.getOwnPropertySymbols; - }, - function(module, exports, __webpack_require__) { - var pSlice = Array.prototype.slice, - objectKeys = __webpack_require__(404), - isArguments = __webpack_require__(405), - deepEqual = (module.exports = function(actual, expected, opts) { - return ( - opts || (opts = {}), - actual === expected || - (actual instanceof Date && expected instanceof Date - ? actual.getTime() === expected.getTime() - : !actual || !expected || ('object' != typeof actual && 'object' != typeof expected) - ? opts.strict ? actual === expected : actual == expected - : (function objEquiv(a, b, opts) { - var i, key; - if (isUndefinedOrNull(a) || isUndefinedOrNull(b)) return !1; - if (a.prototype !== b.prototype) return !1; - if (isArguments(a)) - return ( - !!isArguments(b) && - ((a = pSlice.call(a)), (b = pSlice.call(b)), deepEqual(a, b, opts)) - ); - if (isBuffer(a)) { - if (!isBuffer(b)) return !1; - if (a.length !== b.length) return !1; - for (i = 0; i < a.length; i++) if (a[i] !== b[i]) return !1; - return !0; - } - try { - var ka = objectKeys(a), - kb = objectKeys(b); - } catch (e) { - return !1; - } - if (ka.length != kb.length) return !1; - for (ka.sort(), kb.sort(), i = ka.length - 1; i >= 0; i--) - if (ka[i] != kb[i]) return !1; - for (i = ka.length - 1; i >= 0; i--) - if (((key = ka[i]), !deepEqual(a[key], b[key], opts))) return !1; - return typeof a == typeof b; - })(actual, expected, opts)) - ); - }); - function isUndefinedOrNull(value) { - return null === value || void 0 === value; - } - function isBuffer(x) { - return ( - !(!x || 'object' != typeof x || 'number' != typeof x.length) && - ('function' == typeof x.copy && - 'function' == typeof x.slice && - !(x.length > 0 && 'number' != typeof x[0])) - ); - } - }, - function(module, exports, __webpack_require__) { - module.exports = __webpack_require__(42); - }, - function(module, exports, __webpack_require__) { - exports.f = __webpack_require__(18); - }, - function(module, exports, __webpack_require__) { - var global = __webpack_require__(17), - core = __webpack_require__(10), - LIBRARY = __webpack_require__(97), - wksExt = __webpack_require__(148), - defineProperty = __webpack_require__(26).f; - module.exports = function(name) { - var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); - '_' == name.charAt(0) || - name in $Symbol || - defineProperty($Symbol, name, { value: wksExt.f(name) }); - }; - }, - function(module, exports, __webpack_require__) { - var pIE = __webpack_require__(96), - createDesc = __webpack_require__(75), - toIObject = __webpack_require__(46), - toPrimitive = __webpack_require__(144), - has = __webpack_require__(41), - IE8_DOM_DEFINE = __webpack_require__(217), - gOPD = Object.getOwnPropertyDescriptor; - exports.f = __webpack_require__(29) - ? gOPD - : function getOwnPropertyDescriptor(O, P) { - if (((O = toIObject(O)), (P = toPrimitive(P, !0)), IE8_DOM_DEFINE)) - try { - return gOPD(O, P); - } catch (e) {} - if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); - }; - }, - function(module, exports, __webpack_require__) { - var classof = __webpack_require__(119), - ITERATOR = __webpack_require__(18)('iterator'), - Iterators = __webpack_require__(59); - module.exports = __webpack_require__(10).getIteratorMethod = function(it) { - if (void 0 != it) return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)]; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var aFunction = __webpack_require__(74); - module.exports.f = function(C) { - return new function PromiseCapability(C) { - var resolve, reject; - (this.promise = new C(function($$resolve, $$reject) { - if (void 0 !== resolve || void 0 !== reject) throw TypeError('Bad Promise constructor'); - (resolve = $$resolve), (reject = $$reject); - })), - (this.resolve = aFunction(resolve)), - (this.reject = aFunction(reject)); - }(C); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - eventPluginOrder = (__webpack_require__(3), null), - namesToPlugins = {}; - function recomputePluginOrdering() { - if (eventPluginOrder) - for (var pluginName in namesToPlugins) { - var pluginModule = namesToPlugins[pluginName], - pluginIndex = eventPluginOrder.indexOf(pluginName); - if ( - (pluginIndex > -1 || _prodInvariant('96', pluginName), - !EventPluginRegistry.plugins[pluginIndex]) - ) { - pluginModule.extractEvents || _prodInvariant('97', pluginName), - (EventPluginRegistry.plugins[pluginIndex] = pluginModule); - var publishedEvents = pluginModule.eventTypes; - for (var eventName in publishedEvents) - publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) || - _prodInvariant('98', eventName, pluginName); - } - } - } - function publishEventForPlugin(dispatchConfig, pluginModule, eventName) { - EventPluginRegistry.eventNameDispatchConfigs.hasOwnProperty(eventName) && - _prodInvariant('99', eventName), - (EventPluginRegistry.eventNameDispatchConfigs[eventName] = dispatchConfig); - var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; - if (phasedRegistrationNames) { - for (var phaseName in phasedRegistrationNames) { - if (phasedRegistrationNames.hasOwnProperty(phaseName)) - publishRegistrationName(phasedRegistrationNames[phaseName], pluginModule, eventName); - } - return !0; - } - return ( - !!dispatchConfig.registrationName && - (publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName), !0) - ); - } - function publishRegistrationName(registrationName, pluginModule, eventName) { - EventPluginRegistry.registrationNameModules[registrationName] && - _prodInvariant('100', registrationName), - (EventPluginRegistry.registrationNameModules[registrationName] = pluginModule), - (EventPluginRegistry.registrationNameDependencies[registrationName] = - pluginModule.eventTypes[eventName].dependencies); - } - var EventPluginRegistry = { - plugins: [], - eventNameDispatchConfigs: {}, - registrationNameModules: {}, - registrationNameDependencies: {}, - possibleRegistrationNames: null, - injectEventPluginOrder: function(injectedEventPluginOrder) { - eventPluginOrder && _prodInvariant('101'), - (eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder)), - recomputePluginOrdering(); - }, - injectEventPluginsByName: function(injectedNamesToPlugins) { - var isOrderingDirty = !1; - for (var pluginName in injectedNamesToPlugins) - if (injectedNamesToPlugins.hasOwnProperty(pluginName)) { - var pluginModule = injectedNamesToPlugins[pluginName]; - (namesToPlugins.hasOwnProperty(pluginName) && - namesToPlugins[pluginName] === pluginModule) || - (namesToPlugins[pluginName] && _prodInvariant('102', pluginName), - (namesToPlugins[pluginName] = pluginModule), - (isOrderingDirty = !0)); - } - isOrderingDirty && recomputePluginOrdering(); - }, - getPluginModuleForEvent: function(event) { - var dispatchConfig = event.dispatchConfig; - if (dispatchConfig.registrationName) - return ( - EventPluginRegistry.registrationNameModules[dispatchConfig.registrationName] || null - ); - if (void 0 !== dispatchConfig.phasedRegistrationNames) { - var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; - for (var phase in phasedRegistrationNames) - if (phasedRegistrationNames.hasOwnProperty(phase)) { - var pluginModule = - EventPluginRegistry.registrationNameModules[phasedRegistrationNames[phase]]; - if (pluginModule) return pluginModule; - } - } - return null; - }, - _resetEventPlugins: function() { - eventPluginOrder = null; - for (var pluginName in namesToPlugins) - namesToPlugins.hasOwnProperty(pluginName) && delete namesToPlugins[pluginName]; - EventPluginRegistry.plugins.length = 0; - var eventNameDispatchConfigs = EventPluginRegistry.eventNameDispatchConfigs; - for (var eventName in eventNameDispatchConfigs) - eventNameDispatchConfigs.hasOwnProperty(eventName) && - delete eventNameDispatchConfigs[eventName]; - var registrationNameModules = EventPluginRegistry.registrationNameModules; - for (var registrationName in registrationNameModules) - registrationNameModules.hasOwnProperty(registrationName) && - delete registrationNameModules[registrationName]; - } - }; - module.exports = EventPluginRegistry; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ComponentTree, - TreeTraversal, - _prodInvariant = __webpack_require__(7), - ReactErrorUtils = __webpack_require__(155); - __webpack_require__(3), __webpack_require__(6); - function executeDispatch(event, simulated, listener, inst) { - var type = event.type || 'unknown-event'; - (event.currentTarget = EventPluginUtils.getNodeFromInstance(inst)), - simulated - ? ReactErrorUtils.invokeGuardedCallbackWithCatch(type, listener, event) - : ReactErrorUtils.invokeGuardedCallback(type, listener, event), - (event.currentTarget = null); - } - var EventPluginUtils = { - isEndish: function isEndish(topLevelType) { - return ( - 'topMouseUp' === topLevelType || - 'topTouchEnd' === topLevelType || - 'topTouchCancel' === topLevelType - ); - }, - isMoveish: function isMoveish(topLevelType) { - return 'topMouseMove' === topLevelType || 'topTouchMove' === topLevelType; - }, - isStartish: function isStartish(topLevelType) { - return 'topMouseDown' === topLevelType || 'topTouchStart' === topLevelType; - }, - executeDirectDispatch: function executeDirectDispatch(event) { - var dispatchListener = event._dispatchListeners, - dispatchInstance = event._dispatchInstances; - Array.isArray(dispatchListener) && _prodInvariant('103'), - (event.currentTarget = dispatchListener - ? EventPluginUtils.getNodeFromInstance(dispatchInstance) - : null); - var res = dispatchListener ? dispatchListener(event) : null; - return ( - (event.currentTarget = null), - (event._dispatchListeners = null), - (event._dispatchInstances = null), - res - ); - }, - executeDispatchesInOrder: function executeDispatchesInOrder(event, simulated) { - var dispatchListeners = event._dispatchListeners, - dispatchInstances = event._dispatchInstances; - if (Array.isArray(dispatchListeners)) - for (var i = 0; i < dispatchListeners.length && !event.isPropagationStopped(); i++) - executeDispatch(event, simulated, dispatchListeners[i], dispatchInstances[i]); - else - dispatchListeners && - executeDispatch(event, simulated, dispatchListeners, dispatchInstances); - (event._dispatchListeners = null), (event._dispatchInstances = null); - }, - executeDispatchesInOrderStopAtTrue: function executeDispatchesInOrderStopAtTrue(event) { - var ret = (function executeDispatchesInOrderStopAtTrueImpl(event) { - var dispatchListeners = event._dispatchListeners, - dispatchInstances = event._dispatchInstances; - if (Array.isArray(dispatchListeners)) { - for (var i = 0; i < dispatchListeners.length && !event.isPropagationStopped(); i++) - if (dispatchListeners[i](event, dispatchInstances[i])) return dispatchInstances[i]; - } else if (dispatchListeners && dispatchListeners(event, dispatchInstances)) - return dispatchInstances; - return null; - })(event); - return (event._dispatchInstances = null), (event._dispatchListeners = null), ret; - }, - hasDispatches: function hasDispatches(event) { - return !!event._dispatchListeners; - }, - getInstanceFromNode: function(node) { - return ComponentTree.getInstanceFromNode(node); - }, - getNodeFromInstance: function(node) { - return ComponentTree.getNodeFromInstance(node); - }, - isAncestor: function(a, b) { - return TreeTraversal.isAncestor(a, b); - }, - getLowestCommonAncestor: function(a, b) { - return TreeTraversal.getLowestCommonAncestor(a, b); - }, - getParentInstance: function(inst) { - return TreeTraversal.getParentInstance(inst); - }, - traverseTwoPhase: function(target, fn, arg) { - return TreeTraversal.traverseTwoPhase(target, fn, arg); - }, - traverseEnterLeave: function(from, to, fn, argFrom, argTo) { - return TreeTraversal.traverseEnterLeave(from, to, fn, argFrom, argTo); - }, - injection: { - injectComponentTree: function(Injected) { - ComponentTree = Injected; - }, - injectTreeTraversal: function(Injected) { - TreeTraversal = Injected; - } - } - }; - module.exports = EventPluginUtils; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var caughtError = null; - function invokeGuardedCallback(name, func, a) { - try { - func(a); - } catch (x) { - null === caughtError && (caughtError = x); - } - } - var ReactErrorUtils = { - invokeGuardedCallback: invokeGuardedCallback, - invokeGuardedCallbackWithCatch: invokeGuardedCallback, - rethrowCaughtError: function() { - if (caughtError) { - var error = caughtError; - throw ((caughtError = null), error); - } - } - }; - module.exports = ReactErrorUtils; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function getEventTarget(nativeEvent) { - var target = nativeEvent.target || nativeEvent.srcElement || window; - return ( - target.correspondingUseElement && (target = target.correspondingUseElement), - 3 === target.nodeType ? target.parentNode : target - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var useHasFeature, - ExecutionEnvironment = __webpack_require__(19); - ExecutionEnvironment.canUseDOM && - (useHasFeature = - document.implementation && - document.implementation.hasFeature && - !0 !== document.implementation.hasFeature('', '')), - (module.exports = function isEventSupported(eventNameSuffix, capture) { - if (!ExecutionEnvironment.canUseDOM || (capture && !('addEventListener' in document))) - return !1; - var eventName = 'on' + eventNameSuffix, - isSupported = eventName in document; - if (!isSupported) { - var element = document.createElement('div'); - element.setAttribute(eventName, 'return;'), - (isSupported = 'function' == typeof element[eventName]); - } - return ( - !isSupported && - useHasFeature && - 'wheel' === eventNameSuffix && - (isSupported = document.implementation.hasFeature('Events.wheel', '3.0')), - isSupported - ); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var modifierKeyToProp = { - Alt: 'altKey', - Control: 'ctrlKey', - Meta: 'metaKey', - Shift: 'shiftKey' - }; - function modifierStateGetter(keyArg) { - var nativeEvent = this.nativeEvent; - if (nativeEvent.getModifierState) return nativeEvent.getModifierState(keyArg); - var keyProp = modifierKeyToProp[keyArg]; - return !!keyProp && !!nativeEvent[keyProp]; - } - module.exports = function getEventModifierState(nativeEvent) { - return modifierStateGetter; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var DOMLazyTree = __webpack_require__(62), - Danger = __webpack_require__(454), - createMicrosoftUnsafeLocalFunction = (__webpack_require__(13), - __webpack_require__(25), - __webpack_require__(161)), - setInnerHTML = __webpack_require__(100), - setTextContent = __webpack_require__(243); - function getNodeAfter(parentNode, node) { - return ( - Array.isArray(node) && (node = node[1]), node ? node.nextSibling : parentNode.firstChild - ); - } - var insertChildAt = createMicrosoftUnsafeLocalFunction(function( - parentNode, - childNode, - referenceNode - ) { - parentNode.insertBefore(childNode, referenceNode); - }); - function insertLazyTreeChildAt(parentNode, childTree, referenceNode) { - DOMLazyTree.insertTreeBefore(parentNode, childTree, referenceNode); - } - function moveChild(parentNode, childNode, referenceNode) { - Array.isArray(childNode) - ? (function moveDelimitedText(parentNode, openingComment, closingComment, referenceNode) { - var node = openingComment; - for (;;) { - var nextNode = node.nextSibling; - if ((insertChildAt(parentNode, node, referenceNode), node === closingComment)) break; - node = nextNode; - } - })(parentNode, childNode[0], childNode[1], referenceNode) - : insertChildAt(parentNode, childNode, referenceNode); - } - function removeChild(parentNode, childNode) { - if (Array.isArray(childNode)) { - var closingComment = childNode[1]; - removeDelimitedText(parentNode, (childNode = childNode[0]), closingComment), - parentNode.removeChild(closingComment); - } - parentNode.removeChild(childNode); - } - function removeDelimitedText(parentNode, startNode, closingComment) { - for (;;) { - var node = startNode.nextSibling; - if (node === closingComment) break; - parentNode.removeChild(node); - } - } - var dangerouslyReplaceNodeWithMarkup = Danger.dangerouslyReplaceNodeWithMarkup; - var DOMChildrenOperations = { - dangerouslyReplaceNodeWithMarkup: dangerouslyReplaceNodeWithMarkup, - replaceDelimitedText: function replaceDelimitedText( - openingComment, - closingComment, - stringText - ) { - var parentNode = openingComment.parentNode, - nodeAfterComment = openingComment.nextSibling; - nodeAfterComment === closingComment - ? stringText && - insertChildAt(parentNode, document.createTextNode(stringText), nodeAfterComment) - : stringText - ? (setTextContent(nodeAfterComment, stringText), - removeDelimitedText(parentNode, nodeAfterComment, closingComment)) - : removeDelimitedText(parentNode, openingComment, closingComment); - }, - processUpdates: function(parentNode, updates) { - for (var k = 0; k < updates.length; k++) { - var update = updates[k]; - switch (update.type) { - case 'INSERT_MARKUP': - insertLazyTreeChildAt( - parentNode, - update.content, - getNodeAfter(parentNode, update.afterNode) - ); - break; - case 'MOVE_EXISTING': - moveChild(parentNode, update.fromNode, getNodeAfter(parentNode, update.afterNode)); - break; - case 'SET_MARKUP': - setInnerHTML(parentNode, update.content); - break; - case 'TEXT_CONTENT': - setTextContent(parentNode, update.content); - break; - case 'REMOVE_NODE': - removeChild(parentNode, update.fromNode); - } - } - } - }; - module.exports = DOMChildrenOperations; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = { - html: 'http://www.w3.org/1999/xhtml', - mathml: 'http://www.w3.org/1998/Math/MathML', - svg: 'http://www.w3.org/2000/svg' - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function(func) { - return 'undefined' != typeof MSApp && MSApp.execUnsafeLocalFunction - ? function(arg0, arg1, arg2, arg3) { - MSApp.execUnsafeLocalFunction(function() { - return func(arg0, arg1, arg2, arg3); - }); - } - : func; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - ReactPropTypesSecret = __webpack_require__(469), - PropTypes = __webpack_require__(214)(__webpack_require__(56).isValidElement), - hasReadOnlyValue = (__webpack_require__(3), - __webpack_require__(6), - { button: !0, checkbox: !0, image: !0, hidden: !0, radio: !0, reset: !0, submit: !0 }); - function _assertSingleLink(inputProps) { - null != inputProps.checkedLink && null != inputProps.valueLink && _prodInvariant('87'); - } - function _assertValueLink(inputProps) { - _assertSingleLink(inputProps), - (null != inputProps.value || null != inputProps.onChange) && _prodInvariant('88'); - } - function _assertCheckedLink(inputProps) { - _assertSingleLink(inputProps), - (null != inputProps.checked || null != inputProps.onChange) && _prodInvariant('89'); - } - var propTypes = { - value: function(props, propName, componentName) { - return !props[propName] || - hasReadOnlyValue[props.type] || - props.onChange || - props.readOnly || - props.disabled - ? null - : new Error( - 'You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.' - ); - }, - checked: function(props, propName, componentName) { - return !props[propName] || props.onChange || props.readOnly || props.disabled - ? null - : new Error( - 'You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.' - ); - }, - onChange: PropTypes.func - }, - loggedTypeFailures = {}; - function getDeclarationErrorAddendum(owner) { - if (owner) { - var name = owner.getName(); - if (name) return ' Check the render method of `' + name + '`.'; - } - return ''; - } - var LinkedValueUtils = { - checkPropTypes: function(tagName, props, owner) { - for (var propName in propTypes) { - if (propTypes.hasOwnProperty(propName)) - var error = propTypes[propName]( - props, - propName, - tagName, - 'prop', - null, - ReactPropTypesSecret - ); - if (error instanceof Error && !(error.message in loggedTypeFailures)) { - loggedTypeFailures[error.message] = !0; - getDeclarationErrorAddendum(owner); - } - } - }, - getValue: function(inputProps) { - return inputProps.valueLink - ? (_assertValueLink(inputProps), inputProps.valueLink.value) - : inputProps.value; - }, - getChecked: function(inputProps) { - return inputProps.checkedLink - ? (_assertCheckedLink(inputProps), inputProps.checkedLink.value) - : inputProps.checked; - }, - executeOnChange: function(inputProps, event) { - return inputProps.valueLink - ? (_assertValueLink(inputProps), inputProps.valueLink.requestChange(event.target.value)) - : inputProps.checkedLink - ? (_assertCheckedLink(inputProps), - inputProps.checkedLink.requestChange(event.target.checked)) - : inputProps.onChange ? inputProps.onChange.call(void 0, event) : void 0; - } - }; - module.exports = LinkedValueUtils; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - injected = (__webpack_require__(3), !1), - ReactComponentEnvironment = { - replaceNodeWithMarkup: null, - processChildrenUpdates: null, - injection: { - injectEnvironment: function(environment) { - injected && _prodInvariant('104'), - (ReactComponentEnvironment.replaceNodeWithMarkup = environment.replaceNodeWithMarkup), - (ReactComponentEnvironment.processChildrenUpdates = - environment.processChildrenUpdates), - (injected = !0); - } - } - }; - module.exports = ReactComponentEnvironment; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var hasOwnProperty = Object.prototype.hasOwnProperty; - function is(x, y) { - return x === y ? 0 !== x || 0 !== y || 1 / x == 1 / y : x != x && y != y; - } - module.exports = function shallowEqual(objA, objB) { - if (is(objA, objB)) return !0; - if ('object' != typeof objA || null === objA || 'object' != typeof objB || null === objB) - return !1; - var keysA = Object.keys(objA), - keysB = Object.keys(objB); - if (keysA.length !== keysB.length) return !1; - for (var i = 0; i < keysA.length; i++) - if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) return !1; - return !0; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function shouldUpdateReactComponent(prevElement, nextElement) { - var prevEmpty = null === prevElement || !1 === prevElement, - nextEmpty = null === nextElement || !1 === nextElement; - if (prevEmpty || nextEmpty) return prevEmpty === nextEmpty; - var prevType = typeof prevElement, - nextType = typeof nextElement; - return 'string' === prevType || 'number' === prevType - ? 'string' === nextType || 'number' === nextType - : 'object' === nextType && - prevElement.type === nextElement.type && - prevElement.key === nextElement.key; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var KeyEscapeUtils = { - escape: function escape(key) { - var escaperLookup = { '=': '=0', ':': '=2' }; - return ( - '$' + - ('' + key).replace(/[=:]/g, function(match) { - return escaperLookup[match]; - }) - ); - }, - unescape: function unescape(key) { - var unescaperLookup = { '=0': '=', '=2': ':' }; - return ( - '' + ('.' === key[0] && '$' === key[1] ? key.substring(2) : key.substring(1)) - ).replace(/(=0|=2)/g, function(match) { - return unescaperLookup[match]; - }); - } - }; - module.exports = KeyEscapeUtils; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - ReactInstanceMap = (__webpack_require__(32), __webpack_require__(82)), - ReactUpdates = (__webpack_require__(25), __webpack_require__(30)); - __webpack_require__(3), __webpack_require__(6); - function enqueueUpdate(internalInstance) { - ReactUpdates.enqueueUpdate(internalInstance); - } - function formatUnexpectedArgument(arg) { - var type = typeof arg; - if ('object' !== type) return type; - var displayName = (arg.constructor && arg.constructor.name) || type, - keys = Object.keys(arg); - return keys.length > 0 && keys.length < 20 - ? displayName + ' (keys: ' + keys.join(', ') + ')' - : displayName; - } - function getInternalInstanceReadyForUpdate(publicInstance, callerName) { - var internalInstance = ReactInstanceMap.get(publicInstance); - return internalInstance || null; - } - var ReactUpdateQueue = { - isMounted: function(publicInstance) { - var internalInstance = ReactInstanceMap.get(publicInstance); - return !!internalInstance && !!internalInstance._renderedComponent; - }, - enqueueCallback: function(publicInstance, callback, callerName) { - ReactUpdateQueue.validateCallback(callback, callerName); - var internalInstance = getInternalInstanceReadyForUpdate(publicInstance); - if (!internalInstance) return null; - internalInstance._pendingCallbacks - ? internalInstance._pendingCallbacks.push(callback) - : (internalInstance._pendingCallbacks = [callback]), - enqueueUpdate(internalInstance); - }, - enqueueCallbackInternal: function(internalInstance, callback) { - internalInstance._pendingCallbacks - ? internalInstance._pendingCallbacks.push(callback) - : (internalInstance._pendingCallbacks = [callback]), - enqueueUpdate(internalInstance); - }, - enqueueForceUpdate: function(publicInstance) { - var internalInstance = getInternalInstanceReadyForUpdate(publicInstance); - internalInstance && - ((internalInstance._pendingForceUpdate = !0), enqueueUpdate(internalInstance)); - }, - enqueueReplaceState: function(publicInstance, completeState, callback) { - var internalInstance = getInternalInstanceReadyForUpdate(publicInstance); - internalInstance && - ((internalInstance._pendingStateQueue = [completeState]), - (internalInstance._pendingReplaceState = !0), - void 0 !== callback && - null !== callback && - (ReactUpdateQueue.validateCallback(callback, 'replaceState'), - internalInstance._pendingCallbacks - ? internalInstance._pendingCallbacks.push(callback) - : (internalInstance._pendingCallbacks = [callback])), - enqueueUpdate(internalInstance)); - }, - enqueueSetState: function(publicInstance, partialState) { - var internalInstance = getInternalInstanceReadyForUpdate(publicInstance); - internalInstance && - ((internalInstance._pendingStateQueue || (internalInstance._pendingStateQueue = [])).push( - partialState - ), - enqueueUpdate(internalInstance)); - }, - enqueueElementInternal: function(internalInstance, nextElement, nextContext) { - (internalInstance._pendingElement = nextElement), - (internalInstance._context = nextContext), - enqueueUpdate(internalInstance); - }, - validateCallback: function(callback, callerName) { - callback && - 'function' != typeof callback && - _prodInvariant('122', callerName, formatUnexpectedArgument(callback)); - } - }; - module.exports = ReactUpdateQueue; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(9); - var emptyFunction = __webpack_require__(22), - validateDOMNesting = (__webpack_require__(6), emptyFunction); - module.exports = validateDOMNesting; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function getEventCharCode(nativeEvent) { - var charCode, - keyCode = nativeEvent.keyCode; - return ( - 'charCode' in nativeEvent - ? 0 === (charCode = nativeEvent.charCode) && 13 === keyCode && (charCode = 13) - : (charCode = keyCode), - charCode >= 32 || 13 === charCode ? charCode : 0 - ); - }; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__replaceResultTransformer__ = __webpack_require__(900); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__replaceResultTransformer__.a; - }); - }, - function(module, exports, __webpack_require__) { - var ctx = __webpack_require__(35), - IObject = __webpack_require__(138), - toObject = __webpack_require__(58), - toLength = __webpack_require__(94), - asc = __webpack_require__(530); - module.exports = function(TYPE, $create) { - var IS_MAP = 1 == TYPE, - IS_FILTER = 2 == TYPE, - IS_SOME = 3 == TYPE, - IS_EVERY = 4 == TYPE, - IS_FIND_INDEX = 6 == TYPE, - NO_HOLES = 5 == TYPE || IS_FIND_INDEX, - create = $create || asc; - return function($this, callbackfn, that) { - for ( - var val, - res, - O = toObject($this), - self = IObject(O), - f = ctx(callbackfn, that, 3), - length = toLength(self.length), - index = 0, - result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : void 0; - length > index; - index++ - ) - if ((NO_HOLES || index in self) && ((res = f((val = self[index]), index, O)), TYPE)) - if (IS_MAP) result[index] = res; - else if (res) - switch (TYPE) { - case 3: - return !0; - case 5: - return val; - case 6: - return index; - case 2: - result.push(val); - } - else if (IS_EVERY) return !1; - return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; - }; - }; - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(20); - module.exports = function(it, TYPE) { - if (!isObject(it) || it._t !== TYPE) - throw TypeError('Incompatible receiver, ' + TYPE + ' required!'); - return it; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.types = exports.undefinedType = exports.symbolType = exports.regexpType = exports.nanType = exports.infinityType = exports.functionType = exports.dateType = exports.objectType = void 0); - var _object2 = _interopRequireDefault(__webpack_require__(545)), - _date2 = _interopRequireDefault(__webpack_require__(552)), - _function2 = _interopRequireDefault(__webpack_require__(553)), - _infinity2 = _interopRequireDefault(__webpack_require__(555)), - _nan2 = _interopRequireDefault(__webpack_require__(559)), - _regexp2 = _interopRequireDefault(__webpack_require__(560)), - _symbol2 = _interopRequireDefault(__webpack_require__(562)), - _undefined2 = _interopRequireDefault(__webpack_require__(564)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - (exports.objectType = _object2.default), - (exports.dateType = _date2.default), - (exports.functionType = _function2.default), - (exports.infinityType = _infinity2.default), - (exports.nanType = _nan2.default), - (exports.regexpType = _regexp2.default), - (exports.symbolType = _symbol2.default), - (exports.undefinedType = _undefined2.default); - exports.types = [ - _date2.default, - _function2.default, - _nan2.default, - _infinity2.default, - _regexp2.default, - _symbol2.default, - _undefined2.default - ]; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function createFunction() { - var name = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ''; - if (_canConfigureName2.default) { - var func = function unnamed() {}; - return Object.defineProperty(func, 'name', { value: name }), func; - } - return (0, _createFunctionEval2.default)(name); - }); - var _canConfigureName2 = _interopRequireDefault(__webpack_require__(260)), - _createFunctionEval2 = _interopRequireDefault(__webpack_require__(547)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _react = __webpack_require__(0), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ThemeProvider = (function(_Component) { - function ThemeProvider() { - return ( - (0, _classCallCheck3.default)(this, ThemeProvider), - (0, _possibleConstructorReturn3.default)( - this, - (ThemeProvider.__proto__ || Object.getPrototypeOf(ThemeProvider)).apply(this, arguments) - ) - ); - } - return ( - (0, _inherits3.default)(ThemeProvider, _Component), - (0, _createClass3.default)(ThemeProvider, [ - { - key: 'getChildContext', - value: function getChildContext() { - return { theme: this.props.theme }; - } - }, - { - key: 'render', - value: function render() { - return this.props.children; - } - } - ]), - ThemeProvider - ); - })(_react.Component); - (ThemeProvider.childContextTypes = { - theme: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object]) - }), - (exports.default = ThemeProvider); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _manager = __webpack_require__(592); - Object.defineProperty(exports, 'register', { - enumerable: !0, - get: function get() { - return _manager.register; - } - }); - var _preview = __webpack_require__(593); - Object.defineProperty(exports, 'linkTo', { - enumerable: !0, - get: function get() { - return _preview.linkTo; - } - }), - Object.defineProperty(exports, 'hrefTo', { - enumerable: !0, - get: function get() { - return _preview.hrefTo; - } - }), - (exports.LinkTo = function LinkTo() { - hasWarned || - (console.error( - "\nLinkTo has moved to addon-links/react:\n\nimport LinkTo from '@storybook/addon-links/react';\n " - ), - (hasWarned = !0)); - return null; - }); - var ADDON_ID = (exports.ADDON_ID = 'storybook/links'), - hasWarned = ((exports.EVENT_ID = ADDON_ID + '/link-event'), - (exports.REQUEST_HREF_EVENT_ID = ADDON_ID + '/request-href-event'), - (exports.RECEIVE_HREF_EVENT_ID = ADDON_ID + '/receive-href-event'), - !1); - }, - , - , - , - , - , - , - , - function(module, exports, __webpack_require__) { - 'use strict'; - var LIBRARY = __webpack_require__(97), - $export = __webpack_require__(16), - redefine = __webpack_require__(147), - hide = __webpack_require__(42), - has = __webpack_require__(41), - Iterators = __webpack_require__(59), - $iterCreate = __webpack_require__(410), - setToStringTag = __webpack_require__(76), - getPrototypeOf = __webpack_require__(219), - ITERATOR = __webpack_require__(18)('iterator'), - BUGGY = !([].keys && 'next' in [].keys()), - returnThis = function() { - return this; - }; - module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { - $iterCreate(Constructor, NAME, next); - var methods, - key, - IteratorPrototype, - getMethod = function(kind) { - if (!BUGGY && kind in proto) return proto[kind]; - switch (kind) { - case 'keys': - return function keys() { - return new Constructor(this, kind); - }; - case 'values': - return function values() { - return new Constructor(this, kind); - }; - } - return function entries() { - return new Constructor(this, kind); - }; - }, - TAG = NAME + ' Iterator', - DEF_VALUES = 'values' == DEFAULT, - VALUES_BUG = !1, - proto = Base.prototype, - $native = proto[ITERATOR] || proto['@@iterator'] || (DEFAULT && proto[DEFAULT]), - $default = (!BUGGY && $native) || getMethod(DEFAULT), - $entries = DEFAULT ? (DEF_VALUES ? getMethod('entries') : $default) : void 0, - $anyNative = ('Array' == NAME && proto.entries) || $native; - if ( - ($anyNative && - (IteratorPrototype = getPrototypeOf($anyNative.call(new Base()))) !== Object.prototype && - IteratorPrototype.next && - (setToStringTag(IteratorPrototype, TAG, !0), - LIBRARY || - has(IteratorPrototype, ITERATOR) || - hide(IteratorPrototype, ITERATOR, returnThis)), - DEF_VALUES && - $native && - 'values' !== $native.name && - ((VALUES_BUG = !0), - ($default = function values() { - return $native.call(this); - })), - (LIBRARY && !FORCED) || - (!BUGGY && !VALUES_BUG && proto[ITERATOR]) || - hide(proto, ITERATOR, $default), - (Iterators[NAME] = $default), - (Iterators[TAG] = returnThis), - DEFAULT) - ) - if ( - ((methods = { - values: DEF_VALUES ? $default : getMethod('values'), - keys: IS_SET ? $default : getMethod('keys'), - entries: $entries - }), - FORCED) - ) - for (key in methods) key in proto || redefine(proto, key, methods[key]); - else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); - return methods; - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(413), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = !0; - var _isIterable3 = _interopRequireDefault(__webpack_require__(517)), - _getIterator3 = _interopRequireDefault(__webpack_require__(259)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - exports.default = (function() { - return function(arr, i) { - if (Array.isArray(arr)) return arr; - if ((0, _isIterable3.default)(Object(arr))) - return (function sliceIterator(arr, i) { - var _arr = [], - _n = !0, - _d = !1, - _e = void 0; - try { - for ( - var _s, _i = (0, _getIterator3.default)(arr); - !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); - _n = !0 - ); - } catch (err) { - (_d = !0), (_e = err); - } finally { - try { - !_n && _i.return && _i.return(); - } finally { - if (_d) throw _e; - } - } - return _arr; - })(arr, i); - throw new TypeError('Invalid attempt to destructure non-iterable instance'); - }; - })(); - }, - , - , - , - function(module, exports, __webpack_require__) { - var global = __webpack_require__(36), - core = __webpack_require__(67), - hide = __webpack_require__(52), - redefine = __webpack_require__(91), - ctx = __webpack_require__(307), - $export = function(type, name, source) { - var key, - own, - out, - exp, - IS_FORCED = type & $export.F, - IS_GLOBAL = type & $export.G, - IS_STATIC = type & $export.S, - IS_PROTO = type & $export.P, - IS_BIND = type & $export.B, - target = IS_GLOBAL - ? global - : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {}).prototype, - exports = IS_GLOBAL ? core : core[name] || (core[name] = {}), - expProto = exports.prototype || (exports.prototype = {}); - IS_GLOBAL && (source = name); - for (key in source) - (out = ((own = !IS_FORCED && target && void 0 !== target[key]) ? target : source)[key]), - (exp = - IS_BIND && own - ? ctx(out, global) - : IS_PROTO && 'function' == typeof out ? ctx(Function.call, out) : out), - target && redefine(target, key, out, type & $export.U), - exports[key] != out && hide(exports, key, exp), - IS_PROTO && expProto[key] != out && (expProto[key] = out); - }; - (global.core = core), - ($export.F = 1), - ($export.G = 2), - ($export.S = 4), - ($export.P = 8), - ($export.B = 16), - ($export.W = 32), - ($export.U = 64), - ($export.R = 128), - (module.exports = $export); - }, - function(module, exports, __webpack_require__) { - module.exports = - !__webpack_require__(51) && - !__webpack_require__(88)(function() { - return ( - 7 != - Object.defineProperty(__webpack_require__(192)('div'), 'a', { - get: function() { - return 7; - } - }).a - ); - }); - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(68), - document = __webpack_require__(36).document, - is = isObject(document) && isObject(document.createElement); - module.exports = function(it) { - return is ? document.createElement(it) : {}; - }; - }, - function(module, exports, __webpack_require__) { - exports.f = __webpack_require__(38); - }, - function(module, exports, __webpack_require__) { - var has = __webpack_require__(37), - toIObject = __webpack_require__(54), - arrayIndexOf = __webpack_require__(313)(!1), - IE_PROTO = __webpack_require__(131)('IE_PROTO'); - module.exports = function(object, names) { - var key, - O = toIObject(object), - i = 0, - result = []; - for (key in O) key != IE_PROTO && has(O, key) && result.push(key); - for (; names.length > i; ) - has(O, (key = names[i++])) && (~arrayIndexOf(result, key) || result.push(key)); - return result; - }; - }, - function(module, exports) { - module.exports = function(it) { - if (void 0 == it) throw TypeError("Can't call method on " + it); - return it; - }; - }, - function(module, exports) { - var ceil = Math.ceil, - floor = Math.floor; - module.exports = function(it) { - return isNaN((it = +it)) ? 0 : (it > 0 ? floor : ceil)(it); - }; - }, - function(module, exports) { - exports.f = Object.getOwnPropertySymbols; - }, - function(module, exports, __webpack_require__) { - var anObject = __webpack_require__(89), - dPs = __webpack_require__(317), - enumBugKeys = __webpack_require__(132), - IE_PROTO = __webpack_require__(131)('IE_PROTO'), - Empty = function() {}, - createDict = function() { - var iframeDocument, - iframe = __webpack_require__(192)('iframe'), - i = enumBugKeys.length; - for ( - iframe.style.display = 'none', - __webpack_require__(318).appendChild(iframe), - iframe.src = 'javascript:', - (iframeDocument = iframe.contentWindow.document).open(), - iframeDocument.write(''), - iframeDocument.close(), - createDict = iframeDocument.F; - i--; - - ) - delete createDict.prototype[enumBugKeys[i]]; - return createDict(); - }; - module.exports = - Object.create || - function create(O, Properties) { - var result; - return ( - null !== O - ? ((Empty.prototype = anObject(O)), - (result = new Empty()), - (Empty.prototype = null), - (result[IE_PROTO] = O)) - : (result = createDict()), - void 0 === Properties ? result : dPs(result, Properties) - ); - }; - }, - function(module, exports, __webpack_require__) { - var $keys = __webpack_require__(194), - hiddenKeys = __webpack_require__(132).concat('length', 'prototype'); - exports.f = - Object.getOwnPropertyNames || - function getOwnPropertyNames(O) { - return $keys(O, hiddenKeys); - }; - }, - function(module, exports) { - module.exports = {}; - }, - function(module, exports) { - module.exports = 'string' == typeof function foo() {}.name; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var has = __webpack_require__(70), - toPrimitive = __webpack_require__(349), - toStr = Object.prototype.toString, - hasSymbols = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator, - $isNaN = __webpack_require__(204), - $isFinite = __webpack_require__(205), - MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1, - assign = __webpack_require__(135), - sign = __webpack_require__(206), - mod = __webpack_require__(207), - isPrimitive = __webpack_require__(352), - parseInteger = parseInt, - bind = __webpack_require__(39), - arraySlice = bind.call(Function.call, Array.prototype.slice), - strSlice = bind.call(Function.call, String.prototype.slice), - isBinary = bind.call(Function.call, RegExp.prototype.test, /^0b[01]+$/i), - isOctal = bind.call(Function.call, RegExp.prototype.test, /^0o[0-7]+$/i), - regexExec = bind.call(Function.call, RegExp.prototype.exec), - nonWS = ['…', '​', '￾'].join(''), - nonWSregex = new RegExp('[' + nonWS + ']', 'g'), - hasNonWS = bind.call(Function.call, RegExp.prototype.test, nonWSregex), - isInvalidHexLiteral = bind.call(Function.call, RegExp.prototype.test, /^[-+]0x[0-9a-f]+$/i), - ws = ['\t\n\v\f\r   ᠎    ', '          \u2028', '\u2029\ufeff'].join(''), - trimRegex = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g'), - replace = bind.call(Function.call, String.prototype.replace), - ES5 = __webpack_require__(353), - hasRegExpMatcher = __webpack_require__(355), - ES6 = assign(assign({}, ES5), { - Call: function Call(F, V) { - var args = arguments.length > 2 ? arguments[2] : []; - if (!this.IsCallable(F)) throw new TypeError(F + ' is not a function'); - return F.apply(V, args); - }, - ToPrimitive: toPrimitive, - ToNumber: function ToNumber(argument) { - var value = isPrimitive(argument) ? argument : toPrimitive(argument, Number); - if ('symbol' == typeof value) - throw new TypeError('Cannot convert a Symbol value to a number'); - if ('string' == typeof value) { - if (isBinary(value)) return this.ToNumber(parseInteger(strSlice(value, 2), 2)); - if (isOctal(value)) return this.ToNumber(parseInteger(strSlice(value, 2), 8)); - if (hasNonWS(value) || isInvalidHexLiteral(value)) return NaN; - var trimmed = (function(value) { - return replace(value, trimRegex, ''); - })(value); - if (trimmed !== value) return this.ToNumber(trimmed); - } - return Number(value); - }, - ToInt16: function ToInt16(argument) { - var int16bit = this.ToUint16(argument); - return int16bit >= 32768 ? int16bit - 65536 : int16bit; - }, - ToInt8: function ToInt8(argument) { - var int8bit = this.ToUint8(argument); - return int8bit >= 128 ? int8bit - 256 : int8bit; - }, - ToUint8: function ToUint8(argument) { - var number = this.ToNumber(argument); - if ($isNaN(number) || 0 === number || !$isFinite(number)) return 0; - var posInt = sign(number) * Math.floor(Math.abs(number)); - return mod(posInt, 256); - }, - ToUint8Clamp: function ToUint8Clamp(argument) { - var number = this.ToNumber(argument); - if ($isNaN(number) || number <= 0) return 0; - if (number >= 255) return 255; - var f = Math.floor(argument); - return f + 0.5 < number ? f + 1 : number < f + 0.5 ? f : f % 2 != 0 ? f + 1 : f; - }, - ToString: function ToString(argument) { - if ('symbol' == typeof argument) - throw new TypeError('Cannot convert a Symbol value to a string'); - return String(argument); - }, - ToObject: function ToObject(value) { - return this.RequireObjectCoercible(value), Object(value); - }, - ToPropertyKey: function ToPropertyKey(argument) { - var key = this.ToPrimitive(argument, String); - return 'symbol' == typeof key ? key : this.ToString(key); - }, - ToLength: function ToLength(argument) { - var len = this.ToInteger(argument); - return len <= 0 ? 0 : len > MAX_SAFE_INTEGER ? MAX_SAFE_INTEGER : len; - }, - CanonicalNumericIndexString: function CanonicalNumericIndexString(argument) { - if ('[object String]' !== toStr.call(argument)) throw new TypeError('must be a string'); - if ('-0' === argument) return -0; - var n = this.ToNumber(argument); - return this.SameValue(this.ToString(n), argument) ? n : void 0; - }, - RequireObjectCoercible: ES5.CheckObjectCoercible, - IsArray: - Array.isArray || - function IsArray(argument) { - return '[object Array]' === toStr.call(argument); - }, - IsConstructor: function IsConstructor(argument) { - return 'function' == typeof argument && !!argument.prototype; - }, - IsExtensible: function IsExtensible(obj) { - return !Object.preventExtensions || (!isPrimitive(obj) && Object.isExtensible(obj)); - }, - IsInteger: function IsInteger(argument) { - if ('number' != typeof argument || $isNaN(argument) || !$isFinite(argument)) return !1; - var abs = Math.abs(argument); - return Math.floor(abs) === abs; - }, - IsPropertyKey: function IsPropertyKey(argument) { - return 'string' == typeof argument || 'symbol' == typeof argument; - }, - IsRegExp: function IsRegExp(argument) { - if (!argument || 'object' != typeof argument) return !1; - if (hasSymbols) { - var isRegExp = argument[Symbol.match]; - if (void 0 !== isRegExp) return ES5.ToBoolean(isRegExp); - } - return hasRegExpMatcher(argument); - }, - SameValueZero: function SameValueZero(x, y) { - return x === y || ($isNaN(x) && $isNaN(y)); - }, - GetV: function GetV(V, P) { - if (!this.IsPropertyKey(P)) - throw new TypeError('Assertion failed: IsPropertyKey(P) is not true'); - return this.ToObject(V)[P]; - }, - GetMethod: function GetMethod(O, P) { - if (!this.IsPropertyKey(P)) - throw new TypeError('Assertion failed: IsPropertyKey(P) is not true'); - var func = this.GetV(O, P); - if (null != func) { - if (!this.IsCallable(func)) throw new TypeError(P + 'is not a function'); - return func; - } - }, - Get: function Get(O, P) { - if ('Object' !== this.Type(O)) - throw new TypeError('Assertion failed: Type(O) is not Object'); - if (!this.IsPropertyKey(P)) - throw new TypeError('Assertion failed: IsPropertyKey(P) is not true'); - return O[P]; - }, - Type: function Type(x) { - return 'symbol' == typeof x ? 'Symbol' : ES5.Type(x); - }, - SpeciesConstructor: function SpeciesConstructor(O, defaultConstructor) { - if ('Object' !== this.Type(O)) - throw new TypeError('Assertion failed: Type(O) is not Object'); - var C = O.constructor; - if (void 0 === C) return defaultConstructor; - if ('Object' !== this.Type(C)) throw new TypeError('O.constructor is not an Object'); - var S = hasSymbols && Symbol.species ? C[Symbol.species] : void 0; - if (null == S) return defaultConstructor; - if (this.IsConstructor(S)) return S; - throw new TypeError('no constructor found'); - }, - CompletePropertyDescriptor: function CompletePropertyDescriptor(Desc) { - if (!this.IsPropertyDescriptor(Desc)) - throw new TypeError('Desc must be a Property Descriptor'); - return ( - this.IsGenericDescriptor(Desc) || this.IsDataDescriptor(Desc) - ? (has(Desc, '[[Value]]') || (Desc['[[Value]]'] = void 0), - has(Desc, '[[Writable]]') || (Desc['[[Writable]]'] = !1)) - : (has(Desc, '[[Get]]') || (Desc['[[Get]]'] = void 0), - has(Desc, '[[Set]]') || (Desc['[[Set]]'] = void 0)), - has(Desc, '[[Enumerable]]') || (Desc['[[Enumerable]]'] = !1), - has(Desc, '[[Configurable]]') || (Desc['[[Configurable]]'] = !1), - Desc - ); - }, - Set: function Set(O, P, V, Throw) { - if ('Object' !== this.Type(O)) throw new TypeError('O must be an Object'); - if (!this.IsPropertyKey(P)) throw new TypeError('P must be a Property Key'); - if ('Boolean' !== this.Type(Throw)) throw new TypeError('Throw must be a Boolean'); - if (Throw) return (O[P] = V), !0; - try { - O[P] = V; - } catch (e) { - return !1; - } - }, - HasOwnProperty: function HasOwnProperty(O, P) { - if ('Object' !== this.Type(O)) throw new TypeError('O must be an Object'); - if (!this.IsPropertyKey(P)) throw new TypeError('P must be a Property Key'); - return has(O, P); - }, - HasProperty: function HasProperty(O, P) { - if ('Object' !== this.Type(O)) throw new TypeError('O must be an Object'); - if (!this.IsPropertyKey(P)) throw new TypeError('P must be a Property Key'); - return P in O; - }, - IsConcatSpreadable: function IsConcatSpreadable(O) { - if ('Object' !== this.Type(O)) return !1; - if (hasSymbols && 'symbol' == typeof Symbol.isConcatSpreadable) { - var spreadable = this.Get(O, Symbol.isConcatSpreadable); - if (void 0 !== spreadable) return this.ToBoolean(spreadable); - } - return this.IsArray(O); - }, - Invoke: function Invoke(O, P) { - if (!this.IsPropertyKey(P)) throw new TypeError('P must be a Property Key'); - var argumentsList = arraySlice(arguments, 2), - func = this.GetV(O, P); - return this.Call(func, O, argumentsList); - }, - CreateIterResultObject: function CreateIterResultObject(value, done) { - if ('Boolean' !== this.Type(done)) - throw new TypeError('Assertion failed: Type(done) is not Boolean'); - return { value: value, done: done }; - }, - RegExpExec: function RegExpExec(R, S) { - if ('Object' !== this.Type(R)) throw new TypeError('R must be an Object'); - if ('String' !== this.Type(S)) throw new TypeError('S must be a String'); - var exec = this.Get(R, 'exec'); - if (this.IsCallable(exec)) { - var result = this.Call(exec, R, [S]); - if (null === result || 'Object' === this.Type(result)) return result; - throw new TypeError('"exec" method must return `null` or an Object'); - } - return regexExec(R, S); - }, - ArraySpeciesCreate: function ArraySpeciesCreate(originalArray, length) { - if (!this.IsInteger(length) || length < 0) - throw new TypeError('Assertion failed: length must be an integer >= 0'); - var C, - len = 0 === length ? 0 : length; - if ( - (this.IsArray(originalArray) && - ((C = this.Get(originalArray, 'constructor')), - 'Object' === this.Type(C) && - hasSymbols && - Symbol.species && - null === (C = this.Get(C, Symbol.species)) && - (C = void 0)), - void 0 === C) - ) - return Array(len); - if (!this.IsConstructor(C)) throw new TypeError('C must be a constructor'); - return new C(len); - }, - CreateDataProperty: function CreateDataProperty(O, P, V) { - if ('Object' !== this.Type(O)) - throw new TypeError('Assertion failed: Type(O) is not Object'); - if (!this.IsPropertyKey(P)) - throw new TypeError('Assertion failed: IsPropertyKey(P) is not true'); - var oldDesc = Object.getOwnPropertyDescriptor(O, P), - extensible = - oldDesc || 'function' != typeof Object.isExtensible || Object.isExtensible(O); - if ((oldDesc && (!oldDesc.writable || !oldDesc.configurable)) || !extensible) return !1; - var newDesc = { configurable: !0, enumerable: !0, value: V, writable: !0 }; - return Object.defineProperty(O, P, newDesc), !0; - }, - CreateDataPropertyOrThrow: function CreateDataPropertyOrThrow(O, P, V) { - if ('Object' !== this.Type(O)) - throw new TypeError('Assertion failed: Type(O) is not Object'); - if (!this.IsPropertyKey(P)) - throw new TypeError('Assertion failed: IsPropertyKey(P) is not true'); - var success = this.CreateDataProperty(O, P, V); - if (!success) throw new TypeError('unable to create data property'); - return success; - }, - AdvanceStringIndex: function AdvanceStringIndex(S, index, unicode) { - if ('String' !== this.Type(S)) - throw new TypeError('Assertion failed: Type(S) is not String'); - if (!this.IsInteger(index)) - throw new TypeError( - 'Assertion failed: length must be an integer >= 0 and <= (2**53 - 1)' - ); - if (index < 0 || index > MAX_SAFE_INTEGER) - throw new RangeError( - 'Assertion failed: length must be an integer >= 0 and <= (2**53 - 1)' - ); - if ('Boolean' !== this.Type(unicode)) - throw new TypeError('Assertion failed: Type(unicode) is not Boolean'); - if (!unicode) return index + 1; - if (index + 1 >= S.length) return index + 1; - var first = S.charCodeAt(index); - if (first < 55296 || first > 56319) return index + 1; - var second = S.charCodeAt(index + 1); - return second < 56320 || second > 57343 ? index + 1 : index + 2; - } - }); - delete ES6.CheckObjectCoercible, (module.exports = ES6); - }, - function(module, exports) { - module.exports = function isPrimitive(value) { - return null === value || ('function' != typeof value && 'object' != typeof value); - }; - }, - function(module, exports) { - module.exports = - Number.isNaN || - function isNaN(a) { - return a != a; - }; - }, - function(module, exports) { - var $isNaN = - Number.isNaN || - function(a) { - return a != a; - }; - module.exports = - Number.isFinite || - function(x) { - return 'number' == typeof x && !$isNaN(x) && x !== 1 / 0 && x !== -1 / 0; - }; - }, - function(module, exports) { - module.exports = function sign(number) { - return number >= 0 ? 1 : -1; - }; - }, - function(module, exports) { - module.exports = function mod(number, modulo) { - var remain = number % modulo; - return Math.floor(remain >= 0 ? remain : remain + modulo); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ES2015 = __webpack_require__(202), - assign = __webpack_require__(135), - ES2016 = assign(assign({}, ES2015), { - SameValueNonNumber: function SameValueNonNumber(x, y) { - if ('number' == typeof x || typeof x != typeof y) - throw new TypeError( - 'SameValueNonNumber requires two non-number values of the same type.' - ); - return this.SameValue(x, y); - } - }); - module.exports = ES2016; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ES2016 = __webpack_require__(208), - assign = __webpack_require__(135), - ES2017 = assign(assign({}, ES2016), { - ToIndex: function ToIndex(value) { - if (void 0 === value) return 0; - var integerIndex = this.ToInteger(value); - if (integerIndex < 0) throw new RangeError('index must be >= 0'); - var index = this.ToLength(integerIndex); - if (!this.SameValueZero(integerIndex, index)) - throw new RangeError('index must be >= 0 and < 2 ** 53 - 1'); - return index; - } - }); - delete ES2017.EnumerableOwnNames, (module.exports = ES2017); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(71), - _assign = __webpack_require__(9), - ReactNoopUpdateQueue = __webpack_require__(211), - emptyObject = (__webpack_require__(212), __webpack_require__(93)); - __webpack_require__(3), __webpack_require__(382); - function ReactComponent(props, context, updater) { - (this.props = props), - (this.context = context), - (this.refs = emptyObject), - (this.updater = updater || ReactNoopUpdateQueue); - } - function ReactPureComponent(props, context, updater) { - (this.props = props), - (this.context = context), - (this.refs = emptyObject), - (this.updater = updater || ReactNoopUpdateQueue); - } - function ComponentDummy() {} - (ReactComponent.prototype.isReactComponent = {}), - (ReactComponent.prototype.setState = function(partialState, callback) { - 'object' != typeof partialState && - 'function' != typeof partialState && - null != partialState && - _prodInvariant('85'), - this.updater.enqueueSetState(this, partialState), - callback && this.updater.enqueueCallback(this, callback, 'setState'); - }), - (ReactComponent.prototype.forceUpdate = function(callback) { - this.updater.enqueueForceUpdate(this), - callback && this.updater.enqueueCallback(this, callback, 'forceUpdate'); - }), - (ComponentDummy.prototype = ReactComponent.prototype), - (ReactPureComponent.prototype = new ComponentDummy()), - (ReactPureComponent.prototype.constructor = ReactPureComponent), - _assign(ReactPureComponent.prototype, ReactComponent.prototype), - (ReactPureComponent.prototype.isPureReactComponent = !0), - (module.exports = { Component: ReactComponent, PureComponent: ReactPureComponent }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(6); - var ReactNoopUpdateQueue = { - isMounted: function(publicInstance) { - return !1; - }, - enqueueCallback: function(publicInstance, callback) {}, - enqueueForceUpdate: function(publicInstance) {}, - enqueueReplaceState: function(publicInstance, completeState) {}, - enqueueSetState: function(publicInstance, partialState) {} - }; - module.exports = ReactNoopUpdateQueue; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var canDefineProperty = !1; - module.exports = canDefineProperty; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var REACT_ELEMENT_TYPE = - ('function' == typeof Symbol && Symbol.for && Symbol.for('react.element')) || 60103; - module.exports = REACT_ELEMENT_TYPE; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var factory = __webpack_require__(390); - module.exports = function(isValidElement) { - return factory(isValidElement, !1); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - }, - function(module, exports, __webpack_require__) { - var has = __webpack_require__(41), - toIObject = __webpack_require__(46), - arrayIndexOf = __webpack_require__(397)(!1), - IE_PROTO = __webpack_require__(140)('IE_PROTO'); - module.exports = function(object, names) { - var key, - O = toIObject(object), - i = 0, - result = []; - for (key in O) key != IE_PROTO && has(O, key) && result.push(key); - for (; names.length > i; ) - has(O, (key = names[i++])) && (~arrayIndexOf(result, key) || result.push(key)); - return result; - }; - }, - function(module, exports, __webpack_require__) { - module.exports = - !__webpack_require__(29) && - !__webpack_require__(43)(function() { - return ( - 7 != - Object.defineProperty(__webpack_require__(143)('div'), 'a', { - get: function() { - return 7; - } - }).a - ); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var getKeys = __webpack_require__(72), - gOPS = __webpack_require__(145), - pIE = __webpack_require__(96), - toObject = __webpack_require__(58), - IObject = __webpack_require__(138), - $assign = Object.assign; - module.exports = - !$assign || - __webpack_require__(43)(function() { - var A = {}, - B = {}, - S = Symbol(), - K = 'abcdefghijklmnopqrst'; - return ( - (A[S] = 7), - K.split('').forEach(function(k) { - B[k] = k; - }), - 7 != $assign({}, A)[S] || Object.keys($assign({}, B)).join('') != K - ); - }) - ? function assign(target, source) { - for ( - var T = toObject(target), - aLen = arguments.length, - index = 1, - getSymbols = gOPS.f, - isEnum = pIE.f; - aLen > index; - - ) - for ( - var key, - S = IObject(arguments[index++]), - keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S), - length = keys.length, - j = 0; - length > j; - - ) - isEnum.call(S, (key = keys[j++])) && (T[key] = S[key]); - return T; - } - : $assign; - }, - function(module, exports, __webpack_require__) { - var has = __webpack_require__(41), - toObject = __webpack_require__(58), - IE_PROTO = __webpack_require__(140)('IE_PROTO'), - ObjectProto = Object.prototype; - module.exports = - Object.getPrototypeOf || - function(O) { - return ( - (O = toObject(O)), - has(O, IE_PROTO) - ? O[IE_PROTO] - : 'function' == typeof O.constructor && O instanceof O.constructor - ? O.constructor.prototype - : O instanceof Object ? ObjectProto : null - ); - }; - }, - function(module, exports, __webpack_require__) { - var document = __webpack_require__(17).document; - module.exports = document && document.documentElement; - }, - function(module, exports, __webpack_require__) { - var cof = __webpack_require__(73); - module.exports = - Array.isArray || - function isArray(arg) { - return 'Array' == cof(arg); - }; - }, - function(module, exports, __webpack_require__) { - var $keys = __webpack_require__(216), - hiddenKeys = __webpack_require__(142).concat('length', 'prototype'); - exports.f = - Object.getOwnPropertyNames || - function getOwnPropertyNames(O) { - return $keys(O, hiddenKeys); - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(427), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - var anObject = __webpack_require__(24); - module.exports = function(iterator, fn, value, entries) { - try { - return entries ? fn(anObject(value)[0], value[1]) : fn(value); - } catch (e) { - var ret = iterator.return; - throw (void 0 !== ret && anObject(ret.call(iterator)), e); - } - }; - }, - function(module, exports, __webpack_require__) { - var Iterators = __webpack_require__(59), - ITERATOR = __webpack_require__(18)('iterator'), - ArrayProto = Array.prototype; - module.exports = function(it) { - return void 0 !== it && (Iterators.Array === it || ArrayProto[ITERATOR] === it); - }; - }, - function(module, exports, __webpack_require__) { - var anObject = __webpack_require__(24), - aFunction = __webpack_require__(74), - SPECIES = __webpack_require__(18)('species'); - module.exports = function(O, D) { - var S, - C = anObject(O).constructor; - return void 0 === C || void 0 == (S = anObject(C)[SPECIES]) ? D : aFunction(S); - }; - }, - function(module, exports, __webpack_require__) { - var defer, - channel, - port, - ctx = __webpack_require__(35), - invoke = __webpack_require__(429), - html = __webpack_require__(220), - cel = __webpack_require__(143), - global = __webpack_require__(17), - process = global.process, - setTask = global.setImmediate, - clearTask = global.clearImmediate, - MessageChannel = global.MessageChannel, - Dispatch = global.Dispatch, - counter = 0, - queue = {}, - run = function() { - var id = +this; - if (queue.hasOwnProperty(id)) { - var fn = queue[id]; - delete queue[id], fn(); - } - }, - listener = function(event) { - run.call(event.data); - }; - (setTask && clearTask) || - ((setTask = function setImmediate(fn) { - for (var args = [], i = 1; arguments.length > i; ) args.push(arguments[i++]); - return ( - (queue[++counter] = function() { - invoke('function' == typeof fn ? fn : Function(fn), args); - }), - defer(counter), - counter - ); - }), - (clearTask = function clearImmediate(id) { - delete queue[id]; - }), - 'process' == __webpack_require__(73)(process) - ? (defer = function(id) { - process.nextTick(ctx(run, id, 1)); - }) - : Dispatch && Dispatch.now - ? (defer = function(id) { - Dispatch.now(ctx(run, id, 1)); - }) - : MessageChannel - ? ((port = (channel = new MessageChannel()).port2), - (channel.port1.onmessage = listener), - (defer = ctx(port.postMessage, port, 1))) - : global.addEventListener && 'function' == typeof postMessage && !global.importScripts - ? ((defer = function(id) { - global.postMessage(id + '', '*'); - }), - global.addEventListener('message', listener, !1)) - : (defer = - 'onreadystatechange' in cel('script') - ? function(id) { - html.appendChild(cel('script')).onreadystatechange = function() { - html.removeChild(this), run.call(id); - }; - } - : function(id) { - setTimeout(ctx(run, id, 1), 0); - })), - (module.exports = { set: setTask, clear: clearTask }); - }, - function(module, exports) { - module.exports = function(exec) { - try { - return { e: !1, v: exec() }; - } catch (e) { - return { e: !0, v: e }; - } - }; - }, - function(module, exports, __webpack_require__) { - var anObject = __webpack_require__(24), - isObject = __webpack_require__(20), - newPromiseCapability = __webpack_require__(152); - module.exports = function(C, x) { - if ((anObject(C), isObject(x) && x.constructor === C)) return x; - var promiseCapability = newPromiseCapability.f(C); - return (0, promiseCapability.resolve)(x), promiseCapability.promise; - }; - }, - function(module, exports, __webpack_require__) { - var ITERATOR = __webpack_require__(18)('iterator'), - SAFE_CLOSING = !1; - try { - var riter = [7][ITERATOR](); - (riter.return = function() { - SAFE_CLOSING = !0; - }), - Array.from(riter, function() { - throw 2; - }); - } catch (e) {} - module.exports = function(exec, skipClosing) { - if (!skipClosing && !SAFE_CLOSING) return !1; - var safe = !1; - try { - var arr = [7], - iter = arr[ITERATOR](); - (iter.next = function() { - return { done: (safe = !0) }; - }), - (arr[ITERATOR] = function() { - return iter; - }), - exec(arr); - } catch (e) {} - return safe; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var stringify = __webpack_require__(438), - parse = __webpack_require__(439), - formats = __webpack_require__(233); - module.exports = { formats: formats, parse: parse, stringify: stringify }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var has = Object.prototype.hasOwnProperty, - hexTable = (function() { - for (var array = [], i = 0; i < 256; ++i) - array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); - return array; - })(); - (exports.arrayToObject = function arrayToObject(source, options) { - for ( - var obj = options && options.plainObjects ? Object.create(null) : {}, i = 0; - i < source.length; - ++i - ) - void 0 !== source[i] && (obj[i] = source[i]); - return obj; - }), - (exports.merge = function merge(target, source, options) { - if (!source) return target; - if ('object' != typeof source) { - if (Array.isArray(target)) target.push(source); - else { - if ('object' != typeof target) return [target, source]; - (options.plainObjects || - options.allowPrototypes || - !has.call(Object.prototype, source)) && - (target[source] = !0); - } - return target; - } - if ('object' != typeof target) return [target].concat(source); - var mergeTarget = target; - return ( - Array.isArray(target) && - !Array.isArray(source) && - (mergeTarget = exports.arrayToObject(target, options)), - Array.isArray(target) && Array.isArray(source) - ? (source.forEach(function(item, i) { - has.call(target, i) - ? target[i] && 'object' == typeof target[i] - ? (target[i] = exports.merge(target[i], item, options)) - : target.push(item) - : (target[i] = item); - }), - target) - : Object.keys(source).reduce(function(acc, key) { - var value = source[key]; - return ( - has.call(acc, key) - ? (acc[key] = exports.merge(acc[key], value, options)) - : (acc[key] = value), - acc - ); - }, mergeTarget) - ); - }), - (exports.assign = function assignSingleSource(target, source) { - return Object.keys(source).reduce(function(acc, key) { - return (acc[key] = source[key]), acc; - }, target); - }), - (exports.decode = function(str) { - try { - return decodeURIComponent(str.replace(/\+/g, ' ')); - } catch (e) { - return str; - } - }), - (exports.encode = function encode(str) { - if (0 === str.length) return str; - for ( - var string = 'string' == typeof str ? str : String(str), out = '', i = 0; - i < string.length; - ++i - ) { - var c = string.charCodeAt(i); - 45 === c || - 46 === c || - 95 === c || - 126 === c || - (c >= 48 && c <= 57) || - (c >= 65 && c <= 90) || - (c >= 97 && c <= 122) - ? (out += string.charAt(i)) - : c < 128 - ? (out += hexTable[c]) - : c < 2048 - ? (out += hexTable[192 | (c >> 6)] + hexTable[128 | (63 & c)]) - : c < 55296 || c >= 57344 - ? (out += - hexTable[224 | (c >> 12)] + - hexTable[128 | ((c >> 6) & 63)] + - hexTable[128 | (63 & c)]) - : ((i += 1), - (c = 65536 + (((1023 & c) << 10) | (1023 & string.charCodeAt(i)))), - (out += - hexTable[240 | (c >> 18)] + - hexTable[128 | ((c >> 12) & 63)] + - hexTable[128 | ((c >> 6) & 63)] + - hexTable[128 | (63 & c)])); - } - return out; - }), - (exports.compact = function compact(value) { - for ( - var queue = [{ obj: { o: value }, prop: 'o' }], refs = [], i = 0; - i < queue.length; - ++i - ) - for ( - var item = queue[i], obj = item.obj[item.prop], keys = Object.keys(obj), j = 0; - j < keys.length; - ++j - ) { - var key = keys[j], - val = obj[key]; - 'object' == typeof val && - null !== val && - -1 === refs.indexOf(val) && - (queue.push({ obj: obj, prop: key }), refs.push(val)); - } - return (function compactQueue(queue) { - for (var obj; queue.length; ) { - var item = queue.pop(); - if (((obj = item.obj[item.prop]), Array.isArray(obj))) { - for (var compacted = [], j = 0; j < obj.length; ++j) - void 0 !== obj[j] && compacted.push(obj[j]); - item.obj[item.prop] = compacted; - } - } - return obj; - })(queue); - }), - (exports.isRegExp = function isRegExp(obj) { - return '[object RegExp]' === Object.prototype.toString.call(obj); - }), - (exports.isBuffer = function isBuffer(obj) { - return ( - null !== obj && - void 0 !== obj && - !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)) - ); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var replace = String.prototype.replace, - percentTwenties = /%20/g; - module.exports = { - default: 'RFC3986', - formatters: { - RFC1738: function(value) { - return replace.call(value, percentTwenties, '+'); - }, - RFC3986: function(value) { - return value; - } - }, - RFC1738: 'RFC1738', - RFC3986: 'RFC3986' - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = { hasCachedChildNodes: 1 }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7); - __webpack_require__(3); - module.exports = function accumulateInto(current, next) { - return ( - null == next && _prodInvariant('30'), - null == current - ? next - : Array.isArray(current) - ? Array.isArray(next) - ? (current.push.apply(current, next), current) - : (current.push(next), current) - : Array.isArray(next) ? [current].concat(next) : [current, next] - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function forEachAccumulated(arr, cb, scope) { - Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ExecutionEnvironment = __webpack_require__(19), - contentKey = null; - module.exports = function getTextContentAccessor() { - return ( - !contentKey && - ExecutionEnvironment.canUseDOM && - (contentKey = 'textContent' in document.documentElement ? 'textContent' : 'innerText'), - contentKey - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7); - var PooledClass = __webpack_require__(47), - CallbackQueue = (__webpack_require__(3), - (function() { - function CallbackQueue(arg) { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, CallbackQueue), - (this._callbacks = null), - (this._contexts = null), - (this._arg = arg); - } - return ( - (CallbackQueue.prototype.enqueue = function enqueue(callback, context) { - (this._callbacks = this._callbacks || []), - this._callbacks.push(callback), - (this._contexts = this._contexts || []), - this._contexts.push(context); - }), - (CallbackQueue.prototype.notifyAll = function notifyAll() { - var callbacks = this._callbacks, - contexts = this._contexts, - arg = this._arg; - if (callbacks && contexts) { - callbacks.length !== contexts.length && _prodInvariant('24'), - (this._callbacks = null), - (this._contexts = null); - for (var i = 0; i < callbacks.length; i++) callbacks[i].call(contexts[i], arg); - (callbacks.length = 0), (contexts.length = 0); - } - }), - (CallbackQueue.prototype.checkpoint = function checkpoint() { - return this._callbacks ? this._callbacks.length : 0; - }), - (CallbackQueue.prototype.rollback = function rollback(len) { - this._callbacks && - this._contexts && - ((this._callbacks.length = len), (this._contexts.length = len)); - }), - (CallbackQueue.prototype.reset = function reset() { - (this._callbacks = null), (this._contexts = null); - }), - (CallbackQueue.prototype.destructor = function destructor() { - this.reset(); - }), - CallbackQueue - ); - })()); - module.exports = PooledClass.addPoolingTo(CallbackQueue); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = { logTopLevelRenders: !1 }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactDOMComponentTree = __webpack_require__(13); - function isCheckable(elem) { - var type = elem.type, - nodeName = elem.nodeName; - return ( - nodeName && 'input' === nodeName.toLowerCase() && ('checkbox' === type || 'radio' === type) - ); - } - function getTracker(inst) { - return inst._wrapperState.valueTracker; - } - var inputValueTracking = { - _getTrackerFromNode: function(node) { - return getTracker(ReactDOMComponentTree.getInstanceFromNode(node)); - }, - track: function(inst) { - if (!getTracker(inst)) { - var node = ReactDOMComponentTree.getNodeFromInstance(inst), - valueField = isCheckable(node) ? 'checked' : 'value', - descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField), - currentValue = '' + node[valueField]; - node.hasOwnProperty(valueField) || - 'function' != typeof descriptor.get || - 'function' != typeof descriptor.set || - (Object.defineProperty(node, valueField, { - enumerable: descriptor.enumerable, - configurable: !0, - get: function() { - return descriptor.get.call(this); - }, - set: function(value) { - (currentValue = '' + value), descriptor.set.call(this, value); - } - }), - (function attachTracker(inst, tracker) { - inst._wrapperState.valueTracker = tracker; - })(inst, { - getValue: function() { - return currentValue; - }, - setValue: function(value) { - currentValue = '' + value; - }, - stopTracking: function() { - !(function detachTracker(inst) { - inst._wrapperState.valueTracker = null; - })(inst), - delete node[valueField]; - } - })); - } - }, - updateValueIfChanged: function(inst) { - if (!inst) return !1; - var tracker = getTracker(inst); - if (!tracker) return inputValueTracking.track(inst), !0; - var lastValue = tracker.getValue(), - nextValue = (function getValueFromNode(node) { - var value; - return node && (value = isCheckable(node) ? '' + node.checked : node.value), value; - })(ReactDOMComponentTree.getNodeFromInstance(inst)); - return nextValue !== lastValue && (tracker.setValue(nextValue), !0); - }, - stopTracking: function(inst) { - var tracker = getTracker(inst); - tracker && tracker.stopTracking(); - } - }; - module.exports = inputValueTracking; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var supportedInputTypes = { - 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 - }; - module.exports = function isTextInputElement(elem) { - var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); - return 'input' === nodeName ? !!supportedInputTypes[elem.type] : 'textarea' === nodeName; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ViewportMetrics = { - currentScrollLeft: 0, - currentScrollTop: 0, - refreshScrollValues: function(scrollPosition) { - (ViewportMetrics.currentScrollLeft = scrollPosition.x), - (ViewportMetrics.currentScrollTop = scrollPosition.y); - } - }; - module.exports = ViewportMetrics; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ExecutionEnvironment = __webpack_require__(19), - escapeTextContentForBrowser = __webpack_require__(101), - setInnerHTML = __webpack_require__(100), - setTextContent = function(node, text) { - if (text) { - var firstChild = node.firstChild; - if (firstChild && firstChild === node.lastChild && 3 === firstChild.nodeType) - return void (firstChild.nodeValue = text); - } - node.textContent = text; - }; - ExecutionEnvironment.canUseDOM && - ('textContent' in document.documentElement || - (setTextContent = function(node, text) { - 3 !== node.nodeType - ? setInnerHTML(node, escapeTextContentForBrowser(text)) - : (node.nodeValue = text); - })), - (module.exports = setTextContent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function focusNode(node) { - try { - node.focus(); - } catch (e) {} - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var isUnitlessNumber = { - animationIterationCount: !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, - 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 - }; - var prefixes = ['Webkit', 'ms', 'Moz', 'O']; - Object.keys(isUnitlessNumber).forEach(function(prop) { - prefixes.forEach(function(prefix) { - isUnitlessNumber[ - (function prefixKey(prefix, key) { - return prefix + key.charAt(0).toUpperCase() + key.substring(1); - })(prefix, prop) - ] = - isUnitlessNumber[prop]; - }); - }); - var CSSProperty = { - isUnitlessNumber: isUnitlessNumber, - shorthandPropertyExpansions: { - background: { - backgroundAttachment: !0, - backgroundColor: !0, - backgroundImage: !0, - backgroundPositionX: !0, - backgroundPositionY: !0, - backgroundRepeat: !0 - }, - backgroundPosition: { backgroundPositionX: !0, backgroundPositionY: !0 }, - border: { borderWidth: !0, borderStyle: !0, borderColor: !0 }, - borderBottom: { borderBottomWidth: !0, borderBottomStyle: !0, borderBottomColor: !0 }, - borderLeft: { borderLeftWidth: !0, borderLeftStyle: !0, borderLeftColor: !0 }, - borderRight: { borderRightWidth: !0, borderRightStyle: !0, borderRightColor: !0 }, - borderTop: { borderTopWidth: !0, borderTopStyle: !0, borderTopColor: !0 }, - font: { - fontStyle: !0, - fontVariant: !0, - fontWeight: !0, - fontSize: !0, - lineHeight: !0, - fontFamily: !0 - }, - outline: { outlineWidth: !0, outlineStyle: !0, outlineColor: !0 } - } - }; - module.exports = CSSProperty; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var DOMProperty = __webpack_require__(60), - quoteAttributeValueForBrowser = (__webpack_require__(13), - __webpack_require__(25), - __webpack_require__(465)), - VALID_ATTRIBUTE_NAME_REGEX = (__webpack_require__(6), - new RegExp( - '^[' + - DOMProperty.ATTRIBUTE_NAME_START_CHAR + - '][' + - DOMProperty.ATTRIBUTE_NAME_CHAR + - ']*$' - )), - illegalAttributeNameCache = {}, - validatedAttributeNameCache = {}; - function isAttributeNameSafe(attributeName) { - return ( - !!validatedAttributeNameCache.hasOwnProperty(attributeName) || - (!illegalAttributeNameCache.hasOwnProperty(attributeName) && - (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName) - ? ((validatedAttributeNameCache[attributeName] = !0), !0) - : ((illegalAttributeNameCache[attributeName] = !0), !1))) - ); - } - function shouldIgnoreValue(propertyInfo, value) { - return ( - null == value || - (propertyInfo.hasBooleanValue && !value) || - (propertyInfo.hasNumericValue && isNaN(value)) || - (propertyInfo.hasPositiveNumericValue && value < 1) || - (propertyInfo.hasOverloadedBooleanValue && !1 === value) - ); - } - var DOMPropertyOperations = { - createMarkupForID: function(id) { - return DOMProperty.ID_ATTRIBUTE_NAME + '=' + quoteAttributeValueForBrowser(id); - }, - setAttributeForID: function(node, id) { - node.setAttribute(DOMProperty.ID_ATTRIBUTE_NAME, id); - }, - createMarkupForRoot: function() { - return DOMProperty.ROOT_ATTRIBUTE_NAME + '=""'; - }, - setAttributeForRoot: function(node) { - node.setAttribute(DOMProperty.ROOT_ATTRIBUTE_NAME, ''); - }, - createMarkupForProperty: function(name, value) { - var propertyInfo = DOMProperty.properties.hasOwnProperty(name) - ? DOMProperty.properties[name] - : null; - if (propertyInfo) { - if (shouldIgnoreValue(propertyInfo, value)) return ''; - var attributeName = propertyInfo.attributeName; - return propertyInfo.hasBooleanValue || - (propertyInfo.hasOverloadedBooleanValue && !0 === value) - ? attributeName + '=""' - : attributeName + '=' + quoteAttributeValueForBrowser(value); - } - return DOMProperty.isCustomAttribute(name) - ? null == value ? '' : name + '=' + quoteAttributeValueForBrowser(value) - : null; - }, - createMarkupForCustomAttribute: function(name, value) { - return isAttributeNameSafe(name) && null != value - ? name + '=' + quoteAttributeValueForBrowser(value) - : ''; - }, - setValueForProperty: function(node, name, value) { - var propertyInfo = DOMProperty.properties.hasOwnProperty(name) - ? DOMProperty.properties[name] - : null; - if (propertyInfo) { - var mutationMethod = propertyInfo.mutationMethod; - if (mutationMethod) mutationMethod(node, value); - else { - if (shouldIgnoreValue(propertyInfo, value)) - return void this.deleteValueForProperty(node, name); - if (propertyInfo.mustUseProperty) node[propertyInfo.propertyName] = value; - else { - var attributeName = propertyInfo.attributeName, - namespace = propertyInfo.attributeNamespace; - namespace - ? node.setAttributeNS(namespace, attributeName, '' + value) - : propertyInfo.hasBooleanValue || - (propertyInfo.hasOverloadedBooleanValue && !0 === value) - ? node.setAttribute(attributeName, '') - : node.setAttribute(attributeName, '' + value); - } - } - } else if (DOMProperty.isCustomAttribute(name)) - return void DOMPropertyOperations.setValueForAttribute(node, name, value); - }, - setValueForAttribute: function(node, name, value) { - isAttributeNameSafe(name) && - (null == value ? node.removeAttribute(name) : node.setAttribute(name, '' + value)); - }, - deleteValueForAttribute: function(node, name) { - node.removeAttribute(name); - }, - deleteValueForProperty: function(node, name) { - var propertyInfo = DOMProperty.properties.hasOwnProperty(name) - ? DOMProperty.properties[name] - : null; - if (propertyInfo) { - var mutationMethod = propertyInfo.mutationMethod; - if (mutationMethod) mutationMethod(node, void 0); - else if (propertyInfo.mustUseProperty) { - var propName = propertyInfo.propertyName; - propertyInfo.hasBooleanValue ? (node[propName] = !1) : (node[propName] = ''); - } else node.removeAttribute(propertyInfo.attributeName); - } else DOMProperty.isCustomAttribute(name) && node.removeAttribute(name); - } - }; - module.exports = DOMPropertyOperations; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - LinkedValueUtils = __webpack_require__(162), - ReactDOMComponentTree = __webpack_require__(13), - ReactUpdates = __webpack_require__(30), - didWarnValueDefaultValue = (__webpack_require__(6), !1); - function updateOptionsIfPendingUpdateAndMounted() { - if (this._rootNodeID && this._wrapperState.pendingUpdate) { - this._wrapperState.pendingUpdate = !1; - var props = this._currentElement.props, - value = LinkedValueUtils.getValue(props); - null != value && updateOptions(this, Boolean(props.multiple), value); - } - } - function updateOptions(inst, multiple, propValue) { - var selectedValue, - i, - options = ReactDOMComponentTree.getNodeFromInstance(inst).options; - if (multiple) { - for (selectedValue = {}, i = 0; i < propValue.length; i++) - selectedValue['' + propValue[i]] = !0; - for (i = 0; i < options.length; i++) { - var selected = selectedValue.hasOwnProperty(options[i].value); - options[i].selected !== selected && (options[i].selected = selected); - } - } else { - for (selectedValue = '' + propValue, i = 0; i < options.length; i++) - if (options[i].value === selectedValue) return void (options[i].selected = !0); - options.length && (options[0].selected = !0); - } - } - var ReactDOMSelect = { - getHostProps: function(inst, props) { - return _assign({}, props, { onChange: inst._wrapperState.onChange, value: void 0 }); - }, - mountWrapper: function(inst, props) { - var value = LinkedValueUtils.getValue(props); - (inst._wrapperState = { - pendingUpdate: !1, - initialValue: null != value ? value : props.defaultValue, - listeners: null, - onChange: function _handleChange(event) { - var props = this._currentElement.props, - returnValue = LinkedValueUtils.executeOnChange(props, event); - this._rootNodeID && (this._wrapperState.pendingUpdate = !0); - return ReactUpdates.asap(updateOptionsIfPendingUpdateAndMounted, this), returnValue; - }.bind(inst), - wasMultiple: Boolean(props.multiple) - }), - void 0 === props.value || - void 0 === props.defaultValue || - didWarnValueDefaultValue || - (didWarnValueDefaultValue = !0); - }, - getSelectValueContext: function(inst) { - return inst._wrapperState.initialValue; - }, - postUpdateWrapper: function(inst) { - var props = inst._currentElement.props; - inst._wrapperState.initialValue = void 0; - var wasMultiple = inst._wrapperState.wasMultiple; - inst._wrapperState.wasMultiple = Boolean(props.multiple); - var value = LinkedValueUtils.getValue(props); - null != value - ? ((inst._wrapperState.pendingUpdate = !1), - updateOptions(inst, Boolean(props.multiple), value)) - : wasMultiple !== Boolean(props.multiple) && - (null != props.defaultValue - ? updateOptions(inst, Boolean(props.multiple), props.defaultValue) - : updateOptions(inst, Boolean(props.multiple), props.multiple ? [] : '')); - } - }; - module.exports = ReactDOMSelect; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - _assign = __webpack_require__(9), - ReactCompositeComponent = __webpack_require__(474), - ReactEmptyComponent = __webpack_require__(250), - ReactHostComponent = __webpack_require__(251), - ReactCompositeComponentWrapper = (__webpack_require__(475), - __webpack_require__(3), - __webpack_require__(6), - function(element) { - this.construct(element); - }); - function instantiateReactComponent(node, shouldHaveDebugID) { - var instance; - if (null === node || !1 === node) - instance = ReactEmptyComponent.create(instantiateReactComponent); - else if ('object' == typeof node) { - var element = node, - type = element.type; - if ('function' != typeof type && 'string' != typeof type) { - var info = ''; - 0, - (info += (function getDeclarationErrorAddendum(owner) { - if (owner) { - var name = owner.getName(); - if (name) return ' Check the render method of `' + name + '`.'; - } - return ''; - })(element._owner)), - _prodInvariant('130', null == type ? type : typeof type, info); - } - 'string' == typeof element.type - ? (instance = ReactHostComponent.createInternalComponent(element)) - : !(function isInternalComponentType(type) { - return ( - 'function' == typeof type && - void 0 !== type.prototype && - 'function' == typeof type.prototype.mountComponent && - 'function' == typeof type.prototype.receiveComponent - ); - })(element.type) - ? (instance = new ReactCompositeComponentWrapper(element)) - : (instance = new element.type(element)).getHostNode || - (instance.getHostNode = instance.getNativeNode); - } else - 'string' == typeof node || 'number' == typeof node - ? (instance = ReactHostComponent.createInstanceForText(node)) - : _prodInvariant('131', typeof node); - return (instance._mountIndex = 0), (instance._mountImage = null), instance; - } - _assign(ReactCompositeComponentWrapper.prototype, ReactCompositeComponent, { - _instantiateReactComponent: instantiateReactComponent - }), - (module.exports = instantiateReactComponent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - React = __webpack_require__(56), - ReactNodeTypes = (__webpack_require__(3), - { - HOST: 0, - COMPOSITE: 1, - EMPTY: 2, - getType: function(node) { - return null === node || !1 === node - ? ReactNodeTypes.EMPTY - : React.isValidElement(node) - ? 'function' == typeof node.type ? ReactNodeTypes.COMPOSITE : ReactNodeTypes.HOST - : void _prodInvariant('26', node); - } - }); - module.exports = ReactNodeTypes; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var emptyComponentFactory, - ReactEmptyComponentInjection = { - injectEmptyComponentFactory: function(factory) { - emptyComponentFactory = factory; - } - }, - ReactEmptyComponent = { - create: function(instantiate) { - return emptyComponentFactory(instantiate); - } - }; - (ReactEmptyComponent.injection = ReactEmptyComponentInjection), - (module.exports = ReactEmptyComponent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - genericComponentClass = (__webpack_require__(3), null), - textComponentClass = null; - var ReactHostComponent = { - createInternalComponent: function createInternalComponent(element) { - return ( - genericComponentClass || _prodInvariant('111', element.type), - new genericComponentClass(element) - ); - }, - createInstanceForText: function createInstanceForText(text) { - return new textComponentClass(text); - }, - isTextComponent: function isTextComponent(component) { - return component instanceof textComponentClass; - }, - injection: { - injectGenericComponentClass: function(componentClass) { - genericComponentClass = componentClass; - }, - injectTextComponentClass: function(componentClass) { - textComponentClass = componentClass; - } - } - }; - module.exports = ReactHostComponent; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - REACT_ELEMENT_TYPE = (__webpack_require__(32), __webpack_require__(476)), - getIteratorFn = __webpack_require__(477), - KeyEscapeUtils = (__webpack_require__(3), __webpack_require__(166)), - SEPARATOR = (__webpack_require__(6), '.'), - SUBSEPARATOR = ':'; - function getComponentKey(component, index) { - return component && 'object' == typeof component && null != component.key - ? KeyEscapeUtils.escape(component.key) - : index.toString(36); - } - module.exports = function traverseAllChildren(children, callback, traverseContext) { - return null == children - ? 0 - : (function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) { - var child, - type = typeof children; - if ( - (('undefined' !== type && 'boolean' !== type) || (children = null), - null === children || - 'string' === type || - 'number' === type || - ('object' === type && children.$$typeof === REACT_ELEMENT_TYPE)) - ) - return ( - callback( - traverseContext, - children, - '' === nameSoFar ? SEPARATOR + getComponentKey(children, 0) : nameSoFar - ), - 1 - ); - var subtreeCount = 0, - nextNamePrefix = '' === nameSoFar ? SEPARATOR : nameSoFar + SUBSEPARATOR; - if (Array.isArray(children)) - for (var i = 0; i < children.length; i++) - subtreeCount += traverseAllChildrenImpl( - (child = children[i]), - nextNamePrefix + getComponentKey(child, i), - callback, - traverseContext - ); - else { - var iteratorFn = getIteratorFn(children); - if (iteratorFn) { - var step, - iterator = iteratorFn.call(children); - if (iteratorFn !== children.entries) - for (var ii = 0; !(step = iterator.next()).done; ) - subtreeCount += traverseAllChildrenImpl( - (child = step.value), - nextNamePrefix + getComponentKey(child, ii++), - callback, - traverseContext - ); - else - for (; !(step = iterator.next()).done; ) { - var entry = step.value; - entry && - (subtreeCount += traverseAllChildrenImpl( - (child = entry[1]), - nextNamePrefix + - KeyEscapeUtils.escape(entry[0]) + - SUBSEPARATOR + - getComponentKey(child, 0), - callback, - traverseContext - )); - } - } else if ('object' === type) { - var addendum = '', - childrenString = String(children); - _prodInvariant( - '31', - '[object Object]' === childrenString - ? 'object with keys {' + Object.keys(children).join(', ') + '}' - : childrenString, - addendum - ); - } - } - return subtreeCount; - })(children, '', callback, traverseContext); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var setItem, - getItem, - removeItem, - getItemIDs, - addRoot, - removeRoot, - getRootIDs, - _prodInvariant = __webpack_require__(71), - ReactCurrentOwner = __webpack_require__(32); - __webpack_require__(3), __webpack_require__(6); - function isNative(fn) { - var funcToString = Function.prototype.toString, - hasOwnProperty = Object.prototype.hasOwnProperty, - reIsNative = RegExp( - '^' + - funcToString - .call(hasOwnProperty) - .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + - '$' - ); - try { - var source = funcToString.call(fn); - return reIsNative.test(source); - } catch (err) { - return !1; - } - } - if ( - 'function' == typeof Array.from && - 'function' == typeof Map && - isNative(Map) && - null != Map.prototype && - 'function' == typeof Map.prototype.keys && - isNative(Map.prototype.keys) && - 'function' == typeof Set && - isNative(Set) && - null != Set.prototype && - 'function' == typeof Set.prototype.keys && - isNative(Set.prototype.keys) - ) { - var itemMap = new Map(), - rootIDSet = new Set(); - (setItem = function(id, item) { - itemMap.set(id, item); - }), - (getItem = function(id) { - return itemMap.get(id); - }), - (removeItem = function(id) { - itemMap.delete(id); - }), - (getItemIDs = function() { - return Array.from(itemMap.keys()); - }), - (addRoot = function(id) { - rootIDSet.add(id); - }), - (removeRoot = function(id) { - rootIDSet.delete(id); - }), - (getRootIDs = function() { - return Array.from(rootIDSet.keys()); - }); - } else { - var itemByKey = {}, - rootByKey = {}, - getKeyFromID = function(id) { - return '.' + id; - }, - getIDFromKey = function(key) { - return parseInt(key.substr(1), 10); - }; - (setItem = function(id, item) { - var key = getKeyFromID(id); - itemByKey[key] = item; - }), - (getItem = function(id) { - var key = getKeyFromID(id); - return itemByKey[key]; - }), - (removeItem = function(id) { - var key = getKeyFromID(id); - delete itemByKey[key]; - }), - (getItemIDs = function() { - return Object.keys(itemByKey).map(getIDFromKey); - }), - (addRoot = function(id) { - var key = getKeyFromID(id); - rootByKey[key] = !0; - }), - (removeRoot = function(id) { - var key = getKeyFromID(id); - delete rootByKey[key]; - }), - (getRootIDs = function() { - return Object.keys(rootByKey).map(getIDFromKey); - }); - } - var unmountedIDs = []; - function purgeDeep(id) { - var item = getItem(id); - if (item) { - var childIDs = item.childIDs; - removeItem(id), childIDs.forEach(purgeDeep); - } - } - function describeComponentFrame(name, source, ownerName) { - return ( - '\n in ' + - (name || 'Unknown') + - (source - ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' - : ownerName ? ' (created by ' + ownerName + ')' : '') - ); - } - function getDisplayName(element) { - return null == element - ? '#empty' - : 'string' == typeof element || 'number' == typeof element - ? '#text' - : 'string' == typeof element.type - ? element.type - : element.type.displayName || element.type.name || 'Unknown'; - } - function describeID(id) { - var ownerName, - name = ReactComponentTreeHook.getDisplayName(id), - element = ReactComponentTreeHook.getElement(id), - ownerID = ReactComponentTreeHook.getOwnerID(id); - return ( - ownerID && (ownerName = ReactComponentTreeHook.getDisplayName(ownerID)), - describeComponentFrame(name, element && element._source, ownerName) - ); - } - var ReactComponentTreeHook = { - onSetChildren: function(id, nextChildIDs) { - var item = getItem(id); - item || _prodInvariant('144'), (item.childIDs = nextChildIDs); - for (var i = 0; i < nextChildIDs.length; i++) { - var nextChildID = nextChildIDs[i], - nextChild = getItem(nextChildID); - nextChild || _prodInvariant('140'), - null == nextChild.childIDs && - 'object' == typeof nextChild.element && - null != nextChild.element && - _prodInvariant('141'), - nextChild.isMounted || _prodInvariant('71'), - null == nextChild.parentID && (nextChild.parentID = id), - nextChild.parentID !== id && _prodInvariant('142', nextChildID, nextChild.parentID, id); - } - }, - onBeforeMountComponent: function(id, element, parentID) { - setItem(id, { - element: element, - parentID: parentID, - text: null, - childIDs: [], - isMounted: !1, - updateCount: 0 - }); - }, - onBeforeUpdateComponent: function(id, element) { - var item = getItem(id); - item && item.isMounted && (item.element = element); - }, - onMountComponent: function(id) { - var item = getItem(id); - item || _prodInvariant('144'), (item.isMounted = !0), 0 === item.parentID && addRoot(id); - }, - onUpdateComponent: function(id) { - var item = getItem(id); - item && item.isMounted && item.updateCount++; - }, - onUnmountComponent: function(id) { - var item = getItem(id); - item && ((item.isMounted = !1), 0 === item.parentID && removeRoot(id)); - unmountedIDs.push(id); - }, - purgeUnmountedComponents: function() { - if (!ReactComponentTreeHook._preventPurging) { - for (var i = 0; i < unmountedIDs.length; i++) { - purgeDeep(unmountedIDs[i]); - } - unmountedIDs.length = 0; - } - }, - isMounted: function(id) { - var item = getItem(id); - return !!item && item.isMounted; - }, - getCurrentStackAddendum: function(topElement) { - var info = ''; - if (topElement) { - var name = getDisplayName(topElement), - owner = topElement._owner; - info += describeComponentFrame(name, topElement._source, owner && owner.getName()); - } - var currentOwner = ReactCurrentOwner.current, - id = currentOwner && currentOwner._debugID; - return (info += ReactComponentTreeHook.getStackAddendumByID(id)); - }, - getStackAddendumByID: function(id) { - for (var info = ''; id; ) - (info += describeID(id)), (id = ReactComponentTreeHook.getParentID(id)); - return info; - }, - getChildIDs: function(id) { - var item = getItem(id); - return item ? item.childIDs : []; - }, - getDisplayName: function(id) { - var element = ReactComponentTreeHook.getElement(id); - return element ? getDisplayName(element) : null; - }, - getElement: function(id) { - var item = getItem(id); - return item ? item.element : null; - }, - getOwnerID: function(id) { - var element = ReactComponentTreeHook.getElement(id); - return element && element._owner ? element._owner._debugID : null; - }, - getParentID: function(id) { - var item = getItem(id); - return item ? item.parentID : null; - }, - getSource: function(id) { - var item = getItem(id), - element = item ? item.element : null; - return null != element ? element._source : null; - }, - getText: function(id) { - var element = ReactComponentTreeHook.getElement(id); - return 'string' == typeof element - ? element - : 'number' == typeof element ? '' + element : null; - }, - getUpdateCount: function(id) { - var item = getItem(id); - return item ? item.updateCount : 0; - }, - getRootIDs: getRootIDs, - getRegisteredIDs: getItemIDs, - pushNonStandardWarningStack: function(isCreatingElement, currentSource) { - if ('function' == typeof console.reactStack) { - var stack = [], - currentOwner = ReactCurrentOwner.current, - id = currentOwner && currentOwner._debugID; - try { - for ( - isCreatingElement && - stack.push({ - name: id ? ReactComponentTreeHook.getDisplayName(id) : null, - fileName: currentSource ? currentSource.fileName : null, - lineNumber: currentSource ? currentSource.lineNumber : null - }); - id; - - ) { - var element = ReactComponentTreeHook.getElement(id), - parentID = ReactComponentTreeHook.getParentID(id), - ownerID = ReactComponentTreeHook.getOwnerID(id), - ownerName = ownerID ? ReactComponentTreeHook.getDisplayName(ownerID) : null, - source = element && element._source; - stack.push({ - name: ownerName, - fileName: source ? source.fileName : null, - lineNumber: source ? source.lineNumber : null - }), - (id = parentID); - } - } catch (err) {} - console.reactStack(stack); - } - }, - popNonStandardWarningStack: function() { - 'function' == typeof console.reactStackEnd && console.reactStackEnd(); - } - }; - module.exports = ReactComponentTreeHook; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var emptyFunction = __webpack_require__(22), - EventListener = { - listen: function listen(target, eventType, callback) { - return target.addEventListener - ? (target.addEventListener(eventType, callback, !1), - { - remove: function remove() { - target.removeEventListener(eventType, callback, !1); - } - }) - : target.attachEvent - ? (target.attachEvent('on' + eventType, callback), - { - remove: function remove() { - target.detachEvent('on' + eventType, callback); - } - }) - : void 0; - }, - capture: function capture(target, eventType, callback) { - return target.addEventListener - ? (target.addEventListener(eventType, callback, !0), - { - remove: function remove() { - target.removeEventListener(eventType, callback, !0); - } - }) - : { remove: emptyFunction }; - }, - registerDefault: function registerDefault() {} - }; - module.exports = EventListener; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactDOMSelection = __webpack_require__(489), - containsNode = __webpack_require__(491), - focusNode = __webpack_require__(244), - getActiveElement = __webpack_require__(256); - var ReactInputSelection = { - hasSelectionCapabilities: function(elem) { - var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); - return ( - nodeName && - (('input' === nodeName && 'text' === elem.type) || - 'textarea' === nodeName || - 'true' === elem.contentEditable) - ); - }, - getSelectionInformation: function() { - var focusedElem = getActiveElement(); - return { - focusedElem: focusedElem, - selectionRange: ReactInputSelection.hasSelectionCapabilities(focusedElem) - ? ReactInputSelection.getSelection(focusedElem) - : null - }; - }, - restoreSelection: function(priorSelectionInformation) { - var curFocusedElem = getActiveElement(), - priorFocusedElem = priorSelectionInformation.focusedElem, - priorSelectionRange = priorSelectionInformation.selectionRange; - curFocusedElem !== priorFocusedElem && - (function isInDocument(node) { - return containsNode(document.documentElement, node); - })(priorFocusedElem) && - (ReactInputSelection.hasSelectionCapabilities(priorFocusedElem) && - ReactInputSelection.setSelection(priorFocusedElem, priorSelectionRange), - focusNode(priorFocusedElem)); - }, - getSelection: function(input) { - var selection; - if ('selectionStart' in input) - selection = { start: input.selectionStart, end: input.selectionEnd }; - else if (document.selection && input.nodeName && 'input' === input.nodeName.toLowerCase()) { - var range = document.selection.createRange(); - range.parentElement() === input && - (selection = { - start: -range.moveStart('character', -input.value.length), - end: -range.moveEnd('character', -input.value.length) - }); - } else selection = ReactDOMSelection.getOffsets(input); - return selection || { start: 0, end: 0 }; - }, - setSelection: function(input, offsets) { - var start = offsets.start, - end = offsets.end; - if ((void 0 === end && (end = start), 'selectionStart' in input)) - (input.selectionStart = start), (input.selectionEnd = Math.min(end, input.value.length)); - else if (document.selection && input.nodeName && 'input' === input.nodeName.toLowerCase()) { - var range = input.createTextRange(); - range.collapse(!0), - range.moveStart('character', start), - range.moveEnd('character', end - start), - range.select(); - } else ReactDOMSelection.setOffsets(input, offsets); - } - }; - module.exports = ReactInputSelection; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function getActiveElement(doc) { - if (void 0 === (doc = doc || ('undefined' != typeof document ? document : void 0))) - return null; - try { - return doc.activeElement || doc.body; - } catch (e) { - return doc.body; - } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - DOMLazyTree = __webpack_require__(62), - DOMProperty = __webpack_require__(60), - React = __webpack_require__(56), - ReactBrowserEventEmitter = __webpack_require__(102), - ReactDOMComponentTree = (__webpack_require__(32), __webpack_require__(13)), - ReactDOMContainerInfo = __webpack_require__(506), - ReactDOMFeatureFlags = __webpack_require__(507), - ReactFeatureFlags = __webpack_require__(239), - ReactInstanceMap = __webpack_require__(82), - ReactMarkupChecksum = (__webpack_require__(25), __webpack_require__(508)), - ReactReconciler = __webpack_require__(61), - ReactUpdateQueue = __webpack_require__(167), - ReactUpdates = __webpack_require__(30), - emptyObject = __webpack_require__(93), - instantiateReactComponent = __webpack_require__(248), - setInnerHTML = (__webpack_require__(3), __webpack_require__(100)), - shouldUpdateReactComponent = __webpack_require__(165), - ATTR_NAME = (__webpack_require__(6), DOMProperty.ID_ATTRIBUTE_NAME), - ROOT_ATTR_NAME = DOMProperty.ROOT_ATTRIBUTE_NAME, - ELEMENT_NODE_TYPE = 1, - DOC_NODE_TYPE = 9, - DOCUMENT_FRAGMENT_NODE_TYPE = 11, - instancesByReactRootID = {}; - function getReactRootElementInContainer(container) { - return container - ? container.nodeType === DOC_NODE_TYPE ? container.documentElement : container.firstChild - : null; - } - function internalGetID(node) { - return (node.getAttribute && node.getAttribute(ATTR_NAME)) || ''; - } - function mountComponentIntoNode( - wrapperInstance, - container, - transaction, - shouldReuseMarkup, - context - ) { - var markerName; - if (ReactFeatureFlags.logTopLevelRenders) { - var type = wrapperInstance._currentElement.props.child.type; - (markerName = - 'React mount: ' + ('string' == typeof type ? type : type.displayName || type.name)), - console.time(markerName); - } - var markup = ReactReconciler.mountComponent( - wrapperInstance, - transaction, - null, - ReactDOMContainerInfo(wrapperInstance, container), - context, - 0 - ); - markerName && console.timeEnd(markerName), - (wrapperInstance._renderedComponent._topLevelWrapper = wrapperInstance), - ReactMount._mountImageIntoNode( - markup, - container, - wrapperInstance, - shouldReuseMarkup, - transaction - ); - } - function batchedMountComponentIntoNode( - componentInstance, - container, - shouldReuseMarkup, - context - ) { - var transaction = ReactUpdates.ReactReconcileTransaction.getPooled( - !shouldReuseMarkup && ReactDOMFeatureFlags.useCreateElement - ); - transaction.perform( - mountComponentIntoNode, - null, - componentInstance, - container, - transaction, - shouldReuseMarkup, - context - ), - ReactUpdates.ReactReconcileTransaction.release(transaction); - } - function unmountComponentFromNode(instance, container, safely) { - for ( - 0, - ReactReconciler.unmountComponent(instance, safely), - container.nodeType === DOC_NODE_TYPE && (container = container.documentElement); - container.lastChild; - - ) - container.removeChild(container.lastChild); - } - function hasNonRootReactChild(container) { - var rootEl = getReactRootElementInContainer(container); - if (rootEl) { - var inst = ReactDOMComponentTree.getInstanceFromNode(rootEl); - return !(!inst || !inst._hostParent); - } - } - function isValidContainer(node) { - return !( - !node || - (node.nodeType !== ELEMENT_NODE_TYPE && - node.nodeType !== DOC_NODE_TYPE && - node.nodeType !== DOCUMENT_FRAGMENT_NODE_TYPE) - ); - } - function getTopLevelWrapperInContainer(container) { - var root = (function getHostRootInstanceInContainer(container) { - var rootEl = getReactRootElementInContainer(container), - prevHostInstance = rootEl && ReactDOMComponentTree.getInstanceFromNode(rootEl); - return prevHostInstance && !prevHostInstance._hostParent ? prevHostInstance : null; - })(container); - return root ? root._hostContainerInfo._topLevelWrapper : null; - } - var topLevelRootCounter = 1, - TopLevelWrapper = function() { - this.rootID = topLevelRootCounter++; - }; - (TopLevelWrapper.prototype.isReactComponent = {}), - (TopLevelWrapper.prototype.render = function() { - return this.props.child; - }), - (TopLevelWrapper.isReactTopLevelWrapper = !0); - var ReactMount = { - TopLevelWrapper: TopLevelWrapper, - _instancesByReactRootID: instancesByReactRootID, - scrollMonitor: function(container, renderCallback) { - renderCallback(); - }, - _updateRootComponent: function(prevComponent, nextElement, nextContext, container, callback) { - return ( - ReactMount.scrollMonitor(container, function() { - ReactUpdateQueue.enqueueElementInternal(prevComponent, nextElement, nextContext), - callback && ReactUpdateQueue.enqueueCallbackInternal(prevComponent, callback); - }), - prevComponent - ); - }, - _renderNewRootComponent: function(nextElement, container, shouldReuseMarkup, context) { - isValidContainer(container) || _prodInvariant('37'), - ReactBrowserEventEmitter.ensureScrollValueMonitoring(); - var componentInstance = instantiateReactComponent(nextElement, !1); - ReactUpdates.batchedUpdates( - batchedMountComponentIntoNode, - componentInstance, - container, - shouldReuseMarkup, - context - ); - var wrapperID = componentInstance._instance.rootID; - return (instancesByReactRootID[wrapperID] = componentInstance), componentInstance; - }, - renderSubtreeIntoContainer: function(parentComponent, nextElement, container, callback) { - return ( - (null != parentComponent && ReactInstanceMap.has(parentComponent)) || - _prodInvariant('38'), - ReactMount._renderSubtreeIntoContainer(parentComponent, nextElement, container, callback) - ); - }, - _renderSubtreeIntoContainer: function(parentComponent, nextElement, container, callback) { - ReactUpdateQueue.validateCallback(callback, 'ReactDOM.render'), - React.isValidElement(nextElement) || - _prodInvariant( - '39', - 'string' == typeof nextElement - ? " Instead of passing a string like 'div', pass React.createElement('div') or
." - : 'function' == typeof nextElement - ? ' Instead of passing a class like Foo, pass React.createElement(Foo) or .' - : null != nextElement && void 0 !== nextElement.props - ? ' This may be caused by unintentionally loading two independent copies of React.' - : '' - ); - var nextContext, - nextWrappedElement = React.createElement(TopLevelWrapper, { child: nextElement }); - if (parentComponent) { - var parentInst = ReactInstanceMap.get(parentComponent); - nextContext = parentInst._processChildContext(parentInst._context); - } else nextContext = emptyObject; - var prevComponent = getTopLevelWrapperInContainer(container); - if (prevComponent) { - var prevElement = prevComponent._currentElement.props.child; - if (shouldUpdateReactComponent(prevElement, nextElement)) { - var publicInst = prevComponent._renderedComponent.getPublicInstance(), - updatedCallback = - callback && - function() { - callback.call(publicInst); - }; - return ( - ReactMount._updateRootComponent( - prevComponent, - nextWrappedElement, - nextContext, - container, - updatedCallback - ), - publicInst - ); - } - ReactMount.unmountComponentAtNode(container); - } - var reactRootElement = getReactRootElementInContainer(container), - containerHasReactMarkup = reactRootElement && !!internalGetID(reactRootElement), - containerHasNonRootReactChild = hasNonRootReactChild(container), - shouldReuseMarkup = - containerHasReactMarkup && !prevComponent && !containerHasNonRootReactChild, - component = ReactMount._renderNewRootComponent( - nextWrappedElement, - container, - shouldReuseMarkup, - nextContext - )._renderedComponent.getPublicInstance(); - return callback && callback.call(component), component; - }, - render: function(nextElement, container, callback) { - return ReactMount._renderSubtreeIntoContainer(null, nextElement, container, callback); - }, - unmountComponentAtNode: function(container) { - isValidContainer(container) || _prodInvariant('40'); - var prevComponent = getTopLevelWrapperInContainer(container); - if (!prevComponent) { - hasNonRootReactChild(container), - 1 === container.nodeType && container.hasAttribute(ROOT_ATTR_NAME); - return !1; - } - return ( - delete instancesByReactRootID[prevComponent._instance.rootID], - ReactUpdates.batchedUpdates(unmountComponentFromNode, prevComponent, container, !1), - !0 - ); - }, - _mountImageIntoNode: function(markup, container, instance, shouldReuseMarkup, transaction) { - if ((isValidContainer(container) || _prodInvariant('41'), shouldReuseMarkup)) { - var rootElement = getReactRootElementInContainer(container); - if (ReactMarkupChecksum.canReuseMarkup(markup, rootElement)) - return void ReactDOMComponentTree.precacheNode(instance, rootElement); - var checksum = rootElement.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME); - rootElement.removeAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME); - var rootMarkup = rootElement.outerHTML; - rootElement.setAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME, checksum); - var normalizedMarkup = markup, - diffIndex = (function firstDifferenceIndex(string1, string2) { - for (var minLen = Math.min(string1.length, string2.length), i = 0; i < minLen; i++) - if (string1.charAt(i) !== string2.charAt(i)) return i; - return string1.length === string2.length ? -1 : minLen; - })(normalizedMarkup, rootMarkup), - difference = - ' (client) ' + - normalizedMarkup.substring(diffIndex - 20, diffIndex + 20) + - '\n (server) ' + - rootMarkup.substring(diffIndex - 20, diffIndex + 20); - container.nodeType === DOC_NODE_TYPE && _prodInvariant('42', difference); - } - if ( - (container.nodeType === DOC_NODE_TYPE && _prodInvariant('43'), - transaction.useCreateElement) - ) { - for (; container.lastChild; ) container.removeChild(container.lastChild); - DOMLazyTree.insertTreeBefore(container, markup, null); - } else - setInnerHTML(container, markup), - ReactDOMComponentTree.precacheNode(instance, container.firstChild); - } - }; - module.exports = ReactMount; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactNodeTypes = __webpack_require__(249); - module.exports = function getHostComponentFromComposite(inst) { - for (var type; (type = inst._renderedNodeType) === ReactNodeTypes.COMPOSITE; ) - inst = inst._renderedComponent; - return type === ReactNodeTypes.HOST - ? inst._renderedComponent - : type === ReactNodeTypes.EMPTY ? null : void 0; - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(520), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var nameDescriptor = (0, - (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(291)).default)(function unnamed() {}, 'name'), - canConfigureName = !nameDescriptor || nameDescriptor.configurable; - exports.default = canConfigureName; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _util = __webpack_require__(84); - exports.default = function reviver(key, value) { - if ((0, _util.isObject)(value)) { - var result = (0, _util.typeReviver)(value); - if (result) return result.value; - } - return value; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.chromeLight = exports.chromeDark = void 0); - var _chromeDark3 = _interopRequireDefault(__webpack_require__(569)), - _chromeLight3 = _interopRequireDefault(__webpack_require__(570)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - (exports.chromeDark = _chromeDark3.default), (exports.chromeLight = _chromeLight3.default); - }, - function(module, exports, __webpack_require__) { - module.exports = __webpack_require__(572); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _objectWithoutProperties3 = _interopRequireDefault(__webpack_require__(65)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _defineProperty3 = _interopRequireDefault(__webpack_require__(31)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _TreeNode2 = _interopRequireDefault(__webpack_require__(574)), - _pathUtils = __webpack_require__(577); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ConnectedTreeNode = (function(_Component) { - function ConnectedTreeNode(props, context) { - (0, _classCallCheck3.default)(this, ConnectedTreeNode); - var _this = (0, _possibleConstructorReturn3.default)( - this, - (ConnectedTreeNode.__proto__ || Object.getPrototypeOf(ConnectedTreeNode)).call( - this, - props - ) - ); - return (_this.state = context.store.storeState), _this; - } - return ( - (0, _inherits3.default)(ConnectedTreeNode, _Component), - (0, _createClass3.default)(ConnectedTreeNode, [ - { - key: 'shouldComponentUpdate', - value: function shouldComponentUpdate(nextProps, nextState) { - return ( - !!nextState.expandedPaths[nextProps.path] != - !!this.state.expandedPaths[this.props.path] || - nextProps.data !== this.props.data || - nextProps.name !== this.props.name - ); - } - }, - { - key: 'handleClick', - value: function handleClick(path) { - (this.context.store.storeState = (function reducer(state, action) { - switch (action.type) { - case 'TOGGLE_EXPAND': - var path = action.path, - expanded = !!state.expandedPaths[path]; - return Object.assign({}, state, { - expandedPaths: Object.assign( - {}, - state.expandedPaths, - (0, _defineProperty3.default)({}, path, !expanded) - ) - }); - default: - return state; - } - })(this.context.store.storeState, { type: 'TOGGLE_EXPAND', path: path })), - this.setState(this.context.store.storeState); - } - }, - { - key: 'renderChildNodes', - value: function renderChildNodes(parentData, parentPath) { - var dataIterator = this.props.dataIterator, - depth = this.props.depth, - nodeRenderer = this.props.nodeRenderer, - childNodes = [], - _iteratorNormalCompletion = !0, - _didIteratorError = !1, - _iteratorError = void 0; - try { - for ( - var _step, _iterator = dataIterator(parentData)[Symbol.iterator](); - !(_iteratorNormalCompletion = (_step = _iterator.next()).done); - _iteratorNormalCompletion = !0 - ) { - var _ref2 = _step.value, - name = _ref2.name, - data = _ref2.data, - props = (0, _objectWithoutProperties3.default)(_ref2, ['name', 'data']), - key = name, - path = parentPath + '.' + key; - childNodes.push( - _react2.default.createElement( - ConnectedTreeNode, - (0, _extends3.default)( - { - name: name, - data: data, - depth: depth + 1, - path: path, - key: key, - dataIterator: dataIterator, - nodeRenderer: nodeRenderer - }, - props - ) - ) - ); - } - } catch (err) { - (_didIteratorError = !0), (_iteratorError = err); - } finally { - try { - !_iteratorNormalCompletion && _iterator.return && _iterator.return(); - } finally { - if (_didIteratorError) throw _iteratorError; - } - } - return childNodes; - } - }, - { - key: 'render', - value: function render() { - var _props = this.props, - data = _props.data, - dataIterator = _props.dataIterator, - path = _props.path, - depth = _props.depth, - nodeHasChildNodes = (0, _pathUtils.hasChildNodes)(data, dataIterator), - expanded = !!this.state.expandedPaths[path], - nodeRenderer = this.props.nodeRenderer; - return _react2.default.createElement( - _TreeNode2.default, - (0, _extends3.default)( - { - expanded: expanded, - onClick: nodeHasChildNodes ? this.handleClick.bind(this, path) : function() {}, - shouldShowArrow: nodeHasChildNodes, - shouldShowPlaceholder: depth > 0, - nodeRenderer: nodeRenderer - }, - this.props - ), - expanded ? this.renderChildNodes(data, path) : void 0 - ); - } - } - ]), - ConnectedTreeNode - ); - })(_react.Component); - (ConnectedTreeNode.propTypes = { - name: _propTypes2.default.string, - data: _propTypes2.default.any, - dataIterator: _propTypes2.default.func, - depth: _propTypes2.default.number, - expanded: _propTypes2.default.bool, - nodeRenderer: _propTypes2.default.func - }), - (ConnectedTreeNode.contextTypes = { store: _propTypes2.default.any }); - var TreeView = (function(_Component2) { - function TreeView(props) { - (0, _classCallCheck3.default)(this, TreeView); - var _this2 = (0, _possibleConstructorReturn3.default)( - this, - (TreeView.__proto__ || Object.getPrototypeOf(TreeView)).call(this, props) - ); - return ( - (_this2.store = { - storeState: { - expandedPaths: (0, _pathUtils.getExpandedPaths)( - props.data, - props.dataIterator, - props.expandPaths, - props.expandLevel - ) - } - }), - _this2 - ); - } - return ( - (0, _inherits3.default)(TreeView, _Component2), - (0, _createClass3.default)(TreeView, [ - { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps) { - this.store = { - storeState: { - expandedPaths: (0, _pathUtils.getExpandedPaths)( - nextProps.data, - nextProps.dataIterator, - nextProps.expandPaths, - nextProps.expandLevel, - this.store.storeState.expandedPaths - ) - } - }; - } - }, - { - key: 'getChildContext', - value: function getChildContext() { - return { store: this.store }; - } - }, - { - key: 'render', - value: function render() { - var _props2 = this.props, - name = _props2.name, - data = _props2.data, - dataIterator = _props2.dataIterator, - nodeRenderer = this.props.nodeRenderer, - rootPath = _pathUtils.DEFAULT_ROOT_PATH; - return _react2.default.createElement(ConnectedTreeNode, { - name: name, - data: data, - dataIterator: dataIterator, - depth: 0, - path: rootPath, - nodeRenderer: nodeRenderer - }); - } - } - ]), - TreeView - ); - })(_react.Component); - (TreeView.defaultProps = { expandLevel: 0, expandPaths: [] }), - (TreeView.childContextTypes = { store: _propTypes2.default.any }), - (TreeView.propTypes = { - name: _propTypes2.default.string, - data: _propTypes2.default.any, - dataIterator: _propTypes2.default.func, - nodeRenderer: _propTypes2.default.func - }), - (TreeView.defaultProps = { name: void 0 }), - (exports.default = TreeView); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _ObjectName2 = _interopRequireDefault(__webpack_require__(106)), - _ObjectPreview2 = _interopRequireDefault(__webpack_require__(578)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - exports.default = function ObjectRootLabel(_ref) { - var name = _ref.name, - data = _ref.data; - return 'string' == typeof name - ? _react2.default.createElement( - 'span', - null, - _react2.default.createElement(_ObjectName2.default, { name: name }), - _react2.default.createElement('span', null, ': '), - _react2.default.createElement(_ObjectPreview2.default, { data: data }) - ) - : _react2.default.createElement(_ObjectPreview2.default, { data: data }); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _ObjectName2 = _interopRequireDefault(__webpack_require__(106)), - _ObjectValue2 = _interopRequireDefault(__webpack_require__(107)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ObjectLabel = function ObjectLabel(_ref) { - var name = _ref.name, - data = _ref.data, - isNonenumerable = _ref.isNonenumerable, - object = data; - return _react2.default.createElement( - 'span', - null, - _react2.default.createElement(_ObjectName2.default, { - name: name, - dimmed: isNonenumerable - }), - _react2.default.createElement('span', null, ': '), - _react2.default.createElement(_ObjectValue2.default, { object: object }) - ); - }; - (ObjectLabel.propTypes = { isNonenumerable: _propTypes2.default.bool }), - (ObjectLabel.defaultProps = { isNonenumerable: !1 }), - (exports.default = ObjectLabel); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - exports.default = function shouldInline(data) { - return ( - 0 === data.childNodes.length || - (1 === data.childNodes.length && - data.childNodes[0].nodeType === Node.TEXT_NODE && - data.textContent.length < 80) - ); - }; - }, - , - , - , - , - , - , - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - emptyObject = __webpack_require__(93), - _invariant = __webpack_require__(3), - MIXINS_KEY = 'mixins'; - module.exports = function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { - var injectedMixins = [], - ReactClassInterface = { - mixins: 'DEFINE_MANY', - statics: 'DEFINE_MANY', - propTypes: 'DEFINE_MANY', - contextTypes: 'DEFINE_MANY', - childContextTypes: 'DEFINE_MANY', - getDefaultProps: 'DEFINE_MANY_MERGED', - getInitialState: 'DEFINE_MANY_MERGED', - getChildContext: 'DEFINE_MANY_MERGED', - render: 'DEFINE_ONCE', - componentWillMount: 'DEFINE_MANY', - componentDidMount: 'DEFINE_MANY', - componentWillReceiveProps: 'DEFINE_MANY', - shouldComponentUpdate: 'DEFINE_ONCE', - componentWillUpdate: 'DEFINE_MANY', - componentDidUpdate: 'DEFINE_MANY', - componentWillUnmount: 'DEFINE_MANY', - updateComponent: 'OVERRIDE_BASE' - }, - RESERVED_SPEC_KEYS = { - displayName: function(Constructor, displayName) { - Constructor.displayName = displayName; - }, - mixins: function(Constructor, mixins) { - if (mixins) - for (var i = 0; i < mixins.length; i++) mixSpecIntoComponent(Constructor, mixins[i]); - }, - childContextTypes: function(Constructor, childContextTypes) { - Constructor.childContextTypes = _assign( - {}, - Constructor.childContextTypes, - childContextTypes - ); - }, - contextTypes: function(Constructor, contextTypes) { - Constructor.contextTypes = _assign({}, Constructor.contextTypes, contextTypes); - }, - getDefaultProps: function(Constructor, getDefaultProps) { - Constructor.getDefaultProps - ? (Constructor.getDefaultProps = createMergedResultFunction( - Constructor.getDefaultProps, - getDefaultProps - )) - : (Constructor.getDefaultProps = getDefaultProps); - }, - propTypes: function(Constructor, propTypes) { - Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes); - }, - statics: function(Constructor, statics) { - !(function mixStaticSpecIntoComponent(Constructor, statics) { - if (statics) - for (var name in statics) { - var property = statics[name]; - if (statics.hasOwnProperty(name)) { - var isReserved = name in RESERVED_SPEC_KEYS; - _invariant( - !isReserved, - 'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.', - name - ); - var isInherited = name in Constructor; - _invariant( - !isInherited, - 'ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', - name - ), - (Constructor[name] = property); - } - } - })(Constructor, statics); - }, - autobind: function() {} - }; - function validateMethodOverride(isAlreadyDefined, name) { - var specPolicy = ReactClassInterface.hasOwnProperty(name) - ? ReactClassInterface[name] - : null; - ReactClassMixin.hasOwnProperty(name) && - _invariant( - 'OVERRIDE_BASE' === specPolicy, - 'ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.', - name - ), - isAlreadyDefined && - _invariant( - 'DEFINE_MANY' === specPolicy || 'DEFINE_MANY_MERGED' === specPolicy, - 'ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', - name - ); - } - function mixSpecIntoComponent(Constructor, spec) { - if (spec) { - _invariant( - 'function' != typeof spec, - "ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object." - ), - _invariant( - !isValidElement(spec), - "ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object." - ); - var proto = Constructor.prototype, - autoBindPairs = proto.__reactAutoBindPairs; - spec.hasOwnProperty(MIXINS_KEY) && RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins); - for (var name in spec) - if (spec.hasOwnProperty(name) && name !== MIXINS_KEY) { - var property = spec[name], - isAlreadyDefined = proto.hasOwnProperty(name); - if ( - (validateMethodOverride(isAlreadyDefined, name), - RESERVED_SPEC_KEYS.hasOwnProperty(name)) - ) - RESERVED_SPEC_KEYS[name](Constructor, property); - else { - var isReactClassMethod = ReactClassInterface.hasOwnProperty(name); - if ( - 'function' != typeof property || - isReactClassMethod || - isAlreadyDefined || - !1 === spec.autobind - ) - if (isAlreadyDefined) { - var specPolicy = ReactClassInterface[name]; - _invariant( - isReactClassMethod && - ('DEFINE_MANY_MERGED' === specPolicy || 'DEFINE_MANY' === specPolicy), - 'ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.', - specPolicy, - name - ), - 'DEFINE_MANY_MERGED' === specPolicy - ? (proto[name] = createMergedResultFunction(proto[name], property)) - : 'DEFINE_MANY' === specPolicy && - (proto[name] = createChainedFunction(proto[name], property)); - } else proto[name] = property; - else autoBindPairs.push(name, property), (proto[name] = property); - } - } - } - } - function mergeIntoWithNoDuplicateKeys(one, two) { - _invariant( - one && two && 'object' == typeof one && 'object' == typeof two, - 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.' - ); - for (var key in two) - two.hasOwnProperty(key) && - (_invariant( - void 0 === one[key], - 'mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.', - key - ), - (one[key] = two[key])); - return one; - } - function createMergedResultFunction(one, two) { - return function mergedResult() { - var a = one.apply(this, arguments), - b = two.apply(this, arguments); - if (null == a) return b; - if (null == b) return a; - var c = {}; - return mergeIntoWithNoDuplicateKeys(c, a), mergeIntoWithNoDuplicateKeys(c, b), c; - }; - } - function createChainedFunction(one, two) { - return function chainedFunction() { - one.apply(this, arguments), two.apply(this, arguments); - }; - } - function bindAutoBindMethod(component, method) { - var boundMethod = method.bind(component); - return boundMethod; - } - var IsMountedPreMixin = { - componentDidMount: function() { - this.__isMounted = !0; - } - }, - IsMountedPostMixin = { - componentWillUnmount: function() { - this.__isMounted = !1; - } - }, - ReactClassMixin = { - replaceState: function(newState, callback) { - this.updater.enqueueReplaceState(this, newState, callback); - }, - isMounted: function() { - return !!this.__isMounted; - } - }, - ReactClassComponent = function() {}; - return ( - _assign(ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin), - function createClass(spec) { - var Constructor = (function identity(fn) { - return fn; - })(function(props, context, updater) { - this.__reactAutoBindPairs.length && - (function bindAutoBindMethods(component) { - for (var pairs = component.__reactAutoBindPairs, i = 0; i < pairs.length; i += 2) { - var autoBindKey = pairs[i], - method = pairs[i + 1]; - component[autoBindKey] = bindAutoBindMethod(component, method); - } - })(this), - (this.props = props), - (this.context = context), - (this.refs = emptyObject), - (this.updater = updater || ReactNoopUpdateQueue), - (this.state = null); - var initialState = this.getInitialState ? this.getInitialState() : null; - _invariant( - 'object' == typeof initialState && !Array.isArray(initialState), - '%s.getInitialState(): must return an object or null', - Constructor.displayName || 'ReactCompositeComponent' - ), - (this.state = initialState); - }); - (Constructor.prototype = new ReactClassComponent()), - (Constructor.prototype.constructor = Constructor), - (Constructor.prototype.__reactAutoBindPairs = []), - injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor)), - mixSpecIntoComponent(Constructor, IsMountedPreMixin), - mixSpecIntoComponent(Constructor, spec), - mixSpecIntoComponent(Constructor, IsMountedPostMixin), - Constructor.getDefaultProps && - (Constructor.defaultProps = Constructor.getDefaultProps()), - _invariant( - Constructor.prototype.render, - 'createClass(...): Class specification must implement a `render` method.' - ); - for (var methodName in ReactClassInterface) - Constructor.prototype[methodName] || (Constructor.prototype[methodName] = null); - return Constructor; - } - ); - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(408), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - var dP = __webpack_require__(26), - anObject = __webpack_require__(24), - getKeys = __webpack_require__(72); - module.exports = __webpack_require__(29) - ? Object.defineProperties - : function defineProperties(O, Properties) { - anObject(O); - for (var P, keys = getKeys(Properties), length = keys.length, i = 0; length > i; ) - dP.f(O, (P = keys[i++]), Properties[P]); - return O; - }; - }, - function(module, exports) { - module.exports = function(done, value) { - return { value: value, done: !!done }; - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(419), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(422), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var global = __webpack_require__(17), - core = __webpack_require__(10), - dP = __webpack_require__(26), - DESCRIPTORS = __webpack_require__(29), - SPECIES = __webpack_require__(18)('species'); - module.exports = function(KEY) { - var C = 'function' == typeof core[KEY] ? core[KEY] : global[KEY]; - DESCRIPTORS && - C && - !C[SPECIES] && - dP.f(C, SPECIES, { - configurable: !0, - get: function() { - return this; - } - }); - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(434), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.setInitialStory = function setInitialStory(storyKindList) { - return { type: types.SET_INITIAL_STORY, storyKindList: storyKindList }; - }), - (exports.setError = function setError(error) { - return { type: types.SET_ERROR, error: error }; - }), - (exports.clearError = function clearError() { - return { type: types.CLEAR_ERROR }; - }), - (exports.selectStory = function selectStory(kind, story) { - return { type: types.SELECT_STORY, kind: kind, story: story }; - }); - var types = (exports.types = { - SET_ERROR: 'PREVIEW_SET_ERROR', - CLEAR_ERROR: 'PREVIEW_CLEAR_ERROR', - SELECT_STORY: 'PREVIEW_SELECT_STORY', - SET_INITIAL_STORY: 'PREVIEW_SET_INITIAL_STORY' - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var camelize = __webpack_require__(462), - msPattern = /^-ms-/; - module.exports = function camelizeStyleName(string) { - return camelize(string.replace(msPattern, 'ms-')); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var hyphenate = __webpack_require__(464), - msPattern = /^ms-/; - module.exports = function hyphenateStyleName(string) { - return hyphenate(string).replace(msPattern, '-ms-'); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function memoizeStringOnly(callback) { - var cache = {}; - return function(string) { - return ( - cache.hasOwnProperty(string) || (cache[string] = callback.call(this, string)), - cache[string] - ); - }; - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(514), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.features = void 0), - (exports.isModifierPressed = isModifierPressed), - (exports.default = function handle(e) { - if (e.keyCode === (0, _keycode2.default)('escape')) return features.ESCAPE; - if ( - (function focusInInput(e) { - return ( - /input|textarea/i.test(e.target.tagName) || - null !== e.target.getAttribute('contenteditable') - ); - })(e) - ) - return !1; - if (!isModifierPressed(e)) return !1; - switch (e.keyCode) { - case (0, _keycode2.default)('F'): - return e.preventDefault(), features.FULLSCREEN; - case (0, _keycode2.default)('C'): - case (0, _keycode2.default)('D'): - return e.preventDefault(), features.ADDON_PANEL; - case (0, _keycode2.default)('X'): - case (0, _keycode2.default)('L'): - return e.preventDefault(), features.STORIES_PANEL; - case (0, _keycode2.default)('right'): - return e.preventDefault(), features.NEXT_STORY; - case (0, _keycode2.default)('left'): - return e.preventDefault(), features.PREV_STORY; - case (0, _keycode2.default)('O'): - case (0, _keycode2.default)('P'): - return e.preventDefault(), features.SHOW_SEARCH; - case (0, _keycode2.default)('G'): - case (0, _keycode2.default)('J'): - return e.preventDefault(), features.ADDON_PANEL_IN_RIGHT; - default: - return !1; - } - }); - var _keycode2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(522)); - var features = (exports.features = { - FULLSCREEN: 'FULLSCREEN', - ADDON_PANEL: 'ADDON_PANEL', - STORIES_PANEL: 'STORIES_PANEL', - SHORTCUTS_HELP: 'SHORTCUTS_HELP', - ESCAPE: 'ESCAPE', - NEXT_STORY: 'NEXT_STORY', - PREV_STORY: 'PREV_STORY', - SHOW_SEARCH: 'SHOW_SEARCH', - ADDON_PANEL_IN_RIGHT: 'ADDON_PANEL_IN_RIGHT' - }); - function isModifierPressed(e) { - return (e.ctrlKey || 91 === e.keyCode || e.metaKey) && e.shiftKey; - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var global = __webpack_require__(17), - $export = __webpack_require__(16), - meta = __webpack_require__(77), - fails = __webpack_require__(43), - hide = __webpack_require__(42), - redefineAll = __webpack_require__(121), - forOf = __webpack_require__(78), - anInstance = __webpack_require__(120), - isObject = __webpack_require__(20), - setToStringTag = __webpack_require__(76), - dP = __webpack_require__(26).f, - each = __webpack_require__(171)(0), - DESCRIPTORS = __webpack_require__(29); - module.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { - var Base = global[NAME], - C = Base, - ADDER = IS_MAP ? 'set' : 'add', - proto = C && C.prototype, - O = {}; - return ( - DESCRIPTORS && - 'function' == typeof C && - (IS_WEAK || - (proto.forEach && - !fails(function() { - new C().entries().next(); - }))) - ? ((C = wrapper(function(target, iterable) { - anInstance(target, C, NAME, '_c'), - (target._c = new Base()), - void 0 != iterable && forOf(iterable, IS_MAP, target[ADDER], target); - })), - each( - 'add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), - function(KEY) { - var IS_ADDER = 'add' == KEY || 'set' == KEY; - KEY in proto && - (!IS_WEAK || 'clear' != KEY) && - hide(C.prototype, KEY, function(a, b) { - if ((anInstance(this, C, KEY), !IS_ADDER && IS_WEAK && !isObject(a))) - return 'get' == KEY && void 0; - var result = this._c[KEY](0 === a ? 0 : a, b); - return IS_ADDER ? this : result; - }); - } - ), - IS_WEAK || - dP(C.prototype, 'size', { - get: function() { - return this._c.size; - } - })) - : ((C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER)), - redefineAll(C.prototype, methods), - (meta.NEED = !0)), - setToStringTag(C, NAME), - (O[NAME] = C), - $export($export.G + $export.W + $export.F, O), - IS_WEAK || common.setStrong(C, NAME, IS_MAP), - C - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var $export = __webpack_require__(16); - module.exports = function(COLLECTION) { - $export($export.S, COLLECTION, { - of: function of() { - for (var length = arguments.length, A = new Array(length); length--; ) - A[length] = arguments[length]; - return new this(A); - } - }); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var $export = __webpack_require__(16), - aFunction = __webpack_require__(74), - ctx = __webpack_require__(35), - forOf = __webpack_require__(78); - module.exports = function(COLLECTION) { - $export($export.S, COLLECTION, { - from: function from(source) { - var mapping, - A, - n, - cb, - mapFn = arguments[1]; - return ( - aFunction(this), - (mapping = void 0 !== mapFn) && aFunction(mapFn), - void 0 == source - ? new this() - : ((A = []), - mapping - ? ((n = 0), - (cb = ctx(mapFn, arguments[2], 2)), - forOf(source, !1, function(nextItem) { - A.push(cb(nextItem, n++)); - })) - : forOf(source, !1, A.push, A), - new this(A)) - ); - } - }); - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(538), __esModule: !0 }; - }, - , - , - , - , - , - , - , - , - , - , - , - , - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(305), __webpack_require__(323), __webpack_require__(331); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(306), - __webpack_require__(321), - (module.exports = __webpack_require__(67).Symbol); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var global = __webpack_require__(36), - has = __webpack_require__(37), - DESCRIPTORS = __webpack_require__(51), - $export = __webpack_require__(190), - redefine = __webpack_require__(91), - META = __webpack_require__(309).KEY, - $fails = __webpack_require__(88), - shared = __webpack_require__(126), - setToStringTag = __webpack_require__(127), - uid = __webpack_require__(69), - wks = __webpack_require__(38), - wksExt = __webpack_require__(193), - wksDefine = __webpack_require__(310), - enumKeys = __webpack_require__(311), - isArray = __webpack_require__(316), - anObject = __webpack_require__(89), - isObject = __webpack_require__(68), - toIObject = __webpack_require__(54), - toPrimitive = __webpack_require__(125), - createDesc = __webpack_require__(90), - _create = __webpack_require__(198), - gOPNExt = __webpack_require__(319), - $GOPD = __webpack_require__(320), - $DP = __webpack_require__(53), - $keys = __webpack_require__(129), - gOPD = $GOPD.f, - dP = $DP.f, - gOPN = gOPNExt.f, - $Symbol = global.Symbol, - $JSON = global.JSON, - _stringify = $JSON && $JSON.stringify, - HIDDEN = wks('_hidden'), - TO_PRIMITIVE = wks('toPrimitive'), - isEnum = {}.propertyIsEnumerable, - SymbolRegistry = shared('symbol-registry'), - AllSymbols = shared('symbols'), - OPSymbols = shared('op-symbols'), - ObjectProto = Object.prototype, - USE_NATIVE = 'function' == typeof $Symbol, - QObject = global.QObject, - setter = !QObject || !QObject.prototype || !QObject.prototype.findChild, - setSymbolDesc = - DESCRIPTORS && - $fails(function() { - return ( - 7 != - _create( - dP({}, 'a', { - get: function() { - return dP(this, 'a', { value: 7 }).a; - } - }) - ).a - ); - }) - ? function(it, key, D) { - var protoDesc = gOPD(ObjectProto, key); - protoDesc && delete ObjectProto[key], - dP(it, key, D), - protoDesc && it !== ObjectProto && dP(ObjectProto, key, protoDesc); - } - : dP, - wrap = function(tag) { - var sym = (AllSymbols[tag] = _create($Symbol.prototype)); - return (sym._k = tag), sym; - }, - isSymbol = - USE_NATIVE && 'symbol' == typeof $Symbol.iterator - ? function(it) { - return 'symbol' == typeof it; - } - : function(it) { - return it instanceof $Symbol; - }, - $defineProperty = function defineProperty(it, key, D) { - return ( - it === ObjectProto && $defineProperty(OPSymbols, key, D), - anObject(it), - (key = toPrimitive(key, !0)), - anObject(D), - has(AllSymbols, key) - ? (D.enumerable - ? (has(it, HIDDEN) && it[HIDDEN][key] && (it[HIDDEN][key] = !1), - (D = _create(D, { enumerable: createDesc(0, !1) }))) - : (has(it, HIDDEN) || dP(it, HIDDEN, createDesc(1, {})), (it[HIDDEN][key] = !0)), - setSymbolDesc(it, key, D)) - : dP(it, key, D) - ); - }, - $defineProperties = function defineProperties(it, P) { - anObject(it); - for (var key, keys = enumKeys((P = toIObject(P))), i = 0, l = keys.length; l > i; ) - $defineProperty(it, (key = keys[i++]), P[key]); - return it; - }, - $propertyIsEnumerable = function propertyIsEnumerable(key) { - var E = isEnum.call(this, (key = toPrimitive(key, !0))); - return ( - !(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) && - (!( - E || - !has(this, key) || - !has(AllSymbols, key) || - (has(this, HIDDEN) && this[HIDDEN][key]) - ) || - E) - ); - }, - $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { - if ( - ((it = toIObject(it)), - (key = toPrimitive(key, !0)), - it !== ObjectProto || !has(AllSymbols, key) || has(OPSymbols, key)) - ) { - var D = gOPD(it, key); - return ( - !D || - !has(AllSymbols, key) || - (has(it, HIDDEN) && it[HIDDEN][key]) || - (D.enumerable = !0), - D - ); - } - }, - $getOwnPropertyNames = function getOwnPropertyNames(it) { - for (var key, names = gOPN(toIObject(it)), result = [], i = 0; names.length > i; ) - has(AllSymbols, (key = names[i++])) || key == HIDDEN || key == META || result.push(key); - return result; - }, - $getOwnPropertySymbols = function getOwnPropertySymbols(it) { - for ( - var key, - IS_OP = it === ObjectProto, - names = gOPN(IS_OP ? OPSymbols : toIObject(it)), - result = [], - i = 0; - names.length > i; - - ) - !has(AllSymbols, (key = names[i++])) || - (IS_OP && !has(ObjectProto, key)) || - result.push(AllSymbols[key]); - return result; - }; - USE_NATIVE || - (redefine( - ($Symbol = function Symbol() { - if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); - var tag = uid(arguments.length > 0 ? arguments[0] : void 0), - $set = function(value) { - this === ObjectProto && $set.call(OPSymbols, value), - has(this, HIDDEN) && has(this[HIDDEN], tag) && (this[HIDDEN][tag] = !1), - setSymbolDesc(this, tag, createDesc(1, value)); - }; - return ( - DESCRIPTORS && - setter && - setSymbolDesc(ObjectProto, tag, { configurable: !0, set: $set }), - wrap(tag) - ); - }).prototype, - 'toString', - function toString() { - return this._k; - } - ), - ($GOPD.f = $getOwnPropertyDescriptor), - ($DP.f = $defineProperty), - (__webpack_require__(199).f = gOPNExt.f = $getOwnPropertyNames), - (__webpack_require__(133).f = $propertyIsEnumerable), - (__webpack_require__(197).f = $getOwnPropertySymbols), - DESCRIPTORS && - !__webpack_require__(128) && - redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, !0), - (wksExt.f = function(name) { - return wrap(wks(name)); - })), - $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); - for ( - var es6Symbols = 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'.split( - ',' - ), - j = 0; - es6Symbols.length > j; - - ) - wks(es6Symbols[j++]); - for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k; ) - wksDefine(wellKnownSymbols[k++]); - $export($export.S + $export.F * !USE_NATIVE, 'Symbol', { - for: function(key) { - return has(SymbolRegistry, (key += '')) - ? SymbolRegistry[key] - : (SymbolRegistry[key] = $Symbol(key)); - }, - keyFor: function keyFor(sym) { - if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); - for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; - }, - useSetter: function() { - setter = !0; - }, - useSimple: function() { - setter = !1; - } - }), - $export($export.S + $export.F * !USE_NATIVE, 'Object', { - create: function create(it, P) { - return void 0 === P ? _create(it) : $defineProperties(_create(it), P); - }, - defineProperty: $defineProperty, - defineProperties: $defineProperties, - getOwnPropertyDescriptor: $getOwnPropertyDescriptor, - getOwnPropertyNames: $getOwnPropertyNames, - getOwnPropertySymbols: $getOwnPropertySymbols - }), - $JSON && - $export( - $export.S + - $export.F * - (!USE_NATIVE || - $fails(function() { - var S = $Symbol(); - return ( - '[null]' != _stringify([S]) || - '{}' != _stringify({ a: S }) || - '{}' != _stringify(Object(S)) - ); - })), - 'JSON', - { - stringify: function stringify(it) { - for (var replacer, $replacer, args = [it], i = 1; arguments.length > i; ) - args.push(arguments[i++]); - if ( - (($replacer = replacer = args[1]), - (isObject(replacer) || void 0 !== it) && !isSymbol(it)) - ) - return ( - isArray(replacer) || - (replacer = function(key, value) { - if ( - ('function' == typeof $replacer && - (value = $replacer.call(this, key, value)), - !isSymbol(value)) - ) - return value; - }), - (args[1] = replacer), - _stringify.apply($JSON, args) - ); - } - } - ), - $Symbol.prototype[TO_PRIMITIVE] || - __webpack_require__(52)($Symbol.prototype, TO_PRIMITIVE, $Symbol.prototype.valueOf), - setToStringTag($Symbol, 'Symbol'), - setToStringTag(Math, 'Math', !0), - setToStringTag(global.JSON, 'JSON', !0); - }, - function(module, exports, __webpack_require__) { - var aFunction = __webpack_require__(308); - module.exports = function(fn, that, length) { - if ((aFunction(fn), void 0 === that)) return fn; - switch (length) { - case 1: - return function(a) { - return fn.call(that, a); - }; - case 2: - return function(a, b) { - return fn.call(that, a, b); - }; - case 3: - return function(a, b, c) { - return fn.call(that, a, b, c); - }; - } - return function() { - return fn.apply(that, arguments); - }; - }; - }, - function(module, exports) { - module.exports = function(it) { - if ('function' != typeof it) throw TypeError(it + ' is not a function!'); - return it; - }; - }, - function(module, exports, __webpack_require__) { - var META = __webpack_require__(69)('meta'), - isObject = __webpack_require__(68), - has = __webpack_require__(37), - setDesc = __webpack_require__(53).f, - id = 0, - isExtensible = - Object.isExtensible || - function() { - return !0; - }, - FREEZE = !__webpack_require__(88)(function() { - return isExtensible(Object.preventExtensions({})); - }), - setMeta = function(it) { - setDesc(it, META, { value: { i: 'O' + ++id, w: {} } }); - }, - meta = (module.exports = { - KEY: META, - NEED: !1, - fastKey: function(it, create) { - if (!isObject(it)) - return 'symbol' == typeof it ? it : ('string' == typeof it ? 'S' : 'P') + it; - if (!has(it, META)) { - if (!isExtensible(it)) return 'F'; - if (!create) return 'E'; - setMeta(it); - } - return it[META].i; - }, - getWeak: function(it, create) { - if (!has(it, META)) { - if (!isExtensible(it)) return !0; - if (!create) return !1; - setMeta(it); - } - return it[META].w; - }, - onFreeze: function(it) { - return FREEZE && meta.NEED && isExtensible(it) && !has(it, META) && setMeta(it), it; - } - }); - }, - function(module, exports, __webpack_require__) { - var global = __webpack_require__(36), - core = __webpack_require__(67), - LIBRARY = __webpack_require__(128), - wksExt = __webpack_require__(193), - defineProperty = __webpack_require__(53).f; - module.exports = function(name) { - var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); - '_' == name.charAt(0) || - name in $Symbol || - defineProperty($Symbol, name, { value: wksExt.f(name) }); - }; - }, - function(module, exports, __webpack_require__) { - var getKeys = __webpack_require__(129), - gOPS = __webpack_require__(197), - pIE = __webpack_require__(133); - module.exports = function(it) { - var result = getKeys(it), - getSymbols = gOPS.f; - if (getSymbols) - for (var key, symbols = getSymbols(it), isEnum = pIE.f, i = 0; symbols.length > i; ) - isEnum.call(it, (key = symbols[i++])) && result.push(key); - return result; - }; - }, - function(module, exports, __webpack_require__) { - var cof = __webpack_require__(130); - module.exports = Object('z').propertyIsEnumerable(0) - ? Object - : function(it) { - return 'String' == cof(it) ? it.split('') : Object(it); - }; - }, - function(module, exports, __webpack_require__) { - var toIObject = __webpack_require__(54), - toLength = __webpack_require__(314), - toAbsoluteIndex = __webpack_require__(315); - module.exports = function(IS_INCLUDES) { - return function($this, el, fromIndex) { - var value, - O = toIObject($this), - length = toLength(O.length), - index = toAbsoluteIndex(fromIndex, length); - if (IS_INCLUDES && el != el) { - for (; length > index; ) if ((value = O[index++]) != value) return !0; - } else - for (; length > index; index++) - if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; - return !IS_INCLUDES && -1; - }; - }; - }, - function(module, exports, __webpack_require__) { - var toInteger = __webpack_require__(196), - min = Math.min; - module.exports = function(it) { - return it > 0 ? min(toInteger(it), 9007199254740991) : 0; - }; - }, - function(module, exports, __webpack_require__) { - var toInteger = __webpack_require__(196), - max = Math.max, - min = Math.min; - module.exports = function(index, length) { - return (index = toInteger(index)) < 0 ? max(index + length, 0) : min(index, length); - }; - }, - function(module, exports, __webpack_require__) { - var cof = __webpack_require__(130); - module.exports = - Array.isArray || - function isArray(arg) { - return 'Array' == cof(arg); - }; - }, - function(module, exports, __webpack_require__) { - var dP = __webpack_require__(53), - anObject = __webpack_require__(89), - getKeys = __webpack_require__(129); - module.exports = __webpack_require__(51) - ? Object.defineProperties - : function defineProperties(O, Properties) { - anObject(O); - for (var P, keys = getKeys(Properties), length = keys.length, i = 0; length > i; ) - dP.f(O, (P = keys[i++]), Properties[P]); - return O; - }; - }, - function(module, exports, __webpack_require__) { - var document = __webpack_require__(36).document; - module.exports = document && document.documentElement; - }, - function(module, exports, __webpack_require__) { - var toIObject = __webpack_require__(54), - gOPN = __webpack_require__(199).f, - toString = {}.toString, - windowNames = - 'object' == typeof window && window && Object.getOwnPropertyNames - ? Object.getOwnPropertyNames(window) - : []; - module.exports.f = function getOwnPropertyNames(it) { - return windowNames && '[object Window]' == toString.call(it) - ? (function(it) { - try { - return gOPN(it); - } catch (e) { - return windowNames.slice(); - } - })(it) - : gOPN(toIObject(it)); - }; - }, - function(module, exports, __webpack_require__) { - var pIE = __webpack_require__(133), - createDesc = __webpack_require__(90), - toIObject = __webpack_require__(54), - toPrimitive = __webpack_require__(125), - has = __webpack_require__(37), - IE8_DOM_DEFINE = __webpack_require__(191), - gOPD = Object.getOwnPropertyDescriptor; - exports.f = __webpack_require__(51) - ? gOPD - : function getOwnPropertyDescriptor(O, P) { - if (((O = toIObject(O)), (P = toPrimitive(P, !0)), IE8_DOM_DEFINE)) - try { - return gOPD(O, P); - } catch (e) {} - if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var classof = __webpack_require__(322), - test = {}; - (test[__webpack_require__(38)('toStringTag')] = 'z'), - test + '' != '[object z]' && - __webpack_require__(91)( - Object.prototype, - 'toString', - function toString() { - return '[object ' + classof(this) + ']'; - }, - !0 - ); - }, - function(module, exports, __webpack_require__) { - var cof = __webpack_require__(130), - TAG = __webpack_require__(38)('toStringTag'), - ARG = - 'Arguments' == - cof( - (function() { - return arguments; - })() - ); - module.exports = function(it) { - var O, T, B; - return void 0 === it - ? 'Undefined' - : null === it - ? 'Null' - : 'string' == - typeof (T = (function(it, key) { - try { - return it[key]; - } catch (e) {} - })((O = Object(it)), TAG)) - ? T - : ARG - ? cof(O) - : 'Object' == (B = cof(O)) && 'function' == typeof O.callee ? 'Arguments' : B; - }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(324), (module.exports = __webpack_require__(67).Array.values); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var addToUnscopables = __webpack_require__(325), - step = __webpack_require__(326), - Iterators = __webpack_require__(200), - toIObject = __webpack_require__(54); - (module.exports = __webpack_require__(327)( - Array, - 'Array', - function(iterated, kind) { - (this._t = toIObject(iterated)), (this._i = 0), (this._k = kind); - }, - function() { - var O = this._t, - kind = this._k, - index = this._i++; - return !O || index >= O.length - ? ((this._t = void 0), step(1)) - : step(0, 'keys' == kind ? index : 'values' == kind ? O[index] : [index, O[index]]); - }, - 'values' - )), - (Iterators.Arguments = Iterators.Array), - addToUnscopables('keys'), - addToUnscopables('values'), - addToUnscopables('entries'); - }, - function(module, exports, __webpack_require__) { - var UNSCOPABLES = __webpack_require__(38)('unscopables'), - ArrayProto = Array.prototype; - void 0 == ArrayProto[UNSCOPABLES] && __webpack_require__(52)(ArrayProto, UNSCOPABLES, {}), - (module.exports = function(key) { - ArrayProto[UNSCOPABLES][key] = !0; - }); - }, - function(module, exports) { - module.exports = function(done, value) { - return { value: value, done: !!done }; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var LIBRARY = __webpack_require__(128), - $export = __webpack_require__(190), - redefine = __webpack_require__(91), - hide = __webpack_require__(52), - has = __webpack_require__(37), - Iterators = __webpack_require__(200), - $iterCreate = __webpack_require__(328), - setToStringTag = __webpack_require__(127), - getPrototypeOf = __webpack_require__(329), - ITERATOR = __webpack_require__(38)('iterator'), - BUGGY = !([].keys && 'next' in [].keys()), - returnThis = function() { - return this; - }; - module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { - $iterCreate(Constructor, NAME, next); - var methods, - key, - IteratorPrototype, - getMethod = function(kind) { - if (!BUGGY && kind in proto) return proto[kind]; - switch (kind) { - case 'keys': - return function keys() { - return new Constructor(this, kind); - }; - case 'values': - return function values() { - return new Constructor(this, kind); - }; - } - return function entries() { - return new Constructor(this, kind); - }; - }, - TAG = NAME + ' Iterator', - DEF_VALUES = 'values' == DEFAULT, - VALUES_BUG = !1, - proto = Base.prototype, - $native = proto[ITERATOR] || proto['@@iterator'] || (DEFAULT && proto[DEFAULT]), - $default = (!BUGGY && $native) || getMethod(DEFAULT), - $entries = DEFAULT ? (DEF_VALUES ? getMethod('entries') : $default) : void 0, - $anyNative = ('Array' == NAME && proto.entries) || $native; - if ( - ($anyNative && - (IteratorPrototype = getPrototypeOf($anyNative.call(new Base()))) !== Object.prototype && - IteratorPrototype.next && - (setToStringTag(IteratorPrototype, TAG, !0), - LIBRARY || - has(IteratorPrototype, ITERATOR) || - hide(IteratorPrototype, ITERATOR, returnThis)), - DEF_VALUES && - $native && - 'values' !== $native.name && - ((VALUES_BUG = !0), - ($default = function values() { - return $native.call(this); - })), - (LIBRARY && !FORCED) || - (!BUGGY && !VALUES_BUG && proto[ITERATOR]) || - hide(proto, ITERATOR, $default), - (Iterators[NAME] = $default), - (Iterators[TAG] = returnThis), - DEFAULT) - ) - if ( - ((methods = { - values: DEF_VALUES ? $default : getMethod('values'), - keys: IS_SET ? $default : getMethod('keys'), - entries: $entries - }), - FORCED) - ) - for (key in methods) key in proto || redefine(proto, key, methods[key]); - else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); - return methods; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var create = __webpack_require__(198), - descriptor = __webpack_require__(90), - setToStringTag = __webpack_require__(127), - IteratorPrototype = {}; - __webpack_require__(52)(IteratorPrototype, __webpack_require__(38)('iterator'), function() { - return this; - }), - (module.exports = function(Constructor, NAME, next) { - (Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) })), - setToStringTag(Constructor, NAME + ' Iterator'); - }); - }, - function(module, exports, __webpack_require__) { - var has = __webpack_require__(37), - toObject = __webpack_require__(330), - IE_PROTO = __webpack_require__(131)('IE_PROTO'), - ObjectProto = Object.prototype; - module.exports = - Object.getPrototypeOf || - function(O) { - return ( - (O = toObject(O)), - has(O, IE_PROTO) - ? O[IE_PROTO] - : 'function' == typeof O.constructor && O instanceof O.constructor - ? O.constructor.prototype - : O instanceof Object ? ObjectProto : null - ); - }; - }, - function(module, exports, __webpack_require__) { - var defined = __webpack_require__(195); - module.exports = function(it) { - return Object(defined(it)); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(332); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(333), __webpack_require__(334), __webpack_require__(335); - }, - function(module, exports, __webpack_require__) { - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__; - !(function(root, factory) { - 'use strict'; - void 0 === - (__WEBPACK_AMD_DEFINE_RESULT__ = - 'function' == typeof (__WEBPACK_AMD_DEFINE_FACTORY__ = factory) - ? __WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module) - : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); - })(0, function() { - var isRegex, - isString, - $Array = Array, - ArrayPrototype = $Array.prototype, - $Object = Object, - ObjectPrototype = $Object.prototype, - $Function = Function, - FunctionPrototype = $Function.prototype, - $String = String, - StringPrototype = $String.prototype, - $Number = Number, - NumberPrototype = $Number.prototype, - array_slice = ArrayPrototype.slice, - array_splice = ArrayPrototype.splice, - array_push = ArrayPrototype.push, - array_unshift = ArrayPrototype.unshift, - array_concat = ArrayPrototype.concat, - array_join = ArrayPrototype.join, - call = FunctionPrototype.call, - apply = FunctionPrototype.apply, - max = Math.max, - min = Math.min, - to_string = ObjectPrototype.toString, - hasToStringTag = 'function' == typeof Symbol && 'symbol' == typeof Symbol.toStringTag, - fnToStr = Function.prototype.toString, - constructorRegex = /^\s*class /, - isES6ClassFn = function isES6ClassFn(value) { - try { - var spaceStripped = fnToStr - .call(value) - .replace(/\/\/.*\n/g, '') - .replace(/\/\*[.\s\S]*\*\//g, '') - .replace(/\n/gm, ' ') - .replace(/ {2}/g, ' '); - return constructorRegex.test(spaceStripped); - } catch (e) { - return !1; - } - }, - isCallable = function isCallable(value) { - if (!value) return !1; - if ('function' != typeof value && 'object' != typeof value) return !1; - if (hasToStringTag) - return (function tryFunctionObject(value) { - try { - return !isES6ClassFn(value) && (fnToStr.call(value), !0); - } catch (e) { - return !1; - } - })(value); - if (isES6ClassFn(value)) return !1; - var strClass = to_string.call(value); - return '[object Function]' === strClass || '[object GeneratorFunction]' === strClass; - }, - regexExec = RegExp.prototype.exec; - isRegex = function isRegex(value) { - return ( - 'object' == typeof value && - (hasToStringTag - ? (function tryRegexExec(value) { - try { - return regexExec.call(value), !0; - } catch (e) { - return !1; - } - })(value) - : '[object RegExp]' === to_string.call(value)) - ); - }; - var strValue = String.prototype.valueOf; - isString = function isString(value) { - return ( - 'string' == typeof value || - ('object' == typeof value && - (hasToStringTag - ? (function tryStringObject(value) { - try { - return strValue.call(value), !0; - } catch (e) { - return !1; - } - })(value) - : '[object String]' === to_string.call(value))) - ); - }; - var has, - defineProperty, - supportsDescriptors = - $Object.defineProperty && - (function() { - try { - var obj = {}; - $Object.defineProperty(obj, 'x', { enumerable: !1, value: obj }); - for (var _ in obj) return !1; - return obj.x === obj; - } catch (e) { - return !1; - } - })(), - defineProperties = ((has = ObjectPrototype.hasOwnProperty), - (defineProperty = supportsDescriptors - ? function(object, name, method, forceAssign) { - (!forceAssign && name in object) || - $Object.defineProperty(object, name, { - configurable: !0, - enumerable: !1, - writable: !0, - value: method - }); - } - : function(object, name, method, forceAssign) { - (!forceAssign && name in object) || (object[name] = method); - }), - function defineProperties(object, map, forceAssign) { - for (var name in map) - has.call(map, name) && defineProperty(object, name, map[name], forceAssign); - }), - isPrimitive = function isPrimitive(input) { - var type = typeof input; - return null === input || ('object' !== type && 'function' !== type); - }, - isActualNaN = - $Number.isNaN || - function isActualNaN(x) { - return x != x; - }, - ES_ToInteger = function ToInteger(num) { - var n = +num; - return ( - isActualNaN(n) - ? (n = 0) - : 0 !== n && - n !== 1 / 0 && - n !== -1 / 0 && - (n = (n > 0 || -1) * Math.floor(Math.abs(n))), - n - ); - }, - ES_ToPrimitive = function ToPrimitive(input) { - var val, valueOf, toStr; - if (isPrimitive(input)) return input; - if ( - ((valueOf = input.valueOf), - isCallable(valueOf) && ((val = valueOf.call(input)), isPrimitive(val))) - ) - return val; - if ( - ((toStr = input.toString), - isCallable(toStr) && ((val = toStr.call(input)), isPrimitive(val))) - ) - return val; - throw new TypeError(); - }, - ES_ToObject = function(o) { - if (null == o) throw new TypeError("can't convert " + o + ' to object'); - return $Object(o); - }, - ES_ToUint_ = function ToUint32(x) { - return x >>> 0; - }, - Empty = function Empty() {}; - defineProperties(FunctionPrototype, { - bind: function bind(that) { - var target = this; - if (!isCallable(target)) - throw new TypeError('Function.prototype.bind called on incompatible ' + target); - for ( - var bound, - args = array_slice.call(arguments, 1), - boundLength = max(0, target.length - args.length), - boundArgs = [], - i = 0; - i < boundLength; - i++ - ) - array_push.call(boundArgs, '$' + i); - return ( - (bound = $Function( - 'binder', - 'return function (' + - array_join.call(boundArgs, ',') + - '){ return binder.apply(this, arguments); }' - )(function() { - if (this instanceof bound) { - var result = apply.call( - target, - this, - array_concat.call(args, array_slice.call(arguments)) - ); - return $Object(result) === result ? result : this; - } - return apply.call(target, that, array_concat.call(args, array_slice.call(arguments))); - })), - target.prototype && - ((Empty.prototype = target.prototype), - (bound.prototype = new Empty()), - (Empty.prototype = null)), - bound - ); - } - }); - var owns = call.bind(ObjectPrototype.hasOwnProperty), - toStr = call.bind(ObjectPrototype.toString), - arraySlice = call.bind(array_slice), - arraySliceApply = apply.bind(array_slice); - if ('object' == typeof document && document && document.documentElement) - try { - arraySlice(document.documentElement.childNodes); - } catch (e) { - var origArraySlice = arraySlice, - origArraySliceApply = arraySliceApply; - (arraySlice = function arraySliceIE(arr) { - for (var r = [], i = arr.length; i-- > 0; ) r[i] = arr[i]; - return origArraySliceApply(r, origArraySlice(arguments, 1)); - }), - (arraySliceApply = function arraySliceApplyIE(arr, args) { - return origArraySliceApply(arraySlice(arr), args); - }); - } - var strSlice = call.bind(StringPrototype.slice), - strSplit = call.bind(StringPrototype.split), - strIndexOf = call.bind(StringPrototype.indexOf), - pushCall = call.bind(array_push), - isEnum = call.bind(ObjectPrototype.propertyIsEnumerable), - arraySort = call.bind(ArrayPrototype.sort), - isArray = - $Array.isArray || - function isArray(obj) { - return '[object Array]' === toStr(obj); - }, - hasUnshiftReturnValueBug = 1 !== [].unshift(0); - defineProperties( - ArrayPrototype, - { - unshift: function() { - return array_unshift.apply(this, arguments), this.length; - } - }, - hasUnshiftReturnValueBug - ), - defineProperties($Array, { isArray: isArray }); - var boxedString = $Object('a'), - splitString = 'a' !== boxedString[0] || !(0 in boxedString), - properlyBoxesContext = function properlyBoxed(method) { - var properlyBoxesNonStrict = !0, - properlyBoxesStrict = !0, - threwException = !1; - if (method) - try { - method.call('foo', function(_, __, context) { - 'object' != typeof context && (properlyBoxesNonStrict = !1); - }), - method.call( - [1], - function() { - 'use strict'; - properlyBoxesStrict = 'string' == typeof this; - }, - 'x' - ); - } catch (e) { - threwException = !0; - } - return !!method && !threwException && properlyBoxesNonStrict && properlyBoxesStrict; - }; - defineProperties( - ArrayPrototype, - { - forEach: function forEach(callbackfn) { - var T, - object = ES_ToObject(this), - self = splitString && isString(this) ? strSplit(this, '') : object, - i = -1, - length = ES_ToUint_(self.length); - if ((arguments.length > 1 && (T = arguments[1]), !isCallable(callbackfn))) - throw new TypeError('Array.prototype.forEach callback must be a function'); - for (; ++i < length; ) - i in self && - (void 0 === T - ? callbackfn(self[i], i, object) - : callbackfn.call(T, self[i], i, object)); - } - }, - !properlyBoxesContext(ArrayPrototype.forEach) - ), - defineProperties( - ArrayPrototype, - { - map: function map(callbackfn) { - var T, - object = ES_ToObject(this), - self = splitString && isString(this) ? strSplit(this, '') : object, - length = ES_ToUint_(self.length), - result = $Array(length); - if ((arguments.length > 1 && (T = arguments[1]), !isCallable(callbackfn))) - throw new TypeError('Array.prototype.map callback must be a function'); - for (var i = 0; i < length; i++) - i in self && - (result[i] = - void 0 === T - ? callbackfn(self[i], i, object) - : callbackfn.call(T, self[i], i, object)); - return result; - } - }, - !properlyBoxesContext(ArrayPrototype.map) - ), - defineProperties( - ArrayPrototype, - { - filter: function filter(callbackfn) { - var value, - T, - object = ES_ToObject(this), - self = splitString && isString(this) ? strSplit(this, '') : object, - length = ES_ToUint_(self.length), - result = []; - if ((arguments.length > 1 && (T = arguments[1]), !isCallable(callbackfn))) - throw new TypeError('Array.prototype.filter callback must be a function'); - for (var i = 0; i < length; i++) - i in self && - ((value = self[i]), - (void 0 === T - ? callbackfn(value, i, object) - : callbackfn.call(T, value, i, object)) && pushCall(result, value)); - return result; - } - }, - !properlyBoxesContext(ArrayPrototype.filter) - ), - defineProperties( - ArrayPrototype, - { - every: function every(callbackfn) { - var T, - object = ES_ToObject(this), - self = splitString && isString(this) ? strSplit(this, '') : object, - length = ES_ToUint_(self.length); - if ((arguments.length > 1 && (T = arguments[1]), !isCallable(callbackfn))) - throw new TypeError('Array.prototype.every callback must be a function'); - for (var i = 0; i < length; i++) - if ( - i in self && - !(void 0 === T - ? callbackfn(self[i], i, object) - : callbackfn.call(T, self[i], i, object)) - ) - return !1; - return !0; - } - }, - !properlyBoxesContext(ArrayPrototype.every) - ), - defineProperties( - ArrayPrototype, - { - some: function some(callbackfn) { - var T, - object = ES_ToObject(this), - self = splitString && isString(this) ? strSplit(this, '') : object, - length = ES_ToUint_(self.length); - if ((arguments.length > 1 && (T = arguments[1]), !isCallable(callbackfn))) - throw new TypeError('Array.prototype.some callback must be a function'); - for (var i = 0; i < length; i++) - if ( - i in self && - (void 0 === T - ? callbackfn(self[i], i, object) - : callbackfn.call(T, self[i], i, object)) - ) - return !0; - return !1; - } - }, - !properlyBoxesContext(ArrayPrototype.some) - ); - var reduceCoercesToObject = !1; - ArrayPrototype.reduce && - (reduceCoercesToObject = - 'object' == - typeof ArrayPrototype.reduce.call('es5', function(_, __, ___, list) { - return list; - })), - defineProperties( - ArrayPrototype, - { - reduce: function reduce(callbackfn) { - var object = ES_ToObject(this), - self = splitString && isString(this) ? strSplit(this, '') : object, - length = ES_ToUint_(self.length); - if (!isCallable(callbackfn)) - throw new TypeError('Array.prototype.reduce callback must be a function'); - if (0 === length && 1 === arguments.length) - throw new TypeError('reduce of empty array with no initial value'); - var result, - i = 0; - if (arguments.length >= 2) result = arguments[1]; - else - for (;;) { - if (i in self) { - result = self[i++]; - break; - } - if (++i >= length) - throw new TypeError('reduce of empty array with no initial value'); - } - for (; i < length; i++) - i in self && (result = callbackfn(result, self[i], i, object)); - return result; - } - }, - !reduceCoercesToObject - ); - var reduceRightCoercesToObject = !1; - ArrayPrototype.reduceRight && - (reduceRightCoercesToObject = - 'object' == - typeof ArrayPrototype.reduceRight.call('es5', function(_, __, ___, list) { - return list; - })), - defineProperties( - ArrayPrototype, - { - reduceRight: function reduceRight(callbackfn) { - var result, - object = ES_ToObject(this), - self = splitString && isString(this) ? strSplit(this, '') : object, - length = ES_ToUint_(self.length); - if (!isCallable(callbackfn)) - throw new TypeError('Array.prototype.reduceRight callback must be a function'); - if (0 === length && 1 === arguments.length) - throw new TypeError('reduceRight of empty array with no initial value'); - var i = length - 1; - if (arguments.length >= 2) result = arguments[1]; - else - for (;;) { - if (i in self) { - result = self[i--]; - break; - } - if (--i < 0) - throw new TypeError('reduceRight of empty array with no initial value'); - } - if (i < 0) return result; - do { - i in self && (result = callbackfn(result, self[i], i, object)); - } while (i--); - return result; - } - }, - !reduceRightCoercesToObject - ); - var hasFirefox2IndexOfBug = ArrayPrototype.indexOf && -1 !== [0, 1].indexOf(1, 2); - defineProperties( - ArrayPrototype, - { - indexOf: function indexOf(searchElement) { - var self = splitString && isString(this) ? strSplit(this, '') : ES_ToObject(this), - length = ES_ToUint_(self.length); - if (0 === length) return -1; - var i = 0; - for ( - arguments.length > 1 && (i = ES_ToInteger(arguments[1])), - i = i >= 0 ? i : max(0, length + i); - i < length; - i++ - ) - if (i in self && self[i] === searchElement) return i; - return -1; - } - }, - hasFirefox2IndexOfBug - ); - var hasFirefox2LastIndexOfBug = - ArrayPrototype.lastIndexOf && -1 !== [0, 1].lastIndexOf(0, -3); - defineProperties( - ArrayPrototype, - { - lastIndexOf: function lastIndexOf(searchElement) { - var self = splitString && isString(this) ? strSplit(this, '') : ES_ToObject(this), - length = ES_ToUint_(self.length); - if (0 === length) return -1; - var i = length - 1; - for ( - arguments.length > 1 && (i = min(i, ES_ToInteger(arguments[1]))), - i = i >= 0 ? i : length - Math.abs(i); - i >= 0; - i-- - ) - if (i in self && searchElement === self[i]) return i; - return -1; - } - }, - hasFirefox2LastIndexOfBug - ); - var a, - result, - spliceNoopReturnsEmptyArray = ((result = (a = [1, 2]).splice()), - 2 === a.length && isArray(result) && 0 === result.length); - defineProperties( - ArrayPrototype, - { - splice: function splice(start, deleteCount) { - return 0 === arguments.length ? [] : array_splice.apply(this, arguments); - } - }, - !spliceNoopReturnsEmptyArray - ); - var obj, - spliceWorksWithEmptyObject = ((obj = {}), - ArrayPrototype.splice.call(obj, 0, 0, 1), - 1 === obj.length); - defineProperties( - ArrayPrototype, - { - splice: function splice(start, deleteCount) { - if (0 === arguments.length) return []; - var args = arguments; - return ( - (this.length = max(ES_ToInteger(this.length), 0)), - arguments.length > 0 && - 'number' != typeof deleteCount && - ((args = arraySlice(arguments)).length < 2 - ? pushCall(args, this.length - start) - : (args[1] = ES_ToInteger(deleteCount))), - array_splice.apply(this, args) - ); - } - }, - !spliceWorksWithEmptyObject - ); - var arr, - spliceWorksWithLargeSparseArrays = (((arr = new $Array(1e5))[8] = 'x'), - arr.splice(1, 1), - 7 === arr.indexOf('x')), - spliceWorksWithSmallSparseArrays = (function() { - var arr = []; - return (arr[256] = 'a'), arr.splice(257, 0, 'b'), 'a' === arr[256]; - })(); - defineProperties( - ArrayPrototype, - { - splice: function splice(start, deleteCount) { - for ( - var from, - O = ES_ToObject(this), - A = [], - len = ES_ToUint_(O.length), - relativeStart = ES_ToInteger(start), - actualStart = - relativeStart < 0 ? max(len + relativeStart, 0) : min(relativeStart, len), - actualDeleteCount = min(max(ES_ToInteger(deleteCount), 0), len - actualStart), - k = 0; - k < actualDeleteCount; - - ) - (from = $String(actualStart + k)), owns(O, from) && (A[k] = O[from]), (k += 1); - var to, - items = arraySlice(arguments, 2), - itemCount = items.length; - if (itemCount < actualDeleteCount) { - k = actualStart; - for (var maxK = len - actualDeleteCount; k < maxK; ) - (from = $String(k + actualDeleteCount)), - (to = $String(k + itemCount)), - owns(O, from) ? (O[to] = O[from]) : delete O[to], - (k += 1); - k = len; - for (var minK = len - actualDeleteCount + itemCount; k > minK; ) - delete O[k - 1], (k -= 1); - } else if (itemCount > actualDeleteCount) - for (k = len - actualDeleteCount; k > actualStart; ) - (from = $String(k + actualDeleteCount - 1)), - (to = $String(k + itemCount - 1)), - owns(O, from) ? (O[to] = O[from]) : delete O[to], - (k -= 1); - k = actualStart; - for (var i = 0; i < items.length; ++i) (O[k] = items[i]), (k += 1); - return (O.length = len - actualDeleteCount + itemCount), A; - } - }, - !spliceWorksWithLargeSparseArrays || !spliceWorksWithSmallSparseArrays - ); - var hasStringJoinBug, - originalJoin = ArrayPrototype.join; - try { - hasStringJoinBug = '1,2,3' !== Array.prototype.join.call('123', ','); - } catch (e) { - hasStringJoinBug = !0; - } - hasStringJoinBug && - defineProperties( - ArrayPrototype, - { - join: function join(separator) { - var sep = void 0 === separator ? ',' : separator; - return originalJoin.call(isString(this) ? strSplit(this, '') : this, sep); - } - }, - hasStringJoinBug - ); - var hasJoinUndefinedBug = '1,2' !== [1, 2].join(void 0); - hasJoinUndefinedBug && - defineProperties( - ArrayPrototype, - { - join: function join(separator) { - var sep = void 0 === separator ? ',' : separator; - return originalJoin.call(this, sep); - } - }, - hasJoinUndefinedBug - ); - var pushShim = function push(item) { - for (var O = ES_ToObject(this), n = ES_ToUint_(O.length), i = 0; i < arguments.length; ) - (O[n + i] = arguments[i]), (i += 1); - return (O.length = n + i), n + i; - }, - pushIsNotGeneric = (function() { - var obj = {}; - return ( - 1 !== Array.prototype.push.call(obj, void 0) || - 1 !== obj.length || - void 0 !== obj[0] || - !owns(obj, 0) - ); - })(); - defineProperties( - ArrayPrototype, - { - push: function push(item) { - return isArray(this) - ? array_push.apply(this, arguments) - : pushShim.apply(this, arguments); - } - }, - pushIsNotGeneric - ); - var pushUndefinedIsWeird = (function() { - var arr = []; - return 1 !== arr.push(void 0) || 1 !== arr.length || void 0 !== arr[0] || !owns(arr, 0); - })(); - defineProperties(ArrayPrototype, { push: pushShim }, pushUndefinedIsWeird), - defineProperties( - ArrayPrototype, - { - slice: function(start, end) { - var arr = isString(this) ? strSplit(this, '') : this; - return arraySliceApply(arr, arguments); - } - }, - splitString - ); - var sortIgnoresNonFunctions = (function() { - try { - [1, 2].sort(null); - } catch (e) { - try { - [1, 2].sort({}); - } catch (e2) { - return !1; - } - } - return !0; - })(), - sortThrowsOnRegex = (function() { - try { - return [1, 2].sort(/a/), !1; - } catch (e) {} - return !0; - })(), - sortIgnoresUndefined = (function() { - try { - return [1, 2].sort(void 0), !0; - } catch (e) {} - return !1; - })(); - defineProperties( - ArrayPrototype, - { - sort: function sort(compareFn) { - if (void 0 === compareFn) return arraySort(this); - if (!isCallable(compareFn)) - throw new TypeError('Array.prototype.sort callback must be a function'); - return arraySort(this, compareFn); - } - }, - sortIgnoresNonFunctions || !sortIgnoresUndefined || !sortThrowsOnRegex - ); - var hasDontEnumBug = !isEnum({ toString: null }, 'toString'), - hasProtoEnumBug = isEnum(function() {}, 'prototype'), - hasStringEnumBug = !owns('x', '0'), - equalsConstructorPrototype = function(o) { - var ctor = o.constructor; - return ctor && ctor.prototype === o; - }, - excludedKeys = { - $window: !0, - $console: !0, - $parent: !0, - $self: !0, - $frame: !0, - $frames: !0, - $frameElement: !0, - $webkitIndexedDB: !0, - $webkitStorageInfo: !0, - $external: !0, - $width: !0, - $height: !0, - $top: !0, - $localStorage: !0 - }, - hasAutomationEqualityBug = (function() { - if ('undefined' == typeof window) return !1; - for (var k in window) - try { - !excludedKeys['$' + k] && - owns(window, k) && - null !== window[k] && - 'object' == typeof window[k] && - equalsConstructorPrototype(window[k]); - } catch (e) { - return !0; - } - return !1; - })(), - dontEnums = [ - 'toString', - 'toLocaleString', - 'valueOf', - 'hasOwnProperty', - 'isPrototypeOf', - 'propertyIsEnumerable', - 'constructor' - ], - dontEnumsLength = dontEnums.length, - isStandardArguments = function isArguments(value) { - return '[object Arguments]' === toStr(value); - }, - isArguments = isStandardArguments(arguments) - ? isStandardArguments - : function isArguments(value) { - return ( - null !== value && - 'object' == typeof value && - 'number' == typeof value.length && - value.length >= 0 && - !isArray(value) && - isCallable(value.callee) - ); - }; - defineProperties($Object, { - keys: function keys(object) { - var isFn = isCallable(object), - isArgs = isArguments(object), - isObject = null !== object && 'object' == typeof object, - isStr = isObject && isString(object); - if (!isObject && !isFn && !isArgs) - throw new TypeError('Object.keys called on a non-object'); - var theKeys = [], - skipProto = hasProtoEnumBug && isFn; - if ((isStr && hasStringEnumBug) || isArgs) - for (var i = 0; i < object.length; ++i) pushCall(theKeys, $String(i)); - if (!isArgs) - for (var name in object) - (skipProto && 'prototype' === name) || - !owns(object, name) || - pushCall(theKeys, $String(name)); - if (hasDontEnumBug) - for ( - var skipConstructor = (function(object) { - if ('undefined' == typeof window || !hasAutomationEqualityBug) - return equalsConstructorPrototype(object); - try { - return equalsConstructorPrototype(object); - } catch (e) { - return !1; - } - })(object), - j = 0; - j < dontEnumsLength; - j++ - ) { - var dontEnum = dontEnums[j]; - (skipConstructor && 'constructor' === dontEnum) || - !owns(object, dontEnum) || - pushCall(theKeys, dontEnum); - } - return theKeys; - } - }); - var keysWorksWithArguments = - $Object.keys && - (function() { - return 2 === $Object.keys(arguments).length; - })(1, 2), - keysHasArgumentsLengthBug = - $Object.keys && - (function() { - var argKeys = $Object.keys(arguments); - return 1 !== arguments.length || 1 !== argKeys.length || 1 !== argKeys[0]; - })(1), - originalKeys = $Object.keys; - defineProperties( - $Object, - { - keys: function keys(object) { - return isArguments(object) ? originalKeys(arraySlice(object)) : originalKeys(object); - } - }, - !keysWorksWithArguments || keysHasArgumentsLengthBug - ); - var hasToDateStringFormatBug, - hasToStringFormatBug, - hasNegativeMonthYearBug = 0 !== new Date(-0xc782b5b342b24).getUTCMonth(), - aNegativeTestDate = new Date(-0x55d318d56a724), - aPositiveTestDate = new Date(14496624e5), - hasToUTCStringFormatBug = - 'Mon, 01 Jan -45875 11:59:59 GMT' !== aNegativeTestDate.toUTCString(); - aNegativeTestDate.getTimezoneOffset() < -720 - ? ((hasToDateStringFormatBug = 'Tue Jan 02 -45875' !== aNegativeTestDate.toDateString()), - (hasToStringFormatBug = !/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test( - String(aPositiveTestDate) - ))) - : ((hasToDateStringFormatBug = 'Mon Jan 01 -45875' !== aNegativeTestDate.toDateString()), - (hasToStringFormatBug = !/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test( - String(aPositiveTestDate) - ))); - var originalGetFullYear = call.bind(Date.prototype.getFullYear), - originalGetMonth = call.bind(Date.prototype.getMonth), - originalGetDate = call.bind(Date.prototype.getDate), - originalGetUTCFullYear = call.bind(Date.prototype.getUTCFullYear), - originalGetUTCMonth = call.bind(Date.prototype.getUTCMonth), - originalGetUTCDate = call.bind(Date.prototype.getUTCDate), - originalGetUTCDay = call.bind(Date.prototype.getUTCDay), - originalGetUTCHours = call.bind(Date.prototype.getUTCHours), - originalGetUTCMinutes = call.bind(Date.prototype.getUTCMinutes), - originalGetUTCSeconds = call.bind(Date.prototype.getUTCSeconds), - originalGetUTCMilliseconds = call.bind(Date.prototype.getUTCMilliseconds), - dayName = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], - monthName = [ - 'Jan', - 'Feb', - 'Mar', - 'Apr', - 'May', - 'Jun', - 'Jul', - 'Aug', - 'Sep', - 'Oct', - 'Nov', - 'Dec' - ], - daysInMonth = function daysInMonth(month, year) { - return originalGetDate(new Date(year, month, 0)); - }; - defineProperties( - Date.prototype, - { - getFullYear: function getFullYear() { - if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); - var year = originalGetFullYear(this); - return year < 0 && originalGetMonth(this) > 11 ? year + 1 : year; - }, - getMonth: function getMonth() { - if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); - var year = originalGetFullYear(this), - month = originalGetMonth(this); - return year < 0 && month > 11 ? 0 : month; - }, - getDate: function getDate() { - if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); - var year = originalGetFullYear(this), - month = originalGetMonth(this), - date = originalGetDate(this); - return year < 0 && month > 11 - ? 12 === month ? date : daysInMonth(0, year + 1) - date + 1 - : date; - }, - getUTCFullYear: function getUTCFullYear() { - if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); - var year = originalGetUTCFullYear(this); - return year < 0 && originalGetUTCMonth(this) > 11 ? year + 1 : year; - }, - getUTCMonth: function getUTCMonth() { - if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); - var year = originalGetUTCFullYear(this), - month = originalGetUTCMonth(this); - return year < 0 && month > 11 ? 0 : month; - }, - getUTCDate: function getUTCDate() { - if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); - var year = originalGetUTCFullYear(this), - month = originalGetUTCMonth(this), - date = originalGetUTCDate(this); - return year < 0 && month > 11 - ? 12 === month ? date : daysInMonth(0, year + 1) - date + 1 - : date; - } - }, - hasNegativeMonthYearBug - ), - defineProperties( - Date.prototype, - { - toUTCString: function toUTCString() { - if (!(this && this instanceof Date)) - throw new TypeError('this is not a Date object.'); - var day = originalGetUTCDay(this), - date = originalGetUTCDate(this), - month = originalGetUTCMonth(this), - year = originalGetUTCFullYear(this), - hour = originalGetUTCHours(this), - minute = originalGetUTCMinutes(this), - second = originalGetUTCSeconds(this); - return ( - dayName[day] + - ', ' + - (date < 10 ? '0' + date : date) + - ' ' + - monthName[month] + - ' ' + - year + - ' ' + - (hour < 10 ? '0' + hour : hour) + - ':' + - (minute < 10 ? '0' + minute : minute) + - ':' + - (second < 10 ? '0' + second : second) + - ' GMT' - ); - } - }, - hasNegativeMonthYearBug || hasToUTCStringFormatBug - ), - defineProperties( - Date.prototype, - { - toDateString: function toDateString() { - if (!(this && this instanceof Date)) - throw new TypeError('this is not a Date object.'); - var day = this.getDay(), - date = this.getDate(), - month = this.getMonth(), - year = this.getFullYear(); - return ( - dayName[day] + - ' ' + - monthName[month] + - ' ' + - (date < 10 ? '0' + date : date) + - ' ' + - year - ); - } - }, - hasNegativeMonthYearBug || hasToDateStringFormatBug - ), - (hasNegativeMonthYearBug || hasToStringFormatBug) && - ((Date.prototype.toString = function toString() { - if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); - var day = this.getDay(), - date = this.getDate(), - month = this.getMonth(), - year = this.getFullYear(), - hour = this.getHours(), - minute = this.getMinutes(), - second = this.getSeconds(), - timezoneOffset = this.getTimezoneOffset(), - hoursOffset = Math.floor(Math.abs(timezoneOffset) / 60), - minutesOffset = Math.floor(Math.abs(timezoneOffset) % 60); - return ( - dayName[day] + - ' ' + - monthName[month] + - ' ' + - (date < 10 ? '0' + date : date) + - ' ' + - year + - ' ' + - (hour < 10 ? '0' + hour : hour) + - ':' + - (minute < 10 ? '0' + minute : minute) + - ':' + - (second < 10 ? '0' + second : second) + - ' GMT' + - (timezoneOffset > 0 ? '-' : '+') + - (hoursOffset < 10 ? '0' + hoursOffset : hoursOffset) + - (minutesOffset < 10 ? '0' + minutesOffset : minutesOffset) - ); - }), - supportsDescriptors && - $Object.defineProperty(Date.prototype, 'toString', { - configurable: !0, - enumerable: !1, - writable: !0 - })); - var hasNegativeDateBug = - Date.prototype.toISOString && - -1 === new Date(-621987552e5).toISOString().indexOf('-000001'), - hasSafari51DateBug = - Date.prototype.toISOString && '1969-12-31T23:59:59.999Z' !== new Date(-1).toISOString(), - getTime = call.bind(Date.prototype.getTime); - defineProperties( - Date.prototype, - { - toISOString: function toISOString() { - if (!isFinite(this) || !isFinite(getTime(this))) - throw new RangeError('Date.prototype.toISOString called on non-finite value.'); - var year = originalGetUTCFullYear(this), - month = originalGetUTCMonth(this); - year += Math.floor(month / 12); - var result = [ - (month = (month % 12 + 12) % 12) + 1, - originalGetUTCDate(this), - originalGetUTCHours(this), - originalGetUTCMinutes(this), - originalGetUTCSeconds(this) - ]; - year = - (year < 0 ? '-' : year > 9999 ? '+' : '') + - strSlice('00000' + Math.abs(year), 0 <= year && year <= 9999 ? -4 : -6); - for (var i = 0; i < result.length; ++i) result[i] = strSlice('00' + result[i], -2); - return ( - year + - '-' + - arraySlice(result, 0, 2).join('-') + - 'T' + - arraySlice(result, 2).join(':') + - '.' + - strSlice('000' + originalGetUTCMilliseconds(this), -3) + - 'Z' - ); - } - }, - hasNegativeDateBug || hasSafari51DateBug - ), - (function() { - try { - return ( - Date.prototype.toJSON && - null === new Date(NaN).toJSON() && - -1 !== new Date(-621987552e5).toJSON().indexOf('-000001') && - Date.prototype.toJSON.call({ - toISOString: function() { - return !0; - } - }) - ); - } catch (e) { - return !1; - } - })() || - (Date.prototype.toJSON = function toJSON(key) { - var O = $Object(this), - tv = ES_ToPrimitive(O); - if ('number' == typeof tv && !isFinite(tv)) return null; - var toISO = O.toISOString; - if (!isCallable(toISO)) throw new TypeError('toISOString property is not callable'); - return toISO.call(O); - }); - var supportsExtendedYears = 1e15 === Date.parse('+033658-09-27T01:46:40.000Z'), - acceptsInvalidDates = - !isNaN(Date.parse('2012-04-04T24:00:00.500Z')) || - !isNaN(Date.parse('2012-11-31T23:59:59.000Z')) || - !isNaN(Date.parse('2012-12-31T23:59:60.000Z')); - if ( - isNaN(Date.parse('2000-01-01T00:00:00.000Z')) || - acceptsInvalidDates || - !supportsExtendedYears - ) { - var maxSafeUnsigned32Bit = Math.pow(2, 31) - 1, - hasSafariSignedIntBug = isActualNaN( - new Date(1970, 0, 1, 0, 0, 0, maxSafeUnsigned32Bit + 1).getTime() - ); - Date = (function(NativeDate) { - var DateShim = function Date(Y, M, D, h, m, s, ms) { - var date, - length = arguments.length; - if (this instanceof NativeDate) { - var seconds = s, - millis = ms; - if (hasSafariSignedIntBug && length >= 7 && ms > maxSafeUnsigned32Bit) { - var msToShift = Math.floor(ms / maxSafeUnsigned32Bit) * maxSafeUnsigned32Bit, - sToShift = Math.floor(msToShift / 1e3); - (seconds += sToShift), (millis -= 1e3 * sToShift); - } - date = - 1 === length && $String(Y) === Y - ? new NativeDate(DateShim.parse(Y)) - : length >= 7 - ? new NativeDate(Y, M, D, h, m, seconds, millis) - : length >= 6 - ? new NativeDate(Y, M, D, h, m, seconds) - : length >= 5 - ? new NativeDate(Y, M, D, h, m) - : length >= 4 - ? new NativeDate(Y, M, D, h) - : length >= 3 - ? new NativeDate(Y, M, D) - : length >= 2 - ? new NativeDate(Y, M) - : length >= 1 - ? new NativeDate(Y instanceof NativeDate ? +Y : Y) - : new NativeDate(); - } else date = NativeDate.apply(this, arguments); - return ( - isPrimitive(date) || defineProperties(date, { constructor: DateShim }, !0), date - ); - }, - isoDateExpression = new RegExp( - '^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$' - ), - months = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365], - dayFromMonth = function dayFromMonth(year, month) { - var t = month > 1 ? 1 : 0; - return ( - months[month] + - Math.floor((year - 1969 + t) / 4) - - Math.floor((year - 1901 + t) / 100) + - Math.floor((year - 1601 + t) / 400) + - 365 * (year - 1970) - ); - }; - for (var key in NativeDate) owns(NativeDate, key) && (DateShim[key] = NativeDate[key]); - defineProperties(DateShim, { now: NativeDate.now, UTC: NativeDate.UTC }, !0), - (DateShim.prototype = NativeDate.prototype), - defineProperties(DateShim.prototype, { constructor: DateShim }, !0); - return ( - defineProperties(DateShim, { - parse: function parse(string) { - var match = isoDateExpression.exec(string); - if (match) { - var result, - year = $Number(match[1]), - month = $Number(match[2] || 1) - 1, - day = $Number(match[3] || 1) - 1, - hour = $Number(match[4] || 0), - minute = $Number(match[5] || 0), - second = $Number(match[6] || 0), - millisecond = Math.floor(1e3 * $Number(match[7] || 0)), - isLocalTime = Boolean(match[4] && !match[8]), - signOffset = '-' === match[9] ? 1 : -1, - hourOffset = $Number(match[10] || 0), - minuteOffset = $Number(match[11] || 0); - return hour < (minute > 0 || second > 0 || millisecond > 0 ? 24 : 25) && - minute < 60 && - second < 60 && - millisecond < 1e3 && - month > -1 && - month < 12 && - hourOffset < 24 && - minuteOffset < 60 && - day > -1 && - day < dayFromMonth(year, month + 1) - dayFromMonth(year, month) && - ((result = - 1e3 * - (60 * - ((result = - 60 * - (24 * (dayFromMonth(year, month) + day) + - hour + - hourOffset * signOffset)) + - minute + - minuteOffset * signOffset) + - second) + - millisecond), - isLocalTime && - (result = (function toUTC(t) { - var s = 0, - ms = t; - if (hasSafariSignedIntBug && ms > maxSafeUnsigned32Bit) { - var msToShift = - Math.floor(ms / maxSafeUnsigned32Bit) * maxSafeUnsigned32Bit, - sToShift = Math.floor(msToShift / 1e3); - (s += sToShift), (ms -= 1e3 * sToShift); - } - return $Number(new NativeDate(1970, 0, 1, 0, 0, s, ms)); - })(result)), - -864e13 <= result && result <= 864e13) - ? result - : NaN; - } - return NativeDate.parse.apply(this, arguments); - } - }), - DateShim - ); - })(Date); - } - Date.now || - (Date.now = function now() { - return new Date().getTime(); - }); - var hasToFixedBugs = - NumberPrototype.toFixed && - ('0.000' !== (8e-5).toFixed(3) || - '1' !== (0.9).toFixed(0) || - '1.25' !== (1.255).toFixed(2) || - '1000000000000000128' !== (0xde0b6b3a7640080).toFixed(0)), - toFixedHelpers = { - base: 1e7, - size: 6, - data: [0, 0, 0, 0, 0, 0], - multiply: function multiply(n, c) { - for (var i = -1, c2 = c; ++i < toFixedHelpers.size; ) - (c2 += n * toFixedHelpers.data[i]), - (toFixedHelpers.data[i] = c2 % toFixedHelpers.base), - (c2 = Math.floor(c2 / toFixedHelpers.base)); - }, - divide: function divide(n) { - for (var i = toFixedHelpers.size, c = 0; --i >= 0; ) - (c += toFixedHelpers.data[i]), - (toFixedHelpers.data[i] = Math.floor(c / n)), - (c = (c % n) * toFixedHelpers.base); - }, - numToString: function numToString() { - for (var i = toFixedHelpers.size, s = ''; --i >= 0; ) - if ('' !== s || 0 === i || 0 !== toFixedHelpers.data[i]) { - var t = $String(toFixedHelpers.data[i]); - '' === s ? (s = t) : (s += strSlice('0000000', 0, 7 - t.length) + t); - } - return s; - }, - pow: function pow(x, n, acc) { - return 0 === n ? acc : n % 2 == 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc); - }, - log: function log(x) { - for (var n = 0, x2 = x; x2 >= 4096; ) (n += 12), (x2 /= 4096); - for (; x2 >= 2; ) (n += 1), (x2 /= 2); - return n; - } - }; - defineProperties( - NumberPrototype, - { - toFixed: function toFixed(fractionDigits) { - var f, x, s, m, e, z, j, k; - if ( - ((f = $Number(fractionDigits)), - (f = isActualNaN(f) ? 0 : Math.floor(f)) < 0 || f > 20) - ) - throw new RangeError('Number.toFixed called with invalid number of decimals'); - if (((x = $Number(this)), isActualNaN(x))) return 'NaN'; - if (x <= -1e21 || x >= 1e21) return $String(x); - if (((s = ''), x < 0 && ((s = '-'), (x = -x)), (m = '0'), x > 1e-21)) - if ( - ((z = - (e = toFixedHelpers.log(x * toFixedHelpers.pow(2, 69, 1)) - 69) < 0 - ? x * toFixedHelpers.pow(2, -e, 1) - : x / toFixedHelpers.pow(2, e, 1)), - (z *= 4503599627370496), - (e = 52 - e) > 0) - ) { - for (toFixedHelpers.multiply(0, z), j = f; j >= 7; ) - toFixedHelpers.multiply(1e7, 0), (j -= 7); - for (toFixedHelpers.multiply(toFixedHelpers.pow(10, j, 1), 0), j = e - 1; j >= 23; ) - toFixedHelpers.divide(1 << 23), (j -= 23); - toFixedHelpers.divide(1 << j), - toFixedHelpers.multiply(1, 1), - toFixedHelpers.divide(2), - (m = toFixedHelpers.numToString()); - } else - toFixedHelpers.multiply(0, z), - toFixedHelpers.multiply(1 << -e, 0), - (m = toFixedHelpers.numToString() + strSlice('0.00000000000000000000', 2, 2 + f)); - return (m = - f > 0 - ? (k = m.length) <= f - ? s + strSlice('0.0000000000000000000', 0, f - k + 2) + m - : s + strSlice(m, 0, k - f) + '.' + strSlice(m, k - f) - : s + m); - } - }, - hasToFixedBugs - ); - var compliantExecNpcg, - maxSafe32BitInt, - hasToPrecisionUndefinedBug = (function() { - try { - return '1' === (1).toPrecision(void 0); - } catch (e) { - return !0; - } - })(), - originalToPrecision = NumberPrototype.toPrecision; - defineProperties( - NumberPrototype, - { - toPrecision: function toPrecision(precision) { - return void 0 === precision - ? originalToPrecision.call(this) - : originalToPrecision.call(this, precision); - } - }, - hasToPrecisionUndefinedBug - ), - 2 !== 'ab'.split(/(?:ab)*/).length || - 4 !== '.'.split(/(.?)(.?)/).length || - 't' === 'tesst'.split(/(s)*/)[1] || - 4 !== 'test'.split(/(?:)/, -1).length || - ''.split(/.?/).length || - '.'.split(/()()/).length > 1 - ? ((compliantExecNpcg = void 0 === /()??/.exec('')[1]), - (maxSafe32BitInt = Math.pow(2, 32) - 1), - (StringPrototype.split = function(separator, limit) { - var string = String(this); - if (void 0 === separator && 0 === limit) return []; - if (!isRegex(separator)) return strSplit(this, separator, limit); - var separator2, - match, - lastIndex, - lastLength, - output = [], - flags = - (separator.ignoreCase ? 'i' : '') + - (separator.multiline ? 'm' : '') + - (separator.unicode ? 'u' : '') + - (separator.sticky ? 'y' : ''), - lastLastIndex = 0, - separatorCopy = new RegExp(separator.source, flags + 'g'); - compliantExecNpcg || - (separator2 = new RegExp('^' + separatorCopy.source + '$(?!\\s)', flags)); - var splitLimit = void 0 === limit ? maxSafe32BitInt : ES_ToUint_(limit); - for ( - match = separatorCopy.exec(string); - match && - !( - (lastIndex = match.index + match[0].length) > lastLastIndex && - (pushCall(output, strSlice(string, lastLastIndex, match.index)), - !compliantExecNpcg && - match.length > 1 && - match[0].replace(separator2, function() { - for (var i = 1; i < arguments.length - 2; i++) - void 0 === arguments[i] && (match[i] = void 0); - }), - match.length > 1 && - match.index < string.length && - array_push.apply(output, arraySlice(match, 1)), - (lastLength = match[0].length), - (lastLastIndex = lastIndex), - output.length >= splitLimit) - ); - - ) - separatorCopy.lastIndex === match.index && separatorCopy.lastIndex++, - (match = separatorCopy.exec(string)); - return ( - lastLastIndex === string.length - ? (!lastLength && separatorCopy.test('')) || pushCall(output, '') - : pushCall(output, strSlice(string, lastLastIndex)), - output.length > splitLimit ? arraySlice(output, 0, splitLimit) : output - ); - })) - : '0'.split(void 0, 0).length && - (StringPrototype.split = function split(separator, limit) { - return void 0 === separator && 0 === limit ? [] : strSplit(this, separator, limit); - }); - var groups, - str_replace = StringPrototype.replace; - ((groups = []), - 'x'.replace(/x(.)?/g, function(match, group) { - pushCall(groups, group); - }), - 1 === groups.length && void 0 === groups[0]) || - (StringPrototype.replace = function replace(searchValue, replaceValue) { - var isFn = isCallable(replaceValue), - hasCapturingGroups = isRegex(searchValue) && /\)[*?]/.test(searchValue.source); - if (isFn && hasCapturingGroups) { - return str_replace.call(this, searchValue, function(match) { - var length = arguments.length, - originalLastIndex = searchValue.lastIndex; - searchValue.lastIndex = 0; - var args = searchValue.exec(match) || []; - return ( - (searchValue.lastIndex = originalLastIndex), - pushCall(args, arguments[length - 2], arguments[length - 1]), - replaceValue.apply(this, args) - ); - }); - } - return str_replace.call(this, searchValue, replaceValue); - }); - var string_substr = StringPrototype.substr, - hasNegativeSubstrBug = ''.substr && 'b' !== '0b'.substr(-1); - defineProperties( - StringPrototype, - { - substr: function substr(start, length) { - var normalizedStart = start; - return ( - start < 0 && (normalizedStart = max(this.length + start, 0)), - string_substr.call(this, normalizedStart, length) - ); - } - }, - hasNegativeSubstrBug - ); - var ws = '\t\n\v\f\r   ᠎              \u2028\u2029\ufeff', - wsRegexChars = '[' + ws + ']', - trimBeginRegexp = new RegExp('^' + wsRegexChars + wsRegexChars + '*'), - trimEndRegexp = new RegExp(wsRegexChars + wsRegexChars + '*$'), - hasTrimWhitespaceBug = StringPrototype.trim && (ws.trim() || !'​'.trim()); - defineProperties( - StringPrototype, - { - trim: function trim() { - if (void 0 === this || null === this) - throw new TypeError("can't convert " + this + ' to object'); - return $String(this) - .replace(trimBeginRegexp, '') - .replace(trimEndRegexp, ''); - } - }, - hasTrimWhitespaceBug - ); - var trim = call.bind(String.prototype.trim), - hasLastIndexBug = StringPrototype.lastIndexOf && -1 !== 'abcあい'.lastIndexOf('あい', 2); - defineProperties( - StringPrototype, - { - lastIndexOf: function lastIndexOf(searchString) { - if (void 0 === this || null === this) - throw new TypeError("can't convert " + this + ' to object'); - for ( - var S = $String(this), - searchStr = $String(searchString), - numPos = arguments.length > 1 ? $Number(arguments[1]) : NaN, - pos = isActualNaN(numPos) ? 1 / 0 : ES_ToInteger(numPos), - start = min(max(pos, 0), S.length), - searchLen = searchStr.length, - k = start + searchLen; - k > 0; - - ) { - k = max(0, k - searchLen); - var index = strIndexOf(strSlice(S, k, start + searchLen), searchStr); - if (-1 !== index) return k + index; - } - return -1; - } - }, - hasLastIndexBug - ); - var origParseInt, - hexRegex, - origParseFloat, - originalLastIndexOf = StringPrototype.lastIndexOf; - if ( - (defineProperties( - StringPrototype, - { - lastIndexOf: function lastIndexOf(searchString) { - return originalLastIndexOf.apply(this, arguments); - } - }, - 1 !== StringPrototype.lastIndexOf.length - ), - (8 === parseInt(ws + '08') && 22 === parseInt(ws + '0x16')) || - (parseInt = ((origParseInt = parseInt), - (hexRegex = /^[-+]?0[xX]/), - function parseInt(str, radix) { - var string = trim(String(str)), - defaultedRadix = $Number(radix) || (hexRegex.test(string) ? 16 : 10); - return origParseInt(string, defaultedRadix); - })), - 1 / parseFloat('-0') != -1 / 0 && - (parseFloat = ((origParseFloat = parseFloat), - function parseFloat(string) { - var inputString = trim(String(string)), - result = origParseFloat(inputString); - return 0 === result && '-' === strSlice(inputString, 0, 1) ? -0 : result; - })), - 'RangeError: test' !== String(new RangeError('test'))) - ) { - Error.prototype.toString = function toString() { - if (void 0 === this || null === this) - throw new TypeError("can't convert " + this + ' to object'); - var name = this.name; - void 0 === name ? (name = 'Error') : 'string' != typeof name && (name = $String(name)); - var msg = this.message; - return ( - void 0 === msg ? (msg = '') : 'string' != typeof msg && (msg = $String(msg)), - name ? (msg ? name + ': ' + msg : name) : msg - ); - }; - } - if (supportsDescriptors) { - var ensureNonEnumerable = function(obj, prop) { - if (isEnum(obj, prop)) { - var desc = Object.getOwnPropertyDescriptor(obj, prop); - desc.configurable && ((desc.enumerable = !1), Object.defineProperty(obj, prop, desc)); - } - }; - ensureNonEnumerable(Error.prototype, 'message'), - '' !== Error.prototype.message && (Error.prototype.message = ''), - ensureNonEnumerable(Error.prototype, 'name'); - } - if ('/a/gim' !== String(/a/gim)) { - RegExp.prototype.toString = function toString() { - var str = '/' + this.source + '/'; - return ( - this.global && (str += 'g'), - this.ignoreCase && (str += 'i'), - this.multiline && (str += 'm'), - str - ); - }; - } - }); - }, - function(module, exports, __webpack_require__) { - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__; - !(function(root, factory) { - 'use strict'; - void 0 === - (__WEBPACK_AMD_DEFINE_RESULT__ = - 'function' == typeof (__WEBPACK_AMD_DEFINE_FACTORY__ = factory) - ? __WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module) - : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); - })(0, function() { - var defineGetter, - defineSetter, - lookupGetter, - lookupSetter, - call = Function.call, - prototypeOfObject = Object.prototype, - owns = call.bind(prototypeOfObject.hasOwnProperty), - isEnumerable = call.bind(prototypeOfObject.propertyIsEnumerable), - toStr = call.bind(prototypeOfObject.toString), - supportsAccessors = owns(prototypeOfObject, '__defineGetter__'); - supportsAccessors && - ((defineGetter = call.bind(prototypeOfObject.__defineGetter__)), - (defineSetter = call.bind(prototypeOfObject.__defineSetter__)), - (lookupGetter = call.bind(prototypeOfObject.__lookupGetter__)), - (lookupSetter = call.bind(prototypeOfObject.__lookupSetter__))); - var isPrimitive = function isPrimitive(o) { - return null == o || ('object' != typeof o && 'function' != typeof o); - }; - Object.getPrototypeOf || - (Object.getPrototypeOf = function getPrototypeOf(object) { - var proto = object.__proto__; - return proto || null === proto - ? proto - : '[object Function]' === toStr(object.constructor) - ? object.constructor.prototype - : object instanceof Object ? prototypeOfObject : null; - }); - var doesGetOwnPropertyDescriptorWork = function doesGetOwnPropertyDescriptorWork(object) { - try { - return ( - (object.sentinel = 0), 0 === Object.getOwnPropertyDescriptor(object, 'sentinel').value - ); - } catch (exception) { - return !1; - } - }; - if (Object.defineProperty) { - var getOwnPropertyDescriptorWorksOnObject = doesGetOwnPropertyDescriptorWork({}); - if ( - !( - 'undefined' == typeof document || - doesGetOwnPropertyDescriptorWork(document.createElement('div')) - ) || - !getOwnPropertyDescriptorWorksOnObject - ) - var getOwnPropertyDescriptorFallback = Object.getOwnPropertyDescriptor; - } - if (!Object.getOwnPropertyDescriptor || getOwnPropertyDescriptorFallback) { - Object.getOwnPropertyDescriptor = function getOwnPropertyDescriptor(object, property) { - if (isPrimitive(object)) - throw new TypeError( - 'Object.getOwnPropertyDescriptor called on a non-object: ' + object - ); - if (getOwnPropertyDescriptorFallback) - try { - return getOwnPropertyDescriptorFallback.call(Object, object, property); - } catch (exception) {} - var descriptor; - if (!owns(object, property)) return descriptor; - if ( - ((descriptor = { enumerable: isEnumerable(object, property), configurable: !0 }), - supportsAccessors) - ) { - var prototype = object.__proto__, - notPrototypeOfObject = object !== prototypeOfObject; - notPrototypeOfObject && (object.__proto__ = prototypeOfObject); - var getter = lookupGetter(object, property), - setter = lookupSetter(object, property); - if ((notPrototypeOfObject && (object.__proto__ = prototype), getter || setter)) - return ( - getter && (descriptor.get = getter), setter && (descriptor.set = setter), descriptor - ); - } - return (descriptor.value = object[property]), (descriptor.writable = !0), descriptor; - }; - } - if ( - (Object.getOwnPropertyNames || - (Object.getOwnPropertyNames = function getOwnPropertyNames(object) { - return Object.keys(object); - }), - !Object.create) - ) { - var createEmpty, - supportsProto = !({ __proto__: null } instanceof Object); - (createEmpty = - supportsProto || 'undefined' == typeof document - ? function() { - return { __proto__: null }; - } - : function() { - var empty = (function shouldUseActiveX() { - if (!document.domain) return !1; - try { - return !!new ActiveXObject('htmlfile'); - } catch (exception) { - return !1; - } - })() - ? (function getEmptyViaActiveX() { - var empty, xDoc; - return ( - (xDoc = new ActiveXObject('htmlfile')).write(''), - xDoc.close(), - (empty = xDoc.parentWindow.Object.prototype), - (xDoc = null), - empty - ); - })() - : (function getEmptyViaIFrame() { - var empty, - iframe = document.createElement('iframe'), - parent = document.body || document.documentElement; - return ( - (iframe.style.display = 'none'), - parent.appendChild(iframe), - (iframe.src = 'javascript:'), - (empty = iframe.contentWindow.Object.prototype), - parent.removeChild(iframe), - (iframe = null), - empty - ); - })(); - delete empty.constructor, - delete empty.hasOwnProperty, - delete empty.propertyIsEnumerable, - delete empty.isPrototypeOf, - delete empty.toLocaleString, - delete empty.toString, - delete empty.valueOf; - var Empty = function Empty() {}; - return ( - (Empty.prototype = empty), - (createEmpty = function() { - return new Empty(); - }), - new Empty() - ); - }), - (Object.create = function create(prototype, properties) { - var object, - Type = function Type() {}; - if (null === prototype) object = createEmpty(); - else { - if (null !== prototype && isPrimitive(prototype)) - throw new TypeError('Object prototype may only be an Object or null'); - (Type.prototype = prototype), ((object = new Type()).__proto__ = prototype); - } - return void 0 !== properties && Object.defineProperties(object, properties), object; - }); - } - var freezeObject, - doesDefinePropertyWork = function doesDefinePropertyWork(object) { - try { - return Object.defineProperty(object, 'sentinel', {}), 'sentinel' in object; - } catch (exception) { - return !1; - } - }; - if (Object.defineProperty) { - var definePropertyWorksOnObject = doesDefinePropertyWork({}), - definePropertyWorksOnDom = - 'undefined' == typeof document || doesDefinePropertyWork(document.createElement('div')); - if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) - var definePropertyFallback = Object.defineProperty, - definePropertiesFallback = Object.defineProperties; - } - if (!Object.defineProperty || definePropertyFallback) { - Object.defineProperty = function defineProperty(object, property, descriptor) { - if (isPrimitive(object)) - throw new TypeError('Object.defineProperty called on non-object: ' + object); - if (isPrimitive(descriptor)) - throw new TypeError('Property description must be an object: ' + descriptor); - if (definePropertyFallback) - try { - return definePropertyFallback.call(Object, object, property, descriptor); - } catch (exception) {} - if ('value' in descriptor) - if ( - supportsAccessors && - (lookupGetter(object, property) || lookupSetter(object, property)) - ) { - var prototype = object.__proto__; - (object.__proto__ = prototypeOfObject), - delete object[property], - (object[property] = descriptor.value), - (object.__proto__ = prototype); - } else object[property] = descriptor.value; - else { - var hasGetter = 'get' in descriptor, - hasSetter = 'set' in descriptor; - if (!supportsAccessors && (hasGetter || hasSetter)) - throw new TypeError('getters & setters can not be defined on this javascript engine'); - hasGetter && defineGetter(object, property, descriptor.get), - hasSetter && defineSetter(object, property, descriptor.set); - } - return object; - }; - } - (Object.defineProperties && !definePropertiesFallback) || - (Object.defineProperties = function defineProperties(object, properties) { - if (definePropertiesFallback) - try { - return definePropertiesFallback.call(Object, object, properties); - } catch (exception) {} - return ( - Object.keys(properties).forEach(function(property) { - '__proto__' !== property && - Object.defineProperty(object, property, properties[property]); - }), - object - ); - }), - Object.seal || - (Object.seal = function seal(object) { - if (Object(object) !== object) - throw new TypeError('Object.seal can only be called on Objects.'); - return object; - }), - Object.freeze || - (Object.freeze = function freeze(object) { - if (Object(object) !== object) - throw new TypeError('Object.freeze can only be called on Objects.'); - return object; - }); - try { - Object.freeze(function() {}); - } catch (exception) { - Object.freeze = ((freezeObject = Object.freeze), - function freeze(object) { - return 'function' == typeof object ? object : freezeObject(object); - }); - } - Object.preventExtensions || - (Object.preventExtensions = function preventExtensions(object) { - if (Object(object) !== object) - throw new TypeError('Object.preventExtensions can only be called on Objects.'); - return object; - }), - Object.isSealed || - (Object.isSealed = function isSealed(object) { - if (Object(object) !== object) - throw new TypeError('Object.isSealed can only be called on Objects.'); - return !1; - }), - Object.isFrozen || - (Object.isFrozen = function isFrozen(object) { - if (Object(object) !== object) - throw new TypeError('Object.isFrozen can only be called on Objects.'); - return !1; - }), - Object.isExtensible || - (Object.isExtensible = function isExtensible(object) { - if (Object(object) !== object) - throw new TypeError('Object.isExtensible can only be called on Objects.'); - for (var name = ''; owns(object, name); ) name += '?'; - object[name] = !0; - var returnValue = owns(object, name); - return delete object[name], returnValue; - }); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(336), __webpack_require__(337)(), __webpack_require__(344); - }, - function(module, exports, __webpack_require__) { - (function(global, process) { - var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__; - void 0 === - (__WEBPACK_AMD_DEFINE_RESULT__ = - 'function' == - typeof (__WEBPACK_AMD_DEFINE_FACTORY__ = function() { - 'use strict'; - var ArrayIterator, - _apply = Function.call.bind(Function.apply), - _call = Function.call.bind(Function.call), - isArray = Array.isArray, - keys = Object.keys, - throwsError = function(func) { - try { - return func(), !1; - } catch (e) { - return !0; - } - }, - valueOrFalseIfThrows = function valueOrFalseIfThrows(func) { - try { - return func(); - } catch (e) { - return !1; - } - }, - isCallableWithoutNew = (function notThunker(func) { - return function notThunk() { - return !_apply(func, this, arguments); - }; - })(throwsError), - supportsDescriptors = - !!Object.defineProperty && - !throwsError(function() { - Object.defineProperty({}, 'x', { get: function() {} }); - }), - functionsHaveNames = 'foo' === function foo() {}.name, - _forEach = Function.call.bind(Array.prototype.forEach), - _reduce = Function.call.bind(Array.prototype.reduce), - _filter = Function.call.bind(Array.prototype.filter), - _some = Function.call.bind(Array.prototype.some), - defineProperty = function(object, name, value, force) { - (!force && name in object) || - (supportsDescriptors - ? Object.defineProperty(object, name, { - configurable: !0, - enumerable: !1, - writable: !0, - value: value - }) - : (object[name] = value)); - }, - defineProperties = function(object, map, forceOverride) { - _forEach(keys(map), function(name) { - var method = map[name]; - defineProperty(object, name, method, !!forceOverride); - }); - }, - _toString = Function.call.bind(Object.prototype.toString), - isCallable = function IsCallableFast(x) { - return 'function' == typeof x; - }, - Value_getter = function(object, name, getter) { - if (!supportsDescriptors) throw new TypeError('getters require true ES5 support'); - Object.defineProperty(object, name, { - configurable: !0, - enumerable: !1, - get: getter - }); - }, - Value_proxy = function(originalObject, key, targetObject) { - if (!supportsDescriptors) throw new TypeError('getters require true ES5 support'); - var originalDescriptor = Object.getOwnPropertyDescriptor(originalObject, key); - Object.defineProperty(targetObject, key, { - configurable: originalDescriptor.configurable, - enumerable: originalDescriptor.enumerable, - get: function getKey() { - return originalObject[key]; - }, - set: function setKey(value) { - originalObject[key] = value; - } - }); - }, - Value_redefine = function(object, property, newValue) { - if (supportsDescriptors) { - var descriptor = Object.getOwnPropertyDescriptor(object, property); - (descriptor.value = newValue), - Object.defineProperty(object, property, descriptor); - } else object[property] = newValue; - }, - Value_defineByDescriptor = function(object, property, descriptor) { - supportsDescriptors - ? Object.defineProperty(object, property, descriptor) - : 'value' in descriptor && (object[property] = descriptor.value); - }, - Value_preserveToString = function(target, source) { - source && - isCallable(source.toString) && - defineProperty(target, 'toString', source.toString.bind(source), !0); - }, - create = - Object.create || - function(prototype, properties) { - var Prototype = function Prototype() {}; - Prototype.prototype = prototype; - var object = new Prototype(); - return ( - void 0 !== properties && - keys(properties).forEach(function(key) { - Value_defineByDescriptor(object, key, properties[key]); - }), - object - ); - }, - supportsSubclassing = function(C, f) { - return ( - !!Object.setPrototypeOf && - valueOrFalseIfThrows(function() { - var Sub = function Subclass(arg) { - var o = new C(arg); - return Object.setPrototypeOf(o, Subclass.prototype), o; - }; - return ( - Object.setPrototypeOf(Sub, C), - (Sub.prototype = create(C.prototype, { constructor: { value: Sub } })), - f(Sub) - ); - }) - ); - }, - globals = (function() { - if ('undefined' != typeof self) return self; - if ('undefined' != typeof window) return window; - if (void 0 !== global) return global; - throw new Error('unable to locate global object'); - })(), - globalIsFinite = globals.isFinite, - _indexOf = Function.call.bind(String.prototype.indexOf), - _arrayIndexOfApply = Function.apply.bind(Array.prototype.indexOf), - _concat = Function.call.bind(Array.prototype.concat), - _strSlice = Function.call.bind(String.prototype.slice), - _push = Function.call.bind(Array.prototype.push), - _pushApply = Function.apply.bind(Array.prototype.push), - _shift = Function.call.bind(Array.prototype.shift), - _max = Math.max, - _min = Math.min, - _floor = Math.floor, - _abs = Math.abs, - _exp = Math.exp, - _log = Math.log, - _sqrt = Math.sqrt, - _hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty), - noop = function() {}, - OrigMap = globals.Map, - origMapDelete = OrigMap && OrigMap.prototype.delete, - origMapGet = OrigMap && OrigMap.prototype.get, - origMapHas = OrigMap && OrigMap.prototype.has, - origMapSet = OrigMap && OrigMap.prototype.set, - Symbol = globals.Symbol || {}, - symbolSpecies = Symbol.species || '@@species', - numberIsNaN = - Number.isNaN || - function isNaN(value) { - return value != value; - }, - numberIsFinite = - Number.isFinite || - function isFinite(value) { - return 'number' == typeof value && globalIsFinite(value); - }, - _sign = isCallable(Math.sign) - ? Math.sign - : function sign(value) { - var number = Number(value); - return 0 === number - ? number - : numberIsNaN(number) ? number : number < 0 ? -1 : 1; - }, - isStandardArguments = function isArguments(value) { - return '[object Arguments]' === _toString(value); - }, - isArguments = isStandardArguments(arguments) - ? isStandardArguments - : function isArguments(value) { - return ( - null !== value && - 'object' == typeof value && - 'number' == typeof value.length && - value.length >= 0 && - '[object Array]' !== _toString(value) && - '[object Function]' === _toString(value.callee) - ); - }, - Type_primitive = function(x) { - return null === x || ('function' != typeof x && 'object' != typeof x); - }, - Type_string = function(x) { - return '[object String]' === _toString(x); - }, - Type_regex = function(x) { - return '[object RegExp]' === _toString(x); - }, - Type_symbol = function(x) { - return 'function' == typeof globals.Symbol && 'symbol' == typeof x; - }, - overrideNative = function overrideNative(object, property, replacement) { - var original = object[property]; - defineProperty(object, property, replacement, !0), - Value_preserveToString(object[property], original); - }, - hasSymbols = - 'function' == typeof Symbol && - 'function' == typeof Symbol.for && - Type_symbol(Symbol()), - $iterator$ = Type_symbol(Symbol.iterator) ? Symbol.iterator : '_es6-shim iterator_'; - globals.Set && - 'function' == typeof new globals.Set()['@@iterator'] && - ($iterator$ = '@@iterator'), - globals.Reflect || defineProperty(globals, 'Reflect', {}, !0); - var o, - Reflect = globals.Reflect, - $String = String, - domAll = 'undefined' != typeof document && document ? document.all : null, - isNullOrUndefined = - null == domAll - ? function isNullOrUndefined(x) { - return null == x; - } - : function isNullOrUndefinedAndNotDocumentAll(x) { - return null == x && x !== domAll; - }, - ES = { - Call: function Call(F, V) { - var args = arguments.length > 2 ? arguments[2] : []; - if (!ES.IsCallable(F)) throw new TypeError(F + ' is not a function'); - return _apply(F, V, args); - }, - RequireObjectCoercible: function(x, optMessage) { - if (isNullOrUndefined(x)) - throw new TypeError(optMessage || 'Cannot call method on ' + x); - return x; - }, - TypeIsObject: function(x) { - return ( - void 0 !== x && - null !== x && - !0 !== x && - !1 !== x && - ('function' == typeof x || 'object' == typeof x || x === domAll) - ); - }, - ToObject: function(o, optMessage) { - return Object(ES.RequireObjectCoercible(o, optMessage)); - }, - IsCallable: isCallable, - IsConstructor: function(x) { - return ES.IsCallable(x); - }, - ToInt32: function(x) { - return ES.ToNumber(x) >> 0; - }, - ToUint32: function(x) { - return ES.ToNumber(x) >>> 0; - }, - ToNumber: function(value) { - if ('[object Symbol]' === _toString(value)) - throw new TypeError('Cannot convert a Symbol value to a number'); - return +value; - }, - ToInteger: function(value) { - var number = ES.ToNumber(value); - return numberIsNaN(number) - ? 0 - : 0 !== number && numberIsFinite(number) - ? (number > 0 ? 1 : -1) * _floor(_abs(number)) - : number; - }, - ToLength: function(value) { - var len = ES.ToInteger(value); - return len <= 0 - ? 0 - : len > Number.MAX_SAFE_INTEGER ? Number.MAX_SAFE_INTEGER : len; - }, - SameValue: function(a, b) { - return a === b ? 0 !== a || 1 / a == 1 / b : numberIsNaN(a) && numberIsNaN(b); - }, - SameValueZero: function(a, b) { - return a === b || (numberIsNaN(a) && numberIsNaN(b)); - }, - IsIterable: function(o) { - return ES.TypeIsObject(o) && (void 0 !== o[$iterator$] || isArguments(o)); - }, - GetIterator: function(o) { - if (isArguments(o)) return new ArrayIterator(o, 'value'); - var itFn = ES.GetMethod(o, $iterator$); - if (!ES.IsCallable(itFn)) throw new TypeError('value is not an iterable'); - var it = ES.Call(itFn, o); - if (!ES.TypeIsObject(it)) throw new TypeError('bad iterator'); - return it; - }, - GetMethod: function(o, p) { - var func = ES.ToObject(o)[p]; - if (!isNullOrUndefined(func)) { - if (!ES.IsCallable(func)) throw new TypeError('Method not callable: ' + p); - return func; - } - }, - IteratorComplete: function(iterResult) { - return !!iterResult.done; - }, - IteratorClose: function(iterator, completionIsThrow) { - var returnMethod = ES.GetMethod(iterator, 'return'); - if (void 0 !== returnMethod) { - var innerResult, innerException; - try { - innerResult = ES.Call(returnMethod, iterator); - } catch (e) { - innerException = e; - } - if (!completionIsThrow) { - if (innerException) throw innerException; - if (!ES.TypeIsObject(innerResult)) - throw new TypeError("Iterator's return method returned a non-object."); - } - } - }, - IteratorNext: function(it) { - var result = arguments.length > 1 ? it.next(arguments[1]) : it.next(); - if (!ES.TypeIsObject(result)) throw new TypeError('bad iterator'); - return result; - }, - IteratorStep: function(it) { - var result = ES.IteratorNext(it); - return !ES.IteratorComplete(result) && result; - }, - Construct: function(C, args, newTarget, isES6internal) { - var target = void 0 === newTarget ? C : newTarget; - if (!isES6internal && Reflect.construct) - return Reflect.construct(C, args, target); - var proto = target.prototype; - ES.TypeIsObject(proto) || (proto = Object.prototype); - var obj = create(proto), - result = ES.Call(C, obj, args); - return ES.TypeIsObject(result) ? result : obj; - }, - SpeciesConstructor: function(O, defaultConstructor) { - var C = O.constructor; - if (void 0 === C) return defaultConstructor; - if (!ES.TypeIsObject(C)) throw new TypeError('Bad constructor'); - var S = C[symbolSpecies]; - if (isNullOrUndefined(S)) return defaultConstructor; - if (!ES.IsConstructor(S)) throw new TypeError('Bad @@species'); - return S; - }, - CreateHTML: function(string, tag, attribute, value) { - var S = ES.ToString(string), - p1 = '<' + tag; - '' !== attribute && - (p1 += - ' ' + attribute + '="' + ES.ToString(value).replace(/"/g, '"') + '"'); - return p1 + '>' + S + ''; - }, - IsRegExp: function IsRegExp(argument) { - if (!ES.TypeIsObject(argument)) return !1; - var isRegExp = argument[Symbol.match]; - return void 0 !== isRegExp ? !!isRegExp : Type_regex(argument); - }, - ToString: function ToString(string) { - return $String(string); - } - }; - if (supportsDescriptors && hasSymbols) { - var defineWellKnownSymbol = function defineWellKnownSymbol(name) { - if (Type_symbol(Symbol[name])) return Symbol[name]; - var sym = Symbol.for('Symbol.' + name); - return ( - Object.defineProperty(Symbol, name, { - configurable: !1, - enumerable: !1, - writable: !1, - value: sym - }), - sym - ); - }; - if (!Type_symbol(Symbol.search)) { - var symbolSearch = defineWellKnownSymbol('search'), - originalSearch = String.prototype.search; - defineProperty(RegExp.prototype, symbolSearch, function search(string) { - return ES.Call(originalSearch, string, [this]); - }); - overrideNative(String.prototype, 'search', function search(regexp) { - var O = ES.RequireObjectCoercible(this); - if (!isNullOrUndefined(regexp)) { - var searcher = ES.GetMethod(regexp, symbolSearch); - if (void 0 !== searcher) return ES.Call(searcher, regexp, [O]); - } - return ES.Call(originalSearch, O, [ES.ToString(regexp)]); - }); - } - if (!Type_symbol(Symbol.replace)) { - var symbolReplace = defineWellKnownSymbol('replace'), - originalReplace = String.prototype.replace; - defineProperty(RegExp.prototype, symbolReplace, function replace( - string, - replaceValue - ) { - return ES.Call(originalReplace, string, [this, replaceValue]); - }); - overrideNative(String.prototype, 'replace', function replace( - searchValue, - replaceValue - ) { - var O = ES.RequireObjectCoercible(this); - if (!isNullOrUndefined(searchValue)) { - var replacer = ES.GetMethod(searchValue, symbolReplace); - if (void 0 !== replacer) - return ES.Call(replacer, searchValue, [O, replaceValue]); - } - return ES.Call(originalReplace, O, [ES.ToString(searchValue), replaceValue]); - }); - } - if (!Type_symbol(Symbol.split)) { - var symbolSplit = defineWellKnownSymbol('split'), - originalSplit = String.prototype.split; - defineProperty(RegExp.prototype, symbolSplit, function split(string, limit) { - return ES.Call(originalSplit, string, [this, limit]); - }); - overrideNative(String.prototype, 'split', function split(separator, limit) { - var O = ES.RequireObjectCoercible(this); - if (!isNullOrUndefined(separator)) { - var splitter = ES.GetMethod(separator, symbolSplit); - if (void 0 !== splitter) return ES.Call(splitter, separator, [O, limit]); - } - return ES.Call(originalSplit, O, [ES.ToString(separator), limit]); - }); - } - var symbolMatchExists = Type_symbol(Symbol.match), - stringMatchIgnoresSymbolMatch = - symbolMatchExists && - (((o = {})[Symbol.match] = function() { - return 42; - }), - 42 !== 'a'.match(o)); - if (!symbolMatchExists || stringMatchIgnoresSymbolMatch) { - var symbolMatch = defineWellKnownSymbol('match'), - originalMatch = String.prototype.match; - defineProperty(RegExp.prototype, symbolMatch, function match(string) { - return ES.Call(originalMatch, string, [this]); - }); - overrideNative(String.prototype, 'match', function match(regexp) { - var O = ES.RequireObjectCoercible(this); - if (!isNullOrUndefined(regexp)) { - var matcher = ES.GetMethod(regexp, symbolMatch); - if (void 0 !== matcher) return ES.Call(matcher, regexp, [O]); - } - return ES.Call(originalMatch, O, [ES.ToString(regexp)]); - }); - } - } - var wrapConstructor = function wrapConstructor(original, replacement, keysToSkip) { - Value_preserveToString(replacement, original), - Object.setPrototypeOf && Object.setPrototypeOf(original, replacement), - supportsDescriptors - ? _forEach(Object.getOwnPropertyNames(original), function(key) { - key in noop || keysToSkip[key] || Value_proxy(original, key, replacement); - }) - : _forEach(Object.keys(original), function(key) { - key in noop || keysToSkip[key] || (replacement[key] = original[key]); - }), - (replacement.prototype = original.prototype), - Value_redefine(original.prototype, 'constructor', replacement); - }, - defaultSpeciesGetter = function() { - return this; - }, - addDefaultSpecies = function(C) { - supportsDescriptors && - !_hasOwnProperty(C, symbolSpecies) && - Value_getter(C, symbolSpecies, defaultSpeciesGetter); - }, - addIterator = function(prototype, impl) { - var implementation = - impl || - function iterator() { - return this; - }; - defineProperty(prototype, $iterator$, implementation), - !prototype[$iterator$] && - Type_symbol($iterator$) && - (prototype[$iterator$] = implementation); - }, - createDataPropertyOrThrow = function createDataPropertyOrThrow(object, name, value) { - if ( - ((function createDataProperty(object, name, value) { - supportsDescriptors - ? Object.defineProperty(object, name, { - configurable: !0, - enumerable: !0, - writable: !0, - value: value - }) - : (object[name] = value); - })(object, name, value), - !ES.SameValue(object[name], value)) - ) - throw new TypeError('property is nonconfigurable'); - }, - emulateES6construct = function(o, defaultNewTarget, defaultProto, slots) { - if (!ES.TypeIsObject(o)) - throw new TypeError('Constructor requires `new`: ' + defaultNewTarget.name); - var proto = defaultNewTarget.prototype; - ES.TypeIsObject(proto) || (proto = defaultProto); - var obj = create(proto); - for (var name in slots) - if (_hasOwnProperty(slots, name)) { - var value = slots[name]; - defineProperty(obj, name, value, !0); - } - return obj; - }; - if (String.fromCodePoint && 1 !== String.fromCodePoint.length) { - var originalFromCodePoint = String.fromCodePoint; - overrideNative(String, 'fromCodePoint', function fromCodePoint(codePoints) { - return ES.Call(originalFromCodePoint, this, arguments); - }); - } - var StringShims = { - fromCodePoint: function fromCodePoint(codePoints) { - for (var next, result = [], i = 0, length = arguments.length; i < length; i++) { - if ( - ((next = Number(arguments[i])), - !ES.SameValue(next, ES.ToInteger(next)) || next < 0 || next > 1114111) - ) - throw new RangeError('Invalid code point ' + next); - next < 65536 - ? _push(result, String.fromCharCode(next)) - : ((next -= 65536), - _push(result, String.fromCharCode(55296 + (next >> 10))), - _push(result, String.fromCharCode(next % 1024 + 56320))); - } - return result.join(''); - }, - raw: function raw(callSite) { - var cooked = ES.ToObject(callSite, 'bad callSite'), - rawString = ES.ToObject(cooked.raw, 'bad raw value'), - len = rawString.length, - literalsegments = ES.ToLength(len); - if (literalsegments <= 0) return ''; - for ( - var nextKey, next, nextSeg, nextSub, stringElements = [], nextIndex = 0; - nextIndex < literalsegments && - ((nextKey = ES.ToString(nextIndex)), - (nextSeg = ES.ToString(rawString[nextKey])), - _push(stringElements, nextSeg), - !(nextIndex + 1 >= literalsegments)); - - ) - (next = nextIndex + 1 < arguments.length ? arguments[nextIndex + 1] : ''), - (nextSub = ES.ToString(next)), - _push(stringElements, nextSub), - (nextIndex += 1); - return stringElements.join(''); - } - }; - String.raw && - 'xy' !== String.raw({ raw: { 0: 'x', 1: 'y', length: 2 } }) && - overrideNative(String, 'raw', StringShims.raw), - defineProperties(String, StringShims); - var StringPrototypeShims = { - repeat: function repeat(times) { - var thisStr = ES.ToString(ES.RequireObjectCoercible(this)), - numTimes = ES.ToInteger(times); - if (numTimes < 0 || numTimes >= 1 / 0) - throw new RangeError( - 'repeat count must be less than infinity and not overflow maximum string size' - ); - return (function repeat(s, times) { - if (times < 1) return ''; - if (times % 2) return repeat(s, times - 1) + s; - var half = repeat(s, times / 2); - return half + half; - })(thisStr, numTimes); - }, - startsWith: function startsWith(searchString) { - var S = ES.ToString(ES.RequireObjectCoercible(this)); - if (ES.IsRegExp(searchString)) - throw new TypeError('Cannot call method "startsWith" with a regex'); - var position, - searchStr = ES.ToString(searchString); - arguments.length > 1 && (position = arguments[1]); - var start = _max(ES.ToInteger(position), 0); - return _strSlice(S, start, start + searchStr.length) === searchStr; - }, - endsWith: function endsWith(searchString) { - var S = ES.ToString(ES.RequireObjectCoercible(this)); - if (ES.IsRegExp(searchString)) - throw new TypeError('Cannot call method "endsWith" with a regex'); - var endPosition, - searchStr = ES.ToString(searchString), - len = S.length; - arguments.length > 1 && (endPosition = arguments[1]); - var pos = void 0 === endPosition ? len : ES.ToInteger(endPosition), - end = _min(_max(pos, 0), len); - return _strSlice(S, end - searchStr.length, end) === searchStr; - }, - includes: function includes(searchString) { - if (ES.IsRegExp(searchString)) - throw new TypeError('"includes" does not accept a RegExp'); - var position, - searchStr = ES.ToString(searchString); - return ( - arguments.length > 1 && (position = arguments[1]), - -1 !== _indexOf(this, searchStr, position) - ); - }, - codePointAt: function codePointAt(pos) { - var thisStr = ES.ToString(ES.RequireObjectCoercible(this)), - position = ES.ToInteger(pos), - length = thisStr.length; - if (position >= 0 && position < length) { - var first = thisStr.charCodeAt(position); - if (first < 55296 || first > 56319 || position + 1 === length) return first; - var second = thisStr.charCodeAt(position + 1); - return second < 56320 || second > 57343 - ? first - : 1024 * (first - 55296) + (second - 56320) + 65536; - } - } - }; - if ( - (String.prototype.includes && - !1 !== 'a'.includes('a', 1 / 0) && - overrideNative(String.prototype, 'includes', StringPrototypeShims.includes), - String.prototype.startsWith && String.prototype.endsWith) - ) { - var startsWithRejectsRegex = throwsError(function() { - '/a/'.startsWith(/a/); - }), - startsWithHandlesInfinity = valueOrFalseIfThrows(function() { - return !1 === 'abc'.startsWith('a', 1 / 0); - }); - (startsWithRejectsRegex && startsWithHandlesInfinity) || - (overrideNative(String.prototype, 'startsWith', StringPrototypeShims.startsWith), - overrideNative(String.prototype, 'endsWith', StringPrototypeShims.endsWith)); - } - hasSymbols && - (valueOrFalseIfThrows(function() { - var re = /a/; - return (re[Symbol.match] = !1), '/a/'.startsWith(re); - }) || overrideNative(String.prototype, 'startsWith', StringPrototypeShims.startsWith), - valueOrFalseIfThrows(function() { - var re = /a/; - return (re[Symbol.match] = !1), '/a/'.endsWith(re); - }) || overrideNative(String.prototype, 'endsWith', StringPrototypeShims.endsWith), - valueOrFalseIfThrows(function() { - var re = /a/; - return (re[Symbol.match] = !1), '/a/'.includes(re); - }) || overrideNative(String.prototype, 'includes', StringPrototypeShims.includes)); - defineProperties(String.prototype, StringPrototypeShims); - var ws = ['\t\n\v\f\r   ᠎    ', '          \u2028', '\u2029\ufeff'].join(''), - trimRegexp = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g'), - trimShim = function trim() { - return ES.ToString(ES.RequireObjectCoercible(this)).replace(trimRegexp, ''); - }, - nonWS = ['…', '​', '￾'].join(''), - nonWSregex = new RegExp('[' + nonWS + ']', 'g'), - isBadHexRegex = /^[-+]0x[0-9a-f]+$/i, - hasStringTrimBug = nonWS.trim().length !== nonWS.length; - defineProperty(String.prototype, 'trim', trimShim, hasStringTrimBug); - var iteratorResult = function(x) { - return { value: x, done: 0 === arguments.length }; - }, - StringIterator = function(s) { - ES.RequireObjectCoercible(s), (this._s = ES.ToString(s)), (this._i = 0); - }; - (StringIterator.prototype.next = function() { - var s = this._s, - i = this._i; - if (void 0 === s || i >= s.length) return (this._s = void 0), iteratorResult(); - var second, - len, - first = s.charCodeAt(i); - return ( - (len = - first < 55296 || first > 56319 || i + 1 === s.length - ? 1 - : (second = s.charCodeAt(i + 1)) < 56320 || second > 57343 ? 1 : 2), - (this._i = i + len), - iteratorResult(s.substr(i, len)) - ); - }), - addIterator(StringIterator.prototype), - addIterator(String.prototype, function() { - return new StringIterator(this); - }); - var ArrayShims = { - from: function from(items) { - var mapFn, - mapping, - T, - length, - result, - i, - C = this; - if ((arguments.length > 1 && (mapFn = arguments[1]), void 0 === mapFn)) - mapping = !1; - else { - if (!ES.IsCallable(mapFn)) - throw new TypeError( - 'Array.from: when provided, the second argument must be a function' - ); - arguments.length > 2 && (T = arguments[2]), (mapping = !0); - } - if (void 0 !== (isArguments(items) || ES.GetMethod(items, $iterator$))) { - result = ES.IsConstructor(C) ? Object(new C()) : []; - var next, - nextValue, - iterator = ES.GetIterator(items); - for (i = 0; !1 !== (next = ES.IteratorStep(iterator)); ) { - nextValue = next.value; - try { - mapping && - (nextValue = - void 0 === T ? mapFn(nextValue, i) : _call(mapFn, T, nextValue, i)), - (result[i] = nextValue); - } catch (e) { - throw (ES.IteratorClose(iterator, !0), e); - } - i += 1; - } - length = i; - } else { - var value, - arrayLike = ES.ToObject(items); - for ( - length = ES.ToLength(arrayLike.length), - result = ES.IsConstructor(C) ? Object(new C(length)) : new Array(length), - i = 0; - i < length; - ++i - ) - (value = arrayLike[i]), - mapping && - (value = void 0 === T ? mapFn(value, i) : _call(mapFn, T, value, i)), - createDataPropertyOrThrow(result, i, value); - } - return (result.length = length), result; - }, - of: function of() { - for ( - var len = arguments.length, - C = this, - A = isArray(C) || !ES.IsCallable(C) ? new Array(len) : ES.Construct(C, [len]), - k = 0; - k < len; - ++k - ) - createDataPropertyOrThrow(A, k, arguments[k]); - return (A.length = len), A; - } - }; - defineProperties(Array, ArrayShims), - addDefaultSpecies(Array), - defineProperties( - (ArrayIterator = function(array, kind) { - (this.i = 0), (this.array = array), (this.kind = kind); - }).prototype, - { - next: function() { - var i = this.i, - array = this.array; - if (!(this instanceof ArrayIterator)) - throw new TypeError('Not an ArrayIterator'); - if (void 0 !== array) - for (var len = ES.ToLength(array.length); i < len; i++) { - var retval, - kind = this.kind; - return ( - 'key' === kind - ? (retval = i) - : 'value' === kind - ? (retval = array[i]) - : 'entry' === kind && (retval = [i, array[i]]), - (this.i = i + 1), - iteratorResult(retval) - ); - } - return (this.array = void 0), iteratorResult(); - } - } - ), - addIterator(ArrayIterator.prototype), - Array.of === ArrayShims.of || - (function() { - var Foo = function Foo(len) { - this.length = len; - }; - Foo.prototype = []; - var fooArr = Array.of.apply(Foo, [1, 2]); - return fooArr instanceof Foo && 2 === fooArr.length; - })() || - overrideNative(Array, 'of', ArrayShims.of); - var ArrayPrototypeShims = { - copyWithin: function copyWithin(target, start) { - var end, - o = ES.ToObject(this), - len = ES.ToLength(o.length), - relativeTarget = ES.ToInteger(target), - relativeStart = ES.ToInteger(start), - to = - relativeTarget < 0 ? _max(len + relativeTarget, 0) : _min(relativeTarget, len), - from = - relativeStart < 0 ? _max(len + relativeStart, 0) : _min(relativeStart, len); - arguments.length > 2 && (end = arguments[2]); - var relativeEnd = void 0 === end ? len : ES.ToInteger(end), - finalItem = relativeEnd < 0 ? _max(len + relativeEnd, 0) : _min(relativeEnd, len), - count = _min(finalItem - from, len - to), - direction = 1; - for ( - from < to && - to < from + count && - ((direction = -1), (from += count - 1), (to += count - 1)); - count > 0; - - ) - from in o ? (o[to] = o[from]) : delete o[to], - (from += direction), - (to += direction), - (count -= 1); - return o; - }, - fill: function fill(value) { - var start, end; - arguments.length > 1 && (start = arguments[1]), - arguments.length > 2 && (end = arguments[2]); - var O = ES.ToObject(this), - len = ES.ToLength(O.length); - (start = ES.ToInteger(void 0 === start ? 0 : start)), - (end = ES.ToInteger(void 0 === end ? len : end)); - for ( - var relativeStart = start < 0 ? _max(len + start, 0) : _min(start, len), - relativeEnd = end < 0 ? len + end : end, - i = relativeStart; - i < len && i < relativeEnd; - ++i - ) - O[i] = value; - return O; - }, - find: function find(predicate) { - var list = ES.ToObject(this), - length = ES.ToLength(list.length); - if (!ES.IsCallable(predicate)) - throw new TypeError('Array#find: predicate must be a function'); - for ( - var value, thisArg = arguments.length > 1 ? arguments[1] : null, i = 0; - i < length; - i++ - ) - if (((value = list[i]), thisArg)) { - if (_call(predicate, thisArg, value, i, list)) return value; - } else if (predicate(value, i, list)) return value; - }, - findIndex: function findIndex(predicate) { - var list = ES.ToObject(this), - length = ES.ToLength(list.length); - if (!ES.IsCallable(predicate)) - throw new TypeError('Array#findIndex: predicate must be a function'); - for ( - var thisArg = arguments.length > 1 ? arguments[1] : null, i = 0; - i < length; - i++ - ) - if (thisArg) { - if (_call(predicate, thisArg, list[i], i, list)) return i; - } else if (predicate(list[i], i, list)) return i; - return -1; - }, - keys: function keys() { - return new ArrayIterator(this, 'key'); - }, - values: function values() { - return new ArrayIterator(this, 'value'); - }, - entries: function entries() { - return new ArrayIterator(this, 'entry'); - } - }; - if ( - (Array.prototype.keys && - !ES.IsCallable([1].keys().next) && - delete Array.prototype.keys, - Array.prototype.entries && - !ES.IsCallable([1].entries().next) && - delete Array.prototype.entries, - Array.prototype.keys && - Array.prototype.entries && - !Array.prototype.values && - Array.prototype[$iterator$] && - (defineProperties(Array.prototype, { values: Array.prototype[$iterator$] }), - Type_symbol(Symbol.unscopables) && - (Array.prototype[Symbol.unscopables].values = !0)), - functionsHaveNames && - Array.prototype.values && - 'values' !== Array.prototype.values.name) - ) { - var originalArrayPrototypeValues = Array.prototype.values; - overrideNative(Array.prototype, 'values', function values() { - return ES.Call(originalArrayPrototypeValues, this, arguments); - }), - defineProperty(Array.prototype, $iterator$, Array.prototype.values, !0); - } - defineProperties(Array.prototype, ArrayPrototypeShims), - 1 / [!0].indexOf(!0, -0) < 0 && - defineProperty( - Array.prototype, - 'indexOf', - function indexOf(searchElement) { - var value = _arrayIndexOfApply(this, arguments); - return 0 === value && 1 / value < 0 ? 0 : value; - }, - !0 - ), - addIterator(Array.prototype, function() { - return this.values(); - }), - Object.getPrototypeOf && addIterator(Object.getPrototypeOf([].values())); - var arr, - arrayFromSwallowsNegativeLengths = valueOrFalseIfThrows(function() { - return 0 === Array.from({ length: -1 }).length; - }), - arrayFromHandlesIterables = - 1 === (arr = Array.from([0].entries())).length && - isArray(arr[0]) && - 0 === arr[0][0] && - 0 === arr[0][1]; - if ( - ((arrayFromSwallowsNegativeLengths && arrayFromHandlesIterables) || - overrideNative(Array, 'from', ArrayShims.from), - !valueOrFalseIfThrows(function() { - return Array.from([0], void 0); - })) - ) { - var origArrayFrom = Array.from; - overrideNative(Array, 'from', function from(items) { - return arguments.length > 1 && void 0 !== arguments[1] - ? ES.Call(origArrayFrom, this, arguments) - : _call(origArrayFrom, this, items); - }); - } - var int32sAsOne = -(Math.pow(2, 32) - 1), - toLengthsCorrectly = function(method, reversed) { - var obj = { length: int32sAsOne }; - return ( - (obj[reversed ? (obj.length >>> 0) - 1 : 0] = !0), - valueOrFalseIfThrows(function() { - return ( - _call( - method, - obj, - function() { - throw new RangeError('should not reach here'); - }, - [] - ), - !0 - ); - }) - ); - }; - if (!toLengthsCorrectly(Array.prototype.forEach)) { - var originalForEach = Array.prototype.forEach; - overrideNative(Array.prototype, 'forEach', function forEach(callbackFn) { - return ES.Call(originalForEach, this.length >= 0 ? this : [], arguments); - }); - } - if (!toLengthsCorrectly(Array.prototype.map)) { - var originalMap = Array.prototype.map; - overrideNative(Array.prototype, 'map', function map(callbackFn) { - return ES.Call(originalMap, this.length >= 0 ? this : [], arguments); - }); - } - if (!toLengthsCorrectly(Array.prototype.filter)) { - var originalFilter = Array.prototype.filter; - overrideNative(Array.prototype, 'filter', function filter(callbackFn) { - return ES.Call(originalFilter, this.length >= 0 ? this : [], arguments); - }); - } - if (!toLengthsCorrectly(Array.prototype.some)) { - var originalSome = Array.prototype.some; - overrideNative(Array.prototype, 'some', function some(callbackFn) { - return ES.Call(originalSome, this.length >= 0 ? this : [], arguments); - }); - } - if (!toLengthsCorrectly(Array.prototype.every)) { - var originalEvery = Array.prototype.every; - overrideNative(Array.prototype, 'every', function every(callbackFn) { - return ES.Call(originalEvery, this.length >= 0 ? this : [], arguments); - }); - } - if (!toLengthsCorrectly(Array.prototype.reduce)) { - var originalReduce = Array.prototype.reduce; - overrideNative(Array.prototype, 'reduce', function reduce(callbackFn) { - return ES.Call(originalReduce, this.length >= 0 ? this : [], arguments); - }); - } - if (!toLengthsCorrectly(Array.prototype.reduceRight, !0)) { - var originalReduceRight = Array.prototype.reduceRight; - overrideNative(Array.prototype, 'reduceRight', function reduceRight(callbackFn) { - return ES.Call(originalReduceRight, this.length >= 0 ? this : [], arguments); - }); - } - var lacksOctalSupport = 8 !== Number('0o10'), - lacksBinarySupport = 2 !== Number('0b10'), - trimsNonWhitespace = _some(nonWS, function(c) { - return 0 === Number(c + 0 + c); - }); - if (lacksOctalSupport || lacksBinarySupport || trimsNonWhitespace) { - var OrigNumber = Number, - binaryRegex = /^0b[01]+$/i, - octalRegex = /^0o[0-7]+$/i, - isBinary = binaryRegex.test.bind(binaryRegex), - isOctal = octalRegex.test.bind(octalRegex), - hasNonWS = nonWSregex.test.bind(nonWSregex), - isBadHex = isBadHexRegex.test.bind(isBadHexRegex), - NumberShim = (function() { - var NumberShim = function Number(value) { - var primValue; - 'string' == - typeof (primValue = - arguments.length > 0 - ? Type_primitive(value) - ? value - : (function(O) { - var result; - if ( - 'function' == typeof O.valueOf && - ((result = O.valueOf()), Type_primitive(result)) - ) - return result; - if ( - 'function' == typeof O.toString && - ((result = O.toString()), Type_primitive(result)) - ) - return result; - throw new TypeError('No default value'); - })(value) - : 0) && - ((primValue = ES.Call(trimShim, primValue)), - isBinary(primValue) - ? (primValue = parseInt(_strSlice(primValue, 2), 2)) - : isOctal(primValue) - ? (primValue = parseInt(_strSlice(primValue, 2), 8)) - : (hasNonWS(primValue) || isBadHex(primValue)) && (primValue = NaN)); - var receiver = this, - valueOfSucceeds = valueOrFalseIfThrows(function() { - return OrigNumber.prototype.valueOf.call(receiver), !0; - }); - return receiver instanceof NumberShim && !valueOfSucceeds - ? new OrigNumber(primValue) - : OrigNumber(primValue); - }; - return NumberShim; - })(); - wrapConstructor(OrigNumber, NumberShim, {}), - defineProperties(NumberShim, { - NaN: OrigNumber.NaN, - MAX_VALUE: OrigNumber.MAX_VALUE, - MIN_VALUE: OrigNumber.MIN_VALUE, - NEGATIVE_INFINITY: OrigNumber.NEGATIVE_INFINITY, - POSITIVE_INFINITY: OrigNumber.POSITIVE_INFINITY - }), - (Number = NumberShim), - Value_redefine(globals, 'Number', NumberShim); - } - var maxSafeInteger = Math.pow(2, 53) - 1; - defineProperties(Number, { - MAX_SAFE_INTEGER: maxSafeInteger, - MIN_SAFE_INTEGER: -maxSafeInteger, - EPSILON: 2.220446049250313e-16, - parseInt: globals.parseInt, - parseFloat: globals.parseFloat, - isFinite: numberIsFinite, - isInteger: function isInteger(value) { - return numberIsFinite(value) && ES.ToInteger(value) === value; - }, - isSafeInteger: function isSafeInteger(value) { - return Number.isInteger(value) && _abs(value) <= Number.MAX_SAFE_INTEGER; - }, - isNaN: numberIsNaN - }), - defineProperty( - Number, - 'parseInt', - globals.parseInt, - Number.parseInt !== globals.parseInt - ), - 1 === - [, 1].find(function() { - return !0; - }) && overrideNative(Array.prototype, 'find', ArrayPrototypeShims.find), - 0 !== - [, 1].findIndex(function() { - return !0; - }) && overrideNative(Array.prototype, 'findIndex', ArrayPrototypeShims.findIndex); - var FAKENULL, - gpo, - spo, - isEnumerableOn = Function.bind.call( - Function.bind, - Object.prototype.propertyIsEnumerable - ), - ensureEnumerable = function ensureEnumerable(obj, prop) { - supportsDescriptors && - isEnumerableOn(obj, prop) && - Object.defineProperty(obj, prop, { enumerable: !1 }); - }, - sliceArgs = function sliceArgs() { - for ( - var initial = Number(this), - len = arguments.length, - desiredArgCount = len - initial, - args = new Array(desiredArgCount < 0 ? 0 : desiredArgCount), - i = initial; - i < len; - ++i - ) - args[i - initial] = arguments[i]; - return args; - }, - assignTo = function assignTo(source) { - return function assignToSource(target, key) { - return (target[key] = source[key]), target; - }; - }, - assignReducer = function(target, source) { - var symbols, - sourceKeys = keys(Object(source)); - return ( - ES.IsCallable(Object.getOwnPropertySymbols) && - (symbols = _filter( - Object.getOwnPropertySymbols(Object(source)), - isEnumerableOn(source) - )), - _reduce(_concat(sourceKeys, symbols || []), assignTo(source), target) - ); - }, - ObjectShims = { - assign: function(target, source) { - var to = ES.ToObject(target, 'Cannot convert undefined or null to object'); - return _reduce(ES.Call(sliceArgs, 1, arguments), assignReducer, to); - }, - is: function is(a, b) { - return ES.SameValue(a, b); - } - }; - if ( - (Object.assign && - Object.preventExtensions && - (function() { - var thrower = Object.preventExtensions({ 1: 2 }); - try { - Object.assign(thrower, 'xy'); - } catch (e) { - return 'y' === thrower[1]; - } - })() && - overrideNative(Object, 'assign', ObjectShims.assign), - defineProperties(Object, ObjectShims), - supportsDescriptors) - ) { - var ES5ObjectShims = { - setPrototypeOf: (function(Object, magic) { - var set, - setPrototypeOf = function(O, proto) { - return ( - (function(O, proto) { - if (!ES.TypeIsObject(O)) - throw new TypeError('cannot set prototype on a non-object'); - if (null !== proto && !ES.TypeIsObject(proto)) - throw new TypeError( - 'can only set prototype to an object or null' + proto - ); - })(O, proto), - _call(set, O, proto), - O - ); - }; - try { - (set = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set), - _call(set, {}, null); - } catch (e) { - if (Object.prototype !== {}.__proto__) return; - (set = function(proto) { - this.__proto__ = proto; - }), - (setPrototypeOf.polyfill = - setPrototypeOf(setPrototypeOf({}, null), Object.prototype) instanceof - Object); - } - return setPrototypeOf; - })(Object) - }; - defineProperties(Object, ES5ObjectShims); - } - if ( - (Object.setPrototypeOf && - Object.getPrototypeOf && - null !== Object.getPrototypeOf(Object.setPrototypeOf({}, null)) && - null === Object.getPrototypeOf(Object.create(null)) && - ((FAKENULL = Object.create(null)), - (gpo = Object.getPrototypeOf), - (spo = Object.setPrototypeOf), - (Object.getPrototypeOf = function(o) { - var result = gpo(o); - return result === FAKENULL ? null : result; - }), - (Object.setPrototypeOf = function(o, p) { - return spo(o, null === p ? FAKENULL : p); - }), - (Object.setPrototypeOf.polyfill = !1)), - !!throwsError(function() { - Object.keys('foo'); - })) - ) { - var originalObjectKeys = Object.keys; - overrideNative(Object, 'keys', function keys(value) { - return originalObjectKeys(ES.ToObject(value)); - }), - (keys = Object.keys); - } - if ( - throwsError(function() { - Object.keys(/a/g); - }) - ) { - var regexRejectingObjectKeys = Object.keys; - overrideNative(Object, 'keys', function keys(value) { - if (Type_regex(value)) { - var regexKeys = []; - for (var k in value) _hasOwnProperty(value, k) && _push(regexKeys, k); - return regexKeys; - } - return regexRejectingObjectKeys(value); - }), - (keys = Object.keys); - } - if ( - Object.getOwnPropertyNames && - !!throwsError(function() { - Object.getOwnPropertyNames('foo'); - }) - ) { - var cachedWindowNames = - 'object' == typeof window ? Object.getOwnPropertyNames(window) : [], - originalObjectGetOwnPropertyNames = Object.getOwnPropertyNames; - overrideNative(Object, 'getOwnPropertyNames', function getOwnPropertyNames(value) { - var val = ES.ToObject(value); - if ('[object Window]' === _toString(val)) - try { - return originalObjectGetOwnPropertyNames(val); - } catch (e) { - return _concat([], cachedWindowNames); - } - return originalObjectGetOwnPropertyNames(val); - }); - } - if ( - Object.getOwnPropertyDescriptor && - !!throwsError(function() { - Object.getOwnPropertyDescriptor('foo', 'bar'); - }) - ) { - var originalObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - overrideNative(Object, 'getOwnPropertyDescriptor', function getOwnPropertyDescriptor( - value, - property - ) { - return originalObjectGetOwnPropertyDescriptor(ES.ToObject(value), property); - }); - } - if ( - Object.seal && - !!throwsError(function() { - Object.seal('foo'); - }) - ) { - var originalObjectSeal = Object.seal; - overrideNative(Object, 'seal', function seal(value) { - return ES.TypeIsObject(value) ? originalObjectSeal(value) : value; - }); - } - if ( - Object.isSealed && - !!throwsError(function() { - Object.isSealed('foo'); - }) - ) { - var originalObjectIsSealed = Object.isSealed; - overrideNative(Object, 'isSealed', function isSealed(value) { - return !ES.TypeIsObject(value) || originalObjectIsSealed(value); - }); - } - if ( - Object.freeze && - !!throwsError(function() { - Object.freeze('foo'); - }) - ) { - var originalObjectFreeze = Object.freeze; - overrideNative(Object, 'freeze', function freeze(value) { - return ES.TypeIsObject(value) ? originalObjectFreeze(value) : value; - }); - } - if ( - Object.isFrozen && - !!throwsError(function() { - Object.isFrozen('foo'); - }) - ) { - var originalObjectIsFrozen = Object.isFrozen; - overrideNative(Object, 'isFrozen', function isFrozen(value) { - return !ES.TypeIsObject(value) || originalObjectIsFrozen(value); - }); - } - if ( - Object.preventExtensions && - !!throwsError(function() { - Object.preventExtensions('foo'); - }) - ) { - var originalObjectPreventExtensions = Object.preventExtensions; - overrideNative(Object, 'preventExtensions', function preventExtensions(value) { - return ES.TypeIsObject(value) ? originalObjectPreventExtensions(value) : value; - }); - } - if ( - Object.isExtensible && - !!throwsError(function() { - Object.isExtensible('foo'); - }) - ) { - var originalObjectIsExtensible = Object.isExtensible; - overrideNative(Object, 'isExtensible', function isExtensible(value) { - return !!ES.TypeIsObject(value) && originalObjectIsExtensible(value); - }); - } - if ( - Object.getPrototypeOf && - !!throwsError(function() { - Object.getPrototypeOf('foo'); - }) - ) { - var originalGetProto = Object.getPrototypeOf; - overrideNative(Object, 'getPrototypeOf', function getPrototypeOf(value) { - return originalGetProto(ES.ToObject(value)); - }); - } - var desc, - hasFlags = - supportsDescriptors && - ((desc = Object.getOwnPropertyDescriptor(RegExp.prototype, 'flags')) && - ES.IsCallable(desc.get)); - if (supportsDescriptors && !hasFlags) { - Value_getter(RegExp.prototype, 'flags', function flags() { - if (!ES.TypeIsObject(this)) - throw new TypeError('Method called on incompatible type: must be an object.'); - var result = ''; - return ( - this.global && (result += 'g'), - this.ignoreCase && (result += 'i'), - this.multiline && (result += 'm'), - this.unicode && (result += 'u'), - this.sticky && (result += 'y'), - result - ); - }); - } - var regex, - regExpSupportsFlagsWithRegex = - supportsDescriptors && - valueOrFalseIfThrows(function() { - return '/a/i' === String(new RegExp(/a/g, 'i')); - }), - regExpNeedsToSupportSymbolMatch = - hasSymbols && - supportsDescriptors && - (((regex = /./)[Symbol.match] = !1), RegExp(regex) === regex), - regexToStringIsGeneric = valueOrFalseIfThrows(function() { - return '/abc/' === RegExp.prototype.toString.call({ source: 'abc' }); - }), - regexToStringSupportsGenericFlags = - regexToStringIsGeneric && - valueOrFalseIfThrows(function() { - return '/a/b' === RegExp.prototype.toString.call({ source: 'a', flags: 'b' }); - }); - if (!regexToStringIsGeneric || !regexToStringSupportsGenericFlags) { - var origRegExpToString = RegExp.prototype.toString; - defineProperty( - RegExp.prototype, - 'toString', - function toString() { - var R = ES.RequireObjectCoercible(this); - return Type_regex(R) - ? _call(origRegExpToString, R) - : '/' + $String(R.source) + '/' + $String(R.flags); - }, - !0 - ), - Value_preserveToString(RegExp.prototype.toString, origRegExpToString); - } - if ( - supportsDescriptors && - (!regExpSupportsFlagsWithRegex || regExpNeedsToSupportSymbolMatch) - ) { - var flagsGetter = Object.getOwnPropertyDescriptor(RegExp.prototype, 'flags').get, - sourceDesc = Object.getOwnPropertyDescriptor(RegExp.prototype, 'source') || {}, - sourceGetter = ES.IsCallable(sourceDesc.get) - ? sourceDesc.get - : function() { - return this.source; - }, - OrigRegExp = RegExp, - RegExpShim = function RegExp(pattern, flags) { - var patternIsRegExp = ES.IsRegExp(pattern); - return this instanceof RegExp || - !patternIsRegExp || - void 0 !== flags || - pattern.constructor !== RegExp - ? Type_regex(pattern) - ? new RegExp( - ES.Call(sourceGetter, pattern), - void 0 === flags ? ES.Call(flagsGetter, pattern) : flags - ) - : (patternIsRegExp && (pattern.source, void 0 === flags && pattern.flags), - new OrigRegExp(pattern, flags)) - : pattern; - }; - wrapConstructor(OrigRegExp, RegExpShim, { $input: !0 }), - (RegExp = RegExpShim), - Value_redefine(globals, 'RegExp', RegExpShim); - } - if (supportsDescriptors) { - var regexGlobals = { - input: '$_', - lastMatch: '$&', - lastParen: '$+', - leftContext: '$`', - rightContext: "$'" - }; - _forEach(keys(regexGlobals), function(prop) { - prop in RegExp && - !(regexGlobals[prop] in RegExp) && - Value_getter(RegExp, regexGlobals[prop], function get() { - return RegExp[prop]; - }); - }); - } - addDefaultSpecies(RegExp); - var inverseEpsilon = 1 / Number.EPSILON, - BINARY_32_EPSILON = Math.pow(2, -23), - BINARY_32_MAX_VALUE = Math.pow(2, 127) * (2 - BINARY_32_EPSILON), - BINARY_32_MIN_VALUE = Math.pow(2, -126), - E = Math.E, - LOG2E = Math.LOG2E, - LOG10E = Math.LOG10E, - numberCLZ = Number.prototype.clz; - delete Number.prototype.clz; - var MathShims = { - acosh: function acosh(value) { - var x = Number(value); - return numberIsNaN(x) || value < 1 - ? NaN - : 1 === x - ? 0 - : x === 1 / 0 ? x : _log(x / E + _sqrt(x + 1) * _sqrt(x - 1) / E) + 1; - }, - asinh: function asinh(value) { - var x = Number(value); - return 0 !== x && globalIsFinite(x) - ? x < 0 ? -asinh(-x) : _log(x + _sqrt(x * x + 1)) - : x; - }, - atanh: function atanh(value) { - var x = Number(value); - return numberIsNaN(x) || x < -1 || x > 1 - ? NaN - : -1 === x - ? -1 / 0 - : 1 === x ? 1 / 0 : 0 === x ? x : 0.5 * _log((1 + x) / (1 - x)); - }, - cbrt: function cbrt(value) { - var x = Number(value); - if (0 === x) return x; - var result, - negate = x < 0; - return ( - negate && (x = -x), - (result = - x === 1 / 0 - ? 1 / 0 - : (x / ((result = _exp(_log(x) / 3)) * result) + 2 * result) / 3), - negate ? -result : result - ); - }, - clz32: function clz32(value) { - var x = Number(value), - number = ES.ToUint32(x); - return 0 === number - ? 32 - : numberCLZ - ? ES.Call(numberCLZ, number) - : 31 - _floor(_log(number + 0.5) * LOG2E); - }, - cosh: function cosh(value) { - var x = Number(value); - return 0 === x - ? 1 - : numberIsNaN(x) - ? NaN - : globalIsFinite(x) - ? (x < 0 && (x = -x), x > 21 ? _exp(x) / 2 : (_exp(x) + _exp(-x)) / 2) - : 1 / 0; - }, - expm1: function expm1(value) { - var x = Number(value); - if (x === -1 / 0) return -1; - if (!globalIsFinite(x) || 0 === x) return x; - if (_abs(x) > 0.5) return _exp(x) - 1; - for (var t = x, sum = 0, n = 1; sum + t !== sum; ) (sum += t), (t *= x / (n += 1)); - return sum; - }, - hypot: function hypot(x, y) { - for (var result = 0, largest = 0, i = 0; i < arguments.length; ++i) { - var value = _abs(Number(arguments[i])); - largest < value - ? ((result *= largest / value * (largest / value)), - (result += 1), - (largest = value)) - : (result += value > 0 ? value / largest * (value / largest) : value); - } - return largest === 1 / 0 ? 1 / 0 : largest * _sqrt(result); - }, - log2: function log2(value) { - return _log(value) * LOG2E; - }, - log10: function log10(value) { - return _log(value) * LOG10E; - }, - log1p: function log1p(value) { - var x = Number(value); - return x < -1 || numberIsNaN(x) - ? NaN - : 0 === x || x === 1 / 0 - ? x - : -1 === x ? -1 / 0 : 1 + x - 1 == 0 ? x : x * (_log(1 + x) / (1 + x - 1)); - }, - sign: _sign, - sinh: function sinh(value) { - var x = Number(value); - return globalIsFinite(x) && 0 !== x - ? _abs(x) < 1 - ? (Math.expm1(x) - Math.expm1(-x)) / 2 - : (_exp(x - 1) - _exp(-x - 1)) * E / 2 - : x; - }, - tanh: function tanh(value) { - var x = Number(value); - return numberIsNaN(x) || 0 === x - ? x - : x >= 20 - ? 1 - : x <= -20 ? -1 : (Math.expm1(x) - Math.expm1(-x)) / (_exp(x) + _exp(-x)); - }, - trunc: function trunc(value) { - var x = Number(value); - return x < 0 ? -_floor(-x) : _floor(x); - }, - imul: function imul(x, y) { - var a = ES.ToUint32(x), - b = ES.ToUint32(y), - al = 65535 & a, - bl = 65535 & b; - return ( - (al * bl + - (((((a >>> 16) & 65535) * bl + al * ((b >>> 16) & 65535)) << 16) >>> 0)) | - 0 - ); - }, - fround: function fround(x) { - var v = Number(x); - if (0 === v || v === 1 / 0 || v === -1 / 0 || numberIsNaN(v)) return v; - var sign = _sign(v), - abs = _abs(v); - if (abs < BINARY_32_MIN_VALUE) - return ( - sign * - (function roundTiesToEven(n) { - return n + inverseEpsilon - inverseEpsilon; - })(abs / BINARY_32_MIN_VALUE / BINARY_32_EPSILON) * - BINARY_32_MIN_VALUE * - BINARY_32_EPSILON - ); - var a = (1 + BINARY_32_EPSILON / Number.EPSILON) * abs, - result = a - (a - abs); - return result > BINARY_32_MAX_VALUE || numberIsNaN(result) - ? sign * (1 / 0) - : sign * result; - } - }; - defineProperties(Math, MathShims), - defineProperty(Math, 'log1p', MathShims.log1p, -1e-17 !== Math.log1p(-1e-17)), - defineProperty(Math, 'asinh', MathShims.asinh, Math.asinh(-1e7) !== -Math.asinh(1e7)), - defineProperty(Math, 'tanh', MathShims.tanh, -2e-17 !== Math.tanh(-2e-17)), - defineProperty( - Math, - 'acosh', - MathShims.acosh, - Math.acosh(Number.MAX_VALUE) === 1 / 0 - ), - defineProperty( - Math, - 'cbrt', - MathShims.cbrt, - Math.abs(1 - Math.cbrt(1e-300) / 1e-100) / Number.EPSILON > 8 - ), - defineProperty(Math, 'sinh', MathShims.sinh, -2e-17 !== Math.sinh(-2e-17)); - var expm1OfTen = Math.expm1(10); - defineProperty( - Math, - 'expm1', - MathShims.expm1, - expm1OfTen > 22025.465794806718 || expm1OfTen < 22025.465794806718 - ); - var origMathRound = Math.round, - roundHandlesBoundaryConditions = - 0 === Math.round(0.5 - Number.EPSILON / 4) && - 1 === Math.round(Number.EPSILON / 3.99 - 0.5), - roundDoesNotIncreaseIntegers = [inverseEpsilon + 1, 2 * inverseEpsilon - 1].every( - function(num) { - return Math.round(num) === num; - } - ); - defineProperty( - Math, - 'round', - function round(x) { - var floor = _floor(x); - return x - floor < 0.5 ? floor : -1 === floor ? -0 : floor + 1; - }, - !roundHandlesBoundaryConditions || !roundDoesNotIncreaseIntegers - ), - Value_preserveToString(Math.round, origMathRound); - var origImul = Math.imul; - -5 !== Math.imul(4294967295, 5) && - ((Math.imul = MathShims.imul), Value_preserveToString(Math.imul, origImul)), - 2 !== Math.imul.length && - overrideNative(Math, 'imul', function imul(x, y) { - return ES.Call(origImul, Math, arguments); - }); - var count, - thenable, - PromiseShim = (function() { - var setTimeout = globals.setTimeout; - if ('function' == typeof setTimeout || 'object' == typeof setTimeout) { - ES.IsPromise = function(promise) { - return !!ES.TypeIsObject(promise) && void 0 !== promise._promise; - }; - var makeZeroTimeout, - PromiseCapability = function(C) { - if (!ES.IsConstructor(C)) throw new TypeError('Bad promise constructor'); - var capability = this; - if ( - ((capability.resolve = void 0), - (capability.reject = void 0), - (capability.promise = new C(function(resolve, reject) { - if (void 0 !== capability.resolve || void 0 !== capability.reject) - throw new TypeError('Bad Promise implementation!'); - (capability.resolve = resolve), (capability.reject = reject); - })), - !ES.IsCallable(capability.resolve) || !ES.IsCallable(capability.reject)) - ) - throw new TypeError('Bad promise constructor'); - }; - 'undefined' != typeof window && - ES.IsCallable(window.postMessage) && - (makeZeroTimeout = function() { - var timeouts = []; - return ( - window.addEventListener( - 'message', - function(event) { - if (event.source === window && 'zero-timeout-message' === event.data) { - if ((event.stopPropagation(), 0 === timeouts.length)) return; - _shift(timeouts)(); - } - }, - !0 - ), - function(fn) { - _push(timeouts, fn), window.postMessage('zero-timeout-message', '*'); - } - ); - }); - var P, - pr, - Promise$prototype, - Promise$prototype$then, - PromiseShim, - enqueue = ES.IsCallable(globals.setImmediate) - ? globals.setImmediate - : 'object' == typeof process && process.nextTick - ? process.nextTick - : ((P = globals.Promise), - ((pr = P && P.resolve && P.resolve()) && - function(task) { - return pr.then(task); - }) || - (ES.IsCallable(makeZeroTimeout) - ? makeZeroTimeout() - : function(task) { - setTimeout(task, 0); - })), - PROMISE_IDENTITY = function(x) { - return x; - }, - PROMISE_THROWER = function(e) { - throw e; - }, - PROMISE_FAKE_CAPABILITY = {}, - enqueuePromiseReactionJob = function(handler, capability, argument) { - enqueue(function() { - promiseReactionJob(handler, capability, argument); - }); - }, - promiseReactionJob = function(handler, promiseCapability, argument) { - var handlerResult, f; - if (promiseCapability === PROMISE_FAKE_CAPABILITY) return handler(argument); - try { - (handlerResult = handler(argument)), (f = promiseCapability.resolve); - } catch (e) { - (handlerResult = e), (f = promiseCapability.reject); - } - f(handlerResult); - }, - fulfillPromise = function(promise, value) { - var _promise = promise._promise, - length = _promise.reactionLength; - if ( - length > 0 && - (enqueuePromiseReactionJob( - _promise.fulfillReactionHandler0, - _promise.reactionCapability0, - value - ), - (_promise.fulfillReactionHandler0 = void 0), - (_promise.rejectReactions0 = void 0), - (_promise.reactionCapability0 = void 0), - length > 1) - ) - for (var i = 1, idx = 0; i < length; i++, idx += 3) - enqueuePromiseReactionJob(_promise[idx + 0], _promise[idx + 2], value), - (promise[idx + 0] = void 0), - (promise[idx + 1] = void 0), - (promise[idx + 2] = void 0); - (_promise.result = value), - (_promise.state = 1), - (_promise.reactionLength = 0); - }, - rejectPromise = function(promise, reason) { - var _promise = promise._promise, - length = _promise.reactionLength; - if ( - length > 0 && - (enqueuePromiseReactionJob( - _promise.rejectReactionHandler0, - _promise.reactionCapability0, - reason - ), - (_promise.fulfillReactionHandler0 = void 0), - (_promise.rejectReactions0 = void 0), - (_promise.reactionCapability0 = void 0), - length > 1) - ) - for (var i = 1, idx = 0; i < length; i++, idx += 3) - enqueuePromiseReactionJob(_promise[idx + 1], _promise[idx + 2], reason), - (promise[idx + 0] = void 0), - (promise[idx + 1] = void 0), - (promise[idx + 2] = void 0); - (_promise.result = reason), - (_promise.state = 2), - (_promise.reactionLength = 0); - }, - createResolvingFunctions = function(promise) { - var alreadyResolved = !1; - return { - resolve: function(resolution) { - var then; - if (!alreadyResolved) { - if (((alreadyResolved = !0), resolution === promise)) - return rejectPromise(promise, new TypeError('Self resolution')); - if (!ES.TypeIsObject(resolution)) - return fulfillPromise(promise, resolution); - try { - then = resolution.then; - } catch (e) { - return rejectPromise(promise, e); - } - if (!ES.IsCallable(then)) return fulfillPromise(promise, resolution); - enqueue(function() { - promiseResolveThenableJob(promise, resolution, then); - }); - } - }, - reject: function(reason) { - if (!alreadyResolved) - return (alreadyResolved = !0), rejectPromise(promise, reason); - } - }; - }, - optimizedThen = function(then, thenable, resolve, reject) { - then === Promise$prototype$then - ? _call(then, thenable, resolve, reject, PROMISE_FAKE_CAPABILITY) - : _call(then, thenable, resolve, reject); - }, - promiseResolveThenableJob = function(promise, thenable, then) { - var resolvingFunctions = createResolvingFunctions(promise), - resolve = resolvingFunctions.resolve, - reject = resolvingFunctions.reject; - try { - optimizedThen(then, thenable, resolve, reject); - } catch (e) { - reject(e); - } - }, - Promise = (PromiseShim = function Promise(resolver) { - if (!(this instanceof PromiseShim)) - throw new TypeError('Constructor Promise requires "new"'); - if (this && this._promise) throw new TypeError('Bad construction'); - if (!ES.IsCallable(resolver)) throw new TypeError('not a valid resolver'); - var promise = emulateES6construct(this, PromiseShim, Promise$prototype, { - _promise: { - result: void 0, - state: 0, - reactionLength: 0, - fulfillReactionHandler0: void 0, - rejectReactionHandler0: void 0, - reactionCapability0: void 0 - } - }), - resolvingFunctions = createResolvingFunctions(promise), - reject = resolvingFunctions.reject; - try { - resolver(resolvingFunctions.resolve, reject); - } catch (e) { - reject(e); - } - return promise; - }); - Promise$prototype = Promise.prototype; - var _promiseAllResolver = function(index, values, capability, remaining) { - var alreadyCalled = !1; - return function(x) { - alreadyCalled || - ((alreadyCalled = !0), - (values[index] = x), - 0 == --remaining.count && (0, capability.resolve)(values)); - }; - }; - return ( - defineProperties(Promise, { - all: function all(iterable) { - var C = this; - if (!ES.TypeIsObject(C)) throw new TypeError('Promise is not object'); - var iterator, - iteratorRecord, - capability = new PromiseCapability(C); - try { - return (function(iteratorRecord, C, resultCapability) { - for ( - var next, - nextValue, - it = iteratorRecord.iterator, - values = [], - remaining = { count: 1 }, - index = 0; - ; - - ) { - try { - if (!1 === (next = ES.IteratorStep(it))) { - iteratorRecord.done = !0; - break; - } - nextValue = next.value; - } catch (e) { - throw ((iteratorRecord.done = !0), e); - } - values[index] = void 0; - var nextPromise = C.resolve(nextValue), - resolveElement = _promiseAllResolver( - index, - values, - resultCapability, - remaining - ); - (remaining.count += 1), - optimizedThen( - nextPromise.then, - nextPromise, - resolveElement, - resultCapability.reject - ), - (index += 1); - } - 0 == --remaining.count && (0, resultCapability.resolve)(values); - return resultCapability.promise; - })( - (iteratorRecord = { - iterator: (iterator = ES.GetIterator(iterable)), - done: !1 - }), - C, - capability - ); - } catch (e) { - var exception = e; - if (iteratorRecord && !iteratorRecord.done) - try { - ES.IteratorClose(iterator, !0); - } catch (ee) { - exception = ee; - } - return (0, capability.reject)(exception), capability.promise; - } - }, - race: function race(iterable) { - var C = this; - if (!ES.TypeIsObject(C)) throw new TypeError('Promise is not object'); - var iterator, - iteratorRecord, - capability = new PromiseCapability(C); - try { - return (function(iteratorRecord, C, resultCapability) { - for ( - var next, nextValue, nextPromise, it = iteratorRecord.iterator; - ; - - ) { - try { - if (!1 === (next = ES.IteratorStep(it))) { - iteratorRecord.done = !0; - break; - } - nextValue = next.value; - } catch (e) { - throw ((iteratorRecord.done = !0), e); - } - (nextPromise = C.resolve(nextValue)), - optimizedThen( - nextPromise.then, - nextPromise, - resultCapability.resolve, - resultCapability.reject - ); - } - return resultCapability.promise; - })( - (iteratorRecord = { - iterator: (iterator = ES.GetIterator(iterable)), - done: !1 - }), - C, - capability - ); - } catch (e) { - var exception = e; - if (iteratorRecord && !iteratorRecord.done) - try { - ES.IteratorClose(iterator, !0); - } catch (ee) { - exception = ee; - } - return (0, capability.reject)(exception), capability.promise; - } - }, - reject: function reject(reason) { - if (!ES.TypeIsObject(this)) throw new TypeError('Bad promise constructor'); - var capability = new PromiseCapability(this); - return (0, capability.reject)(reason), capability.promise; - }, - resolve: function resolve(v) { - var C = this; - if (!ES.TypeIsObject(C)) throw new TypeError('Bad promise constructor'); - if (ES.IsPromise(v) && v.constructor === C) return v; - var capability = new PromiseCapability(C); - return (0, capability.resolve)(v), capability.promise; - } - }), - defineProperties(Promise$prototype, { - catch: function(onRejected) { - return this.then(null, onRejected); - }, - then: function then(onFulfilled, onRejected) { - if (!ES.IsPromise(this)) throw new TypeError('not a promise'); - var resultCapability, - C = ES.SpeciesConstructor(this, Promise); - resultCapability = - arguments.length > 2 && - arguments[2] === PROMISE_FAKE_CAPABILITY && - C === Promise - ? PROMISE_FAKE_CAPABILITY - : new PromiseCapability(C); - var value, - fulfillReactionHandler = ES.IsCallable(onFulfilled) - ? onFulfilled - : PROMISE_IDENTITY, - rejectReactionHandler = ES.IsCallable(onRejected) - ? onRejected - : PROMISE_THROWER, - _promise = this._promise; - if (0 === _promise.state) { - if (0 === _promise.reactionLength) - (_promise.fulfillReactionHandler0 = fulfillReactionHandler), - (_promise.rejectReactionHandler0 = rejectReactionHandler), - (_promise.reactionCapability0 = resultCapability); - else { - var idx = 3 * (_promise.reactionLength - 1); - (_promise[idx + 0] = fulfillReactionHandler), - (_promise[idx + 1] = rejectReactionHandler), - (_promise[idx + 2] = resultCapability); - } - _promise.reactionLength += 1; - } else if (1 === _promise.state) - (value = _promise.result), - enqueuePromiseReactionJob( - fulfillReactionHandler, - resultCapability, - value - ); - else { - if (2 !== _promise.state) throw new TypeError('unexpected Promise state'); - (value = _promise.result), - enqueuePromiseReactionJob( - rejectReactionHandler, - resultCapability, - value - ); - } - return resultCapability.promise; - } - }), - (PROMISE_FAKE_CAPABILITY = new PromiseCapability(Promise)), - (Promise$prototype$then = Promise$prototype.then), - Promise - ); - } - })(); - if ( - (globals.Promise && - (delete globals.Promise.accept, - delete globals.Promise.defer, - delete globals.Promise.prototype.chain), - 'function' == typeof PromiseShim) - ) { - defineProperties(globals, { Promise: PromiseShim }); - var promiseSupportsSubclassing = supportsSubclassing(globals.Promise, function(S) { - return S.resolve(42).then(function() {}) instanceof S; - }), - promiseIgnoresNonFunctionThenCallbacks = !throwsError(function() { - globals.Promise.reject(42) - .then(null, 5) - .then(null, noop); - }), - promiseRequiresObjectContext = throwsError(function() { - globals.Promise.call(3, noop); - }), - promiseResolveBroken = (function(Promise) { - var p = Promise.resolve(5); - p.constructor = {}; - var p2 = Promise.resolve(p); - try { - p2.then(null, noop).then(null, noop); - } catch (e) { - return !0; - } - return p === p2; - })(globals.Promise), - getsThenSynchronously = - supportsDescriptors && - ((count = 0), - (thenable = Object.defineProperty({}, 'then', { - get: function() { - count += 1; - } - })), - Promise.resolve(thenable), - 1 === count), - BadResolverPromise = function BadResolverPromise(executor) { - var p = new Promise(executor); - executor(3, function() {}), - (this.then = p.then), - (this.constructor = BadResolverPromise); - }; - (BadResolverPromise.prototype = Promise.prototype), - (BadResolverPromise.all = Promise.all); - var hasBadResolverPromise = valueOrFalseIfThrows(function() { - return !!BadResolverPromise.all([1, 2]); - }); - if ( - ((promiseSupportsSubclassing && - promiseIgnoresNonFunctionThenCallbacks && - promiseRequiresObjectContext && - !promiseResolveBroken && - getsThenSynchronously && - !hasBadResolverPromise) || - ((Promise = PromiseShim), overrideNative(globals, 'Promise', PromiseShim)), - 1 !== Promise.all.length) - ) { - var origAll = Promise.all; - overrideNative(Promise, 'all', function all(iterable) { - return ES.Call(origAll, this, arguments); - }); - } - if (1 !== Promise.race.length) { - var origRace = Promise.race; - overrideNative(Promise, 'race', function race(iterable) { - return ES.Call(origRace, this, arguments); - }); - } - if (1 !== Promise.resolve.length) { - var origResolve = Promise.resolve; - overrideNative(Promise, 'resolve', function resolve(x) { - return ES.Call(origResolve, this, arguments); - }); - } - if (1 !== Promise.reject.length) { - var origReject = Promise.reject; - overrideNative(Promise, 'reject', function reject(r) { - return ES.Call(origReject, this, arguments); - }); - } - ensureEnumerable(Promise, 'all'), - ensureEnumerable(Promise, 'race'), - ensureEnumerable(Promise, 'resolve'), - ensureEnumerable(Promise, 'reject'), - addDefaultSpecies(Promise); - } - var s, - m, - testOrder = function(a) { - var b = keys( - _reduce( - a, - function(o, k) { - return (o[k] = !0), o; - }, - {} - ) - ); - return a.join(':') === b.join(':'); - }, - preservesInsertionOrder = testOrder(['z', 'a', 'bb']), - preservesNumericInsertionOrder = testOrder(['z', 1, 'a', '3', 2]); - if (supportsDescriptors) { - var fastkey = function fastkey(key, skipInsertionOrderCheck) { - return skipInsertionOrderCheck || preservesInsertionOrder - ? isNullOrUndefined(key) - ? '^' + ES.ToString(key) - : 'string' == typeof key - ? '$' + key - : 'number' == typeof key - ? preservesNumericInsertionOrder ? key : 'n' + key - : 'boolean' == typeof key ? 'b' + key : null - : null; - }, - emptyObject = function emptyObject() { - return Object.create ? Object.create(null) : {}; - }, - addIterableToMap = function addIterableToMap(MapConstructor, map, iterable) { - if (isArray(iterable) || Type_string(iterable)) - _forEach(iterable, function(entry) { - if (!ES.TypeIsObject(entry)) - throw new TypeError('Iterator value ' + entry + ' is not an entry object'); - map.set(entry[0], entry[1]); - }); - else if (iterable instanceof MapConstructor) - _call(MapConstructor.prototype.forEach, iterable, function(value, key) { - map.set(key, value); - }); - else { - var iter, adder; - if (!isNullOrUndefined(iterable)) { - if (((adder = map.set), !ES.IsCallable(adder))) - throw new TypeError('bad map'); - iter = ES.GetIterator(iterable); - } - if (void 0 !== iter) - for (;;) { - var next = ES.IteratorStep(iter); - if (!1 === next) break; - var nextItem = next.value; - try { - if (!ES.TypeIsObject(nextItem)) - throw new TypeError( - 'Iterator value ' + nextItem + ' is not an entry object' - ); - _call(adder, map, nextItem[0], nextItem[1]); - } catch (e) { - throw (ES.IteratorClose(iter, !0), e); - } - } - } - }, - addIterableToSet = function addIterableToSet(SetConstructor, set, iterable) { - if (isArray(iterable) || Type_string(iterable)) - _forEach(iterable, function(value) { - set.add(value); - }); - else if (iterable instanceof SetConstructor) - _call(SetConstructor.prototype.forEach, iterable, function(value) { - set.add(value); - }); - else { - var iter, adder; - if (!isNullOrUndefined(iterable)) { - if (((adder = set.add), !ES.IsCallable(adder))) - throw new TypeError('bad set'); - iter = ES.GetIterator(iterable); - } - if (void 0 !== iter) - for (;;) { - var next = ES.IteratorStep(iter); - if (!1 === next) break; - var nextValue = next.value; - try { - _call(adder, set, nextValue); - } catch (e) { - throw (ES.IteratorClose(iter, !0), e); - } - } - } - }, - collectionShims = { - Map: (function() { - var empty = {}, - MapEntry = function MapEntry(key, value) { - (this.key = key), - (this.value = value), - (this.next = null), - (this.prev = null); - }; - MapEntry.prototype.isRemoved = function isRemoved() { - return this.key === empty; - }; - var Map$prototype, - requireMapSlot = function requireMapSlot(map, method) { - if ( - !ES.TypeIsObject(map) || - !(function isMap(map) { - return !!map._es6map; - })(map) - ) - throw new TypeError( - 'Method Map.prototype.' + - method + - ' called on incompatible receiver ' + - ES.ToString(map) - ); - }, - MapIterator = function MapIterator(map, kind) { - requireMapSlot(map, '[[MapIterator]]'), - (this.head = map._head), - (this.i = this.head), - (this.kind = kind); - }; - addIterator( - (MapIterator.prototype = { - next: function next() { - var result, - i = this.i, - kind = this.kind, - head = this.head; - if (void 0 === this.i) return iteratorResult(); - for (; i.isRemoved() && i !== head; ) i = i.prev; - for (; i.next !== head; ) - if (!(i = i.next).isRemoved()) - return ( - (result = - 'key' === kind - ? i.key - : 'value' === kind ? i.value : [i.key, i.value]), - (this.i = i), - iteratorResult(result) - ); - return (this.i = void 0), iteratorResult(); - } - }) - ); - var MapShim = function Map() { - if (!(this instanceof Map)) - throw new TypeError('Constructor Map requires "new"'); - if (this && this._es6map) throw new TypeError('Bad construction'); - var map = emulateES6construct(this, Map, Map$prototype, { - _es6map: !0, - _head: null, - _map: OrigMap ? new OrigMap() : null, - _size: 0, - _storage: emptyObject() - }), - head = new MapEntry(null, null); - return ( - (head.next = head.prev = head), - (map._head = head), - arguments.length > 0 && addIterableToMap(Map, map, arguments[0]), - map - ); - }; - return ( - Value_getter((Map$prototype = MapShim.prototype), 'size', function() { - if (void 0 === this._size) - throw new TypeError('size method called on incompatible Map'); - return this._size; - }), - defineProperties(Map$prototype, { - get: function get(key) { - var entry; - requireMapSlot(this, 'get'); - var fkey = fastkey(key, !0); - if (null !== fkey) - return (entry = this._storage[fkey]) ? entry.value : void 0; - if (this._map) - return (entry = origMapGet.call(this._map, key)) ? entry.value : void 0; - for (var head = this._head, i = head; (i = i.next) !== head; ) - if (ES.SameValueZero(i.key, key)) return i.value; - }, - has: function has(key) { - requireMapSlot(this, 'has'); - var fkey = fastkey(key, !0); - if (null !== fkey) return void 0 !== this._storage[fkey]; - if (this._map) return origMapHas.call(this._map, key); - for (var head = this._head, i = head; (i = i.next) !== head; ) - if (ES.SameValueZero(i.key, key)) return !0; - return !1; - }, - set: function set(key, value) { - requireMapSlot(this, 'set'); - var entry, - head = this._head, - i = head, - fkey = fastkey(key, !0); - if (null !== fkey) { - if (void 0 !== this._storage[fkey]) - return (this._storage[fkey].value = value), this; - (entry = this._storage[fkey] = new MapEntry(key, value)), - (i = head.prev); - } else - this._map && - (origMapHas.call(this._map, key) - ? (origMapGet.call(this._map, key).value = value) - : ((entry = new MapEntry(key, value)), - origMapSet.call(this._map, key, entry), - (i = head.prev))); - for (; (i = i.next) !== head; ) - if (ES.SameValueZero(i.key, key)) return (i.value = value), this; - return ( - (entry = entry || new MapEntry(key, value)), - ES.SameValue(-0, key) && (entry.key = 0), - (entry.next = this._head), - (entry.prev = this._head.prev), - (entry.prev.next = entry), - (entry.next.prev = entry), - (this._size += 1), - this - ); - }, - delete: function(key) { - requireMapSlot(this, 'delete'); - var head = this._head, - i = head, - fkey = fastkey(key, !0); - if (null !== fkey) { - if (void 0 === this._storage[fkey]) return !1; - (i = this._storage[fkey].prev), delete this._storage[fkey]; - } else if (this._map) { - if (!origMapHas.call(this._map, key)) return !1; - (i = origMapGet.call(this._map, key).prev), - origMapDelete.call(this._map, key); - } - for (; (i = i.next) !== head; ) - if (ES.SameValueZero(i.key, key)) - return ( - (i.key = empty), - (i.value = empty), - (i.prev.next = i.next), - (i.next.prev = i.prev), - (this._size -= 1), - !0 - ); - return !1; - }, - clear: function clear() { - requireMapSlot(this, 'clear'), - (this._map = OrigMap ? new OrigMap() : null), - (this._size = 0), - (this._storage = emptyObject()); - for (var head = this._head, i = head, p = i.next; (i = p) !== head; ) - (i.key = empty), - (i.value = empty), - (p = i.next), - (i.next = i.prev = head); - head.next = head.prev = head; - }, - keys: function keys() { - return requireMapSlot(this, 'keys'), new MapIterator(this, 'key'); - }, - values: function values() { - return requireMapSlot(this, 'values'), new MapIterator(this, 'value'); - }, - entries: function entries() { - return ( - requireMapSlot(this, 'entries'), new MapIterator(this, 'key+value') - ); - }, - forEach: function forEach(callback) { - requireMapSlot(this, 'forEach'); - for ( - var context = arguments.length > 1 ? arguments[1] : null, - it = this.entries(), - entry = it.next(); - !entry.done; - entry = it.next() - ) - context - ? _call(callback, context, entry.value[1], entry.value[0], this) - : callback(entry.value[1], entry.value[0], this); - } - }), - addIterator(Map$prototype, Map$prototype.entries), - MapShim - ); - })(), - Set: (function() { - var Set$prototype, - requireSetSlot = function requireSetSlot(set, method) { - if ( - !ES.TypeIsObject(set) || - !(function isSet(set) { - return set._es6set && void 0 !== set._storage; - })(set) - ) - throw new TypeError( - 'Set.prototype.' + - method + - ' called on incompatible receiver ' + - ES.ToString(set) - ); - }, - SetShim = function Set() { - if (!(this instanceof Set)) - throw new TypeError('Constructor Set requires "new"'); - if (this && this._es6set) throw new TypeError('Bad construction'); - var set = emulateES6construct(this, Set, Set$prototype, { - _es6set: !0, - '[[SetData]]': null, - _storage: emptyObject() - }); - if (!set._es6set) throw new TypeError('bad set'); - return ( - arguments.length > 0 && addIterableToSet(Set, set, arguments[0]), set - ); - }; - Set$prototype = SetShim.prototype; - var ensureMap = function ensureMap(set) { - if (!set['[[SetData]]']) { - var m = new collectionShims.Map(); - (set['[[SetData]]'] = m), - _forEach(keys(set._storage), function(key) { - var k = (function(key) { - var k = key; - if ('^null' === k) return null; - if ('^undefined' !== k) { - var first = k.charAt(0); - return '$' === first - ? _strSlice(k, 1) - : 'n' === first - ? +_strSlice(k, 1) - : 'b' === first ? 'btrue' === k : +k; - } - })(key); - m.set(k, k); - }), - (set['[[SetData]]'] = m); - } - set._storage = null; - }; - return ( - Value_getter(SetShim.prototype, 'size', function() { - return ( - requireSetSlot(this, 'size'), - this._storage - ? keys(this._storage).length - : (ensureMap(this), this['[[SetData]]'].size) - ); - }), - defineProperties(SetShim.prototype, { - has: function has(key) { - var fkey; - return ( - requireSetSlot(this, 'has'), - this._storage && null !== (fkey = fastkey(key)) - ? !!this._storage[fkey] - : (ensureMap(this), this['[[SetData]]'].has(key)) - ); - }, - add: function add(key) { - var fkey; - return ( - requireSetSlot(this, 'add'), - this._storage && null !== (fkey = fastkey(key)) - ? ((this._storage[fkey] = !0), this) - : (ensureMap(this), this['[[SetData]]'].set(key, key), this) - ); - }, - delete: function(key) { - var fkey; - if ( - (requireSetSlot(this, 'delete'), - this._storage && null !== (fkey = fastkey(key))) - ) { - var hasFKey = _hasOwnProperty(this._storage, fkey); - return delete this._storage[fkey] && hasFKey; - } - return ensureMap(this), this['[[SetData]]'].delete(key); - }, - clear: function clear() { - requireSetSlot(this, 'clear'), - this._storage && (this._storage = emptyObject()), - this['[[SetData]]'] && this['[[SetData]]'].clear(); - }, - values: function values() { - return ( - requireSetSlot(this, 'values'), - ensureMap(this), - this['[[SetData]]'].values() - ); - }, - entries: function entries() { - return ( - requireSetSlot(this, 'entries'), - ensureMap(this), - this['[[SetData]]'].entries() - ); - }, - forEach: function forEach(callback) { - requireSetSlot(this, 'forEach'); - var context = arguments.length > 1 ? arguments[1] : null, - entireSet = this; - ensureMap(entireSet), - this['[[SetData]]'].forEach(function(value, key) { - context - ? _call(callback, context, key, key, entireSet) - : callback(key, key, entireSet); - }); - } - }), - defineProperty(SetShim.prototype, 'keys', SetShim.prototype.values, !0), - addIterator(SetShim.prototype, SetShim.prototype.values), - SetShim - ); - })() - }; - if (globals.Map || globals.Set) { - valueOrFalseIfThrows(function() { - return 2 === new Map([[1, 2]]).get(1); - }) || - ((globals.Map = function Map() { - if (!(this instanceof Map)) - throw new TypeError('Constructor Map requires "new"'); - var m = new OrigMap(); - return ( - arguments.length > 0 && addIterableToMap(Map, m, arguments[0]), - delete m.constructor, - Object.setPrototypeOf(m, globals.Map.prototype), - m - ); - }), - (globals.Map.prototype = create(OrigMap.prototype)), - defineProperty(globals.Map.prototype, 'constructor', globals.Map, !0), - Value_preserveToString(globals.Map, OrigMap)); - var testMap = new Map(), - mapUsesSameValueZero = ((m = new Map([[1, 0], [2, 0], [3, 0], [4, 0]])).set( - -0, - m - ), - m.get(0) === m && m.get(-0) === m && m.has(0) && m.has(-0)), - mapSupportsChaining = testMap.set(1, 2) === testMap; - (mapUsesSameValueZero && mapSupportsChaining) || - overrideNative(Map.prototype, 'set', function set(k, v) { - return _call(origMapSet, this, 0 === k ? 0 : k, v), this; - }), - mapUsesSameValueZero || - (defineProperties( - Map.prototype, - { - get: function get(k) { - return _call(origMapGet, this, 0 === k ? 0 : k); - }, - has: function has(k) { - return _call(origMapHas, this, 0 === k ? 0 : k); - } - }, - !0 - ), - Value_preserveToString(Map.prototype.get, origMapGet), - Value_preserveToString(Map.prototype.has, origMapHas)); - var testSet = new Set(), - setUsesSameValueZero = ((s = testSet).delete(0), s.add(-0), !s.has(0)), - setSupportsChaining = testSet.add(1) === testSet; - if (!setUsesSameValueZero || !setSupportsChaining) { - var origSetAdd = Set.prototype.add; - (Set.prototype.add = function add(v) { - return _call(origSetAdd, this, 0 === v ? 0 : v), this; - }), - Value_preserveToString(Set.prototype.add, origSetAdd); - } - if (!setUsesSameValueZero) { - var origSetHas = Set.prototype.has; - (Set.prototype.has = function has(v) { - return _call(origSetHas, this, 0 === v ? 0 : v); - }), - Value_preserveToString(Set.prototype.has, origSetHas); - var origSetDel = Set.prototype.delete; - (Set.prototype.delete = function SetDelete(v) { - return _call(origSetDel, this, 0 === v ? 0 : v); - }), - Value_preserveToString(Set.prototype.delete, origSetDel); - } - var mapSupportsSubclassing = supportsSubclassing(globals.Map, function(M) { - var m = new M([]); - return m.set(42, 42), m instanceof M; - }), - mapFailsToSupportSubclassing = Object.setPrototypeOf && !mapSupportsSubclassing, - mapRequiresNew = (function() { - try { - return !(globals.Map() instanceof globals.Map); - } catch (e) { - return e instanceof TypeError; - } - })(); - (0 === globals.Map.length && !mapFailsToSupportSubclassing && mapRequiresNew) || - ((globals.Map = function Map() { - if (!(this instanceof Map)) - throw new TypeError('Constructor Map requires "new"'); - var m = new OrigMap(); - return ( - arguments.length > 0 && addIterableToMap(Map, m, arguments[0]), - delete m.constructor, - Object.setPrototypeOf(m, Map.prototype), - m - ); - }), - (globals.Map.prototype = OrigMap.prototype), - defineProperty(globals.Map.prototype, 'constructor', globals.Map, !0), - Value_preserveToString(globals.Map, OrigMap)); - var setSupportsSubclassing = supportsSubclassing(globals.Set, function(S) { - var s = new S([]); - return s.add(42, 42), s instanceof S; - }), - setFailsToSupportSubclassing = Object.setPrototypeOf && !setSupportsSubclassing, - setRequiresNew = (function() { - try { - return !(globals.Set() instanceof globals.Set); - } catch (e) { - return e instanceof TypeError; - } - })(); - if (0 !== globals.Set.length || setFailsToSupportSubclassing || !setRequiresNew) { - var OrigSet = globals.Set; - (globals.Set = function Set() { - if (!(this instanceof Set)) - throw new TypeError('Constructor Set requires "new"'); - var s = new OrigSet(); - return ( - arguments.length > 0 && addIterableToSet(Set, s, arguments[0]), - delete s.constructor, - Object.setPrototypeOf(s, Set.prototype), - s - ); - }), - (globals.Set.prototype = OrigSet.prototype), - defineProperty(globals.Set.prototype, 'constructor', globals.Set, !0), - Value_preserveToString(globals.Set, OrigSet); - } - var newMap = new globals.Map(), - mapIterationThrowsStopIterator = !valueOrFalseIfThrows(function() { - return newMap.keys().next().done; - }); - if ( - (('function' != typeof globals.Map.prototype.clear || - 0 !== new globals.Set().size || - 0 !== newMap.size || - 'function' != typeof globals.Map.prototype.keys || - 'function' != typeof globals.Set.prototype.keys || - 'function' != typeof globals.Map.prototype.forEach || - 'function' != typeof globals.Set.prototype.forEach || - isCallableWithoutNew(globals.Map) || - isCallableWithoutNew(globals.Set) || - 'function' != typeof newMap.keys().next || - mapIterationThrowsStopIterator || - !mapSupportsSubclassing) && - defineProperties( - globals, - { Map: collectionShims.Map, Set: collectionShims.Set }, - !0 - ), - globals.Set.prototype.keys !== globals.Set.prototype.values && - defineProperty(globals.Set.prototype, 'keys', globals.Set.prototype.values, !0), - addIterator(Object.getPrototypeOf(new globals.Map().keys())), - addIterator(Object.getPrototypeOf(new globals.Set().keys())), - functionsHaveNames && 'has' !== globals.Set.prototype.has.name) - ) { - var anonymousSetHas = globals.Set.prototype.has; - overrideNative(globals.Set.prototype, 'has', function has(key) { - return _call(anonymousSetHas, this, key); - }); - } - } - defineProperties(globals, collectionShims), - addDefaultSpecies(globals.Map), - addDefaultSpecies(globals.Set); - } - var throwUnlessTargetIsObject = function throwUnlessTargetIsObject(target) { - if (!ES.TypeIsObject(target)) throw new TypeError('target must be an object'); - }, - ReflectShims = { - apply: function apply() { - return ES.Call(ES.Call, null, arguments); - }, - construct: function construct(constructor, args) { - if (!ES.IsConstructor(constructor)) - throw new TypeError('First argument must be a constructor.'); - var newTarget = arguments.length > 2 ? arguments[2] : constructor; - if (!ES.IsConstructor(newTarget)) - throw new TypeError('new.target must be a constructor.'); - return ES.Construct(constructor, args, newTarget, 'internal'); - }, - deleteProperty: function deleteProperty(target, key) { - if ((throwUnlessTargetIsObject(target), supportsDescriptors)) { - var desc = Object.getOwnPropertyDescriptor(target, key); - if (desc && !desc.configurable) return !1; - } - return delete target[key]; - }, - has: function has(target, key) { - return throwUnlessTargetIsObject(target), key in target; - } - }; - Object.getOwnPropertyNames && - Object.assign(ReflectShims, { - ownKeys: function ownKeys(target) { - throwUnlessTargetIsObject(target); - var keys = Object.getOwnPropertyNames(target); - return ( - ES.IsCallable(Object.getOwnPropertySymbols) && - _pushApply(keys, Object.getOwnPropertySymbols(target)), - keys - ); - } - }); - var callAndCatchException = function ConvertExceptionToBoolean(func) { - return !throwsError(func); - }; - if ( - (Object.preventExtensions && - Object.assign(ReflectShims, { - isExtensible: function isExtensible(target) { - return throwUnlessTargetIsObject(target), Object.isExtensible(target); - }, - preventExtensions: function preventExtensions(target) { - return ( - throwUnlessTargetIsObject(target), - callAndCatchException(function() { - Object.preventExtensions(target); - }) - ); - } - }), - supportsDescriptors) - ) { - var internalGet = function get(target, key, receiver) { - var desc = Object.getOwnPropertyDescriptor(target, key); - if (!desc) { - var parent = Object.getPrototypeOf(target); - if (null === parent) return; - return internalGet(parent, key, receiver); - } - return 'value' in desc - ? desc.value - : desc.get ? ES.Call(desc.get, receiver) : void 0; - }, - internalSet = function set(target, key, value, receiver) { - var desc = Object.getOwnPropertyDescriptor(target, key); - if (!desc) { - var parent = Object.getPrototypeOf(target); - if (null !== parent) return internalSet(parent, key, value, receiver); - desc = { value: void 0, writable: !0, enumerable: !0, configurable: !0 }; - } - return 'value' in desc - ? !!desc.writable && - (!!ES.TypeIsObject(receiver) && - (Object.getOwnPropertyDescriptor(receiver, key) - ? Reflect.defineProperty(receiver, key, { value: value }) - : Reflect.defineProperty(receiver, key, { - value: value, - writable: !0, - enumerable: !0, - configurable: !0 - }))) - : !!desc.set && (_call(desc.set, receiver, value), !0); - }; - Object.assign(ReflectShims, { - defineProperty: function defineProperty(target, propertyKey, attributes) { - return ( - throwUnlessTargetIsObject(target), - callAndCatchException(function() { - Object.defineProperty(target, propertyKey, attributes); - }) - ); - }, - getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) { - return ( - throwUnlessTargetIsObject(target), - Object.getOwnPropertyDescriptor(target, propertyKey) - ); - }, - get: function get(target, key) { - throwUnlessTargetIsObject(target); - var receiver = arguments.length > 2 ? arguments[2] : target; - return internalGet(target, key, receiver); - }, - set: function set(target, key, value) { - throwUnlessTargetIsObject(target); - var receiver = arguments.length > 3 ? arguments[3] : target; - return internalSet(target, key, value, receiver); - } - }); - } - if (Object.getPrototypeOf) { - var objectDotGetPrototypeOf = Object.getPrototypeOf; - ReflectShims.getPrototypeOf = function getPrototypeOf(target) { - return throwUnlessTargetIsObject(target), objectDotGetPrototypeOf(target); - }; - } - if (Object.setPrototypeOf && ReflectShims.getPrototypeOf) { - Object.assign(ReflectShims, { - setPrototypeOf: function setPrototypeOf(object, proto) { - if ( - (throwUnlessTargetIsObject(object), null !== proto && !ES.TypeIsObject(proto)) - ) - throw new TypeError('proto must be an object or null'); - return ( - proto === Reflect.getPrototypeOf(object) || - (!(Reflect.isExtensible && !Reflect.isExtensible(object)) && - (!(function(object, lastProto) { - for (var proto = lastProto; proto; ) { - if (object === proto) return !0; - proto = ReflectShims.getPrototypeOf(proto); - } - return !1; - })(object, proto) && - (Object.setPrototypeOf(object, proto), !0))) - ); - } - }); - } - Object.keys(ReflectShims).forEach(function(key) { - !(function(key, shim) { - ES.IsCallable(globals.Reflect[key]) - ? valueOrFalseIfThrows(function() { - return ( - globals.Reflect[key](1), - globals.Reflect[key](NaN), - globals.Reflect[key](!0), - !0 - ); - }) && overrideNative(globals.Reflect, key, shim) - : defineProperty(globals.Reflect, key, shim); - })(key, ReflectShims[key]); - }); - var originalReflectGetProto = globals.Reflect.getPrototypeOf; - if ( - (functionsHaveNames && - originalReflectGetProto && - 'getPrototypeOf' !== originalReflectGetProto.name && - overrideNative(globals.Reflect, 'getPrototypeOf', function getPrototypeOf(target) { - return _call(originalReflectGetProto, globals.Reflect, target); - }), - globals.Reflect.setPrototypeOf && - valueOrFalseIfThrows(function() { - return globals.Reflect.setPrototypeOf(1, {}), !0; - }) && - overrideNative(globals.Reflect, 'setPrototypeOf', ReflectShims.setPrototypeOf), - globals.Reflect.defineProperty && - (valueOrFalseIfThrows(function() { - var basic = !globals.Reflect.defineProperty(1, 'test', { value: 1 }), - extensible = - 'function' != typeof Object.preventExtensions || - !globals.Reflect.defineProperty(Object.preventExtensions({}), 'test', {}); - return basic && extensible; - }) || - overrideNative(globals.Reflect, 'defineProperty', ReflectShims.defineProperty)), - globals.Reflect.construct && - (valueOrFalseIfThrows(function() { - var F = function F() {}; - return globals.Reflect.construct(function() {}, [], F) instanceof F; - }) || - overrideNative(globals.Reflect, 'construct', ReflectShims.construct)), - 'Invalid Date' !== String(new Date(NaN))) - ) { - var dateToString = Date.prototype.toString; - overrideNative(Date.prototype, 'toString', function toString() { - var valueOf = +this; - return valueOf != valueOf ? 'Invalid Date' : ES.Call(dateToString, this); - }); - } - var stringHTMLshims = { - anchor: function anchor(name) { - return ES.CreateHTML(this, 'a', 'name', name); - }, - big: function big() { - return ES.CreateHTML(this, 'big', '', ''); - }, - blink: function blink() { - return ES.CreateHTML(this, 'blink', '', ''); - }, - bold: function bold() { - return ES.CreateHTML(this, 'b', '', ''); - }, - fixed: function fixed() { - return ES.CreateHTML(this, 'tt', '', ''); - }, - fontcolor: function fontcolor(color) { - return ES.CreateHTML(this, 'font', 'color', color); - }, - fontsize: function fontsize(size) { - return ES.CreateHTML(this, 'font', 'size', size); - }, - italics: function italics() { - return ES.CreateHTML(this, 'i', '', ''); - }, - link: function link(url) { - return ES.CreateHTML(this, 'a', 'href', url); - }, - small: function small() { - return ES.CreateHTML(this, 'small', '', ''); - }, - strike: function strike() { - return ES.CreateHTML(this, 'strike', '', ''); - }, - sub: function sub() { - return ES.CreateHTML(this, 'sub', '', ''); - }, - sup: function sub() { - return ES.CreateHTML(this, 'sup', '', ''); - } - }; - _forEach(Object.keys(stringHTMLshims), function(key) { - var method = String.prototype[key], - shouldOverwrite = !1; - if (ES.IsCallable(method)) { - var output = _call(method, '', ' " '), - quotesCount = _concat([], output.match(/"/g)).length; - shouldOverwrite = output !== output.toLowerCase() || quotesCount > 2; - } else shouldOverwrite = !0; - shouldOverwrite && overrideNative(String.prototype, key, stringHTMLshims[key]); - }); - var JSONstringifiesSymbols = (function() { - if (!hasSymbols) return !1; - var stringify = - 'object' == typeof JSON && 'function' == typeof JSON.stringify - ? JSON.stringify - : null; - if (!stringify) return !1; - if (void 0 !== stringify(Symbol())) return !0; - if ('[null]' !== stringify([Symbol()])) return !0; - var obj = { a: Symbol() }; - return (obj[Symbol()] = !0), '{}' !== stringify(obj); - })(), - JSONstringifyAcceptsObjectSymbol = valueOrFalseIfThrows(function() { - return ( - !hasSymbols || - ('{}' === JSON.stringify(Object(Symbol())) && - '[{}]' === JSON.stringify([Object(Symbol())])) - ); - }); - if (JSONstringifiesSymbols || !JSONstringifyAcceptsObjectSymbol) { - var origStringify = JSON.stringify; - overrideNative(JSON, 'stringify', function stringify(value) { - if ('symbol' != typeof value) { - var replacer; - arguments.length > 1 && (replacer = arguments[1]); - var args = [value]; - if (isArray(replacer)) args.push(replacer); - else { - var replaceFn = ES.IsCallable(replacer) ? replacer : null; - args.push(function(key, val) { - var parsedValue = replaceFn ? _call(replaceFn, this, key, val) : val; - if ('symbol' != typeof parsedValue) - return Type_symbol(parsedValue) ? assignTo({})(parsedValue) : parsedValue; - }); - } - return ( - arguments.length > 2 && args.push(arguments[2]), origStringify.apply(this, args) - ); - } - }); - } - return globals; - }) - ? __WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module) - : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); - }.call(exports, __webpack_require__(27), __webpack_require__(134))); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var supportsDescriptors = __webpack_require__(28).supportsDescriptors, - functionsHaveNames = __webpack_require__(201), - getPolyfill = __webpack_require__(341), - defineProperty = Object.defineProperty, - TypeErr = TypeError; - module.exports = function shimName() { - var polyfill = getPolyfill(); - if (functionsHaveNames) return polyfill; - if (!supportsDescriptors) - throw new TypeErr( - 'Shimming Function.prototype.name support requires ES5 property descriptor support.' - ); - var functionProto = Function.prototype; - return ( - defineProperty(functionProto, 'name', { - configurable: !0, - enumerable: !1, - get: function() { - var name = polyfill.call(this); - return ( - this !== functionProto && - defineProperty(this, 'name', { - configurable: !0, - enumerable: !1, - value: name, - writable: !1 - }), - name - ); - } - }), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var has = Object.prototype.hasOwnProperty, - toStr = Object.prototype.toString, - slice = Array.prototype.slice, - isArgs = __webpack_require__(339), - isEnumerable = Object.prototype.propertyIsEnumerable, - hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString'), - hasProtoEnumBug = isEnumerable.call(function() {}, 'prototype'), - dontEnums = [ - 'toString', - 'toLocaleString', - 'valueOf', - 'hasOwnProperty', - 'isPrototypeOf', - 'propertyIsEnumerable', - 'constructor' - ], - equalsConstructorPrototype = function(o) { - var ctor = o.constructor; - return ctor && ctor.prototype === o; - }, - excludedKeys = { - $console: !0, - $external: !0, - $frame: !0, - $frameElement: !0, - $frames: !0, - $innerHeight: !0, - $innerWidth: !0, - $outerHeight: !0, - $outerWidth: !0, - $pageXOffset: !0, - $pageYOffset: !0, - $parent: !0, - $scrollLeft: !0, - $scrollTop: !0, - $scrollX: !0, - $scrollY: !0, - $self: !0, - $webkitIndexedDB: !0, - $webkitStorageInfo: !0, - $window: !0 - }, - hasAutomationEqualityBug = (function() { - if ('undefined' == typeof window) return !1; - for (var k in window) - try { - if ( - !excludedKeys['$' + k] && - has.call(window, k) && - null !== window[k] && - 'object' == typeof window[k] - ) - try { - equalsConstructorPrototype(window[k]); - } catch (e) { - return !0; - } - } catch (e) { - return !0; - } - return !1; - })(), - keysShim = function keys(object) { - var isObject = null !== object && 'object' == typeof object, - isFunction = '[object Function]' === toStr.call(object), - isArguments = isArgs(object), - isString = isObject && '[object String]' === toStr.call(object), - theKeys = []; - if (!isObject && !isFunction && !isArguments) - throw new TypeError('Object.keys called on a non-object'); - var skipProto = hasProtoEnumBug && isFunction; - if (isString && object.length > 0 && !has.call(object, 0)) - for (var i = 0; i < object.length; ++i) theKeys.push(String(i)); - if (isArguments && object.length > 0) - for (var j = 0; j < object.length; ++j) theKeys.push(String(j)); - else - for (var name in object) - (skipProto && 'prototype' === name) || - !has.call(object, name) || - theKeys.push(String(name)); - if (hasDontEnumBug) - for ( - var skipConstructor = (function(o) { - if ('undefined' == typeof window || !hasAutomationEqualityBug) - return equalsConstructorPrototype(o); - try { - return equalsConstructorPrototype(o); - } catch (e) { - return !1; - } - })(object), - k = 0; - k < dontEnums.length; - ++k - ) - (skipConstructor && 'constructor' === dontEnums[k]) || - !has.call(object, dontEnums[k]) || - theKeys.push(dontEnums[k]); - return theKeys; - }; - (keysShim.shim = function shimObjectKeys() { - if (Object.keys) { - if ( - !(function() { - return 2 === (Object.keys(arguments) || '').length; - })(1, 2) - ) { - var originalKeys = Object.keys; - Object.keys = function keys(object) { - return isArgs(object) ? originalKeys(slice.call(object)) : originalKeys(object); - }; - } - } else Object.keys = keysShim; - return Object.keys || keysShim; - }), - (module.exports = keysShim); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var toStr = Object.prototype.toString; - module.exports = function isArguments(value) { - var str = toStr.call(value), - isArgs = '[object Arguments]' === str; - return ( - isArgs || - (isArgs = - '[object Array]' !== str && - null !== value && - 'object' == typeof value && - 'number' == typeof value.length && - value.length >= 0 && - '[object Function]' === toStr.call(value.callee)), - isArgs - ); - }; - }, - function(module, exports) { - var hasOwn = Object.prototype.hasOwnProperty, - toString = Object.prototype.toString; - module.exports = function forEach(obj, fn, ctx) { - if ('[object Function]' !== toString.call(fn)) - throw new TypeError('iterator must be a function'); - var l = obj.length; - if (l === +l) for (var i = 0; i < l; i++) fn.call(ctx, obj[i], i, obj); - else for (var k in obj) hasOwn.call(obj, k) && fn.call(ctx, obj[k], k, obj); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(342); - module.exports = function getPolyfill() { - return implementation; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var isCallable = __webpack_require__(92), - functionsHaveNames = __webpack_require__(201), - bind = __webpack_require__(39), - functionToString = bind.call(Function.call, Function.prototype.toString), - stringMatch = bind.call(Function.call, String.prototype.match), - classRegex = /^class /, - regex = /\s*function\s+([^(\s]*)\s*/, - functionProto = Function.prototype; - module.exports = function getName() { - if ( - !(function isClassConstructor(fn) { - if (isCallable(fn)) return !1; - if ('function' != typeof fn) return !1; - try { - return !!stringMatch(functionToString(fn), classRegex); - } catch (e) {} - return !1; - })(this) && - !isCallable(this) - ) - throw new TypeError('Function.prototype.name sham getter called on non-function'); - if (functionsHaveNames) return this.name; - if (this === functionProto) return ''; - var str = functionToString(this), - match = stringMatch(str, regex); - return match && match[1]; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var slice = Array.prototype.slice, - toStr = Object.prototype.toString; - module.exports = function bind(that) { - var target = this; - if ('function' != typeof target || '[object Function]' !== toStr.call(target)) - throw new TypeError('Function.prototype.bind called on incompatible ' + target); - for ( - var bound, - args = slice.call(arguments, 1), - boundLength = Math.max(0, target.length - args.length), - boundArgs = [], - i = 0; - i < boundLength; - i++ - ) - boundArgs.push('$' + i); - if ( - ((bound = Function( - 'binder', - 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }' - )(function() { - if (this instanceof bound) { - var result = target.apply(this, args.concat(slice.call(arguments))); - return Object(result) === result ? result : this; - } - return target.apply(that, args.concat(slice.call(arguments))); - })), - target.prototype) - ) { - var Empty = function Empty() {}; - (Empty.prototype = target.prototype), - (bound.prototype = new Empty()), - (Empty.prototype = null); - } - return bound; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(345)(), __webpack_require__(356); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var define = __webpack_require__(28), - getPolyfill = __webpack_require__(346); - module.exports = function shimArrayPrototypeIncludes() { - var polyfill = getPolyfill(); - return ( - define( - Array.prototype, - { includes: polyfill }, - { - includes: function() { - return Array.prototype.includes !== polyfill; - } - } - ), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(347); - module.exports = function getPolyfill() { - return Array.prototype.includes || implementation; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - (function(global) { - var ES = __webpack_require__(348), - $isNaN = - Number.isNaN || - function isNaN(a) { - return a != a; - }, - $isFinite = - Number.isFinite || - function isFinite(n) { - return 'number' == typeof n && global.isFinite(n); - }, - indexOf = Array.prototype.indexOf; - module.exports = function includes(searchElement) { - var fromIndex = arguments.length > 1 ? ES.ToInteger(arguments[1]) : 0; - if (indexOf && !$isNaN(searchElement) && $isFinite(fromIndex) && void 0 !== searchElement) - return indexOf.apply(this, arguments) > -1; - var O = ES.ToObject(this), - length = ES.ToLength(O.length); - if (0 === length) return !1; - for (var k = fromIndex >= 0 ? fromIndex : Math.max(0, length + fromIndex); k < length; ) { - if (ES.SameValueZero(searchElement, O[k])) return !0; - k += 1; - } - return !1; - }; - }.call(exports, __webpack_require__(27))); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = __webpack_require__(202); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var hasSymbols = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator, - isPrimitive = __webpack_require__(203), - isCallable = __webpack_require__(92), - isDate = __webpack_require__(350), - isSymbol = __webpack_require__(351); - module.exports = function ToPrimitive(input, PreferredType) { - if (isPrimitive(input)) return input; - var exoticToPrim, - hint = 'default'; - if ( - (arguments.length > 1 && - (PreferredType === String - ? (hint = 'string') - : PreferredType === Number && (hint = 'number')), - hasSymbols && - (Symbol.toPrimitive - ? (exoticToPrim = (function GetMethod(O, P) { - var func = O[P]; - if (null !== func && void 0 !== func) { - if (!isCallable(func)) - throw new TypeError( - func + - ' returned for property ' + - P + - ' of object ' + - O + - ' is not a function' - ); - return func; - } - })(input, Symbol.toPrimitive)) - : isSymbol(input) && (exoticToPrim = Symbol.prototype.valueOf)), - void 0 !== exoticToPrim) - ) { - var result = exoticToPrim.call(input, hint); - if (isPrimitive(result)) return result; - throw new TypeError('unable to convert exotic object to primitive'); - } - return ( - 'default' === hint && (isDate(input) || isSymbol(input)) && (hint = 'string'), - (function OrdinaryToPrimitive(O, hint) { - if (void 0 === O || null === O) throw new TypeError('Cannot call method on ' + O); - if ('string' != typeof hint || ('number' !== hint && 'string' !== hint)) - throw new TypeError('hint must be "string" or "number"'); - var method, - result, - i, - methodNames = 'string' === hint ? ['toString', 'valueOf'] : ['valueOf', 'toString']; - for (i = 0; i < methodNames.length; ++i) - if ( - ((method = O[methodNames[i]]), - isCallable(method) && ((result = method.call(O)), isPrimitive(result))) - ) - return result; - throw new TypeError('No default value'); - })(input, 'default' === hint ? 'number' : hint) - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var getDay = Date.prototype.getDay, - toStr = Object.prototype.toString, - hasToStringTag = 'function' == typeof Symbol && 'symbol' == typeof Symbol.toStringTag; - module.exports = function isDateObject(value) { - return ( - 'object' == typeof value && - null !== value && - (hasToStringTag - ? (function tryDateObject(value) { - try { - return getDay.call(value), !0; - } catch (e) { - return !1; - } - })(value) - : '[object Date]' === toStr.call(value)) - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var toStr = Object.prototype.toString; - if ('function' == typeof Symbol && 'symbol' == typeof Symbol()) { - var symToStr = Symbol.prototype.toString, - symStringRegex = /^Symbol\(.*\)$/; - module.exports = function isSymbol(value) { - if ('symbol' == typeof value) return !0; - if ('[object Symbol]' !== toStr.call(value)) return !1; - try { - return (function isSymbolObject(value) { - return 'symbol' == typeof value.valueOf() && symStringRegex.test(symToStr.call(value)); - })(value); - } catch (e) { - return !1; - } - }; - } else - module.exports = function isSymbol(value) { - return !1; - }; - }, - function(module, exports) { - module.exports = function isPrimitive(value) { - return null === value || ('function' != typeof value && 'object' != typeof value); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var $isNaN = __webpack_require__(204), - $isFinite = __webpack_require__(205), - sign = __webpack_require__(206), - mod = __webpack_require__(207), - IsCallable = __webpack_require__(92), - toPrimitive = __webpack_require__(354), - has = __webpack_require__(70), - ES5 = { - ToPrimitive: toPrimitive, - ToBoolean: function ToBoolean(value) { - return !!value; - }, - ToNumber: function ToNumber(value) { - return Number(value); - }, - ToInteger: function ToInteger(value) { - var number = this.ToNumber(value); - return $isNaN(number) - ? 0 - : 0 !== number && $isFinite(number) - ? sign(number) * Math.floor(Math.abs(number)) - : number; - }, - ToInt32: function ToInt32(x) { - return this.ToNumber(x) >> 0; - }, - ToUint32: function ToUint32(x) { - return this.ToNumber(x) >>> 0; - }, - ToUint16: function ToUint16(value) { - var number = this.ToNumber(value); - if ($isNaN(number) || 0 === number || !$isFinite(number)) return 0; - var posInt = sign(number) * Math.floor(Math.abs(number)); - return mod(posInt, 65536); - }, - ToString: function ToString(value) { - return String(value); - }, - ToObject: function ToObject(value) { - return this.CheckObjectCoercible(value), Object(value); - }, - CheckObjectCoercible: function CheckObjectCoercible(value, optMessage) { - if (null == value) throw new TypeError(optMessage || 'Cannot call method on ' + value); - return value; - }, - IsCallable: IsCallable, - SameValue: function SameValue(x, y) { - return x === y ? 0 !== x || 1 / x == 1 / y : $isNaN(x) && $isNaN(y); - }, - Type: function Type(x) { - return null === x - ? 'Null' - : void 0 === x - ? 'Undefined' - : 'function' == typeof x || 'object' == typeof x - ? 'Object' - : 'number' == typeof x - ? 'Number' - : 'boolean' == typeof x ? 'Boolean' : 'string' == typeof x ? 'String' : void 0; - }, - IsPropertyDescriptor: function IsPropertyDescriptor(Desc) { - if ('Object' !== this.Type(Desc)) return !1; - var allowed = { - '[[Configurable]]': !0, - '[[Enumerable]]': !0, - '[[Get]]': !0, - '[[Set]]': !0, - '[[Value]]': !0, - '[[Writable]]': !0 - }; - for (var key in Desc) if (has(Desc, key) && !allowed[key]) return !1; - var isData = has(Desc, '[[Value]]'), - IsAccessor = has(Desc, '[[Get]]') || has(Desc, '[[Set]]'); - if (isData && IsAccessor) - throw new TypeError( - 'Property Descriptors may not be both accessor and data descriptors' - ); - return !0; - }, - IsAccessorDescriptor: function IsAccessorDescriptor(Desc) { - if (void 0 === Desc) return !1; - if (!this.IsPropertyDescriptor(Desc)) - throw new TypeError('Desc must be a Property Descriptor'); - return !(!has(Desc, '[[Get]]') && !has(Desc, '[[Set]]')); - }, - IsDataDescriptor: function IsDataDescriptor(Desc) { - if (void 0 === Desc) return !1; - if (!this.IsPropertyDescriptor(Desc)) - throw new TypeError('Desc must be a Property Descriptor'); - return !(!has(Desc, '[[Value]]') && !has(Desc, '[[Writable]]')); - }, - IsGenericDescriptor: function IsGenericDescriptor(Desc) { - if (void 0 === Desc) return !1; - if (!this.IsPropertyDescriptor(Desc)) - throw new TypeError('Desc must be a Property Descriptor'); - return !this.IsAccessorDescriptor(Desc) && !this.IsDataDescriptor(Desc); - }, - FromPropertyDescriptor: function FromPropertyDescriptor(Desc) { - if (void 0 === Desc) return Desc; - if (!this.IsPropertyDescriptor(Desc)) - throw new TypeError('Desc must be a Property Descriptor'); - if (this.IsDataDescriptor(Desc)) - return { - value: Desc['[[Value]]'], - writable: !!Desc['[[Writable]]'], - enumerable: !!Desc['[[Enumerable]]'], - configurable: !!Desc['[[Configurable]]'] - }; - if (this.IsAccessorDescriptor(Desc)) - return { - get: Desc['[[Get]]'], - set: Desc['[[Set]]'], - enumerable: !!Desc['[[Enumerable]]'], - configurable: !!Desc['[[Configurable]]'] - }; - throw new TypeError( - 'FromPropertyDescriptor must be called with a fully populated Property Descriptor' - ); - }, - ToPropertyDescriptor: function ToPropertyDescriptor(Obj) { - if ('Object' !== this.Type(Obj)) - throw new TypeError('ToPropertyDescriptor requires an object'); - var desc = {}; - if ( - (has(Obj, 'enumerable') && (desc['[[Enumerable]]'] = this.ToBoolean(Obj.enumerable)), - has(Obj, 'configurable') && - (desc['[[Configurable]]'] = this.ToBoolean(Obj.configurable)), - has(Obj, 'value') && (desc['[[Value]]'] = Obj.value), - has(Obj, 'writable') && (desc['[[Writable]]'] = this.ToBoolean(Obj.writable)), - has(Obj, 'get')) - ) { - var getter = Obj.get; - if (void 0 !== getter && !this.IsCallable(getter)) - throw new TypeError('getter must be a function'); - desc['[[Get]]'] = getter; - } - if (has(Obj, 'set')) { - var setter = Obj.set; - if (void 0 !== setter && !this.IsCallable(setter)) - throw new TypeError('setter must be a function'); - desc['[[Set]]'] = setter; - } - if ( - (has(desc, '[[Get]]') || has(desc, '[[Set]]')) && - (has(desc, '[[Value]]') || has(desc, '[[Writable]]')) - ) - throw new TypeError( - 'Invalid property descriptor. Cannot both specify accessors and a value or writable attribute' - ); - return desc; - } - }; - module.exports = ES5; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var toStr = Object.prototype.toString, - isPrimitive = __webpack_require__(203), - isCallable = __webpack_require__(92), - ES_internalSlots__DefaultValue_ = function(O, hint) { - var actualHint = hint || ('[object Date]' === toStr.call(O) ? String : Number); - if (actualHint === String || actualHint === Number) { - var value, - i, - methods = actualHint === String ? ['toString', 'valueOf'] : ['valueOf', 'toString']; - for (i = 0; i < methods.length; ++i) - if (isCallable(O[methods[i]]) && ((value = O[methods[i]]()), isPrimitive(value))) - return value; - throw new TypeError('No default value'); - } - throw new TypeError('invalid [[DefaultValue]] hint supplied'); - }; - module.exports = function ToPrimitive(input, PreferredType) { - return isPrimitive(input) ? input : ES_internalSlots__DefaultValue_(input, PreferredType); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var has = __webpack_require__(70), - regexExec = RegExp.prototype.exec, - gOPD = Object.getOwnPropertyDescriptor, - toStr = Object.prototype.toString, - hasToStringTag = 'function' == typeof Symbol && 'symbol' == typeof Symbol.toStringTag; - module.exports = function isRegex(value) { - if (!value || 'object' != typeof value) return !1; - if (!hasToStringTag) return '[object RegExp]' === toStr.call(value); - var descriptor = gOPD(value, 'lastIndex'); - return ( - !(!descriptor || !has(descriptor, 'value')) && - (function tryRegexExec(value) { - try { - var lastIndex = value.lastIndex; - return (value.lastIndex = 0), regexExec.call(value), !0; - } catch (e) { - return !1; - } finally { - value.lastIndex = lastIndex; - } - })(value) - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(357)(), - __webpack_require__(360)(), - __webpack_require__(363)(), - __webpack_require__(366)(), - __webpack_require__(369)(), - __webpack_require__(372); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var getPolyfill = __webpack_require__(358), - define = __webpack_require__(28); - module.exports = function shimValues() { - var polyfill = getPolyfill(); - return ( - define( - Object, - { values: polyfill }, - { - values: function testValues() { - return Object.values !== polyfill; - } - } - ), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(359); - module.exports = function getPolyfill() { - return 'function' == typeof Object.values ? Object.values : implementation; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ES = __webpack_require__(55), - has = __webpack_require__(70), - isEnumerable = __webpack_require__(39).call( - Function.call, - Object.prototype.propertyIsEnumerable - ); - module.exports = function values(O) { - var obj = ES.RequireObjectCoercible(O), - vals = []; - for (var key in obj) has(obj, key) && isEnumerable(obj, key) && vals.push(obj[key]); - return vals; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var getPolyfill = __webpack_require__(361), - define = __webpack_require__(28); - module.exports = function shimEntries() { - var polyfill = getPolyfill(); - return ( - define( - Object, - { entries: polyfill }, - { - entries: function testEntries() { - return Object.entries !== polyfill; - } - } - ), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(362); - module.exports = function getPolyfill() { - return 'function' == typeof Object.entries ? Object.entries : implementation; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ES = __webpack_require__(55), - has = __webpack_require__(70), - isEnumerable = __webpack_require__(39).call( - Function.call, - Object.prototype.propertyIsEnumerable - ); - module.exports = function entries(O) { - var obj = ES.RequireObjectCoercible(O), - entrys = []; - for (var key in obj) has(obj, key) && isEnumerable(obj, key) && entrys.push([key, obj[key]]); - return entrys; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var getPolyfill = __webpack_require__(364), - define = __webpack_require__(28); - module.exports = function shimPadStart() { - var polyfill = getPolyfill(); - return ( - define( - String.prototype, - { padStart: polyfill }, - { - padStart: function() { - return String.prototype.padStart !== polyfill; - } - } - ), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(365); - module.exports = function getPolyfill() { - return 'function' == typeof String.prototype.padStart - ? String.prototype.padStart - : implementation; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var bind = __webpack_require__(39), - ES = __webpack_require__(55), - slice = bind.call(Function.call, String.prototype.slice); - module.exports = function padStart(maxLength) { - var fillString, - O = ES.RequireObjectCoercible(this), - S = ES.ToString(O), - stringLength = ES.ToLength(S.length); - arguments.length > 1 && (fillString = arguments[1]); - var filler = void 0 === fillString ? '' : ES.ToString(fillString); - '' === filler && (filler = ' '); - var intMaxLength = ES.ToLength(maxLength); - if (intMaxLength <= stringLength) return S; - for (var fillLen = intMaxLength - stringLength; filler.length < fillLen; ) { - var fLen = filler.length, - remainingCodeUnits = fillLen - fLen; - filler += fLen > remainingCodeUnits ? slice(filler, 0, remainingCodeUnits) : filler; - } - return (filler.length > fillLen ? slice(filler, 0, fillLen) : filler) + S; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var getPolyfill = __webpack_require__(367), - define = __webpack_require__(28); - module.exports = function shimPadEnd() { - var polyfill = getPolyfill(); - return ( - define( - String.prototype, - { padEnd: polyfill }, - { - padEnd: function() { - return String.prototype.padEnd !== polyfill; - } - } - ), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(368); - module.exports = function getPolyfill() { - return 'function' == typeof String.prototype.padEnd - ? String.prototype.padEnd - : implementation; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var bind = __webpack_require__(39), - ES = __webpack_require__(55), - slice = bind.call(Function.call, String.prototype.slice); - module.exports = function padEnd(maxLength) { - var fillString, - O = ES.RequireObjectCoercible(this), - S = ES.ToString(O), - stringLength = ES.ToLength(S.length); - arguments.length > 1 && (fillString = arguments[1]); - var filler = void 0 === fillString ? '' : ES.ToString(fillString); - '' === filler && (filler = ' '); - var intMaxLength = ES.ToLength(maxLength); - if (intMaxLength <= stringLength) return S; - for (var fillLen = intMaxLength - stringLength; filler.length < fillLen; ) { - var fLen = filler.length, - remainingCodeUnits = fillLen - fLen; - filler += fLen > remainingCodeUnits ? slice(filler, 0, remainingCodeUnits) : filler; - } - return S + (filler.length > fillLen ? slice(filler, 0, fillLen) : filler); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var getPolyfill = __webpack_require__(370), - define = __webpack_require__(28); - module.exports = function shimGetOwnPropertyDescriptors() { - var polyfill = getPolyfill(); - return ( - define( - Object, - { getOwnPropertyDescriptors: polyfill }, - { - getOwnPropertyDescriptors: function() { - return Object.getOwnPropertyDescriptors !== polyfill; - } - } - ), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(371); - module.exports = function getPolyfill() { - return 'function' == typeof Object.getOwnPropertyDescriptors - ? Object.getOwnPropertyDescriptors - : implementation; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ES = __webpack_require__(55), - defineProperty = Object.defineProperty, - getDescriptor = Object.getOwnPropertyDescriptor, - getOwnNames = Object.getOwnPropertyNames, - getSymbols = Object.getOwnPropertySymbols, - concat = Function.call.bind(Array.prototype.concat), - reduce = Function.call.bind(Array.prototype.reduce), - getAll = getSymbols - ? function(obj) { - return concat(getOwnNames(obj), getSymbols(obj)); - } - : getOwnNames, - isES5 = ES.IsCallable(getDescriptor) && ES.IsCallable(getOwnNames); - module.exports = function getOwnPropertyDescriptors(value) { - if ((ES.RequireObjectCoercible(value), !isES5)) - throw new TypeError('getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor'); - var O = ES.ToObject(value); - return reduce( - getAll(O), - function(acc, key) { - var descriptor = getDescriptor(O, key); - return ( - void 0 !== descriptor && - (function put(obj, prop, val) { - defineProperty && prop in obj - ? defineProperty(obj, prop, { - configurable: !0, - enumerable: !0, - value: val, - writable: !0 - }) - : (obj[prop] = val); - })(acc, key, descriptor), - acc - ); - }, - {} - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - 'function' == typeof Promise && __webpack_require__(373)(), - __webpack_require__(376)(), - __webpack_require__(379)(); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var requirePromise = __webpack_require__(136), - getPolyfill = __webpack_require__(374), - define = __webpack_require__(28); - module.exports = function shimPromiseFinally() { - requirePromise(); - var polyfill = getPolyfill(); - return ( - define( - Promise.prototype, - { finally: polyfill }, - { - finally: function testFinally() { - return Promise.prototype.finally !== polyfill; - } - } - ), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var requirePromise = __webpack_require__(136), - implementation = __webpack_require__(375); - module.exports = function getPolyfill() { - return ( - requirePromise(), - 'function' == typeof Promise.prototype.finally ? Promise.prototype.finally : implementation - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(136)(); - var ES = __webpack_require__(55), - bind = __webpack_require__(39), - promiseResolve = function PromiseResolve(C, value) { - return new C(function(resolve) { - resolve(value); - }); - }, - OriginalPromise = Promise, - then = bind.call(Function.call, OriginalPromise.prototype.then), - promiseFinally = function finally_(onFinally) { - then(this, null, function() {}); - var C = ES.SpeciesConstructor(this, OriginalPromise), - thenFinally = onFinally, - catchFinally = onFinally; - return ( - ES.IsCallable(onFinally) && - ((thenFinally = (function CreateThenFinally(C, onFinally) { - return function(value) { - var result = onFinally(); - return promiseResolve(C, result).then(function() { - return value; - }); - }; - })(C, onFinally)), - (catchFinally = (function CreateCatchFinally(C, onFinally) { - return function(reason) { - var result = onFinally(); - return promiseResolve(C, result).then(function() { - throw reason; - }); - }; - })(C, onFinally))), - this.then(thenFinally, catchFinally) - ); - }; - if (Object.getOwnPropertyDescriptor) { - var descriptor = Object.getOwnPropertyDescriptor(promiseFinally, 'name'); - descriptor && - descriptor.configurable && - Object.defineProperty(promiseFinally, 'name', { configurable: !0, value: 'finally' }); - } - module.exports = promiseFinally; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var define = __webpack_require__(28), - getPolyfill = __webpack_require__(377); - module.exports = function shimFlatten() { - var polyfill = getPolyfill(); - return ( - define( - Array.prototype, - { flatten: polyfill }, - { - flatten: function() { - return Array.prototype.flatten !== polyfill; - } - } - ), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(378); - module.exports = function getPolyfill() { - return Array.prototype.flatten || implementation; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ES = __webpack_require__(209), - MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1; - module.exports = function flatten() { - var O = ES.ToObject(this), - depthNum = 1; - arguments.length > 0 && void 0 !== arguments[0] && (depthNum = ES.ToInteger(arguments[0])); - var sourceLen = ES.ToLength(ES.Get(O, 'length')), - A = ES.ArraySpeciesCreate(O, 0), - nextIndex = (function FlattenIntoArray(target, original, source, sourceLen, start, depth) { - for (var targetIndex = start, sourceIndex = 0; sourceIndex < sourceLen; ) { - var P = ES.ToString(sourceIndex); - if (ES.HasProperty(source, P)) { - var element = ES.Get(source, P); - if (ES.IsArray(element) && depth > 0) - targetIndex = - FlattenIntoArray( - target, - original, - element, - ES.ToLength(ES.Get(element, 'length')), - targetIndex, - depth - 1 - ) - 1; - else { - if (targetIndex >= MAX_SAFE_INTEGER) throw new TypeError('index too large'); - ES.CreateDataPropertyOrThrow(target, ES.ToString(targetIndex), element); - } - targetIndex += 1; - } - sourceIndex += 1; - } - return targetIndex; - })(A, O, O, sourceLen, 0, depthNum); - return ES.Set(A, 'length', nextIndex, !0), A; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var define = __webpack_require__(28), - getPolyfill = __webpack_require__(380); - module.exports = function shimFlatMap() { - var polyfill = getPolyfill(); - return ( - define( - Array.prototype, - { flatMap: polyfill }, - { - flatMap: function() { - return Array.prototype.flatMap !== polyfill; - } - } - ), - polyfill - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var implementation = __webpack_require__(381); - module.exports = function getPolyfill() { - return Array.prototype.flatMap || implementation; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ES = __webpack_require__(209), - MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1; - module.exports = function flatMap(callbackfn) { - var T, - O = ES.ToObject(this); - if (!ES.IsCallable(callbackfn)) throw new TypeError('callback must be a function'); - arguments.length > 1 && (T = arguments[1]); - var sourceLen = ES.ToLength(ES.Get(O, 'length')), - A = ES.ArraySpeciesCreate(O, 0), - nextIndex = (function FlattenIntoArray(target, original, source, sourceLen, start, depth) { - var mapperFunction, - targetIndex = start, - sourceIndex = 0; - for (arguments.length > 6 && (mapperFunction = arguments[6]); sourceIndex < sourceLen; ) { - var P = ES.ToString(sourceIndex); - if (ES.HasProperty(source, P)) { - var element = ES.Get(source, P); - if (void 0 !== mapperFunction) { - if (arguments.length <= 7) - throw new TypeError( - 'Assertion failed: thisArg is required when mapperFunction is provided' - ); - element = ES.Call(mapperFunction, arguments[7], [element, sourceIndex, original]); - } - if (ES.IsArray(element) && depth > 0) - targetIndex = - FlattenIntoArray( - target, - original, - element, - ES.ToLength(ES.Get(element, 'length')), - targetIndex, - depth - 1 - ) - 1; - else { - if (targetIndex >= MAX_SAFE_INTEGER) throw new TypeError('index too large'); - ES.CreateDataPropertyOrThrow(target, ES.ToString(targetIndex), element); - } - targetIndex += 1; - } - sourceIndex += 1; - } - return targetIndex; - })(A, O, O, sourceLen, 0, 1, callbackfn, T); - return ES.Set(A, 'length', nextIndex, !0), A; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var lowPriorityWarning = function() {}; - module.exports = lowPriorityWarning; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var PooledClass = __webpack_require__(384), - ReactElement = __webpack_require__(57), - emptyFunction = __webpack_require__(22), - traverseAllChildren = __webpack_require__(385), - twoArgumentPooler = PooledClass.twoArgumentPooler, - fourArgumentPooler = PooledClass.fourArgumentPooler, - userProvidedKeyEscapeRegex = /\/+/g; - function escapeUserProvidedKey(text) { - return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/'); - } - function ForEachBookKeeping(forEachFunction, forEachContext) { - (this.func = forEachFunction), (this.context = forEachContext), (this.count = 0); - } - function forEachSingleChild(bookKeeping, child, name) { - var func = bookKeeping.func, - context = bookKeeping.context; - func.call(context, child, bookKeeping.count++); - } - function MapBookKeeping(mapResult, keyPrefix, mapFunction, mapContext) { - (this.result = mapResult), - (this.keyPrefix = keyPrefix), - (this.func = mapFunction), - (this.context = mapContext), - (this.count = 0); - } - function mapSingleChildIntoContext(bookKeeping, child, childKey) { - var result = bookKeeping.result, - keyPrefix = bookKeeping.keyPrefix, - func = bookKeeping.func, - context = bookKeeping.context, - mappedChild = func.call(context, child, bookKeeping.count++); - Array.isArray(mappedChild) - ? mapIntoWithKeyPrefixInternal( - mappedChild, - result, - childKey, - emptyFunction.thatReturnsArgument - ) - : null != mappedChild && - (ReactElement.isValidElement(mappedChild) && - (mappedChild = ReactElement.cloneAndReplaceKey( - mappedChild, - keyPrefix + - (!mappedChild.key || (child && child.key === mappedChild.key) - ? '' - : escapeUserProvidedKey(mappedChild.key) + '/') + - childKey - )), - result.push(mappedChild)); - } - function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) { - var escapedPrefix = ''; - null != prefix && (escapedPrefix = escapeUserProvidedKey(prefix) + '/'); - var traverseContext = MapBookKeeping.getPooled(array, escapedPrefix, func, context); - traverseAllChildren(children, mapSingleChildIntoContext, traverseContext), - MapBookKeeping.release(traverseContext); - } - function forEachSingleChildDummy(traverseContext, child, name) { - return null; - } - (ForEachBookKeeping.prototype.destructor = function() { - (this.func = null), (this.context = null), (this.count = 0); - }), - PooledClass.addPoolingTo(ForEachBookKeeping, twoArgumentPooler), - (MapBookKeeping.prototype.destructor = function() { - (this.result = null), - (this.keyPrefix = null), - (this.func = null), - (this.context = null), - (this.count = 0); - }), - PooledClass.addPoolingTo(MapBookKeeping, fourArgumentPooler); - var ReactChildren = { - forEach: function forEachChildren(children, forEachFunc, forEachContext) { - if (null == children) return children; - var traverseContext = ForEachBookKeeping.getPooled(forEachFunc, forEachContext); - traverseAllChildren(children, forEachSingleChild, traverseContext), - ForEachBookKeeping.release(traverseContext); - }, - map: function mapChildren(children, func, context) { - if (null == children) return children; - var result = []; - return mapIntoWithKeyPrefixInternal(children, result, null, func, context), result; - }, - mapIntoWithKeyPrefixInternal: mapIntoWithKeyPrefixInternal, - count: function countChildren(children, context) { - return traverseAllChildren(children, forEachSingleChildDummy, null); - }, - toArray: function toArray(children) { - var result = []; - return ( - mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument), - result - ); - } - }; - module.exports = ReactChildren; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(71), - oneArgumentPooler = (__webpack_require__(3), - function(copyFieldsFrom) { - if (this.instancePool.length) { - var instance = this.instancePool.pop(); - return this.call(instance, copyFieldsFrom), instance; - } - return new this(copyFieldsFrom); - }), - standardReleaser = function(instance) { - instance instanceof this || _prodInvariant('25'), - instance.destructor(), - this.instancePool.length < this.poolSize && this.instancePool.push(instance); - }, - DEFAULT_POOLER = oneArgumentPooler, - PooledClass = { - addPoolingTo: function(CopyConstructor, pooler) { - var NewKlass = CopyConstructor; - return ( - (NewKlass.instancePool = []), - (NewKlass.getPooled = pooler || DEFAULT_POOLER), - NewKlass.poolSize || (NewKlass.poolSize = 10), - (NewKlass.release = standardReleaser), - NewKlass - ); - }, - oneArgumentPooler: oneArgumentPooler, - twoArgumentPooler: function(a1, a2) { - if (this.instancePool.length) { - var instance = this.instancePool.pop(); - return this.call(instance, a1, a2), instance; - } - return new this(a1, a2); - }, - threeArgumentPooler: function(a1, a2, a3) { - if (this.instancePool.length) { - var instance = this.instancePool.pop(); - return this.call(instance, a1, a2, a3), instance; - } - return new this(a1, a2, a3); - }, - fourArgumentPooler: function(a1, a2, a3, a4) { - if (this.instancePool.length) { - var instance = this.instancePool.pop(); - return this.call(instance, a1, a2, a3, a4), instance; - } - return new this(a1, a2, a3, a4); - } - }; - module.exports = PooledClass; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(71), - REACT_ELEMENT_TYPE = (__webpack_require__(32), __webpack_require__(213)), - getIteratorFn = __webpack_require__(386), - KeyEscapeUtils = (__webpack_require__(3), __webpack_require__(387)), - SEPARATOR = (__webpack_require__(6), '.'), - SUBSEPARATOR = ':'; - function getComponentKey(component, index) { - return component && 'object' == typeof component && null != component.key - ? KeyEscapeUtils.escape(component.key) - : index.toString(36); - } - module.exports = function traverseAllChildren(children, callback, traverseContext) { - return null == children - ? 0 - : (function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) { - var child, - type = typeof children; - if ( - (('undefined' !== type && 'boolean' !== type) || (children = null), - null === children || - 'string' === type || - 'number' === type || - ('object' === type && children.$$typeof === REACT_ELEMENT_TYPE)) - ) - return ( - callback( - traverseContext, - children, - '' === nameSoFar ? SEPARATOR + getComponentKey(children, 0) : nameSoFar - ), - 1 - ); - var subtreeCount = 0, - nextNamePrefix = '' === nameSoFar ? SEPARATOR : nameSoFar + SUBSEPARATOR; - if (Array.isArray(children)) - for (var i = 0; i < children.length; i++) - subtreeCount += traverseAllChildrenImpl( - (child = children[i]), - nextNamePrefix + getComponentKey(child, i), - callback, - traverseContext - ); - else { - var iteratorFn = getIteratorFn(children); - if (iteratorFn) { - var step, - iterator = iteratorFn.call(children); - if (iteratorFn !== children.entries) - for (var ii = 0; !(step = iterator.next()).done; ) - subtreeCount += traverseAllChildrenImpl( - (child = step.value), - nextNamePrefix + getComponentKey(child, ii++), - callback, - traverseContext - ); - else - for (; !(step = iterator.next()).done; ) { - var entry = step.value; - entry && - (subtreeCount += traverseAllChildrenImpl( - (child = entry[1]), - nextNamePrefix + - KeyEscapeUtils.escape(entry[0]) + - SUBSEPARATOR + - getComponentKey(child, 0), - callback, - traverseContext - )); - } - } else if ('object' === type) { - var addendum = '', - childrenString = String(children); - _prodInvariant( - '31', - '[object Object]' === childrenString - ? 'object with keys {' + Object.keys(children).join(', ') + '}' - : childrenString, - addendum - ); - } - } - return subtreeCount; - })(children, '', callback, traverseContext); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ITERATOR_SYMBOL = 'function' == typeof Symbol && Symbol.iterator, - FAUX_ITERATOR_SYMBOL = '@@iterator'; - module.exports = function getIteratorFn(maybeIterable) { - var iteratorFn = - maybeIterable && - ((ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL]) || - maybeIterable[FAUX_ITERATOR_SYMBOL]); - if ('function' == typeof iteratorFn) return iteratorFn; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var KeyEscapeUtils = { - escape: function escape(key) { - var escaperLookup = { '=': '=0', ':': '=2' }; - return ( - '$' + - ('' + key).replace(/[=:]/g, function(match) { - return escaperLookup[match]; - }) - ); - }, - unescape: function unescape(key) { - var unescaperLookup = { '=0': '=', '=2': ':' }; - return ( - '' + ('.' === key[0] && '$' === key[1] ? key.substring(2) : key.substring(1)) - ).replace(/(=0|=2)/g, function(match) { - return unescaperLookup[match]; - }); - } - }; - module.exports = KeyEscapeUtils; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var createDOMFactory = __webpack_require__(57).createFactory, - ReactDOMFactories = { - a: createDOMFactory('a'), - abbr: createDOMFactory('abbr'), - address: createDOMFactory('address'), - area: createDOMFactory('area'), - article: createDOMFactory('article'), - aside: createDOMFactory('aside'), - audio: createDOMFactory('audio'), - b: createDOMFactory('b'), - base: createDOMFactory('base'), - bdi: createDOMFactory('bdi'), - bdo: createDOMFactory('bdo'), - big: createDOMFactory('big'), - blockquote: createDOMFactory('blockquote'), - body: createDOMFactory('body'), - br: createDOMFactory('br'), - button: createDOMFactory('button'), - canvas: createDOMFactory('canvas'), - caption: createDOMFactory('caption'), - cite: createDOMFactory('cite'), - code: createDOMFactory('code'), - col: createDOMFactory('col'), - colgroup: createDOMFactory('colgroup'), - data: createDOMFactory('data'), - datalist: createDOMFactory('datalist'), - dd: createDOMFactory('dd'), - del: createDOMFactory('del'), - details: createDOMFactory('details'), - dfn: createDOMFactory('dfn'), - dialog: createDOMFactory('dialog'), - div: createDOMFactory('div'), - dl: createDOMFactory('dl'), - dt: createDOMFactory('dt'), - em: createDOMFactory('em'), - embed: createDOMFactory('embed'), - fieldset: createDOMFactory('fieldset'), - figcaption: createDOMFactory('figcaption'), - figure: createDOMFactory('figure'), - footer: createDOMFactory('footer'), - form: createDOMFactory('form'), - h1: createDOMFactory('h1'), - h2: createDOMFactory('h2'), - h3: createDOMFactory('h3'), - h4: createDOMFactory('h4'), - h5: createDOMFactory('h5'), - h6: createDOMFactory('h6'), - head: createDOMFactory('head'), - header: createDOMFactory('header'), - hgroup: createDOMFactory('hgroup'), - hr: createDOMFactory('hr'), - html: createDOMFactory('html'), - i: createDOMFactory('i'), - iframe: createDOMFactory('iframe'), - img: createDOMFactory('img'), - input: createDOMFactory('input'), - ins: createDOMFactory('ins'), - kbd: createDOMFactory('kbd'), - keygen: createDOMFactory('keygen'), - label: createDOMFactory('label'), - legend: createDOMFactory('legend'), - li: createDOMFactory('li'), - link: createDOMFactory('link'), - main: createDOMFactory('main'), - map: createDOMFactory('map'), - mark: createDOMFactory('mark'), - menu: createDOMFactory('menu'), - menuitem: createDOMFactory('menuitem'), - meta: createDOMFactory('meta'), - meter: createDOMFactory('meter'), - nav: createDOMFactory('nav'), - noscript: createDOMFactory('noscript'), - object: createDOMFactory('object'), - ol: createDOMFactory('ol'), - optgroup: createDOMFactory('optgroup'), - option: createDOMFactory('option'), - output: createDOMFactory('output'), - p: createDOMFactory('p'), - param: createDOMFactory('param'), - picture: createDOMFactory('picture'), - pre: createDOMFactory('pre'), - progress: createDOMFactory('progress'), - q: createDOMFactory('q'), - rp: createDOMFactory('rp'), - rt: createDOMFactory('rt'), - ruby: createDOMFactory('ruby'), - s: createDOMFactory('s'), - samp: createDOMFactory('samp'), - script: createDOMFactory('script'), - section: createDOMFactory('section'), - select: createDOMFactory('select'), - small: createDOMFactory('small'), - source: createDOMFactory('source'), - span: createDOMFactory('span'), - strong: createDOMFactory('strong'), - style: createDOMFactory('style'), - sub: createDOMFactory('sub'), - summary: createDOMFactory('summary'), - sup: createDOMFactory('sup'), - table: createDOMFactory('table'), - tbody: createDOMFactory('tbody'), - td: createDOMFactory('td'), - textarea: createDOMFactory('textarea'), - tfoot: createDOMFactory('tfoot'), - th: createDOMFactory('th'), - thead: createDOMFactory('thead'), - time: createDOMFactory('time'), - title: createDOMFactory('title'), - tr: createDOMFactory('tr'), - track: createDOMFactory('track'), - u: createDOMFactory('u'), - ul: createDOMFactory('ul'), - var: createDOMFactory('var'), - video: createDOMFactory('video'), - wbr: createDOMFactory('wbr'), - circle: createDOMFactory('circle'), - clipPath: createDOMFactory('clipPath'), - defs: createDOMFactory('defs'), - ellipse: createDOMFactory('ellipse'), - g: createDOMFactory('g'), - image: createDOMFactory('image'), - line: createDOMFactory('line'), - linearGradient: createDOMFactory('linearGradient'), - mask: createDOMFactory('mask'), - path: createDOMFactory('path'), - pattern: createDOMFactory('pattern'), - polygon: createDOMFactory('polygon'), - polyline: createDOMFactory('polyline'), - radialGradient: createDOMFactory('radialGradient'), - rect: createDOMFactory('rect'), - stop: createDOMFactory('stop'), - svg: createDOMFactory('svg'), - text: createDOMFactory('text'), - tspan: createDOMFactory('tspan') - }; - module.exports = ReactDOMFactories; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var isValidElement = __webpack_require__(57).isValidElement, - factory = __webpack_require__(214); - module.exports = factory(isValidElement); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var emptyFunction = __webpack_require__(22), - invariant = __webpack_require__(3), - warning = __webpack_require__(6), - assign = __webpack_require__(9), - ReactPropTypesSecret = __webpack_require__(215), - checkPropTypes = __webpack_require__(391); - module.exports = function(isValidElement, throwOnDirectAccess) { - var ITERATOR_SYMBOL = 'function' == typeof Symbol && Symbol.iterator, - FAUX_ITERATOR_SYMBOL = '@@iterator'; - var ANONYMOUS = '<>', - ReactPropTypes = { - array: createPrimitiveTypeChecker('array'), - bool: createPrimitiveTypeChecker('boolean'), - func: createPrimitiveTypeChecker('function'), - number: createPrimitiveTypeChecker('number'), - object: createPrimitiveTypeChecker('object'), - string: createPrimitiveTypeChecker('string'), - symbol: createPrimitiveTypeChecker('symbol'), - any: (function createAnyTypeChecker() { - return createChainableTypeChecker(emptyFunction.thatReturnsNull); - })(), - arrayOf: function createArrayOfTypeChecker(typeChecker) { - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName - ) { - if ('function' != typeof typeChecker) - return new PropTypeError( - 'Property `' + - propFullName + - '` of component `' + - componentName + - '` has invalid PropType notation inside arrayOf.' - ); - var propValue = props[propName]; - if (!Array.isArray(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` of type `' + - propType + - '` supplied to `' + - componentName + - '`, expected an array.' - ); - } - for (var i = 0; i < propValue.length; i++) { - var error = typeChecker( - propValue, - i, - componentName, - location, - propFullName + '[' + i + ']', - ReactPropTypesSecret - ); - if (error instanceof Error) return error; - } - return null; - }); - }, - element: (function createElementTypeChecker() { - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName - ) { - var propValue = props[propName]; - if (!isValidElement(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` of type `' + - propType + - '` supplied to `' + - componentName + - '`, expected a single ReactElement.' - ); - } - return null; - }); - })(), - instanceOf: function createInstanceTypeChecker(expectedClass) { - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName - ) { - if (!(props[propName] instanceof expectedClass)) { - var expectedClassName = expectedClass.name || ANONYMOUS, - actualClassName = (function getClassName(propValue) { - if (!propValue.constructor || !propValue.constructor.name) return ANONYMOUS; - return propValue.constructor.name; - })(props[propName]); - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` of type `' + - actualClassName + - '` supplied to `' + - componentName + - '`, expected instance of `' + - expectedClassName + - '`.' - ); - } - return null; - }); - }, - node: (function createNodeChecker() { - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName - ) { - if (!isNode(props[propName])) - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` supplied to `' + - componentName + - '`, expected a ReactNode.' - ); - return null; - }); - })(), - objectOf: function createObjectOfTypeChecker(typeChecker) { - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName - ) { - if ('function' != typeof typeChecker) - return new PropTypeError( - 'Property `' + - propFullName + - '` of component `' + - componentName + - '` has invalid PropType notation inside objectOf.' - ); - var propValue = props[propName], - propType = getPropType(propValue); - if ('object' !== propType) - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` of type `' + - propType + - '` supplied to `' + - componentName + - '`, expected an object.' - ); - for (var key in propValue) - if (propValue.hasOwnProperty(key)) { - var error = typeChecker( - propValue, - key, - componentName, - location, - propFullName + '.' + key, - ReactPropTypesSecret - ); - if (error instanceof Error) return error; - } - return null; - }); - }, - oneOf: function createEnumTypeChecker(expectedValues) { - if (!Array.isArray(expectedValues)) return emptyFunction.thatReturnsNull; - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName - ) { - for (var propValue = props[propName], i = 0; i < expectedValues.length; i++) - if (is(propValue, expectedValues[i])) return null; - var valuesString = JSON.stringify(expectedValues); - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` of value `' + - propValue + - '` supplied to `' + - componentName + - '`, expected one of ' + - valuesString + - '.' - ); - }); - }, - oneOfType: function createUnionTypeChecker(arrayOfTypeCheckers) { - if (!Array.isArray(arrayOfTypeCheckers)) return emptyFunction.thatReturnsNull; - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { - var checker = arrayOfTypeCheckers[i]; - if ('function' != typeof checker) - return ( - warning( - !1, - 'Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.', - getPostfixForTypeWarning(checker), - i - ), - emptyFunction.thatReturnsNull - ); - } - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName - ) { - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { - var checker = arrayOfTypeCheckers[i]; - if ( - null == - checker( - props, - propName, - componentName, - location, - propFullName, - ReactPropTypesSecret - ) - ) - return null; - } - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` supplied to `' + - componentName + - '`.' - ); - }); - }, - shape: function createShapeTypeChecker(shapeTypes) { - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName - ) { - var propValue = props[propName], - propType = getPropType(propValue); - if ('object' !== propType) - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` of type `' + - propType + - '` supplied to `' + - componentName + - '`, expected `object`.' - ); - for (var key in shapeTypes) { - var checker = shapeTypes[key]; - if (checker) { - var error = checker( - propValue, - key, - componentName, - location, - propFullName + '.' + key, - ReactPropTypesSecret - ); - if (error) return error; - } - } - return null; - }); - }, - exact: function createStrictShapeTypeChecker(shapeTypes) { - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName - ) { - var propValue = props[propName], - propType = getPropType(propValue); - if ('object' !== propType) - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` of type `' + - propType + - '` supplied to `' + - componentName + - '`, expected `object`.' - ); - var allKeys = assign({}, props[propName], shapeTypes); - for (var key in allKeys) { - var checker = shapeTypes[key]; - if (!checker) - return new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` key `' + - key + - '` supplied to `' + - componentName + - '`.\nBad object: ' + - JSON.stringify(props[propName], null, ' ') + - '\nValid keys: ' + - JSON.stringify(Object.keys(shapeTypes), null, ' ') - ); - var error = checker( - propValue, - key, - componentName, - location, - propFullName + '.' + key, - ReactPropTypesSecret - ); - if (error) return error; - } - return null; - }); - } - }; - function is(x, y) { - return x === y ? 0 !== x || 1 / x == 1 / y : x != x && y != y; - } - function PropTypeError(message) { - (this.message = message), (this.stack = ''); - } - function createChainableTypeChecker(validate) { - function checkType( - isRequired, - props, - propName, - componentName, - location, - propFullName, - secret - ) { - ((componentName = componentName || ANONYMOUS), - (propFullName = propFullName || propName), - secret !== ReactPropTypesSecret) && - (throwOnDirectAccess && - invariant( - !1, - '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' - )); - return null == props[propName] - ? isRequired - ? null === props[propName] - ? new PropTypeError( - 'The ' + - location + - ' `' + - propFullName + - '` is marked as required in `' + - componentName + - '`, but its value is `null`.' - ) - : new PropTypeError( - 'The ' + - location + - ' `' + - propFullName + - '` is marked as required in `' + - componentName + - '`, but its value is `undefined`.' - ) - : null - : validate(props, propName, componentName, location, propFullName); - } - var chainedCheckType = checkType.bind(null, !1); - return (chainedCheckType.isRequired = checkType.bind(null, !0)), chainedCheckType; - } - function createPrimitiveTypeChecker(expectedType) { - return createChainableTypeChecker(function validate( - props, - propName, - componentName, - location, - propFullName, - secret - ) { - var propValue = props[propName]; - return getPropType(propValue) !== expectedType - ? new PropTypeError( - 'Invalid ' + - location + - ' `' + - propFullName + - '` of type `' + - getPreciseType(propValue) + - '` supplied to `' + - componentName + - '`, expected `' + - expectedType + - '`.' - ) - : null; - }); - } - function isNode(propValue) { - switch (typeof propValue) { - case 'number': - case 'string': - case 'undefined': - return !0; - case 'boolean': - return !propValue; - case 'object': - if (Array.isArray(propValue)) return propValue.every(isNode); - if (null === propValue || isValidElement(propValue)) return !0; - var iteratorFn = (function getIteratorFn(maybeIterable) { - var iteratorFn = - maybeIterable && - ((ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL]) || - maybeIterable[FAUX_ITERATOR_SYMBOL]); - if ('function' == typeof iteratorFn) return iteratorFn; - })(propValue); - if (!iteratorFn) return !1; - var step, - iterator = iteratorFn.call(propValue); - if (iteratorFn !== propValue.entries) { - for (; !(step = iterator.next()).done; ) if (!isNode(step.value)) return !1; - } else - for (; !(step = iterator.next()).done; ) { - var entry = step.value; - if (entry && !isNode(entry[1])) return !1; - } - return !0; - default: - return !1; - } - } - function getPropType(propValue) { - var propType = typeof propValue; - return Array.isArray(propValue) - ? 'array' - : propValue instanceof RegExp - ? 'object' - : (function isSymbol(propType, propValue) { - return ( - 'symbol' === propType || - 'Symbol' === propValue['@@toStringTag'] || - ('function' == typeof Symbol && propValue instanceof Symbol) - ); - })(propType, propValue) - ? 'symbol' - : propType; - } - function getPreciseType(propValue) { - if (void 0 === propValue || null === propValue) return '' + propValue; - var propType = getPropType(propValue); - if ('object' === propType) { - if (propValue instanceof Date) return 'date'; - if (propValue instanceof RegExp) return 'regexp'; - } - return propType; - } - function getPostfixForTypeWarning(value) { - var type = getPreciseType(value); - switch (type) { - case 'array': - case 'object': - return 'an ' + type; - case 'boolean': - case 'date': - case 'regexp': - return 'a ' + type; - default: - return type; - } - } - return ( - (PropTypeError.prototype = Error.prototype), - (ReactPropTypes.checkPropTypes = checkPropTypes), - (ReactPropTypes.PropTypes = ReactPropTypes), - ReactPropTypes - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function checkPropTypes( - typeSpecs, - values, - location, - componentName, - getStack - ) {}; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = '15.6.2'; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var Component = __webpack_require__(210).Component, - isValidElement = __webpack_require__(57).isValidElement, - ReactNoopUpdateQueue = __webpack_require__(211), - factory = __webpack_require__(274); - module.exports = factory(Component, isValidElement, ReactNoopUpdateQueue); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(71), - ReactElement = __webpack_require__(57); - __webpack_require__(3); - module.exports = function onlyChild(children) { - return ReactElement.isValidElement(children) || _prodInvariant('143'), children; - }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(396), (module.exports = __webpack_require__(10).Object.keys); - }, - function(module, exports, __webpack_require__) { - var toObject = __webpack_require__(58), - $keys = __webpack_require__(72); - __webpack_require__(114)('keys', function() { - return function keys(it) { - return $keys(toObject(it)); - }; - }); - }, - function(module, exports, __webpack_require__) { - var toIObject = __webpack_require__(46), - toLength = __webpack_require__(94), - toAbsoluteIndex = __webpack_require__(398); - module.exports = function(IS_INCLUDES) { - return function($this, el, fromIndex) { - var value, - O = toIObject($this), - length = toLength(O.length), - index = toAbsoluteIndex(fromIndex, length); - if (IS_INCLUDES && el != el) { - for (; length > index; ) if ((value = O[index++]) != value) return !0; - } else - for (; length > index; index++) - if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; - return !IS_INCLUDES && -1; - }; - }; - }, - function(module, exports, __webpack_require__) { - var toInteger = __webpack_require__(139), - max = Math.max, - min = Math.min; - module.exports = function(index, length) { - return (index = toInteger(index)) < 0 ? max(index + length, 0) : min(index, length); - }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(400); - var $Object = __webpack_require__(10).Object; - module.exports = function defineProperty(it, key, desc) { - return $Object.defineProperty(it, key, desc); - }; - }, - function(module, exports, __webpack_require__) { - var $export = __webpack_require__(16); - $export($export.S + $export.F * !__webpack_require__(29), 'Object', { - defineProperty: __webpack_require__(26).f - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.manager = void 0); - var _extends3 = _interopRequireDefault(__webpack_require__(8)); - (exports.knob = function knob(name, options) { - return manager.knob(name, options); - }), - (exports.text = function text(name, value) { - return manager.knob(name, { type: 'text', value: value }); - }), - (exports.boolean = function boolean(name, value) { - return manager.knob(name, { type: 'boolean', value: value }); - }), - (exports.number = function number(name, value) { - var options = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, - mergedOptions = options.range - ? (0, _extends3.default)({}, { min: 0, max: 10, step: 1 }, options) - : options, - finalOptions = (0, _extends3.default)({}, mergedOptions, { - type: 'number', - value: value - }); - return manager.knob(name, finalOptions); - }), - (exports.color = function color(name, value) { - return manager.knob(name, { type: 'color', value: value }); - }), - (exports.object = function object(name, value) { - return manager.knob(name, { type: 'object', value: value }); - }), - (exports.select = function select(name, options, value) { - return manager.knob(name, { type: 'select', options: options, value: value }); - }), - (exports.array = function array(name, value) { - var separator = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : ','; - return manager.knob(name, { type: 'array', value: value, separator: separator }); - }), - (exports.date = function date(name) { - var value = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : new Date(), - proxyValue = value ? value.getTime() : null; - return manager.knob(name, { type: 'date', value: proxyValue }); - }), - (exports.button = function button(name, callback) { - return manager.knob(name, { type: 'button', callback: callback, hideLabel: !0 }); - }); - var _KnobManager2 = _interopRequireDefault(__webpack_require__(865)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var manager = (exports.manager = new _KnobManager2.default()); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(403), (module.exports = __webpack_require__(10).Object.assign); - }, - function(module, exports, __webpack_require__) { - var $export = __webpack_require__(16); - $export($export.S + $export.F, 'Object', { assign: __webpack_require__(218) }); - }, - function(module, exports) { - function shim(obj) { - var keys = []; - for (var key in obj) keys.push(key); - return keys; - } - (module.exports = 'function' == typeof Object.keys ? Object.keys : shim).shim = shim; - }, - function(module, exports) { - var supportsArgumentsClass = - '[object Arguments]' == - (function() { - return Object.prototype.toString.call(arguments); - })(); - function supported(object) { - return '[object Arguments]' == Object.prototype.toString.call(object); - } - function unsupported(object) { - return ( - (object && - 'object' == typeof object && - 'number' == typeof object.length && - Object.prototype.hasOwnProperty.call(object, 'callee') && - !Object.prototype.propertyIsEnumerable.call(object, 'callee')) || - !1 - ); - } - ((exports = module.exports = supportsArgumentsClass - ? supported - : unsupported).supported = supported), - (exports.unsupported = unsupported); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(407), (module.exports = __webpack_require__(10).Object.getPrototypeOf); - }, - function(module, exports, __webpack_require__) { - var toObject = __webpack_require__(58), - $getPrototypeOf = __webpack_require__(219); - __webpack_require__(114)('getPrototypeOf', function() { - return function getPrototypeOf(it) { - return $getPrototypeOf(toObject(it)); - }; - }); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(63), - __webpack_require__(64), - (module.exports = __webpack_require__(148).f('iterator')); - }, - function(module, exports, __webpack_require__) { - var toInteger = __webpack_require__(139), - defined = __webpack_require__(137); - module.exports = function(TO_STRING) { - return function(that, pos) { - var a, - b, - s = String(defined(that)), - i = toInteger(pos), - l = s.length; - return i < 0 || i >= l - ? TO_STRING ? '' : void 0 - : (a = s.charCodeAt(i)) < 55296 || - a > 56319 || - i + 1 === l || - (b = s.charCodeAt(i + 1)) < 56320 || - b > 57343 - ? TO_STRING ? s.charAt(i) : a - : TO_STRING ? s.slice(i, i + 2) : b - 56320 + ((a - 55296) << 10) + 65536; - }; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var create = __webpack_require__(116), - descriptor = __webpack_require__(75), - setToStringTag = __webpack_require__(76), - IteratorPrototype = {}; - __webpack_require__(42)(IteratorPrototype, __webpack_require__(18)('iterator'), function() { - return this; - }), - (module.exports = function(Constructor, NAME, next) { - (Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) })), - setToStringTag(Constructor, NAME + ' Iterator'); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var addToUnscopables = __webpack_require__(412), - step = __webpack_require__(277), - Iterators = __webpack_require__(59), - toIObject = __webpack_require__(46); - (module.exports = __webpack_require__(184)( - Array, - 'Array', - function(iterated, kind) { - (this._t = toIObject(iterated)), (this._i = 0), (this._k = kind); - }, - function() { - var O = this._t, - kind = this._k, - index = this._i++; - return !O || index >= O.length - ? ((this._t = void 0), step(1)) - : step(0, 'keys' == kind ? index : 'values' == kind ? O[index] : [index, O[index]]); - }, - 'values' - )), - (Iterators.Arguments = Iterators.Array), - addToUnscopables('keys'), - addToUnscopables('values'), - addToUnscopables('entries'); - }, - function(module, exports) { - module.exports = function() {}; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(414), - __webpack_require__(117), - __webpack_require__(417), - __webpack_require__(418), - (module.exports = __webpack_require__(10).Symbol); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var global = __webpack_require__(17), - has = __webpack_require__(41), - DESCRIPTORS = __webpack_require__(29), - $export = __webpack_require__(16), - redefine = __webpack_require__(147), - META = __webpack_require__(77).KEY, - $fails = __webpack_require__(43), - shared = __webpack_require__(141), - setToStringTag = __webpack_require__(76), - uid = __webpack_require__(95), - wks = __webpack_require__(18), - wksExt = __webpack_require__(148), - wksDefine = __webpack_require__(149), - enumKeys = __webpack_require__(415), - isArray = __webpack_require__(221), - anObject = __webpack_require__(24), - isObject = __webpack_require__(20), - toIObject = __webpack_require__(46), - toPrimitive = __webpack_require__(144), - createDesc = __webpack_require__(75), - _create = __webpack_require__(116), - gOPNExt = __webpack_require__(416), - $GOPD = __webpack_require__(150), - $DP = __webpack_require__(26), - $keys = __webpack_require__(72), - gOPD = $GOPD.f, - dP = $DP.f, - gOPN = gOPNExt.f, - $Symbol = global.Symbol, - $JSON = global.JSON, - _stringify = $JSON && $JSON.stringify, - HIDDEN = wks('_hidden'), - TO_PRIMITIVE = wks('toPrimitive'), - isEnum = {}.propertyIsEnumerable, - SymbolRegistry = shared('symbol-registry'), - AllSymbols = shared('symbols'), - OPSymbols = shared('op-symbols'), - ObjectProto = Object.prototype, - USE_NATIVE = 'function' == typeof $Symbol, - QObject = global.QObject, - setter = !QObject || !QObject.prototype || !QObject.prototype.findChild, - setSymbolDesc = - DESCRIPTORS && - $fails(function() { - return ( - 7 != - _create( - dP({}, 'a', { - get: function() { - return dP(this, 'a', { value: 7 }).a; - } - }) - ).a - ); - }) - ? function(it, key, D) { - var protoDesc = gOPD(ObjectProto, key); - protoDesc && delete ObjectProto[key], - dP(it, key, D), - protoDesc && it !== ObjectProto && dP(ObjectProto, key, protoDesc); - } - : dP, - wrap = function(tag) { - var sym = (AllSymbols[tag] = _create($Symbol.prototype)); - return (sym._k = tag), sym; - }, - isSymbol = - USE_NATIVE && 'symbol' == typeof $Symbol.iterator - ? function(it) { - return 'symbol' == typeof it; - } - : function(it) { - return it instanceof $Symbol; - }, - $defineProperty = function defineProperty(it, key, D) { - return ( - it === ObjectProto && $defineProperty(OPSymbols, key, D), - anObject(it), - (key = toPrimitive(key, !0)), - anObject(D), - has(AllSymbols, key) - ? (D.enumerable - ? (has(it, HIDDEN) && it[HIDDEN][key] && (it[HIDDEN][key] = !1), - (D = _create(D, { enumerable: createDesc(0, !1) }))) - : (has(it, HIDDEN) || dP(it, HIDDEN, createDesc(1, {})), (it[HIDDEN][key] = !0)), - setSymbolDesc(it, key, D)) - : dP(it, key, D) - ); - }, - $defineProperties = function defineProperties(it, P) { - anObject(it); - for (var key, keys = enumKeys((P = toIObject(P))), i = 0, l = keys.length; l > i; ) - $defineProperty(it, (key = keys[i++]), P[key]); - return it; - }, - $propertyIsEnumerable = function propertyIsEnumerable(key) { - var E = isEnum.call(this, (key = toPrimitive(key, !0))); - return ( - !(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) && - (!( - E || - !has(this, key) || - !has(AllSymbols, key) || - (has(this, HIDDEN) && this[HIDDEN][key]) - ) || - E) - ); - }, - $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { - if ( - ((it = toIObject(it)), - (key = toPrimitive(key, !0)), - it !== ObjectProto || !has(AllSymbols, key) || has(OPSymbols, key)) - ) { - var D = gOPD(it, key); - return ( - !D || - !has(AllSymbols, key) || - (has(it, HIDDEN) && it[HIDDEN][key]) || - (D.enumerable = !0), - D - ); - } - }, - $getOwnPropertyNames = function getOwnPropertyNames(it) { - for (var key, names = gOPN(toIObject(it)), result = [], i = 0; names.length > i; ) - has(AllSymbols, (key = names[i++])) || key == HIDDEN || key == META || result.push(key); - return result; - }, - $getOwnPropertySymbols = function getOwnPropertySymbols(it) { - for ( - var key, - IS_OP = it === ObjectProto, - names = gOPN(IS_OP ? OPSymbols : toIObject(it)), - result = [], - i = 0; - names.length > i; - - ) - !has(AllSymbols, (key = names[i++])) || - (IS_OP && !has(ObjectProto, key)) || - result.push(AllSymbols[key]); - return result; - }; - USE_NATIVE || - (redefine( - ($Symbol = function Symbol() { - if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); - var tag = uid(arguments.length > 0 ? arguments[0] : void 0), - $set = function(value) { - this === ObjectProto && $set.call(OPSymbols, value), - has(this, HIDDEN) && has(this[HIDDEN], tag) && (this[HIDDEN][tag] = !1), - setSymbolDesc(this, tag, createDesc(1, value)); - }; - return ( - DESCRIPTORS && - setter && - setSymbolDesc(ObjectProto, tag, { configurable: !0, set: $set }), - wrap(tag) - ); - }).prototype, - 'toString', - function toString() { - return this._k; - } - ), - ($GOPD.f = $getOwnPropertyDescriptor), - ($DP.f = $defineProperty), - (__webpack_require__(222).f = gOPNExt.f = $getOwnPropertyNames), - (__webpack_require__(96).f = $propertyIsEnumerable), - (__webpack_require__(145).f = $getOwnPropertySymbols), - DESCRIPTORS && - !__webpack_require__(97) && - redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, !0), - (wksExt.f = function(name) { - return wrap(wks(name)); - })), - $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); - for ( - var es6Symbols = 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'.split( - ',' - ), - j = 0; - es6Symbols.length > j; - - ) - wks(es6Symbols[j++]); - for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k; ) - wksDefine(wellKnownSymbols[k++]); - $export($export.S + $export.F * !USE_NATIVE, 'Symbol', { - for: function(key) { - return has(SymbolRegistry, (key += '')) - ? SymbolRegistry[key] - : (SymbolRegistry[key] = $Symbol(key)); - }, - keyFor: function keyFor(sym) { - if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); - for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; - }, - useSetter: function() { - setter = !0; - }, - useSimple: function() { - setter = !1; - } - }), - $export($export.S + $export.F * !USE_NATIVE, 'Object', { - create: function create(it, P) { - return void 0 === P ? _create(it) : $defineProperties(_create(it), P); - }, - defineProperty: $defineProperty, - defineProperties: $defineProperties, - getOwnPropertyDescriptor: $getOwnPropertyDescriptor, - getOwnPropertyNames: $getOwnPropertyNames, - getOwnPropertySymbols: $getOwnPropertySymbols - }), - $JSON && - $export( - $export.S + - $export.F * - (!USE_NATIVE || - $fails(function() { - var S = $Symbol(); - return ( - '[null]' != _stringify([S]) || - '{}' != _stringify({ a: S }) || - '{}' != _stringify(Object(S)) - ); - })), - 'JSON', - { - stringify: function stringify(it) { - for (var replacer, $replacer, args = [it], i = 1; arguments.length > i; ) - args.push(arguments[i++]); - if ( - (($replacer = replacer = args[1]), - (isObject(replacer) || void 0 !== it) && !isSymbol(it)) - ) - return ( - isArray(replacer) || - (replacer = function(key, value) { - if ( - ('function' == typeof $replacer && - (value = $replacer.call(this, key, value)), - !isSymbol(value)) - ) - return value; - }), - (args[1] = replacer), - _stringify.apply($JSON, args) - ); - } - } - ), - $Symbol.prototype[TO_PRIMITIVE] || - __webpack_require__(42)($Symbol.prototype, TO_PRIMITIVE, $Symbol.prototype.valueOf), - setToStringTag($Symbol, 'Symbol'), - setToStringTag(Math, 'Math', !0), - setToStringTag(global.JSON, 'JSON', !0); - }, - function(module, exports, __webpack_require__) { - var getKeys = __webpack_require__(72), - gOPS = __webpack_require__(145), - pIE = __webpack_require__(96); - module.exports = function(it) { - var result = getKeys(it), - getSymbols = gOPS.f; - if (getSymbols) - for (var key, symbols = getSymbols(it), isEnum = pIE.f, i = 0; symbols.length > i; ) - isEnum.call(it, (key = symbols[i++])) && result.push(key); - return result; - }; - }, - function(module, exports, __webpack_require__) { - var toIObject = __webpack_require__(46), - gOPN = __webpack_require__(222).f, - toString = {}.toString, - windowNames = - 'object' == typeof window && window && Object.getOwnPropertyNames - ? Object.getOwnPropertyNames(window) - : []; - module.exports.f = function getOwnPropertyNames(it) { - return windowNames && '[object Window]' == toString.call(it) - ? (function(it) { - try { - return gOPN(it); - } catch (e) { - return windowNames.slice(); - } - })(it) - : gOPN(toIObject(it)); - }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(149)('asyncIterator'); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(149)('observable'); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(420), (module.exports = __webpack_require__(10).Object.setPrototypeOf); - }, - function(module, exports, __webpack_require__) { - var $export = __webpack_require__(16); - $export($export.S, 'Object', { setPrototypeOf: __webpack_require__(421).set }); - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(20), - anObject = __webpack_require__(24), - check = function(O, proto) { - if ((anObject(O), !isObject(proto) && null !== proto)) - throw TypeError(proto + ": can't set as prototype!"); - }; - module.exports = { - set: - Object.setPrototypeOf || - ('__proto__' in {} - ? (function(test, buggy, set) { - try { - (set = __webpack_require__(35)( - Function.call, - __webpack_require__(150).f(Object.prototype, '__proto__').set, - 2 - ))(test, []), - (buggy = !(test instanceof Array)); - } catch (e) { - buggy = !0; - } - return function setPrototypeOf(O, proto) { - return check(O, proto), buggy ? (O.__proto__ = proto) : set(O, proto), O; - }; - })({}, !1) - : void 0), - check: check - }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(423); - var $Object = __webpack_require__(10).Object; - module.exports = function create(P, D) { - return $Object.create(P, D); - }; - }, - function(module, exports, __webpack_require__) { - var $export = __webpack_require__(16); - $export($export.S, 'Object', { create: __webpack_require__(116) }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var emptyFunction = __webpack_require__(22), - invariant = __webpack_require__(3), - ReactPropTypesSecret = __webpack_require__(215); - module.exports = function() { - function shim(props, propName, componentName, location, propFullName, secret) { - secret !== ReactPropTypesSecret && - invariant( - !1, - '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' - ); - } - function getShim() { - return shim; - } - shim.isRequired = shim; - var ReactPropTypes = { - array: shim, - bool: shim, - func: shim, - number: shim, - object: shim, - string: shim, - symbol: shim, - any: shim, - arrayOf: getShim, - element: shim, - instanceOf: getShim, - node: shim, - objectOf: getShim, - oneOf: getShim, - oneOfType: getShim, - shape: getShim, - exact: getShim - }; - return ( - (ReactPropTypes.checkPropTypes = emptyFunction), - (ReactPropTypes.PropTypes = ReactPropTypes), - ReactPropTypes - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var ADDON_ID = (exports.ADDON_ID = 'storybooks/storybook-addon-options'); - exports.EVENT_ID = ADDON_ID + '/options-event'; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.PostmsgTransport = exports.KEY = void 0); - var _promise2 = _interopRequireDefault(__webpack_require__(223)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)); - exports.default = function createChannel(_ref) { - var page = _ref.page, - transport = new PostmsgTransport({ page: page }); - return new _channels2.default({ transport: transport }); - }; - var _global = __webpack_require__(50), - _channels2 = _interopRequireDefault(__webpack_require__(433)), - _jsonStringifySafe2 = _interopRequireDefault(__webpack_require__(437)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var KEY = (exports.KEY = 'storybook-channel'), - PostmsgTransport = (exports.PostmsgTransport = (function() { - function PostmsgTransport(config) { - var _this = this; - if ( - ((0, _classCallCheck3.default)(this, PostmsgTransport), - (this._config = config), - (this._buffer = []), - (this._handler = null), - _global.window.addEventListener('message', this._handleEvent.bind(this), !1), - _global.document.addEventListener('DOMContentLoaded', function() { - return _this._flush(); - }), - 'manager' !== config.page && 'preview' !== config.page) - ) - throw new Error('postmsg-channel: "config.page" cannot be "' + config.page + '"'); - } - return ( - (0, _createClass3.default)(PostmsgTransport, [ - { - key: 'setHandler', - value: function setHandler(handler) { - this._handler = handler; - } - }, - { - key: 'send', - value: function send(event) { - var _this2 = this, - iframeWindow = this._getWindow(); - if (!iframeWindow) - return new _promise2.default(function(resolve, reject) { - _this2._buffer.push({ event: event, resolve: resolve, reject: reject }); - }); - var data = (0, _jsonStringifySafe2.default)({ key: KEY, event: event }); - return iframeWindow.postMessage(data, '*'), _promise2.default.resolve(null); - } - }, - { - key: '_flush', - value: function _flush() { - var _this3 = this, - buffer = this._buffer; - (this._buffer = []), - buffer.forEach(function(item) { - _this3 - .send(item.event) - .then(item.resolve) - .catch(item.reject); - }); - } - }, - { - key: '_getWindow', - value: function _getWindow() { - if ('manager' === this._config.page) { - var iframe = _global.document.getElementById('storybook-preview-iframe'); - return iframe ? iframe.contentWindow : null; - } - return _global.window.parent; - } - }, - { - key: '_handleEvent', - value: function _handleEvent(rawEvent) { - try { - var data = rawEvent.data, - _JSON$parse = JSON.parse(data), - key = _JSON$parse.key, - event = _JSON$parse.event; - key === KEY && this._handler(event); - } catch (error) {} - } - } - ]), - PostmsgTransport - ); - })()); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(117), - __webpack_require__(63), - __webpack_require__(64), - __webpack_require__(428), - __webpack_require__(431), - __webpack_require__(432), - (module.exports = __webpack_require__(10).Promise); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var Internal, - newGenericPromiseCapability, - OwnPromiseCapability, - Wrapper, - LIBRARY = __webpack_require__(97), - global = __webpack_require__(17), - ctx = __webpack_require__(35), - classof = __webpack_require__(119), - $export = __webpack_require__(16), - isObject = __webpack_require__(20), - aFunction = __webpack_require__(74), - anInstance = __webpack_require__(120), - forOf = __webpack_require__(78), - speciesConstructor = __webpack_require__(226), - task = __webpack_require__(227).set, - microtask = __webpack_require__(430)(), - newPromiseCapabilityModule = __webpack_require__(152), - perform = __webpack_require__(228), - promiseResolve = __webpack_require__(229), - TypeError = global.TypeError, - process = global.process, - $Promise = global.Promise, - isNode = 'process' == classof(process), - empty = function() {}, - newPromiseCapability = (newGenericPromiseCapability = newPromiseCapabilityModule.f), - USE_NATIVE = !!(function() { - try { - var promise = $Promise.resolve(1), - FakePromise = ((promise.constructor = {})[ - __webpack_require__(18)('species') - ] = function(exec) { - exec(empty, empty); - }); - return ( - (isNode || 'function' == typeof PromiseRejectionEvent) && - promise.then(empty) instanceof FakePromise - ); - } catch (e) {} - })(), - isThenable = function(it) { - var then; - return !(!isObject(it) || 'function' != typeof (then = it.then)) && then; - }, - notify = function(promise, isReject) { - if (!promise._n) { - promise._n = !0; - var chain = promise._c; - microtask(function() { - for ( - var value = promise._v, - ok = 1 == promise._s, - i = 0, - run = function(reaction) { - var result, - then, - handler = ok ? reaction.ok : reaction.fail, - resolve = reaction.resolve, - reject = reaction.reject, - domain = reaction.domain; - try { - handler - ? (ok || (2 == promise._h && onHandleUnhandled(promise), (promise._h = 1)), - !0 === handler - ? (result = value) - : (domain && domain.enter(), - (result = handler(value)), - domain && domain.exit()), - result === reaction.promise - ? reject(TypeError('Promise-chain cycle')) - : (then = isThenable(result)) - ? then.call(result, resolve, reject) - : resolve(result)) - : reject(value); - } catch (e) { - reject(e); - } - }; - chain.length > i; - - ) - run(chain[i++]); - (promise._c = []), (promise._n = !1), isReject && !promise._h && onUnhandled(promise); - }); - } - }, - onUnhandled = function(promise) { - task.call(global, function() { - var result, - handler, - console, - value = promise._v, - unhandled = isUnhandled(promise); - if ( - (unhandled && - ((result = perform(function() { - isNode - ? process.emit('unhandledRejection', value, promise) - : (handler = global.onunhandledrejection) - ? handler({ promise: promise, reason: value }) - : (console = global.console) && - console.error && - console.error('Unhandled promise rejection', value); - })), - (promise._h = isNode || isUnhandled(promise) ? 2 : 1)), - (promise._a = void 0), - unhandled && result.e) - ) - throw result.v; - }); - }, - isUnhandled = function(promise) { - return 1 !== promise._h && 0 === (promise._a || promise._c).length; - }, - onHandleUnhandled = function(promise) { - task.call(global, function() { - var handler; - isNode - ? process.emit('rejectionHandled', promise) - : (handler = global.onrejectionhandled) && - handler({ promise: promise, reason: promise._v }); - }); - }, - $reject = function(value) { - var promise = this; - promise._d || - ((promise._d = !0), - ((promise = promise._w || promise)._v = value), - (promise._s = 2), - promise._a || (promise._a = promise._c.slice()), - notify(promise, !0)); - }, - $resolve = function(value) { - var then, - promise = this; - if (!promise._d) { - (promise._d = !0), (promise = promise._w || promise); - try { - if (promise === value) throw TypeError("Promise can't be resolved itself"); - (then = isThenable(value)) - ? microtask(function() { - var wrapper = { _w: promise, _d: !1 }; - try { - then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1)); - } catch (e) { - $reject.call(wrapper, e); - } - }) - : ((promise._v = value), (promise._s = 1), notify(promise, !1)); - } catch (e) { - $reject.call({ _w: promise, _d: !1 }, e); - } - } - }; - USE_NATIVE || - (($Promise = function Promise(executor) { - anInstance(this, $Promise, 'Promise', '_h'), aFunction(executor), Internal.call(this); - try { - executor(ctx($resolve, this, 1), ctx($reject, this, 1)); - } catch (err) { - $reject.call(this, err); - } - }), - ((Internal = function Promise(executor) { - (this._c = []), - (this._a = void 0), - (this._s = 0), - (this._d = !1), - (this._v = void 0), - (this._h = 0), - (this._n = !1); - }).prototype = __webpack_require__(121)($Promise.prototype, { - then: function then(onFulfilled, onRejected) { - var reaction = newPromiseCapability(speciesConstructor(this, $Promise)); - return ( - (reaction.ok = 'function' != typeof onFulfilled || onFulfilled), - (reaction.fail = 'function' == typeof onRejected && onRejected), - (reaction.domain = isNode ? process.domain : void 0), - this._c.push(reaction), - this._a && this._a.push(reaction), - this._s && notify(this, !1), - reaction.promise - ); - }, - catch: function(onRejected) { - return this.then(void 0, onRejected); - } - })), - (OwnPromiseCapability = function() { - var promise = new Internal(); - (this.promise = promise), - (this.resolve = ctx($resolve, promise, 1)), - (this.reject = ctx($reject, promise, 1)); - }), - (newPromiseCapabilityModule.f = newPromiseCapability = function(C) { - return C === $Promise || C === Wrapper - ? new OwnPromiseCapability(C) - : newGenericPromiseCapability(C); - })), - $export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise }), - __webpack_require__(76)($Promise, 'Promise'), - __webpack_require__(280)('Promise'), - (Wrapper = __webpack_require__(10).Promise), - $export($export.S + $export.F * !USE_NATIVE, 'Promise', { - reject: function reject(r) { - var capability = newPromiseCapability(this); - return (0, capability.reject)(r), capability.promise; - } - }), - $export($export.S + $export.F * (LIBRARY || !USE_NATIVE), 'Promise', { - resolve: function resolve(x) { - return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x); - } - }), - $export( - $export.S + - $export.F * - !( - USE_NATIVE && - __webpack_require__(230)(function(iter) { - $Promise.all(iter).catch(empty); - }) - ), - 'Promise', - { - all: function all(iterable) { - var C = this, - capability = newPromiseCapability(C), - resolve = capability.resolve, - reject = capability.reject, - result = perform(function() { - var values = [], - index = 0, - remaining = 1; - forOf(iterable, !1, function(promise) { - var $index = index++, - alreadyCalled = !1; - values.push(void 0), - remaining++, - C.resolve(promise).then(function(value) { - alreadyCalled || - ((alreadyCalled = !0), - (values[$index] = value), - --remaining || resolve(values)); - }, reject); - }), - --remaining || resolve(values); - }); - return result.e && reject(result.v), capability.promise; - }, - race: function race(iterable) { - var C = this, - capability = newPromiseCapability(C), - reject = capability.reject, - result = perform(function() { - forOf(iterable, !1, function(promise) { - C.resolve(promise).then(capability.resolve, reject); - }); - }); - return result.e && reject(result.v), capability.promise; - } - } - ); - }, - function(module, exports) { - module.exports = function(fn, args, that) { - var un = void 0 === that; - switch (args.length) { - case 0: - return un ? fn() : fn.call(that); - case 1: - return un ? fn(args[0]) : fn.call(that, args[0]); - case 2: - return un ? fn(args[0], args[1]) : fn.call(that, args[0], args[1]); - case 3: - return un ? fn(args[0], args[1], args[2]) : fn.call(that, args[0], args[1], args[2]); - case 4: - return un - ? fn(args[0], args[1], args[2], args[3]) - : fn.call(that, args[0], args[1], args[2], args[3]); - } - return fn.apply(that, args); - }; - }, - function(module, exports, __webpack_require__) { - var global = __webpack_require__(17), - macrotask = __webpack_require__(227).set, - Observer = global.MutationObserver || global.WebKitMutationObserver, - process = global.process, - Promise = global.Promise, - isNode = 'process' == __webpack_require__(73)(process); - module.exports = function() { - var head, - last, - notify, - flush = function() { - var parent, fn; - for (isNode && (parent = process.domain) && parent.exit(); head; ) { - (fn = head.fn), (head = head.next); - try { - fn(); - } catch (e) { - throw (head ? notify() : (last = void 0), e); - } - } - (last = void 0), parent && parent.enter(); - }; - if (isNode) - notify = function() { - process.nextTick(flush); - }; - else if (!Observer || (global.navigator && global.navigator.standalone)) - if (Promise && Promise.resolve) { - var promise = Promise.resolve(); - notify = function() { - promise.then(flush); - }; - } else - notify = function() { - macrotask.call(global, flush); - }; - else { - var toggle = !0, - node = document.createTextNode(''); - new Observer(flush).observe(node, { characterData: !0 }), - (notify = function() { - node.data = toggle = !toggle; - }); - } - return function(fn) { - var task = { fn: fn, next: void 0 }; - last && (last.next = task), head || ((head = task), notify()), (last = task); - }; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var $export = __webpack_require__(16), - core = __webpack_require__(10), - global = __webpack_require__(17), - speciesConstructor = __webpack_require__(226), - promiseResolve = __webpack_require__(229); - $export($export.P + $export.R, 'Promise', { - finally: function(onFinally) { - var C = speciesConstructor(this, core.Promise || global.Promise), - isFunction = 'function' == typeof onFinally; - return this.then( - isFunction - ? function(x) { - return promiseResolve(C, onFinally()).then(function() { - return x; - }); - } - : onFinally, - isFunction - ? function(e) { - return promiseResolve(C, onFinally()).then(function() { - throw e; - }); - } - : onFinally - ); - } - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var $export = __webpack_require__(16), - newPromiseCapability = __webpack_require__(152), - perform = __webpack_require__(228); - $export($export.S, 'Promise', { - try: function(callbackfn) { - var promiseCapability = newPromiseCapability.f(this), - result = perform(callbackfn); - return ( - (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v), - promiseCapability.promise - ); - } - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _toConsumableArray3 = _interopRequireDefault(__webpack_require__(45)), - _keys2 = _interopRequireDefault(__webpack_require__(34)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Channel = (function() { - function Channel(_ref) { - var transport = _ref.transport; - (0, _classCallCheck3.default)(this, Channel), - (this._sender = this._randomId()), - (this._transport = transport), - this._transport.setHandler(this._handleEvent.bind(this)), - (this._listeners = {}); - } - return ( - (0, _createClass3.default)(Channel, [ - { - key: 'addListener', - value: function addListener(type, listener) { - this.on(type, listener); - } - }, - { - key: 'addPeerListener', - value: function addPeerListener(type, listener) { - var _this = this, - peerListener = listener; - (peerListener.isPeer = function(from) { - return from === _this._sender; - }), - this.on(type, peerListener); - } - }, - { - key: 'emit', - value: function emit(type) { - for ( - var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; - _key < _len; - _key++ - ) - args[_key - 1] = arguments[_key]; - var event = { type: type, args: args, from: this._sender }; - this._transport.send(event); - } - }, - { - key: 'eventNames', - value: function eventNames() { - return (0, _keys2.default)(this._listeners); - } - }, - { - key: 'listenerCount', - value: function listenerCount(type) { - var listeners = this._listeners[type]; - return listeners ? listeners.length : 0; - } - }, - { - key: 'listeners', - value: function listeners(type) { - return this._listeners[type]; - } - }, - { - key: 'on', - value: function on(type, listener) { - (this._listeners[type] = this._listeners[type] || []), - this._listeners[type].push(listener); - } - }, - { - key: 'once', - value: function once(type, listener) { - var onceListener = this._onceListener(type, listener); - this.on(type, onceListener); - } - }, - { - key: 'prependListener', - value: function prependListener(type, listener) { - (this._listeners[type] = this._listeners[type] || []), - this._listeners[type].unshift(listener); - } - }, - { - key: 'prependOnceListener', - value: function prependOnceListener(type, listener) { - var onceListener = this._onceListener(type, listener); - this.prependListener(type, onceListener); - } - }, - { - key: 'removeAllListeners', - value: function removeAllListeners(type) { - type ? this._listeners[type] && delete this._listeners[type] : (this._listeners = {}); - } - }, - { - key: 'removeListener', - value: function removeListener(type, listener) { - var listeners = this._listeners[type]; - listeners && - (this._listeners[type] = listeners.filter(function(l) { - return l !== listener; - })); - } - }, - { - key: '_randomId', - value: function _randomId() { - return Math.random() - .toString(16) - .slice(2); - } - }, - { - key: '_handleEvent', - value: function _handleEvent(event) { - var listeners = this._listeners[event.type]; - listeners && - listeners.forEach(function(fn) { - return ( - !(fn.isPeer && fn.isPeer(event.from)) && - fn.apply(void 0, (0, _toConsumableArray3.default)(event.args)) - ); - }); - } - }, - { - key: '_onceListener', - value: function _onceListener(type, listener) { - var _this2 = this; - return function onceListener() { - return _this2.removeListener(type, onceListener), listener.apply(void 0, arguments); - }; - } - } - ]), - Channel - ); - })(); - exports.default = Channel; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(63), - __webpack_require__(435), - (module.exports = __webpack_require__(10).Array.from); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ctx = __webpack_require__(35), - $export = __webpack_require__(16), - toObject = __webpack_require__(58), - call = __webpack_require__(224), - isArrayIter = __webpack_require__(225), - toLength = __webpack_require__(94), - createProperty = __webpack_require__(436), - getIterFn = __webpack_require__(151); - $export( - $export.S + - $export.F * - !__webpack_require__(230)(function(iter) { - Array.from(iter); - }), - 'Array', - { - from: function from(arrayLike) { - var length, - result, - step, - iterator, - O = toObject(arrayLike), - C = 'function' == typeof this ? this : Array, - aLen = arguments.length, - mapfn = aLen > 1 ? arguments[1] : void 0, - mapping = void 0 !== mapfn, - index = 0, - iterFn = getIterFn(O); - if ( - (mapping && (mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : void 0, 2)), - void 0 == iterFn || (C == Array && isArrayIter(iterFn))) - ) - for (result = new C((length = toLength(O.length))); length > index; index++) - createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); - else - for ( - iterator = iterFn.call(O), result = new C(); - !(step = iterator.next()).done; - index++ - ) - createProperty( - result, - index, - mapping ? call(iterator, mapfn, [step.value, index], !0) : step.value - ); - return (result.length = index), result; - } - } - ); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var $defineProperty = __webpack_require__(26), - createDesc = __webpack_require__(75); - module.exports = function(object, index, value) { - index in object - ? $defineProperty.f(object, index, createDesc(0, value)) - : (object[index] = value); - }; - }, - function(module, exports) { - function serializer(replacer, cycleReplacer) { - var stack = [], - keys = []; - return ( - null == cycleReplacer && - (cycleReplacer = function(key, value) { - return stack[0] === value - ? '[Circular ~]' - : '[Circular ~.' + keys.slice(0, stack.indexOf(value)).join('.') + ']'; - }), - function(key, value) { - if (stack.length > 0) { - var thisPos = stack.indexOf(this); - ~thisPos ? stack.splice(thisPos + 1) : stack.push(this), - ~thisPos ? keys.splice(thisPos, 1 / 0, key) : keys.push(key), - ~stack.indexOf(value) && (value = cycleReplacer.call(this, key, value)); - } else stack.push(value); - return null == replacer ? value : replacer.call(this, key, value); - } - ); - } - (module.exports = function stringify(obj, replacer, spaces, cycleReplacer) { - return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces); - }).getSerialize = serializer; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var utils = __webpack_require__(232), - formats = __webpack_require__(233), - arrayPrefixGenerators = { - brackets: function brackets(prefix) { - return prefix + '[]'; - }, - indices: function indices(prefix, key) { - return prefix + '[' + key + ']'; - }, - repeat: function repeat(prefix) { - return prefix; - } - }, - toISO = Date.prototype.toISOString, - defaults = { - delimiter: '&', - encode: !0, - encoder: utils.encode, - encodeValuesOnly: !1, - serializeDate: function serializeDate(date) { - return toISO.call(date); - }, - skipNulls: !1, - strictNullHandling: !1 - }, - stringify = function stringify( - object, - prefix, - generateArrayPrefix, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - formatter, - encodeValuesOnly - ) { - var obj = object; - if ('function' == typeof filter) obj = filter(prefix, obj); - else if (obj instanceof Date) obj = serializeDate(obj); - else if (null === obj) { - if (strictNullHandling) - return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder) : prefix; - obj = ''; - } - if ( - 'string' == typeof obj || - 'number' == typeof obj || - 'boolean' == typeof obj || - utils.isBuffer(obj) - ) - return encoder - ? [ - formatter(encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder)) + - '=' + - formatter(encoder(obj, defaults.encoder)) - ] - : [formatter(prefix) + '=' + formatter(String(obj))]; - var objKeys, - values = []; - if (void 0 === obj) return values; - if (Array.isArray(filter)) objKeys = filter; - else { - var keys = Object.keys(obj); - objKeys = sort ? keys.sort(sort) : keys; - } - for (var i = 0; i < objKeys.length; ++i) { - var key = objKeys[i]; - (skipNulls && null === obj[key]) || - (values = Array.isArray(obj) - ? values.concat( - stringify( - obj[key], - generateArrayPrefix(prefix, key), - generateArrayPrefix, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - formatter, - encodeValuesOnly - ) - ) - : values.concat( - stringify( - obj[key], - prefix + (allowDots ? '.' + key : '[' + key + ']'), - generateArrayPrefix, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - formatter, - encodeValuesOnly - ) - )); - } - return values; - }; - module.exports = function(object, opts) { - var obj = object, - options = opts ? utils.assign({}, opts) : {}; - if ( - null !== options.encoder && - void 0 !== options.encoder && - 'function' != typeof options.encoder - ) - throw new TypeError('Encoder has to be a function.'); - var delimiter = void 0 === options.delimiter ? defaults.delimiter : options.delimiter, - strictNullHandling = - 'boolean' == typeof options.strictNullHandling - ? options.strictNullHandling - : defaults.strictNullHandling, - skipNulls = 'boolean' == typeof options.skipNulls ? options.skipNulls : defaults.skipNulls, - encode = 'boolean' == typeof options.encode ? options.encode : defaults.encode, - encoder = 'function' == typeof options.encoder ? options.encoder : defaults.encoder, - sort = 'function' == typeof options.sort ? options.sort : null, - allowDots = void 0 !== options.allowDots && options.allowDots, - serializeDate = - 'function' == typeof options.serializeDate - ? options.serializeDate - : defaults.serializeDate, - encodeValuesOnly = - 'boolean' == typeof options.encodeValuesOnly - ? options.encodeValuesOnly - : defaults.encodeValuesOnly; - if (void 0 === options.format) options.format = formats.default; - else if (!Object.prototype.hasOwnProperty.call(formats.formatters, options.format)) - throw new TypeError('Unknown format option provided.'); - var objKeys, - filter, - formatter = formats.formatters[options.format]; - 'function' == typeof options.filter - ? (obj = (filter = options.filter)('', obj)) - : Array.isArray(options.filter) && (objKeys = filter = options.filter); - var arrayFormat, - keys = []; - if ('object' != typeof obj || null === obj) return ''; - arrayFormat = - options.arrayFormat in arrayPrefixGenerators - ? options.arrayFormat - : 'indices' in options ? (options.indices ? 'indices' : 'repeat') : 'indices'; - var generateArrayPrefix = arrayPrefixGenerators[arrayFormat]; - objKeys || (objKeys = Object.keys(obj)), sort && objKeys.sort(sort); - for (var i = 0; i < objKeys.length; ++i) { - var key = objKeys[i]; - (skipNulls && null === obj[key]) || - (keys = keys.concat( - stringify( - obj[key], - key, - generateArrayPrefix, - strictNullHandling, - skipNulls, - encode ? encoder : null, - filter, - sort, - allowDots, - serializeDate, - formatter, - encodeValuesOnly - ) - )); - } - var joined = keys.join(delimiter), - prefix = !0 === options.addQueryPrefix ? '?' : ''; - return joined.length > 0 ? prefix + joined : ''; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var utils = __webpack_require__(232), - has = Object.prototype.hasOwnProperty, - defaults = { - allowDots: !1, - allowPrototypes: !1, - arrayLimit: 20, - decoder: utils.decode, - delimiter: '&', - depth: 5, - parameterLimit: 1e3, - plainObjects: !1, - strictNullHandling: !1 - }, - parseKeys = function parseQueryStringKeys(givenKey, val, options) { - if (givenKey) { - var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey, - child = /(\[[^[\]]*])/g, - segment = /(\[[^[\]]*])/.exec(key), - parent = segment ? key.slice(0, segment.index) : key, - keys = []; - if (parent) { - if ( - !options.plainObjects && - has.call(Object.prototype, parent) && - !options.allowPrototypes - ) - return; - keys.push(parent); - } - for (var i = 0; null !== (segment = child.exec(key)) && i < options.depth; ) { - if ( - ((i += 1), - !options.plainObjects && - has.call(Object.prototype, segment[1].slice(1, -1)) && - !options.allowPrototypes) - ) - return; - keys.push(segment[1]); - } - return ( - segment && keys.push('[' + key.slice(segment.index) + ']'), - (function(chain, val, options) { - for (var leaf = val, i = chain.length - 1; i >= 0; --i) { - var obj, - root = chain[i]; - if ('[]' === root) obj = (obj = []).concat(leaf); - else { - obj = options.plainObjects ? Object.create(null) : {}; - var cleanRoot = - '[' === root.charAt(0) && ']' === root.charAt(root.length - 1) - ? root.slice(1, -1) - : root, - index = parseInt(cleanRoot, 10); - !isNaN(index) && - root !== cleanRoot && - String(index) === cleanRoot && - index >= 0 && - options.parseArrays && - index <= options.arrayLimit - ? ((obj = [])[index] = leaf) - : (obj[cleanRoot] = leaf); - } - leaf = obj; - } - return leaf; - })(keys, val, options) - ); - } - }; - module.exports = function(str, opts) { - var options = opts ? utils.assign({}, opts) : {}; - if ( - null !== options.decoder && - void 0 !== options.decoder && - 'function' != typeof options.decoder - ) - throw new TypeError('Decoder has to be a function.'); - if ( - ((options.ignoreQueryPrefix = !0 === options.ignoreQueryPrefix), - (options.delimiter = - 'string' == typeof options.delimiter || utils.isRegExp(options.delimiter) - ? options.delimiter - : defaults.delimiter), - (options.depth = 'number' == typeof options.depth ? options.depth : defaults.depth), - (options.arrayLimit = - 'number' == typeof options.arrayLimit ? options.arrayLimit : defaults.arrayLimit), - (options.parseArrays = !1 !== options.parseArrays), - (options.decoder = - 'function' == typeof options.decoder ? options.decoder : defaults.decoder), - (options.allowDots = - 'boolean' == typeof options.allowDots ? options.allowDots : defaults.allowDots), - (options.plainObjects = - 'boolean' == typeof options.plainObjects ? options.plainObjects : defaults.plainObjects), - (options.allowPrototypes = - 'boolean' == typeof options.allowPrototypes - ? options.allowPrototypes - : defaults.allowPrototypes), - (options.parameterLimit = - 'number' == typeof options.parameterLimit - ? options.parameterLimit - : defaults.parameterLimit), - (options.strictNullHandling = - 'boolean' == typeof options.strictNullHandling - ? options.strictNullHandling - : defaults.strictNullHandling), - '' === str || null === str || void 0 === str) - ) - return options.plainObjects ? Object.create(null) : {}; - for ( - var tempObj = - 'string' == typeof str - ? (function parseQueryStringValues(str, options) { - for ( - var obj = {}, - cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str, - limit = options.parameterLimit === 1 / 0 ? void 0 : options.parameterLimit, - parts = cleanStr.split(options.delimiter, limit), - i = 0; - i < parts.length; - ++i - ) { - var key, - val, - part = parts[i], - bracketEqualsPos = part.indexOf(']='), - pos = -1 === bracketEqualsPos ? part.indexOf('=') : bracketEqualsPos + 1; - -1 === pos - ? ((key = options.decoder(part, defaults.decoder)), - (val = options.strictNullHandling ? null : '')) - : ((key = options.decoder(part.slice(0, pos), defaults.decoder)), - (val = options.decoder(part.slice(pos + 1), defaults.decoder))), - has.call(obj, key) - ? (obj[key] = [].concat(obj[key]).concat(val)) - : (obj[key] = val); - } - return obj; - })(str, options) - : str, - obj = options.plainObjects ? Object.create(null) : {}, - keys = Object.keys(tempObj), - i = 0; - i < keys.length; - ++i - ) { - var key = keys[i], - newObj = parseKeys(key, tempObj[key], options); - obj = utils.merge(obj, newObj, options); - } - return utils.compact(obj); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactDOMComponentTree = __webpack_require__(13), - ReactDefaultInjection = __webpack_require__(441), - ReactMount = __webpack_require__(257), - ReactReconciler = __webpack_require__(61), - ReactUpdates = __webpack_require__(30), - ReactVersion = __webpack_require__(510), - findDOMNode = __webpack_require__(511), - getHostComponentFromComposite = __webpack_require__(258), - renderSubtreeIntoContainer = __webpack_require__(512); - __webpack_require__(6); - ReactDefaultInjection.inject(); - var ReactDOM = { - findDOMNode: findDOMNode, - render: ReactMount.render, - unmountComponentAtNode: ReactMount.unmountComponentAtNode, - version: ReactVersion, - unstable_batchedUpdates: ReactUpdates.batchedUpdates, - unstable_renderSubtreeIntoContainer: renderSubtreeIntoContainer - }; - 'undefined' != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && - 'function' == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject && - __REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ - ComponentTree: { - getClosestInstanceFromNode: ReactDOMComponentTree.getClosestInstanceFromNode, - getNodeFromInstance: function(inst) { - return ( - inst._renderedComponent && (inst = getHostComponentFromComposite(inst)), - inst ? ReactDOMComponentTree.getNodeFromInstance(inst) : null - ); - } - }, - Mount: ReactMount, - Reconciler: ReactReconciler - }), - (module.exports = ReactDOM); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ARIADOMPropertyConfig = __webpack_require__(442), - BeforeInputEventPlugin = __webpack_require__(443), - ChangeEventPlugin = __webpack_require__(447), - DefaultEventPluginOrder = __webpack_require__(450), - EnterLeaveEventPlugin = __webpack_require__(451), - HTMLDOMPropertyConfig = __webpack_require__(452), - ReactComponentBrowserEnvironment = __webpack_require__(453), - ReactDOMComponent = __webpack_require__(459), - ReactDOMComponentTree = __webpack_require__(13), - ReactDOMEmptyComponent = __webpack_require__(481), - ReactDOMTreeTraversal = __webpack_require__(482), - ReactDOMTextComponent = __webpack_require__(483), - ReactDefaultBatchingStrategy = __webpack_require__(484), - ReactEventListener = __webpack_require__(485), - ReactInjection = __webpack_require__(487), - ReactReconcileTransaction = __webpack_require__(488), - SVGDOMPropertyConfig = __webpack_require__(494), - SelectEventPlugin = __webpack_require__(495), - SimpleEventPlugin = __webpack_require__(496), - alreadyInjected = !1; - module.exports = { - inject: function inject() { - alreadyInjected || - ((alreadyInjected = !0), - ReactInjection.EventEmitter.injectReactEventListener(ReactEventListener), - ReactInjection.EventPluginHub.injectEventPluginOrder(DefaultEventPluginOrder), - ReactInjection.EventPluginUtils.injectComponentTree(ReactDOMComponentTree), - ReactInjection.EventPluginUtils.injectTreeTraversal(ReactDOMTreeTraversal), - ReactInjection.EventPluginHub.injectEventPluginsByName({ - SimpleEventPlugin: SimpleEventPlugin, - EnterLeaveEventPlugin: EnterLeaveEventPlugin, - ChangeEventPlugin: ChangeEventPlugin, - SelectEventPlugin: SelectEventPlugin, - BeforeInputEventPlugin: BeforeInputEventPlugin - }), - ReactInjection.HostComponent.injectGenericComponentClass(ReactDOMComponent), - ReactInjection.HostComponent.injectTextComponentClass(ReactDOMTextComponent), - ReactInjection.DOMProperty.injectDOMPropertyConfig(ARIADOMPropertyConfig), - ReactInjection.DOMProperty.injectDOMPropertyConfig(HTMLDOMPropertyConfig), - ReactInjection.DOMProperty.injectDOMPropertyConfig(SVGDOMPropertyConfig), - ReactInjection.EmptyComponent.injectEmptyComponentFactory(function(instantiate) { - return new ReactDOMEmptyComponent(instantiate); - }), - ReactInjection.Updates.injectReconcileTransaction(ReactReconcileTransaction), - ReactInjection.Updates.injectBatchingStrategy(ReactDefaultBatchingStrategy), - ReactInjection.Component.injectEnvironment(ReactComponentBrowserEnvironment)); - } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = { - Properties: { - 'aria-current': 0, - 'aria-details': 0, - 'aria-disabled': 0, - 'aria-hidden': 0, - 'aria-invalid': 0, - 'aria-keyshortcuts': 0, - 'aria-label': 0, - 'aria-roledescription': 0, - 'aria-autocomplete': 0, - 'aria-checked': 0, - 'aria-expanded': 0, - 'aria-haspopup': 0, - 'aria-level': 0, - 'aria-modal': 0, - 'aria-multiline': 0, - 'aria-multiselectable': 0, - 'aria-orientation': 0, - 'aria-placeholder': 0, - 'aria-pressed': 0, - 'aria-readonly': 0, - 'aria-required': 0, - 'aria-selected': 0, - 'aria-sort': 0, - 'aria-valuemax': 0, - 'aria-valuemin': 0, - 'aria-valuenow': 0, - 'aria-valuetext': 0, - 'aria-atomic': 0, - 'aria-busy': 0, - 'aria-live': 0, - 'aria-relevant': 0, - 'aria-dropeffect': 0, - 'aria-grabbed': 0, - 'aria-activedescendant': 0, - 'aria-colcount': 0, - 'aria-colindex': 0, - 'aria-colspan': 0, - 'aria-controls': 0, - 'aria-describedby': 0, - 'aria-errormessage': 0, - 'aria-flowto': 0, - 'aria-labelledby': 0, - 'aria-owns': 0, - 'aria-posinset': 0, - 'aria-rowcount': 0, - 'aria-rowindex': 0, - 'aria-rowspan': 0, - 'aria-setsize': 0 - }, - DOMAttributeNames: {}, - DOMPropertyNames: {} - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var EventPropagators = __webpack_require__(79), - ExecutionEnvironment = __webpack_require__(19), - FallbackCompositionState = __webpack_require__(444), - SyntheticCompositionEvent = __webpack_require__(445), - SyntheticInputEvent = __webpack_require__(446), - END_KEYCODES = [9, 13, 27, 32], - START_KEYCODE = 229, - canUseCompositionEvent = ExecutionEnvironment.canUseDOM && 'CompositionEvent' in window, - documentMode = null; - ExecutionEnvironment.canUseDOM && - 'documentMode' in document && - (documentMode = document.documentMode); - var canUseTextInputEvent = - ExecutionEnvironment.canUseDOM && - 'TextEvent' in window && - !documentMode && - !(function isPresto() { - var opera = window.opera; - return ( - 'object' == typeof opera && - 'function' == typeof opera.version && - parseInt(opera.version(), 10) <= 12 - ); - })(), - useFallbackCompositionData = - ExecutionEnvironment.canUseDOM && - (!canUseCompositionEvent || (documentMode && documentMode > 8 && documentMode <= 11)); - var SPACEBAR_CODE = 32, - SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE), - eventTypes = { - beforeInput: { - phasedRegistrationNames: { bubbled: 'onBeforeInput', captured: 'onBeforeInputCapture' }, - dependencies: ['topCompositionEnd', 'topKeyPress', 'topTextInput', 'topPaste'] - }, - compositionEnd: { - phasedRegistrationNames: { - bubbled: 'onCompositionEnd', - captured: 'onCompositionEndCapture' - }, - dependencies: [ - 'topBlur', - 'topCompositionEnd', - 'topKeyDown', - 'topKeyPress', - 'topKeyUp', - 'topMouseDown' - ] - }, - compositionStart: { - phasedRegistrationNames: { - bubbled: 'onCompositionStart', - captured: 'onCompositionStartCapture' - }, - dependencies: [ - 'topBlur', - 'topCompositionStart', - 'topKeyDown', - 'topKeyPress', - 'topKeyUp', - 'topMouseDown' - ] - }, - compositionUpdate: { - phasedRegistrationNames: { - bubbled: 'onCompositionUpdate', - captured: 'onCompositionUpdateCapture' - }, - dependencies: [ - 'topBlur', - 'topCompositionUpdate', - 'topKeyDown', - 'topKeyPress', - 'topKeyUp', - 'topMouseDown' - ] - } - }, - hasSpaceKeypress = !1; - function isFallbackCompositionEnd(topLevelType, nativeEvent) { - switch (topLevelType) { - case 'topKeyUp': - return -1 !== END_KEYCODES.indexOf(nativeEvent.keyCode); - case 'topKeyDown': - return nativeEvent.keyCode !== START_KEYCODE; - case 'topKeyPress': - case 'topMouseDown': - case 'topBlur': - return !0; - default: - return !1; - } - } - function getDataFromCustomEvent(nativeEvent) { - var detail = nativeEvent.detail; - return 'object' == typeof detail && 'data' in detail ? detail.data : null; - } - var currentComposition = null; - function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var eventType, fallbackData; - if ( - (canUseCompositionEvent - ? (eventType = (function getCompositionEventType(topLevelType) { - switch (topLevelType) { - case 'topCompositionStart': - return eventTypes.compositionStart; - case 'topCompositionEnd': - return eventTypes.compositionEnd; - case 'topCompositionUpdate': - return eventTypes.compositionUpdate; - } - })(topLevelType)) - : currentComposition - ? isFallbackCompositionEnd(topLevelType, nativeEvent) && - (eventType = eventTypes.compositionEnd) - : (function isFallbackCompositionStart(topLevelType, nativeEvent) { - return 'topKeyDown' === topLevelType && nativeEvent.keyCode === START_KEYCODE; - })(topLevelType, nativeEvent) && (eventType = eventTypes.compositionStart), - !eventType) - ) - return null; - useFallbackCompositionData && - (currentComposition || eventType !== eventTypes.compositionStart - ? eventType === eventTypes.compositionEnd && - currentComposition && - (fallbackData = currentComposition.getData()) - : (currentComposition = FallbackCompositionState.getPooled(nativeEventTarget))); - var event = SyntheticCompositionEvent.getPooled( - eventType, - targetInst, - nativeEvent, - nativeEventTarget - ); - if (fallbackData) event.data = fallbackData; - else { - var customData = getDataFromCustomEvent(nativeEvent); - null !== customData && (event.data = customData); - } - return EventPropagators.accumulateTwoPhaseDispatches(event), event; - } - function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var chars; - if ( - !(chars = canUseTextInputEvent - ? (function getNativeBeforeInputChars(topLevelType, nativeEvent) { - switch (topLevelType) { - case 'topCompositionEnd': - return getDataFromCustomEvent(nativeEvent); - case 'topKeyPress': - return nativeEvent.which !== SPACEBAR_CODE - ? null - : ((hasSpaceKeypress = !0), SPACEBAR_CHAR); - case 'topTextInput': - var chars = nativeEvent.data; - return chars === SPACEBAR_CHAR && hasSpaceKeypress ? null : chars; - default: - return null; - } - })(topLevelType, nativeEvent) - : (function getFallbackBeforeInputChars(topLevelType, nativeEvent) { - if (currentComposition) { - if ( - 'topCompositionEnd' === topLevelType || - (!canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) - ) { - var chars = currentComposition.getData(); - return ( - FallbackCompositionState.release(currentComposition), - (currentComposition = null), - chars - ); - } - return null; - } - switch (topLevelType) { - case 'topPaste': - return null; - case 'topKeyPress': - return nativeEvent.which && - !(function isKeypressCommand(nativeEvent) { - return ( - (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && - !(nativeEvent.ctrlKey && nativeEvent.altKey) - ); - })(nativeEvent) - ? String.fromCharCode(nativeEvent.which) - : null; - case 'topCompositionEnd': - return useFallbackCompositionData ? null : nativeEvent.data; - default: - return null; - } - })(topLevelType, nativeEvent)) - ) - return null; - var event = SyntheticInputEvent.getPooled( - eventTypes.beforeInput, - targetInst, - nativeEvent, - nativeEventTarget - ); - return (event.data = chars), EventPropagators.accumulateTwoPhaseDispatches(event), event; - } - var BeforeInputEventPlugin = { - eventTypes: eventTypes, - extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - return [ - extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget), - extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) - ]; - } - }; - module.exports = BeforeInputEventPlugin; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - PooledClass = __webpack_require__(47), - getTextContentAccessor = __webpack_require__(237); - function FallbackCompositionState(root) { - (this._root = root), (this._startText = this.getText()), (this._fallbackText = null); - } - _assign(FallbackCompositionState.prototype, { - destructor: function() { - (this._root = null), (this._startText = null), (this._fallbackText = null); - }, - getText: function() { - return 'value' in this._root ? this._root.value : this._root[getTextContentAccessor()]; - }, - getData: function() { - if (this._fallbackText) return this._fallbackText; - var start, - end, - startValue = this._startText, - startLength = startValue.length, - endValue = this.getText(), - endLength = endValue.length; - for (start = 0; start < startLength && startValue[start] === endValue[start]; start++); - var minEnd = startLength - start; - for ( - end = 1; - end <= minEnd && startValue[startLength - end] === endValue[endLength - end]; - end++ - ); - var sliceTail = end > 1 ? 1 - end : void 0; - return (this._fallbackText = endValue.slice(start, sliceTail)), this._fallbackText; - } - }), - PooledClass.addPoolingTo(FallbackCompositionState), - (module.exports = FallbackCompositionState); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticEvent = __webpack_require__(33); - function SyntheticCompositionEvent( - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ) { - return SyntheticEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticEvent.augmentClass(SyntheticCompositionEvent, { data: null }), - (module.exports = SyntheticCompositionEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticEvent = __webpack_require__(33); - function SyntheticInputEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { - return SyntheticEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticEvent.augmentClass(SyntheticInputEvent, { data: null }), - (module.exports = SyntheticInputEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var EventPluginHub = __webpack_require__(80), - EventPropagators = __webpack_require__(79), - ExecutionEnvironment = __webpack_require__(19), - ReactDOMComponentTree = __webpack_require__(13), - ReactUpdates = __webpack_require__(30), - SyntheticEvent = __webpack_require__(33), - inputValueTracking = __webpack_require__(240), - getEventTarget = __webpack_require__(156), - isEventSupported = __webpack_require__(157), - isTextInputElement = __webpack_require__(241), - eventTypes = { - change: { - phasedRegistrationNames: { bubbled: 'onChange', captured: 'onChangeCapture' }, - dependencies: [ - 'topBlur', - 'topChange', - 'topClick', - 'topFocus', - 'topInput', - 'topKeyDown', - 'topKeyUp', - 'topSelectionChange' - ] - } - }; - function createAndAccumulateChangeEvent(inst, nativeEvent, target) { - var event = SyntheticEvent.getPooled(eventTypes.change, inst, nativeEvent, target); - return (event.type = 'change'), EventPropagators.accumulateTwoPhaseDispatches(event), event; - } - var activeElement = null, - activeElementInst = null; - var doesChangeEventBubble = !1; - function manualDispatchChangeEvent(nativeEvent) { - var event = createAndAccumulateChangeEvent( - activeElementInst, - nativeEvent, - getEventTarget(nativeEvent) - ); - ReactUpdates.batchedUpdates(runEventInBatch, event); - } - function runEventInBatch(event) { - EventPluginHub.enqueueEvents(event), EventPluginHub.processEventQueue(!1); - } - function stopWatchingForChangeEventIE8() { - activeElement && - (activeElement.detachEvent('onchange', manualDispatchChangeEvent), - (activeElement = null), - (activeElementInst = null)); - } - function getInstIfValueChanged(targetInst, nativeEvent) { - var updated = inputValueTracking.updateValueIfChanged(targetInst), - simulated = !0 === nativeEvent.simulated && ChangeEventPlugin._allowSimulatedPassThrough; - if (updated || simulated) return targetInst; - } - function getTargetInstForChangeEvent(topLevelType, targetInst) { - if ('topChange' === topLevelType) return targetInst; - } - function handleEventsForChangeEventIE8(topLevelType, target, targetInst) { - 'topFocus' === topLevelType - ? (stopWatchingForChangeEventIE8(), - (function startWatchingForChangeEventIE8(target, targetInst) { - (activeElementInst = targetInst), - (activeElement = target).attachEvent('onchange', manualDispatchChangeEvent); - })(target, targetInst)) - : 'topBlur' === topLevelType && stopWatchingForChangeEventIE8(); - } - ExecutionEnvironment.canUseDOM && - (doesChangeEventBubble = - isEventSupported('change') && (!document.documentMode || document.documentMode > 8)); - var isInputEventSupported = !1; - function stopWatchingForValueChange() { - activeElement && - (activeElement.detachEvent('onpropertychange', handlePropertyChange), - (activeElement = null), - (activeElementInst = null)); - } - function handlePropertyChange(nativeEvent) { - 'value' === nativeEvent.propertyName && - getInstIfValueChanged(activeElementInst, nativeEvent) && - manualDispatchChangeEvent(nativeEvent); - } - function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) { - 'topFocus' === topLevelType - ? (stopWatchingForValueChange(), - (function startWatchingForValueChange(target, targetInst) { - (activeElementInst = targetInst), - (activeElement = target).attachEvent('onpropertychange', handlePropertyChange); - })(target, targetInst)) - : 'topBlur' === topLevelType && stopWatchingForValueChange(); - } - function getTargetInstForInputEventPolyfill(topLevelType, targetInst, nativeEvent) { - if ( - 'topSelectionChange' === topLevelType || - 'topKeyUp' === topLevelType || - 'topKeyDown' === topLevelType - ) - return getInstIfValueChanged(activeElementInst, nativeEvent); - } - function getTargetInstForClickEvent(topLevelType, targetInst, nativeEvent) { - if ('topClick' === topLevelType) return getInstIfValueChanged(targetInst, nativeEvent); - } - function getTargetInstForInputOrChangeEvent(topLevelType, targetInst, nativeEvent) { - if ('topInput' === topLevelType || 'topChange' === topLevelType) - return getInstIfValueChanged(targetInst, nativeEvent); - } - ExecutionEnvironment.canUseDOM && - (isInputEventSupported = - isEventSupported('input') && (!document.documentMode || document.documentMode > 9)); - var ChangeEventPlugin = { - eventTypes: eventTypes, - _allowSimulatedPassThrough: !0, - _isInputEventSupported: isInputEventSupported, - extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var getTargetInstFunc, - handleEventFunc, - targetNode = targetInst ? ReactDOMComponentTree.getNodeFromInstance(targetInst) : window; - if ( - (!(function shouldUseChangeEvent(elem) { - var nodeName = elem.nodeName && elem.nodeName.toLowerCase(); - return 'select' === nodeName || ('input' === nodeName && 'file' === elem.type); - })(targetNode) - ? isTextInputElement(targetNode) - ? isInputEventSupported - ? (getTargetInstFunc = getTargetInstForInputOrChangeEvent) - : ((getTargetInstFunc = getTargetInstForInputEventPolyfill), - (handleEventFunc = handleEventsForInputEventPolyfill)) - : (function shouldUseClickEvent(elem) { - var nodeName = elem.nodeName; - return ( - nodeName && - 'input' === nodeName.toLowerCase() && - ('checkbox' === elem.type || 'radio' === elem.type) - ); - })(targetNode) && (getTargetInstFunc = getTargetInstForClickEvent) - : doesChangeEventBubble - ? (getTargetInstFunc = getTargetInstForChangeEvent) - : (handleEventFunc = handleEventsForChangeEventIE8), - getTargetInstFunc) - ) { - var inst = getTargetInstFunc(topLevelType, targetInst, nativeEvent); - if (inst) return createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget); - } - handleEventFunc && handleEventFunc(topLevelType, targetNode, targetInst), - 'topBlur' === topLevelType && - (function handleControlledInputBlur(inst, node) { - if (null != inst) { - var state = inst._wrapperState || node._wrapperState; - if (state && state.controlled && 'number' === node.type) { - var value = '' + node.value; - node.getAttribute('value') !== value && node.setAttribute('value', value); - } - } - })(targetInst, targetNode); - } - }; - module.exports = ChangeEventPlugin; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactOwner = __webpack_require__(449), - ReactRef = {}; - (ReactRef.attachRefs = function(instance, element) { - if (null !== element && 'object' == typeof element) { - var ref = element.ref; - null != ref && - (function attachRef(ref, component, owner) { - 'function' == typeof ref - ? ref(component.getPublicInstance()) - : ReactOwner.addComponentAsRefTo(component, ref, owner); - })(ref, instance, element._owner); - } - }), - (ReactRef.shouldUpdateRefs = function(prevElement, nextElement) { - var prevRef = null, - prevOwner = null; - null !== prevElement && - 'object' == typeof prevElement && - ((prevRef = prevElement.ref), (prevOwner = prevElement._owner)); - var nextRef = null, - nextOwner = null; - return ( - null !== nextElement && - 'object' == typeof nextElement && - ((nextRef = nextElement.ref), (nextOwner = nextElement._owner)), - prevRef !== nextRef || ('string' == typeof nextRef && nextOwner !== prevOwner) - ); - }), - (ReactRef.detachRefs = function(instance, element) { - if (null !== element && 'object' == typeof element) { - var ref = element.ref; - null != ref && - (function detachRef(ref, component, owner) { - 'function' == typeof ref - ? ref(null) - : ReactOwner.removeComponentAsRefFrom(component, ref, owner); - })(ref, instance, element._owner); - } - }), - (module.exports = ReactRef); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7); - __webpack_require__(3); - function isValidOwner(object) { - return !( - !object || - 'function' != typeof object.attachRef || - 'function' != typeof object.detachRef - ); - } - var ReactOwner = { - addComponentAsRefTo: function(component, ref, owner) { - isValidOwner(owner) || _prodInvariant('119'), owner.attachRef(ref, component); - }, - removeComponentAsRefFrom: function(component, ref, owner) { - isValidOwner(owner) || _prodInvariant('120'); - var ownerPublicInstance = owner.getPublicInstance(); - ownerPublicInstance && - ownerPublicInstance.refs[ref] === component.getPublicInstance() && - owner.detachRef(ref); - } - }; - module.exports = ReactOwner; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = [ - 'ResponderEventPlugin', - 'SimpleEventPlugin', - 'TapEventPlugin', - 'EnterLeaveEventPlugin', - 'ChangeEventPlugin', - 'SelectEventPlugin', - 'BeforeInputEventPlugin' - ]; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var EventPropagators = __webpack_require__(79), - ReactDOMComponentTree = __webpack_require__(13), - SyntheticMouseEvent = __webpack_require__(99), - eventTypes = { - mouseEnter: { - registrationName: 'onMouseEnter', - dependencies: ['topMouseOut', 'topMouseOver'] - }, - mouseLeave: { - registrationName: 'onMouseLeave', - dependencies: ['topMouseOut', 'topMouseOver'] - } - }, - EnterLeaveEventPlugin = { - eventTypes: eventTypes, - extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - if ( - 'topMouseOver' === topLevelType && - (nativeEvent.relatedTarget || nativeEvent.fromElement) - ) - return null; - if ('topMouseOut' !== topLevelType && 'topMouseOver' !== topLevelType) return null; - var win, from, to; - if (nativeEventTarget.window === nativeEventTarget) win = nativeEventTarget; - else { - var doc = nativeEventTarget.ownerDocument; - win = doc ? doc.defaultView || doc.parentWindow : window; - } - if ('topMouseOut' === topLevelType) { - from = targetInst; - var related = nativeEvent.relatedTarget || nativeEvent.toElement; - to = related ? ReactDOMComponentTree.getClosestInstanceFromNode(related) : null; - } else (from = null), (to = targetInst); - if (from === to) return null; - var fromNode = null == from ? win : ReactDOMComponentTree.getNodeFromInstance(from), - toNode = null == to ? win : ReactDOMComponentTree.getNodeFromInstance(to), - leave = SyntheticMouseEvent.getPooled( - eventTypes.mouseLeave, - from, - nativeEvent, - nativeEventTarget - ); - (leave.type = 'mouseleave'), (leave.target = fromNode), (leave.relatedTarget = toNode); - var enter = SyntheticMouseEvent.getPooled( - eventTypes.mouseEnter, - to, - nativeEvent, - nativeEventTarget - ); - return ( - (enter.type = 'mouseenter'), - (enter.target = toNode), - (enter.relatedTarget = fromNode), - EventPropagators.accumulateEnterLeaveDispatches(leave, enter, from, to), - [leave, enter] - ); - } - }; - module.exports = EnterLeaveEventPlugin; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var DOMProperty = __webpack_require__(60), - MUST_USE_PROPERTY = DOMProperty.injection.MUST_USE_PROPERTY, - HAS_BOOLEAN_VALUE = DOMProperty.injection.HAS_BOOLEAN_VALUE, - HAS_NUMERIC_VALUE = DOMProperty.injection.HAS_NUMERIC_VALUE, - HAS_POSITIVE_NUMERIC_VALUE = DOMProperty.injection.HAS_POSITIVE_NUMERIC_VALUE, - HAS_OVERLOADED_BOOLEAN_VALUE = DOMProperty.injection.HAS_OVERLOADED_BOOLEAN_VALUE, - HTMLDOMPropertyConfig = { - isCustomAttribute: RegExp.prototype.test.bind( - new RegExp('^(data|aria)-[' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$') - ), - Properties: { - accept: 0, - acceptCharset: 0, - accessKey: 0, - action: 0, - allowFullScreen: HAS_BOOLEAN_VALUE, - allowTransparency: 0, - alt: 0, - as: 0, - async: HAS_BOOLEAN_VALUE, - autoComplete: 0, - autoPlay: HAS_BOOLEAN_VALUE, - capture: HAS_BOOLEAN_VALUE, - cellPadding: 0, - cellSpacing: 0, - charSet: 0, - challenge: 0, - checked: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, - cite: 0, - classID: 0, - className: 0, - cols: HAS_POSITIVE_NUMERIC_VALUE, - colSpan: 0, - content: 0, - contentEditable: 0, - contextMenu: 0, - controls: HAS_BOOLEAN_VALUE, - controlsList: 0, - coords: 0, - crossOrigin: 0, - data: 0, - dateTime: 0, - default: HAS_BOOLEAN_VALUE, - defer: HAS_BOOLEAN_VALUE, - dir: 0, - disabled: HAS_BOOLEAN_VALUE, - download: HAS_OVERLOADED_BOOLEAN_VALUE, - draggable: 0, - encType: 0, - form: 0, - formAction: 0, - formEncType: 0, - formMethod: 0, - formNoValidate: HAS_BOOLEAN_VALUE, - formTarget: 0, - frameBorder: 0, - headers: 0, - height: 0, - hidden: HAS_BOOLEAN_VALUE, - high: 0, - href: 0, - hrefLang: 0, - htmlFor: 0, - httpEquiv: 0, - icon: 0, - id: 0, - inputMode: 0, - integrity: 0, - is: 0, - keyParams: 0, - keyType: 0, - kind: 0, - label: 0, - lang: 0, - list: 0, - loop: HAS_BOOLEAN_VALUE, - low: 0, - manifest: 0, - marginHeight: 0, - marginWidth: 0, - max: 0, - maxLength: 0, - media: 0, - mediaGroup: 0, - method: 0, - min: 0, - minLength: 0, - multiple: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, - muted: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, - name: 0, - nonce: 0, - noValidate: HAS_BOOLEAN_VALUE, - open: HAS_BOOLEAN_VALUE, - optimum: 0, - pattern: 0, - placeholder: 0, - playsInline: HAS_BOOLEAN_VALUE, - poster: 0, - preload: 0, - profile: 0, - radioGroup: 0, - readOnly: HAS_BOOLEAN_VALUE, - referrerPolicy: 0, - rel: 0, - required: HAS_BOOLEAN_VALUE, - reversed: HAS_BOOLEAN_VALUE, - role: 0, - rows: HAS_POSITIVE_NUMERIC_VALUE, - rowSpan: HAS_NUMERIC_VALUE, - sandbox: 0, - scope: 0, - scoped: HAS_BOOLEAN_VALUE, - scrolling: 0, - seamless: HAS_BOOLEAN_VALUE, - selected: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, - shape: 0, - size: HAS_POSITIVE_NUMERIC_VALUE, - sizes: 0, - span: HAS_POSITIVE_NUMERIC_VALUE, - spellCheck: 0, - src: 0, - srcDoc: 0, - srcLang: 0, - srcSet: 0, - start: HAS_NUMERIC_VALUE, - step: 0, - style: 0, - summary: 0, - tabIndex: 0, - target: 0, - title: 0, - type: 0, - useMap: 0, - value: 0, - width: 0, - wmode: 0, - wrap: 0, - about: 0, - datatype: 0, - inlist: 0, - prefix: 0, - property: 0, - resource: 0, - typeof: 0, - vocab: 0, - autoCapitalize: 0, - autoCorrect: 0, - autoSave: 0, - color: 0, - itemProp: 0, - itemScope: HAS_BOOLEAN_VALUE, - itemType: 0, - itemID: 0, - itemRef: 0, - results: 0, - security: 0, - unselectable: 0 - }, - DOMAttributeNames: { - acceptCharset: 'accept-charset', - className: 'class', - htmlFor: 'for', - httpEquiv: 'http-equiv' - }, - DOMPropertyNames: {}, - DOMMutationMethods: { - value: function(node, value) { - if (null == value) return node.removeAttribute('value'); - 'number' !== node.type || !1 === node.hasAttribute('value') - ? node.setAttribute('value', '' + value) - : node.validity && - !node.validity.badInput && - node.ownerDocument.activeElement !== node && - node.setAttribute('value', '' + value); - } - } - }; - module.exports = HTMLDOMPropertyConfig; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var DOMChildrenOperations = __webpack_require__(159), - ReactComponentBrowserEnvironment = { - processChildrenUpdates: __webpack_require__(458).dangerouslyProcessChildrenUpdates, - replaceNodeWithMarkup: DOMChildrenOperations.dangerouslyReplaceNodeWithMarkup - }; - module.exports = ReactComponentBrowserEnvironment; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - DOMLazyTree = __webpack_require__(62), - ExecutionEnvironment = __webpack_require__(19), - createNodesFromMarkup = __webpack_require__(455), - emptyFunction = __webpack_require__(22), - Danger = (__webpack_require__(3), - { - dangerouslyReplaceNodeWithMarkup: function(oldChild, markup) { - if ( - (ExecutionEnvironment.canUseDOM || _prodInvariant('56'), - markup || _prodInvariant('57'), - 'HTML' === oldChild.nodeName && _prodInvariant('58'), - 'string' == typeof markup) - ) { - var newChild = createNodesFromMarkup(markup, emptyFunction)[0]; - oldChild.parentNode.replaceChild(newChild, oldChild); - } else DOMLazyTree.replaceChildWithTree(oldChild, markup); - } - }); - module.exports = Danger; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ExecutionEnvironment = __webpack_require__(19), - createArrayFromMixed = __webpack_require__(456), - getMarkupWrap = __webpack_require__(457), - invariant = __webpack_require__(3), - dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null, - nodeNamePattern = /^\s*<(\w+)/; - module.exports = function createNodesFromMarkup(markup, handleScript) { - var node = dummyNode; - dummyNode || invariant(!1); - var nodeName = (function getNodeName(markup) { - var nodeNameMatch = markup.match(nodeNamePattern); - return nodeNameMatch && nodeNameMatch[1].toLowerCase(); - })(markup), - wrap = nodeName && getMarkupWrap(nodeName); - if (wrap) { - node.innerHTML = wrap[1] + markup + wrap[2]; - for (var wrapDepth = wrap[0]; wrapDepth--; ) node = node.lastChild; - } else node.innerHTML = markup; - var scripts = node.getElementsByTagName('script'); - scripts.length && - (handleScript || invariant(!1), createArrayFromMixed(scripts).forEach(handleScript)); - for (var nodes = Array.from(node.childNodes); node.lastChild; ) - node.removeChild(node.lastChild); - return nodes; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var invariant = __webpack_require__(3); - module.exports = function createArrayFromMixed(obj) { - return (function hasArrayNature(obj) { - return ( - !!obj && - ('object' == typeof obj || 'function' == typeof obj) && - 'length' in obj && - !('setInterval' in obj) && - 'number' != typeof obj.nodeType && - (Array.isArray(obj) || 'callee' in obj || 'item' in obj) - ); - })(obj) - ? Array.isArray(obj) - ? obj.slice() - : (function toArray(obj) { - var length = obj.length; - if ( - ((Array.isArray(obj) || ('object' != typeof obj && 'function' != typeof obj)) && - invariant(!1), - 'number' != typeof length && invariant(!1), - 0 === length || length - 1 in obj || invariant(!1), - 'function' == typeof obj.callee && invariant(!1), - obj.hasOwnProperty) - ) - try { - return Array.prototype.slice.call(obj); - } catch (e) {} - for (var ret = Array(length), ii = 0; ii < length; ii++) ret[ii] = obj[ii]; - return ret; - })(obj) - : [obj]; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ExecutionEnvironment = __webpack_require__(19), - invariant = __webpack_require__(3), - dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null, - shouldWrap = {}, - selectWrap = [1, ''], - tableWrap = [1, '', '
'], - trWrap = [3, '', '
'], - svgWrap = [1, '', ''], - markupWrap = { - '*': [1, '?
', '
'], - area: [1, '', ''], - col: [2, '', '
'], - legend: [1, '
', '
'], - param: [1, '', ''], - tr: [2, '', '
'], - optgroup: selectWrap, - option: selectWrap, - caption: tableWrap, - colgroup: tableWrap, - tbody: tableWrap, - tfoot: tableWrap, - thead: tableWrap, - td: trWrap, - th: trWrap - }; - [ - 'circle', - 'clipPath', - 'defs', - 'ellipse', - 'g', - 'image', - 'line', - 'linearGradient', - 'mask', - 'path', - 'pattern', - 'polygon', - 'polyline', - 'radialGradient', - 'rect', - 'stop', - 'text', - 'tspan' - ].forEach(function(nodeName) { - (markupWrap[nodeName] = svgWrap), (shouldWrap[nodeName] = !0); - }), - (module.exports = function getMarkupWrap(nodeName) { - return ( - dummyNode || invariant(!1), - markupWrap.hasOwnProperty(nodeName) || (nodeName = '*'), - shouldWrap.hasOwnProperty(nodeName) || - ((dummyNode.innerHTML = - '*' === nodeName ? '' : '<' + nodeName + '>'), - (shouldWrap[nodeName] = !dummyNode.firstChild)), - shouldWrap[nodeName] ? markupWrap[nodeName] : null - ); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var DOMChildrenOperations = __webpack_require__(159), - ReactDOMComponentTree = __webpack_require__(13), - ReactDOMIDOperations = { - dangerouslyProcessChildrenUpdates: function(parentInst, updates) { - var node = ReactDOMComponentTree.getNodeFromInstance(parentInst); - DOMChildrenOperations.processUpdates(node, updates); - } - }; - module.exports = ReactDOMIDOperations; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - _assign = __webpack_require__(9), - AutoFocusUtils = __webpack_require__(460), - CSSPropertyOperations = __webpack_require__(461), - DOMLazyTree = __webpack_require__(62), - DOMNamespaces = __webpack_require__(160), - DOMProperty = __webpack_require__(60), - DOMPropertyOperations = __webpack_require__(246), - EventPluginHub = __webpack_require__(80), - EventPluginRegistry = __webpack_require__(153), - ReactBrowserEventEmitter = __webpack_require__(102), - ReactDOMComponentFlags = __webpack_require__(234), - ReactDOMComponentTree = __webpack_require__(13), - ReactDOMInput = __webpack_require__(468), - ReactDOMOption = __webpack_require__(470), - ReactDOMSelect = __webpack_require__(247), - ReactDOMTextarea = __webpack_require__(471), - ReactMultiChild = (__webpack_require__(25), __webpack_require__(472)), - ReactServerRenderingTransaction = __webpack_require__(479), - escapeTextContentForBrowser = (__webpack_require__(22), __webpack_require__(101)), - inputValueTracking = (__webpack_require__(3), - __webpack_require__(157), - __webpack_require__(164), - __webpack_require__(240)), - Flags = (__webpack_require__(168), __webpack_require__(6), ReactDOMComponentFlags), - deleteListener = EventPluginHub.deleteListener, - getNode = ReactDOMComponentTree.getNodeFromInstance, - listenTo = ReactBrowserEventEmitter.listenTo, - registrationNameModules = EventPluginRegistry.registrationNameModules, - CONTENT_TYPES = { string: !0, number: !0 }, - HTML = '__html', - RESERVED_PROPS = { - children: null, - dangerouslySetInnerHTML: null, - suppressContentEditableWarning: null - }, - DOC_FRAGMENT_TYPE = 11; - function getDeclarationErrorAddendum(internalInstance) { - if (internalInstance) { - var owner = internalInstance._currentElement._owner || null; - if (owner) { - var name = owner.getName(); - if (name) return ' This DOM node was rendered by `' + name + '`.'; - } - } - return ''; - } - function assertValidProps(component, props) { - props && - (voidElementTags[component._tag] && - (null != props.children || null != props.dangerouslySetInnerHTML) && - _prodInvariant( - '137', - component._tag, - component._currentElement._owner - ? ' Check the render method of ' + component._currentElement._owner.getName() + '.' - : '' - ), - null != props.dangerouslySetInnerHTML && - (null != props.children && _prodInvariant('60'), - ('object' == typeof props.dangerouslySetInnerHTML && - HTML in props.dangerouslySetInnerHTML) || - _prodInvariant('61')), - null != props.style && - 'object' != typeof props.style && - _prodInvariant('62', getDeclarationErrorAddendum(component))); - } - function enqueuePutListener(inst, registrationName, listener, transaction) { - if (!(transaction instanceof ReactServerRenderingTransaction)) { - 0; - var containerInfo = inst._hostContainerInfo, - doc = - containerInfo._node && containerInfo._node.nodeType === DOC_FRAGMENT_TYPE - ? containerInfo._node - : containerInfo._ownerDocument; - listenTo(registrationName, doc), - transaction - .getReactMountReady() - .enqueue(putListener, { - inst: inst, - registrationName: registrationName, - listener: listener - }); - } - } - function putListener() { - EventPluginHub.putListener(this.inst, this.registrationName, this.listener); - } - function inputPostMount() { - ReactDOMInput.postMountWrapper(this); - } - function textareaPostMount() { - ReactDOMTextarea.postMountWrapper(this); - } - function optionPostMount() { - ReactDOMOption.postMountWrapper(this); - } - var mediaEvents = { - topAbort: 'abort', - topCanPlay: 'canplay', - topCanPlayThrough: 'canplaythrough', - topDurationChange: 'durationchange', - topEmptied: 'emptied', - topEncrypted: 'encrypted', - topEnded: 'ended', - topError: 'error', - topLoadedData: 'loadeddata', - topLoadedMetadata: 'loadedmetadata', - topLoadStart: 'loadstart', - topPause: 'pause', - topPlay: 'play', - topPlaying: 'playing', - topProgress: 'progress', - topRateChange: 'ratechange', - topSeeked: 'seeked', - topSeeking: 'seeking', - topStalled: 'stalled', - topSuspend: 'suspend', - topTimeUpdate: 'timeupdate', - topVolumeChange: 'volumechange', - topWaiting: 'waiting' - }; - function trackInputValue() { - inputValueTracking.track(this); - } - function trapBubbledEventsLocal() { - this._rootNodeID || _prodInvariant('63'); - var node = getNode(this); - switch ((node || _prodInvariant('64'), this._tag)) { - case 'iframe': - case 'object': - this._wrapperState.listeners = [ - ReactBrowserEventEmitter.trapBubbledEvent('topLoad', 'load', node) - ]; - break; - case 'video': - case 'audio': - this._wrapperState.listeners = []; - for (var event in mediaEvents) - mediaEvents.hasOwnProperty(event) && - this._wrapperState.listeners.push( - ReactBrowserEventEmitter.trapBubbledEvent(event, mediaEvents[event], node) - ); - break; - case 'source': - this._wrapperState.listeners = [ - ReactBrowserEventEmitter.trapBubbledEvent('topError', 'error', node) - ]; - break; - case 'img': - this._wrapperState.listeners = [ - ReactBrowserEventEmitter.trapBubbledEvent('topError', 'error', node), - ReactBrowserEventEmitter.trapBubbledEvent('topLoad', 'load', node) - ]; - break; - case 'form': - this._wrapperState.listeners = [ - ReactBrowserEventEmitter.trapBubbledEvent('topReset', 'reset', node), - ReactBrowserEventEmitter.trapBubbledEvent('topSubmit', 'submit', node) - ]; - break; - case 'input': - case 'select': - case 'textarea': - this._wrapperState.listeners = [ - ReactBrowserEventEmitter.trapBubbledEvent('topInvalid', 'invalid', node) - ]; - } - } - function postUpdateSelectWrapper() { - ReactDOMSelect.postUpdateWrapper(this); - } - var omittedCloseTags = { - 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 - }, - newlineEatingTags = { listing: !0, pre: !0, textarea: !0 }, - voidElementTags = _assign({ menuitem: !0 }, omittedCloseTags), - VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, - validatedTagCache = {}, - hasOwnProperty = {}.hasOwnProperty; - function isCustomComponent(tagName, props) { - return tagName.indexOf('-') >= 0 || null != props.is; - } - var globalIdCounter = 1; - function ReactDOMComponent(element) { - var tag = element.type; - !(function validateDangerousTag(tag) { - hasOwnProperty.call(validatedTagCache, tag) || - (VALID_TAG_REGEX.test(tag) || _prodInvariant('65', tag), (validatedTagCache[tag] = !0)); - })(tag), - (this._currentElement = element), - (this._tag = tag.toLowerCase()), - (this._namespaceURI = null), - (this._renderedChildren = null), - (this._previousStyle = null), - (this._previousStyleCopy = null), - (this._hostNode = null), - (this._hostParent = null), - (this._rootNodeID = 0), - (this._domID = 0), - (this._hostContainerInfo = null), - (this._wrapperState = null), - (this._topLevelWrapper = null), - (this._flags = 0); - } - (ReactDOMComponent.displayName = 'ReactDOMComponent'), - (ReactDOMComponent.Mixin = { - mountComponent: function(transaction, hostParent, hostContainerInfo, context) { - (this._rootNodeID = globalIdCounter++), - (this._domID = hostContainerInfo._idCounter++), - (this._hostParent = hostParent), - (this._hostContainerInfo = hostContainerInfo); - var namespaceURI, - parentTag, - mountImage, - props = this._currentElement.props; - switch (this._tag) { - case 'audio': - case 'form': - case 'iframe': - case 'img': - case 'link': - case 'object': - case 'source': - case 'video': - (this._wrapperState = { listeners: null }), - transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this); - break; - case 'input': - ReactDOMInput.mountWrapper(this, props, hostParent), - (props = ReactDOMInput.getHostProps(this, props)), - transaction.getReactMountReady().enqueue(trackInputValue, this), - transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this); - break; - case 'option': - ReactDOMOption.mountWrapper(this, props, hostParent), - (props = ReactDOMOption.getHostProps(this, props)); - break; - case 'select': - ReactDOMSelect.mountWrapper(this, props, hostParent), - (props = ReactDOMSelect.getHostProps(this, props)), - transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this); - break; - case 'textarea': - ReactDOMTextarea.mountWrapper(this, props, hostParent), - (props = ReactDOMTextarea.getHostProps(this, props)), - transaction.getReactMountReady().enqueue(trackInputValue, this), - transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this); - } - if ( - (assertValidProps(this, props), - null != hostParent - ? ((namespaceURI = hostParent._namespaceURI), (parentTag = hostParent._tag)) - : hostContainerInfo._tag && - ((namespaceURI = hostContainerInfo._namespaceURI), - (parentTag = hostContainerInfo._tag)), - (null == namespaceURI || - (namespaceURI === DOMNamespaces.svg && 'foreignobject' === parentTag)) && - (namespaceURI = DOMNamespaces.html), - namespaceURI === DOMNamespaces.html && - ('svg' === this._tag - ? (namespaceURI = DOMNamespaces.svg) - : 'math' === this._tag && (namespaceURI = DOMNamespaces.mathml)), - (this._namespaceURI = namespaceURI), - transaction.useCreateElement) - ) { - var el, - ownerDocument = hostContainerInfo._ownerDocument; - if (namespaceURI === DOMNamespaces.html) - if ('script' === this._tag) { - var div = ownerDocument.createElement('div'), - type = this._currentElement.type; - (div.innerHTML = '<' + type + '>'), - (el = div.removeChild(div.firstChild)); - } else - el = props.is - ? ownerDocument.createElement(this._currentElement.type, props.is) - : ownerDocument.createElement(this._currentElement.type); - else el = ownerDocument.createElementNS(namespaceURI, this._currentElement.type); - ReactDOMComponentTree.precacheNode(this, el), - (this._flags |= Flags.hasCachedChildNodes), - this._hostParent || DOMPropertyOperations.setAttributeForRoot(el), - this._updateDOMProperties(null, props, transaction); - var lazyTree = DOMLazyTree(el); - this._createInitialChildren(transaction, props, context, lazyTree), - (mountImage = lazyTree); - } else { - var tagOpen = this._createOpenTagMarkupAndPutListeners(transaction, props), - tagContent = this._createContentMarkup(transaction, props, context); - mountImage = - !tagContent && omittedCloseTags[this._tag] - ? tagOpen + '/>' - : tagOpen + '>' + tagContent + ''; - } - switch (this._tag) { - case 'input': - transaction.getReactMountReady().enqueue(inputPostMount, this), - props.autoFocus && - transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this); - break; - case 'textarea': - transaction.getReactMountReady().enqueue(textareaPostMount, this), - props.autoFocus && - transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this); - break; - case 'select': - case 'button': - props.autoFocus && - transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this); - break; - case 'option': - transaction.getReactMountReady().enqueue(optionPostMount, this); - } - return mountImage; - }, - _createOpenTagMarkupAndPutListeners: function(transaction, props) { - var ret = '<' + this._currentElement.type; - for (var propKey in props) - if (props.hasOwnProperty(propKey)) { - var propValue = props[propKey]; - if (null != propValue) - if (registrationNameModules.hasOwnProperty(propKey)) - propValue && enqueuePutListener(this, propKey, propValue, transaction); - else { - 'style' === propKey && - (propValue && (propValue = this._previousStyleCopy = _assign({}, props.style)), - (propValue = CSSPropertyOperations.createMarkupForStyles(propValue, this))); - var markup = null; - null != this._tag && isCustomComponent(this._tag, props) - ? RESERVED_PROPS.hasOwnProperty(propKey) || - (markup = DOMPropertyOperations.createMarkupForCustomAttribute( - propKey, - propValue - )) - : (markup = DOMPropertyOperations.createMarkupForProperty(propKey, propValue)), - markup && (ret += ' ' + markup); - } - } - return transaction.renderToStaticMarkup - ? ret - : (this._hostParent || (ret += ' ' + DOMPropertyOperations.createMarkupForRoot()), - (ret += ' ' + DOMPropertyOperations.createMarkupForID(this._domID))); - }, - _createContentMarkup: function(transaction, props, context) { - var ret = '', - innerHTML = props.dangerouslySetInnerHTML; - if (null != innerHTML) null != innerHTML.__html && (ret = innerHTML.__html); - else { - var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null, - childrenToUse = null != contentToUse ? null : props.children; - if (null != contentToUse) ret = escapeTextContentForBrowser(contentToUse); - else if (null != childrenToUse) { - ret = this.mountChildren(childrenToUse, transaction, context).join(''); - } - } - return newlineEatingTags[this._tag] && '\n' === ret.charAt(0) ? '\n' + ret : ret; - }, - _createInitialChildren: function(transaction, props, context, lazyTree) { - var innerHTML = props.dangerouslySetInnerHTML; - if (null != innerHTML) - null != innerHTML.__html && DOMLazyTree.queueHTML(lazyTree, innerHTML.__html); - else { - var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null, - childrenToUse = null != contentToUse ? null : props.children; - if (null != contentToUse) - '' !== contentToUse && DOMLazyTree.queueText(lazyTree, contentToUse); - else if (null != childrenToUse) - for ( - var mountImages = this.mountChildren(childrenToUse, transaction, context), i = 0; - i < mountImages.length; - i++ - ) - DOMLazyTree.queueChild(lazyTree, mountImages[i]); - } - }, - receiveComponent: function(nextElement, transaction, context) { - var prevElement = this._currentElement; - (this._currentElement = nextElement), - this.updateComponent(transaction, prevElement, nextElement, context); - }, - updateComponent: function(transaction, prevElement, nextElement, context) { - var lastProps = prevElement.props, - nextProps = this._currentElement.props; - switch (this._tag) { - case 'input': - (lastProps = ReactDOMInput.getHostProps(this, lastProps)), - (nextProps = ReactDOMInput.getHostProps(this, nextProps)); - break; - case 'option': - (lastProps = ReactDOMOption.getHostProps(this, lastProps)), - (nextProps = ReactDOMOption.getHostProps(this, nextProps)); - break; - case 'select': - (lastProps = ReactDOMSelect.getHostProps(this, lastProps)), - (nextProps = ReactDOMSelect.getHostProps(this, nextProps)); - break; - case 'textarea': - (lastProps = ReactDOMTextarea.getHostProps(this, lastProps)), - (nextProps = ReactDOMTextarea.getHostProps(this, nextProps)); - } - switch ((assertValidProps(this, nextProps), - this._updateDOMProperties(lastProps, nextProps, transaction), - this._updateDOMChildren(lastProps, nextProps, transaction, context), - this._tag)) { - case 'input': - ReactDOMInput.updateWrapper(this), inputValueTracking.updateValueIfChanged(this); - break; - case 'textarea': - ReactDOMTextarea.updateWrapper(this); - break; - case 'select': - transaction.getReactMountReady().enqueue(postUpdateSelectWrapper, this); - } - }, - _updateDOMProperties: function(lastProps, nextProps, transaction) { - var propKey, styleName, styleUpdates; - for (propKey in lastProps) - if ( - !nextProps.hasOwnProperty(propKey) && - lastProps.hasOwnProperty(propKey) && - null != lastProps[propKey] - ) - if ('style' === propKey) { - var lastStyle = this._previousStyleCopy; - for (styleName in lastStyle) - lastStyle.hasOwnProperty(styleName) && - ((styleUpdates = styleUpdates || {})[styleName] = ''); - this._previousStyleCopy = null; - } else - registrationNameModules.hasOwnProperty(propKey) - ? lastProps[propKey] && deleteListener(this, propKey) - : isCustomComponent(this._tag, lastProps) - ? RESERVED_PROPS.hasOwnProperty(propKey) || - DOMPropertyOperations.deleteValueForAttribute(getNode(this), propKey) - : (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) && - DOMPropertyOperations.deleteValueForProperty(getNode(this), propKey); - for (propKey in nextProps) { - var nextProp = nextProps[propKey], - lastProp = - 'style' === propKey - ? this._previousStyleCopy - : null != lastProps ? lastProps[propKey] : void 0; - if ( - nextProps.hasOwnProperty(propKey) && - nextProp !== lastProp && - (null != nextProp || null != lastProp) - ) - if ('style' === propKey) - if ( - (nextProp - ? (nextProp = this._previousStyleCopy = _assign({}, nextProp)) - : (this._previousStyleCopy = null), - lastProp) - ) { - for (styleName in lastProp) - !lastProp.hasOwnProperty(styleName) || - (nextProp && nextProp.hasOwnProperty(styleName)) || - ((styleUpdates = styleUpdates || {})[styleName] = ''); - for (styleName in nextProp) - nextProp.hasOwnProperty(styleName) && - lastProp[styleName] !== nextProp[styleName] && - ((styleUpdates = styleUpdates || {})[styleName] = nextProp[styleName]); - } else styleUpdates = nextProp; - else if (registrationNameModules.hasOwnProperty(propKey)) - nextProp - ? enqueuePutListener(this, propKey, nextProp, transaction) - : lastProp && deleteListener(this, propKey); - else if (isCustomComponent(this._tag, nextProps)) - RESERVED_PROPS.hasOwnProperty(propKey) || - DOMPropertyOperations.setValueForAttribute(getNode(this), propKey, nextProp); - else if (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) { - var node = getNode(this); - null != nextProp - ? DOMPropertyOperations.setValueForProperty(node, propKey, nextProp) - : DOMPropertyOperations.deleteValueForProperty(node, propKey); - } - } - styleUpdates && - CSSPropertyOperations.setValueForStyles(getNode(this), styleUpdates, this); - }, - _updateDOMChildren: function(lastProps, nextProps, transaction, context) { - var lastContent = CONTENT_TYPES[typeof lastProps.children] ? lastProps.children : null, - nextContent = CONTENT_TYPES[typeof nextProps.children] ? nextProps.children : null, - lastHtml = - lastProps.dangerouslySetInnerHTML && lastProps.dangerouslySetInnerHTML.__html, - nextHtml = - nextProps.dangerouslySetInnerHTML && nextProps.dangerouslySetInnerHTML.__html, - lastChildren = null != lastContent ? null : lastProps.children, - nextChildren = null != nextContent ? null : nextProps.children, - lastHasContentOrHtml = null != lastContent || null != lastHtml, - nextHasContentOrHtml = null != nextContent || null != nextHtml; - null != lastChildren && null == nextChildren - ? this.updateChildren(null, transaction, context) - : lastHasContentOrHtml && !nextHasContentOrHtml && this.updateTextContent(''), - null != nextContent - ? lastContent !== nextContent && this.updateTextContent('' + nextContent) - : null != nextHtml - ? lastHtml !== nextHtml && this.updateMarkup('' + nextHtml) - : null != nextChildren && this.updateChildren(nextChildren, transaction, context); - }, - getHostNode: function() { - return getNode(this); - }, - unmountComponent: function(safely) { - switch (this._tag) { - case 'audio': - case 'form': - case 'iframe': - case 'img': - case 'link': - case 'object': - case 'source': - case 'video': - var listeners = this._wrapperState.listeners; - if (listeners) for (var i = 0; i < listeners.length; i++) listeners[i].remove(); - break; - case 'input': - case 'textarea': - inputValueTracking.stopTracking(this); - break; - case 'html': - case 'head': - case 'body': - _prodInvariant('66', this._tag); - } - this.unmountChildren(safely), - ReactDOMComponentTree.uncacheNode(this), - EventPluginHub.deleteAllListeners(this), - (this._rootNodeID = 0), - (this._domID = 0), - (this._wrapperState = null); - }, - getPublicInstance: function() { - return getNode(this); - } - }), - _assign(ReactDOMComponent.prototype, ReactDOMComponent.Mixin, ReactMultiChild.Mixin), - (module.exports = ReactDOMComponent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactDOMComponentTree = __webpack_require__(13), - focusNode = __webpack_require__(244), - AutoFocusUtils = { - focusDOMComponent: function() { - focusNode(ReactDOMComponentTree.getNodeFromInstance(this)); - } - }; - module.exports = AutoFocusUtils; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var CSSProperty = __webpack_require__(245), - ExecutionEnvironment = __webpack_require__(19), - dangerousStyleValue = (__webpack_require__(25), - __webpack_require__(283), - __webpack_require__(463)), - hyphenateStyleName = __webpack_require__(284), - memoizeStringOnly = __webpack_require__(285), - processStyleName = (__webpack_require__(6), - memoizeStringOnly(function(styleName) { - return hyphenateStyleName(styleName); - })), - hasShorthandPropertyBug = !1, - styleFloatAccessor = 'cssFloat'; - if (ExecutionEnvironment.canUseDOM) { - var tempStyle = document.createElement('div').style; - try { - tempStyle.font = ''; - } catch (e) { - hasShorthandPropertyBug = !0; - } - void 0 === document.documentElement.style.cssFloat && (styleFloatAccessor = 'styleFloat'); - } - var CSSPropertyOperations = { - createMarkupForStyles: function(styles, component) { - var serialized = ''; - for (var styleName in styles) - if (styles.hasOwnProperty(styleName)) { - var isCustomProperty = 0 === styleName.indexOf('--'), - styleValue = styles[styleName]; - 0, - null != styleValue && - ((serialized += processStyleName(styleName) + ':'), - (serialized += - dangerousStyleValue(styleName, styleValue, component, isCustomProperty) + ';')); - } - return serialized || null; - }, - setValueForStyles: function(node, styles, component) { - var style = node.style; - for (var styleName in styles) - if (styles.hasOwnProperty(styleName)) { - var isCustomProperty = 0 === styleName.indexOf('--'); - 0; - var styleValue = dangerousStyleValue( - styleName, - styles[styleName], - component, - isCustomProperty - ); - if ( - (('float' !== styleName && 'cssFloat' !== styleName) || - (styleName = styleFloatAccessor), - isCustomProperty) - ) - style.setProperty(styleName, styleValue); - else if (styleValue) style[styleName] = styleValue; - else { - var expansion = - hasShorthandPropertyBug && CSSProperty.shorthandPropertyExpansions[styleName]; - if (expansion) - for (var individualStyleName in expansion) style[individualStyleName] = ''; - else style[styleName] = ''; - } - } - } - }; - module.exports = CSSPropertyOperations; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _hyphenPattern = /-(.)/g; - module.exports = function camelize(string) { - return string.replace(_hyphenPattern, function(_, character) { - return character.toUpperCase(); - }); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var CSSProperty = __webpack_require__(245), - isUnitlessNumber = (__webpack_require__(6), CSSProperty.isUnitlessNumber); - module.exports = function dangerousStyleValue(name, value, component, isCustomProperty) { - if (null == value || 'boolean' == typeof value || '' === value) return ''; - var isNonNumeric = isNaN(value); - return isCustomProperty || - isNonNumeric || - 0 === value || - (isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]) - ? '' + value - : ('string' == typeof value && (value = value.trim()), value + 'px'); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _uppercasePattern = /([A-Z])/g; - module.exports = function hyphenate(string) { - return string.replace(_uppercasePattern, '-$1').toLowerCase(); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var escapeTextContentForBrowser = __webpack_require__(101); - module.exports = function quoteAttributeValueForBrowser(value) { - return '"' + escapeTextContentForBrowser(value) + '"'; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var EventPluginHub = __webpack_require__(80); - var ReactEventEmitterMixin = { - handleTopLevel: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - !(function runEventQueueInBatch(events) { - EventPluginHub.enqueueEvents(events), EventPluginHub.processEventQueue(!1); - })(EventPluginHub.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget)); - } - }; - module.exports = ReactEventEmitterMixin; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ExecutionEnvironment = __webpack_require__(19); - function makePrefixMap(styleProp, eventName) { - var prefixes = {}; - return ( - (prefixes[styleProp.toLowerCase()] = eventName.toLowerCase()), - (prefixes['Webkit' + styleProp] = 'webkit' + eventName), - (prefixes['Moz' + styleProp] = 'moz' + eventName), - (prefixes['ms' + styleProp] = 'MS' + eventName), - (prefixes['O' + styleProp] = 'o' + eventName.toLowerCase()), - prefixes - ); - } - var vendorPrefixes = { - animationend: makePrefixMap('Animation', 'AnimationEnd'), - animationiteration: makePrefixMap('Animation', 'AnimationIteration'), - animationstart: makePrefixMap('Animation', 'AnimationStart'), - transitionend: makePrefixMap('Transition', 'TransitionEnd') - }, - prefixedEventNames = {}, - style = {}; - ExecutionEnvironment.canUseDOM && - ((style = document.createElement('div').style), - 'AnimationEvent' in window || - (delete vendorPrefixes.animationend.animation, - delete vendorPrefixes.animationiteration.animation, - delete vendorPrefixes.animationstart.animation), - 'TransitionEvent' in window || delete vendorPrefixes.transitionend.transition), - (module.exports = function getVendorPrefixedEventName(eventName) { - if (prefixedEventNames[eventName]) return prefixedEventNames[eventName]; - if (!vendorPrefixes[eventName]) return eventName; - var prefixMap = vendorPrefixes[eventName]; - for (var styleProp in prefixMap) - if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) - return (prefixedEventNames[eventName] = prefixMap[styleProp]); - return ''; - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - _assign = __webpack_require__(9), - DOMPropertyOperations = __webpack_require__(246), - LinkedValueUtils = __webpack_require__(162), - ReactDOMComponentTree = __webpack_require__(13), - ReactUpdates = __webpack_require__(30); - __webpack_require__(3), __webpack_require__(6); - function forceUpdateIfMounted() { - this._rootNodeID && ReactDOMInput.updateWrapper(this); - } - function isControlled(props) { - return 'checkbox' === props.type || 'radio' === props.type - ? null != props.checked - : null != props.value; - } - var ReactDOMInput = { - getHostProps: function(inst, props) { - var value = LinkedValueUtils.getValue(props), - checked = LinkedValueUtils.getChecked(props); - return _assign({ type: void 0, step: void 0, min: void 0, max: void 0 }, props, { - defaultChecked: void 0, - defaultValue: void 0, - value: null != value ? value : inst._wrapperState.initialValue, - checked: null != checked ? checked : inst._wrapperState.initialChecked, - onChange: inst._wrapperState.onChange - }); - }, - mountWrapper: function(inst, props) { - var defaultValue = props.defaultValue; - inst._wrapperState = { - initialChecked: null != props.checked ? props.checked : props.defaultChecked, - initialValue: null != props.value ? props.value : defaultValue, - listeners: null, - onChange: function _handleChange(event) { - var props = this._currentElement.props, - returnValue = LinkedValueUtils.executeOnChange(props, event); - ReactUpdates.asap(forceUpdateIfMounted, this); - var name = props.name; - if ('radio' === props.type && null != name) { - for ( - var rootNode = ReactDOMComponentTree.getNodeFromInstance(this), - queryRoot = rootNode; - queryRoot.parentNode; - - ) - queryRoot = queryRoot.parentNode; - for ( - var group = queryRoot.querySelectorAll( - 'input[name=' + JSON.stringify('' + name) + '][type="radio"]' - ), - i = 0; - i < group.length; - i++ - ) { - var otherNode = group[i]; - if (otherNode !== rootNode && otherNode.form === rootNode.form) { - var otherInstance = ReactDOMComponentTree.getInstanceFromNode(otherNode); - otherInstance || _prodInvariant('90'), - ReactUpdates.asap(forceUpdateIfMounted, otherInstance); - } - } - } - return returnValue; - }.bind(inst), - controlled: isControlled(props) - }; - }, - updateWrapper: function(inst) { - var props = inst._currentElement.props, - checked = props.checked; - null != checked && - DOMPropertyOperations.setValueForProperty( - ReactDOMComponentTree.getNodeFromInstance(inst), - 'checked', - checked || !1 - ); - var node = ReactDOMComponentTree.getNodeFromInstance(inst), - value = LinkedValueUtils.getValue(props); - if (null != value) - if (0 === value && '' === node.value) node.value = '0'; - else if ('number' === props.type) { - var valueAsNumber = parseFloat(node.value, 10) || 0; - (value != valueAsNumber || (value == valueAsNumber && node.value != value)) && - (node.value = '' + value); - } else node.value !== '' + value && (node.value = '' + value); - else - null == props.value && - null != props.defaultValue && - node.defaultValue !== '' + props.defaultValue && - (node.defaultValue = '' + props.defaultValue), - null == props.checked && - null != props.defaultChecked && - (node.defaultChecked = !!props.defaultChecked); - }, - postMountWrapper: function(inst) { - var props = inst._currentElement.props, - node = ReactDOMComponentTree.getNodeFromInstance(inst); - switch (props.type) { - case 'submit': - case 'reset': - break; - case 'color': - case 'date': - case 'datetime': - case 'datetime-local': - case 'month': - case 'time': - case 'week': - (node.value = ''), (node.value = node.defaultValue); - break; - default: - node.value = node.value; - } - var name = node.name; - '' !== name && (node.name = ''), - (node.defaultChecked = !node.defaultChecked), - (node.defaultChecked = !node.defaultChecked), - '' !== name && (node.name = name); - } - }; - module.exports = ReactDOMInput; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - React = __webpack_require__(56), - ReactDOMComponentTree = __webpack_require__(13), - ReactDOMSelect = __webpack_require__(247), - didWarnInvalidOptionChildren = (__webpack_require__(6), !1); - function flattenChildren(children) { - var content = ''; - return ( - React.Children.forEach(children, function(child) { - null != child && - ('string' == typeof child || 'number' == typeof child - ? (content += child) - : didWarnInvalidOptionChildren || (didWarnInvalidOptionChildren = !0)); - }), - content - ); - } - var ReactDOMOption = { - mountWrapper: function(inst, props, hostParent) { - var selectValue = null; - if (null != hostParent) { - var selectParent = hostParent; - 'optgroup' === selectParent._tag && (selectParent = selectParent._hostParent), - null != selectParent && - 'select' === selectParent._tag && - (selectValue = ReactDOMSelect.getSelectValueContext(selectParent)); - } - var value, - selected = null; - if (null != selectValue) - if ( - ((value = null != props.value ? props.value + '' : flattenChildren(props.children)), - (selected = !1), - Array.isArray(selectValue)) - ) { - for (var i = 0; i < selectValue.length; i++) - if ('' + selectValue[i] === value) { - selected = !0; - break; - } - } else selected = '' + selectValue === value; - inst._wrapperState = { selected: selected }; - }, - postMountWrapper: function(inst) { - var props = inst._currentElement.props; - null != props.value && - ReactDOMComponentTree.getNodeFromInstance(inst).setAttribute('value', props.value); - }, - getHostProps: function(inst, props) { - var hostProps = _assign({ selected: void 0, children: void 0 }, props); - null != inst._wrapperState.selected && (hostProps.selected = inst._wrapperState.selected); - var content = flattenChildren(props.children); - return content && (hostProps.children = content), hostProps; - } - }; - module.exports = ReactDOMOption; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - _assign = __webpack_require__(9), - LinkedValueUtils = __webpack_require__(162), - ReactDOMComponentTree = __webpack_require__(13), - ReactUpdates = __webpack_require__(30); - __webpack_require__(3), __webpack_require__(6); - function forceUpdateIfMounted() { - this._rootNodeID && ReactDOMTextarea.updateWrapper(this); - } - var ReactDOMTextarea = { - getHostProps: function(inst, props) { - return ( - null != props.dangerouslySetInnerHTML && _prodInvariant('91'), - _assign({}, props, { - value: void 0, - defaultValue: void 0, - children: '' + inst._wrapperState.initialValue, - onChange: inst._wrapperState.onChange - }) - ); - }, - mountWrapper: function(inst, props) { - var value = LinkedValueUtils.getValue(props), - initialValue = value; - if (null == value) { - var defaultValue = props.defaultValue, - children = props.children; - null != children && - (null != defaultValue && _prodInvariant('92'), - Array.isArray(children) && - (children.length <= 1 || _prodInvariant('93'), (children = children[0])), - (defaultValue = '' + children)), - null == defaultValue && (defaultValue = ''), - (initialValue = defaultValue); - } - inst._wrapperState = { - initialValue: '' + initialValue, - listeners: null, - onChange: function _handleChange(event) { - var props = this._currentElement.props, - returnValue = LinkedValueUtils.executeOnChange(props, event); - return ReactUpdates.asap(forceUpdateIfMounted, this), returnValue; - }.bind(inst) - }; - }, - updateWrapper: function(inst) { - var props = inst._currentElement.props, - node = ReactDOMComponentTree.getNodeFromInstance(inst), - value = LinkedValueUtils.getValue(props); - if (null != value) { - var newValue = '' + value; - newValue !== node.value && (node.value = newValue), - null == props.defaultValue && (node.defaultValue = newValue); - } - null != props.defaultValue && (node.defaultValue = props.defaultValue); - }, - postMountWrapper: function(inst) { - var node = ReactDOMComponentTree.getNodeFromInstance(inst), - textContent = node.textContent; - textContent === inst._wrapperState.initialValue && (node.value = textContent); - } - }; - module.exports = ReactDOMTextarea; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - ReactComponentEnvironment = __webpack_require__(163), - ReactReconciler = (__webpack_require__(82), - __webpack_require__(25), - __webpack_require__(32), - __webpack_require__(61)), - ReactChildReconciler = __webpack_require__(473), - flattenChildren = (__webpack_require__(22), __webpack_require__(478)); - __webpack_require__(3); - function enqueue(queue, update) { - return update && (queue = queue || []).push(update), queue; - } - function processQueue(inst, updateQueue) { - ReactComponentEnvironment.processChildrenUpdates(inst, updateQueue); - } - var ReactMultiChild = { - Mixin: { - _reconcilerInstantiateChildren: function(nestedChildren, transaction, context) { - return ReactChildReconciler.instantiateChildren(nestedChildren, transaction, context); - }, - _reconcilerUpdateChildren: function( - prevChildren, - nextNestedChildrenElements, - mountImages, - removedNodes, - transaction, - context - ) { - var nextChildren, - selfDebugID = 0; - return ( - (nextChildren = flattenChildren(nextNestedChildrenElements, selfDebugID)), - ReactChildReconciler.updateChildren( - prevChildren, - nextChildren, - mountImages, - removedNodes, - transaction, - this, - this._hostContainerInfo, - context, - selfDebugID - ), - nextChildren - ); - }, - mountChildren: function(nestedChildren, transaction, context) { - var children = this._reconcilerInstantiateChildren(nestedChildren, transaction, context); - this._renderedChildren = children; - var mountImages = [], - index = 0; - for (var name in children) - if (children.hasOwnProperty(name)) { - var child = children[name], - selfDebugID = 0; - 0; - var mountImage = ReactReconciler.mountComponent( - child, - transaction, - this, - this._hostContainerInfo, - context, - selfDebugID - ); - (child._mountIndex = index++), mountImages.push(mountImage); - } - return mountImages; - }, - updateTextContent: function(nextContent) { - var prevChildren = this._renderedChildren; - ReactChildReconciler.unmountChildren(prevChildren, !1); - for (var name in prevChildren) prevChildren.hasOwnProperty(name) && _prodInvariant('118'); - processQueue(this, [ - (function makeTextContent(textContent) { - return { - type: 'TEXT_CONTENT', - content: textContent, - fromIndex: null, - fromNode: null, - toIndex: null, - afterNode: null - }; - })(nextContent) - ]); - }, - updateMarkup: function(nextMarkup) { - var prevChildren = this._renderedChildren; - ReactChildReconciler.unmountChildren(prevChildren, !1); - for (var name in prevChildren) prevChildren.hasOwnProperty(name) && _prodInvariant('118'); - processQueue(this, [ - (function makeSetMarkup(markup) { - return { - type: 'SET_MARKUP', - content: markup, - fromIndex: null, - fromNode: null, - toIndex: null, - afterNode: null - }; - })(nextMarkup) - ]); - }, - updateChildren: function(nextNestedChildrenElements, transaction, context) { - this._updateChildren(nextNestedChildrenElements, transaction, context); - }, - _updateChildren: function(nextNestedChildrenElements, transaction, context) { - var prevChildren = this._renderedChildren, - removedNodes = {}, - mountImages = [], - nextChildren = this._reconcilerUpdateChildren( - prevChildren, - nextNestedChildrenElements, - mountImages, - removedNodes, - transaction, - context - ); - if (nextChildren || prevChildren) { - var name, - updates = null, - nextIndex = 0, - lastIndex = 0, - nextMountIndex = 0, - lastPlacedNode = null; - for (name in nextChildren) - if (nextChildren.hasOwnProperty(name)) { - var prevChild = prevChildren && prevChildren[name], - nextChild = nextChildren[name]; - prevChild === nextChild - ? ((updates = enqueue( - updates, - this.moveChild(prevChild, lastPlacedNode, nextIndex, lastIndex) - )), - (lastIndex = Math.max(prevChild._mountIndex, lastIndex)), - (prevChild._mountIndex = nextIndex)) - : (prevChild && (lastIndex = Math.max(prevChild._mountIndex, lastIndex)), - (updates = enqueue( - updates, - this._mountChildAtIndex( - nextChild, - mountImages[nextMountIndex], - lastPlacedNode, - nextIndex, - transaction, - context - ) - )), - nextMountIndex++), - nextIndex++, - (lastPlacedNode = ReactReconciler.getHostNode(nextChild)); - } - for (name in removedNodes) - removedNodes.hasOwnProperty(name) && - (updates = enqueue( - updates, - this._unmountChild(prevChildren[name], removedNodes[name]) - )); - updates && processQueue(this, updates), (this._renderedChildren = nextChildren); - } - }, - unmountChildren: function(safely) { - var renderedChildren = this._renderedChildren; - ReactChildReconciler.unmountChildren(renderedChildren, safely), - (this._renderedChildren = null); - }, - moveChild: function(child, afterNode, toIndex, lastIndex) { - if (child._mountIndex < lastIndex) - return (function makeMove(child, afterNode, toIndex) { - return { - type: 'MOVE_EXISTING', - content: null, - fromIndex: child._mountIndex, - fromNode: ReactReconciler.getHostNode(child), - toIndex: toIndex, - afterNode: afterNode - }; - })(child, afterNode, toIndex); - }, - createChild: function(child, afterNode, mountImage) { - return (function makeInsertMarkup(markup, afterNode, toIndex) { - return { - type: 'INSERT_MARKUP', - content: markup, - fromIndex: null, - fromNode: null, - toIndex: toIndex, - afterNode: afterNode - }; - })(mountImage, afterNode, child._mountIndex); - }, - removeChild: function(child, node) { - return (function makeRemove(child, node) { - return { - type: 'REMOVE_NODE', - content: null, - fromIndex: child._mountIndex, - fromNode: node, - toIndex: null, - afterNode: null - }; - })(child, node); - }, - _mountChildAtIndex: function(child, mountImage, afterNode, index, transaction, context) { - return (child._mountIndex = index), this.createChild(child, afterNode, mountImage); - }, - _unmountChild: function(child, node) { - var update = this.removeChild(child, node); - return (child._mountIndex = null), update; - } - } - }; - module.exports = ReactMultiChild; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - (function(process) { - var ReactReconciler = __webpack_require__(61), - instantiateReactComponent = __webpack_require__(248), - shouldUpdateReactComponent = (__webpack_require__(166), __webpack_require__(165)), - traverseAllChildren = __webpack_require__(252); - __webpack_require__(6); - function instantiateChild(childInstances, child, name, selfDebugID) { - var keyUnique = void 0 === childInstances[name]; - null != child && keyUnique && (childInstances[name] = instantiateReactComponent(child, !0)); - } - void 0 !== process && Object({ NODE_ENV: 'production', PUBLIC_URL: '.' }); - var ReactChildReconciler = { - instantiateChildren: function(nestedChildNodes, transaction, context, selfDebugID) { - if (null == nestedChildNodes) return null; - var childInstances = {}; - return ( - traverseAllChildren(nestedChildNodes, instantiateChild, childInstances), childInstances - ); - }, - updateChildren: function( - prevChildren, - nextChildren, - mountImages, - removedNodes, - transaction, - hostParent, - hostContainerInfo, - context, - selfDebugID - ) { - if (nextChildren || prevChildren) { - var name, prevChild; - for (name in nextChildren) - if (nextChildren.hasOwnProperty(name)) { - var prevElement = - (prevChild = prevChildren && prevChildren[name]) && prevChild._currentElement, - nextElement = nextChildren[name]; - if (null != prevChild && shouldUpdateReactComponent(prevElement, nextElement)) - ReactReconciler.receiveComponent(prevChild, nextElement, transaction, context), - (nextChildren[name] = prevChild); - else { - prevChild && - ((removedNodes[name] = ReactReconciler.getHostNode(prevChild)), - ReactReconciler.unmountComponent(prevChild, !1)); - var nextChildInstance = instantiateReactComponent(nextElement, !0); - nextChildren[name] = nextChildInstance; - var nextChildMountImage = ReactReconciler.mountComponent( - nextChildInstance, - transaction, - hostParent, - hostContainerInfo, - context, - selfDebugID - ); - mountImages.push(nextChildMountImage); - } - } - for (name in prevChildren) - !prevChildren.hasOwnProperty(name) || - (nextChildren && nextChildren.hasOwnProperty(name)) || - ((prevChild = prevChildren[name]), - (removedNodes[name] = ReactReconciler.getHostNode(prevChild)), - ReactReconciler.unmountComponent(prevChild, !1)); - } - }, - unmountChildren: function(renderedChildren, safely) { - for (var name in renderedChildren) - if (renderedChildren.hasOwnProperty(name)) { - var renderedChild = renderedChildren[name]; - ReactReconciler.unmountComponent(renderedChild, safely); - } - } - }; - module.exports = ReactChildReconciler; - }.call(exports, __webpack_require__(134))); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - _assign = __webpack_require__(9), - React = __webpack_require__(56), - ReactComponentEnvironment = __webpack_require__(163), - ReactCurrentOwner = __webpack_require__(32), - ReactErrorUtils = __webpack_require__(155), - ReactInstanceMap = __webpack_require__(82), - ReactNodeTypes = (__webpack_require__(25), __webpack_require__(249)), - ReactReconciler = __webpack_require__(61), - emptyObject = __webpack_require__(93), - shallowEqual = (__webpack_require__(3), __webpack_require__(164)), - shouldUpdateReactComponent = __webpack_require__(165), - CompositeTypes_ImpureClass = (__webpack_require__(6), 0), - CompositeTypes_PureClass = 1, - CompositeTypes_StatelessFunctional = 2; - function StatelessComponent(Component) {} - function warnIfInvalidElement(Component, element) { - 0; - } - StatelessComponent.prototype.render = function() { - var Component = ReactInstanceMap.get(this)._currentElement.type, - element = Component(this.props, this.context, this.updater); - return warnIfInvalidElement(Component, element), element; - }; - var nextMountID = 1, - ReactCompositeComponent = { - construct: function(element) { - (this._currentElement = element), - (this._rootNodeID = 0), - (this._compositeType = null), - (this._instance = null), - (this._hostParent = null), - (this._hostContainerInfo = null), - (this._updateBatchNumber = null), - (this._pendingElement = null), - (this._pendingStateQueue = null), - (this._pendingReplaceState = !1), - (this._pendingForceUpdate = !1), - (this._renderedNodeType = null), - (this._renderedComponent = null), - (this._context = null), - (this._mountOrder = 0), - (this._topLevelWrapper = null), - (this._pendingCallbacks = null), - (this._calledComponentWillUnmount = !1); - }, - mountComponent: function(transaction, hostParent, hostContainerInfo, context) { - (this._context = context), - (this._mountOrder = nextMountID++), - (this._hostParent = hostParent), - (this._hostContainerInfo = hostContainerInfo); - var renderedElement, - publicProps = this._currentElement.props, - publicContext = this._processContext(context), - Component = this._currentElement.type, - updateQueue = transaction.getUpdateQueue(), - doConstruct = (function shouldConstruct(Component) { - return !(!Component.prototype || !Component.prototype.isReactComponent); - })(Component), - inst = this._constructComponent(doConstruct, publicProps, publicContext, updateQueue); - doConstruct || (null != inst && null != inst.render) - ? !(function isPureComponent(Component) { - return !(!Component.prototype || !Component.prototype.isPureReactComponent); - })(Component) - ? (this._compositeType = CompositeTypes_ImpureClass) - : (this._compositeType = CompositeTypes_PureClass) - : ((renderedElement = inst), - warnIfInvalidElement(), - null === inst || - !1 === inst || - React.isValidElement(inst) || - _prodInvariant('105', Component.displayName || Component.name || 'Component'), - (inst = new StatelessComponent(Component)), - (this._compositeType = CompositeTypes_StatelessFunctional)), - (inst.props = publicProps), - (inst.context = publicContext), - (inst.refs = emptyObject), - (inst.updater = updateQueue), - (this._instance = inst), - ReactInstanceMap.set(inst, this); - var markup, - initialState = inst.state; - return ( - void 0 === initialState && (inst.state = initialState = null), - ('object' != typeof initialState || Array.isArray(initialState)) && - _prodInvariant('106', this.getName() || 'ReactCompositeComponent'), - (this._pendingStateQueue = null), - (this._pendingReplaceState = !1), - (this._pendingForceUpdate = !1), - (markup = inst.unstable_handleError - ? this.performInitialMountWithErrorHandling( - renderedElement, - hostParent, - hostContainerInfo, - transaction, - context - ) - : this.performInitialMount( - renderedElement, - hostParent, - hostContainerInfo, - transaction, - context - )), - inst.componentDidMount && - transaction.getReactMountReady().enqueue(inst.componentDidMount, inst), - markup - ); - }, - _constructComponent: function(doConstruct, publicProps, publicContext, updateQueue) { - return this._constructComponentWithoutOwner( - doConstruct, - publicProps, - publicContext, - updateQueue - ); - }, - _constructComponentWithoutOwner: function( - doConstruct, - publicProps, - publicContext, - updateQueue - ) { - var Component = this._currentElement.type; - return doConstruct - ? new Component(publicProps, publicContext, updateQueue) - : Component(publicProps, publicContext, updateQueue); - }, - performInitialMountWithErrorHandling: function( - renderedElement, - hostParent, - hostContainerInfo, - transaction, - context - ) { - var markup, - checkpoint = transaction.checkpoint(); - try { - markup = this.performInitialMount( - renderedElement, - hostParent, - hostContainerInfo, - transaction, - context - ); - } catch (e) { - transaction.rollback(checkpoint), - this._instance.unstable_handleError(e), - this._pendingStateQueue && - (this._instance.state = this._processPendingState( - this._instance.props, - this._instance.context - )), - (checkpoint = transaction.checkpoint()), - this._renderedComponent.unmountComponent(!0), - transaction.rollback(checkpoint), - (markup = this.performInitialMount( - renderedElement, - hostParent, - hostContainerInfo, - transaction, - context - )); - } - return markup; - }, - performInitialMount: function( - renderedElement, - hostParent, - hostContainerInfo, - transaction, - context - ) { - var inst = this._instance, - debugID = 0; - inst.componentWillMount && - (inst.componentWillMount(), - this._pendingStateQueue && - (inst.state = this._processPendingState(inst.props, inst.context))), - void 0 === renderedElement && (renderedElement = this._renderValidatedComponent()); - var nodeType = ReactNodeTypes.getType(renderedElement); - this._renderedNodeType = nodeType; - var child = this._instantiateReactComponent( - renderedElement, - nodeType !== ReactNodeTypes.EMPTY - ); - return ( - (this._renderedComponent = child), - ReactReconciler.mountComponent( - child, - transaction, - hostParent, - hostContainerInfo, - this._processChildContext(context), - debugID - ) - ); - }, - getHostNode: function() { - return ReactReconciler.getHostNode(this._renderedComponent); - }, - unmountComponent: function(safely) { - if (this._renderedComponent) { - var inst = this._instance; - if (inst.componentWillUnmount && !inst._calledComponentWillUnmount) - if (((inst._calledComponentWillUnmount = !0), safely)) { - var name = this.getName() + '.componentWillUnmount()'; - ReactErrorUtils.invokeGuardedCallback(name, inst.componentWillUnmount.bind(inst)); - } else inst.componentWillUnmount(); - this._renderedComponent && - (ReactReconciler.unmountComponent(this._renderedComponent, safely), - (this._renderedNodeType = null), - (this._renderedComponent = null), - (this._instance = null)), - (this._pendingStateQueue = null), - (this._pendingReplaceState = !1), - (this._pendingForceUpdate = !1), - (this._pendingCallbacks = null), - (this._pendingElement = null), - (this._context = null), - (this._rootNodeID = 0), - (this._topLevelWrapper = null), - ReactInstanceMap.remove(inst); - } - }, - _maskContext: function(context) { - var contextTypes = this._currentElement.type.contextTypes; - if (!contextTypes) return emptyObject; - var maskedContext = {}; - for (var contextName in contextTypes) maskedContext[contextName] = context[contextName]; - return maskedContext; - }, - _processContext: function(context) { - var maskedContext = this._maskContext(context); - return maskedContext; - }, - _processChildContext: function(currentContext) { - var childContext, - Component = this._currentElement.type, - inst = this._instance; - if ((inst.getChildContext && (childContext = inst.getChildContext()), childContext)) { - 'object' != typeof Component.childContextTypes && - _prodInvariant('107', this.getName() || 'ReactCompositeComponent'); - for (var name in childContext) - name in Component.childContextTypes || - _prodInvariant('108', this.getName() || 'ReactCompositeComponent', name); - return _assign({}, currentContext, childContext); - } - return currentContext; - }, - _checkContextTypes: function(typeSpecs, values, location) { - 0; - }, - receiveComponent: function(nextElement, transaction, nextContext) { - var prevElement = this._currentElement, - prevContext = this._context; - (this._pendingElement = null), - this.updateComponent(transaction, prevElement, nextElement, prevContext, nextContext); - }, - performUpdateIfNecessary: function(transaction) { - null != this._pendingElement - ? ReactReconciler.receiveComponent( - this, - this._pendingElement, - transaction, - this._context - ) - : null !== this._pendingStateQueue || this._pendingForceUpdate - ? this.updateComponent( - transaction, - this._currentElement, - this._currentElement, - this._context, - this._context - ) - : (this._updateBatchNumber = null); - }, - updateComponent: function( - transaction, - prevParentElement, - nextParentElement, - prevUnmaskedContext, - nextUnmaskedContext - ) { - var inst = this._instance; - null == inst && _prodInvariant('136', this.getName() || 'ReactCompositeComponent'); - var nextContext, - willReceive = !1; - this._context === nextUnmaskedContext - ? (nextContext = inst.context) - : ((nextContext = this._processContext(nextUnmaskedContext)), (willReceive = !0)); - var prevProps = prevParentElement.props, - nextProps = nextParentElement.props; - prevParentElement !== nextParentElement && (willReceive = !0), - willReceive && - inst.componentWillReceiveProps && - inst.componentWillReceiveProps(nextProps, nextContext); - var nextState = this._processPendingState(nextProps, nextContext), - shouldUpdate = !0; - this._pendingForceUpdate || - (inst.shouldComponentUpdate - ? (shouldUpdate = inst.shouldComponentUpdate(nextProps, nextState, nextContext)) - : this._compositeType === CompositeTypes_PureClass && - (shouldUpdate = - !shallowEqual(prevProps, nextProps) || !shallowEqual(inst.state, nextState))), - (this._updateBatchNumber = null), - shouldUpdate - ? ((this._pendingForceUpdate = !1), - this._performComponentUpdate( - nextParentElement, - nextProps, - nextState, - nextContext, - transaction, - nextUnmaskedContext - )) - : ((this._currentElement = nextParentElement), - (this._context = nextUnmaskedContext), - (inst.props = nextProps), - (inst.state = nextState), - (inst.context = nextContext)); - }, - _processPendingState: function(props, context) { - var inst = this._instance, - queue = this._pendingStateQueue, - replace = this._pendingReplaceState; - if (((this._pendingReplaceState = !1), (this._pendingStateQueue = null), !queue)) - return inst.state; - if (replace && 1 === queue.length) return queue[0]; - for ( - var nextState = _assign({}, replace ? queue[0] : inst.state), i = replace ? 1 : 0; - i < queue.length; - i++ - ) { - var partial = queue[i]; - _assign( - nextState, - 'function' == typeof partial ? partial.call(inst, nextState, props, context) : partial - ); - } - return nextState; - }, - _performComponentUpdate: function( - nextElement, - nextProps, - nextState, - nextContext, - transaction, - unmaskedContext - ) { - var prevProps, - prevState, - prevContext, - inst = this._instance, - hasComponentDidUpdate = Boolean(inst.componentDidUpdate); - hasComponentDidUpdate && - ((prevProps = inst.props), (prevState = inst.state), (prevContext = inst.context)), - inst.componentWillUpdate && inst.componentWillUpdate(nextProps, nextState, nextContext), - (this._currentElement = nextElement), - (this._context = unmaskedContext), - (inst.props = nextProps), - (inst.state = nextState), - (inst.context = nextContext), - this._updateRenderedComponent(transaction, unmaskedContext), - hasComponentDidUpdate && - transaction - .getReactMountReady() - .enqueue( - inst.componentDidUpdate.bind(inst, prevProps, prevState, prevContext), - inst - ); - }, - _updateRenderedComponent: function(transaction, context) { - var prevComponentInstance = this._renderedComponent, - prevRenderedElement = prevComponentInstance._currentElement, - nextRenderedElement = this._renderValidatedComponent(), - debugID = 0; - if (shouldUpdateReactComponent(prevRenderedElement, nextRenderedElement)) - ReactReconciler.receiveComponent( - prevComponentInstance, - nextRenderedElement, - transaction, - this._processChildContext(context) - ); - else { - var oldHostNode = ReactReconciler.getHostNode(prevComponentInstance); - ReactReconciler.unmountComponent(prevComponentInstance, !1); - var nodeType = ReactNodeTypes.getType(nextRenderedElement); - this._renderedNodeType = nodeType; - var child = this._instantiateReactComponent( - nextRenderedElement, - nodeType !== ReactNodeTypes.EMPTY - ); - this._renderedComponent = child; - var nextMarkup = ReactReconciler.mountComponent( - child, - transaction, - this._hostParent, - this._hostContainerInfo, - this._processChildContext(context), - debugID - ); - this._replaceNodeWithMarkup(oldHostNode, nextMarkup, prevComponentInstance); - } - }, - _replaceNodeWithMarkup: function(oldHostNode, nextMarkup, prevInstance) { - ReactComponentEnvironment.replaceNodeWithMarkup(oldHostNode, nextMarkup, prevInstance); - }, - _renderValidatedComponentWithoutOwnerOrContext: function() { - var inst = this._instance; - return inst.render(); - }, - _renderValidatedComponent: function() { - var renderedElement; - if (this._compositeType !== CompositeTypes_StatelessFunctional) { - ReactCurrentOwner.current = this; - try { - renderedElement = this._renderValidatedComponentWithoutOwnerOrContext(); - } finally { - ReactCurrentOwner.current = null; - } - } else renderedElement = this._renderValidatedComponentWithoutOwnerOrContext(); - return ( - null === renderedElement || - !1 === renderedElement || - React.isValidElement(renderedElement) || - _prodInvariant('109', this.getName() || 'ReactCompositeComponent'), - renderedElement - ); - }, - attachRef: function(ref, component) { - var inst = this.getPublicInstance(); - null == inst && _prodInvariant('110'); - var publicComponentInstance = component.getPublicInstance(); - (inst.refs === emptyObject ? (inst.refs = {}) : inst.refs)[ref] = publicComponentInstance; - }, - detachRef: function(ref) { - delete this.getPublicInstance().refs[ref]; - }, - getName: function() { - var type = this._currentElement.type, - constructor = this._instance && this._instance.constructor; - return ( - type.displayName || - (constructor && constructor.displayName) || - type.name || - (constructor && constructor.name) || - null - ); - }, - getPublicInstance: function() { - var inst = this._instance; - return this._compositeType === CompositeTypes_StatelessFunctional ? null : inst; - }, - _instantiateReactComponent: null - }; - module.exports = ReactCompositeComponent; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var nextDebugID = 1; - module.exports = function getNextDebugID() { - return nextDebugID++; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var REACT_ELEMENT_TYPE = - ('function' == typeof Symbol && Symbol.for && Symbol.for('react.element')) || 60103; - module.exports = REACT_ELEMENT_TYPE; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ITERATOR_SYMBOL = 'function' == typeof Symbol && Symbol.iterator, - FAUX_ITERATOR_SYMBOL = '@@iterator'; - module.exports = function getIteratorFn(maybeIterable) { - var iteratorFn = - maybeIterable && - ((ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL]) || - maybeIterable[FAUX_ITERATOR_SYMBOL]); - if ('function' == typeof iteratorFn) return iteratorFn; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - (function(process) { - __webpack_require__(166); - var traverseAllChildren = __webpack_require__(252); - __webpack_require__(6); - function flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID) { - if (traverseContext && 'object' == typeof traverseContext) { - var result = traverseContext, - keyUnique = void 0 === result[name]; - 0, keyUnique && null != child && (result[name] = child); - } - } - void 0 !== process && Object({ NODE_ENV: 'production', PUBLIC_URL: '.' }), - (module.exports = function flattenChildren(children, selfDebugID) { - if (null == children) return children; - var result = {}; - return traverseAllChildren(children, flattenSingleChildIntoContext, result), result; - }); - }.call(exports, __webpack_require__(134))); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - PooledClass = __webpack_require__(47), - Transaction = __webpack_require__(98), - ReactServerUpdateQueue = (__webpack_require__(25), __webpack_require__(480)), - TRANSACTION_WRAPPERS = []; - var noopCallbackQueue = { enqueue: function() {} }; - function ReactServerRenderingTransaction(renderToStaticMarkup) { - this.reinitializeTransaction(), - (this.renderToStaticMarkup = renderToStaticMarkup), - (this.useCreateElement = !1), - (this.updateQueue = new ReactServerUpdateQueue(this)); - } - var Mixin = { - getTransactionWrappers: function() { - return TRANSACTION_WRAPPERS; - }, - getReactMountReady: function() { - return noopCallbackQueue; - }, - getUpdateQueue: function() { - return this.updateQueue; - }, - destructor: function() {}, - checkpoint: function() {}, - rollback: function() {} - }; - _assign(ReactServerRenderingTransaction.prototype, Transaction, Mixin), - PooledClass.addPoolingTo(ReactServerRenderingTransaction), - (module.exports = ReactServerRenderingTransaction); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactUpdateQueue = __webpack_require__(167); - __webpack_require__(6); - var ReactServerUpdateQueue = (function() { - function ReactServerUpdateQueue(transaction) { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, ReactServerUpdateQueue), - (this.transaction = transaction); - } - return ( - (ReactServerUpdateQueue.prototype.isMounted = function isMounted(publicInstance) { - return !1; - }), - (ReactServerUpdateQueue.prototype.enqueueCallback = function enqueueCallback( - publicInstance, - callback, - callerName - ) { - this.transaction.isInTransaction() && - ReactUpdateQueue.enqueueCallback(publicInstance, callback, callerName); - }), - (ReactServerUpdateQueue.prototype.enqueueForceUpdate = function enqueueForceUpdate( - publicInstance - ) { - this.transaction.isInTransaction() && ReactUpdateQueue.enqueueForceUpdate(publicInstance); - }), - (ReactServerUpdateQueue.prototype.enqueueReplaceState = function enqueueReplaceState( - publicInstance, - completeState - ) { - this.transaction.isInTransaction() && - ReactUpdateQueue.enqueueReplaceState(publicInstance, completeState); - }), - (ReactServerUpdateQueue.prototype.enqueueSetState = function enqueueSetState( - publicInstance, - partialState - ) { - this.transaction.isInTransaction() && - ReactUpdateQueue.enqueueSetState(publicInstance, partialState); - }), - ReactServerUpdateQueue - ); - })(); - module.exports = ReactServerUpdateQueue; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - DOMLazyTree = __webpack_require__(62), - ReactDOMComponentTree = __webpack_require__(13), - ReactDOMEmptyComponent = function(instantiate) { - (this._currentElement = null), - (this._hostNode = null), - (this._hostParent = null), - (this._hostContainerInfo = null), - (this._domID = 0); - }; - _assign(ReactDOMEmptyComponent.prototype, { - mountComponent: function(transaction, hostParent, hostContainerInfo, context) { - var domID = hostContainerInfo._idCounter++; - (this._domID = domID), - (this._hostParent = hostParent), - (this._hostContainerInfo = hostContainerInfo); - var nodeValue = ' react-empty: ' + this._domID + ' '; - if (transaction.useCreateElement) { - var node = hostContainerInfo._ownerDocument.createComment(nodeValue); - return ReactDOMComponentTree.precacheNode(this, node), DOMLazyTree(node); - } - return transaction.renderToStaticMarkup ? '' : '\x3c!--' + nodeValue + '--\x3e'; - }, - receiveComponent: function() {}, - getHostNode: function() { - return ReactDOMComponentTree.getNodeFromInstance(this); - }, - unmountComponent: function() { - ReactDOMComponentTree.uncacheNode(this); - } - }), - (module.exports = ReactDOMEmptyComponent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7); - __webpack_require__(3); - function getLowestCommonAncestor(instA, instB) { - '_hostNode' in instA || _prodInvariant('33'), '_hostNode' in instB || _prodInvariant('33'); - for (var depthA = 0, tempA = instA; tempA; tempA = tempA._hostParent) depthA++; - for (var depthB = 0, tempB = instB; tempB; tempB = tempB._hostParent) depthB++; - for (; depthA - depthB > 0; ) (instA = instA._hostParent), depthA--; - for (; depthB - depthA > 0; ) (instB = instB._hostParent), depthB--; - for (var depth = depthA; depth--; ) { - if (instA === instB) return instA; - (instA = instA._hostParent), (instB = instB._hostParent); - } - return null; - } - module.exports = { - isAncestor: function isAncestor(instA, instB) { - '_hostNode' in instA || _prodInvariant('35'), '_hostNode' in instB || _prodInvariant('35'); - for (; instB; ) { - if (instB === instA) return !0; - instB = instB._hostParent; - } - return !1; - }, - getLowestCommonAncestor: getLowestCommonAncestor, - getParentInstance: function getParentInstance(inst) { - return '_hostNode' in inst || _prodInvariant('36'), inst._hostParent; - }, - traverseTwoPhase: function traverseTwoPhase(inst, fn, arg) { - for (var i, path = []; inst; ) path.push(inst), (inst = inst._hostParent); - for (i = path.length; i-- > 0; ) fn(path[i], 'captured', arg); - for (i = 0; i < path.length; i++) fn(path[i], 'bubbled', arg); - }, - traverseEnterLeave: function traverseEnterLeave(from, to, fn, argFrom, argTo) { - for ( - var common = from && to ? getLowestCommonAncestor(from, to) : null, pathFrom = []; - from && from !== common; - - ) - pathFrom.push(from), (from = from._hostParent); - for (var i, pathTo = []; to && to !== common; ) pathTo.push(to), (to = to._hostParent); - for (i = 0; i < pathFrom.length; i++) fn(pathFrom[i], 'bubbled', argFrom); - for (i = pathTo.length; i-- > 0; ) fn(pathTo[i], 'captured', argTo); - } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - _assign = __webpack_require__(9), - DOMChildrenOperations = __webpack_require__(159), - DOMLazyTree = __webpack_require__(62), - ReactDOMComponentTree = __webpack_require__(13), - escapeTextContentForBrowser = __webpack_require__(101), - ReactDOMTextComponent = (__webpack_require__(3), - __webpack_require__(168), - function(text) { - (this._currentElement = text), - (this._stringText = '' + text), - (this._hostNode = null), - (this._hostParent = null), - (this._domID = 0), - (this._mountIndex = 0), - (this._closingComment = null), - (this._commentNodes = null); - }); - _assign(ReactDOMTextComponent.prototype, { - mountComponent: function(transaction, hostParent, hostContainerInfo, context) { - var domID = hostContainerInfo._idCounter++, - openingValue = ' react-text: ' + domID + ' '; - if ( - ((this._domID = domID), (this._hostParent = hostParent), transaction.useCreateElement) - ) { - var ownerDocument = hostContainerInfo._ownerDocument, - openingComment = ownerDocument.createComment(openingValue), - closingComment = ownerDocument.createComment(' /react-text '), - lazyTree = DOMLazyTree(ownerDocument.createDocumentFragment()); - return ( - DOMLazyTree.queueChild(lazyTree, DOMLazyTree(openingComment)), - this._stringText && - DOMLazyTree.queueChild( - lazyTree, - DOMLazyTree(ownerDocument.createTextNode(this._stringText)) - ), - DOMLazyTree.queueChild(lazyTree, DOMLazyTree(closingComment)), - ReactDOMComponentTree.precacheNode(this, openingComment), - (this._closingComment = closingComment), - lazyTree - ); - } - var escapedText = escapeTextContentForBrowser(this._stringText); - return transaction.renderToStaticMarkup - ? escapedText - : '\x3c!--' + openingValue + '--\x3e' + escapedText + '\x3c!-- /react-text --\x3e'; - }, - receiveComponent: function(nextText, transaction) { - if (nextText !== this._currentElement) { - this._currentElement = nextText; - var nextStringText = '' + nextText; - if (nextStringText !== this._stringText) { - this._stringText = nextStringText; - var commentNodes = this.getHostNode(); - DOMChildrenOperations.replaceDelimitedText( - commentNodes[0], - commentNodes[1], - nextStringText - ); - } - } - }, - getHostNode: function() { - var hostNode = this._commentNodes; - if (hostNode) return hostNode; - if (!this._closingComment) - for (var node = ReactDOMComponentTree.getNodeFromInstance(this).nextSibling; ; ) { - if ( - (null == node && _prodInvariant('67', this._domID), - 8 === node.nodeType && ' /react-text ' === node.nodeValue) - ) { - this._closingComment = node; - break; - } - node = node.nextSibling; - } - return ( - (hostNode = [this._hostNode, this._closingComment]), - (this._commentNodes = hostNode), - hostNode - ); - }, - unmountComponent: function() { - (this._closingComment = null), - (this._commentNodes = null), - ReactDOMComponentTree.uncacheNode(this); - } - }), - (module.exports = ReactDOMTextComponent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - ReactUpdates = __webpack_require__(30), - Transaction = __webpack_require__(98), - emptyFunction = __webpack_require__(22), - RESET_BATCHED_UPDATES = { - initialize: emptyFunction, - close: function() { - ReactDefaultBatchingStrategy.isBatchingUpdates = !1; - } - }, - TRANSACTION_WRAPPERS = [ - { initialize: emptyFunction, close: ReactUpdates.flushBatchedUpdates.bind(ReactUpdates) }, - RESET_BATCHED_UPDATES - ]; - function ReactDefaultBatchingStrategyTransaction() { - this.reinitializeTransaction(); - } - _assign(ReactDefaultBatchingStrategyTransaction.prototype, Transaction, { - getTransactionWrappers: function() { - return TRANSACTION_WRAPPERS; - } - }); - var transaction = new ReactDefaultBatchingStrategyTransaction(), - ReactDefaultBatchingStrategy = { - isBatchingUpdates: !1, - batchedUpdates: function(callback, a, b, c, d, e) { - var alreadyBatchingUpdates = ReactDefaultBatchingStrategy.isBatchingUpdates; - return ( - (ReactDefaultBatchingStrategy.isBatchingUpdates = !0), - alreadyBatchingUpdates - ? callback(a, b, c, d, e) - : transaction.perform(callback, null, a, b, c, d, e) - ); - } - }; - module.exports = ReactDefaultBatchingStrategy; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - EventListener = __webpack_require__(254), - ExecutionEnvironment = __webpack_require__(19), - PooledClass = __webpack_require__(47), - ReactDOMComponentTree = __webpack_require__(13), - ReactUpdates = __webpack_require__(30), - getEventTarget = __webpack_require__(156), - getUnboundedScrollPosition = __webpack_require__(486); - function findParent(inst) { - for (; inst._hostParent; ) inst = inst._hostParent; - var container = ReactDOMComponentTree.getNodeFromInstance(inst).parentNode; - return ReactDOMComponentTree.getClosestInstanceFromNode(container); - } - function TopLevelCallbackBookKeeping(topLevelType, nativeEvent) { - (this.topLevelType = topLevelType), (this.nativeEvent = nativeEvent), (this.ancestors = []); - } - function handleTopLevelImpl(bookKeeping) { - var nativeEventTarget = getEventTarget(bookKeeping.nativeEvent), - targetInst = ReactDOMComponentTree.getClosestInstanceFromNode(nativeEventTarget), - ancestor = targetInst; - do { - bookKeeping.ancestors.push(ancestor), (ancestor = ancestor && findParent(ancestor)); - } while (ancestor); - for (var i = 0; i < bookKeeping.ancestors.length; i++) - (targetInst = bookKeeping.ancestors[i]), - ReactEventListener._handleTopLevel( - bookKeeping.topLevelType, - targetInst, - bookKeeping.nativeEvent, - getEventTarget(bookKeeping.nativeEvent) - ); - } - _assign(TopLevelCallbackBookKeeping.prototype, { - destructor: function() { - (this.topLevelType = null), (this.nativeEvent = null), (this.ancestors.length = 0); - } - }), - PooledClass.addPoolingTo(TopLevelCallbackBookKeeping, PooledClass.twoArgumentPooler); - var ReactEventListener = { - _enabled: !0, - _handleTopLevel: null, - WINDOW_HANDLE: ExecutionEnvironment.canUseDOM ? window : null, - setHandleTopLevel: function(handleTopLevel) { - ReactEventListener._handleTopLevel = handleTopLevel; - }, - setEnabled: function(enabled) { - ReactEventListener._enabled = !!enabled; - }, - isEnabled: function() { - return ReactEventListener._enabled; - }, - trapBubbledEvent: function(topLevelType, handlerBaseName, element) { - return element - ? EventListener.listen( - element, - handlerBaseName, - ReactEventListener.dispatchEvent.bind(null, topLevelType) - ) - : null; - }, - trapCapturedEvent: function(topLevelType, handlerBaseName, element) { - return element - ? EventListener.capture( - element, - handlerBaseName, - ReactEventListener.dispatchEvent.bind(null, topLevelType) - ) - : null; - }, - monitorScrollValue: function(refresh) { - var callback = function scrollValueMonitor(cb) { - cb(getUnboundedScrollPosition(window)); - }.bind(null, refresh); - EventListener.listen(window, 'scroll', callback); - }, - dispatchEvent: function(topLevelType, nativeEvent) { - if (ReactEventListener._enabled) { - var bookKeeping = TopLevelCallbackBookKeeping.getPooled(topLevelType, nativeEvent); - try { - ReactUpdates.batchedUpdates(handleTopLevelImpl, bookKeeping); - } finally { - TopLevelCallbackBookKeeping.release(bookKeeping); - } - } - } - }; - module.exports = ReactEventListener; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function getUnboundedScrollPosition(scrollable) { - return scrollable.Window && scrollable instanceof scrollable.Window - ? { - x: scrollable.pageXOffset || scrollable.document.documentElement.scrollLeft, - y: scrollable.pageYOffset || scrollable.document.documentElement.scrollTop - } - : { x: scrollable.scrollLeft, y: scrollable.scrollTop }; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var DOMProperty = __webpack_require__(60), - EventPluginHub = __webpack_require__(80), - EventPluginUtils = __webpack_require__(154), - ReactComponentEnvironment = __webpack_require__(163), - ReactEmptyComponent = __webpack_require__(250), - ReactBrowserEventEmitter = __webpack_require__(102), - ReactHostComponent = __webpack_require__(251), - ReactUpdates = __webpack_require__(30), - ReactInjection = { - Component: ReactComponentEnvironment.injection, - DOMProperty: DOMProperty.injection, - EmptyComponent: ReactEmptyComponent.injection, - EventPluginHub: EventPluginHub.injection, - EventPluginUtils: EventPluginUtils.injection, - EventEmitter: ReactBrowserEventEmitter.injection, - HostComponent: ReactHostComponent.injection, - Updates: ReactUpdates.injection - }; - module.exports = ReactInjection; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _assign = __webpack_require__(9), - CallbackQueue = __webpack_require__(238), - PooledClass = __webpack_require__(47), - ReactBrowserEventEmitter = __webpack_require__(102), - ReactInputSelection = __webpack_require__(255), - Transaction = (__webpack_require__(25), __webpack_require__(98)), - ReactUpdateQueue = __webpack_require__(167), - TRANSACTION_WRAPPERS = [ - { - initialize: ReactInputSelection.getSelectionInformation, - close: ReactInputSelection.restoreSelection - }, - { - initialize: function() { - var currentlyEnabled = ReactBrowserEventEmitter.isEnabled(); - return ReactBrowserEventEmitter.setEnabled(!1), currentlyEnabled; - }, - close: function(previouslyEnabled) { - ReactBrowserEventEmitter.setEnabled(previouslyEnabled); - } - }, - { - initialize: function() { - this.reactMountReady.reset(); - }, - close: function() { - this.reactMountReady.notifyAll(); - } - } - ]; - function ReactReconcileTransaction(useCreateElement) { - this.reinitializeTransaction(), - (this.renderToStaticMarkup = !1), - (this.reactMountReady = CallbackQueue.getPooled(null)), - (this.useCreateElement = useCreateElement); - } - var Mixin = { - getTransactionWrappers: function() { - return TRANSACTION_WRAPPERS; - }, - getReactMountReady: function() { - return this.reactMountReady; - }, - getUpdateQueue: function() { - return ReactUpdateQueue; - }, - checkpoint: function() { - return this.reactMountReady.checkpoint(); - }, - rollback: function(checkpoint) { - this.reactMountReady.rollback(checkpoint); - }, - destructor: function() { - CallbackQueue.release(this.reactMountReady), (this.reactMountReady = null); - } - }; - _assign(ReactReconcileTransaction.prototype, Transaction, Mixin), - PooledClass.addPoolingTo(ReactReconcileTransaction), - (module.exports = ReactReconcileTransaction); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ExecutionEnvironment = __webpack_require__(19), - getNodeForCharacterOffset = __webpack_require__(490), - getTextContentAccessor = __webpack_require__(237); - function isCollapsed(anchorNode, anchorOffset, focusNode, focusOffset) { - return anchorNode === focusNode && anchorOffset === focusOffset; - } - var useIEOffsets = - ExecutionEnvironment.canUseDOM && 'selection' in document && !('getSelection' in window), - ReactDOMSelection = { - getOffsets: useIEOffsets - ? function getIEOffsets(node) { - var selectedRange = document.selection.createRange(), - selectedLength = selectedRange.text.length, - fromStart = selectedRange.duplicate(); - fromStart.moveToElementText(node), fromStart.setEndPoint('EndToStart', selectedRange); - var startOffset = fromStart.text.length; - return { start: startOffset, end: startOffset + selectedLength }; - } - : function getModernOffsets(node) { - var selection = window.getSelection && window.getSelection(); - if (!selection || 0 === selection.rangeCount) return null; - var anchorNode = selection.anchorNode, - anchorOffset = selection.anchorOffset, - focusNode = selection.focusNode, - focusOffset = selection.focusOffset, - currentRange = selection.getRangeAt(0); - try { - currentRange.startContainer.nodeType, currentRange.endContainer.nodeType; - } catch (e) { - return null; - } - var rangeLength = isCollapsed( - selection.anchorNode, - selection.anchorOffset, - selection.focusNode, - selection.focusOffset - ) - ? 0 - : currentRange.toString().length, - tempRange = currentRange.cloneRange(); - tempRange.selectNodeContents(node), - tempRange.setEnd(currentRange.startContainer, currentRange.startOffset); - var start = isCollapsed( - tempRange.startContainer, - tempRange.startOffset, - tempRange.endContainer, - tempRange.endOffset - ) - ? 0 - : tempRange.toString().length, - end = start + rangeLength, - detectionRange = document.createRange(); - detectionRange.setStart(anchorNode, anchorOffset), - detectionRange.setEnd(focusNode, focusOffset); - var isBackward = detectionRange.collapsed; - return { start: isBackward ? end : start, end: isBackward ? start : end }; - }, - setOffsets: useIEOffsets - ? function setIEOffsets(node, offsets) { - var start, - end, - range = document.selection.createRange().duplicate(); - void 0 === offsets.end - ? (end = start = offsets.start) - : offsets.start > offsets.end - ? ((start = offsets.end), (end = offsets.start)) - : ((start = offsets.start), (end = offsets.end)), - range.moveToElementText(node), - range.moveStart('character', start), - range.setEndPoint('EndToStart', range), - range.moveEnd('character', end - start), - range.select(); - } - : function setModernOffsets(node, offsets) { - if (window.getSelection) { - var selection = window.getSelection(), - length = node[getTextContentAccessor()].length, - start = Math.min(offsets.start, length), - end = void 0 === offsets.end ? start : Math.min(offsets.end, length); - if (!selection.extend && start > end) { - var temp = end; - (end = start), (start = temp); - } - var startMarker = getNodeForCharacterOffset(node, start), - endMarker = getNodeForCharacterOffset(node, end); - if (startMarker && endMarker) { - var range = document.createRange(); - range.setStart(startMarker.node, startMarker.offset), - selection.removeAllRanges(), - start > end - ? (selection.addRange(range), - selection.extend(endMarker.node, endMarker.offset)) - : (range.setEnd(endMarker.node, endMarker.offset), selection.addRange(range)); - } - } - } - }; - module.exports = ReactDOMSelection; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - function getLeafNode(node) { - for (; node && node.firstChild; ) node = node.firstChild; - return node; - } - function getSiblingNode(node) { - for (; node; ) { - if (node.nextSibling) return node.nextSibling; - node = node.parentNode; - } - } - module.exports = function getNodeForCharacterOffset(root, offset) { - for (var node = getLeafNode(root), nodeStart = 0, nodeEnd = 0; node; ) { - if (3 === node.nodeType) { - if ( - ((nodeEnd = nodeStart + node.textContent.length), - nodeStart <= offset && nodeEnd >= offset) - ) - return { node: node, offset: offset - nodeStart }; - nodeStart = nodeEnd; - } - node = getLeafNode(getSiblingNode(node)); - } - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var isTextNode = __webpack_require__(492); - module.exports = function containsNode(outerNode, innerNode) { - return ( - !(!outerNode || !innerNode) && - (outerNode === innerNode || - (!isTextNode(outerNode) && - (isTextNode(innerNode) - ? containsNode(outerNode, innerNode.parentNode) - : 'contains' in outerNode - ? outerNode.contains(innerNode) - : !!outerNode.compareDocumentPosition && - !!(16 & outerNode.compareDocumentPosition(innerNode))))) - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var isNode = __webpack_require__(493); - module.exports = function isTextNode(object) { - return isNode(object) && 3 == object.nodeType; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = function isNode(object) { - var defaultView = (object ? object.ownerDocument || object : document).defaultView || window; - return !( - !object || - !('function' == typeof defaultView.Node - ? object instanceof defaultView.Node - : 'object' == typeof object && - 'number' == typeof object.nodeType && - 'string' == typeof object.nodeName) - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var NS_xlink = 'http://www.w3.org/1999/xlink', - NS_xml = 'http://www.w3.org/XML/1998/namespace', - ATTRS = { - accentHeight: 'accent-height', - accumulate: 0, - additive: 0, - alignmentBaseline: 'alignment-baseline', - allowReorder: 'allowReorder', - alphabetic: 0, - amplitude: 0, - arabicForm: 'arabic-form', - ascent: 0, - attributeName: 'attributeName', - attributeType: 'attributeType', - autoReverse: 'autoReverse', - azimuth: 0, - baseFrequency: 'baseFrequency', - baseProfile: 'baseProfile', - baselineShift: 'baseline-shift', - bbox: 0, - begin: 0, - bias: 0, - by: 0, - calcMode: 'calcMode', - capHeight: 'cap-height', - clip: 0, - clipPath: 'clip-path', - clipRule: 'clip-rule', - clipPathUnits: 'clipPathUnits', - colorInterpolation: 'color-interpolation', - colorInterpolationFilters: 'color-interpolation-filters', - colorProfile: 'color-profile', - colorRendering: 'color-rendering', - contentScriptType: 'contentScriptType', - contentStyleType: 'contentStyleType', - cursor: 0, - cx: 0, - cy: 0, - d: 0, - decelerate: 0, - descent: 0, - diffuseConstant: 'diffuseConstant', - direction: 0, - display: 0, - divisor: 0, - dominantBaseline: 'dominant-baseline', - dur: 0, - dx: 0, - dy: 0, - edgeMode: 'edgeMode', - elevation: 0, - enableBackground: 'enable-background', - end: 0, - exponent: 0, - externalResourcesRequired: 'externalResourcesRequired', - fill: 0, - fillOpacity: 'fill-opacity', - fillRule: 'fill-rule', - filter: 0, - filterRes: 'filterRes', - filterUnits: 'filterUnits', - floodColor: 'flood-color', - floodOpacity: 'flood-opacity', - focusable: 0, - fontFamily: 'font-family', - fontSize: 'font-size', - fontSizeAdjust: 'font-size-adjust', - fontStretch: 'font-stretch', - fontStyle: 'font-style', - fontVariant: 'font-variant', - fontWeight: 'font-weight', - format: 0, - from: 0, - fx: 0, - fy: 0, - g1: 0, - g2: 0, - glyphName: 'glyph-name', - glyphOrientationHorizontal: 'glyph-orientation-horizontal', - glyphOrientationVertical: 'glyph-orientation-vertical', - glyphRef: 'glyphRef', - gradientTransform: 'gradientTransform', - gradientUnits: 'gradientUnits', - hanging: 0, - horizAdvX: 'horiz-adv-x', - horizOriginX: 'horiz-origin-x', - ideographic: 0, - imageRendering: 'image-rendering', - in: 0, - in2: 0, - intercept: 0, - k: 0, - k1: 0, - k2: 0, - k3: 0, - k4: 0, - kernelMatrix: 'kernelMatrix', - kernelUnitLength: 'kernelUnitLength', - kerning: 0, - keyPoints: 'keyPoints', - keySplines: 'keySplines', - keyTimes: 'keyTimes', - lengthAdjust: 'lengthAdjust', - letterSpacing: 'letter-spacing', - lightingColor: 'lighting-color', - limitingConeAngle: 'limitingConeAngle', - local: 0, - markerEnd: 'marker-end', - markerMid: 'marker-mid', - markerStart: 'marker-start', - markerHeight: 'markerHeight', - markerUnits: 'markerUnits', - markerWidth: 'markerWidth', - mask: 0, - maskContentUnits: 'maskContentUnits', - maskUnits: 'maskUnits', - mathematical: 0, - mode: 0, - numOctaves: 'numOctaves', - offset: 0, - opacity: 0, - operator: 0, - order: 0, - orient: 0, - orientation: 0, - origin: 0, - overflow: 0, - overlinePosition: 'overline-position', - overlineThickness: 'overline-thickness', - paintOrder: 'paint-order', - panose1: 'panose-1', - pathLength: 'pathLength', - patternContentUnits: 'patternContentUnits', - patternTransform: 'patternTransform', - patternUnits: 'patternUnits', - pointerEvents: 'pointer-events', - points: 0, - pointsAtX: 'pointsAtX', - pointsAtY: 'pointsAtY', - pointsAtZ: 'pointsAtZ', - preserveAlpha: 'preserveAlpha', - preserveAspectRatio: 'preserveAspectRatio', - primitiveUnits: 'primitiveUnits', - r: 0, - radius: 0, - refX: 'refX', - refY: 'refY', - renderingIntent: 'rendering-intent', - repeatCount: 'repeatCount', - repeatDur: 'repeatDur', - requiredExtensions: 'requiredExtensions', - requiredFeatures: 'requiredFeatures', - restart: 0, - result: 0, - rotate: 0, - rx: 0, - ry: 0, - scale: 0, - seed: 0, - shapeRendering: 'shape-rendering', - slope: 0, - spacing: 0, - specularConstant: 'specularConstant', - specularExponent: 'specularExponent', - speed: 0, - spreadMethod: 'spreadMethod', - startOffset: 'startOffset', - stdDeviation: 'stdDeviation', - stemh: 0, - stemv: 0, - stitchTiles: 'stitchTiles', - stopColor: 'stop-color', - stopOpacity: 'stop-opacity', - strikethroughPosition: 'strikethrough-position', - strikethroughThickness: 'strikethrough-thickness', - string: 0, - stroke: 0, - strokeDasharray: 'stroke-dasharray', - strokeDashoffset: 'stroke-dashoffset', - strokeLinecap: 'stroke-linecap', - strokeLinejoin: 'stroke-linejoin', - strokeMiterlimit: 'stroke-miterlimit', - strokeOpacity: 'stroke-opacity', - strokeWidth: 'stroke-width', - surfaceScale: 'surfaceScale', - systemLanguage: 'systemLanguage', - tableValues: 'tableValues', - targetX: 'targetX', - targetY: 'targetY', - textAnchor: 'text-anchor', - textDecoration: 'text-decoration', - textRendering: 'text-rendering', - textLength: 'textLength', - to: 0, - transform: 0, - u1: 0, - u2: 0, - underlinePosition: 'underline-position', - underlineThickness: 'underline-thickness', - unicode: 0, - unicodeBidi: 'unicode-bidi', - unicodeRange: 'unicode-range', - unitsPerEm: 'units-per-em', - vAlphabetic: 'v-alphabetic', - vHanging: 'v-hanging', - vIdeographic: 'v-ideographic', - vMathematical: 'v-mathematical', - values: 0, - vectorEffect: 'vector-effect', - version: 0, - vertAdvY: 'vert-adv-y', - vertOriginX: 'vert-origin-x', - vertOriginY: 'vert-origin-y', - viewBox: 'viewBox', - viewTarget: 'viewTarget', - visibility: 0, - widths: 0, - wordSpacing: 'word-spacing', - writingMode: 'writing-mode', - x: 0, - xHeight: 'x-height', - x1: 0, - x2: 0, - xChannelSelector: 'xChannelSelector', - xlinkActuate: 'xlink:actuate', - xlinkArcrole: 'xlink:arcrole', - xlinkHref: 'xlink:href', - xlinkRole: 'xlink:role', - xlinkShow: 'xlink:show', - xlinkTitle: 'xlink:title', - xlinkType: 'xlink:type', - xmlBase: 'xml:base', - xmlns: 0, - xmlnsXlink: 'xmlns:xlink', - xmlLang: 'xml:lang', - xmlSpace: 'xml:space', - y: 0, - y1: 0, - y2: 0, - yChannelSelector: 'yChannelSelector', - z: 0, - zoomAndPan: 'zoomAndPan' - }, - SVGDOMPropertyConfig = { - Properties: {}, - DOMAttributeNamespaces: { - xlinkActuate: NS_xlink, - xlinkArcrole: NS_xlink, - xlinkHref: NS_xlink, - xlinkRole: NS_xlink, - xlinkShow: NS_xlink, - xlinkTitle: NS_xlink, - xlinkType: NS_xlink, - xmlBase: NS_xml, - xmlLang: NS_xml, - xmlSpace: NS_xml - }, - DOMAttributeNames: {} - }; - Object.keys(ATTRS).forEach(function(key) { - (SVGDOMPropertyConfig.Properties[key] = 0), - ATTRS[key] && (SVGDOMPropertyConfig.DOMAttributeNames[key] = ATTRS[key]); - }), - (module.exports = SVGDOMPropertyConfig); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var EventPropagators = __webpack_require__(79), - ExecutionEnvironment = __webpack_require__(19), - ReactDOMComponentTree = __webpack_require__(13), - ReactInputSelection = __webpack_require__(255), - SyntheticEvent = __webpack_require__(33), - getActiveElement = __webpack_require__(256), - isTextInputElement = __webpack_require__(241), - shallowEqual = __webpack_require__(164), - skipSelectionChangeEvent = - ExecutionEnvironment.canUseDOM && 'documentMode' in document && document.documentMode <= 11, - eventTypes = { - select: { - phasedRegistrationNames: { bubbled: 'onSelect', captured: 'onSelectCapture' }, - dependencies: [ - 'topBlur', - 'topContextMenu', - 'topFocus', - 'topKeyDown', - 'topKeyUp', - 'topMouseDown', - 'topMouseUp', - 'topSelectionChange' - ] - } - }, - activeElement = null, - activeElementInst = null, - lastSelection = null, - mouseDown = !1, - hasListener = !1; - function constructSelectEvent(nativeEvent, nativeEventTarget) { - if (mouseDown || null == activeElement || activeElement !== getActiveElement()) return null; - var currentSelection = (function getSelection(node) { - if ('selectionStart' in node && ReactInputSelection.hasSelectionCapabilities(node)) - return { start: node.selectionStart, end: node.selectionEnd }; - if (window.getSelection) { - var selection = window.getSelection(); - return { - anchorNode: selection.anchorNode, - anchorOffset: selection.anchorOffset, - focusNode: selection.focusNode, - focusOffset: selection.focusOffset - }; - } - if (document.selection) { - var range = document.selection.createRange(); - return { - parentElement: range.parentElement(), - text: range.text, - top: range.boundingTop, - left: range.boundingLeft - }; - } - })(activeElement); - if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) { - lastSelection = currentSelection; - var syntheticEvent = SyntheticEvent.getPooled( - eventTypes.select, - activeElementInst, - nativeEvent, - nativeEventTarget - ); - return ( - (syntheticEvent.type = 'select'), - (syntheticEvent.target = activeElement), - EventPropagators.accumulateTwoPhaseDispatches(syntheticEvent), - syntheticEvent - ); - } - return null; - } - var SelectEventPlugin = { - eventTypes: eventTypes, - extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - if (!hasListener) return null; - var targetNode = targetInst - ? ReactDOMComponentTree.getNodeFromInstance(targetInst) - : window; - switch (topLevelType) { - case 'topFocus': - (isTextInputElement(targetNode) || 'true' === targetNode.contentEditable) && - ((activeElement = targetNode), - (activeElementInst = targetInst), - (lastSelection = null)); - break; - case 'topBlur': - (activeElement = null), (activeElementInst = null), (lastSelection = null); - break; - case 'topMouseDown': - mouseDown = !0; - break; - case 'topContextMenu': - case 'topMouseUp': - return (mouseDown = !1), constructSelectEvent(nativeEvent, nativeEventTarget); - case 'topSelectionChange': - if (skipSelectionChangeEvent) break; - case 'topKeyDown': - case 'topKeyUp': - return constructSelectEvent(nativeEvent, nativeEventTarget); - } - return null; - }, - didPutListener: function(inst, registrationName, listener) { - 'onSelect' === registrationName && (hasListener = !0); - } - }; - module.exports = SelectEventPlugin; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - EventListener = __webpack_require__(254), - EventPropagators = __webpack_require__(79), - ReactDOMComponentTree = __webpack_require__(13), - SyntheticAnimationEvent = __webpack_require__(497), - SyntheticClipboardEvent = __webpack_require__(498), - SyntheticEvent = __webpack_require__(33), - SyntheticFocusEvent = __webpack_require__(499), - SyntheticKeyboardEvent = __webpack_require__(500), - SyntheticMouseEvent = __webpack_require__(99), - SyntheticDragEvent = __webpack_require__(502), - SyntheticTouchEvent = __webpack_require__(503), - SyntheticTransitionEvent = __webpack_require__(504), - SyntheticUIEvent = __webpack_require__(81), - SyntheticWheelEvent = __webpack_require__(505), - emptyFunction = __webpack_require__(22), - getEventCharCode = __webpack_require__(169), - eventTypes = (__webpack_require__(3), {}), - topLevelEventsToDispatchConfig = {}; - [ - 'abort', - 'animationEnd', - 'animationIteration', - 'animationStart', - 'blur', - 'canPlay', - 'canPlayThrough', - 'click', - 'contextMenu', - 'copy', - 'cut', - 'doubleClick', - 'drag', - 'dragEnd', - 'dragEnter', - 'dragExit', - 'dragLeave', - 'dragOver', - 'dragStart', - 'drop', - 'durationChange', - 'emptied', - 'encrypted', - 'ended', - 'error', - 'focus', - 'input', - 'invalid', - 'keyDown', - 'keyPress', - 'keyUp', - 'load', - 'loadedData', - 'loadedMetadata', - 'loadStart', - 'mouseDown', - 'mouseMove', - 'mouseOut', - 'mouseOver', - 'mouseUp', - 'paste', - 'pause', - 'play', - 'playing', - 'progress', - 'rateChange', - 'reset', - 'scroll', - 'seeked', - 'seeking', - 'stalled', - 'submit', - 'suspend', - 'timeUpdate', - 'touchCancel', - 'touchEnd', - 'touchMove', - 'touchStart', - 'transitionEnd', - 'volumeChange', - 'waiting', - 'wheel' - ].forEach(function(event) { - var capitalizedEvent = event[0].toUpperCase() + event.slice(1), - onEvent = 'on' + capitalizedEvent, - topEvent = 'top' + capitalizedEvent, - type = { - phasedRegistrationNames: { bubbled: onEvent, captured: onEvent + 'Capture' }, - dependencies: [topEvent] - }; - (eventTypes[event] = type), (topLevelEventsToDispatchConfig[topEvent] = type); - }); - var onClickListeners = {}; - function getDictionaryKey(inst) { - return '.' + inst._rootNodeID; - } - function isInteractive(tag) { - return 'button' === tag || 'input' === tag || 'select' === tag || 'textarea' === tag; - } - var SimpleEventPlugin = { - eventTypes: eventTypes, - extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var EventConstructor, - dispatchConfig = topLevelEventsToDispatchConfig[topLevelType]; - if (!dispatchConfig) return null; - switch (topLevelType) { - case 'topAbort': - case 'topCanPlay': - case 'topCanPlayThrough': - case 'topDurationChange': - case 'topEmptied': - case 'topEncrypted': - case 'topEnded': - case 'topError': - case 'topInput': - case 'topInvalid': - case 'topLoad': - case 'topLoadedData': - case 'topLoadedMetadata': - case 'topLoadStart': - case 'topPause': - case 'topPlay': - case 'topPlaying': - case 'topProgress': - case 'topRateChange': - case 'topReset': - case 'topSeeked': - case 'topSeeking': - case 'topStalled': - case 'topSubmit': - case 'topSuspend': - case 'topTimeUpdate': - case 'topVolumeChange': - case 'topWaiting': - EventConstructor = SyntheticEvent; - break; - case 'topKeyPress': - if (0 === getEventCharCode(nativeEvent)) return null; - case 'topKeyDown': - case 'topKeyUp': - EventConstructor = SyntheticKeyboardEvent; - break; - case 'topBlur': - case 'topFocus': - EventConstructor = SyntheticFocusEvent; - break; - case 'topClick': - if (2 === nativeEvent.button) return null; - case 'topDoubleClick': - case 'topMouseDown': - case 'topMouseMove': - case 'topMouseUp': - case 'topMouseOut': - case 'topMouseOver': - case 'topContextMenu': - EventConstructor = SyntheticMouseEvent; - break; - case 'topDrag': - case 'topDragEnd': - case 'topDragEnter': - case 'topDragExit': - case 'topDragLeave': - case 'topDragOver': - case 'topDragStart': - case 'topDrop': - EventConstructor = SyntheticDragEvent; - break; - case 'topTouchCancel': - case 'topTouchEnd': - case 'topTouchMove': - case 'topTouchStart': - EventConstructor = SyntheticTouchEvent; - break; - case 'topAnimationEnd': - case 'topAnimationIteration': - case 'topAnimationStart': - EventConstructor = SyntheticAnimationEvent; - break; - case 'topTransitionEnd': - EventConstructor = SyntheticTransitionEvent; - break; - case 'topScroll': - EventConstructor = SyntheticUIEvent; - break; - case 'topWheel': - EventConstructor = SyntheticWheelEvent; - break; - case 'topCopy': - case 'topCut': - case 'topPaste': - EventConstructor = SyntheticClipboardEvent; - } - EventConstructor || _prodInvariant('86', topLevelType); - var event = EventConstructor.getPooled( - dispatchConfig, - targetInst, - nativeEvent, - nativeEventTarget - ); - return EventPropagators.accumulateTwoPhaseDispatches(event), event; - }, - didPutListener: function(inst, registrationName, listener) { - if ('onClick' === registrationName && !isInteractive(inst._tag)) { - var key = getDictionaryKey(inst), - node = ReactDOMComponentTree.getNodeFromInstance(inst); - onClickListeners[key] || - (onClickListeners[key] = EventListener.listen(node, 'click', emptyFunction)); - } - }, - willDeleteListener: function(inst, registrationName) { - if ('onClick' === registrationName && !isInteractive(inst._tag)) { - var key = getDictionaryKey(inst); - onClickListeners[key].remove(), delete onClickListeners[key]; - } - } - }; - module.exports = SimpleEventPlugin; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticEvent = __webpack_require__(33); - function SyntheticAnimationEvent( - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ) { - return SyntheticEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticEvent.augmentClass(SyntheticAnimationEvent, { - animationName: null, - elapsedTime: null, - pseudoElement: null - }), - (module.exports = SyntheticAnimationEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticEvent = __webpack_require__(33), - ClipboardEventInterface = { - clipboardData: function(event) { - return 'clipboardData' in event ? event.clipboardData : window.clipboardData; - } - }; - function SyntheticClipboardEvent( - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ) { - return SyntheticEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticEvent.augmentClass(SyntheticClipboardEvent, ClipboardEventInterface), - (module.exports = SyntheticClipboardEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticUIEvent = __webpack_require__(81); - function SyntheticFocusEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { - return SyntheticUIEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticUIEvent.augmentClass(SyntheticFocusEvent, { relatedTarget: null }), - (module.exports = SyntheticFocusEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticUIEvent = __webpack_require__(81), - getEventCharCode = __webpack_require__(169), - KeyboardEventInterface = { - key: __webpack_require__(501), - location: null, - ctrlKey: null, - shiftKey: null, - altKey: null, - metaKey: null, - repeat: null, - locale: null, - getModifierState: __webpack_require__(158), - charCode: function(event) { - return 'keypress' === event.type ? getEventCharCode(event) : 0; - }, - keyCode: function(event) { - return 'keydown' === event.type || 'keyup' === event.type ? event.keyCode : 0; - }, - which: function(event) { - return 'keypress' === event.type - ? getEventCharCode(event) - : 'keydown' === event.type || 'keyup' === event.type ? event.keyCode : 0; - } - }; - function SyntheticKeyboardEvent( - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ) { - return SyntheticUIEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticUIEvent.augmentClass(SyntheticKeyboardEvent, KeyboardEventInterface), - (module.exports = SyntheticKeyboardEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var getEventCharCode = __webpack_require__(169), - normalizeKey = { - Esc: 'Escape', - Spacebar: ' ', - Left: 'ArrowLeft', - Up: 'ArrowUp', - Right: 'ArrowRight', - Down: 'ArrowDown', - Del: 'Delete', - Win: 'OS', - Menu: 'ContextMenu', - Apps: 'ContextMenu', - Scroll: 'ScrollLock', - MozPrintableKey: 'Unidentified' - }, - translateToKey = { - 8: 'Backspace', - 9: 'Tab', - 12: 'Clear', - 13: 'Enter', - 16: 'Shift', - 17: 'Control', - 18: 'Alt', - 19: 'Pause', - 20: 'CapsLock', - 27: 'Escape', - 32: ' ', - 33: 'PageUp', - 34: 'PageDown', - 35: 'End', - 36: 'Home', - 37: 'ArrowLeft', - 38: 'ArrowUp', - 39: 'ArrowRight', - 40: 'ArrowDown', - 45: 'Insert', - 46: 'Delete', - 112: 'F1', - 113: 'F2', - 114: 'F3', - 115: 'F4', - 116: 'F5', - 117: 'F6', - 118: 'F7', - 119: 'F8', - 120: 'F9', - 121: 'F10', - 122: 'F11', - 123: 'F12', - 144: 'NumLock', - 145: 'ScrollLock', - 224: 'Meta' - }; - module.exports = function getEventKey(nativeEvent) { - if (nativeEvent.key) { - var key = normalizeKey[nativeEvent.key] || nativeEvent.key; - if ('Unidentified' !== key) return key; - } - if ('keypress' === nativeEvent.type) { - var charCode = getEventCharCode(nativeEvent); - return 13 === charCode ? 'Enter' : String.fromCharCode(charCode); - } - return 'keydown' === nativeEvent.type || 'keyup' === nativeEvent.type - ? translateToKey[nativeEvent.keyCode] || 'Unidentified' - : ''; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticMouseEvent = __webpack_require__(99); - function SyntheticDragEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { - return SyntheticMouseEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticMouseEvent.augmentClass(SyntheticDragEvent, { dataTransfer: null }), - (module.exports = SyntheticDragEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticUIEvent = __webpack_require__(81), - TouchEventInterface = { - touches: null, - targetTouches: null, - changedTouches: null, - altKey: null, - metaKey: null, - ctrlKey: null, - shiftKey: null, - getModifierState: __webpack_require__(158) - }; - function SyntheticTouchEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { - return SyntheticUIEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticUIEvent.augmentClass(SyntheticTouchEvent, TouchEventInterface), - (module.exports = SyntheticTouchEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticEvent = __webpack_require__(33); - function SyntheticTransitionEvent( - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ) { - return SyntheticEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticEvent.augmentClass(SyntheticTransitionEvent, { - propertyName: null, - elapsedTime: null, - pseudoElement: null - }), - (module.exports = SyntheticTransitionEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var SyntheticMouseEvent = __webpack_require__(99); - function SyntheticWheelEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { - return SyntheticMouseEvent.call( - this, - dispatchConfig, - dispatchMarker, - nativeEvent, - nativeEventTarget - ); - } - SyntheticMouseEvent.augmentClass(SyntheticWheelEvent, { - deltaX: function(event) { - return 'deltaX' in event ? event.deltaX : 'wheelDeltaX' in event ? -event.wheelDeltaX : 0; - }, - deltaY: function(event) { - return 'deltaY' in event - ? event.deltaY - : 'wheelDeltaY' in event - ? -event.wheelDeltaY - : 'wheelDelta' in event ? -event.wheelDelta : 0; - }, - deltaZ: null, - deltaMode: null - }), - (module.exports = SyntheticWheelEvent); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - __webpack_require__(168); - var DOC_NODE_TYPE = 9; - module.exports = function ReactDOMContainerInfo(topLevelWrapper, node) { - var info = { - _topLevelWrapper: topLevelWrapper, - _idCounter: 1, - _ownerDocument: node ? (node.nodeType === DOC_NODE_TYPE ? node : node.ownerDocument) : null, - _node: node, - _tag: node ? node.nodeName.toLowerCase() : null, - _namespaceURI: node ? node.namespaceURI : null - }; - return info; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = { useCreateElement: !0, useFiber: !1 }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var adler32 = __webpack_require__(509), - TAG_END = /\/?>/, - COMMENT_START = /^<\!\-\-/, - ReactMarkupChecksum = { - CHECKSUM_ATTR_NAME: 'data-react-checksum', - addChecksumToMarkup: function(markup) { - var checksum = adler32(markup); - return COMMENT_START.test(markup) - ? markup - : markup.replace( - TAG_END, - ' ' + ReactMarkupChecksum.CHECKSUM_ATTR_NAME + '="' + checksum + '"$&' - ); - }, - canReuseMarkup: function(markup, element) { - var existingChecksum = element.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME); - return ( - (existingChecksum = existingChecksum && parseInt(existingChecksum, 10)), - adler32(markup) === existingChecksum - ); - } - }; - module.exports = ReactMarkupChecksum; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var MOD = 65521; - module.exports = function adler32(data) { - for (var a = 1, b = 0, i = 0, l = data.length, m = -4 & l; i < m; ) { - for (var n = Math.min(i + 4096, m); i < n; i += 4) - b += - (a += data.charCodeAt(i)) + - (a += data.charCodeAt(i + 1)) + - (a += data.charCodeAt(i + 2)) + - (a += data.charCodeAt(i + 3)); - (a %= MOD), (b %= MOD); - } - for (; i < l; i++) b += a += data.charCodeAt(i); - return (a %= MOD) | ((b %= MOD) << 16); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - module.exports = '15.6.2'; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var _prodInvariant = __webpack_require__(7), - ReactDOMComponentTree = (__webpack_require__(32), __webpack_require__(13)), - ReactInstanceMap = __webpack_require__(82), - getHostComponentFromComposite = __webpack_require__(258); - __webpack_require__(3), __webpack_require__(6); - module.exports = function findDOMNode(componentOrElement) { - if (null == componentOrElement) return null; - if (1 === componentOrElement.nodeType) return componentOrElement; - var inst = ReactInstanceMap.get(componentOrElement); - if (inst) - return (inst = getHostComponentFromComposite(inst)) - ? ReactDOMComponentTree.getNodeFromInstance(inst) - : null; - 'function' == typeof componentOrElement.render - ? _prodInvariant('44') - : _prodInvariant('45', Object.keys(componentOrElement)); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var ReactMount = __webpack_require__(257); - module.exports = ReactMount.renderSubtreeIntoContainer; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__splitStringTransformer__ = __webpack_require__(905); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__splitStringTransformer__.a; - }); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(515), (module.exports = __webpack_require__(10).Number.isNaN); - }, - function(module, exports, __webpack_require__) { - var $export = __webpack_require__(16); - $export($export.S, 'Number', { - isNaN: function isNaN(number) { - return number != number; - } - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__html__ = __webpack_require__(913); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__html__.a; - }); - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(518), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(64), __webpack_require__(63), (module.exports = __webpack_require__(519)); - }, - function(module, exports, __webpack_require__) { - var classof = __webpack_require__(119), - ITERATOR = __webpack_require__(18)('iterator'), - Iterators = __webpack_require__(59); - module.exports = __webpack_require__(10).isIterable = function(it) { - var O = Object(it); - return void 0 !== O[ITERATOR] || '@@iterator' in O || Iterators.hasOwnProperty(classof(O)); - }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(64), __webpack_require__(63), (module.exports = __webpack_require__(521)); - }, - function(module, exports, __webpack_require__) { - var anObject = __webpack_require__(24), - get = __webpack_require__(151); - module.exports = __webpack_require__(10).getIterator = function(it) { - var iterFn = get(it); - if ('function' != typeof iterFn) throw TypeError(it + ' is not iterable!'); - return anObject(iterFn.call(it)); - }; - }, - function(module, exports) { - var codes = ((exports = module.exports = function(searchInput) { - if (searchInput && 'object' == typeof searchInput) { - var hasKeyCode = searchInput.which || searchInput.keyCode || searchInput.charCode; - hasKeyCode && (searchInput = hasKeyCode); - } - if ('number' == typeof searchInput) return names[searchInput]; - var foundNamedKey, - search = String(searchInput); - return (foundNamedKey = codes[search.toLowerCase()]) - ? foundNamedKey - : (foundNamedKey = aliases[search.toLowerCase()]) || - (1 === search.length ? search.charCodeAt(0) : void 0); - }).code = exports.codes = { - backspace: 8, - tab: 9, - enter: 13, - shift: 16, - ctrl: 17, - alt: 18, - 'pause/break': 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, - insert: 45, - delete: 46, - command: 91, - 'left command': 91, - 'right command': 93, - 'numpad *': 106, - 'numpad +': 107, - 'numpad -': 109, - 'numpad .': 110, - 'numpad /': 111, - 'num lock': 144, - 'scroll lock': 145, - 'my computer': 182, - 'my calculator': 183, - ';': 186, - '=': 187, - ',': 188, - '-': 189, - '.': 190, - '/': 191, - '`': 192, - '[': 219, - '\\': 220, - ']': 221, - "'": 222 - }), - aliases = (exports.aliases = { - windows: 91, - '⇧': 16, - '⌥': 18, - '⌃': 17, - '⌘': 91, - ctl: 17, - control: 17, - option: 18, - pause: 19, - break: 19, - caps: 20, - return: 13, - escape: 27, - spc: 32, - pgup: 33, - pgdn: 34, - ins: 45, - del: 46, - cmd: 91 - }); - for (i = 97; i < 123; i++) codes[String.fromCharCode(i)] = i - 32; - for (var i = 48; i < 58; i++) codes[i - 48] = i; - for (i = 1; i < 13; i++) codes['f' + i] = i + 111; - for (i = 0; i < 10; i++) codes['numpad ' + i] = i + 96; - var names = (exports.names = exports.title = {}); - for (i in codes) names[codes[i]] = i; - for (var alias in aliases) codes[alias] = aliases[alias]; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.register = function register() { - _addons2.default.register(_.ADDON_ID, function() { - var channel = _addons2.default.getChannel(); - _addons2.default.addPanel(_.PANEL_ID, { - title: 'Action Logger', - render: function render() { - return _react2.default.createElement(_ActionLogger2.default, { channel: channel }); - } - }); - }); - }); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _addons2 = _interopRequireDefault(__webpack_require__(40)), - _ActionLogger2 = _interopRequireDefault(__webpack_require__(524)), - _ = __webpack_require__(104); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _toConsumableArray3 = _interopRequireDefault(__webpack_require__(45)), - _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _deepEqual2 = _interopRequireDefault(__webpack_require__(146)), - _lib = __webpack_require__(105), - _util = __webpack_require__(84), - _ActionLogger2 = _interopRequireDefault(__webpack_require__(567)), - _ = __webpack_require__(104); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ActionLogger = (function(_React$Component) { - function ActionLogger(props) { - var _ref; - (0, _classCallCheck3.default)(this, ActionLogger); - for ( - var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; - _key < _len; - _key++ - ) - args[_key - 1] = arguments[_key]; - var _this = (0, _possibleConstructorReturn3.default)( - this, - (_ref = ActionLogger.__proto__ || (0, _getPrototypeOf2.default)(ActionLogger)).call.apply( - _ref, - [this, props].concat(args) - ) - ); - return ( - (_this.state = { actions: [] }), - (_this._actionListener = function(action) { - return _this.addAction(action); - }), - _this - ); - } - return ( - (0, _inherits3.default)(ActionLogger, _React$Component), - (0, _createClass3.default)(ActionLogger, [ - { - key: 'componentDidMount', - value: function componentDidMount() { - this.props.channel.on(_.EVENT_ID, this._actionListener); - } - }, - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.props.channel.removeListener(_.EVENT_ID, this._actionListener); - } - }, - { - key: 'addAction', - value: function addAction(action) { - action.data.args = action.data.args.map(function(arg) { - return (0, _lib.retrocycle)(arg); - }); - var isCyclic = !!action.data.args.find(function(arg) { - return (0, _util.isObject)(arg) && arg[_lib.CYCLIC_KEY]; - }), - actions = [].concat((0, _toConsumableArray3.default)(this.state.actions)), - previous = actions.length && actions[0]; - previous && - !isCyclic && - (0, _deepEqual2.default)(previous.data, action.data, { strict: !0 }) - ? previous.count++ - : ((action.count = 1), actions.unshift(action)), - this.setState({ actions: actions }); - } - }, - { - key: 'clearActions', - value: function clearActions() { - this.setState({ actions: [] }); - } - }, - { - key: 'render', - value: function render() { - var _this2 = this, - props = { - actions: this.state.actions, - onClear: function onClear() { - return _this2.clearActions(); - } - }; - return _react2.default.createElement(_ActionLogger2.default, props); - } - } - ]), - ActionLogger - ); - })(_react2.default.Component); - (exports.default = ActionLogger), - (ActionLogger.propTypes = { channel: _propTypes2.default.object }), - (ActionLogger.defaultProps = { channel: {} }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _stringify2 = _interopRequireDefault(__webpack_require__(123)), - _typeof3 = _interopRequireDefault(__webpack_require__(21)), - _weakMap2 = _interopRequireDefault(__webpack_require__(527)); - exports.default = function decycle(object) { - var depth = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 10, - objects = new _weakMap2.default(), - isCyclic = !1; - return (function derez(value, path, _depth) { - var oldPath = void 0, - obj = void 0; - if (Object(value) === value && _depth > depth) { - var name = value.constructor - ? value.constructor.name - : void 0 === value ? 'undefined' : (0, _typeof3.default)(value); - return '[' + name + '...]'; - } - var result = (0, _util.typeReplacer)(value); - if (result) return result.value; - var type = void 0 === value ? 'undefined' : (0, _typeof3.default)(value); - if (value instanceof Boolean || value instanceof Number || value instanceof String) - return value; - if ('object' === type && null !== value) { - if (void 0 !== (oldPath = objects.get(value))) return (isCyclic = !0), { $ref: oldPath }; - try { - objects.set(value, path); - } catch (error) { - return console.error(error), new _errors.DecycleError(error.message); - } - if (Array.isArray(value)) { - obj = []; - for (var i = 0; i < value.length; i += 1) - obj[i] = derez(value[i], path + '[' + i + ']', _depth + 1); - } else - (obj = _types.objectType.serialize(value)), - (0, _util.getPropertiesList)(value).forEach(function(name) { - try { - obj[name] = derez( - value[name], - path + '[' + (0, _stringify2.default)(name) + ']', - _depth + 1 - ); - } catch (error) { - console.error(error), (obj[name] = new _errors.DecycleError(error.message)); - } - }); - return ( - 0 === _depth && value instanceof Object && isCyclic && (obj[_.CYCLIC_KEY] = !0), obj - ); - } - return value; - })(object, '$', 0); - }; - var _errors = __webpack_require__(535), - _util = __webpack_require__(84), - _ = __webpack_require__(105), - _types = __webpack_require__(173); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - }, - function(module, exports, __webpack_require__) { - var core = __webpack_require__(10), - $JSON = core.JSON || (core.JSON = { stringify: JSON.stringify }); - module.exports = function stringify(it) { - return $JSON.stringify.apply($JSON, arguments); - }; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(528), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(117), - __webpack_require__(64), - __webpack_require__(529), - __webpack_require__(533), - __webpack_require__(534), - (module.exports = __webpack_require__(10).WeakMap); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var InternalMap, - each = __webpack_require__(171)(0), - redefine = __webpack_require__(147), - meta = __webpack_require__(77), - assign = __webpack_require__(218), - weak = __webpack_require__(532), - isObject = __webpack_require__(20), - fails = __webpack_require__(43), - validate = __webpack_require__(172), - getWeak = meta.getWeak, - isExtensible = Object.isExtensible, - uncaughtFrozenStore = weak.ufstore, - tmp = {}, - wrapper = function(get) { - return function WeakMap() { - return get(this, arguments.length > 0 ? arguments[0] : void 0); - }; - }, - methods = { - get: function get(key) { - if (isObject(key)) { - var data = getWeak(key); - return !0 === data - ? uncaughtFrozenStore(validate(this, 'WeakMap')).get(key) - : data ? data[this._i] : void 0; - } - }, - set: function set(key, value) { - return weak.def(validate(this, 'WeakMap'), key, value); - } - }, - $WeakMap = (module.exports = __webpack_require__(288)( - 'WeakMap', - wrapper, - methods, - weak, - !0, - !0 - )); - fails(function() { - return 7 != new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp); - }) && - (assign((InternalMap = weak.getConstructor(wrapper, 'WeakMap')).prototype, methods), - (meta.NEED = !0), - each(['delete', 'has', 'get', 'set'], function(key) { - var proto = $WeakMap.prototype, - method = proto[key]; - redefine(proto, key, function(a, b) { - if (isObject(a) && !isExtensible(a)) { - this._f || (this._f = new InternalMap()); - var result = this._f[key](a, b); - return 'set' == key ? this : result; - } - return method.call(this, a, b); - }); - })); - }, - function(module, exports, __webpack_require__) { - var speciesConstructor = __webpack_require__(531); - module.exports = function(original, length) { - return new (speciesConstructor(original))(length); - }; - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(20), - isArray = __webpack_require__(221), - SPECIES = __webpack_require__(18)('species'); - module.exports = function(original) { - var C; - return ( - isArray(original) && - ('function' != typeof (C = original.constructor) || - (C !== Array && !isArray(C.prototype)) || - (C = void 0), - isObject(C) && null === (C = C[SPECIES]) && (C = void 0)), - void 0 === C ? Array : C - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var redefineAll = __webpack_require__(121), - getWeak = __webpack_require__(77).getWeak, - anObject = __webpack_require__(24), - isObject = __webpack_require__(20), - anInstance = __webpack_require__(120), - forOf = __webpack_require__(78), - createArrayMethod = __webpack_require__(171), - $has = __webpack_require__(41), - validate = __webpack_require__(172), - arrayFind = createArrayMethod(5), - arrayFindIndex = createArrayMethod(6), - id = 0, - uncaughtFrozenStore = function(that) { - return that._l || (that._l = new UncaughtFrozenStore()); - }, - UncaughtFrozenStore = function() { - this.a = []; - }, - findUncaughtFrozen = function(store, key) { - return arrayFind(store.a, function(it) { - return it[0] === key; - }); - }; - (UncaughtFrozenStore.prototype = { - get: function(key) { - var entry = findUncaughtFrozen(this, key); - if (entry) return entry[1]; - }, - has: function(key) { - return !!findUncaughtFrozen(this, key); - }, - set: function(key, value) { - var entry = findUncaughtFrozen(this, key); - entry ? (entry[1] = value) : this.a.push([key, value]); - }, - delete: function(key) { - var index = arrayFindIndex(this.a, function(it) { - return it[0] === key; - }); - return ~index && this.a.splice(index, 1), !!~index; - } - }), - (module.exports = { - getConstructor: function(wrapper, NAME, IS_MAP, ADDER) { - var C = wrapper(function(that, iterable) { - anInstance(that, C, NAME, '_i'), - (that._t = NAME), - (that._i = id++), - (that._l = void 0), - void 0 != iterable && forOf(iterable, IS_MAP, that[ADDER], that); - }); - return ( - redefineAll(C.prototype, { - delete: function(key) { - if (!isObject(key)) return !1; - var data = getWeak(key); - return !0 === data - ? uncaughtFrozenStore(validate(this, NAME)).delete(key) - : data && $has(data, this._i) && delete data[this._i]; - }, - has: function has(key) { - if (!isObject(key)) return !1; - var data = getWeak(key); - return !0 === data - ? uncaughtFrozenStore(validate(this, NAME)).has(key) - : data && $has(data, this._i); - } - }), - C - ); - }, - def: function(that, key, value) { - var data = getWeak(anObject(key), !0); - return ( - !0 === data ? uncaughtFrozenStore(that).set(key, value) : (data[that._i] = value), that - ); - }, - ufstore: uncaughtFrozenStore - }); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(289)('WeakMap'); - }, - function(module, exports, __webpack_require__) { - __webpack_require__(290)('WeakMap'); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.DecycleError = void 0); - var _DecycleError3 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(536)); - exports.DecycleError = _DecycleError3.default; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var DecycleError = (function(_BaseError) { - function DecycleError() { - return ( - (0, _classCallCheck3.default)(this, DecycleError), - (0, _possibleConstructorReturn3.default)( - this, - (DecycleError.__proto__ || (0, _getPrototypeOf2.default)(DecycleError)).apply( - this, - arguments - ) - ) - ); - } - return (0, _inherits3.default)(DecycleError, _BaseError), DecycleError; - })(__webpack_require__(537).BaseError); - exports.default = DecycleError; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var construct = 'undefined' != typeof Reflect ? Reflect.construct : void 0, - defineProperty = Object.defineProperty, - captureStackTrace = Error.captureStackTrace; - function BaseError(message) { - void 0 !== message && - defineProperty(this, 'message', { configurable: !0, value: message, writable: !0 }); - var cname = this.constructor.name; - void 0 !== cname && - cname !== this.name && - defineProperty(this, 'name', { configurable: !0, value: cname, writable: !0 }), - captureStackTrace(this, this.constructor); - } - void 0 === captureStackTrace && - (captureStackTrace = function captureStackTrace(error) { - var container = new Error(); - defineProperty(error, 'stack', { - configurable: !0, - get: function getStack() { - var stack = container.stack; - return defineProperty(this, 'stack', { value: stack }), stack; - }, - set: function setStack(stack) { - defineProperty(error, 'stack', { configurable: !0, value: stack, writable: !0 }); - } - }); - }), - (BaseError.prototype = Object.create(Error.prototype, { - constructor: { configurable: !0, value: BaseError, writable: !0 } - })); - var setFunctionName = (function() { - function setFunctionName(fn, name) { - return defineProperty(fn, 'name', { configurable: !0, value: name }); - } - try { - var f = function() {}; - if ((setFunctionName(f, 'foo'), 'foo' === f.name)) return setFunctionName; - } catch (_) {} - })(); - (module.exports = function makeError(constructor, super_) { - if (null == super_ || super_ === Error) super_ = BaseError; - else if ('function' != typeof super_) throw new TypeError('super_ should be a function'); - var name; - if ('string' == typeof constructor) - (name = constructor), - (constructor = - void 0 !== construct - ? function() { - return construct(super_, arguments, constructor); - } - : function() { - super_.apply(this, arguments); - }), - void 0 !== setFunctionName && (setFunctionName(constructor, name), (name = void 0)); - else if ('function' != typeof constructor) - throw new TypeError('constructor should be either a string or a function'); - constructor.super_ = constructor.super = super_; - var properties = { constructor: { configurable: !0, value: constructor, writable: !0 } }; - return ( - void 0 !== name && (properties.name = { configurable: !0, value: name, writable: !0 }), - (constructor.prototype = Object.create(super_.prototype, properties)), - constructor - ); - }).BaseError = BaseError; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(539); - var $Object = __webpack_require__(10).Object; - module.exports = function getOwnPropertyDescriptor(it, key) { - return $Object.getOwnPropertyDescriptor(it, key); - }; - }, - function(module, exports, __webpack_require__) { - var toIObject = __webpack_require__(46), - $getOwnPropertyDescriptor = __webpack_require__(150).f; - __webpack_require__(114)('getOwnPropertyDescriptor', function() { - return function getOwnPropertyDescriptor(it, key) { - return $getOwnPropertyDescriptor(toIObject(it), key); - }; - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function getPropertiesList(value) { - var keys = []; - for (var name in value) - try { - (hasOwnProperty.call(value, name) || 'function' != typeof value[name]) && - keys.push(name); - } catch (error) { - console.error('Error accessing property ' + name, error); - } - return keys; - }); - var hasOwnProperty = Object.prototype.hasOwnProperty; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function isObject(value) { - return '[object Object]' === toString.call(value); - }); - var toString = Object.prototype.toString; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _defineProperty2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(115)); - exports.default = function muteProperty(key, value) { - return (0, _defineProperty2.default)(value, key, { enumerable: !1 }); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _stringify2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(123)); - exports.default = function prepareArguments(arg) { - if (arg && void 0 !== arg.preventDefault) - return (0, _stringify2.default)('[' + arg.constructor.name + ']'); - try { - return (0, _stringify2.default)((0, _index.decycle)(arg)); - } catch (error) { - return error.toString(); - } - }; - var _index = __webpack_require__(105); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _types = __webpack_require__(173), - hasOwnProperty = Object.prototype.hasOwnProperty, - allTypes = _types.types.concat(_types.objectType); - exports.default = function typeFilter(value) { - var found = allTypes.find(function(type) { - return hasOwnProperty.call(value, type.KEY); - }); - return !!found && { value: found.deserialize(value) }; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _defineProperty3 = _interopRequireDefault(__webpack_require__(31)), - _createNamedObject2 = _interopRequireDefault(__webpack_require__(546)), - _getObjectName2 = _interopRequireDefault(__webpack_require__(550)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var KEY = '$___storybook.objectName', - objectType = { - KEY: KEY, - serialize: function serialize(value) { - return (0, _defineProperty3.default)({}, KEY, (0, _getObjectName2.default)(value)); - }, - deserialize: function deserialize(value) { - return (0, _createNamedObject2.default)(value, KEY); - } - }; - exports.default = objectType; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _assign2 = _interopRequireDefault(__webpack_require__(86)); - exports.default = function createNamedObject(obj, key) { - var namedObj = new ((0, _createFunction2.default)(obj[key]))(); - return delete obj[key], (0, _assign2.default)(namedObj, obj), namedObj; - }; - var _createFunction2 = _interopRequireDefault(__webpack_require__(174)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function createFunctionEval(name) { - var fnName = (0, _isReserved2.default)(name) ? name + '$' : name; - return new Function('return function ' + fnName + '() {}')(); - }); - var _isReserved2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(548)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function isReserved(name) { - return _reservedKeywords2.default.indexOf(name) >= 0; - }); - var _reservedKeywords2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(549)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - exports.default = [ - 'break', - 'case', - 'catch', - 'class', - 'continue', - 'debugger', - 'default', - 'delete', - 'do', - 'else', - 'export', - 'extends', - 'finally', - 'for', - 'function', - 'if', - 'import', - 'in', - 'instanceof', - 'new', - 'return', - 'super', - 'switch', - 'this', - 'throw', - 'try', - 'typeof', - 'var', - 'void', - 'while', - 'with', - 'yield' - ]; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function getObjectName(value) { - if ((0, _canAccessProperty2.default)('toString', value)) { - var stringValue = value.toString(); - if ('class' === stringValue.slice(0, 5)) return stringValue.slice(6, -3); - var type = stringValue.slice(8, -1); - if ('object' === stringValue.slice(1, 7) && 'Object' !== type) return type; - var parts = stringValue.match(/function (\w+).*/); - if (parts && 2 === parts.length) return parts[1]; - } - return value.constructor ? value.constructor.name : 'Object'; - }); - var _canAccessProperty2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(551)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function canAccessProperty(key, value) { - var prop = void 0; - try { - prop = value[key]; - } catch (error) { - console.error(error); - } - return !!prop; - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _defineProperty3 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(31)); - var KEY = '$___storybook.Date', - dateType = { - KEY: KEY, - is: function is(value) { - return value instanceof Date; - }, - serialize: function serialize(value) { - return (0, _defineProperty3.default)({}, KEY, value.toISOString()); - }, - deserialize: function deserialize(value) { - return new Date(value[KEY]); - } - }; - exports.default = dateType; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _defineProperty3 = _interopRequireDefault(__webpack_require__(31)), - _createBoundFunction2 = _interopRequireDefault(__webpack_require__(554)), - _createFunction2 = _interopRequireDefault(__webpack_require__(174)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var KEY = '$___storybook.functionName', - functionType = { - KEY: KEY, - is: function is(value) { - return 'function' == typeof value; - }, - serialize: function serialize(value) { - return (0, _defineProperty3.default)({}, KEY, value.name || ''); - }, - deserialize: function deserialize(value) { - var parts = value[KEY].split(' '); - return 2 === parts.length && 'bound' === parts[0] - ? (0, _createBoundFunction2.default)(parts[1]) - : (0, _createFunction2.default)(parts[0]); - } - }; - exports.default = functionType; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function createBoundFunction(name) { - return (0, _createFunction2.default)(name).bind({}); - }); - var _createFunction2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(174)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _defineProperty3 = _interopRequireDefault(__webpack_require__(31)), - _isFinite2 = _interopRequireDefault(__webpack_require__(556)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var KEY = '$___storybook.Infinity', - InfinityType = { - KEY: KEY, - is: function is(value) { - return 'number' == typeof value && !(0, _isFinite2.default)(value); - }, - serialize: function serialize(value) { - return (0, _defineProperty3.default)({}, KEY, value === 1 / 0); - }, - deserialize: function deserialize(value) { - return value[KEY] ? 1 / 0 : -1 / 0; - } - }; - exports.default = InfinityType; - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(557), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(558), (module.exports = __webpack_require__(10).Number.isFinite); - }, - function(module, exports, __webpack_require__) { - var $export = __webpack_require__(16), - _isFinite = __webpack_require__(17).isFinite; - $export($export.S, 'Number', { - isFinite: function isFinite(it) { - return 'number' == typeof it && _isFinite(it); - } - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _defineProperty3 = _interopRequireDefault(__webpack_require__(31)), - _isNan2 = _interopRequireDefault(__webpack_require__(286)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var KEY = '$___storybook.NaN', - NaNType = { - KEY: KEY, - is: function is(value) { - return 'number' == typeof value && (0, _isNan2.default)(value); - }, - serialize: function serialize() { - return (0, _defineProperty3.default)({}, KEY, !0); - }, - deserialize: function deserialize() { - return NaN; - } - }; - exports.default = NaNType; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _defineProperty3 = _interopRequireDefault(__webpack_require__(31)), - _createRegExp2 = _interopRequireDefault(__webpack_require__(561)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var KEY = '$___storybook.regExpKey', - regExpType = { - KEY: KEY, - is: function is(value) { - return value instanceof RegExp; - }, - serialize: function serialize(value) { - return (0, _defineProperty3.default)({}, KEY, value.toString()); - }, - deserialize: function deserialize(value) { - return (0, _createRegExp2.default)(value[KEY]); - } - }; - exports.default = regExpType; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function createRegExp(regExp) { - var parts = regExp.split('/'); - return new RegExp(parts[1], parts[2]); - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _defineProperty3 = _interopRequireDefault(__webpack_require__(31)), - _typeof3 = _interopRequireDefault(__webpack_require__(21)), - _createSymbol2 = _interopRequireDefault(__webpack_require__(563)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var KEY = '$___storybook.symbolName', - symbolType = { - KEY: KEY, - is: function is(value) { - return 'symbol' === (void 0 === value ? 'undefined' : (0, _typeof3.default)(value)); - }, - serialize: function serialize(value) { - return (0, _defineProperty3.default)({}, KEY, String(value).slice(7, -1) || null); - }, - deserialize: function deserialize(value) { - return (0, _createSymbol2.default)(value[KEY]); - } - }; - exports.default = symbolType; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _symbol2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(185)); - exports.default = function createSymbol(name) { - return (0, _symbol2.default)(name); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _defineProperty3 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(31)); - var KEY = '$___storybook.undefined', - undefinedType = { - KEY: KEY, - is: function is(value) { - return void 0 === value; - }, - serialize: function serialize() { - return (0, _defineProperty3.default)({}, KEY, !0); - }, - deserialize: function deserialize() {} - }; - exports.default = undefinedType; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _types = __webpack_require__(173); - exports.default = function typeReplacer(value) { - var found = _types.types.find(function(type) { - return type.is(value); - }); - return !!found && { value: found.serialize(value) }; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _typeof2 = __webpack_require__(21), - _typeof3 = _interopRequireDefault(_typeof2); - exports.default = retrocycle; - var _reviver = __webpack_require__(261), - _reviver2 = _interopRequireDefault(_reviver), - _util = __webpack_require__(84), - _ = __webpack_require__(105); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var pathReg = /^\$(?:\[(?:\d+|"(?:[^\\"\u0000-\u001f]|\\([\\"/bfnrt]|u[0-9a-zA-Z]{4}))*")])*$/; - function retrocycle(json) { - var $ = JSON.parse(json, _reviver2.default); - return 'object' !== (void 0 === $ ? 'undefined' : (0, _typeof3.default)($)) || null === $ - ? $ - : ((function rez(value) { - if ( - value && - 'object' === (void 0 === value ? 'undefined' : (0, _typeof3.default)(value)) - ) - if (Array.isArray(value)) - for (var i = 0; i < value.length; i += 1) { - var item = value[i]; - if ( - item && - 'object' === (void 0 === item ? 'undefined' : (0, _typeof3.default)(item)) - ) { - var path = item.$ref; - 'string' == typeof path && pathReg.test(path) - ? (value[i] = eval(path)) - : rez(item); - } - } - else - for (var name in value) { - var _item = value[name]; - if ( - 'object' === (void 0 === _item ? 'undefined' : (0, _typeof3.default)(_item)) && - null !== _item - ) { - var _path = _item.$ref; - 'string' == typeof _path && pathReg.test(_path) - ? (value[name] = eval(_path)) - : rez(_item); - } - } - })($), - (0, _util.muteProperty)(_.CYCLIC_KEY, $), - $); - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _reactInspector2 = _interopRequireDefault(__webpack_require__(568)), - _style2 = _interopRequireDefault(__webpack_require__(587)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ActionLogger = (function(_Component) { - function ActionLogger() { - return ( - (0, _classCallCheck3.default)(this, ActionLogger), - (0, _possibleConstructorReturn3.default)( - this, - (ActionLogger.__proto__ || (0, _getPrototypeOf2.default)(ActionLogger)).apply( - this, - arguments - ) - ) - ); - } - return ( - (0, _inherits3.default)(ActionLogger, _Component), - (0, _createClass3.default)(ActionLogger, [ - { - key: 'getActionData', - value: function getActionData() { - var _this2 = this; - return this.props.actions.map(function(action) { - return _this2.renderAction(action); - }); - } - }, - { - key: 'renderAction', - value: function renderAction(action) { - var counter = _react2.default.createElement( - 'div', - { style: _style2.default.counter }, - action.count - ); - return _react2.default.createElement( - 'div', - { key: action.id, style: _style2.default.action }, - _react2.default.createElement( - 'div', - { style: _style2.default.countwrap }, - action.count > 1 && counter - ), - _react2.default.createElement( - 'div', - { style: _style2.default.inspector }, - _react2.default.createElement(_reactInspector2.default, { - sortObjectKeys: !0, - showNonenumerable: !1, - name: action.data.name, - data: action.data.args || action.data - }) - ) - ); - } - }, - { - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { style: _style2.default.wrapper }, - _react2.default.createElement( - 'pre', - { style: _style2.default.actions }, - this.getActionData() - ), - _react2.default.createElement( - 'button', - { style: _style2.default.button, onClick: this.props.onClear }, - 'CLEAR' - ) - ); - } - } - ]), - ActionLogger - ); - })(_react.Component); - (ActionLogger.propTypes = { - onClear: _propTypes2.default.func, - actions: _propTypes2.default.array - }), - (ActionLogger.defaultProps = { onClear: function onClear() {}, actions: [] }), - (exports.default = ActionLogger); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.Inspector = exports.ObjectName = exports.ObjectValue = exports.ObjectRootLabel = exports.ObjectLabel = exports.DOMInspector = exports.TableInspector = exports.ObjectInspector = exports.chromeDark = exports.chromeLight = void 0); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _objectWithoutProperties3 = _interopRequireDefault(__webpack_require__(65)), - _themes = __webpack_require__(262); - Object.defineProperty(exports, 'chromeLight', { - enumerable: !0, - get: function get() { - return _themes.chromeLight; - } - }), - Object.defineProperty(exports, 'chromeDark', { - enumerable: !0, - get: function get() { - return _themes.chromeDark; - } - }); - var _ObjectInspector3 = _interopRequireDefault(__webpack_require__(571)), - _TableInspector3 = _interopRequireDefault(__webpack_require__(579)), - _DOMInspector3 = _interopRequireDefault(__webpack_require__(584)), - _ObjectLabel3 = _interopRequireDefault(__webpack_require__(266)), - _ObjectRootLabel3 = _interopRequireDefault(__webpack_require__(265)), - _ObjectValue3 = _interopRequireDefault(__webpack_require__(107)), - _ObjectName3 = _interopRequireDefault(__webpack_require__(106)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _isDom2 = _interopRequireDefault(__webpack_require__(586)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - (exports.ObjectInspector = _ObjectInspector3.default), - (exports.TableInspector = _TableInspector3.default), - (exports.DOMInspector = _DOMInspector3.default), - (exports.ObjectLabel = _ObjectLabel3.default), - (exports.ObjectRootLabel = _ObjectRootLabel3.default), - (exports.ObjectValue = _ObjectValue3.default), - (exports.ObjectName = _ObjectName3.default); - var Inspector = function Inspector(_ref) { - var _ref$table = _ref.table, - table = void 0 !== _ref$table && _ref$table, - data = _ref.data, - rest = (0, _objectWithoutProperties3.default)(_ref, ['table', 'data']); - return table - ? _react2.default.createElement( - _TableInspector3.default, - (0, _extends3.default)({ data: data }, rest) - ) - : (0, _isDom2.default)(data) - ? _react2.default.createElement( - _DOMInspector3.default, - (0, _extends3.default)({ data: data }, rest) - ) - : _react2.default.createElement( - _ObjectInspector3.default, - (0, _extends3.default)({ data: data }, rest) - ); - }; - (Inspector.propTypes = { - data: _propTypes2.default.any, - name: _propTypes2.default.string, - table: _propTypes2.default.bool - }), - (exports.Inspector = Inspector), - (exports.default = Inspector); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - exports.default = { - BASE_FONT_FAMILY: 'Menlo, monospace', - BASE_FONT_SIZE: '11px', - BASE_LINE_HEIGHT: '14px', - BASE_BACKGROUND_COLOR: 'rgb(36, 36, 36)', - BASE_COLOR: 'rgb(213, 213, 213)', - OBJECT_NAME_COLOR: 'rgb(227, 110, 236)', - OBJECT_VALUE_NULL_COLOR: 'rgb(127, 127, 127)', - OBJECT_VALUE_UNDEFINED_COLOR: 'rgb(127, 127, 127)', - OBJECT_VALUE_REGEXP_COLOR: 'rgb(233, 63, 59)', - OBJECT_VALUE_STRING_COLOR: 'rgb(233, 63, 59)', - OBJECT_VALUE_SYMBOL_COLOR: 'rgb(233, 63, 59)', - OBJECT_VALUE_NUMBER_COLOR: 'hsl(252, 100%, 75%)', - OBJECT_VALUE_BOOLEAN_COLOR: 'hsl(252, 100%, 75%)', - OBJECT_VALUE_FUNCTION_KEYWORD_COLOR: 'rgb(242, 85, 217)', - HTML_TAG_COLOR: 'rgb(93, 176, 215)', - HTML_TAGNAME_COLOR: 'rgb(93, 176, 215)', - HTML_TAGNAME_TEXT_TRANSFORM: 'lowercase', - HTML_ATTRIBUTE_NAME_COLOR: 'rgb(155, 187, 220)', - HTML_ATTRIBUTE_VALUE_COLOR: 'rgb(242, 151, 102)', - HTML_COMMENT_COLOR: 'rgb(137, 137, 137)', - HTML_DOCTYPE_COLOR: 'rgb(192, 192, 192)', - ARROW_COLOR: 'rgb(145, 145, 145)', - ARROW_MARGIN_RIGHT: 3, - ARROW_FONT_SIZE: 12, - TREENODE_FONT_FAMILY: 'Menlo, monospace', - TREENODE_FONT_SIZE: '11px', - TREENODE_LINE_HEIGHT: '14px', - TREENODE_PADDING_LEFT: 12, - TABLE_BORDER_COLOR: 'rgb(85, 85, 85)', - TABLE_TH_BACKGROUND_COLOR: 'rgb(44, 44, 44)', - TABLE_TH_HOVER_COLOR: 'rgb(48, 48, 48)', - TABLE_SORT_ICON_COLOR: 'black', - TABLE_DATA_BACKGROUND_IMAGE: - 'linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))', - TABLE_DATA_BACKGROUND_SIZE: '128px 32px' - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - exports.default = { - BASE_FONT_FAMILY: 'Menlo, monospace', - BASE_FONT_SIZE: '11px', - BASE_LINE_HEIGHT: '14px', - BASE_BACKGROUND_COLOR: 'white', - BASE_COLOR: 'black', - OBJECT_NAME_COLOR: 'rgb(136, 19, 145)', - OBJECT_VALUE_NULL_COLOR: 'rgb(128, 128, 128)', - OBJECT_VALUE_UNDEFINED_COLOR: 'rgb(128, 128, 128)', - OBJECT_VALUE_REGEXP_COLOR: 'rgb(196, 26, 22)', - OBJECT_VALUE_STRING_COLOR: 'rgb(196, 26, 22)', - OBJECT_VALUE_SYMBOL_COLOR: 'rgb(196, 26, 22)', - OBJECT_VALUE_NUMBER_COLOR: 'rgb(28, 0, 207)', - OBJECT_VALUE_BOOLEAN_COLOR: 'rgb(28, 0, 207)', - OBJECT_VALUE_FUNCTION_KEYWORD_COLOR: 'rgb(170, 13, 145)', - HTML_TAG_COLOR: 'rgb(168, 148, 166)', - HTML_TAGNAME_COLOR: 'rgb(136, 18, 128)', - HTML_TAGNAME_TEXT_TRANSFORM: 'lowercase', - HTML_ATTRIBUTE_NAME_COLOR: 'rgb(153, 69, 0)', - HTML_ATTRIBUTE_VALUE_COLOR: 'rgb(26, 26, 166)', - HTML_COMMENT_COLOR: 'rgb(35, 110, 37)', - HTML_DOCTYPE_COLOR: 'rgb(192, 192, 192)', - ARROW_COLOR: '#6e6e6e', - ARROW_MARGIN_RIGHT: 3, - ARROW_FONT_SIZE: 12, - TREENODE_FONT_FAMILY: 'Menlo, monospace', - TREENODE_FONT_SIZE: '11px', - TREENODE_LINE_HEIGHT: '14px', - TREENODE_PADDING_LEFT: 12, - TABLE_BORDER_COLOR: '#aaa', - TABLE_TH_BACKGROUND_COLOR: '#eee', - TABLE_TH_HOVER_COLOR: 'hsla(0, 0%, 90%, 1)', - TABLE_SORT_ICON_COLOR: '#6e6e6e', - TABLE_DATA_BACKGROUND_IMAGE: - 'linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))', - TABLE_DATA_BACKGROUND_SIZE: '128px 32px' - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _objectWithoutProperties3 = _interopRequireDefault(__webpack_require__(65)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _regenerator2 = _interopRequireDefault(__webpack_require__(263)), - _slicedToArray3 = _interopRequireDefault(__webpack_require__(186)), - _typeof3 = _interopRequireDefault(__webpack_require__(21)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _TreeView2 = _interopRequireDefault(__webpack_require__(264)), - _ObjectRootLabel2 = _interopRequireDefault(__webpack_require__(265)), - _ObjectLabel2 = _interopRequireDefault(__webpack_require__(266)), - _ThemeProvider2 = _interopRequireDefault(__webpack_require__(175)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var defaultNodeRenderer = function defaultNodeRenderer(_ref) { - var depth = _ref.depth, - name = _ref.name, - data = _ref.data, - isNonenumerable = _ref.isNonenumerable; - return 0 === depth - ? _react2.default.createElement(_ObjectRootLabel2.default, { name: name, data: data }) - : _react2.default.createElement(_ObjectLabel2.default, { - name: name, - data: data, - isNonenumerable: isNonenumerable - }); - }, - ObjectInspector = (function(_Component) { - function ObjectInspector() { - return ( - (0, _classCallCheck3.default)(this, ObjectInspector), - (0, _possibleConstructorReturn3.default)( - this, - (ObjectInspector.__proto__ || Object.getPrototypeOf(ObjectInspector)).apply( - this, - arguments - ) - ) - ); - } - return ( - (0, _inherits3.default)(ObjectInspector, _Component), - (0, _createClass3.default)(ObjectInspector, [ - { - key: 'render', - value: function render() { - var _props = this.props, - showNonenumerable = _props.showNonenumerable, - sortObjectKeys = _props.sortObjectKeys, - nodeRenderer = _props.nodeRenderer, - rest = (0, _objectWithoutProperties3.default)(_props, [ - 'showNonenumerable', - 'sortObjectKeys', - 'nodeRenderer' - ]), - dataIterator = (function createIterator(showNonenumerable, sortObjectKeys) { - return _regenerator2.default.mark(function objectIterator(data) { - var i, - _iteratorNormalCompletion, - _didIteratorError, - _iteratorError, - _iterator, - _step, - entry, - _entry, - k, - v, - keys, - _iteratorNormalCompletion2, - _didIteratorError2, - _iteratorError2, - _iterator2, - _step2, - propertyName, - propertyValue, - _propertyValue; - return _regenerator2.default.wrap( - function objectIterator$(_context) { - for (;;) - switch ((_context.prev = _context.next)) { - case 0: - if ( - ('object' === - (void 0 === data ? 'undefined' : (0, _typeof3.default)(data)) && - null !== data) || - 'function' == typeof data - ) { - _context.next = 3; - break; - } - return _context.abrupt('return'); - case 3: - if (Array.isArray(data) || !data[Symbol.iterator]) { - _context.next = 40; - break; - } - (i = 0), - (_iteratorNormalCompletion = !0), - (_didIteratorError = !1), - (_iteratorError = void 0), - (_context.prev = 8), - (_iterator = data[Symbol.iterator]()); - case 10: - if ((_iteratorNormalCompletion = (_step = _iterator.next()).done)) { - _context.next = 24; - break; - } - if ( - ((entry = _step.value), - !Array.isArray(entry) || 2 !== entry.length) - ) { - _context.next = 18; - break; - } - return ( - (_entry = (0, _slicedToArray3.default)(entry, 2)), - (k = _entry[0]), - (v = _entry[1]), - (_context.next = 16), - { name: k, data: v } - ); - case 16: - _context.next = 20; - break; - case 18: - return (_context.next = 20), { name: i.toString(), data: entry }; - case 20: - i++; - case 21: - (_iteratorNormalCompletion = !0), (_context.next = 10); - break; - case 24: - _context.next = 30; - break; - case 26: - (_context.prev = 26), - (_context.t0 = _context.catch(8)), - (_didIteratorError = !0), - (_iteratorError = _context.t0); - case 30: - (_context.prev = 30), - (_context.prev = 31), - !_iteratorNormalCompletion && - _iterator.return && - _iterator.return(); - case 33: - if (((_context.prev = 33), !_didIteratorError)) { - _context.next = 36; - break; - } - throw _iteratorError; - case 36: - return _context.finish(33); - case 37: - return _context.finish(30); - case 38: - _context.next = 81; - break; - case 40: - (keys = Object.getOwnPropertyNames(data)), - !0 === sortObjectKeys - ? keys.sort() - : 'function' == typeof sortObjectKeys && - keys.sort(sortObjectKeys), - (_iteratorNormalCompletion2 = !0), - (_didIteratorError2 = !1), - (_iteratorError2 = void 0), - (_context.prev = 45), - (_iterator2 = keys[Symbol.iterator]()); - case 47: - if ( - (_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done) - ) { - _context.next = 64; - break; - } - if ( - ((propertyName = _step2.value), - !data.propertyIsEnumerable(propertyName)) - ) { - _context.next = 55; - break; - } - return ( - (propertyValue = data[propertyName]), - (_context.next = 53), - { name: propertyName || '""', data: propertyValue } - ); - case 53: - _context.next = 61; - break; - case 55: - if (!showNonenumerable) { - _context.next = 61; - break; - } - _propertyValue = void 0; - try { - _propertyValue = data[propertyName]; - } catch (e) {} - if (void 0 === _propertyValue) { - _context.next = 61; - break; - } - return ( - (_context.next = 61), - { name: propertyName, data: _propertyValue, isNonenumerable: !0 } - ); - case 61: - (_iteratorNormalCompletion2 = !0), (_context.next = 47); - break; - case 64: - _context.next = 70; - break; - case 66: - (_context.prev = 66), - (_context.t1 = _context.catch(45)), - (_didIteratorError2 = !0), - (_iteratorError2 = _context.t1); - case 70: - (_context.prev = 70), - (_context.prev = 71), - !_iteratorNormalCompletion2 && - _iterator2.return && - _iterator2.return(); - case 73: - if (((_context.prev = 73), !_didIteratorError2)) { - _context.next = 76; - break; - } - throw _iteratorError2; - case 76: - return _context.finish(73); - case 77: - return _context.finish(70); - case 78: - if (!showNonenumerable || data === Object.prototype) { - _context.next = 81; - break; - } - return ( - (_context.next = 81), - { - name: '__proto__', - data: Object.getPrototypeOf(data), - isNonenumerable: !0 - } - ); - case 81: - case 'end': - return _context.stop(); - } - }, - objectIterator, - this, - [[8, 26, 30, 38], [31, , 33, 37], [45, 66, 70, 78], [71, , 73, 77]] - ); - }); - })(showNonenumerable, sortObjectKeys), - renderer = nodeRenderer || defaultNodeRenderer; - return _react2.default.createElement( - _ThemeProvider2.default, - { theme: this.props.theme }, - _react2.default.createElement( - _TreeView2.default, - (0, _extends3.default)( - { nodeRenderer: renderer, dataIterator: dataIterator }, - rest - ) - ) - ); - } - } - ]), - ObjectInspector - ); - })(_react.Component); - (ObjectInspector.defaultProps = { showNonenumerable: !1, theme: 'chromeLight' }), - (ObjectInspector.propTypes = { - expandLevel: _propTypes2.default.number, - expandPaths: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.array - ]), - name: _propTypes2.default.string, - data: _propTypes2.default.any, - theme: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.object - ]), - showNonenumerable: _propTypes2.default.bool, - sortObjectKeys: _propTypes2.default.oneOfType([ - _propTypes2.default.bool, - _propTypes2.default.func - ]), - nodeRenderer: _propTypes2.default.func - }), - (exports.default = ObjectInspector); - }, - function(module, exports, __webpack_require__) { - var g = - (function() { - return this; - })() || Function('return this')(), - hadRuntime = - g.regeneratorRuntime && Object.getOwnPropertyNames(g).indexOf('regeneratorRuntime') >= 0, - oldRuntime = hadRuntime && g.regeneratorRuntime; - if (((g.regeneratorRuntime = void 0), (module.exports = __webpack_require__(573)), hadRuntime)) - g.regeneratorRuntime = oldRuntime; - else - try { - delete g.regeneratorRuntime; - } catch (e) { - g.regeneratorRuntime = void 0; - } - }, - function(module, exports) { - !(function(global) { - 'use strict'; - var undefined, - Op = Object.prototype, - hasOwn = Op.hasOwnProperty, - $Symbol = 'function' == typeof Symbol ? Symbol : {}, - iteratorSymbol = $Symbol.iterator || '@@iterator', - asyncIteratorSymbol = $Symbol.asyncIterator || '@@asyncIterator', - toStringTagSymbol = $Symbol.toStringTag || '@@toStringTag', - inModule = 'object' == typeof module, - runtime = global.regeneratorRuntime; - if (runtime) inModule && (module.exports = runtime); - else { - (runtime = global.regeneratorRuntime = inModule ? module.exports : {}).wrap = wrap; - var GenStateSuspendedStart = 'suspendedStart', - GenStateSuspendedYield = 'suspendedYield', - GenStateExecuting = 'executing', - GenStateCompleted = 'completed', - ContinueSentinel = {}, - IteratorPrototype = {}; - IteratorPrototype[iteratorSymbol] = function() { - return this; - }; - var getProto = Object.getPrototypeOf, - NativeIteratorPrototype = getProto && getProto(getProto(values([]))); - NativeIteratorPrototype && - NativeIteratorPrototype !== Op && - hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && - (IteratorPrototype = NativeIteratorPrototype); - var Gp = (GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create( - IteratorPrototype - )); - (GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype), - (GeneratorFunctionPrototype.constructor = GeneratorFunction), - (GeneratorFunctionPrototype[toStringTagSymbol] = GeneratorFunction.displayName = - 'GeneratorFunction'), - (runtime.isGeneratorFunction = function(genFun) { - var ctor = 'function' == typeof genFun && genFun.constructor; - return ( - !!ctor && - (ctor === GeneratorFunction || - 'GeneratorFunction' === (ctor.displayName || ctor.name)) - ); - }), - (runtime.mark = function(genFun) { - return ( - Object.setPrototypeOf - ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) - : ((genFun.__proto__ = GeneratorFunctionPrototype), - toStringTagSymbol in genFun || (genFun[toStringTagSymbol] = 'GeneratorFunction')), - (genFun.prototype = Object.create(Gp)), - genFun - ); - }), - (runtime.awrap = function(arg) { - return { __await: arg }; - }), - defineIteratorMethods(AsyncIterator.prototype), - (AsyncIterator.prototype[asyncIteratorSymbol] = function() { - return this; - }), - (runtime.AsyncIterator = AsyncIterator), - (runtime.async = function(innerFn, outerFn, self, tryLocsList) { - var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList)); - return runtime.isGeneratorFunction(outerFn) - ? iter - : iter.next().then(function(result) { - return result.done ? result.value : iter.next(); - }); - }), - defineIteratorMethods(Gp), - (Gp[toStringTagSymbol] = 'Generator'), - (Gp[iteratorSymbol] = function() { - return this; - }), - (Gp.toString = function() { - return '[object Generator]'; - }), - (runtime.keys = function(object) { - var keys = []; - for (var key in object) keys.push(key); - return ( - keys.reverse(), - function next() { - for (; keys.length; ) { - var key = keys.pop(); - if (key in object) return (next.value = key), (next.done = !1), next; - } - return (next.done = !0), next; - } - ); - }), - (runtime.values = values), - (Context.prototype = { - constructor: Context, - reset: function(skipTempReset) { - if ( - ((this.prev = 0), - (this.next = 0), - (this.sent = this._sent = undefined), - (this.done = !1), - (this.delegate = null), - (this.method = 'next'), - (this.arg = undefined), - this.tryEntries.forEach(resetTryEntry), - !skipTempReset) - ) - for (var name in this) - 't' === name.charAt(0) && - hasOwn.call(this, name) && - !isNaN(+name.slice(1)) && - (this[name] = undefined); - }, - stop: function() { - this.done = !0; - var rootRecord = this.tryEntries[0].completion; - if ('throw' === rootRecord.type) throw rootRecord.arg; - return this.rval; - }, - dispatchException: function(exception) { - if (this.done) throw exception; - var context = this; - function handle(loc, caught) { - return ( - (record.type = 'throw'), - (record.arg = exception), - (context.next = loc), - caught && ((context.method = 'next'), (context.arg = undefined)), - !!caught - ); - } - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i], - record = entry.completion; - if ('root' === entry.tryLoc) return handle('end'); - if (entry.tryLoc <= this.prev) { - var hasCatch = hasOwn.call(entry, 'catchLoc'), - hasFinally = hasOwn.call(entry, 'finallyLoc'); - if (hasCatch && hasFinally) { - if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); - if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); - } else if (hasCatch) { - if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); - } else { - if (!hasFinally) throw new Error('try statement without catch or finally'); - if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); - } - } - } - }, - abrupt: function(type, arg) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if ( - entry.tryLoc <= this.prev && - hasOwn.call(entry, 'finallyLoc') && - this.prev < entry.finallyLoc - ) { - var finallyEntry = entry; - break; - } - } - finallyEntry && - ('break' === type || 'continue' === type) && - finallyEntry.tryLoc <= arg && - arg <= finallyEntry.finallyLoc && - (finallyEntry = null); - var record = finallyEntry ? finallyEntry.completion : {}; - return ( - (record.type = type), - (record.arg = arg), - finallyEntry - ? ((this.method = 'next'), - (this.next = finallyEntry.finallyLoc), - ContinueSentinel) - : this.complete(record) - ); - }, - complete: function(record, afterLoc) { - if ('throw' === record.type) throw record.arg; - return ( - 'break' === record.type || 'continue' === record.type - ? (this.next = record.arg) - : 'return' === record.type - ? ((this.rval = this.arg = record.arg), - (this.method = 'return'), - (this.next = 'end')) - : 'normal' === record.type && afterLoc && (this.next = afterLoc), - ContinueSentinel - ); - }, - finish: function(finallyLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.finallyLoc === finallyLoc) - return ( - this.complete(entry.completion, entry.afterLoc), - resetTryEntry(entry), - ContinueSentinel - ); - } - }, - catch: function(tryLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc === tryLoc) { - var record = entry.completion; - if ('throw' === record.type) { - var thrown = record.arg; - resetTryEntry(entry); - } - return thrown; - } - } - throw new Error('illegal catch attempt'); - }, - delegateYield: function(iterable, resultName, nextLoc) { - return ( - (this.delegate = { - iterator: values(iterable), - resultName: resultName, - nextLoc: nextLoc - }), - 'next' === this.method && (this.arg = undefined), - ContinueSentinel - ); - } - }); - } - function wrap(innerFn, outerFn, self, tryLocsList) { - var protoGenerator = - outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, - generator = Object.create(protoGenerator.prototype), - context = new Context(tryLocsList || []); - return ( - (generator._invoke = (function makeInvokeMethod(innerFn, self, context) { - var state = GenStateSuspendedStart; - return function invoke(method, arg) { - if (state === GenStateExecuting) throw new Error('Generator is already running'); - if (state === GenStateCompleted) { - if ('throw' === method) throw arg; - return doneResult(); - } - for (context.method = method, context.arg = arg; ; ) { - var delegate = context.delegate; - if (delegate) { - var delegateResult = maybeInvokeDelegate(delegate, context); - if (delegateResult) { - if (delegateResult === ContinueSentinel) continue; - return delegateResult; - } - } - if ('next' === context.method) context.sent = context._sent = context.arg; - else if ('throw' === context.method) { - if (state === GenStateSuspendedStart) - throw ((state = GenStateCompleted), context.arg); - context.dispatchException(context.arg); - } else 'return' === context.method && context.abrupt('return', context.arg); - state = GenStateExecuting; - var record = tryCatch(innerFn, self, context); - if ('normal' === record.type) { - if ( - ((state = context.done ? GenStateCompleted : GenStateSuspendedYield), - record.arg === ContinueSentinel) - ) - continue; - return { value: record.arg, done: context.done }; - } - 'throw' === record.type && - ((state = GenStateCompleted), - (context.method = 'throw'), - (context.arg = record.arg)); - } - }; - })(innerFn, self, context)), - generator - ); - } - function tryCatch(fn, obj, arg) { - try { - return { type: 'normal', arg: fn.call(obj, arg) }; - } catch (err) { - return { type: 'throw', arg: err }; - } - } - function Generator() {} - function GeneratorFunction() {} - function GeneratorFunctionPrototype() {} - function defineIteratorMethods(prototype) { - ['next', 'throw', 'return'].forEach(function(method) { - prototype[method] = function(arg) { - return this._invoke(method, arg); - }; - }); - } - function AsyncIterator(generator) { - var previousPromise; - this._invoke = function enqueue(method, arg) { - function callInvokeWithMethodAndArg() { - return new Promise(function(resolve, reject) { - !(function invoke(method, arg, resolve, reject) { - var record = tryCatch(generator[method], generator, arg); - if ('throw' !== record.type) { - var result = record.arg, - value = result.value; - return value && 'object' == typeof value && hasOwn.call(value, '__await') - ? Promise.resolve(value.__await).then( - function(value) { - invoke('next', value, resolve, reject); - }, - function(err) { - invoke('throw', err, resolve, reject); - } - ) - : Promise.resolve(value).then(function(unwrapped) { - (result.value = unwrapped), resolve(result); - }, reject); - } - reject(record.arg); - })(method, arg, resolve, reject); - }); - } - return (previousPromise = previousPromise - ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) - : callInvokeWithMethodAndArg()); - }; - } - function maybeInvokeDelegate(delegate, context) { - var method = delegate.iterator[context.method]; - if (method === undefined) { - if (((context.delegate = null), 'throw' === context.method)) { - if ( - delegate.iterator.return && - ((context.method = 'return'), - (context.arg = undefined), - maybeInvokeDelegate(delegate, context), - 'throw' === context.method) - ) - return ContinueSentinel; - (context.method = 'throw'), - (context.arg = new TypeError("The iterator does not provide a 'throw' method")); - } - return ContinueSentinel; - } - var record = tryCatch(method, delegate.iterator, context.arg); - if ('throw' === record.type) - return ( - (context.method = 'throw'), - (context.arg = record.arg), - (context.delegate = null), - ContinueSentinel - ); - var info = record.arg; - return info - ? info.done - ? ((context[delegate.resultName] = info.value), - (context.next = delegate.nextLoc), - 'return' !== context.method && ((context.method = 'next'), (context.arg = undefined)), - (context.delegate = null), - ContinueSentinel) - : info - : ((context.method = 'throw'), - (context.arg = new TypeError('iterator result is not an object')), - (context.delegate = null), - ContinueSentinel); - } - function pushTryEntry(locs) { - var entry = { tryLoc: locs[0] }; - 1 in locs && (entry.catchLoc = locs[1]), - 2 in locs && ((entry.finallyLoc = locs[2]), (entry.afterLoc = locs[3])), - this.tryEntries.push(entry); - } - function resetTryEntry(entry) { - var record = entry.completion || {}; - (record.type = 'normal'), delete record.arg, (entry.completion = record); - } - function Context(tryLocsList) { - (this.tryEntries = [{ tryLoc: 'root' }]), - tryLocsList.forEach(pushTryEntry, this), - this.reset(!0); - } - function values(iterable) { - if (iterable) { - var iteratorMethod = iterable[iteratorSymbol]; - if (iteratorMethod) return iteratorMethod.call(iterable); - if ('function' == typeof iterable.next) return iterable; - if (!isNaN(iterable.length)) { - var i = -1, - next = function next() { - for (; ++i < iterable.length; ) - if (hasOwn.call(iterable, i)) - return (next.value = iterable[i]), (next.done = !1), next; - return (next.value = undefined), (next.done = !0), next; - }; - return (next.next = next); - } - } - return { next: doneResult }; - } - function doneResult() { - return { value: undefined, done: !0 }; - } - })( - (function() { - return this; - })() || Function('return this')() - ); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _extends3 = _interopRequireDefault(__webpack_require__(8)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _createStyles2 = _interopRequireDefault(__webpack_require__(44)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var Arrow = function Arrow(_ref) { - var expanded = _ref.expanded, - styles = _ref.styles; - return _react2.default.createElement( - 'span', - { - style: (0, _extends3.default)( - {}, - styles.base, - expanded ? styles.expanded : styles.collapsed - ) - }, - '▶' - ); - }, - TreeNode = (function(_Component) { - function TreeNode() { - return ( - (0, _classCallCheck3.default)(this, TreeNode), - (0, _possibleConstructorReturn3.default)( - this, - (TreeNode.__proto__ || Object.getPrototypeOf(TreeNode)).apply(this, arguments) - ) - ); - } - return ( - (0, _inherits3.default)(TreeNode, _Component), - (0, _createClass3.default)(TreeNode, [ - { - key: 'render', - value: function render() { - var _props = this.props, - expanded = _props.expanded, - onClick = _props.onClick, - children = _props.children, - nodeRenderer = _props.nodeRenderer, - title = _props.title, - shouldShowArrow = _props.shouldShowArrow, - shouldShowPlaceholder = _props.shouldShowPlaceholder, - theme = this.context.theme, - styles = (0, _createStyles2.default)('TreeNode', theme), - renderedNode = (0, _react.createElement)(nodeRenderer, this.props), - childNodes = expanded ? children : void 0; - return _react2.default.createElement( - 'li', - { - 'aria-expanded': expanded, - role: 'treeitem', - style: styles.treeNodeBase, - title: title - }, - _react2.default.createElement( - 'div', - { style: styles.treeNodePreviewContainer, onClick: onClick }, - shouldShowArrow || _react.Children.count(children) > 0 - ? _react2.default.createElement(Arrow, { - expanded: expanded, - styles: styles.treeNodeArrow - }) - : shouldShowPlaceholder && - _react2.default.createElement( - 'span', - { style: styles.treeNodePlaceholder }, - ' ' - ), - renderedNode - ), - _react2.default.createElement( - 'ol', - { role: 'group', style: styles.treeNodeChildNodesContainer }, - childNodes - ) - ); - } - } - ]), - TreeNode - ); - })(_react.Component); - (TreeNode.propTypes = { - name: _propTypes2.default.string, - data: _propTypes2.default.any, - expanded: _propTypes2.default.bool, - shouldShowArrow: _propTypes2.default.bool, - shouldShowPlaceholder: _propTypes2.default.bool, - nodeRenderer: _propTypes2.default.func, - onClick: _propTypes2.default.func - }), - (TreeNode.defaultProps = { - name: void 0, - data: void 0, - expanded: !0, - nodeRenderer: function nodeRenderer(_ref2) { - var name = _ref2.name; - return _react2.default.createElement('span', null, name); - }, - onClick: function onClick() {}, - shouldShowArrow: !1, - shouldShowPlaceholder: !0 - }), - (TreeNode.contextTypes = { - theme: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.object - ]).isRequired - }), - (exports.default = TreeNode); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _unselectable2 = _interopRequireDefault(__webpack_require__(576)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - exports.default = function(theme) { - return { - DOMNodePreview: { - htmlOpenTag: { - base: { color: theme.HTML_TAG_COLOR }, - tagName: { - color: theme.HTML_TAGNAME_COLOR, - textTransform: theme.HTML_TAGNAME_TEXT_TRANSFORM - }, - htmlAttributeName: { color: theme.HTML_ATTRIBUTE_NAME_COLOR }, - htmlAttributeValue: { color: theme.HTML_ATTRIBUTE_VALUE_COLOR } - }, - htmlCloseTag: { - base: { color: theme.HTML_TAG_COLOR }, - offsetLeft: { marginLeft: -theme.TREENODE_PADDING_LEFT }, - tagName: { - color: theme.HTML_TAGNAME_COLOR, - textTransform: theme.HTML_TAGNAME_TEXT_TRANSFORM - } - }, - htmlComment: { color: theme.HTML_COMMENT_COLOR }, - htmlDoctype: { color: theme.HTML_DOCTYPE_COLOR } - }, - ObjectName: { base: { color: theme.OBJECT_NAME_COLOR }, dimmed: { opacity: 0.6 } }, - ObjectValue: { - objectValueNull: { color: theme.OBJECT_VALUE_NULL_COLOR }, - objectValueUndefined: { color: theme.OBJECT_VALUE_UNDEFINED_COLOR }, - objectValueRegExp: { color: theme.OBJECT_VALUE_REGEXP_COLOR }, - objectValueString: { color: theme.OBJECT_VALUE_STRING_COLOR }, - objectValueSymbol: { color: theme.OBJECT_VALUE_SYMBOL_COLOR }, - objectValueNumber: { color: theme.OBJECT_VALUE_NUMBER_COLOR }, - objectValueBoolean: { color: theme.OBJECT_VALUE_BOOLEAN_COLOR }, - objectValueFunctionKeyword: { - color: theme.OBJECT_VALUE_FUNCTION_KEYWORD_COLOR, - fontStyle: 'italic' - }, - objectValueFunctionName: { fontStyle: 'italic' } - }, - TreeNode: { - treeNodeBase: { - color: theme.BASE_COLOR, - backgroundColor: theme.BASE_BACKGROUND_COLOR, - lineHeight: theme.TREENODE_LINE_HEIGHT, - cursor: 'default', - boxSizing: 'border-box', - listStyle: 'none', - fontFamily: theme.TREENODE_FONT_FAMILY, - fontSize: theme.TREENODE_FONT_SIZE - }, - treeNodePreviewContainer: {}, - treeNodePlaceholder: (0, _extends3.default)( - { - whiteSpace: 'pre', - fontSize: theme.ARROW_FONT_SIZE, - marginRight: theme.ARROW_MARGIN_RIGHT - }, - _unselectable2.default - ), - treeNodeArrow: { - base: (0, _extends3.default)( - { - color: theme.ARROW_COLOR, - display: 'inline-block', - fontSize: theme.ARROW_FONT_SIZE, - marginRight: theme.ARROW_MARGIN_RIGHT - }, - _unselectable2.default - ), - expanded: { - WebkitTransform: 'rotateZ(90deg)', - MozTransform: 'rotateZ(90deg)', - transform: 'rotateZ(90deg)' - }, - collapsed: { - WebkitTransform: 'rotateZ(0deg)', - MozTransform: 'rotateZ(0deg)', - transform: 'rotateZ(0deg)' - } - }, - treeNodeChildNodesContainer: { margin: 0, paddingLeft: theme.TREENODE_PADDING_LEFT } - }, - TableInspector: { - base: { - color: theme.BASE_COLOR, - position: 'relative', - border: '1px solid ' + theme.TABLE_BORDER_COLOR, - fontFamily: theme.BASE_FONT_FAMILY, - fontSize: theme.BASE_FONT_SIZE, - lineHeight: '120%', - boxSizing: 'border-box', - cursor: 'default' - } - }, - TableInspectorHeaderContainer: { - base: { top: 0, height: '17px', left: 0, right: 0, overflowX: 'hidden' }, - table: { - tableLayout: 'fixed', - borderSpacing: 0, - borderCollapse: 'separate', - height: '100%', - width: '100%', - margin: 0 - } - }, - TableInspectorDataContainer: { - tr: { display: 'table-row' }, - td: { - boxSizing: 'border-box', - border: 'none', - height: '16px', - verticalAlign: 'top', - padding: '1px 4px', - WebkitUserSelect: 'text', - whiteSpace: 'nowrap', - textOverflow: 'ellipsis', - overflow: 'hidden', - lineHeight: '14px' - }, - div: { - position: 'static', - top: '17px', - bottom: 0, - overflowY: 'overlay', - transform: 'translateZ(0)', - left: 0, - right: 0, - overflowX: 'hidden' - }, - table: { - positon: 'static', - left: 0, - top: 0, - right: 0, - bottom: 0, - borderTop: '0 none transparent', - margin: 0, - backgroundImage: theme.TABLE_DATA_BACKGROUND_IMAGE, - backgroundSize: theme.TABLE_DATA_BACKGROUND_SIZE, - tableLayout: 'fixed', - borderSpacing: 0, - borderCollapse: 'separate', - width: '100%', - fontSize: theme.BASE_FONT_SIZE, - lineHeight: '120%' - } - }, - TableInspectorTH: { - base: { - position: 'relative', - height: 'auto', - textAlign: 'left', - backgroundColor: theme.TABLE_TH_BACKGROUND_COLOR, - borderBottom: '1px solid ' + theme.TABLE_BORDER_COLOR, - fontWeight: 'normal', - verticalAlign: 'middle', - padding: '0 4px', - whiteSpace: 'nowrap', - textOverflow: 'ellipsis', - overflow: 'hidden', - lineHeight: '14px', - ':hover': { backgroundColor: theme.TABLE_TH_HOVER_COLOR } - }, - div: { - whiteSpace: 'nowrap', - textOverflow: 'ellipsis', - overflow: 'hidden', - fontSize: theme.BASE_FONT_SIZE, - lineHeight: '120%' - } - }, - TableInspectorLeftBorder: { - none: { borderLeft: 'none' }, - solid: { borderLeft: '1px solid ' + theme.TABLE_BORDER_COLOR } - }, - TableInspectorSortIcon: (0, _extends3.default)( - { - display: 'block', - marginRight: 3, - width: 8, - height: 7, - marginTop: -7, - color: theme.TABLE_SORT_ICON_COLOR, - fontSize: 12 - }, - _unselectable2.default - ) - }; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = { - WebkitTouchCallout: 'none', - WebkitUserSelect: 'none', - KhtmlUserSelect: 'none', - MozUserSelect: 'none', - msUserSelect: 'none', - OUserSelect: 'none', - userSelect: 'none' - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.hasChildNodes = hasChildNodes); - var DEFAULT_ROOT_PATH = (exports.DEFAULT_ROOT_PATH = '$'); - function hasChildNodes(data, dataIterator) { - return !dataIterator(data).next().done; - } - var wildcardPathsFromLevel = (exports.wildcardPathsFromLevel = function wildcardPathsFromLevel( - level - ) { - return Array.from({ length: level }, function(_, i) { - return [DEFAULT_ROOT_PATH] - .concat( - Array.from({ length: i }, function() { - return '*'; - }) - ) - .join('.'); - }); - }); - exports.getExpandedPaths = function getExpandedPaths( - data, - dataIterator, - expandPaths, - expandLevel - ) { - var initialState = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : {}, - expandedPaths = []; - return ( - [] - .concat(wildcardPathsFromLevel(expandLevel)) - .concat(expandPaths) - .filter(function(path) { - return 'string' == typeof path; - }) - .forEach(function(wildcardPath) { - var keyPaths = wildcardPath.split('.'); - !(function populatePaths(curData, curPath, depth) { - if (depth !== keyPaths.length) { - var key = keyPaths[depth]; - if (0 === depth) - !hasChildNodes(curData, dataIterator) || - (key !== DEFAULT_ROOT_PATH && '*' !== key) || - populatePaths(curData, DEFAULT_ROOT_PATH, depth + 1); - else if ('*' === key) { - var _iteratorNormalCompletion = !0, - _didIteratorError = !1, - _iteratorError = void 0; - try { - for ( - var _step, _iterator = dataIterator(curData)[Symbol.iterator](); - !(_iteratorNormalCompletion = (_step = _iterator.next()).done); - _iteratorNormalCompletion = !0 - ) { - var _ref2 = _step.value, - name = _ref2.name, - _data = _ref2.data; - hasChildNodes(_data, dataIterator) && - populatePaths(_data, curPath + '.' + name, depth + 1); - } - } catch (err) { - (_didIteratorError = !0), (_iteratorError = err); - } finally { - try { - !_iteratorNormalCompletion && _iterator.return && _iterator.return(); - } finally { - if (_didIteratorError) throw _iteratorError; - } - } - } else { - var value = curData[key]; - hasChildNodes(value, dataIterator) && - populatePaths(value, curPath + '.' + key, depth + 1); - } - } else expandedPaths.push(curPath); - })(data, '', 0); - }), - expandedPaths.reduce(function(obj, path) { - return (obj[path] = !0), obj; - }, initialState) - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _typeof3 = _interopRequireDefault(__webpack_require__(21)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _ObjectValue2 = _interopRequireDefault(__webpack_require__(107)), - _ObjectName2 = _interopRequireDefault(__webpack_require__(106)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var styles = { preview: { fontStyle: 'italic' } }; - function intersperse(arr, sep) { - return 0 === arr.length - ? [] - : arr.slice(1).reduce( - function(xs, x) { - return xs.concat([sep, x]); - }, - [arr[0]] - ); - } - var ObjectPreview = function ObjectPreview(_ref) { - var data = _ref.data, - maxProperties = _ref.maxProperties, - object = data; - if ( - 'object' !== (void 0 === object ? 'undefined' : (0, _typeof3.default)(object)) || - null === object || - object instanceof Date || - object instanceof RegExp - ) - return _react2.default.createElement(_ObjectValue2.default, { object: object }); - if (Array.isArray(object)) - return _react2.default.createElement( - 'span', - { style: styles.preview }, - '[', - intersperse( - object.map(function(element, index) { - return _react2.default.createElement(_ObjectValue2.default, { - key: index, - object: element - }); - }), - ', ' - ), - ']' - ); - var propertyNodes = []; - for (var propertyName in object) { - var propertyValue = object[propertyName]; - if (object.hasOwnProperty(propertyName)) { - var ellipsis = void 0; - if ( - (propertyNodes.length === maxProperties - 1 && - Object.keys(object).length > maxProperties && - (ellipsis = _react2.default.createElement('span', { key: 'ellipsis' }, '…')), - propertyNodes.push( - _react2.default.createElement( - 'span', - { key: propertyName }, - _react2.default.createElement(_ObjectName2.default, { name: propertyName || '""' }), - ': ', - _react2.default.createElement(_ObjectValue2.default, { object: propertyValue }), - ellipsis - ) - ), - ellipsis) - ) - break; - } - } - return _react2.default.createElement( - 'span', - { style: styles.preview }, - object.constructor.name + ' {', - intersperse(propertyNodes, ', '), - '}' - ); - }; - (ObjectPreview.propTypes = { maxProperties: _propTypes2.default.number }), - (ObjectPreview.defaultProps = { maxProperties: 5 }), - (exports.default = ObjectPreview); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _typeof3 = _interopRequireDefault(__webpack_require__(21)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _ThemeProvider2 = _interopRequireDefault(__webpack_require__(175)), - _createStyles2 = _interopRequireDefault(__webpack_require__(44)), - _getHeaders3 = _interopRequireDefault(__webpack_require__(580)), - _DataContainer2 = _interopRequireDefault(__webpack_require__(581)), - _HeaderContainer2 = _interopRequireDefault(__webpack_require__(582)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var TableInspector = (function(_Component) { - function TableInspector(props) { - (0, _classCallCheck3.default)(this, TableInspector); - var _this = (0, _possibleConstructorReturn3.default)( - this, - (TableInspector.__proto__ || Object.getPrototypeOf(TableInspector)).call(this, props) - ); - return ( - (_this.state = { - sorted: !1, - sortIndexColumn: !1, - sortColumn: void 0, - sortAscending: !1 - }), - _this - ); - } - return ( - (0, _inherits3.default)(TableInspector, _Component), - (0, _createClass3.default)(TableInspector, [ - { - key: 'handleIndexTHClick', - value: function handleIndexTHClick() { - this.setState(function(_ref) { - var sortIndexColumn = _ref.sortIndexColumn, - sortAscending = _ref.sortAscending; - return { - sorted: !0, - sortIndexColumn: !0, - sortColumn: void 0, - sortAscending: !sortIndexColumn || !sortAscending - }; - }); - } - }, - { - key: 'handleTHClick', - value: function handleTHClick(col) { - this.setState(function(_ref2) { - var sortColumn = _ref2.sortColumn, - sortAscending = _ref2.sortAscending; - return { - sorted: !0, - sortIndexColumn: !1, - sortColumn: col, - sortAscending: col !== sortColumn || !sortAscending - }; - }); - } - }, - { - key: 'render', - value: function render() { - var data = this.props.data, - columns = this.props.columns, - theme = this.props.theme, - styles = (0, _createStyles2.default)('TableInspector', theme); - if ( - 'object' !== (void 0 === data ? 'undefined' : (0, _typeof3.default)(data)) || - null === data - ) - return _react2.default.createElement('div', null); - var _getHeaders = (0, _getHeaders3.default)(data), - rowHeaders = _getHeaders.rowHeaders, - colHeaders = _getHeaders.colHeaders; - void 0 !== columns && (colHeaders = columns); - var rowsData = rowHeaders.map(function(rowHeader) { - return data[rowHeader]; - }), - sortIndexColumn = this.state.sortIndexColumn, - sortColumn = this.state.sortColumn, - sortAscending = this.state.sortAscending, - columnDataWithRowIndexes = void 0; - if ( - (void 0 !== sortColumn - ? (columnDataWithRowIndexes = rowsData.map(function(rowData, index) { - return 'object' === - (void 0 === rowData ? 'undefined' : (0, _typeof3.default)(rowData)) && - null !== rowData - ? [rowData[sortColumn], index] - : [void 0, index]; - })) - : sortIndexColumn && - (columnDataWithRowIndexes = rowHeaders.map(function(rowData, index) { - return [rowHeaders[index], index]; - })), - void 0 !== columnDataWithRowIndexes) - ) { - var sortedRowIndexes = columnDataWithRowIndexes - .sort( - (function comparator(mapper, ascending) { - return function(a, b) { - var v1 = mapper(a), - v2 = mapper(b), - type1 = void 0 === v1 ? 'undefined' : (0, _typeof3.default)(v1), - type2 = void 0 === v2 ? 'undefined' : (0, _typeof3.default)(v2), - lt = function lt(v1, v2) { - return v1 < v2 ? -1 : v1 > v2 ? 1 : 0; - }, - result = void 0; - if (type1 === type2) result = lt(v1, v2); - else { - var order = { - string: 0, - number: 1, - object: 2, - symbol: 3, - boolean: 4, - undefined: 5, - function: 6 - }; - result = lt(order[type1], order[type2]); - } - return ascending || (result = -result), result; - }; - })(function(item) { - return item[0]; - }, sortAscending) - ) - .map(function(item) { - return item[1]; - }); - (rowHeaders = sortedRowIndexes.map(function(i) { - return rowHeaders[i]; - })), - (rowsData = sortedRowIndexes.map(function(i) { - return rowsData[i]; - })); - } - return _react2.default.createElement( - _ThemeProvider2.default, - { theme: this.props.theme }, - _react2.default.createElement( - 'div', - { style: styles.base }, - _react2.default.createElement(_HeaderContainer2.default, { - columns: colHeaders, - sorted: this.state.sorted, - sortIndexColumn: this.state.sortIndexColumn, - sortColumn: this.state.sortColumn, - sortAscending: this.state.sortAscending, - onTHClick: this.handleTHClick.bind(this), - onIndexTHClick: this.handleIndexTHClick.bind(this) - }), - _react2.default.createElement(_DataContainer2.default, { - rows: rowHeaders, - columns: colHeaders, - rowsData: rowsData - }) - ) - ); - } - } - ]), - TableInspector - ); - })(_react.Component); - (exports.default = TableInspector), - (TableInspector.propTypes = { - data: _propTypes2.default.oneOfType([ - _propTypes2.default.array, - _propTypes2.default.object - ]), - columns: _propTypes2.default.array - }), - (TableInspector.defaultProps = { data: void 0, columns: void 0, theme: 'chromeLight' }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _toConsumableArray3 = _interopRequireDefault(__webpack_require__(45)), - _typeof3 = _interopRequireDefault(__webpack_require__(21)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - (exports.default = function getHeaders(data) { - if ('object' === (void 0 === data ? 'undefined' : (0, _typeof3.default)(data))) { - var rowHeaders = void 0; - if (Array.isArray(data)) { - var nRows = data.length; - rowHeaders = [].concat((0, _toConsumableArray3.default)(Array(nRows).keys())); - } else null !== data && (rowHeaders = Object.keys(data)); - var colHeaders = rowHeaders.reduce(function(colHeaders, rowHeader) { - var row = data[rowHeader]; - if ( - 'object' === (void 0 === row ? 'undefined' : (0, _typeof3.default)(row)) && - null !== row - ) { - var cols = Object.keys(row); - cols.reduce(function(xs, x) { - return xs.includes(x) || xs.push(x), xs; - }, colHeaders); - } - return colHeaders; - }, []); - return { rowHeaders: rowHeaders, colHeaders: colHeaders }; - } - return; - }), - Array.prototype.includes || - (Array.prototype.includes = function(searchElement) { - var O = Object(this), - len = parseInt(O.length) || 0; - if (0 === len) return !1; - var k, - currentElement, - n = parseInt(arguments[1]) || 0; - for (n >= 0 ? (k = n) : (k = len + n) < 0 && (k = 0); k < len; ) { - if ( - searchElement === (currentElement = O[k]) || - (searchElement != searchElement && currentElement != currentElement) - ) - return !0; - k++; - } - return !1; - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _typeof3 = _interopRequireDefault(__webpack_require__(21)), - _extends3 = _interopRequireDefault(__webpack_require__(8)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _createStyles2 = _interopRequireDefault(__webpack_require__(44)), - _ObjectValue2 = _interopRequireDefault(__webpack_require__(107)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var DataContainer = function DataContainer(_ref, _ref2) { - var rows = _ref.rows, - columns = _ref.columns, - rowsData = _ref.rowsData, - theme = _ref2.theme, - styles = (0, _createStyles2.default)('TableInspectorDataContainer', theme), - borderStyles = (0, _createStyles2.default)('TableInspectorLeftBorder', theme); - return _react2.default.createElement( - 'div', - { style: styles.div }, - _react2.default.createElement( - 'table', - { style: styles.table }, - _react2.default.createElement('colgroup', null), - _react2.default.createElement( - 'tbody', - null, - rows.map(function(row, i) { - return _react2.default.createElement( - 'tr', - { key: row, style: styles.tr }, - _react2.default.createElement( - 'td', - { style: (0, _extends3.default)({}, styles.td, borderStyles.none) }, - row - ), - columns.map(function(column) { - var rowData = rowsData[i]; - return 'object' === - (void 0 === rowData ? 'undefined' : (0, _typeof3.default)(rowData)) && - null !== rowData && - rowData.hasOwnProperty(column) - ? _react2.default.createElement( - 'td', - { - key: column, - style: (0, _extends3.default)({}, styles.td, borderStyles.solid) - }, - _react2.default.createElement(_ObjectValue2.default, { - object: rowData[column] - }) - ) - : _react2.default.createElement('td', { - key: column, - style: (0, _extends3.default)({}, styles.td, borderStyles.solid) - }); - }) - ); - }) - ) - ) - ); - }; - (DataContainer.contextTypes = { - theme: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object]) - .isRequired - }), - (exports.default = DataContainer); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _createStyles2 = _interopRequireDefault(__webpack_require__(44)), - _TH2 = _interopRequireDefault(__webpack_require__(583)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var HeaderContainer = function HeaderContainer(_ref, _ref2) { - var indexColumnText = _ref.indexColumnText, - columns = _ref.columns, - sorted = _ref.sorted, - sortIndexColumn = _ref.sortIndexColumn, - sortColumn = _ref.sortColumn, - sortAscending = _ref.sortAscending, - onTHClick = _ref.onTHClick, - onIndexTHClick = _ref.onIndexTHClick, - theme = _ref2.theme, - styles = (0, _createStyles2.default)('TableInspectorHeaderContainer', theme), - borderStyles = (0, _createStyles2.default)('TableInspectorLeftBorder', theme); - return _react2.default.createElement( - 'div', - { style: styles.base }, - _react2.default.createElement( - 'table', - { style: styles.table }, - _react2.default.createElement( - 'tbody', - null, - _react2.default.createElement( - 'tr', - null, - _react2.default.createElement( - _TH2.default, - { - borderStyle: borderStyles.none, - sorted: sorted && sortIndexColumn, - sortAscending: sortAscending, - onClick: onIndexTHClick - }, - indexColumnText - ), - columns.map(function(column) { - return _react2.default.createElement( - _TH2.default, - { - borderStyle: borderStyles.solid, - key: column, - sorted: sorted && sortColumn === column, - sortAscending: sortAscending, - onClick: onTHClick.bind(void 0, column) - }, - column - ); - }) - ) - ) - ) - ); - }; - (HeaderContainer.defaultProps = { indexColumnText: '(index)', columns: [] }), - (HeaderContainer.contextTypes = { - theme: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.object - ]).isRequired - }), - (exports.default = HeaderContainer); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _createStyles2 = _interopRequireDefault(__webpack_require__(44)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var SortIconContainer = function SortIconContainer(props) { - return _react2.default.createElement( - 'div', - { - style: { - position: 'absolute', - top: 1, - right: 0, - bottom: 1, - display: 'flex', - alignItems: 'center' - } - }, - props.children - ); - }, - SortIcon = function SortIcon(_ref, _ref2) { - var sortAscending = _ref.sortAscending, - theme = _ref2.theme, - glyph = sortAscending ? '▲' : '▼', - styles = (0, _createStyles2.default)('TableInspectorSortIcon', theme); - return _react2.default.createElement('div', { style: styles }, glyph); - }; - SortIcon.contextTypes = { - theme: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object]) - .isRequired - }; - var TH = (function(_Component) { - function TH() { - var _ref3, _temp, _this, _ret; - (0, _classCallCheck3.default)(this, TH); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) - args[_key] = arguments[_key]; - return ( - (_temp = _this = (0, _possibleConstructorReturn3.default)( - this, - (_ref3 = TH.__proto__ || Object.getPrototypeOf(TH)).call.apply( - _ref3, - [this].concat(args) - ) - )), - (_this.state = { hovered: !1 }), - (_ret = _temp), - (0, _possibleConstructorReturn3.default)(_this, _ret) - ); - } - return ( - (0, _inherits3.default)(TH, _Component), - (0, _createClass3.default)(TH, [ - { - key: 'toggleHovered', - value: function toggleHovered(hovered) { - this.setState({ hovered: hovered }); - } - }, - { - key: 'render', - value: function render() { - var _props = this.props, - sorted = _props.sorted, - sortAscending = _props.sortAscending, - theme = this.context.theme, - styles = (0, _createStyles2.default)('TableInspectorTH', theme); - return _react2.default.createElement( - 'th', - (0, _extends3.default)({}, this.props, { - style: (0, _extends3.default)( - {}, - styles.base, - this.props.borderStyle, - this.state.hovered ? styles.base[':hover'] : {} - ), - onMouseEnter: this.toggleHovered.bind(this, !0), - onMouseLeave: this.toggleHovered.bind(this, !1), - onClick: this.props.onClick - }), - _react2.default.createElement('div', { style: styles.div }, this.props.children), - (function() { - if (sorted) - return _react2.default.createElement( - SortIconContainer, - null, - _react2.default.createElement(SortIcon, { sortAscending: sortAscending }) - ); - })() - ); - } - } - ]), - TH - ); - })(_react.Component); - (TH.contextTypes = { - theme: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object]) - .isRequired - }), - (TH.defaultProps = { sortAscending: !1, sorted: !1, onClick: void 0 }), - (exports.default = TH); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _regenerator2 = _interopRequireDefault(__webpack_require__(263)), - _react = __webpack_require__(0), - _react2 = _interopRequireDefault(_react), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _DOMNodePreview2 = _interopRequireDefault(__webpack_require__(585)), - _TreeView2 = _interopRequireDefault(__webpack_require__(264)), - _shouldInline2 = _interopRequireDefault(__webpack_require__(267)), - _ThemeProvider2 = _interopRequireDefault(__webpack_require__(175)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var domIterator = _regenerator2.default.mark(function domIterator(data) { - var i, node; - return _regenerator2.default.wrap( - function domIterator$(_context) { - for (;;) - switch ((_context.prev = _context.next)) { - case 0: - if (!data || !data.childNodes) { - _context.next = 17; - break; - } - if (!(0, _shouldInline2.default)(data)) { - _context.next = 4; - break; - } - return _context.abrupt('return'); - case 4: - i = 0; - case 5: - if (!(i < data.childNodes.length)) { - _context.next = 14; - break; - } - if ( - (node = data.childNodes[i]).nodeType !== Node.TEXT_NODE || - 0 !== node.textContent.trim().length - ) { - _context.next = 9; - break; - } - return _context.abrupt('continue', 11); - case 9: - return (_context.next = 11), { name: node.tagName + '[' + i + ']', data: node }; - case 11: - i++, (_context.next = 5); - break; - case 14: - if (!data.tagName) { - _context.next = 17; - break; - } - return ( - (_context.next = 17), - { name: 'CLOSE_TAG', data: { tagName: data.tagName }, isCloseTag: !0 } - ); - case 17: - case 'end': - return _context.stop(); - } - }, - domIterator, - this - ); - }), - DOMInspector = (function(_Component) { - function DOMInspector() { - return ( - (0, _classCallCheck3.default)(this, DOMInspector), - (0, _possibleConstructorReturn3.default)( - this, - (DOMInspector.__proto__ || Object.getPrototypeOf(DOMInspector)).apply(this, arguments) - ) - ); - } - return ( - (0, _inherits3.default)(DOMInspector, _Component), - (0, _createClass3.default)(DOMInspector, [ - { - key: 'render', - value: function render() { - var nodeRenderer = _DOMNodePreview2.default; - return _react2.default.createElement( - _ThemeProvider2.default, - { theme: this.props.theme }, - _react2.default.createElement( - _TreeView2.default, - (0, _extends3.default)( - { nodeRenderer: nodeRenderer, dataIterator: domIterator }, - this.props - ) - ) - ); - } - } - ]), - DOMInspector - ); - })(_react.Component); - (DOMInspector.propTypes = { data: _propTypes2.default.object.isRequired }), - (DOMInspector.defaultProps = { theme: 'chromeLight' }), - (exports.default = DOMInspector); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _createStyles2 = _interopRequireDefault(__webpack_require__(44)), - _shouldInline2 = _interopRequireDefault(__webpack_require__(267)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var OpenTag = function OpenTag(_ref) { - var tagName = _ref.tagName, - attributes = _ref.attributes, - styles = _ref.styles; - return _react2.default.createElement( - 'span', - { style: styles.base }, - '<', - _react2.default.createElement('span', { style: styles.tagName }, tagName), - (function() { - if (attributes) { - for (var attributeNodes = [], i = 0; i < attributes.length; i++) { - var attribute = attributes[i]; - attributeNodes.push( - _react2.default.createElement( - 'span', - { key: i }, - ' ', - _react2.default.createElement( - 'span', - { style: styles.htmlAttributeName }, - attribute.name - ), - '="', - _react2.default.createElement( - 'span', - { style: styles.htmlAttributeValue }, - attribute.value - ), - '"' - ) - ); - } - return attributeNodes; - } - })(), - '>' - ); - }, - CloseTag = function CloseTag(_ref2) { - var tagName = _ref2.tagName, - _ref2$isChildNode = _ref2.isChildNode, - isChildNode = void 0 !== _ref2$isChildNode && _ref2$isChildNode, - styles = _ref2.styles; - return _react2.default.createElement( - 'span', - { style: Object.assign({}, styles.base, isChildNode && styles.offsetLeft) }, - '' - ); - }, - nameByNodeType = { - 1: 'ELEMENT_NODE', - 3: 'TEXT_NODE', - 7: 'PROCESSING_INSTRUCTION_NODE', - 8: 'COMMENT_NODE', - 9: 'DOCUMENT_NODE', - 10: 'DOCUMENT_TYPE_NODE', - 11: 'DOCUMENT_FRAGMENT_NODE' - }, - DOMNodePreview = function DOMNodePreview(_ref3, _ref4) { - var isCloseTag = _ref3.isCloseTag, - data = _ref3.data, - expanded = _ref3.expanded, - theme = _ref4.theme, - styles = (0, _createStyles2.default)('DOMNodePreview', theme); - if (isCloseTag) - return _react2.default.createElement(CloseTag, { - styles: styles.htmlCloseTag, - isChildNode: !0, - tagName: data.tagName - }); - switch (data.nodeType) { - case Node.ELEMENT_NODE: - return _react2.default.createElement( - 'span', - null, - _react2.default.createElement(OpenTag, { - tagName: data.tagName, - attributes: data.attributes, - styles: styles.htmlOpenTag - }), - (0, _shouldInline2.default)(data) ? data.textContent : !expanded && '…', - !expanded && - _react2.default.createElement(CloseTag, { - tagName: data.tagName, - styles: styles.htmlCloseTag - }) - ); - case Node.TEXT_NODE: - return _react2.default.createElement('span', null, data.textContent); - case Node.CDATA_SECTION_NODE: - return _react2.default.createElement( - 'span', - null, - '' - ); - case Node.COMMENT_NODE: - return _react2.default.createElement( - 'span', - { style: styles.htmlComment }, - '\x3c!--', - data.textContent, - '--\x3e' - ); - case Node.PROCESSING_INSTRUCTION_NODE: - return _react2.default.createElement('span', null, data.nodeName); - case Node.DOCUMENT_TYPE_NODE: - return _react2.default.createElement( - 'span', - { style: styles.htmlDoctype }, - '' - ); - case Node.DOCUMENT_NODE: - case Node.DOCUMENT_FRAGMENT_NODE: - return _react2.default.createElement('span', null, data.nodeName); - default: - return _react2.default.createElement('span', null, nameByNodeType[data.nodeType]); - } - }; - (DOMNodePreview.propTypes = { - isCloseTag: _propTypes2.default.bool, - name: _propTypes2.default.string, - data: _propTypes2.default.object.isRequired, - expanded: _propTypes2.default.bool.isRequired - }), - (DOMNodePreview.contextTypes = { - theme: _propTypes2.default.oneOfType([ - _propTypes2.default.string, - _propTypes2.default.object - ]).isRequired - }), - (exports.default = DOMNodePreview); - }, - function(module, exports) { - module.exports = function isNode(val) { - return ( - !(!val || 'object' != typeof val) && - ('object' == typeof window && 'object' == typeof window.Node - ? val instanceof window.Node - : 'number' == typeof val.nodeType && 'string' == typeof val.nodeName) - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = { - wrapper: { flex: 1, display: 'flex', position: 'relative' }, - actions: { - flex: 1, - margin: 0, - padding: '8px 2px 20px 0', - overflowY: 'auto', - color: '#666' - }, - action: { - display: 'flex', - padding: '3px 3px 3px 0', - borderLeft: '5px solid white', - borderBottom: '1px solid #fafafa', - transition: 'all 0.1s', - alignItems: 'start' - }, - countwrap: { paddingBottom: 2 }, - counter: { - margin: '0 5px 0 5px', - backgroundColor: '#777777', - color: '#ffffff', - padding: '1px 5px', - borderRadius: '20px' - }, - inspector: { flex: 1, padding: '0 0 0 5px' }, - button: { - position: 'absolute', - bottom: 0, - right: 0, - border: 'none', - borderTop: 'solid 1px rgba(0, 0, 0, 0.2)', - borderLeft: 'solid 1px rgba(0, 0, 0, 0.2)', - background: 'rgba(255, 255, 255, 0.5)', - padding: '5px 10px', - borderRadius: '4px 0 0 0', - color: 'rgba(0, 0, 0, 0.5)', - outline: 'none' - } - }); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _toConsumableArray3 = _interopRequireDefault(__webpack_require__(45)); - (exports.action = action), - (exports.decorateAction = function decorateAction(decorators) { - return function(name) { - var callAction = action(name); - return function() { - for ( - var _len2 = arguments.length, _args = Array(_len2), _key2 = 0; - _key2 < _len2; - _key2++ - ) - _args[_key2] = arguments[_key2]; - var decorated = decorators.reduce(function(args, fn) { - return fn(args); - }, _args); - callAction.apply(void 0, (0, _toConsumableArray3.default)(decorated)); - }; - }; - }); - var _addons2 = _interopRequireDefault(__webpack_require__(40)), - _v2 = _interopRequireDefault(__webpack_require__(589)), - _ = __webpack_require__(104), - _util = __webpack_require__(84); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function action(name) { - var handler = function action() { - for (var _len = arguments.length, _args = Array(_len), _key = 0; _key < _len; _key++) - _args[_key] = arguments[_key]; - var args = _args.map(_util.prepareArguments), - channel = _addons2.default.getChannel(), - id = (0, _v2.default)(); - channel.emit(_.EVENT_ID, { id: id, data: { name: name, args: args } }); - }; - return ( - _util.canConfigureName && - name && - 'string' == typeof name && - Object.defineProperty(handler, 'name', { value: name }), - handler - ); - } - }, - function(module, exports, __webpack_require__) { - var rng = __webpack_require__(590), - bytesToUuid = __webpack_require__(591), - _seedBytes = rng(), - _nodeId = [ - 1 | _seedBytes[0], - _seedBytes[1], - _seedBytes[2], - _seedBytes[3], - _seedBytes[4], - _seedBytes[5] - ], - _clockseq = 16383 & ((_seedBytes[6] << 8) | _seedBytes[7]), - _lastMSecs = 0, - _lastNSecs = 0; - module.exports = function v1(options, buf, offset) { - var i = (buf && offset) || 0, - b = buf || [], - clockseq = void 0 !== (options = options || {}).clockseq ? options.clockseq : _clockseq, - msecs = void 0 !== options.msecs ? options.msecs : new Date().getTime(), - nsecs = void 0 !== options.nsecs ? options.nsecs : _lastNSecs + 1, - dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4; - if ( - (dt < 0 && void 0 === options.clockseq && (clockseq = (clockseq + 1) & 16383), - (dt < 0 || msecs > _lastMSecs) && void 0 === options.nsecs && (nsecs = 0), - nsecs >= 1e4) - ) - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - (_lastMSecs = msecs), (_lastNSecs = nsecs), (_clockseq = clockseq); - var tl = (1e4 * (268435455 & (msecs += 122192928e5)) + nsecs) % 4294967296; - (b[i++] = (tl >>> 24) & 255), - (b[i++] = (tl >>> 16) & 255), - (b[i++] = (tl >>> 8) & 255), - (b[i++] = 255 & tl); - var tmh = (msecs / 4294967296 * 1e4) & 268435455; - (b[i++] = (tmh >>> 8) & 255), - (b[i++] = 255 & tmh), - (b[i++] = ((tmh >>> 24) & 15) | 16), - (b[i++] = (tmh >>> 16) & 255), - (b[i++] = (clockseq >>> 8) | 128), - (b[i++] = 255 & clockseq); - for (var node = options.node || _nodeId, n = 0; n < 6; ++n) b[i + n] = node[n]; - return buf || bytesToUuid(b); - }; - }, - function(module, exports, __webpack_require__) { - (function(global) { - var rng, - crypto = global.crypto || global.msCrypto; - if (crypto && crypto.getRandomValues) { - var rnds8 = new Uint8Array(16); - rng = function whatwgRNG() { - return crypto.getRandomValues(rnds8), rnds8; - }; - } - if (!rng) { - var rnds = new Array(16); - rng = function() { - for (var r, i = 0; i < 16; i++) - 0 == (3 & i) && (r = 4294967296 * Math.random()), - (rnds[i] = (r >>> ((3 & i) << 3)) & 255); - return rnds; - }; - } - module.exports = rng; - }.call(exports, __webpack_require__(27))); - }, - function(module, exports) { - for (var byteToHex = [], i = 0; i < 256; ++i) byteToHex[i] = (i + 256).toString(16).substr(1); - module.exports = function bytesToUuid(buf, offset) { - var i = offset || 0, - bth = byteToHex; - return ( - bth[buf[i++]] + - bth[buf[i++]] + - bth[buf[i++]] + - bth[buf[i++]] + - '-' + - bth[buf[i++]] + - bth[buf[i++]] + - '-' + - bth[buf[i++]] + - bth[buf[i++]] + - '-' + - bth[buf[i++]] + - bth[buf[i++]] + - '-' + - bth[buf[i++]] + - bth[buf[i++]] + - bth[buf[i++]] + - bth[buf[i++]] + - bth[buf[i++]] + - bth[buf[i++]] - ); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.register = function register() { - _addons2.default.register(_.ADDON_ID, function(api) { - var channel = _addons2.default.getChannel(); - channel.on(_.EVENT_ID, function(selection) { - null != selection.kind - ? api.selectStory(selection.kind, selection.story) - : api.selectInCurrentKind(selection.story); - }), - channel.on(_.REQUEST_HREF_EVENT_ID, function(selection) { - var params = - null != selection.kind - ? { selectedKind: selection.kind, selectedStory: selection.story } - : { selectedStory: selection.story }, - urlState = api.getUrlState(params); - channel.emit(_.RECEIVE_HREF_EVENT_ID, _global.location.pathname + urlState.url); - }); - }); - }); - var _global = __webpack_require__(50), - _addons2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(40)), - _ = __webpack_require__(176); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.hrefTo = exports.linkTo = exports.openLink = void 0); - var _promise2 = _interopRequireDefault(__webpack_require__(223)), - _toConsumableArray3 = _interopRequireDefault(__webpack_require__(45)), - _addons2 = _interopRequireDefault(__webpack_require__(40)), - _ = __webpack_require__(176); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var openLink = (exports.openLink = function openLink(params) { - return _addons2.default.getChannel().emit(_.EVENT_ID, params); - }); - (exports.linkTo = function linkTo(kind, story) { - return function() { - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) - args[_key] = arguments[_key]; - var resolver = (function valueOrCall(args) { - return function(value) { - return 'function' == typeof value - ? value.apply(void 0, (0, _toConsumableArray3.default)(args)) - : value; - }; - })(args); - openLink({ kind: resolver(kind), story: resolver(story) }); - }; - }), - (exports.hrefTo = function hrefTo(kind, story) { - return new _promise2.default(function(resolve) { - var channel = _addons2.default.getChannel(); - channel.on(_.RECEIVE_HREF_EVENT_ID, resolve), - channel.emit(_.REQUEST_HREF_EVENT_ID, { kind: kind, story: story }); - }); - }); - }, - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - function(module, exports) { - module.exports = function(originalModule) { - if (!originalModule.webpackPolyfill) { - var module = Object.create(originalModule); - module.children || (module.children = []), - Object.defineProperty(module, 'loaded', { - enumerable: !0, - get: function() { - return module.l; - } - }), - Object.defineProperty(module, 'id', { - enumerable: !0, - get: function() { - return module.i; - } - }), - Object.defineProperty(module, 'exports', { enumerable: !0 }), - (module.webpackPolyfill = 1); - } - return module; - }; - }, - function(module, exports, __webpack_require__) { - (function(global) { - function config(name) { - try { - if (!global.localStorage) return !1; - } catch (_) { - return !1; - } - var val = global.localStorage[name]; - return null != val && 'true' === String(val).toLowerCase(); - } - module.exports = function deprecate(fn, msg) { - if (config('noDeprecation')) return fn; - var warned = !1; - return function deprecated() { - if (!warned) { - if (config('throwDeprecation')) throw new Error(msg); - config('traceDeprecation') ? console.trace(msg) : console.warn(msg), (warned = !0); - } - return fn.apply(this, arguments); - }; - }; - }.call(exports, __webpack_require__(27))); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.linkTo = exports.action = exports.getStorybook = exports.configure = exports.addDecorator = exports.setAddon = exports.storiesOf = void 0); - var _preview = __webpack_require__(628); - Object.defineProperty(exports, 'storiesOf', { - enumerable: !0, - get: function get() { - return _preview.storiesOf; - } - }), - Object.defineProperty(exports, 'setAddon', { - enumerable: !0, - get: function get() { - return _preview.setAddon; - } - }), - Object.defineProperty(exports, 'addDecorator', { - enumerable: !0, - get: function get() { - return _preview.addDecorator; - } - }), - Object.defineProperty(exports, 'configure', { - enumerable: !0, - get: function get() { - return _preview.configure; - } - }), - Object.defineProperty(exports, 'getStorybook', { - enumerable: !0, - get: function get() { - return _preview.getStorybook; - } - }); - var _utilDeprecate2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(626)), - _addonActions = __webpack_require__(104), - _addonLinks = __webpack_require__(176); - (exports.action = (0, _utilDeprecate2.default)( - _addonActions.action, - '@storybook/react action is deprecated. See: https://github.com/storybooks/storybook/tree/master/addons/actions' - )), - (exports.linkTo = (0, _utilDeprecate2.default)( - _addonLinks.linkTo, - '@storybook/react linkTo is deprecated. See: https://github.com/storybooks/storybook/tree/master/addons/links' - )); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.configure = exports.getStorybook = exports.clearDecorators = exports.addDecorator = exports.setAddon = exports.storiesOf = void 0); - var _assign2 = _interopRequireDefault(__webpack_require__(86)), - _redux = __webpack_require__(871), - _addons2 = _interopRequireDefault(__webpack_require__(40)), - _channelPostmessage2 = _interopRequireDefault(__webpack_require__(426)), - _qs2 = _interopRequireDefault(__webpack_require__(231)), - _global = __webpack_require__(50), - _story_store2 = _interopRequireDefault(__webpack_require__(886)), - _client_api2 = _interopRequireDefault(__webpack_require__(887)), - _config_api2 = _interopRequireDefault(__webpack_require__(888)), - _render2 = _interopRequireDefault(__webpack_require__(889)), - _init2 = _interopRequireDefault(__webpack_require__(939)), - _actions = __webpack_require__(282), - _reducer2 = _interopRequireDefault(__webpack_require__(940)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var isBrowser = - _global.navigator && - _global.navigator.userAgent && - 'storyshots' !== _global.navigator.userAgent && - !(_global.navigator.userAgent.indexOf('Node.js') > -1) && - !(_global.navigator.userAgent.indexOf('jsdom') > -1), - storyStore = new _story_store2.default(), - reduxStore = (0, _redux.createStore)(_reducer2.default), - context = { storyStore: storyStore, reduxStore: reduxStore }; - if (isBrowser) { - var queryParams = _qs2.default.parse(_global.window.location.search.substring(1)), - channel = (0, _channelPostmessage2.default)({ page: 'preview' }); - channel.on('setCurrentStory', function(data) { - reduxStore.dispatch((0, _actions.selectStory)(data.kind, data.story)); - }), - (0, _assign2.default)(context, { - channel: channel, - window: _global.window, - queryParams: queryParams - }), - _addons2.default.setChannel(channel), - (0, _init2.default)(context); - } - var clientApi = new _client_api2.default(context), - configApi = new _config_api2.default(context); - (exports.storiesOf = clientApi.storiesOf.bind(clientApi)), - (exports.setAddon = clientApi.setAddon.bind(clientApi)), - (exports.addDecorator = clientApi.addDecorator.bind(clientApi)), - (exports.clearDecorators = clientApi.clearDecorators.bind(clientApi)), - (exports.getStorybook = clientApi.getStorybook.bind(clientApi)), - (exports.configure = configApi.configure.bind(configApi)); - reduxStore.subscribe(function renderUI() { - isBrowser && (0, _render2.default)(context); - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - __webpack_require__.d(__webpack_exports__, 'a', function() { - return ActionTypes; - }), - (__webpack_exports__.b = function createStore(reducer, preloadedState, enhancer) { - var _ref2; - 'function' == typeof preloadedState && - void 0 === enhancer && - ((enhancer = preloadedState), (preloadedState = void 0)); - if (void 0 !== enhancer) { - if ('function' != typeof enhancer) - throw new Error('Expected the enhancer to be a function.'); - return enhancer(createStore)(reducer, preloadedState); - } - if ('function' != typeof reducer) throw new Error('Expected the reducer to be a function.'); - var currentReducer = reducer; - var currentState = preloadedState; - var currentListeners = []; - var nextListeners = currentListeners; - var isDispatching = !1; - function ensureCanMutateNextListeners() { - nextListeners === currentListeners && (nextListeners = currentListeners.slice()); - } - function getState() { - return currentState; - } - function subscribe(listener) { - if ('function' != typeof listener) throw new Error('Expected listener to be a function.'); - var isSubscribed = !0; - return ( - ensureCanMutateNextListeners(), - nextListeners.push(listener), - function unsubscribe() { - if (isSubscribed) { - (isSubscribed = !1), ensureCanMutateNextListeners(); - var index = nextListeners.indexOf(listener); - nextListeners.splice(index, 1); - } - } - ); - } - function dispatch(action) { - if (!Object(__WEBPACK_IMPORTED_MODULE_0_lodash_es_isPlainObject__.a)(action)) - throw new Error( - 'Actions must be plain objects. Use custom middleware for async actions.' - ); - if (void 0 === action.type) - throw new Error( - 'Actions may not have an undefined "type" property. Have you misspelled a constant?' - ); - if (isDispatching) throw new Error('Reducers may not dispatch actions.'); - try { - (isDispatching = !0), (currentState = currentReducer(currentState, action)); - } finally { - isDispatching = !1; - } - for ( - var listeners = (currentListeners = nextListeners), i = 0; - i < listeners.length; - i++ - ) { - var listener = listeners[i]; - listener(); - } - return action; - } - dispatch({ type: ActionTypes.INIT }); - return ( - (_ref2 = { - dispatch: dispatch, - subscribe: subscribe, - getState: getState, - replaceReducer: function replaceReducer(nextReducer) { - if ('function' != typeof nextReducer) - throw new Error('Expected the nextReducer to be a function.'); - (currentReducer = nextReducer), dispatch({ type: ActionTypes.INIT }); - } - }), - (_ref2[ - __WEBPACK_IMPORTED_MODULE_1_symbol_observable___default.a - ] = function observable() { - var _ref, - outerSubscribe = subscribe; - return ( - ((_ref = { - subscribe: function subscribe(observer) { - if ('object' != typeof observer) - throw new TypeError('Expected the observer to be an object.'); - function observeState() { - observer.next && observer.next(getState()); - } - observeState(); - var unsubscribe = outerSubscribe(observeState); - return { unsubscribe: unsubscribe }; - } - })[__WEBPACK_IMPORTED_MODULE_1_symbol_observable___default.a] = function() { - return this; - }), - _ref - ); - }), - _ref2 - ); - }); - var __WEBPACK_IMPORTED_MODULE_0_lodash_es_isPlainObject__ = __webpack_require__(630), - __WEBPACK_IMPORTED_MODULE_1_symbol_observable__ = __webpack_require__(880), - __WEBPACK_IMPORTED_MODULE_1_symbol_observable___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_1_symbol_observable__ - ), - ActionTypes = { INIT: '@@redux/INIT' }; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__ = __webpack_require__(872), - __WEBPACK_IMPORTED_MODULE_1__getPrototype_js__ = __webpack_require__(877), - __WEBPACK_IMPORTED_MODULE_2__isObjectLike_js__ = __webpack_require__(879), - objectTag = '[object Object]', - funcProto = Function.prototype, - objectProto = Object.prototype, - funcToString = funcProto.toString, - hasOwnProperty = objectProto.hasOwnProperty, - objectCtorString = funcToString.call(Object); - __webpack_exports__.a = function isPlainObject(value) { - if ( - !Object(__WEBPACK_IMPORTED_MODULE_2__isObjectLike_js__.a)(value) || - Object(__WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__.a)(value) != objectTag - ) - return !1; - var proto = Object(__WEBPACK_IMPORTED_MODULE_1__getPrototype_js__.a)(value); - if (null === proto) return !0; - var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; - return ( - 'function' == typeof Ctor && - Ctor instanceof Ctor && - funcToString.call(Ctor) == objectCtorString - ); - }; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var Symbol = __webpack_require__(873).a.Symbol; - __webpack_exports__.a = Symbol; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - __webpack_exports__.a = function compose() { - for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) - funcs[_key] = arguments[_key]; - if (0 === funcs.length) - return function(arg) { - return arg; - }; - if (1 === funcs.length) return funcs[0]; - return funcs.reduce(function(a, b) { - return function() { - return a(b.apply(void 0, arguments)); - }; - }); - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - (function(global) { - Object.defineProperty(exports, '__esModule', { value: !0 }); - var console = global.console; - exports.logger = { - info: function info(message) { - return console.log(message); - }, - warn: function warn(message) { - return console.warn(message); - }, - error: function error(message) { - return console.error(message); - } - }; - }.call(exports, __webpack_require__(27))); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - exports.__esModule = !0; - var _defineProperties2 = _interopRequireDefault(__webpack_require__(890)), - _freeze2 = _interopRequireDefault(__webpack_require__(893)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - exports.default = function(strings, raw) { - return (0, _freeze2.default)( - (0, _defineProperties2.default)(strings, { raw: { value: (0, _freeze2.default)(raw) } }) - ); - }; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__replaceSubstitutionTransformer__ = __webpack_require__(901); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__replaceSubstitutionTransformer__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__removeNonPrintingValuesTransformer__ = __webpack_require__( - 906 - ); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__removeNonPrintingValuesTransformer__.a; - }); - }, - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - function(module, exports, __webpack_require__) { - __webpack_require__(304), __webpack_require__(861), (module.exports = __webpack_require__(862)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - (window.STORYBOOK_REACT_CLASSES = {}), (window.STORYBOOK_ENV = 'react'); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - Object.defineProperty(__webpack_exports__, '__esModule', { value: !0 }), - function(module) { - var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), - __WEBPACK_IMPORTED_MODULE_1__storybook_addon_knobs__ = (__webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_0_react__ - ), - __webpack_require__(863)), - __WEBPACK_IMPORTED_MODULE_2__storybook_addon_options__ = (__webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_1__storybook_addon_knobs__ - ), - __webpack_require__(869)), - __WEBPACK_IMPORTED_MODULE_3__storybook_react__ = (__webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_2__storybook_addon_options__ - ), - __webpack_require__(627)); - __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__storybook_react__); - Object(__WEBPACK_IMPORTED_MODULE_2__storybook_addon_options__.setOptions)({ - name: 'Reblocks', - downPanelInRight: !0 - }), - Object(__WEBPACK_IMPORTED_MODULE_3__storybook_react__.addDecorator)( - __WEBPACK_IMPORTED_MODULE_1__storybook_addon_knobs__.withKnobs - ), - Object(__WEBPACK_IMPORTED_MODULE_3__storybook_react__.addDecorator)(function(story) { - return __WEBPACK_IMPORTED_MODULE_0_react__.createElement('div', null, story()); - }); - var req = __webpack_require__(941); - Object(__WEBPACK_IMPORTED_MODULE_3__storybook_react__.configure)(function loadStories() { - req.keys().forEach(function(filename) { - return req(filename); - }); - }, module); - }.call(__webpack_exports__, __webpack_require__(625)(module)); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.select = exports.button = exports.date = exports.array = exports.object = exports.color = exports.number = exports.boolean = exports.text = exports.knob = void 0), - (exports.withKnobs = function withKnobs(storyFn, context) { - return wrapperKnobs()(storyFn)(context); - }), - (exports.withKnobsOptions = function withKnobsOptions() { - var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; - return function(storyFn, context) { - return wrapperKnobs(options)(storyFn)(context); - }; - }); - var _global = __webpack_require__(50), - _utilDeprecate2 = _interopRequireDefault(__webpack_require__(626)), - _addons2 = _interopRequireDefault(__webpack_require__(40)), - _vue = __webpack_require__(864), - _react = __webpack_require__(867), - _base = __webpack_require__(401); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function wrapperKnobs(options) { - var channel = _addons2.default.getChannel(); - switch ((_base.manager.setChannel(channel), - options && channel.emit('addon:knobs:setOptions', options), - _global.window.STORYBOOK_ENV)) { - case 'vue': - return (0, _vue.vueHandler)(channel, _base.manager.knobStore); - case 'react': - default: - return (0, _react.reactHandler)(channel, _base.manager.knobStore); - } - } - (exports.knob = _base.knob), - (exports.text = _base.text), - (exports.boolean = _base.boolean), - (exports.number = _base.number), - (exports.color = _base.color), - (exports.object = _base.object), - (exports.array = _base.array), - (exports.date = _base.date), - (exports.button = _base.button), - (exports.select = _base.select), - (0, _utilDeprecate2.default)(function() {}, - 'Using @storybook/addon-knobs directly is discouraged, please use @storybook/addon-knobs/{{framework}}'); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.vueHandler = exports.button = exports.select = exports.date = exports.array = exports.object = exports.color = exports.number = exports.boolean = exports.text = exports.knob = void 0), - (exports.withKnobs = function withKnobs(storyFn, context) { - return wrapperKnobs()(storyFn)(context); - }), - (exports.withKnobsOptions = function withKnobsOptions() { - var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; - return function(storyFn, context) { - return wrapperKnobs(options)(storyFn)(context); - }; - }); - var _addons2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(40)), - _base = __webpack_require__(401); - (exports.knob = _base.knob), - (exports.text = _base.text), - (exports.boolean = _base.boolean), - (exports.number = _base.number), - (exports.color = _base.color), - (exports.object = _base.object), - (exports.array = _base.array), - (exports.date = _base.date), - (exports.select = _base.select), - (exports.button = _base.button); - var vueHandler = (exports.vueHandler = function vueHandler(channel, knobStore) { - return function(getStory) { - return function(context) { - return { - data: function data() { - return { context: context, getStory: getStory, story: getStory(context) }; - }, - render: function render(h) { - return h(this.story); - }, - methods: { - onKnobChange: function onKnobChange(change) { - var name = change.name, - value = change.value; - (knobStore.get(name).value = value), - (this.story = this.getStory(this.context)), - this.$forceUpdate(); - }, - onKnobClick: function onKnobClick(clicked) { - knobStore.get(clicked.name).callback(); - }, - onKnobReset: function onKnobReset() { - knobStore.reset(), - this.setPaneKnobs(!1), - (this.story = this.getStory(this.context)), - this.$forceUpdate(); - }, - setPaneKnobs: function setPaneKnobs() { - var timestamp = - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : +new Date(); - channel.emit('addon:knobs:setKnobs', { - knobs: knobStore.getAll(), - timestamp: timestamp - }); - } - }, - created: function created() { - channel.on('addon:knobs:reset', this.onKnobReset), - channel.on('addon:knobs:knobChange', this.onKnobChange), - channel.on('addon:knobs:knobClick', this.onKnobClick), - knobStore.subscribe(this.setPaneKnobs); - }, - beforeDestroy: function beforeDestroy() { - channel.removeListener('addon:knobs:reset', this.onKnobReset), - channel.removeListener('addon:knobs:knobChange', this.onKnobChange), - channel.removeListener('addon:knobs:knobClick', this.onKnobClick), - knobStore.unsubscribe(this.setPaneKnobs); - } - }; - }; - }; - }); - function wrapperKnobs(options) { - var channel = _addons2.default.getChannel(); - return ( - _base.manager.setChannel(channel), - options && channel.emit('addon:knobs:setOptions', options), - vueHandler(channel, _base.manager.knobStore) - ); - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _deepEqual2 = _interopRequireDefault(__webpack_require__(146)), - _KnobStore2 = _interopRequireDefault(__webpack_require__(866)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var KnobManager = (function() { - function KnobManager() { - (0, _classCallCheck3.default)(this, KnobManager), - (this.knobStore = new _KnobStore2.default()); - } - return ( - (0, _createClass3.default)(KnobManager, [ - { - key: 'setChannel', - value: function setChannel(channel) { - this.channel = channel; - } - }, - { - key: 'knob', - value: function knob(name, options) { - this._mayCallChannel(); - var knobStore = this.knobStore, - existingKnob = knobStore.get(name); - if ( - existingKnob && - (0, _deepEqual2.default)(options.value, existingKnob.defaultValue) - ) - return existingKnob.value; - var defaultValue = options.value, - knobInfo = (0, _extends3.default)({}, options, { - name: name, - defaultValue: defaultValue - }); - return knobStore.set(name, knobInfo), knobStore.get(name).value; - } - }, - { - key: '_mayCallChannel', - value: function _mayCallChannel() { - var _this = this; - if (!this.calling) { - this.calling = !0; - var timestamp = +new Date(); - setTimeout(function() { - (_this.calling = !1), - _this.channel.emit('addon:knobs:setKnobs', { - knobs: _this.knobStore.getAll(), - timestamp: timestamp - }); - }, 400); - } - } - } - ]), - KnobManager - ); - })(); - exports.default = KnobManager; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _keys2 = _interopRequireDefault(__webpack_require__(34)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var KnobStore = (function() { - function KnobStore() { - (0, _classCallCheck3.default)(this, KnobStore), (this.store = {}), (this.callbacks = []); - } - return ( - (0, _createClass3.default)(KnobStore, [ - { - key: 'has', - value: function has(key) { - return void 0 !== this.store[key]; - } - }, - { - key: 'set', - value: function set(key, value) { - (this.store[key] = value), - (this.store[key].used = !0), - this.callbacks.forEach(function(cb) { - return cb(); - }); - } - }, - { - key: 'get', - value: function get(key) { - var knob = this.store[key]; - return knob && (knob.used = !0), knob; - } - }, - { - key: 'getAll', - value: function getAll() { - return this.store; - } - }, - { - key: 'reset', - value: function reset() { - this.store = {}; - } - }, - { - key: 'markAllUnused', - value: function markAllUnused() { - var _this = this; - (0, _keys2.default)(this.store).forEach(function(knobName) { - _this.store[knobName].used = !1; - }); - } - }, - { - key: 'subscribe', - value: function subscribe(cb) { - this.callbacks.push(cb); - } - }, - { - key: 'unsubscribe', - value: function unsubscribe(cb) { - var index = this.callbacks.indexOf(cb); - this.callbacks.splice(index, 1); - } - } - ]), - KnobStore - ); - })(); - exports.default = KnobStore; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.reactHandler = exports.button = exports.select = exports.date = exports.array = exports.object = exports.color = exports.number = exports.boolean = exports.text = exports.knob = void 0), - (exports.withKnobs = function withKnobs(storyFn, context) { - return wrapperKnobs()(storyFn)(context); - }), - (exports.withKnobsOptions = function withKnobsOptions() { - var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; - return function(storyFn, context) { - return wrapperKnobs(options)(storyFn)(context); - }; - }); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _addons2 = _interopRequireDefault(__webpack_require__(40)), - _WrapStory2 = _interopRequireDefault(__webpack_require__(868)), - _base = __webpack_require__(401); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - (exports.knob = _base.knob), - (exports.text = _base.text), - (exports.boolean = _base.boolean), - (exports.number = _base.number), - (exports.color = _base.color), - (exports.object = _base.object), - (exports.array = _base.array), - (exports.date = _base.date), - (exports.select = _base.select), - (exports.button = _base.button); - var reactHandler = (exports.reactHandler = function reactHandler(channel, knobStore) { - return function(getStory) { - return function(context) { - var initialContent = getStory(context), - props = { - context: context, - storyFn: getStory, - channel: channel, - knobStore: knobStore, - initialContent: initialContent - }; - return _react2.default.createElement(_WrapStory2.default, props); - }; - }; - }); - function wrapperKnobs(options) { - var channel = _addons2.default.getChannel(); - return ( - _base.manager.setChannel(channel), - options && channel.emit('addon:knobs:setOptions', options), - reactHandler(channel, _base.manager.knobStore) - ); - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(15)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _possibleConstructorReturn3 = _interopRequireDefault(__webpack_require__(11)), - _inherits3 = _interopRequireDefault(__webpack_require__(12)), - _propTypes2 = _interopRequireDefault(__webpack_require__(2)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var WrapStory = (function(_React$Component) { - function WrapStory(props) { - (0, _classCallCheck3.default)(this, WrapStory); - var _this = (0, _possibleConstructorReturn3.default)( - this, - (WrapStory.__proto__ || (0, _getPrototypeOf2.default)(WrapStory)).call(this, props) - ); - return ( - (_this.knobChanged = _this.knobChanged.bind(_this)), - (_this.knobClicked = _this.knobClicked.bind(_this)), - (_this.resetKnobs = _this.resetKnobs.bind(_this)), - (_this.setPaneKnobs = _this.setPaneKnobs.bind(_this)), - (_this._knobsAreReset = !1), - (_this.state = { storyContent: _this.props.initialContent }), - _this - ); - } - return ( - (0, _inherits3.default)(WrapStory, _React$Component), - (0, _createClass3.default)(WrapStory, [ - { - key: 'componentDidMount', - value: function componentDidMount() { - this.props.channel.on('addon:knobs:knobChange', this.knobChanged), - this.props.channel.on('addon:knobs:knobClick', this.knobClicked), - this.props.channel.on('addon:knobs:reset', this.resetKnobs), - this.props.knobStore.subscribe(this.setPaneKnobs), - this.setPaneKnobs(); - } - }, - { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(props) { - this.setState({ storyContent: props.initialContent }); - } - }, - { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.props.channel.removeListener('addon:knobs:knobChange', this.knobChanged), - this.props.channel.removeListener('addon:knobs:knobClick', this.knobClicked), - this.props.channel.removeListener('addon:knobs:reset', this.resetKnobs), - this.props.knobStore.unsubscribe(this.setPaneKnobs); - } - }, - { - key: 'setPaneKnobs', - value: function setPaneKnobs() { - var timestamp = - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : +new Date(), - _props = this.props, - channel = _props.channel, - knobStore = _props.knobStore; - channel.emit('addon:knobs:setKnobs', { - knobs: knobStore.getAll(), - timestamp: timestamp - }); - } - }, - { - key: 'knobChanged', - value: function knobChanged(change) { - var name = change.name, - value = change.value, - _props2 = this.props, - knobStore = _props2.knobStore, - storyFn = _props2.storyFn, - context = _props2.context; - (knobStore.get(name).value = value), - knobStore.markAllUnused(), - this.setState({ storyContent: storyFn(context) }); - } - }, - { - key: 'knobClicked', - value: function knobClicked(clicked) { - this.props.knobStore.get(clicked.name).callback(); - } - }, - { - key: 'resetKnobs', - value: function resetKnobs() { - var _props3 = this.props, - knobStore = _props3.knobStore, - storyFn = _props3.storyFn, - context = _props3.context; - knobStore.reset(), - this.setState({ storyContent: storyFn(context) }), - this.setPaneKnobs(!1); - } - }, - { - key: 'render', - value: function render() { - return this.state.storyContent; - } - } - ]), - WrapStory - ); - })(_interopRequireDefault(__webpack_require__(0)).default.Component); - (exports.default = WrapStory), - (WrapStory.defaultProps = { - context: {}, - initialContent: {}, - storyFn: function storyFn(context) { - return context; - } - }), - (WrapStory.propTypes = { - context: _propTypes2.default.object, - storyFn: _propTypes2.default.func, - channel: _propTypes2.default.shape({ - on: _propTypes2.default.func, - removeListener: _propTypes2.default.func - }).isRequired, - knobStore: _propTypes2.default.shape({ - channel: _propTypes2.default.func, - get: _propTypes2.default.func, - getAll: _propTypes2.default.func, - markAllUnused: _propTypes2.default.func, - reset: _propTypes2.default.func, - subscribe: _propTypes2.default.func, - unsubscribe: _propTypes2.default.func - }).isRequired, - initialContent: _propTypes2.default.object - }); - }, - function(module, exports, __webpack_require__) { - const preview = __webpack_require__(870); - (exports.setOptions = preview.setOptions), preview.init(); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)); - (exports.init = function init() {}), - (exports.setOptions = function setOptions(newOptions) { - var channel = _addons2.default.getChannel(); - if (!channel) - throw new Error( - 'Failed to find addon channel. This may be due to https://github.com/storybooks/storybook/issues/1192.' - ); - var options = newOptions; - Object.prototype.hasOwnProperty.call(newOptions, 'hierarchySeparator') && - (options = (0, _extends3.default)({}, newOptions, { - hierarchySeparator: (function regExpStringify(exp) { - return 'string' == typeof exp - ? exp - : '[object RegExp]' === Object.prototype.toString.call(exp) ? exp.source : null; - })(newOptions.hierarchySeparator) - })); - channel.emit(_shared.EVENT_ID, { options: options }); - }); - var _addons2 = _interopRequireDefault(__webpack_require__(40)), - _shared = __webpack_require__(425); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - Object.defineProperty(__webpack_exports__, '__esModule', { value: !0 }); - var __WEBPACK_IMPORTED_MODULE_0__createStore__ = __webpack_require__(629), - __WEBPACK_IMPORTED_MODULE_1__combineReducers__ = __webpack_require__(883), - __WEBPACK_IMPORTED_MODULE_2__bindActionCreators__ = __webpack_require__(884), - __WEBPACK_IMPORTED_MODULE_3__applyMiddleware__ = __webpack_require__(885), - __WEBPACK_IMPORTED_MODULE_4__compose__ = __webpack_require__(633); - __webpack_require__(632); - __webpack_require__.d(__webpack_exports__, 'createStore', function() { - return __WEBPACK_IMPORTED_MODULE_0__createStore__.b; - }), - __webpack_require__.d(__webpack_exports__, 'combineReducers', function() { - return __WEBPACK_IMPORTED_MODULE_1__combineReducers__.a; - }), - __webpack_require__.d(__webpack_exports__, 'bindActionCreators', function() { - return __WEBPACK_IMPORTED_MODULE_2__bindActionCreators__.a; - }), - __webpack_require__.d(__webpack_exports__, 'applyMiddleware', function() { - return __WEBPACK_IMPORTED_MODULE_3__applyMiddleware__.a; - }), - __webpack_require__.d(__webpack_exports__, 'compose', function() { - return __WEBPACK_IMPORTED_MODULE_4__compose__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__Symbol_js__ = __webpack_require__(631), - __WEBPACK_IMPORTED_MODULE_1__getRawTag_js__ = __webpack_require__(875), - __WEBPACK_IMPORTED_MODULE_2__objectToString_js__ = __webpack_require__(876), - nullTag = '[object Null]', - undefinedTag = '[object Undefined]', - symToStringTag = __WEBPACK_IMPORTED_MODULE_0__Symbol_js__.a - ? __WEBPACK_IMPORTED_MODULE_0__Symbol_js__.a.toStringTag - : void 0; - __webpack_exports__.a = function baseGetTag(value) { - return null == value - ? void 0 === value ? undefinedTag : nullTag - : symToStringTag && symToStringTag in Object(value) - ? Object(__WEBPACK_IMPORTED_MODULE_1__getRawTag_js__.a)(value) - : Object(__WEBPACK_IMPORTED_MODULE_2__objectToString_js__.a)(value); - }; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__freeGlobal_js__ = __webpack_require__(874), - freeSelf = 'object' == typeof self && self && self.Object === Object && self, - root = - __WEBPACK_IMPORTED_MODULE_0__freeGlobal_js__.a || freeSelf || Function('return this')(); - __webpack_exports__.a = root; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - (function(global) { - var freeGlobal = 'object' == typeof global && global && global.Object === Object && global; - __webpack_exports__.a = freeGlobal; - }.call(__webpack_exports__, __webpack_require__(27))); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__Symbol_js__ = __webpack_require__(631), - objectProto = Object.prototype, - hasOwnProperty = objectProto.hasOwnProperty, - nativeObjectToString = objectProto.toString, - symToStringTag = __WEBPACK_IMPORTED_MODULE_0__Symbol_js__.a - ? __WEBPACK_IMPORTED_MODULE_0__Symbol_js__.a.toStringTag - : void 0; - __webpack_exports__.a = function getRawTag(value) { - var isOwn = hasOwnProperty.call(value, symToStringTag), - tag = value[symToStringTag]; - try { - value[symToStringTag] = void 0; - var unmasked = !0; - } catch (e) {} - var result = nativeObjectToString.call(value); - return ( - unmasked && (isOwn ? (value[symToStringTag] = tag) : delete value[symToStringTag]), result - ); - }; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var nativeObjectToString = Object.prototype.toString; - __webpack_exports__.a = function objectToString(value) { - return nativeObjectToString.call(value); - }; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__overArg_js__ = __webpack_require__(878), - getPrototype = Object(__WEBPACK_IMPORTED_MODULE_0__overArg_js__.a)( - Object.getPrototypeOf, - Object - ); - __webpack_exports__.a = getPrototype; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - __webpack_exports__.a = function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; - }; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - __webpack_exports__.a = function isObjectLike(value) { - return null != value && 'object' == typeof value; - }; - }, - function(module, exports, __webpack_require__) { - module.exports = __webpack_require__(881); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - (function(global, module) { - Object.defineProperty(exports, '__esModule', { value: !0 }); - var root, - _ponyfill2 = (function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - })(__webpack_require__(882)); - root = - 'undefined' != typeof self - ? self - : 'undefined' != typeof window ? window : void 0 !== global ? global : module; - var result = (0, _ponyfill2.default)(root); - exports.default = result; - }.call(exports, __webpack_require__(27), __webpack_require__(118)(module))); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.default = function symbolObservablePonyfill(root) { - var result, - _Symbol = root.Symbol; - 'function' == typeof _Symbol - ? _Symbol.observable - ? (result = _Symbol.observable) - : ((result = _Symbol('observable')), (_Symbol.observable = result)) - : (result = '@@observable'); - return result; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - __webpack_exports__.a = function combineReducers(reducers) { - for ( - var reducerKeys = Object.keys(reducers), finalReducers = {}, i = 0; - i < reducerKeys.length; - i++ - ) { - var key = reducerKeys[i]; - 0, 'function' == typeof reducers[key] && (finalReducers[key] = reducers[key]); - } - var finalReducerKeys = Object.keys(finalReducers); - 0; - var shapeAssertionError = void 0; - try { - !(function assertReducerShape(reducers) { - Object.keys(reducers).forEach(function(key) { - var reducer = reducers[key], - initialState = reducer(void 0, { - type: __WEBPACK_IMPORTED_MODULE_0__createStore__.a.INIT - }); - if (void 0 === initialState) - throw new Error( - 'Reducer "' + - key + - '" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don\'t want to set a value for this reducer, you can use null instead of undefined.' - ); - var type = - '@@redux/PROBE_UNKNOWN_ACTION_' + - Math.random() - .toString(36) - .substring(7) - .split('') - .join('.'); - if (void 0 === reducer(void 0, { type: type })) - throw new Error( - 'Reducer "' + - key + - '" returned undefined when probed with a random type. Don\'t try to handle ' + - __WEBPACK_IMPORTED_MODULE_0__createStore__.a.INIT + - ' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.' - ); - }); - })(finalReducers); - } catch (e) { - shapeAssertionError = e; - } - return function combination() { - var state = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, - action = arguments[1]; - if (shapeAssertionError) throw shapeAssertionError; - for (var hasChanged = !1, nextState = {}, _i = 0; _i < finalReducerKeys.length; _i++) { - var _key = finalReducerKeys[_i], - reducer = finalReducers[_key], - previousStateForKey = state[_key], - nextStateForKey = reducer(previousStateForKey, action); - if (void 0 === nextStateForKey) { - var errorMessage = getUndefinedStateErrorMessage(_key, action); - throw new Error(errorMessage); - } - (nextState[_key] = nextStateForKey), - (hasChanged = hasChanged || nextStateForKey !== previousStateForKey); - } - return hasChanged ? nextState : state; - }; - }; - var __WEBPACK_IMPORTED_MODULE_0__createStore__ = __webpack_require__(629); - __webpack_require__(630), __webpack_require__(632); - function getUndefinedStateErrorMessage(key, action) { - var actionType = action && action.type; - return ( - 'Given action ' + - ((actionType && '"' + actionType.toString() + '"') || 'an action') + - ', reducer "' + - key + - '" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.' - ); - } - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - function bindActionCreator(actionCreator, dispatch) { - return function() { - return dispatch(actionCreator.apply(void 0, arguments)); - }; - } - __webpack_exports__.a = function bindActionCreators(actionCreators, dispatch) { - if ('function' == typeof actionCreators) return bindActionCreator(actionCreators, dispatch); - if ('object' != typeof actionCreators || null === actionCreators) - throw new Error( - 'bindActionCreators expected an object or a function, instead received ' + - (null === actionCreators ? 'null' : typeof actionCreators) + - '. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?' - ); - for ( - var keys = Object.keys(actionCreators), boundActionCreators = {}, i = 0; - i < keys.length; - i++ - ) { - var key = keys[i], - actionCreator = actionCreators[key]; - 'function' == typeof actionCreator && - (boundActionCreators[key] = bindActionCreator(actionCreator, dispatch)); - } - return boundActionCreators; - }; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - __webpack_exports__.a = function applyMiddleware() { - for (var _len = arguments.length, middlewares = Array(_len), _key = 0; _key < _len; _key++) - middlewares[_key] = arguments[_key]; - return function(createStore) { - return function(reducer, preloadedState, enhancer) { - var store = createStore(reducer, preloadedState, enhancer), - _dispatch = store.dispatch, - chain = [], - middlewareAPI = { - getState: store.getState, - dispatch: function dispatch(action) { - return _dispatch(action); - } - }; - return ( - (chain = middlewares.map(function(middleware) { - return middleware(middlewareAPI); - })), - (_dispatch = __WEBPACK_IMPORTED_MODULE_0__compose__.a.apply(void 0, chain)( - store.dispatch - )), - _extends({}, store, { dispatch: _dispatch }) - ); - }; - }; - }; - var __WEBPACK_IMPORTED_MODULE_0__compose__ = __webpack_require__(633), - _extends = - Object.assign || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - return target; - }; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _keys2 = _interopRequireDefault(__webpack_require__(34)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var count = 0; - function getId() { - return (count += 1); - } - var StoryStore = (function() { - function StoryStore() { - (0, _classCallCheck3.default)(this, StoryStore), (this._data = {}), (this._revision = 0); - } - return ( - (0, _createClass3.default)(StoryStore, [ - { - key: 'getRevision', - value: function getRevision() { - return this._revision; - } - }, - { - key: 'incrementRevision', - value: function incrementRevision() { - this._revision += 1; - } - }, - { - key: 'addStory', - value: function addStory(kind, name, fn, fileName) { - this._data[kind] || - (this._data[kind] = { - kind: kind, - fileName: fileName, - index: getId(), - stories: {} - }), - (this._data[kind].stories[name] = { name: name, index: getId(), fn: fn }); - } - }, - { - key: 'getStoryKinds', - value: function getStoryKinds() { - var _this = this; - return (0, _keys2.default)(this._data) - .map(function(key) { - return _this._data[key]; - }) - .filter(function(kind) { - return (0, _keys2.default)(kind.stories).length > 0; - }) - .sort(function(info1, info2) { - return info1.index - info2.index; - }) - .map(function(info) { - return info.kind; - }); - } - }, - { - key: 'getStories', - value: function getStories(kind) { - var _this2 = this; - return this._data[kind] - ? (0, _keys2.default)(this._data[kind].stories) - .map(function(name) { - return _this2._data[kind].stories[name]; - }) - .sort(function(info1, info2) { - return info1.index - info2.index; - }) - .map(function(info) { - return info.name; - }) - : []; - } - }, - { - key: 'getStoryFileName', - value: function getStoryFileName(kind) { - var storiesKind = this._data[kind]; - return storiesKind ? storiesKind.fileName : null; - } - }, - { - key: 'getStory', - value: function getStory(kind, name) { - var storiesKind = this._data[kind]; - if (!storiesKind) return null; - var storyInfo = storiesKind.stories[name]; - return storyInfo ? storyInfo.fn : null; - } - }, - { - key: 'removeStoryKind', - value: function removeStoryKind(kind) { - this._data[kind].stories = {}; - } - }, - { - key: 'hasStoryKind', - value: function hasStoryKind(kind) { - return Boolean(this._data[kind]); - } - }, - { - key: 'hasStory', - value: function hasStory(kind, name) { - return Boolean(this.getStory(kind, name)); - } - }, - { - key: 'dumpStoryBook', - value: function dumpStoryBook() { - var _this3 = this; - return this.getStoryKinds().map(function(kind) { - return { kind: kind, stories: _this3.getStories(kind) }; - }); - } - }, - { - key: 'size', - value: function size() { - return (0, _keys2.default)(this._data).length; - } - }, - { - key: 'clean', - value: function clean() { - var _this4 = this; - this.getStoryKinds().forEach(function(kind) { - return delete _this4._data[kind]; - }); - } - } - ]), - StoryStore - ); - })(); - exports.default = StoryStore; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _toConsumableArray3 = _interopRequireDefault(__webpack_require__(45)), - _keys2 = _interopRequireDefault(__webpack_require__(34)), - _extends3 = _interopRequireDefault(__webpack_require__(8)), - _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _clientLogger = __webpack_require__(634); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ClientApi = (function() { - function ClientApi(_ref) { - var channel = _ref.channel, - storyStore = _ref.storyStore; - (0, _classCallCheck3.default)(this, ClientApi), - (this._channel = channel), - (this._storyStore = storyStore), - (this._addons = {}), - (this._globalDecorators = []); - } - return ( - (0, _createClass3.default)(ClientApi, [ - { - key: 'setAddon', - value: function setAddon(addon) { - this._addons = (0, _extends3.default)({}, this._addons, addon); - } - }, - { - key: 'addDecorator', - value: function addDecorator(decorator) { - this._globalDecorators.push(decorator); - } - }, - { - key: 'clearDecorators', - value: function clearDecorators() { - this._globalDecorators = []; - } - }, - { - key: 'storiesOf', - value: function storiesOf(kind, m) { - var _this = this; - if (!kind && 'string' != typeof kind) - throw new Error('Invalid or missing kind provided for stories, should be a string'); - m || - _clientLogger.logger.warn( - "Missing 'module' parameter for story with a kind of '" + - kind + - "'. It will break your HMR" - ), - m && - m.hot && - m.hot.dispose(function() { - _this._storyStore.removeStoryKind(kind), _this._storyStore.incrementRevision(); - }); - var localDecorators = [], - api = { kind: kind }; - return ( - (0, _keys2.default)(this._addons).forEach(function(name) { - var addon = _this._addons[name]; - api[name] = function() { - for ( - var _len = arguments.length, args = Array(_len), _key = 0; - _key < _len; - _key++ - ) - args[_key] = arguments[_key]; - return addon.apply(api, args), api; - }; - }), - (api.add = function(storyName, getStory) { - if ('string' != typeof storyName) - throw new Error( - 'Invalid or missing storyName provided for a "' + kind + '" story.' - ); - if (_this._storyStore.hasStory(kind, storyName)) - throw new Error( - 'Story of "' + kind + '" named "' + storyName + '" already exists' - ); - var fn = [] - .concat( - localDecorators, - (0, _toConsumableArray3.default)(_this._globalDecorators) - ) - .reduce(function(decorated, decorator) { - return function(context) { - return decorator(function() { - return decorated(context); - }, context); - }; - }, getStory), - fileName = m ? m.filename : null; - return _this._storyStore.addStory(kind, storyName, fn, fileName), api; - }), - (api.addDecorator = function(decorator) { - return localDecorators.push(decorator), api; - }), - api - ); - } - }, - { - key: 'getStorybook', - value: function getStorybook() { - var _this2 = this; - return this._storyStore.getStoryKinds().map(function(kind) { - var fileName = _this2._storyStore.getStoryFileName(kind), - stories = _this2._storyStore.getStories(kind).map(function(name) { - return { name: name, render: _this2._storyStore.getStory(kind, name) }; - }); - return { kind: kind, fileName: fileName, stories: stories }; - }); - } - } - ]), - ClientApi - ); - })(); - exports.default = ClientApi; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _classCallCheck3 = _interopRequireDefault(__webpack_require__(4)), - _createClass3 = _interopRequireDefault(__webpack_require__(5)), - _global = __webpack_require__(50), - _actions = __webpack_require__(282), - _ = __webpack_require__(628); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var ConfigApi = (function() { - function ConfigApi(_ref) { - var channel = _ref.channel, - storyStore = _ref.storyStore, - reduxStore = _ref.reduxStore; - (0, _classCallCheck3.default)(this, ConfigApi), - (this._channel = channel), - (this._storyStore = storyStore), - (this._reduxStore = reduxStore); - } - return ( - (0, _createClass3.default)(ConfigApi, [ - { - key: '_renderMain', - value: function _renderMain(loaders) { - loaders && loaders(); - var stories = this._storyStore.dumpStoryBook(); - this._channel.emit('setStories', { stories: stories }), - this._reduxStore.dispatch((0, _actions.clearError)()), - this._reduxStore.dispatch((0, _actions.setInitialStory)(stories)); - } - }, - { - key: '_renderError', - value: function _renderError(e) { - var error = { stack: e.stack, message: e.message }; - this._reduxStore.dispatch((0, _actions.setError)(error)); - } - }, - { - key: 'configure', - value: function configure(loaders, module) { - var _this = this, - render = function render() { - try { - _this._renderMain(loaders); - } catch (error) { - module.hot && 'apply' === module.hot.status() - ? _global.location.reload() - : _this._renderError(error); - } - }; - module.hot && - (module.hot.accept(function() { - setTimeout(render); - }), - module.hot.dispose(function() { - (0, _.clearDecorators)(); - })), - this._channel ? render() : loaders(); - } - } - ]), - ConfigApi - ); - })(); - exports.default = ConfigApi; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _taggedTemplateLiteral3 = _interopRequireDefault(__webpack_require__(635)), - _templateObject = (0, _taggedTemplateLiteral3.default)( - [ - '\n Did you forget to return the React element from the story?\n Use "() => ()" or "() => { return ; }" when defining the story.\n ' - ], - [ - '\n Did you forget to return the React element from the story?\n Use "() => ()" or "() => { return ; }" when defining the story.\n ' - ] - ), - _templateObject2 = (0, _taggedTemplateLiteral3.default)( - [ - '\n Seems like you are not returning a correct React element from the story.\n Could you double check that?\n ' - ], - [ - '\n Seems like you are not returning a correct React element from the story.\n Could you double check that?\n ' - ] - ); - (exports.renderError = renderError), - (exports.renderException = renderException), - (exports.renderMain = renderMain), - (exports.default = function renderPreview(_ref) { - var reduxStore = _ref.reduxStore, - storyStore = _ref.storyStore, - state = reduxStore.getState(); - if (state.error) return renderException(state.error); - try { - return renderMain(state, storyStore); - } catch (ex) { - return renderException(ex); - } - }); - var _react2 = _interopRequireDefault(__webpack_require__(0)), - _reactDom2 = _interopRequireDefault(__webpack_require__(122)), - _commonTags = __webpack_require__(896), - _clientLogger = __webpack_require__(634), - _element_check2 = _interopRequireDefault(__webpack_require__(936)), - _error_display2 = _interopRequireDefault(__webpack_require__(938)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var rootEl = null, - previousKind = '', - previousStory = '', - previousRevision = -1; - function renderError(error) { - var properError = new Error(error.title); - properError.stack = error.description; - var redBox = _react2.default.createElement(_error_display2.default, { error: properError }); - _reactDom2.default.render(redBox, rootEl); - } - function renderException(error) { - var realError = new Error(error.message); - realError.stack = error.stack; - var redBox = _react2.default.createElement(_error_display2.default, { error: realError }); - _reactDom2.default.render(redBox, rootEl), _clientLogger.logger.error(error.stack); - } - function renderMain(data, storyStore) { - if (0 === storyStore.size()) return null; - var noPreview = _react2.default.createElement(function NoPreview() { - return _react2.default.createElement('p', null, 'No Preview Available!'); - }, null), - selectedKind = data.selectedKind, - selectedStory = data.selectedStory, - revision = storyStore.getRevision(), - story = storyStore.getStory(selectedKind, selectedStory); - if (!story) return _reactDom2.default.render(noPreview, rootEl), null; - if ( - revision === previousRevision && - selectedKind === previousKind && - previousStory === selectedStory - ) - return null; - (previousRevision = revision), - (previousKind = selectedKind), - (previousStory = selectedStory), - _reactDom2.default.unmountComponentAtNode(rootEl); - var element = story({ kind: selectedKind, story: selectedStory }); - return element - ? (0, _element_check2.default)(element) - ? (_reactDom2.default.render(element, rootEl), null) - : renderError({ - title: - 'Expecting a valid React element from the story: "' + - selectedStory + - '" of "' + - selectedKind + - '".', - description: (0, _commonTags.stripIndents)(_templateObject2) - }) - : renderError({ - title: - 'Expecting a React element from the story: "' + - selectedStory + - '" of "' + - selectedKind + - '".', - description: (0, _commonTags.stripIndents)(_templateObject) - }); - } - 'undefined' != typeof window && (rootEl = document.getElementById('root')); - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(891), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(892); - var $Object = __webpack_require__(10).Object; - module.exports = function defineProperties(T, D) { - return $Object.defineProperties(T, D); - }; - }, - function(module, exports, __webpack_require__) { - var $export = __webpack_require__(16); - $export($export.S + $export.F * !__webpack_require__(29), 'Object', { - defineProperties: __webpack_require__(276) - }); - }, - function(module, exports, __webpack_require__) { - module.exports = { default: __webpack_require__(894), __esModule: !0 }; - }, - function(module, exports, __webpack_require__) { - __webpack_require__(895), (module.exports = __webpack_require__(10).Object.freeze); - }, - function(module, exports, __webpack_require__) { - var isObject = __webpack_require__(20), - meta = __webpack_require__(77).onFreeze; - __webpack_require__(114)('freeze', function($freeze) { - return function freeze(it) { - return $freeze && isObject(it) ? $freeze(meta(it)) : it; - }; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - Object.defineProperty(__webpack_exports__, '__esModule', { value: !0 }); - var __WEBPACK_IMPORTED_MODULE_0__TemplateTag__ = __webpack_require__(48); - __webpack_require__.d(__webpack_exports__, 'TemplateTag', function() { - return __WEBPACK_IMPORTED_MODULE_0__TemplateTag__.a; - }); - var __WEBPACK_IMPORTED_MODULE_1__trimResultTransformer__ = __webpack_require__(49); - __webpack_require__.d(__webpack_exports__, 'trimResultTransformer', function() { - return __WEBPACK_IMPORTED_MODULE_1__trimResultTransformer__.a; - }); - var __WEBPACK_IMPORTED_MODULE_2__stripIndentTransformer__ = __webpack_require__(103); - __webpack_require__.d(__webpack_exports__, 'stripIndentTransformer', function() { - return __WEBPACK_IMPORTED_MODULE_2__stripIndentTransformer__.a; - }); - var __WEBPACK_IMPORTED_MODULE_3__replaceResultTransformer__ = __webpack_require__(170); - __webpack_require__.d(__webpack_exports__, 'replaceResultTransformer', function() { - return __WEBPACK_IMPORTED_MODULE_3__replaceResultTransformer__.a; - }); - var __WEBPACK_IMPORTED_MODULE_4__replaceSubstitutionTransformer__ = __webpack_require__(636); - __webpack_require__.d(__webpack_exports__, 'replaceSubstitutionTransformer', function() { - return __WEBPACK_IMPORTED_MODULE_4__replaceSubstitutionTransformer__.a; - }); - var __WEBPACK_IMPORTED_MODULE_5__replaceStringTransformer__ = __webpack_require__(902); - __webpack_require__.d(__webpack_exports__, 'replaceStringTransformer', function() { - return __WEBPACK_IMPORTED_MODULE_5__replaceStringTransformer__.a; - }); - var __WEBPACK_IMPORTED_MODULE_6__inlineArrayTransformer__ = __webpack_require__(83); - __webpack_require__.d(__webpack_exports__, 'inlineArrayTransformer', function() { - return __WEBPACK_IMPORTED_MODULE_6__inlineArrayTransformer__.a; - }); - var __WEBPACK_IMPORTED_MODULE_7__splitStringTransformer__ = __webpack_require__(513); - __webpack_require__.d(__webpack_exports__, 'splitStringTransformer', function() { - return __WEBPACK_IMPORTED_MODULE_7__splitStringTransformer__.a; - }); - var __WEBPACK_IMPORTED_MODULE_8__removeNonPrintingValuesTransformer__ = __webpack_require__( - 637 - ); - __webpack_require__.d(__webpack_exports__, 'removeNonPrintingValuesTransformer', function() { - return __WEBPACK_IMPORTED_MODULE_8__removeNonPrintingValuesTransformer__.a; - }); - var __WEBPACK_IMPORTED_MODULE_9__commaLists__ = __webpack_require__(907); - __webpack_require__.d(__webpack_exports__, 'commaLists', function() { - return __WEBPACK_IMPORTED_MODULE_9__commaLists__.a; - }); - var __WEBPACK_IMPORTED_MODULE_10__commaListsAnd__ = __webpack_require__(909); - __webpack_require__.d(__webpack_exports__, 'commaListsAnd', function() { - return __WEBPACK_IMPORTED_MODULE_10__commaListsAnd__.a; - }); - var __WEBPACK_IMPORTED_MODULE_11__commaListsOr__ = __webpack_require__(911); - __webpack_require__.d(__webpack_exports__, 'commaListsOr', function() { - return __WEBPACK_IMPORTED_MODULE_11__commaListsOr__.a; - }); - var __WEBPACK_IMPORTED_MODULE_12__html__ = __webpack_require__(516); - __webpack_require__.d(__webpack_exports__, 'html', function() { - return __WEBPACK_IMPORTED_MODULE_12__html__.a; - }); - var __WEBPACK_IMPORTED_MODULE_13__codeBlock__ = __webpack_require__(914); - __webpack_require__.d(__webpack_exports__, 'codeBlock', function() { - return __WEBPACK_IMPORTED_MODULE_13__codeBlock__.a; - }); - var __WEBPACK_IMPORTED_MODULE_14__source__ = __webpack_require__(915); - __webpack_require__.d(__webpack_exports__, 'source', function() { - return __WEBPACK_IMPORTED_MODULE_14__source__.a; - }); - var __WEBPACK_IMPORTED_MODULE_15__safeHtml__ = __webpack_require__(916); - __webpack_require__.d(__webpack_exports__, 'safeHtml', function() { - return __WEBPACK_IMPORTED_MODULE_15__safeHtml__.a; - }); - var __WEBPACK_IMPORTED_MODULE_16__oneLine__ = __webpack_require__(918); - __webpack_require__.d(__webpack_exports__, 'oneLine', function() { - return __WEBPACK_IMPORTED_MODULE_16__oneLine__.a; - }); - var __WEBPACK_IMPORTED_MODULE_17__oneLineTrim__ = __webpack_require__(920); - __webpack_require__.d(__webpack_exports__, 'oneLineTrim', function() { - return __WEBPACK_IMPORTED_MODULE_17__oneLineTrim__.a; - }); - var __WEBPACK_IMPORTED_MODULE_18__oneLineCommaLists__ = __webpack_require__(922); - __webpack_require__.d(__webpack_exports__, 'oneLineCommaLists', function() { - return __WEBPACK_IMPORTED_MODULE_18__oneLineCommaLists__.a; - }); - var __WEBPACK_IMPORTED_MODULE_19__oneLineCommaListsOr__ = __webpack_require__(924); - __webpack_require__.d(__webpack_exports__, 'oneLineCommaListsOr', function() { - return __WEBPACK_IMPORTED_MODULE_19__oneLineCommaListsOr__.a; - }); - var __WEBPACK_IMPORTED_MODULE_20__oneLineCommaListsAnd__ = __webpack_require__(926); - __webpack_require__.d(__webpack_exports__, 'oneLineCommaListsAnd', function() { - return __WEBPACK_IMPORTED_MODULE_20__oneLineCommaListsAnd__.a; - }); - var __WEBPACK_IMPORTED_MODULE_21__inlineLists__ = __webpack_require__(928); - __webpack_require__.d(__webpack_exports__, 'inlineLists', function() { - return __WEBPACK_IMPORTED_MODULE_21__inlineLists__.a; - }); - var __WEBPACK_IMPORTED_MODULE_22__oneLineInlineLists__ = __webpack_require__(930); - __webpack_require__.d(__webpack_exports__, 'oneLineInlineLists', function() { - return __WEBPACK_IMPORTED_MODULE_22__oneLineInlineLists__.a; - }); - var __WEBPACK_IMPORTED_MODULE_23__stripIndent__ = __webpack_require__(932); - __webpack_require__.d(__webpack_exports__, 'stripIndent', function() { - return __WEBPACK_IMPORTED_MODULE_23__stripIndent__.a; - }); - var __WEBPACK_IMPORTED_MODULE_24__stripIndents__ = __webpack_require__(934); - __webpack_require__.d(__webpack_exports__, 'stripIndents', function() { - return __WEBPACK_IMPORTED_MODULE_24__stripIndents__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_taggedTemplateLiteral__ = __webpack_require__( - 635 - ), - __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_taggedTemplateLiteral___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_taggedTemplateLiteral__ - ), - __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(4), - __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ - ), - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(5), - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ - ), - _templateObject = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_taggedTemplateLiteral___default()( - ['', ''], - ['', ''] - ), - TemplateTag = (function() { - function TemplateTag() { - for ( - var _this = this, _len = arguments.length, transformers = Array(_len), _key = 0; - _key < _len; - _key++ - ) - transformers[_key] = arguments[_key]; - return ( - __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()( - this, - TemplateTag - ), - (this.tag = function(strings) { - for ( - var _len2 = arguments.length, - expressions = Array(_len2 > 1 ? _len2 - 1 : 0), - _key2 = 1; - _key2 < _len2; - _key2++ - ) - expressions[_key2 - 1] = arguments[_key2]; - return 'function' == typeof strings - ? _this.interimTag.bind(_this, strings) - : 'string' == typeof strings - ? _this.transformEndResult(strings) - : ((strings = strings.map(_this.transformString.bind(_this))), - _this.transformEndResult( - strings.reduce(_this.processSubstitutions.bind(_this, expressions)) - )); - }), - transformers.length > 0 && - Array.isArray(transformers[0]) && - (transformers = transformers[0]), - (this.transformers = transformers.map(function(transformer) { - return 'function' == typeof transformer ? transformer() : transformer; - })), - this.tag - ); - } - return ( - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default()(TemplateTag, [ - { - key: 'interimTag', - value: function interimTag(previousTag, template) { - for ( - var _len3 = arguments.length, - substitutions = Array(_len3 > 2 ? _len3 - 2 : 0), - _key3 = 2; - _key3 < _len3; - _key3++ - ) - substitutions[_key3 - 2] = arguments[_key3]; - return this.tag( - _templateObject, - previousTag.apply(void 0, [template].concat(substitutions)) - ); - } - }, - { - key: 'processSubstitutions', - value: function processSubstitutions(substitutions, resultSoFar, remainingPart) { - return ( - resultSoFar + - this.transformSubstitution(substitutions.shift(), resultSoFar) + - remainingPart - ); - } - }, - { - key: 'transformString', - value: function transformString(str) { - return this.transformers.reduce(function cb(res, transform) { - return transform.onString ? transform.onString(res) : res; - }, str); - } - }, - { - key: 'transformSubstitution', - value: function transformSubstitution(substitution, resultSoFar) { - return this.transformers.reduce(function cb(res, transform) { - return transform.onSubstitution - ? transform.onSubstitution(res, resultSoFar) - : res; - }, substitution); - } - }, - { - key: 'transformEndResult', - value: function transformEndResult(endResult) { - return this.transformers.reduce(function cb(res, transform) { - return transform.onEndResult ? transform.onEndResult(res) : res; - }, endResult); - } - } - ]), - TemplateTag - ); - })(); - __webpack_exports__.a = TemplateTag; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - __webpack_exports__.a = function trimResultTransformer() { - var side = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ''; - return { - onEndResult: function onEndResult(endResult) { - if ('' === side) return endResult.trim(); - if ('start' === (side = side.toLowerCase()) || 'left' === side) - return endResult.replace(/^\s*/, ''); - if ('end' === side || 'right' === side) return endResult.replace(/\s*$/, ''); - throw new Error('Side not supported: ' + side); - } - }; - }; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray__ = __webpack_require__( - 45 - ), - __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray__ - ); - __webpack_exports__.a = function stripIndentTransformer() { - var type = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 'initial'; - return { - onEndResult: function onEndResult(endResult) { - if ('initial' === type) { - var match = endResult.match(/^[^\S\n]*(?=\S)/gm), - indent = - match && - Math.min.apply( - Math, - __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()( - match.map(function(el) { - return el.length; - }) - ) - ); - if (indent) { - var regexp = new RegExp('^.{' + indent + '}', 'gm'); - return endResult.replace(regexp, ''); - } - return endResult; - } - if ('all' === type) return endResult.replace(/^[^\S\n]+/gm, ''); - throw new Error('Unknown type: ' + type); - } - }; - }; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - __webpack_exports__.a = function replaceResultTransformer(replaceWhat, replaceWith) { - return { - onEndResult: function onEndResult(endResult) { - if (null == replaceWhat || null == replaceWith) - throw new Error('replaceResultTransformer requires at least 2 arguments.'); - return endResult.replace(replaceWhat, replaceWith); - } - }; - }; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - __webpack_exports__.a = function replaceSubstitutionTransformer(replaceWhat, replaceWith) { - return { - onSubstitution: function onSubstitution(substitution, resultSoFar) { - if (null == replaceWhat || null == replaceWith) - throw new Error('replaceSubstitutionTransformer requires at least 2 arguments.'); - return null == substitution - ? substitution - : substitution.toString().replace(replaceWhat, replaceWith); - } - }; - }; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__replaceStringTransformer__ = __webpack_require__(903); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__replaceStringTransformer__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - __webpack_exports__.a = function replaceStringTransformer(replaceWhat, replaceWith) { - return { - onString: function onString(str) { - if (null == replaceWhat || null == replaceWith) - throw new Error('replaceStringTransformer requires at least 2 arguments.'); - return str.replace(replaceWhat, replaceWith); - } - }; - }; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var defaults = { separator: '', conjunction: '', serial: !1 }; - __webpack_exports__.a = function inlineArrayTransformer() { - var opts = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : defaults; - return { - onSubstitution: function onSubstitution(substitution, resultSoFar) { - if (Array.isArray(substitution)) { - var arrayLength = substitution.length, - separator = opts.separator, - conjunction = opts.conjunction, - serial = opts.serial, - indent = resultSoFar.match(/(\n?[^\S\n]+)$/); - if ( - ((substitution = indent - ? substitution.join(separator + indent[1]) - : substitution.join(separator + ' ')), - conjunction && arrayLength > 1) - ) { - var separatorIndex = substitution.lastIndexOf(separator); - substitution = - substitution.slice(0, separatorIndex) + - (serial ? separator : '') + - ' ' + - conjunction + - substitution.slice(separatorIndex + 1); - } - } - return substitution; - } - }; - }; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - __webpack_exports__.a = function splitStringTransformer(splitBy) { - return { - onSubstitution: function onSubstitution(substitution, resultSoFar) { - if (null == splitBy || 'string' != typeof splitBy) - throw new Error('You need to specify a string character to split by.'); - return ( - 'string' == typeof substitution && - substitution.includes(splitBy) && - (substitution = substitution.split(splitBy)), - substitution - ); - } - }; - }; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_number_is_nan__ = __webpack_require__( - 286 - ), - __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_number_is_nan___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_number_is_nan__ - ), - isValidValue = function isValidValue(x) { - return ( - null != x && - !__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_number_is_nan___default()(x) && - 'boolean' != typeof x - ); - }; - __webpack_exports__.a = function removeNonPrintingValuesTransformer() { - return { - onSubstitution: function onSubstitution(substitution) { - return Array.isArray(substitution) - ? substitution.filter(isValidValue) - : isValidValue(substitution) ? substitution : ''; - } - }; - }; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__commaLists__ = __webpack_require__(908); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__commaLists__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__TemplateTag__ = __webpack_require__(48), - __WEBPACK_IMPORTED_MODULE_1__stripIndentTransformer__ = __webpack_require__(103), - __WEBPACK_IMPORTED_MODULE_2__inlineArrayTransformer__ = __webpack_require__(83), - __WEBPACK_IMPORTED_MODULE_3__trimResultTransformer__ = __webpack_require__(49), - commaLists = new __WEBPACK_IMPORTED_MODULE_0__TemplateTag__.a( - Object(__WEBPACK_IMPORTED_MODULE_2__inlineArrayTransformer__.a)({ separator: ',' }), - __WEBPACK_IMPORTED_MODULE_1__stripIndentTransformer__.a, - __WEBPACK_IMPORTED_MODULE_3__trimResultTransformer__.a - ); - __webpack_exports__.a = commaLists; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__commaListsAnd__ = __webpack_require__(910); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__commaListsAnd__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__TemplateTag__ = __webpack_require__(48), - __WEBPACK_IMPORTED_MODULE_1__stripIndentTransformer__ = __webpack_require__(103), - __WEBPACK_IMPORTED_MODULE_2__inlineArrayTransformer__ = __webpack_require__(83), - __WEBPACK_IMPORTED_MODULE_3__trimResultTransformer__ = __webpack_require__(49), - commaListsAnd = new __WEBPACK_IMPORTED_MODULE_0__TemplateTag__.a( - Object(__WEBPACK_IMPORTED_MODULE_2__inlineArrayTransformer__.a)({ - separator: ',', - conjunction: 'and' - }), - __WEBPACK_IMPORTED_MODULE_1__stripIndentTransformer__.a, - __WEBPACK_IMPORTED_MODULE_3__trimResultTransformer__.a - ); - __webpack_exports__.a = commaListsAnd; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__commaListsOr__ = __webpack_require__(912); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__commaListsOr__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__TemplateTag__ = __webpack_require__(48), - __WEBPACK_IMPORTED_MODULE_1__stripIndentTransformer__ = __webpack_require__(103), - __WEBPACK_IMPORTED_MODULE_2__inlineArrayTransformer__ = __webpack_require__(83), - __WEBPACK_IMPORTED_MODULE_3__trimResultTransformer__ = __webpack_require__(49), - commaListsOr = new __WEBPACK_IMPORTED_MODULE_0__TemplateTag__.a( - Object(__WEBPACK_IMPORTED_MODULE_2__inlineArrayTransformer__.a)({ - separator: ',', - conjunction: 'or' - }), - __WEBPACK_IMPORTED_MODULE_1__stripIndentTransformer__.a, - __WEBPACK_IMPORTED_MODULE_3__trimResultTransformer__.a - ); - __webpack_exports__.a = commaListsOr; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__TemplateTag__ = __webpack_require__(48), - __WEBPACK_IMPORTED_MODULE_1__stripIndentTransformer__ = __webpack_require__(103), - __WEBPACK_IMPORTED_MODULE_2__inlineArrayTransformer__ = __webpack_require__(83), - __WEBPACK_IMPORTED_MODULE_3__trimResultTransformer__ = __webpack_require__(49), - __WEBPACK_IMPORTED_MODULE_4__splitStringTransformer__ = __webpack_require__(513), - __WEBPACK_IMPORTED_MODULE_5__removeNonPrintingValuesTransformer__ = __webpack_require__(637), - html = new __WEBPACK_IMPORTED_MODULE_0__TemplateTag__.a( - Object(__WEBPACK_IMPORTED_MODULE_4__splitStringTransformer__.a)('\n'), - __WEBPACK_IMPORTED_MODULE_5__removeNonPrintingValuesTransformer__.a, - __WEBPACK_IMPORTED_MODULE_2__inlineArrayTransformer__.a, - __WEBPACK_IMPORTED_MODULE_1__stripIndentTransformer__.a, - __WEBPACK_IMPORTED_MODULE_3__trimResultTransformer__.a - ); - __webpack_exports__.a = html; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__html__ = __webpack_require__(516); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__html__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__html__ = __webpack_require__(516); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__html__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__safeHtml__ = __webpack_require__(917); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__safeHtml__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__TemplateTag__ = __webpack_require__(48), - __WEBPACK_IMPORTED_MODULE_1__stripIndentTransformer__ = __webpack_require__(103), - __WEBPACK_IMPORTED_MODULE_2__inlineArrayTransformer__ = __webpack_require__(83), - __WEBPACK_IMPORTED_MODULE_3__trimResultTransformer__ = __webpack_require__(49), - __WEBPACK_IMPORTED_MODULE_4__splitStringTransformer__ = __webpack_require__(513), - __WEBPACK_IMPORTED_MODULE_5__replaceSubstitutionTransformer__ = __webpack_require__(636), - safeHtml = new __WEBPACK_IMPORTED_MODULE_0__TemplateTag__.a( - Object(__WEBPACK_IMPORTED_MODULE_4__splitStringTransformer__.a)('\n'), - __WEBPACK_IMPORTED_MODULE_2__inlineArrayTransformer__.a, - __WEBPACK_IMPORTED_MODULE_1__stripIndentTransformer__.a, - __WEBPACK_IMPORTED_MODULE_3__trimResultTransformer__.a, - Object(__WEBPACK_IMPORTED_MODULE_5__replaceSubstitutionTransformer__.a)(/&/g, '&'), - Object(__WEBPACK_IMPORTED_MODULE_5__replaceSubstitutionTransformer__.a)(//g, '>'), - Object(__WEBPACK_IMPORTED_MODULE_5__replaceSubstitutionTransformer__.a)(/"/g, '"'), - Object(__WEBPACK_IMPORTED_MODULE_5__replaceSubstitutionTransformer__.a)(/'/g, '''), - Object(__WEBPACK_IMPORTED_MODULE_5__replaceSubstitutionTransformer__.a)(/`/g, '`') - ); - __webpack_exports__.a = safeHtml; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__oneLine__ = __webpack_require__(919); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__oneLine__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__TemplateTag__ = __webpack_require__(48), - __WEBPACK_IMPORTED_MODULE_1__trimResultTransformer__ = __webpack_require__(49), - __WEBPACK_IMPORTED_MODULE_2__replaceResultTransformer__ = __webpack_require__(170), - oneLine = new __WEBPACK_IMPORTED_MODULE_0__TemplateTag__.a( - Object(__WEBPACK_IMPORTED_MODULE_2__replaceResultTransformer__.a)(/(?:\n(?:\s*))+/g, ' '), - __WEBPACK_IMPORTED_MODULE_1__trimResultTransformer__.a - ); - __webpack_exports__.a = oneLine; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__oneLineTrim__ = __webpack_require__(921); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__oneLineTrim__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__TemplateTag__ = __webpack_require__(48), - __WEBPACK_IMPORTED_MODULE_1__trimResultTransformer__ = __webpack_require__(49), - __WEBPACK_IMPORTED_MODULE_2__replaceResultTransformer__ = __webpack_require__(170), - oneLineTrim = new __WEBPACK_IMPORTED_MODULE_0__TemplateTag__.a( - Object(__WEBPACK_IMPORTED_MODULE_2__replaceResultTransformer__.a)(/(?:\n\s*)/g, ''), - __WEBPACK_IMPORTED_MODULE_1__trimResultTransformer__.a - ); - __webpack_exports__.a = oneLineTrim; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__oneLineCommaLists__ = __webpack_require__(923); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__oneLineCommaLists__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__TemplateTag__ = __webpack_require__(48), - __WEBPACK_IMPORTED_MODULE_1__inlineArrayTransformer__ = __webpack_require__(83), - __WEBPACK_IMPORTED_MODULE_2__trimResultTransformer__ = __webpack_require__(49), - __WEBPACK_IMPORTED_MODULE_3__replaceResultTransformer__ = __webpack_require__(170), - oneLineCommaLists = new __WEBPACK_IMPORTED_MODULE_0__TemplateTag__.a( - Object(__WEBPACK_IMPORTED_MODULE_1__inlineArrayTransformer__.a)({ separator: ',' }), - Object(__WEBPACK_IMPORTED_MODULE_3__replaceResultTransformer__.a)(/(?:\s+)/g, ' '), - __WEBPACK_IMPORTED_MODULE_2__trimResultTransformer__.a - ); - __webpack_exports__.a = oneLineCommaLists; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__oneLineCommaListsOr__ = __webpack_require__(925); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__oneLineCommaListsOr__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__TemplateTag__ = __webpack_require__(48), - __WEBPACK_IMPORTED_MODULE_1__inlineArrayTransformer__ = __webpack_require__(83), - __WEBPACK_IMPORTED_MODULE_2__trimResultTransformer__ = __webpack_require__(49), - __WEBPACK_IMPORTED_MODULE_3__replaceResultTransformer__ = __webpack_require__(170), - oneLineCommaListsOr = new __WEBPACK_IMPORTED_MODULE_0__TemplateTag__.a( - Object(__WEBPACK_IMPORTED_MODULE_1__inlineArrayTransformer__.a)({ - separator: ',', - conjunction: 'or' - }), - Object(__WEBPACK_IMPORTED_MODULE_3__replaceResultTransformer__.a)(/(?:\s+)/g, ' '), - __WEBPACK_IMPORTED_MODULE_2__trimResultTransformer__.a - ); - __webpack_exports__.a = oneLineCommaListsOr; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__oneLineCommaListsAnd__ = __webpack_require__(927); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__oneLineCommaListsAnd__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__TemplateTag__ = __webpack_require__(48), - __WEBPACK_IMPORTED_MODULE_1__inlineArrayTransformer__ = __webpack_require__(83), - __WEBPACK_IMPORTED_MODULE_2__trimResultTransformer__ = __webpack_require__(49), - __WEBPACK_IMPORTED_MODULE_3__replaceResultTransformer__ = __webpack_require__(170), - oneLineCommaListsAnd = new __WEBPACK_IMPORTED_MODULE_0__TemplateTag__.a( - Object(__WEBPACK_IMPORTED_MODULE_1__inlineArrayTransformer__.a)({ - separator: ',', - conjunction: 'and' - }), - Object(__WEBPACK_IMPORTED_MODULE_3__replaceResultTransformer__.a)(/(?:\s+)/g, ' '), - __WEBPACK_IMPORTED_MODULE_2__trimResultTransformer__.a - ); - __webpack_exports__.a = oneLineCommaListsAnd; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__inlineLists__ = __webpack_require__(929); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__inlineLists__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__TemplateTag__ = __webpack_require__(48), - __WEBPACK_IMPORTED_MODULE_1__stripIndentTransformer__ = __webpack_require__(103), - __WEBPACK_IMPORTED_MODULE_2__inlineArrayTransformer__ = __webpack_require__(83), - __WEBPACK_IMPORTED_MODULE_3__trimResultTransformer__ = __webpack_require__(49), - inlineLists = new __WEBPACK_IMPORTED_MODULE_0__TemplateTag__.a( - __WEBPACK_IMPORTED_MODULE_2__inlineArrayTransformer__.a, - __WEBPACK_IMPORTED_MODULE_1__stripIndentTransformer__.a, - __WEBPACK_IMPORTED_MODULE_3__trimResultTransformer__.a - ); - __webpack_exports__.a = inlineLists; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__oneLineInlineLists__ = __webpack_require__(931); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__oneLineInlineLists__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__TemplateTag__ = __webpack_require__(48), - __WEBPACK_IMPORTED_MODULE_1__inlineArrayTransformer__ = __webpack_require__(83), - __WEBPACK_IMPORTED_MODULE_2__trimResultTransformer__ = __webpack_require__(49), - __WEBPACK_IMPORTED_MODULE_3__replaceResultTransformer__ = __webpack_require__(170), - oneLineInlineLists = new __WEBPACK_IMPORTED_MODULE_0__TemplateTag__.a( - __WEBPACK_IMPORTED_MODULE_1__inlineArrayTransformer__.a, - Object(__WEBPACK_IMPORTED_MODULE_3__replaceResultTransformer__.a)(/(?:\s+)/g, ' '), - __WEBPACK_IMPORTED_MODULE_2__trimResultTransformer__.a - ); - __webpack_exports__.a = oneLineInlineLists; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__stripIndent__ = __webpack_require__(933); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__stripIndent__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__TemplateTag__ = __webpack_require__(48), - __WEBPACK_IMPORTED_MODULE_1__stripIndentTransformer__ = __webpack_require__(103), - __WEBPACK_IMPORTED_MODULE_2__trimResultTransformer__ = __webpack_require__(49), - stripIndent = new __WEBPACK_IMPORTED_MODULE_0__TemplateTag__.a( - __WEBPACK_IMPORTED_MODULE_1__stripIndentTransformer__.a, - __WEBPACK_IMPORTED_MODULE_2__trimResultTransformer__.a - ); - __webpack_exports__.a = stripIndent; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__stripIndents__ = __webpack_require__(935); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__stripIndents__.a; - }); - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - var __WEBPACK_IMPORTED_MODULE_0__TemplateTag__ = __webpack_require__(48), - __WEBPACK_IMPORTED_MODULE_1__stripIndentTransformer__ = __webpack_require__(103), - __WEBPACK_IMPORTED_MODULE_2__trimResultTransformer__ = __webpack_require__(49), - stripIndents = new __WEBPACK_IMPORTED_MODULE_0__TemplateTag__.a( - Object(__WEBPACK_IMPORTED_MODULE_1__stripIndentTransformer__.a)('all'), - __WEBPACK_IMPORTED_MODULE_2__trimResultTransformer__.a - ); - __webpack_exports__.a = stripIndents; - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }), - (exports.isPriorToFiber = exports.isValidFiberElement = void 0); - var _slicedToArray3 = _interopRequireDefault(__webpack_require__(186)), - _react2 = _interopRequireDefault(__webpack_require__(0)), - _lodash2 = _interopRequireDefault(__webpack_require__(937)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var isValidFiberElement = (exports.isValidFiberElement = function isValidFiberElement(element) { - return ( - 'string' == typeof element || - 'number' == typeof element || - _react2.default.isValidElement(element) - ); - }), - isPriorToFiber = (exports.isPriorToFiber = function isPriorToFiber(version) { - var _version$split = version.split('.'), - majorVersion = (0, _slicedToArray3.default)(_version$split, 1)[0]; - return Number(majorVersion) < 16; - }); - exports.default = function isReactRenderable(element) { - if (isPriorToFiber(_react2.default.version)) return _react2.default.isValidElement(element); - if (!Array.isArray(element)) return isValidFiberElement(element); - var elementsList = element.map(isReactRenderable); - return !(0, _lodash2.default)(elementsList).filter(function(elementIsRenderable) { - return !1 === elementIsRenderable; - }).length; - }; - }, - function(module, exports, __webpack_require__) { - (function(global) { - var INFINITY = 1 / 0, - MAX_SAFE_INTEGER = 9007199254740991, - argsTag = '[object Arguments]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - freeGlobal = 'object' == typeof global && global && global.Object === Object && global, - freeSelf = 'object' == typeof self && self && self.Object === Object && self, - root = freeGlobal || freeSelf || Function('return this')(); - function arrayPush(array, values) { - for (var index = -1, length = values.length, offset = array.length; ++index < length; ) - array[offset + index] = values[index]; - return array; - } - var objectProto = Object.prototype, - hasOwnProperty = objectProto.hasOwnProperty, - objectToString = objectProto.toString, - Symbol = root.Symbol, - propertyIsEnumerable = objectProto.propertyIsEnumerable, - spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : void 0; - function isFlattenable(value) { - return ( - isArray(value) || - (function isArguments(value) { - return ( - (function isArrayLikeObject(value) { - return ( - (function isObjectLike(value) { - return !!value && 'object' == typeof value; - })(value) && - (function isArrayLike(value) { - return ( - null != value && - (function isLength(value) { - return ( - 'number' == typeof value && - value > -1 && - value % 1 == 0 && - value <= MAX_SAFE_INTEGER - ); - })(value.length) && - !(function isFunction(value) { - var tag = (function isObject(value) { - var type = typeof value; - return !!value && ('object' == type || 'function' == type); - })(value) - ? objectToString.call(value) - : ''; - return tag == funcTag || tag == genTag; - })(value) - ); - })(value) - ); - })(value) && - hasOwnProperty.call(value, 'callee') && - (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag) - ); - })(value) || - !!(spreadableSymbol && value && value[spreadableSymbol]) - ); - } - var isArray = Array.isArray; - module.exports = function flattenDeep(array) { - return array && array.length - ? (function baseFlatten(array, depth, predicate, isStrict, result) { - var index = -1, - length = array.length; - for ( - predicate || (predicate = isFlattenable), result || (result = []); - ++index < length; - - ) { - var value = array[index]; - depth > 0 && predicate(value) - ? depth > 1 - ? baseFlatten(value, depth - 1, predicate, isStrict, result) - : arrayPush(result, value) - : isStrict || (result[result.length] = value); - } - return result; - })(array, INFINITY) - : []; - }; - }.call(exports, __webpack_require__(27))); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _propTypes2 = _interopRequireDefault(__webpack_require__(2)), - _react2 = _interopRequireDefault(__webpack_require__(0)); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var mainStyle = { - position: 'fixed', - top: 0, - bottom: 0, - left: 0, - right: 0, - padding: 20, - backgroundColor: 'rgb(187, 49, 49)', - color: '#FFF', - WebkitFontSmoothing: 'antialiased' - }, - headingStyle = { - fontSize: 20, - fontWeight: 600, - letterSpacing: 0.2, - margin: '10px 0', - fontFamily: - '\n -apple-system, ".SFNSText-Regular", "San Francisco", Roboto, "Segoe UI",\n "Helvetica Neue", "Lucida Grande", sans-serif\n ' - }, - codeStyle = { fontSize: 14, width: '100vw', overflow: 'auto' }, - ErrorDisplay = function ErrorDisplay(_ref) { - var error = _ref.error; - return _react2.default.createElement( - 'div', - { style: mainStyle }, - _react2.default.createElement('div', { style: headingStyle }, error.message), - _react2.default.createElement( - 'pre', - { style: codeStyle }, - _react2.default.createElement('code', null, error.stack) - ) - ); - }; - (ErrorDisplay.propTypes = { - error: _propTypes2.default.shape({ - message: _propTypes2.default.string, - stack: _propTypes2.default.string - }).isRequired - }), - (exports.default = ErrorDisplay); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _extends3 = _interopRequireDefault(__webpack_require__(8)); - exports.default = function(context) { - var queryParams = context.queryParams, - reduxStore = context.reduxStore, - window = context.window, - channel = context.channel; - queryParams.selectedKind && - reduxStore.dispatch( - (0, _actions.selectStory)(queryParams.selectedKind, queryParams.selectedStory) - ); - var originalQueryParams = queryParams; - reduxStore.subscribe(function() { - var _reduxStore$getState = reduxStore.getState(), - selectedKind = _reduxStore$getState.selectedKind, - selectedStory = _reduxStore$getState.selectedStory, - queryString = _qs2.default.stringify( - (0, _extends3.default)({}, originalQueryParams, { - selectedKind: selectedKind, - selectedStory: selectedStory - }) - ); - window.history.pushState({}, '', '?' + queryString); - }), - (window.onkeydown = function(e) { - var parsedEvent = (0, _key_events2.default)(e); - parsedEvent && channel.emit('applyShortcut', { event: parsedEvent }); - }); - }; - var _key_events2 = _interopRequireDefault(__webpack_require__(287)), - _qs2 = _interopRequireDefault(__webpack_require__(231)), - _actions = __webpack_require__(282); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - }, - function(module, exports, __webpack_require__) { - 'use strict'; - Object.defineProperty(exports, '__esModule', { value: !0 }); - var _slicedToArray3 = _interopRequireDefault(__webpack_require__(186)), - _extends3 = _interopRequireDefault(__webpack_require__(8)); - exports.default = function reducer() { - var state = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, - action = arguments[1]; - switch (action.type) { - case _actions.types.CLEAR_ERROR: - return (0, _extends3.default)({}, state, { error: null }); - case _actions.types.SET_ERROR: - return (0, _extends3.default)({}, state, { error: action.error }); - case _actions.types.SELECT_STORY: - return (0, _extends3.default)({}, state, { - selectedKind: action.kind, - selectedStory: action.story - }); - case _actions.types.SET_INITIAL_STORY: - var newState = (0, _extends3.default)({}, state), - storyKindList = action.storyKindList; - if (!newState.selectedKind && storyKindList.length > 0) { - newState.selectedKind = storyKindList[0].kind; - var _storyKindList$0$stor = (0, _slicedToArray3.default)(storyKindList[0].stories, 1); - newState.selectedStory = _storyKindList$0$stor[0]; - } - return newState; - default: - return state; - } - }; - var _actions = __webpack_require__(282); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - }, - function(module, exports, __webpack_require__) { - var map = { './ReblocksButton/ReblocksButton.story.tsx': 942 }; - function webpackContext(req) { - return __webpack_require__(webpackContextResolve(req)); - } - function webpackContextResolve(req) { - var id = map[req]; - if (!(id + 1)) throw new Error("Cannot find module '" + req + "'."); - return id; - } - (webpackContext.keys = function webpackContextKeys() { - return Object.keys(map); - }), - (webpackContext.resolve = webpackContextResolve), - (module.exports = webpackContext), - (webpackContext.id = 941); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - (function(module) { - Object.defineProperty(exports, '__esModule', { value: !0 }); - var react_1 = __webpack_require__(627), - React = __webpack_require__(0), - ReblocksButton_1 = __webpack_require__(943), - onSuccess = function(data) { - console.log('Got transaction token', data.token); - }; - react_1.storiesOf('ReblocksButton', module).add('Interactive', function() { - return React.createElement(ReblocksButton_1.ReblocksButton, { - accountId: 'xrb_3ritoyx4zcixshfbezg4aycb49xbupw9ggink1rfm43tm6uh87t4ifuxg5dm', - amountXrb: 2e5, - onPaymentSuccess: onSuccess - }); - }); - }.call(exports, __webpack_require__(118)(module))); - }, - function(module, exports, __webpack_require__) { - 'use strict'; - var extendStatics, - __extends = - (this && this.__extends) || - ((extendStatics = - Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && - function(d, b) { - d.__proto__ = b; - }) || - function(d, b) { - for (var p in b) b.hasOwnProperty(p) && (d[p] = b[p]); - }), - function(d, b) { - function __() { - this.constructor = d; - } - extendStatics(d, b), - (d.prototype = - null === b ? Object.create(b) : ((__.prototype = b.prototype), new __())); - }); - Object.defineProperty(exports, '__esModule', { value: !0 }); - var React = __webpack_require__(0), - brainblocks = __webpack_require__(944), - ReblocksButton = (function(_super) { - function ReblocksButton(props) { - var _this = _super.call(this, props) || this; - return ( - (_this.onPaymentSuccess = function(data) { - _this.setState({ token: data.token }), - _this.props.onPaymentSuccess && _this.props.onPaymentSuccess(data); - }), - (_this.renderBrainblocksButton = function() { - window.brainblocks.Button.render( - { - onPayment: _this.onPaymentSuccess, - payment: { - amount: _this.props.amountXrb, - currency: 'rai', - destination: _this.props.accountId - } - }, - '#raiblocks-button' - ); - }), - (_this.state = { token: '' }), - console.log(brainblocks), - _this - ); - } - return ( - __extends(ReblocksButton, _super), - (ReblocksButton.prototype.componentDidMount = function() { - this.renderBrainblocksButton(); - }), - (ReblocksButton.prototype.render = function() { - return React.createElement('div', { id: 'raiblocks-button' }); - }), - ReblocksButton - ); - })(React.Component); - exports.ReblocksButton = ReblocksButton; - }, - function(module, __webpack_exports__, __webpack_require__) { - 'use strict'; - Object.defineProperty(__webpack_exports__, '__esModule', { value: !0 }), - function(module) { - var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_set_prototype_of__ = __webpack_require__( - 278 - ), - __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_set_prototype_of___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_set_prototype_of__ - ), - __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_create__ = __webpack_require__( - 279 - ), - __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_create___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_create__ - ), - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_object_assign__ = __webpack_require__( - 86 - ), - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_object_assign___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_object_assign__ - ), - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor__ = __webpack_require__( - 291 - ), - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor__ - ), - __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys__ = __webpack_require__(34), - __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys__ - ), - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_symbol_iterator__ = __webpack_require__( - 275 - ), - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_symbol_iterator___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_symbol_iterator__ - ), - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol__ = __webpack_require__(185), - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol__ - ), - __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator__ = __webpack_require__( - 259 - ), - __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator__ - ), - __WEBPACK_IMPORTED_MODULE_8_babel_runtime_core_js_json_stringify__ = __webpack_require__( - 123 - ), - __WEBPACK_IMPORTED_MODULE_8_babel_runtime_core_js_json_stringify___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_8_babel_runtime_core_js_json_stringify__ - ), - __WEBPACK_IMPORTED_MODULE_9_babel_runtime_core_js_object_define_property__ = __webpack_require__( - 115 - ), - __WEBPACK_IMPORTED_MODULE_9_babel_runtime_core_js_object_define_property___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_9_babel_runtime_core_js_object_define_property__ - ), - __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof__ = __webpack_require__(21), - __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof__ - ), - root, - factory; - (root = 'undefined' != typeof self ? self : this), - (factory = function() { - return (function(modules) { - function __webpack_require__(moduleId) { - if (installedModules[moduleId]) return installedModules[moduleId].exports; - var module = (installedModules[moduleId] = { i: moduleId, l: !1, exports: {} }); - return ( - modules[moduleId].call( - module.exports, - module, - module.exports, - __webpack_require__ - ), - (module.l = !0), - module.exports - ); - } - var installedModules = {}; - return ( - (__webpack_require__.m = modules), - (__webpack_require__.c = installedModules), - (__webpack_require__.d = function(exports, name, getter) { - __webpack_require__.o(exports, name) || - __WEBPACK_IMPORTED_MODULE_9_babel_runtime_core_js_object_define_property___default()( - exports, - name, - { configurable: !1, enumerable: !0, get: getter } - ); - }), - (__webpack_require__.n = function(module) { - var getter = - module && module.__esModule - ? function() { - return module.default; - } - : function() { - return module; - }; - return __webpack_require__.d(getter, 'a', getter), getter; - }), - (__webpack_require__.o = function(object, property) { - return Object.prototype.hasOwnProperty.call(object, property); - }), - (__webpack_require__.p = ''), - __webpack_require__((__webpack_require__.s = './src/index.js')) - ); - })({ - './node_modules/beaver-logger/client/builders.js': function node_modulesBeaverLoggerClientBuildersJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'g', function() { - return payloadBuilders; - }), - __webpack_require__.d(__webpack_exports__, 'f', function() { - return metaBuilders; - }), - __webpack_require__.d(__webpack_exports__, 'h', function() { - return trackingBuilders; - }), - __webpack_require__.d(__webpack_exports__, 'e', function() { - return headerBuilders; - }), - (__webpack_exports__.c = function addPayloadBuilder(builder) { - payloadBuilders.push(builder); - }), - (__webpack_exports__.b = function addMetaBuilder(builder) { - metaBuilders.push(builder); - }), - (__webpack_exports__.d = function addTrackingBuilder(builder) { - trackingBuilders.push(builder); - }), - (__webpack_exports__.a = function addHeaderBuilder(builder) { - headerBuilders.push(builder); - }); - var payloadBuilders = [], - metaBuilders = [], - trackingBuilders = [], - headerBuilders = []; - }, - './node_modules/beaver-logger/client/config.js': function node_modulesBeaverLoggerClientConfigJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return config; - }), - __webpack_require__.d(__webpack_exports__, 'b', function() { - return logLevels; - }); - var config = { - uri: '', - prefix: '', - initial_state_name: 'init', - flushInterval: 6e5, - debounceInterval: 10, - sizeLimit: 300, - silent: !1, - heartbeat: !0, - heartbeatConsoleLog: !0, - heartbeatInterval: 5e3, - heartbeatTooBusy: !1, - heartbeatTooBusyThreshold: 1e4, - logLevel: 'warn', - autoLog: ['warn', 'error'], - logUnload: !0, - logPerformance: !0 - }, - logLevels = ['error', 'warn', 'info', 'debug']; - }, - './node_modules/beaver-logger/client/index.js': function node_modulesBeaverLoggerClientIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - var __WEBPACK_IMPORTED_MODULE_0__interface__ = __webpack_require__( - './node_modules/beaver-logger/client/interface.js' - ); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.config; - }), - __webpack_require__.d(__webpack_exports__, 'b', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.error; - }), - __webpack_require__.d(__webpack_exports__, 'c', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.flush; - }), - __webpack_require__.d(__webpack_exports__, 'd', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.info; - }), - __webpack_require__.d(__webpack_exports__, 'e', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.logLevels; - }), - __webpack_require__.d(__webpack_exports__, 'f', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.warn; - }); - }, - './node_modules/beaver-logger/client/init.js': function node_modulesBeaverLoggerClientInitJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_exports__.a = function init(conf) { - Object(__WEBPACK_IMPORTED_MODULE_1__util__.b)( - __WEBPACK_IMPORTED_MODULE_0__config__.a, - conf || {} - ), - initiated || - ((initiated = !0), - __WEBPACK_IMPORTED_MODULE_0__config__.a.logPerformance && - Object(__WEBPACK_IMPORTED_MODULE_2__performance__.b)(), - __WEBPACK_IMPORTED_MODULE_0__config__.a.heartbeat && - Object(__WEBPACK_IMPORTED_MODULE_2__performance__.a)(), - __WEBPACK_IMPORTED_MODULE_0__config__.a.logUnload && - (window.addEventListener('beforeunload', function() { - Object(__WEBPACK_IMPORTED_MODULE_3__logger__.g)('window_beforeunload'), - Object(__WEBPACK_IMPORTED_MODULE_3__logger__.f)({ fireAndForget: !0 }); - }), - window.addEventListener('unload', function() { - Object(__WEBPACK_IMPORTED_MODULE_3__logger__.g)('window_unload'), - Object(__WEBPACK_IMPORTED_MODULE_3__logger__.f)({ fireAndForget: !0 }); - })), - __WEBPACK_IMPORTED_MODULE_0__config__.a.flushInterval && - setInterval( - __WEBPACK_IMPORTED_MODULE_3__logger__.d, - __WEBPACK_IMPORTED_MODULE_0__config__.a.flushInterval - ), - window.beaverLogQueue && - (window.beaverLogQueue.forEach(function(payload) { - Object( - __WEBPACK_IMPORTED_MODULE_3__logger__.h - )(payload.level, payload.event, payload); - }), - delete window.beaverLogQueue)); - }; - var __WEBPACK_IMPORTED_MODULE_0__config__ = __webpack_require__( - './node_modules/beaver-logger/client/config.js' - ), - __WEBPACK_IMPORTED_MODULE_1__util__ = __webpack_require__( - './node_modules/beaver-logger/client/util.js' - ), - __WEBPACK_IMPORTED_MODULE_2__performance__ = __webpack_require__( - './node_modules/beaver-logger/client/performance.js' - ), - __WEBPACK_IMPORTED_MODULE_3__logger__ = __webpack_require__( - './node_modules/beaver-logger/client/logger.js' - ), - initiated = !1; - }, - './node_modules/beaver-logger/client/interface.js': function node_modulesBeaverLoggerClientInterfaceJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - Object.defineProperty(__webpack_exports__, '__esModule', { value: !0 }); - var __WEBPACK_IMPORTED_MODULE_0__logger__ = __webpack_require__( - './node_modules/beaver-logger/client/logger.js' - ); - __webpack_require__.d(__webpack_exports__, 'track', function() { - return __WEBPACK_IMPORTED_MODULE_0__logger__.l; - }), - __webpack_require__.d(__webpack_exports__, 'buffer', function() { - return __WEBPACK_IMPORTED_MODULE_0__logger__.a; - }), - __webpack_require__.d(__webpack_exports__, 'tracking', function() { - return __WEBPACK_IMPORTED_MODULE_0__logger__.m; - }), - __webpack_require__.d(__webpack_exports__, 'getTransport', function() { - return __WEBPACK_IMPORTED_MODULE_0__logger__.e; - }), - __webpack_require__.d(__webpack_exports__, 'setTransport', function() { - return __WEBPACK_IMPORTED_MODULE_0__logger__.k; - }), - __webpack_require__.d(__webpack_exports__, 'print', function() { - return __WEBPACK_IMPORTED_MODULE_0__logger__.j; - }), - __webpack_require__.d(__webpack_exports__, 'immediateFlush', function() { - return __WEBPACK_IMPORTED_MODULE_0__logger__.f; - }), - __webpack_require__.d(__webpack_exports__, 'flush', function() { - return __WEBPACK_IMPORTED_MODULE_0__logger__.d; - }), - __webpack_require__.d(__webpack_exports__, 'log', function() { - return __WEBPACK_IMPORTED_MODULE_0__logger__.h; - }), - __webpack_require__.d(__webpack_exports__, 'prefix', function() { - return __WEBPACK_IMPORTED_MODULE_0__logger__.i; - }), - __webpack_require__.d(__webpack_exports__, 'debug', function() { - return __WEBPACK_IMPORTED_MODULE_0__logger__.b; - }), - __webpack_require__.d(__webpack_exports__, 'info', function() { - return __WEBPACK_IMPORTED_MODULE_0__logger__.g; - }), - __webpack_require__.d(__webpack_exports__, 'warn', function() { - return __WEBPACK_IMPORTED_MODULE_0__logger__.n; - }), - __webpack_require__.d(__webpack_exports__, 'error', function() { - return __WEBPACK_IMPORTED_MODULE_0__logger__.c; - }); - var __WEBPACK_IMPORTED_MODULE_1__init__ = __webpack_require__( - './node_modules/beaver-logger/client/init.js' - ); - __webpack_require__.d(__webpack_exports__, 'init', function() { - return __WEBPACK_IMPORTED_MODULE_1__init__.a; - }); - var __WEBPACK_IMPORTED_MODULE_2__transitions__ = __webpack_require__( - './node_modules/beaver-logger/client/transitions.js' - ); - __webpack_require__.d(__webpack_exports__, 'startTransition', function() { - return __WEBPACK_IMPORTED_MODULE_2__transitions__.b; - }), - __webpack_require__.d(__webpack_exports__, 'endTransition', function() { - return __WEBPACK_IMPORTED_MODULE_2__transitions__.a; - }), - __webpack_require__.d(__webpack_exports__, 'transition', function() { - return __WEBPACK_IMPORTED_MODULE_2__transitions__.c; - }); - var __WEBPACK_IMPORTED_MODULE_3__builders__ = __webpack_require__( - './node_modules/beaver-logger/client/builders.js' - ); - __webpack_require__.d(__webpack_exports__, 'payloadBuilders', function() { - return __WEBPACK_IMPORTED_MODULE_3__builders__.g; - }), - __webpack_require__.d(__webpack_exports__, 'metaBuilders', function() { - return __WEBPACK_IMPORTED_MODULE_3__builders__.f; - }), - __webpack_require__.d(__webpack_exports__, 'trackingBuilders', function() { - return __WEBPACK_IMPORTED_MODULE_3__builders__.h; - }), - __webpack_require__.d(__webpack_exports__, 'headerBuilders', function() { - return __WEBPACK_IMPORTED_MODULE_3__builders__.e; - }), - __webpack_require__.d(__webpack_exports__, 'addPayloadBuilder', function() { - return __WEBPACK_IMPORTED_MODULE_3__builders__.c; - }), - __webpack_require__.d(__webpack_exports__, 'addMetaBuilder', function() { - return __WEBPACK_IMPORTED_MODULE_3__builders__.b; - }), - __webpack_require__.d(__webpack_exports__, 'addTrackingBuilder', function() { - return __WEBPACK_IMPORTED_MODULE_3__builders__.d; - }), - __webpack_require__.d(__webpack_exports__, 'addHeaderBuilder', function() { - return __WEBPACK_IMPORTED_MODULE_3__builders__.a; - }); - var __WEBPACK_IMPORTED_MODULE_4__config__ = __webpack_require__( - './node_modules/beaver-logger/client/config.js' - ); - __webpack_require__.d(__webpack_exports__, 'config', function() { - return __WEBPACK_IMPORTED_MODULE_4__config__.a; - }), - __webpack_require__.d(__webpack_exports__, 'logLevels', function() { - return __WEBPACK_IMPORTED_MODULE_4__config__.b; - }); - }, - './node_modules/beaver-logger/client/logger.js': function node_modulesBeaverLoggerClientLoggerJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function print(level, event, payload) { - if (!loaded) - return setTimeout(function() { - return print(level, event, payload); - }, 1); - if (window.console && window.console.log) { - var logLevel = - window.LOG_LEVEL || __WEBPACK_IMPORTED_MODULE_2__config__.a.logLevel; - if ( - !( - __WEBPACK_IMPORTED_MODULE_2__config__.b.indexOf(level) > - __WEBPACK_IMPORTED_MODULE_2__config__.b.indexOf(logLevel) - ) - ) { - payload = payload || {}; - var args = [event]; - Object(__WEBPACK_IMPORTED_MODULE_0__util__.c)() && - (payload = __WEBPACK_IMPORTED_MODULE_8_babel_runtime_core_js_json_stringify___default()( - payload - )), - args.push(payload), - (payload.error || payload.warning) && - args.push('\n\n', payload.error || payload.warning); - try { - window.console[level] && window.console[level].apply - ? window.console[level].apply(window.console, args) - : window.console.log && - window.console.log.apply && - window.console.log.apply(window.console, args); - } catch (err) {} - } - } - } - function immediateFlush() { - var _ref$fireAndForget = (arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : {} - ).fireAndForget, - fireAndForget = void 0 !== _ref$fireAndForget && _ref$fireAndForget; - if (__WEBPACK_IMPORTED_MODULE_2__config__.a.uri) { - var hasBuffer = buffer.length, - hasTracking = tracking.length; - if (hasBuffer || hasTracking) { - var meta = {}, - _iterator = __WEBPACK_IMPORTED_MODULE_1__builders__.f, - _isArray = Array.isArray(_iterator), - _i = 0; - for ( - _iterator = _isArray - ? _iterator - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator - ); - ; - - ) { - var _ref2; - if (_isArray) { - if (_i >= _iterator.length) break; - _ref2 = _iterator[_i++]; - } else { - if ((_i = _iterator.next()).done) break; - _ref2 = _i.value; - } - var builder = _ref2; - try { - Object(__WEBPACK_IMPORTED_MODULE_0__util__.b)(meta, builder(meta), !1); - } catch (err) { - console.error( - 'Error in custom meta builder:', - err.stack || err.toString() - ); - } - } - var headers = {}, - _iterator2 = __WEBPACK_IMPORTED_MODULE_1__builders__.e, - _isArray2 = Array.isArray(_iterator2), - _i2 = 0; - for ( - _iterator2 = _isArray2 - ? _iterator2 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator2 - ); - ; - - ) { - var _ref3; - if (_isArray2) { - if (_i2 >= _iterator2.length) break; - _ref3 = _iterator2[_i2++]; - } else { - if ((_i2 = _iterator2.next()).done) break; - _ref3 = _i2.value; - } - var _builder = _ref3; - try { - Object(__WEBPACK_IMPORTED_MODULE_0__util__.b)( - headers, - _builder(headers), - !1 - ); - } catch (err) { - console.error( - 'Error in custom header builder:', - err.stack || err.toString() - ); - } - } - var req = transport( - headers, - { events: buffer, meta: meta, tracking: tracking }, - { fireAndForget: fireAndForget } - ); - return (buffer = []), (tracking = []), req; - } - } - } - function enqueue(level, event, payload) { - buffer.push({ level: level, event: event, payload: payload }), - __WEBPACK_IMPORTED_MODULE_2__config__.a.autoLog.indexOf(level) > -1 && _flush(); - } - function log(level, event, payload) { - __WEBPACK_IMPORTED_MODULE_2__config__.a.prefix && - (event = __WEBPACK_IMPORTED_MODULE_2__config__.a.prefix + '_' + event), - 'string' == typeof (payload = payload || {}) - ? (payload = { message: payload }) - : payload instanceof Error && - (payload = { error: payload.stack || payload.toString() }); - try { - __WEBPACK_IMPORTED_MODULE_8_babel_runtime_core_js_json_stringify___default()( - payload - ); - } catch (err) { - return; - } - payload.timestamp = Date.now(); - var _iterator3 = __WEBPACK_IMPORTED_MODULE_1__builders__.g, - _isArray3 = Array.isArray(_iterator3), - _i3 = 0; - for ( - _iterator3 = _isArray3 - ? _iterator3 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator3 - ); - ; - - ) { - var _ref4; - if (_isArray3) { - if (_i3 >= _iterator3.length) break; - _ref4 = _iterator3[_i3++]; - } else { - if ((_i3 = _iterator3.next()).done) break; - _ref4 = _i3.value; - } - var builder = _ref4; - try { - Object(__WEBPACK_IMPORTED_MODULE_0__util__.b)(payload, builder(payload), !1); - } catch (err) { - console.error( - 'Error in custom payload builder:', - err.stack || err.toString() - ); - } - } - __WEBPACK_IMPORTED_MODULE_2__config__.a.silent || print(level, event, payload), - buffer.length === __WEBPACK_IMPORTED_MODULE_2__config__.a.sizeLimit - ? enqueue('info', 'logger_max_buffer_length') - : buffer.length < __WEBPACK_IMPORTED_MODULE_2__config__.a.sizeLimit && - enqueue(level, event, payload); - } - function _track(payload) { - if (payload) { - try { - __WEBPACK_IMPORTED_MODULE_8_babel_runtime_core_js_json_stringify___default()( - payload - ); - } catch (err) { - return; - } - var _iterator4 = __WEBPACK_IMPORTED_MODULE_1__builders__.h, - _isArray4 = Array.isArray(_iterator4), - _i4 = 0; - for ( - _iterator4 = _isArray4 - ? _iterator4 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator4 - ); - ; - - ) { - var _ref5; - if (_isArray4) { - if (_i4 >= _iterator4.length) break; - _ref5 = _iterator4[_i4++]; - } else { - if ((_i4 = _iterator4.next()).done) break; - _ref5 = _i4.value; - } - var builder = _ref5; - try { - Object(__WEBPACK_IMPORTED_MODULE_0__util__.b)( - payload, - builder(payload), - !1 - ); - } catch (err) { - console.error( - 'Error in custom tracking builder:', - err.stack || err.toString() - ); - } - } - print('debug', 'tracking', payload), tracking.push(payload); - } - } - __webpack_require__.d(__webpack_exports__, 'l', function() { - return _track; - }), - __webpack_require__.d(__webpack_exports__, 'a', function() { - return buffer; - }), - __webpack_require__.d(__webpack_exports__, 'm', function() { - return tracking; - }), - (__webpack_exports__.e = function getTransport() { - return transport; - }), - (__webpack_exports__.k = function setTransport(newTransport) { - transport = newTransport; - }), - (__webpack_exports__.j = print), - (__webpack_exports__.f = immediateFlush), - __webpack_require__.d(__webpack_exports__, 'd', function() { - return _flush; - }), - (__webpack_exports__.h = log), - (__webpack_exports__.i = function prefix(name) { - return { - debug: function debug(event, payload) { - return log('debug', name + '_' + event, payload); - }, - info: function info(event, payload) { - return log('info', name + '_' + event, payload); - }, - warn: function warn(event, payload) { - return log('warn', name + '_' + event, payload); - }, - error: function error(event, payload) { - return log('error', name + '_' + event, payload); - }, - track: function track(payload) { - return _track(payload); - }, - flush: function flush() { - return _flush(); - } - }; - }), - (__webpack_exports__.b = function debug(event, payload) { - return log('debug', event, payload); - }), - (__webpack_exports__.g = function info(event, payload) { - return log('info', event, payload); - }), - (__webpack_exports__.n = function warn(event, payload) { - return log('warn', event, payload); - }), - (__webpack_exports__.c = function error(event, payload) { - return log('error', event, payload); - }); - var __WEBPACK_IMPORTED_MODULE_0__util__ = __webpack_require__( - './node_modules/beaver-logger/client/util.js' - ), - __WEBPACK_IMPORTED_MODULE_1__builders__ = __webpack_require__( - './node_modules/beaver-logger/client/builders.js' - ), - __WEBPACK_IMPORTED_MODULE_2__config__ = __webpack_require__( - './node_modules/beaver-logger/client/config.js' - ), - _typeof = - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - 'symbol' == - __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_symbol_iterator___default.a - ) - ? function(obj) { - return void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - } - : function(obj) { - return obj && - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj.constructor === - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj !== - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a - .prototype - ? 'symbol' - : void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - }, - buffer = [], - tracking = []; - Function.prototype.bind && - window.console && - 'object' === _typeof(console.log) && - ['log', 'info', 'warn', 'error'].forEach(function(method) { - console[method] = this.bind(console[method], console); - }, Function.prototype.call); - var transport = function transport(headers, data, options) { - return Object(__WEBPACK_IMPORTED_MODULE_0__util__.a)( - 'post', - __WEBPACK_IMPORTED_MODULE_2__config__.a.uri, - headers, - data, - options - ); - }, - loaded = !1; - setTimeout(function() { - loaded = !0; - }, 1); - var _flush = Object(__WEBPACK_IMPORTED_MODULE_0__util__.d)( - immediateFlush, - __WEBPACK_IMPORTED_MODULE_2__config__.a.debounceInterval - ); - }, - './node_modules/beaver-logger/client/performance.js': function node_modulesBeaverLoggerClientPerformanceJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function now() { - return enablePerformance ? performance.now() : Date.now(); - } - function timer(startTime) { - return { - startTime: (startTime = void 0 !== startTime ? startTime : now()), - elapsed: function elapsed() { - return parseInt(now() - startTime, 10); - }, - reset: function reset() { - startTime = now(); - } - }; - } - function reqStartElapsed() { - if (enablePerformance) { - var timing = window.performance.timing; - return parseInt(timing.connectEnd - timing.navigationStart, 10); - } - } - (__webpack_exports__.c = now), - (__webpack_exports__.d = reqStartElapsed), - (__webpack_exports__.a = function initHeartBeat() { - var heartBeatTimer = timer(), - heartbeatCount = 0; - Object(__WEBPACK_IMPORTED_MODULE_3__util__.e)(function() { - if ( - !( - __WEBPACK_IMPORTED_MODULE_0__config__.a.heartbeatMaxThreshold && - heartbeatCount > - __WEBPACK_IMPORTED_MODULE_0__config__.a.heartbeatMaxThreshold - ) - ) { - heartbeatCount += 1; - var elapsed = heartBeatTimer.elapsed(), - lag = elapsed - __WEBPACK_IMPORTED_MODULE_0__config__.a.heartbeatInterval, - heartbeatPayload = { count: heartbeatCount, elapsed: elapsed }; - __WEBPACK_IMPORTED_MODULE_0__config__.a.heartbeatTooBusy && - ((heartbeatPayload.lag = lag), - lag >= - __WEBPACK_IMPORTED_MODULE_0__config__.a.heartbeatTooBusyThreshold && - Object(__WEBPACK_IMPORTED_MODULE_1__logger__.g)( - 'toobusy', - heartbeatPayload, - { - noConsole: !__WEBPACK_IMPORTED_MODULE_0__config__.a - .heartbeatConsoleLog - } - )), - Object(__WEBPACK_IMPORTED_MODULE_1__logger__.g)( - 'heartbeat', - heartbeatPayload, - { - noConsole: !__WEBPACK_IMPORTED_MODULE_0__config__.a - .heartbeatConsoleLog - } - ); - } - }, __WEBPACK_IMPORTED_MODULE_0__config__.a.heartbeatInterval); - }), - (__webpack_exports__.b = function initPerformance() { - if (!enablePerformance) - return Object(__WEBPACK_IMPORTED_MODULE_1__logger__.g)('no_performance_data'); - Object(__WEBPACK_IMPORTED_MODULE_2__builders__.c)(function() { - var payload = {}; - return ( - (payload.client_elapsed = clientTimer.elapsed()), - enablePerformance && (payload.req_elapsed = reqTimer.elapsed()), - payload - ); - }), - __WEBPACK_IMPORTED_MODULE_3__util__.g.then(function() { - var timing = {}; - [ - 'connectEnd', - 'connectStart', - 'domComplete', - 'domContentLoadedEventEnd', - 'domContentLoadedEventStart', - 'domInteractive', - 'domLoading', - 'domainLookupEnd', - 'domainLookupStart', - 'fetchStart', - 'loadEventEnd', - 'loadEventStart', - 'navigationStart', - 'redirectEnd', - 'redirectStart', - 'requestStart', - 'responseEnd', - 'responseStart', - 'secureConnectionStart', - 'unloadEventEnd', - 'unloadEventStart' - ].forEach(function(key) { - timing[key] = parseInt(window.performance.timing[key], 10) || 0; - }); - var offset = timing.connectEnd - timing.navigationStart; - timing.connectEnd && - __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - timing - ).forEach(function(name) { - var time = timing[name]; - time && - Object(__WEBPACK_IMPORTED_MODULE_1__logger__.g)('timing_' + name, { - client_elapsed: parseInt( - time - timing.connectEnd - (clientTimer.startTime - offset), - 10 - ), - req_elapsed: parseInt(time - timing.connectEnd, 10) - }); - }), - Object(__WEBPACK_IMPORTED_MODULE_1__logger__.g)('timing', timing), - Object(__WEBPACK_IMPORTED_MODULE_1__logger__.g)( - 'memory', - window.performance.memory - ), - Object(__WEBPACK_IMPORTED_MODULE_1__logger__.g)( - 'navigation', - window.performance.navigation - ), - window.performance.getEntries && - window.performance.getEntries().forEach(function(resource) { - ['link', 'script', 'img', 'css'].indexOf(resource.initiatorType) > - -1 && - Object(__WEBPACK_IMPORTED_MODULE_1__logger__.g)( - resource.initiatorType, - resource - ); - }); - }); - }); - var __WEBPACK_IMPORTED_MODULE_0__config__ = __webpack_require__( - './node_modules/beaver-logger/client/config.js' - ), - __WEBPACK_IMPORTED_MODULE_1__logger__ = __webpack_require__( - './node_modules/beaver-logger/client/logger.js' - ), - __WEBPACK_IMPORTED_MODULE_2__builders__ = __webpack_require__( - './node_modules/beaver-logger/client/builders.js' - ), - __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__( - './node_modules/beaver-logger/client/util.js' - ), - enablePerformance = - window && - window.performance && - performance.now && - performance.timing && - performance.timing.connectEnd && - performance.timing.navigationStart && - Math.abs(performance.now() - Date.now()) > 1e3 && - performance.now() - - (performance.timing.connectEnd - performance.timing.navigationStart) > - 0, - clientTimer = timer(), - reqTimer = timer(reqStartElapsed()); - }, - './node_modules/beaver-logger/client/transitions.js': function node_modulesBeaverLoggerClientTransitionsJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function startTransition() { - startTime = Object(__WEBPACK_IMPORTED_MODULE_0__performance__.c)(); - } - function endTransition(toState) { - startTime = startTime || Object(__WEBPACK_IMPORTED_MODULE_0__performance__.d)(); - var currentTime = Object(__WEBPACK_IMPORTED_MODULE_0__performance__.c)(), - elapsedTime = void 0; - void 0 !== startTime && (elapsedTime = parseInt(currentTime - startTime, 0)); - var transitionName = 'transition_' + currentState + '_to_' + toState; - Object(__WEBPACK_IMPORTED_MODULE_1__logger__.g)(transitionName, { - duration: elapsedTime - }), - Object(__WEBPACK_IMPORTED_MODULE_1__logger__.l)({ - transition: transitionName, - transition_time: elapsedTime - }), - Object(__WEBPACK_IMPORTED_MODULE_1__logger__.f)(), - (startTime = currentTime), - (currentState = toState), - (pageID = Object(__WEBPACK_IMPORTED_MODULE_3__util__.f)()); - } - (__webpack_exports__.b = startTransition), - (__webpack_exports__.a = endTransition), - (__webpack_exports__.c = function transition(toState) { - startTransition(), endTransition(toState); - }); - var __WEBPACK_IMPORTED_MODULE_0__performance__ = __webpack_require__( - './node_modules/beaver-logger/client/performance.js' - ), - __WEBPACK_IMPORTED_MODULE_1__logger__ = __webpack_require__( - './node_modules/beaver-logger/client/logger.js' - ), - __WEBPACK_IMPORTED_MODULE_2__builders__ = __webpack_require__( - './node_modules/beaver-logger/client/builders.js' - ), - __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__( - './node_modules/beaver-logger/client/util.js' - ), - __WEBPACK_IMPORTED_MODULE_4__config__ = __webpack_require__( - './node_modules/beaver-logger/client/config.js' - ), - windowID = Object(__WEBPACK_IMPORTED_MODULE_3__util__.f)(), - pageID = Object(__WEBPACK_IMPORTED_MODULE_3__util__.f)(), - currentState = __WEBPACK_IMPORTED_MODULE_4__config__.a.initial_state_name, - startTime = void 0; - Object(__WEBPACK_IMPORTED_MODULE_2__builders__.c)(function() { - return { windowID: windowID, pageID: pageID }; - }), - Object(__WEBPACK_IMPORTED_MODULE_2__builders__.b)(function() { - return { state: 'ui_' + currentState }; - }); - }, - './node_modules/beaver-logger/client/util.js': function node_modulesBeaverLoggerClientUtilJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - (__webpack_exports__.b = function extend(dest, src) { - var over = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]; - (dest = dest || {}), (src = src || {}); - for (var i in src) - src.hasOwnProperty(i) && - ((!over && dest.hasOwnProperty(i)) || (dest[i] = src[i])); - return dest; - }), - (__webpack_exports__.a = function ajax(method, url) { - var headers = - arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, - data = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}, - _ref$fireAndForget = (arguments.length > 4 && void 0 !== arguments[4] - ? arguments[4] - : {} - ).fireAndForget, - fireAndForget = void 0 !== _ref$fireAndForget && _ref$fireAndForget; - return new __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__.a(function(resolve) { - var XRequest = window.XMLHttpRequest || window.ActiveXObject; - if ( - window.XDomainRequest && - !(function isSameDomain(url) { - var match = url.match(/https?:\/\/[^\/]+/); - return ( - !match || - match[0] === window.location.protocol + '//' + window.location.host - ); - })(url) - ) { - if ( - !(function isSameProtocol(url) { - return window.location.protocol === url.split('/')[0]; - })(url) - ) - return resolve(); - XRequest = window.XDomainRequest; - } - var req = new XRequest('MSXML2.XMLHTTP.3.0'); - if ( - (req.open(method.toUpperCase(), url, !0), - 'function' == typeof req.setRequestHeader) - ) { - req.setRequestHeader('X-Requested-With', 'XMLHttpRequest'), - req.setRequestHeader('Content-type', 'application/json'); - for (var headerName in headers) - headers.hasOwnProperty(headerName) && - req.setRequestHeader(headerName, headers[headerName]); - } - fireAndForget - ? resolve() - : (req.onreadystatechange = function() { - req.readyState > 3 && resolve(); - }), - req.send( - __WEBPACK_IMPORTED_MODULE_8_babel_runtime_core_js_json_stringify___default()( - data - ).replace(/&/g, '%26') - ); - }); - }), - (__webpack_exports__.d = function promiseDebounce(method, interval) { - var debounce = {}; - return function() { - var args = arguments; - return ( - debounce.timeout && - (clearTimeout(debounce.timeout), delete debounce.timeout), - (debounce.timeout = setTimeout(function() { - var resolver = debounce.resolver, - rejector = debounce.rejector; - return ( - delete debounce.promise, - delete debounce.resolver, - delete debounce.rejector, - delete debounce.timeout, - __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__.a - .resolve() - .then(function() { - return method.apply(null, args); - }) - .then(resolver, rejector) - ); - }, interval)), - (debounce.promise = - debounce.promise || - new __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__.a(function( - resolver, - rejector - ) { - (debounce.resolver = resolver), (debounce.rejector = rejector); - })), - debounce.promise - ); - }; - }), - __webpack_require__.d(__webpack_exports__, 'g', function() { - return windowReady; - }), - (__webpack_exports__.e = function safeInterval(method, time) { - var timeout = void 0; - return ( - (function loop() { - timeout = setTimeout(function() { - method(), loop(); - }, time); - })(), - { - cancel: function cancel() { - clearTimeout(timeout); - } - } - ); - }), - (__webpack_exports__.f = function uniqueID() { - var chars = '0123456789abcdef'; - return 'xxxxxxxxxx'.replace(/./g, function() { - return chars.charAt(Math.floor(Math.random() * chars.length)); - }); - }), - (__webpack_exports__.c = function isIE() { - return Boolean(window.document.documentMode); - }); - var __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__ = __webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ), - windowReady = new __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__.a(function( - resolve - ) { - 'undefined' != typeof document && - 'complete' === document.readyState && - resolve(), - window.addEventListener && window.addEventListener('load', resolve); - }); - }, - './node_modules/cross-domain-safe-weakmap/src/index.js': function node_modulesCrossDomainSafeWeakmapSrcIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - var __WEBPACK_IMPORTED_MODULE_0__interface__ = __webpack_require__( - './node_modules/cross-domain-safe-weakmap/src/interface.js' - ); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.WeakMap; - }); - }, - './node_modules/cross-domain-safe-weakmap/src/interface.js': function node_modulesCrossDomainSafeWeakmapSrcInterfaceJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - Object.defineProperty(__webpack_exports__, '__esModule', { value: !0 }); - var __WEBPACK_IMPORTED_MODULE_0__weakmap__ = __webpack_require__( - './node_modules/cross-domain-safe-weakmap/src/weakmap.js' - ); - __webpack_require__.d(__webpack_exports__, 'WeakMap', function() { - return __WEBPACK_IMPORTED_MODULE_0__weakmap__.a; - }); - }, - './node_modules/cross-domain-safe-weakmap/src/native.js': function node_modulesCrossDomainSafeWeakmapSrcNativeJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_exports__.a = function hasNativeWeakMap() { - if (!window.WeakMap) return !1; - if (!window.Object.freeze) return !1; - try { - var testWeakMap = new window.WeakMap(), - testKey = {}; - return ( - window.Object.freeze(testKey), - testWeakMap.set(testKey, '__testvalue__'), - '__testvalue__' === testWeakMap.get(testKey) - ); - } catch (err) { - return !1; - } - }; - }, - './node_modules/cross-domain-safe-weakmap/src/util.js': function node_modulesCrossDomainSafeWeakmapSrcUtilJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - (__webpack_exports__.b = function safeIndexOf(collection, item) { - for (var i = 0; i < collection.length; i++) - try { - if (collection[i] === item) return i; - } catch (err) {} - return -1; - }), - (__webpack_exports__.a = function noop() {}); - }, - './node_modules/cross-domain-safe-weakmap/src/weakmap.js': function node_modulesCrossDomainSafeWeakmapSrcWeakmapJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return CrossDomainSafeWeakMap; - }); - var __WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1__native__ = __webpack_require__( - './node_modules/cross-domain-safe-weakmap/src/native.js' - ), - __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__( - './node_modules/cross-domain-safe-weakmap/src/util.js' - ), - defineProperty = - __WEBPACK_IMPORTED_MODULE_9_babel_runtime_core_js_object_define_property___default.a, - counter = Date.now() % 1e9, - CrossDomainSafeWeakMap = (function() { - function CrossDomainSafeWeakMap() { - if ( - ((function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, CrossDomainSafeWeakMap), - (counter += 1), - (this.name = '__weakmap_' + ((1e9 * Math.random()) >>> 0) + '__' + counter), - Object(__WEBPACK_IMPORTED_MODULE_1__native__.a)()) - ) - try { - this.weakmap = new window.WeakMap(); - } catch (err) {} - (this.keys = []), (this.values = []); - } - return ( - (CrossDomainSafeWeakMap.prototype._cleanupClosedWindows = function() { - for ( - var weakmap = this.weakmap, keys = this.keys, i = 0; - i < keys.length; - i++ - ) { - var value = keys[i]; - if ( - Object(__WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.s)(value) && - Object(__WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.t)(value) - ) { - if (weakmap) - try { - weakmap.delete(value); - } catch (err) {} - keys.splice(i, 1), this.values.splice(i, 1), (i -= 1); - } - } - }), - (CrossDomainSafeWeakMap.prototype.isSafeToReadWrite = function(key) { - if (Object(__WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.s)(key)) - return !1; - try { - Object(__WEBPACK_IMPORTED_MODULE_2__util__.a)(key && key.self), - Object(__WEBPACK_IMPORTED_MODULE_2__util__.a)(key && key[this.name]); - } catch (err) { - return !1; - } - return !0; - }), - (CrossDomainSafeWeakMap.prototype.set = function(key, value) { - if (!key) throw new Error('WeakMap expected key'); - var weakmap = this.weakmap; - if (weakmap) - try { - weakmap.set(key, value); - } catch (err) { - delete this.weakmap; - } - if (this.isSafeToReadWrite(key)) { - var name = this.name, - entry = key[name]; - entry && entry[0] === key - ? (entry[1] = value) - : defineProperty(key, name, { value: [key, value], writable: !0 }); - } else { - this._cleanupClosedWindows(); - var keys = this.keys, - values = this.values, - index = Object(__WEBPACK_IMPORTED_MODULE_2__util__.b)(keys, key); - -1 === index - ? (keys.push(key), values.push(value)) - : (values[index] = value); - } - }), - (CrossDomainSafeWeakMap.prototype.get = function(key) { - if (!key) throw new Error('WeakMap expected key'); - var weakmap = this.weakmap; - if (weakmap) - try { - if (weakmap.has(key)) return weakmap.get(key); - } catch (err) { - delete this.weakmap; - } - if (!this.isSafeToReadWrite(key)) { - this._cleanupClosedWindows(); - var keys = this.keys, - index = Object(__WEBPACK_IMPORTED_MODULE_2__util__.b)(keys, key); - if (-1 === index) return; - return this.values[index]; - } - var entry = key[this.name]; - if (entry && entry[0] === key) return entry[1]; - }), - (CrossDomainSafeWeakMap.prototype.delete = function(key) { - if (!key) throw new Error('WeakMap expected key'); - var weakmap = this.weakmap; - if (weakmap) - try { - weakmap.delete(key); - } catch (err) { - delete this.weakmap; - } - if (this.isSafeToReadWrite(key)) { - var entry = key[this.name]; - entry && entry[0] === key && (entry[0] = entry[1] = void 0); - } else { - this._cleanupClosedWindows(); - var keys = this.keys, - index = Object(__WEBPACK_IMPORTED_MODULE_2__util__.b)(keys, key); - -1 !== index && (keys.splice(index, 1), this.values.splice(index, 1)); - } - }), - (CrossDomainSafeWeakMap.prototype.has = function(key) { - if (!key) throw new Error('WeakMap expected key'); - var weakmap = this.weakmap; - if (weakmap) - try { - return weakmap.has(key); - } catch (err) { - delete this.weakmap; - } - if (this.isSafeToReadWrite(key)) { - var entry = key[this.name]; - return !(!entry || entry[0] !== key); - } - return ( - this._cleanupClosedWindows(), - -1 !== Object(__WEBPACK_IMPORTED_MODULE_2__util__.b)(this.keys, key) - ); - }), - CrossDomainSafeWeakMap - ); - })(); - }, - './node_modules/cross-domain-utils/src/index.js': function node_modulesCrossDomainUtilsSrcIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function getActualDomain(win) { - var location = win.location; - if (!location) throw new Error('Can not read window location'); - var protocol = location.protocol; - if (!protocol) throw new Error('Can not read window protocol'); - if (protocol === CONSTANTS.FILE_PROTOCOL) return CONSTANTS.FILE_PROTOCOL + '//'; - var host = location.host; - if (!host) throw new Error('Can not read window host'); - return protocol + '//' + host; - } - function getDomain(win) { - var domain = getActualDomain((win = win || window)); - return domain && - win.mockDomain && - 0 === win.mockDomain.indexOf(CONSTANTS.MOCK_PROTOCOL) - ? win.mockDomain - : domain; - } - function isBlankDomain(win) { - try { - if (!win.location.href) return !0; - if ('about:blank' === win.location.href) return !0; - } catch (err) {} - return !1; - } - function isActuallySameDomain(win) { - try { - var desc = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - win, - 'location' - ); - if (desc && !1 === desc.enumerable) return !1; - } catch (err) {} - try { - if (isBlankDomain(win)) return !0; - if (getActualDomain(win) === getActualDomain(window)) return !0; - } catch (err) {} - return !1; - } - function isSameDomain(win) { - if (!isActuallySameDomain(win)) return !1; - try { - if (isBlankDomain(win)) return !0; - if (getDomain(window) === getDomain(win)) return !0; - } catch (err) {} - return !1; - } - function getParent(win) { - if (win) - try { - if (win.parent && win.parent !== win) return win.parent; - } catch (err) { - return; - } - } - function getOpener(win) { - if (win && !getParent(win)) - try { - return win.opener; - } catch (err) { - return; - } - } - function isAncestorParent(parent, child) { - if (!parent || !child) return !1; - var childParent = getParent(child); - return childParent - ? childParent === parent - : -1 !== - (function getParents(win) { - var result = []; - try { - for (; win.parent !== win; ) - result.push(win.parent), (win = win.parent); - } catch (err) {} - return result; - })(child).indexOf(parent); - } - function getFrames(win) { - var result = [], - frames = void 0; - try { - frames = win.frames; - } catch (err) { - frames = win; - } - var len = void 0; - try { - len = frames.length; - } catch (err) {} - if (0 === len) return result; - if (len) { - for (var i = 0; i < len; i++) { - var frame = void 0; - try { - frame = frames[i]; - } catch (err) { - continue; - } - result.push(frame); - } - return result; - } - for (var _i = 0; _i < 100; _i++) { - var _frame = void 0; - try { - _frame = frames[_i]; - } catch (err) { - return result; - } - if (!_frame) return result; - result.push(_frame); - } - return result; - } - function getAllChildFrames(win) { - var result = [], - _iterator = getFrames(win), - _isArray = Array.isArray(_iterator), - _i2 = 0; - for ( - _iterator = _isArray - ? _iterator - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator - ); - ; - - ) { - var _ref; - if (_isArray) { - if (_i2 >= _iterator.length) break; - _ref = _iterator[_i2++]; - } else { - if ((_i2 = _iterator.next()).done) break; - _ref = _i2.value; - } - var frame = _ref; - result.push(frame); - var _iterator2 = getAllChildFrames(frame), - _isArray2 = Array.isArray(_iterator2), - _i3 = 0; - for ( - _iterator2 = _isArray2 - ? _iterator2 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator2 - ); - ; - - ) { - var _ref2; - if (_isArray2) { - if (_i3 >= _iterator2.length) break; - _ref2 = _iterator2[_i3++]; - } else { - if ((_i3 = _iterator2.next()).done) break; - _ref2 = _i3.value; - } - var childFrame = _ref2; - result.push(childFrame); - } - } - return result; - } - function getTop(win) { - if (win) { - try { - if (win.top) return win.top; - } catch (err) {} - if (getParent(win) === win) return win; - try { - if (isAncestorParent(window, win) && window.top) return window.top; - } catch (err) {} - try { - if (isAncestorParent(win, window) && window.top) return window.top; - } catch (err) {} - var _iterator3 = getAllChildFrames(win), - _isArray3 = Array.isArray(_iterator3), - _i4 = 0; - for ( - _iterator3 = _isArray3 - ? _iterator3 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator3 - ); - ; - - ) { - var _ref3; - if (_isArray3) { - if (_i4 >= _iterator3.length) break; - _ref3 = _iterator3[_i4++]; - } else { - if ((_i4 = _iterator3.next()).done) break; - _ref3 = _i4.value; - } - var frame = _ref3; - try { - if (frame.top) return frame.top; - } catch (err) {} - if (getParent(frame) === frame) return frame; - } - } - } - function getAllFramesInWindow(win) { - var top = getTop(win); - return getAllChildFrames(top).concat(top); - } - function isFrameWindowClosed(frame) { - if (!frame.contentWindow) return !0; - if (!frame.parentNode) return !0; - var doc = frame.ownerDocument; - return !(!doc || !doc.body || doc.body.contains(frame)); - } - function isWindowClosed(win) { - var allowMock = - !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1]; - try { - if (win === window) return !1; - } catch (err) { - return !0; - } - try { - if (!win) return !0; - } catch (err) { - return !0; - } - try { - if (win.closed) return !0; - } catch (err) { - return !err || err.message !== IE_WIN_ACCESS_ERROR; - } - if (allowMock && isSameDomain(win)) - try { - if (win.mockclosed) return !0; - } catch (err) {} - try { - if (!win.parent || !win.top) return !0; - } catch (err) {} - try { - Object(__WEBPACK_IMPORTED_MODULE_0__util__.b)(win == win); - } catch (err) { - return !0; - } - var iframeIndex = (function safeIndexOf(collection, item) { - for (var i = 0; i < collection.length; i++) - try { - if (collection[i] === item) return i; - } catch (err) {} - return -1; - })(iframeWindows, win); - if (-1 !== iframeIndex) { - var frame = iframeFrames[iframeIndex]; - if (frame && isFrameWindowClosed(frame)) return !0; - } - return !1; - } - function getFrameByName(win, name) { - var winFrames = getFrames(win), - _iterator4 = winFrames, - _isArray4 = Array.isArray(_iterator4), - _i6 = 0; - for ( - _iterator4 = _isArray4 - ? _iterator4 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator4 - ); - ; - - ) { - var _ref4; - if (_isArray4) { - if (_i6 >= _iterator4.length) break; - _ref4 = _iterator4[_i6++]; - } else { - if ((_i6 = _iterator4.next()).done) break; - _ref4 = _i6.value; - } - var childFrame = _ref4; - try { - if ( - isSameDomain(childFrame) && - childFrame.name === name && - -1 !== winFrames.indexOf(childFrame) - ) - return childFrame; - } catch (err) {} - } - try { - if (-1 !== winFrames.indexOf(win.frames[name])) return win.frames[name]; - } catch (err) {} - try { - if (-1 !== winFrames.indexOf(win[name])) return win[name]; - } catch (err) {} - } - function getAncestor(win) { - var opener = getOpener((win = win || window)); - return opener || (getParent(win) || void 0); - } - function anyMatch(collection1, collection2) { - var _iterator8 = collection1, - _isArray8 = Array.isArray(_iterator8), - _i10 = 0; - for ( - _iterator8 = _isArray8 - ? _iterator8 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator8 - ); - ; - - ) { - var _ref8; - if (_isArray8) { - if (_i10 >= _iterator8.length) break; - _ref8 = _iterator8[_i10++]; - } else { - if ((_i10 = _iterator8.next()).done) break; - _ref8 = _i10.value; - } - var item1 = _ref8, - _iterator9 = collection2, - _isArray9 = Array.isArray(_iterator9), - _i11 = 0; - for ( - _iterator9 = _isArray9 - ? _iterator9 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator9 - ); - ; - - ) { - var _ref9; - if (_isArray9) { - if (_i11 >= _iterator9.length) break; - _ref9 = _iterator9[_i11++]; - } else { - if ((_i11 = _iterator9.next()).done) break; - _ref9 = _i11.value; - } - if (item1 === _ref9) return !0; - } - } - return !1; - } - function getDistanceFromTop() { - for ( - var distance = 0, - parent = - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : window; - parent; - - ) - (parent = getParent(parent)) && (distance += 1); - return distance; - } - (__webpack_exports__.b = getActualDomain), - (__webpack_exports__.f = getDomain), - (__webpack_exports__.l = isActuallySameDomain), - (__webpack_exports__.p = isSameDomain), - (__webpack_exports__.j = getParent), - (__webpack_exports__.i = getOpener), - (__webpack_exports__.k = getTop), - (__webpack_exports__.c = getAllFramesInWindow), - (__webpack_exports__.r = function isTop(win) { - return win === getTop(win); - }), - (__webpack_exports__.t = isWindowClosed), - (__webpack_exports__.u = function linkFrameWindow(frame) { - if ( - ((function cleanIframes() { - for (var i = 0; i < iframeFrames.length; i++) - isFrameWindowClosed(iframeFrames[i]) && - (iframeFrames.splice(i, 1), iframeWindows.splice(i, 1)); - for (var _i5 = 0; _i5 < iframeWindows.length; _i5++) - isWindowClosed(iframeWindows[_i5]) && - (iframeFrames.splice(_i5, 1), iframeWindows.splice(_i5, 1)); - })(), - frame && frame.contentWindow) - ) - try { - iframeWindows.push(frame.contentWindow), iframeFrames.push(frame); - } catch (err) {} - }), - (__webpack_exports__.a = function findFrameByName(win, name) { - return ( - getFrameByName(win, name) || - (function findChildFrameByName(win, name) { - var frame = getFrameByName(win, name); - if (frame) return frame; - var _iterator5 = getFrames(win), - _isArray5 = Array.isArray(_iterator5), - _i7 = 0; - for ( - _iterator5 = _isArray5 - ? _iterator5 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator5 - ); - ; - - ) { - var _ref5; - if (_isArray5) { - if (_i7 >= _iterator5.length) break; - _ref5 = _iterator5[_i7++]; - } else { - if ((_i7 = _iterator5.next()).done) break; - _ref5 = _i7.value; - } - var namedFrame = findChildFrameByName(_ref5, name); - if (namedFrame) return namedFrame; - } - })(getTop(win) || win, name) - ); - }), - (__webpack_exports__.d = getAncestor), - (__webpack_exports__.m = function isAncestor(parent, child) { - var actualParent = getAncestor(child); - if (actualParent) return actualParent === parent; - if (child === parent) return !1; - if (getTop(child) === child) return !1; - var _iterator7 = getFrames(parent), - _isArray7 = Array.isArray(_iterator7), - _i9 = 0; - for ( - _iterator7 = _isArray7 - ? _iterator7 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator7 - ); - ; - - ) { - var _ref7; - if (_isArray7) { - if (_i9 >= _iterator7.length) break; - _ref7 = _iterator7[_i9++]; - } else { - if ((_i9 = _iterator7.next()).done) break; - _ref7 = _i9.value; - } - if (_ref7 === child) return !0; - } - return !1; - }), - (__webpack_exports__.o = function isPopup() { - return Boolean(getOpener(window)); - }), - (__webpack_exports__.n = function isIframe() { - return Boolean(getParent(window)); - }), - (__webpack_exports__.e = getDistanceFromTop), - (__webpack_exports__.h = function getNthParentFromTop(win) { - var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1; - return (function getNthParent(win) { - for ( - var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1, - parent = win, - i = 0; - i < n; - i++ - ) { - if (!parent) return; - parent = getParent(parent); - } - return parent; - })(win, getDistanceFromTop(win) - n); - }), - (__webpack_exports__.q = function isSameTopWindow(win1, win2) { - var top1 = getTop(win1) || win1, - top2 = getTop(win2) || win2; - try { - if (top1 && top2) return top1 === top2; - } catch (err) {} - var allFrames1 = getAllFramesInWindow(win1), - allFrames2 = getAllFramesInWindow(win2); - if (anyMatch(allFrames1, allFrames2)) return !0; - var opener1 = getOpener(top1), - opener2 = getOpener(top2); - return !( - (opener1 && anyMatch(getAllFramesInWindow(opener1), allFrames2)) || - (opener2 && anyMatch(getAllFramesInWindow(opener2), allFrames1), 1) - ); - }), - (__webpack_exports__.v = function matchDomain(pattern, origin) { - if ('string' == typeof pattern) { - if ('string' == typeof origin) - return pattern === CONSTANTS.WILDCARD || origin === pattern; - if (Object(__WEBPACK_IMPORTED_MODULE_0__util__.a)(origin)) return !1; - if (Array.isArray(origin)) return !1; - } - return Object(__WEBPACK_IMPORTED_MODULE_0__util__.a)(pattern) - ? Object(__WEBPACK_IMPORTED_MODULE_0__util__.a)(origin) - ? pattern.toString() === origin.toString() - : !Array.isArray(origin) && Boolean(origin.match(pattern)) - : !!Array.isArray(pattern) && - (Array.isArray(origin) - ? __WEBPACK_IMPORTED_MODULE_8_babel_runtime_core_js_json_stringify___default()( - pattern - ) === - __WEBPACK_IMPORTED_MODULE_8_babel_runtime_core_js_json_stringify___default()( - origin - ) - : !Object(__WEBPACK_IMPORTED_MODULE_0__util__.a)(origin) && - pattern.some(function(subpattern) { - return matchDomain(subpattern, origin); - })); - }), - (__webpack_exports__.g = function getDomainFromUrl(url) { - return url.match(/^(https?|mock|file):\/\//) - ? url - .split('/') - .slice(0, 3) - .join('/') - : getDomain(); - }), - (__webpack_exports__.w = function onCloseWindow(win, callback) { - var delay = - arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 1e3, - maxtime = - arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 1 / 0, - timeout = void 0; - return ( - (function check() { - if (isWindowClosed(win)) - return timeout && clearTimeout(timeout), callback(); - maxtime <= 0 - ? clearTimeout(timeout) - : ((maxtime -= delay), (timeout = setTimeout(check, delay))); - })(), - { - cancel: function cancel() { - timeout && clearTimeout(timeout); - } - } - ); - }), - (__webpack_exports__.s = function isWindow(obj) { - try { - if (obj === window) return !0; - } catch (err) { - if (err && err.message === IE_WIN_ACCESS_ERROR) return !0; - } - try { - if ('[object Window]' === Object.prototype.toString.call(obj)) return !0; - } catch (err) { - if (err && err.message === IE_WIN_ACCESS_ERROR) return !0; - } - try { - if (window.Window && obj instanceof window.Window) return !0; - } catch (err) { - if (err && err.message === IE_WIN_ACCESS_ERROR) return !0; - } - try { - if (obj && obj.self === obj) return !0; - } catch (err) { - if (err && err.message === IE_WIN_ACCESS_ERROR) return !0; - } - try { - if (obj && obj.parent === obj) return !0; - } catch (err) { - if (err && err.message === IE_WIN_ACCESS_ERROR) return !0; - } - try { - if (obj && obj.top === obj) return !0; - } catch (err) { - if (err && err.message === IE_WIN_ACCESS_ERROR) return !0; - } - try { - Object(__WEBPACK_IMPORTED_MODULE_0__util__.b)(obj == obj); - } catch (err) { - return !0; - } - try { - Object(__WEBPACK_IMPORTED_MODULE_0__util__.b)( - obj && obj.__cross_domain_utils_window_check__ - ); - } catch (err) { - return !0; - } - return !1; - }); - var __WEBPACK_IMPORTED_MODULE_0__util__ = __webpack_require__( - './node_modules/cross-domain-utils/src/util.js' - ), - CONSTANTS = { MOCK_PROTOCOL: 'mock:', FILE_PROTOCOL: 'file:', WILDCARD: '*' }, - IE_WIN_ACCESS_ERROR = 'Call was rejected by callee.\r\n', - iframeWindows = [], - iframeFrames = []; - }, - './node_modules/cross-domain-utils/src/util.js': function node_modulesCrossDomainUtilsSrcUtilJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - (__webpack_exports__.a = function isRegex(item) { - return '[object RegExp]' === Object.prototype.toString.call(item); - }), - (__webpack_exports__.b = function noop() {}); - }, - './node_modules/hi-base32/src/base32.js': function node_modulesHiBase32SrcBase32Js( - module, - exports, - __webpack_require__ - ) { - (function(global) { - !(function(root, undefined) { - var NODE_JS = void 0 !== module; - NODE_JS && (root = global); - var BASE32_ENCODE_CHAR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'.split(''), - BASE32_DECODE_CHAR = { - A: 0, - B: 1, - C: 2, - D: 3, - E: 4, - F: 5, - G: 6, - H: 7, - I: 8, - J: 9, - K: 10, - L: 11, - M: 12, - N: 13, - O: 14, - P: 15, - Q: 16, - R: 17, - S: 18, - T: 19, - U: 20, - V: 21, - W: 22, - X: 23, - Y: 24, - Z: 25, - 2: 26, - 3: 27, - 4: 28, - 5: 29, - 6: 30, - 7: 31 - }, - blocks = [0, 0, 0, 0, 0, 0, 0, 0], - toUtf8String = function toUtf8String(bytes) { - for ( - var b, c, str = '', length = bytes.length, i = 0, followingChars = 0; - i < length; - - ) - if ((b = bytes[i++]) <= 127) str += String.fromCharCode(b); - else { - if (b > 191 && b <= 223) (c = 31 & b), (followingChars = 1); - else if (b <= 239) (c = 15 & b), (followingChars = 2); - else { - if (!(b <= 247)) throw 'not a UTF-8 string'; - (c = 7 & b), (followingChars = 3); - } - for (var j = 0; j < followingChars; ++j) { - if ((b = bytes[i++]) < 128 || b > 191) throw 'not a UTF-8 string'; - (c <<= 6), (c += 63 & b); - } - if (c >= 55296 && c <= 57343) throw 'not a UTF-8 string'; - if (c > 1114111) throw 'not a UTF-8 string'; - c <= 65535 - ? (str += String.fromCharCode(c)) - : ((c -= 65536), - (str += String.fromCharCode(55296 + (c >> 10))), - (str += String.fromCharCode(56320 + (1023 & c)))); - } - return str; - }, - decodeAsBytes = function decodeAsBytes(base32Str) { - for ( - var v1, - v2, - v3, - v4, - v5, - v6, - v7, - v8, - bytes = [], - index = 0, - length = (base32Str = base32Str.replace(/=/g, '')).length, - i = 0, - count = (length >> 3) << 3; - i < count; - - ) - (v1 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v2 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v3 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v4 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v5 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v6 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v7 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v8 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (bytes[index++] = 255 & ((v1 << 3) | (v2 >>> 2))), - (bytes[index++] = 255 & ((v2 << 6) | (v3 << 1) | (v4 >>> 4))), - (bytes[index++] = 255 & ((v4 << 4) | (v5 >>> 1))), - (bytes[index++] = 255 & ((v5 << 7) | (v6 << 2) | (v7 >>> 3))), - (bytes[index++] = 255 & ((v7 << 5) | v8)); - var remain = length - count; - return ( - 2 == remain - ? ((v1 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v2 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (bytes[index++] = 255 & ((v1 << 3) | (v2 >>> 2)))) - : 4 == remain - ? ((v1 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v2 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v3 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v4 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (bytes[index++] = 255 & ((v1 << 3) | (v2 >>> 2))), - (bytes[index++] = 255 & ((v2 << 6) | (v3 << 1) | (v4 >>> 4)))) - : 5 == remain - ? ((v1 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v2 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v3 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v4 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v5 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (bytes[index++] = 255 & ((v1 << 3) | (v2 >>> 2))), - (bytes[index++] = 255 & ((v2 << 6) | (v3 << 1) | (v4 >>> 4))), - (bytes[index++] = 255 & ((v4 << 4) | (v5 >>> 1)))) - : 7 == remain && - ((v1 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v2 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v3 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v4 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v5 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v6 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v7 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (bytes[index++] = 255 & ((v1 << 3) | (v2 >>> 2))), - (bytes[index++] = 255 & ((v2 << 6) | (v3 << 1) | (v4 >>> 4))), - (bytes[index++] = 255 & ((v4 << 4) | (v5 >>> 1))), - (bytes[index++] = 255 & ((v5 << 7) | (v6 << 2) | (v7 >>> 3)))), - bytes - ); - }, - decode = function decode(base32Str, asciiOnly) { - if (!asciiOnly) return toUtf8String(decodeAsBytes(base32Str)); - var v1, - v2, - v3, - v4, - v5, - v6, - v7, - v8, - str = '', - length = base32Str.indexOf('='); - -1 == length && (length = base32Str.length); - for (var i = 0, count = (length >> 3) << 3; i < count; ) - (v1 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v2 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v3 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v4 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v5 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v6 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v7 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v8 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (str += - String.fromCharCode(255 & ((v1 << 3) | (v2 >>> 2))) + - String.fromCharCode(255 & ((v2 << 6) | (v3 << 1) | (v4 >>> 4))) + - String.fromCharCode(255 & ((v4 << 4) | (v5 >>> 1))) + - String.fromCharCode(255 & ((v5 << 7) | (v6 << 2) | (v7 >>> 3))) + - String.fromCharCode(255 & ((v7 << 5) | v8))); - var remain = length - count; - return ( - 2 == remain - ? ((v1 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v2 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (str += String.fromCharCode(255 & ((v1 << 3) | (v2 >>> 2))))) - : 4 == remain - ? ((v1 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v2 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v3 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v4 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (str += - String.fromCharCode(255 & ((v1 << 3) | (v2 >>> 2))) + - String.fromCharCode(255 & ((v2 << 6) | (v3 << 1) | (v4 >>> 4))))) - : 5 == remain - ? ((v1 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v2 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v3 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v4 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v5 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (str += - String.fromCharCode(255 & ((v1 << 3) | (v2 >>> 2))) + - String.fromCharCode( - 255 & ((v2 << 6) | (v3 << 1) | (v4 >>> 4)) - ) + - String.fromCharCode(255 & ((v4 << 4) | (v5 >>> 1))))) - : 7 == remain && - ((v1 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v2 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v3 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v4 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v5 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v6 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (v7 = BASE32_DECODE_CHAR[base32Str.charAt(i++)]), - (str += - String.fromCharCode(255 & ((v1 << 3) | (v2 >>> 2))) + - String.fromCharCode( - 255 & ((v2 << 6) | (v3 << 1) | (v4 >>> 4)) - ) + - String.fromCharCode(255 & ((v4 << 4) | (v5 >>> 1))) + - String.fromCharCode( - 255 & ((v5 << 7) | (v6 << 2) | (v7 >>> 3)) - ))), - str - ); - }; - decode.asBytes = decodeAsBytes; - var exports = { - encode: function encode(input, asciiOnly) { - var notString = 'string' != typeof input; - return ( - notString && - input.constructor == ArrayBuffer && - (input = new Uint8Array(input)), - notString - ? (function encodeBytes(bytes) { - for ( - var v1, - v2, - v3, - v4, - v5, - base32Str = '', - length = bytes.length, - i = 0, - count = 5 * parseInt(length / 5); - i < count; - - ) - (v1 = bytes[i++]), - (v2 = bytes[i++]), - (v3 = bytes[i++]), - (v4 = bytes[i++]), - (v5 = bytes[i++]), - (base32Str += - BASE32_ENCODE_CHAR[v1 >>> 3] + - BASE32_ENCODE_CHAR[31 & ((v1 << 2) | (v2 >>> 6))] + - BASE32_ENCODE_CHAR[(v2 >>> 1) & 31] + - BASE32_ENCODE_CHAR[31 & ((v2 << 4) | (v3 >>> 4))] + - BASE32_ENCODE_CHAR[31 & ((v3 << 1) | (v4 >>> 7))] + - BASE32_ENCODE_CHAR[(v4 >>> 2) & 31] + - BASE32_ENCODE_CHAR[31 & ((v4 << 3) | (v5 >>> 5))] + - BASE32_ENCODE_CHAR[31 & v5]); - var remain = length - count; - return ( - 1 == remain - ? ((v1 = bytes[i]), - (base32Str += - BASE32_ENCODE_CHAR[v1 >>> 3] + - BASE32_ENCODE_CHAR[(v1 << 2) & 31] + - '======')) - : 2 == remain - ? ((v1 = bytes[i++]), - (v2 = bytes[i]), - (base32Str += - BASE32_ENCODE_CHAR[v1 >>> 3] + - BASE32_ENCODE_CHAR[31 & ((v1 << 2) | (v2 >>> 6))] + - BASE32_ENCODE_CHAR[(v2 >>> 1) & 31] + - BASE32_ENCODE_CHAR[(v2 << 4) & 31] + - '====')) - : 3 == remain - ? ((v1 = bytes[i++]), - (v2 = bytes[i++]), - (v3 = bytes[i]), - (base32Str += - BASE32_ENCODE_CHAR[v1 >>> 3] + - BASE32_ENCODE_CHAR[31 & ((v1 << 2) | (v2 >>> 6))] + - BASE32_ENCODE_CHAR[(v2 >>> 1) & 31] + - BASE32_ENCODE_CHAR[31 & ((v2 << 4) | (v3 >>> 4))] + - BASE32_ENCODE_CHAR[(v3 << 1) & 31] + - '===')) - : 4 == remain && - ((v1 = bytes[i++]), - (v2 = bytes[i++]), - (v3 = bytes[i++]), - (v4 = bytes[i]), - (base32Str += - BASE32_ENCODE_CHAR[v1 >>> 3] + - BASE32_ENCODE_CHAR[31 & ((v1 << 2) | (v2 >>> 6))] + - BASE32_ENCODE_CHAR[(v2 >>> 1) & 31] + - BASE32_ENCODE_CHAR[31 & ((v2 << 4) | (v3 >>> 4))] + - BASE32_ENCODE_CHAR[31 & ((v3 << 1) | (v4 >>> 7))] + - BASE32_ENCODE_CHAR[(v4 >>> 2) & 31] + - BASE32_ENCODE_CHAR[(v4 << 3) & 31] + - '=')), - base32Str - ); - })(input) - : asciiOnly - ? (function encodeAscii(str) { - for ( - var v1, - v2, - v3, - v4, - v5, - base32Str = '', - length = str.length, - i = 0, - count = 5 * parseInt(length / 5); - i < count; - - ) - (v1 = str.charCodeAt(i++)), - (v2 = str.charCodeAt(i++)), - (v3 = str.charCodeAt(i++)), - (v4 = str.charCodeAt(i++)), - (v5 = str.charCodeAt(i++)), - (base32Str += - BASE32_ENCODE_CHAR[v1 >>> 3] + - BASE32_ENCODE_CHAR[31 & ((v1 << 2) | (v2 >>> 6))] + - BASE32_ENCODE_CHAR[(v2 >>> 1) & 31] + - BASE32_ENCODE_CHAR[31 & ((v2 << 4) | (v3 >>> 4))] + - BASE32_ENCODE_CHAR[31 & ((v3 << 1) | (v4 >>> 7))] + - BASE32_ENCODE_CHAR[(v4 >>> 2) & 31] + - BASE32_ENCODE_CHAR[31 & ((v4 << 3) | (v5 >>> 5))] + - BASE32_ENCODE_CHAR[31 & v5]); - var remain = length - count; - return ( - 1 == remain - ? ((v1 = str.charCodeAt(i)), - (base32Str += - BASE32_ENCODE_CHAR[v1 >>> 3] + - BASE32_ENCODE_CHAR[(v1 << 2) & 31] + - '======')) - : 2 == remain - ? ((v1 = str.charCodeAt(i++)), - (v2 = str.charCodeAt(i)), - (base32Str += - BASE32_ENCODE_CHAR[v1 >>> 3] + - BASE32_ENCODE_CHAR[31 & ((v1 << 2) | (v2 >>> 6))] + - BASE32_ENCODE_CHAR[(v2 >>> 1) & 31] + - BASE32_ENCODE_CHAR[(v2 << 4) & 31] + - '====')) - : 3 == remain - ? ((v1 = str.charCodeAt(i++)), - (v2 = str.charCodeAt(i++)), - (v3 = str.charCodeAt(i)), - (base32Str += - BASE32_ENCODE_CHAR[v1 >>> 3] + - BASE32_ENCODE_CHAR[31 & ((v1 << 2) | (v2 >>> 6))] + - BASE32_ENCODE_CHAR[(v2 >>> 1) & 31] + - BASE32_ENCODE_CHAR[31 & ((v2 << 4) | (v3 >>> 4))] + - BASE32_ENCODE_CHAR[(v3 << 1) & 31] + - '===')) - : 4 == remain && - ((v1 = str.charCodeAt(i++)), - (v2 = str.charCodeAt(i++)), - (v3 = str.charCodeAt(i++)), - (v4 = str.charCodeAt(i)), - (base32Str += - BASE32_ENCODE_CHAR[v1 >>> 3] + - BASE32_ENCODE_CHAR[31 & ((v1 << 2) | (v2 >>> 6))] + - BASE32_ENCODE_CHAR[(v2 >>> 1) & 31] + - BASE32_ENCODE_CHAR[31 & ((v2 << 4) | (v3 >>> 4))] + - BASE32_ENCODE_CHAR[31 & ((v3 << 1) | (v4 >>> 7))] + - BASE32_ENCODE_CHAR[(v4 >>> 2) & 31] + - BASE32_ENCODE_CHAR[(v4 << 3) & 31] + - '=')), - base32Str - ); - })(input) - : (function encodeUtf8(str) { - var v1, - v2, - v3, - v4, - v5, - code, - i, - end = !1, - base32Str = '', - index = 0, - start = 0, - length = str.length; - do { - for ( - blocks[0] = blocks[5], - blocks[1] = blocks[6], - blocks[2] = blocks[7], - i = start; - index < length && i < 5; - ++index - ) - (code = str.charCodeAt(index)) < 128 - ? (blocks[i++] = code) - : code < 2048 - ? ((blocks[i++] = 192 | (code >> 6)), - (blocks[i++] = 128 | (63 & code))) - : code < 55296 || code >= 57344 - ? ((blocks[i++] = 224 | (code >> 12)), - (blocks[i++] = 128 | ((code >> 6) & 63)), - (blocks[i++] = 128 | (63 & code))) - : ((code = - 65536 + - (((1023 & code) << 10) | - (1023 & str.charCodeAt(++index)))), - (blocks[i++] = 240 | (code >> 18)), - (blocks[i++] = 128 | ((code >> 12) & 63)), - (blocks[i++] = 128 | ((code >> 6) & 63)), - (blocks[i++] = 128 | (63 & code))); - (start = i - 5), - index == length && ++index, - index > length && i < 6 && (end = !0), - (v1 = blocks[0]), - i > 4 - ? ((v2 = blocks[1]), - (v3 = blocks[2]), - (v4 = blocks[3]), - (v5 = blocks[4]), - (base32Str += - BASE32_ENCODE_CHAR[v1 >>> 3] + - BASE32_ENCODE_CHAR[31 & ((v1 << 2) | (v2 >>> 6))] + - BASE32_ENCODE_CHAR[(v2 >>> 1) & 31] + - BASE32_ENCODE_CHAR[31 & ((v2 << 4) | (v3 >>> 4))] + - BASE32_ENCODE_CHAR[31 & ((v3 << 1) | (v4 >>> 7))] + - BASE32_ENCODE_CHAR[(v4 >>> 2) & 31] + - BASE32_ENCODE_CHAR[31 & ((v4 << 3) | (v5 >>> 5))] + - BASE32_ENCODE_CHAR[31 & v5])) - : 1 == i - ? (base32Str += - BASE32_ENCODE_CHAR[v1 >>> 3] + - BASE32_ENCODE_CHAR[(v1 << 2) & 31] + - '======') - : 2 == i - ? ((v2 = blocks[1]), - (base32Str += - BASE32_ENCODE_CHAR[v1 >>> 3] + - BASE32_ENCODE_CHAR[31 & ((v1 << 2) | (v2 >>> 6))] + - BASE32_ENCODE_CHAR[(v2 >>> 1) & 31] + - BASE32_ENCODE_CHAR[(v2 << 4) & 31] + - '====')) - : 3 == i - ? ((v2 = blocks[1]), - (v3 = blocks[2]), - (base32Str += - BASE32_ENCODE_CHAR[v1 >>> 3] + - BASE32_ENCODE_CHAR[ - 31 & ((v1 << 2) | (v2 >>> 6)) - ] + - BASE32_ENCODE_CHAR[(v2 >>> 1) & 31] + - BASE32_ENCODE_CHAR[ - 31 & ((v2 << 4) | (v3 >>> 4)) - ] + - BASE32_ENCODE_CHAR[(v3 << 1) & 31] + - '===')) - : 4 == i && - ((v2 = blocks[1]), - (v3 = blocks[2]), - (v4 = blocks[3]), - (base32Str += - BASE32_ENCODE_CHAR[v1 >>> 3] + - BASE32_ENCODE_CHAR[ - 31 & ((v1 << 2) | (v2 >>> 6)) - ] + - BASE32_ENCODE_CHAR[(v2 >>> 1) & 31] + - BASE32_ENCODE_CHAR[ - 31 & ((v2 << 4) | (v3 >>> 4)) - ] + - BASE32_ENCODE_CHAR[ - 31 & ((v3 << 1) | (v4 >>> 7)) - ] + - BASE32_ENCODE_CHAR[(v4 >>> 2) & 31] + - BASE32_ENCODE_CHAR[(v4 << 3) & 31] + - '=')); - } while (!end); - return base32Str; - })(input) - ); - }, - decode: decode - }; - root.HI_BASE32_TEST && (exports.toUtf8String = toUtf8String), - !root.HI_BASE32_TEST && NODE_JS - ? (module.exports = exports) - : root && (root.base32 = exports); - })(this); - }.call(exports, __webpack_require__('./node_modules/webpack/buildin/global.js'))); - }, - './node_modules/post-robot/src/clean.js': function node_modulesPostRobotSrcCleanJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_exports__.a = function cleanUpWindow(win) { - var requestPromises = __WEBPACK_IMPORTED_MODULE_0__global__.a.requestPromises.get( - win - ); - if (requestPromises) { - var _iterator = requestPromises, - _isArray = Array.isArray(_iterator), - _i = 0; - for ( - _iterator = _isArray - ? _iterator - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator - ); - ; - - ) { - var _ref; - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - if ((_i = _iterator.next()).done) break; - _ref = _i.value; - } - _ref.reject(new Error('No response from window - cleaned up')); - } - } - __WEBPACK_IMPORTED_MODULE_0__global__.a.popupWindowsByWin && - __WEBPACK_IMPORTED_MODULE_0__global__.a.popupWindowsByWin.delete(win), - __WEBPACK_IMPORTED_MODULE_0__global__.a.remoteWindows && - __WEBPACK_IMPORTED_MODULE_0__global__.a.remoteWindows.delete(win), - __WEBPACK_IMPORTED_MODULE_0__global__.a.requestPromises.delete(win), - __WEBPACK_IMPORTED_MODULE_0__global__.a.methods.delete(win), - __WEBPACK_IMPORTED_MODULE_0__global__.a.readyPromises.delete(win); - }; - var __WEBPACK_IMPORTED_MODULE_0__global__ = __webpack_require__( - './node_modules/post-robot/src/global.js' - ); - }, - './node_modules/post-robot/src/conf/config.js': function node_modulesPostRobotSrcConfConfigJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return CONFIG; - }); - var _ALLOWED_POST_MESSAGE, - __WEBPACK_IMPORTED_MODULE_0__constants__ = __webpack_require__( - './node_modules/post-robot/src/conf/constants.js' - ), - CONFIG = { - ALLOW_POSTMESSAGE_POPUP: - !('__ALLOW_POSTMESSAGE_POPUP__' in window) || - window.__ALLOW_POSTMESSAGE_POPUP__, - LOG_LEVEL: 'info', - BRIDGE_TIMEOUT: 5e3, - ACK_TIMEOUT: -1 !== window.navigator.userAgent.match(/MSIE/i) ? 2e3 : 1e3, - RES_TIMEOUT: 1 / 0, - LOG_TO_PAGE: !1, - ALLOWED_POST_MESSAGE_METHODS: ((_ALLOWED_POST_MESSAGE = {}), - (_ALLOWED_POST_MESSAGE[ - __WEBPACK_IMPORTED_MODULE_0__constants__.a.SEND_STRATEGIES.POST_MESSAGE - ] = !0), - (_ALLOWED_POST_MESSAGE[ - __WEBPACK_IMPORTED_MODULE_0__constants__.a.SEND_STRATEGIES.BRIDGE - ] = !0), - (_ALLOWED_POST_MESSAGE[ - __WEBPACK_IMPORTED_MODULE_0__constants__.a.SEND_STRATEGIES.GLOBAL - ] = !0), - _ALLOWED_POST_MESSAGE) - }; - 0 === - window.location.href.indexOf( - __WEBPACK_IMPORTED_MODULE_0__constants__.a.FILE_PROTOCOL - ) && (CONFIG.ALLOW_POSTMESSAGE_POPUP = !0); - }, - './node_modules/post-robot/src/conf/constants.js': function node_modulesPostRobotSrcConfConstantsJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return CONSTANTS; - }), - __webpack_require__.d(__webpack_exports__, 'b', function() { - return POST_MESSAGE_NAMES_LIST; - }); - var CONSTANTS = { - POST_MESSAGE_TYPE: { - REQUEST: 'postrobot_message_request', - RESPONSE: 'postrobot_message_response', - ACK: 'postrobot_message_ack' - }, - POST_MESSAGE_ACK: { SUCCESS: 'success', ERROR: 'error' }, - POST_MESSAGE_NAMES: { - METHOD: 'postrobot_method', - READY: 'postrobot_ready', - OPEN_TUNNEL: 'postrobot_open_tunnel' - }, - WINDOW_TYPES: { FULLPAGE: 'fullpage', POPUP: 'popup', IFRAME: 'iframe' }, - WINDOW_PROPS: { POSTROBOT: '__postRobot__' }, - SERIALIZATION_TYPES: { - METHOD: 'postrobot_method', - ERROR: 'postrobot_error', - PROMISE: 'postrobot_promise', - ZALGO_PROMISE: 'postrobot_zalgo_promise', - REGEX: 'regex' - }, - SEND_STRATEGIES: { - POST_MESSAGE: 'postrobot_post_message', - BRIDGE: 'postrobot_bridge', - GLOBAL: 'postrobot_global' - }, - MOCK_PROTOCOL: 'mock:', - FILE_PROTOCOL: 'file:', - BRIDGE_NAME_PREFIX: '__postrobot_bridge__', - POSTROBOT_PROXY: '__postrobot_proxy__', - WILDCARD: '*' - }, - POST_MESSAGE_NAMES_LIST = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - CONSTANTS.POST_MESSAGE_NAMES - ).map(function(key) { - return CONSTANTS.POST_MESSAGE_NAMES[key]; - }); - }, - './node_modules/post-robot/src/conf/index.js': function node_modulesPostRobotSrcConfIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - var __WEBPACK_IMPORTED_MODULE_0__config__ = __webpack_require__( - './node_modules/post-robot/src/conf/config.js' - ); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__config__.a; - }); - var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__( - './node_modules/post-robot/src/conf/constants.js' - ); - __webpack_require__.d(__webpack_exports__, 'b', function() { - return __WEBPACK_IMPORTED_MODULE_1__constants__.a; - }), - __webpack_require__.d(__webpack_exports__, 'c', function() { - return __WEBPACK_IMPORTED_MODULE_1__constants__.b; - }); - }, - './node_modules/post-robot/src/drivers/index.js': function node_modulesPostRobotSrcDriversIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - var __WEBPACK_IMPORTED_MODULE_0__receive__ = __webpack_require__( - './node_modules/post-robot/src/drivers/receive/index.js' - ); - __webpack_require__.d(__webpack_exports__, 'd', function() { - return __WEBPACK_IMPORTED_MODULE_0__receive__.a; - }), - __webpack_require__.d(__webpack_exports__, 'f', function() { - return __WEBPACK_IMPORTED_MODULE_0__receive__.b; - }); - var __WEBPACK_IMPORTED_MODULE_1__send__ = __webpack_require__( - './node_modules/post-robot/src/drivers/send/index.js' - ); - __webpack_require__.d(__webpack_exports__, 'g', function() { - return __WEBPACK_IMPORTED_MODULE_1__send__.a; - }); - var __WEBPACK_IMPORTED_MODULE_2__listeners__ = __webpack_require__( - './node_modules/post-robot/src/drivers/listeners.js' - ); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_2__listeners__.a; - }), - __webpack_require__.d(__webpack_exports__, 'b', function() { - return __WEBPACK_IMPORTED_MODULE_2__listeners__.b; - }), - __webpack_require__.d(__webpack_exports__, 'c', function() { - return __WEBPACK_IMPORTED_MODULE_2__listeners__.c; - }), - __webpack_require__.d(__webpack_exports__, 'e', function() { - return __WEBPACK_IMPORTED_MODULE_2__listeners__.g; - }); - }, - './node_modules/post-robot/src/drivers/listeners.js': function node_modulesPostRobotSrcDriversListenersJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function getRequestListener(_ref) { - var name = _ref.name, - win = _ref.win, - domain = _ref.domain; - if ( - (win === __WEBPACK_IMPORTED_MODULE_5__conf__.b.WILDCARD && (win = null), - domain === __WEBPACK_IMPORTED_MODULE_5__conf__.b.WILDCARD && (domain = null), - !name) - ) - throw new Error('Name required to get request listener'); - var nameListeners = - __WEBPACK_IMPORTED_MODULE_3__global__.a.requestListeners[name]; - if (nameListeners) - for ( - var _arr = [win, __WEBPACK_IMPORTED_MODULE_3__global__.a.WINDOW_WILDCARD], - _i = 0; - _i < _arr.length; - _i++ - ) { - var winQualifier = _arr[_i], - winListeners = winQualifier && nameListeners.get(winQualifier); - if (winListeners) { - if (domain && 'string' == typeof domain) { - if (winListeners[domain]) return winListeners[domain]; - if (winListeners[__DOMAIN_REGEX__]) { - var _iterator = winListeners[__DOMAIN_REGEX__], - _isArray = Array.isArray(_iterator), - _i2 = 0; - for ( - _iterator = _isArray - ? _iterator - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator - ); - ; - - ) { - var _ref3; - if (_isArray) { - if (_i2 >= _iterator.length) break; - _ref3 = _iterator[_i2++]; - } else { - if ((_i2 = _iterator.next()).done) break; - _ref3 = _i2.value; - } - var _ref4 = _ref3, - regex = _ref4.regex, - listener = _ref4.listener; - if ( - Object(__WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.v)( - regex, - domain - ) - ) - return listener; - } - } - } - if (winListeners[__WEBPACK_IMPORTED_MODULE_5__conf__.b.WILDCARD]) - return winListeners[__WEBPACK_IMPORTED_MODULE_5__conf__.b.WILDCARD]; - } - } - } - (__webpack_exports__.b = function addResponseListener(hash, listener) { - __WEBPACK_IMPORTED_MODULE_3__global__.a.responseListeners[hash] = listener; - }), - (__webpack_exports__.e = function getResponseListener(hash) { - return __WEBPACK_IMPORTED_MODULE_3__global__.a.responseListeners[hash]; - }), - (__webpack_exports__.c = function deleteResponseListener(hash) { - delete __WEBPACK_IMPORTED_MODULE_3__global__.a.responseListeners[hash]; - }), - (__webpack_exports__.g = function markResponseListenerErrored(hash) { - __WEBPACK_IMPORTED_MODULE_3__global__.a.erroredResponseListeners[hash] = !0; - }), - (__webpack_exports__.f = function isResponseListenerErrored(hash) { - return Boolean( - __WEBPACK_IMPORTED_MODULE_3__global__.a.erroredResponseListeners[hash] - ); - }), - (__webpack_exports__.d = getRequestListener), - (__webpack_exports__.a = function addRequestListener(_ref5, listener) { - var name = _ref5.name, - win = _ref5.win, - domain = _ref5.domain; - if (!name || 'string' != typeof name) - throw new Error('Name required to add request listener'); - if (Array.isArray(win)) { - var listenersCollection = [], - _iterator2 = win, - _isArray2 = Array.isArray(_iterator2), - _i3 = 0; - for ( - _iterator2 = _isArray2 - ? _iterator2 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator2 - ); - ; - - ) { - var _ref6; - if (_isArray2) { - if (_i3 >= _iterator2.length) break; - _ref6 = _iterator2[_i3++]; - } else { - if ((_i3 = _iterator2.next()).done) break; - _ref6 = _i3.value; - } - var item = _ref6; - listenersCollection.push( - addRequestListener({ name: name, domain: domain, win: item }, listener) - ); - } - return { - cancel: function cancel() { - var _iterator3 = listenersCollection, - _isArray3 = Array.isArray(_iterator3), - _i4 = 0; - for ( - _iterator3 = _isArray3 - ? _iterator3 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator3 - ); - ; - - ) { - var _ref7; - if (_isArray3) { - if (_i4 >= _iterator3.length) break; - _ref7 = _iterator3[_i4++]; - } else { - if ((_i4 = _iterator3.next()).done) break; - _ref7 = _i4.value; - } - _ref7.cancel(); - } - } - }; - } - if (Array.isArray(domain)) { - var _listenersCollection = [], - _iterator4 = domain, - _isArray4 = Array.isArray(_iterator4), - _i5 = 0; - for ( - _iterator4 = _isArray4 - ? _iterator4 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator4 - ); - ; - - ) { - var _ref8; - if (_isArray4) { - if (_i5 >= _iterator4.length) break; - _ref8 = _iterator4[_i5++]; - } else { - if ((_i5 = _iterator4.next()).done) break; - _ref8 = _i5.value; - } - var _item = _ref8; - _listenersCollection.push( - addRequestListener({ name: name, win: win, domain: _item }, listener) - ); - } - return { - cancel: function cancel() { - var _iterator5 = _listenersCollection, - _isArray5 = Array.isArray(_iterator5), - _i6 = 0; - for ( - _iterator5 = _isArray5 - ? _iterator5 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator5 - ); - ; - - ) { - var _ref9; - if (_isArray5) { - if (_i6 >= _iterator5.length) break; - _ref9 = _iterator5[_i6++]; - } else { - if ((_i6 = _iterator5.next()).done) break; - _ref9 = _i6.value; - } - _ref9.cancel(); - } - } - }; - } - var existingListener = getRequestListener({ - name: name, - win: win, - domain: domain - }); - if ( - ((win && win !== __WEBPACK_IMPORTED_MODULE_5__conf__.b.WILDCARD) || - (win = __WEBPACK_IMPORTED_MODULE_3__global__.a.WINDOW_WILDCARD), - (domain = domain || __WEBPACK_IMPORTED_MODULE_5__conf__.b.WILDCARD), - existingListener) - ) - throw win && domain - ? new Error( - 'Request listener already exists for ' + - name + - ' on domain ' + - domain.toString() + - ' for ' + - (win === __WEBPACK_IMPORTED_MODULE_3__global__.a.WINDOW_WILDCARD - ? 'wildcard' - : 'specified') + - ' window' - ) - : win - ? new Error( - 'Request listener already exists for ' + - name + - ' for ' + - (win === __WEBPACK_IMPORTED_MODULE_3__global__.a.WINDOW_WILDCARD - ? 'wildcard' - : 'specified') + - ' window' - ) - : domain - ? new Error( - 'Request listener already exists for ' + - name + - ' on domain ' + - domain.toString() - ) - : new Error('Request listener already exists for ' + name); - var requestListeners = __WEBPACK_IMPORTED_MODULE_3__global__.a.requestListeners, - nameListeners = requestListeners[name]; - nameListeners || - ((nameListeners = new __WEBPACK_IMPORTED_MODULE_1_cross_domain_safe_weakmap_src__.a()), - (requestListeners[name] = nameListeners)); - var winListeners = nameListeners.get(win); - winListeners || ((winListeners = {}), nameListeners.set(win, winListeners)); - var strDomain = domain.toString(), - regexListeners = winListeners[__DOMAIN_REGEX__], - regexListener = void 0; - return ( - Object(__WEBPACK_IMPORTED_MODULE_4__lib__.e)(domain) - ? (regexListeners || - ((regexListeners = []), - (winListeners[__DOMAIN_REGEX__] = regexListeners)), - (regexListener = { regex: domain, listener: listener }), - regexListeners.push(regexListener)) - : (winListeners[strDomain] = listener), - { - cancel: function cancel() { - winListeners && - (delete winListeners[strDomain], - win && - 0 === - __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - winListeners - ).length && - nameListeners.delete(win), - regexListener && - regexListeners.splice(regexListeners.indexOf(regexListener, 1))); - } - } - ); - }); - var __WEBPACK_IMPORTED_MODULE_1_cross_domain_safe_weakmap_src__ = (__webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ), - __webpack_require__('./node_modules/cross-domain-safe-weakmap/src/index.js')), - __WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_3__global__ = __webpack_require__( - './node_modules/post-robot/src/global.js' - ), - __WEBPACK_IMPORTED_MODULE_4__lib__ = __webpack_require__( - './node_modules/post-robot/src/lib/index.js' - ), - __WEBPACK_IMPORTED_MODULE_5__conf__ = __webpack_require__( - './node_modules/post-robot/src/conf/index.js' - ); - (__WEBPACK_IMPORTED_MODULE_3__global__.a.responseListeners = - __WEBPACK_IMPORTED_MODULE_3__global__.a.responseListeners || {}), - (__WEBPACK_IMPORTED_MODULE_3__global__.a.requestListeners = - __WEBPACK_IMPORTED_MODULE_3__global__.a.requestListeners || {}), - (__WEBPACK_IMPORTED_MODULE_3__global__.a.WINDOW_WILDCARD = - __WEBPACK_IMPORTED_MODULE_3__global__.a.WINDOW_WILDCARD || new function() {}()), - (__WEBPACK_IMPORTED_MODULE_3__global__.a.erroredResponseListeners = - __WEBPACK_IMPORTED_MODULE_3__global__.a.erroredResponseListeners || {}); - var __DOMAIN_REGEX__ = '__domain_regex__'; - }, - './node_modules/post-robot/src/drivers/receive/index.js': function node_modulesPostRobotSrcDriversReceiveIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function receiveMessage(event) { - if (!window || window.closed) - throw new Error('Message recieved in closed window'); - try { - if (!event.source) return; - } catch (err) { - return; - } - var source = event.source, - origin = event.origin, - message = (function parseMessage(message) { - var parsedMessage = void 0; - try { - parsedMessage = Object(__WEBPACK_IMPORTED_MODULE_2__lib__.f)(message); - } catch (err) { - return; - } - if ( - parsedMessage && - 'object' === - (void 0 === parsedMessage ? 'undefined' : _typeof(parsedMessage)) && - null !== parsedMessage && - (parsedMessage = - parsedMessage[ - __WEBPACK_IMPORTED_MODULE_1__conf__.b.WINDOW_PROPS.POSTROBOT - ]) && - 'object' === - (void 0 === parsedMessage ? 'undefined' : _typeof(parsedMessage)) && - null !== parsedMessage && - parsedMessage.type && - 'string' == typeof parsedMessage.type && - __WEBPACK_IMPORTED_MODULE_4__types__.a[parsedMessage.type] - ) - return parsedMessage; - })(event.data); - if (message) { - if (!message.sourceDomain || 'string' != typeof message.sourceDomain) - throw new Error('Expected message to have sourceDomain'); - if ( - ((0 !== - message.sourceDomain.indexOf( - __WEBPACK_IMPORTED_MODULE_1__conf__.b.MOCK_PROTOCOL - ) && - 0 !== - message.sourceDomain.indexOf( - __WEBPACK_IMPORTED_MODULE_1__conf__.b.FILE_PROTOCOL - )) || - (origin = message.sourceDomain), - -1 === - __WEBPACK_IMPORTED_MODULE_3__global__.a.receivedMessages.indexOf( - message.id - )) - ) { - __WEBPACK_IMPORTED_MODULE_3__global__.a.receivedMessages.push(message.id); - var level; - (level = - -1 !== __WEBPACK_IMPORTED_MODULE_1__conf__.c.indexOf(message.name) || - message.type === __WEBPACK_IMPORTED_MODULE_1__conf__.b.POST_MESSAGE_TYPE.ACK - ? 'debug' - : 'error' === message.ack ? 'error' : 'info'), - __WEBPACK_IMPORTED_MODULE_2__lib__.i.logLevel(level, [ - '\n\n\t', - '#receive', - message.type.replace(/^postrobot_message_/, ''), - '::', - message.name, - '::', - origin, - '\n\n', - message - ]), - Object(__WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.t)(source) - ? __WEBPACK_IMPORTED_MODULE_2__lib__.i.debug( - 'Source window is closed - can not send ' + - message.type + - ' ' + - message.name - ) - : (message.data && - (message.data = Object(__WEBPACK_IMPORTED_MODULE_2__lib__.b)( - source, - origin, - message.data - )), - __WEBPACK_IMPORTED_MODULE_4__types__.a[message.type]( - source, - origin, - message - )); - } - } - } - function messageListener(event) { - try { - event.source; - } catch (err) { - return; - } - receiveMessage({ - source: event.source || event.sourceElement, - origin: event.origin || (event.originalEvent && event.originalEvent.origin), - data: event.data - }); - } - (__webpack_exports__.b = messageListener), - (__webpack_exports__.a = function listenForMessages() { - Object(__WEBPACK_IMPORTED_MODULE_2__lib__.a)( - window, - 'message', - messageListener - ); - }); - var __WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1__conf__ = __webpack_require__( - './node_modules/post-robot/src/conf/index.js' - ), - __WEBPACK_IMPORTED_MODULE_2__lib__ = __webpack_require__( - './node_modules/post-robot/src/lib/index.js' - ), - __WEBPACK_IMPORTED_MODULE_3__global__ = __webpack_require__( - './node_modules/post-robot/src/global.js' - ), - __WEBPACK_IMPORTED_MODULE_4__types__ = __webpack_require__( - './node_modules/post-robot/src/drivers/receive/types.js' - ), - _typeof = - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - 'symbol' == - __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_symbol_iterator___default.a - ) - ? function(obj) { - return void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - } - : function(obj) { - return obj && - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj.constructor === - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj !== - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a - .prototype - ? 'symbol' - : void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - }; - __WEBPACK_IMPORTED_MODULE_3__global__.a.receivedMessages = - __WEBPACK_IMPORTED_MODULE_3__global__.a.receivedMessages || []; - }, - './node_modules/post-robot/src/drivers/receive/types.js': function node_modulesPostRobotSrcDriversReceiveTypesJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return RECEIVE_MESSAGE_TYPES; - }); - var _RECEIVE_MESSAGE_TYPE, - __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__ = __webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_2__conf__ = __webpack_require__( - './node_modules/post-robot/src/conf/index.js' - ), - __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__( - './node_modules/post-robot/src/lib/index.js' - ), - __WEBPACK_IMPORTED_MODULE_4__send__ = __webpack_require__( - './node_modules/post-robot/src/drivers/send/index.js' - ), - __WEBPACK_IMPORTED_MODULE_5__listeners__ = __webpack_require__( - './node_modules/post-robot/src/drivers/listeners.js' - ), - _extends = - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_object_assign___default.a || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && - (target[key] = source[key]); - } - return target; - }, - RECEIVE_MESSAGE_TYPES = (((_RECEIVE_MESSAGE_TYPE = {})[ - __WEBPACK_IMPORTED_MODULE_2__conf__.b.POST_MESSAGE_TYPE.ACK - ] = function(source, origin, message) { - if (!Object(__WEBPACK_IMPORTED_MODULE_5__listeners__.f)(message.hash)) { - var options = Object(__WEBPACK_IMPORTED_MODULE_5__listeners__.e)( - message.hash - ); - if (!options) - throw new Error( - 'No handler found for post message ack for message: ' + - message.name + - ' from ' + - origin + - ' in ' + - window.location.protocol + - '//' + - window.location.host + - window.location.pathname - ); - if ( - !Object(__WEBPACK_IMPORTED_MODULE_1_cross_domain_utils_src__.v)( - options.domain, - origin - ) - ) - throw new Error( - 'Ack origin ' + - origin + - ' does not match domain ' + - options.domain.toString() - ); - options.ack = !0; - } - }), - (_RECEIVE_MESSAGE_TYPE[ - __WEBPACK_IMPORTED_MODULE_2__conf__.b.POST_MESSAGE_TYPE.REQUEST - ] = function(source, origin, message) { - function respond(data) { - return message.fireAndForget || - Object(__WEBPACK_IMPORTED_MODULE_1_cross_domain_utils_src__.t)(source) - ? __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__.a.resolve() - : Object(__WEBPACK_IMPORTED_MODULE_4__send__.a)( - source, - _extends( - { - target: message.originalSource, - hash: message.hash, - name: message.name - }, - data - ), - origin - ); - } - var options = Object(__WEBPACK_IMPORTED_MODULE_5__listeners__.d)({ - name: message.name, - win: source, - domain: origin - }); - return __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__.a - .all([ - respond({ - type: __WEBPACK_IMPORTED_MODULE_2__conf__.b.POST_MESSAGE_TYPE.ACK - }), - __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__.a - .try(function() { - if (!options) - throw new Error( - 'No handler found for post message: ' + - message.name + - ' from ' + - origin + - ' in ' + - window.location.protocol + - '//' + - window.location.host + - window.location.pathname - ); - if ( - !Object(__WEBPACK_IMPORTED_MODULE_1_cross_domain_utils_src__.v)( - options.domain, - origin - ) - ) - throw new Error( - 'Request origin ' + - origin + - ' does not match domain ' + - options.domain.toString() - ); - var data = message.data; - return options.handler({ source: source, origin: origin, data: data }); - }) - .then( - function(data) { - return respond({ - type: - __WEBPACK_IMPORTED_MODULE_2__conf__.b.POST_MESSAGE_TYPE.RESPONSE, - ack: __WEBPACK_IMPORTED_MODULE_2__conf__.b.POST_MESSAGE_ACK.SUCCESS, - data: data - }); - }, - function(err) { - var error = Object(__WEBPACK_IMPORTED_MODULE_3__lib__.o)(err).replace( - /^Error: /, - '' - ); - return respond({ - type: - __WEBPACK_IMPORTED_MODULE_2__conf__.b.POST_MESSAGE_TYPE.RESPONSE, - ack: __WEBPACK_IMPORTED_MODULE_2__conf__.b.POST_MESSAGE_ACK.ERROR, - error: error - }); - } - ) - ]) - .then(__WEBPACK_IMPORTED_MODULE_3__lib__.j) - .catch(function(err) { - if (options && options.handleError) return options.handleError(err); - __WEBPACK_IMPORTED_MODULE_3__lib__.i.error( - Object(__WEBPACK_IMPORTED_MODULE_3__lib__.o)(err) - ); - }); - }), - (_RECEIVE_MESSAGE_TYPE[ - __WEBPACK_IMPORTED_MODULE_2__conf__.b.POST_MESSAGE_TYPE.RESPONSE - ] = function(source, origin, message) { - if (!Object(__WEBPACK_IMPORTED_MODULE_5__listeners__.f)(message.hash)) { - var options = Object(__WEBPACK_IMPORTED_MODULE_5__listeners__.e)( - message.hash - ); - if (!options) - throw new Error( - 'No handler found for post message response for message: ' + - message.name + - ' from ' + - origin + - ' in ' + - window.location.protocol + - '//' + - window.location.host + - window.location.pathname - ); - if ( - !Object(__WEBPACK_IMPORTED_MODULE_1_cross_domain_utils_src__.v)( - options.domain, - origin - ) - ) - throw new Error( - 'Response origin ' + origin + ' does not match domain ' + options.domain - ); - if ( - (Object(__WEBPACK_IMPORTED_MODULE_5__listeners__.c)(message.hash), - message.ack === - __WEBPACK_IMPORTED_MODULE_2__conf__.b.POST_MESSAGE_ACK.ERROR) - ) - return options.respond(new Error(message.error), null); - if ( - message.ack === - __WEBPACK_IMPORTED_MODULE_2__conf__.b.POST_MESSAGE_ACK.SUCCESS - ) { - var data = message.data || message.response; - return options.respond(null, { - source: source, - origin: origin, - data: data - }); - } - } - }), - _RECEIVE_MESSAGE_TYPE); - }, - './node_modules/post-robot/src/drivers/send/index.js': function node_modulesPostRobotSrcDriversSendIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_exports__.a = function sendMessage(win, message, domain) { - return __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a.try(function() { - var _jsonStringify, level; - if ( - ((message = (function buildMessage(win, message) { - var options = - arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, - id = Object(__WEBPACK_IMPORTED_MODULE_3__lib__.p)(), - type = Object(__WEBPACK_IMPORTED_MODULE_3__lib__.c)(), - sourceDomain = Object( - __WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.f - )(window); - return _extends({}, message, options, { - sourceDomain: sourceDomain, - id: message.id || id, - windowType: type - }); - })(win, message, { - data: Object(__WEBPACK_IMPORTED_MODULE_3__lib__.n)( - win, - domain, - message.data - ), - domain: domain - })), - (level = - -1 !== __WEBPACK_IMPORTED_MODULE_2__conf__.c.indexOf(message.name) || - message.type === __WEBPACK_IMPORTED_MODULE_2__conf__.b.POST_MESSAGE_TYPE.ACK - ? 'debug' - : 'error' === message.ack ? 'error' : 'info'), - __WEBPACK_IMPORTED_MODULE_3__lib__.i.logLevel(level, [ - '\n\n\t', - '#send', - message.type.replace(/^postrobot_message_/, ''), - '::', - message.name, - '::', - domain || __WEBPACK_IMPORTED_MODULE_2__conf__.b.WILDCARD, - '\n\n', - message - ]), - win === window) - ) - throw new Error('Attemping to send message to self'); - if (Object(__WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.t)(win)) - throw new Error('Window is closed'); - __WEBPACK_IMPORTED_MODULE_3__lib__.i.debug( - 'Running send message strategies', - message - ); - var messages = [], - serializedMessage = Object(__WEBPACK_IMPORTED_MODULE_3__lib__.g)( - (((_jsonStringify = {})[ - __WEBPACK_IMPORTED_MODULE_2__conf__.b.WINDOW_PROPS.POSTROBOT - ] = message), - _jsonStringify), - null, - 2 - ); - return __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a - .map( - __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - __WEBPACK_IMPORTED_MODULE_4__strategies__.a - ), - function(strategyName) { - return __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a - .try(function() { - if ( - !__WEBPACK_IMPORTED_MODULE_2__conf__.a.ALLOWED_POST_MESSAGE_METHODS[ - strategyName - ] - ) - throw new Error('Strategy disallowed: ' + strategyName); - return __WEBPACK_IMPORTED_MODULE_4__strategies__.a[strategyName]( - win, - serializedMessage, - domain - ); - }) - .then( - function() { - return messages.push(strategyName + ': success'), !0; - }, - function(err) { - return ( - messages.push( - strategyName + - ': ' + - Object(__WEBPACK_IMPORTED_MODULE_3__lib__.o)(err) + - '\n' - ), - !1 - ); - } - ); - } - ) - .then(function(results) { - var success = results.some(Boolean), - status = - message.type + - ' ' + - message.name + - ' ' + - (success ? 'success' : 'error') + - ':\n - ' + - messages.join('\n - ') + - '\n'; - if ((__WEBPACK_IMPORTED_MODULE_3__lib__.i.debug(status), !success)) - throw new Error(status); - }); - }); - }; - var __WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__ = __webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_2__conf__ = __webpack_require__( - './node_modules/post-robot/src/conf/index.js' - ), - __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__( - './node_modules/post-robot/src/lib/index.js' - ), - __WEBPACK_IMPORTED_MODULE_4__strategies__ = __webpack_require__( - './node_modules/post-robot/src/drivers/send/strategies.js' - ), - _extends = - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_object_assign___default.a || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && - (target[key] = source[key]); - } - return target; - }; - }, - './node_modules/post-robot/src/drivers/send/strategies.js': function node_modulesPostRobotSrcDriversSendStrategiesJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return SEND_MESSAGE_STRATEGIES; - }); - var __WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1__conf__ = __webpack_require__( - './node_modules/post-robot/src/conf/index.js' - ), - SEND_MESSAGE_STRATEGIES = {}; - SEND_MESSAGE_STRATEGIES[ - __WEBPACK_IMPORTED_MODULE_1__conf__.b.SEND_STRATEGIES.POST_MESSAGE - ] = function(win, serializedMessage, domain) { - (Array.isArray(domain) - ? domain - : domain ? [domain] : [__WEBPACK_IMPORTED_MODULE_1__conf__.b.WILDCARD] - ) - .map(function(dom) { - if (0 === dom.indexOf(__WEBPACK_IMPORTED_MODULE_1__conf__.b.MOCK_PROTOCOL)) { - if ( - window.location.protocol === - __WEBPACK_IMPORTED_MODULE_1__conf__.b.FILE_PROTOCOL - ) - return __WEBPACK_IMPORTED_MODULE_1__conf__.b.WILDCARD; - if (!Object(__WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.l)(win)) - throw new Error( - 'Attempting to send messsage to mock domain ' + - dom + - ', but window is actually cross-domain' - ); - return Object(__WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.b)(win); - } - return 0 === dom.indexOf(__WEBPACK_IMPORTED_MODULE_1__conf__.b.FILE_PROTOCOL) - ? __WEBPACK_IMPORTED_MODULE_1__conf__.b.WILDCARD - : dom; - }) - .forEach(function(dom) { - return win.postMessage(serializedMessage, dom); - }); - }; - }, - './node_modules/post-robot/src/global.js': function node_modulesPostRobotSrcGlobalJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return global; - }); - var __WEBPACK_IMPORTED_MODULE_0__conf__ = __webpack_require__( - './node_modules/post-robot/src/conf/index.js' - ), - global = (window[__WEBPACK_IMPORTED_MODULE_0__conf__.b.WINDOW_PROPS.POSTROBOT] = - window[__WEBPACK_IMPORTED_MODULE_0__conf__.b.WINDOW_PROPS.POSTROBOT] || {}); - global.registerSelf = function() {}; - }, - './node_modules/post-robot/src/index.js': function node_modulesPostRobotSrcIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - Object.defineProperty(__webpack_exports__, '__esModule', { value: !0 }); - var __WEBPACK_IMPORTED_MODULE_0__interface__ = __webpack_require__( - './node_modules/post-robot/src/interface.js' - ); - __webpack_require__.d(__webpack_exports__, 'cleanUpWindow', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.cleanUpWindow; - }), - __webpack_require__.d(__webpack_exports__, 'init', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.init; - }), - __webpack_require__.d(__webpack_exports__, 'bridge', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.bridge; - }), - __webpack_require__.d(__webpack_exports__, 'Promise', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.Promise; - }), - __webpack_require__.d(__webpack_exports__, 'parent', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.parent; - }), - __webpack_require__.d(__webpack_exports__, 'send', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.send; - }), - __webpack_require__.d(__webpack_exports__, 'request', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.request; - }), - __webpack_require__.d(__webpack_exports__, 'sendToParent', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.sendToParent; - }), - __webpack_require__.d(__webpack_exports__, 'client', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.client; - }), - __webpack_require__.d(__webpack_exports__, 'on', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.on; - }), - __webpack_require__.d(__webpack_exports__, 'listen', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.listen; - }), - __webpack_require__.d(__webpack_exports__, 'once', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.once; - }), - __webpack_require__.d(__webpack_exports__, 'listener', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.listener; - }), - __webpack_require__.d(__webpack_exports__, 'CONFIG', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.CONFIG; - }), - __webpack_require__.d(__webpack_exports__, 'CONSTANTS', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.CONSTANTS; - }), - __webpack_require__.d(__webpack_exports__, 'disable', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.disable; - }), - (__webpack_exports__.default = __WEBPACK_IMPORTED_MODULE_0__interface__); - }, - './node_modules/post-robot/src/interface.js': function node_modulesPostRobotSrcInterfaceJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function init() { - __WEBPACK_IMPORTED_MODULE_2__global__.a.initialized || - (Object(__WEBPACK_IMPORTED_MODULE_1__drivers__.d)(), - Object(__WEBPACK_IMPORTED_MODULE_0__lib__.d)(), - Object(__WEBPACK_IMPORTED_MODULE_0__lib__.h)()), - (__WEBPACK_IMPORTED_MODULE_2__global__.a.initialized = !0); - } - Object.defineProperty(__webpack_exports__, '__esModule', { value: !0 }), - (__webpack_exports__.init = init), - __webpack_require__.d(__webpack_exports__, 'bridge', function() { - return bridge; - }); - var __WEBPACK_IMPORTED_MODULE_0__lib__ = __webpack_require__( - './node_modules/post-robot/src/lib/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1__drivers__ = __webpack_require__( - './node_modules/post-robot/src/drivers/index.js' - ), - __WEBPACK_IMPORTED_MODULE_2__global__ = __webpack_require__( - './node_modules/post-robot/src/global.js' - ), - __WEBPACK_IMPORTED_MODULE_3__clean__ = __webpack_require__( - './node_modules/post-robot/src/clean.js' - ); - __webpack_require__.d(__webpack_exports__, 'cleanUpWindow', function() { - return __WEBPACK_IMPORTED_MODULE_3__clean__.a; - }); - var __WEBPACK_IMPORTED_MODULE_4__public__ = __webpack_require__( - './node_modules/post-robot/src/public/index.js' - ); - __webpack_require__.d(__webpack_exports__, 'parent', function() { - return __WEBPACK_IMPORTED_MODULE_4__public__.i; - }), - __webpack_require__.d(__webpack_exports__, 'send', function() { - return __WEBPACK_IMPORTED_MODULE_4__public__.k; - }), - __webpack_require__.d(__webpack_exports__, 'request', function() { - return __WEBPACK_IMPORTED_MODULE_4__public__.j; - }), - __webpack_require__.d(__webpack_exports__, 'sendToParent', function() { - return __WEBPACK_IMPORTED_MODULE_4__public__.l; - }), - __webpack_require__.d(__webpack_exports__, 'client', function() { - return __WEBPACK_IMPORTED_MODULE_4__public__.c; - }), - __webpack_require__.d(__webpack_exports__, 'on', function() { - return __WEBPACK_IMPORTED_MODULE_4__public__.g; - }), - __webpack_require__.d(__webpack_exports__, 'listen', function() { - return __WEBPACK_IMPORTED_MODULE_4__public__.e; - }), - __webpack_require__.d(__webpack_exports__, 'once', function() { - return __WEBPACK_IMPORTED_MODULE_4__public__.h; - }), - __webpack_require__.d(__webpack_exports__, 'listener', function() { - return __WEBPACK_IMPORTED_MODULE_4__public__.f; - }), - __webpack_require__.d(__webpack_exports__, 'CONFIG', function() { - return __WEBPACK_IMPORTED_MODULE_4__public__.a; - }), - __webpack_require__.d(__webpack_exports__, 'CONSTANTS', function() { - return __WEBPACK_IMPORTED_MODULE_4__public__.b; - }), - __webpack_require__.d(__webpack_exports__, 'disable', function() { - return __WEBPACK_IMPORTED_MODULE_4__public__.d; - }); - var __WEBPACK_IMPORTED_MODULE_5_zalgo_promise_src__ = __webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ); - __webpack_require__.d(__webpack_exports__, 'Promise', function() { - return __WEBPACK_IMPORTED_MODULE_5_zalgo_promise_src__.a; - }), - init(); - var bridge = null; - }, - './node_modules/post-robot/src/lib/index.js': function node_modulesPostRobotSrcLibIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - var __WEBPACK_IMPORTED_MODULE_0__util__ = __webpack_require__( - './node_modules/post-robot/src/lib/util.js' - ); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__util__.a; - }), - __webpack_require__.d(__webpack_exports__, 'c', function() { - return __WEBPACK_IMPORTED_MODULE_0__util__.b; - }), - __webpack_require__.d(__webpack_exports__, 'e', function() { - return __WEBPACK_IMPORTED_MODULE_0__util__.c; - }), - __webpack_require__.d(__webpack_exports__, 'f', function() { - return __WEBPACK_IMPORTED_MODULE_0__util__.d; - }), - __webpack_require__.d(__webpack_exports__, 'g', function() { - return __WEBPACK_IMPORTED_MODULE_0__util__.e; - }), - __webpack_require__.d(__webpack_exports__, 'j', function() { - return __WEBPACK_IMPORTED_MODULE_0__util__.f; - }), - __webpack_require__.d(__webpack_exports__, 'l', function() { - return __WEBPACK_IMPORTED_MODULE_0__util__.g; - }), - __webpack_require__.d(__webpack_exports__, 'm', function() { - return __WEBPACK_IMPORTED_MODULE_0__util__.i; - }), - __webpack_require__.d(__webpack_exports__, 'o', function() { - return __WEBPACK_IMPORTED_MODULE_0__util__.j; - }), - __webpack_require__.d(__webpack_exports__, 'p', function() { - return __WEBPACK_IMPORTED_MODULE_0__util__.k; - }); - var __WEBPACK_IMPORTED_MODULE_1__log__ = __webpack_require__( - './node_modules/post-robot/src/lib/log.js' - ); - __webpack_require__.d(__webpack_exports__, 'i', function() { - return __WEBPACK_IMPORTED_MODULE_1__log__.a; - }); - var __WEBPACK_IMPORTED_MODULE_2__serialize__ = __webpack_require__( - './node_modules/post-robot/src/lib/serialize.js' - ); - __webpack_require__.d(__webpack_exports__, 'b', function() { - return __WEBPACK_IMPORTED_MODULE_2__serialize__.a; - }), - __webpack_require__.d(__webpack_exports__, 'h', function() { - return __WEBPACK_IMPORTED_MODULE_2__serialize__.b; - }), - __webpack_require__.d(__webpack_exports__, 'n', function() { - return __WEBPACK_IMPORTED_MODULE_2__serialize__.c; - }); - var __WEBPACK_IMPORTED_MODULE_3__ready__ = __webpack_require__( - './node_modules/post-robot/src/lib/ready.js' - ); - __webpack_require__.d(__webpack_exports__, 'd', function() { - return __WEBPACK_IMPORTED_MODULE_3__ready__.a; - }), - __webpack_require__.d(__webpack_exports__, 'k', function() { - return __WEBPACK_IMPORTED_MODULE_3__ready__.b; - }); - }, - './node_modules/post-robot/src/lib/log.js': function node_modulesPostRobotSrcLibLogJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return log; - }); - var __WEBPACK_IMPORTED_MODULE_0__util__ = __webpack_require__( - './node_modules/post-robot/src/lib/util.js' - ), - __WEBPACK_IMPORTED_MODULE_1__conf__ = __webpack_require__( - './node_modules/post-robot/src/conf/index.js' - ), - _typeof = - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - 'symbol' == - __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_symbol_iterator___default.a - ) - ? function(obj) { - return void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - } - : function(obj) { - return obj && - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj.constructor === - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj !== - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a - .prototype - ? 'symbol' - : void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - }, - LOG_LEVELS = ['debug', 'info', 'warn', 'error']; - Function.prototype.bind && - window.console && - 'object' === _typeof(console.log) && - ['log', 'info', 'warn', 'error'].forEach(function(method) { - console[method] = this.bind(console[method], console); - }, Function.prototype.call); - var log = { - clearLogs: function clearLogs() { - if ( - (window.console && window.console.clear && window.console.clear(), - __WEBPACK_IMPORTED_MODULE_1__conf__.a.LOG_TO_PAGE) - ) { - var container = document.getElementById('postRobotLogs'); - container && - container.parentNode && - container.parentNode.removeChild(container); - } - }, - writeToPage: function writeToPage(level, args) { - setTimeout(function() { - var container = document.getElementById('postRobotLogs'); - container || - (((container = document.createElement('div')).id = 'postRobotLogs'), - (container.style.cssText = - 'width: 800px; font-family: monospace; white-space: pre-wrap;'), - document.body && document.body.appendChild(container)); - var el = document.createElement('div'), - date = new Date().toString().split(' ')[4], - payload = Array.prototype.slice - .call(args) - .map(function(item) { - if ('string' == typeof item) return item; - if (!item) return Object.prototype.toString.call(item); - var json = void 0; - try { - json = Object(__WEBPACK_IMPORTED_MODULE_0__util__.e)(item, null, 2); - } catch (e) { - json = '[object]'; - } - return '\n\n' + json + '\n\n'; - }) - .join(' '), - msg = date + ' ' + level + ' ' + payload; - el.innerHTML = msg; - var color = { - log: '#ddd', - warn: 'orange', - error: 'red', - info: 'blue', - debug: '#aaa' - }[level]; - (el.style.cssText = 'margin-top: 10px; color: ' + color + ';'), - container.childNodes.length - ? container.insertBefore(el, container.childNodes[0]) - : container.appendChild(el); - }); - }, - logLevel: function logLevel(level, args) { - setTimeout(function() { - try { - var logLevel = - window.LOG_LEVEL || __WEBPACK_IMPORTED_MODULE_1__conf__.a.LOG_LEVEL; - if (LOG_LEVELS.indexOf(level) < LOG_LEVELS.indexOf(logLevel)) return; - if ( - ((args = Array.prototype.slice.call(args)).unshift( - '' + window.location.host + window.location.pathname - ), - args.unshift('::'), - args.unshift( - '' + Object(__WEBPACK_IMPORTED_MODULE_0__util__.b)().toLowerCase() - ), - args.unshift('[post-robot]'), - __WEBPACK_IMPORTED_MODULE_1__conf__.a.LOG_TO_PAGE && - log.writeToPage(level, args), - !window.console) - ) - return; - if ((window.console[level] || (level = 'log'), !window.console[level])) - return; - window.console[level].apply(window.console, args); - } catch (err) {} - }, 1); - }, - debug: function debug() { - for ( - var _len = arguments.length, args = Array(_len), _key = 0; - _key < _len; - _key++ - ) - args[_key] = arguments[_key]; - log.logLevel('debug', args); - }, - info: function info() { - for ( - var _len2 = arguments.length, args = Array(_len2), _key2 = 0; - _key2 < _len2; - _key2++ - ) - args[_key2] = arguments[_key2]; - log.logLevel('info', args); - }, - warn: function warn() { - for ( - var _len3 = arguments.length, args = Array(_len3), _key3 = 0; - _key3 < _len3; - _key3++ - ) - args[_key3] = arguments[_key3]; - log.logLevel('warn', args); - }, - error: function error() { - for ( - var _len4 = arguments.length, args = Array(_len4), _key4 = 0; - _key4 < _len4; - _key4++ - ) - args[_key4] = arguments[_key4]; - log.logLevel('error', args); - } - }; - }, - './node_modules/post-robot/src/lib/ready.js': function node_modulesPostRobotSrcLibReadyJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - (__webpack_exports__.a = function initOnReady() { - Object(__WEBPACK_IMPORTED_MODULE_4__interface__.on)( - __WEBPACK_IMPORTED_MODULE_3__conf__.b.POST_MESSAGE_NAMES.READY, - { domain: __WEBPACK_IMPORTED_MODULE_3__conf__.b.WILDCARD }, - function(event) { - var win = event.source, - promise = __WEBPACK_IMPORTED_MODULE_6__global__.a.readyPromises.get(win); - promise - ? promise.resolve(event) - : ((promise = new __WEBPACK_IMPORTED_MODULE_2_zalgo_promise_src__.a().resolve( - event - )), - __WEBPACK_IMPORTED_MODULE_6__global__.a.readyPromises.set(win, promise)); - } - ); - var parent = Object(__WEBPACK_IMPORTED_MODULE_1_cross_domain_utils_src__.d)(); - parent && - Object(__WEBPACK_IMPORTED_MODULE_4__interface__.send)( - parent, - __WEBPACK_IMPORTED_MODULE_3__conf__.b.POST_MESSAGE_NAMES.READY, - {}, - { domain: __WEBPACK_IMPORTED_MODULE_3__conf__.b.WILDCARD, timeout: 1 / 0 } - ).catch(function(err) { - __WEBPACK_IMPORTED_MODULE_5__log__.a.debug( - Object(__WEBPACK_IMPORTED_MODULE_7__util__.j)(err) - ); - }); - }), - (__webpack_exports__.b = function onWindowReady(win) { - var timeout = - arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 5e3, - name = - arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 'Window', - promise = __WEBPACK_IMPORTED_MODULE_6__global__.a.readyPromises.get(win); - return ( - promise || - ((promise = new __WEBPACK_IMPORTED_MODULE_2_zalgo_promise_src__.a()), - __WEBPACK_IMPORTED_MODULE_6__global__.a.readyPromises.set(win, promise), - setTimeout(function() { - return promise.reject( - new Error(name + ' did not load after ' + timeout + 'ms') - ); - }, timeout), - promise) - ); - }); - var __WEBPACK_IMPORTED_MODULE_0_cross_domain_safe_weakmap_src__ = __webpack_require__( - './node_modules/cross-domain-safe-weakmap/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_2_zalgo_promise_src__ = __webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_3__conf__ = __webpack_require__( - './node_modules/post-robot/src/conf/index.js' - ), - __WEBPACK_IMPORTED_MODULE_4__interface__ = __webpack_require__( - './node_modules/post-robot/src/interface.js' - ), - __WEBPACK_IMPORTED_MODULE_5__log__ = __webpack_require__( - './node_modules/post-robot/src/lib/log.js' - ), - __WEBPACK_IMPORTED_MODULE_6__global__ = __webpack_require__( - './node_modules/post-robot/src/global.js' - ), - __WEBPACK_IMPORTED_MODULE_7__util__ = __webpack_require__( - './node_modules/post-robot/src/lib/util.js' - ); - __WEBPACK_IMPORTED_MODULE_6__global__.a.readyPromises = - __WEBPACK_IMPORTED_MODULE_6__global__.a.readyPromises || - new __WEBPACK_IMPORTED_MODULE_0_cross_domain_safe_weakmap_src__.a(); - }, - './node_modules/post-robot/src/lib/serialize.js': function node_modulesPostRobotSrcLibSerializeJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function isSerialized(item, type) { - return ( - 'object' === (void 0 === item ? 'undefined' : _typeof(item)) && - null !== item && - item.__type__ === type - ); - } - function serializeMethod(destination, domain, method, name) { - var id = Object(__WEBPACK_IMPORTED_MODULE_4__util__.k)(), - methods = __WEBPACK_IMPORTED_MODULE_7__global__.a.methods.get(destination); - return ( - methods || - ((methods = {}), - __WEBPACK_IMPORTED_MODULE_7__global__.a.methods.set(destination, methods)), - (methods[id] = { domain: domain, method: method }), - { - __type__: __WEBPACK_IMPORTED_MODULE_3__conf__.b.SERIALIZATION_TYPES.METHOD, - __id__: id, - __name__: name - } - ); - } - function deserializeMethod(source, origin, obj) { - function wrapper() { - var args = Array.prototype.slice.call(arguments); - return ( - __WEBPACK_IMPORTED_MODULE_6__log__.a.debug( - 'Call foreign method', - obj.__name__, - args - ), - Object(__WEBPACK_IMPORTED_MODULE_5__interface__.send)( - source, - __WEBPACK_IMPORTED_MODULE_3__conf__.b.POST_MESSAGE_NAMES.METHOD, - { id: obj.__id__, name: obj.__name__, args: args }, - { domain: origin, timeout: 1 / 0 } - ).then( - function(_ref2) { - var data = _ref2.data; - return ( - __WEBPACK_IMPORTED_MODULE_6__log__.a.debug( - 'Got foreign method result', - obj.__name__, - data.result - ), - data.result - ); - }, - function(err) { - throw (__WEBPACK_IMPORTED_MODULE_6__log__.a.debug( - 'Got foreign method error', - Object(__WEBPACK_IMPORTED_MODULE_4__util__.j)(err) - ), - err); - } - ) - ); - } - return ( - (wrapper.__name__ = obj.__name__), - (wrapper.__xdomain__ = !0), - (wrapper.source = source), - (wrapper.origin = origin), - wrapper - ); - } - function deserializeZalgoPromise(source, origin, prom) { - return new __WEBPACK_IMPORTED_MODULE_2_zalgo_promise_src__.a(function( - resolve, - reject - ) { - return deserializeMethod(source, origin, prom.__then__)(resolve, reject); - }); - } - __webpack_require__.d(__webpack_exports__, 'b', function() { - return listenForMethods; - }), - (__webpack_exports__.c = function serializeMethods(destination, domain, obj) { - return Object(__WEBPACK_IMPORTED_MODULE_4__util__.h)({ obj: obj }, function( - item, - key - ) { - return 'function' == typeof item - ? serializeMethod(destination, domain, item, key.toString()) - : item instanceof Error - ? (function serializeError(err) { - return { - __type__: - __WEBPACK_IMPORTED_MODULE_3__conf__.b.SERIALIZATION_TYPES.ERROR, - __message__: Object(__WEBPACK_IMPORTED_MODULE_4__util__.j)(err) - }; - })(item) - : window.Promise && item instanceof window.Promise - ? (function serializePromise(destination, domain, promise, name) { - return { - __type__: - __WEBPACK_IMPORTED_MODULE_3__conf__.b.SERIALIZATION_TYPES - .PROMISE, - __then__: serializeMethod( - destination, - domain, - function(resolve, reject) { - return promise.then(resolve, reject); - }, - name + '.then' - ) - }; - })(destination, domain, item, key.toString()) - : __WEBPACK_IMPORTED_MODULE_2_zalgo_promise_src__.a.isPromise(item) - ? (function serializeZalgoPromise( - destination, - domain, - promise, - name - ) { - return { - __type__: - __WEBPACK_IMPORTED_MODULE_3__conf__.b.SERIALIZATION_TYPES - .ZALGO_PROMISE, - __then__: serializeMethod( - destination, - domain, - function(resolve, reject) { - return promise.then(resolve, reject); - }, - name + '.then' - ) - }; - })(destination, domain, item, key.toString()) - : Object(__WEBPACK_IMPORTED_MODULE_4__util__.c)(item) - ? (function serializeRegex(regex) { - return { - __type__: - __WEBPACK_IMPORTED_MODULE_3__conf__.b.SERIALIZATION_TYPES - .REGEX, - __source__: regex.source - }; - })(item) - : void 0; - }).obj; - }), - (__webpack_exports__.a = function deserializeMethods(source, origin, obj) { - return Object(__WEBPACK_IMPORTED_MODULE_4__util__.h)({ obj: obj }, function( - item, - key - ) { - if ( - 'object' === (void 0 === item ? 'undefined' : _typeof(item)) && - null !== item - ) - return isSerialized( - item, - __WEBPACK_IMPORTED_MODULE_3__conf__.b.SERIALIZATION_TYPES.METHOD - ) - ? deserializeMethod(source, origin, item) - : isSerialized( - item, - __WEBPACK_IMPORTED_MODULE_3__conf__.b.SERIALIZATION_TYPES.ERROR - ) - ? (function deserializeError(source, origin, obj) { - return new Error(obj.__message__); - })(0, 0, item) - : isSerialized( - item, - __WEBPACK_IMPORTED_MODULE_3__conf__.b.SERIALIZATION_TYPES.PROMISE - ) - ? (function deserializePromise(source, origin, prom) { - return window.Promise - ? new window.Promise(function(resolve, reject) { - return deserializeMethod( - source, - origin, - prom.__then__ - )(resolve, reject); - }) - : deserializeZalgoPromise(source, origin, prom); - })(source, origin, item) - : isSerialized( - item, - __WEBPACK_IMPORTED_MODULE_3__conf__.b.SERIALIZATION_TYPES - .ZALGO_PROMISE - ) - ? deserializeZalgoPromise(source, origin, item) - : isSerialized( - item, - __WEBPACK_IMPORTED_MODULE_3__conf__.b.SERIALIZATION_TYPES.REGEX - ) - ? (function deserializeRegex(source, origin, item) { - return new RegExp(item.__source__); - })(0, 0, item) - : void 0; - }).obj; - }); - var __WEBPACK_IMPORTED_MODULE_0_cross_domain_safe_weakmap_src__ = __webpack_require__( - './node_modules/cross-domain-safe-weakmap/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_2_zalgo_promise_src__ = __webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_3__conf__ = __webpack_require__( - './node_modules/post-robot/src/conf/index.js' - ), - __WEBPACK_IMPORTED_MODULE_4__util__ = __webpack_require__( - './node_modules/post-robot/src/lib/util.js' - ), - __WEBPACK_IMPORTED_MODULE_5__interface__ = __webpack_require__( - './node_modules/post-robot/src/interface.js' - ), - __WEBPACK_IMPORTED_MODULE_6__log__ = __webpack_require__( - './node_modules/post-robot/src/lib/log.js' - ), - __WEBPACK_IMPORTED_MODULE_7__global__ = __webpack_require__( - './node_modules/post-robot/src/global.js' - ), - _typeof = - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - 'symbol' == - __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_symbol_iterator___default.a - ) - ? function(obj) { - return void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - } - : function(obj) { - return obj && - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj.constructor === - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj !== - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a - .prototype - ? 'symbol' - : void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - }; - __WEBPACK_IMPORTED_MODULE_7__global__.a.methods = - __WEBPACK_IMPORTED_MODULE_7__global__.a.methods || - new __WEBPACK_IMPORTED_MODULE_0_cross_domain_safe_weakmap_src__.a(); - var listenForMethods = Object(__WEBPACK_IMPORTED_MODULE_4__util__.g)(function() { - Object( - __WEBPACK_IMPORTED_MODULE_5__interface__.on - )(__WEBPACK_IMPORTED_MODULE_3__conf__.b.POST_MESSAGE_NAMES.METHOD, { origin: __WEBPACK_IMPORTED_MODULE_3__conf__.b.WILDCARD }, function(_ref) { - var source = _ref.source, - origin = _ref.origin, - data = _ref.data, - methods = __WEBPACK_IMPORTED_MODULE_7__global__.a.methods.get(source); - if (!methods) - throw new Error( - 'Could not find any methods this window has privileges to call' - ); - var meth = methods[data.id]; - if (!meth) throw new Error('Could not find method with id: ' + data.id); - if ( - !Object(__WEBPACK_IMPORTED_MODULE_1_cross_domain_utils_src__.v)( - meth.domain, - origin - ) - ) - throw new Error( - 'Method domain ' + meth.domain + ' does not match origin ' + origin - ); - return ( - __WEBPACK_IMPORTED_MODULE_6__log__.a.debug( - 'Call local method', - data.name, - data.args - ), - __WEBPACK_IMPORTED_MODULE_2_zalgo_promise_src__.a - .try(function() { - return meth.method.apply( - { source: source, origin: origin, data: data }, - data.args - ); - }) - .then(function(result) { - return { result: result, id: data.id, name: data.name }; - }) - ); - }); - }); - }, - './node_modules/post-robot/src/lib/util.js': function node_modulesPostRobotSrcLibUtilJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - (__webpack_exports__.j = function stringifyError(err) { - var level = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1; - if (level >= 3) return 'stringifyError stack overflow'; - try { - if (!err) return ''; - if ('string' == typeof err) return err; - if (err instanceof Error) { - var stack = err && err.stack, - message = err && err.message; - if (stack && message) - return -1 !== stack.indexOf(message) ? stack : message + '\n' + stack; - if (stack) return stack; - if (message) return message; - } - return 'function' == typeof err.toString - ? err.toString() - : Object.prototype.toString.call(err); - } catch (newErr) { - return 'Error while stringifying error: ' + stringifyError(newErr, level + 1); - } - }), - __webpack_require__.d(__webpack_exports__, 'g', function() { - return once; - }), - (__webpack_exports__.f = function noop() {}), - (__webpack_exports__.a = function addEventListener(obj, event, handler) { - return ( - obj.addEventListener - ? obj.addEventListener(event, handler) - : obj.attachEvent('on' + event, handler), - { - cancel: function cancel() { - obj.removeEventListener - ? obj.removeEventListener(event, handler) - : obj.detachEvent('on' + event, handler); - } - } - ); - }), - (__webpack_exports__.k = function uniqueID() { - var chars = '0123456789abcdef'; - return 'xxxxxxxxxx'.replace(/./g, function() { - return chars.charAt(Math.floor(Math.random() * chars.length)); - }); - }), - (__webpack_exports__.h = function replaceObject(item, callback) { - var depth = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 1; - if (depth >= 100) - throw new Error( - 'Self-referential object passed, or object contained too many layers' - ); - var newobj = void 0; - if ( - 'object' !== (void 0 === item ? 'undefined' : _typeof(item)) || - null === item || - Array.isArray(item) - ) { - if (!Array.isArray(item)) - throw new Error( - 'Invalid type: ' + (void 0 === item ? 'undefined' : _typeof(item)) - ); - newobj = []; - } else newobj = {}; - return ( - (function each(item, callback) { - Array.isArray(item) - ? (function eachArray(item, callback) { - for (var i = 0; i < item.length; i++) callback(item[i], i); - })(item, callback) - : 'object' === (void 0 === item ? 'undefined' : _typeof(item)) && - null !== item && - (function eachObject(item, callback) { - for (var _key in item) - item.hasOwnProperty(_key) && callback(item[_key], _key); - })(item, callback); - })(item, function(childItem, key) { - var result = callback(childItem, key); - void 0 !== result - ? (newobj[key] = result) - : 'object' === - (void 0 === childItem ? 'undefined' : _typeof(childItem)) && - null !== childItem - ? (newobj[key] = replaceObject(childItem, callback, depth + 1)) - : (newobj[key] = childItem); - }), - newobj - ); - }), - (__webpack_exports__.i = function safeInterval(method, time) { - var timeout = void 0; - return ( - (timeout = setTimeout(function runInterval() { - (timeout = setTimeout(runInterval, time)), method.call(); - }, time)), - { - cancel: function cancel() { - clearTimeout(timeout); - } - } - ); - }), - (__webpack_exports__.c = function isRegex(item) { - return '[object RegExp]' === Object.prototype.toString.call(item); - }), - (__webpack_exports__.b = function getWindowType() { - return Object(__WEBPACK_IMPORTED_MODULE_1_cross_domain_utils_src__.o)() - ? __WEBPACK_IMPORTED_MODULE_2__conf__.b.WINDOW_TYPES.POPUP - : Object(__WEBPACK_IMPORTED_MODULE_1_cross_domain_utils_src__.n)() - ? __WEBPACK_IMPORTED_MODULE_2__conf__.b.WINDOW_TYPES.IFRAME - : __WEBPACK_IMPORTED_MODULE_2__conf__.b.WINDOW_TYPES.FULLPAGE; - }), - (__webpack_exports__.e = function jsonStringify(obj, replacer, indent) { - var objectToJSON = void 0, - arrayToJSON = void 0; - try { - if ( - ('{}' !== - __WEBPACK_IMPORTED_MODULE_8_babel_runtime_core_js_json_stringify___default()( - {} - ) && - ((objectToJSON = Object.prototype.toJSON), - delete Object.prototype.toJSON), - '{}' !== - __WEBPACK_IMPORTED_MODULE_8_babel_runtime_core_js_json_stringify___default()( - {} - )) - ) - throw new Error('Can not correctly serialize JSON objects'); - if ( - ('[]' !== - __WEBPACK_IMPORTED_MODULE_8_babel_runtime_core_js_json_stringify___default()( - [] - ) && - ((arrayToJSON = Array.prototype.toJSON), delete Array.prototype.toJSON), - '[]' !== - __WEBPACK_IMPORTED_MODULE_8_babel_runtime_core_js_json_stringify___default()( - [] - )) - ) - throw new Error('Can not correctly serialize JSON objects'); - } catch (err) { - throw new Error('Can not repair JSON.stringify: ' + err.message); - } - var result = __WEBPACK_IMPORTED_MODULE_8_babel_runtime_core_js_json_stringify___default.a.call( - this, - obj, - replacer, - indent - ); - try { - objectToJSON && (Object.prototype.toJSON = objectToJSON), - arrayToJSON && (Array.prototype.toJSON = arrayToJSON); - } catch (err) { - throw new Error('Can not repair JSON.stringify: ' + err.message); - } - return result; - }), - (__webpack_exports__.d = function jsonParse(item) { - return JSON.parse(item); - }); - var __WEBPACK_IMPORTED_MODULE_1_cross_domain_utils_src__ = (__webpack_require__( - './node_modules/cross-domain-safe-weakmap/src/index.js' - ), - __webpack_require__('./node_modules/cross-domain-utils/src/index.js')), - __WEBPACK_IMPORTED_MODULE_2__conf__ = __webpack_require__( - './node_modules/post-robot/src/conf/index.js' - ), - _typeof = - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - 'symbol' == - __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_symbol_iterator___default.a - ) - ? function(obj) { - return void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - } - : function(obj) { - return obj && - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj.constructor === - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj !== - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a - .prototype - ? 'symbol' - : void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - }, - once = function once(method) { - if (!method) return method; - var called = !1; - return function() { - if (!called) return (called = !0), method.apply(this, arguments); - }; - }; - }, - './node_modules/post-robot/src/public/client.js': function node_modulesPostRobotSrcPublicClientJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function request(options) { - return __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a.try(function() { - if (!options.name) throw new Error('Expected options.name'); - var domain, - name = options.name, - targetWindow = void 0; - if ('string' == typeof options.window) { - var el = document.getElementById(options.window); - if (!el) - throw new Error( - 'Expected options.window ' + - Object.prototype.toString.call(options.window) + - ' to be a valid element id' - ); - if ('iframe' !== el.tagName.toLowerCase()) - throw new Error( - 'Expected options.window ' + - Object.prototype.toString.call(options.window) + - ' to be an iframe' - ); - if (!el.contentWindow) - throw new Error( - 'Iframe must have contentWindow. Make sure it has a src attribute and is in the DOM.' - ); - targetWindow = el.contentWindow; - } else if (options.window instanceof HTMLIFrameElement) { - if ('iframe' !== options.window.tagName.toLowerCase()) - throw new Error( - 'Expected options.window ' + - Object.prototype.toString.call(options.window) + - ' to be an iframe' - ); - if (options.window && !options.window.contentWindow) - throw new Error( - 'Iframe must have contentWindow. Make sure it has a src attribute and is in the DOM.' - ); - options.window && - options.window.contentWindow && - (targetWindow = options.window.contentWindow); - } else targetWindow = options.window; - if (!targetWindow) - throw new Error( - 'Expected options.window to be a window object, iframe, or iframe element id.' - ); - var win = targetWindow; - domain = options.domain || __WEBPACK_IMPORTED_MODULE_3__conf__.b.WILDCARD; - var hash = options.name + '_' + Object(__WEBPACK_IMPORTED_MODULE_5__lib__.p)(); - if (Object(__WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.t)(win)) - throw new Error('Target window is closed'); - var hasResult = !1, - requestPromises = __WEBPACK_IMPORTED_MODULE_6__global__.a.requestPromises.get( - win - ); - requestPromises || - ((requestPromises = []), - __WEBPACK_IMPORTED_MODULE_6__global__.a.requestPromises.set( - win, - requestPromises - )); - var requestPromise = __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a - .try(function() { - if ( - Object(__WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.m)( - window, - win - ) - ) - return __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a.resolve( - Object(__WEBPACK_IMPORTED_MODULE_5__lib__.k)(win) - ); - }) - .then(function() { - return new __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a(function( - resolve, - reject - ) { - var responseListener = void 0; - if ( - (options.fireAndForget || - ((responseListener = { - name: name, - window: win, - domain: domain, - respond: function respond(err, result) { - err || - ((hasResult = !0), - requestPromises.splice( - requestPromises.indexOf(requestPromise, 1) - )), - err ? reject(err) : resolve(result); - } - }), - Object(__WEBPACK_IMPORTED_MODULE_4__drivers__.b)( - hash, - responseListener - )), - Object(__WEBPACK_IMPORTED_MODULE_4__drivers__.g)( - win, - { - type: - __WEBPACK_IMPORTED_MODULE_3__conf__.b.POST_MESSAGE_TYPE.REQUEST, - hash: hash, - name: name, - data: options.data, - fireAndForget: options.fireAndForget - }, - domain - ).catch(reject), - options.fireAndForget) - ) - return resolve(); - var ackTimeout = __WEBPACK_IMPORTED_MODULE_3__conf__.a.ACK_TIMEOUT, - resTimeout = - options.timeout || __WEBPACK_IMPORTED_MODULE_3__conf__.a.RES_TIMEOUT, - cycleTime = 100; - setTimeout(function cycle() { - if (!hasResult) { - if ( - Object(__WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.t)(win) - ) - return reject( - responseListener.ack - ? new Error('Window closed for ' + name + ' before response') - : new Error('Window closed for ' + name + ' before ack') - ); - if ( - ((ackTimeout -= cycleTime), - (resTimeout -= cycleTime), - responseListener.ack) - ) { - if (resTimeout === 1 / 0) return; - cycleTime = Math.min(resTimeout, 2e3); - } else { - if (ackTimeout <= 0) - return reject( - new Error( - 'No ack for postMessage ' + - name + - ' in ' + - Object( - __WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.f - )() + - ' in ' + - __WEBPACK_IMPORTED_MODULE_3__conf__.a.ACK_TIMEOUT + - 'ms' - ) - ); - if (resTimeout <= 0) - return reject( - new Error( - 'No response for postMessage ' + - name + - ' in ' + - Object( - __WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.f - )() + - ' in ' + - (options.timeout || - __WEBPACK_IMPORTED_MODULE_3__conf__.a.RES_TIMEOUT) + - 'ms' - ) - ); - } - setTimeout(cycle, cycleTime); - } - }, cycleTime); - }); - }); - return ( - requestPromise.catch(function() { - Object(__WEBPACK_IMPORTED_MODULE_4__drivers__.e)(hash), - Object(__WEBPACK_IMPORTED_MODULE_4__drivers__.c)(hash); - }), - requestPromises.push(requestPromise), - requestPromise - ); - }); - } - function _send(window, name, data, options) { - return ( - ((options = options || {}).window = window), - (options.name = name), - (options.data = data), - request(options) - ); - } - __webpack_require__.d(__webpack_exports__, 'c', function() { - return _send; - }), - (__webpack_exports__.b = request), - (__webpack_exports__.d = function sendToParent(name, data, options) { - var win = Object(__WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.d)(); - return win - ? _send(win, name, data, options) - : new __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a(function( - resolve, - reject - ) { - return reject(new Error('Window does not have a parent')); - }); - }), - (__webpack_exports__.a = function client() { - var options = - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; - if (!options.window) throw new Error('Expected options.window'); - var win = options.window; - return { - send: function send(name, data) { - return _send(win, name, data, options); - } - }; - }); - var __WEBPACK_IMPORTED_MODULE_0_cross_domain_safe_weakmap_src__ = __webpack_require__( - './node_modules/cross-domain-safe-weakmap/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__ = __webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_3__conf__ = __webpack_require__( - './node_modules/post-robot/src/conf/index.js' - ), - __WEBPACK_IMPORTED_MODULE_4__drivers__ = __webpack_require__( - './node_modules/post-robot/src/drivers/index.js' - ), - __WEBPACK_IMPORTED_MODULE_5__lib__ = __webpack_require__( - './node_modules/post-robot/src/lib/index.js' - ), - __WEBPACK_IMPORTED_MODULE_6__global__ = __webpack_require__( - './node_modules/post-robot/src/global.js' - ); - __WEBPACK_IMPORTED_MODULE_6__global__.a.requestPromises = - __WEBPACK_IMPORTED_MODULE_6__global__.a.requestPromises || - new __WEBPACK_IMPORTED_MODULE_0_cross_domain_safe_weakmap_src__.a(); - }, - './node_modules/post-robot/src/public/config.js': function node_modulesPostRobotSrcPublicConfigJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_exports__.c = function disable() { - delete window[__WEBPACK_IMPORTED_MODULE_0__conf__.b.WINDOW_PROPS.POSTROBOT], - window.removeEventListener('message', __WEBPACK_IMPORTED_MODULE_1__drivers__.f); - }; - var __WEBPACK_IMPORTED_MODULE_0__conf__ = __webpack_require__( - './node_modules/post-robot/src/conf/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1__drivers__ = __webpack_require__( - './node_modules/post-robot/src/drivers/index.js' - ); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__conf__.a; - }), - __webpack_require__.d(__webpack_exports__, 'b', function() { - return __WEBPACK_IMPORTED_MODULE_0__conf__.b; - }); - }, - './node_modules/post-robot/src/public/index.js': function node_modulesPostRobotSrcPublicIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'i', function() { - return parent; - }); - var __WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1__client__ = __webpack_require__( - './node_modules/post-robot/src/public/client.js' - ); - __webpack_require__.d(__webpack_exports__, 'c', function() { - return __WEBPACK_IMPORTED_MODULE_1__client__.a; - }), - __webpack_require__.d(__webpack_exports__, 'j', function() { - return __WEBPACK_IMPORTED_MODULE_1__client__.b; - }), - __webpack_require__.d(__webpack_exports__, 'k', function() { - return __WEBPACK_IMPORTED_MODULE_1__client__.c; - }), - __webpack_require__.d(__webpack_exports__, 'l', function() { - return __WEBPACK_IMPORTED_MODULE_1__client__.d; - }); - var __WEBPACK_IMPORTED_MODULE_2__server__ = __webpack_require__( - './node_modules/post-robot/src/public/server.js' - ); - __webpack_require__.d(__webpack_exports__, 'e', function() { - return __WEBPACK_IMPORTED_MODULE_2__server__.a; - }), - __webpack_require__.d(__webpack_exports__, 'f', function() { - return __WEBPACK_IMPORTED_MODULE_2__server__.b; - }), - __webpack_require__.d(__webpack_exports__, 'g', function() { - return __WEBPACK_IMPORTED_MODULE_2__server__.c; - }), - __webpack_require__.d(__webpack_exports__, 'h', function() { - return __WEBPACK_IMPORTED_MODULE_2__server__.d; - }); - var __WEBPACK_IMPORTED_MODULE_3__config__ = __webpack_require__( - './node_modules/post-robot/src/public/config.js' - ); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_3__config__.a; - }), - __webpack_require__.d(__webpack_exports__, 'b', function() { - return __WEBPACK_IMPORTED_MODULE_3__config__.b; - }), - __webpack_require__.d(__webpack_exports__, 'd', function() { - return __WEBPACK_IMPORTED_MODULE_3__config__.c; - }); - var parent = Object(__WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.d)(); - }, - './node_modules/post-robot/src/public/server.js': function node_modulesPostRobotSrcPublicServerJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function listen(options) { - if (!options.name) throw new Error('Expected options.name'); - if (!options.handler) throw new Error('Expected options.handler'); - var name = options.name, - win = options.window, - domain = options.domain, - listenerOptions = { - handler: options.handler, - handleError: - options.errorHandler || - function(err) { - throw err; - }, - window: win, - domain: domain || __WEBPACK_IMPORTED_MODULE_4__conf__.b.WILDCARD, - name: name - }, - requestListener = Object(__WEBPACK_IMPORTED_MODULE_3__drivers__.a)( - { name: name, win: win, domain: domain }, - listenerOptions - ); - if (options.once) { - var _handler = listenerOptions.handler; - listenerOptions.handler = Object(__WEBPACK_IMPORTED_MODULE_2__lib__.l)( - function() { - return requestListener.cancel(), _handler.apply(this, arguments); - } - ); - } - if (listenerOptions.window && options.errorOnClose) - var interval = Object(__WEBPACK_IMPORTED_MODULE_2__lib__.m)(function() { - win && - 'object' === (void 0 === win ? 'undefined' : _typeof(win)) && - Object(__WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.t)(win) && - (interval.cancel(), - listenerOptions.handleError( - new Error('Post message target window is closed') - )); - }, 50); - return { - cancel: function cancel() { - requestListener.cancel(); - } - }; - } - function _on(name, options, handler) { - return ( - 'function' == typeof options && ((handler = options), (options = {})), - ((options = options || {}).name = name), - (options.handler = handler || options.handler), - listen(options) - ); - } - __webpack_require__.d(__webpack_exports__, 'c', function() { - return _on; - }), - (__webpack_exports__.a = listen), - (__webpack_exports__.d = function once(name) { - var options = - arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, - handler = arguments[2]; - 'function' == typeof options && ((handler = options), (options = {})), - (options = options || {}), - (handler = handler || options.handler); - var errorHandler = options.errorHandler, - promise = new __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a(function( - resolve, - reject - ) { - ((options = options || {}).name = name), - (options.once = !0), - (options.handler = function(event) { - if ((resolve(event), handler)) return handler(event); - }), - (options.errorHandler = function(err) { - if ((reject(err), errorHandler)) return errorHandler(err); - }); - }), - onceListener = listen(options); - return (promise.cancel = onceListener.cancel), promise; - }), - (__webpack_exports__.b = function listener() { - var options = - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; - return { - on: function on(name, handler) { - return _on(name, options, handler); - } - }; - }); - var __WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__ = __webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_2__lib__ = __webpack_require__( - './node_modules/post-robot/src/lib/index.js' - ), - __WEBPACK_IMPORTED_MODULE_3__drivers__ = __webpack_require__( - './node_modules/post-robot/src/drivers/index.js' - ), - __WEBPACK_IMPORTED_MODULE_4__conf__ = __webpack_require__( - './node_modules/post-robot/src/conf/index.js' - ), - _typeof = - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - 'symbol' == - __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_symbol_iterator___default.a - ) - ? function(obj) { - return void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - } - : function(obj) { - return obj && - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj.constructor === - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj !== - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a - .prototype - ? 'symbol' - : void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - }; - }, - './node_modules/webpack/buildin/global.js': function node_modulesWebpackBuildinGlobalJs( - module, - exports - ) { - var g, - _typeof = - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - 'symbol' == - __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_symbol_iterator___default.a - ) - ? function(obj) { - return void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - } - : function(obj) { - return obj && - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj.constructor === - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj !== - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a - .prototype - ? 'symbol' - : void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - }; - g = (function() { - return this; - })(); - try { - g = g || Function('return this')() || (0, eval)('this'); - } catch (e) { - 'object' === ('undefined' == typeof window ? 'undefined' : _typeof(window)) && - (g = window); - } - module.exports = g; - }, - './node_modules/xcomponent/src/component/base.js': function node_modulesXcomponentSrcComponentBaseJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return BaseComponent; - }); - var __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__ = __webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1_post_robot_src__ = __webpack_require__( - './node_modules/post-robot/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_2__lib__ = __webpack_require__( - './node_modules/xcomponent/src/lib/index.js' - ), - BaseComponent = (__webpack_require__( - './node_modules/xcomponent/src/component/component/index.js' - ), - (function() { - function BaseComponent() { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, BaseComponent), - (this.clean = (function cleanup(obj) { - var tasks = [], - cleaned = !1; - return { - set: function set(name, item) { - return cleaned - ? item - : ((obj[name] = item), - this.register(function() { - delete obj[name]; - }), - item); - }, - register: function register(name, method) { - if ( - ('function' == typeof name && - ((method = name), (name = '')), - 'function' != typeof method) - ) - throw new Error('Expected to be passed function to clean.register'); - cleaned - ? method() - : tasks.push({ - complete: !1, - name: name, - run: function run() { - this.complete || ((this.complete = !0), method && method()); - } - }); - }, - hasTasks: function hasTasks() { - return Boolean( - tasks.filter(function(item) { - return !item.complete; - }).length - ); - }, - all: function all() { - var results = []; - for (cleaned = !0; tasks.length; ) results.push(tasks.pop().run()); - return __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__.a - .all(results) - .then(function() {}); - }, - run: function run(name) { - var results = [], - _iterator = tasks, - _isArray = Array.isArray(_iterator), - _i = 0; - for ( - _iterator = _isArray - ? _iterator - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator - ); - ; - - ) { - var _ref; - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - if ((_i = _iterator.next()).done) break; - _ref = _i.value; - } - var item = _ref; - item.name === name && results.push(item.run()); - } - return __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__.a - .all(results) - .then(function() {}); - } - }; - })(this)), - (this.event = Object(__WEBPACK_IMPORTED_MODULE_2__lib__.s)()); - } - return ( - (BaseComponent.prototype.addProp = function(options, name, def) { - Object(__WEBPACK_IMPORTED_MODULE_2__lib__.g)(options, this, name, def); - }), - (BaseComponent.prototype.on = function(eventName, handler) { - return this.event.on(eventName, handler); - }), - (BaseComponent.prototype.listeners = function() { - throw new Error('Expected listeners to be implemented'); - }), - (BaseComponent.prototype.error = function(err) { - throw new Error( - 'Expected error to be implemented - got ' + - Object(__WEBPACK_IMPORTED_MODULE_2__lib__.V)(err) - ); - }), - (BaseComponent.prototype.listen = function(win, domain) { - var _this = this; - if (!win) throw this.component.createError('window to listen to not set'); - if (!domain) throw new Error('Must pass domain to listen to'); - if (this.listeners) { - var listeners = this.listeners(), - _iterator2 = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - listeners - ), - _isArray2 = Array.isArray(_iterator2), - _i2 = 0; - for ( - _iterator2 = _isArray2 - ? _iterator2 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator2 - ); - ; - - ) { - var _ref2; - if ( - 'break' === - (function() { - if (_isArray2) { - if (_i2 >= _iterator2.length) return 'break'; - _ref2 = _iterator2[_i2++]; - } else { - if ((_i2 = _iterator2.next()).done) return 'break'; - _ref2 = _i2.value; - } - var listenerName = _ref2, - name = listenerName.replace(/^xcomponent_/, ''), - listener = Object( - __WEBPACK_IMPORTED_MODULE_1_post_robot_src__.on - )( - listenerName, - { - window: win, - domain: domain, - errorHandler: function errorHandler(err) { - _this.error(err); - } - }, - function(_ref3) { - var source = _ref3.source, - data = _ref3.data; - return ( - _this.component.log('listener_' + name), - listeners[listenerName].call(_this, source, data) - ); - } - ), - errorListener = Object( - __WEBPACK_IMPORTED_MODULE_1_post_robot_src__.on - )( - listenerName, - { - window: win, - errorHandler: function errorHandler(err) { - _this.error(err); - } - }, - function(_ref4) { - var origin = _ref4.origin; - _ref4.data, - _this.component.logError('unexpected_listener_' + name, { - origin: origin, - domain: domain.toString() - }), - _this.error( - new Error( - 'Unexpected ' + - name + - ' message from domain ' + - origin + - ' -- expected message from ' + - domain.toString() - ) - ); - } - ); - _this.clean.register(function() { - listener.cancel(), errorListener.cancel(); - }); - })() - ) - break; - } - } - }), - BaseComponent - ); - })()); - }, - './node_modules/xcomponent/src/component/child/index.js': function node_modulesXcomponentSrcComponentChildIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !call || - ('object' != - (void 0 === call - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - call - )) && - 'function' != typeof call) - ? self - : call; - } - __webpack_require__.d(__webpack_exports__, 'a', function() { - return ChildComponent; - }); - var __WEBPACK_IMPORTED_MODULE_0_beaver_logger_client__ = __webpack_require__( - './node_modules/beaver-logger/client/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_2_post_robot_src__ = __webpack_require__( - './node_modules/post-robot/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__ = __webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_4__base__ = __webpack_require__( - './node_modules/xcomponent/src/component/base.js' - ), - __WEBPACK_IMPORTED_MODULE_5__window__ = __webpack_require__( - './node_modules/xcomponent/src/component/window.js' - ), - __WEBPACK_IMPORTED_MODULE_6__lib__ = __webpack_require__( - './node_modules/xcomponent/src/lib/index.js' - ), - __WEBPACK_IMPORTED_MODULE_7__constants__ = __webpack_require__( - './node_modules/xcomponent/src/constants.js' - ), - __WEBPACK_IMPORTED_MODULE_8__props__ = __webpack_require__( - './node_modules/xcomponent/src/component/child/props.js' - ), - __WEBPACK_IMPORTED_MODULE_9__error__ = __webpack_require__( - './node_modules/xcomponent/src/error.js' - ), - _extends = (__webpack_require__( - './node_modules/xcomponent/src/component/component/index.js' - ), - __webpack_require__('./node_modules/xcomponent/src/component/component/props.js'), - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_object_assign___default.a || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && - (target[key] = source[key]); - } - return target; - }), - _typeof = - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - 'symbol' == - __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_symbol_iterator___default.a - ) - ? function(obj) { - return void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - } - : function(obj) { - return obj && - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj.constructor === - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj !== - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a - .prototype - ? 'symbol' - : void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - }, - ChildComponent = (function(_BaseComponent) { - function ChildComponent(component) { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, ChildComponent); - var _this = _possibleConstructorReturn(this, _BaseComponent.call(this)); - return ( - (_this.component = component), - _this.hasValidParentDomain() - ? (_this.sendLogsToOpener(), - _this.component.log('construct_child'), - (_this.onPropHandlers = []), - _this.setProps( - _this.getInitialProps(), - Object(__WEBPACK_IMPORTED_MODULE_5__window__.d)() - ), - _this.props.logLevel && - Object(__WEBPACK_IMPORTED_MODULE_6__lib__.Q)(_this.props.logLevel), - _this.component.log('init_child'), - _this.setWindows(), - _this.listenForResize(), - (_this.onInit = _this - .sendToParent( - __WEBPACK_IMPORTED_MODULE_7__constants__.POST_MESSAGE.INIT, - { exports: _this.exports() } - ) - .then(function(_ref) { - var origin = _ref.origin, - data = _ref.data; - return ( - (_this.context = data.context), - _this.setProps(data.props, origin), - _this.watchForResize(), - _this - ); - }) - .catch(function(err) { - throw (_this.error(err), err); - })), - _this) - : (_this.error( - new __WEBPACK_IMPORTED_MODULE_9__error__.c( - 'Can not be rendered by domain: ' + _this.getParentDomain() - ) - ), - _possibleConstructorReturn(_this)) - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - (void 0 === superClass - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - superClass - )) - ); - (subClass.prototype = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_create___default()( - superClass && superClass.prototype, - { - constructor: { - value: subClass, - enumerable: !1, - writable: !0, - configurable: !0 - } - } - )), - superClass && - (__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_set_prototype_of___default.a - ? __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_set_prototype_of___default()( - subClass, - superClass - ) - : (subClass.__proto__ = superClass)); - })(ChildComponent, _BaseComponent), - (ChildComponent.prototype.listenForResize = function() { - var _this2 = this; - window.addEventListener('resize', function() { - _this2.sendToParent( - __WEBPACK_IMPORTED_MODULE_7__constants__.POST_MESSAGE.ONRESIZE, - {}, - { fireAndForget: !0 } - ); - }); - }), - (ChildComponent.prototype.hasValidParentDomain = function() { - return Object(__WEBPACK_IMPORTED_MODULE_1_cross_domain_utils_src__.v)( - this.component.allowedParentDomains, - this.getParentDomain() - ); - }), - (ChildComponent.prototype.init = function() { - return this.onInit; - }), - (ChildComponent.prototype.getParentDomain = function() { - return Object(__WEBPACK_IMPORTED_MODULE_5__window__.d)(); - }), - (ChildComponent.prototype.onProps = function(handler) { - this.onPropHandlers.push(handler); - }), - (ChildComponent.prototype.getParentComponentWindow = function() { - return Object(__WEBPACK_IMPORTED_MODULE_5__window__.c)(); - }), - (ChildComponent.prototype.getParentRenderWindow = function() { - return Object(__WEBPACK_IMPORTED_MODULE_5__window__.e)(); - }), - (ChildComponent.prototype.getInitialProps = function() { - var _this3 = this, - componentMeta = Object(__WEBPACK_IMPORTED_MODULE_5__window__.b)(), - props = componentMeta.props; - if ( - props.type === __WEBPACK_IMPORTED_MODULE_7__constants__.INITIAL_PROPS.RAW - ) - props = props.value; - else { - if ( - props.type !== - __WEBPACK_IMPORTED_MODULE_7__constants__.INITIAL_PROPS.UID - ) - throw new Error('Unrecognized props type: ' + props.type); - var parentComponentWindow = Object( - __WEBPACK_IMPORTED_MODULE_5__window__.c - )(); - if ( - !Object(__WEBPACK_IMPORTED_MODULE_1_cross_domain_utils_src__.p)( - parentComponentWindow - ) - ) { - if ('file:' === window.location.protocol) - throw new Error('Can not get props from file:// domain'); - throw new Error( - 'Parent component window is on a different domain - expected ' + - Object(__WEBPACK_IMPORTED_MODULE_1_cross_domain_utils_src__.f)() + - ' - can not retrieve props' - ); - } - var global = Object(__WEBPACK_IMPORTED_MODULE_6__lib__.z)( - parentComponentWindow - ); - if (!global) - throw new Error( - 'Can not find global for parent component - can not retrieve props' - ); - props = global.props[componentMeta.uid]; - } - if (!props) throw new Error('Initial props not found'); - return Object(__WEBPACK_IMPORTED_MODULE_6__lib__.k)(props, function(_ref2) { - var fullKey = _ref2.fullKey, - self = _ref2.self, - args = _ref2.args; - return _this3.onInit.then(function() { - var func = Object(__WEBPACK_IMPORTED_MODULE_6__lib__.v)( - _this3.props, - fullKey - ); - if ('function' != typeof func) - throw new Error( - 'Expected ' + - (void 0 === func ? 'undefined' : _typeof(func)) + - ' to be function' - ); - return func.apply(self, args); - }); - }); - }), - (ChildComponent.prototype.setProps = function(props, origin) { - var required = - !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]; - this.props = this.props || {}; - var normalizedProps = Object(__WEBPACK_IMPORTED_MODULE_8__props__.a)( - this.component, - props, - origin, - required - ); - Object(__WEBPACK_IMPORTED_MODULE_6__lib__.t)(this.props, normalizedProps), - (window.xprops = this.props); - var _iterator = this.onPropHandlers, - _isArray = Array.isArray(_iterator), - _i = 0; - for ( - _iterator = _isArray - ? _iterator - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator - ); - ; - - ) { - var _ref3; - if (_isArray) { - if (_i >= _iterator.length) break; - _ref3 = _iterator[_i++]; - } else { - if ((_i = _iterator.next()).done) break; - _ref3 = _i.value; - } - _ref3.call(this, this.props); - } - }), - (ChildComponent.prototype.sendToParent = function(name) { - var data = - arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, - options = - arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, - parentWindow = Object(__WEBPACK_IMPORTED_MODULE_5__window__.c)(); - if (!parentWindow) - throw new Error('Can not find parent component window to message'); - return ( - this.component.log('send_to_parent_' + name), - Object(__WEBPACK_IMPORTED_MODULE_2_post_robot_src__.send)( - parentWindow, - name, - data, - _extends( - { domain: Object(__WEBPACK_IMPORTED_MODULE_5__window__.d)() }, - options - ) - ) - ); - }), - (ChildComponent.prototype.setWindows = function() { - if (window.__activeXComponent__) - throw this.component.createError( - 'Can not attach multiple components to the same window' - ); - if ( - ((window.__activeXComponent__ = this), - !Object(__WEBPACK_IMPORTED_MODULE_5__window__.c)()) - ) - throw this.component.createError('Can not find parent window'); - var componentMeta = Object(__WEBPACK_IMPORTED_MODULE_5__window__.b)(); - if (componentMeta.tag !== this.component.tag) - throw this.component.createError( - 'Parent is ' + - componentMeta.tag + - ' - can not attach ' + - this.component.tag - ); - this.watchForClose(); - }), - (ChildComponent.prototype.sendLogsToOpener = function() {}), - (ChildComponent.prototype.watchForClose = function() { - var _this4 = this; - window.addEventListener('unload', function() { - return _this4.checkClose(); - }); - }), - (ChildComponent.prototype.enableAutoResize = function() { - var _ref5 = - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, - _ref5$width = _ref5.width, - width = void 0 === _ref5$width || _ref5$width, - _ref5$height = _ref5.height, - height = void 0 === _ref5$height || _ref5$height; - (this.autoResize = { width: width, height: height }), this.watchForResize(); - }), - (ChildComponent.prototype.getAutoResize = function() { - var width = !1, - height = !1, - autoResize = this.autoResize || this.component.autoResize; - 'object' === (void 0 === autoResize ? 'undefined' : _typeof(autoResize)) - ? ((width = Boolean(autoResize.width)), - (height = Boolean(autoResize.height))) - : autoResize && ((width = !0), (height = !0)); - return { - width: width, - height: height, - element: autoResize.element - ? Object(__WEBPACK_IMPORTED_MODULE_6__lib__.x)(autoResize.element) - : window.navigator.userAgent.match(/MSIE (9|10)\./) - ? document.body - : document.documentElement - }; - }), - (ChildComponent.prototype.watchForResize = function() { - var _this5 = this, - _getAutoResize = this.getAutoResize(), - width = _getAutoResize.width, - height = _getAutoResize.height, - element = _getAutoResize.element; - if ( - (width || height) && - this.context !== - __WEBPACK_IMPORTED_MODULE_7__constants__.CONTEXT_TYPES.POPUP && - !this.watchingForResize - ) - return ( - (this.watchingForResize = !0), - __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .try(function() { - return __WEBPACK_IMPORTED_MODULE_6__lib__.n; - }) - .then(function() { - if ( - !Object(__WEBPACK_IMPORTED_MODULE_6__lib__.m)(element, { - width: width, - height: height - }) - ) - return _this5.resizeToElement(element, { - width: width, - height: height - }); - }) - .then(function() { - return Object(__WEBPACK_IMPORTED_MODULE_6__lib__.h)(function() { - return Object(__WEBPACK_IMPORTED_MODULE_6__lib__.J)(element, { - width: width, - height: height - }).then(function(dimensions) { - return _this5.resizeToElement(element, { - width: width, - height: height - }); - }); - }); - }) - ); - }), - (ChildComponent.prototype.exports = function() { - var self = this; - return { - updateProps: function updateProps(props) { - var _this6 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.try( - function() { - return self.setProps(props, _this6.origin, !1); - } - ); - }, - close: function close() { - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.try( - function() { - return self.destroy(); - } - ); - } - }; - }), - (ChildComponent.prototype.resize = function(width, height) { - var _this7 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .resolve() - .then(function() { - if ( - (_this7.component.log('resize', { - width: Object(__WEBPACK_IMPORTED_MODULE_6__lib__.U)(width), - height: Object(__WEBPACK_IMPORTED_MODULE_6__lib__.U)(height) - }), - _this7.context !== - __WEBPACK_IMPORTED_MODULE_7__constants__.CONTEXT_TYPES.POPUP) - ) - return _this7 - .sendToParent( - __WEBPACK_IMPORTED_MODULE_7__constants__.POST_MESSAGE.RESIZE, - { width: width, height: height } - ) - .then(__WEBPACK_IMPORTED_MODULE_6__lib__.I); - }); - }), - (ChildComponent.prototype.resizeToElement = function(el, _ref6) { - var _this8 = this, - width = _ref6.width, - height = _ref6.height, - history = []; - return (function resize() { - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.try(function() { - var tracker = Object(__WEBPACK_IMPORTED_MODULE_6__lib__.X)(el, { - width: width, - height: height - }), - dimensions = tracker.check().dimensions, - _iterator3 = history, - _isArray3 = Array.isArray(_iterator3), - _i4 = 0; - for ( - _iterator3 = _isArray3 - ? _iterator3 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator3 - ); - ; - - ) { - var _ref7; - if (_isArray3) { - if (_i4 >= _iterator3.length) break; - _ref7 = _iterator3[_i4++]; - } else { - if ((_i4 = _iterator3.next()).done) break; - _ref7 = _i4.value; - } - var size = _ref7, - widthMatch = !width || size.width === dimensions.width, - heightMatch = !height || size.height === dimensions.height; - if (widthMatch && heightMatch) return; - } - return ( - history.push({ width: dimensions.width, height: dimensions.height }), - _this8 - .resize( - width ? dimensions.width : null, - height ? dimensions.height : null - ) - .then(function() { - if (tracker.check().changed) return resize(); - }) - ); - }); - })(); - }), - (ChildComponent.prototype.hide = function() { - return this.sendToParent( - __WEBPACK_IMPORTED_MODULE_7__constants__.POST_MESSAGE.HIDE - ).then(__WEBPACK_IMPORTED_MODULE_6__lib__.I); - }), - (ChildComponent.prototype.show = function() { - return this.sendToParent( - __WEBPACK_IMPORTED_MODULE_7__constants__.POST_MESSAGE.SHOW - ).then(__WEBPACK_IMPORTED_MODULE_6__lib__.I); - }), - (ChildComponent.prototype.userClose = function() { - return this.close( - __WEBPACK_IMPORTED_MODULE_7__constants__.CLOSE_REASONS.USER_CLOSED - ); - }), - (ChildComponent.prototype.close = function() { - var reason = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : __WEBPACK_IMPORTED_MODULE_7__constants__.CLOSE_REASONS.CHILD_CALL; - this.component.log('close_child'), - this.sendToParent( - __WEBPACK_IMPORTED_MODULE_7__constants__.POST_MESSAGE.CLOSE, - { reason: reason } - ); - }), - (ChildComponent.prototype.checkClose = function() { - this.sendToParent( - __WEBPACK_IMPORTED_MODULE_7__constants__.POST_MESSAGE.CHECK_CLOSE, - {}, - { fireAndForget: !0 } - ); - }), - (ChildComponent.prototype.destroy = function() { - __WEBPACK_IMPORTED_MODULE_0_beaver_logger_client__.c().then(function() { - window.close(); - }); - }), - (ChildComponent.prototype.focus = function() { - this.component.log('focus'), window.focus(); - }), - (ChildComponent.prototype.error = function(err) { - var stringifiedError = Object(__WEBPACK_IMPORTED_MODULE_6__lib__.V)(err); - return ( - this.component.logError('error', { error: stringifiedError }), - this.sendToParent( - __WEBPACK_IMPORTED_MODULE_7__constants__.POST_MESSAGE.ERROR, - { error: stringifiedError } - ).then(__WEBPACK_IMPORTED_MODULE_6__lib__.I) - ); - }), - ChildComponent - ); - })(__WEBPACK_IMPORTED_MODULE_4__base__.a); - }, - './node_modules/xcomponent/src/component/child/props.js': function node_modulesXcomponentSrcComponentChildPropsJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function normalizeChildProp(component, props, key, value) { - var prop = component.getProp(key); - if (!prop) { - if (component.looseProps) return value; - throw new Error('Unrecognized prop: ' + key); - } - return ( - 'function' == typeof prop.childDecorate && (value = prop.childDecorate(value)), - value - ); - } - __webpack_exports__.a = function normalizeChildProps(component, props, origin) { - var required = !(arguments.length > 3 && void 0 !== arguments[3]) || arguments[3], - result = {}, - _iterator = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - props - ), - _isArray = Array.isArray(_iterator), - _i = 0; - for ( - _iterator = _isArray - ? _iterator - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator - ); - ; - - ) { - var _ref; - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - if ((_i = _iterator.next()).done) break; - _ref = _i.value; - } - var _key = _ref, - prop = component.getProp(_key), - value = props[_key]; - (prop && - prop.sameDomain && - origin !== - Object(__WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.f)(window)) || - ((result[_key] = normalizeChildProp(component, 0, _key, value)), - prop && prop.alias && !result[prop.alias] && (result[prop.alias] = value)); - } - if (required) { - var _iterator2 = component.getPropNames(), - _isArray2 = Array.isArray(_iterator2), - _i2 = 0; - for ( - _iterator2 = _isArray2 - ? _iterator2 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator2 - ); - ; - - ) { - var _ref2; - if (_isArray2) { - if (_i2 >= _iterator2.length) break; - _ref2 = _iterator2[_i2++]; - } else { - if ((_i2 = _iterator2.next()).done) break; - _ref2 = _i2.value; - } - var key = _ref2; - props.hasOwnProperty(key) || - (result[key] = normalizeChildProp(component, 0, key, props[key])); - } - } - return result; - }; - var __WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ); - __webpack_require__('./node_modules/xcomponent/src/component/component/index.js'), - __webpack_require__('./node_modules/xcomponent/src/component/component/props.js'); - }, - './node_modules/xcomponent/src/component/component/index.js': function node_modulesXcomponentSrcComponentComponentIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return Component; - }); - var _class, - target, - decorators, - descriptor, - context, - desc, - __WEBPACK_IMPORTED_MODULE_0_post_robot_src__ = __webpack_require__( - './node_modules/post-robot/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__ = __webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_3__base__ = __webpack_require__( - './node_modules/xcomponent/src/component/base.js' - ), - __WEBPACK_IMPORTED_MODULE_4__child__ = __webpack_require__( - './node_modules/xcomponent/src/component/child/index.js' - ), - __WEBPACK_IMPORTED_MODULE_5__parent__ = __webpack_require__( - './node_modules/xcomponent/src/component/parent/index.js' - ), - __WEBPACK_IMPORTED_MODULE_6__delegate__ = __webpack_require__( - './node_modules/xcomponent/src/component/delegate/index.js' - ), - __WEBPACK_IMPORTED_MODULE_7__props__ = __webpack_require__( - './node_modules/xcomponent/src/component/component/props.js' - ), - __WEBPACK_IMPORTED_MODULE_8__window__ = __webpack_require__( - './node_modules/xcomponent/src/component/window.js' - ), - __WEBPACK_IMPORTED_MODULE_9__constants__ = __webpack_require__( - './node_modules/xcomponent/src/constants.js' - ), - __WEBPACK_IMPORTED_MODULE_10__validate__ = __webpack_require__( - './node_modules/xcomponent/src/component/component/validate.js' - ), - __WEBPACK_IMPORTED_MODULE_11__templates__ = __webpack_require__( - './node_modules/xcomponent/src/component/component/templates/index.js' - ), - __WEBPACK_IMPORTED_MODULE_12__drivers__ = __webpack_require__( - './node_modules/xcomponent/src/drivers/index.js' - ), - __WEBPACK_IMPORTED_MODULE_13__lib__ = __webpack_require__( - './node_modules/xcomponent/src/lib/index.js' - ), - _typeof = - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - 'symbol' == - __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_symbol_iterator___default.a - ) - ? function(obj) { - return void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - } - : function(obj) { - return obj && - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj.constructor === - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj !== - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a - .prototype - ? 'symbol' - : void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - }, - Component = ((_class = (function(_BaseComponent) { - function Component(options) { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, Component); - var _this = (function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !call || - ('object' != - (void 0 === call - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - call - )) && - 'function' != typeof call) - ? self - : call; - })(this, _BaseComponent.call(this)); - if ( - (Object(__WEBPACK_IMPORTED_MODULE_10__validate__.a)(options), - _this.addProp(options, 'tag'), - _this.addProp(options, 'defaultLogLevel', 'info'), - _this.addProp( - options, - 'allowedParentDomains', - __WEBPACK_IMPORTED_MODULE_9__constants__.WILDCARD - ), - Object(__WEBPACK_IMPORTED_MODULE_13__lib__.Q)(_this.defaultLogLevel), - Component.components[_this.tag]) - ) - throw new Error('Can not register multiple components with the same tag'); - return ( - _this.addProp(options, 'name', _this.tag.replace(/-/g, '_')), - (_this.builtinProps = Object(__WEBPACK_IMPORTED_MODULE_7__props__.a)()), - (_this.props = options.props || {}), - options.props || (_this.looseProps = !0), - _this.addProp(options, 'dimensions'), - _this.addProp(options, 'scrolling'), - _this.addProp(options, 'version', 'latest'), - _this.addProp(options, 'defaultEnv'), - _this.addProp(options, 'buildUrl'), - _this.addProp(options, 'url'), - _this.addProp(options, 'domain'), - _this.addProp(options, 'bridgeUrl'), - _this.addProp(options, 'bridgeDomain'), - _this.addProp(options, 'attributes', {}), - _this.addProp(options, 'contexts', { iframe: !0, popup: !1 }), - _this.addProp(options, 'defaultContext'), - _this.addProp(options, 'autoResize', !1), - _this.addProp( - options, - 'containerTemplate', - __WEBPACK_IMPORTED_MODULE_11__templates__.a - ), - _this.addProp( - options, - 'prerenderTemplate', - __WEBPACK_IMPORTED_MODULE_11__templates__.b - ), - _this.addProp(options, 'validate'), - (Component.components[_this.tag] = _this), - _this.registerDrivers(), - _this.registerChild(), - _this.listenDelegate(), - _this - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - (void 0 === superClass - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - superClass - )) - ); - (subClass.prototype = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_create___default()( - superClass && superClass.prototype, - { - constructor: { - value: subClass, - enumerable: !1, - writable: !0, - configurable: !0 - } - } - )), - superClass && - (__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_set_prototype_of___default.a - ? __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_set_prototype_of___default()( - subClass, - superClass - ) - : (subClass.__proto__ = superClass)); - })(Component, _BaseComponent), - (Component.prototype.getPropNames = function() { - var props = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - this.props - ), - _iterator = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - this.builtinProps - ), - _isArray = Array.isArray(_iterator), - _i = 0; - for ( - _iterator = _isArray - ? _iterator - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator - ); - ; - - ) { - var _ref; - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - if ((_i = _iterator.next()).done) break; - _ref = _i.value; - } - var key = _ref; - -1 === props.indexOf(key) && props.push(key); - } - return props; - }), - (Component.prototype.getProp = function(name) { - return this.props[name] || this.builtinProps[name]; - }), - (Component.prototype.registerDrivers = function() { - this.driverCache = {}; - var _iterator2 = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - __WEBPACK_IMPORTED_MODULE_12__drivers__ - ), - _isArray2 = Array.isArray(_iterator2), - _i2 = 0; - for ( - _iterator2 = _isArray2 - ? _iterator2 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator2 - ); - ; - - ) { - var _ref2; - if (_isArray2) { - if (_i2 >= _iterator2.length) break; - _ref2 = _iterator2[_i2++]; - } else { - if ((_i2 = _iterator2.next()).done) break; - _ref2 = _i2.value; - } - var driverName = _ref2; - if (0 !== driverName.indexOf('_')) { - var glob = __WEBPACK_IMPORTED_MODULE_12__drivers__[driverName].global(); - glob && this.driver(driverName, glob); - } - } - }), - (Component.prototype.driver = function(name, dep) { - if (!__WEBPACK_IMPORTED_MODULE_12__drivers__[name]) - throw new Error('Could not find driver for framework: ' + name); - return ( - this.driverCache[name] || - (this.driverCache[name] = __WEBPACK_IMPORTED_MODULE_12__drivers__[ - name - ].register(this, dep)), - this.driverCache[name] - ); - }), - (Component.prototype.registerChild = function() { - var _this2 = this; - Object(__WEBPACK_IMPORTED_MODULE_8__window__.f)() && - __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a.try(function() { - Object(__WEBPACK_IMPORTED_MODULE_8__window__.b)().tag === _this2.tag && - ((window.xchild = new __WEBPACK_IMPORTED_MODULE_4__child__.a(_this2)), - (window.xprops = window.xchild.props)); - }); - }), - (Component.prototype.listenDelegate = function() { - var _this3 = this; - Object(__WEBPACK_IMPORTED_MODULE_0_post_robot_src__.on)( - __WEBPACK_IMPORTED_MODULE_9__constants__.POST_MESSAGE.ALLOW_DELEGATE + - '_' + - this.name, - function(_ref3) { - return _ref3.source, _ref3.origin, _ref3.data, !0; - } - ), - Object(__WEBPACK_IMPORTED_MODULE_0_post_robot_src__.on)( - __WEBPACK_IMPORTED_MODULE_9__constants__.POST_MESSAGE.DELEGATE + - '_' + - this.name, - function(_ref4) { - var source = _ref4.source, - origin = _ref4.origin, - data = _ref4.data, - domain = _this3.getDomain(null, data.env || _this3.defaultEnv); - if (!domain) - throw new Error( - 'Could not determine domain to allow remote render' - ); - if ( - !Object(__WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.v)( - domain, - origin - ) - ) - throw new Error( - 'Can not render from ' + - origin + - ' - expected ' + - domain.toString() - ); - var delegate = _this3.delegate(source, data.options); - return { - overrides: delegate.getOverrides(data.context), - destroy: function destroy() { - return delegate.destroy(); - } - }; - } - ); - }), - (Component.prototype.canRenderTo = function(win) { - return Object(__WEBPACK_IMPORTED_MODULE_0_post_robot_src__.send)( - win, - __WEBPACK_IMPORTED_MODULE_9__constants__.POST_MESSAGE.ALLOW_DELEGATE + - '_' + - this.name - ) - .then(function(_ref5) { - return _ref5.data; - }) - .catch(function() { - return !1; - }); - }), - (Component.prototype.getValidDomain = function(url) { - if (url) { - var domain = Object( - __WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.g - )(url); - if ('string' == typeof this.domain && domain === this.domain) - return domain; - if (this.domain && 'object' === _typeof(this.domain)) { - var _iterator3 = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - this.domain - ), - _isArray3 = Array.isArray(_iterator3), - _i3 = 0; - for ( - _iterator3 = _isArray3 - ? _iterator3 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator3 - ); - ; - - ) { - var _ref6; - if (_isArray3) { - if (_i3 >= _iterator3.length) break; - _ref6 = _iterator3[_i3++]; - } else { - if ((_i3 = _iterator3.next()).done) break; - _ref6 = _i3.value; - } - var env = _ref6; - if ('test' !== env && domain === this.domain[env]) return domain; - } - } - } - }), - (Component.prototype.getDomain = function(url, env) { - var domain = this.getForEnv(this.domain, env); - if (domain) return domain; - if ((domain = this.getValidDomain(url))) return domain; - var envUrl = this.getForEnv(this.url, env); - return envUrl - ? Object(__WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.g)(envUrl) - : url - ? Object(__WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.g)(url) - : void 0; - }), - (Component.prototype.getBridgeUrl = function(env) { - return this.getForEnv(this.bridgeUrl, env); - }), - (Component.prototype.getForEnv = function(item, env) { - if (item) { - if ('string' == typeof item || item instanceof RegExp) return item; - if ((env || (env = this.defaultEnv), env)) - return env && - 'object' === (void 0 === item ? 'undefined' : _typeof(item)) && - item[env] - ? item[env] - : void 0; - } - }), - (Component.prototype.getBridgeDomain = function(env) { - var bridgeDomain = this.getForEnv(this.bridgeDomain, env); - if (bridgeDomain) return bridgeDomain; - var bridgeUrl = this.getBridgeUrl(env); - return bridgeUrl - ? Object(__WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.g)( - bridgeUrl - ) - : void 0; - }), - (Component.prototype.getUrl = function(env, props) { - return ( - this.getForEnv(this.url, env) || - (this.buildUrl ? this.buildUrl(props) : void 0) - ); - }), - (Component.prototype.isXComponent = function() { - return Object(__WEBPACK_IMPORTED_MODULE_8__window__.f)(); - }), - (Component.prototype.isChild = function() { - return ( - Object(__WEBPACK_IMPORTED_MODULE_8__window__.f)() && - window.xprops && - Object(__WEBPACK_IMPORTED_MODULE_8__window__.b)().tag === this.tag - ); - }), - (Component.prototype.createError = function(message, tag) { - return new Error('[' + (tag || this.tag) + '] ' + message); - }), - (Component.prototype.init = function(props, context, element) { - return new __WEBPACK_IMPORTED_MODULE_5__parent__.a( - this, - this.getRenderContext(context, element), - { props: props } - ); - }), - (Component.prototype.delegate = function(source, options) { - return new __WEBPACK_IMPORTED_MODULE_6__delegate__.a(this, source, options); - }), - (Component.prototype.validateRenderContext = function(context, element) { - if (context && !this.contexts[context]) - throw new Error('[' + this.tag + '] Can not render to ' + context); - if ( - !element && - context === __WEBPACK_IMPORTED_MODULE_9__constants__.CONTEXT_TYPES.IFRAME - ) - throw new Error( - '[' + - this.tag + - '] Context type ' + - __WEBPACK_IMPORTED_MODULE_9__constants__.CONTEXT_TYPES.IFRAME + - ' requires an element selector' - ); - }), - (Component.prototype.getDefaultContext = function() { - if (this.defaultContext) return this.defaultContext; - if ( - this.contexts[ - __WEBPACK_IMPORTED_MODULE_9__constants__.CONTEXT_TYPES.IFRAME - ] - ) - return __WEBPACK_IMPORTED_MODULE_9__constants__.CONTEXT_TYPES.IFRAME; - if ( - this.contexts[ - __WEBPACK_IMPORTED_MODULE_9__constants__.CONTEXT_TYPES.POPUP - ] - ) - return __WEBPACK_IMPORTED_MODULE_9__constants__.CONTEXT_TYPES.POPUP; - throw new Error('Can not determine default context'); - }), - (Component.prototype.getRenderContext = function(context, element) { - return ( - (context = context || this.getDefaultContext()), - this.validateRenderContext(context, element), - context - ); - }), - (Component.prototype.render = function(props, element) { - var _this4 = this; - return __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a.try(function() { - return new __WEBPACK_IMPORTED_MODULE_5__parent__.a( - _this4, - _this4.getRenderContext(null, element), - { props: props } - ).render(element); - }); - }), - (Component.prototype.renderIframe = function(props, element) { - var _this5 = this; - return __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a.try(function() { - return new __WEBPACK_IMPORTED_MODULE_5__parent__.a( - _this5, - _this5.getRenderContext( - __WEBPACK_IMPORTED_MODULE_9__constants__.CONTEXT_TYPES.IFRAME, - element - ), - { props: props } - ).render(element); - }); - }), - (Component.prototype.renderPopup = function(props) { - var _this6 = this; - return __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a.try(function() { - return new __WEBPACK_IMPORTED_MODULE_5__parent__.a( - _this6, - _this6.getRenderContext( - __WEBPACK_IMPORTED_MODULE_9__constants__.CONTEXT_TYPES.POPUP - ), - { props: props } - ).render(); - }); - }), - (Component.prototype.renderTo = function(win, props, element) { - var _this7 = this; - return __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a.try(function() { - return new __WEBPACK_IMPORTED_MODULE_5__parent__.a( - _this7, - _this7.getRenderContext(null, element), - { props: props } - ).renderTo(win, element); - }); - }), - (Component.prototype.renderIframeTo = function(win, props, element) { - var _this8 = this; - return __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a.try(function() { - return new __WEBPACK_IMPORTED_MODULE_5__parent__.a( - _this8, - _this8.getRenderContext( - __WEBPACK_IMPORTED_MODULE_9__constants__.CONTEXT_TYPES.IFRAME, - element - ), - { props: props } - ).renderTo(win, element); - }); - }), - (Component.prototype.renderPopupTo = function(win, props) { - var _this9 = this; - return __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a.try(function() { - return new __WEBPACK_IMPORTED_MODULE_5__parent__.a( - _this9, - _this9.getRenderContext( - __WEBPACK_IMPORTED_MODULE_9__constants__.CONTEXT_TYPES.POPUP - ), - { props: props } - ).renderTo(win); - }); - }), - (Component.prototype.prerender = function(props, element) { - var instance = new __WEBPACK_IMPORTED_MODULE_5__parent__.a( - this, - this.getRenderContext(null, element), - { props: props } - ); - return ( - instance.prefetch(), - { - render: function render(innerProps, innerElement) { - return ( - innerProps && instance.updateProps(innerProps), - instance.render(innerElement) - ); - }, - renderTo: function renderTo(win, innerProps, innerElement) { - return ( - innerProps && instance.updateProps(innerProps), - instance.renderTo(win, innerElement) - ); - }, - get html() { - return instance.html; - }, - set html(value) { - instance.html = value; - } - } - ); - }), - (Component.prototype.log = function(event) { - var payload = - arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - Object(__WEBPACK_IMPORTED_MODULE_13__lib__.C)(this.name, event, payload); - }), - (Component.prototype.logWarning = function(event, payload) { - Object(__WEBPACK_IMPORTED_MODULE_13__lib__._0)(this.name, event, payload); - }), - (Component.prototype.logError = function(event, payload) { - Object(__WEBPACK_IMPORTED_MODULE_13__lib__.r)(this.name, event, payload); - }), - (Component.getByTag = function(tag) { - return Component.components[tag]; - }), - Component - ); - })(__WEBPACK_IMPORTED_MODULE_3__base__.a)), - (target = _class.prototype), - (decorators = [__WEBPACK_IMPORTED_MODULE_13__lib__.G]), - (descriptor = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - _class.prototype, - 'getPropNames' - )), - (context = _class.prototype), - (desc = {}), - __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - descriptor - ).forEach(function(key) { - desc[key] = descriptor[key]; - }), - (desc.enumerable = !!desc.enumerable), - (desc.configurable = !!desc.configurable), - ('value' in desc || desc.initializer) && (desc.writable = !0), - (desc = decorators - .slice() - .reverse() - .reduce(function(desc, decorator) { - return decorator(target, 'getPropNames', desc) || desc; - }, desc)), - context && - void 0 !== desc.initializer && - ((desc.value = desc.initializer ? desc.initializer.call(context) : void 0), - (desc.initializer = void 0)), - void 0 === desc.initializer && - (__WEBPACK_IMPORTED_MODULE_9_babel_runtime_core_js_object_define_property___default()( - target, - 'getPropNames', - desc - ), - (desc = null)), - _class); - Component.components = {}; - }, - './node_modules/xcomponent/src/component/component/props.js': function node_modulesXcomponentSrcComponentComponentPropsJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_exports__.a = function getInternalProps() { - return { - env: { - type: 'string', - required: !1, - queryParam: !0, - def: function def() { - return this.defaultEnv; - } - }, - uid: { - type: 'string', - def: function def() { - return Object(__WEBPACK_IMPORTED_MODULE_1__lib__.Y)(); - }, - queryParam: !0 - }, - logLevel: { - type: 'string', - required: !1, - queryParam: !0, - def: function def() { - return this.defaultLogLevel; - } - }, - url: { type: 'string', required: !1, promise: !0, sendToChild: !1 }, - version: { type: 'string', required: !1, queryParam: !0 }, - timeout: { type: 'number', required: !1, sendToChild: !1 }, - onDisplay: { - type: 'function', - required: !1, - noop: !0, - promisify: !0, - memoize: !0, - sendToChild: !1 - }, - onEnter: { - type: 'function', - required: !1, - noop: !0, - promisify: !0, - sendToChild: !1 - }, - onRender: { - type: 'function', - required: !1, - noop: !0, - promisify: !0, - sendToChild: !1 - }, - onClose: { - type: 'function', - required: !1, - noop: !0, - once: !0, - promisify: !0, - sendToChild: !1 - }, - onTimeout: { - type: 'function', - required: !1, - memoize: !0, - promisify: !0, - sendToChild: !1, - def: function def() { - return function(err) { - if (this.props.onError) return this.props.onError(err); - throw err; - }; - } - }, - onError: { - type: 'function', - required: !1, - promisify: !0, - sendToChild: !0, - once: !0 - } - }; - }; - var __WEBPACK_IMPORTED_MODULE_1__lib__ = (__webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ), - __webpack_require__('./node_modules/xcomponent/src/lib/index.js')); - }, - './node_modules/xcomponent/src/component/component/templates/component.jsx': function node_modulesXcomponentSrcComponentComponentTemplatesComponentJsx( - module, - __webpack_exports__, - __webpack_require__ - ) { - (__webpack_exports__.a = function defaultPrerenderTemplate(_ref) { - var jsxDom = _ref.jsxDom; - return jsxDom( - 'html', - null, - jsxDom( - 'head', - null, - jsxDom( - 'style', - null, - '\n html, body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n top: 0;\n left: 0;\n margin: 0;\n text-align: center;\n }\n\n .spinner {\n position: absolute;\n max-height: 60vmin;\n max-width: 60vmin;\n height: 40px;\n width: 40px;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n z-index: 10;\n }\n\n .spinner .loader {\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n border: 3px solid rgba(0, 0, 0, .2);\n border-top-color: rgba(33, 128, 192, 0.8);\n border-radius: 100%;\n animation: rotation .7s infinite linear;\n\n }\n\n @keyframes rotation {\n from {\n transform: rotate(0deg)\n }\n to {\n transform: rotate(359deg)\n }\n }\n ' - ) - ), - jsxDom( - 'body', - null, - jsxDom( - 'div', - { class: 'spinner' }, - jsxDom('div', { id: 'loader', class: 'loader' }) - ) - ) - ); - }), - __webpack_require__('./node_modules/xcomponent/src/component/parent/index.js'); - }, - './node_modules/xcomponent/src/component/component/templates/container.jsx': function node_modulesXcomponentSrcComponentComponentTemplatesContainerJsx( - module, - __webpack_exports__, - __webpack_require__ - ) { - (__webpack_exports__.a = function defaultContainerTemplate(_ref) { - var id = _ref.id, - tag = _ref.tag, - context = _ref.context, - CLASS = _ref.CLASS, - outlet = _ref.outlet, - jsxDom = _ref.jsxDom, - _ref$dimensions = _ref.dimensions, - width = _ref$dimensions.width, - height = _ref$dimensions.height; - return jsxDom( - 'div', - { - id: id, - class: - CLASS.XCOMPONENT + - ' ' + - CLASS.XCOMPONENT + - '-tag-' + - tag + - ' ' + - CLASS.XCOMPONENT + - '-context-' + - context - }, - jsxDom( - 'style', - null, - '\n #' + - id + - ', #' + - id + - ' > .' + - CLASS.OUTLET + - ' {\n width: ' + - width + - ';\n height: ' + - height + - ';\n }\n\n #' + - id + - ' > .' + - CLASS.OUTLET + - ' {\n display: inline-block;\n position: relative;\n }\n\n #' + - id + - ' > .' + - CLASS.OUTLET + - ' > iframe {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n transition: opacity .2s ease-in-out;\n }\n\n #' + - id + - ' > .' + - CLASS.OUTLET + - ' > iframe.' + - CLASS.VISIBLE + - ' {\n opacity: 1;\n }\n\n #' + - id + - ' > .' + - CLASS.OUTLET + - ' > iframe.' + - CLASS.INVISIBLE + - ' {\n opacity: 0;\n }\n ' - ), - outlet - ); - }), - __webpack_require__('./node_modules/xcomponent/src/component/parent/index.js'); - }, - './node_modules/xcomponent/src/component/component/templates/index.js': function node_modulesXcomponentSrcComponentComponentTemplatesIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - var __WEBPACK_IMPORTED_MODULE_0__container__ = __webpack_require__( - './node_modules/xcomponent/src/component/component/templates/container.jsx' - ); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__container__.a; - }); - var __WEBPACK_IMPORTED_MODULE_1__component__ = __webpack_require__( - './node_modules/xcomponent/src/component/component/templates/component.jsx' - ); - __webpack_require__.d(__webpack_exports__, 'b', function() { - return __WEBPACK_IMPORTED_MODULE_1__component__.a; - }); - }, - './node_modules/xcomponent/src/component/component/validate.js': function node_modulesXcomponentSrcComponentComponentValidateJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_exports__.a = function validate(options) { - if (!options) throw new Error('Expecred options to be passed'); - if (!options.tag || !options.tag.match(/^[a-z0-9-]+$/)) - throw new Error('Invalid options.tag: ' + options.tag); - if ( - ((function validatePropDefinitions(options) { - if (options.props && 'object' !== _typeof(options.props)) - throw new Error('Expected options.props to be an object'); - if (options.props) { - var _iterator = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - options.props - ), - _isArray = Array.isArray(_iterator), - _i = 0; - for ( - _iterator = _isArray - ? _iterator - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator - ); - ; - - ) { - var _ref; - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - if ((_i = _iterator.next()).done) break; - _ref = _i.value; - } - var key = _ref, - prop = options.props[key]; - if (!prop || 'object' !== (void 0 === prop ? 'undefined' : _typeof(prop))) - throw new Error('Expected options.props.' + key + ' to be an object'); - if (!prop.type) throw new Error('Expected prop.type'); - if ( - -1 === - __WEBPACK_IMPORTED_MODULE_0__constants__.PROP_TYPES_LIST.indexOf( - prop.type - ) - ) - throw new Error( - 'Expected prop.type to be one of ' + - __WEBPACK_IMPORTED_MODULE_0__constants__.PROP_TYPES_LIST.join(', ') - ); - if (prop.required && prop.def) - throw new Error('Required prop can not have a default value'); - } - } - })(options), - options.dimensions) - ) { - if ( - options.dimensions && - !Object(__WEBPACK_IMPORTED_MODULE_1__lib__.E)(options.dimensions.width) && - !Object(__WEBPACK_IMPORTED_MODULE_1__lib__.D)(options.dimensions.width) - ) - throw new Error( - 'Expected options.dimensions.width to be a px or % string value' - ); - if ( - options.dimensions && - !Object(__WEBPACK_IMPORTED_MODULE_1__lib__.E)(options.dimensions.height) && - !Object(__WEBPACK_IMPORTED_MODULE_1__lib__.D)(options.dimensions.height) - ) - throw new Error( - 'Expected options.dimensions.height to be a px or % string value' - ); - } - if (options.contexts) { - if (options.contexts.popup) - throw new Error( - 'Popups not supported in this build -- please use the full xcomponent.js build' - ); - var anyEnabled = !1, - _iterator2 = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - options.contexts - ), - _isArray2 = Array.isArray(_iterator2), - _i2 = 0; - for ( - _iterator2 = _isArray2 - ? _iterator2 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator2 - ); - ; - - ) { - var _ref2; - if (_isArray2) { - if (_i2 >= _iterator2.length) break; - _ref2 = _iterator2[_i2++]; - } else { - if ((_i2 = _iterator2.next()).done) break; - _ref2 = _i2.value; - } - var context = _ref2; - if ( - -1 === - __WEBPACK_IMPORTED_MODULE_0__constants__.CONTEXT_TYPES_LIST.indexOf(context) - ) - throw new Error('Unsupported context type: ' + context); - ((options.contexts && options.contexts[context]) || - (options.contexts && void 0 === options.contexts[context])) && - (anyEnabled = !0); - } - if (!anyEnabled) throw new Error('No context type is enabled'); - } - if (options.defaultContext) { - if ( - -1 === - __WEBPACK_IMPORTED_MODULE_0__constants__.CONTEXT_TYPES_LIST.indexOf( - options.defaultContext - ) - ) - throw new Error( - 'Unsupported context type: ' + (options.defaultContext || 'unknown') - ); - if ( - options.contexts && - options.defaultContext && - !options.contexts[options.defaultContext] - ) - throw new Error( - 'Disallowed default context type: ' + (options.defaultContext || 'unknown') - ); - } - if (!options.url && !options.buildUrl) - throw new Error('Expected options.url to be passed'); - if (options.url && options.buildUrl) - throw new Error('Can not pass options.url and options.buildUrl'); - if (options.defaultEnv) { - if ('string' != typeof options.defaultEnv) - throw new Error('Expected options.defaultEnv to be a string'); - if (!options.buildUrl && 'object' !== _typeof(options.url)) - throw new Error('Expected options.url to be an object mapping env->url'); - if ( - options.url && - 'object' === _typeof(options.url) && - !options.url[options.defaultEnv] - ) - throw new Error('No url found for default env: ' + options.defaultEnv); - } - if (options.url && 'object' === _typeof(options.url)) { - if (!options.defaultEnv) - throw new Error('Must pass options.defaultEnv with env->url mapping'); - var _iterator3 = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - options.url - ), - _isArray3 = Array.isArray(_iterator3), - _i3 = 0; - for ( - _iterator3 = _isArray3 - ? _iterator3 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator3 - ); - ; - - ) { - var _ref3; - if (_isArray3) { - if (_i3 >= _iterator3.length) break; - _ref3 = _iterator3[_i3++]; - } else { - if ((_i3 = _iterator3.next()).done) break; - _ref3 = _i3.value; - } - var env = _ref3; - if (!options.url[env]) throw new Error('No url specified for env: ' + env); - } - } - if (options.prerenderTemplate && 'function' != typeof options.prerenderTemplate) - throw new Error('Expected options.prerenderTemplate to be a function'); - if (options.containerTemplate && 'function' != typeof options.containerTemplate) - throw new Error('Expected options.containerTemplate to be a function'); - }; - var __WEBPACK_IMPORTED_MODULE_0__constants__ = __webpack_require__( - './node_modules/xcomponent/src/constants.js' - ), - __WEBPACK_IMPORTED_MODULE_1__lib__ = __webpack_require__( - './node_modules/xcomponent/src/lib/index.js' - ), - _typeof = (__webpack_require__( - './node_modules/xcomponent/src/component/component/index.js' - ), - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - 'symbol' == - __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_symbol_iterator___default.a - ) - ? function(obj) { - return void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - } - : function(obj) { - return obj && - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj.constructor === - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj !== - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a - .prototype - ? 'symbol' - : void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - }); - }, - './node_modules/xcomponent/src/component/delegate/index.js': function node_modulesXcomponentSrcComponentDelegateIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return DelegateComponent; - }); - var __WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_2__base__ = (__webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ), - __webpack_require__('./node_modules/xcomponent/src/component/base.js')), - __WEBPACK_IMPORTED_MODULE_3__parent__ = __webpack_require__( - './node_modules/xcomponent/src/component/parent/index.js' - ), - __WEBPACK_IMPORTED_MODULE_4__parent_drivers__ = __webpack_require__( - './node_modules/xcomponent/src/component/parent/drivers.js' - ), - _createClass = (__webpack_require__( - './node_modules/xcomponent/src/component/component/index.js' - ), - (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - __WEBPACK_IMPORTED_MODULE_9_babel_runtime_core_js_object_define_property___default()( - target, - descriptor.key, - descriptor - ); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })()), - DelegateComponent = (function(_BaseComponent) { - function DelegateComponent(component, source, options) { - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, DelegateComponent); - var _this = (function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !call || - ('object' != - (void 0 === call - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - call - )) && - 'function' != typeof call) - ? self - : call; - })(this, _BaseComponent.call(this)); - (_this.component = component), - _this.clean.set('source', source), - (_this.context = options.context), - (_this.props = { - uid: options.props.uid, - dimensions: options.props.dimensions, - onClose: options.props.onClose, - onDisplay: options.props.onDisplay - }); - var _iterator = component.getPropNames(), - _isArray = Array.isArray(_iterator), - _i = 0; - for ( - _iterator = _isArray - ? _iterator - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator - ); - ; - - ) { - var _ref; - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - if ((_i = _iterator.next()).done) break; - _ref = _i.value; - } - var propName = _ref; - _this.component.getProp(propName).allowDelegate && - (_this.props[propName] = options.props[propName]); - } - (_this.focus = function() { - if (_this.driver.openOnFocus) - try { - var win = window.open('', _this.childWindowName); - win && win.focus(); - } catch (err) {} - return options.overrides.focus.call(_this); - }), - _this.clean.register('destroyFocusOverride', function() { - _this.focus = function() {}; - }), - (_this.userClose = options.overrides.userClose), - (_this.getDomain = options.overrides.getDomain), - (_this.error = options.overrides.error), - (_this.on = options.overrides.on); - var delegateOverrides = - __WEBPACK_IMPORTED_MODULE_4__parent_drivers__.a[options.context] - .delegateOverrides, - _iterator2 = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - delegateOverrides - ), - _isArray2 = Array.isArray(_iterator2), - _i2 = 0; - for ( - _iterator2 = _isArray2 - ? _iterator2 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator2 - ); - ; - - ) { - var _ref2; - if (_isArray2) { - if (_i2 >= _iterator2.length) break; - _ref2 = _iterator2[_i2++]; - } else { - if ((_i2 = _iterator2.next()).done) break; - _ref2 = _i2.value; - } - var key = _ref2; - _this[key] = __WEBPACK_IMPORTED_MODULE_3__parent__.a.prototype[key]; - } - return ( - (_this.childWindowName = options.childWindowName), - __WEBPACK_IMPORTED_MODULE_3__parent__.a.prototype.registerActiveComponent.call( - _this - ), - _this.watchForClose(), - _this - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - (void 0 === superClass - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - superClass - )) - ); - (subClass.prototype = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_create___default()( - superClass && superClass.prototype, - { - constructor: { - value: subClass, - enumerable: !1, - writable: !0, - configurable: !0 - } - } - )), - superClass && - (__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_set_prototype_of___default.a - ? __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_set_prototype_of___default()( - subClass, - superClass - ) - : (subClass.__proto__ = superClass)); - })(DelegateComponent, _BaseComponent), - (DelegateComponent.prototype.watchForClose = function() { - var _this2 = this, - closeWindowListener = Object( - __WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.w - )( - this.source, - function() { - return _this2.destroy(); - }, - 3e3 - ); - this.clean.register( - 'destroyCloseWindowListener', - closeWindowListener.cancel - ); - }), - (DelegateComponent.prototype.getOverrides = function(context) { - var delegateOverrides = - __WEBPACK_IMPORTED_MODULE_4__parent_drivers__.a[context] - .delegateOverrides, - overrides = {}, - self = this, - _iterator3 = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - delegateOverrides - ), - _isArray3 = Array.isArray(_iterator3), - _i3 = 0; - for ( - _iterator3 = _isArray3 - ? _iterator3 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator3 - ); - ; - - ) { - var _ref3; - if ( - 'break' === - (function() { - if (_isArray3) { - if (_i3 >= _iterator3.length) return 'break'; - _ref3 = _iterator3[_i3++]; - } else { - if ((_i3 = _iterator3.next()).done) return 'break'; - _ref3 = _i3.value; - } - var key = _ref3; - overrides[key] = function() { - return __WEBPACK_IMPORTED_MODULE_3__parent__.a.prototype[key].apply( - self, - arguments - ); - }; - })() - ) - break; - } - return overrides; - }), - (DelegateComponent.prototype.destroy = function() { - return this.clean.all(); - }), - _createClass(DelegateComponent, [ - { - key: 'driver', - get: function get() { - if (!this.context) throw new Error('Context not set'); - return __WEBPACK_IMPORTED_MODULE_4__parent_drivers__.a[this.context]; - } - } - ]), - DelegateComponent - ); - })(__WEBPACK_IMPORTED_MODULE_2__base__.a); - }, - './node_modules/xcomponent/src/component/index.js': function node_modulesXcomponentSrcComponentIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - var __WEBPACK_IMPORTED_MODULE_0__component__ = __webpack_require__( - './node_modules/xcomponent/src/component/component/index.js' - ); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__component__.a; - }), - __webpack_require__('./node_modules/xcomponent/src/component/parent/index.js'), - __webpack_require__('./node_modules/xcomponent/src/component/child/index.js'); - }, - './node_modules/xcomponent/src/component/parent/drivers.js': function node_modulesXcomponentSrcComponentParentDriversJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return RENDER_DRIVERS; - }); - var __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__ = __webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1_post_robot_src__ = __webpack_require__( - './node_modules/post-robot/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__( - './node_modules/xcomponent/src/lib/index.js' - ), - __WEBPACK_IMPORTED_MODULE_4__constants__ = __webpack_require__( - './node_modules/xcomponent/src/constants.js' - ), - __WEBPACK_IMPORTED_MODULE_5__window__ = __webpack_require__( - './node_modules/xcomponent/src/component/window.js' - ), - _extends = (__webpack_require__('./node_modules/xcomponent/src/error.js'), - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_object_assign___default.a || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && - (target[key] = source[key]); - } - return target; - }), - RENDER_DRIVERS = {}; - RENDER_DRIVERS[__WEBPACK_IMPORTED_MODULE_4__constants__.CONTEXT_TYPES.IFRAME] = { - focusable: !1, - renderedIntoContainerTemplate: !0, - allowResize: !0, - openOnClick: !1, - openOnFocus: !1, - needsBridge: !1, - open: function open(url) { - var _this = this, - attributes = this.component.attributes.iframe || {}; - return ( - (this.iframe = Object(__WEBPACK_IMPORTED_MODULE_3__lib__.B)( - { - url: url, - attributes: _extends( - { - name: this.childWindowName, - scrolling: this.component.scrolling ? 'yes' : 'no' - }, - attributes - ), - class: [ - __WEBPACK_IMPORTED_MODULE_4__constants__.CLASS_NAMES.COMPONENT_FRAME, - __WEBPACK_IMPORTED_MODULE_4__constants__.CLASS_NAMES.INVISIBLE - ] - }, - this.element - )), - Object(__WEBPACK_IMPORTED_MODULE_3__lib__.f)(this.iframe).then(function( - frameWindow - ) { - _this.window = frameWindow; - var detectClose = function detectClose() { - __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__.a - .try(function() { - return _this.props.onClose( - __WEBPACK_IMPORTED_MODULE_4__constants__.CLOSE_REASONS - .CLOSE_DETECTED - ); - }) - .finally(function() { - return _this.destroy(); - }); - }, - iframeWatcher = Object(__WEBPACK_IMPORTED_MODULE_3__lib__._1)( - _this.iframe, - detectClose - ), - elementWatcher = Object(__WEBPACK_IMPORTED_MODULE_3__lib__._1)( - _this.element, - detectClose - ); - _this.clean.register('destroyWindow', function() { - iframeWatcher.cancel(), - elementWatcher.cancel(), - Object(__WEBPACK_IMPORTED_MODULE_1_post_robot_src__.cleanUpWindow)( - _this.window - ), - delete _this.window, - _this.iframe && - (Object(__WEBPACK_IMPORTED_MODULE_3__lib__.l)(_this.iframe), - delete _this.iframe); - }); - }) - ); - }, - openPrerender: function openPrerender() { - var _this2 = this, - attributes = this.component.attributes.iframe || {}; - return ( - (this.prerenderIframe = Object(__WEBPACK_IMPORTED_MODULE_3__lib__.B)( - { - attributes: _extends( - { - name: '__prerender__' + this.childWindowName, - scrolling: this.component.scrolling ? 'yes' : 'no' - }, - attributes - ), - class: [ - __WEBPACK_IMPORTED_MODULE_4__constants__.CLASS_NAMES.PRERENDER_FRAME, - __WEBPACK_IMPORTED_MODULE_4__constants__.CLASS_NAMES.VISIBLE - ] - }, - this.element - )), - Object(__WEBPACK_IMPORTED_MODULE_3__lib__.f)(this.prerenderIframe).then( - function(prerenderFrameWindow) { - (_this2.prerenderWindow = prerenderFrameWindow), - _this2.clean.register('destroyPrerender', function() { - _this2.prerenderIframe && - (Object(__WEBPACK_IMPORTED_MODULE_3__lib__.l)( - _this2.prerenderIframe - ), - delete _this2.prerenderIframe); - }); - } - ) - ); - }, - switchPrerender: function switchPrerender() { - var _this3 = this; - Object(__WEBPACK_IMPORTED_MODULE_3__lib__.a)( - this.prerenderIframe, - __WEBPACK_IMPORTED_MODULE_4__constants__.CLASS_NAMES.INVISIBLE - ), - Object(__WEBPACK_IMPORTED_MODULE_3__lib__.N)( - this.prerenderIframe, - __WEBPACK_IMPORTED_MODULE_4__constants__.CLASS_NAMES.VISIBLE - ), - Object(__WEBPACK_IMPORTED_MODULE_3__lib__.a)( - this.iframe, - __WEBPACK_IMPORTED_MODULE_4__constants__.CLASS_NAMES.VISIBLE - ), - Object(__WEBPACK_IMPORTED_MODULE_3__lib__.N)( - this.iframe, - __WEBPACK_IMPORTED_MODULE_4__constants__.CLASS_NAMES.INVISIBLE - ), - setTimeout(function() { - _this3.prerenderIframe && - Object(__WEBPACK_IMPORTED_MODULE_3__lib__.l)(_this3.prerenderIframe); - }, 1e3); - }, - delegateOverrides: { - openContainer: __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_DELEGATE, - destroyComponent: - __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_DELEGATE, - destroyContainer: - __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_DELEGATE, - cancelContainerEvents: - __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_DELEGATE, - createPrerenderTemplate: - __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_DELEGATE, - elementReady: __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_DELEGATE, - showContainer: __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_DELEGATE, - showComponent: __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_DELEGATE, - hideContainer: __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_DELEGATE, - hideComponent: __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_DELEGATE, - hide: __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_DELEGATE, - show: __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_DELEGATE, - resize: __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_DELEGATE, - loadUrl: __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_DELEGATE, - hijackSubmit: __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_DELEGATE, - openPrerender: __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_DELEGATE, - switchPrerender: - __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_DELEGATE, - renderTemplate: __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_ORIGINAL, - openContainerFrame: - __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_ORIGINAL, - getOutlet: __WEBPACK_IMPORTED_MODULE_4__constants__.DELEGATE.CALL_ORIGINAL, - open: function open(original, override) { - return function() { - var _this4 = this; - return override.apply(this, arguments).then(function() { - if ( - (_this4.clean.set( - 'window', - Object(__WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.a)( - Object(__WEBPACK_IMPORTED_MODULE_5__window__.c)(), - _this4.childWindowName - ) - ), - !_this4.window) - ) - throw new Error('Unable to find parent component iframe window'); - }); - }; - } - }, - resize: function resize(width, height) { - width && - ((this.container.style.width = Object(__WEBPACK_IMPORTED_MODULE_3__lib__.W)( - width - )), - (this.element.style.width = Object(__WEBPACK_IMPORTED_MODULE_3__lib__.W)( - width - ))), - height && - ((this.container.style.height = Object( - __WEBPACK_IMPORTED_MODULE_3__lib__.W - )(height)), - (this.element.style.height = Object(__WEBPACK_IMPORTED_MODULE_3__lib__.W)( - height - ))); - }, - show: function show() { - Object(__WEBPACK_IMPORTED_MODULE_3__lib__.T)(this.element); - }, - hide: function hide() { - Object(__WEBPACK_IMPORTED_MODULE_3__lib__.A)(this.element); - }, - loadUrl: function loadUrl(url) { - this.iframe.setAttribute('src', url); - } - }; - }, - './node_modules/xcomponent/src/component/parent/index.js': function node_modulesXcomponentSrcComponentParentIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function _applyDecoratedDescriptor( - target, - property, - decorators, - descriptor, - context - ) { - var desc = {}; - return ( - __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - descriptor - ).forEach(function(key) { - desc[key] = descriptor[key]; - }), - (desc.enumerable = !!desc.enumerable), - (desc.configurable = !!desc.configurable), - ('value' in desc || desc.initializer) && (desc.writable = !0), - (desc = decorators - .slice() - .reverse() - .reduce(function(desc, decorator) { - return decorator(target, property, desc) || desc; - }, desc)), - context && - void 0 !== desc.initializer && - ((desc.value = desc.initializer ? desc.initializer.call(context) : void 0), - (desc.initializer = void 0)), - void 0 === desc.initializer && - (__WEBPACK_IMPORTED_MODULE_9_babel_runtime_core_js_object_define_property___default()( - target, - property, - desc - ), - (desc = null)), - desc - ); - } - __webpack_require__.d(__webpack_exports__, 'a', function() { - return ParentComponent; - }); - var _class, - __WEBPACK_IMPORTED_MODULE_0_beaver_logger_client__ = __webpack_require__( - './node_modules/beaver-logger/client/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1_post_robot_src__ = __webpack_require__( - './node_modules/post-robot/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__ = __webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_4__base__ = __webpack_require__( - './node_modules/xcomponent/src/component/base.js' - ), - __WEBPACK_IMPORTED_MODULE_5__window__ = __webpack_require__( - './node_modules/xcomponent/src/component/window.js' - ), - __WEBPACK_IMPORTED_MODULE_6__lib__ = __webpack_require__( - './node_modules/xcomponent/src/lib/index.js' - ), - __WEBPACK_IMPORTED_MODULE_7__constants__ = __webpack_require__( - './node_modules/xcomponent/src/constants.js' - ), - __WEBPACK_IMPORTED_MODULE_8__drivers__ = __webpack_require__( - './node_modules/xcomponent/src/component/parent/drivers.js' - ), - __WEBPACK_IMPORTED_MODULE_9__validate__ = __webpack_require__( - './node_modules/xcomponent/src/component/parent/validate.js' - ), - __WEBPACK_IMPORTED_MODULE_10__props__ = __webpack_require__( - './node_modules/xcomponent/src/component/parent/props.js' - ), - __WEBPACK_IMPORTED_MODULE_11__error__ = __webpack_require__( - './node_modules/xcomponent/src/error.js' - ), - _extends = (__webpack_require__( - './node_modules/xcomponent/src/component/component/index.js' - ), - __webpack_require__('./node_modules/xcomponent/src/component/component/props.js'), - __webpack_require__('./node_modules/xcomponent/src/component/child/index.js'), - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_object_assign___default.a || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && - (target[key] = source[key]); - } - return target; - }), - _typeof = - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - 'symbol' == - __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_symbol_iterator___default.a - ) - ? function(obj) { - return void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - } - : function(obj) { - return obj && - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj.constructor === - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj !== - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a - .prototype - ? 'symbol' - : void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - }, - _createClass = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - (descriptor.enumerable = descriptor.enumerable || !1), - (descriptor.configurable = !0), - 'value' in descriptor && (descriptor.writable = !0), - __WEBPACK_IMPORTED_MODULE_9_babel_runtime_core_js_object_define_property___default()( - target, - descriptor.key, - descriptor - ); - } - } - return function(Constructor, protoProps, staticProps) { - return ( - protoProps && defineProperties(Constructor.prototype, protoProps), - staticProps && defineProperties(Constructor, staticProps), - Constructor - ); - }; - })(); - (__WEBPACK_IMPORTED_MODULE_6__lib__.y.props = - __WEBPACK_IMPORTED_MODULE_6__lib__.y.props || {}), - (__WEBPACK_IMPORTED_MODULE_6__lib__.y.windows = - __WEBPACK_IMPORTED_MODULE_6__lib__.y.windows || {}); - var ParentComponent = (_applyDecoratedDescriptor( - (_class = (function(_BaseComponent) { - function ParentComponent(component, context, _ref) { - var props = _ref.props; - !(function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, ParentComponent); - var _this = (function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !call || - ('object' != - (void 0 === call - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - call - )) && - 'function' != typeof call) - ? self - : call; - })(this, _BaseComponent.call(this)); - return ( - (_this.component = component), - _this.validateParentDomain(), - (_this.context = context), - _this.setProps(props), - _this.props.logLevel && - Object(__WEBPACK_IMPORTED_MODULE_6__lib__.Q)(_this.props.logLevel), - (_this.childWindowName = _this.buildChildWindowName({ renderTo: window })), - _this.registerActiveComponent(), - _this.component.log('construct_parent'), - _this.watchForUnload(), - (_this.onInit = new __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a()), - _this.onInit.catch(function(err) { - return _this.error(err); - }), - _this - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - (void 0 === superClass - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - superClass - )) - ); - (subClass.prototype = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_create___default()( - superClass && superClass.prototype, - { - constructor: { - value: subClass, - enumerable: !1, - writable: !0, - configurable: !0 - } - } - )), - superClass && - (__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_set_prototype_of___default.a - ? __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_set_prototype_of___default()( - subClass, - superClass - ) - : (subClass.__proto__ = superClass)); - })(ParentComponent, _BaseComponent), - (ParentComponent.prototype.render = function(element) { - var _this2 = this, - loadUrl = - !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1]; - return this.tryInit(function() { - _this2.component.log('render_' + _this2.context, { - context: _this2.context, - element: element, - loadUrl: Object(__WEBPACK_IMPORTED_MODULE_6__lib__.U)(loadUrl) - }); - var tasks = {}; - return ( - (tasks.onRender = _this2.props.onRender()), - (tasks.getDomain = _this2.getDomain()), - (tasks.elementReady = __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.try( - function() { - if (element) return _this2.elementReady(element); - } - )), - (tasks.openContainer = tasks.elementReady.then(function() { - return _this2.openContainer(element); - })), - (tasks.showContainer = tasks.openContainer.then(function() { - return _this2.showContainer(); - })), - (tasks.openPrerender = tasks.openContainer.then(function() { - return _this2.openPrerender(); - })), - (tasks.switchPrerender = __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .all([tasks.openPrerender, _this2.onInit]) - .then(function() { - return _this2.switchPrerender(); - })), - (tasks.open = _this2.driver.openOnClick - ? _this2.open() - : tasks.openContainer.then(function() { - return _this2.open(); - })), - (tasks.listen = __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .all([tasks.getDomain, tasks.open]) - .then(function(_ref2) { - var domain = _ref2[0]; - _this2.listen(_this2.window, domain); - })), - (tasks.watchForClose = tasks.open.then(function() { - return _this2.watchForClose(); - })), - (tasks.linkDomain = __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .all([tasks.getDomain, tasks.open]) - .then(function(_ref3) { - var domain = _ref3[0]; - if ( - __WEBPACK_IMPORTED_MODULE_1_post_robot_src__.bridge && - 'string' == typeof domain - ) - return __WEBPACK_IMPORTED_MODULE_1_post_robot_src__.bridge.linkUrl( - _this2.window, - domain - ); - })), - _this2.html || - ((tasks.createPrerenderTemplate = tasks.openPrerender.then( - function() { - return _this2.createPrerenderTemplate(); - } - )), - (tasks.showComponent = tasks.createPrerenderTemplate.then(function() { - return _this2.showComponent(); - }))), - (tasks.openBridge = __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .all([tasks.getDomain, tasks.open]) - .then(function(_ref4) { - var domain = _ref4[0]; - return _this2.openBridge('string' == typeof domain ? domain : null); - })), - _this2.html - ? (tasks.loadHTML = tasks.open.then(function() { - return _this2.loadHTML(); - })) - : loadUrl && - ((tasks.buildUrl = _this2.buildUrl()), - (tasks.loadUrl = __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .all([ - tasks.buildUrl, - tasks.open, - tasks.linkDomain, - tasks.listen, - tasks.open, - tasks.openBridge, - tasks.createPrerenderTemplate - ]) - .then(function(_ref5) { - var url = _ref5[0]; - return _this2.loadUrl(url); - })), - (tasks.runTimeout = tasks.loadUrl.then(function() { - return _this2.runTimeout(); - }))), - __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.hash(tasks) - ); - }).then(function() { - return _this2.props.onEnter(); - }); - }), - (ParentComponent.prototype.getOutlet = function() { - return ( - (this.outlet = document.createElement('div')), - Object(__WEBPACK_IMPORTED_MODULE_6__lib__.a)( - this.outlet, - __WEBPACK_IMPORTED_MODULE_7__constants__.CLASS_NAMES.OUTLET - ), - this.outlet - ); - }), - (ParentComponent.prototype.validateParentDomain = function() { - var domain = Object( - __WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.f - )(); - if ( - !Object(__WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.v)( - this.component.allowedParentDomains, - domain - ) - ) - throw new __WEBPACK_IMPORTED_MODULE_11__error__.c( - 'Can not be rendered by domain: ' + domain - ); - }), - (ParentComponent.prototype.renderTo = function(win, element) { - var _this3 = this; - return this.tryInit(function() { - if (win === window) return _this3.render(element); - if ( - !Object(__WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.q)( - window, - win - ) - ) - throw new Error('Can only renderTo an adjacent frame'); - if (element && 'string' != typeof element) - throw new Error( - 'Element passed to renderTo must be a string selector, got ' + - (void 0 === element ? 'undefined' : _typeof(element)) + - ' ' + - element - ); - return ( - _this3.checkAllowRenderTo(win), - _this3.component.log('render_' + _this3.context + '_to_win', { - element: Object(__WEBPACK_IMPORTED_MODULE_6__lib__.U)(element), - context: _this3.context - }), - (_this3.childWindowName = _this3.buildChildWindowName({ - renderTo: win - })), - _this3.delegate(win), - _this3.render(element) - ); - }); - }), - (ParentComponent.prototype.prefetch = function() { - var _this4 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.try(function() { - _this4.html = _this4.buildUrl().then(function(url) { - return Object(__WEBPACK_IMPORTED_MODULE_6__lib__.L)(url).then(function( - html - ) { - return ( - '\n \n\n ' + - html + - "\n\n \n " - ); - }); - }); - }); - }), - (ParentComponent.prototype.loadHTML = function() { - var _this5 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.try(function() { - if (!_this5.html) throw new Error('Html not prefetched'); - return _this5.html.then(function(html) { - return Object( - __WEBPACK_IMPORTED_MODULE_6__lib__._3 - )(_this5.window, html); - }); - }); - }), - (ParentComponent.prototype.checkAllowRenderTo = function(win) { - if (!win) throw this.component.createError('Must pass window to renderTo'); - if (!Object(__WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.p)(win)) { - var origin = Object( - __WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.f - )(), - domain = this.component.getDomain(null, this.props.env); - if (!domain) - throw new Error('Could not determine domain to allow remote render'); - if ( - !Object(__WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.v)( - domain, - origin - ) - ) - throw new Error( - 'Can not render remotely to ' + - domain.toString() + - ' - can only render to ' + - origin - ); - } - }), - (ParentComponent.prototype.registerActiveComponent = function() { - var _this6 = this; - ParentComponent.activeComponents.push(this), - this.clean.register(function() { - ParentComponent.activeComponents.splice( - ParentComponent.activeComponents.indexOf(_this6), - 1 - ); - }); - }), - (ParentComponent.prototype.getComponentParentRef = function() { - var renderToWindow = - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : window; - if ( - this.context === - __WEBPACK_IMPORTED_MODULE_7__constants__.CONTEXT_TYPES.POPUP - ) - return { - ref: __WEBPACK_IMPORTED_MODULE_7__constants__.WINDOW_REFERENCES.OPENER - }; - if (renderToWindow === window) - return Object(__WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.r)( - window - ) - ? { - ref: __WEBPACK_IMPORTED_MODULE_7__constants__.WINDOW_REFERENCES.TOP - } - : { - ref: - __WEBPACK_IMPORTED_MODULE_7__constants__.WINDOW_REFERENCES.PARENT, - distance: Object( - __WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.e - )(window) - }; - var uid = Object(__WEBPACK_IMPORTED_MODULE_6__lib__.Y)(); - return ( - (__WEBPACK_IMPORTED_MODULE_6__lib__.y.windows[uid] = window), - this.clean.register(function() { - delete __WEBPACK_IMPORTED_MODULE_6__lib__.y.windows[uid]; - }), - { - ref: __WEBPACK_IMPORTED_MODULE_7__constants__.WINDOW_REFERENCES.GLOBAL, - uid: uid - } - ); - }), - (ParentComponent.prototype.getRenderParentRef = function() { - var renderToWindow = - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : window; - if (renderToWindow === window) - return this.getComponentParentRef(renderToWindow); - var uid = Object(__WEBPACK_IMPORTED_MODULE_6__lib__.Y)(); - return ( - (__WEBPACK_IMPORTED_MODULE_6__lib__.y.windows[uid] = renderToWindow), - this.clean.register(function() { - delete __WEBPACK_IMPORTED_MODULE_6__lib__.y.windows[uid]; - }), - { - ref: __WEBPACK_IMPORTED_MODULE_7__constants__.WINDOW_REFERENCES.GLOBAL, - uid: uid - } - ); - }), - (ParentComponent.prototype.buildChildWindowName = function() { - var _ref6$renderTo = (arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : {} - ).renderTo, - renderTo = void 0 === _ref6$renderTo ? window : _ref6$renderTo, - sameDomain = Object( - __WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.p - )(renderTo), - uid = Object(__WEBPACK_IMPORTED_MODULE_6__lib__.Y)(), - tag = this.component.tag, - sProps = Object(__WEBPACK_IMPORTED_MODULE_6__lib__.P)( - this.getPropsForChild() - ), - componentParent = this.getComponentParentRef(renderTo), - renderParent = this.getRenderParentRef(renderTo), - props = !sameDomain - ? { - type: __WEBPACK_IMPORTED_MODULE_7__constants__.INITIAL_PROPS.UID, - uid: uid - } - : { - type: __WEBPACK_IMPORTED_MODULE_7__constants__.INITIAL_PROPS.RAW, - value: sProps - }; - return ( - props.type === - __WEBPACK_IMPORTED_MODULE_7__constants__.INITIAL_PROPS.UID && - ((__WEBPACK_IMPORTED_MODULE_6__lib__.y.props[uid] = sProps), - this.clean.register(function() { - delete __WEBPACK_IMPORTED_MODULE_6__lib__.y.props[uid]; - })), - Object(__WEBPACK_IMPORTED_MODULE_5__window__.a)( - this.component.name, - this.component.version, - { - uid: uid, - tag: tag, - componentParent: componentParent, - renderParent: renderParent, - props: props - } - ) - ); - }), - (ParentComponent.prototype.sendToParent = function(name, data) { - if (!Object(__WEBPACK_IMPORTED_MODULE_5__window__.c)()) - throw new Error('Can not find parent component window to message'); - return ( - this.component.log('send_to_parent_' + name), - Object(__WEBPACK_IMPORTED_MODULE_1_post_robot_src__.send)( - Object(__WEBPACK_IMPORTED_MODULE_5__window__.c)(), - name, - data, - { domain: Object(__WEBPACK_IMPORTED_MODULE_5__window__.d)() } - ) - ); - }), - (ParentComponent.prototype.setProps = function(props) { - var required = - !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1]; - Object(__WEBPACK_IMPORTED_MODULE_9__validate__.a)( - this.component, - props, - required - ), - this.component.validate && this.component.validate(this.component, props), - (this.props = this.props || {}), - Object(__WEBPACK_IMPORTED_MODULE_6__lib__.t)( - this.props, - Object(__WEBPACK_IMPORTED_MODULE_10__props__.a)( - this.component, - this, - props - ) - ); - }), - (ParentComponent.prototype.buildUrl = function() { - var _this7 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .all([ - this.props.url, - Object(__WEBPACK_IMPORTED_MODULE_10__props__.b)( - _extends({}, this.component.props, this.component.builtinProps), - this.props - ) - ]) - .then(function(_ref7) { - var url = _ref7[0], - query = _ref7[1]; - return url && !_this7.component.getValidDomain(url) - ? url - : __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .try(function() { - return ( - url || _this7.component.getUrl(_this7.props.env, _this7.props) - ); - }) - .then(function(finalUrl) { - return ( - (query[__WEBPACK_IMPORTED_MODULE_7__constants__.XCOMPONENT] = - '1'), - Object(__WEBPACK_IMPORTED_MODULE_6__lib__.u)(finalUrl, { - query: query - }) - ); - }); - }); - }), - (ParentComponent.prototype.getDomain = function() { - var _this8 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .try(function() { - return _this8.props.url; - }) - .then(function(url) { - return ( - _this8.component.getDomain(url, _this8.props.env) || - (_this8.component.buildUrl - ? __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .try(function() { - return _this8.component.buildUrl(_this8.props); - }) - .then(function(builtUrl) { - return _this8.component.getDomain(builtUrl, _this8.props.env); - }) - : void 0) - ); - }) - .then(function(domain) { - if (!domain) throw new Error('Could not determine domain'); - return domain; - }); - }), - (ParentComponent.prototype.getPropsForChild = function() { - var result = {}, - _iterator = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - this.props - ), - _isArray = Array.isArray(_iterator), - _i = 0; - for ( - _iterator = _isArray - ? _iterator - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator - ); - ; - - ) { - var _ref8; - if (_isArray) { - if (_i >= _iterator.length) break; - _ref8 = _iterator[_i++]; - } else { - if ((_i = _iterator.next()).done) break; - _ref8 = _i.value; - } - var key = _ref8, - prop = this.component.getProp(key); - (prop && !1 === prop.sendToChild) || (result[key] = this.props[key]); - } - return result; - }), - (ParentComponent.prototype.updateProps = function(props) { - var _this9 = this; - return ( - this.setProps(props, !1), - this.onInit.then(function() { - if (_this9.childExports) - return _this9.childExports.updateProps(_this9.getPropsForChild()); - throw new Error('Child exports were not available'); - }) - ); - }), - (ParentComponent.prototype.openBridge = function(domain) { - var _this10 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.try(function() { - if ( - __WEBPACK_IMPORTED_MODULE_1_post_robot_src__.bridge && - _this10.driver.needsBridge - ) { - var needsBridgeParams = { win: _this10.window }; - domain && (needsBridgeParams.domain = domain); - var needsBridge = __WEBPACK_IMPORTED_MODULE_1_post_robot_src__.bridge.needsBridge( - needsBridgeParams - ), - bridgeUrl = _this10.component.getBridgeUrl(_this10.props.env); - if (bridgeUrl) { - bridgeUrl = Object(__WEBPACK_IMPORTED_MODULE_6__lib__.u)(bridgeUrl, { - query: { version: _this10.component.version } - }); - var bridgeDomain = _this10.component.getBridgeDomain( - _this10.props.env - ); - if (!bridgeDomain) - throw new Error('Can not determine domain for bridge'); - return needsBridge - ? __WEBPACK_IMPORTED_MODULE_1_post_robot_src__.bridge - .openBridge(bridgeUrl, bridgeDomain) - .then(function(result) { - if (result) return result; - }) - : void 0; - } - if ( - needsBridge && - domain && - !__WEBPACK_IMPORTED_MODULE_1_post_robot_src__.bridge.hasBridge( - domain, - domain - ) - ) - throw new Error('Bridge url needed to render ' + _this10.context); - } - }); - }), - (ParentComponent.prototype.open = function() { - var _this11 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.try(function() { - return ( - _this11.component.log('open_' + _this11.context, { - windowName: _this11.childWindowName - }), - _this11.driver.open.call(_this11) - ); - }); - }), - (ParentComponent.prototype.openPrerender = function() { - var _this12 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.try(function() { - if (_this12.component.prerenderTemplate) - return _this12.driver.openPrerender.call(_this12); - }); - }), - (ParentComponent.prototype.switchPrerender = function() { - var _this13 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.try(function() { - if (_this13.prerenderWindow && _this13.driver.switchPrerender) - return _this13.driver.switchPrerender.call(_this13); - }); - }), - (ParentComponent.prototype.elementReady = function(element) { - return Object(__WEBPACK_IMPORTED_MODULE_6__lib__.p)(element).then( - __WEBPACK_IMPORTED_MODULE_6__lib__.I - ); - }), - (ParentComponent.prototype.delegate = function(win) { - var _this14 = this; - this.component.log('delegate_' + this.context); - var props = { - uid: this.props.uid, - dimensions: this.props.dimensions, - onClose: this.props.onClose, - onDisplay: this.props.onDisplay - }, - _iterator2 = this.component.getPropNames(), - _isArray2 = Array.isArray(_iterator2), - _i2 = 0; - for ( - _iterator2 = _isArray2 - ? _iterator2 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator2 - ); - ; - - ) { - var _ref9; - if (_isArray2) { - if (_i2 >= _iterator2.length) break; - _ref9 = _iterator2[_i2++]; - } else { - if ((_i2 = _iterator2.next()).done) break; - _ref9 = _i2.value; - } - var propName = _ref9; - this.component.getProp(propName).allowDelegate && - (props[propName] = this.props[propName]); - } - var delegate = Object(__WEBPACK_IMPORTED_MODULE_1_post_robot_src__.send)( - win, - __WEBPACK_IMPORTED_MODULE_7__constants__.POST_MESSAGE.DELEGATE + - '_' + - this.component.name, - { - context: this.context, - env: this.props.env, - options: { - context: this.context, - childWindowName: this.childWindowName, - props: props, - overrides: { - focus: function focus() { - return _this14.focus(); - }, - userClose: function userClose() { - return _this14.userClose(); - }, - getDomain: function getDomain() { - return _this14.getDomain(); - }, - error: function error(err) { - return _this14.error(err); - }, - on: function on(eventName, handler) { - return _this14.on(eventName, handler); - } - } - } - } - ) - .then(function(_ref10) { - var data = _ref10.data; - return _this14.clean.register(data.destroy), data; - }) - .catch(function(err) { - throw new Error( - 'Unable to delegate rendering. Possibly the component is not loaded in the target window.\n\n' + - Object(__WEBPACK_IMPORTED_MODULE_6__lib__.V)(err) - ); - }), - overrides = this.driver.delegateOverrides; - var _iterator3 = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - overrides - ), - _isArray3 = Array.isArray(_iterator3), - _i3 = 0; - _loop2: for ( - _iterator3 = _isArray3 - ? _iterator3 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator3 - ); - ; - - ) { - var _ref11; - switch ((function() { - if (_isArray3) { - if (_i3 >= _iterator3.length) return 'break'; - _ref11 = _iterator3[_i3++]; - } else { - if ((_i3 = _iterator3.next()).done) return 'break'; - _ref11 = _i3.value; - } - var key = _ref11, - val = overrides[key]; - if ( - val === - __WEBPACK_IMPORTED_MODULE_7__constants__.DELEGATE.CALL_ORIGINAL - ) - return 'continue'; - var original = _this14[key]; - _this14[key] = function() { - var _this15 = this, - _arguments = arguments; - return delegate.then(function(data) { - var override = data.overrides[key]; - if ( - val === - __WEBPACK_IMPORTED_MODULE_7__constants__.DELEGATE.CALL_DELEGATE - ) - return override.apply(_this15, _arguments); - if (val instanceof Function) - return val(original, override).apply(_this15, _arguments); - throw new Error( - 'Expected delgate to be CALL_ORIGINAL, CALL_DELEGATE, or factory method' - ); - }); - }; - })()) { - case 'break': - break _loop2; - case 'continue': - continue; - } - } - }), - (ParentComponent.prototype.watchForClose = function() { - var _this16 = this, - closeWindowListener = Object( - __WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.w - )( - this.window, - function() { - return ( - _this16.component.log('detect_close_child'), - __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .try(function() { - return _this16.props.onClose( - __WEBPACK_IMPORTED_MODULE_7__constants__.CLOSE_REASONS - .CLOSE_DETECTED - ); - }) - .finally(function() { - return _this16.destroy(); - }) - ); - }, - 3e3 - ); - this.clean.register( - 'destroyCloseWindowListener', - closeWindowListener.cancel - ); - }), - (ParentComponent.prototype.watchForUnload = function() { - var _this17 = this, - onunload = Object(__WEBPACK_IMPORTED_MODULE_6__lib__.K)(function() { - _this17.component.log('navigate_away'), - __WEBPACK_IMPORTED_MODULE_0_beaver_logger_client__.c(), - _this17.destroyComponent(); - }), - unloadWindowListener = Object(__WEBPACK_IMPORTED_MODULE_6__lib__.b)( - window, - 'unload', - onunload - ); - this.clean.register( - 'destroyUnloadWindowListener', - unloadWindowListener.cancel - ); - }), - (ParentComponent.prototype.loadUrl = function(url) { - var _this18 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.try(function() { - var _query; - (_this18.component.log('load_url'), - window.location.href.split('#')[0] === url.split('#')[0]) && - (url = Object(__WEBPACK_IMPORTED_MODULE_6__lib__.u)(url, { - query: ((_query = {}), - (_query[Object(__WEBPACK_IMPORTED_MODULE_6__lib__.Y)()] = '1'), - _query) - })); - return _this18.driver.loadUrl.call(_this18, url); - }); - }), - (ParentComponent.prototype.hijack = function(targetElement) { - targetElement.target = this.childWindowName; - }), - (ParentComponent.prototype.runTimeout = function() { - var _this19 = this; - this.props.timeout && - ((this.timeout = setTimeout(function() { - _this19.component.log('timed_out', { timeout: _this19.props.timeout }); - var error = _this19.component.createError( - 'Loading component timed out after ' + - _this19.props.timeout + - ' milliseconds' - ); - _this19.onInit.reject(error), _this19.props.onTimeout(error); - }, this.props.timeout)), - this.clean.register(function() { - clearTimeout(_this19.timeout), delete _this19.timeout; - })); - }), - (ParentComponent.prototype.listeners = function() { - var _ref12; - return ( - ((_ref12 = {})[ - __WEBPACK_IMPORTED_MODULE_7__constants__.POST_MESSAGE.INIT - ] = function(source, data) { - return ( - (this.childExports = data.exports), - this.onInit.resolve(this), - this.timeout && clearTimeout(this.timeout), - { props: this.getPropsForChild(), context: this.context } - ); - }), - (_ref12[ - __WEBPACK_IMPORTED_MODULE_7__constants__.POST_MESSAGE.CLOSE - ] = function(source, data) { - this.close(data.reason); - }), - (_ref12[ - __WEBPACK_IMPORTED_MODULE_7__constants__.POST_MESSAGE.CHECK_CLOSE - ] = function(source, data) { - this.checkClose(); - }), - (_ref12[ - __WEBPACK_IMPORTED_MODULE_7__constants__.POST_MESSAGE.RESIZE - ] = function(source, data) { - var _this20 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.try( - function() { - if (_this20.driver.allowResize) - return _this20.resize(data.width, data.height); - } - ); - }), - (_ref12[ - __WEBPACK_IMPORTED_MODULE_7__constants__.POST_MESSAGE.ONRESIZE - ] = function(source, data) { - this.event.trigger('resize'); - }), - (_ref12[ - __WEBPACK_IMPORTED_MODULE_7__constants__.POST_MESSAGE.HIDE - ] = function(source, data) { - this.hide(); - }), - (_ref12[ - __WEBPACK_IMPORTED_MODULE_7__constants__.POST_MESSAGE.SHOW - ] = function(source, data) { - this.show(); - }), - (_ref12[ - __WEBPACK_IMPORTED_MODULE_7__constants__.POST_MESSAGE.ERROR - ] = function(source, data) { - this.error(new Error(data.error)); - }), - _ref12 - ); - }), - (ParentComponent.prototype.resize = function(width, height) { - var _this21 = this, - _ref13$waitForTransit = (arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : {} - ).waitForTransition, - waitForTransition = - void 0 === _ref13$waitForTransit || _ref13$waitForTransit; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.try(function() { - if ( - (_this21.component.log('resize', { - height: Object(__WEBPACK_IMPORTED_MODULE_6__lib__.U)(height), - width: Object(__WEBPACK_IMPORTED_MODULE_6__lib__.U)(width) - }), - _this21.driver.resize.call(_this21, width, height), - waitForTransition && (_this21.element || _this21.iframe)) - ) { - var overflow = void 0; - return ( - _this21.element && - (overflow = Object(__WEBPACK_IMPORTED_MODULE_6__lib__.R)( - _this21.element, - 'hidden' - )), - Object(__WEBPACK_IMPORTED_MODULE_6__lib__.q)( - _this21.element || _this21.iframe - ).then(function() { - overflow && overflow.reset(); - }) - ); - } - }); - }), - (ParentComponent.prototype.hide = function() { - return ( - this.container && - Object(__WEBPACK_IMPORTED_MODULE_6__lib__.A)(this.container), - this.driver.hide.call(this) - ); - }), - (ParentComponent.prototype.show = function() { - return ( - this.container && - Object(__WEBPACK_IMPORTED_MODULE_6__lib__.T)(this.container), - this.driver.show.call(this) - ); - }), - (ParentComponent.prototype.checkClose = function() { - var _this22 = this, - closeWindowListener = Object( - __WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.w - )( - this.window, - function() { - _this22.userClose(); - }, - 50, - 500 - ); - this.clean.register(closeWindowListener.cancel); - }), - (ParentComponent.prototype.userClose = function() { - return this.close( - __WEBPACK_IMPORTED_MODULE_7__constants__.CLOSE_REASONS.USER_CLOSED - ); - }), - (ParentComponent.prototype.close = function() { - var _this23 = this, - reason = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : __WEBPACK_IMPORTED_MODULE_7__constants__.CLOSE_REASONS.PARENT_CALL; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .try(function() { - return ( - _this23.component.log('close', { reason: reason }), - _this23.event.triggerOnce( - __WEBPACK_IMPORTED_MODULE_7__constants__.EVENTS.CLOSE - ), - _this23.props.onClose(reason) - ); - }) - .then(function() { - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.all([ - _this23.closeComponent(), - _this23.closeContainer() - ]); - }) - .then(function() { - return _this23.destroy(); - }); - }), - (ParentComponent.prototype.closeContainer = function() { - var _this24 = this, - reason = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : __WEBPACK_IMPORTED_MODULE_7__constants__.CLOSE_REASONS.PARENT_CALL; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .try(function() { - return ( - _this24.event.triggerOnce( - __WEBPACK_IMPORTED_MODULE_7__constants__.EVENTS.CLOSE - ), - _this24.props.onClose(reason) - ); - }) - .then(function() { - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.all([ - _this24.closeComponent(reason), - _this24.hideContainer() - ]); - }) - .then(function() { - return _this24.destroyContainer(); - }); - }), - (ParentComponent.prototype.destroyContainer = function() { - var _this25 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.try(function() { - _this25.clean.run('destroyContainerEvents'), - _this25.clean.run('destroyContainerTemplate'); - }); - }), - (ParentComponent.prototype.closeComponent = function() { - var _this26 = this, - reason = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : __WEBPACK_IMPORTED_MODULE_7__constants__.CLOSE_REASONS.PARENT_CALL, - win = this.window; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .try(function() { - return _this26.cancelContainerEvents(); - }) - .then(function() { - return ( - _this26.event.triggerOnce( - __WEBPACK_IMPORTED_MODULE_7__constants__.EVENTS.CLOSE - ), - _this26.props.onClose(reason) - ); - }) - .then(function() { - return _this26.hideComponent(); - }) - .then(function() { - return _this26.destroyComponent(); - }) - .then(function() { - _this26.childExports && - _this26.context === - __WEBPACK_IMPORTED_MODULE_7__constants__.CONTEXT_TYPES.POPUP && - !Object(__WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.t)( - win - ) && - _this26.childExports - .close() - .catch(__WEBPACK_IMPORTED_MODULE_6__lib__.I); - }); - }), - (ParentComponent.prototype.destroyComponent = function() { - this.clean.run('destroyUnloadWindowListener'), - this.clean.run('destroyCloseWindowListener'), - this.clean.run('destroyContainerEvents'), - this.clean.run('destroyWindow'); - }), - (ParentComponent.prototype.showContainer = function() { - var _this27 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .try(function() { - if (_this27.props.onDisplay) return _this27.props.onDisplay(); - }) - .then(function() { - if (_this27.container) - return Object(__WEBPACK_IMPORTED_MODULE_6__lib__.S)( - _this27.container, - __WEBPACK_IMPORTED_MODULE_7__constants__.ANIMATION_NAMES - .SHOW_CONTAINER, - _this27.clean.register - ); - }); - }), - (ParentComponent.prototype.showComponent = function() { - var _this28 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .try(function() { - if (_this28.props.onDisplay) return _this28.props.onDisplay(); - }) - .then(function() { - if (_this28.element) - return Object(__WEBPACK_IMPORTED_MODULE_6__lib__.S)( - _this28.element, - __WEBPACK_IMPORTED_MODULE_7__constants__.ANIMATION_NAMES - .SHOW_COMPONENT, - _this28.clean.register - ); - }); - }), - (ParentComponent.prototype.hideContainer = function() { - var _this29 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.try(function() { - return _this29.container - ? Object(__WEBPACK_IMPORTED_MODULE_6__lib__.c)( - _this29.container, - __WEBPACK_IMPORTED_MODULE_7__constants__.ANIMATION_NAMES - .HIDE_CONTAINER, - _this29.clean.register - ) - : __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.resolve(); - }); - }), - (ParentComponent.prototype.hideComponent = function() { - var _this30 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.try(function() { - return _this30.element - ? Object(__WEBPACK_IMPORTED_MODULE_6__lib__.c)( - _this30.element, - __WEBPACK_IMPORTED_MODULE_7__constants__.ANIMATION_NAMES - .HIDE_COMPONENT, - _this30.clean.register - ) - : __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.resolve(); - }); - }), - (ParentComponent.prototype.focus = function() { - if ( - !this.window || - Object(__WEBPACK_IMPORTED_MODULE_2_cross_domain_utils_src__.t)( - this.window - ) - ) - throw new Error('No window to focus'); - if (this.driver.openOnFocus) - try { - window.open('', this.childWindowName).focus(); - } catch (err) {} - this.component.log('focus'), this.window.focus(); - }), - (ParentComponent.prototype.createPrerenderTemplate = function() { - var _this31 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.try(function() { - return _this31.component.prerenderTemplate - ? __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .try(function() { - return _this31.prerenderIframe - ? Object(__WEBPACK_IMPORTED_MODULE_6__lib__.e)( - _this31.prerenderIframe - ).then(function() { - return _this31.prerenderWindow; - }) - : _this31.prerenderWindow; - }) - .then(function(win) { - var doc = void 0; - try { - doc = win.document; - } catch (err) { - return; - } - try { - Object( - __WEBPACK_IMPORTED_MODULE_6__lib__._2 - )(win, _this31.renderTemplate(_this31.component.prerenderTemplate, { jsxDom: __WEBPACK_IMPORTED_MODULE_6__lib__.F.bind(doc), document: doc })); - } catch (err) { - return; - } - }) - : __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.resolve(); - }); - }), - (ParentComponent.prototype.renderTemplate = function(renderer) { - var _this32 = this, - options = - arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, - _ref14 = this.component.dimensions || {}, - _ref14$width = _ref14.width, - width = - void 0 === _ref14$width - ? __WEBPACK_IMPORTED_MODULE_7__constants__.DEFAULT_DIMENSIONS.WIDTH + - 'px' - : _ref14$width, - _ref14$height = _ref14.height, - height = - void 0 === _ref14$height - ? __WEBPACK_IMPORTED_MODULE_7__constants__.DEFAULT_DIMENSIONS.HEIGHT + - 'px' - : _ref14$height; - return renderer.call( - this, - _extends( - { - id: - __WEBPACK_IMPORTED_MODULE_7__constants__.CLASS_NAMES.XCOMPONENT + - '-' + - this.component.tag + - '-' + - this.props.uid, - props: renderer.__xdomain__ ? null : this.props, - tag: this.component.tag, - context: this.context, - outlet: this.getOutlet(), - CLASS: __WEBPACK_IMPORTED_MODULE_7__constants__.CLASS_NAMES, - ANIMATION: __WEBPACK_IMPORTED_MODULE_7__constants__.ANIMATION_NAMES, - CONTEXT: __WEBPACK_IMPORTED_MODULE_7__constants__.CONTEXT_TYPES, - EVENT: __WEBPACK_IMPORTED_MODULE_7__constants__.EVENTS, - actions: { - close: function close() { - return _this32.userClose(); - }, - focus: function focus() { - return _this32.focus(); - } - }, - on: function on(eventName, handler) { - return _this32.on(eventName, handler); - }, - jsxDom: __WEBPACK_IMPORTED_MODULE_6__lib__.F, - document: document, - dimensions: { width: width, height: height } - }, - options - ) - ); - }), - (ParentComponent.prototype.openContainer = function(element) { - var _this33 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.try(function() { - var el; - if ( - !(el = element - ? Object(__WEBPACK_IMPORTED_MODULE_6__lib__.x)(element) - : document.body) - ) - throw new Error('Could not find element to open container into'); - if (_this33.component.containerTemplate) { - var container = _this33.renderTemplate( - _this33.component.containerTemplate, - { container: el } - ); - if ( - ((_this33.container = container), - Object(__WEBPACK_IMPORTED_MODULE_6__lib__.A)(_this33.container), - Object(__WEBPACK_IMPORTED_MODULE_6__lib__.d)(el, _this33.container), - _this33.driver.renderedIntoContainerTemplate) - ) { - if ( - ((_this33.element = _this33.getOutlet()), - Object(__WEBPACK_IMPORTED_MODULE_6__lib__.A)(_this33.element), - !_this33.element) - ) - throw new Error('Could not find element to render component into'); - Object(__WEBPACK_IMPORTED_MODULE_6__lib__.A)(_this33.element); - } - _this33.clean.register('destroyContainerTemplate', function() { - _this33.container && - _this33.container.parentNode && - _this33.container.parentNode.removeChild(_this33.container), - delete _this33.container; - }); - } else if (_this33.driver.renderedIntoContainerTemplate) - throw new Error( - 'containerTemplate needed to render ' + _this33.context - ); - }); - }), - (ParentComponent.prototype.cancelContainerEvents = function() { - this.clean.run('destroyContainerEvents'); - }), - (ParentComponent.prototype.destroy = function() { - var _this34 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a.try(function() { - if (_this34.clean.hasTasks()) - return ( - _this34.component.log('destroy'), - __WEBPACK_IMPORTED_MODULE_0_beaver_logger_client__.c(), - _this34.clean.all() - ); - }); - }), - (ParentComponent.prototype.tryInit = function(method) { - var _this35 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .try(method) - .catch(function(err) { - _this35.onInit.reject(err); - }) - .then(function() { - return _this35.onInit; - }); - }), - (ParentComponent.prototype.error = function(err) { - var _this36 = this; - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .try(function() { - if ( - ((_this36.handledErrors = _this36.handledErrors || []), - -1 === _this36.handledErrors.indexOf(err)) - ) - return ( - _this36.handledErrors.push(err), - _this36.onInit.reject(err), - _this36.destroy() - ); - }) - .then(function() { - if (_this36.props.onError) return _this36.props.onError(err); - }) - .catch(function(errErr) { - throw new Error( - 'An error was encountered while handling error:\n\n ' + - Object(__WEBPACK_IMPORTED_MODULE_6__lib__.V)(err) + - '\n\n' + - Object(__WEBPACK_IMPORTED_MODULE_6__lib__.V)(errErr) - ); - }) - .then(function() { - if (!_this36.props.onError) throw err; - }); - }), - (ParentComponent.destroyAll = function() { - for (var results = []; ParentComponent.activeComponents.length; ) - results.push(ParentComponent.activeComponents[0].destroy()); - return __WEBPACK_IMPORTED_MODULE_3_zalgo_promise_src__.a - .all(results) - .then(__WEBPACK_IMPORTED_MODULE_6__lib__.I); - }), - _createClass(ParentComponent, [ - { - key: 'driver', - get: function get() { - if (!this.context) throw new Error('Context not set'); - return __WEBPACK_IMPORTED_MODULE_8__drivers__.a[this.context]; - } - } - ]), - ParentComponent - ); - })(__WEBPACK_IMPORTED_MODULE_4__base__.a)).prototype, - 'getOutlet', - [__WEBPACK_IMPORTED_MODULE_6__lib__.H], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - _class.prototype, - 'getOutlet' - ), - _class.prototype - ), - _applyDecoratedDescriptor( - _class.prototype, - 'prefetch', - [__WEBPACK_IMPORTED_MODULE_6__lib__.H], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - _class.prototype, - 'prefetch' - ), - _class.prototype - ), - _applyDecoratedDescriptor( - _class.prototype, - 'loadHTML', - [__WEBPACK_IMPORTED_MODULE_6__lib__.H], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - _class.prototype, - 'loadHTML' - ), - _class.prototype - ), - _applyDecoratedDescriptor( - _class.prototype, - 'buildUrl', - [__WEBPACK_IMPORTED_MODULE_6__lib__.H], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - _class.prototype, - 'buildUrl' - ), - _class.prototype - ), - _applyDecoratedDescriptor( - _class.prototype, - 'open', - [__WEBPACK_IMPORTED_MODULE_6__lib__.H], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - _class.prototype, - 'open' - ), - _class.prototype - ), - _applyDecoratedDescriptor( - _class.prototype, - 'openPrerender', - [__WEBPACK_IMPORTED_MODULE_6__lib__.H], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - _class.prototype, - 'openPrerender' - ), - _class.prototype - ), - _applyDecoratedDescriptor( - _class.prototype, - 'switchPrerender', - [__WEBPACK_IMPORTED_MODULE_6__lib__.H], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - _class.prototype, - 'switchPrerender' - ), - _class.prototype - ), - _applyDecoratedDescriptor( - _class.prototype, - 'close', - [__WEBPACK_IMPORTED_MODULE_6__lib__.H], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - _class.prototype, - 'close' - ), - _class.prototype - ), - _applyDecoratedDescriptor( - _class.prototype, - 'closeContainer', - [__WEBPACK_IMPORTED_MODULE_6__lib__.H], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - _class.prototype, - 'closeContainer' - ), - _class.prototype - ), - _applyDecoratedDescriptor( - _class.prototype, - 'destroyContainer', - [__WEBPACK_IMPORTED_MODULE_6__lib__.H], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - _class.prototype, - 'destroyContainer' - ), - _class.prototype - ), - _applyDecoratedDescriptor( - _class.prototype, - 'closeComponent', - [__WEBPACK_IMPORTED_MODULE_6__lib__.H], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - _class.prototype, - 'closeComponent' - ), - _class.prototype - ), - _applyDecoratedDescriptor( - _class.prototype, - 'showContainer', - [__WEBPACK_IMPORTED_MODULE_6__lib__.H], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - _class.prototype, - 'showContainer' - ), - _class.prototype - ), - _applyDecoratedDescriptor( - _class.prototype, - 'showComponent', - [__WEBPACK_IMPORTED_MODULE_6__lib__.H], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - _class.prototype, - 'showComponent' - ), - _class.prototype - ), - _applyDecoratedDescriptor( - _class.prototype, - 'hideContainer', - [__WEBPACK_IMPORTED_MODULE_6__lib__.H], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - _class.prototype, - 'hideContainer' - ), - _class.prototype - ), - _applyDecoratedDescriptor( - _class.prototype, - 'hideComponent', - [__WEBPACK_IMPORTED_MODULE_6__lib__.H], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - _class.prototype, - 'hideComponent' - ), - _class.prototype - ), - _applyDecoratedDescriptor( - _class.prototype, - 'createPrerenderTemplate', - [__WEBPACK_IMPORTED_MODULE_6__lib__.H], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - _class.prototype, - 'createPrerenderTemplate' - ), - _class.prototype - ), - _applyDecoratedDescriptor( - _class.prototype, - 'openContainer', - [__WEBPACK_IMPORTED_MODULE_6__lib__.H], - __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - _class.prototype, - 'openContainer' - ), - _class.prototype - ), - _class); - ParentComponent.activeComponents = []; - }, - './node_modules/xcomponent/src/component/parent/props.js': function node_modulesXcomponentSrcComponentParentPropsJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function normalizeProp(component, instance, props, key, value) { - var prop = component.getProp(key), - resultValue = void 0; - !(resultValue = prop.value - ? prop.value - : !prop.def || - (props.hasOwnProperty(key) && - (function isDefined(value) { - return null !== value && void 0 !== value && '' !== value; - })(value)) - ? value - : prop.def.call(component, props)) && - prop.alias && - props[prop.alias] && - (resultValue = props[prop.alias]); - var decorated = !1; - if ( - (prop.decorate && - null !== resultValue && - void 0 !== resultValue && - ((resultValue = prop.decorate(resultValue, props)), (decorated = !0)), - 'boolean' === prop.type) - ) - resultValue = Boolean(resultValue); - else if ('function' === prop.type) { - if ( - (!resultValue && - prop.noop && - ((resultValue = __WEBPACK_IMPORTED_MODULE_1__lib__.I), - !decorated && - prop.decorate && - (resultValue = prop.decorate(resultValue, props))), - resultValue && 'function' == typeof resultValue) - ) { - (resultValue = resultValue.bind(instance)), - prop.denodeify && - (resultValue = Object(__WEBPACK_IMPORTED_MODULE_1__lib__.j)(resultValue)), - prop.promisify && - (resultValue = Object(__WEBPACK_IMPORTED_MODULE_1__lib__.M)(resultValue)); - var original = resultValue; - (resultValue = function resultValue() { - return component.log('call_prop_' + key), original.apply(this, arguments); - }), - prop.once && - (resultValue = Object(__WEBPACK_IMPORTED_MODULE_1__lib__.K)(resultValue)), - prop.memoize && - (resultValue = Object(__WEBPACK_IMPORTED_MODULE_1__lib__.G)(resultValue)); - } - } else - 'string' === prop.type || - 'object' === prop.type || - ('number' === prop.type && - void 0 !== resultValue && - (resultValue = parseInt(resultValue, 10))); - return resultValue; - } - (__webpack_exports__.a = function normalizeProps(component, instance, props) { - var result = (!(arguments.length > 3 && void 0 !== arguments[3]) || arguments[3], - {}); - (props = props || {}), (result.version = component.version); - var _iterator = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - props - ), - _isArray = Array.isArray(_iterator), - _i = 0; - for ( - _iterator = _isArray - ? _iterator - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator - ); - ; - - ) { - var _ref; - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - if ((_i = _iterator.next()).done) break; - _ref = _i.value; - } - var key = _ref; - -1 !== component.getPropNames().indexOf(key) - ? (result[key] = normalizeProp(component, instance, props, key, props[key])) - : (result[key] = props[key]); - } - var _iterator2 = component.getPropNames(), - _isArray2 = Array.isArray(_iterator2), - _i2 = 0; - for ( - _iterator2 = _isArray2 - ? _iterator2 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator2 - ); - ; - - ) { - var _ref2; - if (_isArray2) { - if (_i2 >= _iterator2.length) break; - _ref2 = _iterator2[_i2++]; - } else { - if ((_i2 = _iterator2.next()).done) break; - _ref2 = _i2.value; - } - var _key = _ref2; - if ( - !( - props.hasOwnProperty(_key) || - (instance.props && instance.props.hasOwnProperty(_key)) - ) - ) { - var normalizedProp = normalizeProp( - component, - instance, - props, - _key, - props[_key] - ); - void 0 !== normalizedProp && (result[_key] = normalizedProp); - } - } - return result; - }), - (__webpack_exports__.b = function propsToQuery(propsDef, props) { - var params = {}; - return __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__.a - .all( - __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - props - ).map(function(key) { - var prop = propsDef[key]; - if (prop) - return __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__.a - .resolve() - .then(function() { - var value = props[key]; - if (value && prop.queryParam) return value; - }) - .then(function(value) { - value && - __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__.a - .all([ - (function getQueryParam(prop, key, value) { - return __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__.a.try( - function() { - return 'function' == typeof prop.queryParam - ? prop.queryParam(value) - : 'string' == typeof prop.queryParam - ? prop.queryParam - : key; - } - ); - })(prop, key, value), - (function getQueryValue(prop, key, value) { - return __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__.a.try( - function() { - return 'function' == typeof prop.queryValue - ? prop.queryValue(value) - : value; - } - ); - })(prop, 0, value) - ]) - .then(function(_ref3) { - var queryParam = _ref3[0], - queryValue = _ref3[1], - result = void 0; - if ('boolean' == typeof queryValue) result = '1'; - else if ('string' == typeof queryValue) - result = queryValue.toString(); - else { - if ('function' == typeof queryValue) return; - if ( - 'object' === - (void 0 === queryValue - ? 'undefined' - : _typeof(queryValue)) && - null !== queryValue - ) { - if ('json' !== prop.serialization) { - result = Object(__WEBPACK_IMPORTED_MODULE_1__lib__.o)( - queryValue, - key - ); - for (var dotkey in result) - params[dotkey] = result[dotkey]; - return; - } - result = __WEBPACK_IMPORTED_MODULE_8_babel_runtime_core_js_json_stringify___default()( - queryValue - ); - } else - 'number' == typeof queryValue && - (result = queryValue.toString()); - } - params[queryParam] = result; - }); - }); - }) - ) - .then(function() { - return params; - }); - }); - var __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__ = __webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1__lib__ = __webpack_require__( - './node_modules/xcomponent/src/lib/index.js' - ), - _typeof = (__webpack_require__( - './node_modules/xcomponent/src/component/component/index.js' - ), - __webpack_require__('./node_modules/xcomponent/src/component/component/props.js'), - __webpack_require__('./node_modules/xcomponent/src/component/parent/index.js'), - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - 'symbol' == - __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_symbol_iterator___default.a - ) - ? function(obj) { - return void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - } - : function(obj) { - return obj && - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj.constructor === - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj !== - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a - .prototype - ? 'symbol' - : void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - }); - }, - './node_modules/xcomponent/src/component/parent/validate.js': function node_modulesXcomponentSrcComponentParentValidateJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function validateProp(prop, key, value, props) { - var required = !(arguments.length > 4 && void 0 !== arguments[4]) || arguments[4]; - if (null !== value && void 0 !== value && '' !== value) { - if (!value || 'function' != typeof value.then || !prop.promise) { - if ('function' === prop.type) { - if (!(value instanceof Function)) - throw new Error('Prop is not of type function: ' + key); - } else if ('string' === prop.type) { - if ('string' != typeof value) - throw new Error('Prop is not of type string: ' + key); - } else if ('object' === prop.type) - try { - __WEBPACK_IMPORTED_MODULE_8_babel_runtime_core_js_json_stringify___default()( - value - ); - } catch (err) { - throw new Error('Unable to serialize prop: ' + key); - } - else if ('number' === prop.type && isNaN(parseInt(value, 10))) - throw new Error('Prop is not a number: ' + key); - 'function' == typeof prop.validate && value && prop.validate(value, props); - } - } else if (required && !1 !== prop.required && !prop.hasOwnProperty('def')) - throw new Error('Prop is required: ' + key); - } - __webpack_exports__.a = function validateProps(component, props) { - var required = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]; - if ( - (props = props || {}).env && - 'object' === _typeof(component.url) && - !component.url[props.env] - ) - throw new Error('Invalid env: ' + props.env); - var _iterator = component.getPropNames(), - _isArray = Array.isArray(_iterator), - _i = 0; - for ( - _iterator = _isArray - ? _iterator - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator - ); - ; - - ) { - var _ref; - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - if ((_i = _iterator.next()).done) break; - _ref = _i.value; - } - var key = _ref, - prop = component.getProp(key); - if (prop.alias && props.hasOwnProperty(prop.alias)) { - var value = props[prop.alias]; - delete props[prop.alias], props[key] || (props[key] = value); - } - } - var _iterator2 = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - props - ), - _isArray2 = Array.isArray(_iterator2), - _i2 = 0; - for ( - _iterator2 = _isArray2 - ? _iterator2 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator2 - ); - ; - - ) { - var _ref2; - if (_isArray2) { - if (_i2 >= _iterator2.length) break; - _ref2 = _iterator2[_i2++]; - } else { - if ((_i2 = _iterator2.next()).done) break; - _ref2 = _i2.value; - } - var _key = _ref2, - _prop = component.getProp(_key), - _value = props[_key]; - _prop && validateProp(_prop, _key, _value, props, required); - } - var _iterator3 = component.getPropNames(), - _isArray3 = Array.isArray(_iterator3), - _i3 = 0; - for ( - _iterator3 = _isArray3 - ? _iterator3 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator3 - ); - ; - - ) { - var _ref3; - if (_isArray3) { - if (_i3 >= _iterator3.length) break; - _ref3 = _iterator3[_i3++]; - } else { - if ((_i3 = _iterator3.next()).done) break; - _ref3 = _i3.value; - } - var _key2 = _ref3, - _prop2 = component.getProp(_key2), - _value2 = props[_key2]; - _prop2 && - !props.hasOwnProperty(_key2) && - validateProp(_prop2, _key2, _value2, props, required); - } - }; - var _typeof = (__webpack_require__( - './node_modules/xcomponent/src/component/component/index.js' - ), - __webpack_require__('./node_modules/xcomponent/src/component/component/props.js'), - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - 'symbol' == - __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_symbol_iterator___default.a - ) - ? function(obj) { - return void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - } - : function(obj) { - return obj && - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj.constructor === - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj !== - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a - .prototype - ? 'symbol' - : void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - }); - }, - './node_modules/xcomponent/src/component/window.js': function node_modulesXcomponentSrcComponentWindowJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function normalize(str) { - return str - .replace(/^[^a-z0-9A-Z]+|[^a-z0-9A-Z]+$/g, '') - .replace(/[^a-z0-9A-Z]+/g, '_'); - } - function getWindowByRef(_ref) { - var ref = _ref.ref, - uid = _ref.uid, - distance = _ref.distance, - result = void 0; - if ( - (ref === __WEBPACK_IMPORTED_MODULE_3__constants__.WINDOW_REFERENCES.OPENER - ? (result = Object(__WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.i)( - window - )) - : ref === __WEBPACK_IMPORTED_MODULE_3__constants__.WINDOW_REFERENCES.TOP - ? (result = Object(__WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.k)( - window - )) - : ref === - __WEBPACK_IMPORTED_MODULE_3__constants__.WINDOW_REFERENCES.PARENT && - (result = distance - ? Object(__WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.h)( - window, - distance - ) - : Object(__WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.j)( - window - )), - ref === __WEBPACK_IMPORTED_MODULE_3__constants__.WINDOW_REFERENCES.GLOBAL) - ) { - var ancestor = Object(__WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.d)( - window - ); - if (ancestor) { - var _iterator = Object( - __WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.c - )(ancestor), - _isArray = Array.isArray(_iterator), - _i = 0; - for ( - _iterator = _isArray - ? _iterator - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator - ); - ; - - ) { - var _ref2; - if (_isArray) { - if (_i >= _iterator.length) break; - _ref2 = _iterator[_i++]; - } else { - if ((_i = _iterator.next()).done) break; - _ref2 = _i.value; - } - var frame = _ref2, - global = Object(__WEBPACK_IMPORTED_MODULE_2__lib__.z)(frame); - if (global && global.windows && global.windows[uid]) { - result = global.windows[uid]; - break; - } - } - } - } - if (!result) throw new Error('Unable to find window by ref'); - return result; - } - (__webpack_exports__.a = function buildChildWindowName(name, version) { - var options = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; - (options.id = Object(__WEBPACK_IMPORTED_MODULE_2__lib__.Y)()), - (options.domain = Object( - __WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.f - )(window)); - var encodedName = normalize(name), - encodedVersion = normalize(version), - encodedOptions = __WEBPACK_IMPORTED_MODULE_1_hi_base32___default.a - .encode( - __WEBPACK_IMPORTED_MODULE_8_babel_runtime_core_js_json_stringify___default()( - options - ) - ) - .replace(/\=/g, '') - .toLowerCase(); - if (!encodedName) - throw new Error( - 'Invalid name: ' + name + ' - must contain alphanumeric characters' - ); - if (!encodedVersion) - throw new Error( - 'Invalid version: ' + version + ' - must contain alphanumeric characters' - ); - return [ - __WEBPACK_IMPORTED_MODULE_3__constants__.XCOMPONENT, - encodedName, - encodedVersion, - encodedOptions, - '' - ].join('__'); - }), - __webpack_require__.d(__webpack_exports__, 'f', function() { - return isXComponentWindow; - }), - __webpack_require__.d(__webpack_exports__, 'b', function() { - return getComponentMeta; - }), - (__webpack_exports__.d = function getParentDomain() { - return getComponentMeta().domain; - }), - __webpack_require__.d(__webpack_exports__, 'c', function() { - return getParentComponentWindow; - }), - __webpack_require__.d(__webpack_exports__, 'e', function() { - return getParentRenderWindow; - }); - var __WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1_hi_base32__ = __webpack_require__( - './node_modules/hi-base32/src/base32.js' - ), - __WEBPACK_IMPORTED_MODULE_1_hi_base32___default = __webpack_require__.n( - __WEBPACK_IMPORTED_MODULE_1_hi_base32__ - ), - __WEBPACK_IMPORTED_MODULE_2__lib__ = __webpack_require__( - './node_modules/xcomponent/src/lib/index.js' - ), - __WEBPACK_IMPORTED_MODULE_3__constants__ = __webpack_require__( - './node_modules/xcomponent/src/constants.js' - ), - isXComponentWindow = Object(__WEBPACK_IMPORTED_MODULE_2__lib__.G)(function() { - return ( - !!window.name && - window.name.split('__')[0] === - __WEBPACK_IMPORTED_MODULE_3__constants__.XCOMPONENT - ); - }), - getComponentMeta = Object(__WEBPACK_IMPORTED_MODULE_2__lib__.G)(function() { - if (!window.name) - throw new Error('Can not get component meta without window name'); - var _window$name$split2 = window.name.split('__'), - xcomp = _window$name$split2[0], - name = _window$name$split2[1], - version = _window$name$split2[2], - encodedOptions = _window$name$split2[3]; - if (xcomp !== __WEBPACK_IMPORTED_MODULE_3__constants__.XCOMPONENT) - throw new Error('Window not rendered by xcomponent - got ' + xcomp); - var componentMeta = void 0; - try { - componentMeta = JSON.parse( - __WEBPACK_IMPORTED_MODULE_1_hi_base32___default.a.decode( - encodedOptions.toUpperCase() - ) - ); - } catch (err) { - throw new Error('Can not decode component-meta'); - } - return ( - (componentMeta.name = name), - (componentMeta.version = version.replace(/_/g, '.')), - componentMeta - ); - }), - getParentComponentWindow = Object(__WEBPACK_IMPORTED_MODULE_2__lib__.G)( - function() { - var componentMeta = getComponentMeta(); - if (!componentMeta) - throw new Error( - 'Can not get parent component window - window not rendered by xcomponent' - ); - return getWindowByRef(componentMeta.componentParent); - } - ), - getParentRenderWindow = Object(__WEBPACK_IMPORTED_MODULE_2__lib__.G)(function() { - var componentMeta = getComponentMeta(); - if (!componentMeta) - throw new Error( - 'Can not get parent component window - window not rendered by xcomponent' - ); - return getWindowByRef(componentMeta.renderParent); - }); - }, - './node_modules/xcomponent/src/constants.js': function node_modulesXcomponentSrcConstantsJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - Object.defineProperty(__webpack_exports__, '__esModule', { value: !0 }), - __webpack_require__.d(__webpack_exports__, 'XCOMPONENT', function() { - return XCOMPONENT; - }), - __webpack_require__.d(__webpack_exports__, '__XCOMPONENT__', function() { - return __XCOMPONENT__; - }), - __webpack_require__.d(__webpack_exports__, 'POST_MESSAGE', function() { - return POST_MESSAGE; - }), - __webpack_require__.d(__webpack_exports__, 'PROP_TYPES', function() { - return PROP_TYPES; - }), - __webpack_require__.d(__webpack_exports__, 'INITIAL_PROPS', function() { - return INITIAL_PROPS; - }), - __webpack_require__.d(__webpack_exports__, 'WINDOW_REFERENCES', function() { - return WINDOW_REFERENCES; - }), - __webpack_require__.d(__webpack_exports__, 'PROP_TYPES_LIST', function() { - return PROP_TYPES_LIST; - }), - __webpack_require__.d(__webpack_exports__, 'CONTEXT_TYPES', function() { - return CONTEXT_TYPES; - }), - __webpack_require__.d(__webpack_exports__, 'CLASS_NAMES', function() { - return CLASS_NAMES; - }), - __webpack_require__.d(__webpack_exports__, 'EVENTS', function() { - return EVENTS; - }), - __webpack_require__.d(__webpack_exports__, 'ATTRIBUTES', function() { - return ATTRIBUTES; - }), - __webpack_require__.d(__webpack_exports__, 'ANIMATION_NAMES', function() { - return ANIMATION_NAMES; - }), - __webpack_require__.d(__webpack_exports__, 'EVENT_NAMES', function() { - return EVENT_NAMES; - }), - __webpack_require__.d(__webpack_exports__, 'CLOSE_REASONS', function() { - return CLOSE_REASONS; - }), - __webpack_require__.d(__webpack_exports__, 'CONTEXT_TYPES_LIST', function() { - return CONTEXT_TYPES_LIST; - }), - __webpack_require__.d(__webpack_exports__, 'DELEGATE', function() { - return DELEGATE; - }), - __webpack_require__.d(__webpack_exports__, 'WILDCARD', function() { - return WILDCARD; - }), - __webpack_require__.d(__webpack_exports__, 'DEFAULT_DIMENSIONS', function() { - return DEFAULT_DIMENSIONS; - }); - var __WEBPACK_IMPORTED_MODULE_0__lib__ = __webpack_require__( - './node_modules/xcomponent/src/lib/index.js' - ), - XCOMPONENT = 'xcomponent', - __XCOMPONENT__ = '__' + XCOMPONENT + '__', - POST_MESSAGE = { - INIT: XCOMPONENT + '_init', - PROPS: XCOMPONENT + '_props', - PROP_CALLBACK: XCOMPONENT + '_prop_callback', - CLOSE: XCOMPONENT + '_close', - CHECK_CLOSE: XCOMPONENT + '_check_close', - REDIRECT: XCOMPONENT + '_redirect', - RESIZE: XCOMPONENT + '_resize', - ONRESIZE: XCOMPONENT + '_onresize', - DELEGATE: XCOMPONENT + '_delegate', - ALLOW_DELEGATE: XCOMPONENT + '_allow_delegate', - ERROR: XCOMPONENT + '_error', - HIDE: XCOMPONENT + '_hide', - SHOW: XCOMPONENT + '_show' - }, - PROP_TYPES = { - STRING: 'string', - OBJECT: 'object', - FUNCTION: 'function', - BOOLEAN: 'boolean', - NUMBER: 'number' - }, - INITIAL_PROPS = { RAW: 'raw', UID: 'uid' }, - WINDOW_REFERENCES = { - OPENER: 'opener', - TOP: 'top', - PARENT: 'parent', - GLOBAL: 'global' - }, - PROP_TYPES_LIST = Object(__WEBPACK_IMPORTED_MODULE_0__lib__.Z)(PROP_TYPES), - CONTEXT_TYPES = { IFRAME: 'iframe', POPUP: 'popup' }, - CLASS_NAMES = { - XCOMPONENT: '' + XCOMPONENT, - OUTLET: XCOMPONENT + '-outlet', - COMPONENT_FRAME: XCOMPONENT + '-component-frame', - PRERENDER_FRAME: XCOMPONENT + '-prerender-frame', - VISIBLE: XCOMPONENT + '-visible', - INVISIBLE: XCOMPONENT + '-invisible' - }, - EVENTS = { CLOSE: XCOMPONENT + '-close' }, - ATTRIBUTES = { - IFRAME_PLACEHOLDER: 'data-xcomponent-' + XCOMPONENT + '-placeholder' - }, - ANIMATION_NAMES = { - SHOW_CONTAINER: XCOMPONENT + '-show-container', - SHOW_COMPONENT: XCOMPONENT + '-show-component', - HIDE_CONTAINER: XCOMPONENT + '-hide-container', - HIDE_COMPONENT: XCOMPONENT + '-hide-component' - }, - EVENT_NAMES = { CLICK: 'click' }, - CLOSE_REASONS = { - PARENT_CALL: 'parent_call', - CHILD_CALL: 'child_call', - CLOSE_DETECTED: 'close_detected', - USER_CLOSED: 'user_closed', - PARENT_CLOSE_DETECTED: 'parent_close_detected' - }, - CONTEXT_TYPES_LIST = Object(__WEBPACK_IMPORTED_MODULE_0__lib__.Z)(CONTEXT_TYPES), - DELEGATE = { CALL_ORIGINAL: 'call_original', CALL_DELEGATE: 'call_delegate' }, - WILDCARD = '*', - DEFAULT_DIMENSIONS = { WIDTH: 300, HEIGHT: 150 }; - }, - './node_modules/xcomponent/src/drivers/angular.js': function node_modulesXcomponentSrcDriversAngularJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return angular; - }); - var __WEBPACK_IMPORTED_MODULE_0__lib__ = __webpack_require__( - './node_modules/xcomponent/src/lib/index.js' - ), - angular = (__webpack_require__( - './node_modules/xcomponent/src/component/component/index.js' - ), - { - global: function global() { - return window.angular; - }, - register: function register(component, ng) { - return ng - .module(component.tag, []) - .directive( - Object(__WEBPACK_IMPORTED_MODULE_0__lib__.i)(component.tag), - function() { - var scope = {}, - _iterator = component.getPropNames(), - _isArray = Array.isArray(_iterator), - _i = 0; - for ( - _iterator = _isArray - ? _iterator - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator - ); - ; - - ) { - var _ref; - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - if ((_i = _iterator.next()).done) break; - _ref = _i.value; - } - scope[_ref] = '='; - } - return ( - component.looseProps && (scope.props = '='), - { - scope: scope, - restrict: 'E', - controller: [ - '$scope', - '$element', - function($scope, $element) { - if (component.looseProps && !$scope.props) - throw new Error( - 'For angular bindings to work, prop definitions must be passed to xcomponent.create' - ); - component.log('instantiate_angular_component'); - var getProps = function getProps() { - var scopeProps = void 0; - if ($scope.props) scopeProps = $scope.props; - else { - scopeProps = {}; - var _iterator2 = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - scope - ), - _isArray2 = Array.isArray(_iterator2), - _i2 = 0; - for ( - _iterator2 = _isArray2 - ? _iterator2 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator2 - ); - ; - - ) { - var _ref2; - if (_isArray2) { - if (_i2 >= _iterator2.length) break; - _ref2 = _iterator2[_i2++]; - } else { - if ((_i2 = _iterator2.next()).done) break; - _ref2 = _i2.value; - } - var key = _ref2; - scopeProps[key] = $scope[key]; - } - } - return (scopeProps = Object( - __WEBPACK_IMPORTED_MODULE_0__lib__.O - )(scopeProps, function(value, key, fullKey) { - if ('function' == typeof value) - return function() { - var result = value.apply(this, arguments); - return ( - (function safeApply(fn) { - if ( - '$apply' !== $scope.$root.$$phase && - '$digest' !== $scope.$root.$$phase - ) - try { - $scope.$apply(); - } catch (err) { - console.warn( - 'Error trying to scope.apply on prop function call:', - err - ); - } - })(), - result - ); - }; - })); - }, - parent = component.init(getProps(), null, $element[0]); - parent.render($element[0]), - $scope.$watch(function() { - parent.updateProps(getProps()); - }); - } - ] - } - ); - } - ); - } - }); - }, - './node_modules/xcomponent/src/drivers/angular2.js': function node_modulesXcomponentSrcDriversAngular2Js( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return angular2; - }); - var __WEBPACK_IMPORTED_MODULE_0__lib__ = __webpack_require__( - './node_modules/xcomponent/src/lib/index.js' - ), - _extends = (__webpack_require__( - './node_modules/xcomponent/src/component/component/index.js' - ), - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_object_assign___default.a || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && - (target[key] = source[key]); - } - return target; - }), - angular2 = { - global: function global() {}, - register: function register(xcomponent, _ref) { - var AngularComponent = _ref.Component, - NgModule = _ref.NgModule, - ElementRef = _ref.ElementRef, - NgZone = _ref.NgZone; - xcomponent.log('initializing angular2 component'); - var getProps = function getProps(component) { - return Object(__WEBPACK_IMPORTED_MODULE_0__lib__.O)( - _extends({}, component.internalProps, component.props), - function(value, key, fullKey) { - if ('function' == typeof value) - return function() { - var _this = this, - _arguments = arguments; - return component.zone.run(function() { - return value.apply(_this, _arguments); - }); - }; - } - ); - }, - ComponentInstance = AngularComponent({ - selector: xcomponent.tag, - template: '
', - inputs: ['props'] - }).Class({ - constructor: [ - ElementRef, - NgZone, - function(elementRef, zone) { - (this.elementRef = elementRef), (this.zone = zone); - } - ], - ngOnInit: function ngOnInit() { - var targetElement = this.elementRef.nativeElement, - parent = xcomponent.init(getProps(this), null, targetElement); - parent.render(targetElement), (this.parent = parent); - }, - ngOnChanges: function ngOnChanges() { - this.parent && this.parent.updateProps(getProps(this)); - } - }); - return NgModule({ - declarations: [ComponentInstance], - exports: [ComponentInstance] - }).Class({ constructor: function constructor() {} }); - } - }; - }, - './node_modules/xcomponent/src/drivers/ember.js': function node_modulesXcomponentSrcDriversEmberJs( - module, - exports - ) {}, - './node_modules/xcomponent/src/drivers/glimmer.js': function node_modulesXcomponentSrcDriversGlimmerJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return glimmer; - }); - var _extends = (__webpack_require__( - './node_modules/xcomponent/src/component/component/index.js' - ), - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_object_assign___default.a || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && - (target[key] = source[key]); - } - return target; - }), - glimmer = { - global: function global() {}, - register: function register(component, GlimmerComponent) { - return (function(_GlimmerComponent) { - function _class() { - return ( - (function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, _class), - (function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !call || - ('object' != - (void 0 === call - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - call - )) && - 'function' != typeof call) - ? self - : call; - })(this, _GlimmerComponent.apply(this, arguments)) - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - (void 0 === superClass - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - superClass - )) - ); - (subClass.prototype = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_create___default()( - superClass && superClass.prototype, - { - constructor: { - value: subClass, - enumerable: !1, - writable: !0, - configurable: !0 - } - } - )), - superClass && - (__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_set_prototype_of___default.a - ? __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_set_prototype_of___default()( - subClass, - superClass - ) - : (subClass.__proto__ = superClass)); - })(_class, _GlimmerComponent), - (_class.prototype.didInsertElement = function() { - component.render(_extends({}, this.args), this.element); - }), - _class - ); - })(GlimmerComponent); - } - }; - }, - './node_modules/xcomponent/src/drivers/index.js': function node_modulesXcomponentSrcDriversIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - Object.defineProperty(__webpack_exports__, '__esModule', { value: !0 }); - var __WEBPACK_IMPORTED_MODULE_0__script__ = __webpack_require__( - './node_modules/xcomponent/src/drivers/script.js' - ); - __webpack_require__.d(__webpack_exports__, 'htmlComponent', function() { - return __WEBPACK_IMPORTED_MODULE_0__script__.a; - }); - var __WEBPACK_IMPORTED_MODULE_1__react__ = __webpack_require__( - './node_modules/xcomponent/src/drivers/react.js' - ); - __webpack_require__.d(__webpack_exports__, 'react', function() { - return __WEBPACK_IMPORTED_MODULE_1__react__.a; - }); - var __WEBPACK_IMPORTED_MODULE_2__vue__ = __webpack_require__( - './node_modules/xcomponent/src/drivers/vue.js' - ); - __webpack_require__.d(__webpack_exports__, 'vue', function() { - return __WEBPACK_IMPORTED_MODULE_2__vue__.a; - }); - var __WEBPACK_IMPORTED_MODULE_3__angular__ = __webpack_require__( - './node_modules/xcomponent/src/drivers/angular.js' - ); - __webpack_require__.d(__webpack_exports__, 'angular', function() { - return __WEBPACK_IMPORTED_MODULE_3__angular__.a; - }); - var __WEBPACK_IMPORTED_MODULE_4__ember__ = __webpack_require__( - './node_modules/xcomponent/src/drivers/ember.js' - ); - __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__ember__); - for (var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_4__ember__) - ['htmlComponent', 'react', 'vue', 'angular', 'default'].indexOf( - __WEBPACK_IMPORT_KEY__ - ) < 0 && - (function(key) { - __webpack_require__.d(__webpack_exports__, key, function() { - return __WEBPACK_IMPORTED_MODULE_4__ember__[key]; - }); - })(__WEBPACK_IMPORT_KEY__); - var __WEBPACK_IMPORTED_MODULE_5__glimmer__ = __webpack_require__( - './node_modules/xcomponent/src/drivers/glimmer.js' - ); - __webpack_require__.d(__webpack_exports__, 'glimmer', function() { - return __WEBPACK_IMPORTED_MODULE_5__glimmer__.a; - }); - var __WEBPACK_IMPORTED_MODULE_6__angular2__ = __webpack_require__( - './node_modules/xcomponent/src/drivers/angular2.js' - ); - __webpack_require__.d(__webpack_exports__, 'angular2', function() { - return __WEBPACK_IMPORTED_MODULE_6__angular2__.a; - }); - }, - './node_modules/xcomponent/src/drivers/react.js': function node_modulesXcomponentSrcDriversReactJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return react; - }); - var __WEBPACK_IMPORTED_MODULE_0__lib__ = __webpack_require__( - './node_modules/xcomponent/src/lib/index.js' - ), - react = (__webpack_require__( - './node_modules/xcomponent/src/component/component/index.js' - ), - { - global: function global() { - if (window.React && window.ReactDOM) - return { React: window.React, ReactDOM: window.ReactDOM }; - }, - register: function register(component, _ref) { - var React = _ref.React, - ReactDOM = _ref.ReactDOM; - return ( - React.createClass - ? (component.react = React.createClass({ - displayName: 'react', - render: function render() { - return React.createElement('div', null); - }, - componentDidMount: function componentDidMount() { - component.log('instantiate_react_component'); - var el = ReactDOM.findDOMNode(this), - parent = component.init( - Object(__WEBPACK_IMPORTED_MODULE_0__lib__.t)({}, this.props), - null, - el - ); - this.setState({ parent: parent }), parent.render(el); - }, - componentDidUpdate: function componentDidUpdate() { - this.state && - this.state.parent && - this.state.parent.updateProps( - Object(__WEBPACK_IMPORTED_MODULE_0__lib__.t)({}, this.props) - ); - } - })) - : (component.react = (function(_React$Component) { - function _class() { - return ( - (function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, _class), - (function _possibleConstructorReturn(self, call) { - if (!self) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !call || - ('object' != - (void 0 === call - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - call - )) && - 'function' != typeof call) - ? self - : call; - })(this, _React$Component.apply(this, arguments)) - ); - } - return ( - (function _inherits(subClass, superClass) { - if ('function' != typeof superClass && null !== superClass) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - (void 0 === superClass - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - superClass - )) - ); - (subClass.prototype = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_create___default()( - superClass && superClass.prototype, - { - constructor: { - value: subClass, - enumerable: !1, - writable: !0, - configurable: !0 - } - } - )), - superClass && - (__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_set_prototype_of___default.a - ? __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_set_prototype_of___default()( - subClass, - superClass - ) - : (subClass.__proto__ = superClass)); - })(_class, _React$Component), - (_class.prototype.render = function() { - return React.createElement('div', null); - }), - (_class.prototype.componentDidMount = function() { - component.log('instantiate_react_component'); - var el = ReactDOM.findDOMNode(this), - parent = component.init( - Object(__WEBPACK_IMPORTED_MODULE_0__lib__.t)({}, this.props), - null, - el - ); - this.setState({ parent: parent }), parent.render(el); - }), - (_class.prototype.componentDidUpdate = function() { - this.state && - this.state.parent && - this.state.parent.updateProps( - Object(__WEBPACK_IMPORTED_MODULE_0__lib__.t)({}, this.props) - ); - }), - _class - ); - })(React.Component)), - component.react - ); - } - }); - }, - './node_modules/xcomponent/src/drivers/script.js': function node_modulesXcomponentSrcDriversScriptJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return htmlComponent; - }); - var __WEBPACK_IMPORTED_MODULE_0__component_component__ = __webpack_require__( - './node_modules/xcomponent/src/component/component/index.js' - ), - htmlComponent = { - global: function global() { - return window.document; - }, - register: function register(component, document) { - function render(element) { - if ( - element && - element.tagName && - 'script' === element.tagName.toLowerCase() && - element.attributes.type && - 'application/x-component' === element.attributes.type.value && - element.parentNode - ) { - var tag = element.getAttribute('data-component'); - if (tag && tag === component.tag) { - component.log('instantiate_script_component'); - var props = element.innerText - ? eval('(' + element.innerText + ')') - : {}, - container = document.createElement('div'); - if (!element.parentNode) throw new Error('Element has no parent'); - element.parentNode.replaceChild(container, element), - component.render(props, container); - } - } - } - function scan() { - var _iterator = Array.prototype.slice.call( - document.getElementsByTagName('script') - ), - _isArray = Array.isArray(_iterator), - _i = 0; - for ( - _iterator = _isArray - ? _iterator - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator - ); - ; - - ) { - var _ref; - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - if ((_i = _iterator.next()).done) break; - _ref = _i.value; - } - render(_ref); - } - } - scan(), - document.addEventListener('DOMContentLoaded', scan), - window.addEventListener('load', scan), - document.addEventListener('DOMNodeInserted', function(event) { - render(event.target); - }); - } - }; - }, - './node_modules/xcomponent/src/drivers/vue.js': function node_modulesXcomponentSrcDriversVueJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return vue; - }); - var __WEBPACK_IMPORTED_MODULE_1__lib__ = (__webpack_require__( - './node_modules/xcomponent/src/component/component/index.js' - ), - __webpack_require__('./node_modules/xcomponent/src/lib/index.js')), - vue = { - global: function global() {}, - register: function register(component) { - return { - template: '
', - inheritAttrs: !1, - mounted: function mounted() { - var el = this.$el; - (this.parent = component.init( - Object(__WEBPACK_IMPORTED_MODULE_1__lib__.t)({}, this.$attrs), - null, - el - )), - this.parent.render(el); - }, - beforeUpdate: function beforeUpdate() { - this.parent && - this.$attrs && - this.parent.updateProps( - Object(__WEBPACK_IMPORTED_MODULE_1__lib__.t)({}, this.$attrs) - ); - } - }; - } - }; - }, - './node_modules/xcomponent/src/error.js': function node_modulesXcomponentSrcErrorJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function PopupOpenError(message) { - this.message = message; - } - function IntegrationError(message) { - this.message = message; - } - function RenderError(message) { - this.message = message; - } - (__webpack_exports__.b = PopupOpenError), - (__webpack_exports__.a = IntegrationError), - (__webpack_exports__.c = RenderError), - (PopupOpenError.prototype = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_create___default()( - Error.prototype - )), - (IntegrationError.prototype = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_create___default()( - Error.prototype - )), - (RenderError.prototype = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_create___default()( - Error.prototype - )); - }, - './node_modules/xcomponent/src/index.js': function node_modulesXcomponentSrcIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - var __WEBPACK_IMPORTED_MODULE_0__interface__ = __webpack_require__( - './node_modules/xcomponent/src/interface.js' - ); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__interface__.create; - }); - }, - './node_modules/xcomponent/src/interface.js': function node_modulesXcomponentSrcInterfaceJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - Object.defineProperty(__webpack_exports__, '__esModule', { value: !0 }), - (__webpack_exports__.create = function create(options) { - return new __WEBPACK_IMPORTED_MODULE_1__component__.a(options); - }), - (__webpack_exports__.getByTag = function getByTag(tag) { - return __WEBPACK_IMPORTED_MODULE_1__component__.a.getByTag(tag); - }), - (__webpack_exports__.destroyAll = function destroyAll() { - return __WEBPACK_IMPORTED_MODULE_2__component_parent__.a.destroyAll(); - }), - __webpack_require__.d(__webpack_exports__, 'postRobot', function() { - return postRobot; - }), - __webpack_require__.d(__webpack_exports__, 'CONSTANTS', function() { - return CONSTANTS; - }); - var __WEBPACK_IMPORTED_MODULE_1__component__ = (__webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ), - __webpack_require__('./node_modules/xcomponent/src/component/index.js')), - __WEBPACK_IMPORTED_MODULE_2__component_parent__ = __webpack_require__( - './node_modules/xcomponent/src/component/parent/index.js' - ), - __WEBPACK_IMPORTED_MODULE_3__lib__ = __webpack_require__( - './node_modules/xcomponent/src/lib/index.js' - ); - __webpack_require__.d(__webpack_exports__, 'getCurrentScriptDir', function() { - return __WEBPACK_IMPORTED_MODULE_3__lib__.w; - }); - var __WEBPACK_IMPORTED_MODULE_4_post_robot_src__ = __webpack_require__( - './node_modules/post-robot/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_5__error__ = __webpack_require__( - './node_modules/xcomponent/src/error.js' - ); - __webpack_require__.d(__webpack_exports__, 'PopupOpenError', function() { - return __WEBPACK_IMPORTED_MODULE_5__error__.b; - }), - __webpack_require__.d(__webpack_exports__, 'IntegrationError', function() { - return __WEBPACK_IMPORTED_MODULE_5__error__.a; - }), - __webpack_require__.d(__webpack_exports__, 'RenderError', function() { - return __WEBPACK_IMPORTED_MODULE_5__error__.c; - }); - var postRobot = __WEBPACK_IMPORTED_MODULE_4_post_robot_src__, - CONSTANTS = __webpack_require__('./node_modules/xcomponent/src/constants.js'); - }, - './node_modules/xcomponent/src/lib/css.js': function node_modulesXcomponentSrcLibCssJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function isPerc(str) { - return 'string' == typeof str && /^[0-9]+%$/.test(str); - } - function toPx(val) { - return ( - (function toNum(val) { - if ('number' == typeof val) return val; - var match = val.match(/^([0-9]+)(px|%)$/); - if (!match) throw new Error('Could not match css value from ' + val); - return parseInt(match[1], 10); - })(val) + 'px' - ); - } - (__webpack_exports__.a = isPerc), - (__webpack_exports__.b = function isPx(str) { - return 'string' == typeof str && /^[0-9]+px$/.test(str); - }), - (__webpack_exports__.c = function toCSS(val) { - return 'number' == typeof val ? toPx(val) : isPerc(val) ? val : toPx(val); - }); - }, - './node_modules/xcomponent/src/lib/decorators.js': function node_modulesXcomponentSrcLibDecoratorsJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - (__webpack_exports__.a = function memoized(target, name, descriptor) { - var method = descriptor.value; - (descriptor.value = function() { - return ( - (this.__memoized__ = this.__memoized__ || {}), - this.__memoized__.hasOwnProperty(name) || - (this.__memoized__[name] = method.apply(this, arguments)), - this.__memoized__[name] - ); - }), - (descriptor.value.displayName = name + ':memoized'); - }), - __webpack_require__('./node_modules/zalgo-promise/src/index.js'); - }, - './node_modules/xcomponent/src/lib/dom.js': function node_modulesXcomponentSrcLibDomJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function appendChild(container, child) { - container.appendChild(child); - } - function getElementSafe(id) { - if ( - (function isElement(element) { - return ( - element instanceof window.Element || - (null !== element && - 'object' === (void 0 === element ? 'undefined' : _typeof(element)) && - 1 === element.nodeType && - 'object' === _typeof(element.style) && - 'object' === _typeof(element.ownerDocument)) - ); - })(id) - ) - return id; - if ('string' == typeof id) { - var element = document.getElementById(id); - if (element) return element; - if ((document.querySelector && (element = document.querySelector(id)), element)) - return element; - } - } - function getElement(id) { - var element = getElementSafe(id); - if (element) return element; - throw new Error( - 'Can not find element: ' + Object(__WEBPACK_IMPORTED_MODULE_4__util__.k)(id) - ); - } - function isDocumentReady() { - return 'complete' === window.document.readyState; - } - function writeToWindow(win, html) { - try { - win.document.open(), win.document.write(html), win.document.close(); - } catch (err) { - try { - win.location = - 'javascript: document.open(); document.write(' + - __WEBPACK_IMPORTED_MODULE_8_babel_runtime_core_js_json_stringify___default()( - html - ) + - '); document.close();'; - } catch (err2) {} - } - } - function writeElementToWindow(win, el) { - var tag = el.tagName.toLowerCase(); - if ('html' !== tag) throw new Error('Expected element to be html, got ' + tag); - for ( - var documentElement = win.document.documentElement; - documentElement.children && documentElement.children.length; - - ) - documentElement.removeChild(documentElement.children[0]); - for (; el.children.length; ) documentElement.appendChild(el.children[0]); - } - function setStyle(el, styleText) { - var doc = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : window.document; - el.styleSheet - ? (el.styleSheet.cssText = styleText) - : el.appendChild(doc.createTextNode(styleText)); - } - function awaitFrameLoad(frame) { - if (awaitFrameLoadPromises.has(frame)) { - var _promise = awaitFrameLoadPromises.get(frame); - if (_promise) return _promise; - } - var promise = new __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a(function( - resolve, - reject - ) { - frame.addEventListener('load', function() { - Object(__WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.u)(frame), - resolve(frame); - }), - frame.addEventListener('error', function(err) { - frame.contentWindow ? resolve(frame) : reject(err); - }); - }); - return awaitFrameLoadPromises.set(frame, promise), promise; - } - function extendQuery(originalQuery) { - var props = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - return props && - __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()(props) - .length - ? (function formatQuery() { - var obj = - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; - return __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - obj - ) - .filter(function(key) { - return 'string' == typeof obj[key]; - }) - .map(function(key) { - return ( - Object(__WEBPACK_IMPORTED_MODULE_4__util__.n)(key) + - '=' + - Object(__WEBPACK_IMPORTED_MODULE_4__util__.n)(obj[key]) - ); - }) - .join('&'); - })(_extends({}, parseQuery(originalQuery), props)) - : originalQuery; - } - function getCurrentDimensions(el) { - return { width: el.offsetWidth, height: el.offsetHeight }; - } - function trackDimensions(el, _ref5) { - var _ref5$width = _ref5.width, - width = void 0 === _ref5$width || _ref5$width, - _ref5$height = _ref5.height, - height = void 0 === _ref5$height || _ref5$height, - _ref5$threshold = _ref5.threshold, - threshold = void 0 === _ref5$threshold ? 0 : _ref5$threshold, - currentDimensions = getCurrentDimensions(el); - return { - check: function check() { - var newDimensions = getCurrentDimensions(el); - return { - changed: (function dimensionsDiff(one, two, _ref4) { - var _ref4$width = _ref4.width, - width = void 0 === _ref4$width || _ref4$width, - _ref4$height = _ref4.height, - height = void 0 === _ref4$height || _ref4$height, - _ref4$threshold = _ref4.threshold, - threshold = void 0 === _ref4$threshold ? 0 : _ref4$threshold; - return ( - !!(width && Math.abs(one.width - two.width) > threshold) || - !!(height && Math.abs(one.height - two.height) > threshold) - ); - })(currentDimensions, newDimensions, { - width: width, - height: height, - threshold: threshold - }), - dimensions: newDimensions - }; - }, - reset: function reset() { - currentDimensions = getCurrentDimensions(el); - } - }; - } - function bindEvents(element, eventNames, handler) { - handler = Object(__WEBPACK_IMPORTED_MODULE_3__fn__.e)(handler); - var _iterator4 = eventNames, - _isArray4 = Array.isArray(_iterator4), - _i4 = 0; - for ( - _iterator4 = _isArray4 - ? _iterator4 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator4 - ); - ; - - ) { - var _ref8; - if (_isArray4) { - if (_i4 >= _iterator4.length) break; - _ref8 = _iterator4[_i4++]; - } else { - if ((_i4 = _iterator4.next()).done) break; - _ref8 = _i4.value; - } - var eventName = _ref8; - element.addEventListener(eventName, handler); - } - return { - cancel: Object(__WEBPACK_IMPORTED_MODULE_3__fn__.e)(function() { - var _iterator5 = eventNames, - _isArray5 = Array.isArray(_iterator5), - _i5 = 0; - for ( - _iterator5 = _isArray5 - ? _iterator5 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator5 - ); - ; - - ) { - var _ref9; - if (_isArray5) { - if (_i5 >= _iterator5.length) break; - _ref9 = _iterator5[_i5++]; - } else { - if ((_i5 = _iterator5.next()).done) break; - _ref9 = _i5.value; - } - var eventName = _ref9; - element.removeEventListener(eventName, handler); - } - }) - }; - } - function setVendorCSS(element, name, value) { - element.style[name] = value; - var capitalizedName = Object(__WEBPACK_IMPORTED_MODULE_4__util__.a)(name), - _iterator6 = VENDOR_PREFIXES, - _isArray6 = Array.isArray(_iterator6), - _i6 = 0; - for ( - _iterator6 = _isArray6 - ? _iterator6 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator6 - ); - ; - - ) { - var _ref10; - if (_isArray6) { - if (_i6 >= _iterator6.length) break; - _ref10 = _iterator6[_i6++]; - } else { - if ((_i6 = _iterator6.next()).done) break; - _ref10 = _i6.value; - } - var prefix = _ref10; - element.style['' + prefix + capitalizedName] = value; - } - } - function animate(element, name, clean) { - var timeout = - arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 1e3; - return new __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a(function( - resolve, - reject - ) { - function cleanUp() { - setVendorCSS(el, 'animationName', ''), - clearTimeout(startTimeout), - clearTimeout(endTimeout), - startEvent.cancel(), - endEvent.cancel(); - } - var el = getElement(element); - if ( - !el || - !(function isValidAnimation(element, name) { - var stylesheets = element.ownerDocument.styleSheets; - try { - for (var i = 0; i < stylesheets.length; i++) { - var cssRules = stylesheets[i].cssRules; - if (cssRules) - for (var j = 0; j < cssRules.length; j++) { - var cssRule = cssRules[j]; - if ( - cssRule && - cssRule.type === KEYFRAMES_RULE && - cssRule.name === name - ) - return !0; - } - } - } catch (err) { - return !1; - } - return !1; - })(el, name) - ) - return resolve(); - var hasStarted = !1, - startTimeout = void 0, - endTimeout = void 0, - startEvent = void 0, - endEvent = void 0; - (startEvent = bindEvents(el, ANIMATION_START_EVENTS, function(event) { - event.target === el && - event.animationName === name && - (clearTimeout(startTimeout), - event.stopPropagation(), - startEvent.cancel(), - (hasStarted = !0), - (endTimeout = setTimeout(function() { - cleanUp(), resolve(); - }, timeout))); - })), - (endEvent = bindEvents(el, ANIMATION_END_EVENTS, function(event) { - if (event.target === el && event.animationName === name) - return ( - cleanUp(), - 'string' == typeof event.animationName && event.animationName !== name - ? reject( - 'Expected animation name to be ' + - name + - ', found ' + - event.animationName - ) - : resolve() - ); - })), - setVendorCSS(el, 'animationName', name), - (startTimeout = setTimeout(function() { - if (!hasStarted) return cleanUp(), resolve(); - }, 200)), - clean && clean(cleanUp); - }); - } - function showElement(element) { - element.style.setProperty('display', ''); - } - function hideElement(element) { - element.style.setProperty('display', STYLE.DISPLAY.NONE, STYLE.IMPORTANT); - } - function isElementClosed(el) { - return !el || !el.parentNode; - } - function getHTML(url) { - return (function getHttpType(contentType, url) { - return new __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a(function( - resolve, - reject - ) { - var req = new window.XMLHttpRequest(); - req.open('GET', url), - req.setRequestHeader('Accept', contentType), - req.send(null), - (req.onload = function() { - resolve(req.responseText); - }), - (req.onerror = function() { - return reject(new Error('prefetch failed')); - }); - }); - })('text/html', url); - } - function fixScripts(el) { - var doc = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : window.document, - _iterator7 = (function querySelectorAll(el, selector) { - return Array.prototype.slice.call(el.querySelectorAll(selector)); - })(el, 'script'), - _isArray7 = Array.isArray(_iterator7), - _i7 = 0; - for ( - _iterator7 = _isArray7 - ? _iterator7 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator7 - ); - ; - - ) { - var _ref11; - if (_isArray7) { - if (_i7 >= _iterator7.length) break; - _ref11 = _iterator7[_i7++]; - } else { - if ((_i7 = _iterator7.next()).done) break; - _ref11 = _i7.value; - } - var script = _ref11, - newScript = doc.createElement('script'); - (newScript.text = script.textContent), - script.parentNode.replaceChild(newScript, script); - } - } - (__webpack_exports__.d = appendChild), - (__webpack_exports__.n = getElement), - __webpack_require__.d(__webpack_exports__, 'i', function() { - return documentReady; - }), - (__webpack_exports__.j = function elementReady(id) { - return new __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a(function( - resolve, - reject - ) { - var name = Object(__WEBPACK_IMPORTED_MODULE_4__util__.k)(id), - el = getElementSafe(id); - if (el) return resolve(el); - if (isDocumentReady()) - return reject( - new Error('Document is ready and element ' + name + ' does not exist') - ); - var interval = setInterval(function() { - return (el = getElementSafe(id)) - ? (clearInterval(interval), resolve(el)) - : isDocumentReady() - ? (clearInterval(interval), - reject( - new Error( - 'Document is ready and element ' + name + ' does not exist' - ) - )) - : void 0; - }, 10); - }); - }), - (__webpack_exports__.A = writeToWindow), - (__webpack_exports__.z = writeElementToWindow), - (__webpack_exports__.e = awaitFrameLoad), - (__webpack_exports__.f = function awaitFrameWindow(frame) { - return frame.contentWindow - ? __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a.resolve( - frame.contentWindow - ) - : awaitFrameLoad(frame).then(function(loadedFrame) { - if (!loadedFrame.contentWindow) - throw new Error('Could not find window in iframe'); - return loadedFrame.contentWindow; - }); - }), - (__webpack_exports__.p = function iframe() { - var options = - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, - el = getElement(arguments[1]), - attributes = options.attributes || {}, - style = options.style || {}, - frame = (function createElement() { - var tag = - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 'div', - options = - arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, - container = arguments[2]; - tag = tag.toLowerCase(); - var element = document.createElement(tag); - if ( - (options.style && - Object(__WEBPACK_IMPORTED_MODULE_4__util__.f)( - element.style, - options.style - ), - options.class && (element.className = options.class.join(' ')), - options.attributes) - ) { - var _iterator = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - options.attributes - ), - _isArray = Array.isArray(_iterator), - _i = 0; - for ( - _iterator = _isArray - ? _iterator - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator - ); - ; - - ) { - var _ref; - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - if ((_i = _iterator.next()).done) break; - _ref = _i.value; - } - var key = _ref; - element.setAttribute(key, options.attributes[key]); - } - } - if ( - (options.styleSheet && setStyle(element, options.styleSheet), - container && appendChild(container, element), - options.html) - ) - if ('iframe' === tag) { - if (!container || !element.contentWindow) - throw new Error( - 'Iframe html can not be written unless container provided and iframe in DOM' - ); - writeToWindow(element.contentWindow, options.html); - } else element.innerHTML = options.html; - return element; - })('iframe', { - attributes: _extends( - { frameBorder: '0', allowTransparency: 'true' }, - attributes - ), - style: _extends({ backgroundColor: 'transparent' }, style), - html: options.html, - class: options.class - }); - return ( - awaitFrameLoad(frame), - el.appendChild(frame), - (options.url || window.navigator.userAgent.match(/MSIE|Edge/i)) && - frame.setAttribute('src', options.url || 'about:blank'), - frame - ); - }), - (__webpack_exports__.b = function addEventListener(obj, event, handler) { - return ( - obj.addEventListener(event, handler), - { - cancel: function cancel() { - obj.removeEventListener(event, handler); - } - } - ); - }), - (__webpack_exports__.l = function extendUrl(url) { - var originalHash, - options = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, - query = options.query || {}, - hash = options.hash || {}, - originalUrl = void 0, - _url$split = url.split('#'); - (originalUrl = _url$split[0]), (originalHash = _url$split[1]); - var _originalUrl$split = originalUrl.split('?'); - originalUrl = _originalUrl$split[0]; - var queryString = extendQuery(_originalUrl$split[1], query), - hashString = extendQuery(originalHash, hash); - return ( - queryString && (originalUrl = originalUrl + '?' + queryString), - hashString && (originalUrl = originalUrl + '#' + hashString), - originalUrl - ); - }), - (__webpack_exports__.k = function elementStoppedMoving(element) { - var timeout = - arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 5e3; - return new __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a(function( - resolve, - reject - ) { - var el = getElement(element), - start = el.getBoundingClientRect(), - interval = void 0, - timer = void 0; - (interval = setInterval(function() { - var end = el.getBoundingClientRect(); - if ( - start.top === end.top && - start.bottom === end.bottom && - start.left === end.left && - start.right === end.right && - start.width === end.width && - start.height === end.height - ) - return clearTimeout(timer), clearInterval(interval), resolve(); - start = end; - }, 50)), - (timer = setTimeout(function() { - clearInterval(interval), - reject( - new Error( - 'Timed out waiting for element to stop animating after ' + - timeout + - 'ms' - ) - ); - }, timeout)); - }); - }), - (__webpack_exports__.u = function setOverflow(el) { - var value = - arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 'auto', - _el$style = el.style, - overflow = _el$style.overflow, - overflowX = _el$style.overflowX, - overflowY = _el$style.overflowY; - return ( - (el.style.overflow = el.style.overflowX = el.style.overflowY = value), - { - reset: function reset() { - (el.style.overflow = overflow), - (el.style.overflowX = overflowX), - (el.style.overflowY = overflowY); - } - } - ); - }), - (__webpack_exports__.x = trackDimensions), - (__webpack_exports__.r = function onDimensionsChange(el, _ref6) { - var _ref6$width = _ref6.width, - width = void 0 === _ref6$width || _ref6$width, - _ref6$height = _ref6.height, - height = void 0 === _ref6$height || _ref6$height, - _ref6$delay = _ref6.delay, - delay = void 0 === _ref6$delay ? 50 : _ref6$delay, - _ref6$threshold = _ref6.threshold, - threshold = void 0 === _ref6$threshold ? 0 : _ref6$threshold; - return new __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a(function(resolve) { - var tracker = trackDimensions(el, { - width: width, - height: height, - threshold: threshold - }), - interval = void 0, - resolver = Object(__WEBPACK_IMPORTED_MODULE_3__fn__.a)(function( - dimensions - ) { - return clearInterval(interval), resolve(dimensions); - }, - 4 * delay); - (interval = setInterval(function() { - var _tracker$check = tracker.check(), - changed = _tracker$check.changed, - dimensions = _tracker$check.dimensions; - if (changed) return tracker.reset(), resolver(dimensions); - }, delay)), - window.addEventListener('resize', function onWindowResize() { - var _tracker$check2 = tracker.check(), - changed = _tracker$check2.changed, - dimensions = _tracker$check2.dimensions; - changed && - (tracker.reset(), - window.removeEventListener('resize', onWindowResize), - resolver(dimensions)); - }); - }); - }), - (__webpack_exports__.h = function dimensionsMatchViewport(el, _ref7) { - var width = _ref7.width, - height = _ref7.height, - dimensions = getCurrentDimensions(el); - return !( - (width && dimensions.width !== window.innerWidth) || - (height && dimensions.height !== window.innerHeight) - ); - }), - (__webpack_exports__.w = showElement), - (__webpack_exports__.o = hideElement), - (__webpack_exports__.g = function destroyElement(element) { - element.parentNode && element.parentNode.removeChild(element); - }), - (__webpack_exports__.v = function showAndAnimate(element, name, clean) { - var animation = animate(element, name, clean); - return showElement(element), animation; - }), - (__webpack_exports__.c = function animateAndHide(element, name, clean) { - return animate(element, name, clean).then(function() { - hideElement(element); - }); - }), - (__webpack_exports__.a = function addClass(element, name) { - element.classList - ? element.classList.add(name) - : -1 === element.className.split(/\s+/).indexOf(name) && - (element.className += ' ' + name); - }), - (__webpack_exports__.t = function removeClass(element, name) { - element.classList - ? element.classList.remove(name) - : -1 !== element.className.split(/\s+/).indexOf(name) && - (element.className = element.className.replace(name, '')); - }), - (__webpack_exports__.m = function getCurrentScriptDir() { - return ( - console.warn( - 'Do not use xcomponent.getCurrentScriptDir() in production -- browser support is limited' - ), - document.currentScript - ? document.currentScript.src - .split('/') - .slice(0, -1) - .join('/') - : '.' - ); - }), - (__webpack_exports__.y = function watchElementForClose(element, handler) { - handler = Object(__WEBPACK_IMPORTED_MODULE_3__fn__.e)(handler); - var interval = void 0; - return ( - isElementClosed(element) - ? handler() - : (interval = Object(__WEBPACK_IMPORTED_MODULE_4__util__.j)(function() { - isElementClosed(element) && (interval.cancel(), handler()); - }, 50)), - { - cancel: function cancel() { - interval && interval.cancel(); - } - } - ); - }), - (__webpack_exports__.s = function prefetchPage(url) { - return getHTML(url); - }), - (__webpack_exports__.q = function jsxDom(name, props, content) { - name = name.toLowerCase(); - var doc = this && this.createElement ? this : window.document, - el = doc.createElement(name); - for (var prop in props) - prop in JSX_EVENTS - ? el.addEventListener(JSX_EVENTS[prop], props[prop]) - : 'innerHTML' === prop - ? ((el.innerHTML = props[prop]), fixScripts(el, doc)) - : el.setAttribute(prop, props[prop]); - if ('style' === name) { - if ('string' != typeof content) - throw new Error( - 'Expected ' + - name + - ' tag content to be string, got ' + - (void 0 === content ? 'undefined' : _typeof(content)) - ); - if (arguments.length > 3) - throw new Error('Expected only text content for ' + name + ' tag'); - setStyle(el, content, doc); - } else if ('iframe' === name) { - if (arguments.length > 3) - throw new Error('Expected only single child node for iframe'); - el.addEventListener('load', function() { - var win = el.contentWindow; - if (!win) throw new Error('Expected frame to have contentWindow'); - 'string' == typeof content - ? writeToWindow(win, content) - : writeElementToWindow(win, content); - }); - } else if ('script' === name) { - if ('string' != typeof content) - throw new Error( - 'Expected ' + - name + - ' tag content to be string, got ' + - (void 0 === content ? 'undefined' : _typeof(content)) - ); - if (arguments.length > 3) - throw new Error('Expected only text content for ' + name + ' tag'); - el.text = content; - } else - for (var i = 2; i < arguments.length; i++) - if ('string' == typeof arguments[i]) { - var textNode = document.createTextNode(arguments[i]); - appendChild(el, textNode); - } else appendChild(el, arguments[i]); - return el; - }); - var __WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__ = __webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_2_cross_domain_safe_weakmap_src__ = __webpack_require__( - './node_modules/cross-domain-safe-weakmap/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_3__fn__ = __webpack_require__( - './node_modules/xcomponent/src/lib/fn.js' - ), - __WEBPACK_IMPORTED_MODULE_4__util__ = __webpack_require__( - './node_modules/xcomponent/src/lib/util.js' - ), - _extends = (__webpack_require__('./node_modules/xcomponent/src/error.js'), - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_object_assign___default.a || - function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) - Object.prototype.hasOwnProperty.call(source, key) && - (target[key] = source[key]); - } - return target; - }), - _typeof = - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - 'symbol' == - __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_symbol_iterator___default.a - ) - ? function(obj) { - return void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - } - : function(obj) { - return obj && - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj.constructor === - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj !== - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a - .prototype - ? 'symbol' - : void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - }, - documentReady = new __WEBPACK_IMPORTED_MODULE_1_zalgo_promise_src__.a(function( - resolve - ) { - if ('complete' === window.document.readyState) return resolve(window.document); - var interval = setInterval(function() { - if ('complete' === window.document.readyState) - return clearInterval(interval), resolve(window.document); - }, 10); - }), - awaitFrameLoadPromises = new __WEBPACK_IMPORTED_MODULE_2_cross_domain_safe_weakmap_src__.a(), - parseQuery = Object(__WEBPACK_IMPORTED_MODULE_3__fn__.c)(function(queryString) { - var params = {}; - if (!queryString) return params; - if (-1 === queryString.indexOf('=')) - throw new Error('Can not parse query string params: ' + queryString); - var _iterator2 = queryString.split('&'), - _isArray2 = Array.isArray(_iterator2), - _i2 = 0; - for ( - _iterator2 = _isArray2 - ? _iterator2 - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator2 - ); - ; - - ) { - var _ref2; - if (_isArray2) { - if (_i2 >= _iterator2.length) break; - _ref2 = _iterator2[_i2++]; - } else { - if ((_i2 = _iterator2.next()).done) break; - _ref2 = _i2.value; - } - var pair = _ref2; - (pair = pair.split('='))[0] && - pair[1] && - (params[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1])); - } - return params; - }), - VENDOR_PREFIXES = ['webkit', 'moz', 'ms', 'o'], - CSSRule = window.CSSRule, - KEYFRAMES_RULE = - CSSRule.KEYFRAMES_RULE || - CSSRule.WEBKIT_KEYFRAMES_RULE || - CSSRule.MOZ_KEYFRAMES_RULE || - CSSRule.O_KEYFRAMES_RULE || - CSSRule.MS_KEYFRAMES_RULE, - ANIMATION_START_EVENTS = [ - 'animationstart', - 'webkitAnimationStart', - 'oAnimationStart', - 'MSAnimationStart' - ], - ANIMATION_END_EVENTS = [ - 'animationend', - 'webkitAnimationEnd', - 'oAnimationEnd', - 'MSAnimationEnd' - ], - STYLE = { - DISPLAY: { NONE: 'none', BLOCK: 'block' }, - VISIBILITY: { VISIBLE: 'visible', HIDDEN: 'hidden' }, - IMPORTANT: 'important' - }, - JSX_EVENTS = { onClick: 'click' }; - }, - './node_modules/xcomponent/src/lib/fn.js': function node_modulesXcomponentSrcLibFnJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - (__webpack_exports__.d = function noop() {}), - (__webpack_exports__.e = function once(method) { - var called = !1, - result = void 0; - return function() { - for ( - var _len = arguments.length, args = Array(_len), _key = 0; - _key < _len; - _key++ - ) - args[_key] = arguments[_key]; - return called - ? result - : ((called = !0), (result = method.apply(this, arguments))); - }; - }), - (__webpack_exports__.c = function memoize(method) { - var results = {}; - return function() { - for ( - var _len2 = arguments.length, args = Array(_len2), _key2 = 0; - _key2 < _len2; - _key2++ - ) - args[_key2] = arguments[_key2]; - var cacheKey = void 0; - try { - cacheKey = __WEBPACK_IMPORTED_MODULE_8_babel_runtime_core_js_json_stringify___default()( - Array.prototype.slice.call(arguments), - function(key, val) { - return 'function' == typeof val - ? 'xcomponent:memoize[' + - Object(__WEBPACK_IMPORTED_MODULE_0__util__.h)(val) + - ']' - : val; - } - ); - } catch (err) { - throw new Error('Arguments not serializable -- can not be used to memoize'); - } - return ( - results.hasOwnProperty(cacheKey) || - (results[cacheKey] = method.apply(this, arguments)), - results[cacheKey] - ); - }; - }), - (__webpack_exports__.a = function debounce(method) { - var time = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 100, - timeout = void 0; - return function() { - var _this = this, - _arguments = arguments; - clearTimeout(timeout), - (timeout = setTimeout(function() { - return method.apply(_this, _arguments); - }, time)); - }; - }), - (__webpack_exports__.f = function serializeFunctions(obj) { - return Object(__WEBPACK_IMPORTED_MODULE_0__util__.i)(obj, function( - value, - key, - fullKey - ) { - if (value instanceof Function) return { __type__: '__function__' }; - }); - }), - (__webpack_exports__.b = function deserializeFunctions(obj, handler) { - return Object(__WEBPACK_IMPORTED_MODULE_0__util__.i)(obj, function( - value, - key, - fullKey - ) { - if (value && '__function__' === value.__type__) - return function() { - return handler({ - key: key, - fullKey: fullKey, - self: this, - args: arguments - }); - }; - }); - }); - var __WEBPACK_IMPORTED_MODULE_0__util__ = __webpack_require__( - './node_modules/xcomponent/src/lib/util.js' - ); - }, - './node_modules/xcomponent/src/lib/global.js': function node_modulesXcomponentSrcLibGlobalJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function globalFor(win) { - if (Object(__WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__.p)(win)) - return ( - win[__WEBPACK_IMPORTED_MODULE_1__constants__.__XCOMPONENT__] || - (win[__WEBPACK_IMPORTED_MODULE_1__constants__.__XCOMPONENT__] = {}), - win[__WEBPACK_IMPORTED_MODULE_1__constants__.__XCOMPONENT__] - ); - } - (__webpack_exports__.b = globalFor), - __webpack_require__.d(__webpack_exports__, 'a', function() { - return global; - }); - var __WEBPACK_IMPORTED_MODULE_0_cross_domain_utils_src__ = __webpack_require__( - './node_modules/cross-domain-utils/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__( - './node_modules/xcomponent/src/constants.js' - ), - global = (function() { - var global = globalFor(window); - if (!global) throw new Error('Could not get local global'); - return global; - })(); - }, - './node_modules/xcomponent/src/lib/index.js': function node_modulesXcomponentSrcLibIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - var __WEBPACK_IMPORTED_MODULE_0__dom__ = __webpack_require__( - './node_modules/xcomponent/src/lib/dom.js' - ); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.a; - }), - __webpack_require__.d(__webpack_exports__, 'b', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.b; - }), - __webpack_require__.d(__webpack_exports__, 'c', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.c; - }), - __webpack_require__.d(__webpack_exports__, 'd', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.d; - }), - __webpack_require__.d(__webpack_exports__, 'e', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.e; - }), - __webpack_require__.d(__webpack_exports__, 'f', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.f; - }), - __webpack_require__.d(__webpack_exports__, 'l', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.g; - }), - __webpack_require__.d(__webpack_exports__, 'm', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.h; - }), - __webpack_require__.d(__webpack_exports__, 'n', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.i; - }), - __webpack_require__.d(__webpack_exports__, 'p', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.j; - }), - __webpack_require__.d(__webpack_exports__, 'q', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.k; - }), - __webpack_require__.d(__webpack_exports__, 'u', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.l; - }), - __webpack_require__.d(__webpack_exports__, 'w', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.m; - }), - __webpack_require__.d(__webpack_exports__, 'x', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.n; - }), - __webpack_require__.d(__webpack_exports__, 'A', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.o; - }), - __webpack_require__.d(__webpack_exports__, 'B', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.p; - }), - __webpack_require__.d(__webpack_exports__, 'F', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.q; - }), - __webpack_require__.d(__webpack_exports__, 'J', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.r; - }), - __webpack_require__.d(__webpack_exports__, 'L', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.s; - }), - __webpack_require__.d(__webpack_exports__, 'N', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.t; - }), - __webpack_require__.d(__webpack_exports__, 'R', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.u; - }), - __webpack_require__.d(__webpack_exports__, 'S', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.v; - }), - __webpack_require__.d(__webpack_exports__, 'T', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.w; - }), - __webpack_require__.d(__webpack_exports__, 'X', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.x; - }), - __webpack_require__.d(__webpack_exports__, '_1', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.y; - }), - __webpack_require__.d(__webpack_exports__, '_2', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.z; - }), - __webpack_require__.d(__webpack_exports__, '_3', function() { - return __WEBPACK_IMPORTED_MODULE_0__dom__.A; - }); - var __WEBPACK_IMPORTED_MODULE_1__fn__ = __webpack_require__( - './node_modules/xcomponent/src/lib/fn.js' - ); - __webpack_require__.d(__webpack_exports__, 'k', function() { - return __WEBPACK_IMPORTED_MODULE_1__fn__.b; - }), - __webpack_require__.d(__webpack_exports__, 'G', function() { - return __WEBPACK_IMPORTED_MODULE_1__fn__.c; - }), - __webpack_require__.d(__webpack_exports__, 'I', function() { - return __WEBPACK_IMPORTED_MODULE_1__fn__.d; - }), - __webpack_require__.d(__webpack_exports__, 'K', function() { - return __WEBPACK_IMPORTED_MODULE_1__fn__.e; - }), - __webpack_require__.d(__webpack_exports__, 'P', function() { - return __WEBPACK_IMPORTED_MODULE_1__fn__.f; - }); - var __WEBPACK_IMPORTED_MODULE_2__promise__ = __webpack_require__( - './node_modules/xcomponent/src/lib/promise.js' - ); - __webpack_require__.d(__webpack_exports__, 'h', function() { - return __WEBPACK_IMPORTED_MODULE_2__promise__.a; - }), - __webpack_require__.d(__webpack_exports__, 'j', function() { - return __WEBPACK_IMPORTED_MODULE_2__promise__.b; - }), - __webpack_require__.d(__webpack_exports__, 'M', function() { - return __WEBPACK_IMPORTED_MODULE_2__promise__.c; - }); - var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__( - './node_modules/xcomponent/src/lib/util.js' - ); - __webpack_require__.d(__webpack_exports__, 'g', function() { - return __WEBPACK_IMPORTED_MODULE_3__util__.b; - }), - __webpack_require__.d(__webpack_exports__, 'i', function() { - return __WEBPACK_IMPORTED_MODULE_3__util__.c; - }), - __webpack_require__.d(__webpack_exports__, 'o', function() { - return __WEBPACK_IMPORTED_MODULE_3__util__.d; - }), - __webpack_require__.d(__webpack_exports__, 's', function() { - return __WEBPACK_IMPORTED_MODULE_3__util__.e; - }), - __webpack_require__.d(__webpack_exports__, 't', function() { - return __WEBPACK_IMPORTED_MODULE_3__util__.f; - }), - __webpack_require__.d(__webpack_exports__, 'v', function() { - return __WEBPACK_IMPORTED_MODULE_3__util__.g; - }), - __webpack_require__.d(__webpack_exports__, 'O', function() { - return __WEBPACK_IMPORTED_MODULE_3__util__.i; - }), - __webpack_require__.d(__webpack_exports__, 'U', function() { - return __WEBPACK_IMPORTED_MODULE_3__util__.k; - }), - __webpack_require__.d(__webpack_exports__, 'V', function() { - return __WEBPACK_IMPORTED_MODULE_3__util__.l; - }), - __webpack_require__.d(__webpack_exports__, 'Y', function() { - return __WEBPACK_IMPORTED_MODULE_3__util__.m; - }), - __webpack_require__.d(__webpack_exports__, 'Z', function() { - return __WEBPACK_IMPORTED_MODULE_3__util__.o; - }); - var __WEBPACK_IMPORTED_MODULE_4__css__ = __webpack_require__( - './node_modules/xcomponent/src/lib/css.js' - ); - __webpack_require__.d(__webpack_exports__, 'D', function() { - return __WEBPACK_IMPORTED_MODULE_4__css__.a; - }), - __webpack_require__.d(__webpack_exports__, 'E', function() { - return __WEBPACK_IMPORTED_MODULE_4__css__.b; - }), - __webpack_require__.d(__webpack_exports__, 'W', function() { - return __WEBPACK_IMPORTED_MODULE_4__css__.c; - }); - var __WEBPACK_IMPORTED_MODULE_5__decorators__ = __webpack_require__( - './node_modules/xcomponent/src/lib/decorators.js' - ); - __webpack_require__.d(__webpack_exports__, 'H', function() { - return __WEBPACK_IMPORTED_MODULE_5__decorators__.a; - }); - var __WEBPACK_IMPORTED_MODULE_6__logger__ = __webpack_require__( - './node_modules/xcomponent/src/lib/logger.js' - ); - __webpack_require__.d(__webpack_exports__, 'r', function() { - return __WEBPACK_IMPORTED_MODULE_6__logger__.a; - }), - __webpack_require__.d(__webpack_exports__, 'C', function() { - return __WEBPACK_IMPORTED_MODULE_6__logger__.b; - }), - __webpack_require__.d(__webpack_exports__, 'Q', function() { - return __WEBPACK_IMPORTED_MODULE_6__logger__.c; - }), - __webpack_require__.d(__webpack_exports__, '_0', function() { - return __WEBPACK_IMPORTED_MODULE_6__logger__.d; - }); - var __WEBPACK_IMPORTED_MODULE_7__global__ = __webpack_require__( - './node_modules/xcomponent/src/lib/global.js' - ); - __webpack_require__.d(__webpack_exports__, 'y', function() { - return __WEBPACK_IMPORTED_MODULE_7__global__.a; - }), - __webpack_require__.d(__webpack_exports__, 'z', function() { - return __WEBPACK_IMPORTED_MODULE_7__global__.b; - }); - }, - './node_modules/xcomponent/src/lib/logger.js': function node_modulesXcomponentSrcLibLoggerJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - (__webpack_exports__.c = function setLogLevel(logLevel) { - if (-1 === __WEBPACK_IMPORTED_MODULE_1_beaver_logger_client__.e.indexOf(logLevel)) - throw new Error('Invalid logLevel: ' + logLevel); - (__WEBPACK_IMPORTED_MODULE_1_beaver_logger_client__.a.logLevel = logLevel), - (__WEBPACK_IMPORTED_MODULE_0_post_robot_src__.CONFIG.LOG_LEVEL = logLevel), - (window.LOG_LEVEL = logLevel); - }), - (__webpack_exports__.b = function info(name, event) { - var payload = - arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; - __WEBPACK_IMPORTED_MODULE_1_beaver_logger_client__.d( - 'xc_' + name + '_' + event, - payload - ); - }), - (__webpack_exports__.d = function warn(name, event) { - var payload = - arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; - __WEBPACK_IMPORTED_MODULE_1_beaver_logger_client__.f( - 'xc_' + name + '_' + event, - payload - ); - }), - (__webpack_exports__.a = function error(name, event) { - var payload = - arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; - __WEBPACK_IMPORTED_MODULE_1_beaver_logger_client__.b( - 'xc_' + name + '_' + event, - payload - ); - }); - var __WEBPACK_IMPORTED_MODULE_0_post_robot_src__ = __webpack_require__( - './node_modules/post-robot/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1_beaver_logger_client__ = __webpack_require__( - './node_modules/beaver-logger/client/index.js' - ); - }, - './node_modules/xcomponent/src/lib/promise.js': function node_modulesXcomponentSrcLibPromiseJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - (__webpack_exports__.b = function denodeify(method) { - return function() { - var self = this, - args = Array.prototype.slice.call(arguments); - return args.length >= method.length - ? __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__.a.resolve( - method.apply(self, args) - ) - : new __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__.a(function( - resolve, - reject - ) { - args.push(function(err, result) { - if (err && !(err instanceof Error)) - throw new Error( - 'Passed non-Error object in callback: [ ' + - err + - ' ] -- callbacks should either be called with callback(new Error(...)) or callback(null, result).' - ); - return err ? reject(err) : resolve(result); - }), - method.apply(self, args); - }); - }; - }), - (__webpack_exports__.c = function promisify(method) { - return function() { - var _this = this, - _arguments = arguments; - return __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__.a.try(function() { - return method.apply(_this, _arguments); - }); - }; - }), - (__webpack_exports__.a = function cycle(method) { - return __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__.a - .try(method) - .then(function() { - return cycle(method); - }); - }); - var __WEBPACK_IMPORTED_MODULE_0_zalgo_promise_src__ = __webpack_require__( - './node_modules/zalgo-promise/src/index.js' - ); - }, - './node_modules/xcomponent/src/lib/util.js': function node_modulesXcomponentSrcLibUtilJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - function uniqueID() { - var chars = '0123456789abcdef'; - return 'xxxxxxxxxx'.replace(/./g, function() { - return chars.charAt(Math.floor(Math.random() * chars.length)); - }); - } - function stringify(item) { - return 'string' == typeof item - ? item - : item && 'function' == typeof item.toString - ? item.toString() - : Object.prototype.toString.call(item); - } - (__webpack_exports__.n = function urlEncode(str) { - return str - .replace(/\?/g, '%3F') - .replace(/\&/g, '%26') - .replace(/#/g, '%23') - .replace(/\+/g, '%2B'); - }), - (__webpack_exports__.c = function dasherizeToCamel(string) { - return string.replace(/-([a-z])/g, function(g) { - return g[1].toUpperCase(); - }); - }), - (__webpack_exports__.f = function extend(obj, source) { - if (!source) return obj; - for (var key in source) source.hasOwnProperty(key) && (obj[key] = source[key]); - return obj; - }), - (__webpack_exports__.o = function values(obj) { - var results = []; - for (var key in obj) obj.hasOwnProperty(key) && results.push(obj[key]); - return results; - }), - (__webpack_exports__.m = uniqueID), - (__webpack_exports__.a = function capitalizeFirstLetter(string) { - return string.charAt(0).toUpperCase() + string.slice(1).toLowerCase(); - }), - (__webpack_exports__.g = function get(item, path, def) { - if (!path) return def; - for (var pathParts = path.split('.'), i = 0; i < pathParts.length; i++) { - if ( - 'object' !== (void 0 === item ? 'undefined' : _typeof(item)) || - null === item - ) - return def; - item = item[pathParts[i]]; - } - return void 0 === item ? def : item; - }), - (__webpack_exports__.j = function safeInterval(method, time) { - var timeout = void 0; - return ( - (timeout = setTimeout(function runInterval() { - (timeout = setTimeout(runInterval, time)), method.call(); - }, time)), - { - cancel: function cancel() { - clearTimeout(timeout); - } - } - ); - }), - (__webpack_exports__.i = function replaceObject(obj, callback) { - var parentKey = - arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : '', - newobj = obj instanceof Array ? [] : {}; - return ( - (function each(item, callback) { - if (item) - if (item instanceof Array) - for (var len = item.length, i = 0; i < len; i++) callback(item[i], i); - else if ('object' === (void 0 === item ? 'undefined' : _typeof(item))) - for ( - var keys = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - item - ), - _len = keys.length, - _i = 0; - _i < _len; - _i++ - ) { - var key = keys[_i]; - callback(item[key], key); - } - })(obj, function(item, key) { - var fullKey = parentKey ? parentKey + '.' + key : key, - result = callback(item, key, fullKey); - void 0 !== result - ? (newobj[key] = result) - : 'object' === (void 0 === item ? 'undefined' : _typeof(item)) && - null !== item - ? (newobj[key] = replaceObject(item, callback, fullKey)) - : (newobj[key] = item); - }), - newobj - ); - }), - (__webpack_exports__.b = function copyProp(source, target, name, def) { - if (source.hasOwnProperty(name)) { - var descriptor = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_own_property_descriptor___default()( - source, - name - ); - __WEBPACK_IMPORTED_MODULE_9_babel_runtime_core_js_object_define_property___default()( - target, - name, - descriptor - ); - } else target[name] = def; - }), - (__webpack_exports__.d = function dotify(obj) { - var prefix = - arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : '', - newobj = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; - prefix = prefix ? prefix + '.' : prefix; - for (var key in obj) - void 0 !== obj[key] && - null !== obj[key] && - 'function' != typeof obj[key] && - (obj[key] && - Array.isArray(obj[key]) && - obj[key].length && - obj[key].every(function(val) { - return 'object' !== (void 0 === val ? 'undefined' : _typeof(val)); - }) - ? (newobj['' + prefix + key] = obj[key].join(',')) - : obj[key] && 'object' === _typeof(obj[key]) - ? (newobj = dotify(obj[key], '' + prefix + key, newobj)) - : (newobj['' + prefix + key] = obj[key].toString())); - return newobj; - }), - (__webpack_exports__.h = function getObjectID(obj) { - if ( - null === obj || - void 0 === obj || - ('object' !== (void 0 === obj ? 'undefined' : _typeof(obj)) && - 'function' != typeof obj) - ) - throw new Error('Invalid object'); - var uid = objectIDs.get(obj); - return ( - uid || - ((uid = (void 0 === obj ? 'undefined' : _typeof(obj)) + ':' + uniqueID()), - objectIDs.set(obj, uid)), - uid - ); - }), - (__webpack_exports__.k = stringify), - (__webpack_exports__.l = function stringifyError(err) { - if (err) { - var stack = err.stack, - message = err.message; - if ('string' == typeof stack) return stack; - if ('string' == typeof message) return message; - } - return stringify(err); - }), - (__webpack_exports__.e = function eventEmitter() { - var triggered = {}, - handlers = {}; - return { - on: function on(eventName, handler) { - var handlerList = (handlers[eventName] = handlers[eventName] || []); - handlerList.push(handler); - var cancelled = !1; - return { - cancel: function cancel() { - cancelled || - ((cancelled = !0), - handlerList.splice(handlerList.indexOf(handler), 1)); - } - }; - }, - once: function once(eventName, handler) { - var listener = this.on(eventName, function() { - listener.cancel(), handler(); - }); - return listener; - }, - trigger: function trigger(eventName) { - var handlerList = handlers[eventName]; - if (handlerList) { - var _iterator = handlerList, - _isArray = Array.isArray(_iterator), - _i2 = 0; - for ( - _iterator = _isArray - ? _iterator - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator - ); - ; - - ) { - var _ref; - if (_isArray) { - if (_i2 >= _iterator.length) break; - _ref = _iterator[_i2++]; - } else { - if ((_i2 = _iterator.next()).done) break; - _ref = _i2.value; - } - _ref(); - } - } - }, - triggerOnce: function triggerOnce(eventName) { - triggered[eventName] || - ((triggered[eventName] = !0), this.trigger(eventName)); - } - }; - }); - var __WEBPACK_IMPORTED_MODULE_0_cross_domain_safe_weakmap_src__ = __webpack_require__( - './node_modules/cross-domain-safe-weakmap/src/index.js' - ), - _typeof = - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - 'symbol' == - __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_symbol_iterator___default.a - ) - ? function(obj) { - return void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - } - : function(obj) { - return obj && - 'function' == - typeof __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj.constructor === - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a && - obj !== - __WEBPACK_IMPORTED_MODULE_6_babel_runtime_core_js_symbol___default.a - .prototype - ? 'symbol' - : void 0 === obj - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()( - obj - ); - }, - objectIDs = new __WEBPACK_IMPORTED_MODULE_0_cross_domain_safe_weakmap_src__.a(); - }, - './node_modules/zalgo-promise/src/exceptions.js': function node_modulesZalgoPromiseSrcExceptionsJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - (__webpack_exports__.a = function dispatchPossiblyUnhandledError(err) { - if (-1 === dispatchedErrors.indexOf(err)) { - dispatchedErrors.push(err), - setTimeout(function() { - throw err; - }, 1); - for (var j = 0; j < possiblyUnhandledPromiseHandlers.length; j++) - possiblyUnhandledPromiseHandlers[j](err); - } - }), - (__webpack_exports__.b = function onPossiblyUnhandledException(handler) { - return ( - possiblyUnhandledPromiseHandlers.push(handler), - { - cancel: function cancel() { - possiblyUnhandledPromiseHandlers.splice( - possiblyUnhandledPromiseHandlers.indexOf(handler), - 1 - ); - } - } - ); - }); - var possiblyUnhandledPromiseHandlers = [], - dispatchedErrors = []; - }, - './node_modules/zalgo-promise/src/index.js': function node_modulesZalgoPromiseSrcIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - var __WEBPACK_IMPORTED_MODULE_0__promise__ = __webpack_require__( - './node_modules/zalgo-promise/src/promise.js' - ); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__promise__.a; - }); - }, - './node_modules/zalgo-promise/src/promise.js': function node_modulesZalgoPromiseSrcPromiseJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return ZalgoPromise; - }); - var __WEBPACK_IMPORTED_MODULE_0__utils__ = __webpack_require__( - './node_modules/zalgo-promise/src/utils.js' - ), - __WEBPACK_IMPORTED_MODULE_1__exceptions__ = __webpack_require__( - './node_modules/zalgo-promise/src/exceptions.js' - ), - global = (window.__zalgopromise__ = window.__zalgopromise__ || { - flushPromises: [], - activeCount: 0 - }), - ZalgoPromise = (function() { - function ZalgoPromise(handler) { - var _this = this; - if ( - ((function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) - throw new TypeError('Cannot call a class as a function'); - })(this, ZalgoPromise), - (this.resolved = !1), - (this.rejected = !1), - (this.errorHandled = !1), - (this.handlers = []), - handler) - ) { - var _result = void 0, - _error = void 0, - resolved = !1, - rejected = !1, - isAsync = !1; - try { - handler( - function(res) { - isAsync ? _this.resolve(res) : ((resolved = !0), (_result = res)); - }, - function(err) { - isAsync ? _this.reject(err) : ((rejected = !0), (_error = err)); - } - ); - } catch (err) { - return void this.reject(err); - } - (isAsync = !0), - resolved ? this.resolve(_result) : rejected && this.reject(_error); - } - } - return ( - (ZalgoPromise.prototype.resolve = function(result) { - if (this.resolved || this.rejected) return this; - if (Object(__WEBPACK_IMPORTED_MODULE_0__utils__.a)(result)) - throw new Error('Can not resolve promise with another promise'); - return (this.resolved = !0), (this.value = result), this.dispatch(), this; - }), - (ZalgoPromise.prototype.reject = function(error) { - var _this2 = this; - if (this.resolved || this.rejected) return this; - if (Object(__WEBPACK_IMPORTED_MODULE_0__utils__.a)(error)) - throw new Error('Can not reject promise with another promise'); - if (!error) { - var _err = - error && 'function' == typeof error.toString - ? error.toString() - : Object.prototype.toString.call(error); - error = new Error('Expected reject to be called with Error, got ' + _err); - } - return ( - (this.rejected = !0), - (this.error = error), - this.errorHandled || - setTimeout(function() { - _this2.errorHandled || - Object(__WEBPACK_IMPORTED_MODULE_1__exceptions__.a)(error); - }, 1), - this.dispatch(), - this - ); - }), - (ZalgoPromise.prototype.asyncReject = function(error) { - (this.errorHandled = !0), this.reject(error); - }), - (ZalgoPromise.prototype.dispatch = function() { - var _this3 = this, - dispatching = this.dispatching, - resolved = this.resolved, - rejected = this.rejected, - handlers = this.handlers; - if (!dispatching && (resolved || rejected)) { - (this.dispatching = !0), (global.activeCount += 1); - for (var i = 0; i < handlers.length; i++) - !(function(i) { - var _handlers$i = handlers[i], - onSuccess = _handlers$i.onSuccess, - onError = _handlers$i.onError, - promise = _handlers$i.promise, - result = void 0; - if (resolved) - try { - result = onSuccess ? onSuccess(_this3.value) : _this3.value; - } catch (err) { - return promise.reject(err), 'continue'; - } - else if (rejected) { - if (!onError) return promise.reject(_this3.error), 'continue'; - try { - result = onError(_this3.error); - } catch (err) { - return promise.reject(err), 'continue'; - } - } - result instanceof ZalgoPromise && (result.resolved || result.rejected) - ? (result.resolved - ? promise.resolve(result.value) - : promise.reject(result.error), - (result.errorHandled = !0)) - : Object(__WEBPACK_IMPORTED_MODULE_0__utils__.a)(result) - ? result instanceof ZalgoPromise && - (result.resolved || result.rejected) - ? result.resolved - ? promise.resolve(result.value) - : promise.reject(result.error) - : result.then( - function(res) { - promise.resolve(res); - }, - function(err) { - promise.reject(err); - } - ) - : promise.resolve(result); - })(i); - (handlers.length = 0), - (this.dispatching = !1), - (global.activeCount -= 1), - 0 === global.activeCount && ZalgoPromise.flushQueue(); - } - }), - (ZalgoPromise.prototype.then = function(onSuccess, onError) { - if (onSuccess && 'function' != typeof onSuccess && !onSuccess.call) - throw new Error('Promise.then expected a function for success handler'); - if (onError && 'function' != typeof onError && !onError.call) - throw new Error('Promise.then expected a function for error handler'); - var promise = new ZalgoPromise(); - return ( - this.handlers.push({ - promise: promise, - onSuccess: onSuccess, - onError: onError - }), - (this.errorHandled = !0), - this.dispatch(), - promise - ); - }), - (ZalgoPromise.prototype.catch = function(onError) { - return this.then(void 0, onError); - }), - (ZalgoPromise.prototype.finally = function(handler) { - return this.then( - function(result) { - return ZalgoPromise.try(handler).then(function() { - return result; - }); - }, - function(err) { - return ZalgoPromise.try(handler).then(function() { - throw err; - }); - } - ); - }), - (ZalgoPromise.prototype.timeout = function(time, err) { - var _this4 = this; - if (this.resolved || this.rejected) return this; - var timeout = setTimeout(function() { - _this4.resolved || - _this4.rejected || - _this4.reject( - err || new Error('Promise timed out after ' + time + 'ms') - ); - }, time); - return this.then(function(result) { - return clearTimeout(timeout), result; - }); - }), - (ZalgoPromise.prototype.toPromise = function() { - if (!window.Promise) throw new Error('Could not find window.Promise'); - return window.Promise.resolve(this); - }), - (ZalgoPromise.resolve = function(value) { - return value instanceof ZalgoPromise - ? value - : Object(__WEBPACK_IMPORTED_MODULE_0__utils__.a)(value) - ? new ZalgoPromise(function(resolve, reject) { - return value.then(resolve, reject); - }) - : new ZalgoPromise().resolve(value); - }), - (ZalgoPromise.reject = function(error) { - return new ZalgoPromise().reject(error); - }), - (ZalgoPromise.all = function(promises) { - var promise = new ZalgoPromise(), - count = promises.length, - results = []; - if (!count) return promise.resolve(results), promise; - for (var i = 0; i < promises.length; i++) - !(function(i) { - var prom = promises[i]; - if (prom instanceof ZalgoPromise) { - if (prom.resolved) - return (results[i] = prom.value), (count -= 1), 'continue'; - } else if (!Object(__WEBPACK_IMPORTED_MODULE_0__utils__.a)(prom)) - return (results[i] = prom), (count -= 1), 'continue'; - ZalgoPromise.resolve(prom).then( - function(result) { - (results[i] = result), - 0 === (count -= 1) && promise.resolve(results); - }, - function(err) { - promise.reject(err); - } - ); - })(i); - return 0 === count && promise.resolve(results), promise; - }), - (ZalgoPromise.hash = function(promises) { - var result = {}; - return ZalgoPromise.all( - __WEBPACK_IMPORTED_MODULE_4_babel_runtime_core_js_object_keys___default()( - promises - ).map(function(key) { - return ZalgoPromise.resolve(promises[key]).then(function(value) { - result[key] = value; - }); - }) - ).then(function() { - return result; - }); - }), - (ZalgoPromise.map = function(items, method) { - return ZalgoPromise.all(items.map(method)); - }), - (ZalgoPromise.onPossiblyUnhandledException = function(handler) { - return Object(__WEBPACK_IMPORTED_MODULE_1__exceptions__.b)(handler); - }), - (ZalgoPromise.try = function(method, context, args) { - var result = void 0; - try { - result = method.apply(context, args || []); - } catch (err) { - return ZalgoPromise.reject(err); - } - return ZalgoPromise.resolve(result); - }), - (ZalgoPromise.delay = function(_delay) { - return new ZalgoPromise(function(resolve) { - setTimeout(resolve, _delay); - }); - }), - (ZalgoPromise.isPromise = function(value) { - return ( - !!(value && value instanceof ZalgoPromise) || - Object(__WEBPACK_IMPORTED_MODULE_0__utils__.a)(value) - ); - }), - (ZalgoPromise.flush = function() { - var promise = new ZalgoPromise(); - return ( - global.flushPromises.push(promise), - 0 === global.activeCount && ZalgoPromise.flushQueue(), - promise - ); - }), - (ZalgoPromise.flushQueue = function() { - var promisesToFlush = global.flushPromises; - global.flushPromises = []; - var _iterator = promisesToFlush, - _isArray = Array.isArray(_iterator), - _i = 0; - for ( - _iterator = _isArray - ? _iterator - : __WEBPACK_IMPORTED_MODULE_7_babel_runtime_core_js_get_iterator___default()( - _iterator - ); - ; - - ) { - var _ref; - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - if ((_i = _iterator.next()).done) break; - _ref = _i.value; - } - _ref.resolve(); - } - }), - ZalgoPromise - ); - })(); - }, - './node_modules/zalgo-promise/src/utils.js': function node_modulesZalgoPromiseSrcUtilsJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_exports__.a = function isPromise(item) { - try { - if (!item) return !1; - if (window.Promise && item instanceof window.Promise) return !0; - if (window.Window && item instanceof window.Window) return !1; - if (window.constructor && item instanceof window.constructor) return !1; - if (toString) { - var name = toString.call(item); - if ( - '[object Window]' === name || - '[object global]' === name || - '[object DOMWindow]' === name - ) - return !1; - } - if ('function' == typeof item.then) return !0; - } catch (err) { - return !1; - } - return !1; - }; - var toString = {}.toString; - }, - './src/button/component.jsx': function srcButtonComponentJsx( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_require__.d(__webpack_exports__, 'a', function() { - return Button; - }); - var __WEBPACK_IMPORTED_MODULE_0_xcomponent_src__ = __webpack_require__( - './node_modules/xcomponent/src/index.js' - ), - __WEBPACK_IMPORTED_MODULE_1__template__ = __webpack_require__( - './src/button/template.jsx' - ), - __WEBPACK_IMPORTED_MODULE_2__container__ = __webpack_require__( - './src/button/container.jsx' - ), - Button = Object(__WEBPACK_IMPORTED_MODULE_0_xcomponent_src__.a)({ - tag: 'brainblocks-button', - defaultEnv: 'production', - url: { - test: '/base/test/windows/button/index.htm', - local: 'http://localhost:8000/button', - production: 'https://brainblocks.io/button' - }, - domain: { - test: 'mock://www.my-site.com', - local: 'http://localhost:8000', - production: 'https://brainblocks.io' - }, - dimensions: { width: '300px', height: '50px' }, - props: { - payment: { - type: 'object', - required: !0, - validate: function validate(payment) { - if (!payment.destination) throw new Error('Expected payment.destination'); - if (!payment.destination.match(/^xrb_[a-z0-9]{60}$/)) - throw new Error('Invalid raiblocks address: ' + payment.destination); - if (!payment.currency) throw new Error('Expected payment.currency'); - if ('rai' !== payment.currency) - throw new Error( - "Expected payment.currency to be 'rai', got " + payment.currency - ); - if (!payment.amount) throw new Error('Expected payment.amount'); - if ('number' != typeof payment.amount) - throw new Error( - 'Expected payment.amount to be a number, got ' + payment.amount - ); - if (payment.amount <= 0) - throw new Error( - 'Expected payment.amount to be at least 1, got ' + payment.amount - ); - if ('rai' === payment.currency && payment.amount > 5e6) - throw new Error( - 'Expected payment.amount to be less then 5000000 RAI, got ' + - payment.amount - ); - } - }, - onPayment: { type: 'function', required: !0 } - }, - defaultContext: 'iframe', - contexts: { iframe: !0, popup: !1 }, - prerenderTemplate: function prerenderTemplate(_ref) { - var jsxDom = _ref.jsxDom, - props = _ref.props; - return jsxDom( - 'html', - null, - jsxDom( - 'head', - null, - jsxDom( - 'style', - null, - '\n html, body {\n border: 0;\n padding: 0;\n margin: 0;\n }\n ' - ) - ), - jsxDom( - 'body', - null, - Object(__WEBPACK_IMPORTED_MODULE_1__template__.a)({ props: props }) - ) - ); - }, - containerTemplate: __WEBPACK_IMPORTED_MODULE_2__container__.a - }); - }, - './src/button/container.jsx': function srcButtonContainerJsx( - module, - __webpack_exports__, - __webpack_require__ - ) { - (__webpack_exports__.a = function containerTemplate(_ref) { - var id = _ref.id, - tag = _ref.tag, - context = _ref.context, - CLASS = _ref.CLASS, - outlet = _ref.outlet, - jsxDom = _ref.jsxDom, - _ref$dimensions = _ref.dimensions, - width = _ref$dimensions.width, - height = _ref$dimensions.height; - return jsxDom( - 'div', - { - id: id, - class: - CLASS.XCOMPONENT + - ' ' + - CLASS.XCOMPONENT + - '-tag-' + - tag + - ' ' + - CLASS.XCOMPONENT + - '-context-' + - context - }, - jsxDom( - 'style', - null, - '\n #' + - id + - ', #' + - id + - ' > .' + - CLASS.OUTLET + - ' {\n width: ' + - width + - ';\n height: ' + - height + - ';\n transition: height 0.5s ease-in-out;\n }\n\n #' + - id + - ' > .' + - CLASS.OUTLET + - ' {\n display: inline-block;\n position: relative;\n transition: height 0.5s ease-in-out;\n }\n\n #' + - id + - ' > .' + - CLASS.OUTLET + - ' > iframe {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n transition: opacity .2s ease-in-out;\n }\n\n #' + - id + - ' > .' + - CLASS.OUTLET + - ' > iframe.' + - CLASS.VISIBLE + - ' {\n opacity: 1;\n }\n\n #' + - id + - ' > .' + - CLASS.OUTLET + - ' > iframe.' + - CLASS.INVISIBLE + - ' {\n opacity: 0;\n }\n ' - ), - outlet - ); - }), - __webpack_require__('./node_modules/xcomponent/src/component/parent/index.js'); - }, - './src/button/index.js': function srcButtonIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - var __WEBPACK_IMPORTED_MODULE_0__component__ = __webpack_require__( - './src/button/component.jsx' - ); - __webpack_require__.d(__webpack_exports__, 'a', function() { - return __WEBPACK_IMPORTED_MODULE_0__component__.a; - }); - var __WEBPACK_IMPORTED_MODULE_1__template__ = __webpack_require__( - './src/button/template.jsx' - ); - __webpack_require__.d(__webpack_exports__, 'b', function() { - return __WEBPACK_IMPORTED_MODULE_1__template__.a; - }); - }, - './src/button/template.jsx': function srcButtonTemplateJsx( - module, - __webpack_exports__, - __webpack_require__ - ) { - __webpack_exports__.a = function buttonTemplate(_ref) { - var mrai = (_ref.props.payment.amount / 1e6).toFixed(3); - return Object(__WEBPACK_IMPORTED_MODULE_0_xcomponent_src_lib__.F)( - 'div', - { class: 'brainblocks-button-container' }, - Object(__WEBPACK_IMPORTED_MODULE_0_xcomponent_src_lib__.F)( - 'style', - null, - '\n .brainblocks-button {\n display: inline-block;\n width: 300px;\n height: 50px;\n background-color: #eee;\n border-radius: 5px;\n font-family: Helvetica, Arial, sans-serif;\n line-height: 50px;\n color: #1A3238;\n cursor: pointer;\n font-size: 14px;\n text-align: center;\n }\n\n .brainblocks-button * {\n vertical-align: middle;\n }\n\n .brainblocks-button .brainblocks-raiblocks-logo {\n height: 30px;\n margin-left: 5px;\n border-left: 1px solid #ccc;\n padding-left: 5px;\n }\n ' - ), - Object(__WEBPACK_IMPORTED_MODULE_0_xcomponent_src_lib__.F)( - 'div', - { role: 'button', class: 'brainblocks-button' }, - Object(__WEBPACK_IMPORTED_MODULE_0_xcomponent_src_lib__.F)( - 'span', - null, - 'Pay ', - Object(__WEBPACK_IMPORTED_MODULE_0_xcomponent_src_lib__.F)( - 'strong', - null, - mrai, - ' XRB' - ) - ), - Object(__WEBPACK_IMPORTED_MODULE_0_xcomponent_src_lib__.F)('img', { - class: 'brainblocks-raiblocks-logo', - src: - 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjQsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkZpbmFsIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjY0OC4wMDVweCIgaGVpZ2h0PSIxNzQuMzE5cHgiIHZpZXdCb3g9IjAgMCA2NDguMDA1IDE3NC4zMTkiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDY0OC4wMDUgMTc0LjMxOSINCgkgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8Zz4NCgk8Zz4NCgkJPHBhdGggZmlsbD0iIzEyMzIzOSIgZD0iTTE4My42NCw5Ni4zNDZ2MzQuMzQ3aC03Ljc3di04Ny4xMWgzMS45NjNjOS4xMDgsMCwxNS44OTcsMi4wNjgsMjAuMzcxLDYuMjA0DQoJCQljNC40NjcsNC4xMzYsNi43MDMsMTAuNjc0LDYuNzAzLDE5LjYxNWMwLDEzLjk1OC01LjU5NywyMi40MzgtMTYuNzk0LDI1LjQ0N2wxNy45MjMsMzUuODQ1aC04LjY0OGwtMTcuMTczLTM0LjM0N0gxODMuNjR6DQoJCQkgTTIyNi44ODYsNjkuNTI2YzAtNi41Mi0xLjU0Ny0xMS4zMjItNC42MzgtMTQuNDEzYy0zLjA5LTMuMDktNy44OTYtNC42MzctMTQuNDE1LTQuNjM3SDE4My42NHYzOC45NzhoMjQuMTk0DQoJCQlDMjIwLjUzNCw4OS40NTUsMjI2Ljg4Niw4Mi44MTUsMjI2Ljg4Niw2OS41MjZ6Ii8+DQoJCTxwYXRoIGZpbGw9IiMxMjMyMzkiIGQ9Ik0yOTAuNjA2LDg2LjY5NHYzMy41OTZjMC4zMzQsMy4wOTMsNC4yNTUsNC40NTIsOC4xNDYsNC4zODVsLTAuMzc2LDYuMDE4DQoJCQljLTUuOTcxLDAuNjAyLTExLjE1Mi0wLjU0NC0xNC4xNjQtMy44ODhjLTcuODU1LDMuNDMtMTUuNzEzLDUuMTQtMjMuNTYyLDUuMTRjLTUuNjAyLDAtOS44NjMtMS42MDctMTIuNzg3LTQuODI1DQoJCQljLTIuOTI1LTMuMjE5LTQuMzg5LTcuODE0LTQuMzg5LTEzLjc4NmMwLTUuOTc0LDEuNDg1LTEwLjQwMiw0LjQ1My0xMy4yODhjMi45NjctMi44ODEsNy42MjMtNC42NTMsMTMuOTc4LTUuMzI1bDIxLjMwNy0yLjEzNA0KCQkJdi01Ljg5MmMwLTQuNjc0LTEuMDI1LTguMDM2LTMuMDc1LTEwLjA4NWMtMi4wNDQtMi4wNDctNC43ODItMy4wNzItOC4yMDktMy4wNzJjLTUuMzQ5LDAtMTIuMjgyLDAuNTAyLTIwLjgwNywxLjUwM2wtMy44ODMsMC4zNzkNCgkJCWwtMC4zODEtNi4wMTljOS4xOTctMS43NTcsMTcuMjM4LTIuNjMzLDI0LjEyOS0yLjYzM2M2Ljg5NiwwLDExLjg4NSwxLjYyOSwxNC45ODEsNC44ODcNCgkJCUMyODkuMDU5LDc0LjkxNywyOTAuNjA2LDc5LjkyOSwyOTAuNjA2LDg2LjY5NHogTTI1MS4yNDgsMTEyLjg5N2MwLDguNDM1LDMuNDY2LDEyLjY1NiwxMC40MDIsMTIuNjU2DQoJCQljMy4wMTIsMCw2LjMxMS0wLjM1NSw5LjkwMy0xLjA2NmMzLjU5Mi0wLjcwOSw2LjQzNC0xLjQ0LDguNTIzLTIuMTkxbDMuMTM3LTEuMTI5Vjk4LjQ4MmwtMjAuNDM0LDIuMTI4DQoJCQljLTQuMDk0LDAuMzM1LTcuMDQsMS41MDktOC44MzYsMy41MTFDMjUyLjE0NywxMDYuMTI1LDI1MS4yNDgsMTA5LjA0OCwyNTEuMjQ4LDExMi44OTd6Ii8+DQoJCTxwYXRoIGZpbGw9IiMxMjMyMzkiIGQ9Ik0zMDUuNDQ4LDUyLjM1OHYtOC43NzZoNy4zOTN2OC43NzZIMzA1LjQ0OHogTTMwNS40NDgsMTMwLjY5M1Y2OC4wMjFoNy4zOTN2NjIuNjcySDMwNS40NDh6Ii8+DQoJCTxwYXRoIGZpbGw9IiMxMjMyMzkiIGQ9Ik0zMjUuNTI5LDQzLjU4M2gzMi41OWM4Ljc3MywwLDE1LjMzNSwxLjgwMSwxOS42OCw1LjQwNGM0LjM0NSwzLjYwNSw2LjUxNSw5LjM0Niw2LjUxNSwxNy4yMw0KCQkJYzAsNS4xNzEtMC44MTUsOS4yNDQtMi40NDEsMTIuMjExYy0xLjYzMSwyLjk2Ny00LjE5OCw1LjQyNC03LjcwNyw3LjM3N2M4LjE4OCwzLjIxOCwxMi4yODIsOS45NiwxMi4yODIsMjAuMjE1DQoJCQljMCwxNi40NDctOS4xMDgsMjQuNjcyLTI3LjMyNCwyNC42NzJoLTMzLjU5NFY0My41ODN6IE0zNTcuMzY2LDU1Ljc5MWgtMTcuOTI0djI0LjkyN2gxOC40MjZjOC4xODgsMCwxMi4yODctNC4yODUsMTIuMjg3LTEyLjg1DQoJCQlDMzcwLjE1NSw1OS44MTcsMzY1Ljg4OSw1NS43OTEsMzU3LjM2Niw1NS43OTF6IE0zNTguMTE5LDkyLjY3aC0xOC42Nzd2MjUuODE0aDE4LjkyOGM0LjU5MSwwLDguMDQxLTAuOTc2LDEwLjM0Mi0yLjkyNw0KCQkJYzIuMjk2LTEuOTQ1LDMuNDQ1LTUuMjk0LDMuNDQ1LTEwLjA0OWMwLTQuNzQ1LTEuMzM4LTguMDctNC4wMS05Ljk3N0MzNjUuNDcxLDkzLjYyMywzNjIuMTMsOTIuNjcsMzU4LjExOSw5Mi42N3oiLz4NCgkJPHBhdGggZmlsbD0iIzEyMzIzOSIgZD0iTTM5Ni44MTUsMTMwLjY5M3YtODcuMTFoMTMuNjYydjg3LjExSDM5Ni44MTV6Ii8+DQoJCTxwYXRoIGZpbGw9IiMxMjMyMzkiIGQ9Ik00MjcuMzIxLDc0Ljc4OWM0LjMwNC01LjQzLDExLjQ3Mi04LjE0NiwyMS41LTguMTQ2YzEwLjAyMiwwLDE3LjE4NiwyLjcxNiwyMS40OTQsOC4xNDYNCgkJCWM0LjMwNCw1LjQzNSw2LjQ1OCwxMy41ODMsNi40NTgsMjQuNDQzYzAsMTAuODY1LTIuMDkyLDE5LjA0OS02LjI3LDI0LjU2OWMtNC4xNzgsNS41MTQtMTEuNDA5LDguMjctMjEuNjgzLDguMjcNCgkJCWMtMTAuMjg0LDAtMTcuNTExLTIuNzU2LTIxLjY4OC04LjI3Yy00LjE3Ny01LjUyMS02LjI2OS0xMy43MDQtNi4yNjktMjQuNTY5QzQyMC44NjQsODguMzczLDQyMy4wMTksODAuMjI0LDQyNy4zMjEsNzQuNzg5eg0KCQkJIE00MzcuNTM4LDExNS41MjRjMS45MTksMy4zNDIsNS42ODQsNS4wMTYsMTEuMjgzLDUuMDE2YzUuNTk0LDAsOS4zNTQtMS42NzQsMTEuMjc3LTUuMDE2YzEuOTE5LTMuMzM2LDIuODgxLTguODEsMi44ODEtMTYuNDE3DQoJCQljMC03LjYtMS4wMi0xMi45OTMtMy4wNjktMTYuMTcyYy0yLjA0NC0zLjE3MS01Ljc0Ni00Ljc2MS0xMS4wODktNC43NjFjLTUuMzQ5LDAtOS4wNTEsMS41OS0xMS4xMDEsNC43NjENCgkJCWMtMi4wNDQsMy4xNzktMy4wNjgsOC41NzItMy4wNjgsMTYuMTcyQzQzNC42NTIsMTA2LjcxNCw0MzUuNjE0LDExMi4xODgsNDM3LjUzOCwxMTUuNTI0eiIvPg0KCQk8cGF0aCBmaWxsPSIjMTIzMjM5IiBkPSJNNTEyLjI3LDY2LjY0M2M0LjQyOSwwLDkuNjUxLDAuNTg2LDE1LjY2NCwxLjc1NGwzLjEzOCwwLjYyN2wtMC41MDIsMTAuNzc5DQoJCQljLTYuNTk5LTAuNjY3LTExLjQ4Ny0xLjAwMS0xNC42NjYtMS4wMDFjLTYuMzUzLDAtMTAuNjE0LDEuNDIyLTEyLjc3OCw0LjI2MWMtMi4xNzUsMi44NDUtMy4yNjMsOC4xOS0zLjI2MywxNi4wNDQNCgkJCWMwLDcuODUzLDEuMDQ2LDEzLjI4NSwzLjEzMiwxNi4zYzIuMDkxLDMuMDAyLDYuNDQxLDUuNjMyLDEzLjAzNCw1LjM4MWM4LjcyMi0wLjMzMiwxNC42NjYtMC45OTksMTQuNjY2LTAuOTk5bDAuMzc3LDEwLjkwNA0KCQkJYy04LjQzOSwxLjQ5OC0xNC43ODYsMS4zNzgtMTkuMDQ4LDEuMzc4Yy05LjUyNiwwLTE2LjIzNC0yLjU3LTIwLjExOS03Ljcxcy01LjgyOS0xMy41NTYtNS44MjktMjUuMjU0DQoJCQljMC0xMS42OTYsMi4wNDktMjAuMDMzLDYuMTQzLTI1LjAwNUM0OTYuMzEyLDY5LjEyOSw1MDIuOTk0LDY2LjY0Myw1MTIuMjcsNjYuNjQzeiIvPg0KCQk8cGF0aCBmaWxsPSIjMTIzMjM5IiBkPSJNNTU2LjI3MywxMzAuNjkzaC0xMy42NjJ2LTg3LjExaDEzLjY2MnY0OS42MzVsNy43Ny0wLjc1MWwxNC43OTEtMjQuNDQ2aDE1LjI5M2wtMTguMDQ5LDI5LjMzNA0KCQkJbDE5LjA1MywzMy4zMzhoLTE1LjQxOWwtMTUuMjkzLTI2LjQ0NmwtOC4xNDYsMC44NzZWMTMwLjY5M3oiLz4NCgkJPHBhdGggZmlsbD0iIzEyMzIzOSIgZD0iTTY0NS44NzIsODAuOTMzYy05Ljg2MS0xLjMzNi0xNy4wMDQtMi4wMDUtMjEuNDMyLTIuMDA1Yy00LjQyOSwwLTcuNTAzLDAuNTIzLTkuMjEzLDEuNTcxDQoJCQljLTEuNzE1LDEuMDQxLTIuNTY3LDIuNjg4LTIuNTY3LDQuOTQzYzAsMi4yNjIsMC45NDEsMy44NDksMi44MTgsNC43NjRjMS44NzcsMC45MjMsNi4zMTEsMS45ODYsMTMuMjg1LDMuMTk5DQoJCQljNi45NzYsMS4yMTYsMTEuOTMyLDMuMTE0LDE0Ljg1NCw1LjcwMmMyLjkyMywyLjU5Myw0LjM4Nyw3LjE5MSw0LjM4NywxMy43OWMwLDYuNi0yLjExMiwxMS40NDgtNi4zMzIsMTQuNTM4DQoJCQljLTQuMjE0LDMuMDkzLTEwLjM4NCw0LjYzNi0xOC40ODIsNC42MzZjLTUuMDk4LDAtOC44NDEsMC4yNjQtMjMuMTk2LTEuMzY3bDAsMGwwLjUwOC0xMS41ODcNCgkJCWMxMC4wMywxLjMzNiwxNy45NzgsMS42MzIsMjIuNDY0LDEuMjU1YzQuNDEzLTAuMzcxLDYuODAyLTEuMDA0LDguNjg1LTIuMDkxYzEuODgyLTEuMDgsMi44MTgtMi44NzQsMi44MTgtNS4zODQNCgkJCWMwLTIuNTA3LTAuODk5LTQuMjQtMi42OTMtNS4yMDVjLTEuODA0LTAuOTYtNi4xMDItMi0xMi45MTQtMy4xMjljLTYuODA4LTEuMTM1LTExLjgwMS0yLjkwMi0xNC45NzUtNS4zMzENCgkJCWMtMy4xODItMi40MjEtNC43NjYtNi44NDktNC43NjYtMTMuMjg1YzAtNi40MzQsMi4xODktMTEuMjM5LDYuNTg1LTE0LjQxNWM0LjM4Mi0zLjE3NywxMC4wMDMtNC43NjQsMTYuODUyLTQuNzY0DQoJCQljNS4zNDksMCwxMS45MTEsMC42NzIsMTkuNjgsMi4wMDVsMy44ODUsMC43NTNMNjQ1Ljg3Miw4MC45MzN6Ii8+DQoJPC9nPg0KCTxnPg0KCQk8Zz4NCgkJCTxnPg0KCQkJCTxwb2x5bGluZSBmaWxsPSIjMkM4MzlBIiBwb2ludHM9Ijc1LjQ4LDU4LjM5MiA3NS40OCwwIC0wLjAwNSw0My41OCA1MC41NzIsNzIuNzc2IDc1LjQ4LDU4LjM5MiAJCQkJIi8+DQoJCQkJPHBvbHlsaW5lIGZpbGw9IiM0MEIyOTkiIHBvaW50cz0iNTAuNTY2LDcyLjc3OSA1MC41NzIsNzIuNzc2IC0wLjAwNSw0My41OCAtMC4wMDUsODcuMTYgNTAuNTY2LDg3LjE2IDUwLjU2Niw3Mi43NzkgCQkJCSIvPg0KCQkJCTxwb2x5bGluZSBmaWxsPSIjMUZCMEU2IiBwb2ludHM9IjEwMC4zOTEsNzIuNzc5IDEwMC4zOTEsODcuMTYgMTUwLjk2MSw4Ny4xNiAxNTAuOTYxLDQzLjU4IDEwMC4zOTEsNzIuNzc2IDEwMC4zOTEsNzIuNzc5IAkJCQkNCgkJCQkJIi8+DQoJCQkJPHBvbHlsaW5lIGZpbGw9IiM2Q0NFRjUiIHBvaW50cz0iMTAwLjM5MSw3Mi43NzYgMTUwLjk2MSw0My41OCA3NS40OCwwIDc1LjQ4LDU4LjM5MiAxMDAuMzkxLDcyLjc3NiAJCQkJIi8+DQoJCQkJPHBvbHlnb24gZmlsbD0iI0JCRDYzMSIgcG9pbnRzPSI1MC41NjYsODcuMTYgLTAuMDA1LDg3LjE2IC0wLjAwNSwxMzAuNzM3IDUwLjU2NiwxMDEuNTM4IAkJCQkiLz4NCgkJCQk8cG9seWxpbmUgZmlsbD0iIzQ5Qjc0OSIgcG9pbnRzPSI1MC41NjYsMTAxLjU0MSA1MC41NjYsMTAxLjUzOCAtMC4wMDUsMTMwLjczNyA3NS40OCwxNzQuMzE5IDc1LjQ4LDExNS45MjQgNTAuNTY2LDEwMS41NDEgDQoJCQkJCQkJCQkiLz4NCgkJCQk8cG9seWxpbmUgZmlsbD0iIzE5OTNEMiIgcG9pbnRzPSIxMDAuMzkxLDg3LjE2IDEwMC4zOTEsMTAxLjU0MSA3NS40OCwxMTUuOTI0IDc1LjQ4LDE3NC4zMTkgMTUwLjk2MSwxMzAuNzM3IDE1MC45NjEsODcuMTYgDQoJCQkJCTEwMC4zOTEsODcuMTYgCQkJCSIvPg0KCQkJCTxwb2x5bGluZSBmaWxsPSIjRkZGRkZGIiBwb2ludHM9Ijc1LjQ4LDg3LjE2IDc1LjQ4LDg3LjE1NyA3NS40NzYsODcuMTYgNzUuNDgsODcuMTYgCQkJCSIvPg0KCQkJCTxwb2x5bGluZSBmaWxsPSIjQzVDN0M5IiBwb2ludHM9Ijc1LjQ4LDU4LjM5MiA3NS40OCw1OC4zOTIgNTAuNTcyLDcyLjc3NiA3NS40NzYsODcuMTYgNzUuNDgsODcuMTU3IDc1LjQ4LDU4LjM5MiAJCQkJIi8+DQoJCQkJPHBvbHlsaW5lIGZpbGw9IiNGMEYxRjEiIHBvaW50cz0iNzUuNDgsNTguMzkyIDc1LjQ4LDg3LjE1NyAxMDAuMzkxLDcyLjc3NiA3NS40OCw1OC4zOTIgCQkJCSIvPg0KCQkJCTxwb2x5bGluZSBmaWxsPSIjRENERERFIiBwb2ludHM9IjUwLjU3Miw3Mi43NzYgNTAuNTcyLDcyLjc3NiA1MC41NjYsNzIuNzc5IDUwLjU2Niw4Ny4xNiA3NS40NzYsODcuMTYgNTAuNTcyLDcyLjc3NiAJCQkJIi8+DQoJCQkJPHBvbHlsaW5lIGZpbGw9IiNGRkZGRkYiIHBvaW50cz0iNzUuNDgsODcuMTYgNzUuNDgsODcuMTYgNzUuNDc2LDg3LjE2IDc1LjQ4LDg3LjE2IAkJCQkiLz4NCgkJCQk8cG9seWxpbmUgZmlsbD0iI0RFREZFMSIgcG9pbnRzPSIxMDAuMzkxLDcyLjc3NiAxMDAuMzkxLDcyLjc3NiA3NS40OCw4Ny4xNTcgNzUuNDgsODcuMTYgMTAwLjM5MSw4Ny4xNiAxMDAuMzkxLDcyLjc3OSANCgkJCQkJMTAwLjM5MSw3Mi43NzYgCQkJCSIvPg0KCQkJCTxwb2x5bGluZSBmaWxsPSIjQ0JDRENGIiBwb2ludHM9IjEwMC4zOTEsODcuMTYgNzUuNDgsODcuMTYgNzUuNDgsODcuMTYgNzUuNDgsMTE1LjkyNCAxMDAuMzkxLDEwMS41NDEgMTAwLjM5MSw4Ny4xNiAJCQkJIi8+DQoJCQkJPHBvbHlsaW5lIGZpbGw9IiNFQkVDRUQiIHBvaW50cz0iNzUuNDc2LDg3LjE2IDUwLjU2Niw4Ny4xNiA1MC41NjYsMTAxLjUzOCA3NS40NzYsODcuMTYgCQkJCSIvPg0KCQkJCTxwb2x5bGluZSBmaWxsPSIjRDlEQURDIiBwb2ludHM9Ijc1LjQ3Niw4Ny4xNiA3NS40NzYsODcuMTYgNTAuNTY2LDEwMS41MzggNTAuNTY2LDEwMS41NDEgNzUuNDgsMTE1LjkyNCA3NS40OCw4Ny4xNiANCgkJCQkJNzUuNDc2LDg3LjE2IAkJCQkiLz4NCgkJCTwvZz4NCgkJPC9nPg0KCTwvZz4NCjwvZz4NCjwvc3ZnPg0K' - }) - ) - ); - }; - var __WEBPACK_IMPORTED_MODULE_0_xcomponent_src_lib__ = __webpack_require__( - './node_modules/xcomponent/src/lib/index.js' - ); - }, - './src/index.js': function srcIndexJs( - module, - __webpack_exports__, - __webpack_require__ - ) { - Object.defineProperty(__webpack_exports__, '__esModule', { value: !0 }); - var __WEBPACK_IMPORTED_MODULE_0__button__ = __webpack_require__( - './src/button/index.js' - ); - __webpack_require__.d(__webpack_exports__, 'Button', function() { - return __WEBPACK_IMPORTED_MODULE_0__button__.a; - }), - __webpack_require__.d(__webpack_exports__, 'buttonTemplate', function() { - return __WEBPACK_IMPORTED_MODULE_0__button__.b; - }); - } - }); - }), - 'object' == - ('undefined' == typeof exports - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()(exports)) && - 'object' == __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()(module) - ? (module.exports = factory()) - : 'function' == typeof define && __webpack_require__(945) - ? define('brainblocks', [], factory) - : 'object' == - ('undefined' == typeof exports - ? 'undefined' - : __WEBPACK_IMPORTED_MODULE_10_babel_runtime_helpers_typeof___default()(exports)) - ? (exports.brainblocks = factory()) - : (root.brainblocks = factory()); - }.call(__webpack_exports__, __webpack_require__(625)(module)); - }, - function(module, exports) { - (function(__webpack_amd_options__) { - module.exports = __webpack_amd_options__; - }.call(exports, {})); - } -]); diff --git a/package.json b/package.json index dfd4ea7..b42b4ba 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "scripts": { "build": "NODE_ENV=production tsc && webpack", "build:docs": "npm run build && typedoc --out dist/docs --target es6 --theme minimal src", - "build:storybook": "rimraf docs && build-storybook && mv storybook-static docs", + "build:storybook": + "NODE_DEBUG=gh-pages rimraf storybook-static && build-storybook && gh-pages -d storybook-static && rimraf storybook-static", "clean": "rimraf dist storybook-static", "prebuild": "yarn run clean", "precommit": "lint-staged", @@ -56,6 +57,7 @@ "dependencies": { "css-loader": "^0.28.7", "file-loader": "^1.1.6", + "gh-pages": "^1.1.0", "prettier-eslint-cli": "^4.7.0", "react-dom": "^15.5.0", "react-dom-factories": "^1.0.2", diff --git a/yarn.lock b/yarn.lock index 8365655..023113d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -334,19 +334,6 @@ version "15.5.2" resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.5.2.tgz#3c6b8dceb2906cc87fe4358e809f9d20c8d59be1" -"@types/react-icon-base@*": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@types/react-icon-base/-/react-icon-base-2.1.0.tgz#3d42c67d4bedd47e3dc4d64b405641bcb3c08274" - dependencies: - "@types/react" "*" - -"@types/react-icons@^2.2.4": - version "2.2.4" - resolved "https://registry.yarnpkg.com/@types/react-icons/-/react-icons-2.2.4.tgz#40bfb61b82677a7b6a636605662900a3386c7bb3" - dependencies: - "@types/react" "*" - "@types/react-icon-base" "*" - "@types/react-test-renderer@^16.0.0": version "16.0.0" resolved "https://registry.yarnpkg.com/@types/react-test-renderer/-/react-test-renderer-16.0.0.tgz#905a12076d7315eb4a36c4f0e5e760c7b3115420" @@ -743,16 +730,16 @@ async-to-gen@1.3.0: babylon "^6.14.0" magic-string "^0.19.0" -async@^1.4.0: - version "1.5.2" - resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" - -async@^2.1.2, async@^2.1.4: +async@2.6.0, async@^2.1.2, async@^2.1.4: version "2.6.0" resolved "https://registry.yarnpkg.com/async/-/async-2.6.0.tgz#61a29abb6fcc026fea77e56d1c6ec53a795951f4" dependencies: lodash "^4.14.0" +async@^1.4.0: + version "1.5.2" + resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" + async@~0.9.0: version "0.9.2" resolved "https://registry.yarnpkg.com/async/-/async-0.9.2.tgz#aea74d5e61c1f899613bf64bda66d4c78f2fd17d" @@ -1758,6 +1745,10 @@ base64-js@^1.0.2: version "1.2.1" resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.2.1.tgz#a91947da1f4a516ea38e5b4ec0ec3773675e0886" +base64url@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/base64url/-/base64url-2.0.0.tgz#eac16e03ea1438eff9423d69baa36262ed1f70bb" + base@^0.11.1: version "0.11.2" resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" @@ -2375,6 +2366,10 @@ combined-stream@^1.0.5, combined-stream@~1.0.5: dependencies: delayed-stream "~1.0.0" +commander@2.11.0: + version "2.11.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.11.0.tgz#157152fd1e7a6c8d98a5b715cf376df928004563" + commander@2.12.x: version "2.12.2" resolved "https://registry.yarnpkg.com/commander/-/commander-2.12.2.tgz#0f5946c427ed9ec0d91a46bb9def53e54650e555" @@ -3958,6 +3953,18 @@ getpass@^0.1.1: dependencies: assert-plus "^1.0.0" +gh-pages@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/gh-pages/-/gh-pages-1.1.0.tgz#738134d8e35e5323b39892cda28b8904e85f24b2" + dependencies: + async "2.6.0" + base64url "^2.0.0" + commander "2.11.0" + fs-extra "^4.0.2" + globby "^6.1.0" + graceful-fs "4.1.11" + rimraf "^2.6.2" + git-log-parser@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/git-log-parser/-/git-log-parser-1.2.0.tgz#2e6a4c1b13fc00028207ba795a7ac31667b9fd4a" @@ -4083,6 +4090,16 @@ globby@^5.0.0: pify "^2.0.0" pinkie-promise "^2.0.0" +globby@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/globby/-/globby-6.1.0.tgz#f5a6d70e8395e21c858fb0489d64df02424d506c" + dependencies: + array-union "^1.0.1" + glob "^7.0.3" + object-assign "^4.0.1" + pify "^2.0.0" + pinkie-promise "^2.0.0" + globby@^7.1.1: version "7.1.1" resolved "https://registry.yarnpkg.com/globby/-/globby-7.1.1.tgz#fb2ccff9401f8600945dfada97440cca972b8680" @@ -4100,7 +4117,7 @@ good-listener@^1.2.2: dependencies: delegate "^3.1.2" -graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6: +graceful-fs@4.1.11, graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6: version "4.1.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"