{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./app/actions/app-actions.ts","webpack:///./app/actions/exchange-actions.ts","webpack:///./app/actions/fetch.ts","webpack:///./app/actions/index.ts","webpack:///./app/actions/settings-fetch.ts","webpack:///./app/app.tsx","webpack:///./app/cart/actions/cart-actions.ts","webpack:///./app/cart/actions/cart-fetch.ts","webpack:///./app/cart/reducers/cart-reducer.ts","webpack:///./app/classes/item-type.ts","webpack:///./app/classes/seat.ts","webpack:///./app/common/checkbox/checkbox-group.tsx","webpack:///./app/common/checkbox/checkbox.tsx","webpack:///./app/common/filters/price-range.tsx","webpack:///./app/common/level-select/level-select.tsx","webpack:///./app/common/loader/data-loader.tsx","webpack:///./app/common/modal/modal-states.ts","webpack:///./app/common/modal/modal.tsx","webpack:///./app/common/modal/prompt-modal.tsx","webpack:///./app/common/modal/seat-fee-preview-modal.tsx","webpack:///./app/common/notes/additional-notes.tsx","webpack:///./app/common/promo-code/promo-code-conflict.tsx","webpack:///./app/common/promo-code/promo-code-info.tsx","webpack:///./app/common/promo-code/promo-code-textbox.tsx","webpack:///./app/common/promo-code/promo-code.tsx","webpack:///./app/common/quantity-select/quantity-select.tsx","webpack:///./app/common/radio/radio-group.tsx","webpack:///./app/common/radio/radio.tsx","webpack:///./app/common/selects/quantity-select.tsx","webpack:///./app/common/sidebar/sidebar.tsx","webpack:///./app/components/async-component.tsx","webpack:///./app/filter/actions/filter-actions.ts","webpack:///./app/filter/actions/filter-fetch.ts","webpack:///./app/filter/actions/price-range-actions.ts","webpack:///./app/filter/actions/promo-actions.ts","webpack:///./app/filter/components/filter-page-header-container.tsx","webpack:///./app/filter/components/filter-page-header.tsx","webpack:///./app/filter/components/filter-result.tsx","webpack:///./app/filter/components/group-seating-message.tsx","webpack:///./app/filter/components/packages-progress-header.tsx","webpack:///./app/filter/components/performance-info.tsx","webpack:///./app/filter/components/performance-list.tsx","webpack:///./app/filter/components/performance-selector-menu.tsx","webpack:///./app/filter/components/price-range-filter.tsx","webpack:///./app/filter/components/price-type-filter-container.tsx","webpack:///./app/filter/components/seating-option-filter.tsx","webpack:///./app/filter/components/seating-option-group.tsx","webpack:///./app/filter/components/venue-level-filter.tsx","webpack:///./app/filter/containers/filter.tsx","webpack:///./app/filter/reducers/fetch-reducer.ts","webpack:///./app/filter/reducers/filter-reducers.ts","webpack:///./app/filter/reducers/promo-reducer.ts","webpack:///./app/helpers/array-helpers.ts","webpack:///./app/helpers/cart-helpers.ts","webpack:///./app/helpers/currency-format.ts","webpack:///./app/helpers/date-helpers.ts","webpack:///./app/helpers/html-helpers.tsx","webpack:///./app/helpers/is-mobile.ts","webpack:///./app/helpers/local-storage-helpers.ts","webpack:///./app/helpers/middleware.ts","webpack:///./app/helpers/price-type-helpers.ts","webpack:///./app/helpers/query-string-helpers.ts","webpack:///./app/helpers/state-helpers.ts","webpack:///./app/helpers/string-format.ts","webpack:///./app/helpers/window-helpers.ts","webpack:///./app/index.tsx","webpack:///./app/menu/components/app-menu.tsx","webpack:///./app/menu/components/cart-timer.tsx","webpack:///./app/menu/components/performance-messaging.tsx","webpack:///./app/menu/components/secondary-nav.tsx","webpack:///./app/reducers/app-reducer.ts","webpack:///./app/reducers/exchange-reducer.ts","webpack:///./app/reducers/fetch-settings-reducer.ts","webpack:///./app/reducers/index.ts","webpack:///./app/seatmap/actions/seatmap-actions.ts","webpack:///./app/seatmap/actions/seatmap-fetch.ts","webpack:///./app/seatmap/components/background-paths.tsx","webpack:///./app/seatmap/components/cart-panel/cart-items.tsx","webpack:///./app/seatmap/components/cart-panel/cart-overlay.tsx","webpack:///./app/seatmap/components/cart-panel/cart.tsx","webpack:///./app/seatmap/components/cart-panel/checkout-button.tsx","webpack:///./app/seatmap/components/cart-panel/line-item.tsx","webpack:///./app/seatmap/components/cart-panel/subtotal-items.tsx","webpack:///./app/seatmap/components/cart-panel/subtotal.tsx","webpack:///./app/seatmap/components/filter-panel/filters-overlay.tsx","webpack:///./app/seatmap/components/filter-panel/level-select.tsx","webpack:///./app/seatmap/components/filter-panel/performance-select.tsx","webpack:///./app/seatmap/components/filter-panel/price-type-filter.tsx","webpack:///./app/seatmap/components/filter-panel/special-seating-filter.tsx","webpack:///./app/seatmap/components/legend-content.tsx","webpack:///./app/seatmap/components/legend-modal.tsx","webpack:///./app/seatmap/components/legend.tsx","webpack:///./app/seatmap/components/level-selection-modal.tsx","webpack:///./app/seatmap/components/map-hover.tsx","webpack:///./app/seatmap/components/map.tsx","webpack:///./app/seatmap/components/price-type-quantities.tsx","webpack:///./app/seatmap/components/seat-group-path.tsx","webpack:///./app/seatmap/components/seat-hover.tsx","webpack:///./app/seatmap/components/seat-path.tsx","webpack:///./app/seatmap/components/seat-paths.tsx","webpack:///./app/seatmap/components/side-panel/confirm-prompt.tsx","webpack:///./app/seatmap/components/side-panel/seat-info-error-message.tsx","webpack:///./app/seatmap/components/side-panel/seat-info-error.tsx","webpack:///./app/seatmap/components/side-panel/seat-info-header-container.tsx","webpack:///./app/seatmap/components/side-panel/seat-info-header.tsx","webpack:///./app/seatmap/components/side-panel/seat-info-image.tsx","webpack:///./app/seatmap/components/side-panel/seat-info-options-container.tsx","webpack:///./app/seatmap/components/side-panel/seat-info-options.tsx","webpack:///./app/seatmap/components/side-panel/seat-info-prices.tsx","webpack:///./app/seatmap/components/side-panel/seating-info-container.tsx","webpack:///./app/seatmap/components/side-panel/seating-info.tsx","webpack:///./app/seatmap/components/side-panel/zone-upsell-container.tsx","webpack:///./app/seatmap/components/side-panel/zone-upsell.tsx","webpack:///./app/seatmap/containers/seatmap.tsx","webpack:///./app/seatmap/helpers/seatmap-helpers.ts","webpack:///./app/seatmap/reducers/fetch-reducer.ts","webpack:///./app/seatmap/reducers/seatmap-reducer.ts","webpack:///./app/ticket-selection/containers/package-quantity-select.tsx","webpack:///./node_modules/a11y-dialog/dist/a11y-dialog.esm.js","webpack:///./node_modules/d3-color/src/color.js","webpack:///./node_modules/d3-color/src/cubehelix.js","webpack:///./node_modules/d3-color/src/define.js","webpack:///./node_modules/d3-color/src/index.js","webpack:///./node_modules/d3-color/src/lab.js","webpack:///./node_modules/d3-color/src/math.js","webpack:///./node_modules/d3-dispatch/src/dispatch.js","webpack:///./node_modules/d3-dispatch/src/index.js","webpack:///./node_modules/d3-drag/src/constant.js","webpack:///./node_modules/d3-drag/src/drag.js","webpack:///./node_modules/d3-drag/src/event.js","webpack:///./node_modules/d3-drag/src/index.js","webpack:///./node_modules/d3-drag/src/nodrag.js","webpack:///./node_modules/d3-drag/src/noevent.js","webpack:///./node_modules/d3-ease/src/back.js","webpack:///./node_modules/d3-ease/src/bounce.js","webpack:///./node_modules/d3-ease/src/circle.js","webpack:///./node_modules/d3-ease/src/cubic.js","webpack:///./node_modules/d3-ease/src/elastic.js","webpack:///./node_modules/d3-ease/src/exp.js","webpack:///./node_modules/d3-ease/src/index.js","webpack:///./node_modules/d3-ease/src/linear.js","webpack:///./node_modules/d3-ease/src/poly.js","webpack:///./node_modules/d3-ease/src/quad.js","webpack:///./node_modules/d3-ease/src/sin.js","webpack:///./node_modules/d3-interpolate/src/array.js","webpack:///./node_modules/d3-interpolate/src/basis.js","webpack:///./node_modules/d3-interpolate/src/basisClosed.js","webpack:///./node_modules/d3-interpolate/src/color.js","webpack:///./node_modules/d3-interpolate/src/constant.js","webpack:///./node_modules/d3-interpolate/src/cubehelix.js","webpack:///./node_modules/d3-interpolate/src/date.js","webpack:///./node_modules/d3-interpolate/src/discrete.js","webpack:///./node_modules/d3-interpolate/src/hcl.js","webpack:///./node_modules/d3-interpolate/src/hsl.js","webpack:///./node_modules/d3-interpolate/src/hue.js","webpack:///./node_modules/d3-interpolate/src/index.js","webpack:///./node_modules/d3-interpolate/src/lab.js","webpack:///./node_modules/d3-interpolate/src/number.js","webpack:///./node_modules/d3-interpolate/src/object.js","webpack:///./node_modules/d3-interpolate/src/piecewise.js","webpack:///./node_modules/d3-interpolate/src/quantize.js","webpack:///./node_modules/d3-interpolate/src/rgb.js","webpack:///./node_modules/d3-interpolate/src/round.js","webpack:///./node_modules/d3-interpolate/src/string.js","webpack:///./node_modules/d3-interpolate/src/transform/decompose.js","webpack:///./node_modules/d3-interpolate/src/transform/index.js","webpack:///./node_modules/d3-interpolate/src/transform/parse.js","webpack:///./node_modules/d3-interpolate/src/value.js","webpack:///./node_modules/d3-interpolate/src/zoom.js","webpack:///./node_modules/d3-selection/src/constant.js","webpack:///./node_modules/d3-selection/src/create.js","webpack:///./node_modules/d3-selection/src/creator.js","webpack:///./node_modules/d3-selection/src/index.js","webpack:///./node_modules/d3-selection/src/local.js","webpack:///./node_modules/d3-selection/src/matcher.js","webpack:///./node_modules/d3-selection/src/mouse.js","webpack:///./node_modules/d3-selection/src/namespace.js","webpack:///./node_modules/d3-selection/src/namespaces.js","webpack:///./node_modules/d3-selection/src/point.js","webpack:///./node_modules/d3-selection/src/select.js","webpack:///./node_modules/d3-selection/src/selectAll.js","webpack:///./node_modules/d3-selection/src/selection/append.js","webpack:///./node_modules/d3-selection/src/selection/attr.js","webpack:///./node_modules/d3-selection/src/selection/call.js","webpack:///./node_modules/d3-selection/src/selection/classed.js","webpack:///./node_modules/d3-selection/src/selection/clone.js","webpack:///./node_modules/d3-selection/src/selection/data.js","webpack:///./node_modules/d3-selection/src/selection/datum.js","webpack:///./node_modules/d3-selection/src/selection/dispatch.js","webpack:///./node_modules/d3-selection/src/selection/each.js","webpack:///./node_modules/d3-selection/src/selection/empty.js","webpack:///./node_modules/d3-selection/src/selection/enter.js","webpack:///./node_modules/d3-selection/src/selection/exit.js","webpack:///./node_modules/d3-selection/src/selection/filter.js","webpack:///./node_modules/d3-selection/src/selection/html.js","webpack:///./node_modules/d3-selection/src/selection/index.js","webpack:///./node_modules/d3-selection/src/selection/insert.js","webpack:///./node_modules/d3-selection/src/selection/lower.js","webpack:///./node_modules/d3-selection/src/selection/merge.js","webpack:///./node_modules/d3-selection/src/selection/node.js","webpack:///./node_modules/d3-selection/src/selection/nodes.js","webpack:///./node_modules/d3-selection/src/selection/on.js","webpack:///./node_modules/d3-selection/src/selection/order.js","webpack:///./node_modules/d3-selection/src/selection/property.js","webpack:///./node_modules/d3-selection/src/selection/raise.js","webpack:///./node_modules/d3-selection/src/selection/remove.js","webpack:///./node_modules/d3-selection/src/selection/select.js","webpack:///./node_modules/d3-selection/src/selection/selectAll.js","webpack:///./node_modules/d3-selection/src/selection/size.js","webpack:///./node_modules/d3-selection/src/selection/sort.js","webpack:///./node_modules/d3-selection/src/selection/sparse.js","webpack:///./node_modules/d3-selection/src/selection/style.js","webpack:///./node_modules/d3-selection/src/selection/text.js","webpack:///./node_modules/d3-selection/src/selector.js","webpack:///./node_modules/d3-selection/src/selectorAll.js","webpack:///./node_modules/d3-selection/src/sourceEvent.js","webpack:///./node_modules/d3-selection/src/touch.js","webpack:///./node_modules/d3-selection/src/touches.js","webpack:///./node_modules/d3-selection/src/window.js","webpack:///./node_modules/d3-timer/src/index.js","webpack:///./node_modules/d3-timer/src/interval.js","webpack:///./node_modules/d3-timer/src/timeout.js","webpack:///./node_modules/d3-timer/src/timer.js","webpack:///./node_modules/d3-transition/src/active.js","webpack:///./node_modules/d3-transition/src/index.js","webpack:///./node_modules/d3-transition/src/interrupt.js","webpack:///./node_modules/d3-transition/src/selection/index.js","webpack:///./node_modules/d3-transition/src/selection/interrupt.js","webpack:///./node_modules/d3-transition/src/selection/transition.js","webpack:///./node_modules/d3-transition/src/transition/attr.js","webpack:///./node_modules/d3-transition/src/transition/attrTween.js","webpack:///./node_modules/d3-transition/src/transition/delay.js","webpack:///./node_modules/d3-transition/src/transition/duration.js","webpack:///./node_modules/d3-transition/src/transition/ease.js","webpack:///./node_modules/d3-transition/src/transition/filter.js","webpack:///./node_modules/d3-transition/src/transition/index.js","webpack:///./node_modules/d3-transition/src/transition/interpolate.js","webpack:///./node_modules/d3-transition/src/transition/merge.js","webpack:///./node_modules/d3-transition/src/transition/on.js","webpack:///./node_modules/d3-transition/src/transition/remove.js","webpack:///./node_modules/d3-transition/src/transition/schedule.js","webpack:///./node_modules/d3-transition/src/transition/select.js","webpack:///./node_modules/d3-transition/src/transition/selectAll.js","webpack:///./node_modules/d3-transition/src/transition/selection.js","webpack:///./node_modules/d3-transition/src/transition/style.js","webpack:///./node_modules/d3-transition/src/transition/styleTween.js","webpack:///./node_modules/d3-transition/src/transition/text.js","webpack:///./node_modules/d3-transition/src/transition/transition.js","webpack:///./node_modules/d3-transition/src/transition/tween.js","webpack:///./node_modules/d3-zoom/src/constant.js","webpack:///./node_modules/d3-zoom/src/event.js","webpack:///./node_modules/d3-zoom/src/index.js","webpack:///./node_modules/d3-zoom/src/noevent.js","webpack:///./node_modules/d3-zoom/src/transform.js","webpack:///./node_modules/d3-zoom/src/zoom.js","webpack:///./node_modules/es6-promise/dist/es6-promise.js","webpack:///./node_modules/history/es/DOMUtils.js","webpack:///./node_modules/history/es/LocationUtils.js","webpack:///./node_modules/history/es/PathUtils.js","webpack:///./node_modules/history/es/createBrowserHistory.js","webpack:///./node_modules/history/es/createHashHistory.js","webpack:///./node_modules/history/es/createMemoryHistory.js","webpack:///./node_modules/history/es/createTransitionManager.js","webpack:///./node_modules/history/es/index.js","webpack:///./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","webpack:///./node_modules/invariant/browser.js","webpack:///./node_modules/isarray/index.js","webpack:///./node_modules/lodash-es/_Symbol.js","webpack:///./node_modules/lodash-es/_baseGetTag.js","webpack:///./node_modules/lodash-es/_freeGlobal.js","webpack:///./node_modules/lodash-es/_getPrototype.js","webpack:///./node_modules/lodash-es/_getRawTag.js","webpack:///./node_modules/lodash-es/_objectToString.js","webpack:///./node_modules/lodash-es/_overArg.js","webpack:///./node_modules/lodash-es/_root.js","webpack:///./node_modules/lodash-es/isObjectLike.js","webpack:///./node_modules/lodash-es/isPlainObject.js","webpack:///./node_modules/lodash/_DataView.js","webpack:///./node_modules/lodash/_Hash.js","webpack:///./node_modules/lodash/_ListCache.js","webpack:///./node_modules/lodash/_Map.js","webpack:///./node_modules/lodash/_MapCache.js","webpack:///./node_modules/lodash/_Promise.js","webpack:///./node_modules/lodash/_Set.js","webpack:///./node_modules/lodash/_SetCache.js","webpack:///./node_modules/lodash/_Stack.js","webpack:///./node_modules/lodash/_Symbol.js","webpack:///./node_modules/lodash/_Uint8Array.js","webpack:///./node_modules/lodash/_WeakMap.js","webpack:///./node_modules/lodash/_apply.js","webpack:///./node_modules/lodash/_arrayAggregator.js","webpack:///./node_modules/lodash/_arrayEach.js","webpack:///./node_modules/lodash/_arrayFilter.js","webpack:///./node_modules/lodash/_arrayIncludes.js","webpack:///./node_modules/lodash/_arrayIncludesWith.js","webpack:///./node_modules/lodash/_arrayLikeKeys.js","webpack:///./node_modules/lodash/_arrayMap.js","webpack:///./node_modules/lodash/_arrayPush.js","webpack:///./node_modules/lodash/_arraySome.js","webpack:///./node_modules/lodash/_assignValue.js","webpack:///./node_modules/lodash/_assocIndexOf.js","webpack:///./node_modules/lodash/_baseAggregator.js","webpack:///./node_modules/lodash/_baseAssign.js","webpack:///./node_modules/lodash/_baseAssignIn.js","webpack:///./node_modules/lodash/_baseAssignValue.js","webpack:///./node_modules/lodash/_baseClone.js","webpack:///./node_modules/lodash/_baseCreate.js","webpack:///./node_modules/lodash/_baseEach.js","webpack:///./node_modules/lodash/_baseExtremum.js","webpack:///./node_modules/lodash/_baseFindIndex.js","webpack:///./node_modules/lodash/_baseFlatten.js","webpack:///./node_modules/lodash/_baseFor.js","webpack:///./node_modules/lodash/_baseForOwn.js","webpack:///./node_modules/lodash/_baseGet.js","webpack:///./node_modules/lodash/_baseGetAllKeys.js","webpack:///./node_modules/lodash/_baseGetTag.js","webpack:///./node_modules/lodash/_baseGt.js","webpack:///./node_modules/lodash/_baseHasIn.js","webpack:///./node_modules/lodash/_baseIndexOf.js","webpack:///./node_modules/lodash/_baseIntersection.js","webpack:///./node_modules/lodash/_baseIsArguments.js","webpack:///./node_modules/lodash/_baseIsEqual.js","webpack:///./node_modules/lodash/_baseIsEqualDeep.js","webpack:///./node_modules/lodash/_baseIsMap.js","webpack:///./node_modules/lodash/_baseIsMatch.js","webpack:///./node_modules/lodash/_baseIsNaN.js","webpack:///./node_modules/lodash/_baseIsNative.js","webpack:///./node_modules/lodash/_baseIsSet.js","webpack:///./node_modules/lodash/_baseIsTypedArray.js","webpack:///./node_modules/lodash/_baseIteratee.js","webpack:///./node_modules/lodash/_baseKeys.js","webpack:///./node_modules/lodash/_baseKeysIn.js","webpack:///./node_modules/lodash/_baseLt.js","webpack:///./node_modules/lodash/_baseMap.js","webpack:///./node_modules/lodash/_baseMatches.js","webpack:///./node_modules/lodash/_baseMatchesProperty.js","webpack:///./node_modules/lodash/_baseOrderBy.js","webpack:///./node_modules/lodash/_baseProperty.js","webpack:///./node_modules/lodash/_basePropertyDeep.js","webpack:///./node_modules/lodash/_baseRest.js","webpack:///./node_modules/lodash/_baseSetToString.js","webpack:///./node_modules/lodash/_baseSortBy.js","webpack:///./node_modules/lodash/_baseSum.js","webpack:///./node_modules/lodash/_baseTimes.js","webpack:///./node_modules/lodash/_baseToString.js","webpack:///./node_modules/lodash/_baseUnary.js","webpack:///./node_modules/lodash/_baseUniq.js","webpack:///./node_modules/lodash/_cacheHas.js","webpack:///./node_modules/lodash/_castArrayLikeObject.js","webpack:///./node_modules/lodash/_castFunction.js","webpack:///./node_modules/lodash/_castPath.js","webpack:///./node_modules/lodash/_cloneArrayBuffer.js","webpack:///./node_modules/lodash/_cloneBuffer.js","webpack:///./node_modules/lodash/_cloneDataView.js","webpack:///./node_modules/lodash/_cloneRegExp.js","webpack:///./node_modules/lodash/_cloneSymbol.js","webpack:///./node_modules/lodash/_cloneTypedArray.js","webpack:///./node_modules/lodash/_compareAscending.js","webpack:///./node_modules/lodash/_compareMultiple.js","webpack:///./node_modules/lodash/_copyArray.js","webpack:///./node_modules/lodash/_copyObject.js","webpack:///./node_modules/lodash/_copySymbols.js","webpack:///./node_modules/lodash/_copySymbolsIn.js","webpack:///./node_modules/lodash/_coreJsData.js","webpack:///./node_modules/lodash/_createAggregator.js","webpack:///./node_modules/lodash/_createBaseEach.js","webpack:///./node_modules/lodash/_createBaseFor.js","webpack:///./node_modules/lodash/_createFind.js","webpack:///./node_modules/lodash/_createSet.js","webpack:///./node_modules/lodash/_defineProperty.js","webpack:///./node_modules/lodash/_equalArrays.js","webpack:///./node_modules/lodash/_equalByTag.js","webpack:///./node_modules/lodash/_equalObjects.js","webpack:///./node_modules/lodash/_freeGlobal.js","webpack:///./node_modules/lodash/_getAllKeys.js","webpack:///./node_modules/lodash/_getAllKeysIn.js","webpack:///./node_modules/lodash/_getMapData.js","webpack:///./node_modules/lodash/_getMatchData.js","webpack:///./node_modules/lodash/_getNative.js","webpack:///./node_modules/lodash/_getPrototype.js","webpack:///./node_modules/lodash/_getRawTag.js","webpack:///./node_modules/lodash/_getSymbols.js","webpack:///./node_modules/lodash/_getSymbolsIn.js","webpack:///./node_modules/lodash/_getTag.js","webpack:///./node_modules/lodash/_getValue.js","webpack:///./node_modules/lodash/_hasPath.js","webpack:///./node_modules/lodash/_hashClear.js","webpack:///./node_modules/lodash/_hashDelete.js","webpack:///./node_modules/lodash/_hashGet.js","webpack:///./node_modules/lodash/_hashHas.js","webpack:///./node_modules/lodash/_hashSet.js","webpack:///./node_modules/lodash/_initCloneArray.js","webpack:///./node_modules/lodash/_initCloneByTag.js","webpack:///./node_modules/lodash/_initCloneObject.js","webpack:///./node_modules/lodash/_isFlattenable.js","webpack:///./node_modules/lodash/_isIndex.js","webpack:///./node_modules/lodash/_isIterateeCall.js","webpack:///./node_modules/lodash/_isKey.js","webpack:///./node_modules/lodash/_isKeyable.js","webpack:///./node_modules/lodash/_isMasked.js","webpack:///./node_modules/lodash/_isPrototype.js","webpack:///./node_modules/lodash/_isStrictComparable.js","webpack:///./node_modules/lodash/_listCacheClear.js","webpack:///./node_modules/lodash/_listCacheDelete.js","webpack:///./node_modules/lodash/_listCacheGet.js","webpack:///./node_modules/lodash/_listCacheHas.js","webpack:///./node_modules/lodash/_listCacheSet.js","webpack:///./node_modules/lodash/_mapCacheClear.js","webpack:///./node_modules/lodash/_mapCacheDelete.js","webpack:///./node_modules/lodash/_mapCacheGet.js","webpack:///./node_modules/lodash/_mapCacheHas.js","webpack:///./node_modules/lodash/_mapCacheSet.js","webpack:///./node_modules/lodash/_mapToArray.js","webpack:///./node_modules/lodash/_matchesStrictComparable.js","webpack:///./node_modules/lodash/_memoizeCapped.js","webpack:///./node_modules/lodash/_nativeCreate.js","webpack:///./node_modules/lodash/_nativeKeys.js","webpack:///./node_modules/lodash/_nativeKeysIn.js","webpack:///./node_modules/lodash/_nodeUtil.js","webpack:///./node_modules/lodash/_objectToString.js","webpack:///./node_modules/lodash/_overArg.js","webpack:///./node_modules/lodash/_overRest.js","webpack:///./node_modules/lodash/_root.js","webpack:///./node_modules/lodash/_setCacheAdd.js","webpack:///./node_modules/lodash/_setCacheHas.js","webpack:///./node_modules/lodash/_setToArray.js","webpack:///./node_modules/lodash/_setToString.js","webpack:///./node_modules/lodash/_shortOut.js","webpack:///./node_modules/lodash/_stackClear.js","webpack:///./node_modules/lodash/_stackDelete.js","webpack:///./node_modules/lodash/_stackGet.js","webpack:///./node_modules/lodash/_stackHas.js","webpack:///./node_modules/lodash/_stackSet.js","webpack:///./node_modules/lodash/_strictIndexOf.js","webpack:///./node_modules/lodash/_stringToPath.js","webpack:///./node_modules/lodash/_toKey.js","webpack:///./node_modules/lodash/_toSource.js","webpack:///./node_modules/lodash/cloneDeep.js","webpack:///./node_modules/lodash/constant.js","webpack:///./node_modules/lodash/debounce.js","webpack:///./node_modules/lodash/eq.js","webpack:///./node_modules/lodash/find.js","webpack:///./node_modules/lodash/findIndex.js","webpack:///./node_modules/lodash/findLast.js","webpack:///./node_modules/lodash/findLastIndex.js","webpack:///./node_modules/lodash/flatMap.js","webpack:///./node_modules/lodash/flatten.js","webpack:///./node_modules/lodash/get.js","webpack:///./node_modules/lodash/groupBy.js","webpack:///./node_modules/lodash/hasIn.js","webpack:///./node_modules/lodash/identity.js","webpack:///./node_modules/lodash/intersection.js","webpack:///./node_modules/lodash/isArguments.js","webpack:///./node_modules/lodash/isArray.js","webpack:///./node_modules/lodash/isArrayLike.js","webpack:///./node_modules/lodash/isArrayLikeObject.js","webpack:///./node_modules/lodash/isBuffer.js","webpack:///./node_modules/lodash/isFunction.js","webpack:///./node_modules/lodash/isLength.js","webpack:///./node_modules/lodash/isMap.js","webpack:///./node_modules/lodash/isObject.js","webpack:///./node_modules/lodash/isObjectLike.js","webpack:///./node_modules/lodash/isSet.js","webpack:///./node_modules/lodash/isSymbol.js","webpack:///./node_modules/lodash/isTypedArray.js","webpack:///./node_modules/lodash/keys.js","webpack:///./node_modules/lodash/keysIn.js","webpack:///./node_modules/lodash/map.js","webpack:///./node_modules/lodash/max.js","webpack:///./node_modules/lodash/maxBy.js","webpack:///./node_modules/lodash/memoize.js","webpack:///./node_modules/lodash/min.js","webpack:///./node_modules/lodash/minBy.js","webpack:///./node_modules/lodash/noop.js","webpack:///./node_modules/lodash/now.js","webpack:///./node_modules/lodash/orderBy.js","webpack:///./node_modules/lodash/property.js","webpack:///./node_modules/lodash/sortBy.js","webpack:///./node_modules/lodash/stubArray.js","webpack:///./node_modules/lodash/stubFalse.js","webpack:///./node_modules/lodash/sum.js","webpack:///./node_modules/lodash/sumBy.js","webpack:///./node_modules/lodash/times.js","webpack:///./node_modules/lodash/toFinite.js","webpack:///./node_modules/lodash/toInteger.js","webpack:///./node_modules/lodash/toNumber.js","webpack:///./node_modules/lodash/toString.js","webpack:///./node_modules/lodash/uniq.js","webpack:///./node_modules/lodash/uniqBy.js","webpack:///./node_modules/moment-timezone/index.js","webpack:///./node_modules/moment-timezone/moment-timezone.js","webpack:///./node_modules/moment/moment.js","webpack:///./node_modules/object-assign/index.js","webpack:///./node_modules/path-to-regexp/index.js","webpack:///./node_modules/process/browser.js","webpack:///./node_modules/prop-types/checkPropTypes.js","webpack:///./node_modules/prop-types/factoryWithTypeCheckers.js","webpack:///./node_modules/prop-types/index.js","webpack:///./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:///./node_modules/react-a11y-dialog/dist/index.js","webpack:///./node_modules/react-dom/cjs/react-dom.development.js","webpack:///./node_modules/react-dom/profiling.js","webpack:///./node_modules/react-fast-compare/index.js","webpack:///./node_modules/react-ga/dist/esm/components/OutboundLink.js","webpack:///./node_modules/react-ga/dist/esm/core.js","webpack:///./node_modules/react-ga/dist/esm/index.js","webpack:///./node_modules/react-ga/dist/esm/utils/console/log.js","webpack:///./node_modules/react-ga/dist/esm/utils/console/warn.js","webpack:///./node_modules/react-ga/dist/esm/utils/format.js","webpack:///./node_modules/react-ga/dist/esm/utils/loadGA.js","webpack:///./node_modules/react-ga/dist/esm/utils/mightBeEmail.js","webpack:///./node_modules/react-ga/dist/esm/utils/redactEmail.js","webpack:///./node_modules/react-ga/dist/esm/utils/removeLeadingSlash.js","webpack:///./node_modules/react-ga/dist/esm/utils/testModeAPI.js","webpack:///./node_modules/react-ga/dist/esm/utils/toTitleCase.js","webpack:///./node_modules/react-ga/dist/esm/utils/trim.js","webpack:///./node_modules/react-ga4/dist/format.js","webpack:///./node_modules/react-ga4/dist/ga4.js","webpack:///./node_modules/react-ga4/dist/gtag.js","webpack:///./node_modules/react-ga4/dist/index.js","webpack:///./node_modules/react-redux/es/components/Provider.js","webpack:///./node_modules/react-redux/es/components/connectAdvanced.js","webpack:///./node_modules/react-redux/es/connect/connect.js","webpack:///./node_modules/react-redux/es/connect/mapDispatchToProps.js","webpack:///./node_modules/react-redux/es/connect/mapStateToProps.js","webpack:///./node_modules/react-redux/es/connect/mergeProps.js","webpack:///./node_modules/react-redux/es/connect/selectorFactory.js","webpack:///./node_modules/react-redux/es/connect/verifySubselectors.js","webpack:///./node_modules/react-redux/es/connect/wrapMapToProps.js","webpack:///./node_modules/react-redux/es/index.js","webpack:///./node_modules/react-redux/es/utils/PropTypes.js","webpack:///./node_modules/react-redux/es/utils/Subscription.js","webpack:///./node_modules/react-redux/es/utils/shallowEqual.js","webpack:///./node_modules/react-redux/es/utils/verifyPlainObject.js","webpack:///./node_modules/react-redux/es/utils/warning.js","webpack:///./node_modules/react-router-dom/es/BrowserRouter.js","webpack:///./node_modules/react-router-dom/es/HashRouter.js","webpack:///./node_modules/react-router-dom/es/Link.js","webpack:///./node_modules/react-router-dom/es/MemoryRouter.js","webpack:///./node_modules/react-router-dom/es/NavLink.js","webpack:///./node_modules/react-router-dom/es/Prompt.js","webpack:///./node_modules/react-router-dom/es/Redirect.js","webpack:///./node_modules/react-router-dom/es/Route.js","webpack:///./node_modules/react-router-dom/es/Router.js","webpack:///./node_modules/react-router-dom/es/StaticRouter.js","webpack:///./node_modules/react-router-dom/es/Switch.js","webpack:///./node_modules/react-router-dom/es/generatePath.js","webpack:///./node_modules/react-router-dom/es/index.js","webpack:///./node_modules/react-router-dom/es/matchPath.js","webpack:///./node_modules/react-router-dom/es/withRouter.js","webpack:///./node_modules/react-router-dom/node_modules/invariant/browser.js","webpack:///./node_modules/react-router-dom/node_modules/react-router/es/MemoryRouter.js","webpack:///./node_modules/react-router-dom/node_modules/react-router/es/Prompt.js","webpack:///./node_modules/react-router-dom/node_modules/react-router/es/Redirect.js","webpack:///./node_modules/react-router-dom/node_modules/react-router/es/Route.js","webpack:///./node_modules/react-router-dom/node_modules/react-router/es/Router.js","webpack:///./node_modules/react-router-dom/node_modules/react-router/es/StaticRouter.js","webpack:///./node_modules/react-router-dom/node_modules/react-router/es/Switch.js","webpack:///./node_modules/react-router-dom/node_modules/react-router/es/generatePath.js","webpack:///./node_modules/react-router-dom/node_modules/react-router/es/matchPath.js","webpack:///./node_modules/react-router-dom/node_modules/react-router/es/withRouter.js","webpack:///./node_modules/react-router-dom/node_modules/warning/warning.js","webpack:///./node_modules/react/cjs/react.development.js","webpack:///./node_modules/react/index.js","webpack:///./node_modules/redux-thunk/es/index.js","webpack:///./node_modules/redux/es/redux.js","webpack:///./node_modules/resolve-pathname/index.js","webpack:///./node_modules/scheduler/cjs/scheduler-tracing.development.js","webpack:///./node_modules/scheduler/cjs/scheduler.development.js","webpack:///./node_modules/scheduler/index.js","webpack:///./node_modules/scheduler/tracing-profiling.js","webpack:///./node_modules/symbol-observable/es/index.js","webpack:///./node_modules/symbol-observable/es/ponyfill.js","webpack:///./node_modules/value-equal/index.js","webpack:///./node_modules/warning/browser.js","webpack:///(webpack)/buildin/global.js","webpack:///(webpack)/buildin/harmony-module.js","webpack:///(webpack)/buildin/module.js"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;;;;AClFA,4DAAkD;AASlD,SAAgB,qBAAqB;IACjC,OAAO,EAAE,IAAI,EAAE,mBAAW,CAAC,mBAAmB,EAAE,CAAC;AACrD,CAAC;AAFD,sDAEC;AAED,SAAgB,sBAAsB;IAClC,OAAO,EAAE,IAAI,EAAE,mBAAW,CAAC,oBAAoB,EAAE,CAAC;AACtD,CAAC;AAFD,wDAEC;AAED,SAAgB,iBAAiB;IAC7B,OAAO,EAAE,IAAI,EAAE,mBAAW,CAAC,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,CAAC;AAFD,8CAEC;AAED,SAAgB,iBAAiB;IAC7B,OAAO,EAAE,IAAI,EAAE,mBAAW,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;;AC9IhE;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,8BAA8B;AACzC,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,YAAY;AACvB;AACA;AACA;AACA,wCAAwC,gBAAgB;;AAExD;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,MAAM;AACjB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEiC;;;;;;;;;ACjajC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAwC;;AAEjC;;AAEA;AACA;;AAEP;AACA;AACA;AACA,0BAA0B,EAAE;AAC5B,0BAA0B,EAAE;AAC5B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uDAAM;AACN;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,CAAC;;AAEc;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;;AAEA,uDAAM,WAAW,sDAAM;AACvB;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,uDAAM,WAAW,sDAAM;AACvB;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACpVA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAwC;AACyB;AACzB;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,0CAAG,OAAO,yDAAU;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,6CAAO;AACzC;AACA;;AAEe;AACf;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;;AAEA,uDAAM,uBAAuB,sDAAM,CAAC,4CAAK;AACzC;AACA,oBAAoB,+CAAQ,YAAY,+CAAQ;AAChD;AACA,GAAG;AACH;AACA,oBAAoB,6CAAM,YAAY,6CAAM;AAC5C;AACA,GAAG;AACH;AACA,iDAAiD,6CAAO;AACxD;AACA;AACA;AACA;AACA,eAAe,0CAAG;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;AC5DD;AAAA;AAAe;AACf;AACA;AACA,CAAC;;AAEM;AACP;AACA;AACA;AACA;;;;;;;;;ACTA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmD;AACE;AACJ;;;;;;;;;ACFjD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAwC;AACO;AACP;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB,6CAAO;AACzB;AACA;AACA,qBAAqB,0CAAG,OAAO,yDAAU;AACzC;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;;AAEe;AACf;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;;AAEA,uDAAM,WAAW,sDAAM,CAAC,4CAAK;AAC7B;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,0CAAG;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iCAAiC,6CAAO;AACxC;AACA;;AAEO;AACP;AACA;;AAEO;AACP;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;;AAEA,uDAAM,WAAW,sDAAM,CAAC,4CAAK;AAC7B;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,CAAC;;;;;;;;;ACxHD;AAAA;AAAA;AAAO;AACA;;;;;;;;;ACDP;AAAA,YAAY;;AAEZ;AACA,8CAA8C,IAAI,OAAO;AACzD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA,iBAAiB;AACjB;AACA;AACA,GAAG;AACH;AACA,kFAAkF,OAAO;AACzF;AACA,+CAA+C,OAAO;AACtD,GAAG;AACH;AACA;AACA,mD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AO;AACtB,cAAc,oDAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,yBAAyB,8CAAK;AAC9B,+BAA+B,oDAAW;;;;;;;;;ACtDjD;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;ACJD;AAAA;AAA8B;;AAE9B;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA,2BAA2B;AAC3B;AACA;AACA,wCAAwC;AACxC,2BAA2B;AAC3B;AACA,KAAK,OAAO;AACZ;AACA,cAAc,SAAS,uDAAM,SAAS;AACtC;AACA;AACA;;AAEA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,OAAO;AACnC;AACA,SAAS;AACT,CAAC;;;;;;;;;AC/DD;AAAA;AAAA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;ACzBD;AAAA;AAAA;AAAA;AAAA;AAA+B;AACY;;AAE3C;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,aAAa,uDAAM,SAAS,GAAG,aAAa,uDAAM,SAAS;AACzE,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,gCAAgC,gCAAgC;AAChE,cAAc,sDAAsD,uDAAM,OAAO;AACjF,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,cAAc,qDAAqD,uDAAM,OAAO;AAChF,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,aAAa,uDAAM,SAAS,GAAG,aAAa,uDAAM,SAAS;AACzE,KAAK;AACL;AACA;AACA;;AAE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EA;AACA;AACA,CAAC;;;;;;;;;ACZD;AAAA;AAAkD;;AAEnC;AACf;AACA,YAAY,0DAAS;AACrB,YAAY,0DAAS,eAAe,qDAAI;AACxC,CAAC;;;;;;;;;ACND;AAAA;AAAkD;;AAEnC;AACf;AACA,YAAY,0DAAS;AACrB,YAAY,0DAAS,qCAAqC,qDAAI;AAC9D,CAAC;;;;;;;;;ACND;AAAA;AAAiC;;AAElB;AACf,mDAAmD,wDAAO;AAC1D;AACA;AACA,GAAG;AACH,CAAC;;;;;;;;;ACPD;AAAA;AAAqC;;AAErC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf,iBAAiB,0DAAS;;AAE1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;ACxDD;AAAe;AACf;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;ACLD;AAAA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEe;AACf;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;AC1ED;AAAA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;ACVD;AAAA;AAAA;AAAA;AAAkC;AACA;AACC;;AAEnC,oBAAoB;;AAEpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ,gBAAgB;AACxB;AACA;AACA;AACA,KAAK;AACL,qBAAqB,gDAAS;AAC9B;AACA;;AAEA;AACA,QAAQ,iBAAiB;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,gBAAgB;AAC7B;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,qBAAqB,gDAAS;AAC9B;AACA;;AAEA;AACA,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA,2BAA2B,eAAe,EAAE;AAC5C;AACA;;AAEA;AACA;AACA;;AAEA,2CAA2C,yDAAQ;;AAEnD,sGAAsG,OAAO;AAC7G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,4CAA4C,iBAAiB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,gDAAS;AACxB;AACA;AACA;AACA,CAAC;;;;;;;;;ACrHD;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;ACJD;AAAA;AAAoC;;AAEpC;AACA,eAAe,uDAAW;AAC1B;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;ACjCD;AAAe;;AAEf,2DAA2D,OAAO;AAClE,8DAA8D,OAAO;AACrE;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;ACTD;AAAe;AACf;AACA,CAAC;;;;;;;;;ACFD;AAAA;AAAA;AAAA;AAA8B;AACI;;AAEnB;AACf,aAAa,gDAAS,iCAAiC,+CAAM;AAC7D,CAAC;;AAEM;AACP;AACA;AACA;AACA;AACA;AACA;;A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;;AAEA;AACA;AACA;AACA;AACA,0CAA0C,OAAO;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEe;AACf;;AAEA;AACA;AACA,6CAA6C,OAAO;AACpD,4BAA4B,OAAO;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA,CAAC;;AAEM;AACP;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;;;;;;;;AC1GA;AAAe;;AAEf,4DAA4D,SAAS;AACrE,4EAA4E,UAAU;AACtF;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;ACZD;AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;AC3BD;AAAA;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;ACND;AAAA;AACA;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;ACPD;AAAA;AAAA;AAAkC;AACC;;AAEpB;AACf,6CAA6C,yDAAQ;;AAErD,qFAAqF,OAAO;AAC5F,+GAA+G,OAAO;AACtH;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,gDAAS;AACtB,CAAC;;;;;;;;;AChBD;AAAA;AAAA;AAAkC;AACO;;AAE1B;AACf,6CAA6C,4DAAW;;AAExD,yFAAyF,OAAO;AAChG,8DAA8D,OAAO;AACrE;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,gDAAS;AACtB,CAAC;;;;;;;;;AChBD;AAAe;AACf;AACA,wBAAwB,QAAQ,EAAE;AAClC;AACA,CAAC;;;;;;;;;ACJD;AAAA;AAAkC;;AAEnB;AACf;;AAEA;AACA;AACA;;AAEA,sFAAsF,OAAO;AAC7F,wGAAwG,OAAO;AAC/G;AACA;AACA;AACA;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ACZD;AAAA;AAA8B;;AAEf;AACf,cAAc,4CAAK;AACnB;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;;;;;;;;;ACVD;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qIAAqI,mBAAmB;;AAEjJ;AACP;AACA;;AAEA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;;AAEO;AACP,QAAQ;AACR,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB;AACpB;AACA,8BAA8B;AAC9B;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;;;;;;;;AC7GA;AAAA;AAAA;AAA8C;AACE;;AAEhD;;AAEe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA4C,8DAAS;AACrD,mBAAmB,4DAAU;AAC7B;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;ACpBD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA2B;AAC8B;AACd;AACM;;;;;;;;;ACHjD;AAAA;AAA8D;;AAE/C;AACf;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,kDAAkD,eAAe,UAAU;AAC3E,8BAA8B,6DAAQ,qBAAqB,2DAAM;AACjE,qBAAqB,0DAAK;AAC1B;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;ACvBD;AAAA;AAAA;AAAA;AAAuC;AACO;AACE;;AAEhD,sDAAS,uBAAuB,kDAAmB;AACnD,sDAAS,wBAAwB,mDAAoB;;;;;;;;;ACLrD;AAAA;AAAqC;;AAEtB;AACf;AACA,IAAI,0DAAS;AACb,GAAG;AACH,CAAC;;;;;;;;;ACND;AAAA;AAAA;AAAA;AAAA;AAAsD;AACR;AACP;AACV;;AAE7B;AACA;AACA;AACA;AACA,QAAQ,sDAAc;AACtB;;AAEA;AACA;AACA;AACA;AACA,kCAAkC,oDAAG;AACrC;AACA;AACA;AACA;;AAEe;AACf;AACA;;AAEA,sBAAsB,4DAAU;AAChC;AACA,GAAG;AACH,SAAS,+DAAK,oCAAoC,oDAAG;AACrD;;AAEA,2DAA2D,OAAO;AAClE,8DAA8D,OAAO;AACrE;AACA,QAAQ,oEAAQ;AAChB;AACA;AACA;;AAEA,aAAa,4DAAU;AACvB,CAAC;;;;;;;;;ACzCD;AAAA;AAAA;AAAA;AAAA;AAA+E;AACxC;AACJ;AACK;;AAExC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf,iBAAiB,8DAAS,uCAAuC,sEAAoB,GAAG,oDAAW;AACnG;AACA,sEAAsE,yDAAU;AAChF;AACA;AACA,CAAC;;;;;;;;;ACzED;AAAA;AAAuC;;AAEvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA,iBAAiB,8DAAS;AAC1B;AACA,CAAC;;;;;;;;;AC/BD;AAAA;AAAqC;;AAErC;AACA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;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,0DAAK;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB,0DAAK;AACtB;AACA,mEAAmE,0DAAK;AACxE;AACA;AACA;AACA;AACA;;AAEe;AACf,yCAAyC,sEAAoB,GAAG,oDAAW;AAC3E;AACA;AACA;AACA;AACA,mCAAmC,yDAAU;AAC7C;AACA,CAAC;;;;;;;;;ACzDD;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;ACjBD;AAAA;AAAmC;;AAEnC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA,qBAAqB,yDAAU;AAC/B;AACA,CAAC;;;;;;;;;ACnBD;AAAA;AAAA;AAA0C;AACD;;AAE1B;AACf;AACA;AACA,YAAY,oDAAK;;AAEjB,2DAA2D,OAAO;AAClE,8DAA8D,OAAO;AACrE;AACA,sBAAsB,qDAAG;AACzB,QAAQ,yDAAQ;AAChB;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA,aAAa,iDAAU;AACvB,CAAC;;;;;;;;;ACvBD;AAAA;AAAA;AAAoC;;AAEpC;AACA;AACA;AACA,mBAAmB,qDAAG;AACtB;;AAEA;AACA;AACA;AACA;AACA;AACA,wCAAwC,OAAO;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,qDAAG;AACtB;;AAEA;AACA;AACA;AACA;AACA;AACA,oBAAoB,yBAAyB,2BAA2B,OAAO;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;;AAEA;;AAEA;AACA,gBAAgB,qDAAG;AACnB,wCAAwC,OAAO;AAC/C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;AAEM;AACP;;AAEA;AACA,mBAAmB,qDAAG;AACtB,2CAA2C;AAC3C,GAAG;;AAEH;AACA,WAAW,qDAAG;AACd;AACA;;;;;;;;;AChFA;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;ACJD;AAAA;AAAe;AACf;AACA;AACA;AACA;;;;;;;;;ACJA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAuC;AACwC;;;;;;;;;ACD/E;AAAA;AAAA;AAAmC;;AAE5B;AACP,EAAE,kDAAK;AACP;;AAEe;AACf,EAAE,kDAAK;AACP,EAAE,kDAAK;AACP,CAAC;;;;;;;;;ACTD;AAAA;AAAA;AAAA;AAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEO;;AAEP;;AAEe;AACf;AACA;;;;;;;;;ACjDA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAqC;AACW;AACD;AACuB;AAC9B;AACN;AACF;AACgB;AACC;;AAEjD;AACA;AACA,UAAU,kDAAK;AACf;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA,wBAAwB,mDAAQ;AAChC;;AAEA;AACA,UAAU,kDAAK,WAAW,kDAAK;AAC/B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,8DAAe;AACnC;AACA,kBAAkB,4DAAQ;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAuB,mDAAQ;AAC/B;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,+CAA+C,oDAAS;AACxD;;AAEA;AACA;AACA,oEAAoE,oDAAS;AAC7E;;AAEA;AACA;AACA;;AAEA;AACA;AACA,sCAAsC,kCAAkC,EAAE;AAC1E,mDAAmD,gCAAgC,EAAE;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B,kBAAkB,4BAA4B,SAAS,oDAAS,sCAAsC;AACtG;AACA;AACA,SAAS;AACT;;AAEA;AACA,2CAA2C,OAAO;AAClD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,MAAM,gEAAW,KAAK,8CAAS;AAC/B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY,0DAAK;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM,+DAAS;AACf;AACA;;AAEA,IAAI,wDAAO;AACX;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,2DAAM,CAAC,kDAAK;AACxB,YAAY,0DAAK;AACjB,aAAa,kDAAK;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AEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;ACxaD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC,KAA4D;AAC7D,CAAC,SAC+B;AAChC,CAAC,qBAAqB;;AAEtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;AAIA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,gFAAgF;;AAEhF;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B,sBAAsB;;AAEhD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,SAAS;AAC1B;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC,yCAAyC,UAAc;AACxD;AACA,CAAC;AACD;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;AACH;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA,UAAU,IAAI;AACd;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA,uBAAuB;;AAEvB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,iBAAiB,wBAAwB;AACzC;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA,mBAAmB,6CAA6C;AAChE;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;;AAEA;AACA;AACA,UAAU,MAAM;AAChB,UAAU,OAAO;AACjB;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAU,MAAM;AAChB;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA,qBAAqB,YAAY;AACjC;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;;AAEA;AACA;AACA,UAAU,IAAI;AACd;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;;AAEA;AACA,UAAU,SAAS;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA,UAAU,SAAS;AACnB,UAAU,SAAS;AACnB;AACA,WAAW;AACX;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,UAAU,SAAS;AACnB;AACA,WAAW;AACX;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B;AAC1B,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;;AAEA;AACA,YAAY,SAAS;AACrB,aAAa;AACb;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA,OAAO;AACP,KAAK;AACL;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,CAAC;;;;AAID;;;;;;;;;;AC1pCA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO;;AAEA;AACP;AACA;;AAEO;AACP;AACA;;AAEO;AACP;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACO;AACP;AACA;;AAEA;AACA;AACA;AACO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACO;AACP;AACA,E;;;;;;;;ACnDA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mDAAmD,gBAAgB,sBAAsB,OAAO,2BAA2B,0BAA0B,yDAAyD,2BAA2B,EAAE,EAAE,EAAE,eAAe;;AAE/M;AACV;AACG;;AAEjC;AACP;AACA;AACA;AACA,eAAe,4DAAS;AACxB;AACA,GAAG;AACH;AACA,0BAA0B;;AAE1B;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL,0BAA0B,gEAAe;AACzC;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEO;AACP,uGAAuG,2DAAU;AACjH,E;;;;;;;;AChEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO;AACP;AACA;;AAEO;AACP;AACA;;AAEO;AACP;AACA;;AAEO;A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,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;;AAEA;AACA,IAAI,8CAAO,yQAAyQ;;AAEpR;AACA,mBAAmB,qEAAc;;AAEjC;AACA;;AAEA;;AAEA,gBAAgB,qCAAqC;AACrD,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEe,kFAAmB,E;;;;;;;;AC5JlC;AAAA;AAAA;AAA8B;;AAE9B;AACA;;AAEA;AACA,IAAI,8CAAO;;AAEX;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT,UAAU,8CAAO;;AAEjB;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA,mEAAmE,aAAa;AAChF;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe,sFAAuB,E;;;;;;;;AC5EtC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA2D;AACF;AACJ;AACF;AACM;AACF;;AAEa;;;;;;;;;ACPvD;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,8CAA8C;;AAE9C;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM,IAAqC;AAC3C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,0CAA0C,yBAAyB,EAAE;AACrE;AACA;AACA;;AAEA,0BAA0B;AAC1B;AACA;AACA;;AAEA;;;;;;;;AClDA;AACA;AACA;;;;;;;;;ACFA;AAAA;AAA8B;;AAE9B;AACA,aAAa,gDAAI;;AAEF,qEAAM,EAAC;;;;;;;;;ACLtB;AAAA;AAAA;AAAA;AAAkC;AACM;AACU;;AAElD;AACA;AACA;;AAEA;AACA,qBAAqB,kDAAM,GAAG,kDAAM;;AAEpC;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,6DAAS;AACf,MAAM,kEAAc;AACpB;;AAEe,yEAAU,EAAC;;;;;;;;;AC3B1B;AAAA;AACA;;AAEe,yEAAU,EAAC;;;;;;;;;;ACH1B;AAAA;AAAoC;;AAEpC;AACA,mBAAmB,2DAAO;;AAEX,2EAAY,EAAC;;;;;;;;;ACL5B;AAAA;AAAkC;;AAElC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB,kDAAM,GAAG,kDAAM;;AAEpC;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEe,wEAAS,EAAC;;;;;;;;;AC7CzB;AAAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEe,6EAAc,EAAC;;;;;;;;;ACrB9B;AAAA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEe,sEAAO,EAAC;;;;;;;;;ACdvB;AAAA;AAA0C;;AAE1C;AACA;;AAEA;AACA,WAAW,sDAAU;;AAEN,mEAAI,EAAC;;;;;;;;;ACRpB;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe,2EAAY,EAAC;;;;;;;;;AC5B5B;AAAA;AAAA;AAAA;AAA0C;AACI;AACD;;AAE7C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,gEAAY,WAAW,8DAAU;AACxC;AACA;AACA,cAAc,gEAAY;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe,4EAAa,EAAC;;;;;;;;AC7D7B,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,WAAW,mBAAO,CAAC,gCAAS;;AAE5B;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AAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACxBA,kBAAkB,mBAAO,CAAC,uCAAgB;;AAE1C;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChBA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACrBA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,kBAAkB,mBAAO,CAAC,sCAAe;AACzC,cAAc,mBAAO,CAAC,kCAAW;AACjC,eAAe,mBAAO,CAAC,mCAAY;AACnC,cAAc,mBAAO,CAAC,mCAAY;AAClC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChDA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpBA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAA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;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;;;;;;;ACpKA,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;AC7BA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,qBAAqB,mBAAO,CAAC,0CAAmB;;AAEhD;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB,aAAa,aAAa;AAC1B;AACA;;AAEA;;;;;;;;ACbA,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,EAAE;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC/BA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,aAAa,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,mBAAO,CAAC,qCAAc;AACtC,qBAAqB,mBAAO,CAAC,0CAAmB;;AAEhD;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC3BA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACbA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,aAAa;AACxB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACZA,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,oBAAoB,mBAAO,CAAC,yCAAkB;;AAE9C;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA,eAAe,mBAAO,CAAC,oCAAa;AACpC,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,wBAAwB,mBAAO,CAAC,6CAAsB;AACtD,eAAe,mBAAO,CAAC,oCAAa;AACpC,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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AAChC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA,YAAY,mBAAO,CAAC,iCAAU;AAC9B,kBAAkB,mBAAO,CAAC,uCAAgB;;AAE1C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC7DA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACXA,iBAAiB,mBAAO,CAAC,qCAAc;AACvC,eAAe,mBAAO,CAAC,oCAAa;AACpC,eAAe,mBAAO,CAAC,mCAAY;AACnC,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;AACA;AACA;AACA,oCAAoC;;AAEpC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC9CA,aAAa,mBAAO,CAAC,kCAAW;AAChC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,eAAe,mBAAO,CAAC,mCAAY;AACnC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC3DA,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,0BAA0B,mBAAO,CAAC,+CAAwB;AAC1D,eAAe,mBAAO,CAAC,mCAAY;AACnC,cAAc,mBAAO,CAAC,kCAAW;AACjC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC9BA,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC7BA,eAAe,mBAAO,CAAC,mCAAY;AACnC,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChCA;AACA;AACA;A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ACxB,WAAW,6BAA6B;AACxC,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL,YAAY;AACZ,GAAG;;AAEH;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;ACjCA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACbA,cAAc,mBAAO,CAAC,mCAAY;;AAElC;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACfA,eAAe,mBAAO,CAAC,mCAAY;AACnC,eAAe,mBAAO,CAAC,oCAAa;AACpC,kBAAkB,mBAAO,CAAC,uCAAgB;;AAE1C;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;;;;;;;;AChBA,eAAe,mBAAO,CAAC,mCAAY;AACnC,qBAAqB,mBAAO,CAAC,0CAAmB;AAChD,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpBA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA,aAAa,mBAAO,CAAC,kCAAW;AAChC,eAAe,mBAAO,CAAC,oCAAa;AACpC,cAAc,mBAAO,CAAC,kCAAW;AACjC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpCA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACbA,eAAe,mBAAO,CAAC,oCAAa;AACpC,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,wBAAwB,mBAAO,CAAC,6CAAsB;AACtD,eAAe,mBAAO,CAAC,oCAAa;AACpC,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACvEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACZA,wBAAwB,mBAAO,CAAC,4CAAqB;;AAErD;AACA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pB;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA,uBAAuB,mBAAO,CAAC,4CAAqB;;AAEpD;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACfA,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACxCA,uBAAuB,mBAAO,CAAC,4CAAqB;;AAEpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,mBAAmB;AAC9B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC3CA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,sBAAsB,mBAAO,CAAC,2CAAoB;;AAElD;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,WAAW,OAAO,WAAW;AAC7B,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA,wBAAwB;;AAExB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;;;;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AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,+CAA+C;AAChF;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACxBA,UAAU,mBAAO,CAAC,+BAAQ;AAC1B,WAAW,mBAAO,CAAC,+BAAQ;AAC3B,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;AClBA,gBAAgB,mBAAO,CAAC,qCAAc;;AAEtC;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,GAAG;AACH,CAAC;;AAED;;;;;;;;ACVA,eAAe,mBAAO,CAAC,oCAAa;AACpC,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AClFA,aAAa,mBAAO,CAAC,kCAAW;AAChC,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,SAAS,mBAAO,CAAC,6BAAM;AACvB,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC/GA,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACxFA;AACA;;AAEA;;;;;;;;;ACHA,qBAAqB,mBAAO,CAAC,0CAAmB;AAChD,iBAAiB,mBAAO,C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AO,CAAC,mCAAY;AAClC,eAAe,mBAAO,CAAC,mCAAY;AACnC,YAAY,mBAAO,CAAC,iCAAU;;AAE9B;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACtCA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChBA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC7BA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACtBA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACtBA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;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C,cAAc,mBAAO,CAAC,mCAAY;AAClC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,EAAE;AACb,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC7BA,cAAc,mBAAO,CAAC,kCAAW;AACjC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC5BA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACdA,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;ACjBA,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACZA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AClCA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;AClBA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACfA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;;;;;;;;ACzBA,WAAW,mBAAO,CAAC,gCAAS;AAC5B,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,UAAU,mBAAO,CAAC,+BAAQ;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpBA,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;;AAEA;;;;;;;;ACfA,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACfA,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;;;;;;ACrBA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA,cAAc,mBAAO,CAAC,kCAAW;;AAEjC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;;;;;;;;ACzBA,gBAAgB,mBAAO,CAAC,qCAAc;;AAEtC;AACA;;AAEA;;;;;;;;ACLA,cAAc,mBAAO,CAAC,mCAAY;;AAElC;AACA;;AAEA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA,+DAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA,kBAAkB,KAA0B;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH,CAAC;;AAED;;;;;;;;;AC7BA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;ACrBA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACdA,YAAY,mBAAO,CAAC,iCAAU;;AAE9B;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnCA,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;;AAEA;AACA;;AAEA;;;;;;;;ACRA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;ACbA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;;;;;;;ACjBA,sBAAsB,mBAAO,CAAC,2CAAoB;AAClD,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;;AAEA;;;;;;;;ACbA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpCA,gBAAgB,mBAAO,CAAC,qCAAc;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;;AAEA;;;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACbA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,UAAU,mBAAO,CAAC,+BAAQ;AAC1B,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjCA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACtBA,oBAAoB,mBAAO,CAAC,yCAAkB;;AAE9C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;;AAED;;;;;;;;AC1BA,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpBA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;;;;;;;;ACzBA,gBAAgB,mBAAO,CAAC,qCAAc;;AAEtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA;AACA,mBAAmB,SAAS,GAAG,SAAS;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,SAAS;AACtB;AACA;AACA,wCAAwC,SAAS;AACjD;AACA;AACA,WAAW,SAAS,GAAG,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACzBA,eAAe,mBAAO,CAAC,mCAAY;AACnC,UAAU,mBAAO,CAAC,8BAAO;AACzB,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,OAAO,YAAY;AAC9B,WAAW,QAAQ;AACnB;AACA,WAAW,OAAO;AAClB;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,8CAA8C,kBAAkB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC9LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,iBAAiB;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpCA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,gBAAgB,mBAAO,CAAC,oCAAa;;AAErC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA,MAAM,+CAA+C;AACrD,MAAM,gDAAgD;AACtD,MAAM;AACN;AACA;AACA,8BAA8B,mBAAmB,EAAE;AACnD;AACA;AACA;AACA,kBAAkB,2BAA2B;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACzCA,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,gBAAgB,mBAAO,CAAC,oCAAa;;AAErC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA,MAAM,qCAAqC;AAC3C,MAAM,qCAAqC;AAC3C,MAAM;AACN;AACA;AACA,mCAAmC,2BAA2B,EAAE;AAChE;AACA;AACA;AACA,uBAAuB,kCAAkC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACtDA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,oBAAoB,mBAAO,CAAC,wCAAiB;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;;;;;;;;ACxBA,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,gBAAgB,mBAAO,CAAC,oCAAa;;AAErC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA,MAAM,oCAAoC;AAC1C,MAAM,qCAAqC;AAC3C,MAAM;AACN;AACA;AACA,uCAAuC,4BAA4B,EAAE;AACrE;AACA;AACA;AACA,2BAA2B,mCAAmC;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC1DA,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,UAAU,mBAAO,CAAC,8BAAO;;AAEzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC5BA,kBAAkB,mBAAO,CAAC,uCAAgB;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACrBA,cAAc,mBAAO,CAAC,mCAAY;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,aAAa;AACxB,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA,iBAAiB,QAAQ,OAAO,SAAS,EAAE;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChCA,sBAAsB,mBAAO,CAAC,2CAAoB;AAClD,uBAAuB,mBAAO,CAAC,4CAAqB;;AAEpD;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,CAAC;;AAED;;;;;;;;ACxCA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,cAAc,mBAAO,CAAC,mCAAY;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,aAAa;AACxB,aAAa,QAAQ;AACrB;AACA;AACA,0BAA0B,gBAAgB,SAAS,GAAG;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpBA,eAAe,mBAAO,CAAC,oCAAa;AACpC,uBAAuB,mBAAO,CAAC,4CAAqB;AACpD,eAAe,mBAAO,CAAC,oCAAa;AACpC,0BAA0B,mBAAO,CAAC,+CAAwB;;AAE1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;AC7BA,sBAAsB,mBAAO,CAAC,2CAAoB;AAClD,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA,6BAA6B,kBAAkB,EAAE;AACjD;AACA;AACA;AACA;AACA;AACA,8CAA8C,kBAAkB,EAAE;AAClE;AACA;AACA;;AAEA;;;;;;;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACzBA,iBAAiB,mBAAO,CAAC,qCAAc;AACvC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChCA,kBAAkB,mBAAO,CAAC,sCAAe;AACzC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChCA,yDAAW,mBAAO,CAAC,gCAAS;AAC5B,gBAAgB,mBAAO,CAAC,oCAAa;;AAErC;AACA,kBAAkB,KAA0B;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;ACrCA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpCA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AClCA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC5BA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC1BA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC5BA,uBAAuB,mBAAO,CAAC,4CAAqB;AACpD,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC1BA,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,eAAe,mBAAO,CAAC,oCAAa;AACpC,kBAAkB,mBAAO,CAAC,sCAAe;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpCA,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,kBAAkB,mBAAO,CAAC,sCAAe;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC/BA,eAAe,mBAAO,CAAC,oCAAa;AACpC,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,cAAc,mBAAO,CAAC,mCAAY;AAClC,cAAc,mBAAO,CAAC,kCAAW;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,iBAAiB;AAC3B;AACA;AACA;AACA,MAAM,mBAAmB;AACzB,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpDA,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,aAAa,mBAAO,CAAC,kCAAW;AAChC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC5BA,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,aAAa,mBAAO,CAAC,kCAAW;AAChC,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,EAAE;AACf;AACA;AACA,mBAAmB,SAAS,GAAG,SAAS;AACxC;AACA,iCAAiC,YAAY,EAAE;AAC/C,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjCA,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA,iBAAiB;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;ACxEA,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,aAAa,mBAAO,CAAC,kCAAW;AAChC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC5BA,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,aAAa,mBAAO,CAAC,kCAAW;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,EAAE;AACf;AACA;AACA,mBAAmB,SAAS,GAAG,SAAS;AACxC;AACA,iCAAiC,YAAY,EAAE;AAC/C,UAAU;AACV;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChBA,WAAW,mBAAO,CAAC,gCAAS;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACtBA,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,cAAc,mBAAO,CAAC,kCAAW;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,qCAAqC;AAChD;AACA,WAAW,SAAS;AACpB,YAAY,OAAO;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA,MAAM,8BAA8B;AACpC,MAAM,8BAA8B;AACpC,MAAM,8BAA8B;AACpC,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC9CA,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,uBAAuB,mBAAO,CAAC,4CAAqB;AACpD,YAAY,mBAAO,CAAC,iCAAU;AAC9B,YAAY,mBAAO,CAAC,iCAAU;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,aAAa,SAAS;AACtB;AACA;AACA;AACA,MAAM,OAAO,SAAS,EAAE;AACxB,MAAM,OAAO,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC/BA,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,eAAe,mBAAO,CAAC,oCAAa;AACpC,qBAAqB,mBAAO,CAAC,0CAAmB;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,yBAAyB;AACpC;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA,MAAM,8BAA8B;AACpC,MAAM,8BAA8B;AACpC,MAAM,8BAA8B;AACpC,MAAM;AACN;AACA;AACA,iCAAiC,eAAe,EAAE;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA,cAAc,mBAAO,CAAC,mCAAY;AAClC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACvBA,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,cAAc,mBAAO,CAAC,mCAAY;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA,mBAAmB,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS;AAChE;AACA,iCAAiC,YAAY,EAAE;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChCA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,gBAAgB,mBAAO,CAAC,oCAAa;;AAErC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,8DAA8D;AAC9D;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AClDA,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACzCA,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;ACnCA,eAAe,mBAAO,CAAC,mCAAY;AACnC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjEA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC3BA,eAAe,mBAAO,C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A;AACA;;AAEA;AACA,iBAAiB,kBAAkB;AACnC;AACA;AACA;;AAEA;AACA,iBAAiB,YAAY;AAC7B,mEAAmE;AACnE;;AAEA;AACA;;AAEA;AACA;;AAEA,aAAa,oBAAoB;AACjC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA,cAAc,mBAAmB;AACjC;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,IAAI;AACJ,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA,cAAc,SAAS;AACvB;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,kCAAkC,IAAI;AACtC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,oBAAoB;AACjC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB;AACvB;AACA;;AAEA,aAAa,mBAAmB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,aAAa,oBAAoB;AACjC;AACA,cAAc,mBAAmB;AACjC;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,aAAa,mBAAmB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,aAAa,oBAAoB;AACjC;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,gBAAgB,qBAAqB;AACrC;;AAEA;AACA;AACA,iBAAiB,2BAA2B;AAC5C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;;AAEA;AACA,CAAC;;;;;;;;ACvrBD;;AAEA,CAAC;AACD,IAAI,KAA4D;AAChE,IAAI,SACyB;AAC7B,CAAC,qBAAqB;;AAEtB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,gBAAgB;AACnC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,2BAA2B,SAAS;AACpC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,6BAA6B;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,sBAAsB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,IAAI;AAC/B;;AAEA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,4CAA4C,IAAI;;AAEhD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,gCAAgC;AAChC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,iCAAiC;AACzD;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,4LAA4L,IAAI;;AAEhM,qEAAqE,IAAI;;AAEzE;;AAEA;;AAEA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,0CAA0C,YAAY;AACtD;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,YAAY;AACnC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,8BAA8B;AAC9B,gCAAgC;AAChC,6BAA6B,EAAE,EAAE;AACjC,6BAA6B,EAAE,EAAE;AACjC,kCAAkC,EAAE,EAAE;AACtC,iCAAiC;AACjC,qCAAqC;AACrC,yCAAyC;AACzC,6BAA6B,IAAI,EAAE;AACnC,6BAA6B,IAAI,EAAE;AACnC,kCAAkC,IAAI,EAAE;;AAExC,+BAA+B;AAC/B,oCAAoC;;AAEpC,8CAA8C;AAC9C,qDAAqD;;AAErD,wCAAwC,IAAI,IAAI;;AAEhD;AACA;AACA,2BAA2B,MAAM,wEAAwE,MAAM,mBAAmB,MAAM,qBAAqB,MAAM,EAAE,IAAI;;AAEzK;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA,8CAA8C;AAC9C;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA,2BAA2B,wBAAwB;AACnD;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,QAAQ;AAC/B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,QAAQ;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,QAAQ;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,QAAQ;AAC3B;AACA;AACA;AACA,mBAAmB,QAAQ;AAC3B;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,OAAO;AAC1B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,mIAAkC;AAClD;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;AACA;;;AAGA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB,+BAA+B;AAClD;AACA;;AAEA;AACA,cAAc,OAAO;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2CAA2C,EAAE,IAAI,EAAE;AACnD,wCAAwC,EAAE,IAAI,EAAE;;AAEhD;;AAEA;AACA,iCAAiC,EAAE;AACnC,2BAA2B,EAAE;AAC7B,6BAA6B,EAAE;AAC/B,2BAA2B,EAAE;AAC7B,yBAAyB,EAAE,IAAI,EAAE;AACjC,wBAAwB,EAAE;AAC1B,+BAA+B,GAAG;AAClC,yBAAyB,EAAE;AAC3B;AACA,2BAA2B,EAAE,IAAI,EAAE;AACnC,0BAA0B,EAAE,IAAI,EAAE;AAClC,wBAAwB,EAAE;AAC1B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,4CAA4C,OAAO;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,OAAO;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA,8DAA8D,IAAI,0DAA0D,IAAI,qEAAqE,EAAE;;AAEvM;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,kCAAkC,gBAAgB;AAClD;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,6BAA6B;AACtC;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB;;AAEnB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,oBAAoB;AACpB;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,cAAc;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,6DAA6D;AAC7D,yDAAyD;AACzD,+DAA+D;AAC/D,wDAAwD,OAAO;AAC/D,wDAAwD,OAAO;AAC/D,uDAAuD,OAAO;AAC9D,mEAAmE,OAAO;AAC1E,qEAAqE,OAAO;AAC5E;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mCAAmC,qBAAqB;AACxD,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mCAAmC,qBAAqB;AACxD,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,wBAAwB;AACxB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;;AAGL;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,wBAAwB,mBAAmB;AAC3C;AACA;;AAEA;AACA;AACA;;AAEA,qBAAqB,mBAAmB;AACxC;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,QAAQ;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,oCAAoC,IAAI;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;;;AAGA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC;;;;;;;;;;ACz5ID;AACA;AACA;AACA;AACA;;AAEa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH,kCAAkC;AAClC;AACA;AACA;;AAEA;AACA,EAAE;AACF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,gBAAgB,sBAAsB;AACtC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,oBAAoB;AACtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;ACzFA,cAAc,mBAAO,CAAC,iCAAS;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ,YAAY;AACZ;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,YAAY;AACZ,YAAY;AACZ;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB,mBAAmB;AACpC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,mBAAmB;AACtC;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;;AAEA,uBAAuB,kBAAkB;AACzC;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY;AACZ;AACA;AACA,mCAAmC;AACnC;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,QAAQ;AACpB,YAAY,MAAM;AAClB,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,QAAQ;AACpB,YAAY,OAAO;AACnB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,MAAM;AAClB,YAAY,QAAQ;AACpB,YAAY;AACZ;AACA;AACA;;AAEA,iBAAiB,iBAAiB;AAClC;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,gBAAgB;AAC5B,YAAY,QAAQ;AACpB,YAAY;AACZ;AACA;AACA;AACA,yBAAyB,QAAQ;AACjC;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB,mBAAmB;AACpC;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc,6DAA6D;AAC3E;AACA,YAAY,sBAAsB;AAClC,YAAY,gBAAgB;AAC5B,YAAY,QAAQ;AACpB,YAAY;AACZ;AACA;AACA;AACA,yBAAyB,QAAQ;AACjC;AACA;;AAEA;;AAEA;AACA,2CAA2C,OAAO;AAClD;;AAEA;AACA,oCAAoC,OAAO,uBAAuB,OAAO;AACzE;;AAEA,mCAAmC,OAAO,uBAAuB,OAAO;AACxE;;;;;;;;ACzaA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qCAAqC;;AAErC;AACA;AACA;;AAEA,2BAA2B;AAC3B;AACA;AACA;AACA,4BAA4B,UAAU;;;;;;;;;ACvLtC;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb;;AAEA,IAAI,IAAqC;AACzC,6BAA6B,mBAAO,CAAC,uDAA4B;AACjE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,UAAU;AACrB;AACA;AACA;AACA,MAAM,IAAqC;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4GAA4G;AAC5G;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,2DAA2D;AAC3D;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;AC1FA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb,aAAa,mBAAO,CAAC,uCAAe;;AAEpC,2BAA2B,mBAAO,CAAC,uDAA4B;AAC/D,qBAAqB,mBAAO,CAAC,6CAAkB;;AAE/C;;AAEA,IAAI,IAAqC;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,0CAA0C;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,6BAA6B;AAC7B,QAAQ;AACR;AACA;AACA;AACA;AACA,+BAA+B,KAAK;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,4BAA4B;AAC5B,OAAO;AACP;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,QAAQ,IAAqC;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,UAAU,KAAqC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM,KAAqC,wFAAwF,SAAM;AACzI;AACA;;AAEA;AACA;AACA,qBAAqB,2BAA2B;AAChD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM,KAAqC,4FAA4F,SAAM;AAC7I;AACA;;AAEA,mBAAmB,gCAAgC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB,gCAAgC;AACrD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;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A,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,2EAA2E;AAC3E;AACA;AACA,GAAG;AACH,iFAAiF;AACjF;AACA;AACA;AACA,GAAG;AACH;AACA,wHAAwH;AACxH;AACA,GAAG,kEAAkE;AACrE;AACA,GAAG,mEAAmE;AACtE;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA,oBAAoB,cAAc;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;;;;;;;;ACnLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;;;AAIb,IAAI,IAAqC;AACzC;AACA;;AAEA,YAAY,mBAAO,CAAC,+BAAO;AAC3B,cAAc,mBAAO,CAAC,uCAAe;AACrC,qBAAqB,mBAAO,CAAC,6CAA2B;AACxD,gBAAgB,mBAAO,CAAC,mCAAW;AACnC,cAAc,mBAAO,CAAC,+CAAmB;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,qDAAqD;AACrD,KAAK;AACL;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA,0BAA0B;AAC1B;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,EAAE;AACb,WAAW,KAAK;AAChB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,EAAE;AACb,WAAW,KAAK;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,sFAAsF,aAAa;AACnG;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW,eAAe;AAC1B,WAAW,SAAS;AACpB,WAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,8BAA8B;AACjD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,EAAE;AACd;;;AAGA;AACA,WAAW,eAAe;AAC1B,YAAY,QAAQ;AACpB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA,YAAY,WAAW;AACvB;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,WAAW,MAAM;AACjB;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,EAAE;AACb;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;;AAEA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,UAAU;AACtB;AACA;AACA;;AAEA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY,EAAE;AACd;AACA;AACA;AACA;AACA,iBAAiB,oBAAoB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,+BAA+B;AAC/B,iBAAiB;AACjB,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,OAAO;AAChC;AACA;AACA;AACA,yBAAyB,OAAO;AAChC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,SAAS;AAChC;AACA;AACA,aAAa,iBAAiB;AAC9B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,qBAAqB;AACtC;AACA;AACA,8BAA8B,UAAU;AACxC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,eAAe;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;AAIA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa;AACb;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,qBAAqB;AACtC;AACA;AACA;AACA;;AAEA;AACA,eAAe,eAAe;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,WAAW,OAAO;AAClB,WAAW,eAAe;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uHAAuH;AACvH,yHAAyH;AACzH;AACA;AACA,CAAC;;AAED;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,8BAA8B;AAC9B;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,mCAAmC;AACnC;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,WAAW,aAAa;AACxB,WAAW,OAAO;AAClB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY,QAAQ;AACpB;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,0BAA0B;AAC7C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY,eAAe;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,4CAA4C;AAC5C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sFAAsF,aAAa;AACnG;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;AACL;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,WAAW;AACtB,WAAW,OAAO;AAClB,WAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,kDAAkD;AAClD;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,yCAAyC;;AAEzC;;;AAGA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA,MAAM;AACN;AACA;AACA;AACA,kBAAkB,aAAa;AAC/B;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;;AAGH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA,iBAAiB,yBAAyB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,yBAAyB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,uBAAuB;AAClC,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,uBAAuB;AAClC,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,uBAAuB;AAClC,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,WAAW,WAAW;AACtB,YAAY;AACZ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;;AAEA;AACA,YAAY,WAAW;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,uBAAuB;AAClC,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA,uBAAuB;AACvB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,WAAW;AACtB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B,sBAAsB;AACjD;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,2BAA2B;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,2BAA2B;AAC9C;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,qBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB;AACnB;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oCAAoC;AACpC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,WAAW;AACtB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,WAAW,WAAW;AACtB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,wBAAwB;AACxB;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,4CAA4C;;AAE5C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,WAAW;AACtB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU,iCAAiC;AAC3C;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM,gCAAgC,KAAK;AAC3C;AACA;AACA,MAAM,gCAAgC,KAAK;AAC3C;AACA,4DAA4D;AAC5D,MAAM,gCAAgC,KAAK;AAC3C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qOAAqO;AACrO;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8KAA8K,YAAY;AAC1L;AACA;AACA;AACA;AACA,uLAAuL,+BAA+B;AACtN;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iKAAiK,iBAAiB;AAClL,OAAO;AACP,iKAAiK,iBAAiB,wDAAwD,mBAAmB,gBAAgB,8BAA8B;AAC3S;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+GAA+G,GAAG;AAClH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,4IAA4I,mBAAmB,gBAAgB,8BAA8B;AAC7M,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,YAAY,KAAI;AAChB;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,0BAA0B;AAC3C;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA,KAAK;AACL;AACA,sDAAsD,eAAe;AACrE,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,4BAA4B;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA,YAAY,KAAI;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,4BAA4B;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,oBAAoB,wBAAwB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,KAAI;AAClB;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,cAAc,KAAI;AAClB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,YAAY,KAAI;AAChB;AACA;AACA;AACA;AACA,KAAK,UAAU,KAAI;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD;AACA;AACA,uCAAuC;AACvC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iCAAiC;AACjC,gBAAgB;;AAEhB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM,KAAI;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA,MAAM,KAAI;AACV;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;AAIA;AACA,MAAM,KAAI;AACV;AACA;AACA;;AAEA;AACA,MAAM,KAAI;AACV;AACA;AACA;;AAEA;AACA,MAAM,KAAI;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA,iEAAiE;AACjE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL,UAAU,KAAI;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,yDAAyD;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,sFAAsF,aAAa;AACnG;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,4FAA4F,eAAe;AAC3G;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,wCAAwC;AACxC,iDAAiD;AACjD,qDAAqD;AACrD,0DAA0D;AAC1D,8DAA8D;AAC9D,2DAA2D;AAC3D;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;;AAEX;AACA;AACA;;AAEA;AACA;AACA,OAAO;;AAEP;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;;AAEA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,kGAAkG;AAClG;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kKAAkK,yCAAyC;AAC3M;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,wBAAwB;AAC7C;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU,kDAAkD;AAC5D;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,6BAA6B;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,UAAU,6BAA6B;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,aAAa;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,UAAU,iCAAiC;AAC3C;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,YAAY;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,UAAU,YAAY;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,6CAA6C,MAAM;AACnD;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,uBAAuB,8BAA8B;AACrD;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,4CAA4C;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,yNAAyN,0CAA0C;AACnQ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH,sCAAsC;AACtC;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,+PAA+P,sCAAsC,0BAA0B,iCAAiC,QAAQ,eAAe;AACvX,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,OAAO;AACP;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,KAAI;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM,KAAI;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,UAAU,KAAI;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,UAAU,KAAI;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;;AAEA,UAAU,KAAI;AACd;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAY,KAAI;AAChB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,UAAU,KAAI;AACd;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,MAAM,KAAI;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,KAAI;AACV;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,UAAU,KAAI;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,YAAY,KAAI;AAChB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,mCAAmC;AACnC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW;AACX,SAAS;AACT;;AAEA;AACA;AACA;AACA,WAAW;AACX;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,8MAA8M,oDAAoD,EAAE;AACpQ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA,sEAAsE,mBAAmB;AACzF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yEAAyE;AACzE;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,oBAAoB;AACvC;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,gGAAgG;AAChG;AACA;;AAEA;AACA;AACA;AACA,oBAAoB;;AAEpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,sBAAsB;AACvC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,sBAAsB;AACvC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,YAAY;AACvB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,iQAAiQ,cAAc;AAC/Q;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;;;AAGH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;;AAGH;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA,CAAC;;AAED;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;AACH;;;;;;;;;AC/upBa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,IAAqC;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA,IAAI,KAAqC,EAAE,EAK1C;AACD,mBAAmB,mBAAO,CAAC,uDAAgC;AAC3D;;;;;;;;;ACrCa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB,WAAW;AACjC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,oBAAoB,WAAW;AAC/B;AACA;;AAEA;AACA,oBAAoB,WAAW;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;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DAAI;;AAErB;AACA,QAAQ,mEAAI;AACZ;AACA;;AAEA,uFAAuF;;AAEvF;AACA;AACA,UAAU,mEAAI;AACd;AACA;;AAEA;AACA,UAAU,mEAAI;AACd;;AAEA;;AAEA;AACA,UAAU,kEAAG;AACb;AACA,OAAO;AACP;;AAEA;AACA,UAAU,kEAAG,2CAA2C;AACxD;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,wBAAwB,OAAO;AAC/B,oBAAoB,OAAO;AAC3B,wBAAwB,OAAO;AAC/B,qBAAqB,OAAO,eAAe;AAC3C;AACA;AACA;AACA;;AAEA,8FAA8F,eAAe;AAC7G;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,QAAQ,mEAAI;AACZ,OAAO;AACP,QAAQ,mEAAI;AACZ,OAAO;AACP;AACA;;AAEA;AACA;;AAEA;AACA,YAAY,kEAAG,mCAAmC;AAClD,YAAY,kEAAG;AACf;AACA,SAAS;AACT;;AAEA;AACA,YAAY,kEAAG,mCAAmC;AAClD,YAAY,kEAAG;AACf;AACA,SAAS;AACT;;AAEA;AACA,YAAY,kEAAG,mCAAmC;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,OAAO;AAC7B,WAAW,SAAS;AACpB;;AAEO;AACP;AACA,IAAI,mEAAI;AACR;AACA;;AAEA;AACA;AACA;AACA,MAAM,mEAAI;AACV;AACA,KAAK;;;AAGL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;;AAGA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,qDAAqD;;AAErD;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACO,kBAAkB,0DAAW;AACrB;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,0DAAW;AAC1B,CAAC,E;;;;;;;;AC1nBD;AAAA;AAA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AAQ;AACtB,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,QAAQ;AACtB,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,OAAO;AACrB;;AAEA;AACA;AACA,UAAU;AACV,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,QAAQ;AACtB,cAAc,yBAAyB;AACvC;;AAEA;AACA;AACA,UAAU;AACV,cAAc,OAAO;AACrB,cAAc,cAAc;AAC5B,cAAc,OAAO;AACrB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,yEAAyE,aAAa;AACtF;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA,OAAO,IAAI;AACX;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,qDAAqD;;AAEhE;AACA,SAAS;AACT;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP,KAAK;;AAEL;AACA,4EAA4E,eAAe;AAC3F;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA,oGAAoG;AACpG;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA,KAAK;;AAEL;AACA,4EAA4E,eAAe;AAC3F;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,4EAA4E,eAAe;AAC3F;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA,4EAA4E,eAAe;AAC3F;AACA;;AAEA;AACA,oCAAoC;AACpC;;AAEA;AACA,KAAK;;AAEL;AACA,gGAAgG,eAAe;AAC/G;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA,4EAA4E,eAAe;AAC3F;AACA;;AAEA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;;AAEX;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;;AAGT;AACA;AACA;AACA;AACA,UAAU;;AAEV;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA,SAAS;;AAET;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,qBAAqB,UAAU;AAC/B;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,SAAS;AACxB,eAAe,OAAO;AACtB;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,SAAS;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;;;AAGP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;;AAGA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA,CAAC;;AAED;;AAEA;;AAEA,8B;;;;;;;;AC7oBa;;AAEb;AACA;AACA,CAAC;AACD;;AAEA;AACA,qEAAqE,aAAa;AAClF;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,8B;;;;;;;;AC5Ba;;AAEb,uBAAuB,2B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AgB,sBAAsB,OAAO,2BAA2B,0BAA0B,yDAAyD,2BAA2B,EAAE,EAAE,EAAE,eAAe;;AAE9P,iDAAiD,0CAA0C,0DAA0D,EAAE;;AAEvJ,iDAAiD,aAAa,uFAAuF,EAAE,uFAAuF;;AAE9O,0CAA0C,+DAA+D,qGAAqG,EAAE,yEAAyE,eAAe,yEAAyE,EAAE,EAAE,uHAAuH;;AAE5e,8CAA8C,iBAAiB,qBAAqB,oCAAoC,6DAA6D,oBAAoB,EAAE,eAAe;;AAEvK;AACjB;AACe;;AAEA;AACkB;;AAEnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mFAAmF;AACnF;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,wCAAwC,4BAA4B,2DAAU,mCAAmC,kEAAiB;AAClI,kDAAkD,wCAAwC,kEAAiB;;AAE3G;AACA,IAAI,gDAAS;;AAEb;;AAEA;;AAEA,4CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,QAAQ,gDAAS;;AAEjB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,wEAAwE;AACxE;AACA;AACA;AACA,yBAAyB;AACzB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,QAAQ,gDAAS,sEAAsE,gBAAgB;AACvG;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,gCAAgC,2DAAY;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT,iBAAiB,2DAAa;AAC9B;AACA;;AAEA;AACA,KAAK,CAAC,+CAAS;;AAEf;AACA;AACA;AACA;AACA;;AAEA,QAAQ,IAAqC;AAC7C;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;;AAEA,WAAW,8DAAY;AACvB;AACA,C;;;;;;;;AChSA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mDAAmD,gBAAgB,sBAAsB,OAAO,2BAA2B,0BAA0B,yDAAyD,2BAA2B,EAAE,EAAE,EAAE,eAAe;;AAE9P,8CAA8C,iBAAiB,qBAAqB,oCAAoC,6DAA6D,oBAAoB,EAAE,eAAe;;AAE9J;AACX;AACqB;AACN;AACV;AACC;;AAEvD;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,oCAAoC,QAAQ;AAC5C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACO;AACP,mFAAmF;AACnF;AACA,mDAAmD,mEAAe;AAClE;AACA,uEAAuE,wDAA+B;AACtG;AACA,0EAA0E,2DAAkC;AAC5G;AACA,kEAAkE,mDAA0B;AAC5F;AACA,6DAA6D,wDAAsB;;AA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AEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,MAAM,IAAqC;AAC3C,IAAI,mEAAkB;AACtB;;AAEA;;AAEA;AACA,C;;;;;;;;ACrGA;AAAA;AAAA;AAAuC;;AAEvC;AACA;AACA;AACA,GAAG;AACH;AACA,MAAM,8DAAO;AACb;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA,C;;;;;;;;AChBA;AAAA;AAAA;AAAA;AAAA;AAA2D;;AAEpD;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,UAAU,IAAqC,EAAE,wEAAiB;;AAElE;AACA;;AAEA;AACA;AACA,C;;;;;;;;AClEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiE;AACN;AACnB;;;;;;;;;;ACFxC;AAAA;AAAA;AAAA;AAAA;AAAmC;;AAE5B,wBAAwB,iDAAS;AACxC,gBAAgB,iDAAS;AACzB,kBAAkB,iDAAS;AAC3B,oBAAoB,iDAAS;AAC7B,gBAAgB,iDAAS;AACzB,CAAC;;AAEM,iBAAiB,iDAAS;AACjC,aAAa,iDAAS;AACtB,YAAY,iD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C;AACzD;AACA,SAAS;AACT;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,yBAAyB,iDAAS;AAClC;;AAEA,SAAS,8DAAY;AACrB;;AAEe,yEAAU,E;;;;;;;;ACnCzB;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb;AACA;AACA;AACA;AACA;AACA;;AAEA,cAAc,aAAoB;;AAElC;;AAEA;AACA;AACA;AACA;AACA,qBAAqB,WAAW;AAChC;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,qBAAqB,WAAW;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;;;AAIb,IAAI,IAAqC;AACzC;AACA;;AAEA,cAAc,mBAAO,CAAC,uCAAe;AACrC,qBAAqB,mBAAO,CAAC,6CAA2B;;AAExD;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,qDAAqD;AACrD,KAAK;AACL;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA,0BAA0B;AAC1B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,sFAAsF,aAAa;AACnG;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,4FAA4F,eAAe;AAC3G;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,sFAAsF,aAAa;AACnG;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qOAAqO;AACrO;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,WAAW;AACxB,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,WAAW;AACxB,aAAa,UAAU;AACvB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,WAAW;AACxB,aAAa,OAAO;AACpB,aAAa,UAAU;AACvB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,WAAW;AACxB,aAAa,OAAO;AACpB,aAAa,UAAU;AACvB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,gBAAgB;AAC3B;AACA,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sFAAsF,aAAa;AACnG;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,EAAE;AACb,WAAW,cAAc;AACzB,WAAW,EAAE;AACb;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb;AACA,WAAW,EAAE;AACb,WAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,mBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,wBAAwB;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,mBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW,GAAG;AACd,WAAW,QAAQ;AACnB,WAAW,UAAU;AACrB,WAAW,GAAG;AACd;AACA,YAAY,QAAQ;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB;AACvB;;AAEA;AACA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,0IAA0I,yCAAyC;AACnL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,WAAW,UAAU;AACrB,WAAW,GAAG;AACd,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,WAAW,iBAAiB;AAC5B,WAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,WAAW,iBAAiB;AAC5B,WAAW,EAAE;AACb,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY,aAAa;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,aAAa;AACxB;AACA;AACA;;AAEA;AACA,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA,iBAAiB,sBAAsB;AACvC;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;;;AAGA,kDAAkD;;;AAGlD;;;AAGA;;;AAGA;AACA;;AAEA;;;AAGA;;;AAGA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA,CAAC;;AAED;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;AACH;;;;;;;;;AC52Da;;AAEb,IAAI,KAAqC,EAAE,EAE1C;AACD,mBAAmB,mBAAO,CAAC,+CAA4B;AACvD;;;;;;;;;ACNA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEe,oEAAK,E;;;;;;;;ACnBpB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA6C;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA;;AAEA;AACA,iBAAiB,sBAAsB;AACvC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,WAAW,IAAI;AACf,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA,WAAW,IAAI;AACf;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,IAAI;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,eAAe;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc,4BAA4B;AAC1C;;AAEA;AACA;AACA,eAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB,OAAO;AACxB;AACA,mBAAmB,aAAa;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB;AAChB;AACA,KAAK,OAAO,yDAAY;AACxB;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,YAAY,yBAAyB;;AAErC;AACA;AACA;AACA;AACA;AACA,GAAG,QAAQ,yDAAY;AACvB;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,aAAa;AAChB;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mEAAmE;AACnE;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2CAA2C,yBAAyB;;AAEpE;AACA;AACA;;AAEA;AACA,mCAAmC,aAAa;AAChD;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA,iBAAiB,wBAAwB;AACzC;;AAEA,QAAQ,IAAqC;AAC7C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM,IAAqC;AAC3C;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,QAAQ,IAAqC;AAC7C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,8BAA8B;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,gBAAgB;AAC3B;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA,aAAa,gBAAgB;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,SAAS;AACtB;AACA;AACA;;AAEA;AACA,kEAAkE,aAAa;AAC/E;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,SAAS;AACtB;AACA;AACA,wEAAwE,aAAa;AACrF;AACA;;AAEA;AACA;AACA,wEAAwE,eAAe;AACvF;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA,wBAAwB;AACxB;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,IAAI,KAAqC;AACzC;AACA;;AAEgI;;;;;;;;;AC3kBhI;AAAA;AACA;AACA;;AAEA;AACA;AACA,iDAAiD,OAAO;AACxD;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA,gCAAgC,QAAQ;AACxC;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA,yBAAyB,MAAM;AAC/B;AACA,GAAG;;AAEH;;AAEA;;AAEA;AACA;;AAEe,8EAAe,E;;;;;;;;ACrE9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;;;AAIb,IAAI,IAAqC;AACzC;AACA;;AAEA,8CAA8C,cAAc;;AAE5D;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;;;AAGA,kDAAkD;;;AAGlD;;;AAGA;AACA;;AAEA;AACA;;AAEA;;;AAGA;;;AAGA;AACA;;;AAGA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;ACtaA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;;;AAIb,IAAI,IAAqC;AACzC;AACA;;AAEA,8CAA8C,cAAc;;AAE5D;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;AACD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;;AC1rBa;;AAEb,IAAI,KAAqC,EAAE,EAE1C;AACD,mBAAmB,mBAAO,CAAC,uDAAgC;AAC3D;;;;;;;;;ACNa;;AAEb,IAAI,KAAqC,EAAE,EAE1C;AACD,mBAAmB,mBAAO,CAAC,+DAAwC;AACnE;;;;;;;;;ACNA;AAAA;AAAA;AACqC;;AAErC;;AAEA;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC,UAAU,IAA6B;AACxC;AACA,CAAC,MAAM,EAEN;;AAED,aAAa,4DAAQ;AACN,qEAAM,EAAC;;;;;;;;;;AClBtB;AAAA;AAAe;AACf;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,EAAE;AACF;AACA;;AAEA;AACA;;;;;;;;;AChBA;AAAA,oGAAoG,mBAAmB,EAAE,mBAAmB,8HAA8H;;AAE1Q;AACA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEe,yEAAU,E;;;;;;;;ACrCzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,IAAI,IAAqC;AACzC;AACA;AACA;AACA,qBAAqB,WAAW;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;;;;;;;;AC3DA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA","file":"bundle.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./app/index.tsx\");\n","import { ActionType, ActionTypes } from './index';\r\nimport { IAppState } from '../reducers/index';\r\nimport { SeatingOptionGroup } from '../classes/seating-option'\r\n\r\nexport interface IAppAction {\r\n type: ActionType;\r\n value?: any;\r\n}\r\n\r\nexport function openViewFromSeatModal() {\r\n return { type: ActionTypes.OPEN_SEATVIEW_MODAL };\r\n}\r\n\r\nexport function closeViewFromSeatModal() {\r\n return { type: ActionTypes.CLOSE_SEATVIEW_MODAL };\r\n}\r\n\r\nexport function showLoadingScreen() {\r\n return { type: ActionTypes.LOADING_SCREEN, value: true };\r\n}\r\n\r\nexport function hideLoadingScreen() {\r\n return { type: ActionTypes.LOADING_SCREEN, value: false };\r\n}\r\n// export function setPackageTicketQuantity(priceTypeQuantity: Array<any>) {\r\n// return { type: ActionTypes.SET_PACKAGE_TICKET_QUANTITIES, value: priceTypeQuantity }\r\n// }","import { CartSeat } from '../classes/seat';\r\nimport { IExchangeTicket } from '../classes/ticket-exchange';\r\nimport { ActionTypes } from './index';\r\n\r\n\r\nexport function setExchangeTicketMax(numberOfTickets: number) {\r\n return {\r\n type: ActionTypes.SET_MAX_TICKET_QUANTITY,\r\n value: numberOfTickets\r\n }\r\n}\r\n\r\nexport function loadExchanges(exchangeTickets: Array<IExchangeTicket>) {\r\n return {\r\n type: ActionTypes.LOAD_EXCHANGES,\r\n value: exchangeTickets\r\n }\r\n}\r\n\r\nexport function setActiveExchangeTickets(exchangeTickets: Array<IExchangeTicket>, cartSeats: Array<CartSeat>) {\r\n return {\r\n type: ActionTypes.SET_CURRENT_EXCHANGE_TICKETS,\r\n value: {\r\n exchangeTickets: exchangeTickets,\r\n cartSeats:cartSeats\r\n }\r\n }\r\n}\r\n\r\nexport function calculateExchangePrice(originalPrice: number, activeExchangeTickets: Array<IExchangeTicket>): number {\r\n if (activeExchangeTickets.length === 0)\r\n return originalPrice;\r\n\r\n return Math.max(originalPrice - activeExchangeTickets[0].oldPrice, 0);\r\n}\r\n\r\n//export function isNotExchange() {\r\n// return {\r\n// type: ActionTypes.IS_EXCHANGE,\r\n// value: false\r\n// }\r\n//}\r\n","import { ISeatMatchRequestModel } from '../classes/request-model';\r\nimport { fetchSeatMatches } from '../filter/actions/filter-fetch';\r\nimport { getBasePriceRange, IPriceRangeModel } from '../filter/reducers/filter-reducers';\r\nimport { clearAllSeatRequests, saveSeatRequest } from '../helpers/local-storage-helpers';\r\nimport { getCurrentLanguage } from '../helpers/window-helpers';\r\nimport { IAppState } from '../reducers/index';\r\n\r\n\r\nexport interface ISeatInCartRequestModel {\r\n seatNumber: number;\r\n itemId: number;\r\n seatId: string;\r\n brandId: string;\r\n}\r\n\r\nexport function createFilterRequestWithBasePriceRangeAndZone(currentState: IAppState): ISeatMatchRequestModel {\r\n const basePriceRange: IPriceRangeModel = getBasePriceRange(currentState.priceTypesModel.priceTypes, currentState.priceRangeModel)\r\n\r\n const stateWithBasePriceRange: IAppState = {\r\n ...currentState,\r\n priceRangeModel: basePriceRange\r\n };\r\n\r\n return createFilterRequestWithZone(stateWithBasePriceRange);\r\n}\r\n\r\nexport function createFilterRequestWithZone(currentState: IAppState): ISeatMatchRequestModel {\r\n const filterRequest = createFilterRequest(currentState);\r\n filterRequest.zoneId = getCurrentZoneId(currentState);\r\n return filterRequest;\r\n}\r\n\r\nexport function createFilterRequest(currentState: IAppState, clearCache?: boolean): ISeatMatchRequestModel {\r\n\r\n var selectedLevels = currentState.venueLevelModel.venueLevels.filter(level => { return level.selected }).map(level => { return level.levelNumber });\r\n var availableLevels = currentState.venueLevelModel.venueLevels.filter(level => { return !level.disabled }).map(level => { return level.levelNumber });\r\n let seatMatchRequest: ISeatMatchRequestModel = {\r\n brandId: currentState.appSettingsModel.brandId,\r\n minPrice: currentState.priceRangeModel.minPrice,\r\n maxPrice: currentState.priceRangeModel.maxPrice,\r\n allowSeparatedSeats: false, //disabled until SmartSeat can actually support this\r\n itemId: currentState.appSettingsModel.itemId,\r\n itemType: currentState.appSettingsModel.itemType,\r\n requestedPriceTypes: currentState.priceTypesModel.priceTypes.map(priceType => {\r\n return {\r\n priceTypeId: priceType.priceTypeId,\r\n quantity: priceType.selectedQuantity\r\n }\r\n }),\r\n selectedVenueLevels: selectedLevels,\r\n selectedAllLevels: selectedLevels.length === availableLevels.length || selectedLevels.length === 0,\r\n allowAisleAccessSelected: currentState.additionalSeatingOptionModel.allowAisleAccessSelected,\r\n additionalSeatingOptions: currentState.additionalSeatingOptionModel.additionalSeatingOptions\r\n .map(additionalSeatingOption => {\r\n\r\n let selectedSeatingOptionIds = additionalSeatingOption.options.filter(seatingOption => {\r\n return seatingOption.selected == true;\r\n }).map(seatingOption => {\r\n return seatingOption.id;\r\n });\r\n\r\n const option = {\r\n ...{},\r\n seatingOptionGroupId: additionalSeatingOption.id,\r\n numberRequested: additionalSeatingOption.groupSeatSelectedQuantity,\r\n selectedSeatingOptionIds: selectedSeatingOptionIds,\r\n groupSelected: additionalSeatingOption.groupSelected\r\n } as any;\r\n\r\n return option;\r\n }),\r\n additionalNotes: currentState.additionalSeatingOptionModel.additionalNotes,\r\n language: getCurrentLanguage(),\r\n filtersModified: currentState.applicationModel.filtersModified,\r\n zoneId: null,\r\n invalidateCache: clearCache\r\n };\r\n\r\n const appSettings = currentState.appSettingsModel;\r\n try {\r\n saveSeatRequest(appSettings.itemId, appSettings.itemType, JSON.stringify(seatMatchRequest));\r\n } catch (exception) {\r\n clearAllSeatRequests();\r\n console.log(\"LOG: LocalStorage is full (saving for item \" + appSettings.itemId.toString());\r\n }\r\n return seatMatchRequest;\r\n}\r\n\r\nexport function getCurrentZoneId(currentState: IAppState):number | null {\r\n if (currentState.appSettingsModel.displaySeatFee) {\r\n if (currentState.seatMatchResultModel.suggestedSeats.length > 1) {\r\n return (+currentState.seatMatchResultModel.suggestedSeats[0].zoneId);\r\n }\r\n }\r\n return null;\r\n}","/*\r\n * action types\r\n */\r\n\r\nexport enum GaActionType {\r\n RECEIVE_SETTINGS = \"RECEIVE_SETTINGS\", // Receive application settings from server.\r\n TOGGLE_SEAT_SEPARATION = \"TOGGLE_SEAT_SEPARATION\", // Toggle if seats can be separated in additional seating options.\r\n SELECT_PRICE_TYPE_TICKETS = \"SELECT_PRICE_TYPE_TICKETS\", // Select number of tickets for a specific price tag.\r\n APPLY_PROMO = \"APPLY_PROMO\", // Apply current promo code to session.\r\n PROMO_CONFLICT = \"PROMO_CONFLICT\", // Apply promo has conflict.\r\n PROMO_ERROR = \"PROMO_ERROR\", // Apply promo has error.\r\n PRICE_RANGE_CLEAR = \"PRICE_RANGE_CLEAR\", // Reset price range to initial values.\r\n LOWER_PRICE_RANGE_CHANGE = \"LOWER_PRICE_RANGE_CHANGE\", // Change lower price range.\r\n UPPER_PRICE_RANGE_CHANGE = \"UPPER_PRICE_RANGE_CHANGE\", // Change upper price range.\r\n TOGGLE_AISLE_ACCESS = \"TOGGLE_AISLE_ACCESS\", // Toggle aisle access in additional seating options.\r\n ADD_ADDITIONAL_SEATING_OPTION_IDS = \"ADD_ADDITIONAL_SEATING_OPTION_IDS\", // When user selects an additional seating option.\r\n ADD_ADDITIONAL_SEATING_OPTION_QUANTITY = \"ADD_ADDITIONAL_SEATING_OPTION_QUANTITY\", // When user selects an additional seating option quantity.\r\n REMOVE_ADDITIONAL_SEATING_OPTION = \"REMOVE_ADDITIONAL_SEATING_OPTION\", // Remove a seating option from filter.\r\n CLEAR_ADDITIONAL_SEAT_REQUEST = \"CLEAR_ADDITIONAL_SEAT_REQUEST\", // Reset selected additional seat request.\r\n UPDATE_ADDITIONAL_NOTES = \"UPDATE_ADDITIONAL_NOTES\",\r\n REMOVE_PROMO = \"REMOVE_PROMO\", // Remove session promo.\r\n CANCEL_PROMO = \"CANCEL_PROMO\", // Cancel promo application.\r\n EMPTIED_CART = \"EMPTIED_CART\", // When cart has been emptied.\r\n TOGGLE_VENUE_LEVEL = \"TOGGLE_VENUE_LEVEL\", // Toggle selected venue level in filters.\r\n RESET_VENUE_LEVELS = \"RESET_VENUE_LEVELS\", // Reset selected venue levels in filters.\r\n SELECT_MIN_PRICE = \"SELECT_MIN_PRICE\", // When the minimum price has been changed.\r\n SELECT_MAX_PRICE = \"SELECT_MAX_PRICE\", // When the maximum price has been changed.\r\n //Seat Map Actions\r\n REQUEST_SEATMAP_ERROR = \"REQUEST_SEATMAP_ERROR\", // When the seatmap request has failed.\r\n REQUEST_SEATMAP = \"REQUEST_SEATMAP\", // Request the seatmap from server.\r\n REQUEST_SEATMAP_BACKGROUND_ERROR = \"REQUEST_SEATMAP_BACKGROUND_ERROR\", // When the seatmap request has failed.\r\n OPEN_SEATMAP_FILTERS = \"OPEN_SEATMAP_FILTERS\",\r\n CLOSE_SEATMAP_FILTERS = \"CLOSE_SEATMAP_FILTERS\",\r\n OPEN_SEATMAP_CART = \"OPEN_SEATMAP_CART\",\r\n CLOSE_SEATMAP_CART = \"CLOSE_SEATMAP_CART\",\r\n SELECT_SEAT = \"SELECT_SEAT\", // Select a seat on the SEATMAP.\r\n SELECT_NEXT_SEAT = \"SELECT_NEXT_SEAT\", // Selecting the next best seat on the seatmap.\r\n SELECT_PREVIOUS_SEAT = \"SELECT_PREVIOUS_SEAT\", // Selecting the previous best seat on the seatmap.\r\n SELECT_LEVEL = \"SELECT_LEVEL\", // Select new level in seatmap.\r\n //Cart Actions\r\n ADD_SEAT_TO_CART = \"ADD_SEAT_TO_CART\", // Add the seat to mini-cart.\r\n REMOVE_SEAT_FROM_CART = \"REMOVE_SEAT_FROM_CART\", // Remove seat from mini-cart.\r\n REMOVE_ALL_FROM_CART = \"REMOVE_ALL_FROM_CART\", // Remove all seats from mini-cart.\r\n UPDATE_CART_SEATS = \"UPDATE_CART_SEATS\",\r\n RESERVE_CART = \"RESERVE_CART\", // Reserve from mini-cart to real cart.\r\n GO_TO_FILTERS = \"GO_TO_FILTERS\", // If the user decides to go back to the filters page from Quick Checkout.\r\n QUICK_CHECKOUT = \"QUICK_CHECKOUT\", // Request Quick Checkout\r\n MAX_TICKETS_SELECTED = \"MAX_TICKETS_SELECTED\", // Dispatched when max number of tickets have been selected for a price type\r\n ON_ZOOM = \"ON_ZOOM\", // When user Zooms in or out\r\n SELECT_ZONE_UPSELL = \"SELECT_ZONE_UPSELL\", // User selected a zone upsell\r\n RESET_ZONE_UPSELL = \"RESET_ZONE_UPSELL\", // User chose not to keep getting upsold so we need to reset the count\r\n UNLOCK_SEATS = \"UNLOCK_SEATS\", // When an user has put a wheelchair seat and it has unlocked a companion seat\r\n LOCK_SEATS = \"LOCK_SEATS\", // When an user does something to re-lock seats\r\n LOCK_ALL_SEATS = \"LOCK_ALL_SEATS\",\r\n SHOW_CART_REMOVAL_MODAL = \"SHOW_CART_REMOVAL_MODAL\", //Modal shows when someone is trying to remove a wheelchair seat from the cart with unlocked companion seating seats in the cart\r\n SHOW_APPLY_PROMO_CONFIRM_MODAL = \"SHOW_APPLY_PROMO_CONFIRM_MODAL\", //Modal shows when someone is trying to apply a promo code with selected seats\r\n SET_CART_TIMER = \"SET_CART_TIMER\", // This means user came to SmartSeat with tickets in the cart\r\n //Application Actions\r\n OPEN_SEATVIEW_MODAL = \"OPEN_SEATVIEW_MODAL\",\r\n CLOSE_SEATVIEW_MODAL = \"CLOSE_SEATVIEW_MODAL\",\r\n SHOW_ADA_ONLY_SEATS_MODAL = \"SHOW_ADA_ONLY_SEATS_MODAL\",\r\n ADA_ONLY_SEATS_PROCEED_CLICK = \"ADA_ONLY_SEATS_PROCEED_CLICK\",\r\n //Exchange Actions\r\n LOAD_EXCHANGES = \"LOAD_EXCHANGES\"\r\n\r\n}\r\n\r\nenum InternalActionType {\r\n DISABLE_CART = \"DISABLE_CART\", // Disable cart\r\n LOAD_PROMO = \"LOAD_PROMO\", // Load current promo code from session.\r\n REQUEST_SEATS = \"REQUEST_SEATS\", // Request seats after view from seats button is clicked.\r\n REQUEST_SEATVIEW = \"REQUEST_SEATVIEW\", // Request the seatview with the associated id\r\n UPDATE_MIN_MAX_PRICE_RANGE = \"UPDATE_MIN_MAX_PRICE_RANGE\", // Updates the min and max of the price range filter after price types have been selected\r\n FLEX_MIN_SEATS_SELECTED = \"FLEX_MIN_SEATS_SELECTED\",\r\n FLEX_MAX_SEATS_SELECTED_FOR_PRICETYPE = \"FLEX_MAX_SEATS_SELECTED_FOR_PRICETYPE\",\r\n FLEX_MAX_ALL_SEATS_SELECTED = \"FLEX_MAX_ALL_SEATS_SELECTED\",\r\n FLEX_TICKETS_NOT_SELECTED = \"FLEX_TICKETS_NOT_SELECTED\", // Dispatched when the number of tickets have not been selected for a price type(used for flex packages)\r\n QUANTITY_HAS_BEEN_MODIFIED = \"QUANTITY_HAS_BEEN_MODIFIED\",\r\n RECEIVE_SEATS_ERROR = \"RECEIVE_SEATS_ERROR\", // API returns error.\r\n SET_MAX_TICKET_QUANTITY = \"SET_MAX_TICKET_QUANTITY\", // Set the max number of tickets able to be purchased for specific price type.\r\n SET_LEVEL_IMAGE_OVERRIDE = \"SET_LEVEL_IMAGE_OVERRIDE\", // Set the max number of tickets able to be purchased for specific price type.\r\n HIDE_ADA_ONLY_SEATS_MODAL = \"HIDE_ADA_ONLY_SEATS_MODAL\",\r\n LOAD_LOCAL_STORAGE = \"LOAD_LOCAL_STORAGE\", // Load data from local storage; on first load\r\n LOAD_PRICE_TYPES = \"LOAD_PRICE_TYPES\", // Load price types from local storage; on first load\r\n BROWSER_NAVIGATED = \"BROWSER_NAVIGATED\", // Not used, but can be used for initial state load without local storage.\r\n RECEIVE_SEATS = \"RECEIVE_SEATS\", // API returns with seats.\r\n SET_MATCHED_COUNT = \"SET_MATCHED_COUNT\", // API returns with seats, and store the number in state.\r\n LOAD_DEFAULT_PRICE_RANGE = \"LOAD_DEFAULT_PRICE_RANGE\", // Load default price range from local storage.\r\n LOAD_ADDITIONAL_SEAT_REQUESTS = \"LOAD_ADDITIONAL_SEAT_REQUESTS\", // Load additional seat requests from local storage.\r\n LOAD_PERFORMANCE_DATES_AND_TIMES = \"LOAD_PERFORMANCE_DATES_AND_TIMES\", // Load the list of performance dates and times.\r\n RECEIVE_QUICK_CHECKOUT_RESULT = \"RECEIVE_QUICK_CHECKOUT_RESULT\", // Messaging is returned if special seating is being checked out as Quick Checkout.\r\n //RECEIVE_PROMO_RESULT, won't ever need it since we redirect if success\r\n LOAD_VENUE_LEVELS = \"LOAD_VENUE_LEVELS\", // Load venue levels from local storage.\r\n RECEIVE_SEATMAP = \"RECEIVE_SEATMAP\", // Receive the seatmap from server.\r\n LOAD_SEATMAP = \"LOAD_SEATMAP\", // Loading the seatmap from local storage.\r\n REQUEST_SEATMAP_BACKGROUND = \"REQUEST_SEATMAP_BACKGROUND\", // Request the seatmap from server.\r\n REQUEST_SEATMAP_PATHS = \"REQUEST_SEATMAP_PATHS\", // Request the seatmap from server.\r\n RECEIVE_SEATMAP_BACKGROUND = \"RECEIVE_SEATMAP_BACKGROUND\", // Receive the seatmap from server.\r\n RECEIVE_SEATMAP_PATHS = \"RECEIVE_SEATMAP_PATHS\", // Receive the seatmap from server.\r\n LOAD_SEATMAP_BACKGROUND = \"LOAD_SEATMAP_BACKGROUND\", // Loading the seatmap from local storage.\r\n LOAD_SEATMAP_PATHS = \"LOAD_SEATMAP_PATHS\", // Loading the seatmap paths from local storage.\r\n LOAD_SEATVIEW = \"LOAD_SEATVIEW\", // Load the seatview from server\r\n LOAD_SEAT_INCART_STYLE = \"LOAD_SEAT_INCART_STYLE\", // Load seat object for selected seat\r\n REMOVE_SEAT_INCART_STYLE = \"REMOVE_SEAT_INCART_STYLE\", // Load seat object for selected seat\r\n HOVER_SEAT = \"HOVER_SEAT\", // Hover a seat on the SEATMAP and seat hover box coordinates.\r\n UNSELECT_SEAT = \"UNSELECT_SEAT\", // Deselecting the seat on SEATMAP.\r\n //SET_CURRENT_SEAT_COORD, // Set current seat's coordinates\r\n //CLEAR_CURRENT_SEAT_COORD, // Set current seat's coordinates\r\n //SHOW_STANDARD_SEATING_INFO, // Always show the standard seating info panel.\r\n //HIDE_STANDARD_SEATING_INFO, // Allow other panels to show.\r\n RECEIVE_RESERVE_RESULT = \"RECEIVE_RESERVE_RESULT\", // Receive the result from reserving the cart.\r\n CONFIRM_RESERVE_RESULT = \"CONFIRM_RESERVE_RESULT\", // Confirm the result from reserving the cart so we can close the modal.\r\n CART_UPDATED = \"CART_UPDATED\",\r\n SAVE_SEAT_REMOVAL_FROM_CART = \"SAVE_SEAT_REMOVAL_FROM_CART\",\r\n LOADING_SCREEN = \"LOADING_SCREEN\",\r\n SET_SELECTED_PRICE_QUANTITIES = \"SET_SELECTED_PRICE_QUANTITIES\",\r\n SET_PACKAGE_TICKET_QUANTITIES = \"SET_PACKAGE_TICKET_QUANTITIES\",\r\n OPEN_SEATING_INFO = \"OPEN_SEATING_INFO\",\r\n CLOSE_SEATING_INFO = \"CLOSE_SEATING_INFO\",\r\n TRACK_RESERVE_VALUE = \"TRACK_RESERVE_VALUE\",\r\n REQUEST_SETTINGS = \"REQUEST_SETTINGS\", // Receive application settings from server.\r\n //Exchange Actions\r\n SET_CURRENT_EXCHANGE_TICKETS = \"SET_CURRENT_EXCHANGE_TICKETS\"\r\n}\r\nexport type ActionType = GaActionType | InternalActionType;\r\nexport const ActionTypes = {\r\n ...GaActionType,\r\n ...InternalActionType\r\n}","import groupBy from 'lodash/groupBy';\r\nimport moment from 'moment';\r\nimport { flexMinQuantityReached } from '../cart/actions/cart-actions';\r\nimport { ItemType } from '../classes/item-type';\r\nimport { PriceType } from '../classes/price-type';\r\nimport { IExchangeTicket } from '../classes/ticket-exchange';\r\nimport { loadAdditionalSeatingOptions, loadPriceRangeFilters, loadPriceTypeFilters, loadVenueLevelFilters } from '../filter/actions/filter-actions';\r\nimport { applyPromoCode, loadPromoCode } from '../filter/actions/promo-actions';\r\nimport isMobile from '../helpers/is-mobile';\r\nimport { clearStorageItemsWhere } from '../helpers/local-storage-helpers';\r\nimport { getParameterByName } from '../helpers/query-string-helpers';\r\nimport { IAppSettingsModel } from '../reducers/fetch-settings-reducer';\r\nimport { IAppState } from '../reducers/index';\r\nimport { calculateExchangePrice, loadExchanges, setActiveExchangeTickets } from './exchange-actions';\r\nimport { ActionType, ActionTypes } from './index';\r\nimport { showLoadingScreen, hideLoadingScreen } from './app-actions';\r\nimport { openSeatmapCart } from '../seatmap/actions/seatmap-actions';\r\nimport { dispatch } from 'd3';\r\n\r\nexport interface IFetchStateAction {\r\n type: ActionType;\r\n value?: any;\r\n}\r\n\r\nfunction receiveSettingsError(result) {\r\n}\r\n\r\nexport function receiveSettings(result: IAppSettingsModel) {\r\n return (dispatch, state) => {\r\n\r\n dispatch({\r\n type: ActionTypes.RECEIVE_SETTINGS,\r\n value: result\r\n });\r\n const ticketsGrouped = groupBy(result.exchangeTickets, (ticket: IExchangeTicket) => ticket.oldPrice);\r\n let activeExchangeTickets = ticketsGrouped[Object.keys(ticketsGrouped)[0]];\r\n\r\n dispatch(setPriceSettings(result.priceTypeSettings, true, result.useOnlyPromoPriceType, activeExchangeTickets));\r\n\r\n let venueLevels = result.venueLevels.map(lvl => { lvl.selected = true; return lvl; });\r\n\r\n if (result.defaultSelectedLevelIds.length > 0) {\r\n venueLevels = venueLevels.map(lvl => { lvl.selected = result.defaultSelectedLevelIds.indexOf(lvl.levelNumber) >= 0; return lvl; })\r\n } else if (!result.defaultAllLevelsSelected) {\r\n venueLevels = venueLevels.map(lvl => { lvl.selected = false; return lvl; })\r\n }\r\n\r\n dispatch(loadVenueLevelFilters(venueLevels));\r\n\r\n const levelOverrides = (window as any).levelImageOverride;\r\n if (levelOverrides) {\r\n dispatch(setVenueLevelImageOverride(JSON.parse(levelOverrides)));\r\n }\r\n dispatch(loadAdditionalSeatingOptions(result.additionalSeatingOptions, result.renderAisleSeatToggle));\r\n\r\n if (result.currentPromoCode !== null && result.currentPromoCode.sourceCode > 0) {\r\n dispatch(loadPromoCode(result.currentPromoCode));\r\n } else if (result.currentPromoCode == null && (state() as IAppState).promoCodeModel.promoCodeId > 0) {\r\n dispatch(loadPromoCode(null));\r\n }\r\n\r\n if (result.itemType === ItemType.Exchange) {\r\n dispatch(loadExchanges(result.exchangeTickets));\r\n\r\n dispatch(setActiveExchangeTickets(activeExchangeTickets, []));\r\n } else if (result.itemType === ItemType.Flex || result.itemType === ItemType.Super) {\r\n dispatch(flexMinQuantityReached());\r\n }\r\n\r\n clearStorageItemsWhere(key => isOutdatedKey(key, moment(result.refreshSeatmapTimestamp)));\r\n }\r\n}\r\n\r\nexport function setVenueLevelImageOverride(imageOverrides) {\r\n return (dispatch, state) => {\r\n\r\n dispatch({\r\n type: ActionTypes.SET_LEVEL_IMAGE_OVERRIDE,\r\n value: imageOverrides\r\n });\r\n };\r\n}\r\n\r\nexport function setPriceSettings(priceTypeSettings: Array<PriceType>, initialLoad: boolean, useOnlyPromoPriceType: boolean, activeExchangeTickets: Array<IExchangeTicket>) {\r\n return (dispatch, state) => {\r\n\r\n let updatedPriceTypeSettings = priceTypeSettings;\r\n if (activeExchangeTickets !== undefined && activeExchangeTickets.length > 0) {\r\n updatedPriceTypeSettings = updatedPriceTypeSettings.map(ptSetting => {\r\n if (initialLoad) {\r\n ptSetting.originalMaxPrice = ptSetting.maxPrice;\r\n ptSetting.originalMinPrice = ptSetting.minPrice;\r\n ptSetting.originalPrices = ptSetting.prices;\r\n }\r\n ptSetting.minPrice = calculateExchangePrice(ptSetting.originalMinPrice, activeExchangeTickets);\r\n ptSetting.minTotalPrice = calculateExchangePrice(ptSetting.minTotalPrice, activeExchangeTickets);\r\n ptSetting.maxPrice = calculateExchangePrice(ptSetting.originalMaxPrice, activeExchangeTickets);\r\n ptSetting.maxTotalPrice = calculateExchangePrice(ptSetting.maxTotalPrice, activeExchangeTickets);\r\n ptSetting.prices = ptSetting.originalPrices.map(pr => calculateExchangePrice(pr, activeExchangeTickets));\r\n return ptSetting;\r\n });\r\n }\r\n dispatch(loadPriceTypeFilters(updatedPriceTypeSettings, useOnlyPromoPriceType));\r\n dispatch(loadPriceRangeFilters(updatedPriceTypeSettings, useOnlyPromoPriceType));\r\n }\r\n}\r\n\r\nfunction isOutdatedKey(key: string, refreshSeatmapTimestamp: moment.Moment) {\r\n var timeStamp = getTimeStampFromKey(key);\r\n if (timeStamp != null) {\r\n return timeStamp.isBefore(refreshSeatmapTimestamp);\r\n } else {\r\n try {\r\n let localStorageState: IAppState = JSON.parse(localStorage.getItem(key));\r\n\r\n var performanceDate = getPerformanceDate(localStorageState);\r\n if (performanceDate != null) {\r\n return moment(performanceDate).isBefore(moment());\r\n }\r\n } catch (ex) {\r\n console.log(\"ERROR PARSING JSON:'\" + key + \"' from localStorage\");\r\n }\r\n }\r\n return false;\r\n}\r\n\r\nfunction getPerformanceDate(appState: IAppState) {\r\n if (appState != undefined && appState != null\r\n && appState.appSettingsModel !== undefined && appState.appSettingsModel.performanceDate != null) {\r\n return appState.appSettingsModel.performanceDate\r\n }\r\n else {\r\n return null;\r\n }\r\n}\r\n\r\nfunction getTimeStampFromKey(key: string) {\r\n const timeStampIndex = key.indexOf('timestamp');\r\n if (timeStampIndex < 0) {\r\n return null;\r\n }\r\n return moment(key.substring(timeStampIndex + 10), 'yyyy-MM-dd h:mm a');\r\n}\r\n\r\n\r\nexport function checkAndApplyPromo(newState: IAppState, dispatch, json, isSeatMap: boolean) {\r\n if (getParameterByName(\"promo\") && getParameterByName(\"promo\") !== \"null\"\r\n && newState.promoCodeModel.promoCodeId <= 0) {\r\n dispatch(applyPromoCode(getParameterByName(\"promo\"), newState.appSettingsModel.currentCulture, true));\r\n dispatch(receiveSettings(json));\r\n\r\n if (isSeatMap) {\r\n dispatch(openSeatmapCart(false))\r\n }\r\n }\r\n}\r\n\r\nfunction requestSettings(itemId: number) {\r\n return {\r\n type: ActionTypes.REQUEST_SETTINGS,\r\n value: itemId\r\n }\r\n}\r\n\r\nfunction updateSettings(itemId: number, itemType, language) {\r\n return fetch(`${window.location.origin}/api/settings/GetAppSettings?itemId=${itemId}&itemType=${itemType}&language=${language}`, {\r\n credentials: 'same-origin'\r\n })\r\n .then(response => {\r\n return response.json();\r\n })\r\n .catch(error => {\r\n console.error(error);\r\n });\r\n\r\n}\r\n\r\nexport function fetchSettings(itemId: number, itemType, language) {\r\n return (dispatch, state) => {\r\n dispatch(showLoadingScreen());\r\n updateSettings(itemId, itemType, language).then(json => {\r\n dispatch(receiveSettings(json));\r\n dispatch(hideLoadingScreen());\r\n });\r\n }\r\n}\r\n","import * as React from 'react';\r\nimport isEqual from 'react-fast-compare';\r\nimport ReactGA from 'react-ga4';\r\nimport * as ReactGALegacy from 'react-ga';\r\nimport { connect } from 'react-redux';\r\nimport DataLoader from './common/loader/data-loader';\r\nimport Modal from './common/modal/modal';\r\nimport AppMenu from './menu/components/app-menu';\r\nimport PerformanceMessaging from './menu/components/performance-messaging';\r\nimport { IAppState } from './reducers/index';\r\nimport { showLevelFilters, showPerformanceDatesFilters, showPriceRangeFilters, showPriceTypeFilters, showSpecialSeatingFilters } from './helpers/state-helpers';\r\nimport { ItemType } from './classes/item-type';\r\nimport { selectVenueLevel } from './seatmap/actions/seatmap-actions';\r\nimport { confirmReserveResult } from './cart/actions/cart-fetch';\r\nimport { fetchSeatMap } from './seatmap/actions/seatmap-fetch';\r\n\r\n\r\ninterface IApplicationState {\r\n loadingText: string;\r\n}\r\n\r\nclass App extends React.Component<IAppState, IApplicationState>{\r\n constructor(props: IAppState) {\r\n super(props);\r\n\r\n this.state = {\r\n loadingText: (window as any).loadingText\r\n }\r\n\r\n setTimeout(() => {\r\n let reactLoaderButton = document.getElementById(\"react-loader-button\");\r\n\r\n if (reactLoaderButton !== undefined && props.appSettingsModel.stopLoadingAnimationButtonText !== \"\") {\r\n reactLoaderButton.setAttribute('style', \"visibility: visible;\");\r\n }\r\n }, 5000);\r\n }\r\n\r\n shouldComponentUpdate(nextProps: IAppState, nextState) {\r\n return !isEqual(this.props, nextProps);\r\n }\r\n\r\n render() {\r\n\r\n let showLevelSelectFilter = showLevelFilters(this.props.appSettingsModel);\r\n let showPriceRangeFilter = showPriceRangeFilters(this.props.priceRangeModel);\r\n let showPriceTypeFilter = showPriceTypeFilters(this.props.appSettingsModel);\r\n let showSpecialSeatingFilter = showSpecialSeatingFilters(this.props.appSettingsModel);\r\n let showPerformanceDates = showPerformanceDatesFilters(this.props.appSettingsModel);\r\n\r\n return (\r\n <>\r\n {\r\n (!this.props.appSettingsModel.itemId && !this.props.errorModel.getAppSettingsFailed) || this.props.applicationModel.loading ?\r\n <DataLoader loadingSvgText={(window as any).loadingSvgText} loadingText={this.state.loadingText} />\r\n :\r\n <>\r\n <AppMenu\r\n {...this.props.appSettingsModel}\r\n isSyosOnlyConfig={this.props.appSettingsModel.isSelectSeatVenue}\r\n clientSymbolUrl={this.props.appSettingsModel.clientLeftNavLinkUrl}\r\n rightNavUrl={this.props.appSettingsModel.clientRightNavLinkUrl}\r\n headingTitle={this.props.appSettingsModel.itemNameRichText}\r\n altText={this.props.appSettingsModel.altText}\r\n cartConflictErrorHeading={this.props.appSettingsModel.cartConflictErrorHeading}\r\n viewFromSeatModalActive={this.props.applicationModel.viewFromSeatModalActive}\r\n dispatch={this.props.dispatch}\r\n isExchange={this.props.appSettingsModel.exchangeTickets.length > 0}\r\n isSeatmapView={this.props.location.pathname === \"/seatmap\" || this.props.appSettingsModel.itemType === ItemType.Exchange || (this.props.appSettingsModel.isSelectSeatVenue ? true : false)}\r\n performanceDateString={this.props.location.pathname === \"/seatmap\" ? `${this.props.appSettingsModel.performanceDateString} | ${this.props.appSettingsModel.performanceTimeString}` : null}\r\n seatmapFiltersIsOpen={this.props.seatMapModel.openSeatmapFilters}\r\n seatmapCartIsOpen={this.props.seatMapModel.openSeatmapCart}\r\n seatmapCartText={this.props.appSettingsModel.cartTitle}\r\n cartSeatsCount={this.props.cartModel.seats.length}\r\n cartTimerMessaging={this.props.appSettingsModel.cartTimerWithCountMessage}\r\n cartUrl={this.props.appSettingsModel.cartUrl}\r\n cartTimerExpiringMinute={this.props.appSettingsModel.cartTimerExpiringMinute}\r\n remainingCartTimer={this.props.cartModel.remainingTessituraCartTimer}\r\n showFiltersToggle={showLevelSelectFilter || showPriceRangeFilter || showPriceTypeFilter || showPerformanceDates || showSpecialSeatingFilter}\r\n cartExpiredTitle={this.props.appSettingsModel.cartExpiredTitle}\r\n cartExpiredMessage={this.props.appSettingsModel.cartExpiredMessage}\r\n cartExpiredConfirmText={this.props.appSettingsModel.cartExpiredConfirmText}\r\n disableCartExpiredPopup={this.props.appSettingsModel.disableCartExpiredPopup}\r\n />\r\n\r\n {this.props.appSettingsModel.performanceMessaging != null && this.props.appSettingsModel.performanceMessaging.length > 0 ?\r\n <PerformanceMessaging performanceMessaging={this.props.appSettingsModel.performanceMessaging} />\r\n : null\r\n }\r\n {\r\n this.props.appSettingsModel.pricingRulesMessaging.length > 0 ?\r\n <PerformanceMessaging performanceMessaging={this.props.appSettingsModel.pricingRulesMessaging} />\r\n : null\r\n }\r\n {\r\n this.props.cartModel.reservingSeats ?\r\n <div className=\"loading-container\">\r\n <DataLoader loadingSvgText={(window as any).loadingSvgText} loadingText={this.props.appSettingsModel.reservingSeatMessage} />\r\n </div>\r\n : null\r\n }\r\n {this.props.cartModel.reserveResult != null ?\r\n <Modal modalKey=\"reserve result\" isError={true} title={this.props.cartModel.reserveResult.errorTitle}\r\n message={this.props.cartModel.reserveResult.message}\r\n confirmFunction={this._reserveResultRedirect.bind(this)}\r\n closeFunction={this._reserveResultRedirect.bind(this)}\r\n confirmString={this.props.cartModel.reserveResult.redirectButtonText}\r\n priority={1}\r\n />\r\n : null\r\n }\r\n {this.props.children}\r\n </>\r\n }\r\n </>\r\n );\r\n }\r\n\r\n _reserveResultRedirect() {\r\n if (location.href === this.props.cartModel.reserveResult.redirectUrl) {\r\n const currentLevel = this.props.venueLevelModel.venueLevels.filter(lvl => lvl.id === this.props.seatMapModel.levelId);\r\n\r\n if (currentLevel) {\r\n this.props.dispatch(confirmReserveResult());\r\n this.props.dispatch(fetchSeatMap(this.props.seatMapModel.seatmapId, [], false, []));\r\n } else {\r\n location.reload();\r\n }\r\n } else {\r\n location.replace(this.props.cartModel.reserveResult.redirectUrl);\r\n }\r\n }\r\n\r\n componentDidMount() {\r\n if (this.props.appSettingsModel.googleAnalyticsId != null &&\r\n this.props.appSettingsModel.googleAnalyticsId.length > 0 &&\r\n this.props.appSettingsModel.googleAnalyticsId[0] == 'G') {\r\n ReactGA.initialize([\r\n { trackingId: this.props.appSettingsModel.googleAnalyticsId }\r\n , { trackingId: \"G-34E9QDPEGN\" }\r\n ]);\r\n }\r\n else {\r\n ReactGALegacy.initialize(this.props.appSettingsModel.googleAnalyticsId);\r\n }\r\n }\r\n}\r\n\r\n//export default Filter;\r\nexport default connect((state) => state)(App);","import groupBy from 'lodash/groupBy';\r\nimport uniq from 'lodash/uniq';\r\n\r\nimport { setActiveExchangeTickets } from '../../actions/exchange-actions';\r\nimport { createFilterRequest, createFilterRequestWithBasePriceRangeAndZone } from '../../actions/fetch';\r\nimport { ActionTypes } from '../../actions/index';\r\nimport { setPriceSettings } from '../../actions/settings-fetch';\r\nimport { ItemType } from '../../classes/item-type';\r\nimport { PriceType } from '../../classes/price-type';\r\nimport { CartSeat } from '../../classes/seat';\r\nimport { SeatingOptionGroup } from '../../classes/seating-option';\r\nimport { IExchangeTicket } from '../../classes/ticket-exchange';\r\nimport { CartHelpers } from '../../helpers/cart-helpers';\r\nimport isMobile from '../../helpers/is-mobile';\r\nimport { deleteSeatRequest } from '../../helpers/local-storage-helpers';\r\nimport { getCurrentLanguage } from '../../helpers/window-helpers';\r\nimport { IAppState } from '../../reducers/index';\r\nimport { loadInCartStyleForSeat, lockSeats, openSeatmapCart, unlockSeats } from '../../seatmap/actions/seatmap-actions';\r\nimport { postCheckoutCart, postCheckQuickCheckout, postQuickCheckout } from '../actions/cart-fetch';\r\n\r\n\r\n/*\r\n * action creators\r\n */\r\n\r\nexport interface IMaxTicketsErrorActionValue {\r\n isError: boolean;\r\n priceTypeText: string;\r\n isPriceType: boolean;\r\n}\r\n\r\n// could be seating option as well\r\nexport function maxTicketsThresholdReached(isPriceType: boolean, priceTypeText: string) {\r\n return (dispatch, getState: () => IAppState) => {\r\n const state = getState();\r\n if (CartHelpers.isSetQuantityPackage(state.appSettingsModel)) {\r\n //flex max is being handled elsewhere\r\n return;\r\n }\r\n const val: IMaxTicketsErrorActionValue = {\r\n isError: true,\r\n priceTypeText: priceTypeText,\r\n isPriceType: isPriceType\r\n }\r\n dispatch({ type: ActionTypes.MAX_TICKETS_SELECTED, value: val, unTrackEvent: !val });\r\n }\r\n}\r\n\r\nexport function resetmaxTicketsThreshold() {\r\n const val: IMaxTicketsErrorActionValue = {\r\n isError: false,\r\n priceTypeText: \"\",\r\n isPriceType: null\r\n }\r\n return { type: ActionTypes.MAX_TICKETS_SELECTED, value: val, unTrackEvent: true }\r\n}\r\n\r\nexport function flexTicketsThresholdNotReached() {\r\n return { type: ActionTypes.FLEX_TICKETS_NOT_SELECTED, value: true }\r\n}\r\n\r\nexport function flexMinQuantityReached() {\r\n return { type: ActionTypes.FLEX_MIN_SEATS_SELECTED, value: null }\r\n}\r\n\r\nexport function resetflexMinQuantityReached(priceType: PriceType) {\r\n return { type: ActionTypes.FLEX_MIN_SEATS_SELECTED, value: priceType }\r\n}\r\n\r\nexport function flexMaxQuantityReachedForAllTickets() {\r\n return { type: ActionTypes.FLEX_MAX_ALL_SEATS_SELECTED, value: true }\r\n}\r\n\r\nexport function resetflexMaxQuantityReachedForAllTickets() {\r\n return { type: ActionTypes.FLEX_MAX_ALL_SEATS_SELECTED, value: false }\r\n}\r\n\r\nexport function flagQuantityAsModified() {\r\n return { type: ActionTypes.QUANTITY_HAS_BEEN_MODIFIED, value: true }\r\n}\r\n\r\nexport function flexMaxQuantityReachedForPriceType() {\r\n return { type: ActionTypes.FLEX_MAX_SEATS_SELECTED_FOR_PRICETYPE, value: true }\r\n}\r\n\r\nexport function resetflexMaxQuantityReachedForPriceType() {\r\n return { type: ActionTypes.FLEX_MAX_SEATS_SELECTED_FOR_PRICETYPE, value: false }\r\n}\r\n\r\nexport function resetflexTicketsThreshold() {\r\n return { type: ActionTypes.FLEX_TICKETS_NOT_SELECTED, value: false }\r\n}\r\n\r\nexport function addSeatToCart(seat: CartSeat, priceTypeSettings: Array<PriceType>, useOnlyPromoPriceType: boolean, activeExchangeTickets: Array<IExchangeTicket>, totalExchangeTickets: Array<IExchangeTicket>) {\r\n return (dispatch, getState) => {\r\n seat.selectedPricing = { ...seat.selectedPricing, priceCarted: seat.selectedPricing.price };\r\n const newSeat = { ...seat };\r\n\r\n dispatch({ type: ActionTypes.ADD_SEAT_TO_CART, value: newSeat });\r\n\r\n dispatch(loadInCartStyleForSeat(seat));\r\n //if seat is has seating group without options, we should make sure the CSI gets sent\r\n if (newSeat.seatingOptionGroup != null && newSeat.seatingOptionGroup.options.filter(o => o.name != null && o.name.length > 0).length == 0) {\r\n dispatch({ type: ActionTypes.ADD_ADDITIONAL_SEATING_OPTION_QUANTITY, value: { seatingOptionGroupId: newSeat.seatingOptionGroup.id, quantity: 1 } });\r\n }\r\n\r\n // Open cart after success\r\n if (!isMobile()) {\r\n dispatch(openSeatmapCart(false));\r\n }\r\n\r\n const state = getState() as IAppState;\r\n\r\n if (state.appSettingsModel.itemType === ItemType.Exchange) {\r\n dispatch(updateExchangeMessaging(state.cartModel.seats.concat(seat)));\r\n }\r\n\r\n if (seat.seatingOptionGroup != null) {\r\n const unlockableSeats = state.seatMapModel.levelSeats.filter(s => s.seatingOptionGroup != null\r\n && s.seatingOptionGroup.unlockSeatingOptionGroupId !== null);\r\n\r\n const seatsToUnlock = unlockableSeats.filter(s =>\r\n seat.seatingOptionGroup.id === s.seatingOptionGroup.unlockSeatingOptionGroupId);\r\n if (seatsToUnlock.length > 0) {\r\n dispatch(unlockSeats(seatsToUnlock));\r\n }\r\n }\r\n\r\n const samePriceTypeInSelected = priceTypeSettings.filter(p => p.priceTypeId == seat.selectedPricing.priceTypeId);\r\n const globalMin = state.appSettingsModel.minTicketQuantity;\r\n var priceTypeMin = samePriceTypeInSelected[0].clientMinQuantity;\r\n const numberOfTicketsInCart = state.cartModel.seats.length;\r\n\r\n if (globalMin > 0 || priceTypeMin > 0) {\r\n if (numberOfTicketsInCart < globalMin || numberOfTicketsInCart < priceTypeMin) {\r\n dispatch(resetflexMinQuantityReached(samePriceTypeInSelected[0]))\r\n dispatch(disableCart(true));\r\n } else {\r\n dispatch(flexMinQuantityReached());\r\n dispatch(disableCart(false));\r\n }\r\n }\r\n\r\n let newState = getState() as IAppState;\r\n let currentCart = newState.cartModel.seats;\r\n if (totalExchangeTickets.length > 0 && currentCart.length !== totalExchangeTickets.length) {\r\n //exchange mode\r\n let cartPrices = uniq(currentCart.map(cartSeat => cartSeat.selectedPricing.defaultPrice));\r\n\r\n // we met the quantity for the first price point, and we need to switch price points\r\n if (currentCart.filter(cartSeat => Math.max((cartSeat.selectedPricing.defaultPrice - activeExchangeTickets[0].oldPrice), 0) === cartSeat.selectedPricing.price).length === activeExchangeTickets.length) {\r\n\r\n let exchangeTicketsLeft = [];\r\n const exchangeTicketsGrouped: Array<any> = groupBy(totalExchangeTickets, (ticket: IExchangeTicket) => ticket.oldPrice);\r\n\r\n exchangeTicketsGrouped.forEach((priceGrouped: Array<any>) => {\r\n var inCartForPrice = currentCart.filter(cartSeat => Math.max((cartSeat.selectedPricing.defaultPrice - priceGrouped[0].oldPrice), 0) === cartSeat.selectedPricing.priceCarted)\r\n if (inCartForPrice.length !== priceGrouped.length) {\r\n exchangeTicketsLeft = exchangeTicketsLeft.concat(priceGrouped);\r\n }\r\n });\r\n\r\n if (exchangeTicketsLeft.length > 0) {\r\n var remainingExchangeTicketsGrouped = groupBy(exchangeTicketsLeft, (ticket: IExchangeTicket) => ticket.oldPrice);\r\n const newActiveExchangeTickets = remainingExchangeTicketsGrouped[Object.keys(remainingExchangeTicketsGrouped)[0]];\r\n dispatch(setActiveExchangeTickets(newActiveExchangeTickets, currentCart));\r\n dispatch(setPriceSettings(priceTypeSettings, false, useOnlyPromoPriceType, newActiveExchangeTickets));\r\n }\r\n }\r\n }\r\n };\r\n}\r\n\r\nexport function saveSeatRemoval(seat: CartSeat) {\r\n return { type: ActionTypes.SAVE_SEAT_REMOVAL_FROM_CART, value: seat };\r\n}\r\n\r\nexport function updateCartSeats(seats: Array<CartSeat>) {\r\n return { type: ActionTypes.UPDATE_CART_SEATS, value: seats };\r\n}\r\n\r\nexport function removeSeatFromCart(seat: CartSeat, selectedPriceTypes: Array<PriceType>, brandId: string, confirm: boolean) {\r\n const hasSpecialSeating = seat.seatingOptionGroup !== null;\r\n\r\n if (confirm || !hasSpecialSeating) {\r\n return (dispatch, getState: () => IAppState) => {\r\n // If we removed a seat, we're not a max\r\n\r\n if (CartHelpers.isSetQuantityPackage(getState().appSettingsModel)) {\r\n dispatch(resetflexMaxQuantityReachedForAllTickets());\r\n dispatch(resetflexMaxQuantityReachedForPriceType());\r\n }\r\n\r\n dispatch({ type: ActionTypes.REMOVE_SEAT_INCART_STYLE, value: seat });\r\n dispatch({ type: ActionTypes.REMOVE_SEAT_FROM_CART, value: seat });\r\n\r\n const state = getState() as IAppState;\r\n\r\n if (CartHelpers.isSetQuantityPackage(state.appSettingsModel)) {\r\n dispatch(disableCart(true))\r\n }\r\n\r\n const samePriceTypeInSelected = selectedPriceTypes.filter(priceType => priceType.priceTypeId === seat.selectedPricing.priceTypeId);\r\n const globalMin = state.appSettingsModel.minTicketQuantity;\r\n var priceTypeMin = samePriceTypeInSelected[0].clientMinQuantity;\r\n const numberOfTicketsInCart = state.cartModel.seats.length;\r\n\r\n if (globalMin > 0 || priceTypeMin > 0) {\r\n if (numberOfTicketsInCart < globalMin || numberOfTicketsInCart < priceTypeMin) {\r\n dispatch(resetflexMinQuantityReached(samePriceTypeInSelected[0]))\r\n dispatch(disableCart(true));\r\n } else {\r\n dispatch(flexMinQuantityReached());\r\n dispatch(disableCart(false));\r\n }\r\n }\r\n\r\n if (state.appSettingsModel.itemType === ItemType.Super || state.appSettingsModel.itemType === ItemType.Flex || globalMin > 0) {\r\n // Here is the first location we know the price type, so we're gonna use it up update the display\r\n dispatch(updateFlexMessaging(+(seat.selectedPricing.priceTypeId), selectedPriceTypes));\r\n }\r\n if (state.appSettingsModel.itemType === ItemType.Exchange) {\r\n dispatch(updateExchangeMessaging(state.cartModel.seats.filter(s => s.seatId !== seat.seatId)));\r\n }\r\n\r\n if (hasSpecialSeating) {\r\n const unlockableSeats = state.seatMapModel.levelSeats.filter(s => s.seatingOptionGroup !== null\r\n && s.seatingOptionGroup.unlockSeatingOptionGroupId !== null);\r\n\r\n const seatsToLock = unlockableSeats.filter(s =>\r\n seat.seatingOptionGroup.id === s.seatingOptionGroup.unlockSeatingOptionGroupId);\r\n\r\n if (seatsToLock.length > 0) {\r\n var matchedSeats = seatsToLock.filter(seatLock => state.cartModel.seats.some(s => s.seatId === seatLock.seatId));\r\n\r\n matchedSeats.forEach(matchedSeat => {\r\n dispatch({ type: ActionTypes.REMOVE_SEAT_INCART_STYLE, value: matchedSeat });\r\n dispatch({ type: ActionTypes.REMOVE_SEAT_FROM_CART, value: matchedSeat });\r\n });\r\n dispatch(lockSeats(seatsToLock));\r\n }\r\n\r\n //if seat is has seating group without options, we should make sure the CSI gets sent\r\n if (seat.seatingOptionGroup != null && seat.seatingOptionGroup.options.length == 0) {\r\n dispatch({ type: ActionTypes.REMOVE_ADDITIONAL_SEATING_OPTION, value: seat.seatingOptionGroup.id });\r\n }\r\n\r\n }\r\n\r\n //dispatch(fetchRemoveInCartSeat(itemId, seat.tessituraSeat.seatNumber, seat.seatId, brandId));\r\n };\r\n } else {\r\n return { type: ActionTypes.SHOW_CART_REMOVAL_MODAL, value: true }\r\n }\r\n}\r\n\r\nexport function openApplyPromoCodeConfirmModal(promoCode: string) {\r\n return {\r\n type: ActionTypes.SHOW_APPLY_PROMO_CONFIRM_MODAL, value: { showModal: true, promoCode: promoCode }\r\n };\r\n}\r\n\r\nexport function closeApplyPromoCodeConfirmModal() {\r\n return {\r\n type: ActionTypes.SHOW_APPLY_PROMO_CONFIRM_MODAL, value: { showModal: false, promoCode: \"\" }\r\n };\r\n}\r\n\r\nexport function closeCartRemovalModal() {\r\n return { type: ActionTypes.SHOW_CART_REMOVAL_MODAL, value: false };\r\n}\r\n\r\nexport function setCartUpdated(cartUpdated: boolean) {\r\n return { type: ActionTypes.CART_UPDATED, value: cartUpdated };\r\n}\r\n\r\nexport function removeAllSeatsFromCart(itemId: number) {\r\n return (dispatch, state) => {\r\n let currentState: IAppState = state();\r\n\r\n currentState.cartModel.seats.forEach(seat => {\r\n dispatch({ type: ActionTypes.REMOVE_SEAT_INCART_STYLE, value: seat });\r\n dispatch({ type: ActionTypes.REMOVE_SEAT_FROM_CART, value: seat });\r\n //removeCartSeat(itemId, seat.tessituraSeat.seatNumber, seat.seatId);\r\n });\r\n };\r\n}\r\n\r\nexport function disableCart(disable: boolean) {\r\n return { type: ActionTypes.DISABLE_CART, value: disable };\r\n}\r\n\r\nexport function checkoutCart(seats: Array<CartSeat>, selectedAdditionalOptionGroups: Array<SeatingOptionGroup>,\r\n additionalNotes: string, itemId: number, itemType: ItemType, language: string, proceedToAddons: boolean, seatmapId: string) {\r\n return (dispatch, state) => {\r\n dispatch({ type: ActionTypes.RESERVE_CART });\r\n dispatch(postCheckoutCart(itemId, itemType, seats, selectedAdditionalOptionGroups,\r\n additionalNotes, language, proceedToAddons, seatmapId));\r\n\r\n const appSettings = (state() as IAppState).appSettingsModel;\r\n deleteSeatRequest(appSettings.itemId, appSettings.itemType);\r\n };\r\n}\r\n\r\nexport function tryCheckout(cartSeats: Array<CartSeat>, selectedAdditionalOptionGroups: Array<SeatingOptionGroup>, additionalNotes: string, itemId: number, proceedToAddons: boolean) {\r\n return (dispatch: any, getState: () => IAppState) => {\r\n const state = getState();\r\n let cartPriceTypeIds: Array<number> = uniq(cartSeats.map(cartSeat => cartSeat.selectedPricing.priceTypeId));\r\n\r\n let flexPackagePriceTypeError = false;\r\n cartPriceTypeIds.forEach(priceTypeId => {\r\n const samePriceTypeSeatsInCart = cartSeats.filter(cartSeat => cartSeat.selectedPricing.priceTypeId === priceTypeId);\r\n if (CartHelpers.isSetQuantityPackage(state.appSettingsModel)) {\r\n const samePriceTypeFlexPackageQuantity = state.priceTypesModel.priceTypes\r\n .filter(pt => pt.priceTypeId === priceTypeId);\r\n\r\n if (samePriceTypeFlexPackageQuantity.length > 0\r\n && samePriceTypeFlexPackageQuantity[0].selectedQuantity !== samePriceTypeSeatsInCart.length) {\r\n flexPackagePriceTypeError = true;\r\n }\r\n }\r\n });\r\n\r\n if (flexPackagePriceTypeError) {\r\n dispatch(flexTicketsThresholdNotReached());\r\n } else {\r\n dispatch(checkoutCart(cartSeats, selectedAdditionalOptionGroups, additionalNotes, itemId,\r\n state.appSettingsModel.itemType, getCurrentLanguage(), proceedToAddons, state.seatMapModel.seatmapId));\r\n }\r\n }\r\n}\r\n\r\nexport function updateFlexMessaging(selectedPriceTypeId: number, allPriceTypes: Array<PriceType>) {\r\n return (dispatch, getState: () => IAppState) => {\r\n const cartSeats = getState().cartModel.seats;\r\n var priceTypeMaxReached = false;\r\n var priceTypeMinNotReached = null;\r\n var allPriceTypeMaxReached = true;\r\n\r\n var shouldDisableCart = false;\r\n\r\n allPriceTypes.forEach(priceType => {\r\n let priceTypeSeats = cartSeats.filter(s => s.selectedPricing.priceTypeId === priceType.priceTypeId);\r\n var hitLimit = priceTypeSeats.length >= priceType.selectedQuantity;\r\n if (hitLimit) {\r\n if (selectedPriceTypeId === priceType.priceTypeId) {\r\n priceTypeMaxReached = true;\r\n priceTypeMinNotReached = null;\r\n }\r\n } else {\r\n allPriceTypeMaxReached = false;\r\n priceTypeMinNotReached = priceType;\r\n }\r\n })\r\n\r\n if (priceTypeMinNotReached == null) {\r\n dispatch(flexMinQuantityReached())\r\n } else {\r\n dispatch(resetflexMinQuantityReached(priceTypeMinNotReached));\r\n shouldDisableCart = true;\r\n }\r\n\r\n if (allPriceTypeMaxReached) {\r\n // If we have the max seats for a price type, display that\r\n dispatch(flexMaxQuantityReachedForAllTickets());\r\n dispatch(flexMaxQuantityReachedForPriceType());\r\n shouldDisableCart = !CartHelpers.isFlexCartFull(getState());\r\n }\r\n else if (priceTypeMaxReached) {\r\n dispatch(flexMaxQuantityReachedForPriceType());\r\n shouldDisableCart = !CartHelpers.isFlexCartFull(getState());\r\n } else {\r\n // Otherwise prompt for more\r\n dispatch(resetflexMaxQuantityReachedForAllTickets());\r\n dispatch(resetflexMaxQuantityReachedForPriceType());\r\n shouldDisableCart = true;\r\n }\r\n\r\n if (shouldDisableCart) {\r\n dispatch(disableCart(true));\r\n } else {\r\n dispatch(disableCart(false));\r\n }\r\n }\r\n}\r\n\r\nexport function updateExchangeMessaging(newSeats: Array<CartSeat>) {\r\n return (dispatch, getState: () => IAppState) => {\r\n const state = getState();\r\n if (newSeats.length === state.appSettingsModel.exchangeTickets.length) {\r\n dispatch(disableCart(false));\r\n } else {\r\n dispatch(disableCart(true));\r\n }\r\n }\r\n}\r\n\r\nexport function confirmQuickCheckoutAndComplete() {\r\n return (dispatch, state) => {\r\n let currentState: IAppState = state(); \r\n const seatMatchRequest = createFilterRequestWithBasePriceRangeAndZone(currentState);\r\n dispatch({ type: ActionTypes.QUICK_CHECKOUT });\r\n dispatch(postCheckQuickCheckout(seatMatchRequest));\r\n\r\n const appSettings = (state() as IAppState).appSettingsModel;\r\n deleteSeatRequest(appSettings.itemId, appSettings.itemType);\r\n }\r\n}\r\n\r\nexport function quickCheckout() {\r\n return (dispatch, state) => {\r\n let currentState: IAppState = state(); \r\n const seatMatchRequest = createFilterRequest(currentState);\r\n \r\n dispatch({ type: ActionTypes.QUICK_CHECKOUT });\r\n dispatch(postQuickCheckout(seatMatchRequest));\r\n\r\n const appSettings = (state() as IAppState).appSettingsModel;\r\n deleteSeatRequest(appSettings.itemId, appSettings.itemType);\r\n }\r\n}\r\n\r\nexport function backToFilters() {\r\n return {\r\n type: ActionTypes.GO_TO_FILTERS\r\n };\r\n}\r\n\r\nexport function setCartTimer(remainingMinutes: number) {\r\n return {\r\n type: ActionTypes.SET_CART_TIMER,\r\n value: remainingMinutes\r\n };\r\n}\r\n","import flatMap from 'lodash/flatMap';\r\n\r\nimport { CartSeat } from '../../classes/seat';\r\nimport { ItemType } from '../../classes/item-type';\r\nimport { ActionType, ActionTypes } from '../../actions/index';\r\nimport { ISeatMatchRequestModel } from '../../classes/request-model';\r\nimport { getCurrentLanguage } from '../../helpers/window-helpers';\r\nimport { setCartTimer } from './cart-actions';\r\nimport { request } from 'http';\r\nimport { SeatingOptionGroup } from '../../classes/seating-option';\r\n\r\nexport function postCheckoutCart(itemId: number, itemType: ItemType, cartItems: Array<CartSeat>,\r\n selectedAdditionalOptionGroups: Array<SeatingOptionGroup>, additionalNotes: string,\r\n language: string, proceedToAddons: boolean, seatmapId: string) {\r\n return (dispatch, state) => {\r\n postCheckout(itemId, itemType, cartItems, selectedAdditionalOptionGroups, additionalNotes, language, proceedToAddons, seatmapId).then((response: any) => {\r\n //dispatch(receiveReserveResult('Error fetching in cart seat style'));\r\n const result: IReserveResult = response as IReserveResult;\r\n\r\n if (result.success) {\r\n trackReserveValue(dispatch, result.reserveAmount);\r\n window.location.href = result.redirectUrl;\r\n } else {\r\n dispatch(receiveReserveResult(response));\r\n }\r\n });\r\n\r\n }\r\n}\r\n\r\nfunction trackReserveValue(dispatch, valueAmount: number) {\r\n dispatch({\r\n type: ActionTypes.TRACK_RESERVE_VALUE,\r\n value: valueAmount\r\n });\r\n}\r\n\r\ninterface IReserveResult {\r\n success: boolean;\r\n message: string;\r\n redirectUrl: string;\r\n redirectButtonText: string;\r\n reserveAmount: number;\r\n}\r\n\r\nfunction postCheckout(itemId: number, itemType: ItemType, cartSeats: Array<CartSeat>, selectedAdditionalOptionGroups: Array<SeatingOptionGroup>,\r\n additionalNotes: string, language: string, proceedToAddons: boolean, seatmapId: string) {\r\n let cartSeatModel = cartSeats.map(seat => {\r\n return {\r\n ...{},\r\n selectedPricing: seat.selectedPricing,\r\n selectedSeatingOptions: flatMap(seat.selectedSeatingOptions),\r\n tessituraSeatNumber: seat.tessituraSeat.seatNumber,\r\n sectionName: seat.tessituraSeat.sectionDescription,\r\n seatRow: seat.tessituraSeat.rowText,\r\n seatNumber: seat.tessituraSeat.numberText,\r\n seatType: seat.tessituraSeat.seatType.toString(),\r\n confirmationText: seat.originalSeatStyleCulture.confirmPrompt\r\n };\r\n });\r\n\r\n let selectedSeatingGroupsTrimmed = selectedAdditionalOptionGroups.map(\r\n group => {\r\n let trimmed = { ...group };\r\n delete trimmed[\"brand\"];\r\n delete trimmed[\"seatCondition\"];\r\n delete trimmed[\"unlockSeatingOptionGroup\"];\r\n return trimmed;\r\n\r\n }\r\n );\r\n \r\n return fetch(`${window.location.origin}/api/seating/ReserveSeats`,\r\n {\r\n method: \"POST\",\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n Accept: 'application/json',\r\n },\r\n body: JSON.stringify({\r\n itemId: itemId,\r\n itemType: itemType,\r\n language: language,\r\n cartSeats: cartSeatModel,\r\n selectedSeatingOptions: selectedSeatingGroupsTrimmed, //used for non-seat bound requests\r\n addOnsRequested: proceedToAddons,\r\n additionalNotes: additionalNotes,\r\n seatmapId: seatmapId\r\n }),\r\n credentials: 'same-origin'\r\n })\r\n .then(response => {\r\n return response.json();\r\n })\r\n .catch(error => {\r\n console.error(error);\r\n });\r\n\r\n}\r\n\r\nfunction receiveReserveResult(result) {\r\n return {\r\n type: ActionTypes.RECEIVE_RESERVE_RESULT,\r\n value: result\r\n }\r\n}\r\n\r\nexport function confirmReserveResult() {\r\n return {\r\n type: ActionTypes.CONFIRM_RESERVE_RESULT\r\n }\r\n}\r\n\r\nfunction receiveCheckQuickCheckoutResult(result) {\r\n return {\r\n type: ActionTypes.RECEIVE_QUICK_CHECKOUT_RESULT,\r\n value: result\r\n }\r\n}\r\n\r\nexport function postCheckQuickCheckout(seatMatchRequest: ISeatMatchRequestModel) {\r\n return (dispatch, state) => {\r\n postCheckQuickCheckoutRequest(seatMatchRequest).then((response: any) => {\r\n\r\n const result: IReserveResult = response as IReserveResult;\r\n\r\n if (!result.success) {\r\n if (response.redirectUrl != null && response.redirectUrl.length > 0) {\r\n dispatch(receiveReserveResult(response));\r\n } else {\r\n dispatch(receiveCheckQuickCheckoutResult(response));\r\n }\r\n } else {\r\n trackReserveValue(dispatch, result.reserveAmount);\r\n window.location.href = result.redirectUrl;\r\n }\r\n });\r\n }\r\n}\r\n\r\nexport function postQuickCheckout(seatMatchRequest: ISeatMatchRequestModel) {\r\n return (dispatch, state) => {\r\n postQuickCheckoutRequest(seatMatchRequest).then((response: any) => {\r\n\r\n const result: IReserveResult = response as IReserveResult;\r\n\r\n if (result.success) {\r\n trackReserveValue(dispatch, result.reserveAmount);\r\n window.location.href = result.redirectUrl;\r\n } else {\r\n dispatch(receiveReserveResult(response));\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction createPostRequestWithSeatingFilters(url: string, requestModel: ISeatMatchRequestModel, shouldReserveSeats: boolean) {\r\n return fetch(url,\r\n {\r\n method: \"POST\",\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n Accept: 'application/json',\r\n },\r\n body: JSON.stringify({\r\n filters: {\r\n itemType: requestModel.itemType,\r\n itemId: requestModel.itemId,\r\n minPrice: requestModel.minPrice,\r\n maxPrice: requestModel.maxPrice,\r\n allowSeparatedSeats: requestModel.allowSeparatedSeats,\r\n priceTypeQuantities: requestModel.requestedPriceTypes.filter(pt => { return pt.quantity > 0 }),\r\n venueLevels: requestModel.selectedVenueLevels,\r\n selectedAllLevels: requestModel.selectedAllLevels,\r\n allowAisleAccessSelected: requestModel.allowAisleAccessSelected,\r\n additionalSeatingOptions: requestModel.additionalSeatingOptions,\r\n additionalNotes: encodeURI(requestModel.additionalNotes),\r\n language: getCurrentLanguage(),\r\n filtersModified: requestModel.filtersModified,\r\n zoneId: requestModel.zoneId\r\n },\r\n confirmReserve: shouldReserveSeats\r\n }),\r\n credentials: 'same-origin'\r\n });\r\n}\r\n\r\nfunction postCheckQuickCheckoutRequest(requestModel: ISeatMatchRequestModel) {\r\n return createPostRequestWithSeatingFilters(`${window.location.origin}/api/seating/QuickCheckout`, requestModel, false)\r\n .then(response => {\r\n return response.json();\r\n })\r\n .catch(error => {\r\n console.error(error);\r\n });\r\n}\r\n\r\nfunction postQuickCheckoutRequest(requestModel: ISeatMatchRequestModel) {\r\n return createPostRequestWithSeatingFilters(`${window.location.origin}/api/seating/QuickCheckout`, requestModel, true)\r\n .then(response => {\r\n return response.json();\r\n })\r\n .catch(error => {\r\n console.error(error);\r\n });\r\n}\r\n\r\nexport function getCartTimer() {\r\n return (dispatch, state) => {\r\n updateCartTimer().then((response: any) => {\r\n try {\r\n if (+response > 0) {\r\n dispatch(setCartTimer(response));\r\n }\r\n } catch (ex) {\r\n\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction updateCartTimer() {\r\n return fetch(`${window.location.origin}/api/seating/GetCurrentCartTimer`,\r\n {\r\n method: \"GET\",\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n Accept: 'application/json',\r\n },\r\n credentials: 'same-origin'\r\n })\r\n .then(response => {\r\n if (response.ok) {\r\n return response.json();\r\n } else {\r\n return \"ERROR\";\r\n }\r\n })\r\n .catch(error => {\r\n console.error(error);\r\n });\r\n}","import cloneDeep from 'lodash/cloneDeep';\r\nimport uniq from 'lodash/uniq';\r\n\r\nimport { ActionTypes } from '../../actions/index';\r\nimport { ReserveResult } from '../../classes/cart';\r\nimport { PriceType } from '../../classes/price-type';\r\nimport { CartSeat } from '../../classes/seat';\r\nimport { IMaxTicketsErrorActionValue } from '../actions/cart-actions';\r\n\r\nexport interface ICartModel {\r\n remainingTessituraCartTimer: number;\r\n seats: Array<CartSeat>;\r\n removedSeats: Array<CartSeat>;\r\n reserveResult: ReserveResult;\r\n reservingSeats: boolean;\r\n maxPriceTypeTicketQuantityReached: boolean;\r\n maxSeatingOptionTicketQuantityReached: boolean;\r\n\r\n flexMinQuantityReachedForPriceType: PriceType,\r\n flexMaxQuantityReached: boolean,\r\n flexMaxQuantityReachedForPriceType: boolean,\r\n flexTicketQuantityNotReachedError: boolean;\r\n quantityHasBeenModified: boolean;\r\n cartUpdated: boolean;\r\n cartDisabled: boolean;\r\n showCartRemovalConfirmPrompt: boolean;\r\n showApplyPromoConfirmModal: boolean;\r\n promoCodeToApply: string;\r\n seatToRemove: CartSeat;\r\n}\r\n\r\nlet defaultCartModel: ICartModel = {\r\n remainingTessituraCartTimer: null,\r\n seats: [],\r\n removedSeats: [],\r\n reserveResult: null,\r\n reservingSeats: false,\r\n maxPriceTypeTicketQuantityReached: false,\r\n maxSeatingOptionTicketQuantityReached: false,\r\n flexMinQuantityReachedForPriceType: null,\r\n flexMaxQuantityReached: false,\r\n flexMaxQuantityReachedForPriceType: false,\r\n flexTicketQuantityNotReachedError: false,\r\n quantityHasBeenModified: false,\r\n cartUpdated: false,\r\n cartDisabled: false,\r\n showCartRemovalConfirmPrompt: false,\r\n showApplyPromoConfirmModal: false,\r\n promoCodeToApply: \"\",\r\n seatToRemove: null\r\n};\r\n\r\nexport { defaultCartModel };\r\n\r\nexport function cartModel(state: ICartModel = defaultCartModel, action): ICartModel {\r\n switch (action.type) {\r\n //case ActionTypes.SET_PACKAGE_TICKET_QUANTITIES:\r\n // // Default min quantity message if flex ticket quantity exists\r\n // return { ...state, flexMinQuantityReached: false}\r\n case ActionTypes.ADD_SEAT_TO_CART:\r\n const seats = uniq(state.seats.concat([action.value]));\r\n return {\r\n ...state,\r\n seats,\r\n cartUpdated: true\r\n };\r\n case ActionTypes.SAVE_SEAT_REMOVAL_FROM_CART:\r\n return { ...state, seatToRemove: action.value };\r\n case ActionTypes.REMOVE_SEAT_FROM_CART:\r\n const newSeats = state.seats.filter(seat => {\r\n return seat.seatId !== action.value.seatId;\r\n })\r\n\r\n let newRemovedSeats = cloneDeep(state.removedSeats);\r\n newRemovedSeats.push(action.value);\r\n return {\r\n ...state,\r\n seats: newSeats,\r\n removedSeats: newRemovedSeats,\r\n cartUpdated: true\r\n };\r\n case ActionTypes.UPDATE_CART_SEATS:\r\n return { ...state, seats: action.value };\r\n case ActionTypes.QUICK_CHECKOUT:\r\n return { ...state, reserveResult: null, reservingSeats: true };\r\n case ActionTypes.RESERVE_CART:\r\n return { ...state, reserveResult: null, reservingSeats: true };\r\n case ActionTypes.GO_TO_FILTERS:\r\n return { ...state, reserveResult: null, reservingSeats: false };\r\n case ActionTypes.RECEIVE_RESERVE_RESULT:\r\n return { ...state, reserveResult: action.value, reservingSeats: false };\r\n case ActionTypes.CONFIRM_RESERVE_RESULT:\r\n return { ...state, reserveResult: null, reservingSeats: false };\r\n case ActionTypes.RECEIVE_QUICK_CHECKOUT_RESULT:\r\n return { ...state, reservingSeats: false };\r\n case ActionTypes.MAX_TICKETS_SELECTED:\r\n let actionValue = action.value as IMaxTicketsErrorActionValue;\r\n if (!actionValue.isError) {\r\n return { ...state, maxPriceTypeTicketQuantityReached: action.value.isError, maxSeatingOptionTicketQuantityReached: action.value.isError };\r\n }\r\n else if (actionValue.isPriceType) {\r\n return { ...state, maxPriceTypeTicketQuantityReached: action.value.isError };\r\n } else {\r\n return { ...state, maxSeatingOptionTicketQuantityReached: action.value.isError };\r\n }\r\n case ActionTypes.FLEX_MIN_SEATS_SELECTED:\r\n return { ...state, flexMinQuantityReachedForPriceType: action.value };\r\n case ActionTypes.FLEX_MAX_ALL_SEATS_SELECTED:\r\n return { ...state, flexMaxQuantityReached: action.value };\r\n case ActionTypes.FLEX_MAX_SEATS_SELECTED_FOR_PRICETYPE:\r\n return { ...state, flexMaxQuantityReachedForPriceType: action.value };\r\n case ActionTypes.FLEX_TICKETS_NOT_SELECTED:\r\n return { ...state, flexTicketQuantityNotReachedError: action.value };\r\n case ActionTypes.QUANTITY_HAS_BEEN_MODIFIED:\r\n return {...state, quantityHasBeenModified: action.value}\r\n case ActionTypes.CART_UPDATED:\r\n return { ...state, cartUpdated: action.value };\r\n case ActionTypes.DISABLE_CART:\r\n return { ...state, cartDisabled: action.value };\r\n case ActionTypes.SHOW_CART_REMOVAL_MODAL:\r\n return { ...state, showCartRemovalConfirmPrompt: action.value }\r\n case ActionTypes.SET_CART_TIMER:\r\n return { ...state, remainingTessituraCartTimer: action.value }\r\n case ActionTypes.SHOW_APPLY_PROMO_CONFIRM_MODAL:\r\n return { ...state, showApplyPromoConfirmModal: action.value.showModal, promoCodeToApply: action.value.promoCode }\r\n default:\r\n return state;\r\n }\r\n};","export enum ItemType {\r\n Performance, // 0\r\n Exchange, // 1\r\n ExchangeAddOn, // 2\r\n Flex, // 3\r\n Fixed, // 4\r\n Super // 5\r\n}\r\n","import { PriceType } from './price-type';\r\nimport { SeatingOptionGroup, SeatingOption } from './seating-option';\r\nimport { IExchangeTicket } from './ticket-exchange';\r\n\r\nexport interface Seat {\r\n svgPath: string;\r\n\r\n activeSvgPath: string;\r\n\r\n inCartSeatPath: string;\r\n\r\n seatId: string;\r\n tessituraSeat: SeatInfo;\r\n suggestedSeat: boolean;\r\n\r\n svgPathId: string;\r\n seatStyleId: string;\r\n styleCultureId: string;\r\n seatingOptionGroup: SeatingOptionGroup;\r\n seatRank: number; // not used but could be for debugging?\r\n\r\n exchangeHigherPriceSvgPath: string;\r\n exchangeHigherPriceSeatStyleId: string;\r\n exchangeSamePriceSvgPath: string;\r\n exchangeSamePriceSeatStyleId: string;\r\n\r\n inCartSeatStyleId: string;\r\n\r\n zoneDescription: string;\r\n\r\n seatViewImageSrc: string; //added client side\r\n seatStyle: SeatStyle; //added client side\r\n seatStyleCulture: SeatStyleCulture;\r\n originalSeatStyleCulture: SeatStyleCulture;\r\n\r\n satisfiedSeatConditionIds: Array<string>;\r\n associatedSeatmapId?: string; //added client side\r\n}\r\nexport interface CartSeat extends Seat {\r\n selectedPricing: SeatPricing;\r\n selectedSeatingOptions: Array<SeatingOption>;\r\n isGroupedSeat: boolean;\r\n}\r\n\r\nexport interface SeatZone {\r\n zoneId: number;\r\n prices: Array<SeatPricing>;\r\n description: string;\r\n}\r\n\r\nexport interface SeatPaths {\r\n seatId: string;\r\n availableSeatPath: string;\r\n unavailableSeatPath: string;\r\n suggestedSeatPath: string;\r\n inCartSeatPath: string;\r\n}\r\n\r\nexport interface SeatStyle {\r\n brandId: string; //not used\r\n color: string; //not used\r\n highlightColor: string; //not used\r\n icon: string; //not used\r\n id: string;\r\n name: string;\r\n selectedColor: string; //not used\r\n\r\n seatStyleSvgPath: string;\r\n svgStrokeWidth: number;\r\n svgStrokeColor: string;\r\n svgDefaultFill: string;\r\n svgHoverFill: string;\r\n svgSelectedFill: string;\r\n svgViewBox: string;\r\n}\r\n\r\nexport interface SeatStyleCulture {\r\n seatStyleId: string;\r\n legendOrder: number;\r\n confirmPrompt: string;\r\n displayName: string;\r\n fullPrompt: string;\r\n smallPrompt: string;\r\n //seatStyle: SeatStyle;\r\n showOnCollapsedLegend: boolean;\r\n}\r\n\r\nexport interface SeatPriceQuantity {\r\n seatPricing: SeatPricing,\r\n quantity: number\r\n maxQuantity?: number // needed for GA zones..\r\n minQuantity?: number // needed for GA zones..\r\n}\r\n\r\nexport interface SeatPricing {\r\n priceTypeDescription: string;\r\n price: number;\r\n priceCarted: number;\r\n priceTypeId: number;\r\n priority: number; // not used\r\n isDefaultPriceType: boolean, // not used\r\n defaultPrice: number;// Only relevant to exchanges. The price of the ticket before exchange calculations came into play.\r\n maxSeats: number; //not used\r\n zoneDescription: string;\r\n zoneId: number;\r\n feeAmount?: number;\r\n\r\n exchangeTicket: IExchangeTicket; //not used\r\n}\r\n\r\nexport interface SeatPricingWithQuantity extends SeatPricing {\r\n quantity?: number;\r\n}\r\n\r\nexport enum AisleIndicator {\r\n None = 0,\r\n Left = 1,\r\n Right = 2,\r\n Both = 3\r\n}\r\n\r\nexport interface SeatInfo {\r\n aisle: AisleIndicator;\r\n allocationNumber: number; //not used\r\n circle: Circle; //not used\r\n displayLetter: string; //not used\r\n holdCodeId: number; //not used\r\n isAvailable: boolean;\r\n logicalSeatNumber: number;\r\n logicalSeatRow: number; //not used\r\n numberText: string;\r\n rowText: string;\r\n screenId: number; //not used\r\n seatNumber: number;\r\n seatType: number;\r\n sectionDescription: string;\r\n sectionId: number; //not used\r\n status: SeatStatus; //not used\r\n tessituraStatus: SeatStatus; //not used\r\n zoneId: string;\r\n zoneDescription: string; //not used\r\n consecutiveSeatGroupId: number;\r\n\r\n //client side\r\n isDisabled: boolean;\r\n\r\n}\r\n\r\nexport interface Circle {\r\n id: string;\r\n x: number;\r\n y: number;\r\n}\r\n\r\nexport enum SeatStatus {\r\n AVAILABLE = 0,\r\n HELD_BREAKABLE = 1,\r\n LOCKED_BY_SESSION = 2,\r\n LOCKED = 3,\r\n HELD = 4,\r\n NOT_IN_ALLOCATION = 5,\r\n BLACKED_OUT = 6,\r\n RESERVED_UNPAID = 7,\r\n RESERVED_PAID = 8,\r\n NON_SEAT = 9,\r\n UPDATED_PRODUCT_PAID = 10,\r\n RESERVED_BY_THIS_CUSTOMER = 11,\r\n RESERVED_IN_ORDER = 12,\r\n TICKETED = 13,\r\n TICKETED_BY_THIS_CUSTOMER = 14,\r\n TICKETED_IN_ORDER = 15,\r\n LOCKED_BY_SESSION_RELEASING = 16,\r\n LOCKED_BY_SESSION_RETURNING = 17,\r\n DONATED = 18,\r\n UPGRADE_PRODUCT_UNPAID = 19,\r\n UPGRADE_PAID = 20,\r\n UPGRADE_UNPAID = 21,\r\n ENTERED_HOUSE = 22\r\n}","import * as React from 'react';\r\nimport { IOption, IOptionGroup } from \"../../classes/seating-option\";\r\nimport Checkbox from './checkbox';\r\n\r\ninterface ICheckBoxGroupProps {\r\n key?: string;\r\n id?: string;\r\n stateChangeFunction: (selectedOptions: IOption[], groupId: string) => void;\r\n selectedOptions?: Array<IOption>;\r\n showAllOption: boolean;\r\n allText: string;\r\n group: IOptionGroup\r\n}\r\n\r\ninterface ICheckBoxGroupState {\r\n selectedOptions: Array<IOption>;\r\n allCheckboxSelected: boolean;\r\n}\r\n\r\nclass CheckBoxGroup extends React.PureComponent<ICheckBoxGroupProps, ICheckBoxGroupState> {\r\n\r\n constructor(props) {\r\n super(props);\r\n const selectedOptions = props.selectedOptions != null ? props.selectedOptions : [];\r\n\r\n this.state = {\r\n selectedOptions: selectedOptions,\r\n allCheckboxSelected: selectedOptions.length === 0 || props.group.options.length === props.selectedOptions.length\r\n }\r\n }\r\n\r\n componentWillReceiveProps(nextProps: ICheckBoxGroupProps) {\r\n if (this.props.selectedOptions.length !== nextProps.selectedOptions.length) {\r\n const selectedOptions = nextProps.selectedOptions != null ? nextProps.selectedOptions : [];\r\n\r\n this.setState({\r\n allCheckboxSelected: selectedOptions.length === 0 || nextProps.group.options.length === nextProps.selectedOptions.length\r\n })\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n <ul>\r\n {\r\n this.props.showAllOption ?\r\n <Checkbox key=\"all\"\r\n onChangeFunction={this._selectAllOption}\r\n checked={this.state.allCheckboxSelected} option={{ id: \"all\", name: this.props.allText, selected: this.state.allCheckboxSelected }}\r\n groupName={this.props.group.name} />\r\n : null\r\n }\r\n {\r\n this.props.group.options.filter(option => option.name != null && option.name.length > 0)\r\n .map(option => {\r\n // Mark if a selected option is in this option group.\r\n let match = this.props.selectedOptions.some(selectedOption => selectedOption.id === option.id);\r\n\r\n return <Checkbox key={option.id}\r\n onChangeFunction={this._selectOption}\r\n checked={match} option={option} groupName={this.props.group.name} />\r\n }, this)\r\n }\r\n </ul>\r\n );\r\n }\r\n\r\n _selectAllOption = () => {\r\n //this.setState({\r\n // ...this.state,\r\n // allCheckboxSelected: !this.state.allCheckboxSelected\r\n //});\r\n\r\n let newSeatingOptions = this.props.group.options;\r\n this.props.stateChangeFunction(newSeatingOptions, this.props.group.id)\r\n };\r\n\r\n\r\n _selectOption = (option: IOption) => {\r\n option.selected = !option.selected;\r\n\r\n let currSeatingOptions = this.state.selectedOptions;\r\n let newSeatingOptions: IOption[];\r\n\r\n /*\r\n Check to see if seating options already have the selected option. If it does, remove it. Need this array\r\n because when the option is checked, it should be added to the array of seating options. If it's removed,\r\n it should be removed from the seating options.\r\n */\r\n const withoutSelectedOptions = this.state.selectedOptions.filter(selectedOption => selectedOption.id !== option.id);\r\n\r\n if (!currSeatingOptions.some(currOption => currOption.id === option.id)) {\r\n newSeatingOptions = withoutSelectedOptions.concat([option]);\r\n } else {\r\n newSeatingOptions = withoutSelectedOptions;\r\n }\r\n\r\n this.setState({\r\n selectedOptions: newSeatingOptions\r\n });\r\n\r\n this.props.stateChangeFunction(newSeatingOptions, this.props.group.id)\r\n };\r\n}\r\n\r\nexport default CheckBoxGroup;","import * as React from 'react';\r\nimport {IOption, IOptionGroup} from \"../../classes/seating-option\";\r\nimport { formatId } from '../../helpers/string-format';\r\n\r\ninterface ICheckbox {\r\n key: string;\r\n onChangeFunction: (SeatingOption: IOption) => any;\r\n checked: boolean;\r\n\r\n option: IOption;\r\n groupName: string;\r\n}\r\n\r\nclass Checkbox extends React.PureComponent<ICheckbox, any> {\r\n private validId = this.props.option.id === \"all\" ? this.props.option.id : `${formatId(this.props.groupName)}_${this.props.option.id}`;\r\n\r\n render() {\r\n return (\r\n <li className=\"form-item\">\r\n <input type=\"checkbox\" className=\"checkbox-custom\" name={this.props.groupName}\r\n value={this.props.checked.toString()} id={this.validId}\r\n onChange={ () => { this.props.onChangeFunction(this.props.option) } }\r\n checked={ this.props.checked }/>\r\n <label htmlFor={this.validId}>{this.props.option.name}</label>\r\n </li>\r\n );\r\n }\r\n}\r\n\r\nexport default Checkbox;","import debounce from 'lodash/debounce';\r\nimport * as React from 'react';\r\nimport { getCurrencySymbol } from '../../helpers/currency-format';\r\nimport { Html } from '../../helpers/html-helpers';\r\n\r\n\r\nexport interface IPriceRangeProps {\r\n onPriceRangeClear: (minPrice: number, maxPrice: number) => any;\r\n onSelectMinPrice: (number) => any;\r\n onSelectMaxPrice: (number) => any;\r\n lowerRangeLimit: number;\r\n upperRangeLimit: number;\r\n rangeMinSpread: number;\r\n startingMinPrice: number;\r\n startingMaxPrice: number;\r\n\r\n currencyFormat: string;\r\n clearButton: string;\r\n filterPriceRangeTitle: string;\r\n filterPriceRangeMessage: string;\r\n filterPriceRangeMin: string;\r\n filterPriceRangeMax: string;\r\n\r\n showClearButton: boolean;\r\n showTitle: boolean;\r\n /**\r\n * If supplied, the title of this filter will be overriden by this text.\r\n */\r\n titleText?: string;\r\n}\r\n\r\ninterface IPriceRangeState {\r\n currentMinValue: number\r\n currentMaxValue: number,\r\n // separating slider value and text box value as onInput and onChange are the same in React Synthetic Events\r\n minTextBoxValue: number,\r\n maxTextBoxValue: number,\r\n rangeErrorMessage: string,\r\n rangeDifference: number,\r\n rangeMinError: boolean,\r\n rangeMaxError: boolean\r\n\r\n}\r\n\r\nclass PriceRange extends React.PureComponent<IPriceRangeProps, IPriceRangeState>{\r\n actualWidth: number;\r\n actualX: number;\r\n actualY: number;\r\n\r\n constructor(props: IPriceRangeProps) {\r\n super(props);\r\n // debouncing functions triggered during input box change as\r\n // onInput and onChange are the same (to browser onInput) in React Synthetic Events\r\n\r\n this._onLowerRangeInputChange = debounce(this._onLowerRangeInputChange, 900);\r\n this._onUpperRangeInputChange = debounce(this._onUpperRangeInputChange, 900);\r\n\r\n this.state = {\r\n currentMinValue: props.startingMinPrice,\r\n currentMaxValue: props.startingMaxPrice,\r\n // separating slider value and text box value as onInput and onChange are the same in React Synthetic Events\r\n minTextBoxValue: props.startingMinPrice,\r\n maxTextBoxValue: props.startingMaxPrice,\r\n rangeErrorMessage: '',\r\n rangeMinError: false,\r\n rangeMaxError: false,\r\n rangeDifference: Math.ceil((this.props.rangeMinSpread / 100) * (this.props.upperRangeLimit - this.props.lowerRangeLimit))\r\n };\r\n }\r\n\r\n render() {\r\n const rangeMaxSpread = (this.props.upperRangeLimit - this.props.lowerRangeLimit) / 2;\r\n var leftSliderValue = ((this.state.currentMinValue - this.props.lowerRangeLimit) / (this.props.upperRangeLimit - this.props.lowerRangeLimit)) * 100;\r\n if (leftSliderValue < 0)\r\n leftSliderValue = 0;\r\n var priceRangeWidth = ((this.state.currentMaxValue - this.state.currentMinValue) / (this.props.upperRangeLimit - this.props.lowerRangeLimit)) * 100;\r\n priceRangeWidth = priceRangeWidth > 100 ? 100 : priceRangeWidth;\r\n const errorSvg = '<use xlink:href=\"#icon-alert\" />';\r\n\r\n var currencySymbol = getCurrencySymbol(this.props.currencyFormat, this.props.lowerRangeLimit);\r\n\r\n return (\r\n <>\r\n {\r\n this.props.showTitle ?\r\n <div className=\"filters-section-heading contains-btn\">\r\n <h2 className=\"heading-general\">{this.props.titleText ? this.props.titleText : this.props.filterPriceRangeTitle}</h2>\r\n {\r\n this.props.clearButton.length > 0 && this.props.showClearButton ?\r\n <button className=\"filters-section-heading-btn\"\r\n value={this.props.clearButton + ' ' + this.props.titleText ? this.props.titleText : this.props.filterPriceRangeTitle}\r\n onClick={this._onPriceRangeClear.bind(this)}>\r\n {this.props.clearButton}\r\n <span className=\"visually-hidden\"> {this.props.titleText ? this.props.titleText : this.props.filterPriceRangeTitle}</span>\r\n </button>\r\n : null\r\n }\r\n </div>\r\n : null\r\n }\r\n\r\n <div className=\"filters-section-message\">\r\n {Html.renderDiv(this.props.filterPriceRangeMessage, \"caption-paragraph\")}\r\n </div>\r\n {this.props.children}\r\n <div className=\"price-range-container\" onMouseOver={(evt) => { this._onPriceRangeClick(evt) }}>\r\n <div className=\"price-range-spread\" style={{\r\n zIndex: 12,\r\n left: \"calc(\" + (leftSliderValue + \"%\") + \")\", width: \"calc(\" + priceRangeWidth + \"%)\"\r\n }}>\r\n </div>\r\n <label htmlFor=\"slider-min\" className=\"visually-hidden\">{this.props.filterPriceRangeMin}</label>\r\n <input role=\"slider\" type=\"range\" ref=\"lowerSlider\" id=\"slider-min\"\r\n className=\"price-range-input lower-range\"\r\n min={this.props.lowerRangeLimit}\r\n max={this.props.upperRangeLimit}\r\n value={this.state.currentMinValue}\r\n onChange={(evt) => { this._onLowerRangeSliderChange(evt) }}\r\n onMouseUp={(evt) => this._onSelectMinPrice(evt)}\r\n aria-invalid={this.state.rangeErrorMessage && this.state.rangeErrorMessage.length > 0 ? true : false} />\r\n <label htmlFor=\"slider-max\" className=\"visually-hidden\">{this.props.filterPriceRangeMax}</label>\r\n <input role=\"slider\" type=\"range\" ref=\"highSlider\" id=\"slider-max\"\r\n className=\"price-range-input upper-range\"\r\n value={this.state.currentMaxValue}\r\n min={this.props.lowerRangeLimit}\r\n max={this.props.upperRangeLimit}\r\n onChange={(evt) => { this._onUpperRangeSliderChange(evt) }}\r\n onMouseUp={(evt) => this._onSelectMaxPrice(evt)}\r\n aria-invalid={this.state.rangeErrorMessage && this.state.rangeErrorMessage.length > 0 ? true : false} />\r\n </div>\r\n\r\n\r\n <div className=\"price-range-numbers\" aria-hidden=\"true\">\r\n <div className=\"price-range-numbers-wrapper\">\r\n <label htmlFor=\"priceRangeMin\" data-currency-symbol={currencySymbol} className=\"price-range-numbers-label\">\r\n {this.props.filterPriceRangeMin}<span className=\"visually-hidden\"> {this.props.filterPriceRangeTitle}</span>\r\n </label>\r\n <input type=\"number\" pattern=\"\\d*\" id=\"priceRangeMin\" className=\"price-range-numbers-input\"\r\n value={this.state.minTextBoxValue}\r\n min={this.props.lowerRangeLimit}\r\n max={this.props.upperRangeLimit}\r\n onChange={(evt) => { this._onLowerRangeInputChangeBuffer(evt) }}\r\n aria-invalid={this.state.rangeMinError && this.state.rangeErrorMessage.length > 0 ? true : false}\r\n />\r\n </div>\r\n <div className=\"price-range-numbers-wrapper\">\r\n <label htmlFor=\"priceRangeMax\" data-currency-symbol={currencySymbol} className=\"price-range-numbers-label\">\r\n {this.props.filterPriceRangeMax}<span className=\"visually-hidden\"> {this.props.filterPriceRangeTitle}</span>\r\n </label>\r\n <input type=\"number\" pattern=\"\\d*\" id=\"priceRangeMax\" className=\"price-range-numbers-input\"\r\n value={this.state.maxTextBoxValue}\r\n onChange={(evt) => { this._onUpperRangeInputChangeBuffer(evt) }}\r\n min={this.props.lowerRangeLimit}\r\n max={this.props.upperRangeLimit}\r\n aria-invalid={this.state.rangeMaxError && this.state.rangeErrorMessage.length > 0 ? true : false}\r\n />\r\n </div>\r\n </div>\r\n {\r\n this.state.rangeErrorMessage ?\r\n <div className=\"price-range-numbers-input-error\">\r\n <svg dangerouslySetInnerHTML={{ __html: errorSvg }} />\r\n <span>{this.state.rangeErrorMessage}</span>\r\n </div>\r\n : null\r\n }\r\n </>\r\n );\r\n }\r\n\r\n _onPriceRangeClick(evt: React.MouseEvent<any>) {\r\n const container = document.getElementsByClassName(\"price-range-container\")[0];\r\n\r\n const priceRangeWidth = container.clientWidth;\r\n const clickedX = evt.clientX;\r\n const elementLeftX = container.getBoundingClientRect().left;\r\n\r\n // The lower and upper input range elements.\r\n const lowerElement: HTMLInputElement = container.getElementsByClassName(\"lower-range\")[0] as HTMLInputElement;\r\n const upperElement: HTMLInputElement = container.getElementsByClassName(\"upper-range\")[0] as HTMLInputElement;\r\n const max = +upperElement.max;\r\n const min = +lowerElement.min;\r\n\r\n // Where the bar was clicked %-wise from the left end.\r\n const clickPercent = (clickedX - elementLeftX) / priceRangeWidth;\r\n const lowerPercent = (+lowerElement.value - min) / (max - min);\r\n const upperPercent = (+upperElement.value - min) / (max - min);\r\n\r\n const upperDist = Math.abs(clickPercent - upperPercent);\r\n const lowerDist = Math.abs(clickPercent - lowerPercent);\r\n\r\n // If the click is closer to the upper value.\r\n if (upperDist < lowerDist) {\r\n upperElement.style.zIndex = `11`;\r\n lowerElement.style.zIndex = null;\r\n } else {\r\n upperElement.style.zIndex = null;\r\n lowerElement.style.zIndex = `11`;\r\n }\r\n }\r\n\r\n _onPriceRangeClear(evt) {\r\n evt.preventDefault();\r\n\r\n this.setState({\r\n currentMinValue: this.props.lowerRangeLimit,\r\n currentMaxValue: this.props.upperRangeLimit,\r\n minTextBoxValue: this.props.lowerRangeLimit,\r\n maxTextBoxValue: this.props.upperRangeLimit\r\n });\r\n\r\n this.props.onPriceRangeClear(this.props.lowerRangeLimit, this.props.upperRangeLimit);\r\n }\r\n\r\n //Slider changes\r\n _onLowerRangeSliderChange(evt) {\r\n this._errorMessageReset();\r\n let minValue = (evt.target as any).valueAsNumber > this.state.currentMaxValue - this.state.rangeDifference ? this.state.currentMaxValue - this.state.rangeDifference : (evt.target as any).valueAsNumber;\r\n this.setState({\r\n currentMinValue: minValue,\r\n minTextBoxValue: minValue\r\n });\r\n\r\n this.props.onSelectMinPrice(minValue);\r\n }\r\n\r\n _onSelectMinPrice(evt) {\r\n let minValue = this.state.currentMinValue;\r\n //if ie 11 or edge\r\n if (navigator.userAgent.match(/Trident.*rv:11\\./) || navigator.userAgent.match(/Edge/)) {\r\n minValue = (evt.target as any).valueAsNumber > this.state.currentMaxValue - this.state.rangeDifference ? this.state.currentMaxValue - this.state.rangeDifference : (evt.target as any).valueAsNumber;\r\n this.setState({\r\n currentMinValue: minValue,\r\n minTextBoxValue: minValue\r\n });\r\n }\r\n (evt.target as any).blur();\r\n\r\n this.props.onSelectMinPrice(minValue);\r\n }\r\n\r\n _onSelectMaxPrice(evt) {\r\n let maxValue = this.state.currentMaxValue;\r\n //if ie 11 or edge\r\n if (navigator.userAgent.match(/Trident.*rv:11\\./) || navigator.userAgent.match(/Edge/)) {\r\n maxValue = (evt.target as any).valueAsNumber < this.state.currentMinValue + this.state.rangeDifference ? this.state.currentMinValue + this.state.rangeDifference : (evt.target as any).valueAsNumber;\r\n this.setState({\r\n currentMaxValue: maxValue,\r\n maxTextBoxValue: maxValue\r\n });\r\n }\r\n (evt.target as any).blur();\r\n\r\n this.props.onSelectMaxPrice(maxValue);\r\n }\r\n\r\n _onUpperRangeSliderChange(evt) {\r\n this._errorMessageReset();\r\n let maxValue = (evt.target as any).valueAsNumber < this.state.currentMinValue + this.state.rangeDifference ? this.state.currentMinValue + this.state.rangeDifference : (evt.target as any).valueAsNumber;\r\n this.setState({\r\n currentMaxValue: maxValue,\r\n maxTextBoxValue: maxValue\r\n });\r\n\r\n this.props.onSelectMaxPrice(maxValue);\r\n }\r\n\r\n //Lower Range Input box Changes\r\n\r\n _onLowerRangeInputChangeBuffer(evt) {\r\n // ensures persistence of React synthetic event for debounced functions\r\n evt.persist();\r\n\r\n let textboxValue = (evt.target as any).valueAsNumber;\r\n\r\n //if ie 11 or edge\r\n if (navigator.userAgent.match(/Trident.*rv:11\\./) || navigator.userAgent.match(/Edge/)) {\r\n textboxValue = +(evt.target as any).value;\r\n }\r\n\r\n this.setState({\r\n minTextBoxValue: textboxValue\r\n });\r\n\r\n this._onLowerRangeInputChange(evt);\r\n }\r\n\r\n _onLowerRangeInputChange(evt) {\r\n this._errorMessageReset();\r\n // access to evt present due evt.persist\r\n let minValue = Math.floor((evt.target as any).valueAsNumber);\r\n //if ie 11 or edge\r\n if (navigator.userAgent.match(/Trident.*rv:11\\./) || navigator.userAgent.match(/Edge/)) {\r\n minValue = Math.floor(+(evt.target as any).value);\r\n }\r\n\r\n if (minValue < this.props.lowerRangeLimit) {\r\n this.setState({\r\n rangeErrorMessage: 'Minimum price cannot be less than $' + this.props.lowerRangeLimit,\r\n minTextBoxValue: this.props.lowerRangeLimit,\r\n currentMinValue: this.props.lowerRangeLimit,\r\n rangeMinError: true\r\n });\r\n } else if (minValue > this.state.currentMaxValue - this.state.rangeDifference) {\r\n this.setState({\r\n rangeErrorMessage: 'Minimum price cannot be greater than $' + (this.state.currentMaxValue - this.state.rangeDifference),\r\n minTextBoxValue: this.state.currentMaxValue - this.state.rangeDifference,\r\n currentMinValue: this.state.currentMaxValue - this.state.rangeDifference,\r\n rangeMinError: true,\r\n });\r\n } else {\r\n this.setState({\r\n minTextBoxValue: minValue,\r\n currentMinValue: minValue,\r\n });\r\n }\r\n\r\n this.props.onSelectMinPrice(this.state.currentMinValue);\r\n }\r\n\r\n //Upper Range Input box Changes\r\n\r\n _onUpperRangeInputChangeBuffer(evt) {\r\n evt.persist();\r\n\r\n let textboxValue = (evt.target as any).valueAsNumber;\r\n //if ie 11 or edge\r\n if (navigator.userAgent.match(/Trident.*rv:11\\./) || navigator.userAgent.match(/Edge/)) {\r\n textboxValue = +(evt.target as any).value;\r\n }\r\n\r\n this.setState({\r\n maxTextBoxValue: textboxValue\r\n });\r\n this._onUpperRangeInputChange(evt);\r\n }\r\n\r\n _onUpperRangeInputChange(evt) {\r\n this._errorMessageReset();\r\n\r\n let maxValue = Math.ceil((evt.target as any).valueAsNumber);\r\n //if ie 11 or edge\r\n if (navigator.userAgent.match(/Trident.*rv:11\\./) || navigator.userAgent.match(/Edge/)) {\r\n maxValue = Math.ceil(+(evt.target as any).value);\r\n }\r\n\r\n if (maxValue > this.props.upperRangeLimit) {\r\n this.setState({\r\n rangeErrorMessage: 'Maximum price cannot be greater than $' + this.props.upperRangeLimit,\r\n maxTextBoxValue: this.props.upperRangeLimit,\r\n currentMaxValue: this.props.upperRangeLimit,\r\n rangeMaxError: true\r\n\r\n });\r\n } else if (maxValue < this.state.currentMinValue + this.state.rangeDifference) {\r\n this.setState({\r\n rangeErrorMessage: 'Maximum price cannot be less than $' + (this.state.currentMinValue + this.state.rangeDifference),\r\n maxTextBoxValue: this.state.currentMinValue + this.state.rangeDifference,\r\n currentMaxValue: this.state.currentMinValue + this.state.rangeDifference,\r\n rangeMaxError: true\r\n\r\n });\r\n } else {\r\n this.setState({\r\n maxTextBoxValue: maxValue,\r\n currentMaxValue: maxValue,\r\n\r\n });\r\n }\r\n\r\n this.props.onSelectMaxPrice(this.state.currentMaxValue);\r\n }\r\n\r\n _errorMessageReset() {\r\n this.setState({\r\n ...this.state,\r\n rangeErrorMessage: '',\r\n rangeMaxError: false,\r\n rangeMinError: false\r\n });\r\n }\r\n\r\n componentWillReceiveProps(nextProps: IPriceRangeProps) {\r\n if (this.state.currentMinValue <= 0) {\r\n this.setState({\r\n ...this.state,\r\n currentMinValue: nextProps.lowerRangeLimit,\r\n currentMaxValue: nextProps.upperRangeLimit,\r\n minTextBoxValue: nextProps.lowerRangeLimit,\r\n maxTextBoxValue: nextProps.upperRangeLimit,\r\n lowerRangeLimit: nextProps.lowerRangeLimit,\r\n upperRangeLimit: nextProps.upperRangeLimit,\r\n rangeDifference: Math.ceil((nextProps.rangeMinSpread / 100) * (nextProps.upperRangeLimit - nextProps.lowerRangeLimit))\r\n } as any);\r\n } else {\r\n let needUpdate = false;\r\n let newUpperLimit = this.props.upperRangeLimit;\r\n let newLowerLimit = this.props.lowerRangeLimit;\r\n\r\n if (nextProps.lowerRangeLimit < this.props.lowerRangeLimit\r\n || nextProps.lowerRangeLimit > this.state.currentMinValue) {\r\n needUpdate = true;\r\n this.props.onSelectMinPrice(nextProps.lowerRangeLimit);\r\n newLowerLimit = nextProps.lowerRangeLimit;\r\n }\r\n if (nextProps.upperRangeLimit > this.props.upperRangeLimit\r\n || nextProps.upperRangeLimit < this.state.currentMaxValue) {\r\n needUpdate = true;\r\n this.props.onSelectMaxPrice(nextProps.upperRangeLimit);\r\n newUpperLimit = nextProps.upperRangeLimit;\r\n }\r\n\r\n if (needUpdate) {\r\n this.setState({\r\n ...this.state,\r\n currentMinValue: newLowerLimit,\r\n currentMaxValue: newUpperLimit,\r\n minTextBoxValue: newLowerLimit,\r\n maxTextBoxValue: newUpperLimit,\r\n lowerRangeLimit: newLowerLimit,\r\n upperRangeLimit: newUpperLimit,\r\n rangeDifference: Math.ceil((nextProps.rangeMinSpread / 100) * (nextProps.upperRangeLimit - nextProps.lowerRangeLimit))\r\n } as any);\r\n } else {\r\n this.setState({\r\n rangeDifference: Math.ceil((nextProps.rangeMinSpread / 100) * (nextProps.upperRangeLimit - nextProps.lowerRangeLimit))\r\n } as any);\r\n }\r\n }\r\n }\r\n}\r\n\r\nexport default PriceRange;","import * as React from 'react';\r\nimport { Level } from '../../classes/level';\r\nimport uniq from 'lodash/uniq';\r\nimport IAltText from '../../classes/alt-text';\r\ndeclare var Modernizr;\r\n\r\ninterface ILevelSelectProps {\r\n venueBackgroundImage: string;\r\n venueSvgViewBox: string;\r\n venueSvgHighlightShading: string;\r\n venueBackgroundPaths: Array<string>;\r\n levels: Array<Level>;\r\n selectedLevelsString: string;\r\n hoveredLevel: number;\r\n onMouseOverLevel: (number) => void;\r\n onMouseLeaveLevel: () => void;\r\n onSelectVenueLevel: (number) => void;\r\n\r\n altText: IAltText;\r\n svgStrokeColor: string;\r\n svgStrokeWidth: number;\r\n svgHoverFillColor: string;\r\n svgSelectedFillColor: string;\r\n svgDefaultFillColor: string;\r\n svgClass: string;\r\n}\r\n\r\nclass LevelSelectSvg extends React.PureComponent<ILevelSelectProps, any>{\r\n\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n get selectedLevels(): Array<number> {\r\n return this.props.selectedLevelsString.split(',').filter(str => str.length > 0).map(str => +str);\r\n }\r\n\r\n render() {\r\n var highlightedLevels = uniq(this.selectedLevels.concat(this.props.hoveredLevel == null ? [] : [this.props.hoveredLevel]));\r\n\r\n let imageOverrideUrl = \"\";\r\n let currentLevelAlt = \"\";\r\n if (this.props.hoveredLevel != null) {\r\n const matchedLevel = this.props.levels.filter(lvl => lvl.levelNumber === this.props.hoveredLevel);\r\n\r\n if (matchedLevel.length > 0 && matchedLevel[0].imageOverrideUrl && matchedLevel[0].imageOverrideUrl.length > 0) {\r\n imageOverrideUrl = matchedLevel[0].imageOverrideUrl;\r\n currentLevelAlt = matchedLevel[0].name;\r\n }\r\n }\r\n else {\r\n const levelWithOverrideImage = this.selectedLevels.filter(level => {\r\n const matchedLevel = this.props.levels.filter(lvl => lvl.levelNumber === level);\r\n\r\n return matchedLevel.length > 0 && matchedLevel[0].imageOverrideUrl && matchedLevel[0].imageOverrideUrl.length > 0;\r\n });\r\n\r\n if (levelWithOverrideImage.length === this.selectedLevels.length) {\r\n const matchedLevel = this.props.levels.filter(lvl => lvl.levelNumber === levelWithOverrideImage[0]);\r\n\r\n if (matchedLevel.length > 0) {\r\n imageOverrideUrl = matchedLevel[0].imageOverrideUrl;\r\n currentLevelAlt = matchedLevel[0].name;\r\n }\r\n }\r\n }\r\n\r\n if (imageOverrideUrl.length > 0) {\r\n return <img src={imageOverrideUrl} alt={currentLevelAlt} />\r\n }\r\n\r\n return (\r\n this.props.venueBackgroundImage != null ?\r\n <React.Fragment>\r\n <svg className=\"svg-defs\" viewBox={this.props.venueSvgViewBox}>\r\n <defs>\r\n <mask id=\"active-levels\">\r\n <rect width={this.props.venueSvgViewBox.split(' ')[2]} height={this.props.venueSvgViewBox.split(' ')[3]} fill=\"white\" />\r\n {\r\n highlightedLevels.map(level => {\r\n return <path key={level.toString()} d={this.props.levels.filter(lvl => lvl.levelNumber === level)[0].levelSvgPaths[0]}\r\n fill=\"black\" />\r\n })\r\n }\r\n </mask>\r\n </defs>\r\n </svg>\r\n <svg className={this.props.svgClass} role=\"img\" viewBox={this.props.venueSvgViewBox}\r\n id=\"overlay\">\r\n <g dangerouslySetInnerHTML={{ __html: this.props.venueBackgroundImage }}>\r\n </g>\r\n <rect width={this.props.venueSvgViewBox.split(' ')[2]} height={this.props.venueSvgViewBox.split(' ')[3]}\r\n fill={`rgba(0,0,0,${this.props.venueSvgHighlightShading == null ? \".5\" : this.props.venueSvgHighlightShading})`}\r\n mask={`url(#active-levels)`} />\r\n\r\n {this.props.levels.map(level => {\r\n return level.levelSvgPaths.map((path, index) => {\r\n return <path key={index}\r\n d={path}\r\n fill=\"transparent\"\r\n onMouseOver={() => { !level.disabled ? this.props.onMouseOverLevel(level.levelNumber) : null }}\r\n onMouseLeave={() => { !level.disabled ? this.props.onMouseLeaveLevel() : null }}\r\n data-level-id={level.levelNumber}\r\n onClick={() => !level.disabled ? this.props.onSelectVenueLevel(level) : null}></path>\r\n })\r\n })\r\n }\r\n </svg>\r\n </React.Fragment>\r\n :\r\n <svg aria-hidden=\"true\" className={this.props.svgClass} viewBox={this.props.venueSvgViewBox} stroke={this.props.svgStrokeColor} strokeWidth={this.props.svgStrokeWidth}>\r\n <title>{this.props.altText !== null ? this.props.altText.filtersLevelSelection : ''}</title>\r\n {this.props.levels.map(level => {\r\n return level.levelSvgPaths.map((path, index) => {\r\n return <path key={index}\r\n d={path}\r\n className={level.disabled ? \"level-disabled\" : \"\"}\r\n onMouseOver={() => { !level.disabled ? this.props.onMouseOverLevel(level.levelNumber) : null }}\r\n onMouseLeave={() => { !level.disabled ? this.props.onMouseLeaveLevel() : null }}\r\n fill={level.disabled ? \"#CCC\" : (this.props.hoveredLevel === level.levelNumber && !Modernizr.touchevents ?\r\n this.props.svgHoverFillColor : this.selectedLevels.indexOf(level.levelNumber) >= 0\r\n ? this.props.svgSelectedFillColor : this.props.svgDefaultFillColor)\r\n }\r\n data-level-id={level.levelNumber}\r\n onClick={() => !level.disabled ? this.props.onSelectVenueLevel(level) : null}></path>\r\n })\r\n })\r\n }\r\n {\r\n this.props.venueBackgroundPaths.map(path =>\r\n <path key={path} d={path} />\r\n )\r\n }\r\n </svg>\r\n );\r\n }\r\n}\r\n\r\nexport default LevelSelectSvg;","import * as React from 'react';\r\n\r\nexport interface IDataLoader {\r\n loadingText: string,\r\n loadingSvgText: string,\r\n stopAnimationText?: string,\r\n};\r\n\r\ninterface IDataLoaderState {\r\n loadingText: string;\r\n showStopAnimationButton: boolean;\r\n showAnimation: boolean;\r\n timeout: any;\r\n};\r\n\r\nclass DataLoader extends React.PureComponent<IDataLoader, IDataLoaderState> {\r\n constructor(props) {\r\n super(props);\r\n var subscriptionLoadingMessage: string;\r\n\r\n // In 5 seconds, give the user an option to stop the loading.\r\n let timeoutFunc = setTimeout(() => {\r\n this.setState({\r\n showStopAnimationButton: true,\r\n showAnimation: this.state.showAnimation\r\n });\r\n }, 5000);\r\n\r\n\r\n this.state = {\r\n loadingText: props.loadingText,\r\n showStopAnimationButton: false,\r\n showAnimation: true,\r\n timeout: timeoutFunc\r\n };\r\n\r\n }\r\n\r\n componentWillUnmount() {\r\n clearTimeout(this.state.timeout);\r\n }\r\n\r\n render() {\r\n const circleTag = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"25 25 50 50\" xml:space=\"preserve\"><circle class=\"loading-icon-path\" cx= \"50\" cy= \"50\" r= \"20\" fill= \"none\" stroke- width=\"2\" stroke- miterlimit=\"10\"></circle></svg>';\r\n\r\n const loadingSvg = this.props.loadingSvgText ? this.props.loadingSvgText : circleTag;\r\n let loadingClass;\r\n if (this.state.showAnimation) {\r\n loadingClass = \"loading-icon\";\r\n }\r\n else {\r\n loadingClass = \"loading-icon paused\";\r\n }\r\n return (\r\n <div className=\"loading-container\">\r\n <div id=\"loadingSvg\" className={loadingClass} dangerouslySetInnerHTML={{ __html: loadingSvg }}></div>\r\n <div className=\"loading-text\">\r\n {this.state.loadingText ? this.state.loadingText : \"\"}\r\n </div>\r\n {\r\n this.props.stopAnimationText ?\r\n <button style={{ \"visibility\": this.state.showStopAnimationButton ? \"visible\" : \"hidden\" }} className=\"loading-stop-btn\" onClick={() => this.stopLoadingAnimation()}>{this.props.stopAnimationText}</button>\r\n : null\r\n }\r\n </div>\r\n );\r\n }\r\n\r\n private stopLoadingAnimation() {\r\n this.setState({\r\n showStopAnimationButton: false,\r\n showAnimation: false\r\n });\r\n }\r\n}\r\n\r\nexport default DataLoader;","enum ModalState {\r\n OPEN,\r\n CLOSE,\r\n KEEP_OPEN,\r\n KEEP_CLOSED\r\n};\r\n\r\nexport default ModalState;","import * as React from 'react';\r\nimport { getFocusableChildren, bindKeypress } from '../../helpers/window-helpers';\r\nimport PromptModal from './prompt-modal';\r\n\r\nexport interface IModalProps {\r\n modalKey: string;\r\n title: string;\r\n message: string;\r\n cancelString?: string;\r\n confirmString?: string;\r\n confirmFunction?: any;\r\n cancelFunction?: any;\r\n closeFunction?: any;\r\n isError?: boolean;\r\n showModal?: boolean;\r\n modalClass?: string;\r\n priority?: number; // only use 1,2 or 3. 1 being highest\r\n}\r\n\r\nclass Modal<T extends IModalProps> extends React.Component<T, { lastFocused: any }> {\r\n\r\n constructor(props) {\r\n super(props);\r\n this.state = { lastFocused: null };\r\n console.log(\"Pop-up shown (\" + props.modalKey + \")\");\r\n }\r\n\r\n componentDidMount() {\r\n this.setState({ lastFocused: document.activeElement });\r\n (document.activeElement as any).blur();\r\n var modal = document.getElementById('modal-container');\r\n if (modal != null && this.props.closeFunction != null) {\r\n let focusableElements = getFocusableChildren(modal);\r\n window.addEventListener('keydown', event => bindKeypress.bind(this)(event, focusableElements, this.props.closeFunction.bind(this)));\r\n }\r\n }\r\n\r\n componentWillUnmount() {\r\n window.removeEventListener('keydown', bindKeypress.bind(this));\r\n if (this.state.lastFocused !== null) {\r\n this.state.lastFocused.focus();\r\n }\r\n }\r\n\r\n render() {\r\n var modalClassName = 'modal-wrapper';\r\n\r\n if (this.props.modalClass) {\r\n modalClassName = this.props.modalClass + ' modal-wrapper';\r\n }\r\n\r\n if (this.props.priority) {\r\n modalClassName = modalClassName + \" priority-\" + this.props.priority;\r\n }\r\n\r\n return (\r\n <div tabIndex={-1} className={modalClassName} id=\"modal-wrapper\" ref=\"modalWrapper\" aria-live=\"polite\">\r\n <div id=\"modal-overlay\" className=\"modal-overlay\" tabIndex={-1} onClick={this.props.cancelFunction ? () => { this.props.cancelFunction() } : null}></div>\r\n {this.renderModalContent()}\r\n </div>\r\n );\r\n }\r\n\r\n public renderModalContent() {\r\n return (\r\n <PromptModal {...this.props} />\r\n );\r\n }\r\n}\r\n\r\nexport default Modal;","import * as React from 'react';\r\nimport { getFocusableChildren, bindKeypress } from '../../helpers/window-helpers';\r\nimport { Html } from '../../helpers/html-helpers';\r\n\r\nexport interface IPromptModalProps {\r\n title: string;\r\n message: string;\r\n cancelString?: string;\r\n confirmString?: string;\r\n confirmFunction?: any;\r\n cancelFunction?: any;\r\n isError?: boolean;\r\n}\r\n\r\nclass PromptModal extends React.Component<IPromptModalProps, any> {\r\n render() {\r\n return (\r\n <section role=\"dialog\" aria-labelledby=\"modal-title\" className=\"modal-container\" id=\"modal-container\">\r\n <div role=\"document\">\r\n\r\n <div className=\"modal-content\">\r\n <h3 className=\"heading-general\" id=\"modal-title\">{this.props.title}</h3>\r\n {\r\n Html.renderParagraph(this.props.message, (this.props.isError ? \"promo-code-conflict-error\" : \"\"))\r\n }\r\n </div>\r\n\r\n <div className=\"modal-cta-container\">\r\n {/* Only show the cancel or ok button if they have a function associated with it. */}\r\n {this.props.cancelFunction ? <button className=\"dialog-cta-btn\" type=\"button\" onClick={() => { this.props.cancelFunction() }}>{this.props.cancelString ? this.props.cancelString : \"Cancel\"}</button> : null}\r\n\r\n {this.props.confirmFunction ? <button className=\"dialog-cta-btn\" type=\"button\" onClick={() => { this.props.confirmFunction() }}>{this.props.confirmString ? this.props.confirmString : \"Ok\"}</button> : null}\r\n </div>\r\n </div>\r\n </section>\r\n );\r\n }\r\n}\r\n\r\nexport default PromptModal;","import * as React from 'react';\r\nimport { SeatPricingWithQuantity } from '../../classes/seat';\r\nimport { getCurrencyFormat } from '../../helpers/currency-format';\r\nimport { Html } from '../../helpers/html-helpers';\r\nimport { getFocusableChildren, bindKeypress } from '../../helpers/window-helpers';\r\nimport DataLoader from '../loader/data-loader';\r\n\r\nexport interface ISeatFeePreviewModalProps {\r\n loadingSvgText: string;\r\n loadingText: string;\r\n loadedResults: boolean;\r\n requesting: boolean;\r\n modalKey: string;\r\n title: string;\r\n message: string;\r\n selectedPricing: Array<SeatPricingWithQuantity>;\r\n currencyFormat: string;\r\n priceTypeTextHeadingFormat: string;\r\n ticketTypeFormat: string;\r\n ticketCostText: string;\r\n feeAmountText: string;\r\n isBestAvailableOnly: boolean;\r\n cancelString?: string;\r\n confirmString?: string;\r\n goToSeatmapString?: string;\r\n confirmFunction?: any;\r\n cancelFunction?: any;\r\n closeFunction?: any;\r\n goToSeatmapFunction?: any;\r\n isError?: boolean;\r\n showModal?: boolean;\r\n modalClass?: string;\r\n priority?: number; // only use 1,2 or 3. 1 being highest\r\n}\r\n\r\ninterface IZoneGroup {\r\n zoneDescription: string;\r\n seatGroups: SeatPricingWithQuantity[]\r\n}\r\n\r\nclass SeatFeePreviewModal<T extends ISeatFeePreviewModalProps> extends React.Component<T, { lastFocused: any }> {\r\n\r\n constructor(props) {\r\n super(props);\r\n this.state = { lastFocused: null };\r\n console.log(\"Pop-up shown (\" + props.modalKey + \")\");\r\n }\r\n\r\n componentDidMount() {\r\n this.setState({ lastFocused: document.activeElement });\r\n (document.activeElement as any).blur();\r\n var modal = document.getElementById('modal-container');\r\n if (modal != null && this.props.closeFunction != null) {\r\n let focusableElements = getFocusableChildren(modal);\r\n window.addEventListener('keydown', event => bindKeypress.bind(this)(event, focusableElements, this.props.closeFunction.bind(this)));\r\n }\r\n }\r\n\r\n componentWillUnmount() {\r\n window.removeEventListener('keydown', bindKeypress.bind(this));\r\n if (this.state.lastFocused !== null) {\r\n this.state.lastFocused.focus();\r\n }\r\n }\r\n\r\n render() {\r\n var modalClassName = 'modal-wrapper';\r\n\r\n if (this.props.modalClass) {\r\n modalClassName = this.props.modalClass + ' modal-wrapper';\r\n }\r\n\r\n if (this.props.priority) {\r\n modalClassName = modalClassName + \" priority-\" + this.props.priority;\r\n }\r\n\r\n return (\r\n <div tabIndex={-1} className={modalClassName} id=\"modal-wrapper\" ref=\"modalWrapper\" aria-live=\"polite\">\r\n <div id=\"modal-overlay\" className=\"modal-overlay\" tabIndex={-1} onClick={this.props.cancelFunction ? () => { this.props.cancelFunction() } : null}></div>\r\n {this.renderModalContent()}\r\n </div>\r\n );\r\n }\r\n\r\n public seatZoneGroups(): IZoneGroup[] {\r\n const zoneGroups = [];\r\n // multiple zones are still tbd but might as well support it\r\n let selectedZones: string[] = this.props.selectedPricing.map(pricing => pricing.zoneDescription);\r\n // get unique zones\r\n selectedZones = selectedZones.filter((zone, index, array) => array.indexOf(zone) === index);\r\n selectedZones.forEach(zone => {\r\n const seatsInZone = this.props.selectedPricing.filter(pricing => pricing.zoneDescription === zone);\r\n zoneGroups.push({\r\n zoneDescription: zone,\r\n seatGroups: seatsInZone\r\n } as IZoneGroup);\r\n });\r\n return zoneGroups;\r\n }\r\n\r\n public renderZone(zone: IZoneGroup, key: number) {\r\n return (\r\n <div key={key} className=\"stack\">\r\n <h3 className=\"large\">{zone.zoneDescription}</h3>\r\n {\r\n zone.seatGroups.map((price, index) => {\r\n return (\r\n <div key={index}>\r\n <p>{this.props.ticketTypeFormat.replace(\"{0}\", price.quantity.toString()).replace(\"{1}\", price.priceTypeDescription)} {getCurrencyFormat(this.props.currencyFormat, price.price + price.feeAmount)}: <strong className=\"text-dark\">{getCurrencyFormat(this.props.currencyFormat, ((price.price + price.feeAmount) * price.quantity))}</strong></p>\r\n <div className=\"small-italic\">\r\n <p>{this.props.priceTypeTextHeadingFormat.replace(\"{0}\", price.priceTypeDescription)}</p>\r\n <p>{this.props.ticketCostText} {getCurrencyFormat(this.props.currencyFormat, price.price)}</p>\r\n <p>{this.props.feeAmountText} {getCurrencyFormat(this.props.currencyFormat, price.feeAmount)}</p>\r\n </div>\r\n </div>\r\n )\r\n })\r\n }\r\n </div>\r\n )\r\n\r\n }\r\n\r\n public renderModalContent() {\r\n return (\r\n <section role=\"dialog\" className=\"modal-container modal-large\">\r\n {this.props.loadedResults ?\r\n <div role=\"document\" className=\"stack\">\r\n <div className=\"modal-content stack\">\r\n <h2 className=\"heading-general\">{this.props.title}</h2>\r\n {this.seatZoneGroups().map((zone, key) => this.renderZone(zone, key))}\r\n </div>\r\n <div dangerouslySetInnerHTML={{ __html: this.props.message }} />\r\n <div className=\"modal-cta-container\">\r\n {this.props.cancelFunction ? <button className=\"btn-secondary dialog-cta-left\" type=\"button\" onClick={() => { this.props.cancelFunction() }}>{this.props.cancelString}</button> : null}\r\n {this.props.goToSeatmapFunction && !this.props.isBestAvailableOnly ?\r\n <button className=\"btn-secondary\" type=\"button\" onClick={() => { this.props.goToSeatmapFunction() }}>{this.props.goToSeatmapString}</button>\r\n : null\r\n }\r\n {this.props.confirmFunction ? <button className=\"btn-primary\" type=\"button\" onClick={() => { this.props.confirmFunction() }}>{this.props.confirmString}</button> : null}\r\n </div>\r\n </div>\r\n : null}\r\n {this.props.requesting ?\r\n <div role=\"document\" className=\"modal-loader\">\r\n <DataLoader loadingSvgText={this.props.loadingSvgText} loadingText={this.props.loadingText} />\r\n </div>\r\n : null}\r\n </section>\r\n );\r\n }\r\n}\r\n\r\nexport default SeatFeePreviewModal;","import * as React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { IAppState } from '../../reducers';\r\nimport { Dispatch } from 'redux';\r\nimport sum from 'lodash/sum';\r\nimport { updateAdditionalNotes, IFilterStateAction } from '../../filter/actions/filter-actions';\r\n\r\nexport interface StateToProps {\r\n additionalNotesTitle: string,\r\n additionalNotesPlaceholder: string,\r\n additionalNotes: string;\r\n};\r\n\r\ninterface DispatchToProps {\r\n updateAdditionalNotes: (event) => any;\r\n}\r\n\r\ninterface IAdditionalNotesState {\r\n inputText: string;\r\n}\r\n\r\ntype AdditionalNotesProps = StateToProps & DispatchToProps;\r\n\r\nclass AdditionalNotes extends React.PureComponent<AdditionalNotesProps, IAdditionalNotesState> {\r\n constructor(props: AdditionalNotesProps) {\r\n super(props);\r\n this.state = {\r\n inputText: \"\"\r\n };\r\n\r\n }\r\n handleChange = (event) => {\r\n this.setState({ inputText: event.target.value });\r\n }\r\n render() {\r\n var charsPerLine = 90;\r\n\r\n var textbox = document.getElementById('txtArea');\r\n if (textbox != null) {\r\n var textboxWidth = textbox.getBoundingClientRect().width;\r\n var numberOfRows = 1;\r\n var pxPerCharacter = 12;\r\n\r\n charsPerLine = Math.floor(textboxWidth / pxPerCharacter);\r\n }\r\n\r\n var numberOfLongLines = sum(this.props.additionalNotes.split('\\n').filter(line => line.length >= charsPerLine)\r\n .map(l => Math.ceil(l.length / charsPerLine)));\r\n var numberOfNewLines = this.props.additionalNotes.split('\\n').length - 1;\r\n\r\n var totalLines = numberOfLongLines + numberOfNewLines;\r\n return (\r\n\r\n <div className=\"additional-notes\">\r\n\r\n <label htmlFor=\"txtArea\">{this.props.additionalNotesTitle}</label>\r\n <textarea id=\"txtArea\" placeholder={this.props.additionalNotesPlaceholder}\r\n rows={totalLines > 0 ? totalLines : 2}\r\n onChange={this.props.updateAdditionalNotes}\r\n value={this.props.additionalNotes}></textarea>\r\n </div>\r\n );\r\n }\r\n}\r\n\r\nfunction mapStateToProps(state: IAppState): StateToProps {\r\n return {\r\n additionalNotesPlaceholder: state.appSettingsModel.additionalNotesPlaceholder,\r\n additionalNotesTitle: state.appSettingsModel.additionalNotesTitle,\r\n additionalNotes: state.additionalSeatingOptionModel.additionalNotes\r\n }\r\n}\r\n\r\nfunction mapDispatchToProps(dispatch: Dispatch<IFilterStateAction>): DispatchToProps {\r\n return {\r\n updateAdditionalNotes: (event) => dispatch(updateAdditionalNotes(event.target.value))\r\n }\r\n}\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(AdditionalNotes)\r\n","import * as React from 'react';\r\nimport Modal from '../../common/modal/modal';\r\n\r\ninterface IPromoCodeConflictProps {\r\n promoErrorMessage: string;\r\n promoCode: string;\r\n modalCancelButtonText: string;\r\n emptyCartButtonText: string;\r\n\r\n onCancelPromoClick: () => void;\r\n onEmptyCartClick: (string) => void;\r\n\r\n}\r\n\r\nclass PromoCodeConflict extends React.PureComponent<IPromoCodeConflictProps, any>{\r\n render() {\r\n return (\r\n <Modal title=\"Cart Conflict\"\r\n message={this.props.promoErrorMessage}\r\n isError={true}\r\n cancelFunction={this._onCancelPromoCodeClick.bind(this)}\r\n cancelString={this.props.modalCancelButtonText}\r\n closeFunction={this._onCancelPromoCodeClick.bind(this)}\r\n confirmFunction={() => this.props.onEmptyCartClick(this.props.promoCode)}\r\n confirmString={this.props.emptyCartButtonText} modalKey=\"promo code conflict\" />\r\n );\r\n }\r\n\r\n _onPromoCodeInputChange(evt) {\r\n this.setState({\r\n promoCode: (evt.target as any).value\r\n });\r\n }\r\n\r\n _onCancelPromoCodeClick() {\r\n this.setState({\r\n promoCode: \"\"\r\n });\r\n this.props.onCancelPromoClick();\r\n }\r\n}\r\n\r\nexport default PromoCodeConflict;","import * as React from 'react';\r\nimport { IAppSettingsModel } from '../../reducers/fetch-settings-reducer';\r\n\r\ninterface IPromoCodeInfoProps {\r\n promoCodeText: string;\r\n promoCodeTextTitle: string;\r\n promoCodeDescription: string;\r\n promoCodeRedirect: string;\r\n promoCodeText4: string;\r\n promoCodeText5: string;\r\n promoCodeText6: string;\r\n}\r\n\r\nclass PromoCodeInfo extends React.Component<IPromoCodeInfoProps, any>{\r\n render() {\r\n const useTagInfo = '<use xlink:href=\"#icon-info\" />';\r\n\r\n return (\r\n <div className=\"promo-code-info-container\">\r\n <div className=\"promo-code-info-container-item\">\r\n <div className=\"promo-code-success-msg\">\r\n <svg className=\"promo-code-info\" dangerouslySetInnerHTML={{ __html: useTagInfo }} />\r\n\r\n </div>\r\n <div className=\"rich-text\">\r\n <div className=\"promo-code-info-desc\">{this.props.promoCodeText}</div>\r\n <div className=\"promo-code-info-desc\" dangerouslySetInnerHTML={{ __html: this.props.promoCodeTextTitle }}></div>\r\n <div className=\"promo-code-info-desc\" dangerouslySetInnerHTML={{ __html: this.props.promoCodeDescription }}></div>\r\n <div className=\"promo-code-info-desc\" dangerouslySetInnerHTML={{ __html: this.props.promoCodeRedirect }}></div>\r\n <div className=\"promo-code-info-desc\" dangerouslySetInnerHTML={{ __html: this.props.promoCodeText4 }}></div>\r\n <div className=\"promo-code-info-desc\" dangerouslySetInnerHTML={{ __html: this.props.promoCodeText5 }}></div>\r\n <div className=\"promo-code-info-desc\" dangerouslySetInnerHTML={{ __html: this.props.promoCodeText6 }}></div>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n }\r\n}\r\n\r\nexport default PromoCodeInfo;","import * as React from 'react';\r\n\r\ninterface IPromoCodeTextBoxProps {\r\n promoErrorMessage: string;\r\n applying: boolean;\r\n clearPromoErrorMessage: () => void;\r\n promoCodeTitle: string;\r\n onApplyPromoClick: (promoCode: string) => void;\r\n onCancelPromoClick: () => void;\r\n}\r\n\r\nclass PromoCodeTextBox extends React.PureComponent<IPromoCodeTextBoxProps, { promoCode: string }>{\r\n constructor(props) {\r\n super(props);\r\n this.state = { promoCode: \"\" };\r\n }\r\n\r\n render() {\r\n {/* TODO: hardcoded strings */}\r\n const hasError = this.props.promoErrorMessage.length > 0;\r\n return (\r\n <div className=\"promo-code-apply-container\">\r\n <div className=\"promo-code-apply-standard\">\r\n\r\n <label htmlFor=\"promoCodeBox\">Enter Promo Code</label>\r\n <input className=\"promo-code-apply-input\" type=\"text\" maxLength={255} id=\"promoCodeBox\" name=\"promoCode\" value={this.state.promoCode}\r\n onChange={(evt) => { this._onPromoCodeInputChange(evt) }}\r\n onKeyPress={(e) => {\r\n var code = e.keyCode || e.which;\r\n\r\n if (code === 13 && this.state.promoCode.length > 0) {\r\n this.props.onApplyPromoClick(this.state.promoCode);\r\n }\r\n }}\r\n placeholder=\"I have a promo code\"\r\n aria-invalid={hasError ? \"true\" : \"false\"}\r\n aria-describedby={hasError ? \"promo-code-error\" : null}\r\n />\r\n <button className=\"promo-code-apply-btn\"\r\n disabled={this.state.promoCode.length === 0 || this.props.applying}\r\n data-loading-indicator={this.props.applying}\r\n onClick={() => { this.props.onApplyPromoClick(this.state.promoCode) }}\r\n >\r\n Apply<span className=\"visually-hidden\"> {this.props.promoCodeTitle}</span>\r\n </button>\r\n </div>\r\n </div>\r\n );\r\n }\r\n\r\n _onPromoCodeInputChange(evt) {\r\n this.setState({\r\n promoCode: (evt.target as any).value\r\n });\r\n\r\n if (this.props.promoErrorMessage.length > 0) {\r\n this.props.clearPromoErrorMessage();\r\n }\r\n }\r\n\r\n _onCancelPromoCodeClick() {\r\n this.setState({\r\n promoCode: \"\"\r\n });\r\n this.props.onCancelPromoClick();\r\n }\r\n}\r\n\r\nexport default PromoCodeTextBox;","import * as React from 'react';\r\nimport { connect } from 'react-redux'\r\nimport { Dispatch, bindActionCreators, AnyAction } from 'redux';\r\n\r\nimport PromoCodeTextBox from './promo-code-textbox';\r\nimport PromoCodeInfo from './promo-code-info';\r\nimport PromoCodeConflict from './promo-code-conflict';\r\n\r\nimport { formatString } from '../../helpers/string-format';\r\nimport { IAltText } from '../../classes/alt-text';\r\nimport { IAppState } from '../../reducers';\r\nimport { IPromoCodeDetails } from '../../classes/promo-code-details';\r\nimport { IPromoCodeModel } from '../../filter/reducers/promo-reducer';\r\n\r\n// TODO move this\r\nimport { applyPromoCode, cancelPromoApply, emptyCart, removePromoCode, errorPromoApply } from '../../filter/actions/promo-actions';\r\n\r\ninterface IStateProps {\r\n promoCodeModel: IPromoCodeModel\r\n currentPromoCode: IPromoCodeDetails\r\n\r\n altText: IAltText;\r\n promoCodeHeading: string;\r\n promoCodeRedirect: string;\r\n enablePromoCodes: boolean;\r\n showPromoCodeSectionOnPageLoad: boolean;\r\n promoCodeSuccessMessage: string;\r\n modalCancelButtonText: string;\r\n emptyCartButtonText: string;\r\n}\r\n\r\ninterface IDispatchProps {\r\n onApplyPromoClick: (promoCode: string) => void;\r\n onCancelPromoClick: () => void;\r\n onEmptyCartClick: (promoCode: string) => void;\r\n onRemovePromoClick: () => void;\r\n clearPromoCodeMessage: () => void;\r\n}\r\n\r\ninterface IOwnProps {\r\n culture: string;\r\n collapseDown: boolean; // control if the promo code section should collapse down or up\r\n showMOSMessage?: boolean;\r\n MOSMessage?: string;\r\n}\r\n\r\ntype IProps = IStateProps & IDispatchProps & IOwnProps\r\n\r\ninterface IState {\r\n checked: boolean;\r\n}\r\n\r\n/** PromoCode */\r\nexport class PromoCode extends React.PureComponent<IProps, IState>{\r\n\r\n constructor(props: IProps) {\r\n super(props);\r\n this.state = {\r\n checked: props.currentPromoCode != null || props.showPromoCodeSectionOnPageLoad\r\n };\r\n }\r\n\r\n /** Set checked only if we actually recieve a promo code with an Id */\r\n componentWillReceiveProps(nextProps: IProps) {\r\n if (nextProps.promoCodeModel && nextProps.promoCodeModel.promoCodeId > 0) {\r\n this.setState({ checked: true });\r\n }\r\n }\r\n\r\n render() {\r\n if (!this.props.enablePromoCodes) {\r\n return null;\r\n }\r\n\r\n return this.props.showMOSMessage ? this.renderMOSMessage() : this.renderPromoInterface()\r\n }\r\n\r\n renderPromoInterface = () => {\r\n const { checked } = this.state;\r\n return (\r\n <section className=\"filters-section promo-code-section\">\r\n <div className=\"filters-section-heading\">\r\n {this.renderButtons()}\r\n </div>\r\n {checked && this.renderDetail()}\r\n </section>\r\n )\r\n }\r\n\r\n /** Render an accordion toggle if there is no promo code, or a remove button if there is */\r\n renderButtons = () => {\r\n if (this.props.promoCodeModel.promoCodeId > 0) {\r\n return (\r\n <button className=\"promo-code-info-btn\" name=\"rmvPromoInput\" onClick={this.props.onRemovePromoClick}>Remove Promo</button>\r\n )\r\n }\r\n\r\n const expanded = this.state.checked ? 'true' : 'false'\r\n const toggled = (this.props.collapseDown ? this.state.checked : !this.state.checked) ? ' toggled' : '';\r\n\r\n const useTag = `<use xlink:href=\"#icon-arrow-down\" />`;\r\n\r\n return (\r\n <button className=\"btn-toggle-full\" onClick={this.onToggleChecked} aria-expanded={expanded}>\r\n <h2 className=\"heading-general\">{this.props.promoCodeHeading}</h2>\r\n <svg className={\"filters-section-heading-toggles-icon\" + toggled} aria-hidden=\"true\"\r\n dangerouslySetInnerHTML={{ __html: useTag }} />\r\n </button>\r\n )\r\n }\r\n\r\n /** Render information and errors related to the promo code */\r\n renderDetail = () => {\r\n return (\r\n <div className=\"fade-in\">\r\n {this.renderInfo()}\r\n {this.renderError()}\r\n </div>\r\n )\r\n }\r\n\r\n /** Render the info about the promo code, or a text box to enter one */\r\n renderInfo = () => {\r\n const { promoCodeModel, currentPromoCode } = this.props\r\n\r\n if (currentPromoCode != null && promoCodeModel && promoCodeModel.promoCodeId > 0) {\r\n return (\r\n <PromoCodeInfo\r\n promoCodeRedirect={this.props.promoCodeRedirect}\r\n promoCodeDescription={currentPromoCode && currentPromoCode.description || ''}\r\n promoCodeText={this.props.promoCodeSuccessMessage}\r\n promoCodeTextTitle={currentPromoCode && currentPromoCode.title || ''}\r\n promoCodeText4={currentPromoCode && currentPromoCode.text4 || ''}\r\n promoCodeText5={currentPromoCode && currentPromoCode.text5 || ''}\r\n promoCodeText6={currentPromoCode && currentPromoCode.text6 || ''} />\r\n )\r\n }\r\n\r\n return (\r\n <PromoCodeTextBox\r\n promoCodeTitle={currentPromoCode && currentPromoCode.title || ''}\r\n applying={promoCodeModel && promoCodeModel.applying}\r\n promoErrorMessage={promoCodeModel && promoCodeModel.promoErrorMessage || ''}\r\n onApplyPromoClick={this.props.onApplyPromoClick}\r\n onCancelPromoClick={this.props.onCancelPromoClick}\r\n clearPromoErrorMessage={this.props.clearPromoCodeMessage}\r\n />\r\n )\r\n }\r\n\r\n /** Render the errors if any, either a conflict or general error */\r\n renderError = () => {\r\n if (this.props.promoCodeModel.promoConflict) {\r\n return (\r\n <PromoCodeConflict\r\n promoCode={this.props.promoCodeModel.promoCode}\r\n emptyCartButtonText={this.props.emptyCartButtonText}\r\n modalCancelButtonText={this.props.modalCancelButtonText}\r\n promoErrorMessage={this.props.promoCodeModel.promoErrorMessage}\r\n onCancelPromoClick={this.props.onCancelPromoClick}\r\n onEmptyCartClick={this.props.onEmptyCartClick} />\r\n )\r\n }\r\n\r\n if (this.props.promoCodeModel.promoErrorMessage) {\r\n return (\r\n <p className=\"promo-code-apply-error\" id=\"promo-code-error\">\r\n {this.props.promoCodeModel.promoErrorMessage}\r\n </p>\r\n );\r\n }\r\n }\r\n\r\n /** Show message if there's already cart contents, that they can't add a promo right now */\r\n renderMOSMessage = () => {\r\n return (\r\n <div className=\"filters-section\">\r\n <div className=\"filters-section-heading\">\r\n <p>{this.props.MOSMessage}</p>\r\n </div>\r\n </div>\r\n );\r\n }\r\n\r\n /** Invert the value of checked */\r\n onToggleChecked = () => {\r\n this.setState({ checked: !this.state.checked })\r\n }\r\n}\r\n\r\n/**\r\n * \r\n * @param state\r\n */\r\nconst mapStateToProps = (state: IAppState): IStateProps => ({\r\n promoCodeModel: state.promoCodeModel,\r\n currentPromoCode: state.appSettingsModel.currentPromoCode,\r\n altText: state.appSettingsModel.altText,\r\n emptyCartButtonText: state.appSettingsModel.emptyCartButtonText,\r\n enablePromoCodes: state.appSettingsModel.enablePromoCodes,\r\n modalCancelButtonText: state.appSettingsModel.modalCancelButtonText,\r\n promoCodeSuccessMessage: state.appSettingsModel.promoCodeSuccessMessage,\r\n promoCodeHeading: state.appSettingsModel.promoCodeTitle,\r\n showPromoCodeSectionOnPageLoad: state.appSettingsModel.showPromoCodeSectionOnPageLoad\r\n} as IStateProps)\r\n\r\n/**\r\n * \r\n * @param dispatch\r\n */\r\nconst mapDispatchToProps = (dispatch: Dispatch<AnyAction>, ownProps: IOwnProps): IDispatchProps => bindActionCreators({\r\n onApplyPromoClick: (promoCode: string) => applyPromoCode(promoCode, ownProps.culture, false),\r\n onCancelPromoClick: cancelPromoApply,\r\n onEmptyCartClick: (promoCode: string) => emptyCart(promoCode, ownProps.culture),\r\n onRemovePromoClick: () => removePromoCode(ownProps.culture, false),\r\n clearPromoCodeMessage: () => dispatch(errorPromoApply(\"\"))\r\n}, dispatch)\r\n\r\n\r\nexport default connect<IStateProps, IDispatchProps, IOwnProps>(mapStateToProps, mapDispatchToProps)(PromoCode)","import { string } from 'prop-types';\r\nimport * as React from 'react';\r\n\r\nexport interface IQuantitySelect {\r\n quantity: number;\r\n canAdd: boolean;\r\n canRemove: boolean;\r\n onSelectQuantity: (newQuantity: number) => void;\r\n componentClassName: string;\r\n componentFocusedClassName?: string;\r\n arialabel?: string;\r\n maxQuantity?: number;\r\n increaseLabel?: string;\r\n decreaseLabel?: string;\r\n};\r\n\r\ninterface IDataLoaderState {\r\n loadingText: string;\r\n showStopAnimationButton: boolean;\r\n showAnimation: boolean;\r\n timeout: any;\r\n isFocused: boolean;\r\n};\r\n\r\ninterface IQuantitySelectState { \r\n isFocused: boolean;\r\n};\r\n\r\nclass QuantitySelect extends React.PureComponent<IQuantitySelect, IQuantitySelectState> {\r\n\r\n static SmallStep: number = 1;\r\n static LargeStep: number = 5;\r\n\r\n static defaultProps = {\r\n maxQuantity: 99,\r\n increaseLabel: 'Increase',\r\n decreaseLabel: 'Decrease',\r\n componentFocusedClassName: 'focus-outline',\r\n arialabel: 'Quantity Select'\r\n }\r\n\r\n constructor(props) {\r\n super(props);\r\n this.handleKeyDown = this.handleKeyDown.bind(this);\r\n this.state = { \r\n isFocused: false\r\n };\r\n }\r\n\r\n handleFocus = () => {\r\n this.setState({ isFocused: true });\r\n };\r\n\r\n handleBlur = () => {\r\n this.setState({ isFocused: false });\r\n };\r\n\r\n handleKeyDown = (event: React.KeyboardEvent) => {\r\n const { canAdd, canRemove, maxQuantity } = this.props;\r\n\r\n switch (event.key) {\r\n case 'ArrowUp':\r\n case 'ArrowDown':\r\n case 'PageUp':\r\n case 'PageDown':\r\n case 'Home':\r\n case 'End':\r\n event.preventDefault();\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n switch (event.key) {\r\n case 'ArrowUp':\r\n if (canAdd) {\r\n this._onPlusClick();\r\n }\r\n break;\r\n case 'ArrowDown':\r\n if (canRemove) {\r\n this._onMinusClick();\r\n }\r\n break;\r\n case 'PageUp':\r\n if (canAdd) {\r\n this._largeStepUp();\r\n }\r\n break;\r\n case 'PageDown':\r\n if (canRemove) {\r\n this._largeStepDown();\r\n }\r\n break;\r\n case 'Home':\r\n if (canRemove) {\r\n this.props.onSelectQuantity(0);\r\n }\r\n break;\r\n case 'End':\r\n if (canAdd && maxQuantity) {\r\n this.props.onSelectQuantity(maxQuantity);\r\n }\r\n break;\r\n default:\r\n break;\r\n }\r\n };\r\n\r\n render() {\r\n const { isFocused } = this.state;\r\n const { componentClassName, componentFocusedClassName, canAdd, canRemove, decreaseLabel, quantity, increaseLabel, arialabel, maxQuantity } = this.props;\r\n\r\n return (\r\n <div className={`${componentClassName} ${isFocused ? componentFocusedClassName : ''}`}\r\n role=\"group\"\r\n tabIndex={0}\r\n aria-label={arialabel}\r\n onKeyDown={this.handleKeyDown}\r\n onFocus={this.handleFocus}\r\n onBlur={this.handleBlur}>\r\n\r\n {/* Decrease Button */}\r\n <button\r\n className=\"ticket-selection-quantity minus\"\r\n onClick={this._onMinusClick}\r\n disabled={!canRemove}\r\n tabIndex={-1}\r\n aria-label={decreaseLabel}\r\n > \r\n <svg role=\"presentation\" dangerouslySetInnerHTML={{ __html: '<use xlink:href=\"#icon-minus\" />' }} />\r\n </button>\r\n\r\n <div\r\n className=\"seat-info-prices-qty\"\r\n tabIndex={-1}\r\n aria-valuenow={quantity}\r\n role='spinbutton'\r\n aria-valuemin={0}\r\n aria-valuemax={maxQuantity} \r\n >\r\n {quantity}\r\n </div>\r\n\r\n {/* Increase Button */}\r\n <button\r\n className=\"ticket-selection-quantity\"\r\n onClick={this._onPlusClick}\r\n disabled={!canAdd}\r\n tabIndex={-1}\r\n aria-label={increaseLabel}\r\n > \r\n <svg role=\"presentation\" dangerouslySetInnerHTML={{ __html: '<use xlink:href=\"#icon-plus\" />' }} />\r\n </button>\r\n </div>\r\n );\r\n }\r\n\r\n _onPlusClick = () => {\r\n const { quantity, canAdd, onSelectQuantity } = this.props;\r\n\r\n if (canAdd) {\r\n const newQuantity = quantity + QuantitySelect.SmallStep;\r\n onSelectQuantity(newQuantity);\r\n }\r\n };\r\n\r\n _onMinusClick = () => {\r\n const { quantity, canRemove, onSelectQuantity } = this.props;\r\n\r\n if (canRemove) {\r\n const newQuantity = quantity - QuantitySelect.SmallStep;\r\n onSelectQuantity(newQuantity);\r\n }\r\n };\r\n\r\n _largeStepUp = () => {\r\n const { quantity, canAdd, maxQuantity, onSelectQuantity } = this.props;\r\n if (canAdd && maxQuantity) {\r\n const newQuantity = Math.min(quantity + QuantitySelect.LargeStep, maxQuantity);\r\n onSelectQuantity(newQuantity);\r\n }\r\n };\r\n\r\n _largeStepDown = () => {\r\n const { quantity, canRemove, maxQuantity, onSelectQuantity } = this.props;\r\n\r\n if (canRemove && maxQuantity) {\r\n const newQuantity = Math.max(quantity - QuantitySelect.LargeStep, 0);\r\n onSelectQuantity(newQuantity);\r\n }\r\n\r\n };\r\n}\r\n\r\nexport default QuantitySelect;","import { IOption, IOptionGroup } from \"../../classes/seating-option\";\r\nimport * as React from 'react';\r\nimport Radio from './radio';\r\n\r\ninterface IRadioGroupProps {\r\n key?: string;\r\n id?: string;\r\n stateChangeFunction: (options: Array<IOption>, groupId: string) => void;\r\n selectedOptions?: Array<IOption>;\r\n group: IOptionGroup\r\n disabled: boolean;\r\n}\r\n\r\n\r\ninterface IRadioGroupState {\r\n}\r\n\r\nclass RadioGroup extends React.PureComponent<IRadioGroupProps, IRadioGroupState> {\r\n\r\n constructor(props) {\r\n super(props);\r\n //this.state = { selectedOptions: props.selectedOptions };\r\n }\r\n\r\n //componentWillReceiveProps(nextProps) {\r\n // if (nextProps.selectedOptions !== undefined) {\r\n // this.setState({ selectedOptions: nextProps.selectedOptions });\r\n // }\r\n //}\r\n\r\n render() {\r\n return (\r\n <ul>\r\n {\r\n this.props.group.options.filter(option => option.name != null && option.name.length > 0).map(option => {\r\n // Mark if a selected option is in this option group.\r\n //let match = this.state.selectedOptions != null ?\r\n // _.some(this.state.selectedOptions, seatingOption => option.id === seatingOption.id) : false;\r\n\r\n return <Radio disabled={this.props.disabled} key={option.id}\r\n onChangeFunction={this._selectOption}\r\n checked={option.selected} option={option} optionGroup={this.props.group} />\r\n }, this)\r\n }\r\n </ul>\r\n );\r\n }\r\n\r\n _selectOption = (option: IOption) => {\r\n this.props.group.options.map(option => {\r\n option.selected = false;\r\n return option;\r\n })\r\n\r\n option.selected = true;\r\n let newSeatingOptions = [option];\r\n\r\n this.props.stateChangeFunction(newSeatingOptions, this.props.group.id)\r\n }\r\n}\r\n\r\nexport default RadioGroup;","import * as React from 'react';\r\nimport { IOption, IOptionGroup } from \"../../classes/seating-option\";\r\nimport { formatId } from '../../helpers/string-format';\r\n\r\ninterface IRadioProps{\r\n key: string;\r\n onChangeFunction: (IOption, IOptionGroup) => any;\r\n checked: boolean;\r\n\r\n option: IOption;\r\n optionGroup: IOptionGroup;\r\n disabled: boolean;\r\n}\r\n\r\nclass Radio extends React.Component<IRadioProps, any> {\r\n render() {\r\n const validId = `r_${formatId(this.props.option.id)}`;\r\n return (\r\n <li className=\"form-item\">\r\n <input type=\"radio\" disabled={this.props.disabled} name={this.props.optionGroup.name} value={this.props.option.id} id={validId}\r\n onClick={() => { this.props.onChangeFunction(this.props.option, this.props.optionGroup) } }\r\n checked={this.props.checked}/>\r\n <label htmlFor={validId} dangerouslySetInnerHTML={{ __html: this.props.option.name }}></label>\r\n </li>\r\n );\r\n }\r\n}\r\n\r\nexport default Radio;","import * as React from 'react';\r\nimport QuantitySelect from '../quantity-select/quantity-select';\r\n\r\ninterface IQuantitySelectProps {\r\n displayText: string;\r\n messageText: string;\r\n startingAtText: string;\r\n priceTypeMaxError: string;\r\n quantity: number;\r\n priceTypeId: number;\r\n canAdd: boolean;\r\n canRemove: boolean;\r\n priceTypeMaxReached: boolean;\r\n onSelectQuantity: (quantity: number, priceType: number) => void;\r\n feeAmount?: string;\r\n maxQuantity?: number;\r\n}\r\n\r\nclass PriceTypeQuantitySelect extends React.PureComponent<IQuantitySelectProps, any>{\r\n\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n render() {\r\n const useTagAlert = '<use xlink:href=\"#icon-alert\" />';\r\n\r\n return (\r\n <>\r\n <div className=\"seat-info-prices-type-list-inner\">\r\n <div className=\"seat-info-prices-type\">\r\n <h3 className=\"h6-style\">{this.props.displayText}</h3>\r\n {\r\n this.props.startingAtText.length > 0 ?\r\n <p className=\"caption-paragraph\">{this.props.startingAtText}</p> :\r\n null\r\n }\r\n {\r\n !!this.props.feeAmount && <div className=\"small-italic\" dangerouslySetInnerHTML={{ __html: this.props.feeAmount }} />\r\n }\r\n {\r\n this.props.messageText.length > 0 ?\r\n <p className=\"caption-paragraph\">{this.props.messageText}</p>\r\n : null\r\n }\r\n\r\n </div>\r\n\r\n <QuantitySelect\r\n componentClassName=\"seat-info-prices-button\"\r\n canAdd={this.props.canAdd}\r\n canRemove={this.props.canRemove}\r\n onSelectQuantity={this._onSelectQuantity}\r\n quantity={this.props.quantity}\r\n maxQuantity={this.props.maxQuantity}\r\n arialabel={`${this.props.displayText ? (this.props.displayText + '-') : ''} ${this.props.startingAtText}`}\r\n />\r\n </div>\r\n\r\n {this.props.priceTypeMaxReached && (this.props.priceTypeMaxError !== null && this.props.priceTypeMaxError.length > 0) ?\r\n <div className=\"ticket-selection-quantity-max-message\">\r\n <svg className=\"ticket-selection-quantity-max-alert\" dangerouslySetInnerHTML={{ __html: useTagAlert }} />\r\n\r\n {\r\n this.isHtmlPrompt(this.props.priceTypeMaxError) ?\r\n <div className=\"rich-text\" dangerouslySetInnerHTML={{ __html: this.props.priceTypeMaxError }}></div>\r\n :\r\n <p>\r\n {this.props.priceTypeMaxError}\r\n </p>\r\n }\r\n\r\n </div>\r\n : null\r\n }\r\n\r\n </>);\r\n }\r\n\r\n isHtmlPrompt(message: string): boolean {\r\n if (message === null)\r\n return false;\r\n return message.substr(0, 4) === \"<div\";\r\n }\r\n\r\n _onSelectQuantity = (quantity) => {\r\n this.props.onSelectQuantity(quantity, this.props.priceTypeId);\r\n };\r\n\r\n}\r\n\r\nexport default PriceTypeQuantitySelect;","import * as React from 'react';\r\nimport { isBelowSidebarWidth } from './../../helpers/is-mobile';\r\n\r\ninterface IProps {\r\n visibleChildKey: string\r\n children: React.ReactElement<React.Props<any>>[]\r\n closeOverlays: () => void\r\n isMobile: boolean\r\n}\r\n\r\nexport default class Sidebar extends React.Component<IProps> {\r\n private activeSidebarRef: React.RefObject<HTMLElement>;\r\n private allFocusable;\r\n private isBelowSidebarWidth: boolean;\r\n\r\n constructor(props) {\r\n super(props);\r\n this.activeSidebarRef = React.createRef<HTMLElement>();\r\n this.isBelowSidebarWidth = isBelowSidebarWidth();\r\n }\r\n\r\n componentDidMount() {\r\n window.addEventListener('keydown', this.handleTabsandEsc.bind(this));\r\n }\r\n\r\n componentWillUnmount() {\r\n window.removeEventListener('keydown', this.handleTabsandEsc.bind(this));\r\n }\r\n\r\n componentDidUpdate(nextProps: IProps) {\r\n if (this.activeSidebarRef.current) {\r\n this.allFocusable = this.getAllFocusable();\r\n\r\n // If the sidebar has changed, move focus to the first item in the current sidebar (a heading with tabindex of -1)\r\n if (this.props.visibleChildKey !== nextProps.visibleChildKey && this.props.isMobile) {\r\n this.getHeadingTarget()?.focus();\r\n }\r\n }\r\n }\r\n\r\n private getHeadingTarget() {\r\n return this.activeSidebarRef.current.querySelector('[tabindex=\"-1\"]') as HTMLElement;\r\n }\r\n\r\n private getAllFocusable() {\r\n return [].slice.call(this.activeSidebarRef.current.querySelectorAll('input, button, a')) as HTMLInputElement[]|HTMLButtonElement[]|HTMLAnchorElement[];\r\n }\r\n\r\n private handleTabsandEsc(e: KeyboardEvent) {\r\n if (this.props?.visibleChildKey && this.props.isMobile) {\r\n const pressed = e.code.toLowerCase();\r\n if (pressed === \"escape\") {\r\n this.props.closeOverlays();\r\n }\r\n else if (pressed === \"tab\" && e.shiftKey) {\r\n // backwards tab\r\n if (document.activeElement === this.allFocusable[0]) {\r\n e.preventDefault();\r\n this.allFocusable[this.allFocusable.length - 1].focus();\r\n }\r\n }\r\n else if (pressed === \"tab\") {\r\n // forwards tab\r\n if (document.activeElement === this.allFocusable[this.allFocusable.length - 1]) {\r\n e.preventDefault();\r\n this.allFocusable[0].focus();\r\n }\r\n }\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n <React.Fragment>\r\n {this.props.children.map(this.renderChild)}\r\n </React.Fragment>\r\n )\r\n }\r\n\r\n renderChild = (child: React.ReactElement<React.Props<any>>, index: number) => {\r\n const divClassName = 'seatmap-content-info ' + 'sidebar-' + index + (child && child.key === this.props.visibleChildKey ? ' filters-open' : '')\r\n return (\r\n // TEMP until we upgrade to a version of Typescript that includes \"inert\" attribute\r\n // @ts-ignore\r\n <div key={index} className={divClassName} inert={(child && child.key === this.props.visibleChildKey) || (this.isBelowSidebarWidth && !this.props.isMobile) ? null : ''} ref={child && child.key === this.props.visibleChildKey ? this.activeSidebarRef : null}>\r\n {child}\r\n </div>\r\n )\r\n\r\n }\r\n}","import * as React from \"react\";\r\n\r\nexport default function asyncComponent(importComponent) {\r\n class AsyncComponent extends React.PureComponent<any, any> {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.state = {\r\n component: null\r\n };\r\n }\r\n\r\n async componentDidMount() {\r\n const { default: component } = await importComponent();\r\n\r\n this.setState({\r\n component: component\r\n });\r\n }\r\n\r\n render() {\r\n const C = this.state.component;\r\n\r\n return C ? <C { ...this.props } /> : null;\r\n }\r\n }\r\n\r\n return AsyncComponent;\r\n}","import find from 'lodash/find';\r\nimport isEqual from 'react-fast-compare';\r\nimport maxBy from 'lodash/maxBy';\r\nimport minBy from 'lodash/minBy';\r\n\r\nimport { ActionType, ActionTypes } from '../../actions/index';\r\nimport { PriceType } from '../../classes/price-type';\r\nimport { IExchangeTicket } from '../../classes/ticket-exchange';\r\nimport { IAppState } from '../../reducers/index';\r\nimport { fetchSeatMatches } from './filter-fetch';\r\n\r\nexport interface IFilterStateAction {\r\n type: ActionType;\r\n value?: any;\r\n}\r\n\r\n/*\r\n * action creators\r\n */\r\n\r\nexport function ADAOnlySeatsModalProceedClick(result) {\r\n return {\r\n type: ActionTypes.ADA_ONLY_SEATS_PROCEED_CLICK,\r\n value: result\r\n }\r\n}\r\n\r\nexport function selectSeatingOptions(seatingOptionGroupId: string, seatingOptions: Array<any>, seatingOptionToggle: boolean) {\r\n return (dispatch, state) => {\r\n let nextState: IAppState = state();\r\n let selectedOptionGroup = nextState.additionalSeatingOptionModel.additionalSeatingOptions.filter(options => options.id == seatingOptionGroupId);\r\n\r\n if (selectedOptionGroup.length > 0 && selectedOptionGroup[0].groupSeatSelectedQuantity === 0) {\r\n dispatch({ type: ActionTypes.ADD_ADDITIONAL_SEATING_OPTION_QUANTITY, value: { seatingOptionGroupId, quantity: 1 } });\r\n }\r\n dispatch({ type: ActionTypes.ADD_ADDITIONAL_SEATING_OPTION_IDS, value: { seatingOptionGroupId, selectedOptions: seatingOptions, seatingOptionToggle } });\r\n dispatch(fetchSeatMatches());\r\n }\r\n}\r\n\r\nexport function selectSeatingOptionQuantity(seatingOptionGroupId: string, quantity: number) {\r\n return (dispatch, state) => {\r\n dispatch({ type: ActionTypes.ADD_ADDITIONAL_SEATING_OPTION_QUANTITY, value: { seatingOptionGroupId, quantity } });\r\n dispatch(fetchSeatMatches());\r\n }\r\n}\r\n\r\nexport function selectPriceTypeTicketsWithSeatingOption(priceTypeId: number, seatingOptionGroupId: string, quantity: number, updatePriceRange: boolean, activeExchangeTickets: Array<IExchangeTicket>, trackGAEvent: boolean) {\r\n return (dispatch, state) => {\r\n dispatch({\r\n type: ActionTypes.SELECT_PRICE_TYPE_TICKETS, value: { priceTypeId, quantity }, unTrackEvent: !trackGAEvent\r\n });\r\n\r\n dispatch({ type: ActionTypes.ADD_ADDITIONAL_SEATING_OPTION_QUANTITY, value: { seatingOptionGroupId, quantity } });\r\n\r\n dispatch(setPriceRange(updatePriceRange, activeExchangeTickets, []));\r\n dispatch(fetchSeatMatches());\r\n };\r\n}\r\nexport function updateAdditionalNotes(additionalNotes: string) {\r\n return {\r\n type: ActionTypes.UPDATE_ADDITIONAL_NOTES,\r\n value: additionalNotes\r\n }\r\n}\r\n\r\nexport function clearAdditionalSeatRequest() {\r\n return (dispatch, state) => {\r\n let currentState: IAppState = state();\r\n dispatch({ type: ActionTypes.CLEAR_ADDITIONAL_SEAT_REQUEST });\r\n let nextState: IAppState = state();\r\n\r\n if (!isEqual(currentState, nextState))\r\n dispatch(fetchSeatMatches());\r\n }\r\n}\r\n\r\nexport function removeSeatingOptionGroup(seatingOptionGroupId: string) {\r\n return (dispatch, state) => {\r\n dispatch({ type: ActionTypes.REMOVE_ADDITIONAL_SEATING_OPTION, value: seatingOptionGroupId });\r\n dispatch(fetchSeatMatches());\r\n }\r\n}\r\n\r\nexport function selectPriceTypeTickets(priceTypeId: number, quantity: number, updatePriceRange: boolean, activeExchangeTickets: Array<IExchangeTicket>, trackGAEvent: boolean) {\r\n return (dispatch, state) => {\r\n dispatch({\r\n type: ActionTypes.SELECT_PRICE_TYPE_TICKETS, value: { priceTypeId, quantity }, unTrackEvent: !trackGAEvent\r\n });\r\n\r\n dispatch(setPriceRange(updatePriceRange, activeExchangeTickets, []));\r\n dispatch(fetchSeatMatches());\r\n };\r\n}\r\n\r\nexport function setPriceRange(updatePriceRange: boolean, activeExchangeTickets: Array<IExchangeTicket>, priceTypesToUse: Array<PriceType>) {\r\n return (dispatch, state) => {\r\n let currentState: IAppState = state();\r\n\r\n let priceTypes = currentState.appSettingsModel.priceTypeSettings as Array<PriceType>;\r\n let defaultPriceType = find(priceTypes, 'isDefault');\r\n\r\n if (defaultPriceType === undefined && priceTypes.length > 0) {\r\n defaultPriceType = priceTypes[0];\r\n }\r\n\r\n let combinedPriceTypes = currentState.priceTypesModel.priceTypes.filter(pt => pt.selectedQuantity > 0).concat(defaultPriceType);\r\n\r\n if (priceTypesToUse.length > 0) {\r\n combinedPriceTypes = priceTypesToUse;\r\n }\r\n\r\n let min = minBy(combinedPriceTypes, pt => { return pt.minTotalPrice });\r\n let max = maxBy(combinedPriceTypes, pt => { return pt.maxTotalPrice });\r\n\r\n //if (activeExchangeTickets.length > 0) {\r\n // min.minPrice = calculateExchangePrice(min.minPrice, activeExchangeTickets);\r\n // max.maxPrice = calculateExchangePrice(max.maxPrice, activeExchangeTickets);\r\n //}\r\n dispatch({\r\n type: ActionTypes.UPDATE_MIN_MAX_PRICE_RANGE, value: { min, max, updatePriceRange }\r\n });\r\n };\r\n}\r\n\r\nexport function toggleSeatSeparation(toggleFlag: boolean) {\r\n return (dispatch, state) => {\r\n dispatch({ type: ActionTypes.TOGGLE_SEAT_SEPARATION, value: toggleFlag });\r\n dispatch(fetchSeatMatches());\r\n };\r\n}\r\n\r\nexport function toggleAisleAccess(toggleFlag: boolean) {\r\n return (dispatch, state) => {\r\n dispatch({ type: ActionTypes.TOGGLE_AISLE_ACCESS, value: toggleFlag });\r\n dispatch(fetchSeatMatches());\r\n };\r\n}\r\n\r\nexport function loadPriceTypeFilters(priceTypes: Array<PriceType>, useOnlyPromoPriceType) {\r\n return (dispatch, state) => {\r\n dispatch({ type: ActionTypes.LOAD_PRICE_TYPES, value: { priceTypes, useOnlyPromoPriceType } });\r\n priceTypes.forEach(pt => {\r\n if (pt.clientMinQuantity > 0) {\r\n dispatch(selectPriceTypeTickets(pt.priceTypeId, pt.clientMinQuantity, false, [], false));\r\n }\r\n if (pt.defaultSelectedQuantity > 0 && pt.defaultSelectedQuantity > pt.clientMinQuantity)\r\n dispatch(selectPriceTypeTickets(pt.priceTypeId, pt.defaultSelectedQuantity, false, [], false));\r\n });\r\n };\r\n}\r\n\r\nexport function loadPriceRangeFilters(priceTypes, useOnlyPromoPriceType) {\r\n return (dispatch, state) => {\r\n dispatch({ type: ActionTypes.LOAD_DEFAULT_PRICE_RANGE, value: { priceTypes, useOnlyPromoPriceType } });\r\n };\r\n}\r\n\r\nexport function loadAdditionalSeatingOptions(additionalSeatingOptions, renderAisleSeatToggle) {\r\n return (dispatch, state) => {\r\n var additionSeatingOptionModel = {\r\n additionalSeatingOptions: additionalSeatingOptions,\r\n renderAisleSeatToggle: renderAisleSeatToggle\r\n };\r\n\r\n dispatch({\r\n type: ActionTypes.LOAD_ADDITIONAL_SEAT_REQUESTS, value: additionSeatingOptionModel\r\n });\r\n }\r\n}\r\n\r\nexport function selectVenueLevel(levelNumber: number) {\r\n return (dispatch, state) => {\r\n dispatch({ type: ActionTypes.TOGGLE_VENUE_LEVEL, value: levelNumber });\r\n dispatch(fetchSeatMatches());\r\n };\r\n}\r\n\r\nexport function resetVenueLevels() {\r\n return (dispatch, state) => {\r\n dispatch({ type: ActionTypes.RESET_VENUE_LEVELS });\r\n dispatch(fetchSeatMatches());\r\n };\r\n}\r\n\r\nexport function loadVenueLevelFilters(venueLevels) {\r\n return (dispatch, state) => {\r\n dispatch({ type: ActionTypes.LOAD_VENUE_LEVELS, value: venueLevels });\r\n };\r\n}","import { createFilterRequest } from '../../actions/fetch';\r\nimport { ActionType, ActionTypes } from '../../actions/index';\r\nimport { ISeatMatchRequestModel } from '../../classes/request-model';\r\nimport { SeatInfo } from '../../classes/seat';\r\nimport { getSelectedTicketCount } from '../../helpers/price-type-helpers';\r\nimport { IAppState } from '../../reducers/index';\r\n\r\nexport interface IFetchStateAction {\r\n type: ActionType;\r\n value?: any;\r\n}\r\n\r\nfunction requestSeatMatches(requestModel: ISeatMatchRequestModel) {\r\n return {\r\n type: ActionTypes.REQUEST_SEATS,\r\n value: requestModel\r\n }\r\n}\r\n\r\nfunction receiveSeatMatches(result) {\r\n return {\r\n type: ActionTypes.RECEIVE_SEATS,\r\n value: result\r\n }\r\n}\r\n\r\nfunction setSeatMatchCount( count: number, isOnlyADASeats: boolean, suggestedSeats: Array<SeatInfo>) {\r\n return {\r\n type: ActionTypes.SET_MATCHED_COUNT,\r\n value: { count: count, onlyADASeats: isOnlyADASeats, suggestedSeats: suggestedSeats }\r\n };\r\n}\r\n\r\nfunction updateSeatMatch(requestModel: ISeatMatchRequestModel, seatmapId: string) {\r\n return fetch(`${window.location.origin}/api/seating/GetSeatsAvailable`,\r\n {\r\n method: \"POST\",\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n Accept: 'application/json',\r\n },\r\n body: JSON.stringify({\r\n itemType: requestModel.itemType,\r\n itemId: requestModel.itemId,\r\n minPrice: requestModel.minPrice,\r\n maxPrice: requestModel.maxPrice,\r\n //quantity: requestModel.seatQuantity,\r\n allowSeparatedSeats: requestModel.allowSeparatedSeats,\r\n priceTypeQuantities: requestModel.requestedPriceTypes.filter(pt => { return pt.quantity > 0 }),\r\n venueLevels: requestModel.selectedVenueLevels,\r\n selectedAllLevels: requestModel.selectedAllLevels,\r\n allowAisleAccessSelected: requestModel.allowAisleAccessSelected,\r\n additionalSeatingOptions: requestModel.additionalSeatingOptions,\r\n language: requestModel.language,\r\n invalidateCache: requestModel.invalidateCache\r\n }),\r\n credentials: 'same-origin'\r\n })\r\n .then(response => {\r\n if (response.ok) {\r\n return response.json();\r\n } else {\r\n return \"ERROR\";\r\n }\r\n })\r\n .catch(error => {\r\n console.error(error);\r\n });\r\n}\r\n\r\nexport function fetchSeatMatches(clearCache?: boolean) {\r\n return (dispatch, state) => {\r\n let currentState: IAppState = state();\r\n \r\n const seatMatchRequest = createFilterRequest(currentState, clearCache);\r\n if (getSelectedTicketCount(currentState.priceTypesModel) > 0) {\r\n\r\n dispatch(requestSeatMatches(seatMatchRequest));\r\n updateSeatMatch(seatMatchRequest, '').then((response: any) => {\r\n if (response === \"ERROR\") {\r\n dispatch(receiveSeatMatches(currentState.appSettingsModel.filterErrorToast));\r\n } else {\r\n if (response.seatsAvailable && isNaN(response.seatsAvailable)) {\r\n console.error('Seat match has returned a non-number value.');\r\n }\r\n\r\n dispatch(receiveSeatMatches(fetchToastText(response.seatsAvailable, currentState.appSettingsModel.filterToastThreshold, currentState.appSettingsModel.filterFoundToast)));\r\n dispatch(setSeatMatchCount(response.seatsAvailable, response.onlyADASeats, response.suggestedSeats));\r\n }\r\n });\r\n }\r\n }\r\n}\r\n\r\nfunction fetchToastText(response, filterThreshold, filterFoundToast) {\r\n if ((filterThreshold == '' || !isNaN(response)) && (Number(response) <= Number(filterThreshold)))\r\n return response + ' ' + filterFoundToast;\r\n return filterThreshold + '+ ' + filterFoundToast;\r\n}\r\n","import find from 'lodash/find';\r\nimport findLast from 'lodash/findLast';\r\nimport flatMap from 'lodash/flatMap';\r\nimport uniq from 'lodash/uniq';\r\nimport { ActionTypes } from '../../actions/index';\r\nimport { IAppState } from '../../reducers/index';\r\nimport { fetchSeatMatches } from './filter-fetch';\r\n\r\n\r\nexport function clearPriceRange(minPrice: number, maxPrice: number) {\r\n return (dispatch, state) => {\r\n dispatch({ type: ActionTypes.PRICE_RANGE_CLEAR, value: { minPrice: minPrice, maxPrice: maxPrice } });\r\n dispatch(fetchSeatMatches());\r\n }\r\n}\r\n\r\nexport function selectMinPrice(minPrice: number) {\r\n return (dispatch, state) => {\r\n let didPricePointChange = findPriceRange(state, minPrice, false);\r\n\r\n dispatch({ type: ActionTypes.SELECT_MIN_PRICE, value: minPrice });\r\n\r\n if (didPricePointChange) {\r\n dispatch(fetchSeatMatches());\r\n }\r\n };\r\n}\r\n\r\nexport function selectMaxPrice(maxPrice: number) {\r\n return (dispatch, state) => {\r\n let didPricePointChange = findPriceRange(state, maxPrice, true);\r\n\r\n dispatch({ type: ActionTypes.SELECT_MAX_PRICE, value: maxPrice });\r\n\r\n if (didPricePointChange) {\r\n dispatch(fetchSeatMatches());\r\n }\r\n };\r\n}\r\n\r\nfunction findPriceRange(state, newPrice: number, isMaxPrice: boolean) {\r\n let currentState: IAppState = state();\r\n\r\n let uniquePrices = uniq(flatMap(currentState.appSettingsModel.priceTypeSettings, pt => { return pt.prices }));\r\n let sortedPrices = uniquePrices.sort((a, b) => { return a - b });\r\n\r\n if (isMaxPrice) {\r\n const lastMaxPricePoint = find(sortedPrices, price => { return price >= currentState.priceRangeModel.maxPrice });\r\n const currentMaxPricePoint = find(sortedPrices, price => { return price >= newPrice });\r\n\r\n if (lastMaxPricePoint === currentMaxPricePoint) {\r\n return false;\r\n }\r\n } else {\r\n const lastMinPricePoint = findLast(sortedPrices, price => { return price < currentState.priceRangeModel.minPrice });\r\n const currentMinPricePoint = findLast(sortedPrices, price => { return price < newPrice });\r\n\r\n if (lastMinPricePoint === currentMinPricePoint) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n}","import { ActionTypes } from '../../actions/index';\r\nimport { openApplyPromoCodeConfirmModal } from '../../cart/actions/cart-actions';\r\nimport { ItemType } from '../../classes/item-type';\r\nimport { deleteSeatRequest } from '../../helpers/local-storage-helpers';\r\nimport { getParameterByName, removeParameterByName } from '../../helpers/query-string-helpers';\r\nimport { IAppState } from '../../reducers/index';\r\nimport { fetchSeatMap } from '../../seatmap/actions/seatmap-fetch';\r\n\r\nenum PromoFailure {\r\n PROMO_CONFLICT,\r\n PROMO_FAILURE\r\n}\r\nexport function _applyPromoCode(promoCode: string) {\r\n return {\r\n type: ActionTypes.APPLY_PROMO,\r\n value: promoCode\r\n }\r\n}\r\n\r\nexport function loadPromoCode(promoCode) {\r\n return (dispatch, state) => {\r\n dispatch({ type: ActionTypes.LOAD_PROMO, value: promoCode });\r\n };\r\n}\r\n\r\n\r\nexport function errorPromoApply(message: string) {\r\n return {\r\n type: ActionTypes.PROMO_ERROR,\r\n value: message\r\n }\r\n}\r\n\r\nfunction errorPromoConflict(message: string) {\r\n return {\r\n type: ActionTypes.PROMO_CONFLICT,\r\n value: message\r\n }\r\n}\r\n\r\nexport function cancelPromoApply() {\r\n return {\r\n type: ActionTypes.CANCEL_PROMO,\r\n }\r\n}\r\n\r\nfunction _removePromoCode() {\r\n return {\r\n type: ActionTypes.REMOVE_PROMO,\r\n }\r\n}\r\n\r\nfunction emptiedCart() {\r\n return {\r\n type: ActionTypes.EMPTIED_CART,\r\n }\r\n}\r\n\r\nexport function emptyCart(promoCode: string, culture: string) {\r\n return (dispatch, state) => {\r\n sendEmptyAndApplyRequest(promoCode, culture).then((response: any) => {\r\n handlePromoApplicationResult(response, dispatch, state, true);\r\n });\r\n }\r\n}\r\n\r\nfunction sendEmptyAndApplyRequest(promoCode: string, culture: string) {\r\n return fetch(`${window.location.origin}/api/seating/EmptyCartAndApply?promoCode=${promoCode}&culture=${culture}`,\r\n {\r\n method: \"GET\",\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n Accept: 'application/json',\r\n },\r\n credentials: 'same-origin'\r\n })\r\n .then(response => {\r\n if (response.ok) {\r\n return response.json();\r\n } else {\r\n return \"ERROR\";\r\n }\r\n })\r\n .catch(error => {\r\n console.error(error);\r\n });\r\n}\r\n\r\nfunction sendApplyPromoRequest(promoCode: string, culture: string, itemNumber: number, itemType: ItemType) {\r\n var request = `${window.location.origin}/api/seating/ApplyPromoCode?promoCode=${encodeURIComponent(promoCode)}&culture=${encodeURIComponent(culture)}&itemNumber=${itemNumber}&itemType=${itemType}`;\r\n if (promoCode.length === 0) {\r\n request = `${window.location.origin}/api/seating/RemovePromoCode?culture=${culture}&itemNumber=${itemNumber}&itemType=${itemType}`;\r\n }\r\n return fetch(request,\r\n {\r\n method: \"GET\",\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n Accept: 'application/json',\r\n },\r\n credentials: 'same-origin'\r\n })\r\n .then(response => {\r\n if (response.ok) {\r\n return response.json();\r\n } else {\r\n return \"ERROR\";\r\n }\r\n })\r\n .catch(error => {\r\n console.error(error);\r\n });\r\n}\r\n\r\n// don't need itemNumber, itemType, and selectedPriceTypes unless for seat map apply promos\r\nexport function applyPromoCode(promoCode: string, culture: string, confirm: boolean, itemNumber: number = null, itemType: ItemType = null) {\r\n return (dispatch, state) => {\r\n const currState = (state() as IAppState);\r\n if (!confirm && (currState.cartModel.seats.length > 0\r\n // are there seats on another level. If there are we will reload this level \r\n // and won't be able to match zones so those seats will be removed\r\n || currState.cartModel.seats.filter(cS =>\r\n currState.seatMapModel.allSeatPricing.map(pr => pr.zoneId)\r\n .indexOf(cS.selectedPricing.zoneId) < 0).length > 0\r\n )) {\r\n dispatch(openApplyPromoCodeConfirmModal(promoCode));\r\n } else {\r\n dispatch(_applyPromoCode(promoCode));\r\n sendApplyPromoRequest(promoCode, culture, itemNumber, itemType).then((response: any) => {\r\n handlePromoApplicationResult(response, dispatch, state, promoCode.length > 0 ? false : true);\r\n });\r\n }\r\n }\r\n}\r\n\r\n// don't need itemNumber, itemType, and selectedPriceTypes unless for seat map apply promos\r\nexport function removePromoCode(culture: string, confirm: boolean, itemNumber: number = null, itemType: ItemType = null) {\r\n return (dispatch, state) => {\r\n if (!confirm && (state() as IAppState).cartModel.seats.length > 0) {\r\n dispatch(openApplyPromoCodeConfirmModal(\"\"));\r\n } else {\r\n dispatch(_removePromoCode());\r\n sendApplyPromoRequest(\"\", culture, itemNumber, itemType).then((response: any) => {\r\n handlePromoApplicationResult(response, dispatch, state, true);\r\n });\r\n }\r\n }\r\n}\r\n\r\nfunction handlePromoApplicationResult(response, dispatch, state, remove: boolean) {\r\n if (response.success) {\r\n const currState = (state() as IAppState);\r\n const appSettings = currState.appSettingsModel;\r\n deleteSeatRequest(appSettings.itemId, appSettings.itemType);\r\n\r\n if (currState.seatMapModel.seatmapId != null && currState.cartModel.seats.length > 0) {\r\n dispatch(fetchSeatMap(currState.seatMapModel.seatmapId, currState.cartModel.seats, true, response.promoPriceTypeMapping));\r\n } else {\r\n if (remove && (getParameterByName('promo') != null && getParameterByName('promo').length > 0)) {\r\n const updatedUrl = removeParameterByName('promo');\r\n window.location.href = updatedUrl;\r\n } else {\r\n window.location.reload();\r\n }\r\n }\r\n }\r\n else if (!response.success && response.promoFailure === PromoFailure.PROMO_FAILURE) {\r\n dispatch(errorPromoApply(response.errorMessage));\r\n } else if (response.promoFailure === PromoFailure.PROMO_CONFLICT) {\r\n dispatch(errorPromoConflict(response.errorMessage));\r\n }\r\n\r\n}\r\n","import * as React from 'react';\r\nimport { ItemType } from '../../classes/item-type';\r\nimport FilterPageHeader from './filter-page-header';\r\n\r\ninterface IFilterPageHeaderContainerProps {\r\n itemType: ItemType;\r\n subscriptionFilterPageHeaderTitle: string;\r\n subscriptionFilterPageHeaderMessage: string;\r\n filterPageHeaderTitle: string;\r\n filterPageHeaderMessage: string;\r\n}\r\n\r\nclass FilterPageHeaderContainer extends React.PureComponent<IFilterPageHeaderContainerProps, any>{\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n render() {\r\n if (this.props.itemType === ItemType.Flex\r\n || this.props.itemType === ItemType.Fixed\r\n || this.props.itemType === ItemType.Super) {\r\n return (\r\n <FilterPageHeader title={this.props.subscriptionFilterPageHeaderTitle}\r\n message={ this.props.subscriptionFilterPageHeaderMessage }\r\n />\r\n );\r\n } else if (this.props.filterPageHeaderTitle.length > 0 || this.props.filterPageHeaderMessage.length > 0) {\r\n return (\r\n <FilterPageHeader title={this.props.filterPageHeaderTitle}\r\n message={this.props.filterPageHeaderMessage}\r\n />\r\n );\r\n } else return null;\r\n }\r\n}\r\n\r\nexport default FilterPageHeaderContainer;","import * as React from 'react';\r\nimport { Html } from '../../helpers/html-helpers';\r\n\r\ninterface IFilterPageHeaderProps {\r\n title: string;\r\n message: string;\r\n}\r\n\r\nclass FilterPageHeader extends React.PureComponent<IFilterPageHeaderProps, any>{\r\n render() {\r\n const { title, message } = this.props;\r\n\r\n return (\r\n <section className=\"filters-section\">\r\n <div className=\"filters-section-heading contains-btn\">\r\n <h2 className=\"heading-general\">{title}</h2>\r\n </div>\r\n {Html.renderParagraph(message, \"caption-paragraph\")}\r\n </section>\r\n );\r\n }\r\n}\r\n\r\nexport default FilterPageHeader;","import * as React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport {fetchSeatMatches} from '../actions/filter-fetch';\r\nimport {ISeatMatchResultModel} from '../reducers/fetch-reducer';\r\n\r\ninterface IFilterResults {\r\n loadedResults: boolean;\r\n filterSearchingToast: string;\r\n numberOfTicketOptions: number;\r\n requesting: boolean;\r\n}\r\n\r\nclass FilterResults extends React.PureComponent<IFilterResults, any>{\r\n\r\n render() {\r\n return (\r\n <div className=\"seats-available-toast-container\">\r\n {this.props.loadedResults ?\r\n <div className=\"seats-available-container fade-in\">\r\n <p className={\"seats-available-text\"} aria-live=\"polite\">{this.props.numberOfTicketOptions}</p>\r\n </div>\r\n : null\r\n }\r\n {this.props.requesting ?\r\n <div className=\"seats-available-container fade-in\">\r\n <p className='seats-available-loading-visible'>{this.props.filterSearchingToast}</p>\r\n </div>\r\n : null\r\n }\r\n </div>\r\n );\r\n }\r\n\r\n}\r\n\r\nexport default FilterResults;\r\n","import * as React from 'react';\r\nimport { Html } from '../../helpers/html-helpers';\r\n\r\nexport interface IGroupSeatingMessageProps {\r\n groupTicketMessaging: string;\r\n alertComponent: boolean;\r\n}\r\n\r\nclass GroupSeatingMessage extends React.PureComponent<IGroupSeatingMessageProps, any>{\r\n useTagAlert = '<use xlink:href=\"#icon-alert\" />';\r\n\r\n render() {\r\n return (\r\n <div className={`group-messaging-section ${(this.props.alertComponent ? \"alert\" : \"\")}`}>\r\n {this.props.alertComponent ?\r\n <svg className=\"ticket-selection-quantity-max-alert\" dangerouslySetInnerHTML={{ __html: this.useTagAlert }} />\r\n : null\r\n }\r\n {Html.renderParagraph(this.props.groupTicketMessaging, \"caption-paragraph\")}\r\n </div>\r\n );\r\n }\r\n}\r\n\r\nexport default GroupSeatingMessage;","import * as React from 'react';\r\nimport { getCurrencyFormat } from '../../helpers/currency-format';\r\n\r\ninterface IPackagesProgressHeaderProps {\r\n packageTotalCount: number;\r\n currentItemIndex: number;\r\n packageProgressMessage: string;\r\n venueName: string;\r\n showPackageProgressBar: boolean;\r\n showComponent: boolean;\r\n seatQuantityText: string;\r\n packagePriceText: string;\r\n flexInstructions: string;\r\n currencyFormat: string;\r\n packageTotalPrice: number;\r\n selectedQuantity: number;\r\n}\r\n\r\nclass PackagesProgressHeader extends React.PureComponent<IPackagesProgressHeaderProps, any>{\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n render() {\r\n if (!this.props.showComponent)\r\n return null;\r\n\r\n var progressBar = [];\r\n\r\n for (var i = 1; i <= this.props.packageTotalCount; i++) {\r\n var className = \"packages-progress-unreserved\";\r\n if (i < this.props.currentItemIndex) {\r\n className = \"packages-progress-reserved\";\r\n }\r\n else if (i == this.props.currentItemIndex) {\r\n className = \"packages-progress-active\";\r\n }\r\n\r\n const classes = `${className} packages-progress-item`;\r\n\r\n progressBar.push(<span key={i} className={classes}>{i}</span>)\r\n }\r\n\r\n return (\r\n <section className=\"filters-section packages-progress-section\">\r\n <div className=\"packages-progress-section-inner\">\r\n <div>\r\n <div className=\"packages-progress-section-heading\">\r\n <p className=\"caption-paragraph\"><strong>{this.props.packageProgressMessage}</strong></p>\r\n <p className=\"caption-paragraph\"><strong>{this.props.venueName}</strong></p>\r\n </div>\r\n {\r\n this.props.showPackageProgressBar ?\r\n <div className=\"packages-progress-container\">{progressBar}</div>\r\n : null\r\n }\r\n\r\n <p className=\"packages-progress-instructions\">{this.props.flexInstructions}</p>\r\n </div>\r\n </div>\r\n <div className=\"packages-progress-total-container\">\r\n <div className=\"packages-progress-section-inner\">\r\n <p className=\"caption-paragraph\">{this.props.seatQuantityText} {this.props.selectedQuantity.toString()}</p>\r\n <p className=\"caption-paragraph\">{this.props.packagePriceText} {getCurrencyFormat(this.props.currencyFormat, this.props.packageTotalPrice)}</p>\r\n </div>\r\n </div>\r\n </section>\r\n );\r\n }\r\n}\r\n\r\nexport default PackagesProgressHeader;","import * as React from 'react';\r\n\r\ninterface IPerformanceInfoProps {\r\n performanceDateString: string;\r\n performanceTimeString: string;\r\n filterDateAndTimeTitle: string;\r\n changeDateAndButtonText: string;\r\n\r\n onChangeDateClick?: () => any;\r\n showComponent: boolean;\r\n hideDateChange: boolean;\r\n}\r\n\r\nclass PerformanceInfo extends React.PureComponent<IPerformanceInfoProps, any>{\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n render() {\r\n var button = null;\r\n if (!this.props.hideDateChange) {\r\n button = <button className=\"filters-section-heading-btn\"\r\n onClick={() => { this.props.onChangeDateClick() }}\r\n value={this.props.changeDateAndButtonText + ' ' + this.props.filterDateAndTimeTitle}>\r\n {this.props.changeDateAndButtonText}\r\n <span className=\"visually-hidden\"> {this.props.filterDateAndTimeTitle}</span>\r\n </button>\r\n }\r\n\r\n if (this.props.showComponent) {\r\n return (\r\n <section className=\"filters-section\">\r\n <div className=\"filters-section-heading contains-btn\">\r\n <h2 className=\"heading-general\">{this.props.filterDateAndTimeTitle}</h2>\r\n {button}\r\n </div>\r\n <p className=\"caption-paragraph\">\r\n {this.props.performanceDateString} | {this.props.performanceTimeString}\r\n </p>\r\n </section>\r\n );\r\n } else {\r\n return null;\r\n }\r\n }\r\n}\r\n\r\nexport default PerformanceInfo;","import * as React from 'react';\r\nimport { Performance } from '../../classes/performance';\r\nimport { IAltText } from '../../classes/alt-text';\r\nimport { formatString } from '../../helpers/string-format';\r\n\r\ninterface IPerfomanceListProps {\r\n performancesHeaderTitle: string;\r\n performancesSectionDescription: string;\r\n performances: Array<Performance>;\r\n altText: IAltText;\r\n showComponent: boolean;\r\n showPerformancesOnLoad: boolean;\r\n}\r\n\r\nclass PerformanceList extends React.PureComponent<IPerfomanceListProps, { showPeformances: boolean }>{\r\n constructor(props: IPerfomanceListProps) {\r\n super(props);\r\n this.state = { showPeformances: props.showPerformancesOnLoad };\r\n }\r\n\r\n render() {\r\n const useTag = `<title id=\"expandPerformancesAltText\">${formatString(this.props.altText !== null ? this.props.altText.expandSectionArrow : '', [this.props.performancesHeaderTitle])}</title><use xlink:href=\"#icon-arrow-down\" />`;\r\n return (\r\n this.props.showComponent ?\r\n <section className=\"filters-section performance-list-section\">\r\n <div className=\"filters-section-heading\">\r\n <button className=\"btn-toggle-full\" onClick={() => { this.setState({ showPeformances: !this.state.showPeformances }) }} aria-expanded={this.state.showPeformances ? \"true\" : \"false\"}>\r\n <h2 className=\"heading-general\">{this.props.performancesHeaderTitle}</h2>\r\n <svg className={\"filters-section-heading-toggles-icon\" + (this.state.showPeformances ? \" toggled\" : \"\")} aria-hidden=\"true\" dangerouslySetInnerHTML={{ __html: useTag }} />\r\n </button>\r\n </div>\r\n\r\n <p className=\"caption-paragraph\">{this.getDescription()}</p>\r\n {\r\n this.state.showPeformances ?\r\n <div className=\"fade-in performance-list-container\">\r\n {\r\n this.props.performances !== null ?\r\n this.props.performances.map(perf => {\r\n return (\r\n <div key={perf.id} >\r\n <h2>{perf.title}</h2>\r\n <p>{perf.dateString} | {perf.timeString}</p>\r\n </div>);\r\n }\r\n ) : null\r\n }\r\n </div>\r\n : null\r\n }\r\n </section>\r\n : null\r\n );\r\n }\r\n\r\n getDescription() {\r\n const numPerformancesString = this.props.performances.length.toString();\r\n return this.props.performancesSectionDescription.replace(\"{0}\", numPerformancesString);\r\n }\r\n}\r\n\r\nexport default PerformanceList;","import * as React from 'react';\r\nimport { Performance } from '../../classes/performance';\r\nimport { IOption, IOptionGroup } from '../../classes/seating-option';\r\nimport RadioGroup from '../../common/radio/radio-group';\r\nimport { bindKeypress, getFocusableChildren } from '../../helpers/window-helpers';\r\nimport { IAppSettingsModel } from '../../reducers/fetch-settings-reducer';\r\n\r\nclass PerformanceOption implements IOption {\r\n public id: string;\r\n public name: string;\r\n public selected: boolean = false;\r\n public performanceName?: string;\r\n}\r\n\r\nclass PerformanceOptionGroup implements IOptionGroup {\r\n public id: string;\r\n public name: string;\r\n public isCheckbox: boolean;\r\n public seatLimit: number;\r\n public seatLimitText: string;\r\n public groupSeatSelectedQuantity: number;\r\n public groupSelected: boolean;\r\n public options: Array<PerformanceOption>;\r\n public selectedOptionId: string;\r\n}\r\n\r\ninterface IPerformanceSelectorProps {\r\n appSettingsModel: IAppSettingsModel;\r\n productionPerformances: Array<Performance>;\r\n closeModalFunction?: () => void;\r\n title: string;\r\n isCancelable: boolean;\r\n}\r\n\r\nclass PerformanceSelector extends React.Component<IPerformanceSelectorProps, { selectedPerformance: string, lastKeyDownFunction: any, lastFocusableElements: Array<any> }>{\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n selectedPerformance: undefined,\r\n lastKeyDownFunction: null,\r\n lastFocusableElements: []\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n var modal = document.getElementById('modal-container');\r\n if (modal != null) {\r\n let focusableElements = getFocusableChildren(modal);\r\n var focusFunction = event => bindKeypress.bind(this)(event, focusableElements, this.props.closeModalFunction.bind(this));\r\n if (this.state.lastKeyDownFunction != null) {\r\n window.removeEventListener('keydown', this.state.lastKeyDownFunction);\r\n }\r\n this.setState({ ...this.state, lastKeyDownFunction: focusFunction, lastFocusableElements: focusableElements });\r\n window.addEventListener('keydown', focusFunction);\r\n }\r\n }\r\n\r\n componentDidUpdate(nextProps, nextState) {\r\n var modal = document.getElementById('modal-container');\r\n if (modal != null) {\r\n if (this.state.selectedPerformance !== nextState.selectedPerformance) {\r\n let focusableElements = getFocusableChildren(modal);\r\n var focusFunction = event => bindKeypress.bind(this)(event, focusableElements, this.props.closeModalFunction.bind(this));\r\n\r\n window.removeEventListener('keydown', this.state.lastKeyDownFunction);\r\n\r\n this.setState({ ...this.state, lastKeyDownFunction: focusFunction, lastFocusableElements: focusableElements });\r\n window.addEventListener('keydown', focusFunction);\r\n }\r\n }\r\n }\r\n\r\n componentWillUnmount() {\r\n window.removeEventListener('keydown', bindKeypress.bind(this));\r\n }\r\n\r\n /**\r\n * When a new radio button is selected, update the state appropriately.\r\n * @param selectedRadio\r\n */\r\n _onNewRadioSelect = (selectedRadio) => {\r\n this.setState({\r\n selectedPerformance: selectedRadio[0].id\r\n });\r\n };\r\n\r\n /**\r\n * Redirect the user to the appropriate performance id page when they select a different performance.\r\n */\r\n _onOkClick() {\r\n const newQuery = `itemNumber=${this.state.selectedPerformance}`\r\n\r\n if (this.state.selectedPerformance !== undefined) {\r\n window.location.search = newQuery;\r\n }\r\n }\r\n\r\n hasSamePerformanceNames() {\r\n return this.props.appSettingsModel.productionPerformances.every(perf => {\r\n return perf.title === this.props.appSettingsModel.productionPerformances[0].title;\r\n });\r\n }\r\n\r\n getPerformanceOptions() {\r\n const showPerformanceTitles = this.props.appSettingsModel.showPerformanceTitleInDateModal && !this.hasSamePerformanceNames();\r\n\r\n let performanceOptionArray: Array<PerformanceOption> = this.props.appSettingsModel.productionPerformances.map(perf => {\r\n return {\r\n id: perf.id.toString(),\r\n name: `${showPerformanceTitles ? ` ${perf.title}<span class=\"normal-weight\"> | ` : ''}${perf.dateString} | ${perf.timeString}${showPerformanceTitles ? '</span>' : ''}`,\r\n } as PerformanceOption;\r\n });\r\n\r\n // Don't show the current performance as an option.\r\n performanceOptionArray = performanceOptionArray.filter((performanceOption => {\r\n return performanceOption.id !== this.props.appSettingsModel.itemId.toString();\r\n }).bind(this));\r\n\r\n return performanceOptionArray;\r\n }\r\n\r\n render() {\r\n const useTagLogo = '<use xlink:href=\"#app-logo\" />';\r\n const useTagBackicon = '<use xlink:href=\"#icon-arrow-left\" />';\r\n\r\n const performanceOptions = this.getPerformanceOptions();\r\n\r\n const performanceOptionGroup: PerformanceOptionGroup = {\r\n id: \"productionPerformances\",\r\n name: \"production\",\r\n isCheckbox: false,\r\n options: performanceOptions,\r\n selectedOptionId: this.state.selectedPerformance\r\n } as PerformanceOptionGroup;\r\n\r\n let disableOkButton = (!this.props.isCancelable) ? false : this.state.selectedPerformance === undefined;\r\n\r\n return (\r\n // Modal container\r\n <div className=\"modal-wrapper\">\r\n <div className=\"modal-overlay\" tabIndex={-1} onClick={this.props.isCancelable ? this.props.closeModalFunction : null} />\r\n <section tabIndex={-1} role=\"dialog\" aria-labelledby=\"modal-title\" className=\"modal-container modal-container-performance-list\" id=\"modal-container\">\r\n <div role=\"document\">\r\n <div className=\"modal-content\">\r\n <div className=\"heading-general\">\r\n {\r\n this.props.appSettingsModel.showPerformanceTitleInDateModal && this.hasSamePerformanceNames() ?\r\n <>\r\n <h3 id=\"modal-title\">{this.props.productionPerformances[0].title}</h3>\r\n <p className=\"subheading\">{this.props.title}</p>\r\n </>\r\n : <h3 id=\"modal-title\">{this.props.title}</h3>\r\n }\r\n </div>\r\n <div className=\"modal-performance-list\">\r\n {performanceOptionGroup.options.length > 0 ?\r\n <RadioGroup disabled={false} group={performanceOptionGroup} stateChangeFunction={this._onNewRadioSelect} />\r\n : <p>{this.props.appSettingsModel.allPerformancesPassedModalMessage}</p>}\r\n </div>\r\n </div>\r\n <div className=\"modal-cta-container\">\r\n {this.props.isCancelable ? <button className=\"dialog-cta-btn\" onClick={() => { this.props.closeModalFunction() }}>{this.props.appSettingsModel.changeDateModalCancelbutton}</button> : null}\r\n <button className={\"dialog-cta-btn\" + (disableOkButton ? \" disabled\" : \"\")} disabled={(disableOkButton ? true : false)} onClick={() => {\r\n performanceOptionGroup.options.length > 0 ?\r\n this._onOkClick()\r\n : this.props.closeModalFunction()\r\n }}>{this.props.appSettingsModel.changeDateModalOKbutton}</button>\r\n </div>\r\n </div>\r\n </section>\r\n </div>\r\n );\r\n }\r\n}\r\n\r\nexport default PerformanceSelector;","import * as React from 'react';\r\n\r\nimport { IPriceRangeModel } from '../reducers/filter-reducers';\r\nimport { IAppSettingsModel } from '../../reducers/fetch-settings-reducer';\r\n\r\nimport PriceRange from '../../common/filters/price-range';\r\n\r\ninterface IPriceRangeProps {\r\n onPriceRangeClear: (minPrice: number, maxPrice: number) => any;\r\n onSelectMinPrice: (number) => any;\r\n onSelectMaxPrice: (number) => any;\r\n lowerRangeLimit: number;\r\n upperRangeLimit: number;\r\n rangeMinSpread: number;\r\n startingMinPrice: number;\r\n startingMaxPrice: number;\r\n\r\n currencyFormat: string;\r\n clearButton: string;\r\n filterPriceRangeTitle: string;\r\n filterPriceRangeMessage: string\r\n filterPriceRangeMin: string;\r\n filterPriceRangeMax: string;\r\n\r\n showComponent: boolean;\r\n}\r\n\r\ninterface IPriceRangeState {\r\n}\r\n\r\nclass PriceRangeFilter extends React.PureComponent<IPriceRangeProps, IPriceRangeState>{\r\n render() {\r\n return (\r\n this.props.showComponent ?\r\n <form className=\"filters-section\">\r\n <PriceRange\r\n {...this.props}\r\n onPriceRangeClear={this.props.onPriceRangeClear}\r\n onSelectMaxPrice={this.props.onSelectMaxPrice}\r\n onSelectMinPrice={this.props.onSelectMinPrice}\r\n startingMinPrice={this.props.startingMinPrice}\r\n startingMaxPrice={this.props.startingMaxPrice}\r\n showClearButton={true}\r\n showTitle={true}\r\n />\r\n </form>\r\n : null)\r\n }\r\n}\r\n\r\nexport default PriceRangeFilter;","import flatMap from 'lodash/flatMap'\r\nimport sumBy from 'lodash/sumBy';\r\nimport * as React from 'react';\r\nimport { ItemType } from '../../classes/item-type';\r\nimport { PriceTypePrice } from '../../classes/level';\r\nimport { PriceType } from '../../classes/price-type';\r\nimport PriceTypeQuantitySelect from '../../common/selects/quantity-select';\r\nimport { getCurrencyFormat } from '../../helpers/currency-format';\r\nimport { Html } from '../../helpers/html-helpers';\r\nimport { sortPriceTypes } from '../../helpers/price-type-helpers';\r\nimport { formatString } from '../../helpers/string-format';\r\nimport { IAppSettingsModel } from '../../reducers/fetch-settings-reducer';\r\nimport GroupSeatingMessage from './group-seating-message';\r\n\r\n\r\n\r\nexport interface IPriceTypeFilterContainerProps {\r\n appSettingsModel: IAppSettingsModel;\r\n onChangePriceTypeQuantity: (priceTypeId: number, quantity: number) => void;\r\n priceTypes: PriceType[];\r\n multipleOfSeatsRequiredToContinue: number;\r\n showComponent: boolean;\r\n}\r\n\r\nclass PriceTypeFilterContainer extends React.PureComponent<IPriceTypeFilterContainerProps, any>{\r\n useTagAlert = '<use xlink:href=\"#icon-alert\" />';\r\n\r\n render() {\r\n if (!this.props.showComponent) return null;\r\n\r\n var hitMaxTicketLimit = sumBy(this.props.priceTypes, pt => pt.selectedQuantity) >= this.props.appSettingsModel.maxTicketQuantity;\r\n\r\n return (\r\n <section className=\"filters-section\">\r\n <h2 className=\"heading-general\">{this.props.appSettingsModel.numberOfTicketsTitle}</h2>\r\n <div className=\"filters-section-message\">\r\n {this.props.appSettingsModel.numberOfTicketsMessage &&\r\n <p>{this.props.appSettingsModel.numberOfTicketsMessage.replace('{MaxQuantity}', this.props.appSettingsModel.maxTicketQuantity.toString())}</p>\r\n }\r\n </div>\r\n {\r\n this.props.appSettingsModel.groupTicketMessaging !== null && this.props.appSettingsModel.groupTicketMessaging.length > 0\r\n ?\r\n <GroupSeatingMessage\r\n groupTicketMessaging={this.props.appSettingsModel.groupTicketMessaging}\r\n alertComponent={hitMaxTicketLimit} />\r\n : null\r\n }\r\n\r\n {\r\n this.props.multipleOfSeatsRequiredToContinue > 0 ?\r\n <div className={`group-messaging-section alert`}>\r\n <svg className=\"ticket-selection-quantity-max-alert\" dangerouslySetInnerHTML={{ __html: this.useTagAlert }} />\r\n {Html.renderParagraph(this.props.appSettingsModel.forceMultipleFilterMessageText\r\n .replace(\"{0}\", this.props.multipleOfSeatsRequiredToContinue.toString()), \"caption-paragraph\")}\r\n </div>\r\n : null\r\n }\r\n\r\n <div className=\"seat-info-prices-type-list\">\r\n {this.getSortedPriceTypes().map(priceType =>\r\n <PriceTypeQuantitySelect key={priceType.priceTypeId}\r\n quantity={priceType.selectedQuantity}\r\n onSelectQuantity={this.props.onChangePriceTypeQuantity}\r\n displayText={priceType.title}\r\n priceTypeId={priceType.priceTypeId}\r\n messageText={priceType.message}\r\n startingAtText={this.getStartingAtText(priceType)}\r\n priceTypeMaxReached={(priceType.selectedQuantity >= this.getPriceTypeMaxQuantity(priceType)) || this.getSpecialSeatingUnlockQuantityReached(priceType)}\r\n priceTypeMaxError={this.getPriceTypeMaxErrorMessage(priceType)}\r\n canAdd={(!hitMaxTicketLimit && (priceType.selectedQuantity < this.getPriceTypeMaxQuantity(priceType))) && !this.getSpecialSeatingUnlockQuantityReached(priceType)}\r\n canRemove={priceType.selectedQuantity !== 0 && priceType.selectedQuantity > this.getPriceTypeMinQuantity(priceType) && this.getAllowPriceRemoveBasedOnSpecialSeating(priceType)}\r\n feeAmount={this.getPriceTypeFeeAmount(priceType)}\r\n maxQuantity={this.getPriceTypeMaxQuantity(priceType)}\r\n />\r\n )}\r\n </div>\r\n\r\n </section>\r\n );\r\n }\r\n\r\n //_onSelectQuantity = (quantity, priceTypeId) => this.props.onChangePriceTypeQuantity(priceTypeId, quantity);\r\n\r\n getStartingAtText(priceType: PriceType): string {\r\n const priceText = getCurrencyFormat(this.props.appSettingsModel.currencyFormat, priceType.minTotalPrice);\r\n const message = formatString(\r\n this.props.appSettingsModel.itemType === ItemType.Fixed || this.props.appSettingsModel.itemType === ItemType.Flex\r\n || this.props.appSettingsModel.itemType === ItemType.Super\r\n ?\r\n this.props.appSettingsModel.subscriptionFilterPackageTicketStartingPrice\r\n : this.props.appSettingsModel.filterTicketStartingPrice, [priceText]);\r\n return message;\r\n }\r\n\r\n getSpecialSeatingUnlockQuantityReached(priceType: PriceType): boolean {\r\n if (priceType.attachedSeatingOptionGroup == null)\r\n return false;\r\n\r\n if (priceType.attachedSeatingOptionGroup.unlockSeatingOptionGroupId == null)\r\n return false;\r\n\r\n var matchededUnlockPriceType = this.props.priceTypes.filter(pt => pt.attachedSeatingOptionGroup != null\r\n && pt.attachedSeatingOptionGroup.id == priceType.attachedSeatingOptionGroup.unlockSeatingOptionGroupId);\r\n\r\n if (matchededUnlockPriceType.length == 0)\r\n return false;\r\n\r\n if (priceType.attachedSeatingOptionGroup.seatLimitPerUnlockSeat > 0) {\r\n return priceType.selectedQuantity >= matchededUnlockPriceType[0].selectedQuantity * priceType.attachedSeatingOptionGroup.seatLimitPerUnlockSeat;\r\n }\r\n\r\n // if there are no limits then just check if an unlock seat has been requested\r\n return matchededUnlockPriceType[0].selectedQuantity > 0;\r\n\r\n }\r\n\r\n getAllowPriceRemoveBasedOnSpecialSeating(priceType: PriceType): boolean {\r\n if (priceType.attachedSeatingOptionGroup == null) {\r\n return true;\r\n }\r\n var matchededUnlockPriceType = this.props.priceTypes.filter(pt => pt.attachedSeatingOptionGroup != null\r\n && pt.attachedSeatingOptionGroup.unlockSeatingOptionGroupId == priceType.attachedSeatingOptionGroup.id);\r\n\r\n if (matchededUnlockPriceType.length == 0)\r\n return true;\r\n\r\n if (matchededUnlockPriceType[0].attachedSeatingOptionGroup.seatLimitPerUnlockSeat > 0) {\r\n\r\n return (priceType.selectedQuantity - 1) * matchededUnlockPriceType[0].attachedSeatingOptionGroup.seatLimitPerUnlockSeat >= matchededUnlockPriceType[0].selectedQuantity;\r\n }\r\n\r\n // if there are no limits then you can remove whenever\r\n return true;\r\n\r\n }\r\n\r\n getPriceTypeMaxErrorMessage(priceType: PriceType) {\r\n if (this.getSpecialSeatingUnlockQuantityReached(priceType)) {\r\n // this means the seat has already been unlocked\r\n if (priceType.selectedQuantity > 0) {\r\n return this.props.appSettingsModel.maxQuantityPriceTypeSelectedError.replace(\"{0}\", priceType.title);\r\n } else {\r\n return priceType.attachedSeatingOptionGroup.addSeatsToUnlockFilterMessage;\r\n }\r\n\r\n } else {\r\n return this.props.appSettingsModel.maxQuantityPriceTypeSelectedError.replace(\"{0}\", priceType.title);\r\n }\r\n }\r\n\r\n getSortedPriceTypes() {\r\n return sortPriceTypes(this.props.priceTypes);\r\n }\r\n\r\n getPriceTypeMaxQuantity(priceType: PriceType): number {\r\n return Math.min(priceType.clientMaxQuantity, this.props.appSettingsModel.maxTicketQuantity);\r\n }\r\n\r\n getPriceTypeMinQuantity(priceType: PriceType): number {\r\n return priceType.clientMinQuantity;\r\n }\r\n\r\n totalPrice(price: PriceTypePrice): number {\r\n return price.price + price.feeAmount;\r\n }\r\n\r\n lowerTotalPrice(priceA: PriceTypePrice, priceB: PriceTypePrice): PriceTypePrice {\r\n if (this.totalPrice(priceA) < this.totalPrice(priceB))\r\n return priceA;\r\n else\r\n return priceB;\r\n }\r\n\r\n //TODO: take selected venue levels into account\r\n getPriceTypeFeeAmount(priceType: PriceType): string {\r\n const matchingPrices = flatMap(this.props.appSettingsModel?.venueLevels, a => a.priceTypePrices)?.\r\n filter(pt => pt != null && pt.priceTypeId === priceType.priceTypeId);\r\n\r\n if (matchingPrices && matchingPrices.length > 0) {\r\n const priceTypeCosts = matchingPrices.reduce((a, b) => this.lowerTotalPrice(a, b));\r\n\r\n if (this.props.appSettingsModel?.displaySeatFee && priceTypeCosts?.feeAmount) {\r\n // TODO: Itemize fees later if required\r\n const fee = priceTypeCosts.feeAmount;\r\n const price = priceTypeCosts.price;\r\n return `${!!this.props.appSettingsModel?.startingPriceFeeHeading ? `<p>${this.props.appSettingsModel?.startingPriceFeeHeading}</p>` : ''}\r\n\t\t\t\t\t<p>${this.props.appSettingsModel?.ticketCostText} ${getCurrencyFormat(this.props.appSettingsModel.currencyFormat, price)}</p>\r\n\t\t\t\t\t<p>${this.props.appSettingsModel?.feeAmountText} ${getCurrencyFormat(this.props.appSettingsModel.currencyFormat, fee)}</p>`;\r\n }\r\n }\r\n return '';\r\n }\r\n}\r\n\r\nexport default PriceTypeFilterContainer;","import * as React from 'react';\r\nimport { SeatingOptionGroup } from '../../classes/seating-option';\r\nimport AdditionalNotes from \"../../common/notes/additional-notes\";\r\nimport { formatString } from '../../helpers/string-format';\r\nimport { IAppSettingsModel } from \"../../reducers/fetch-settings-reducer\";\r\nimport SeatingOptionGroupFilter from './seating-option-group';\r\n\r\n\r\ninterface ISeatingOptionProps {\r\n onToggleSeatSeparation: (evt) => any;\r\n onToggleAisleAccess: (evt) => any;\r\n\r\n additionalSeatingOptions: Array<SeatingOptionGroup>;\r\n renderAisleSeatToggle: boolean;\r\n allowAisleAccessSelected: boolean;\r\n\r\n removeSeatingOptionGroup: (seatingOptionGroupId: string) => void;\r\n selectedTicketQuantity: number;\r\n onAdditionalSeatRequestClear: () => void;\r\n onSelectSeatingOption: (seatingOptionGroupId: string, seatingOptions: Array<any>, seatingOptionToggle: boolean) => void;\r\n onSelectSeatingOptionQuantity: (seatingOptionGroupId: string, quantity: number) => void;\r\n appSettings: IAppSettingsModel;\r\n\r\n showComponent: boolean;\r\n showAdditionalNotes: boolean;\r\n}\r\n\r\nclass SeatingOptionFilter extends React.PureComponent<ISeatingOptionProps, any>{\r\n constructor(props: ISeatingOptionProps) {\r\n super(props);\r\n this.state = {\r\n isAisleSeatRendered: props.renderAisleSeatToggle,\r\n checked: props.appSettings.openAdditionalSeatingOptionsOnLoad || props.additionalSeatingOptions.some(seatingOptions => seatingOptions.groupSeatSelectedQuantity > 0 || seatingOptions.groupSelected)\r\n || props.allowAisleAccessSelected\r\n };\r\n }\r\n render() {\r\n if (this.props.showComponent && (this.props.appSettings.renderAdditionalSeatingOptions || this.props.showAdditionalNotes)\r\n && (this.state.isAisleSeatRendered || this.props.additionalSeatingOptions.filter(seatingOptions => seatingOptions.showOnFiltersPage).length > 0)) {\r\n const defaultTicketQuantity = this.props.selectedTicketQuantity;\r\n const remainingSelectableTickets = defaultTicketQuantity -\r\n this.props.additionalSeatingOptions.map(aso => { return aso.groupSeatSelectedQuantity }).reduce((sum, n) => { return sum + n }, 0);\r\n const useTag = `<use xlink:href=\"#icon-arrow-down\" />`;\r\n\r\n return (\r\n <div className=\"filters-section\">\r\n <div className=\"filters-section-heading\">\r\n <button className=\"btn-toggle-full\" onClick={() => { this.setState({ checked: !this.state.checked }) }} aria-expanded={this.state.checked ? \"true\" : \"false\"}>\r\n <h2 className=\"heading-general\">{this.props.appSettings.filterAdditionalSeatingOptionsTitle}</h2>\r\n <svg className={\"filters-section-heading-toggles-icon\" + (this.state.checked ? \" toggled\" : \"\")} aria-hidden=\"true\" dangerouslySetInnerHTML={{ __html: useTag }} />\r\n </button>\r\n {this.props.appSettings.clearButton.length > 0 ?\r\n <button className=\"filters-section-heading-btn\" onClick={() => {\r\n this.props.onAdditionalSeatRequestClear();\r\n }}>{this.props.appSettings.clearButton}<span className=\"visually-hidden\"> {this.props.appSettings.filterAdditionalSeatingOptionsTitle}</span></button>\r\n : null\r\n }\r\n </div>\r\n\r\n {this.state.checked ?\r\n <div className=\"fade-in\">\r\n <div className=\"rich-text caption-paragraph\" dangerouslySetInnerHTML={{ __html: this.props.appSettings.filterAdditionalSeatingOptionsMessage }}></div>\r\n {this.state.isAisleSeatRendered ?\r\n <div className=\"toggle-container\">\r\n <input className=\"toggle-input\" type=\"checkbox\" checked={this.props.allowAisleAccessSelected} id=\"searchForAisleSeats\" name=\"searchForAisleSeats\" onChange={this.props.onToggleAisleAccess} />\r\n <label className=\"toggle-label\" htmlFor=\"searchForAisleSeats\"><span>{this.props.appSettings.aisleAccessSeatsLabel}</span></label>\r\n </div>\r\n : null}\r\n {\r\n this.props.additionalSeatingOptions.sort((a, b) => { return a.displayOrder - b.displayOrder }).map(seatingOptionGroup => {\r\n var selected = seatingOptionGroup.groupSeatSelectedQuantity > 0 || seatingOptionGroup.groupSelected;\r\n let unlockedSeatLimit = 0;\r\n let seatsNotMetUnlockCriteria = seatingOptionGroup.unlockSeatingOptionGroupId !== null && !this.props.additionalSeatingOptions\r\n .some(optionGroup => optionGroup.id === seatingOptionGroup.unlockSeatingOptionGroupId &&\r\n (optionGroup.groupSeatSelectedQuantity > 0 || (optionGroup.groupSelected && seatingOptionGroup.seatLimitPerUnlockSeat === 0)))\r\n\r\n if (!seatsNotMetUnlockCriteria) {\r\n const unlockSeatWithQuantity = this.props.additionalSeatingOptions\r\n .filter(optionGroup => optionGroup.id === seatingOptionGroup.unlockSeatingOptionGroupId && optionGroup.groupSeatSelectedQuantity > 0);\r\n\r\n if (unlockSeatWithQuantity.length > 0) {\r\n var unlockSeatQuantity = unlockSeatWithQuantity[0].groupSeatSelectedQuantity;\r\n unlockedSeatLimit = Math.min(unlockSeatQuantity * seatingOptionGroup.seatLimitPerUnlockSeat, seatingOptionGroup.seatLimit);\r\n }\r\n }\r\n if (!seatingOptionGroup.showOnFiltersPage) {\r\n return null;\r\n } else {\r\n return <SeatingOptionGroupFilter key={seatingOptionGroup.id} groupName={seatingOptionGroup.name} id={seatingOptionGroup.id}\r\n groupSeatSelectedQuantity={seatingOptionGroup.groupSeatSelectedQuantity} groupSeatLimitText={seatingOptionGroup.seatLimitText}\r\n groupSeatLimit={Math.min(seatingOptionGroup.seatLimit, this.props.selectedTicketQuantity)}\r\n seatingOptions={seatingOptionGroup.options}\r\n isCheckbox={seatingOptionGroup.isCheckbox}\r\n requiresSeatQuantitySelection={seatingOptionGroup.seatConditionId !== null}\r\n onSelectSeatingOptionQuantity={this.props.onSelectSeatingOptionQuantity}\r\n removeSeatingOptionGroup={this.props.removeSeatingOptionGroup} seatingOptionSubHeading={seatingOptionGroup.seatingOptionSubHeading}\r\n remainingSelectableTickets={remainingSelectableTickets} onSelectSeatingOption={this.props.onSelectSeatingOption}\r\n checked={selected}\r\n hasUnlockSeatCriteria={seatingOptionGroup.unlockSeatingOptionGroupId !== null}\r\n seatLimitPerUnlockSeat={unlockedSeatLimit}\r\n isDisabled={seatsNotMetUnlockCriteria}\r\n unlockFilterMessage={seatingOptionGroup.addSeatsToUnlockFilterMessage}\r\n maxQuantitySeatingOptionSelectedError={this.props.appSettings.maxQuantitySeatingOptionSelectedError}\r\n />\r\n }\r\n })\r\n }\r\n\r\n {this.props.showAdditionalNotes ?\r\n <AdditionalNotes />\r\n : null}\r\n </div> : null}\r\n </div>\r\n );\r\n } else {\r\n return null;\r\n }\r\n }\r\n\r\n componentWillReceiveProps(nextProps: ISeatingOptionProps) {\r\n this.setState({\r\n isAisleSeatRendered: nextProps.renderAisleSeatToggle,\r\n checked: nextProps.additionalSeatingOptions.some(seatingOptions => seatingOptions.groupSeatSelectedQuantity > 0)\r\n || nextProps.allowAisleAccessSelected ? true : this.state.checked\r\n });\r\n }\r\n\r\n}\r\n\r\nexport default SeatingOptionFilter;","// A '.tsx' file enables JSX support in the TypeScript compiler, \r\n// for more information see the following page on the TypeScript wiki:\r\n// https://github.com/Microsoft/TypeScript/wiki/JSX\r\nimport * as React from 'react';\r\nimport times from 'lodash/times';\r\n\r\nimport { SeatingOption, IOptionGroup } from '../../classes/seating-option';\r\nimport CheckboxGroup from '../../common/checkbox/checkbox-group';\r\nimport RadioGroup from '../../common/radio/radio-group';\r\nimport QuantitySelect from '../../common/quantity-select/quantity-select';\r\nimport { Html } from '../../helpers/html-helpers';\r\n\r\ninterface ISeatingOptionGroupProps {\r\n key: string;\r\n id: string;\r\n groupSeatSelectedQuantity: number;\r\n groupName: string;\r\n groupSeatLimit: number;\r\n seatingOptions: Array<SeatingOption>;\r\n isCheckbox: boolean;\r\n onSelectSeatingOptionQuantity: (seatingOptionGroupId: string, quantity: number) => void;\r\n removeSeatingOptionGroup: (seatingOptionGroupId: string) => void;\r\n onSelectSeatingOption: (seatingOptionGroupId: string, seatingOptions: Array<any>, seatingOptionToggle: boolean) => void;\r\n remainingSelectableTickets: number;\r\n seatingOptionSubHeading: string;\r\n groupSeatLimitText: string;\r\n maxQuantitySeatingOptionSelectedError: string;\r\n\r\n requiresSeatQuantitySelection: boolean;\r\n\r\n isDisabled: boolean;\r\n hasUnlockSeatCriteria: boolean;\r\n seatLimitPerUnlockSeat: number;\r\n\r\n unlockFilterMessage: string;\r\n checked: boolean;\r\n}\r\n\r\nclass SeatingOptionGroupFilter extends React.Component<ISeatingOptionGroupProps, any>{\r\n\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n checked: props.checked,\r\n selectedQuantity: props.selectedQuantity\r\n };\r\n }\r\n\r\n componentWillReceiveProps(nextProps) {\r\n this.setState({\r\n ...this.state,\r\n selectedQuantity: nextProps.selectedQuantity, checked: nextProps.checked\r\n });\r\n }\r\n\r\n render() {\r\n\r\n let seatQuantities = times(this.props.groupSeatLimit, i => i + 1);\r\n\r\n if (this.props.hasUnlockSeatCriteria && this.props.seatLimitPerUnlockSeat > 0) {\r\n seatQuantities = times(this.props.seatLimitPerUnlockSeat, i => i + 1);\r\n }\r\n const seatingOptionCount = times(this.props.seatingOptions.length, i => i + 1);\r\n const useTagAlert = '<use xlink:href=\"#icon-alert\" />';\r\n\r\n let hasDescription = this.props.groupSeatLimitText.length > 0;\r\n let hasSelectQuantitySelect = this.props.requiresSeatQuantitySelection;\r\n let hasSeatingOptions = this.props.seatingOptions.length > 0;\r\n\r\n return (\r\n <div className=\"toggle-container\">\r\n\r\n <input id={this.props.id} className=\"toggle-input\" disabled={this.props.isDisabled} type=\"checkbox\" checked={this.state.checked} onChange={() => {\r\n this.setState({ checked: !this.state.checked });\r\n if (this.state.checked) {\r\n this.props.removeSeatingOptionGroup(this.props.id);\r\n } else {\r\n this._onSeatingOptionQuantitySelect(0);\r\n }\r\n }} />\r\n <label htmlFor={this.props.id} className={\"toggle-label\" + (this.props.isDisabled ? \" disabled\" : \"\")}><span>{this.props.groupName}</span></label>\r\n\r\n {\r\n this.props.isDisabled ?\r\n <div className=\"ticket-selection-quantity-max-message\">\r\n <svg className=\"ticket-selection-quantity-max-alert\" dangerouslySetInnerHTML={{ __html: useTagAlert }} />\r\n {this.props.unlockFilterMessage}\r\n </div>\r\n : null\r\n }\r\n {\r\n this.state.checked && (hasDescription || hasSelectQuantitySelect || hasSeatingOptions) ?\r\n <div className=\"toggle-content\">\r\n {\r\n (hasDescription) && Html.renderParagraph(this.props.groupSeatLimitText, 'toggle-content-headline')\r\n }\r\n {\r\n hasSelectQuantitySelect ?\r\n <>\r\n <QuantitySelect\r\n canAdd={this.props.groupSeatSelectedQuantity < this.props.groupSeatLimit && this.props.remainingSelectableTickets > 0}\r\n canRemove={this.props.groupSeatSelectedQuantity > 0}\r\n componentClassName=\"seat-info-prices-button\"\r\n quantity={this.props.groupSeatSelectedQuantity}\r\n onSelectQuantity={this._onSeatingOptionQuantitySelect}\r\n arialabel={this.props.groupName}\r\n />\r\n\r\n {\r\n this.props.groupSeatLimit > 0 && this.props.groupSeatSelectedQuantity === this.props.groupSeatLimit ?\r\n <div className=\"ticket-selection-quantity-max-message\">\r\n <svg className=\"ticket-selection-quantity-max-alert\" dangerouslySetInnerHTML={{ __html: useTagAlert }} />\r\n <p>\r\n {this.props.maxQuantitySeatingOptionSelectedError.replace(\"{0}\", this.props.groupName)}\r\n </p>\r\n </div>\r\n : null\r\n }\r\n\r\n </>\r\n : null\r\n }\r\n\r\n {\r\n hasSeatingOptions ?\r\n <>\r\n <p className=\"toggle-content-headline\">\r\n {this.props.seatingOptionSubHeading}\r\n </p>\r\n <div className=\"form-container\">\r\n {this.props.isCheckbox ?\r\n <CheckboxGroup group={{ options: this.props.seatingOptions } as IOptionGroup}\r\n selectedOptions={this.props.seatingOptions.filter(option => option.selected)}\r\n stateChangeFunction={this._selectOption.bind(this)} id={null}\r\n allText=\"\" showAllOption={false}\r\n />\r\n :\r\n <RadioGroup disabled={false} group={{ options: this.props.seatingOptions } as IOptionGroup}\r\n selectedOptions={this.props.seatingOptions.filter(option => option.selected)}\r\n stateChangeFunction={this._selectOption.bind(this)} id={null} />\r\n }\r\n\r\n </div>\r\n </>\r\n : null\r\n }\r\n </div> : null\r\n }\r\n </div>);\r\n }\r\n\r\n _onSeatingOptionQuantitySelect = (quantity) => {\r\n this.props.onSelectSeatingOptionQuantity(this.props.id, quantity);\r\n };\r\n\r\n _selectOption(selectedOptions: Array<any>) {\r\n this.props.onSelectSeatingOption(this.props.id, selectedOptions, selectedOptions[0].selected);\r\n }\r\n\r\n}\r\n\r\nexport default SeatingOptionGroupFilter;","import uniqBy from 'lodash/uniqBy';\r\nimport * as React from 'react';\r\nimport { IAltText } from '../../classes/alt-text';\r\nimport { Level } from '../../classes/level';\r\nimport LevelSelectSvg from \"../../common/level-select/level-select\";\r\nimport { convertStringToNumberList } from '../../helpers/array-helpers';\r\nimport { getCurrencyFormat } from '../../helpers/currency-format';\r\nimport { Html } from '../../helpers/html-helpers';\r\nimport { formatId } from '../../helpers/string-format';\r\n\r\ndeclare var Modernizr;\r\n\r\ninterface IVenueLevelFilterProps {\r\n levels: Array<Level>;\r\n currencyFormat: string;\r\n levelsHeading: string;\r\n clearButton: string;\r\n levelsSectionMessage: string;\r\n showPricingOnLevelFilter: boolean;\r\n showLevelAvailabilityOnLevelFilter: boolean;\r\n levelAvailableCountMessage: string;\r\n seatmapBackgroundImage: string;\r\n altText: IAltText;\r\n\r\n svgDefaultFillColor: string;\r\n svgHoverFillColor: string;\r\n svgStrokeColor: string;\r\n svgStrokeWidth: number;\r\n svgSelectedFillColor: string;\r\n seatmapSvgViewBox: string;\r\n venueSvgHighlightShading: string;\r\n onSelectLevel: (evt) => void;\r\n onResetLevels: (evt) => void;\r\n venueBackgroundPaths: Array<string>;\r\n dispatch: any;\r\n selectedPriceTypeIdsString: string;\r\n selectedLevelString: string;\r\n\r\n showComponent: boolean;\r\n\r\n isCheckbox: boolean;\r\n\r\n displaySeatFee?: boolean;\r\n feeAmountText?: string;\r\n venueLevelRangeFeesNote?: string;\r\n}\r\n\r\nclass VenueLevelListFilter extends React.PureComponent<IVenueLevelFilterProps, { hoveredLevel: number }>{\r\n constructor(props: IVenueLevelFilterProps) {\r\n super(props);\r\n this.state = {\r\n hoveredLevel: null\r\n };\r\n }\r\n\r\n renderPrice(level: Level, selectedPriceTypeIds: Array<number>) {\r\n let pricesForSelectedPriceType = uniqBy(level.priceTypePrices, pr => { return pr.price });\r\n if (selectedPriceTypeIds.length > 0) {\r\n pricesForSelectedPriceType = uniqBy((level.priceTypePrices.filter(price => selectedPriceTypeIds.indexOf(price.priceTypeId) >= 0)), pr => { return pr.price });\r\n }\r\n\r\n if (pricesForSelectedPriceType.length < 1 || level.availableCount === 0)\r\n return '';\r\n else if (pricesForSelectedPriceType.length == 1)\r\n return getCurrencyFormat(this.props.currencyFormat, pricesForSelectedPriceType[0].price);\r\n else {\r\n const prices = pricesForSelectedPriceType.map(pt => pt.price);\r\n var sorted = prices.sort((a, b) => { return a - b; });\r\n var min = getCurrencyFormat(this.props.currencyFormat, sorted[0]);\r\n var max = getCurrencyFormat(this.props.currencyFormat, sorted[prices.length - 1]);\r\n return min + ' \\u2013 ' + max;\r\n\r\n }\r\n }\r\n\r\n render() {\r\n if (this.props.showComponent) {\r\n var highlightedLevels = uniqBy((this.props.selectedLevelString.split(',').map(str => +str).concat(this.state.hoveredLevel == null ? [] : [this.state.hoveredLevel])),\r\n lvl => {\r\n return lvl;\r\n }\r\n );\r\n\r\n return (\r\n <div className=\"filters-section\">\r\n <div className=\"filters-section-heading contains-btn\">\r\n <h2 className=\"heading-general\">{this.props.levelsHeading}</h2>\r\n {this.props.clearButton.length > 0 ?\r\n <button className=\"filters-section-heading-btn\" value={this.props.clearButton} onClick={this.props.onResetLevels.bind(this)}>\r\n {this.props.clearButton}<span className=\"visually-hidden\"> {this.props.levelsHeading}</span>\r\n </button>\r\n : null\r\n }\r\n </div>\r\n {(this.props.levelsSectionMessage.length > 0) &&\r\n Html.renderParagraph(this.props.levelsSectionMessage, \"caption-paragraph\")\r\n }\r\n <div className=\"venue-level-container\">\r\n <fieldset>\r\n <legend className=\"visually-hidden\">{this.props.levelsHeading}</legend>\r\n <ul className=\"venue-level-list\">\r\n {\r\n this.props.levels.sort((a, b) => { return b.levelNumber - a.levelNumber }).map((level, index) => {\r\n const formattedLevelName = `L${index}_${formatId(level.name)}`;\r\n return <li className={\"venue-level-list-item\" + (!level.disabled && this.state.hoveredLevel === level.levelNumber && !Modernizr.touchevents ? \" active\" : \"\") + (level.disabled ? \" disabled\" : \"\")} key={level.levelNumber}\r\n onMouseOver={() => { !level.disabled ? this._onMouseOverLevel(level.levelNumber) : null }}\r\n onMouseLeave={() => { this._onMouseLeaveLevel() }} data-level-id={level.levelNumber}>\r\n <input id={formattedLevelName} type={this.props.isCheckbox ? \"checkbox\" : \"radio\"}\r\n className={this.props.isCheckbox ? \"checkbox-custom\" : \"radio-custom\"}\r\n disabled={level.disabled}\r\n checked={level.selected || this.props.selectedLevelString.split(',').indexOf(level.levelNumber.toString()) >= 0} value={level.name}\r\n onChange={() => this.props.onSelectLevel(level)}\r\n onClick={() => { if (!this.props.isCheckbox) this.props.onSelectLevel(level) }}\r\n name=\"levels-radios\" />\r\n <label htmlFor={formattedLevelName}>{level.name}</label>\r\n\r\n <div className=\"venue-level-list-item-info\">\r\n {\r\n this.props.showPricingOnLevelFilter && level.priceTypePrices != null ?\r\n <>\r\n <p className=\"venue-level-list-item-info-prices\">\r\n {this.renderPrice(level, convertStringToNumberList(this.props.selectedPriceTypeIdsString))}\r\n </p>\r\n {\r\n this.props.displaySeatFee &&\r\n <p className=\"small-italic venue-level-list-item-note\">{this.props.venueLevelRangeFeesNote}</p>\r\n }\r\n </>\r\n : null}\r\n {\r\n this.props.showLevelAvailabilityOnLevelFilter && level.availableCount >= 0 ?\r\n <p className=\"venue-level-list-item-info-seats\">\r\n {this.props.levelAvailableCountMessage.replace(\"{0}\", level.availableCount.toString())}\r\n </p>\r\n : null\r\n }\r\n </div>\r\n\r\n </li>\r\n })\r\n }\r\n </ul>\r\n </fieldset>\r\n <div className=\"venue-level-svg-container\">\r\n <div className=\"venue-level-svg-container-inner\" style={{\r\n paddingBottom: this.returnSvgRatio(this.props) as React.ReactText\r\n }}>\r\n <LevelSelectSvg\r\n altText={this.props.altText}\r\n hoveredLevel={this.state.hoveredLevel}\r\n levels={this.props.levels}\r\n onMouseLeaveLevel={this._onMouseLeaveLevel}\r\n onMouseOverLevel={this._onMouseOverLevel}\r\n onSelectVenueLevel={this.props.onSelectLevel}\r\n venueBackgroundImage={this.props.seatmapBackgroundImage}\r\n venueBackgroundPaths={this.props.venueBackgroundPaths}\r\n selectedLevelsString={this.props.selectedLevelString}\r\n svgDefaultFillColor={this.props.svgDefaultFillColor}\r\n svgHoverFillColor={this.props.svgHoverFillColor}\r\n svgSelectedFillColor={this.props.svgSelectedFillColor}\r\n svgStrokeColor={this.props.svgStrokeColor}\r\n svgStrokeWidth={this.props.svgStrokeWidth}\r\n venueSvgHighlightShading={this.props.venueSvgHighlightShading}\r\n venueSvgViewBox={this.props.seatmapSvgViewBox}\r\n svgClass=\"venue-level-svg\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n } else {\r\n return null;\r\n }\r\n }\r\n\r\n componentWillReceiveProps(nextProps: IVenueLevelFilterProps) {\r\n this.setState({\r\n ...this.state,\r\n selectedLevelString: nextProps.levels.filter(level => {\r\n return level.selected;\r\n }).map(level => {\r\n return level.levelNumber;\r\n }).toString()\r\n } as any)\r\n }\r\n\r\n _onMouseOverLevel = (level) => {\r\n const newState = {\r\n ...this.state,\r\n hoveredLevel: level\r\n };\r\n\r\n this.setState(newState as any);\r\n };\r\n\r\n _onMouseLeaveLevel = () => {\r\n const newState = {\r\n ...this.state,\r\n hoveredLevel: null\r\n };\r\n\r\n this.setState(newState as any);\r\n };\r\n\r\n //_onSelectVenueLevel = (level: Level) => {\r\n // let stateSelectedLevels = this.state.selectedLevelString.split(',').map(str => +str);\r\n\r\n // var updatedSelected = {\r\n // selectedLevelString: union(stateSelectedLevels, [level.levelNumber]).toString()\r\n // };\r\n\r\n // if (stateSelectedLevels.indexOf(level.levelNumber) >= 0) {\r\n // updatedSelected = {\r\n // selectedLevelString: stateSelectedLevels.filter((selectedLevel) => { return selectedLevel !== level.levelNumber }).toString()\r\n // };\r\n // }\r\n\r\n // const newState = { ...this.state, ...updatedSelected };\r\n // this.setState(newState as any);\r\n\r\n // this.props.dispatch(selectVenueLevel(level.levelNumber));\r\n //};\r\n\r\n //_onResetVenueLevel() {\r\n // const newState = {\r\n // ...this.state,\r\n // selectedLevelString: \"\"\r\n // };\r\n\r\n // this.setState(newState as any);\r\n // this.props.dispatch(resetVenueLevels());\r\n //}\r\n\r\n returnSvgRatio(props: IVenueLevelFilterProps) {\r\n let splitSvgViewBox = props.seatmapSvgViewBox.split(\" \");\r\n let svgWidth = parseInt(splitSvgViewBox[2]);\r\n let svgHeight = parseInt(splitSvgViewBox[3]);\r\n return ((svgHeight / svgWidth) * 100) + \"%\";\r\n }\r\n}\r\n\r\nexport default VenueLevelListFilter;","import moment from 'moment-timezone';\r\nimport * as PropTypes from 'prop-types';\r\nimport * as React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { hideLoadingScreen } from '../../actions/app-actions';\r\nimport { backToFilters, confirmQuickCheckoutAndComplete, quickCheckout } from '../../cart/actions/cart-actions';\r\nimport { ItemType } from '../../classes/item-type';\r\nimport { Level } from '../../classes/level';\r\nimport { Performance } from '../../classes/performance';\r\nimport Modal from '../../common/modal/modal';\r\nimport SeatFeePreviewModal from '../../common/modal/seat-fee-preview-modal';\r\nimport ModalState from '../../common/modal/modal-states';\r\nimport PromoCodeContainer from '../../common/promo-code/promo-code';\r\nimport { convertNumberListToString } from '../../helpers/array-helpers';\r\nimport { CartHelpers } from '../../helpers/cart-helpers';\r\nimport { getCurrentPerformanceLocalTime } from '../../helpers/date-helpers';\r\nimport { Html } from '../../helpers/html-helpers';\r\nimport { getSelectedTicketCount } from '../../helpers/price-type-helpers';\r\nimport SecondaryNav from '../../menu/components/secondary-nav';\r\nimport { IAppState } from '../../reducers/index';\r\nimport { clearAdditionalSeatRequest, removeSeatingOptionGroup, resetVenueLevels, selectPriceTypeTickets, selectPriceTypeTicketsWithSeatingOption, selectSeatingOptionQuantity, selectSeatingOptions, selectVenueLevel, toggleAisleAccess, toggleSeatSeparation } from '../actions/filter-actions';\r\nimport { fetchSeatMatches } from '../actions/filter-fetch';\r\nimport { clearPriceRange, selectMaxPrice, selectMinPrice } from '../actions/price-range-actions';\r\nimport { applyPromoCode, cancelPromoApply, emptyCart, removePromoCode } from '../actions/promo-actions';\r\nimport FilterPageHeaderContainer from '../components/filter-page-header-container';\r\nimport FilterResults from '../components/filter-result';\r\nimport PackagesProgressHeader from '../components/packages-progress-header';\r\nimport PerformanceInfo from '../components/performance-info';\r\nimport PerformanceList from '../components/performance-list';\r\nimport PerformanceSelector from '../components/performance-selector-menu';\r\nimport PriceRangeFilter from '../components/price-range-filter';\r\nimport PriceTypeFilterContainer from '../components/price-type-filter-container';\r\nimport SeatingOptionFilter from '../components/seating-option-filter';\r\nimport VenueLevelFilter from '../components/venue-level-filter';\r\nimport { SeatPricingWithQuantity } from '../../classes/seat';\r\nimport { showPriceRangeFilters } from '../../helpers/state-helpers';\r\n\r\n\r\nexport interface IFilterState {\r\n showPerformanceSelector: boolean;\r\n showNoSeatMatchForQuickCheckoutError: ModalState;\r\n showOnlyADASeatsModal: ModalState;\r\n chooseMySeatsModal: ModalState;\r\n onlyGALevelsModal: ModalState;\r\n priceTypesInvalidModal: ModalState;\r\n quickCheckoutSpecialSeatingModalState: ModalState;\r\n lastFocused: any;\r\n modalFocusableElements: any[];\r\n showSeatFeePreviewModal: ModalState;\r\n};\r\n\r\nclass Filter extends React.Component<IAppState, IFilterState>{\r\n static contextTypes = {\r\n router: PropTypes.object\r\n }\r\n\r\n hasFuturePerformances: boolean; //current production has more performances in the future\r\n\r\n get promoCodeNeeded() {\r\n const { appSettingsModel, promoCodeModel } = this.props;\r\n\r\n // If item isn't on sale because we need a promo code and don't have one, return true\r\n const itemNotAvailable = !appSettingsModel.itemOnSale || !appSettingsModel.itemAvailable;\r\n\r\n const requiresPromoToUnlock = itemNotAvailable && appSettingsModel.promoCodeOnly;\r\n const noPromoApplied = promoCodeModel.promoCodeId < 1;\r\n\r\n return noPromoApplied && requiresPromoToUnlock;\r\n }\r\n\r\n constructor(props: IAppState) {\r\n super(props);\r\n\r\n let currentLocalTime = getCurrentPerformanceLocalTime(props.appSettingsModel.performanceTimeZone);\r\n this.hasFuturePerformances = props.appSettingsModel.productionPerformances.some((perf: Performance) => {\r\n return moment(perf.date).diff(currentLocalTime) >= 0;\r\n });\r\n\r\n this.state = {\r\n showPerformanceSelector: props.appSettingsModel.enableDateChange && !props.appSettingsModel.itemOnSale && this.hasFuturePerformances && !this.promoCodeNeeded,\r\n showNoSeatMatchForQuickCheckoutError: ModalState.CLOSE,\r\n showOnlyADASeatsModal: props.appSettingsModel.onlyADASeatsMatchFilterGoToSeatmapModalTitle.length === 0\r\n && props.appSettingsModel.onlyADASeatsMatchFilterGoToSeatmapModalMessage.length === 0 ? ModalState.KEEP_CLOSED\r\n : ModalState.CLOSE,\r\n chooseMySeatsModal: (props.appSettingsModel.noSeatsMatchFilterGoToSeatmapModalTitle.length === 0\r\n && props.appSettingsModel.noSeatsMatchFilterGoToSeatmapModalMessage.length === 0) ? ModalState.KEEP_CLOSED\r\n : ModalState.CLOSE,\r\n lastFocused: null,\r\n onlyGALevelsModal: ModalState.CLOSE,\r\n quickCheckoutSpecialSeatingModalState: ModalState.CLOSE,\r\n priceTypesInvalidModal: ModalState.CLOSE,\r\n modalFocusableElements: null,\r\n showSeatFeePreviewModal: ModalState.CLOSE\r\n };\r\n\r\n if (getSelectedTicketCount(props.priceTypesModel) > 0) {\r\n props.dispatch(fetchSeatMatches());\r\n }\r\n\r\n this.props.dispatch(hideLoadingScreen());\r\n }\r\n\r\n componentDidMount() {\r\n this.packageQuantityCheck(this.props);\r\n }\r\n\r\n get canProceed(): boolean {\r\n var selectedTicketQuantity = getSelectedTicketCount(this.props.priceTypesModel);\r\n return selectedTicketQuantity <= this.props.appSettingsModel.maxTicketQuantity\r\n && (this.props.appSettingsModel.minTicketQuantity > 0 ? (selectedTicketQuantity >= this.props.appSettingsModel.minTicketQuantity)\r\n : true);\r\n }\r\n\r\n get canProceedToSeatmap(): boolean {\r\n let selectedLevels = this.props.venueLevelModel.venueLevels.filter(lvl => lvl.selected);\r\n if (selectedLevels.length == 0)\r\n return true;\r\n\r\n return !(selectedLevels.every(lvl => lvl.isGaLevel)\r\n && (selectedLevels.filter(lvl => lvl.isGaLevel).length !== this.props.venueLevelModel.venueLevels.length));\r\n }\r\n\r\n get disableQuickCheckoutCTA(): boolean {\r\n if (this.canProceed && this.props.seatMatchResultModel.loadedResults\r\n && this.props.seatMatchResultModel.numberOfTicketsAvailable > 0\r\n && CartHelpers.checkForcedMultipleReserve(this.props.appSettingsModel.forcePatronsReserveInMultiples, this.props.priceTypesModel.priceTypes) == 0\r\n ) {\r\n return false;\r\n }\r\n\r\n const multipleSeatsRequired = CartHelpers.checkForcedMultipleReserve(this.props.appSettingsModel.forcePatronsReserveInMultiples, this.props.priceTypesModel.priceTypes);\r\n\r\n // don't disable so we can show a modal instead\r\n if (this.props.appSettingsModel.priceTypeCriteriaNotReachedShowAsModal && multipleSeatsRequired > 0) {\r\n return false;\r\n }\r\n\r\n // This situation had been set as \"disabled-clickable\". Leaving it enabled for now, but open to revising.\r\n if (this.props.seatMatchResultModel.dataHasLoaded && !this.props.seatMatchResultModel.requesting && this.props.seatMatchResultModel.numberOfTicketsAvailable === 0) {\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n get disableSeatmapCTA(): boolean {\r\n if (this.canProceed && this.canProceedToSeatmap) {\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n packageQuantityCheck(props: IAppState) {\r\n var packageTicketQuantity = (window as any).packageTicketQuantity;\r\n const isSetQuantityPackage = props.appSettingsModel.itemType === ItemType.Flex || props.appSettingsModel.itemType === ItemType.Super;\r\n const quantityNotSetServerside = packageTicketQuantity === undefined || packageTicketQuantity.length === 0;\r\n const quantityNotSetClientside = props.priceTypesModel.priceTypes.filter(pt => pt.selectedQuantity > 0).length === 0;\r\n\r\n const isVariablePricingPackage = props.appSettingsModel.isVariablePriceType;\r\n if (isSetQuantityPackage && quantityNotSetServerside && quantityNotSetClientside && !isVariablePricingPackage) {\r\n this.context.router.history.push(\"/ticket-select\");\r\n }\r\n }\r\n\r\n componentWillReceiveProps(props: IAppState) {\r\n this.packageQuantityCheck(props);\r\n\r\n let noSeatMatchedError = ModalState.CLOSE;\r\n\r\n if (this.state.showNoSeatMatchForQuickCheckoutError === ModalState.KEEP_CLOSED) {\r\n noSeatMatchedError = ModalState.KEEP_CLOSED;\r\n }\r\n\r\n let onlyADASeatsModalOpen = ModalState.CLOSE;\r\n\r\n if (this.state.showOnlyADASeatsModal === ModalState.KEEP_CLOSED) {\r\n onlyADASeatsModalOpen = ModalState.KEEP_CLOSED;\r\n } else if (props.seatMatchResultModel.dataHasLoaded && !props.seatMatchResultModel.requesting && props.seatMatchResultModel.onlyADASeats) {\r\n onlyADASeatsModalOpen = ModalState.OPEN;\r\n }\r\n\r\n if (props.seatMatchResultModel.numberOfTicketsAvailable > 0) {\r\n noSeatMatchedError = ModalState.CLOSE;\r\n }\r\n\r\n let quickCheckoutSpecialSeatingState = ModalState.CLOSE;\r\n\r\n if (this.state.quickCheckoutSpecialSeatingModalState === ModalState.KEEP_CLOSED) {\r\n quickCheckoutSpecialSeatingState = ModalState.KEEP_CLOSED;\r\n } else if (!props.seatMatchResultModel.quickCheckoutMessage || props.seatMatchResultModel.quickCheckoutMessage.length === 0) {\r\n quickCheckoutSpecialSeatingState = ModalState.CLOSE;\r\n } else {\r\n quickCheckoutSpecialSeatingState = ModalState.OPEN;\r\n }\r\n\r\n let showSeatFeeModalWhenComponentUpdates = null;\r\n\r\n if (onlyADASeatsModalOpen === ModalState.OPEN || quickCheckoutSpecialSeatingState === ModalState.OPEN) {\r\n showSeatFeeModalWhenComponentUpdates = ModalState.CLOSE;\r\n }\r\n\r\n this.setState({\r\n showNoSeatMatchForQuickCheckoutError: noSeatMatchedError,\r\n showOnlyADASeatsModal: onlyADASeatsModalOpen,\r\n chooseMySeatsModal: this.state.chooseMySeatsModal === ModalState.KEEP_CLOSED ?\r\n ModalState.KEEP_CLOSED\r\n : ModalState.CLOSE,\r\n lastFocused: null,\r\n modalFocusableElements: null,\r\n onlyGALevelsModal: ModalState.CLOSE,\r\n quickCheckoutSpecialSeatingModalState: quickCheckoutSpecialSeatingState,\r\n ...(showSeatFeeModalWhenComponentUpdates && { showSeatFeePreviewModal: showSeatFeeModalWhenComponentUpdates })\r\n });\r\n }\r\n\r\n render() {\r\n const { itemType } = this.props.appSettingsModel;\r\n const requiresMultiSelect = (itemType === ItemType.Flex && !this.props.appSettingsModel.isVariablePriceType) || itemType === ItemType.Super;\r\n const showProgress = itemType === ItemType.Flex || itemType === ItemType.Super;\r\n\r\n const cartContainsItems = this.props.appSettingsModel.cartCount > 0;\r\n\r\n const showPromoCode = (this.props.appSettingsModel.itemOnSale || this.props.appSettingsModel.promoCodeOnly)\r\n && itemType !== ItemType.ExchangeAddOn\r\n //&& itemType !== ItemType.Flex\r\n //&& itemType !== ItemType.Super\r\n && this.props.appSettingsModel.enablePromoCodes\r\n && !requiresMultiSelect\r\n && !cartContainsItems\r\n && (itemType !== ItemType.Flex || this.props.appSettingsModel.currentItemIndex < 2);\r\n\r\n const multipleSeatsRequired = CartHelpers.checkForcedMultipleReserve(this.props.appSettingsModel.forcePatronsReserveInMultiples, this.props.priceTypesModel.priceTypes);\r\n\r\n return (\r\n <>\r\n <main>\r\n <PackagesProgressHeader\r\n {...this.props.appSettingsModel}\r\n showComponent={showProgress}\r\n selectedQuantity={(this.props.appSettingsModel.isVariablePriceType && this.props.appSettingsModel.minTicketQuantity === this.props.appSettingsModel.maxTicketQuantity) ? this.props.appSettingsModel.maxTicketQuantity\r\n : getSelectedTicketCount(this.props.priceTypesModel)}\r\n />\r\n {\r\n\r\n (this.props.appSettingsModel.itemType !== ItemType.Super && (this.props.appSettingsModel.performanceDateString !== null\r\n || this.props.appSettingsModel.venueName.length > 0)) ?\r\n <SecondaryNav performanceDate={this.props.appSettingsModel.performanceDateString} performanceTime={this.props.appSettingsModel.performanceTimeString} performanceVenue={this.props.appSettingsModel.venueName} />\r\n : null\r\n }\r\n\r\n <div className=\"filters-container\" id=\"main-content\" tabIndex={-1}>\r\n\r\n <FilterPageHeaderContainer {...this.props.appSettingsModel} />\r\n\r\n <PerformanceInfo {...this.props.appSettingsModel}\r\n performanceDateString={this.props.appSettingsModel.performanceDateString}\r\n performanceTimeString={this.props.appSettingsModel.performanceTimeString}\r\n onChangeDateClick={this._onChangePerformanceDateClick}\r\n showComponent={itemType !== ItemType.Fixed && itemType !== ItemType.Super}\r\n hideDateChange={itemType === ItemType.Flex || !this.props.appSettingsModel.enableDateChange\r\n || this.props.appSettingsModel.productionPerformances.length <= 1} />\r\n\r\n <PerformanceList performances={this.props.appSettingsModel.packagePerformances}\r\n performancesHeaderTitle={this.props.appSettingsModel.performanceListFilterTitle}\r\n altText={this.props.appSettingsModel.altText}\r\n showPerformancesOnLoad={this.props.appSettingsModel.showPackagePerformancesOnLoad}\r\n showComponent={itemType === ItemType.Fixed || itemType === ItemType.Super}\r\n performancesSectionDescription={this.props.appSettingsModel.performanceListMessage} />\r\n\r\n {this.promoCodeNeeded && this.renderNoPricing()}\r\n\r\n {\r\n showPromoCode ?\r\n <PromoCodeContainer collapseDown={true} culture={this.props.appSettingsModel.currentCulture} />\r\n : cartContainsItems && this.props.appSettingsModel.showDisabledPromoMessage ?\r\n <PromoCodeContainer collapseDown={true} culture={this.props.appSettingsModel.currentCulture} showMOSMessage={true} MOSMessage={this.props.appSettingsModel.disabledPromoMessage} />\r\n : null\r\n }\r\n\r\n {this.renderPriceInfo(requiresMultiSelect, multipleSeatsRequired)}\r\n\r\n </div>\r\n </main>\r\n {\r\n !this.props.appSettingsModel.itemOnSale && !this.hasFuturePerformances ?\r\n <Modal modalKey=\"all performances passed\" isError={true}\r\n title={this.props.appSettingsModel.allPerformancesPassedModalTitle}\r\n message={this.props.appSettingsModel.allPerformancesPassedModalMessage}\r\n confirmFunction={this._performanceNotOnSaleRedirect} confirmString={this.props.appSettingsModel.modalCancelButtonText}\r\n closeFunction={this._performanceNotOnSaleRedirect}\r\n priority={1}\r\n />\r\n : null\r\n }\r\n\r\n {\r\n !this.promoCodeNeeded && this._itemNotAvailableModal()\r\n }\r\n\r\n {\r\n this._quickCheckoutNoticeModal()\r\n }\r\n\r\n {\r\n this._onlyADASeatsNoticeModal()\r\n }\r\n\r\n {\r\n this._quickCheckoutSpecialSeatingNoticeModal()\r\n }\r\n\r\n {\r\n this.state.showPerformanceSelector ?\r\n <PerformanceSelector title={this.props.appSettingsModel.changeDateSelectionHeader}\r\n productionPerformances={this.props.appSettingsModel.productionPerformances}\r\n isCancelable={true} closeModalFunction={this._hidePerformanceSelector.bind(this)} appSettingsModel={this.props.appSettingsModel}></PerformanceSelector>\r\n : null\r\n }\r\n\r\n {\r\n this.state.chooseMySeatsModal === ModalState.OPEN ?\r\n <Modal modalKey=\"no seats match filter proceed to seat map\" isError={false} title={this.props.appSettingsModel.noSeatsMatchFilterGoToSeatmapModalTitle} message={this.props.appSettingsModel.noSeatsMatchFilterGoToSeatmapModalMessage}\r\n confirmFunction={this._proceedToSeatmap.bind(this)}\r\n confirmString={this.props.appSettingsModel.noSeatsMatchFilterGoToSeatmapModalProceed}\r\n cancelFunction={this._closeChooseMySeatsModal.bind(this)}\r\n cancelString={this.props.appSettingsModel.noSeatsMatchFilterGoToSeatmapModalCancel}\r\n closeFunction={this._closeChooseMySeatsModal.bind(this)}\r\n />\r\n : null\r\n }\r\n\r\n {\r\n this.state.onlyGALevelsModal === ModalState.OPEN ?\r\n <Modal modalKey={\"only GA levels\"} isError={false} title={this.props.appSettingsModel.onlyGALevelsSelectedGoToSeatmapModalTitle} message={this.props.appSettingsModel.onlyGALevelsSelectedGoToSeatmapModalMessage}\r\n confirmFunction={this._proceedToSeatmap.bind(this)}\r\n confirmString={this.props.appSettingsModel.onlyGALevelsSelectedGoToSeatmapModalProceed}\r\n cancelFunction={this._closeOnlyGALevelsModal.bind(this)}\r\n closeFunction={this._closeOnlyGALevelsModal.bind(this)}\r\n cancelString={this.props.appSettingsModel.onlyGALevelsSelectedGoToSeatmapModalCancel} />\r\n : null\r\n }\r\n\r\n {\r\n this.state.priceTypesInvalidModal === ModalState.OPEN ?\r\n <Modal modalKey={\"price types invalid\"} isError={true} title=\"\"\r\n message={this.props.appSettingsModel.forceMultipleFilterMessageText\r\n .replace(\"{0}\", multipleSeatsRequired.toString())}\r\n confirmFunction={this._closePriceTypeInvalidModal.bind(this)}\r\n confirmString={this.props.appSettingsModel.modalConfirmButtonText}\r\n closeFunction={this._closePriceTypeInvalidModal.bind(this)} />\r\n : null\r\n }\r\n\r\n {\r\n this.props.appSettingsModel.maxTicketQuantity == 0\r\n ?\r\n <Modal modalKey=\"ticket quantity zero\"\r\n isError={true}\r\n title={this.props.appSettingsModel.ticketQuantityZeroModalTitle}\r\n message={this.props.appSettingsModel.ticketQuantityZeroModalMessage}\r\n confirmFunction={this._ticketQuantityZeroRedirect.bind(this)}\r\n confirmString={this.props.appSettingsModel.ticketQuantityZeroRedirectButtonText}\r\n closeFunction={this._ticketQuantityZeroRedirect.bind(this)}\r\n />\r\n : null\r\n }\r\n\r\n {\r\n this.props.appSettingsModel.displaySeatFee && this.state.showSeatFeePreviewModal === ModalState.OPEN ?\r\n <SeatFeePreviewModal modalKey=\"preview seats with fees\"\r\n title={this.props.appSettingsModel.seatFeePreviewTitle}\r\n message={this.props.appSettingsModel.seatFeePreviewMessage}\r\n confirmFunction={this._confirmSeatFeePreviewModal.bind(this)}\r\n cancelFunction={this._closeSeatFeePreviewModal.bind(this)}\r\n goToSeatmapFunction={this._proceedToSeatmap.bind(this)}\r\n selectedPricing={this.getBestSelectedPrices()}\r\n currencyFormat={this.props.appSettingsModel.currencyFormat}\r\n ticketTypeFormat={this.props.appSettingsModel.seatFeePreviewTicketTypeFormat}\r\n priceTypeTextHeadingFormat={this.props.appSettingsModel.priceTypeTextHeadingFormat}\r\n cancelString={this.props.appSettingsModel.seatFeePreviewCancelText}\r\n goToSeatmapString={this.props.appSettingsModel.seatFeePreviewSeatmapText}\r\n confirmString={this.props.appSettingsModel.seatFeePreviewConfirmText}\r\n ticketCostText={this.props.appSettingsModel.ticketCostText}\r\n feeAmountText={this.props.appSettingsModel.feeAmountText}\r\n loadedResults={this.props.seatMatchResultModel.loadedResults}\r\n requesting={this.props.seatMatchResultModel.requesting}\r\n loadingText={this.props.appSettingsModel.loadingText}\r\n loadingSvgText={this.props.appSettingsModel.loadingSvgText}\r\n isBestAvailableOnly={this.props.appSettingsModel.isGeneralAdmissionVenue}\r\n />\r\n : null\r\n }\r\n\r\n {\r\n this.props.appSettingsModel.itemOnSale ?\r\n this.renderFooter()\r\n : null\r\n }\r\n </>\r\n\r\n );\r\n }\r\n\r\n getBestSelectedPrices = (): SeatPricingWithQuantity[] => {\r\n const selectedZoneId = this.props.seatMatchResultModel.suggestedSeats[0].zoneId;\r\n const selectedPriceTypes = this.props.priceTypesModel.priceTypes\r\n .filter(priceType => { return priceType.selectedQuantity > 0 })\r\n\r\n const selectedZone = this.props.appSettingsModel.seatZones\r\n .filter(zone => { return zone.zoneId.toString() == selectedZoneId })[0];\r\n\r\n //TODO: allow multiple zones\r\n const prices = selectedZone.prices\r\n .filter(price => {\r\n return selectedPriceTypes.some(priceType => priceType.priceTypeId == price.priceTypeId)\r\n });\r\n\r\n let pricesWithQuantities = [];\r\n prices.forEach(price => {\r\n const priceWithQuantity: SeatPricingWithQuantity = {\r\n ...price,\r\n zoneDescription: selectedZone.description,\r\n quantity: selectedPriceTypes.filter(priceType => priceType.priceTypeId === price.priceTypeId)[0].selectedQuantity\r\n };\r\n pricesWithQuantities.push(priceWithQuantity);\r\n })\r\n\r\n return pricesWithQuantities;\r\n }\r\n\r\n renderNoPricing = () => {\r\n return (\r\n <section className=\"filters-section\">\r\n {Html.renderDiv(this.props.appSettingsModel.filterPageNoPricingMessage)}\r\n </section>\r\n )\r\n }\r\n\r\n renderPriceInfo = (requiresMultiSelect: boolean, multipleSeatsRequired: number) => {\r\n if (this.promoCodeNeeded) {\r\n return;\r\n }\r\n\r\n const moveSpecialSeatingSection: boolean = this.props.appSettingsModel.renderAdditionalSeatingOptionsBelowTicketQuantity;\r\n const { itemType } = this.props.appSettingsModel;\r\n\r\n return (\r\n <>\r\n <PriceTypeFilterContainer\r\n priceTypes={this.props.priceTypesModel.priceTypes}\r\n onChangePriceTypeQuantity={this._onChangePriceTypeQuantity}\r\n appSettingsModel={this.props.appSettingsModel}\r\n showComponent={this.props.appSettingsModel.itemOnSale && !requiresMultiSelect}\r\n multipleOfSeatsRequiredToContinue={multipleSeatsRequired}\r\n />\r\n\r\n {\r\n moveSpecialSeatingSection ? <SeatingOptionFilter onToggleSeatSeparation={this._onToggleSeatSeparation}\r\n onToggleAisleAccess={this._onToggleAisleAccess}\r\n {...this.props.additionalSeatingOptionModel}\r\n allowAisleAccessSelected={this.props.additionalSeatingOptionModel.allowAisleAccessSelected}\r\n removeSeatingOptionGroup={this._onRemoveSeatingOptionGroup}\r\n selectedTicketQuantity={getSelectedTicketCount(this.props.priceTypesModel)}\r\n onAdditionalSeatRequestClear={this._onAdditionalSeatRequestClear}\r\n onSelectSeatingOption={this._onSelectSeatingOption}\r\n onSelectSeatingOptionQuantity={this._onSelectSeatingOptionQuantity}\r\n appSettings={this.props.appSettingsModel}\r\n showComponent={this.props.appSettingsModel.itemOnSale}\r\n showAdditionalNotes={this.props.appSettingsModel.renderAdditionalNotes}\r\n />\r\n : null\r\n }\r\n <PriceRangeFilter {...this.props.priceRangeModel}\r\n {...this.props.appSettingsModel}\r\n onSelectMinPrice={this._onSelectMinPrice}\r\n onSelectMaxPrice={this._onSelectMaxPrice}\r\n onPriceRangeClear={this._onClearPriceRange}\r\n startingMaxPrice={this.props.priceRangeModel.maxPrice}\r\n startingMinPrice={this.props.priceRangeModel.minPrice}\r\n showComponent={this.props.appSettingsModel.itemOnSale && (this.props.priceTypesModel.priceTypes.length > 1\r\n || this.props.priceRangeModel.lowerRangeLimit !== this.props.priceRangeModel.upperRangeLimit) && showPriceRangeFilters(this.props.priceRangeModel)} />\r\n\r\n <VenueLevelFilter levels={this.props.venueLevelModel.venueLevels}\r\n {...this.props.appSettingsModel}\r\n onResetLevels={this._onResetVenueLevel}\r\n onSelectLevel={this._onSelectVenueLevel}\r\n dispatch={this.props.dispatch}\r\n selectedPriceTypeIdsString={convertNumberListToString(this.props.priceTypesModel.priceTypes.filter(pt => pt.selectedQuantity > 0).map(pt => pt.priceTypeId))}\r\n showComponent={this.props.appSettingsModel.itemOnSale && this.props.appSettingsModel.showLevelFilter}\r\n selectedLevelString={this.props.venueLevelModel.venueLevels.filter(level => {\r\n return level.selected;\r\n }).map(level => {\r\n return level.levelNumber;\r\n }).toString()}\r\n isCheckbox={true}\r\n />\r\n\r\n {\r\n !moveSpecialSeatingSection ? <SeatingOptionFilter onToggleSeatSeparation={this._onToggleSeatSeparation}\r\n onToggleAisleAccess={this._onToggleAisleAccess}\r\n {...this.props.additionalSeatingOptionModel}\r\n allowAisleAccessSelected={this.props.additionalSeatingOptionModel.allowAisleAccessSelected}\r\n removeSeatingOptionGroup={this._onRemoveSeatingOptionGroup}\r\n selectedTicketQuantity={getSelectedTicketCount(this.props.priceTypesModel)}\r\n onAdditionalSeatRequestClear={this._onAdditionalSeatRequestClear}\r\n onSelectSeatingOption={this._onSelectSeatingOption}\r\n onSelectSeatingOptionQuantity={this._onSelectSeatingOptionQuantity}\r\n appSettings={this.props.appSettingsModel}\r\n showComponent={this.props.appSettingsModel.itemOnSale}\r\n showAdditionalNotes={this.props.appSettingsModel.renderAdditionalNotes}\r\n />\r\n : null\r\n }\r\n </>\r\n )\r\n }\r\n\r\n renderFooter = () => {\r\n if (this.promoCodeNeeded) {\r\n return;\r\n }\r\n\r\n return (\r\n <footer className=\"footer-wrapper\">\r\n <FilterResults loadedResults={this.props.seatMatchResultModel.loadedResults}\r\n numberOfTicketOptions={this.props.seatMatchResultModel.numberOfTicketOptions}\r\n requesting={this.props.seatMatchResultModel.requesting}\r\n filterSearchingToast={this.props.appSettingsModel.filterSearchingToast} />\r\n\r\n <div className=\"footer-container\">\r\n {\r\n !this.props.appSettingsModel.isGeneralAdmissionVenue ?\r\n <button type=\"button\" className={\"footer-link\"} disabled={this.disableSeatmapCTA}\r\n onClick={() => this._onProceedClick()}>{this.props.appSettingsModel.filterProceedButton}</button>\r\n : null\r\n }\r\n <button type=\"button\" className={\"footer-link\"} disabled={this.disableQuickCheckoutCTA}\r\n onClick={this._onQuickCheckoutClick.bind(this)}>{this.props.appSettingsModel.filterQuickCheckoutButton}</button>\r\n </div>\r\n </footer>\r\n )\r\n }\r\n\r\n _closeChooseMySeatsModal() {\r\n this.setState({\r\n chooseMySeatsModal: ModalState.CLOSE\r\n });\r\n }\r\n\r\n _closeOnlyGALevelsModal() {\r\n this.setState({\r\n onlyGALevelsModal: ModalState.CLOSE\r\n });\r\n }\r\n\r\n _closePriceTypeInvalidModal() {\r\n this.setState({\r\n priceTypesInvalidModal: ModalState.CLOSE\r\n });\r\n }\r\n\r\n _onProceedClick() {\r\n // If there are 0 seats matched, show a modal letting them know.\r\n if (this.props.seatMatchResultModel.numberOfTicketsAvailable === 0\r\n && this.state.chooseMySeatsModal !== ModalState.KEEP_CLOSED) {\r\n this.setState({\r\n chooseMySeatsModal: ModalState.OPEN\r\n });\r\n } else if (!this.canProceedToSeatmap) {\r\n this.setState({\r\n onlyGALevelsModal: ModalState.OPEN\r\n });\r\n }\r\n else if (CartHelpers.checkForcedMultipleReserve(this.props.appSettingsModel.forcePatronsReserveInMultiples, this.props.priceTypesModel.priceTypes) > 0) {\r\n this.setState({\r\n priceTypesInvalidModal: ModalState.OPEN\r\n });\r\n }\r\n else {\r\n this._proceedToSeatmap();\r\n }\r\n }\r\n\r\n _proceedToSeatmap() {\r\n this.context.router.history.push(`/seatmap${this.props.location.search}`);\r\n }\r\n\r\n _closeSpecialSeatingModalAndBackToFilters() {\r\n this.props.dispatch(backToFilters());\r\n this._closeQuickCheckoutSpecialSeatingNoticeModal();\r\n }\r\n\r\n _closeQuickCheckoutSpecialSeatingNoticeModal() {\r\n this.setState({\r\n quickCheckoutSpecialSeatingModalState: ModalState.CLOSE\r\n });\r\n }\r\n\r\n _quickCheckoutSpecialSeatingNoticeModal(): JSX.Element {\r\n switch (this.state.quickCheckoutSpecialSeatingModalState) {\r\n case ModalState.OPEN:\r\n case ModalState.KEEP_OPEN:\r\n return (\r\n <Modal modalKey=\"missing attestation\" title={this.props.appSettingsModel.missingAttestationErrorMessageHeader}\r\n message={this.props.seatMatchResultModel.quickCheckoutMessage}\r\n cancelString={this.props.appSettingsModel.modalCancelButtonText}\r\n cancelFunction={this._closeSpecialSeatingModalAndBackToFilters.bind(this)}\r\n confirmFunction={this._quickCheckout.bind(this)}\r\n confirmString={this.props.appSettingsModel.modalConfirmButtonText}\r\n closeFunction={this._closeSpecialSeatingModalAndBackToFilters.bind(this)}\r\n />\r\n );\r\n default:\r\n return null;\r\n }\r\n }\r\n\r\n _quickCheckoutNoticeModal(): JSX.Element {\r\n switch (this.state.showNoSeatMatchForQuickCheckoutError) {\r\n case ModalState.OPEN:\r\n case ModalState.KEEP_OPEN:\r\n return (\r\n <Modal modalKey=\"no seats match quick checkout\"\r\n title={this.props.appSettingsModel.noSeatsMatchFilterQuickCheckoutModalTitle}\r\n message={this.props.appSettingsModel.noSeatsMatchFilterQuickCheckoutModalMessage}\r\n confirmString={this.props.appSettingsModel.modalConfirmButtonText}\r\n confirmFunction={this._closeQuickCheckoutModal}\r\n closeFunction={this._closeQuickCheckoutModal}\r\n />\r\n );\r\n default:\r\n return null;\r\n };\r\n }\r\n\r\n _itemNotAvailableModal(): JSX.Element {\r\n return (\r\n this.props.appSettingsModel.itemAvailable ?\r\n null :\r\n <Modal modalKey=\"item not available (no available seats/price types)\"\r\n title={this.props.appSettingsModel.performanceSoldOutModalTitle}\r\n message={this.props.appSettingsModel.performanceSoldOutModalMessage}\r\n confirmString={this.props.appSettingsModel.performanceNotOnSaleRedirectButtonText}\r\n confirmFunction={this._itemNotAvailableRedirect}\r\n />\r\n );\r\n }\r\n\r\n _onlyADASeatsNoticeModal(): JSX.Element {\r\n switch (this.state.showOnlyADASeatsModal) {\r\n case ModalState.OPEN:\r\n case ModalState.KEEP_OPEN:\r\n return (\r\n <Modal modalKey=\"only ADA seats match filters\"\r\n title={this.props.appSettingsModel.onlyADASeatsMatchFilterGoToSeatmapModalTitle}\r\n message={this.props.appSettingsModel.onlyADASeatsMatchFilterGoToSeatmapModalMessage}\r\n confirmString={this.props.appSettingsModel.modalConfirmButtonText}\r\n confirmFunction={this._closeADAOnlyModal.bind(this)}\r\n closeFunction={this._closeADAOnlyModal.bind(this)}\r\n />\r\n );\r\n default:\r\n return null;\r\n };\r\n }\r\n\r\n _onChangePerformanceDateClick = () => {\r\n this._showPerformanceSelector();\r\n };\r\n\r\n _showPerformanceSelector() {\r\n let lastFocused = document.activeElement;\r\n\r\n this.setState({\r\n showPerformanceSelector: true,\r\n lastFocused: lastFocused,\r\n });\r\n (document.activeElement as any).blur();\r\n }\r\n\r\n _hidePerformanceSelector() {\r\n this.setState({\r\n showPerformanceSelector: false,\r\n });\r\n\r\n this.state.lastFocused.focus();\r\n }\r\n\r\n _performanceNotOnSaleRedirect = () => {\r\n window.location.href = this.props.appSettingsModel.performanceNotOnSaleRedirectUrl;\r\n }\r\n\r\n _ticketQuantityZeroRedirect() {\r\n window.location.href = this.props.appSettingsModel.ticketQuantityZeroRedirectUrl;\r\n }\r\n\r\n _onSelectVenueLevel = (level: Level) => {\r\n this.props.dispatch(selectVenueLevel(level.levelNumber));\r\n };\r\n\r\n _onResetVenueLevel() {\r\n this.props.dispatch(resetVenueLevels());\r\n }\r\n\r\n _onSelectSeatingOptionQuantity = (seatingOptionGroupId: string, quantity: number) => {\r\n this.props.dispatch(selectSeatingOptionQuantity(seatingOptionGroupId, quantity));\r\n }\r\n\r\n _onSelectSeatingOption = (seatingOptionGroupId: string, seatingOptions: Array<any>, seatingOptionToggle: boolean) => {\r\n this.props.dispatch(selectSeatingOptions(seatingOptionGroupId, seatingOptions, seatingOptionToggle));\r\n };\r\n\r\n _onToggleSeatSeparation = (evt) => {\r\n this.props.dispatch(toggleSeatSeparation(evt.target.checked));\r\n };\r\n\r\n _onChangePriceTypeQuantity = (quantity: number, priceTypeId: number) => {\r\n var attachedSpecialSeatingRequest = this.props.appSettingsModel.priceTypeSettings.filter(pt => pt.priceTypeId === priceTypeId)[0].attachedSeatingOptionGroup;\r\n if (attachedSpecialSeatingRequest != null) {\r\n this.props.dispatch(selectPriceTypeTicketsWithSeatingOption(priceTypeId, attachedSpecialSeatingRequest.id, quantity, false, [], true));\r\n } else {\r\n this.props.dispatch(selectPriceTypeTickets(priceTypeId, quantity, false, [], true));\r\n }\r\n };\r\n\r\n _onApplyPromoClick = (promoCode) => {\r\n this.props.dispatch(applyPromoCode(promoCode, this.props.appSettingsModel.currentCulture, true));\r\n };\r\n\r\n _onCancelPromoClick = () => {\r\n this.props.dispatch(cancelPromoApply());\r\n };\r\n\r\n _onRemovePromoClick = () => {\r\n this.props.dispatch(removePromoCode(this.props.appSettingsModel.currentCulture, true));\r\n };\r\n\r\n _onEmptyCartClick = (promoCode) => {\r\n this.props.dispatch(emptyCart(promoCode, this.props.appSettingsModel.currentCulture));\r\n };\r\n\r\n _onClearPriceRange = (minPrice, maxPrice) => {\r\n this.props.dispatch(clearPriceRange(minPrice, maxPrice))\r\n };\r\n\r\n _onSelectMinPrice = (minPrice: number) => {\r\n this.props.dispatch(selectMinPrice(minPrice));\r\n };\r\n\r\n _onSelectMaxPrice = (maxPrice: number) => {\r\n this.props.dispatch(selectMaxPrice(maxPrice))\r\n };\r\n\r\n _onToggleAisleAccess = (evt) => {\r\n this.props.dispatch(toggleAisleAccess(evt.target.checked));\r\n }\r\n\r\n _onRemoveSeatingOptionGroup = (seatingOptionGroupId: string) => {\r\n var companionSeatingOptions = this.props.additionalSeatingOptionModel.additionalSeatingOptions.filter(seatingOption => seatingOption.unlockSeatingOptionGroupId !== null && seatingOption.unlockSeatingOptionGroupId === seatingOptionGroupId);\r\n\r\n companionSeatingOptions.forEach(companionSeating => {\r\n this.props.dispatch(removeSeatingOptionGroup(companionSeating.id));\r\n });\r\n\r\n this.props.dispatch(removeSeatingOptionGroup(seatingOptionGroupId));\r\n }\r\n\r\n _onAdditionalSeatRequestClear = () => {\r\n this.props.dispatch(clearAdditionalSeatRequest());\r\n };\r\n\r\n _onQuickCheckoutClick() {\r\n if (this.disableQuickCheckoutCTA) {\r\n this.setState({\r\n showNoSeatMatchForQuickCheckoutError: ModalState.OPEN\r\n });\r\n }\r\n else {\r\n const multipleSeatsRequired = CartHelpers.checkForcedMultipleReserve(this.props.appSettingsModel.forcePatronsReserveInMultiples, this.props.priceTypesModel.priceTypes);\r\n\r\n if (this.props.appSettingsModel.priceTypeCriteriaNotReachedShowAsModal && multipleSeatsRequired > 0) {\r\n this.setState({\r\n priceTypesInvalidModal: ModalState.OPEN\r\n })\r\n }\r\n else if (this.state.showNoSeatMatchForQuickCheckoutError !== ModalState.KEEP_CLOSED && this.props.seatMatchResultModel.dataHasLoaded && !this.props.seatMatchResultModel.requesting && this.props.seatMatchResultModel.numberOfTicketsAvailable === 0) {\r\n\r\n this.setState({\r\n showNoSeatMatchForQuickCheckoutError: ModalState.OPEN\r\n })\r\n }\r\n /*if seat fees should be displayed, do this instead of quick checkout*/\r\n else if (this.props.appSettingsModel.displaySeatFee) {\r\n this.props.dispatch(fetchSeatMatches(true));\r\n this.setState({\r\n showSeatFeePreviewModal: ModalState.OPEN\r\n });\r\n }\r\n else {\r\n this.props.dispatch(confirmQuickCheckoutAndComplete());\r\n }\r\n }\r\n }\r\n\r\n _quickCheckout() {\r\n this._closeQuickCheckoutSpecialSeatingNoticeModal();\r\n this.props.dispatch(quickCheckout());\r\n }\r\n\r\n _closeQuickCheckoutModal = () => {\r\n this.setState({\r\n showNoSeatMatchForQuickCheckoutError: ModalState.KEEP_CLOSED\r\n });\r\n }\r\n\r\n _itemNotAvailableRedirect = () => {\r\n window.location.href = this.props.appSettingsModel.performanceNotOnSaleRedirectUrl;\r\n }\r\n\r\n _closeADAOnlyModal() {\r\n this.setState({\r\n showOnlyADASeatsModal: ModalState.KEEP_CLOSED\r\n });\r\n }\r\n\r\n _confirmSeatFeePreviewModal() {\r\n /*assuming we'll probably need to do some other stuff here when someone confirms they want to quick checkout with their seats*/\r\n this.props.dispatch(confirmQuickCheckoutAndComplete());\r\n }\r\n\r\n _closeSeatFeePreviewModal() {\r\n this.setState({\r\n showSeatFeePreviewModal: ModalState.CLOSE\r\n });\r\n }\r\n}\r\n\r\nexport default connect((state) => state)(Filter);","import { IFilterStateAction } from '../actions/filter-actions';\r\nimport { ActionType, ActionTypes } from '../../actions/index';\r\nimport { IFetchStateAction } from '../actions/filter-fetch';\r\nimport { ISeatMatchRequestModel } from '../../classes/request-model';\r\nimport * as redux from 'redux';\r\nimport { SeatInfo } from '../../classes/seat';\r\n\r\nexport interface ISeatMatchResultModel {\r\n requesting: boolean;\r\n loadedResults: boolean;\r\n matchFilter: ISeatMatchRequestModel;\r\n numberOfTicketOptions: number;\r\n numberOfTicketsAvailable: number;\r\n onlyADASeats: boolean;\r\n suggestedSeats: Array<SeatInfo>;\r\n ticketMessaging: string;\r\n quickCheckoutMessage: string;\r\n dataHasLoaded: boolean;\r\n}\r\n\r\nlet defaultSeatMatchResultModel: ISeatMatchResultModel = {\r\n quickCheckoutMessage: '',\r\n numberOfTicketOptions: 0,\r\n numberOfTicketsAvailable: 0,\r\n onlyADASeats: false,\r\n suggestedSeats: [],\r\n ticketMessaging: \"\",\r\n matchFilter: null,\r\n requesting: false,\r\n loadedResults: false,\r\n dataHasLoaded: false\r\n};\r\n\r\nexport { defaultSeatMatchResultModel };\r\n\r\nexport function seatMatchResultModel(state: ISeatMatchResultModel = defaultSeatMatchResultModel, action: IFetchStateAction): ISeatMatchResultModel {\r\n switch (action.type) {\r\n case ActionTypes.REQUEST_SEATS:\r\n return {\r\n ...state,\r\n matchFilter: action.value, requesting: true, loadedResults: false\r\n };\r\n case ActionTypes.RECEIVE_SEATS:\r\n return {\r\n ...state,\r\n requesting: false,\r\n loadedResults: true,\r\n numberOfTicketOptions: action.value,\r\n ticketMessaging: 'test messaging',\r\n dataHasLoaded: true\r\n };\r\n case ActionTypes.SET_MATCHED_COUNT:\r\n return {\r\n ...state,\r\n numberOfTicketsAvailable: action.value.count,\r\n onlyADASeats: action.value.onlyADASeats,\r\n suggestedSeats: action.value.suggestedSeats\r\n };\r\n case ActionTypes.RECEIVE_QUICK_CHECKOUT_RESULT:\r\n return { ...state, quickCheckoutMessage: action.value.message };\r\n case ActionTypes.GO_TO_FILTERS:\r\n return { ...state, quickCheckoutMessage: '' };\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nconst filterFetch = redux.combineReducers({\r\n seatMatchResultModel\r\n})\r\n\r\nexport default filterFetch","import max from 'lodash/max';\r\nimport min from 'lodash/min';\r\nimport sortBy from 'lodash/sortBy';\r\nimport intersection from 'lodash/intersection';\r\n\r\n\r\nimport { calculateExchangePrice } from '../../actions/exchange-actions';\r\nimport { ActionTypes } from '../../actions/index';\r\nimport { Level } from '../../classes/level';\r\nimport { PriceType } from '../../classes/price-type';\r\nimport { SeatingOptionGroup } from '../../classes/seating-option';\r\nimport { ISeatMapModel } from '../../seatmap/reducers/seatmap-reducer';\r\nimport { IFilterStateAction } from '../actions/filter-actions';\r\nimport { IFetchStateAction } from '../actions/filter-fetch';\r\n\r\nexport interface IErrorModel {\r\n getAppSettingsFailed: boolean;\r\n getSeatmapFailed: boolean;\r\n}\r\n\r\nlet defaultErrorModel = {\r\n getAppSettingsFailed: false,\r\n getSeatmapFailed: false,\r\n}\r\n\r\nexport { defaultErrorModel };\r\nexport { defaultAdditionalSeatingOptionModel };\r\nexport { defaultPriceTypeFilterModel };\r\nexport { defaultPriceRangeModel };\r\nexport { defaultVenueLevelModel };\r\n\r\nexport function errorModel(state: IErrorModel = defaultErrorModel, action: IFilterStateAction) {\r\n switch (action.type) {\r\n case ActionTypes.REQUEST_SEATMAP_ERROR:\r\n return { ...state, getSeatmapFailed: action.value };\r\n default:\r\n return state\r\n }\r\n}\r\n\r\nexport interface IAdditionalSeatingOptionModel {\r\n additionalSeatingOptions: Array<SeatingOptionGroup>;\r\n renderAisleSeatToggle: boolean;\r\n allowAisleAccessSelected: boolean;\r\n additionalNotes: string;\r\n}\r\n\r\nlet defaultAdditionalSeatingOptionModel = {\r\n\r\n additionalSeatingOptions: [],\r\n renderAisleSeatToggle: false,\r\n allowAisleAccessSelected: false,\r\n additionalNotes: \"\"\r\n\r\n};\r\n\r\n\r\nexport function additionalSeatingOptionModel(state: IAdditionalSeatingOptionModel = defaultAdditionalSeatingOptionModel, action: IFilterStateAction): IAdditionalSeatingOptionModel {\r\n switch (action.type) {\r\n case ActionTypes.UPDATE_ADDITIONAL_NOTES:\r\n return { ...state, additionalNotes: action.value }\r\n case ActionTypes.LOAD_ADDITIONAL_SEAT_REQUESTS:\r\n\r\n let combinedAdditionalSeatingOptions = action.value.additionalSeatingOptions.map((seatingOptionGroup) => {\r\n\r\n let _groupSeatSelectedQuantity = typeof (seatingOptionGroup.groupSeatSelectedQuantity) === \"undefined\" ? 0 : seatingOptionGroup.groupSeatSelectedQuantity;\r\n let _selectedSeatingOption = typeof (seatingOptionGroup.selectedSeatingOption) === \"undefined\" ? \"\" : seatingOptionGroup.selectedSeatingOption;\r\n let _isSelected = typeof (seatingOptionGroup.groupSelected) === \"undefined\" ? false : seatingOptionGroup.groupSelected;\r\n\r\n let _seatingOptions = seatingOptionGroup.options.map((seatingOption) => {\r\n let _seatingOptionSelected = typeof (seatingOption.selected) === \"undefined\" ? false : seatingOption.selected;\r\n\r\n return {\r\n ...seatingOption,\r\n selected: _seatingOptionSelected\r\n };\r\n });\r\n\r\n return {\r\n ...seatingOptionGroup,\r\n groupSeatSelectedQuantity: _groupSeatSelectedQuantity,\r\n selectedSeatingOption: _selectedSeatingOption,\r\n groupSelected: _isSelected,\r\n options: _seatingOptions\r\n };\r\n\r\n });\r\n\r\n if (action.value.renderAisleSeatToggle == \"true\") {\r\n return {\r\n ...state,\r\n additionalSeatingOptions: combinedAdditionalSeatingOptions,\r\n renderAisleSeatToggle: true,\r\n };\r\n } else {\r\n return {\r\n ...state,\r\n additionalSeatingOptions: combinedAdditionalSeatingOptions,\r\n renderAisleSeatToggle: false\r\n };\r\n }\r\n case ActionTypes.ADD_ADDITIONAL_SEATING_OPTION_IDS:\r\n const updatedSeatingOptionGroups = state.additionalSeatingOptions.map((additionalSeatingOptionGroup) => {\r\n\r\n if (additionalSeatingOptionGroup.id == action.value.seatingOptionGroupId) {\r\n //const options = _.uniqBy(action.value.selectedOptions.concat(additionalSeatingOptionGroup.options), 'id');\r\n const updateSeatingOptions = additionalSeatingOptionGroup.options.map((seatingOption) => {\r\n\r\n let match = action.value.selectedOptions.filter(option => option.id == seatingOption.id);\r\n if (match.length > 0) {\r\n return { ...seatingOption, selected: match[0].selected };\r\n } else {\r\n return seatingOption;\r\n }\r\n });\r\n\r\n\r\n return { ...additionalSeatingOptionGroup, options: updateSeatingOptions };\r\n } else {\r\n return additionalSeatingOptionGroup;\r\n }\r\n\r\n });\r\n return { ...state, additionalSeatingOptions: updatedSeatingOptionGroups };\r\n case ActionTypes.ADD_ADDITIONAL_SEATING_OPTION_QUANTITY:\r\n const newSeatingOptionGroups = state.additionalSeatingOptions.map((additionalSeatingOptionGroup) => {\r\n if (additionalSeatingOptionGroup.id == action.value.seatingOptionGroupId) {\r\n return { ...additionalSeatingOptionGroup, groupSeatSelectedQuantity: action.value.quantity, groupSelected: true };\r\n } else {\r\n return { ...additionalSeatingOptionGroup };\r\n }\r\n });\r\n return { ...state, additionalSeatingOptions: newSeatingOptionGroups };\r\n case ActionTypes.REMOVE_ADDITIONAL_SEATING_OPTION:\r\n\r\n const newSeatingOptions = state.additionalSeatingOptions.map((additionalSeatingOption) => {\r\n if (additionalSeatingOption.id == action.value) {\r\n return { ...additionalSeatingOption, groupSeatSelectedQuantity: 0, selectedSeatingOption: \"\", groupSelected: false };\r\n } else {\r\n return additionalSeatingOption;\r\n }\r\n })\r\n return { ...state, additionalSeatingOptions: newSeatingOptions };\r\n case ActionTypes.CLEAR_ADDITIONAL_SEAT_REQUEST:\r\n const clearedSeatingOptions = state.additionalSeatingOptions.map((additionalSeatingOption) => {\r\n return { ...additionalSeatingOption, groupSeatSelectedQuantity: 0, selectedSeatingOption: \"\" };\r\n });\r\n return {\r\n ...state,\r\n additionalSeatingOptions: clearedSeatingOptions,\r\n allowAisleAccessSelected: false\r\n };\r\n case ActionTypes.TOGGLE_AISLE_ACCESS:\r\n return { ...state, allowAisleAccessSelected: action.value };\r\n case ActionTypes.LOAD_LOCAL_STORAGE:\r\n return { ...state, ...action.value.additionalSeatingOptionModel };\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nexport interface IPriceTypeFilterModel {\r\n priceTypes: Array<PriceType>;\r\n}\r\n\r\nlet defaultPriceTypeFilterModel = { priceTypes: [] };\r\n\r\n\r\nexport function priceTypesModel(state: IPriceTypeFilterModel = defaultPriceTypeFilterModel, action: IFilterStateAction): IPriceTypeFilterModel {\r\n switch (action.type) {\r\n case ActionTypes.SELECT_PRICE_TYPE_TICKETS:\r\n const priceTypeId = action.value.priceTypeId;\r\n const selectedQuantity = action.value.quantity;\r\n\r\n const updatedPriceTypes = state.priceTypes.map((priceType) => {\r\n if (priceType.priceTypeId == priceTypeId) {\r\n return { ...priceType, selectedQuantity, selected: true };\r\n } else {\r\n return priceType;\r\n }\r\n });\r\n\r\n return { ...state, priceTypes: updatedPriceTypes };\r\n case ActionTypes.LOAD_LOCAL_STORAGE:\r\n return { ...state, ...action.value.priceTypesModel };\r\n case ActionTypes.LOAD_PRICE_TYPES:\r\n if (action.value !== undefined) {\r\n // Create new array replacing config values on each existing price type in the state\r\n let priceTypes = (action.value.priceTypes as Array<PriceType>).map((priceType) => {\r\n let oldPriceType = state.priceTypes.filter(oldPt => { return oldPt.priceTypeId == priceType.priceTypeId })[0];\r\n\r\n if (oldPriceType !== undefined && oldPriceType.selectedQuantity > 0) {\r\n\r\n delete priceType.selectedQuantity;\r\n //console.log({ ...oldPriceType, ...priceType });\r\n }\r\n\r\n return { ...oldPriceType, ...priceType };\r\n });\r\n\r\n priceTypes = priceTypes.map(priceType => {\r\n if (priceType.selectedQuantity === undefined) {\r\n priceType.selectedQuantity = 0;\r\n }\r\n\r\n return priceType;\r\n });\r\n\r\n if (action.value.useOnlyPromoPriceType && action.value.priceTypes.filter(pt => pt.isPromo).length > 0) {\r\n priceTypes = getPromoPriceTypes(priceTypes);\r\n }\r\n\r\n return { ...state, priceTypes };\r\n }\r\n return state;\r\n\r\n //case ActionTypes.SET_MAX_PRICE_TYPE_QUANTITY:\r\n // return _.assign({}, state, {\r\n // priceTypes: state.priceTypes.map(pt => {\r\n // pt.maxQuantity = action.value;\r\n // return pt;\r\n // })\r\n // });\r\n default:\r\n return state\r\n }\r\n}\r\n\r\nexport interface IPriceRangeModel {\r\n //lowerSliderValue: number;\r\n //upperSliderValue: number;\r\n exchangeSet: boolean;\r\n lowerRangeLimit: number;\r\n upperRangeLimit: number;\r\n rangeMinSpread: number;\r\n minPrice: number;\r\n maxPrice: number;\r\n}\r\n\r\nlet defaultPriceRangeModel = {\r\n //lowerSliderValue: -1,\r\n //upperSliderValue: -1,\r\n exchangeSet: false,\r\n lowerRangeLimit: -1,\r\n upperRangeLimit: -1,\r\n rangeMinSpread: 10,\r\n minPrice: 0,\r\n maxPrice: 0\r\n\r\n};\r\n\r\nfunction getMinMin(priceTypes: PriceType[]) {\r\n return min(priceTypes.map((pt: PriceType) => pt.minTotalPrice));\r\n}\r\n\r\nfunction getMaxMax(priceTypes: PriceType[]) {\r\n return max(priceTypes.map((pt: PriceType) => pt.maxTotalPrice));\r\n}\r\n\r\nfunction isPriceWithinPriceTypeRange(price: number, priceType: PriceType): boolean {\r\n return price >= Math.floor(priceType.minTotalPrice)\r\n && price <= Math.ceil(priceType.maxTotalPrice);\r\n}\r\n\r\n/**\r\n * Returns a price range minus the fees of the relevant pricetypes\r\n * @param priceTypes All pricetypes to consider in calculating the base price range\r\n * @param priceRange The price range from state, which includes fees\r\n */\r\nexport function getBasePriceRange(priceTypes: PriceType[], priceRange: IPriceRangeModel): IPriceRangeModel {\r\n const selectedPriceTypes = priceTypes.filter(pt => pt.selected);\r\n\r\n const firstValidMinPriceType = selectedPriceTypes\r\n .filter(pt => isPriceWithinPriceTypeRange(priceRange.minPrice, pt))[0];\r\n const minPriceTypeBaseDifference = firstValidMinPriceType\r\n ? firstValidMinPriceType.minTotalPrice - firstValidMinPriceType.minPrice\r\n : 0;\r\n\r\n const firstValidMaxPriceType = selectedPriceTypes\r\n .filter(pt => isPriceWithinPriceTypeRange(priceRange.maxPrice, pt))[0];\r\n const maxPriceTypeBaseDifference = firstValidMaxPriceType\r\n ? firstValidMaxPriceType.maxTotalPrice - firstValidMaxPriceType.maxPrice\r\n : 0;\r\n\r\n return {\r\n ...priceRange,\r\n minPrice: priceRange.minPrice - minPriceTypeBaseDifference,\r\n maxPrice: priceRange.maxPrice - maxPriceTypeBaseDifference,\r\n }\r\n}\r\n\r\nexport function priceRangeModel(state: IPriceRangeModel = defaultPriceRangeModel, action: IFetchStateAction): IPriceRangeModel {\r\n switch (action.type) {\r\n case ActionTypes.LOAD_DEFAULT_PRICE_RANGE:\r\n //const defaultPriceType = findDefaultPriceType(action.value.priceTypes as Array<PriceType>);\r\n //const minPrice = Math.floor(defaultPriceType === null ? getMinMin(action.value.priceTypes) : defaultPriceType.minPrice);\r\n //const maxPrice = Math.ceil(defaultPriceType === null ? getMaxMax(action.value.priceTypes) : defaultPriceType.maxPrice);\r\n\r\n const minPrice = Math.floor(getMinMin(action.value.priceTypes));\r\n const maxPrice = Math.ceil(getMaxMax(action.value.priceTypes));\r\n\r\n return {\r\n ...state,\r\n lowerRangeLimit: minPrice,\r\n minPrice: minPrice,\r\n maxPrice: maxPrice,\r\n upperRangeLimit: maxPrice\r\n };\r\n case ActionTypes.UPDATE_MIN_MAX_PRICE_RANGE:\r\n return {\r\n ...state,\r\n lowerRangeLimit: Math.floor(action.value.min.minTotalPrice),\r\n upperRangeLimit: Math.ceil(action.value.max.maxTotalPrice),\r\n minPrice: action.value.updatePriceRange ? action.value.min.minTotalPrice : (state.minPrice == 0 ? action.value.min.minTotalPrice : Math.max(Math.floor(action.value.min.minTotalPrice), state.minPrice)),\r\n maxPrice: action.value.updatePriceRange ? action.value.max.maxTotalPrice : (state.maxPrice == 0 ? action.value.max.maxTotalPrice : Math.min(Math.ceil(action.value.max.maxTotalPrice), state.maxPrice))\r\n };\r\n //case ActionTypes.SET_CURRENT_EXCHANGE_TICKETS:\r\n\r\n // return {\r\n // ...state,\r\n // exchangeSet: true,\r\n // lowerRangeLimit: state.exchangeSet ? state.lowerRangeLimit : calculateExchangePrice(state.lowerRangeLimit, action.value.exchangeTickets),\r\n // minPrice: state.exchangeSet ? state.minPrice : calculateExchangePrice(state.minPrice, action.value.exchangeTickets),\r\n // maxPrice: state.exchangeSet ? state.maxPrice : calculateExchangePrice(state.maxPrice, action.value.exchangeTickets),\r\n // upperRangeLimit: state.exchangeSet ? state.upperRangeLimit : calculateExchangePrice(state.upperRangeLimit, action.value.exchangeTickets)\r\n // };\r\n case ActionTypes.PRICE_RANGE_CLEAR:\r\n return { ...state, minPrice: action.value.minPrice, maxPrice: action.value.maxPrice };\r\n case ActionTypes.SELECT_MIN_PRICE:\r\n return { ...state, minPrice: action.value };\r\n case ActionTypes.SELECT_MAX_PRICE:\r\n return { ...state, maxPrice: action.value };\r\n case ActionTypes.LOAD_LOCAL_STORAGE:\r\n return { ...state, ...action.value.priceRangeModel };\r\n default:\r\n return state;\r\n\r\n\r\n }\r\n}\r\n\r\nfunction getPromoPriceTypes(priceTypes: PriceType[]): PriceType[] {\r\n let promoPriceTypes = priceTypes.filter(pt => pt.isPromo);\r\n if (promoPriceTypes.length > 0) {\r\n return sortBy(promoPriceTypes, 'minPrice');\r\n }\r\n return null;\r\n}\r\n\r\nexport interface IVenueLevelModel {\r\n venueLevels: Array<Level>;\r\n}\r\n\r\nlet defaultVenueLevelModel = { venueLevels: [] };\r\n\r\nexport function venueLevelModel(state: IVenueLevelModel = defaultVenueLevelModel, action: IFilterStateAction) {\r\n switch (action.type) {\r\n case ActionTypes.TOGGLE_VENUE_LEVEL:\r\n const levelNumber = action.value;\r\n\r\n const updatedLevels = state.venueLevels.map((level) => {\r\n if (level.levelNumber === levelNumber) {\r\n return { ...level, selected: !level.selected };\r\n } else {\r\n return level;\r\n }\r\n });\r\n\r\n return { ...state, venueLevels: updatedLevels };\r\n case ActionTypes.SELECT_LEVEL:\r\n\r\n const levelId = action.value;\r\n\r\n const newLevels = state.venueLevels.map((level: Level) => {\r\n if (level.id === levelId) {\r\n return { ...level, selected: true };\r\n } else {\r\n return { ...level, selected: false };\r\n }\r\n });\r\n\r\n return { ...state, venueLevels: newLevels };\r\n case ActionTypes.RESET_VENUE_LEVELS:\r\n return {\r\n ...state,\r\n venueLevels: state.venueLevels.map((level) => {\r\n level.selected = false;\r\n return level;\r\n })\r\n };\r\n case ActionTypes.LOAD_LOCAL_STORAGE:\r\n return { ...state, ...action.value.venueLevelModel };\r\n case ActionTypes.LOAD_VENUE_LEVELS:\r\n // Create new array replacing config values on each existing venue levels in the state\r\n\r\n const venueLevels = action.value.map((level: Level) => {\r\n return {\r\n ...level,\r\n disabled: level.availableCount === 0 || (level.availableCount >= 0 && level.priceTypePrices.length == 0),\r\n selected: level.selected && level.availableCount > 0\r\n };\r\n });\r\n\r\n return { ...state, venueLevels };\r\n case ActionTypes.RECEIVE_SEATMAP:\r\n const newState = action.value as ISeatMapModel;\r\n\r\n let levels = state.venueLevels.map((level: Level) => {\r\n if (level.seatmap.id === newState.seatmapId) {\r\n return { ...level, selected: true };\r\n } else {\r\n return { ...level, selected: false };\r\n }\r\n });\r\n\r\n return { ...state, venueLevels: levels };\r\n case ActionTypes.SET_CURRENT_EXCHANGE_TICKETS:\r\n let levelWithUpdatedPricing = state.venueLevels.map(level => {\r\n if (level.priceTypePrices && level.priceTypePrices.length > 0) {\r\n level.priceTypePrices = level.priceTypePrices.map(pr => {\r\n if (!pr.originalPrice) {\r\n pr.originalPrice = pr.price;\r\n }\r\n\r\n pr.price = calculateExchangePrice(pr.originalPrice, action.value.exchangeTickets);\r\n return pr;\r\n });\r\n }\r\n return level;\r\n });\r\n\r\n return { ...state, venueLevels: levelWithUpdatedPricing };\r\n case ActionTypes.SET_LEVEL_IMAGE_OVERRIDE:\r\n let currentLevels = state.venueLevels;\r\n\r\n var overrideLevels = currentLevels.map(lvl => {\r\n var foundOverride = action.value.filter(r => intersection(lvl.sectionIds, r.sectionIds.split(',').map(id => +id)).length > 0);\r\n if (foundOverride.length > 0) {\r\n lvl.imageOverrideUrl = foundOverride[0].levelImageUrl;\r\n } else {\r\n lvl.imageOverrideUrl = \"\";\r\n }\r\n\r\n return lvl;\r\n });\r\n return { ...state, venueLevels: overrideLevels };\r\n default:\r\n return state\r\n }\r\n}","import { ActionTypes } from '../../actions/index';\r\nimport { IFetchStateAction } from '../actions/filter-fetch';\r\n\r\nexport interface IPromoCodeModel {\r\n applying: boolean;\r\n promoCode: string;\r\n promoCodeDescription: string;\r\n promoCodeId: number;\r\n promoErrorMessage: string;\r\n promoConflict: boolean;\r\n}\r\n\r\nlet defaultPromoCodeModel = {\r\n promoCode: \"\",\r\n promoCodeDescription: \"\",\r\n applying: false,\r\n promoCodeId: 0,\r\n promoErrorMessage: \"\",\r\n promoConflict: false\r\n};\r\n\r\nexport { defaultPromoCodeModel };\r\nexport function promoCodeModel(state: IPromoCodeModel = defaultPromoCodeModel, action: IFetchStateAction) {\r\n switch (action.type) {\r\n case ActionTypes.APPLY_PROMO:\r\n return { ...state, promoCode: action.value, promoErrorMessage: \"\", applying: true };\r\n case ActionTypes.REMOVE_PROMO:\r\n return { ...state, promoCode: \"\", promoErrorMessage: \"\", applying: true };\r\n case ActionTypes.LOAD_PROMO:\r\n return {\r\n ...state,\r\n applying: false,\r\n promoCode: action.value != null ? action.value.sourceName : \"\",\r\n promoCodeId: action.value != null ? action.value.sourceCode : 0,\r\n promoConflict: false\r\n };\r\n case ActionTypes.PROMO_ERROR:\r\n return { ...state, promoErrorMessage: action.value, applying: false };\r\n case ActionTypes.PROMO_CONFLICT:\r\n return { ...state, promoErrorMessage: action.value, promoConflict: true, applying: false };\r\n case ActionTypes.CANCEL_PROMO:\r\n return { ...state, promoErrorMessage: '', promoConflict: false, applying: false, promoCode: '' };\r\n case ActionTypes.EMPTIED_CART:\r\n return { ...state, promoErrorMessage: '', promoConflict: false, applying: false };\r\n default:\r\n return state;\r\n }\r\n};\r\n","const divider = '~';\r\n\r\nexport function convertNumberListToString(list: Array<number>): string {\r\n return list.join(divider);\r\n}\r\n\r\nexport function convertStringToNumberList(str: string): Array<number>{\r\n if (str.length === 0) {\r\n return [];\r\n }\r\n return str.split(divider).map(numStr => +numStr);\r\n}\r\n\r\nexport function convertStringListToString(list: Array<string>): string {\r\n return list.join(divider);\r\n}\r\n\r\nexport function convertStringToStringList(str: string): Array<string> {\r\n return str.split(divider).map(numStr => numStr);\r\n}\r\n","import { PriceType } from '../classes/price-type';\r\nimport { CartSeat } from '../classes/seat';\r\nimport { IAppState } from '../reducers';\r\nimport { IAppSettingsModel } from '../reducers/fetch-settings-reducer';\r\nimport { ItemType } from '../classes/item-type';\r\n\r\n\r\nexport namespace CartHelpers {\r\n\r\n export function maxSeatsInCart(priceTypeId: number, cartSeats: CartSeat[], priceTypes: PriceType[]): boolean {\r\n const seatsInCart = cartSeats.filter(s => s.selectedPricing.priceTypeId == priceTypeId).length;\r\n const priceMaxQuantity = getPriceMaxQuantity(priceTypeId, priceTypes);\r\n return seatsInCart >= priceMaxQuantity;\r\n }\r\n\r\n export function checkCartForMinQuantities(cartSeats: CartSeat[], priceTypes: PriceType[]): boolean {\r\n return priceTypes.filter(pt => {\r\n var seatsInCart = cartSeats.filter(s => s.selectedPricing.priceTypeId == pt.priceTypeId).length;\r\n let priceMinQuantity = getPriceMinQuantity(pt.priceTypeId, priceTypes);\r\n return seatsInCart < priceMinQuantity;\r\n }).length > 0\r\n }\r\n\r\n export function checkPriceTypeForMinQuantities(priceTypeId: number, cartSeats: CartSeat[], priceTypes: PriceType[]): boolean {\r\n const seatsInCart = cartSeats.filter(s => s.selectedPricing.priceTypeId == priceTypeId).length;\r\n const priceMinQuantity = getPriceMinQuantity(priceTypeId, priceTypes);\r\n return seatsInCart >= priceMinQuantity;\r\n }\r\n\r\n function getPriceMaxQuantity(priceTypeId: number, priceTypes: PriceType[]) {\r\n const priceTypeMatches = priceTypes.filter(pt => pt.priceTypeId == +priceTypeId);\r\n if (priceTypeMatches.length > 0) {\r\n return priceTypeMatches[0].clientMaxQuantity;\r\n } else {\r\n return 0;\r\n }\r\n }\r\n\r\n function getPriceMinQuantity(priceTypeId: number, priceTypes: PriceType[]) {\r\n const priceTypeMatches = priceTypes.filter(pt => pt.priceTypeId == +priceTypeId);\r\n if (priceTypeMatches.length > 0) {\r\n return priceTypeMatches[0].clientMinQuantity;\r\n } else {\r\n return 0;\r\n }\r\n }\r\n\r\n\r\n //used for flex or super package\r\n export function isSetQuantityPackage(settings: IAppSettingsModel) {\r\n return settings.itemType == ItemType.Flex || settings.itemType == ItemType.Super;\r\n }\r\n\r\n export function isFlexCartFull(state: IAppState) {\r\n const seats = state.cartModel.seats;\r\n const priceTypes = state.priceTypesModel.priceTypes;\r\n\r\n return priceTypes.every(p => seats.filter(s => s.selectedPricing.priceTypeId === p.priceTypeId).length === p.selectedQuantity);\r\n }\r\n\r\n export function checkForcedMultipleReserve(forcePatronsReserveInMultiples: number, priceTypes: Array<PriceType>): number {\r\n if (forcePatronsReserveInMultiples > 0\r\n && priceTypes.reduce((a, b) => a + b.selectedQuantity, 0) % forcePatronsReserveInMultiples !== 0)\r\n return forcePatronsReserveInMultiples;\r\n else {\r\n var returnVal = 0;\r\n\r\n priceTypes.some(pt => {\r\n if (pt.selectedQuantity > 0 && pt.forceReserveInMultiplesOf > 0 && (pt.selectedQuantity % pt.forceReserveInMultiplesOf !== 0)) {\r\n returnVal = pt.forceReserveInMultiplesOf;\r\n return true;\r\n }\r\n\r\n })\r\n return returnVal;\r\n }\r\n }\r\n\r\n}","const languageList = {\r\n \"USA\": \"en-US\",\r\n \"DENMARK\": \"da-DK\"\r\n}\r\nconst currencyList = {\r\n \"USA\": { style: 'currency', currency: 'USD' },\r\n \"DENMARK\": { style: 'currency', currency: 'DKK' }\r\n}\r\nexport function getCurrencyFormat(country: string, amount: number, shortFormat: boolean = false): string {\r\n if (shortFormat) {\r\n return new Intl.NumberFormat(languageList[country], { ...currencyList[country], minimumFractionDigits: 0 }).format(amount);\r\n } else {\r\n return new Intl.NumberFormat(languageList[country], currencyList[country]).format(amount);\r\n }\r\n}\r\n\r\nexport function getCurrencySymbol(country: string, amount: number) {\r\n var currencyFormat = getCurrencyFormat((country == null || country.length == 0) ? \"USA\" : country, amount, false);\r\n return currencyFormat.replace(/[0-9.;,.\\s]/g, \"\");\r\n}\r\n","import moment = require(\"moment-timezone\");\r\n\r\nexport function getCurrentPerformanceLocalTime(performanceTimeZone: string) {\r\n let currentLocalTime = moment();\r\n if (performanceTimeZone.length > 0) {\r\n currentLocalTime = moment().tz(performanceTimeZone);\r\n }\r\n return currentLocalTime;\r\n}","import * as React from 'react'\r\n\r\n/** A collection of html helpers */\r\nexport namespace Html {\r\n\r\n /**\r\n * Renders a div with the given content inside\r\n * @param content The content inside the div\r\n */\r\n export function renderDiv(content: string, className: string = \"\") {\r\n if (!content) {\r\n return null\r\n }\r\n\r\n if (content.substr(0, 4) === '<div') {\r\n return <div className={`rich-text ${className}`} dangerouslySetInnerHTML={{ __html: content }}></div>\r\n }\r\n\r\n return <div className={className}>{content}</div>\r\n }\r\n\r\n /**\r\n * Renders a div with the given content inside\r\n * @param content The content inside the div\r\n */\r\n export function renderParagraph(content: string, className: string = \"\") {\r\n if (!content) {\r\n return null\r\n }\r\n\r\n if (content.trim().substr(0, 4) === '<div') {\r\n return <p className={`rich-text ${className}`} dangerouslySetInnerHTML={{ __html: content }\r\n }></p >\r\n }\r\n\r\n return <div className={className}>{content}</div>\r\n }\r\n\r\n /**\r\n * Renders a div with the given content inside if it is html. Just the content if not\r\n * @param content The content inside the div\r\n */\r\n export function renderContent(content: string) {\r\n if (!content) {\r\n return null\r\n }\r\n\r\n if (content.trim().substr(0, 4) === '<div' || content.substr(0, 2) === '<p') {\r\n return <div className=\"rich-text\" dangerouslySetInnerHTML={{ __html: content }}></div>\r\n }\r\n\r\n return content\r\n }\r\n\r\n export function isHtmlPrompt(message: string): boolean {\r\n if (message === null)\r\n return false;\r\n return message.substr(0, 4) === \"<div\";\r\n }\r\n\r\n}","declare var Modernizr;\r\n\r\nexport default function (): boolean {\r\n return window.innerWidth <= 640 || ((typeof(Modernizr) === \"undefined\" ? false : Modernizr.touchevents) && window.innerWidth <= 1024);\r\n\r\n}\r\n\r\nexport function isPad(): boolean {\r\n try {\r\n return window.innerWidth <= 640 || ((typeof(Modernizr) === \"undefined\" ? false : Modernizr.touchevents) && window.innerWidth < 768);\r\n } catch (ex) {\r\n return false;\r\n }\r\n}\r\n\r\nexport function isPhone(): boolean {\r\n return window.innerWidth <= 640 || ((typeof(Modernizr) === \"undefined\" ? false : Modernizr.touchevents) && window.innerWidth < 768);\r\n}\r\n\r\nexport function isBelowSidebarWidth(): boolean {\r\n // Value is taken from the $sidebar-swap variable in the CSS -- functionality changes at that size\r\n const sidebarSwapMediaQuery = window.matchMedia(\"(max-width: 930px)\");\r\n console.log(sidebarSwapMediaQuery);\r\n return sidebarSwapMediaQuery.matches;\r\n}","import moment from 'moment';\r\nimport { ItemType } from '../classes/item-type';\r\n\r\nconst TIMESTAMP_KEY = \"timestamp\";\r\nconst SEAT_PATHS_KEY = \"seatpaths\";\r\nconst SEATMAP_BACKGROUND_KEY = \"seatmapBackground\";\r\nconst SEAT_REQUEST_KEY = \"SSv2_SeatRequest\";\r\n\r\nexport function getStorageItemWhere(checkKey: (key: string) => boolean) {\r\n var key = getStorageItemKeyWhere(checkKey);\r\n if (key) {\r\n return localStorage.getItem(key);\r\n }\r\n return '';\r\n}\r\n\r\nexport function getStorageItemKeyWhere(checkKey: (key: string) => boolean): string {\r\n var keys = getStorageItemKeysWhere(checkKey);\r\n return (keys.length > 0 ? keys[0] : '');\r\n}\r\n\r\nexport function getStorageItemKeysWhere(checkKey: (key: string) => boolean): string[] {\r\n var matchingKeys = [];\r\n for (var i = 0; i < localStorage.length; i++) {\r\n let currentKey = localStorage.key(i);\r\n if (checkKey(currentKey)) {\r\n matchingKeys.push(currentKey);\r\n }\r\n }\r\n return matchingKeys;\r\n}\r\n\r\nexport function clearStorageItemsWhere(checkKey: (key: string) => boolean) {\r\n var keysToRemove = getStorageItemKeysWhere(checkKey);\r\n keysToRemove.forEach(key => {\r\n localStorage.removeItem(key);\r\n });\r\n}\r\n\r\nfunction keyWithTimeStamp(key: string, timestamp: any) {\r\n return `${key},${TIMESTAMP_KEY}:${moment(timestamp).format('YYYY-MM-DD h:mm a')}`;\r\n}\r\n\r\nexport function getStorageItem(subKey: string) {\r\n return getStorageItemWhere(key => key.indexOf(subKey) > -1);\r\n}\r\n\r\nexport function setStorageItem(subKey: string, value: string, timestamp: any) {\r\n if (timestamp != null) {\r\n const key = keyWithTimeStamp(subKey, timestamp);\r\n localStorage.setItem(key, value);\r\n } else {\r\n localStorage.setItem(subKey, value);\r\n }\r\n}\r\n\r\n\r\n// Seat Paths\r\nexport function getSeatPathsKey(seatmapId, brandId) {\r\n return `${SEAT_PATHS_KEY}:${seatmapId},${brandId}`;\r\n}\r\nexport function saveSeatPaths(seatmapId, brandId, value: string, timestamp) {\r\n const key = getSeatPathsKey(seatmapId, brandId);\r\n setStorageItem(key, value, timestamp);\r\n}\r\nexport function getSavedSeatPaths(seatmapId, brandId) {\r\n const subKey = getSeatPathsKey(seatmapId, brandId);\r\n return getStorageItemWhere(key => key.indexOf(subKey) >= 0);\r\n}\r\n\r\n// Seatmap Backgrounds\r\nexport function getSeatmapBackgroundKey(seatmapId) {\r\n return `${SEATMAP_BACKGROUND_KEY}:${seatmapId}`;\r\n}\r\n\r\nexport function saveSeatmapBackground(seatmapId, value: string, timestamp) {\r\n const key = getSeatmapBackgroundKey(seatmapId);\r\n setStorageItem(key, value, timestamp);\r\n}\r\n\r\nexport function getSavedSeatmapBackground(seatmapId) {\r\n const subKey = getSeatmapBackgroundKey(seatmapId);\r\n return getStorageItemWhere(key => key.indexOf(subKey) >= 0);\r\n}\r\n\r\nexport function deleteSeatmapBackground(seatmapId) {\r\n const subKey = getSeatmapBackgroundKey(seatmapId);\r\n const fullKey = getStorageItemKeyWhere(key => key.indexOf(subKey) >= 0);\r\n if (fullKey) {\r\n localStorage.removeItem(fullKey);\r\n }\r\n}\r\n\r\n\r\n// Seat maps\r\nexport function removeOldestSeatMaps() {\r\n clearStorageItemsWhere(key => !isTimeStampKey(key) && isSeatMapKey(key));\r\n\r\n var keysWithTimestamps = getStorageItemKeysWhere(key => isTimeStampKey(key));\r\n\r\n try {\r\n const sortedKeysWithTimestamps = keysWithTimestamps.filter(s => s.indexOf(\",\") >= 0).sort((a, b) => getTimestampFromKey(a).diff(getTimestampFromKey(b)));\r\n if (sortedKeysWithTimestamps.length > 1) {\r\n localStorage.removeItem(sortedKeysWithTimestamps[0]);\r\n }\r\n if (sortedKeysWithTimestamps.length > 2) {\r\n localStorage.removeItem(sortedKeysWithTimestamps[1]);\r\n }\r\n } catch (ex) {\r\n console.debug('SEATMAP_LOCAL_STORAGE: Error removing keys ' + keysWithTimestamps);\r\n }\r\n}\r\n\r\nfunction isSeatMapKey(key: string) {\r\n return (key.indexOf(SEATMAP_BACKGROUND_KEY) >= 0 || key.indexOf(SEAT_PATHS_KEY) >= 0);\r\n}\r\n\r\nfunction isTimeStampKey(key: string) {\r\n return (key.indexOf(TIMESTAMP_KEY) >= 0);\r\n}\r\n\r\nfunction getTimestampFromKey(cacheKey: string): moment.Moment {\r\n return moment(cacheKey\r\n .split(\",\")\r\n .filter(s => s.indexOf(TIMESTAMP_KEY) > -1)[0]\r\n .split(\":\")[1]\r\n );\r\n}\r\n\r\n// Seat Requests\r\nexport function getSeatRequestKey(itemId: number, itemType: ItemType) {\r\n return `${SEAT_REQUEST_KEY}:${itemId.toString()}~${itemType}`;\r\n}\r\n\r\nexport function saveSeatRequest(itemId: number, itemType: ItemType, value: string) {\r\n const key = getSeatRequestKey(itemId, itemType);\r\n localStorage.setItem(key, value);\r\n}\r\n\r\nexport function getSavedSeatRequest(itemId: number, itemType: ItemType) {\r\n const key = getSeatRequestKey(itemId, itemType);\r\n return localStorage.getItem(key);\r\n}\r\n\r\nexport function deleteSeatRequest(itemId: number, itemType: ItemType) {\r\n const key = getSeatRequestKey(itemId, itemType);\r\n localStorage.removeItem(key);\r\n}\r\n\r\nexport function clearAllSeatRequests() {\r\n clearStorageItemsWhere(key => key.indexOf(SEAT_REQUEST_KEY) >= 0);\r\n}","import { ActionType, ActionTypes, GaActionType } from '../actions/index';\r\nimport { IAppState } from '../reducers/index';\r\n//import * as ga from 'react-google-analytics';\r\nimport ReactGA from 'react-ga4';\r\nimport * as ReactGALegacy from 'react-ga'\r\nimport { ComponentClass, ClassAttributes } from \"react\";\r\nimport { getParameterByName } from './query-string-helpers';\r\n\r\nexport interface IndexRouteProps<Props> {\r\n}\r\n\r\ntype IndexRoute = ComponentClass<IndexRouteProps<any>>;\r\nexport const logger = store => next => action => {\r\n //console.log('dispatching', { actionType: ActionType[action.type], payload: action.value })\r\n let result = next(action)\r\n\r\n var shouldLog = getParameterByName('enableLogging');\r\n if (shouldLog !== null && action.type !== ActionTypes.HOVER_SEAT) {\r\n console.log(\"SMARTSEAT_ACTION\", \"\", { type: action.type, value: action.value, result: getParameterByName('logState') ? result : \"add 'logState' to query string to log\" });\r\n }\r\n\r\n if (action.type === ActionTypes.TRACK_RESERVE_VALUE) {\r\n (ReactGALegacy as any).ga('send', 'event', 'Smart Seat Actions', ActionTypes[action.type], versionNumber, action.value);\r\n (ReactGALegacy as any).ga('adageTracker.send', 'event', window.location.hostname + ':Smart Seat Actions', ActionTypes[action.type], versionNumber, action.value);\r\n ReactGA.event({ category: 'Smart Seat Actions', action: ActionTypes[action.type], label: versionNumber, value: action.value });\r\n }\r\n else if (action.type in GaActionType) {\r\n if (action.unTrackEvent !== undefined && action.unTrackEvent) {\r\n //don't track this event in GA\r\n } else {\r\n var versionNumber = window[\"ss-version\"];\r\n if (versionNumber == undefined) {\r\n versionNumber = \"2.9.0\"\r\n }\r\n (ReactGALegacy as any).ga('send', 'event', 'Smart Seat Actions', ActionTypes[action.type]);\r\n (ReactGALegacy as any).ga('adageTracker.send', 'event', window.location.hostname + ':Smart Seat Actions', ActionTypes[action.type]);\r\n ReactGA.event({ category: 'Smart Seat Actions', action: ActionTypes[action.type] });\r\n }\r\n }\r\n\r\n var state: IAppState = store.getState();\r\n let stateToSave = { ...state };\r\n if (action.type !== ActionTypes.RECEIVE_SETTINGS\r\n && action.type !== ActionTypes.SELECT_SEAT\r\n && action.type !== ActionTypes.LOAD_SEATMAP\r\n && action.type !== ActionTypes.SELECT_NEXT_SEAT\r\n && action.type !== ActionTypes.SELECT_PREVIOUS_SEAT) {\r\n delete stateToSave[\"children\"];\r\n delete stateToSave[\"dispatch\"];\r\n delete stateToSave[\"cartModel\"];\r\n delete stateToSave[\"location\"];\r\n delete stateToSave[\"seatMapModel\"];\r\n delete stateToSave[\"seatMapResultModel\"];\r\n delete stateToSave[\"seatMatchResultModel\"];\r\n\r\n var stateJson = JSON.stringify({\r\n ...stateToSave,\r\n appSettingsModel: {\r\n ...stateToSave.appSettingsModel,\r\n seatmapBackgroundImage: null\r\n }\r\n });\r\n }\r\n return result\r\n}\r\n\r\n//export const crashReporter = store => next => action => {\r\n// try {\r\n// return next(action)\r\n// } catch (err) {\r\n// //console.error('Caught an exception!', err)\r\n// //Raven.captureException(err, {\r\n// // extra: {\r\n// // action,\r\n// // state: store.getState()\r\n// // }\r\n// //})\r\n// throw err\r\n// }\r\n//}","import find from 'lodash/find';\r\nimport orderBy from 'lodash/orderBy';\r\nimport sortBy from 'lodash/sortBy';\r\n\r\nimport { PriceType } from '../classes/price-type';\r\nimport { SeatPricing } from '../classes/seat';\r\nimport { IPriceTypeFilterModel } from '../filter/reducers/filter-reducers';\r\n\r\nexport function getSelectedTicketCount(priceTypesFilterModel: IPriceTypeFilterModel) {\r\n return priceTypesFilterModel.priceTypes.reduce((sum, n) => sum + n.selectedQuantity, 0);\r\n}\r\n\r\nexport function getSelectedPriceTypes(priceTypeFilterModel: IPriceTypeFilterModel): Array<PriceType> {\r\n if (priceTypeFilterModel.priceTypes.length === 1) {\r\n return [priceTypeFilterModel.priceTypes[0]];\r\n }\r\n return priceTypeFilterModel.priceTypes.filter(pt => pt.selectedQuantity > 0);\r\n}\r\n\r\nexport function getSelectedPriceTypesFromFilter(priceTypeFilterModel: IPriceTypeFilterModel, selectAllPriceTypeByDefault: boolean, selectDefaultPriceTypeOnly): Array<PriceType> {\r\n if (selectAllPriceTypeByDefault) {\r\n return priceTypeFilterModel.priceTypes;\r\n }\r\n\r\n var selectedPriceTypes = getSelectedPriceTypes(priceTypeFilterModel);\r\n\r\n if (selectedPriceTypes.length == 0 && selectDefaultPriceTypeOnly) {\r\n return priceTypeFilterModel.priceTypes.filter(pt => pt.isDefault);\r\n }\r\n\r\n return selectedPriceTypes;\r\n}\r\n\r\nexport function findDefaultPriceType(priceTypes: Array<PriceType>, useOnlyPromoPriceType: boolean): PriceType {\r\n if (priceTypes !== undefined && priceTypes.length > 0) {\r\n let defaultPriceType = find(priceTypes, 'isDefault');\r\n\r\n if (defaultPriceType === undefined && priceTypes.length > 0) {\r\n defaultPriceType = priceTypes[0];\r\n }\r\n\r\n //need a prop to turn on if promo price types are there, then choose promo as default price type\r\n if (useOnlyPromoPriceType) {\r\n let promoPriceTypes = priceTypes.filter(pt => pt.isPromo);\r\n if (promoPriceTypes.length > 0) {\r\n defaultPriceType = sortBy(promoPriceTypes, 'minPrice')[0]\r\n }\r\n }\r\n\r\n return defaultPriceType as PriceType;\r\n }\r\n return null;\r\n}\r\n\r\nexport function sortPriceTypes(priceTypes: PriceType[]): PriceType[] {\r\n return orderBy(priceTypes,\r\n [(pt => pt.isDefault),\r\n (pt => pt.order > 0),\r\n (pt => pt.order)],\r\n ['desc', 'desc', 'asc']);\r\n}\r\n\r\nexport function sortSeatPricing(seatPricing: SeatPricing[]): SeatPricing[] {\r\n return orderBy(seatPricing,\r\n [(pt => pt.isDefault),\r\n (pt => pt.order > 0),\r\n (pt => pt.order)],\r\n ['desc', 'desc', 'asc']);\r\n}","export function getParameterByName(name) {\r\n const url = window.location.href;\r\n return getParameterFromUrl(name, url);\r\n}\r\n\r\nexport function getParameterFromUrl(name: string, url: string) {\r\n name = name.replace(/[\\[\\]]/g, \"\\\\$&\");\r\n var regex = new RegExp(\"[?&]\" + name + \"(=([^&#]*)|&|#|$)\"),\r\n results = regex.exec(url);\r\n if (!results) return null;\r\n if (!results[2]) return '';\r\n return decodeURIComponent(results[2].replace(/\\+/g, \" \"));\r\n}\r\n\r\nexport function removeParameterByName(name): string {\r\n const url = window.location.href;\r\n return removeUrlParameter(url, name);\r\n}\r\n\r\nfunction removeUrlParameter(url, parameter) {\r\n var urlParts = url.split('?');\r\n\r\n if (urlParts.length >= 2) {\r\n // Get first part, and remove from array\r\n var urlBase = urlParts.shift();\r\n\r\n // Join it back up\r\n var queryString = urlParts.join('?');\r\n\r\n var prefix = encodeURIComponent(parameter) + '=';\r\n var parts: Array<string> = queryString.split(/[&;]|[#/;]/g);\r\n\r\n // Reverse iteration as may be destructive\r\n for (var i = parts.length; i-- > 0;) {\r\n // Idiom for string.startsWith\r\n if (parts[i].lastIndexOf(prefix, 0) !== -1) {\r\n parts.splice(i, 1);\r\n }\r\n }\r\n\r\n var goToSeatmap = false;\r\n\r\n if (parts[parts.length - 1] === \"seatmap\") {\r\n parts.pop();\r\n goToSeatmap = true;\r\n }\r\n\r\n url = urlBase + '?' + parts.filter(part => part.length > 0).join('&') + (goToSeatmap ? \"#/seatmap\" : \"\");\r\n }\r\n\r\n return url;\r\n}","import { IAppSettingsModel } from \"../reducers/fetch-settings-reducer\";\r\nimport { IPriceRangeModel } from \"../filter/reducers/filter-reducers\";\r\n\r\nexport function showLevelFilters(settings: IAppSettingsModel): boolean {\r\n return settings.venueLevels.length > 1 && settings.showLevelFilter;\r\n}\r\n\r\nexport function showPriceRangeFilters(settings: IPriceRangeModel): boolean {\r\n return settings.minPrice !== settings.maxPrice;\r\n}\r\n\r\nexport function showPriceTypeFilters(settings: IAppSettingsModel): boolean {\r\n return settings.priceTypeSettings.length > 1 && settings.showPriceTypesSeatMapFilter;\r\n}\r\n\r\nexport function showPerformanceDatesFilters(settings: IAppSettingsModel): boolean {\r\n return settings.productionPerformances.length > 1;\r\n}\r\n\r\nexport function showSpecialSeatingFilters(settings: IAppSettingsModel): boolean {\r\n return settings.showSpecialSeatingSeatMapFilter && settings.additionalSeatingOptions.length > 0;\r\n}\r\n","/**\r\n * C# string formatting.\r\n * @param format\r\n * @param args\r\n */\r\nexport function formatString(format: string, args: Array<any>) {\r\n return format.replace(/{(\\d+)}/g, (match, number) => {\r\n return typeof args[number] != 'undefined'\r\n ? args[number]\r\n : match\r\n ;\r\n });\r\n}\r\n\r\nexport function isNullOrEmpty(str: string) {\r\n return !(str != null && str.length > 0);\r\n}\r\n\r\nexport function formatId(id: string) {\r\n // Match and remove any non-alpha characters\r\n return id ? id.replace(/[^\\w]/gi, '') : \"X\";\r\n}","const FOCUSABLE_ELEMENTS = ['a[href]', 'area[href]', 'input:not([disabled])', 'select:not([disabled])', 'textarea:not([disabled])', 'button:not([disabled])', 'iframe', 'object', 'embed', '[contenteditable]', '[tabindex]:not([tabindex^=\"-\"])'];\r\nconst TAB_KEY = 9;\r\nconst ESCAPE_KEY = 27;\r\n\r\nexport function getCurrentLanguage(): string {\r\n return (window as any).currentCulture.length > 0 ? (window as any).currentCulture : null;\r\n}\r\n\r\nexport function getFocusableChildren(node): Array<any> {\r\n let focusableChildrenList = node.querySelectorAll(FOCUSABLE_ELEMENTS.join(','));\r\n let filteredFocusableChildren = [].slice.call(focusableChildrenList).filter(child => {\r\n return !!(child.offsetWidth || child.offsetHeight || child.getClientRects().length);\r\n });\r\n\r\n return filteredFocusableChildren;\r\n}\r\n\r\nexport function bindKeypress(e, focusableElements, closeFunction) {\r\n\r\n // if modal is shown and esc is pressed\r\n if (e.which === ESCAPE_KEY) {\r\n e.preventDefault();\r\n if (closeFunction != null) {\r\n closeFunction();\r\n }\r\n }\r\n\r\n // if modal is shown and tab is pressed\r\n if (e.which === TAB_KEY) {\r\n // trap focus within dialog\r\n window.setTimeout(function () {\r\n let focusedItemIndex = focusableElements.indexOf(document.activeElement);\r\n\r\n if (focusedItemIndex < 0) {\r\n focusableElements[0].focus();\r\n } else if (e.shiftKey && focusedItemIndex === 0) {\r\n // if SHIFT+TAB pressed, move focus to last focusable item\r\n focusableElements[focusableElements.length - 1].focus();\r\n e.preventDefault();\r\n }\r\n //else {\r\n // focusableElements[focusedItemIndex + 1 == focusableElements.length ? 0 : focusedItemIndex + 1].focus();\r\n // e.preventDefault();\r\n //}\r\n // if SHIFT isn't pressed, and current focused item is last in array, move to first index\r\n //else if (!e.shiftKey && focusedItemIndex === focusableElements.length - 1) {\r\n // focusableElements[0].focus();\r\n // e.preventDefault();\r\n //}\r\n }, 0);\r\n\r\n }\r\n}\r\n","import * as Es6Promise from 'es6-promise';\r\nimport * as React from 'react';\r\nimport { render } from 'react-dom';\r\nimport { Provider } from 'react-redux';\r\nimport { HashRouter, Route, Switch } from 'react-router-dom';\r\nimport { applyMiddleware, compose, createStore, Store } from 'redux';\r\nimport thunk from 'redux-thunk';\r\nimport { checkAndApplyPromo, receiveSettings } from './actions/settings-fetch';\r\nimport { getCartTimer } from './cart/actions/cart-fetch';\r\nimport { defaultCartModel } from './cart/reducers/cart-reducer';\r\n//import App from './app';\r\n//import Filter from './filter/containers/filter';\r\n//import Seatmap from './seatmap/containers/seatmap';\r\nimport { ItemType } from './classes/item-type';\r\nimport Modal from './common/modal/modal';\r\nimport asyncComponent from './components/async-component';\r\nimport { defaultSeatMatchResultModel } from './filter/reducers/fetch-reducer';\r\nimport { defaultAdditionalSeatingOptionModel, defaultErrorModel, defaultPriceRangeModel, defaultPriceTypeFilterModel, defaultVenueLevelModel } from './filter/reducers/filter-reducers';\r\nimport { defaultPromoCodeModel } from './filter/reducers/promo-reducer';\r\nimport { logger } from './helpers/middleware';\r\nimport { defaultApplicationModel } from './reducers/app-reducer';\r\nimport { defaultExchangeSettingsModel } from './reducers/exchange-reducer';\r\nimport { defaultAppSettingModel, IAppSettingsModel } from './reducers/fetch-settings-reducer';\r\nimport { appReducers, IAppState } from './reducers/index';\r\nimport { defaultSeatMapResultModel } from './seatmap/reducers/fetch-reducer';\r\nimport { defaultSeatMapModel } from './seatmap/reducers/seatmap-reducer';\r\n\r\nconst AsyncApp = asyncComponent(() => import(\"./app\"));\r\nconst AsyncFilter = asyncComponent(() => import(\"./filter/containers/filter\"));\r\nconst AsyncPackageTicketSelect = asyncComponent(() => import(\"./ticket-selection/containers/package-quantity-select\"));\r\nconst AsyncSeatmap = asyncComponent(() => import(\"./seatmap/containers/seatmap\"));\r\n\r\n\r\n//if (process.env.NODE_ENV !== 'production') {\r\n// const { whyDidYouUpdate } = require('why-did-you-update');\r\n// whyDidYouUpdate(React);\r\n//}\r\n\r\n// To add to window\r\ndeclare global {\r\n const Promise: Promise<any>;\r\n}\r\n\r\nif (!(window as any).Promise) {\r\n (window as any).Promise = Es6Promise;\r\n}\r\n\r\nlet initialState: IAppState = {\r\n cartModel: defaultCartModel,\r\n additionalSeatingOptionModel: defaultAdditionalSeatingOptionModel,\r\n applicationModel: defaultApplicationModel,\r\n errorModel: defaultErrorModel,\r\n seatMapResultModel: defaultSeatMapResultModel,\r\n promoCodeModel: defaultPromoCodeModel,\r\n appSettingsModel: defaultAppSettingModel,\r\n priceRangeModel: defaultPriceRangeModel,\r\n priceTypesModel: defaultPriceTypeFilterModel,\r\n seatMapModel: defaultSeatMapModel,\r\n seatMatchResultModel: defaultSeatMatchResultModel,\r\n venueLevelModel: defaultVenueLevelModel,\r\n exchangeSettingsModel: defaultExchangeSettingsModel\r\n}\r\n\r\nconst composeEnhancers = (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;\r\nconst appStore: Store<IAppState> = createStore(appReducers, initialState as any, composeEnhancers(\r\n applyMiddleware(thunk, logger)\r\n))\r\n\r\nif ((window as any).appSettings.length > 0) {\r\n try {\r\n const settingsString = decodeURI((window as any).appSettings);\r\n getAppSettings(JSON.parse(settingsString));\r\n console.info(\"%cSmartSeat AppSettings:\", \"color:green; font-weight:bold; background-color:yellow\", JSON.parse(settingsString));\r\n } catch (ex) {\r\n try {\r\n console.info(\"Error decoding App Settings: \" + ex);\r\n getAppSettings(JSON.parse((window as any).appSettings));\r\n console.info(\"%cSmartSeat AppSettings:\", \"color:green; font-weight:bold; background-color:yellow\", JSON.parse((window as any).appSettings));\r\n } catch (ex1) {\r\n //console.error(\"Error parsing App Settings: \" + ex1);\r\n console.info(\"%cSmartSeat AppSettings:\", \"color:green; font-weight:bold; background-color:yellow\", JSON.parse((window as any).appSettings));\r\n throw ex1;\r\n\r\n }\r\n }\r\n} else {\r\n console.error(\"App Settings as not bootstrapped onto page\");\r\n}\r\n\r\nlet appSettings = appStore.getState().appSettingsModel;\r\nif (appSettings.displayCartTimer) {\r\n (appStore.dispatch as any)(getCartTimer());\r\n}\r\n\r\n// At this point, react has finished loading so this is the correct place to put this.\r\nlet reactLoader = document.getElementById(\"react-loader\");\r\n\r\nif (reactLoader) {\r\n reactLoader.classList.add(\"loaded\");\r\n}\r\n\r\nconst onlySYOS = (appSettings.exchangeTickets.length > 0 && !appSettings.isGeneralAdmissionVenue) || appSettings.isSelectSeatVenue;\r\n\r\nrender((\r\n <Provider store={appStore}>\r\n <HashRouter>\r\n <>\r\n {renderNotOnSaleModal()}\r\n\r\n <Route component={AsyncApp} />\r\n <Switch>\r\n <Route exact path=\"/\" component={onlySYOS ? AsyncSeatmap : AsyncFilter} />\r\n <Route path=\"/ticket-select\" component={AsyncPackageTicketSelect} />\r\n {\r\n onlySYOS ?\r\n null\r\n : <Route path=\"/filters\" component={AsyncFilter} />\r\n }\r\n\r\n <Route path=\"/seatmap\" component={AsyncSeatmap} />\r\n <Route path=\"*\" component={AsyncFilter} />\r\n </Switch>\r\n </>\r\n </HashRouter>\r\n </Provider>\r\n), document.getElementById('app-container'))\r\n\r\nfunction renderNotOnSaleModal() {\r\n const { promoCode, applying } = appStore.getState().promoCodeModel;\r\n const { itemOnSale, promoCodeOnly } = appSettings;\r\n\r\n // If the item isn't on sale AND\r\n // It isn't a promo code only item OR we already input a promo code\r\n // Tell the user they're out\r\n if (!itemOnSale && (!promoCodeOnly || (promoCode && !applying))) {\r\n return (\r\n <Modal modalKey=\"performance not on sale\" isError={true}\r\n title={appSettings.performanceNotOnSaleModalTitle}\r\n message={appSettings.performanceNotOnSaleModalMessage}\r\n confirmFunction={_performanceNotOnSaleRedirect}\r\n confirmString={appSettings.performanceNotOnSaleRedirectButtonText}\r\n closeFunction={_performanceNotOnSaleRedirect} />\r\n )\r\n }\r\n}\r\n\r\nfunction _performanceNotOnSaleRedirect() {\r\n window.location.href = appSettings.performanceNotOnSaleRedirectUrl;\r\n}\r\n\r\nfunction getAppSettings(json: IAppSettingsModel) {\r\n switch (json.itemType) {\r\n case ItemType.Flex:\r\n return (appStore.dispatch as any)(loadSettings(json, true));\r\n case ItemType.Fixed:\r\n return (appStore.dispatch as any)(loadSettings(json, false));\r\n case ItemType.Super:\r\n return (appStore.dispatch as any)(loadSettings(json, true));\r\n default:\r\n return (appStore.dispatch as any)(loadSettings(json, false));\r\n }\r\n}\r\n\r\nfunction loadSettings(json, loadPackageQuantity: boolean) {\r\n return (dispatch, state: () => any) => {\r\n dispatch(receiveSettings(json));\r\n\r\n // This MUST happen after recieveSettings\r\n const newState = state();\r\n //if (loadPackageQuantity) {\r\n // var packageTicketQuantity = (window as any).packageTicketQuantity;\r\n // if (packageTicketQuantity !== undefined && packageTicketQuantity.length > 0) {\r\n // var ticketQuantityObject = JSON.parse(packageTicketQuantity);\r\n //dispatch(setPackageTicketQuantity(packageTicketQuantity));\r\n\r\n //each(ticketQuantityObject, (ticketQuantity, priceTypeId) => {\r\n // dispatch(selectPriceTypeTickets(+priceTypeId, ticketQuantity,true, [], false));\r\n //});\r\n //}\r\n //}\r\n checkAndApplyPromo(newState, dispatch, json, onlySYOS || (window.location.href.indexOf('#/seatmap') >= 0));\r\n }\r\n}\r\n","import * as React from 'react';\r\nimport { Dispatch } from 'redux';\r\nimport { Link } from 'react-router-dom';\r\nimport CartTimer from '../../menu/components/cart-timer';\r\nimport Modal from '../../common/modal/modal'\r\nimport { toggleSeatmapFilters, toggleSeatmapCart } from '../../seatmap/actions/seatmap-actions';\r\nimport { removeAllSeatsFromCart } from '../../cart/actions/cart-actions';\r\nimport { ItemType } from '../../classes/item-type';\r\nimport * as PropTypes from 'prop-types';\r\nimport IAltText from '../../classes/alt-text';\r\nimport { Html } from '../../helpers/html-helpers';\r\n\r\nimport isEqual from 'react-fast-compare';\r\n\r\ninterface IAppBarProps {\r\n showFiltersToggle: boolean;\r\n headingTitle: string;\r\n performanceDateString: string;\r\n isSeatmapView: boolean;\r\n isExchange: boolean;\r\n cartSeatsCount: number;\r\n dispatch: any /*Dispatch<any>*/;\r\n altText: IAltText;\r\n clientSymbolSvgText: string;\r\n clientSymbolUrl: string;\r\n myAccountUrl: string;\r\n itemType: ItemType;\r\n venueName: string;\r\n packageProgressMessage: string;\r\n seatmapFiltersText: string;\r\n seatmapCartIsOpen: boolean;\r\n seatmapCartText: string;\r\n rightNavSvgText: string;\r\n rightNavUrl: string;\r\n itemName: string;\r\n itemNameRichText: string;\r\n itemId: number;\r\n modalConfirmButtonText: string;\r\n modalCancelButtonText: string;\r\n cartConflictErrorHeading: string;\r\n cartConflictErrorMessageText: string;\r\n seatmapFiltersIsOpen: boolean;\r\n viewFromSeatModalActive: boolean;\r\n cartTimerExpiringMinute: number;\r\n cartTimerMessaging: string;\r\n remainingCartTimer: number;\r\n cartUrl: string;\r\n isSyosOnlyConfig: boolean;\r\n cartExpiredTitle: string;\r\n cartExpiredMessage: string;\r\n cartExpiredConfirmText: string;\r\n disableCartExpiredPopup: boolean;\r\n}\r\n\r\nclass AppMenu extends React.Component<IAppBarProps, { showCartConflictDialog: boolean }>{\r\n static contextTypes = {\r\n router: PropTypes.object\r\n }\r\n private headerRef: React.RefObject<HTMLElement>;\r\n\r\n constructor(props) {\r\n super(props);\r\n this.state = { showCartConflictDialog: false };\r\n this.headerRef = React.createRef<HTMLElement>();\r\n }\r\n\r\n shouldComponentUpdate(nextProps: IAppBarProps, nextState) {\r\n const oldValue = {\r\n headingTitle: this.props.headingTitle,\r\n performanceDateString: this.props.performanceDateString,\r\n isSeatmapView: this.props.isSeatmapView,\r\n isExchange: this.props.isExchange,\r\n cartSeatsCount: this.props.cartSeatsCount,\r\n clientSymbolSvgText: this.props.clientSymbolSvgText,\r\n clientSymbolUrl: this.props.clientSymbolUrl,\r\n myAccountUrl: this.props.myAccountUrl,\r\n venueName: this.props.venueName,\r\n seatmapCartIsOpen: this.props.seatmapCartIsOpen,\r\n seatmapFiltersIsOpen: this.props.seatmapFiltersIsOpen,\r\n viewFromSeatModalActive: this.props.viewFromSeatModalActive,\r\n showCartConflictDialog: this.state.showCartConflictDialog,\r\n remainingCartTimer: this.props.remainingCartTimer\r\n };\r\n\r\n const newValue = {\r\n headingTitle: nextProps.headingTitle,\r\n performanceDateString: nextProps.performanceDateString,\r\n isSeatmapView: nextProps.isSeatmapView,\r\n isExchange: nextProps.isExchange,\r\n cartSeatsCount: nextProps.cartSeatsCount,\r\n clientSymbolSvgText: nextProps.clientSymbolSvgText,\r\n clientSymbolUrl: nextProps.clientSymbolUrl,\r\n myAccountUrl: nextProps.myAccountUrl,\r\n venueName: nextProps.venueName,\r\n seatmapCartIsOpen: nextProps.seatmapCartIsOpen,\r\n seatmapFiltersIsOpen: nextProps.seatmapFiltersIsOpen,\r\n viewFromSeatModalActive: nextProps.viewFromSeatModalActive,\r\n showCartConflictDialog: nextState.showCartConflictDialog,\r\n remainingCartTimer: nextProps.remainingCartTimer\r\n };\r\n\r\n return !isEqual(oldValue, newValue);\r\n }\r\n\r\n componentDidUpdate(prevProps: IAppBarProps) {\r\n if(prevProps.isSeatmapView !== this.props.isSeatmapView) {\r\n this._measureHeader();\r\n }\r\n }\r\n\r\n componentDidMount() {\r\n this._measureHeader();\r\n }\r\n\r\n render() {\r\n const useTagBackicon = '<use xlink:href=\"#icon-arrow-left\" />';\r\n const clientSvgAltText = this.props.altText !== null ? (this.props.altText.clientSvgLogo ? this.props.altText.clientSvgLogo : \"\") : \"\";\r\n const clientSymbolSvg = `<title id=\"clientSymbolSvg\">${clientSvgAltText}</title>` + this.props.clientSymbolSvgText;\r\n const cartSvg = `<svg aria-hidden=\"true\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 27 24\"\"><path d=\"M24.5199 14.1243L26.7147 4.37433C26.8731 3.67036 26.3432 3 25.6281 3H7.3918L6.96624 0.899531C6.86019 0.375984 6.40389 0 5.87456 0H1.11429C0.498875 0 0 0.503672 0 1.125V1.875C0 2.49633 0.498875 3 1.11429 3H4.35885L7.62037 19.0985C6.84009 19.5516 6.31429 20.401 6.31429 21.375C6.31429 22.8248 7.47834 24 8.91429 24C10.3502 24 11.5143 22.8248 11.5143 21.375C11.5143 20.6403 11.215 19.9765 10.7332 19.5H20.4668C19.985 19.9765 19.6857 20.6403 19.6857 21.375C19.6857 22.8248 20.8498 24 22.2857 24C23.7217 24 24.8857 22.8248 24.8857 21.375C24.8857 20.3357 24.2873 19.4376 23.4195 19.0123L23.6757 17.8743C23.8342 17.1704 23.3042 16.5 22.5891 16.5H10.1269L9.82299 15H23.4333C23.9536 15 24.4046 14.6365 24.5199 14.1243Z\" /></svg>`;\r\n const filtersSvg = `<svg aria-hidden=\"true\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 18\"><path d=\"M17,6c1.7,0,3-1.3,3-3s-1.3-3-3-3c-1.3,0-2.4,0.8-2.8,2H0v2h14.2C14.6,5.2,15.7,6,17,6z M17,2c0.6,0,1,0.4,1,1s-0.4,1-1,1 s-1-0.4-1-1S16.4,2,17,2z M7,6C5.7,6,4.6,6.8,4.2,8H0v2h4.2c0.4,1.2,1.5,2,2.8,2s2.4-0.8,2.8-2H20V8H9.8C9.4,6.8,8.3,6,7,6z M7,10 c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S7.6,10,7,10z M17,12c-1.3,0-2.4,0.8-2.8,2H0v2h14.2c0.4,1.2,1.5,2,2.8,2c1.7,0,3-1.3,3-3 S18.7,12,17,12z M17,16c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S17.6,16,17,16z\"/></svg>`;\r\n const xSvg = `<svg class=\"close-filters-icon\"><use xlink:href=\"#icon-close\" /></svg>`;\r\n\r\n const seatMapBackButton = (\r\n this.props.isExchange ?\r\n <a aria-label=\"Click here to go back to My Account\" href={this.props.myAccountUrl}>\r\n <svg className=\"header-back-icon\" dangerouslySetInnerHTML={{ __html: useTagBackicon }} />\r\n </a>\r\n :\r\n <a aria-label=\"Click here to go back to filters\" href=\"/\" onClick={this._backButtonCartConflictClick.bind(this)}>\r\n <svg className=\"header-back-icon\" dangerouslySetInnerHTML={{ __html: useTagBackicon }} />\r\n </a>\r\n );\r\n\r\n const filtersBackButtonSvg = (\r\n this.props.clientSymbolUrl !== null && this.props.clientSymbolUrl !== \"\" ?\r\n <a href={this.props.clientSymbolUrl} target=\"_top\" className=\"header-logo-link\">\r\n <svg className=\"header-logo\" aria-labelledby=\"clientSymbolSvg\" dangerouslySetInnerHTML={{ __html: clientSymbolSvg }} />\r\n </a>\r\n :\r\n <svg className=\"header-logo\" aria-labelledby=\"clientSymbolSvg\" dangerouslySetInnerHTML={{ __html: clientSymbolSvg }} />\r\n );\r\n\r\n const showCartCount = this.props.cartSeatsCount > 0;\r\n\r\n return (\r\n <header role=\"banner\" className={` ${this.props.viewFromSeatModalActive ? 'header-container-viewfromseat' : ''}` + (this.state.showCartConflictDialog ? ' modal-active' : '')} ref={this.headerRef}>\r\n\r\n {this.props.remainingCartTimer != null ?\r\n <CartTimer cartTimerMessaging={this.props.cartTimerMessaging}\r\n cartUrl={this.props.cartUrl}\r\n cartTimerExpiringMinute={this.props.cartTimerExpiringMinute}\r\n remainingCartTimer={this.props.remainingCartTimer}\r\n cartExpiredTitle={this.props.cartExpiredTitle}\r\n cartExpiredMessage={this.props.cartExpiredMessage}\r\n cartExpiredConfirmText={this.props.cartExpiredConfirmText}\r\n disableCartExpiredPopup={this.props.disableCartExpiredPopup}\r\n />\r\n : null\r\n }\r\n\r\n <div className=\"header-container\">\r\n <div className=\"header-info\">\r\n {\r\n this.props.isSeatmapView && !this.props.isSyosOnlyConfig ?\r\n seatMapBackButton\r\n : filtersBackButtonSvg\r\n }\r\n {\r\n this.props.isSyosOnlyConfig && this.props.rightNavSvgText !== null && this.props.rightNavSvgText.length > 0 ?\r\n this.props.rightNavUrl ?\r\n <a href={this.props.rightNavUrl} target=\"_top\" aria-labelledby=\"title\">\r\n {\r\n !!this.props.altText.rightNavSymbolAltText &&\r\n <span className=\"visually-hidden\">\r\n {this.props.altText.rightNavSymbolAltText}\r\n </span>\r\n }\r\n <div className=\"header-logo\" dangerouslySetInnerHTML={{ __html: this.props.rightNavSvgText }} ></div>\r\n </a>\r\n :\r\n <div className=\"header-logo\" dangerouslySetInnerHTML={{ __html: this.props.rightNavSvgText }} ></div>\r\n : null\r\n }\r\n <div>\r\n <h1 className=\"header-performance\" dangerouslySetInnerHTML={{\r\n __html: this.props.itemType === ItemType.Super && this.props.isSeatmapView ? this.props.venueName :\r\n this.props.headingTitle\r\n }} />\r\n </div>\r\n </div>\r\n\r\n {\r\n this.props.isSeatmapView ?\r\n <>\r\n <div className=\"header-filters\">\r\n <button type=\"button\" className=\"header-filters-link\" onClick={(evt) => this._toggleSeatmapCart(evt)}>\r\n <span className=\"caption-paragraph\"><strong>{this.props.seatmapCartText}</strong></span>\r\n <div className={this.props.seatmapCartIsOpen ? \"header-filters-filter-icon\" : \"header-filters-filter-icon\"} dangerouslySetInnerHTML={{ __html: cartSvg }} ></div>\r\n {showCartCount && <span className=\"cart-icon-amount\" id=\"cartAmountIcon\">{this.props.cartSeatsCount}</span>}\r\n </button>\r\n\r\n {\r\n this.props.showFiltersToggle ?\r\n <button type=\"button\" className=\"header-filters-link\" onClick={(evt) => this._toggleSeatmapFilters(evt)}>\r\n <span className=\"caption-paragraph\"><strong>{this.props.seatmapFiltersText}</strong></span>\r\n <div className={this.props.seatmapFiltersIsOpen ? \"header-filters-filter-icon\" : \"header-filters-filter-icon\"} dangerouslySetInnerHTML={{ __html: filtersSvg }} ></div>\r\n </button>\r\n : null\r\n }\r\n\r\n </div>\r\n\r\n </>\r\n :\r\n this.props.rightNavSvgText !== null ?\r\n this.props.rightNavUrl ?\r\n <a href={this.props.rightNavUrl} target=\"_top\">\r\n {\r\n !!this.props.altText.rightNavSymbolAltText &&\r\n <span className=\"visually-hidden\">\r\n {this.props.altText.rightNavSymbolAltText}\r\n </span>\r\n }\r\n <div className=\"header-right-icon\" dangerouslySetInnerHTML={{ __html: this.props.rightNavSvgText }} ></div>\r\n </a>\r\n :\r\n <div className=\"header-right-icon\" dangerouslySetInnerHTML={{ __html: this.props.rightNavSvgText }} ></div>\r\n : null\r\n }\r\n\r\n {this.state.showCartConflictDialog ?\r\n <Modal modalKey=\"reserve result\" isError={false} title={this.props.cartConflictErrorHeading}\r\n message={this.props.cartConflictErrorMessageText}\r\n confirmFunction={this._proceedToFilters.bind(this)}\r\n confirmString={this.props.modalConfirmButtonText}\r\n cancelFunction={this._closeDialog.bind(this)}\r\n closeFunction={this._closeDialog.bind(this)}\r\n cancelString={this.props.modalCancelButtonText}\r\n />\r\n : null\r\n }\r\n </div>\r\n </header>\r\n );\r\n }\r\n\r\n _backButtonCartConflictClick(e) {\r\n e.preventDefault();\r\n if (this.props.cartSeatsCount === 0) {\r\n this._proceedToFilters();\r\n } else {\r\n this.setState({ showCartConflictDialog: true });\r\n }\r\n }\r\n\r\n _closeDialog() {\r\n this.setState({ showCartConflictDialog: false });\r\n }\r\n\r\n _proceedToFilters() {\r\n this.setState({ showCartConflictDialog: false });\r\n this.props.dispatch(removeAllSeatsFromCart(this.props.itemId));\r\n this.context.router.history.push(\"/filters\");\r\n }\r\n\r\n _toggleSeatmapFilters(evt) {\r\n evt.preventDefault();\r\n\r\n this.props.dispatch(toggleSeatmapFilters());\r\n }\r\n\r\n _toggleSeatmapCart(evt) {\r\n evt.preventDefault();\r\n\r\n this.props.dispatch(toggleSeatmapCart());\r\n }\r\n\r\n _measureHeader() {\r\n if (this.headerRef?.current) {\r\n setTimeout(() => {\r\n const headerHeight = this.headerRef.current.offsetHeight;\r\n document.body.style.setProperty('--header-height', `${headerHeight}px`);\r\n }, 0);\r\n }\r\n }\r\n}\r\n\r\nfunction isHtmlPrompt(message: string) {\r\n if (message === null)\r\n return false;\r\n return message.substr(0, 4) === \"<div\";\r\n}\r\n\r\nexport default AppMenu;","import * as React from 'react';\r\nimport { Dispatch } from 'redux';\r\n\r\nimport { ICartModel } from '../../cart/reducers/cart-reducer';\r\nimport { removeAllSeatsFromCart } from '../../cart/actions/cart-actions';\r\nimport { IAppSettingsModel } from '../../reducers/fetch-settings-reducer';\r\nimport { IApplicationModel } from '../../reducers/app-reducer';\r\nimport Modal from '../../common/modal/modal';\r\n\r\n\r\ninterface ICartTimerProps {\r\n cartTimerExpiringMinute: number;\r\n cartTimerMessaging: string;\r\n remainingCartTimer: number;\r\n cartUrl: string;\r\n cartExpiredTitle: string;\r\n cartExpiredMessage: string;\r\n cartExpiredConfirmText: string;\r\n disableCartExpiredPopup: boolean;\r\n}\r\n\r\nclass CartTimer extends React.Component<ICartTimerProps, { seconds: any, minutes: any, expiring: boolean, expired: boolean }>{\r\n private secondsRemaining: number;\r\n private intervalHandle: NodeJS.Timer;\r\n private timerRef: React.RefObject<HTMLDivElement>;\r\n\r\n constructor(props) {\r\n super(props);\r\n\r\n this.handleChange = this.handleChange.bind(this);\r\n this.tick = this.tick.bind(this);\r\n this.timerRef = React.createRef<HTMLDivElement>();\r\n\r\n if (props.remainingCartTimer > 0) {\r\n var secs = Math.floor((+(props.remainingCartTimer % 1).toFixed(4)) * 60);\r\n this.state = {\r\n ...this.state,\r\n minutes: Math.floor(props.remainingCartTimer),\r\n seconds: secs,\r\n expiring: false\r\n };\r\n this.startCountDown();\r\n } else {\r\n this.state = {\r\n seconds: '0',\r\n minutes: '',\r\n expiring: false,\r\n expired: false\r\n }\r\n }\r\n this.secondsRemaining;\r\n this.intervalHandle;\r\n\r\n }\r\n\r\n handleChange(event) {\r\n this.setState({\r\n minutes: event.target.value\r\n })\r\n }\r\n\r\n tick() {\r\n var min = Math.floor(this.secondsRemaining / 60);\r\n var sec = this.secondsRemaining - (min * 60);\r\n\r\n var newSeconds = sec.toString();\r\n var newMinutes = min.toString();\r\n var expiring = false;\r\n\r\n if (sec < 10 && newSeconds.length < 2) {\r\n newSeconds = \"0\" + newSeconds;\r\n }\r\n if (min < 10 && newMinutes.length < 2) {\r\n newMinutes = \"0\" + newMinutes;\r\n }\r\n if (min < this.props.cartTimerExpiringMinute) {\r\n expiring = true;\r\n }\r\n\r\n if (min === 0 && sec === 0) {\r\n clearInterval(this.intervalHandle);\r\n this.setState({ ...this.state, expired: true });\r\n }\r\n this.setState({\r\n minutes: newMinutes,\r\n seconds: newSeconds,\r\n expiring: expiring\r\n });\r\n this.secondsRemaining--\r\n }\r\n\r\n startCountDown() {\r\n var appContainer = document.getElementById('app-container');\r\n appContainer.classList.add('cart-timer-active');\r\n\r\n this.intervalHandle = setInterval(this.tick, 1000);\r\n let time = this.state.minutes;\r\n this.secondsRemaining = (time * 60) + this.state.seconds;\r\n }\r\n\r\n componentWillReceiveProps(nextProps: ICartTimerProps) {\r\n if (this.props.remainingCartTimer !== nextProps.remainingCartTimer\r\n && this.state.minutes.length === 0) {\r\n this.setState({\r\n ...this.state,\r\n minutes: nextProps.remainingCartTimer\r\n });\r\n this.startCountDown();\r\n }\r\n }\r\n\r\n componentDidMount() {\r\n if (this.timerRef?.current) {\r\n setTimeout(() => {\r\n const timerHeight = this.timerRef.current.offsetHeight;\r\n document.body.style.setProperty('--timer-height', `${timerHeight}px`);\r\n }, 0);\r\n }\r\n }\r\n\r\n currentTimerMsg() {\r\n return { __html: this.props.cartTimerMessaging.replace('{1}', \"<span>\" + this.state.minutes + \":\" + this.state.seconds + \"</span>\") };\r\n }\r\n\r\n reloadPage() {\r\n location.reload();\r\n }\r\n\r\n render() {\r\n return (\r\n <>\r\n <div className={'cart-timer' + (this.state.expiring ? ' cart-timer-expiring' : '')} ref={this.timerRef}>\r\n <div className=\"cart-timer-inner\">\r\n <p className=\"caption-paragraph\" dangerouslySetInnerHTML={this.currentTimerMsg()} />\r\n </div>\r\n </div>\r\n {\r\n this.state.expired && !this.props.disableCartExpiredPopup ?\r\n <Modal title={this.props.cartExpiredTitle}\r\n isError={true}\r\n message={this.props.cartExpiredMessage}\r\n modalKey=\"cart expired\"\r\n confirmString={this.props.cartExpiredConfirmText}\r\n confirmFunction={this.reloadPage.bind(this)}\r\n />\r\n : null\r\n }\r\n </>\r\n );\r\n }\r\n\r\n}\r\n\r\nexport default CartTimer;\r\n","import * as React from 'react';\r\nimport { Html } from '../../helpers/html-helpers';\r\n\r\ninterface IPerformanceMessagingProps {\r\n performanceMessaging: string;\r\n}\r\n\r\nclass AppMenu extends React.PureComponent<IPerformanceMessagingProps, { hideMessaging: boolean }>{\r\n private alertRef: React.RefObject<HTMLDivElement>;\r\n constructor(props) {\r\n super(props);\r\n this.state = { hideMessaging: false };\r\n this.alertRef = React.createRef<HTMLDivElement>();\r\n }\r\n render() {\r\n const useTagCloseicon = '<use xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"#icon-close\" />';\r\n\r\n var openClass = \"alert-container\";\r\n if (!this.state.hideMessaging) {\r\n openClass += \" alert-container-open\";\r\n document.getElementById('app-container').classList.add('alert-container-active');\r\n if (this.alertRef) {\r\n // This will set a css custom property so that the layout can adjust to avoid the alert (on mobile), and not trap content\r\n setTimeout(() => {\r\n const alertHeight = this.alertRef.current.offsetHeight;\r\n document.body.style.setProperty('--alert-height', `${alertHeight}px`);\r\n }, 0);\r\n }\r\n }\r\n return (\r\n <div className={openClass} ref={this.alertRef}>\r\n <div className=\"alert-container-inner\">\r\n\r\n {Html.renderParagraph(this.props.performanceMessaging, \"caption-paragraph\")}\r\n\r\n <button type=\"button\" className=\"alert-close\" onClick={this._alertCloseClick.bind(this)}>\r\n {/*todo make dynamic*/}\r\n <span className=\"visually-hidden\">Close Alert</span>\r\n <svg className=\"alert-close-icon\" role=\"presentation\" dangerouslySetInnerHTML={{ __html: useTagCloseicon }} ></svg>\r\n </button>\r\n </div>\r\n\r\n </div>\r\n );\r\n }\r\n\r\n _alertCloseClick(evt) {\r\n evt.preventDefault();\r\n this.setState({ hideMessaging: true });\r\n document.getElementById('app-container').classList.remove('alert-container-active');\r\n document.body.style.setProperty('--alert-height', `0px`);\r\n }\r\n\r\n}\r\n\r\nexport default AppMenu;\r\n","import * as React from 'react';\r\n\r\ninterface ISecondaryNavProps {\r\n performanceDate: string;\r\n performanceTime: string;\r\n performanceVenue: string;\r\n}\r\n\r\nclass SecondaryNav extends React.PureComponent<ISecondaryNavProps, { showCartConflictDialog: boolean }>{\r\n\r\n constructor(props) {\r\n super(props);\r\n }\r\n render() {\r\n return (\r\n <div className=\"seatmap-header seatmap-header-filter\">\r\n <p className=\"caption-paragraph\">\r\n {\r\n this.props.performanceDate !== null\r\n ?\r\n <span className=\"seatmap-header-date\">{this.props.performanceDate}, </span>\r\n : null\r\n }\r\n {\r\n this.props.performanceTime !== null\r\n ?\r\n <span className=\"seatmap-header-time\">{this.props.performanceTime}, </span>\r\n : null\r\n }\r\n {\r\n\r\n this.props.performanceVenue.length >= 0 ?\r\n <span className=\"seatmap-header-venue\">{this.props.performanceVenue}</span>\r\n : null\r\n }\r\n </p>\r\n </div>\r\n );\r\n }\r\n}\r\n\r\nexport default SecondaryNav;","import { ActionType, ActionTypes } from '../actions/index';\r\nimport { IAppAction } from '../actions/app-actions';\r\nimport * as redux from 'redux';\r\n\r\nexport interface IApplicationModel {\r\n viewFromSeatModalActive: boolean;\r\n filtersModified: boolean;\r\n loading: boolean;\r\n}\r\n\r\nlet defaultApplicationModel = {\r\n viewFromSeatModalActive: false,\r\n filtersModified: false,\r\n loading: false\r\n};\r\n\r\nexport { defaultApplicationModel };\r\n\r\nexport function applicationModel(state: IApplicationModel = defaultApplicationModel, action: IAppAction) {\r\n switch (action.type) {\r\n case ActionTypes.OPEN_SEATVIEW_MODAL:\r\n return { ...state, viewFromSeatModalActive: true };\r\n case ActionTypes.CLOSE_SEATVIEW_MODAL:\r\n return { ...state, viewFromSeatModalActive: false };\r\n case ActionTypes.LOADING_SCREEN:\r\n return { ...state, loading: action.value };\r\n case ActionTypes.TOGGLE_VENUE_LEVEL:\r\n return { ...state, filtersModified: true };\r\n case ActionTypes.ADD_ADDITIONAL_SEATING_OPTION_QUANTITY:\r\n return { ...state, filtersModified: true };\r\n //case ActionTypes.SET_PACKAGE_TICKET_QUANTITIES:\r\n // return { ...state, packageTicketQuantity: JSON.parse(action.value) };\r\n default:\r\n return state\r\n }\r\n}","import { ActionTypes } from '../actions/index';\r\nimport { IFetchStateAction } from '../actions/settings-fetch';\r\nimport { IExchangeTicket } from '../classes/ticket-exchange';\r\n\r\nexport interface IExchangeSettingsModel {\r\n exchangeTickets: Array<IExchangeTicket>,\r\n activeExchangeTickets: Array<IExchangeTicket>,\r\n}\r\n\r\nlet defaultExchangeSettingsModel: IExchangeSettingsModel = {\r\n exchangeTickets: [],\r\n activeExchangeTickets: []\r\n};\r\n\r\nexport { defaultExchangeSettingsModel };\r\n\r\nexport function exchangeSettingsModel(state: IExchangeSettingsModel = defaultExchangeSettingsModel, action: IFetchStateAction): IExchangeSettingsModel {\r\n switch (action.type) {\r\n case ActionTypes.LOAD_EXCHANGES:\r\n return { ...state, exchangeTickets: action.value };\r\n case ActionTypes.SET_CURRENT_EXCHANGE_TICKETS:\r\n return { ...state, activeExchangeTickets: action.value.exchangeTickets };\r\n default:\r\n return state\r\n }\r\n}","import { ActionType, ActionTypes } from '../actions/index';\r\nimport { IFetchStateAction } from '../actions/settings-fetch';\r\nimport { PriceType } from '../classes/price-type';\r\nimport IAltText from '../classes/alt-text';\r\nimport { SeatingOptionGroup } from '../classes/seating-option';\r\nimport { Level } from '../classes/level';\r\nimport { Performance } from '../classes/performance';\r\nimport { ItemType } from '../classes/item-type';\r\nimport { IExchangeTicket } from '../classes/ticket-exchange';\r\nimport { IPromoCodeDetails } from '../classes/promo-code-details';\r\nimport { SeatZone } from '../classes/seat';\r\n\r\nexport interface IAppSettingsModel {\r\n requesting: false;\r\n altText: IAltText;\r\n googleAnalyticsId: string;\r\n brandId: string;\r\n itemName: string;\r\n itemNameRichText: string;\r\n performanceDate: Date;\r\n performanceTimeZone: string;\r\n itemOnSale: boolean;\r\n itemAvailable: boolean;\r\n promoCodeOnly: boolean;\r\n currencyFormat: string;\r\n currentCulture: string;\r\n language: string;\r\n currencyFormatCountries: Array<string>;\r\n performanceDateString: string;\r\n performanceTimeString: string;\r\n itemType: ItemType;\r\n isVariablePriceType: boolean;\r\n itemId: number;\r\n maxTicketQuantity: number;\r\n minTicketQuantity: number;\r\n groupTicketMessaging: string;\r\n reserveErrorMessage: string;\r\n cartConflictErrorHeading: string;\r\n cartTimerWithCountMessage: string;\r\n cartTimerMessage: string;\r\n cartCount: number;\r\n cartConflictErrorMessageText: string;\r\n mapScale: number;\r\n mapScaleSensitivity: number;\r\n mapMaxZoom: number;\r\n showZoomControlRight: boolean;\r\n seatFetchErrorMessage: string;\r\n cartUrl: string;\r\n myAccountUrl: string;\r\n priceTypeSettings: Array<PriceType>;\r\n currentPromoCode: IPromoCodeDetails;\r\n svgDefaultFillColor: string;\r\n svgHoverFillColor: string;\r\n svgStrokeColor: string;\r\n svgStrokeWidth: number;\r\n svgSelectedFillColor: string;\r\n renderAisleSeatToggle: string;\r\n renderAdditionalSeatingOptions: string;\r\n renderAdditionalSeatingOptionsBelowTicketQuantity: boolean;\r\n openAdditionalSeatingOptionsOnLoad: boolean;\r\n renderAdditionalNotes: boolean;\r\n showPerformanceListOnLoad: string;\r\n additionalSeatingOptions: Array<SeatingOptionGroup>;\r\n additionalNotesTitle: string;\r\n additionalNotesPlaceholder: string;\r\n\r\n priceTypeCriteriaNotReachedShowAsModal: boolean;\r\n forcePatronsReserveInMultiples: number;\r\n forcePatronsReserveWholeRow: boolean;\r\n forceMultipleCartMessageText: string;\r\n forceMultipleFilterMessageText: string;\r\n\r\n loadingText: string;\r\n loadingSvgText: string;\r\n\r\n cartSubtotalLabel: string;\r\n cartEmptyNotice: string;\r\n seatIsInCartMessage: string;\r\n groupSeatsInCartMessage: string;\r\n groupSeatCartItemText: string;\r\n seatsRemainingText: string;\r\n seatHoverMissingPriceTypesMessage: string;\r\n\r\n cartAddMoreButton: string;\r\n cartCheckoutButton: string;\r\n cartMessage: string;\r\n\r\n filterDateAndTimeTitle: string;\r\n filterPriceRangeTitle: string;\r\n filterPriceRangeMessage: string;\r\n filterPriceRangeMin: string;\r\n filterPriceRangeMax: string;\r\n\r\n addToCartButtonText: string;\r\n updateCartButtonText: string;\r\n viewCartButtonText: string;\r\n goToCartButtonText: string;\r\n\r\n clearButton: string;\r\n\r\n filterFoundToast: string;\r\n filterSearchingToast: string;\r\n filterToastThreshold: string;\r\n filterErrorToast: string;\r\n\r\n filterProceedButton: string;\r\n filterQuickCheckoutButton: string;\r\n\r\n filterAdditionalSeatingOptionsTitle: string;\r\n filterAdditionalSeatingOptionsMessage: string;\r\n\r\n gaZoneSelectTicketMessage: string;\r\n aisleAccessSeatsLabel: string;\r\n canBeSeparatedLabel: string;\r\n\r\n legendText: string;\r\n legendModalText: string;\r\n changeLevelsButtonText: string;\r\n\r\n missingSelectedSeatingOptionNotice: string;\r\n missingAttestationErrorMessageHeader: string;\r\n missingAttestationErrorMessageText: string;\r\n missingAttestationErrorMessageButton: string;\r\n attestationSeatCancelButton: string;\r\n attestationSeatConfirmationButton: string;\r\n\r\n leaveOrphanedSeatsMessage: string;\r\n venueSvgHighlightShading: string;\r\n seatmapSvgViewBox: string;\r\n seatmapBackgroundImage: string;\r\n seatmapBackgroundPathFill: string;\r\n seatmapBackgroundPathStroke: number;\r\n venueBackgroundPaths: Array<string>;\r\n\r\n specialSeatingRemovalConfirmPromptHeader: string;\r\n specialSeatingRemovalConfirmPromptMessage: string;\r\n\r\n productionPerformances: Array<Performance>;\r\n\r\n allPerformancesPassedModalTitle: string;\r\n allPerformancesPassedModalMessage: string;\r\n\r\n performanceNotOnSaleModalTitle: string;\r\n performanceNotOnSaleModalMessage: string;\r\n performanceSoldOutModalTitle: string,\r\n performanceSoldOutModalMessage: string,\r\n performanceNotOnSaleRedirectUrl: string;\r\n performanceNotOnSaleRedirectButtonText: string;\r\n\r\n ticketQuantityZeroModalTitle: string;\r\n ticketQuantityZeroModalMessage: string;\r\n ticketQuantityZeroRedirectUrl: string;\r\n ticketQuantityZeroRedirectButtonText: string;\r\n\r\n changeDateSelectionHeader: string;\r\n changeDateModalOKbutton: string;\r\n changeDateModalCancelbutton: string;\r\n\r\n seatmapLoadErrorTitle: string;\r\n seatmapLoadErrorMessage: string;\r\n seatmapLoadErrorBackButton: string;\r\n seatmapLoadErrorRedirectUrl: string;\r\n\r\n performanceHasPassedText: string;\r\n\r\n clientSymbolSvgText: string;\r\n clientSymbolUrl: string;\r\n\r\n stopLoadingAnimationButtonText: string;\r\n\r\n venueName: string;\r\n venueLevels: Array<Level>;\r\n defaultSelectedLevelIds: Array<number>;\r\n\r\n allowExchangesAddon: boolean;\r\n exchangeTickets: Array<IExchangeTicket>;\r\n exchangeTokenExpiredErrorTitle: string;\r\n exchangeTokenExpiredErrorMessage: string;\r\n exchangeTokenFetchErrorTitle: string;\r\n exchangeTokenFetchErrorMessage: string;\r\n\r\n maxQuantityPriceTypeSelectedError: string;\r\n minimumSeatsSingleTicketRequiredMessage: string;\r\n maxQuantitySeatingOptionSelectedError: string;\r\n maxQuantityPriceTypeSelectedErrorTextReplace: string;\r\n priceTypeNotSelectedError: string;\r\n\r\n noMoreExchangeTicketsRemainingError: string;\r\n\r\n exchangeAdditionalTicketsRemainingMessage: string;\r\n exchangeTicketsRemainingMessage: string;\r\n exchangeCostRemainingMessage: string;\r\n availableAddOnsMessage: string;\r\n exchangeFreeLabel: string;\r\n\r\n isGeneralAdmissionVenue: boolean;\r\n isSelectSeatVenue: boolean;\r\n displayLevelSelectionOnLoad: boolean;\r\n\r\n displayCartTimer: boolean;\r\n cartTimerExpiringMinute: number;\r\n\r\n rightNavSvgText: string;\r\n rightNavSvgFile: string;\r\n rightNavUrl: string;\r\n\r\n performanceMessaging: string;\r\n pricingRulesMessaging: string;\r\n filterPageHeaderTitle: string;\r\n filterPageHeaderMessage: string;\r\n filterPageNoPricingMessage: string;\r\n\r\n packageQuantityStepOneButton: string;\r\n\r\n subscriptionFilterPageHeaderTitle: string;\r\n subscriptionFilterPageHeaderMessage: string;\r\n subscriptionQuantitySelectPageHeaderTitle: string;\r\n subscriptionQuantitySelectPageHeaderMessage: string;\r\n\r\n filterTicketStartingPrice: string;\r\n subscriptionFilterPackageTicketStartingPrice: string;\r\n\r\n minimumSeatsRequiredMessage: string;\r\n maximumSeatsRequiredMessage: string;\r\n\r\n singleClickSeatAddedMessage: string;\r\n singleClickSeatRemovedMessage: string;\r\n\r\n disableOneClick: boolean;\r\n disableOneClickRemove: boolean;\r\n enableZoneUpsells: boolean;\r\n disableSeatHover: boolean;\r\n disableMobileViewFromSeat: boolean;\r\n seatHoverMessageText: string;\r\n\r\n useZoneDescription: boolean;\r\n\r\n modalConfirmButtonText: string;\r\n modalCancelButtonText: string;\r\n emptyCartButtonText: string;\r\n\r\n noSeatsMatchFilterQuickCheckoutModalTitle: string;\r\n noSeatsMatchFilterQuickCheckoutModalMessage: string;\r\n\r\n onlyADASeatsMatchFilterGoToSeatmapModalTitle: string;\r\n onlyADASeatsMatchFilterGoToSeatmapModalMessage: string;\r\n showSeatingLegendOnPageLoad: boolean;\r\n showSeatingLegendAsModal: boolean;\r\n\r\n disableCartExpiredPopup: boolean;\r\n\r\n changeDateAndButtonText: string;\r\n reservingSeatMessage: string;\r\n\r\n viewFromSeatCaptionText: string;\r\n\r\n performanceListFilterTitle: string;\r\n performanceListMessage: string;\r\n promoCodeTitle: string;\r\n numberOfTicketsTitle: string;\r\n numberOfTicketsMessage: string;\r\n levelsHeading: string;\r\n levelsSectionMessage: string;\r\n levelAvailableCountMessage: string;\r\n showPricingOnLevelFilter: boolean;\r\n showLevelAvailabilityOnLevelFilter: boolean;\r\n\r\n enablePromoCodes: boolean;\r\n enableDateChange: boolean;\r\n showPromoCodeSectionOnPageLoad: boolean;\r\n selectAllPriceTypesOnSeatmap: boolean;\r\n selectOnlyDefaultPriceTypesOnSeatmap: boolean;\r\n useOnlyPromoPriceType: boolean;\r\n promoCodeApplicationSuccessMessage: string;\r\n promoCodeSuccessMessage: string;\r\n promoCodeApplicationErrorMessage: string;\r\n promoCodeConfirmApplyTitle: string;\r\n promoCodeConfirmApplyMessage: string;\r\n promoCodeConfirmApplyConfirm: string;\r\n promoCodeConfirmApplyCancel: string;\r\n cartTitle: string;\r\n refreshSeatmapTimestamp: Date;\r\n /**\r\n * On the filters page, the main message for the modal that pops up to notify the user that they will have to choose their own seats without suggested seats.\r\n */\r\n noSeatsMatchFilterGoToSeatmapModalMessage: string;\r\n /**\r\n * On the filters page, the title for the modal that pops up to notify the user that they will have to choose their own seats without suggested seats.\r\n */\r\n noSeatsMatchFilterGoToSeatmapModalTitle: string;\r\n /**\r\n * On the filters page, the text for the cancel button on the modal that pops up to notify the user that they will have to choose their own seats without suggested seats.\r\n */\r\n noSeatsMatchFilterGoToSeatmapModalCancel: string;\r\n /**\r\n * On the filters page, the text for the proceed button on the modal that pops up to notify the user that they will have to choose their own seats without suggested seats.\r\n */\r\n noSeatsMatchFilterGoToSeatmapModalProceed: string;\r\n\r\n onlyGALevelsSelectedGoToSeatmapModalMessage: string;\r\n onlyGALevelsSelectedGoToSeatmapModalTitle: string;\r\n onlyGALevelsSelectedGoToSeatmapModalCancel: string;\r\n onlyGALevelsSelectedGoToSeatmapModalProceed: string;\r\n\r\n /**\r\n * Determine if the price range component starts off expanded when the user enters Seatmap.\r\n */\r\n expandFiltersOnSeatmapLoad: boolean;\r\n\r\n expandLevelFilterOnSeatmapLoad: boolean;\r\n\r\n /**\r\n * Title for the price range filter on the seatmap.\r\n */\r\n seatmapPriceRangeFilterHeader: string;\r\n /**\r\n * Instructinos for the price range filter on the seatmap.\r\n */\r\n seatmapPriceRangeFilterInstructions: string;\r\n\r\n /**\r\n * Text to label the Filters button on the seatmap.\r\n */\r\n seatmapTicketTypeFilterHeader: string;\r\n /**\r\n * Instructions for the ticket type filter on the seatmap.\r\n */\r\n seatmapTicketTypeFilterInstructions: string;\r\n /**\r\n * Text to label the Filters button on the seatmap.\r\n */\r\n\r\n showLevelFilter: boolean;\r\n seatmapTicketTypeAllTicketsLabel: string;\r\n seatmapFiltersText: string;\r\n seatmapSelectedSeatText: string;\r\n seatmapSelectedZoneText: string;\r\n\r\n defaultAllLevelsSelected: boolean;\r\n\r\n flexInstructions: string;\r\n flexTotalLabel: string;\r\n flexPackageName: string;\r\n\r\n packagePerformances: Array<Performance>;\r\n packageTotalPrice: number;\r\n currentItemIndex: number;\r\n packageTotalCount: number;\r\n packageProgressMessage: string;\r\n seatQuantityText: string;\r\n packagePriceText: string;\r\n showPackageProgressBar: boolean;\r\n showPackagePerformancesOnLoad: boolean;\r\n\r\n clientLeftNavLinkUrl: string;\r\n clientRightNavLinkUrl: string;\r\n\r\n ///**\r\n //* Upsells\r\n //*/\r\n upsellMessageText: string;\r\n upsellButtonText: string;\r\n zoneUpsellNumberOfTimesToUpsell: number;\r\n zoneUpsellEnableForMobile: boolean;\r\n\r\n showAttestationOnlyOnce: boolean;\r\n\r\n allowOrphanedSeats: boolean;\r\n disableSmartSeatPageTitle: boolean;\r\n combinePriceTypeSpecialSeatingFilters: boolean;\r\n showPriceTypesSeatMapFilter: boolean;\r\n showSpecialSeatingSeatMapFilter: boolean;\r\n hidePricesInCart: boolean;\r\n hidePricesOnSeatHover: boolean;\r\n subpackageHideMessage: string;\r\n\r\n // Seat Fee Updates\r\n displaySeatFee?: boolean;\r\n seatFeePreviewTitle?: string;\r\n seatFeePreviewMessage?: string;\r\n seatFeePreviewTicketTypeFormat?: string;\r\n priceTypeTextHeadingFormat?: string;\r\n seatFeePreviewCancelText?: string;\r\n seatFeePreviewSeatmapText?: string;\r\n seatFeePreviewConfirmText?: string;\r\n ticketCostText?: string;\r\n feeAmountText?: string;\r\n startingPriceFeeHeading?: string;\r\n priceFeeHeading?: string;\r\n venueLevelRangeFeesNote?: string;\r\n\r\n seatZones?: Array<SeatZone>;\r\n\r\n // Promo code on packages\r\n disablePromoWhenCartNotEmpty: boolean,\r\n showDisabledPromoMessage: boolean,\r\n disabledPromoMessage: string\r\n\r\n // Cart expired\r\n cartExpiredTitle: string;\r\n cartExpiredMessage: string;\r\n cartExpiredConfirmText: string;\r\n\r\n showPerformanceTitleInDateModal: boolean;\r\n}\r\n\r\nlet defaultAppSettingModel: IAppSettingsModel = {\r\n currentCulture: null,\r\n disableSmartSeatPageTitle: false,\r\n altText: {\r\n clientSvgLogo: '',\r\n rightNavSymbolAltText: '',\r\n cartIcon: '',\r\n expandSectionArrow: '',\r\n filtersLevelSelection: '',\r\n legendIcon: '',\r\n levelMapSvg: '',\r\n seatMap: '',\r\n seatViewMagnifyingGlassSvg: '',\r\n selectedSeatSvg: ''\r\n },\r\n clientLeftNavLinkUrl: '',\r\n clientRightNavLinkUrl: '',\r\n googleAnalyticsId: '',\r\n itemId: 0,\r\n itemType: ItemType.Performance,\r\n language: null,\r\n isVariablePriceType: false,\r\n performanceDate: null,\r\n performanceDateString: '',\r\n performanceTimeZone: '',\r\n itemName: '',\r\n itemNameRichText: '',\r\n displayCartTimer: true,\r\n cartTimerMessage: '',\r\n cartTimerWithCountMessage: '',\r\n cartCount: 0,\r\n performanceTimeString: '',\r\n itemOnSale: true,\r\n itemAvailable: true,\r\n promoCodeOnly: false,\r\n priceTypeSettings: [],\r\n maxTicketQuantity: 8,\r\n minTicketQuantity: 0,\r\n groupTicketMessaging: '',\r\n reserveErrorMessage: '',\r\n seatFetchErrorMessage: '',\r\n cartUrl: '',\r\n myAccountUrl: '',\r\n enablePromoCodes: true,\r\n enableDateChange: true,\r\n currentPromoCode: null,\r\n svgDefaultFillColor: '',\r\n svgHoverFillColor: '',\r\n svgStrokeColor: '',\r\n svgStrokeWidth: 0,\r\n svgSelectedFillColor: '',\r\n showLevelFilter: true,\r\n seatHoverMessageText: '',\r\n renderAisleSeatToggle: 'false',\r\n renderAdditionalSeatingOptions: 'true',\r\n renderAdditionalSeatingOptionsBelowTicketQuantity: false,\r\n openAdditionalSeatingOptionsOnLoad: false,\r\n renderAdditionalNotes: true,\r\n showPerformanceListOnLoad: 'false',\r\n additionalSeatingOptions: [],\r\n additionalNotesPlaceholder: '',\r\n additionalNotesTitle: '',\r\n mapMaxZoom: 5,\r\n showZoomControlRight: false,\r\n mapScale: 1,\r\n mapScaleSensitivity: .25,\r\n seatmapSvgViewBox: '0 0 500 600',\r\n seatmapBackgroundImage: '',\r\n seatmapBackgroundPathFill: '',\r\n seatmapBackgroundPathStroke: 0,\r\n venueBackgroundPaths: [],\r\n currencyFormat: '',\r\n currencyFormatCountries: [],\r\n loadingText: '',\r\n loadingSvgText: '',\r\n cartConflictErrorHeading: '',\r\n cartConflictErrorMessageText: '',\r\n seatIsInCartMessage: '',\r\n groupSeatsInCartMessage: '',\r\n groupSeatCartItemText: '',\r\n seatsRemainingText: '',\r\n seatHoverMissingPriceTypesMessage: '',\r\n cartSubtotalLabel: '',\r\n cartEmptyNotice: '',\r\n cartAddMoreButton: '',\r\n cartCheckoutButton: '',\r\n cartMessage: '',\r\n missingAttestationErrorMessageHeader: '',\r\n missingAttestationErrorMessageText: '',\r\n missingAttestationErrorMessageButton: '',\r\n attestationSeatCancelButton: '',\r\n attestationSeatConfirmationButton: '',\r\n leaveOrphanedSeatsMessage: '',\r\n filterFoundToast: '',\r\n filterSearchingToast: '',\r\n filterToastThreshold: '',\r\n filterErrorToast: '',\r\n reservingSeatMessage: '',\r\n changeDateSelectionHeader: '',\r\n changeDateModalOKbutton: '',\r\n changeDateModalCancelbutton: '',\r\n cartTimerExpiringMinute: 0,\r\n\r\n filterProceedButton: '',\r\n filterQuickCheckoutButton: '',\r\n addToCartButtonText: '',\r\n updateCartButtonText: '',\r\n viewCartButtonText: '',\r\n goToCartButtonText: '',\r\n\r\n priceTypeCriteriaNotReachedShowAsModal: false,\r\n forcePatronsReserveInMultiples: 0,\r\n forcePatronsReserveWholeRow: false,\r\n forceMultipleCartMessageText: \"\",\r\n forceMultipleFilterMessageText: \"\",\r\n\r\n legendText: '',\r\n legendModalText: '',\r\n changeLevelsButtonText: '',\r\n levelAvailableCountMessage: '',\r\n\r\n viewFromSeatCaptionText: '',\r\n\r\n filterDateAndTimeTitle: '',\r\n filterPriceRangeTitle: '',\r\n filterPriceRangeMessage: '',\r\n filterPriceRangeMin: '',\r\n filterPriceRangeMax: '',\r\n clearButton: '',\r\n\r\n seatmapSelectedZoneText: '',\r\n missingSelectedSeatingOptionNotice: '',\r\n\r\n aisleAccessSeatsLabel: '',\r\n canBeSeparatedLabel: '',\r\n\r\n filterAdditionalSeatingOptionsTitle: '',\r\n filterAdditionalSeatingOptionsMessage: '',\r\n productionPerformances: [],\r\n promoCodeApplicationErrorMessage: '',\r\n promoCodeApplicationSuccessMessage: '',\r\n promoCodeSuccessMessage: '',\r\n promoCodeConfirmApplyCancel: '',\r\n promoCodeConfirmApplyConfirm: '',\r\n promoCodeConfirmApplyMessage: '',\r\n promoCodeConfirmApplyTitle: '',\r\n allPerformancesPassedModalTitle: '',\r\n allPerformancesPassedModalMessage: '',\r\n performanceNotOnSaleModalTitle: '',\r\n performanceNotOnSaleModalMessage: '',\r\n performanceSoldOutModalTitle: '',\r\n performanceSoldOutModalMessage: '',\r\n performanceNotOnSaleRedirectUrl: '',\r\n performanceNotOnSaleRedirectButtonText: '',\r\n\r\n ticketQuantityZeroModalTitle: '',\r\n ticketQuantityZeroModalMessage: '',\r\n ticketQuantityZeroRedirectUrl: '',\r\n ticketQuantityZeroRedirectButtonText: '',\r\n\r\n performanceHasPassedText: '',\r\n clientSymbolSvgText: '',\r\n clientSymbolUrl: '',\r\n\r\n seatmapLoadErrorTitle: '',\r\n seatmapLoadErrorMessage: '',\r\n seatmapLoadErrorBackButton: '',\r\n seatmapLoadErrorRedirectUrl: '',\r\n\r\n stopLoadingAnimationButtonText: '',\r\n\r\n venueName: '',\r\n venueLevels: [],\r\n defaultSelectedLevelIds: [],\r\n\r\n allowExchangesAddon: true,\r\n exchangeTickets: [],\r\n exchangeTokenExpiredErrorMessage: \"\",\r\n exchangeTokenExpiredErrorTitle: \"\",\r\n exchangeTokenFetchErrorTitle: \"\",\r\n exchangeTokenFetchErrorMessage: \"\",\r\n availableAddOnsMessage: \"\",\r\n maxQuantityPriceTypeSelectedError: \"\",\r\n minimumSeatsSingleTicketRequiredMessage: \"\",\r\n maxQuantityPriceTypeSelectedErrorTextReplace: \"\",\r\n maxQuantitySeatingOptionSelectedError: \"\",\r\n priceTypeNotSelectedError: \"\",\r\n noMoreExchangeTicketsRemainingError: \"\",\r\n onlyADASeatsMatchFilterGoToSeatmapModalMessage: \"\",\r\n onlyADASeatsMatchFilterGoToSeatmapModalTitle: \"\",\r\n exchangeAdditionalTicketsRemainingMessage: \"\",\r\n exchangeTicketsRemainingMessage: \"\",\r\n exchangeCostRemainingMessage: \"\",\r\n\r\n exchangeFreeLabel: \"\",\r\n isGeneralAdmissionVenue: false,\r\n isSelectSeatVenue: false,\r\n displayLevelSelectionOnLoad: true,\r\n brandId: '',\r\n singleClickSeatAddedMessage: '',\r\n singleClickSeatRemovedMessage: '',\r\n\r\n rightNavSvgText: '',\r\n rightNavSvgFile: '',\r\n rightNavUrl: '',\r\n performanceMessaging: '',\r\n pricingRulesMessaging: '',\r\n disableOneClick: false,\r\n disableOneClickRemove: false,\r\n enableZoneUpsells: false,\r\n disableSeatHover: true,\r\n disableMobileViewFromSeat: false,\r\n showSeatingLegendOnPageLoad: false,\r\n showSeatingLegendAsModal: true,\r\n disableCartExpiredPopup: false,\r\n filterPageHeaderMessage: '',\r\n filterPageHeaderTitle: '',\r\n filterPageNoPricingMessage: '',\r\n packageQuantityStepOneButton: '',\r\n\r\n subscriptionFilterPageHeaderTitle: '',\r\n subscriptionFilterPageHeaderMessage: '',\r\n subscriptionQuantitySelectPageHeaderTitle: '',\r\n subscriptionQuantitySelectPageHeaderMessage: '',\r\n subscriptionFilterPackageTicketStartingPrice: '',\r\n filterTicketStartingPrice: '',\r\n minimumSeatsRequiredMessage: '',\r\n maximumSeatsRequiredMessage: '',\r\n\r\n specialSeatingRemovalConfirmPromptHeader: '',\r\n specialSeatingRemovalConfirmPromptMessage: '',\r\n modalConfirmButtonText: '',\r\n modalCancelButtonText: '',\r\n emptyCartButtonText: '',\r\n\r\n noSeatsMatchFilterQuickCheckoutModalTitle: '',\r\n noSeatsMatchFilterQuickCheckoutModalMessage: '',\r\n changeDateAndButtonText: '',\r\n\r\n performanceListFilterTitle: '',\r\n performanceListMessage: '',\r\n promoCodeTitle: '',\r\n numberOfTicketsTitle: '',\r\n numberOfTicketsMessage: '',\r\n levelsHeading: '',\r\n levelsSectionMessage: '',\r\n\r\n showPromoCodeSectionOnPageLoad: true,\r\n cartTitle: '',\r\n useZoneDescription: false,\r\n noSeatsMatchFilterGoToSeatmapModalMessage: '',\r\n noSeatsMatchFilterGoToSeatmapModalTitle: '',\r\n noSeatsMatchFilterGoToSeatmapModalCancel: '',\r\n noSeatsMatchFilterGoToSeatmapModalProceed: '',\r\n\r\n onlyGALevelsSelectedGoToSeatmapModalMessage: '',\r\n onlyGALevelsSelectedGoToSeatmapModalTitle: '',\r\n onlyGALevelsSelectedGoToSeatmapModalCancel: '',\r\n onlyGALevelsSelectedGoToSeatmapModalProceed: '',\r\n\r\n expandFiltersOnSeatmapLoad: true,\r\n expandLevelFilterOnSeatmapLoad: true,\r\n selectOnlyDefaultPriceTypesOnSeatmap: false,\r\n venueSvgHighlightShading: '.5',\r\n seatmapPriceRangeFilterHeader: '',\r\n seatmapPriceRangeFilterInstructions: '',\r\n seatmapTicketTypeFilterHeader: '',\r\n seatmapTicketTypeFilterInstructions: '',\r\n seatmapTicketTypeAllTicketsLabel: '',\r\n seatmapFiltersText: '',\r\n seatmapSelectedSeatText: '',\r\n showLevelAvailabilityOnLevelFilter: false,\r\n showPricingOnLevelFilter: false,\r\n refreshSeatmapTimestamp: null,\r\n currentItemIndex: 0,\r\n packageTotalCount: 0,\r\n flexInstructions: '',\r\n flexTotalLabel: '',\r\n flexPackageName: '',\r\n packagePerformances: [],\r\n packageTotalPrice: 0,\r\n packageProgressMessage: '',\r\n seatQuantityText: '',\r\n packagePriceText: '',\r\n useOnlyPromoPriceType: false,\r\n selectAllPriceTypesOnSeatmap: true,\r\n upsellMessageText: '',\r\n upsellButtonText: '',\r\n defaultAllLevelsSelected: true,\r\n gaZoneSelectTicketMessage: '',\r\n zoneUpsellNumberOfTimesToUpsell: 0,\r\n zoneUpsellEnableForMobile: true,\r\n\r\n showPackagePerformancesOnLoad: true,\r\n showPackageProgressBar: true,\r\n\r\n showAttestationOnlyOnce: true,\r\n allowOrphanedSeats: true,\r\n combinePriceTypeSpecialSeatingFilters: false,\r\n showPriceTypesSeatMapFilter: true,\r\n showSpecialSeatingSeatMapFilter: true,\r\n requesting: false,\r\n hidePricesInCart: false,\r\n hidePricesOnSeatHover: false,\r\n subpackageHideMessage: \"\",\r\n\r\n seatFeePreviewTitle: '',\r\n seatFeePreviewMessage: '',\r\n seatFeePreviewTicketTypeFormat: '',\r\n priceTypeTextHeadingFormat: '',\r\n ticketCostText: '',\r\n feeAmountText: '',\r\n startingPriceFeeHeading: '',\r\n priceFeeHeading: '',\r\n venueLevelRangeFeesNote: '',\r\n\r\n seatZones: [],\r\n\r\n // Promo code on packages\r\n disablePromoWhenCartNotEmpty: true,\r\n showDisabledPromoMessage: true,\r\n disabledPromoMessage: '',\r\n\r\n cartExpiredTitle: 'Cart Expired',\r\n cartExpiredMessage: 'Start selecting tickets again.',\r\n cartExpiredConfirmText: 'OK',\r\n\r\n showPerformanceTitleInDateModal: false\r\n};\r\n\r\nexport { defaultAppSettingModel };\r\n\r\nexport function appSettingsModel(state: IAppSettingsModel = defaultAppSettingModel, action: IFetchStateAction) {\r\n switch (action.type) {\r\n //case ActionTypes.LOAD_LOCAL_STORAGE:\r\n // return { ...state, ...action.value.appSettingsModel }\r\n case ActionTypes.REQUEST_SETTINGS:\r\n return { ...state, requesting: true };\r\n case ActionTypes.RECEIVE_SETTINGS:\r\n let newSettings = action.value as IAppSettingsModel;\r\n if (state.itemType == ItemType.Exchange) {\r\n newSettings.maxTicketQuantity = state.maxTicketQuantity;\r\n }\r\n if (newSettings.mapScaleSensitivity > 1) {\r\n newSettings.mapScaleSensitivity = newSettings.mapScaleSensitivity * .01;\r\n }\r\n\r\n //IE11 need to disable seat hover\r\n if (!!navigator.userAgent.match(/Trident\\/7\\./)) {\r\n newSettings.disableSeatHover = true;\r\n }\r\n\r\n return { ...state, ...newSettings, requesting: false };\r\n case ActionTypes.SET_MAX_TICKET_QUANTITY:\r\n return { ...state, maxTicketQuantity: action.value };\r\n case ActionTypes.MAX_TICKETS_SELECTED:\r\n return { ...state, maxQuantityPriceTypeSelectedErrorTextReplace: action.value.priceTypeText };\r\n default:\r\n return state\r\n }\r\n}","import {IPriceTypeFilterModel, priceTypesModel, venueLevelModel, IVenueLevelModel,\r\n priceRangeModel, IPriceRangeModel, additionalSeatingOptionModel, IAdditionalSeatingOptionModel, IErrorModel, errorModel } from '../filter/reducers/filter-reducers';\r\nimport {appSettingsModel} from './fetch-settings-reducer';\r\nimport {promoCodeModel, IPromoCodeModel} from '../filter/reducers/promo-reducer';\r\nimport {ISeatMatchResultModel, seatMatchResultModel} from '../filter/reducers/fetch-reducer';\r\nimport {ISeatMapModel, seatMapModel} from '../seatmap/reducers/seatmap-reducer';\r\nimport {ISeatMapResultModel, seatMapResultModel} from '../seatmap/reducers/fetch-reducer';\r\nimport {cartModel, ICartModel} from '../cart/reducers/cart-reducer';\r\n\r\nimport {applicationModel, IApplicationModel} from './app-reducer';\r\nimport {IAppSettingsModel} from '../reducers/fetch-settings-reducer';\r\nimport * as redux from 'redux';\r\nimport { IExchangeSettingsModel, exchangeSettingsModel } from './exchange-reducer';\r\n\r\nexport interface IAppState { \r\n applicationModel: IApplicationModel;\r\n errorModel: IErrorModel;\r\n seatMatchResultModel: ISeatMatchResultModel;\r\n priceTypesModel: IPriceTypeFilterModel;\r\n appSettingsModel: IAppSettingsModel;\r\n venueLevelModel: IVenueLevelModel;\r\n promoCodeModel: IPromoCodeModel;\r\n priceRangeModel: IPriceRangeModel;\r\n exchangeSettingsModel: IExchangeSettingsModel;\r\n additionalSeatingOptionModel: IAdditionalSeatingOptionModel;\r\n seatMapResultModel: ISeatMapResultModel;\r\n seatMapModel: ISeatMapModel;\r\n cartModel: ICartModel;\r\n dispatch?: any /*redux.Dispatch<any> redux.Dispatch can't interpret react-redux dispatch method and react-redux typings exports Redux.Dispatch.*/;\r\n location?: any;\r\n children?: any;\r\n}\r\n\r\nexport const appReducers = redux.combineReducers({ \r\n errorModel,\r\n priceTypesModel,\r\n seatMatchResultModel,\r\n appSettingsModel,\r\n promoCodeModel,\r\n priceRangeModel,\r\n venueLevelModel,\r\n additionalSeatingOptionModel,\r\n seatMapResultModel,\r\n seatMapModel,\r\n cartModel,\r\n applicationModel,\r\n exchangeSettingsModel\r\n});","import cloneDeep from 'lodash/cloneDeep';\r\nimport { ActionTypes } from '../../actions/index';\r\nimport { addSeatToCart, disableCart, flexMaxQuantityReachedForAllTickets, flexMaxQuantityReachedForPriceType, flexMinQuantityReached, maxTicketsThresholdReached, removeSeatFromCart, resetflexMinQuantityReached, updateFlexMessaging } from '../../cart/actions/cart-actions';\r\nimport { ItemType } from '../../classes/item-type';\r\nimport { Level } from '../../classes/level';\r\nimport { PriceType } from '../../classes/price-type';\r\nimport { CartSeat, Seat, SeatPriceQuantity, SeatPricing, SeatZone } from '../../classes/seat';\r\nimport { IAppState } from '../../reducers/index';\r\nimport { fetchSeatMap, fetchSeatView } from '../actions/seatmap-fetch';\r\n\r\n/*\r\n * action creators\r\n */\r\nexport function toggleSeatmapFilters() {\r\n return (dispatch, state) => {\r\n const st = state() as IAppState;\r\n\r\n if (st.seatMapModel.openSeatmapFilters) {\r\n dispatch(closeSeatmapFilters(true));\r\n } else {\r\n dispatch(openSeatmapFilters());\r\n }\r\n }\r\n}\r\n\r\nexport function closeSeatmapFilters(shouldTrack: boolean) {\r\n return { type: ActionTypes.CLOSE_SEATMAP_FILTERS, unTrackEvent: !shouldTrack };\r\n}\r\n\r\nexport function openSeatmapFilters() {\r\n return { type: ActionTypes.OPEN_SEATMAP_FILTERS };\r\n}\r\n\r\nexport function toggleSeatmapCart() {\r\n return (dispatch, state) => {\r\n const st = state() as IAppState;\r\n\r\n if (st.seatMapModel.openSeatmapCart) {\r\n dispatch(closeSeatmapCart(true));\r\n } else {\r\n dispatch(openSeatmapCart(true));\r\n }\r\n }\r\n}\r\n\r\nexport function closeSeatmapCart(shouldTrack: boolean) {\r\n return { type: ActionTypes.CLOSE_SEATMAP_CART, unTrackEvent: shouldTrack };\r\n\r\n}\r\n\r\nexport function openSeatmapCart(shouldTrack: boolean) {\r\n return { type: ActionTypes.OPEN_SEATMAP_CART, unTrackEvent: !shouldTrack };\r\n}\r\n\r\nexport function closeSeatingInfo() {\r\n return { type: ActionTypes.CLOSE_SEATING_INFO };\r\n}\r\n\r\nexport function openSeatingInfo() {\r\n return { type: ActionTypes.OPEN_SEATING_INFO };\r\n}\r\n\r\nexport function selectPriceTypeQuantities(priceTypeQuantities: Array<SeatPriceQuantity>, isFlex: boolean) {\r\n return (dispatch, getState) => {\r\n if (priceTypeQuantities.filter(pq => pq.quantity > 0).length > 0) {\r\n if (isFlex) {\r\n // If we have one price type, update the cart message to see if you can purchase\r\n //if (priceTypeQuantities && priceTypeQuantities.length == 1) {\r\n const state = getState() as IAppState\r\n\r\n dispatch(updateFlexMessaging(+(priceTypeQuantities.filter(pq => pq.quantity > 0)[0].seatPricing.priceTypeId), state.priceTypesModel.priceTypes));\r\n\r\n //}\r\n }\r\n\r\n dispatch({ type: ActionTypes.SET_SELECTED_PRICE_QUANTITIES, value: priceTypeQuantities });\r\n }\r\n }\r\n}\r\n\r\nexport function seatmapLoadError() {\r\n return (dispatch, state) => {\r\n dispatch({ type: ActionTypes.REQUEST_SEATMAP_ERROR, value: true });\r\n }\r\n}\r\n\r\nfunction seatPricingForSeat(seat: Seat, seatZones: Array<SeatZone>, selectedPriceTypes: Array<PriceType>): Array<SeatPricing> {\r\n const zonePrice = seatZones.filter(pricing =>\r\n pricing.zoneId.toString() === seat.tessituraSeat.zoneId);\r\n\r\n //if (showAllPriceTypes)\r\n // return zonePrice[0].prices;\r\n //else {\r\n const selectedPriceTypeIds = selectedPriceTypes.map(pt => {\r\n return pt.priceTypeId;\r\n });\r\n const selectedPrices = zonePrice[0].prices.filter(price => {\r\n return selectedPriceTypeIds.indexOf(+price.priceTypeId) >= 0;\r\n });\r\n\r\n if (selectedPrices.length === 0 && zonePrice[0].prices.length === 1) {\r\n return zonePrice[0].prices;\r\n }\r\n\r\n return selectedPrices;\r\n //}\r\n}\r\n\r\nexport function selectSingleClickSeat(selectedSeat: Seat, selectedPriceTypes: Array<PriceType>, disableOneClickRemove) {\r\n return (dispatch, state) => {\r\n let appState: IAppState = state();\r\n\r\n let seatsInCart = appState.cartModel.seats;\r\n const seatMatchInCart = seatsInCart.filter(seat => seat.seatId === selectedSeat.seatId);\r\n\r\n // If the seat is in the cart, remove it.\r\n if (seatMatchInCart.length > 0) {\r\n if (!disableOneClickRemove) {\r\n dispatch(removeSeatFromCart(seatMatchInCart[0], selectedPriceTypes, appState.appSettingsModel.brandId, false));\r\n } else {\r\n dispatch(selectSeat(selectedSeat, true, appState.seatMapModel.seatmapId, appState.seatMapModel.hasSeatViewImages));\r\n }\r\n } else {\r\n dispatch(selectSeat(selectedSeat, true, appState.seatMapModel.seatmapId, appState.seatMapModel.hasSeatViewImages));\r\n const priceTypes = seatPricingForSeat(selectedSeat, appState.seatMapModel.allSeatPricing, selectedPriceTypes);\r\n if (priceTypes.length > 0) {\r\n checkAndAddSeatToCart(selectedSeat, priceTypes, appState, selectedPriceTypes, dispatch);\r\n }\r\n }\r\n };\r\n}\r\n\r\n\r\n\r\nfunction checkAndAddSeatToCart(selectedSeat: Seat, priceTypes: SeatPricing[], appState: IAppState, selectedPriceTypes: PriceType[], dispatch: any) {\r\n let seatWithPrice = cloneDeep(selectedSeat) as CartSeat;\r\n seatWithPrice.selectedPricing = { ...priceTypes[0] };\r\n // Otherwise, check if adding to cart is valid.\r\n const samePriceTypeSeatsInCart = appState.cartModel.seats.filter(cartSeat => cartSeat.selectedPricing.priceTypeId === seatWithPrice.selectedPricing.priceTypeId);\r\n // Get the max allowed number of seats for the selected price type.\r\n const samePriceTypeInSelected = selectedPriceTypes.filter(priceType => priceType.priceTypeId === seatWithPrice.selectedPricing.priceTypeId);\r\n let maxQuantity = Number.MAX_VALUE;\r\n let hasMaxQuantity = samePriceTypeInSelected.length > 0\r\n && samePriceTypeInSelected[0].clientMaxQuantity != null && samePriceTypeInSelected[0].clientMaxQuantity > 0;\r\n if (hasMaxQuantity) {\r\n maxQuantity = samePriceTypeInSelected[0].clientMaxQuantity;\r\n }\r\n let flexPackage: boolean;\r\n const globalMin = appState.appSettingsModel.minTicketQuantity;\r\n\r\n if (appState.appSettingsModel.itemType === ItemType.Super || appState.appSettingsModel.itemType === ItemType.Flex || globalMin > 0) {\r\n if (hasMaxQuantity) {\r\n // Here is the first location we know the price type, so we're gonna use it up update the display\r\n dispatch(updateFlexMessaging(+(seatWithPrice.selectedPricing.priceTypeId), selectedPriceTypes))\r\n }\r\n flexPackage = true;\r\n const samePriceTypeFlexPackageQuantity = appState.priceTypesModel.priceTypes.filter(pt => pt.priceTypeId === seatWithPrice.selectedPricing.priceTypeId);\r\n if (samePriceTypeFlexPackageQuantity.length > 0) {\r\n maxQuantity = samePriceTypeFlexPackageQuantity[0].selectedQuantity;\r\n }\r\n }\r\n\r\n const numberOfTicketsInCart = appState.cartModel.seats.length;\r\n const globalMax = appState.appSettingsModel.maxTicketQuantity;\r\n\r\n\r\n if (numberOfTicketsInCart >= globalMax) {\r\n dispatchMaxQuantityActions(flexPackage, dispatch, seatWithPrice);\r\n }\r\n\r\n else if (!checkSpecialSeatingSeatLimit(selectedSeat, appState.cartModel.seats)) {\r\n dispatchMaxQuantityActions(flexPackage, dispatch, seatWithPrice);\r\n }\r\n\r\n // the selected seat has an unlock criteria and has a limit based on the number of the unlock seat in the cart\r\n else if (!checkUnlockSeatConditions(selectedSeat, appState.cartModel.seats)) {\r\n dispatchMaxQuantityActions(flexPackage, dispatch, seatWithPrice);\r\n }\r\n // If the max number of seats selected for the current pricetype has not be reached.\r\n else if (samePriceTypeSeatsInCart.length >= maxQuantity) {\r\n dispatchMaxQuantityActions(flexPackage, dispatch, seatWithPrice);\r\n }\r\n else {\r\n checkSeatToAdd(selectedSeat, priceTypes, dispatch, seatWithPrice, appState);\r\n if (appState.appSettingsModel.itemType === ItemType.Super || appState.appSettingsModel.itemType === ItemType.Flex || globalMin > 0) {\r\n if (hasMaxQuantity) {\r\n // Here is the first location we know the price type, so we're gonna use it up update the display\r\n dispatch(updateFlexMessaging(+(seatWithPrice.selectedPricing.priceTypeId), selectedPriceTypes))\r\n }\r\n }\r\n }\r\n}\r\n\r\nexport function dispatchMaxQuantityActions(flexPackage: boolean, dispatch: any, seatWithPrice: CartSeat) {\r\n if (flexPackage) {\r\n dispatch(flexMaxQuantityReachedForPriceType());\r\n dispatch(flexMaxQuantityReachedForAllTickets());\r\n }\r\n else\r\n dispatch(maxTicketsThresholdReached(true, seatWithPrice.selectedPricing.priceTypeDescription));\r\n}\r\n\r\nexport function checkUnlockSeatConditions(selectedSeat: Seat, cartSeats: Array<CartSeat>): boolean {\r\n // the selected seat has an unlock criteria and has a limit based on the number of the unlock seat in the cart\r\n if (selectedSeat.seatingOptionGroup != null && selectedSeat.seatingOptionGroup.unlockSeatingOptionGroupId !== null && selectedSeat.seatingOptionGroup.seatLimitPerUnlockSeat > 0) {\r\n var unlockCriteriaSeatsInCart = cartSeats.filter(cartSeat => cartSeat.seatingOptionGroup.id === selectedSeat.seatingOptionGroup.unlockSeatingOptionGroupId);\r\n var sameUnlockCriteriaSeatsInCart = cartSeats.filter(cartSeat => cartSeat.seatingOptionGroup.unlockSeatingOptionGroupId !== null\r\n && cartSeat.seatingOptionGroup.unlockSeatingOptionGroupId === selectedSeat.seatingOptionGroup.unlockSeatingOptionGroupId);\r\n if (sameUnlockCriteriaSeatsInCart.length < (unlockCriteriaSeatsInCart.length * selectedSeat.seatingOptionGroup.seatLimitPerUnlockSeat)) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n return true;\r\n}\r\n\r\nexport function checkSpecialSeatingSeatLimit(selectedSeat: Seat, cartSeats: Array<CartSeat>): boolean {\r\n // the selected seat has an unlock criteria and has a limit based on the number of the unlock seat in the cart\r\n if (selectedSeat.seatingOptionGroup != null && selectedSeat.seatingOptionGroup.seatLimit > 0) {\r\n var sameSpecialSeatingInCart = cartSeats.filter(cartSeat => cartSeat.seatingOptionGroup !== null\r\n && cartSeat.seatingOptionGroup.id === selectedSeat.seatingOptionGroup.id);\r\n\r\n if (sameSpecialSeatingInCart.length < selectedSeat.seatingOptionGroup.seatLimit) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n return true;\r\n}\r\n\r\nfunction checkSeatToAdd(seatToAdd: Seat, priceTypes: SeatPricing[], dispatch: any, seatWithPrice: CartSeat, appState: IAppState) {\r\n // If the seat is available, and there is no confirm prompt, add the seat to cart.\r\n if (seatToAdd.tessituraSeat.isAvailable && !seatToAdd.tessituraSeat.isDisabled) {\r\n // If there is no confirm prompt.\r\n if (!seatToAdd.seatStyleCulture.confirmPrompt && priceTypes.length === 1) {\r\n let cart = document.getElementById('cartIcon');\r\n if (cart != null) {\r\n cart.classList.remove('grow');\r\n }\r\n dispatch(addSeatToCart(seatWithPrice,\r\n appState.appSettingsModel.priceTypeSettings,\r\n appState.appSettingsModel.useOnlyPromoPriceType,\r\n appState.exchangeSettingsModel.activeExchangeTickets,\r\n appState.exchangeSettingsModel.exchangeTickets));\r\n }\r\n }\r\n}\r\n\r\nexport function selectSeat(seat: Seat, shouldOpenSeatingInfo: boolean, seatMapId: string, shouldFetchSeatView: boolean) {\r\n return (dispatch, state) => {\r\n if (state().seatMapModel.openSeatmapFilters) {\r\n dispatch(closeSeatmapFilters(false))\r\n }\r\n\r\n if (shouldFetchSeatView) {\r\n dispatch(fetchSeatView(seat.svgPathId, seatMapId));\r\n }\r\n\r\n dispatch({ type: ActionTypes.SELECT_SEAT, value: { seats: [seat], openInfo: shouldOpenSeatingInfo } });\r\n };\r\n}\r\n\r\nexport function selectGroupedSeats(seats: Array<Seat>, seatMapId: string, shouldFetchSeatView: boolean) {\r\n return (dispatch, state) => {\r\n if (shouldFetchSeatView) {\r\n dispatch(fetchSeatView(seats[0].svgPathId, seatMapId));\r\n }\r\n\r\n dispatch({ type: ActionTypes.SELECT_SEAT, value: { seats: seats, openInfo: true } });\r\n };\r\n}\r\n\r\nexport function hoverSeatCoordinates(xCoordinate: number, yCoordinate: number, seats: Array<Seat>) {\r\n return (dispatch, state) => {\r\n dispatch({ type: ActionTypes.HOVER_SEAT, value: { xCoord: xCoordinate, yCoord: yCoordinate, seatsHovered: seats } });\r\n };\r\n}\r\n\r\nexport function unselectSeat() {\r\n return { type: ActionTypes.UNSELECT_SEAT };\r\n}\r\n\r\nexport function selectZoneUpsell() {\r\n return { type: ActionTypes.SELECT_ZONE_UPSELL };\r\n}\r\n\r\nexport function resetZoneUpsellCount() {\r\n return { type: ActionTypes.RESET_ZONE_UPSELL };\r\n}\r\n\r\nexport function userChangedZoom(newZoom: number, zoomChanged: boolean) {\r\n return (dispatch, state) => {\r\n dispatch({ type: ActionTypes.ON_ZOOM, value: { newZoom, zoomChanged } });\r\n };\r\n}\r\n\r\n//export function selectNextSeat() {\r\n// return (dispatch, state) => {\r\n// dispatch({ type: ActionTypes.SELECT_NEXT_SEAT });\r\n// dispatch({ type: ActionTypes.SET_CURRENT_SEAT_COORD, value: state().seatMapModel.selectedSeat.svgBounds });\r\n// };\r\n//}\r\n\r\n//export function selectPreviousSeat() {\r\n// return (dispatch, state) => {\r\n// dispatch({ type: ActionTypes.SELECT_PREVIOUS_SEAT });\r\n// dispatch({ type: ActionTypes.SET_CURRENT_SEAT_COORD, value: state().seatMapModel.selectedSeat.svgBounds });\r\n// };\r\n//}\r\n\r\nexport function selectVenueLevel(level: Level, cartSeats) {\r\n return (dispatch, state) => {\r\n dispatch({ type: ActionTypes.SELECT_LEVEL, value: level.id });\r\n dispatch(fetchSeatMap(level.seatmap.id, cartSeats, false, []));\r\n };\r\n}\r\n\r\nexport function loadInCartStyleForSeat(seat: Seat) {\r\n return { type: ActionTypes.LOAD_SEAT_INCART_STYLE, value: seat };\r\n}\r\n\r\nexport function unlockSeats(seats: Array<Seat>) {\r\n return { type: ActionTypes.UNLOCK_SEATS, value: seats };\r\n}\r\n\r\nexport function lockSeats(seats: Array<Seat>) {\r\n return { type: ActionTypes.LOCK_SEATS, value: seats };\r\n}\r\n\r\nexport function lockAllSeats() {\r\n return { type: ActionTypes.LOCK_ALL_SEATS };\r\n}","import groupBy from 'lodash/groupBy';\r\nimport memoize from 'lodash/memoize';\r\n\r\nimport { setActiveExchangeTickets } from '../../actions/exchange-actions';\r\nimport { createFilterRequest } from '../../actions/fetch';\r\nimport { ActionTypes } from '../../actions/index';\r\nimport { fetchSettings } from '../../actions/settings-fetch';\r\nimport { removeSeatFromCart, updateCartSeats } from '../../cart/actions/cart-actions';\r\nimport { ItemType } from '../../classes/item-type';\r\nimport { ISeatMatchRequestModel } from '../../classes/request-model';\r\nimport { ISeatMapResult } from '../../classes/result-model';\r\nimport { CartSeat } from '../../classes/seat';\r\nimport { IExchangeTicket } from '../../classes/ticket-exchange';\r\nimport { selectPriceTypeTickets } from '../../filter/actions/filter-actions';\r\nimport {\r\n clearStorageItemsWhere, deleteSeatmapBackground, getSavedSeatmapBackground,\r\n getSavedSeatRequest, removeOldestSeatMaps, saveSeatmapBackground, saveSeatPaths\r\n} from '../../helpers/local-storage-helpers';\r\nimport { getSelectedPriceTypesFromFilter } from '../../helpers/price-type-helpers';\r\nimport { getCurrentLanguage } from '../../helpers/window-helpers';\r\nimport { IAppState } from '../../reducers/index';\r\nimport { loadInCartStyleForSeat, seatmapLoadError } from './seatmap-actions';\r\n\r\n\r\n\r\n/**\r\n * When the seatmap load errors, notify redux the failure to handle it appropriately.\r\n */\r\nfunction requestSeatmap(requestModel: ISeatMatchRequestModel) {\r\n return {\r\n type: ActionTypes.REQUEST_SEATMAP,\r\n value: requestModel\r\n }\r\n}\r\n\r\nfunction receiveSeatMap(result) {\r\n return {\r\n type: ActionTypes.RECEIVE_SEATMAP,\r\n value: result\r\n }\r\n}\r\n\r\nfunction requestSeatView(seatViewId: string) {\r\n return {\r\n type: ActionTypes.REQUEST_SEATVIEW,\r\n value: seatViewId\r\n }\r\n}\r\n\r\nfunction receiveSeatView(result) {\r\n return {\r\n type: ActionTypes.LOAD_SEATVIEW,\r\n value: result\r\n }\r\n}\r\n\r\nfunction loadSeatMap(result, selectedPriceTypes, cartSeats) {\r\n return {\r\n type: ActionTypes.LOAD_SEATMAP,\r\n value: {\r\n response: result,\r\n selectedPriceTypes: selectedPriceTypes,\r\n cartSeats\r\n }\r\n }\r\n}\r\n\r\nfunction requestSeatmapBackgroundPaths(seatmapId: string) {\r\n return {\r\n type: ActionTypes.REQUEST_SEATMAP_BACKGROUND,\r\n value: seatmapId\r\n }\r\n}\r\n\r\nfunction receiveSeatMapBackgroundPaths() {\r\n return {\r\n type: ActionTypes.RECEIVE_SEATMAP_BACKGROUND,\r\n value: true\r\n }\r\n}\r\n\r\nfunction loadSeatMapBackgroundPaths(result) {\r\n return {\r\n type: ActionTypes.LOAD_SEATMAP_BACKGROUND,\r\n value: {\r\n response: result,\r\n }\r\n }\r\n}\r\n\r\nfunction loadSeatPaths(result, cartSeats) {\r\n return {\r\n type: ActionTypes.LOAD_SEATMAP_PATHS,\r\n value: {\r\n response: result,\r\n cartSeats\r\n }\r\n }\r\n}\r\n\r\nfunction receiveSeatPaths() {\r\n return {\r\n type: ActionTypes.RECEIVE_SEATMAP_PATHS,\r\n value: {\r\n response: true,\r\n }\r\n }\r\n}\r\n\r\nfunction updateExchangeSeatMatch(requestModel: ISeatMatchRequestModel, seatmapId: string) {\r\n return fetch(`${window.location.origin}/api/seating/GetExchangeSeatmap`,\r\n {\r\n method: \"POST\",\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n Accept: 'application/json',\r\n },\r\n body: JSON.stringify({\r\n itemType: requestModel.itemType,\r\n itemId: requestModel.itemId,\r\n minPrice: requestModel.minPrice,\r\n maxPrice: requestModel.maxPrice,\r\n //quantity: requestModel.seatQuantity,\r\n allowSeparatedSeats: requestModel.allowSeparatedSeats,\r\n priceTypeQuantities: requestModel.requestedPriceTypes,\r\n venueLevels: requestModel.selectedVenueLevels,\r\n selectedAllLevels: requestModel.selectedAllLevels,\r\n allowAisleAccessSelected: requestModel.allowAisleAccessSelected,\r\n additionalSeatingOptions: requestModel.additionalSeatingOptions,\r\n seatMapId: seatmapId,\r\n language: getCurrentLanguage()\r\n }),\r\n credentials: 'same-origin'\r\n })\r\n .then(response => {\r\n if (response.ok) {\r\n return response.json();\r\n } else {\r\n return \"ERROR\";\r\n }\r\n })\r\n .catch(error => {\r\n console.error(error);\r\n });\r\n}\r\n\r\nfunction updateSeatMatch(requestModel: ISeatMatchRequestModel, seatmapId: string, isSyosOnly: boolean, seatsToIgnore: Array<number>) {\r\n return fetch(`${window.location.origin}/api/seating/GetSeatmap`,\r\n {\r\n method: \"POST\",\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n Accept: 'application/json',\r\n },\r\n body: JSON.stringify({\r\n itemType: requestModel.itemType,\r\n itemId: requestModel.itemId,\r\n minPrice: requestModel.minPrice,\r\n maxPrice: requestModel.maxPrice,\r\n //quantity: requestModel.seatQuantity,\r\n allowSeparatedSeats: requestModel.allowSeparatedSeats,\r\n priceTypeQuantities: requestModel.requestedPriceTypes,\r\n venueLevels: requestModel.selectedVenueLevels,\r\n selectedAllLevels: requestModel.selectedAllLevels,\r\n allowAisleAccessSelected: requestModel.allowAisleAccessSelected,\r\n additionalSeatingOptions: requestModel.additionalSeatingOptions,\r\n seatMapId: seatmapId,\r\n language: getCurrentLanguage(),\r\n seatsToIgnore: seatsToIgnore,\r\n isSyosOnly: isSyosOnly\r\n }),\r\n credentials: 'same-origin'\r\n })\r\n .then(response => {\r\n if (response.ok) {\r\n return response.json();\r\n } else {\r\n return \"ERROR\";\r\n }\r\n })\r\n .catch(error => {\r\n console.error(error);\r\n });\r\n}\r\n\r\nfunction updateSeatMapBackground(seatmapId: string) {\r\n return fetch(`/api/seating/GetSeatmapBackgroundPaths?seatmapId=${seatmapId}`, {\r\n credentials: 'same-origin'\r\n }).then(response => {\r\n if (!response.ok) {\r\n throw Error(response.statusText);\r\n } else {\r\n return response.json();\r\n }\r\n });\r\n}\r\n\r\nfunction updateSeatPaths(itemId: number, itemType: ItemType, language: string, seatmapId: string) {\r\n return fetch(`/api/seating/GetSeatmapSeats?itemId=${itemId}&itemType=${itemType}&language=${language}&seatmapId=${seatmapId}`, {\r\n credentials: 'same-origin'\r\n }).then(response => {\r\n if (!response.ok) {\r\n throw Error(response.statusText);\r\n } else {\r\n return response.json();\r\n }\r\n });\r\n}\r\n\r\nexport function fetchSeatMap(seatmapId: string, cartSeats: Array<CartSeat>, forPromoCodeApply: boolean, promoPriceTypeMapping: Record<number, number>) {\r\n return (dispatch, state) => {\r\n const currentState: IAppState = state();\r\n\r\n // need to refetch settings to get new price types and promo code\r\n if (forPromoCodeApply) {\r\n dispatch(fetchSettings(currentState.appSettingsModel.itemId, currentState.appSettingsModel.itemType, currentState.appSettingsModel.language));\r\n }\r\n\r\n let seatMatchRequest: ISeatMatchRequestModel = null;\r\n\r\n const exchangeTicketsGrouped = groupBy(currentState.appSettingsModel.exchangeTickets, (ticket: IExchangeTicket) => ticket.oldPrice);\r\n const activeExchangeTickets = exchangeTicketsGrouped[Object.keys(exchangeTicketsGrouped)[0]];\r\n //this state shouldn't happen anymore with new bootstrapped idea\r\n\r\n const appSettings = currentState.appSettingsModel;\r\n\r\n if (currentState.appSettingsModel.itemId === 0) {\r\n window.location.href = window.location.href.split('#')[0];\r\n } else if (getSavedSeatRequest(appSettings.itemId, appSettings.itemType)) {\r\n try {\r\n seatMatchRequest = JSON.parse(getSavedSeatRequest(appSettings.itemId, appSettings.itemType)) as ISeatMatchRequestModel;\r\n\r\n seatMatchRequest.requestedPriceTypes.forEach(pt => {\r\n if (pt.quantity > 0) {\r\n dispatch(selectPriceTypeTickets(pt.priceTypeId, pt.quantity, false, activeExchangeTickets, false));\r\n }\r\n });\r\n } catch (ex) {\r\n console.log(\"bad stored seat request\")\r\n }\r\n } else {\r\n seatMatchRequest = createFilterRequest(currentState);\r\n }\r\n\r\n if (seatMatchRequest !== null) {\r\n\r\n // Disable default selection in SYOS only\r\n if (appSettings.isSelectSeatVenue) {\r\n seatMatchRequest.requestedPriceTypes = []\r\n }\r\n\r\n dispatch(requestSeatmap(seatMatchRequest));\r\n\r\n if (currentState.appSettingsModel.exchangeTickets.length > 0) {\r\n updateExchangeSeatMatch(seatMatchRequest, seatmapId)\r\n .then((response: any) => {\r\n if (response === \"ERROR\" || response === undefined) {\r\n dispatch(receiveSeatMap('Error fetching seats'));\r\n dispatch(seatmapLoadError());\r\n } else {\r\n dispatch(loadSeatMap(response, seatMatchRequest.requestedPriceTypes.filter(pt => { return pt.quantity > 0 }), cartSeats));\r\n dispatch(setActiveExchangeTickets(activeExchangeTickets, []));\r\n loadSeatMapBackground(dispatch, response);\r\n let currentState: IAppState = state();\r\n\r\n currentState.cartModel.seats.forEach(seat =>\r\n dispatch(loadInCartStyleForSeat(seat))\r\n );\r\n\r\n dispatch(receiveSeatMap(response));\r\n }\r\n }).catch(error => {\r\n console.error(error);\r\n dispatch(seatmapLoadError());\r\n });\r\n } else {\r\n updateSeatMatch(seatMatchRequest, seatmapId, appSettings.isSelectSeatVenue, cartSeats.map(cartSeat => cartSeat.tessituraSeat.seatNumber))\r\n .then((response: ISeatMapResult) => {\r\n if (response.toString() === \"ERROR\" || response === undefined) {\r\n dispatch(receiveSeatMap('Error fetching seats'));\r\n dispatch(seatmapLoadError());\r\n } else {\r\n let updatedCartSeats: Array<CartSeat> = [];\r\n\r\n if (forPromoCodeApply) {\r\n\r\n cartSeats.forEach(cartSeat => {\r\n var matchedZones = response.allSeatPricing.filter(pr => pr.zoneId === (+cartSeat.tessituraSeat.zoneId));\r\n if (matchedZones.length > 0) {\r\n const matchedZone = matchedZones[0];\r\n // has pricing to choose from\r\n const newState: IAppState = state();\r\n var selectedPriceTypes = getSelectedPriceTypesFromFilter(newState.priceTypesModel,\r\n newState.appSettingsModel.selectAllPriceTypesOnSeatmap,\r\n (!newState.appSettingsModel.selectAllPriceTypesOnSeatmap && newState.appSettingsModel.selectOnlyDefaultPriceTypesOnSeatmap));\r\n\r\n if (matchedZone.prices.length > 0) {\r\n if (matchedZone.prices.length === 1) {\r\n updatedCartSeats.push({ ...cartSeat, selectedPricing: { ...matchedZone.prices[0], priceCarted: matchedZone.prices[0].price } });\r\n } else if (matchedZone.prices.filter(pr => selectedPriceTypes.map(pt => pt.priceTypeId).indexOf(pr.priceTypeId) >= 0).length === 1) {\r\n\r\n var matchedPr = matchedZone.prices.filter(pr => selectedPriceTypes.map(pt => pt.priceTypeId).indexOf(pr.priceTypeId) >= 0)[0];\r\n updatedCartSeats.push({ ...cartSeat, selectedPricing: { ...matchedPr, priceCarted: matchedPr.price } });\r\n } else {\r\n if (Object.keys(promoPriceTypeMapping).length > 0) {\r\n\r\n var newPriceType = promoPriceTypeMapping[cartSeat.selectedPricing.priceTypeId];\r\n\r\n if (newPriceType) {\r\n var matchedNewPt = matchedZone.prices.filter(pr => pr.priceTypeId === newPriceType);\r\n if (matchedNewPt.length > 0) {\r\n updatedCartSeats.push({ ...cartSeat, selectedPricing: { ...matchedNewPt[0], priceCarted: matchedNewPt[0].price } });\r\n }\r\n }\r\n } else {\r\n cartSeats = [];\r\n }\r\n // need a mapping from server side so dev can give it logic\r\n }\r\n }\r\n }\r\n });\r\n\r\n const newState: IAppState = state();\r\n // check for price type max. If the number of seats is great than new max, then clear out seats\r\n const overMaxPriceTypes = newState.priceTypesModel.priceTypes.filter(pt => {\r\n return updatedCartSeats.filter(cartSeat => cartSeat.selectedPricing.priceTypeId === pt.priceTypeId).length > pt.clientMaxQuantity;\r\n }).length > 0;\r\n\r\n if (overMaxPriceTypes) {\r\n updatedCartSeats.forEach(item =>\r\n dispatch(removeSeatFromCart(item, newState.priceTypesModel.priceTypes, appSettings.brandId, false))\r\n );\r\n\r\n updatedCartSeats = [];\r\n cartSeats = [];\r\n //dispatch(updateCartSeats([]));\r\n } else {\r\n // should we only add all of the seats or none.. or only add the working ones\r\n dispatch(updateCartSeats(updatedCartSeats));\r\n }\r\n }\r\n\r\n dispatch(loadSeatMap(response, seatMatchRequest.requestedPriceTypes, updatedCartSeats.length > 0 ? updatedCartSeats : cartSeats));\r\n loadSeatMapBackground(dispatch, response);\r\n let currentState: IAppState = state();\r\n\r\n //var suggestSeats = _.orderBy(response.levelSeats.filter(seat => {\r\n // return seat.suggestedSeat && seat.tessituraSeat.isAvailable;\r\n //}), 'logicalSeatNumber');\r\n //if (suggestSeats.length > 0) {\r\n // // Not needed for single-click.\r\n // //dispatch(selectSeatAndSetCoordinates(suggestSeats[0] as Seat));\r\n //}\r\n currentState.cartModel.seats.forEach(seat =>\r\n dispatch(loadInCartStyleForSeat(seat))\r\n );\r\n\r\n dispatch(receiveSeatMap(response));\r\n }\r\n }).catch(error => {\r\n console.error(error);\r\n dispatch(seatmapLoadError());\r\n });\r\n }\r\n }\r\n }\r\n}\r\n\r\nfunction loadSeatMapBackground(dispatch, response) {\r\n var savedPaths = getSavedSeatmapBackground(response.seatmapId);\r\n\r\n if (savedPaths) {\r\n dispatch(loadSeatMapBackgroundPaths(JSON.parse(savedPaths)));\r\n dispatch(receiveSeatMapBackgroundPaths());\r\n } else {\r\n //need to fetch for the first time\r\n dispatch(requestSeatmapBackgroundPaths(response.seatmapId));\r\n }\r\n dispatch(fetchSeatMapBackground(response.seatmapId));\r\n}\r\n\r\nexport function fetchSeatMapBackground(seatmapId: string) {\r\n return (dispatch, state) => {\r\n let currentState: IAppState = state();\r\n\r\n if (seatmapId !== null) {\r\n updateSeatMapBackground(seatmapId)\r\n .then((response: any) => {\r\n if (response === \"ERROR\" || response === undefined) {\r\n dispatch(receiveSeatMap('Error fetching background paths'));\r\n dispatch(seatmapLoadError());\r\n } else {\r\n var savedPaths = getSavedSeatmapBackground(seatmapId);\r\n deleteSeatmapBackground(seatmapId);\r\n\r\n if (!savedPaths) {\r\n dispatch(loadSeatMapBackgroundPaths(response.backgroundPaths));\r\n dispatch(receiveSeatMapBackgroundPaths());\r\n }\r\n\r\n var packedstring = JSON.stringify(response.backgroundPaths);\r\n try {\r\n saveSeatmapBackground(seatmapId, packedstring, response.timestamp);\r\n } catch (err) {\r\n console.log(`LOG: LocalStorage is full (saving for item ${currentState.appSettingsModel.itemId}). Deleting older seatmaps to free up space.`);\r\n removeOldestSeatMaps();\r\n try {\r\n saveSeatmapBackground(seatmapId, packedstring, response.timestamp);\r\n }\r\n catch {\r\n console.log(`LOG: LocalStorage is still too full (saving for item ${currentState.appSettingsModel.itemId}) after freeing up space.`);\r\n }\r\n }\r\n }\r\n }).catch(error => {\r\n console.error(error);\r\n dispatch(seatmapLoadError());\r\n });\r\n }\r\n }\r\n}\r\n\r\nexport function fetchSeatPaths(itemId: number, itemType: ItemType, language: string, seatmapId: string, cartSeat: Array<CartSeat>) {\r\n return (dispatch, state) => {\r\n let currentState: IAppState = state();\r\n\r\n if (seatmapId !== null) {\r\n updateSeatPaths(itemId, itemType, language, seatmapId)\r\n .then((response: any) => {\r\n if (response === \"ERROR\" || response === undefined) {\r\n dispatch(receiveSeatMap('Error fetching seat paths'));\r\n dispatch(seatmapLoadError());\r\n } else {\r\n clearStorageItemsWhere(key => key.indexOf(`seatpaths:${seatmapId},${response.brandId}`) >= 0);\r\n\r\n //if (savedPaths == null) {\r\n dispatch(loadSeatPaths(response.seatPaths, currentState.cartModel.seats));\r\n dispatch(receiveSeatPaths());\r\n //}\r\n\r\n try {\r\n saveSeatPaths(seatmapId, response.brandId, JSON.stringify(response.seatPaths), response.timestamp);\r\n } catch (err) {\r\n console.log(\"LOG: LocalStorage is full (saving for item \" + currentState.appSettingsModel.itemId);\r\n }\r\n }\r\n }).catch(error => {\r\n console.error(error);\r\n dispatch(seatmapLoadError());\r\n });\r\n }\r\n }\r\n}\r\n\r\nlet seatViewCache = memoize(getSeatView,\r\n (svgPathId: string, seatmapId: string) => `${svgPathId}~${seatmapId}`);\r\n\r\nexport function fetchSeatView(svgPathId: string, seatmapId) {\r\n return (dispatch, state) => {\r\n dispatch(requestSeatView(svgPathId));\r\n seatViewCache(svgPathId, seatmapId).then((response: any) => {\r\n dispatch(receiveSeatView(response));\r\n });\r\n }\r\n}\r\n\r\nexport function fetchZoneUpsellSeatView(svgPathId: string, seatmapId) {\r\n return seatViewCache(svgPathId, seatmapId).then((response: any) => {\r\n return response;\r\n });\r\n}\r\n\r\nfunction getSeatView(svgPathId: string, seatmapId: string) {\r\n return fetch(`/api/seating/GetSeatViewImage?svgPathId=${svgPathId}&seatmapId=${seatmapId}`, {\r\n credentials: 'same-origin'\r\n }).then(response => {\r\n if (!response.ok) {\r\n throw Error(response.statusText);\r\n } else {\r\n return response.json();\r\n }\r\n })\r\n}","import { Seat, SeatZone, SeatPricing, CartSeat } from '../../classes/seat';\r\nimport { PriceType } from '../../classes/price-type';\r\n\r\nimport SeatPath from './seat-path';\r\nimport * as React from 'react';\r\n\r\ninterface IBackgroundPaths {\r\n paths: Array<string>;\r\n seatmapBackgroundPathFill: string;\r\n seatmapBackgroundPathStroke: number;\r\n}\r\n\r\nclass BackgroundPaths extends React.PureComponent<IBackgroundPaths, any> {\r\n render() {\r\n return <g>\r\n {\r\n this.props.paths.map((path, index) => {\r\n return <path key={index} d={path} fill={this.props.seatmapBackgroundPathFill}\r\n strokeWidth={this.props.seatmapBackgroundPathStroke}\r\n stroke={this.props.seatmapBackgroundPathFill} />\r\n })\r\n } </g>\r\n }\r\n}\r\n\r\nexport default BackgroundPaths;","import groupBy from 'lodash/groupBy';\r\nimport sumBy from 'lodash/sumBy';\r\n\r\nimport * as React from 'react';\r\nimport { removeSeatFromCart, saveSeatRemoval } from '../../../cart/actions/cart-actions';\r\nimport { PriceType } from '../../../classes/price-type';\r\nimport { CartSeat, Seat } from '../../../classes/seat';\r\nimport { convertStringToStringList } from '../../../helpers/array-helpers';\r\nimport { getCurrencyFormat } from '../../../helpers/currency-format';\r\nimport { closeSeatmapCart, selectGroupedSeats, selectSeat } from '../../../seatmap/actions/seatmap-actions';\r\nimport LineItem from './line-item';\r\n\r\nexport interface ICartItemsProps {\r\n\tcartSeats: Array<CartSeat>;\r\n\tdispatch: any /*Dispatch<any> can't interpret react-redux dispatch method and react-redux typings exports Redux.Dispatch.*/;\r\n\titemId: number;\r\n\tseatMapId: string;\r\n\tselectedSeatIds: string;\r\n\tallSeats: Array<Seat>;\r\n\tselectedPriceTypes: Array<PriceType>;\r\n\r\n\tcartSubtotalLabel: string;\r\n\tcartEmptyNotice: string;\r\n\tuseZoneDescription: boolean;\r\n\tgroupSeatCartItemText: string;\r\n\tcurrencyFormat: string;\r\n\texchangeFreeLabel: string;\r\n\tbrandId: string;\r\n\thidePricesInCart: boolean;\r\n\tfetchSeatViewImage: boolean;\r\n\tdisplaySeatFee?: boolean;\r\n\tpriceFeeHeading?: string;\r\n\tfeeAmountText?: string;\r\n\tticketCostText?: string;\r\n}\r\n\r\n// List of cart items (LineItem components) and subtotal\r\nclass CartItems extends React.Component<ICartItemsProps, { seatToRemove: CartSeat }> {\r\n\r\n\tshouldComponentUpdate(nextProps: ICartItemsProps) {\r\n\t\treturn this.props.seatMapId != nextProps.seatMapId\r\n\t\t\t|| this.props.selectedSeatIds != nextProps.selectedSeatIds\r\n\t\t\t|| this.props.allSeats.length != nextProps.allSeats.length\r\n\t\t\t|| this.props.selectedPriceTypes.length != nextProps.selectedPriceTypes.length\r\n\t\t\t|| this.props.cartSeats.length != nextProps.cartSeats.length;\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { cartSeats } = this.props;\r\n\r\n\t\treturn (\r\n\r\n\t\t\t<ul className=\"cart-container-inner\">\r\n\t\t\t\t{cartSeats.length > 0 ?\r\n\t\t\t\t\tthis.getLineItems(cartSeats)\r\n\r\n\t\t\t\t\t: <li className=\"cart-item\"><p className=\"caption-paragraph\">{this.props.cartEmptyNotice}</p></li>}\r\n\t\t\t</ul>\r\n\r\n\t\t);\r\n\t}\r\n\r\n\tgetIsSelected(seat: CartSeat) {\r\n\t\treturn convertStringToStringList(this.props.selectedSeatIds).some(selectedSeatId => selectedSeatId === seat.seatId);\r\n\t}\r\n\r\n\t// Takes in array of seats and outputs an array of LineItem components: first single seats, then group seats\r\n\tgetLineItems(seats: Array<CartSeat>): Array<JSX.Element> {\r\n\t\tconst seatsByGrouped = groupBy(seats, (seat) => seat.isGroupedSeat ? 'group' : 'single');\r\n\t\tconst singleSeats = seatsByGrouped['single'] || [];\r\n\t\tconst groupSeats = seatsByGrouped['group'] || [];\r\n\r\n\t\tconst singleLineItems = this.getSingleLineItems(singleSeats);\r\n\t\tconst groupLineItems = this.getGroupLineItems(groupSeats);\r\n\t\treturn singleLineItems.concat(groupLineItems);\r\n\t}\r\n\r\n\t// Takes in array of single seats and ouputs an array of LineItem components\r\n\tgetSingleLineItems(seats: Array<CartSeat>): Array<JSX.Element> {\r\n\t\treturn seats.map(seat =>\r\n\t\t\t<LineItem key={seat.tessituraSeat.seatNumber.toString()}\r\n\t\t\t\tdescription={this.getSingleSeatDescription(seat)}\r\n\t\t\t\tisSelected={this.getIsSelected(seat)}\r\n\t\t\t\tonSelect={this.viewFromSeatIsActive(seat) ? () => this._onCartItemClick(seat) : null}\r\n\t\t\t\tonRemove={() => this._onRemoveCartItemClick(seat)}\r\n\t\t\t\tpriceTypeDescription={seat.selectedPricing.priceTypeDescription}\r\n\t\t\t\tprice={this.cartItemPriceText(seat.selectedPricing.priceCarted + seat.selectedPricing.feeAmount)}\r\n\t\t\t\tpriceFeeHeading={this.props.priceFeeHeading}\r\n\t\t\t\tfee={this.cartItemFeeText(seat.selectedPricing.feeAmount)}\r\n\t\t\t\tbaseTicketCost={this.cartItemBasePriceText(seat.selectedPricing.price)}\r\n\t\t\t\tdisplaySeatFee={this.props.displaySeatFee}\r\n\t\t\t/>\r\n\t\t);\r\n\t}\r\n\r\n\t// LineItem description for a single seat\r\n\tgetSingleSeatDescription(seat: CartSeat) {\r\n\t\treturn `${this.getZoneOrSection(seat)} ${seat.tessituraSeat.rowText} - ${seat.tessituraSeat.numberText}`;\r\n\t}\r\n\r\n\t// Zone text or section text, depending on app setting\r\n\tgetZoneOrSection(seat: CartSeat) {\r\n\t\tvar useZoneDescription = (this.props.useZoneDescription && seat.zoneDescription !== null);\r\n\t\treturn useZoneDescription ? seat.zoneDescription : seat.tessituraSeat.sectionDescription;\r\n\t}\r\n\r\n\t// Takes in array of group seats, groups by svgPathId, outputs array of LineItem components\r\n\tgetGroupLineItems(seats: Array<CartSeat>): Array<JSX.Element> {\r\n\t\tlet lineItems: Array<JSX.Element> = [];\r\n\t\tconst groupSeatsByPath = groupBy(seats, (seat) => seat.svgPathId);\r\n\r\n\t\tfor (var pathId in groupSeatsByPath) {\r\n\t\t\tconst groupedSeats = groupSeatsByPath[pathId];\r\n\t\t\tconst section = groupedSeats[0].tessituraSeat.sectionDescription;\r\n\t\t\tconst totalPriceText = this.props.hidePricesInCart ? \"\" : this.cartItemPriceText(sumBy(groupedSeats, (seat) => seat.selectedPricing.priceCarted + seat.selectedPricing.feeAmount));\r\n\t\t\tconst totalFee = this.cartItemFeeText(sumBy(groupedSeats, (seat) => seat.selectedPricing.feeAmount));\r\n\t\t\tconst totalBasePrice = this.cartItemPriceText(sumBy(groupedSeats, (seat) => seat.selectedPricing.price));\r\n\t\t\tconst totalFeeText = this.props.displaySeatFee && totalFee ? `<span>${this.props.feeAmountText}</span> <span>${totalFee}</span>` : \"\";\r\n\t\t\tconst totalTicketCostText = this.props.displaySeatFee && totalFee ? `<span>${this.props.ticketCostText}</span> <span>${totalBasePrice}</span>` : \"\";\r\n\r\n\t\t\tconst priceTypeDescription = groupedSeats[0].selectedPricing.priceTypeDescription;\r\n\r\n\t\t\tconst allCartSeatsInSamePath = this.props.allSeats.filter(allSeat => allSeat.svgPathId === pathId);\r\n\t\t\tconst onCartItemsClick = () => this._onCartItemsClick(allCartSeatsInSamePath.map(allSeat => allSeat as CartSeat));\r\n\r\n\t\t\tlineItems.push(\r\n\t\t\t\t<LineItem key={`groupseat-${pathId}`}\r\n\t\t\t\t\tdescription={this.getGroupLineItemDescription(groupedSeats.length, section)}\r\n\t\t\t\t\tisSelected={this.getIsSelected(groupedSeats[0])}\r\n\t\t\t\t\tonSelect={onCartItemsClick}\r\n\t\t\t\t\tonRemove={() => { this._onRemoveCartItemsClick(groupedSeats) }}\r\n\t\t\t\t\tprice={totalPriceText}\r\n\t\t\t\t\tpriceTypeDescription={priceTypeDescription}\r\n\t\t\t\t\tpriceFeeHeading={this.props.priceFeeHeading}\r\n\t\t\t\t\tfee={totalFeeText}\r\n\t\t\t\t\tbaseTicketCost={totalTicketCostText}\r\n\t\t\t\t\tdisplaySeatFee={this.props.displaySeatFee}\r\n\t\t\t\t/>\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn lineItems;\r\n\t}\r\n\r\n\tgetGroupLineItemDescription(number: number, section: string) {\r\n\t\tconst groupSeatText = this.props.groupSeatCartItemText;\r\n\t\treturn groupSeatText.replace(\"{0}\", number.toString()).replace(\"{1}\", section);\r\n\t}\r\n\r\n viewFromSeatIsActive(seat: CartSeat): boolean {\r\n // This will only return whether view from seat is globally available, or the current level contains this seat. It does not test whether the seat has an image available.\r\n\t\tif (this.props.fetchSeatViewImage) {\r\n\t\t\tconst seatIsInCurrentSeatmap = this.props.allSeats.filter(s => s.seatId == seat.seatId).length > 0;\r\n\t\t\tconst seatHasAssociatedSeatmap = !!seat.associatedSeatmapId;\r\n\t\t\treturn seatIsInCurrentSeatmap || seatHasAssociatedSeatmap;\r\n }\r\n return false;\r\n }\r\n\r\n _onRemoveCartItemClick(cartItem: CartSeat) {\r\n this.props.dispatch(saveSeatRemoval(cartItem))\r\n this.props.dispatch(removeSeatFromCart(cartItem, this.props.selectedPriceTypes, this.props.brandId, false));\r\n }\r\n\r\n\t_onRemoveCartItemsClick(cartItems: Array<CartSeat>) {\r\n\t\tcartItems.forEach(item =>\r\n\t\t\tthis.props.dispatch(removeSeatFromCart(item, this.props.selectedPriceTypes, this.props.brandId, false))\r\n\t\t);\r\n\t}\r\n\r\n\t_onCartItemClick(cartItem: CartSeat) {\r\n\t\tthis.props.dispatch(selectSeat(cartItem, true, cartItem.associatedSeatmapId || this.props.seatMapId, this.props.fetchSeatViewImage));\r\n\t\tthis.props.dispatch(closeSeatmapCart(false));\r\n\t}\r\n\r\n\t// Click handler for a group seat LineItem\r\n\t_onCartItemsClick(cartItems: Array<CartSeat>) {\r\n\t\t// Assumes view for the first seat in the array\r\n\t\tthis.props.dispatch(selectGroupedSeats(cartItems, this.props.seatMapId, this.props.fetchSeatViewImage));\r\n\t}\r\n\r\n\tcartItemPriceText(price: number): string {\r\n\t\tif (this.props.hidePricesInCart) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t\tif (price > 0 || this.props.exchangeFreeLabel === \"\") {\r\n\t\t\treturn getCurrencyFormat(this.props.currencyFormat, price);\r\n\t\t}\r\n\r\n\t\treturn this.props.exchangeFreeLabel;\r\n\t}\r\n\r\n\tcartItemFeeText(price: number): string {\r\n\t\tif (!this.props.displaySeatFee) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t\tif (price > 0) {\r\n\t\t\treturn `<span>${this.props.feeAmountText}</span> <span>${getCurrencyFormat(this.props.currencyFormat, price)}</span>`;\r\n\t\t}\r\n\r\n\t\treturn \"\";\r\n\r\n\t}\r\n\r\n\tcartItemBasePriceText(price: number): string {\r\n\t\tif (!this.props.displaySeatFee) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t\tif (price > 0) {\r\n\t\t\treturn `<span>${this.props.ticketCostText}</span> <span>${getCurrencyFormat(this.props.currencyFormat, price)}</span>`;\r\n\t\t}\r\n\r\n\t\treturn \"\";\r\n\r\n\t}\r\n}\r\n\r\nexport default CartItems;","import * as React from 'react';\r\nimport { PriceType } from \"../../../classes/price-type\";\r\nimport { IOption } from '../../../classes/seating-option';\r\nimport { IExchangeTicket } from '../../../classes/ticket-exchange';\r\nimport PromoCodeContainer from '../../../common/promo-code/promo-code';\r\nimport { IPriceRangeModel, IAdditionalSeatingOptionModel } from '../../../filter/reducers/filter-reducers';\r\nimport { formatString } from '../../../helpers/string-format';\r\nimport { IAppSettingsModel } from '../../../reducers/fetch-settings-reducer';\r\nimport Cart from './cart';\r\nimport Subtotal from './subtotal';\r\nimport AdditionalNotes from '../../../common/notes/additional-notes';\r\nimport { ItemType } from '../../../classes/item-type';\r\nimport { IPromoCodeModel } from '../../../filter/reducers/promo-reducer';\r\nimport { ISeatMapModel } from '../../reducers/seatmap-reducer';\r\nimport { ICartModel } from '../../../cart/reducers/cart-reducer';\r\nimport { convertStringListToString } from '../../../helpers/array-helpers';\r\nimport { toggleSeatmapCart } from '../../../seatmap/actions/seatmap-actions';\r\nimport { AisleIndicator, Seat, SeatInfo } from '../../../classes/seat';\r\nimport isEqual from 'react-fast-compare';\r\nimport Modal from '../../../common/modal/modal';\r\n\r\ninterface IFiltersOverlayProps {\r\n appSettings: IAppSettingsModel;\r\n promoCodeModel: IPromoCodeModel;\r\n //seatMapModel: ISeatMapModel;\r\n seatmapId: string;\r\n levelSeats: Array<Seat>;\r\n selectedSeats: Array<Seat>;\r\n additionalSeatingOptionModel: IAdditionalSeatingOptionModel;\r\n cartModel: ICartModel;\r\n dispatch: any;\r\n\r\n itemType: ItemType;\r\n isMobile: boolean;\r\n hidingUpsell: boolean;\r\n showOverlay: boolean;\r\n showPromoCode: boolean;\r\n\r\n cartOverlayMessage: string;\r\n promoCodeTitle: string;\r\n additionalNotesTitle: string;\r\n\r\n seatmapCartText: string;\r\n\r\n selectedPriceTypes: Array<PriceType>;\r\n fetchSeatViewImage: boolean;\r\n}\r\n\r\ninterface ICartOverlayState {\r\n openPromoCode: boolean;\r\n openAdditionalNotes: boolean;\r\n}\r\n\r\nclass CartOverlay extends React.Component<IFiltersOverlayProps, ICartOverlayState> {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.state = {\r\n openPromoCode: false,\r\n openAdditionalNotes: false\r\n }\r\n }\r\n\r\n shouldComponentUpdate(nextProps: IFiltersOverlayProps, nextState: ICartOverlayState) {\r\n return (nextProps.showOverlay && !isEqual(nextProps, this.props)) || !isEqual(this.state, nextState);\r\n }\r\n\r\n _togglePromoCodeShow() {\r\n this.setState({\r\n openPromoCode: !this.state.openPromoCode\r\n })\r\n }\r\n\r\n _toggleAdditionalNotesShow() {\r\n this.setState({\r\n openAdditionalNotes: !this.state.openAdditionalNotes\r\n })\r\n }\r\n\r\n _toggleSeatmapCart(evt) {\r\n evt.preventDefault();\r\n\r\n this.props.dispatch(toggleSeatmapCart());\r\n }\r\n\r\n handleClickOutside = evt => {\r\n if (this.props.showOverlay) {\r\n this.props.dispatch(toggleSeatmapCart());\r\n }\r\n };\r\n\r\n render() {\r\n const useTag = `<use xlink:href=\"#icon-arrow-down\" />`;\r\n const xSvg = `<svg class=\"close-filters-icon\"><use xlink:href=\"#icon-close\" /></svg>`;\r\n const lastSectionClass = \" overlay-filter-section-last\";\r\n const showPromoCode = this.props.itemType !== ItemType.Flex && this.props.itemType !== ItemType.Super && this.props.appSettings.enablePromoCodes;\r\n\r\n const minQuantityPriceTypeErrorMessage = this.props.cartModel.flexMinQuantityReachedForPriceType == null ? \"\"\r\n : this.props.appSettings.minimumSeatsSingleTicketRequiredMessage.replace(\"{0}\", this.props.cartModel.flexMinQuantityReachedForPriceType.title);\r\n\r\n var orphanedSeat = \"\";\r\n if (!this.props.appSettings.allowOrphanedSeats) {\r\n orphanedSeat = this.checkForOrphanedSeats();\r\n }\r\n\r\n var requiresConsecutiveSeat: SeatInfo = null;\r\n\r\n if (this.props.appSettings.forcePatronsReserveWholeRow) {\r\n requiresConsecutiveSeat = this.checkForMissingSameConsecutivesSeats();\r\n }\r\n else if (this.props.appSettings.forcePatronsReserveInMultiples > 0) {\r\n requiresConsecutiveSeat = this.checkForMissingConsecutiveSeats();\r\n }\r\n\r\n\r\n return (\r\n <div className=\"overlay-section overlay-section-cart\">\r\n <div className=\"overlay-section-header\">\r\n <button type=\"button\" className=\"sidebar-section-toggle\" onClick={(evt) => this._toggleSeatmapCart(evt)} aria-expanded={this.props.showOverlay}>\r\n <h2 className=\"heading-general\" tabIndex={-1}>{this.props.seatmapCartText}</h2>\r\n <div dangerouslySetInnerHTML={{ __html: xSvg }} ></div>\r\n </button>\r\n\r\n </div>\r\n\r\n <div className=\"overlay-section-combined\">\r\n <Cart\r\n selectedAdditionalOptionGroups={this.props.additionalSeatingOptionModel.additionalSeatingOptions.filter(optionGroup => optionGroup.groupSelected)}\r\n cartSeats={this.props.cartModel.seats}\r\n dispatch={this.props.dispatch}\r\n itemId={this.props.appSettings.itemId}\r\n selectedPriceTypes={this.props.selectedPriceTypes}\r\n {...this.props.appSettings}\r\n seatMapId={this.props.seatmapId}\r\n selectedSeatIds={convertStringListToString(this.props.selectedSeats.map(s => s.seatId))}\r\n allSeats={this.props.levelSeats}\r\n cartDisabled={this.props.cartModel.cartDisabled}\r\n additionalNotes={this.props.additionalSeatingOptionModel.additionalNotes}\r\n fetchSeatViewImage={this.props.fetchSeatViewImage}\r\n />\r\n\r\n {showPromoCode ?\r\n <div className={\"overlay-filter-section\" + (!this.props.appSettings.renderAdditionalNotes ? lastSectionClass : '')}>\r\n <PromoCodeContainer collapseDown={false} culture={this.props.appSettings.currentCulture} />\r\n </div>\r\n : null}\r\n\r\n {this.props.appSettings.renderAdditionalNotes ?\r\n <div className={\"overlay-filter-section\" + lastSectionClass}>\r\n <p className=\"caption-paragraph\">\r\n <button aria-expanded={this.state.openAdditionalNotes} className=\"filter-title\" onClick={this._toggleAdditionalNotesShow.bind(this)}>\r\n {this.props.additionalNotesTitle}\r\n <svg className={\"filters-section-heading-toggles-icon\" + (!this.state.openAdditionalNotes ? \" toggled\" : \"\")} aria-hidden=\"true\" dangerouslySetInnerHTML={{ __html: useTag }} />\r\n </button>\r\n </p>\r\n {this.state.openAdditionalNotes ?\r\n <AdditionalNotes />\r\n : null\r\n }\r\n </div>\r\n\r\n : null\r\n }\r\n\r\n </div>\r\n <div className=\"overlay-section-subtotal\">\r\n <Subtotal\r\n selectedAdditionalOptionGroups={this.props.additionalSeatingOptionModel.additionalSeatingOptions.filter(optionGroup => optionGroup.groupSelected)}\r\n cartSeats={this.props.cartModel.seats}\r\n dispatch={this.props.dispatch}\r\n itemId={this.props.appSettings.itemId}\r\n {...this.props.appSettings}\r\n cartDisabled={this.props.cartModel.cartDisabled || (orphanedSeat.length > 0) || (requiresConsecutiveSeat != null)}\r\n cartErrorMessage={\r\n requiresConsecutiveSeat != null ?\r\n this.props.appSettings.forceMultipleCartMessageText\r\n .replace(\"{RowText}\", requiresConsecutiveSeat.rowText)\r\n .replace(\"{NumberText}\", requiresConsecutiveSeat.numberText)\r\n :\r\n (orphanedSeat.length > 0) ?\r\n this.props.appSettings.leaveOrphanedSeatsMessage\r\n .replace(\"{RowText}\", orphanedSeat.split('~')[0])\r\n .replace(\"{NumberText}\", orphanedSeat.split('~')[1])\r\n : \"\"}\r\n minQuantityNotReached={this.props.cartModel.flexMinQuantityReachedForPriceType != null}\r\n minQuantityNotReachedMessage={minQuantityPriceTypeErrorMessage}\r\n additionalNotes={this.props.additionalSeatingOptionModel.additionalNotes}\r\n />\r\n </div>\r\n\r\n\r\n </div>\r\n )\r\n }\r\n\r\n // returns the first seat that will is orphaned\r\n private checkForOrphanedSeats(): string {\r\n const cartSeatNumbers = this.props.cartModel.seats.map(s => s.tessituraSeat.seatNumber);\r\n\r\n var orphanedSeats = \"\";\r\n var seatsCausingOrphan = this.props.cartModel.seats.filter(seat => {\r\n var consecutiveSeats = this.props.levelSeats.filter(levelSeat => cartSeatNumbers.indexOf(levelSeat.tessituraSeat.seatNumber) < 0\r\n && levelSeat.tessituraSeat.consecutiveSeatGroupId == seat.tessituraSeat.consecutiveSeatGroupId);\r\n if (consecutiveSeats.length == 0)\r\n return false;\r\n if (consecutiveSeats.length == 1) {\r\n //if the seat is not an aisle\r\n if (consecutiveSeats[0].tessituraSeat.aisle == AisleIndicator.None) {\r\n orphanedSeats = consecutiveSeats[0].tessituraSeat.rowText + \"~\" + consecutiveSeats[0].tessituraSeat.numberText;\r\n return true;\r\n }\r\n else\r\n return false;\r\n }\r\n var canStillReserveSeats = consecutiveSeats.filter(cSeat => {\r\n //if it is an aisle then we'll let it slide\r\n if (cSeat.tessituraSeat.aisle !== AisleIndicator.None) {\r\n return true;\r\n }\r\n var seatToRight = consecutiveSeats.filter(c => c.tessituraSeat.logicalSeatNumber == cSeat.tessituraSeat.logicalSeatNumber + 1);\r\n var seatToLeft = consecutiveSeats.filter(c => c.tessituraSeat.logicalSeatNumber == cSeat.tessituraSeat.logicalSeatNumber - 1);\r\n if (seatToRight.length < 1 && seatToLeft.length < 1) {\r\n orphanedSeats = cSeat.tessituraSeat.rowText + \"~\" + cSeat.tessituraSeat.numberText;\r\n return false;\r\n }\r\n\r\n return true;\r\n });\r\n\r\n return canStillReserveSeats.length !== consecutiveSeats.length;\r\n });\r\n\r\n if (seatsCausingOrphan.length > 0) {\r\n return orphanedSeats;\r\n }\r\n\r\n return \"\";\r\n }\r\n\r\n // this check will look to see if we are forcing a certain number of consecutive seats. \r\n // If we are and the patron has fulfilled the multiple, this will return the seat that is missing consecutive seats\r\n private checkForMissingConsecutiveSeats(): SeatInfo {\r\n const cartSeatNumbers = this.props.cartModel.seats.map(s => s.tessituraSeat.seatNumber);\r\n\r\n var orphanedSeats = null;\r\n var seatsCausingNotEnoughForcedConsecutive = this.props.cartModel.seats.filter(seat => {\r\n\r\n if (cartSeatNumbers.length === 1) {\r\n orphanedSeats = seat.tessituraSeat;\r\n return true;\r\n }\r\n\r\n var consecutiveSeatsInCart = this.props.levelSeats.filter(levelSeat => levelSeat.tessituraSeat.consecutiveSeatGroupId == seat.tessituraSeat.consecutiveSeatGroupId\r\n && levelSeat.tessituraSeat.seatNumber !== seat.tessituraSeat.seatNumber\r\n && cartSeatNumbers.indexOf(levelSeat.tessituraSeat.seatNumber) >= 0\r\n );\r\n\r\n if ((consecutiveSeatsInCart.length + 1) % this.props.appSettings.forcePatronsReserveInMultiples == 0) {\r\n return false;\r\n } else {\r\n orphanedSeats = seat.tessituraSeat;\r\n\r\n return true;\r\n }\r\n });\r\n\r\n if (seatsCausingNotEnoughForcedConsecutive.length > 0) {\r\n return orphanedSeats;\r\n }\r\n\r\n return null;\r\n }\r\n\r\n // this check will look to see if we are forcing patrons to reserve all available seats in a consecutive group. \r\n // If we are and the patron has not fulfilled the whole row, this will return the seat that is missing consecutive seats\r\n private checkForMissingSameConsecutivesSeats(): SeatInfo {\r\n const cartSeatNumbers = this.props.cartModel.seats.map(s => s.tessituraSeat.seatNumber);\r\n\r\n var missingSeats = null;\r\n var seatsCausingNotEnoughForcedConsecutive = this.props.cartModel.seats.filter(seat => {\r\n\r\n var seatsInRow = this.props.levelSeats.filter(lvlS => lvlS.tessituraSeat.isAvailable && lvlS.tessituraSeat.consecutiveSeatGroupId === seat.tessituraSeat.consecutiveSeatGroupId);\r\n\r\n var reservedAllSeats = seatsInRow.every(rowSeat => cartSeatNumbers.indexOf(rowSeat.tessituraSeat.seatNumber) >= 0);\r\n\r\n if (reservedAllSeats) {\r\n return false;\r\n }\r\n\r\n missingSeats = seat.tessituraSeat;\r\n return true;\r\n });\r\n\r\n if (seatsCausingNotEnoughForcedConsecutive.length > 0) {\r\n return missingSeats;\r\n }\r\n\r\n return null;\r\n }\r\n}\r\n\r\nexport default CartOverlay;","import * as React from 'react';\r\n\r\n\r\nimport { CartSeat } from '../../../classes/seat';\r\nimport { tryCheckout } from '../../../cart/actions/cart-actions';\r\nimport { Dispatch } from 'redux';\r\nimport { Seat } from '../../../classes/seat';\r\nimport CartItems from './cart-items';\r\nimport { IAltText } from '../../../classes/alt-text';\r\nimport { ItemType } from '../../../classes/item-type';\r\nimport { SeatingOptionGroup } from '../../../classes/seating-option';\r\nimport { PriceType } from '../../../classes/price-type';\r\nimport isEqual from 'react-fast-compare';\r\n\r\nexport interface ICartProps {\r\n cartSeats: Array<CartSeat>;\r\n dispatch: any /*Dispatch<any>*/;\r\n itemId: number;\r\n itemType: ItemType;\r\n allowExchangesAddon: boolean;\r\n altText: IAltText;\r\n\r\n selectedAdditionalOptionGroups: Array<SeatingOptionGroup>; //used for non-seat bound seating options\r\n\r\n cartCheckoutButton: string;\r\n cartAddMoreButton: string;\r\n seatMapId: string;\r\n selectedSeatIds: string;\r\n allSeats: Array<Seat>;\r\n cartDisabled: boolean;\r\n cartMessage: string;\r\n\r\n //CartItems props\r\n cartSubtotalLabel: string;\r\n cartEmptyNotice: string;\r\n useZoneDescription: boolean;\r\n groupSeatCartItemText: string;\r\n currencyFormat: string;\r\n exchangeFreeLabel: string;\r\n brandId: string;\r\n additionalNotes: string;\r\n\r\n selectedPriceTypes: Array<PriceType>;\r\n hidePricesInCart: boolean;\r\n fetchSeatViewImage: boolean;\r\n\r\n displaySeatFee?: boolean;\r\n priceFeeHeading?: string;\r\n}\r\n\r\ninterface ICartInteractionState {\r\n mobileCartOpen: boolean;\r\n}\r\n\r\nclass Cart extends React.Component<ICartProps, ICartInteractionState>{\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n mobileCartOpen: false,\r\n }\r\n }\r\n\r\n shouldComponentUpdate(nextProps: ICartProps, nextState) {\r\n return this.props.cartSeats.length != nextProps.cartSeats.length\r\n || this.props.cartDisabled != nextProps.cartDisabled\r\n || this.props.selectedSeatIds != nextProps.selectedSeatIds\r\n || this.props.additionalNotes != nextProps.additionalNotes\r\n || !isEqual(this.props.cartSeats.map(s => s.selectedPricing.priceTypeId), nextProps.cartSeats.map(s => s.selectedPricing.priceTypeId))\r\n || !isEqual({ optionGroups: this.props.selectedAdditionalOptionGroups, priceTypes: this.props.selectedPriceTypes },\r\n { optionGroups: nextProps.selectedAdditionalOptionGroups, priceTypes: nextProps.selectedPriceTypes });\r\n }\r\n\r\n render() {\r\n var cartContainerClass = 'cart-container';\r\n\r\n return (\r\n <div className={cartContainerClass} >\r\n <div className=\"cart-mini-container\">\r\n\r\n <CartItems {...this.props} />\r\n\r\n </div>\r\n </div>\r\n );\r\n }\r\n\r\n}\r\n\r\nexport default Cart;","import * as React from 'react';\r\nimport isEqual from 'react-fast-compare';\r\nimport { tryCheckout } from '../../../cart/actions/cart-actions';\r\nimport { CartSeat } from '../../../classes/seat';\r\nimport { SeatingOptionGroup } from '../../../classes/seating-option';\r\n\r\nexport interface ICheckoutButtonProps {\r\n dispatch: any /*Dispatch<any>*/;\r\n\r\n itemId: number;\r\n showAddMoreButton: boolean;\r\n\r\n selectedAdditionalOptionGroups: Array<SeatingOptionGroup>; //used for non-seat bound seating options\r\n additionalNotes: string;\r\n\r\n cartCheckoutButton: string;\r\n cartAddMoreButton: string;\r\n cartDisabled: boolean;\r\n\r\n //CartItems props\r\n cartSeats: Array<CartSeat>;\r\n}\r\n\r\nclass CheckoutButton extends React.Component<ICheckoutButtonProps, null>{\r\n \r\n shouldComponentUpdate(nextProps: ICheckoutButtonProps, nextState) {\r\n return this.props.cartSeats.length != nextProps.cartSeats.length\r\n || this.props.cartDisabled != nextProps.cartDisabled\r\n || !isEqual(this.props.cartSeats.map(s => s.selectedPricing.priceTypeId), nextProps.cartSeats.map(s => s.selectedPricing.priceTypeId))\r\n || !isEqual(this.props.selectedAdditionalOptionGroups, nextProps.selectedAdditionalOptionGroups);\r\n }\r\n\r\n render() {\r\n\r\n const disableButton = this.props.cartSeats.length === 0 || this.props.cartDisabled;\r\n return (\r\n <div className=\"cart-mini-cta\">\r\n {this.props.showAddMoreButton ?\r\n <button className={\"cart-mini-cta-btn-primary\" + (disableButton ? \" disabled\" : \"\")}\r\n disabled={disableButton}\r\n onClick={this._onAddMoreCheckoutClick.bind(this)}>\r\n {this.props.cartAddMoreButton}\r\n </button> : null\r\n }\r\n <button className={\"cart-mini-cta-btn-primary\" + (disableButton ? \" disabled\" : \"\")}\r\n disabled={disableButton}\r\n onClick={this._onCheckoutClick.bind(this)}>\r\n {this.props.cartCheckoutButton}\r\n </button>\r\n </div>\r\n );\r\n }\r\n\r\n _onCheckoutClick() {\r\n this.props.dispatch(tryCheckout(this.props.cartSeats, this.props.selectedAdditionalOptionGroups, this.props.additionalNotes, this.props.itemId, false));\r\n }\r\n\r\n _onAddMoreCheckoutClick() {\r\n this.props.dispatch(tryCheckout(this.props.cartSeats, this.props.selectedAdditionalOptionGroups, this.props.additionalNotes, this.props.itemId, true));\r\n }\r\n\r\n}\r\n\r\nexport default CheckoutButton;","import * as React from 'react';\r\n\r\ninterface ILineItemProps {\r\n description: string;\r\n price: string;\r\n priceTypeDescription: string;\r\n onSelect: (e: any) => void;\r\n onRemove: (e: any) => void;\r\n isSelected: boolean;\r\n priceFeeHeading?: string;\r\n fee?: string;\r\n baseTicketCost?: string;\r\n displaySeatFee?: boolean;\r\n}\r\n\r\n// Cart line item\r\nconst LineItem: React.SFC<ILineItemProps> = (props) => {\r\n const { description, price, priceTypeDescription, onSelect, onRemove, isSelected, priceFeeHeading, fee, baseTicketCost } = props;\r\n const useTagClose = '<use xlink:href=\"#icon-close\" />';\r\n\r\n return (\r\n <li className={\"cart-item\" + (isSelected ? \" active\" : \"\")}>\r\n <button type=\"button\" className=\"cart-item-action\" onClick={onRemove}>\r\n {/*TODO: dynamic text*/}\r\n <span className=\"visually-hidden\">Remove Seat {description}</span>\r\n <svg className=\"cart-mini-close\" dangerouslySetInnerHTML={{ __html: useTagClose }} />\r\n </button>\r\n <div className=\"cart-item-content\">\r\n {\r\n onSelect !== null ?\r\n <button className=\"cart-mini-item-button\" type=\"button\" onClick={onSelect}>{description}</button>\r\n :\r\n <span className=\"cart-mini-item-text\">{description}</span>\r\n }\r\n <p className=\"cart-item-price-info\">\r\n <span>{priceTypeDescription}</span>\r\n <span>{price}</span>\r\n </p>\r\n {\r\n props.displaySeatFee ?\r\n <div className=\"small-italic\">\r\n <p className=\"cart-item-price-info\">{priceFeeHeading}</p>\r\n <p className=\"cart-item-price-info\" dangerouslySetInnerHTML={{ __html: baseTicketCost }} />\r\n <p className=\"cart-item-price-info\" dangerouslySetInnerHTML={{ __html: fee }} />\r\n </div>\r\n : null\r\n }\r\n </div>\r\n </li>\r\n );\r\n}\r\n\r\nexport default LineItem;","import * as React from 'react';\r\nimport { CartSeat } from '../../../classes/seat';\r\nimport { getCurrencyFormat } from '../../../helpers/currency-format';\r\nimport { Html } from '../../../helpers/html-helpers';\r\n\r\nexport interface ICartItemsProps {\r\n cartSeats: Array<CartSeat>;\r\n cartSubtotalLabel: string;\r\n currencyFormat: string;\r\n exchangeFreeLabel: string;\r\n hidePricesInCart: boolean;\r\n subpackageHideMessage: string;\r\n displaySeatFee?: boolean;\r\n}\r\n\r\n// List of cart items (LineItem components) and subtotal\r\nclass SubtotalItems extends React.Component<ICartItemsProps, { seatToRemove: CartSeat }> {\r\n render() {\r\n\r\n return (\r\n <div className=\"overlay-section-subtotal-content caption-paragraph\">\r\n {\r\n this.props.hidePricesInCart ? Html.renderParagraph(this.props.subpackageHideMessage) :\r\n <>\r\n <span>{this.props.cartSubtotalLabel}</span>\r\n <span className=\"subtotal\">{this.cartSubTotal}</span>\r\n </>\r\n }\r\n\r\n\r\n </div>\r\n\r\n );\r\n }\r\n\r\n\r\n\r\n get cartSubTotal(): string {\r\n\r\n const total = this.props.cartSeats.map(seat => this.addFee(seat)).reduce((sum, n) => sum + n, 0);\r\n\r\n if (total > 0 || this.props.exchangeFreeLabel === \"\") {\r\n return getCurrencyFormat(this.props.currencyFormat, total);\r\n }\r\n\r\n if (this.props.exchangeFreeLabel.length > 0 && this.props.cartSeats.length > 0) {\r\n return this.props.exchangeFreeLabel;\r\n }\r\n\r\n return '$0.00';\r\n }\r\n\r\n addFee(seat) {\r\n if (this.props?.displaySeatFee) {\r\n return seat.selectedPricing.priceCarted + seat.selectedPricing.feeAmount;\r\n }\r\n\r\n return seat.selectedPricing.priceCarted;\r\n }\r\n\r\n}\r\n\r\nexport default SubtotalItems;","import * as React from 'react';\r\nimport isEqual from 'react-fast-compare';\r\nimport { tryCheckout } from '../../../cart/actions/cart-actions';\r\nimport { ItemType } from '../../../classes/item-type';\r\nimport { CartSeat } from '../../../classes/seat';\r\nimport { SeatingOptionGroup } from '../../../classes/seating-option';\r\nimport { Html } from '../../../helpers/html-helpers';\r\nimport CheckoutButton from './checkout-button';\r\nimport SubtotalItems from './subtotal-items';\r\n\r\n\r\nexport interface ICartProps {\r\n dispatch: any /*Dispatch<any>*/;\r\n itemId: number;\r\n itemType: ItemType;\r\n allowExchangesAddon: boolean;\r\n\r\n selectedAdditionalOptionGroups: Array<SeatingOptionGroup>; //used for non-seat bound seating options\r\n\r\n cartCheckoutButton: string;\r\n cartAddMoreButton: string;\r\n cartDisabled: boolean;\r\n cartErrorMessage: string;\r\n\r\n additionalNotes: string;\r\n\r\n cartMessage: string;\r\n //CartItems props\r\n cartSeats: Array<CartSeat>;\r\n cartSubtotalLabel: string;\r\n currencyFormat: string;\r\n exchangeFreeLabel: string;\r\n\r\n minQuantityNotReached: boolean;\r\n minQuantityNotReachedMessage: string;\r\n\r\n hidePricesInCart: boolean;\r\n subpackageHideMessage: string;\r\n displaySeatFee?: boolean;\r\n}\r\n\r\ninterface ICartInteractionState {\r\n mobileCartOpen: boolean;\r\n}\r\n\r\nclass Subtotal extends React.Component<ICartProps, ICartInteractionState>{\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n mobileCartOpen: false,\r\n }\r\n }\r\n\r\n shouldComponentUpdate(nextProps: ICartProps, nextState) {\r\n return this.props.cartSeats.length != nextProps.cartSeats.length\r\n || this.props.cartDisabled != nextProps.cartDisabled\r\n || this.props.additionalNotes != nextProps.additionalNotes\r\n || !isEqual(this.props.cartSeats.map(s => s.selectedPricing.priceTypeId), nextProps.cartSeats.map(s => s.selectedPricing.priceTypeId))\r\n || !isEqual(this.props.selectedAdditionalOptionGroups, nextProps.selectedAdditionalOptionGroups);\r\n\r\n }\r\n\r\n render() {\r\n\r\n return (\r\n <div className=\"overlay-section-subtotal-container\">\r\n\r\n {\r\n this.props.cartMessage.length > 0 ?\r\n Html.renderParagraph(this.props.cartMessage, \"caption-paragraph\") : null\r\n }\r\n\r\n {\r\n this.props.minQuantityNotReached && this.props.minQuantityNotReachedMessage.length > 0 ?\r\n Html.renderDiv(this.props.minQuantityNotReachedMessage, \"caption-paragraph error-notice\")\r\n : null\r\n }\r\n {\r\n this.props.cartErrorMessage.length > 0 ?\r\n Html.renderDiv(this.props.cartErrorMessage, \"caption-paragraph error-notice\") : null\r\n }\r\n\r\n <SubtotalItems {...this.props} />\r\n\r\n <CheckoutButton {...this.props}\r\n showAddMoreButton={this.props.itemType === ItemType.Exchange && this.props.allowExchangesAddon}\r\n />\r\n\r\n </div>\r\n );\r\n }\r\n\r\n _onCheckoutClick() {\r\n this.props.dispatch(tryCheckout(this.props.cartSeats, this.props.selectedAdditionalOptionGroups, this.props.additionalNotes, this.props.itemId, false));\r\n }\r\n\r\n _onAddMoreCheckoutClick() {\r\n this.props.dispatch(tryCheckout(this.props.cartSeats, this.props.selectedAdditionalOptionGroups, this.props.additionalNotes, this.props.itemId, true));\r\n }\r\n\r\n\r\n\r\n}\r\n\r\nexport default Subtotal;","import * as React from 'react';\r\nimport { PriceType } from \"../../../classes/price-type\";\r\nimport { IOption, SeatingOptionGroup } from '../../../classes/seating-option';\r\nimport { IExchangeTicket } from '../../../classes/ticket-exchange';\r\nimport PriceRange from '../../../common/filters/price-range';\r\nimport { IPriceRangeModel } from '../../../filter/reducers/filter-reducers';\r\nimport { formatString } from '../../../helpers/string-format';\r\nimport { IAppSettingsModel } from '../../../reducers/fetch-settings-reducer';\r\nimport PriceTypeFilter from './price-type-filter';\r\nimport LevelSelect from './level-select';\r\nimport { Level } from '../../../classes/level';\r\nimport { CartSeat } from '../../../classes/seat';\r\nimport { IAppState } from '../../../reducers/index';\r\nimport { toggleSeatmapFilters } from '../../../seatmap/actions/seatmap-actions';\r\nimport { convertNumberListToString } from '../../../helpers/array-helpers';\r\nimport PerformanceSelect from './performance-select';\r\nimport SpecialSeatingFilter from './special-seating-filter';\r\nimport isEqual from 'react-fast-compare';\r\nimport { ItemType } from '../../../classes/item-type';\r\n\r\ninterface IFiltersOverlayProps {\r\n appSettings: IAppSettingsModel;\r\n additionalSeatingOptions: Array<SeatingOptionGroup>;\r\n selectedSeatingOptions: Array<SeatingOptionGroup>;\r\n onPriceRangeClear: (minPrice: number, maxPrice: number) => any;\r\n onSelectMinPrice: (number) => any;\r\n onPriceTypeToggle: (selectedOptions: IOption[]) => any;\r\n onSpecialSeatingToggle: (selectedOptions: IOption[]) => any;\r\n onLevelSelectOpenToggle: () => any;\r\n onPriceTypeFilterOpenToggle: () => any;\r\n onSelectMaxPrice: (number) => any;\r\n priceRangeModel: IPriceRangeModel;\r\n startingMinPrice: number;\r\n startingMaxPrice: number;\r\n activeExchangeTickets: Array<IExchangeTicket>;\r\n showComponent: boolean;\r\n priceTypes: Array<PriceType>;\r\n selectedPriceTypes: Array<PriceType>;\r\n showLevelSelectFilter: boolean;\r\n levelSelectFilterOpen: boolean;\r\n showPerformanceSelectFilter: boolean;\r\n openPriceTypeFilter: boolean;\r\n showPriceRangeFilter: boolean;\r\n showPriceTypeFilter: boolean;\r\n showSpecialSeatingFilter: boolean;\r\n dispatch: any;\r\n levels: Array<Level>;\r\n currentSeatmapId: string;\r\n cartSeats: Array<CartSeat>;\r\n onLevelSelectModalOpen: () => any;\r\n seatmapFiltersIsOpen: boolean;\r\n seatmapFiltersText: string;\r\n}\r\n\r\ninterface IFiltersOverlayState {\r\n openPriceRangeFilter: boolean;\r\n openPerformanceSelectFilter: boolean;\r\n openSpecialSeatingFilter: boolean;\r\n}\r\n\r\nclass FiltersOverlay extends React.Component<IFiltersOverlayProps, IFiltersOverlayState> {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.state = {\r\n openPriceRangeFilter: false,\r\n openPerformanceSelectFilter: false,\r\n openSpecialSeatingFilter: false\r\n }\r\n }\r\n\r\n shouldComponentUpdate(nextProps: IFiltersOverlayProps, nextState: IFiltersOverlayState) {\r\n return this.props.showComponent != nextProps.showComponent\r\n || this.props.selectedPriceTypes.length !== nextProps.selectedPriceTypes.length\r\n || this.props.selectedSeatingOptions.length !== nextProps.selectedSeatingOptions.length\r\n || !isEqual(\r\n { priceTypes: this.props.priceTypes, selectedPriceTypes: this.props.selectedPriceTypes },\r\n { priceTypes: nextProps.priceTypes, selectedPriceTypes: nextProps.selectedPriceTypes })\r\n || this.props.showLevelSelectFilter != nextProps.showLevelSelectFilter\r\n || this.props.levelSelectFilterOpen != nextProps.levelSelectFilterOpen\r\n || this.props.openPriceTypeFilter != nextProps.openPriceTypeFilter\r\n || this.state.openPriceRangeFilter != nextState.openPriceRangeFilter\r\n || this.state.openSpecialSeatingFilter != nextState.openSpecialSeatingFilter\r\n || this.state.openPerformanceSelectFilter != nextState.openPerformanceSelectFilter\r\n || this.props.priceRangeModel.lowerRangeLimit !== nextProps.priceRangeModel.lowerRangeLimit\r\n || this.props.priceRangeModel.upperRangeLimit !== nextProps.priceRangeModel.upperRangeLimit\r\n || this.props.showSpecialSeatingFilter !== nextProps.showSpecialSeatingFilter;\r\n }\r\n\r\n _togglePriceRangeFilter() {\r\n this.setState({\r\n openPriceRangeFilter: !this.state.openPriceRangeFilter\r\n })\r\n }\r\n\r\n _togglePerformanceSelectFilter() {\r\n this.setState({\r\n openPerformanceSelectFilter: !this.state.openPerformanceSelectFilter\r\n })\r\n }\r\n\r\n _toggleSpecialSeatingFilter() {\r\n this.setState({\r\n openSpecialSeatingFilter: !this.state.openSpecialSeatingFilter\r\n })\r\n }\r\n\r\n _toggleSeatmapFilters(evt) {\r\n evt.preventDefault();\r\n\r\n this.props.dispatch(toggleSeatmapFilters());\r\n }\r\n\r\n handleClickOutside = evt => {\r\n if (this.props.showComponent) {\r\n this.props.dispatch(toggleSeatmapFilters());\r\n }\r\n };\r\n\r\n render() {\r\n const useTag = `<use xlink:href=\"#icon-arrow-down\" />`;\r\n const xSvg = `<svg class=\"close-filters-icon\"><use xlink:href=\"#icon-close\" /></svg>`;\r\n\r\n return (\r\n <div className=\"overlay-section\">\r\n <div className=\"overlay-section-header\">\r\n <button type=\"button\" className=\"sidebar-section-toggle\" onClick={(evt) => this._toggleSeatmapFilters(evt)} aria-expanded={this.props.showComponent}>\r\n <h2 className=\"heading-general\" tabIndex={-1}>{this.props.seatmapFiltersText}</h2>\r\n <div dangerouslySetInnerHTML={{ __html: xSvg }} ></div>\r\n </button>\r\n\r\n </div>\r\n\r\n {this.props.showPerformanceSelectFilter ?\r\n <div className=\"overlay-filter-section\">\r\n <p className=\"caption-paragraph\">\r\n <button aria-expanded={this.state.openPerformanceSelectFilter} className=\"filter-title\" onClick={this._togglePerformanceSelectFilter.bind(this)}>\r\n {this.props.appSettings.filterDateAndTimeTitle}\r\n <svg className={\"filters-section-heading-toggles-icon\" + (this.state.openPerformanceSelectFilter ? \" toggled\" : \"\")} aria-hidden=\"true\" dangerouslySetInnerHTML={{ __html: useTag }} />\r\n </button>\r\n </p>\r\n <div hidden={!this.state.openPerformanceSelectFilter}>\r\n <PerformanceSelect currentPerformanceId={this.props.appSettings.itemId}\r\n productionPerformances={this.props.appSettings.productionPerformances}\r\n legend={this.props.appSettings.filterDateAndTimeTitle}\r\n />\r\n </div>\r\n </div>\r\n : null}\r\n\r\n {this.props.showLevelSelectFilter ?\r\n <div className=\"overlay-filter-section\">\r\n <p className=\"caption-paragraph\">\r\n <button aria-expanded={this.props.levelSelectFilterOpen} className=\"filter-title\" onClick={this.props.onLevelSelectOpenToggle.bind(this)}>\r\n {this.props.appSettings.levelsHeading}\r\n <svg className={\"filters-section-heading-toggles-icon\" + (this.props.levelSelectFilterOpen ? \" toggled\" : \"\")} aria-hidden=\"true\" dangerouslySetInnerHTML={{ __html: useTag }} />\r\n </button>\r\n </p>\r\n <div hidden={!this.props.levelSelectFilterOpen}>\r\n <LevelSelect {...this.props.appSettings}\r\n isExchange={this.props.appSettings.itemType === ItemType.Exchange}\r\n exchangeFreeLabel={this.props.appSettings.exchangeFreeLabel}\r\n dispatch={this.props.dispatch}\r\n levels={this.props.levels}\r\n cartSeats={this.props.cartSeats}\r\n currentSeatmapId={this.props.currentSeatmapId}\r\n onLevelSelectModalOpen={this.props.onLevelSelectModalOpen}\r\n levelAvailableCountMessage={this.props.appSettings.levelAvailableCountMessage}\r\n selectedPriceTypeIdsString={convertNumberListToString(this.props.priceTypes.filter(pt => pt.selectedQuantity > 0).map(pt => pt.priceTypeId))}\r\n selectedLevelString={this.props.levels.filter(level => {\r\n return level.selected;\r\n }).map(level => {\r\n return level.levelNumber;\r\n }).toString()}\r\n legend={this.props.appSettings.levelsHeading}\r\n />\r\n\r\n </div>\r\n </div>\r\n : null}\r\n\r\n {this.props.showPriceRangeFilter ?\r\n <div className=\"overlay-filter-section\">\r\n <p className=\"caption-paragraph\">\r\n <button aria-expanded={this.state.openPriceRangeFilter} className=\"filter-title\" onClick={this._togglePriceRangeFilter.bind(this)}>\r\n {this.props.appSettings.seatmapPriceRangeFilterHeader}\r\n <svg className={\"filters-section-heading-toggles-icon\" + (this.state.openPriceRangeFilter ? \" toggled\" : \"\")} aria-hidden=\"true\" dangerouslySetInnerHTML={{ __html: useTag }} />\r\n </button>\r\n </p>\r\n <div hidden={!this.state.openPriceRangeFilter}>\r\n <PriceRange {...this.props.appSettings}\r\n {...this.props.priceRangeModel}\r\n onPriceRangeClear={this.props.onPriceRangeClear}\r\n onSelectMaxPrice={this.props.onSelectMaxPrice}\r\n onSelectMinPrice={this.props.onSelectMinPrice}\r\n startingMinPrice={this.props.startingMinPrice}\r\n startingMaxPrice={this.props.startingMaxPrice}\r\n showClearButton={false}\r\n showTitle={false}\r\n titleText={this.props.appSettings.seatmapPriceRangeFilterHeader}>\r\n </PriceRange>\r\n </div>\r\n </div>\r\n : null\r\n }\r\n\r\n {\r\n (this.props.appSettings.combinePriceTypeSpecialSeatingFilters && (this.props.showSpecialSeatingFilter || this.props.showPriceTypeFilter)) ?\r\n <div className=\"overlay-filter-section overlay-filter-section-last\">\r\n <p className=\"caption-paragraph\">\r\n <button aria-expanded={this.props.openPriceTypeFilter} className=\"filter-title\" onClick={this.props.onPriceTypeFilterOpenToggle.bind(this)}>\r\n {this.props.appSettings.seatmapTicketTypeFilterHeader}\r\n <svg className={\"filters-section-heading-toggles-icon\" + (this.props.openPriceTypeFilter ? \" toggled\" : \"\")} aria-hidden=\"true\" dangerouslySetInnerHTML={{ __html: useTag }} />\r\n </button>\r\n </p>\r\n <div hidden={!this.props.openPriceTypeFilter}>\r\n {\r\n this.props.showPriceTypeFilter ?\r\n <PriceTypeFilter onPriceTypeToggle={this.props.onPriceTypeToggle} priceTypes={this.props.priceTypes}\r\n selectedPriceTypeIds={this.props.selectedPriceTypes.map(pt => pt.priceTypeId.toString())}\r\n description={this.props.appSettings.seatmapTicketTypeFilterInstructions}\r\n allTicketsText={this.props.appSettings.seatmapTicketTypeAllTicketsLabel}\r\n singleFilter={false}\r\n legend={this.props.appSettings.seatmapTicketTypeFilterHeader}\r\n />\r\n : null\r\n }\r\n {\r\n this.props.showSpecialSeatingFilter ?\r\n <SpecialSeatingFilter onSpecialSeatingToggle={this.props.onSpecialSeatingToggle}\r\n additionalSeatingOptions={this.props.additionalSeatingOptions}\r\n selectedSpecialSeatingIds={this.props.selectedSeatingOptions.map(option => option.id)}\r\n description={this.props.appSettings.seatmapTicketTypeFilterInstructions}\r\n allTicketsText={this.props.appSettings.seatmapTicketTypeAllTicketsLabel}\r\n singleFilter={false}\r\n />\r\n : null\r\n }\r\n </div>\r\n </div> :\r\n (\r\n <>\r\n {\r\n this.props.showPriceTypeFilter && this.props.showComponent ?\r\n <div className=\"overlay-filter-section overlay-filter-section-last\">\r\n <p className=\"caption-paragraph\">\r\n <button aria-expanded={this.props.openPriceTypeFilter} className=\"filter-title\" onClick={this.props.onPriceTypeFilterOpenToggle.bind(this)}>\r\n {this.props.appSettings.seatmapTicketTypeFilterHeader}\r\n <svg className={\"filters-section-heading-toggles-icon\" + (this.props.openPriceTypeFilter ? \" toggled\" : \"\")} aria-hidden=\"true\" dangerouslySetInnerHTML={{ __html: useTag }} />\r\n </button>\r\n </p>\r\n <div hidden={!this.props.openPriceTypeFilter}>\r\n <PriceTypeFilter onPriceTypeToggle={this.props.onPriceTypeToggle} priceTypes={this.props.priceTypes}\r\n selectedPriceTypeIds={this.props.selectedPriceTypes.map(pt => pt.priceTypeId.toString())}\r\n description={this.props.appSettings.seatmapTicketTypeFilterInstructions}\r\n allTicketsText={this.props.appSettings.seatmapTicketTypeAllTicketsLabel}\r\n singleFilter={true}\r\n legend={this.props.appSettings.seatmapTicketTypeFilterHeader}\r\n />\r\n </div>\r\n </div>\r\n : null\r\n }\r\n {\r\n this.props.showSpecialSeatingFilter && this.props.showComponent ?\r\n <div className=\"overlay-filter-section overlay-filter-section-last\">\r\n <p className=\"caption-paragraph\">\r\n <button aria-expanded={this.state.openSpecialSeatingFilter} className=\"filter-title\" onClick={this._toggleSpecialSeatingFilter.bind(this)}>\r\n {this.props.appSettings.filterAdditionalSeatingOptionsTitle}\r\n <svg className={\"filters-section-heading-toggles-icon\" + (this.state.openSpecialSeatingFilter ? \" toggled\" : \"\")} aria-hidden=\"true\" dangerouslySetInnerHTML={{ __html: useTag }} />\r\n </button>\r\n </p>\r\n <div hidden={!this.state.openSpecialSeatingFilter}>\r\n <SpecialSeatingFilter onSpecialSeatingToggle={this.props.onSpecialSeatingToggle}\r\n additionalSeatingOptions={this.props.additionalSeatingOptions}\r\n selectedSpecialSeatingIds={this.props.selectedSeatingOptions.map(option => option.id)}\r\n description={this.props.appSettings.seatmapTicketTypeFilterInstructions}\r\n allTicketsText={this.props.appSettings.seatmapTicketTypeAllTicketsLabel}\r\n singleFilter={true}\r\n />\r\n </div>\r\n </div>\r\n : null\r\n }\r\n </>)\r\n }\r\n\r\n\r\n </div>\r\n )\r\n }\r\n}\r\n\r\nexport default FiltersOverlay;","import uniqBy from 'lodash/uniqBy';\r\nimport * as React from 'react';\r\nimport { IAltText } from '../../../classes/alt-text';\r\nimport { Level } from '../../../classes/level';\r\nimport { CartSeat } from '../../../classes/seat';\r\nimport LevelSelectSvg from \"../../../common/level-select/level-select\";\r\nimport { convertStringToNumberList } from '../../../helpers/array-helpers';\r\nimport { getCurrencyFormat } from '../../../helpers/currency-format';\r\nimport { selectVenueLevel, unselectSeat } from '../../actions/seatmap-actions';\r\nimport { formatId } from '../../../helpers/string-format';\r\n\r\n\r\n\r\ndeclare var Modernizr;\r\n\r\ninterface ILevelSelectProps {\r\n\r\n levels: Array<Level>;\r\n currentSeatmapId: string;\r\n cartSeats: Array<CartSeat>;\r\n dispatch: any;\r\n selectedPriceTypeIdsString: string;\r\n levelAvailableCountMessage: string;\r\n\r\n //LevelSelectSvg props\r\n altText: IAltText;\r\n svgStrokeColor: string;\r\n svgStrokeWidth: number;\r\n svgHoverFillColor: string;\r\n svgSelectedFillColor: string;\r\n svgDefaultFillColor: string;\r\n seatmapBackgroundImage: string;\r\n venueBackgroundPaths: Array<string>;\r\n venueSvgHighlightShading: string;\r\n seatmapSvgViewBox: string;\r\n onLevelSelectModalOpen: () => any;\r\n selectedLevelString: string;\r\n legend: string;\r\n\r\n currencyFormat: string;\r\n isExchange: boolean;\r\n exchangeFreeLabel: string;\r\n showLevelAvailabilityOnLevelFilter: boolean;\r\n showPricingOnLevelFilter: boolean;\r\n\r\n displaySeatFee?: boolean;\r\n feeAmountText?: string;\r\n venueLevelRangeFeesNote?: string;\r\n}\r\n\r\nclass LevelSelect extends React.PureComponent<ILevelSelectProps, { hoveredLevel: number, selectedSeatmapId: string, isFlyout: boolean, isCheckbox: boolean }>{\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n hoveredLevel: null,\r\n selectedSeatmapId: '',\r\n isFlyout: false,\r\n isCheckbox: false\r\n };\r\n }\r\n\r\n renderPrice(level: Level, selectedPriceTypeIds: Array<number>) {\r\n let pricesForSelectedPriceType = uniqBy(level.priceTypePrices, pr => { return pr.price });\r\n if (selectedPriceTypeIds.length > 0) {\r\n pricesForSelectedPriceType = uniqBy((level.priceTypePrices.filter(price => selectedPriceTypeIds.indexOf(price.priceTypeId) >= 0)), pr => { return pr.price });\r\n }\r\n\r\n if (pricesForSelectedPriceType.length < 1 || level.availableCount == 0)\r\n return '';\r\n else if (pricesForSelectedPriceType.length == 1)\r\n return (this.props.isExchange && this.props.exchangeFreeLabel.length > 0 && pricesForSelectedPriceType[0].price === 0) ? this.props.exchangeFreeLabel\r\n : getCurrencyFormat(this.props.currencyFormat, pricesForSelectedPriceType[0].price);\r\n else {\r\n const prices = pricesForSelectedPriceType.map(pt => pt.price);\r\n var sorted = prices.sort((a, b) => { return a - b; });\r\n var min = getCurrencyFormat(this.props.currencyFormat, sorted[0]);\r\n var max = getCurrencyFormat(this.props.currencyFormat, sorted[prices.length - 1]);\r\n return min + ' \\u2013 ' + max;\r\n\r\n }\r\n }\r\n\r\n render() {\r\n const useTag = '<use xlink:href=\"#icon-close\" />';\r\n return (\r\n <div className=\"map-level-select-container\">\r\n <div className=\"map-level-select-wrapper\" onClick={(evt) => { this._updateLegendFlyoutState(true) }}>\r\n <div className=\"map-level-select-wrapper-inner\">\r\n <div className=\"map-level-select-image\">\r\n <LevelSelectSvg\r\n altText={this.props.altText}\r\n hoveredLevel={this.state.hoveredLevel}\r\n levels={this.props.levels}\r\n onMouseLeaveLevel={this._onMouseLeaveLevel}\r\n onMouseOverLevel={this._onMouseOverLevel}\r\n onSelectVenueLevel={this._onSelectVenueLevel}\r\n venueBackgroundImage={this.props.seatmapBackgroundImage}\r\n selectedLevelsString={this.props.currentSeatmapId.length > 0\r\n ? this.props.levels.filter(lvl => lvl.seatmap.id === this.props.currentSeatmapId)[0].levelNumber.toString()\r\n : \"\"}\r\n svgDefaultFillColor={this.props.svgDefaultFillColor}\r\n svgHoverFillColor={this.props.svgHoverFillColor}\r\n svgSelectedFillColor={this.props.svgSelectedFillColor}\r\n svgStrokeColor={this.props.svgStrokeColor}\r\n svgStrokeWidth={this.props.svgStrokeWidth}\r\n venueSvgHighlightShading={this.props.venueSvgHighlightShading}\r\n venueSvgViewBox={this.props.seatmapSvgViewBox}\r\n venueBackgroundPaths={this.props.venueBackgroundPaths}\r\n svgClass=\"map-level-select-svg\"\r\n />\r\n </div>\r\n\r\n <fieldset>\r\n <legend className=\"visually-hidden\">{this.props.legend}</legend>\r\n <ul className=\"venue-level-list\">\r\n {\r\n this.props.levels.sort((a, b) => { return b.levelNumber - a.levelNumber }).map((level, index) => {\r\n const formattedLevelName = `L${index}_${formatId(level.name)}`;\r\n return <li className={\"venue-level-list-item\" + (!level.disabled && this.state.hoveredLevel === level.levelNumber && !Modernizr.touchevents ? \" active\" : \"\") + (level.disabled ? \" disabled\" : \"\")} key={level.levelNumber}\r\n onMouseOver={() => { !level.disabled ? this._onMouseOverLevel(level.levelNumber) : null }}\r\n onMouseLeave={() => { this._onMouseLeaveLevel() }} data-level-id={level.levelNumber}>\r\n <input id={formattedLevelName} type={this.state.isCheckbox ? \"checkbox\" : \"radio\"}\r\n className={this.state.isCheckbox ? \"checkbox-custom\" : \"radio-custom\"}\r\n disabled={level.disabled}\r\n checked={level.selected || this.props.selectedLevelString.split(',').indexOf(level.levelNumber.toString()) >= 0} value={level.name}\r\n //onChange={() => this._onSelectVenueLevel(level)}\r\n onClick={() => { if (!this.state.isCheckbox) this._onSelectVenueLevel(level) }}\r\n name=\"levels-radios\" />\r\n <label htmlFor={formattedLevelName}>{level.name}</label>\r\n\r\n <div className=\"venue-level-list-item-info\">\r\n {this.props.showPricingOnLevelFilter ?\r\n <>\r\n <p className=\"venue-level-list-item-info-prices\">\r\n {this.renderPrice(level, convertStringToNumberList(this.props.selectedPriceTypeIdsString))}\r\n </p>\r\n {\r\n this.props.displaySeatFee &&\r\n <p className=\"small-italic venue-level-list-item-note\">{this.props.venueLevelRangeFeesNote}</p>\r\n }\r\n </>\r\n : null}\r\n {this.props.showLevelAvailabilityOnLevelFilter && level.availableCount >= 0 ?\r\n <p className=\"venue-level-list-item-info-seats\">\r\n {this.props.levelAvailableCountMessage.replace(\"{0}\", level.availableCount.toString())}\r\n </p>\r\n : null\r\n }\r\n </div>\r\n\r\n </li>\r\n })\r\n }\r\n </ul>\r\n </fieldset>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n }\r\n\r\n _onMouseOverLevel = (level) => {\r\n const newState = {\r\n ...this.state,\r\n hoveredLevel: level\r\n };\r\n\r\n this.setState(newState as any);\r\n };\r\n\r\n _onMouseLeaveLevel = () => {\r\n const newState = {\r\n ...this.state,\r\n hoveredLevel: null\r\n };\r\n\r\n this.setState(newState as any);\r\n };\r\n\r\n _onSelectVenueLevel = (level: Level) => {\r\n const newState = {\r\n ...this.state,\r\n selectedSeatmapId: level.seatmap.id\r\n };\r\n\r\n this.setState(newState as any);\r\n this.props.dispatch(unselectSeat());\r\n this.props.dispatch(selectVenueLevel(level, this.props.cartSeats));\r\n };\r\n\r\n _updateLegendFlyoutState = (flyoutStatus) => {\r\n const newState = {\r\n ...this.state,\r\n isFlyout: flyoutStatus\r\n };\r\n\r\n this.setState(newState as any);\r\n };\r\n}\r\n\r\nexport default LevelSelect;","import * as React from 'react';\r\nimport { Performance } from '../../../classes/performance';\r\nimport { IOption } from '../../../classes/seating-option';\r\nimport { formatId } from '../../../helpers/string-format';\r\nimport { IAppSettingsModel } from '../../../reducers/fetch-settings-reducer';\r\n\r\ninterface IPerformanceSelectProps {\r\n currentPerformanceId: number;\r\n productionPerformances: Array<Performance>;\r\n legend: string;\r\n}\r\n\r\nclass PerformanceSelect extends React.PureComponent<IPerformanceSelectProps, { selectedPerformanceId: number }>{\r\n constructor(props: IPerformanceSelectProps) {\r\n super(props);\r\n this.state = {\r\n selectedPerformanceId: props.currentPerformanceId\r\n };\r\n }\r\n\r\n render() {\r\n return (\r\n <div className=\"map-level-select-container\">\r\n <div className=\"map-level-select-wrapper\" onClick={(evt) => { this._updateLegendFlyoutState(true) }}>\r\n <div className=\"map-level-select-wrapper-inner\">\r\n <fieldset>\r\n <legend className=\"visually-hidden\">{this.props.legend}</legend>\r\n <ul>\r\n {\r\n this.props.productionPerformances.map(performance => {\r\n const validId = `r_${formatId(performance.id.toString())}`;\r\n return <li key={performance.id} className=\"form-item\">\r\n <input type=\"radio\" name=\"performance\" value={performance.id} id={validId}\r\n onClick={this._onPerformanceSelect.bind(this)}\r\n defaultChecked={this.state.selectedPerformanceId === performance.id}\r\n />\r\n <label htmlFor={validId}>{performance.dateString}</label>\r\n\r\n <div className=\"venue-level-list-item-info\">\r\n\r\n <p className=\"venue-level-list-item-info-prices\">\r\n {performance.timeString}\r\n </p>\r\n\r\n {\r\n performance.performanceNote ?\r\n <p className=\"venue-level-list-item-info-seats\">\r\n {performance.performanceNote}\r\n </p>\r\n : null\r\n }\r\n </div>\r\n\r\n\r\n </li>\r\n }, this)\r\n }\r\n </ul>\r\n </fieldset>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n }\r\n\r\n /**\r\n * When a new radio button is selected, update the state appropriately.\r\n */\r\n _onPerformanceSelect = (element) => {\r\n const performanceId = element.currentTarget.value;\r\n this.setState({\r\n selectedPerformanceId: performanceId\r\n });\r\n\r\n const newQuery = `itemNumber=${performanceId}`\r\n\r\n if (performanceId !== undefined) {\r\n window.location.search = newQuery;\r\n }\r\n };\r\n\r\n _updateLegendFlyoutState = (flyoutStatus) => {\r\n const newState = {\r\n ...this.state,\r\n isFlyout: flyoutStatus\r\n };\r\n\r\n this.setState(newState as any);\r\n };\r\n}\r\n\r\nexport default PerformanceSelect;","import * as React from 'react';\r\nimport { PriceType } from \"../../../classes/price-type\"\r\nimport Toggle from \"../../../common/toggle/toggle\"\r\nimport CheckboxGroup from \"../../../common/checkbox/checkbox-group\"\r\nimport { SeatingOption, IOptionGroup, IOption } from '../../../classes/seating-option';\r\nimport { sortPriceTypes } from '../../../helpers/price-type-helpers';\r\nimport isEqual from 'react-fast-compare';\r\n\r\ninterface IPriceTypeFilterProps {\r\n priceTypes: Array<PriceType>\r\n onPriceTypeToggle: (selectedOptions: IOption[]) => void;\r\n selectedPriceTypeIds: Array<string>;\r\n description: string;\r\n allTicketsText: string;\r\n singleFilter: boolean;\r\n legend: string;\r\n}\r\n\r\nexport default class PriceTypeFilter extends React.Component<IPriceTypeFilterProps, {}> {\r\n constructor(props: IPriceTypeFilterProps) {\r\n super(props);\r\n }\r\n\r\n getSortedPriceTypes(pts: Array<PriceType>) {\r\n return sortPriceTypes(pts);\r\n }\r\n\r\n shouldComponentUpdate(nextProps: IPriceTypeFilterProps) {\r\n return this.props.description != nextProps.description\r\n || this.props.allTicketsText != nextProps.allTicketsText\r\n || !isEqual(\r\n { priceTypes: this.props.priceTypes, selectedPriceTypeIds: this.props.selectedPriceTypeIds },\r\n { priceTypes: nextProps.priceTypes, selectedPriceTypeIds: nextProps.selectedPriceTypeIds });\r\n }\r\n\r\n render() {\r\n const priceTypeOptions = this.getSortedPriceTypes(this.props.priceTypes).map(priceType => {\r\n let opt: IOption = {\r\n id: priceType.priceTypeId.toString(),\r\n name: priceType.title,\r\n selected: this.props.selectedPriceTypeIds.indexOf(priceType.priceTypeId.toString()) >= 0\r\n };\r\n return opt;\r\n });\r\n\r\n return (\r\n <fieldset className=\"price-type-filter-list\">\r\n <legend className=\"visually-hidden\">{this.props.legend}</legend>\r\n {\r\n <CheckboxGroup group={{\r\n options: priceTypeOptions,\r\n name: \"priceTypeFilter\"\r\n } as IOptionGroup}\r\n allText={this.props.allTicketsText}\r\n showAllOption={this.props.singleFilter}\r\n selectedOptions={priceTypeOptions.filter(option => this.props.selectedPriceTypeIds.indexOf(option.id) >= 0)}\r\n stateChangeFunction={this.props.onPriceTypeToggle} id={null} />\r\n }\r\n </fieldset>\r\n )\r\n }\r\n}","import * as React from 'react';\r\nimport { PriceType } from \"../../../classes/price-type\"\r\nimport Toggle from \"../../../common/toggle/toggle\"\r\nimport CheckboxGroup from \"../../../common/checkbox/checkbox-group\"\r\nimport { SeatingOption, IOptionGroup, IOption, SeatingOptionGroup } from '../../../classes/seating-option';\r\nimport { sortPriceTypes } from '../../../helpers/price-type-helpers';\r\n\r\ninterface IPriceTypeFilterProps {\r\n additionalSeatingOptions: Array<SeatingOptionGroup>;\r\n onSpecialSeatingToggle: (selectedOptions: IOption[]) => void;\r\n selectedSpecialSeatingIds: Array<string>;\r\n description: string;\r\n allTicketsText: string;\r\n singleFilter: boolean;\r\n}\r\n\r\nexport default class SpecialSeatingFilter extends React.PureComponent<IPriceTypeFilterProps, {}> {\r\n\r\n private specialSeatingOptions: Array<IOption>;\r\n\r\n constructor(props: IPriceTypeFilterProps) {\r\n super(props);\r\n\r\n this.specialSeatingOptions = props.additionalSeatingOptions.map(seatingOption => {\r\n let opt: IOption = {\r\n id: seatingOption.id,\r\n name: seatingOption.name,\r\n selected: props.selectedSpecialSeatingIds.indexOf(seatingOption.id) >= 0\r\n };\r\n return opt;\r\n });\r\n }\r\n\r\n render() {\r\n return (\r\n <div className=\"price-type-filter\">\r\n <div className={`price-type-filter-list ${(!this.props.singleFilter ? \"combine-filters\" : \"\")}`}>\r\n {\r\n <CheckboxGroup group={{\r\n options: this.specialSeatingOptions,\r\n name: \"specialSeatingFilter\"\r\n } as IOptionGroup}\r\n allText={this.props.allTicketsText}\r\n showAllOption={this.props.singleFilter}\r\n selectedOptions={this.specialSeatingOptions.filter(option => this.props.selectedSpecialSeatingIds.indexOf(option.id) >= 0)}\r\n stateChangeFunction={this.props.onSpecialSeatingToggle} id={null} />\r\n }\r\n </div>\r\n </div>\r\n )\r\n }\r\n}","import orderBy from 'lodash/orderBy';\r\nimport * as React from 'react';\r\nimport { SeatStyle, SeatStyleCulture } from '../../classes/seat';\r\nimport { Html } from '../../helpers/html-helpers';\r\nimport { formatString } from '../../helpers/string-format';\r\n\r\n\r\n\r\ninterface ILegendProps {\r\n seatStyles: Array<SeatStyle>;\r\n seatStyleCultures: Array<SeatStyleCulture>;\r\n legendTitle: string;\r\n legendModalText: string;\r\n legendTitleAltText: string;\r\n selectedSeats: boolean;\r\n legendFlyOut: boolean;\r\n updateLegendFlyout: (updateFlyout: boolean) => void;\r\n isMobile: boolean;\r\n renderModal: boolean;\r\n}\r\n\r\ninterface ILegendState {\r\n firstTimeHidden: boolean; //used to keep track so we only close the legend once so if users want to use the legend on mobile, they can open it again\r\n}\r\n\r\nclass LegendContent extends React.PureComponent<ILegendProps, ILegendState>{\r\n\r\n render() {\r\n const culturesWithDisplayName = this.props.seatStyleCultures.filter(culture => culture.displayName != null);\r\n\r\n const visibleStyles = orderBy(this.props.seatStyles.filter(style => { return culturesWithDisplayName.some(culture => culture.seatStyleId === style.id) }),\r\n (style) => {\r\n return culturesWithDisplayName.filter(cultur => cultur.seatStyleId == style.id)[0].legendOrder;\r\n });\r\n\r\n let legendFilters =\r\n orderBy(visibleStyles.filter(style => culturesWithDisplayName.filter(cultur => cultur.seatStyleId == style.id)[0].showOnCollapsedLegend),\r\n (style) => {\r\n return culturesWithDisplayName.filter(cultur => cultur.seatStyleId == style.id)[0].legendOrder;\r\n }\r\n ).map(style => {\r\n return <div key={style.id} className=\"legend-default-icon\" style={{ backgroundColor: style.svgDefaultFill }}></div>;\r\n });\r\n\r\n if (legendFilters.length > 3) {\r\n legendFilters = legendFilters.filter((value, index) => index < 3);\r\n }\r\n\r\n return (\r\n <div className=\"legend-wrapper\">\r\n <button type=\"button\" className=\"legend-wrapper-button\" onClick={(evt) => { this.props.updateLegendFlyout(true) }}>\r\n {/*todo make this more dynamic */}\r\n <span className=\"visually-hidden\">Open Legend</span>\r\n <div className={this.props.renderModal ? \"legend-default-modal\" : \"legend-default\"}>\r\n <div className={this.props.renderModal ? \"legend-default-modal-dots\" : \"legend-default-dots\"}>\r\n {\r\n legendFilters\r\n }\r\n </div>\r\n <p role=\"presentation\">{this.props.legendTitle}</p>\r\n </div>\r\n </button>\r\n <div className=\"legend-content\">\r\n <ul className=\"legend-list\">\r\n {visibleStyles.map(style => {\r\n return <li key={style.id} className=\"legend-list-item\">\r\n <svg width=\"30px\" className=\"legend-list-item-icon\" viewBox={style.seatStyleSvgPath != null && style.seatStyleSvgPath.length > 0\r\n ? style.svgViewBox : \"0 0 30 30\"} role=\"presentation\">\r\n {style.seatStyleSvgPath != null && style.seatStyleSvgPath.length > 0 ?\r\n <path d={style.seatStyleSvgPath} fill={style.svgDefaultFill} stroke={style.svgStrokeColor} strokeWidth={style.svgStrokeWidth}></path>\r\n :\r\n <circle r=\"15\" cx=\"15\" cy=\"15\" fill={style.svgDefaultFill} stroke={style.svgStrokeColor} strokeWidth={style.svgDefaultFill != style.svgStrokeColor ? style.svgStrokeWidth : \"0\"}></circle>\r\n }\r\n </svg>\r\n <span className=\"legend-list-item-name\">{culturesWithDisplayName.filter(culture => culture.seatStyleId == style.id)[0].displayName}</span>\r\n </li>\r\n })}\r\n </ul>\r\n </div>\r\n\r\n {this.props.renderModal ? Html.renderDiv(this.props.legendModalText, \"legend-modal-text\") : null}\r\n\r\n </div>\r\n );\r\n }\r\n}\r\n\r\nexport default LegendContent;","import orderBy from 'lodash/orderBy';\r\nimport React from 'react';\r\nimport { SeatStyle, SeatStyleCulture } from '../../classes/seat';\r\nimport LegendContent from './legend-content';\r\nimport { A11yDialog } from 'react-a11y-dialog';\r\nimport A11yDialogInstance from 'a11y-dialog';\r\n\r\ninterface ILegendProps {\r\n seatStyles: Array<SeatStyle>;\r\n seatStyleCultures: Array<SeatStyleCulture>;\r\n legendTitle: string;\r\n legendModalText: string;\r\n legendTitleAltText: string;\r\n selectedSeats: boolean;\r\n legendFlyOut: boolean;\r\n updateLegendFlyout: (updateFlyout: boolean) => void;\r\n isMobile: boolean;\r\n}\r\ninterface ILegendState {\r\n firstTimeHidden: boolean; //used to keep track so we only close the legend once so if users want to use the legend on mobile, they can open it again\r\n}\r\n\r\nclass LegendModal extends React.PureComponent<ILegendProps, ILegendState>{\r\n constructor(props) {\r\n super(props);\r\n this.state = { firstTimeHidden: false };\r\n }\r\n\r\n componentWillReceiveProps(nextProps: ILegendProps) {\r\n if (!this.state.firstTimeHidden && nextProps.isMobile && nextProps.selectedSeats) {\r\n if (this.props.legendFlyOut) {\r\n nextProps.updateLegendFlyout(false);\r\n }\r\n\r\n this.setState({ firstTimeHidden: true });\r\n }\r\n }\r\n\r\n\r\n render() {\r\n const modalClasses = {\r\n container: 'legend-container-modal open', overlay: 'legend-modal', dialog: 'legend-modal-inner', title: 'legend-modal-header', closeButton: 'legend-modal-close-icon'\r\n };\r\n\r\n if (this.props.legendFlyOut) {\r\n return (\r\n <>\r\n <A11yDialog\r\n id=\"legend_modal\"\r\n title={<h2>{this.props.legendTitle}</h2>}\r\n dialogRef={instance => this.handleModalInstance(instance, this.props.updateLegendFlyout)}\r\n classNames={modalClasses}\r\n closeButtonContent={<svg className=\"legend-modal-close-icon\"><use xlinkHref=\"#icon-close\" /></svg>}\r\n closeButtonLabel={'close'}\r\n >\r\n <LegendContent {...this.props} renderModal={true} />\r\n\r\n </A11yDialog>\r\n {this.getLegendButton()}\r\n </>\r\n )\r\n }\r\n else {\r\n return (this.getLegendButton())\r\n }\r\n }\r\n\r\n getLegendButton() {\r\n return (\r\n <button className=\"legend-container-modal\" onClick={(evt) => { this.openLegendModal(); }}>\r\n <span className=\"visually-hidden\">Open Legend</span>\r\n <div className=\"legend-trigger-modal\" >\r\n <div className=\"legend-default-modal-dots\">\r\n {\r\n this.getLegendFilters()\r\n }\r\n </div>\r\n <p>{this.props.legendTitle}</p>\r\n </div>\r\n </button>\r\n );\r\n }\r\n\r\n\r\n handleModalInstance(instance: A11yDialogInstance, updateLegendFlyout: (updateFlyout: boolean) => void) {\r\n instance?.show();\r\n instance?.on('hide', () => updateLegendFlyout(false));\r\n }\r\n\r\n openLegendModal() {\r\n this.props.updateLegendFlyout(true);\r\n }\r\n\r\n public getLegendFilters() {\r\n const culturesWithDisplayName = this.props.seatStyleCultures.filter(culture => culture.displayName != null);\r\n\r\n const visibleStyles = orderBy(this.props.seatStyles.filter(style => { return culturesWithDisplayName.some(culture => culture.seatStyleId === style.id) }),\r\n (style) => {\r\n return culturesWithDisplayName.filter(cultur => cultur.seatStyleId == style.id)[0].legendOrder;\r\n });\r\n\r\n let legendFilters =\r\n orderBy(visibleStyles.filter(style => culturesWithDisplayName.filter(cultur => cultur.seatStyleId == style.id)[0].showOnCollapsedLegend),\r\n (style) => {\r\n return culturesWithDisplayName.filter(cultur => cultur.seatStyleId == style.id)[0].legendOrder;\r\n }\r\n ).map(style => {\r\n return <div key={style.id} className=\"legend-default-modal-icon\" style={{ backgroundColor: style.svgDefaultFill }}></div>;\r\n });\r\n\r\n if (legendFilters.length > 3) {\r\n legendFilters = legendFilters.filter((value, index) => index < 3);\r\n }\r\n return legendFilters;\r\n }\r\n}\r\n\r\nexport default LegendModal;","import orderBy from 'lodash/orderBy';\r\nimport * as React from 'react';\r\nimport { SeatStyle, SeatStyleCulture } from '../../classes/seat';\r\nimport LegendContent from './legend-content';\r\n\r\ninterface ILegendProps {\r\n seatStyles: Array<SeatStyle>;\r\n seatStyleCultures: Array<SeatStyleCulture>;\r\n legendTitle: string;\r\n legendModalText: string;\r\n legendTitleAltText: string;\r\n selectedSeats: boolean;\r\n legendFlyOut: boolean;\r\n updateLegendFlyout: (updateFlyout: boolean) => void;\r\n isMobile: boolean;\r\n}\r\n\r\ninterface ILegendState {\r\n firstTimeHidden: boolean; //used to keep track so we only close the legend once so if users want to use the legend on mobile, they can open it again\r\n}\r\n\r\nclass Legend extends React.PureComponent<ILegendProps, ILegendState>{\r\n\r\n constructor(props) {\r\n super(props);\r\n this.state = { firstTimeHidden: false };\r\n }\r\n componentWillReceiveProps(nextProps: ILegendProps) {\r\n\r\n if (!this.state.firstTimeHidden && nextProps.isMobile && nextProps.selectedSeats) {\r\n if (this.props.legendFlyOut) {\r\n nextProps.updateLegendFlyout(false);\r\n }\r\n\r\n this.setState({ firstTimeHidden: true });\r\n }\r\n }\r\n\r\n render() {\r\n const arrowIcon = '<use xlink:href=\"#icon-arrow-down\" />';\r\n const useTag = '<use xlink:href=\"#icon-close\" />';\r\n\r\n const culturesWithDisplayName = this.props.seatStyleCultures.filter(culture => culture.displayName != null);\r\n\r\n const visibleStyles = orderBy(this.props.seatStyles.filter(style => { return culturesWithDisplayName.some(culture => culture.seatStyleId === style.id) }),\r\n (style) => {\r\n return culturesWithDisplayName.filter(cultur => cultur.seatStyleId == style.id)[0].legendOrder;\r\n });\r\n\r\n return (\r\n <div className={\"legend-container\" + (this.props.legendFlyOut ? \" open\" : \"\")}>\r\n <button onClick={(evt) => { this.props.updateLegendFlyout(false) }} type=\"button\" className=\"legend-close-icon\">\r\n {/*todo make this more dynamic */}\r\n <span className=\"visually-hidden\">Close Legend</span>\r\n <svg dangerouslySetInnerHTML={{ __html: useTag }} />\r\n </button>\r\n\r\n <LegendContent {...this.props} renderModal={false} />\r\n\r\n {\r\n !this.props.legendFlyOut ?\r\n <div className=\"legend-arrow-icon\" onClick={(evt) => { this.props.updateLegendFlyout(true) }}>\r\n <svg className={\"legend-arrow-icon-svg\"} dangerouslySetInnerHTML={{ __html: arrowIcon }} />\r\n </div>\r\n : null\r\n }\r\n </div>\r\n );\r\n }\r\n}\r\n\r\nexport default Legend;","import * as React from 'react';\r\nimport { getFocusableChildren, bindKeypress } from '../../helpers/window-helpers';\r\nimport Modal, { IModalProps } from '../../common/modal/modal';\r\nimport VenueLevelListFilter from '../../filter/components/venue-level-filter';\r\nimport { Level } from '../../classes/level';\r\nimport { IAppSettingsModel } from '../../reducers/fetch-settings-reducer';\r\nimport { unselectSeat, selectVenueLevel } from '../actions/seatmap-actions';\r\nimport { CartSeat } from '../../classes/seat';\r\n\r\nexport interface ILevelSelectionModalProps extends IModalProps {\r\n currentSeatmapId: string;\r\n venueLevels: Array<Level>;\r\n dispatch: any;\r\n selectedPriceTypeIdsString: string;\r\n appSettings: IAppSettingsModel;\r\n cartSeats: Array<CartSeat>;\r\n levelHeading: string;\r\n}\r\n\r\nclass LevelSelectionModal extends Modal<ILevelSelectionModalProps> {\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n renderModalContent() {\r\n const useTagClose = '<use xlink:href=\"#icon-close\" />';\r\n\r\n return (\r\n <section role=\"dialog\" aria-labelledby=\"modal-title\" className=\"modal-container\" id=\"modal-container\">\r\n <div role=\"document\">\r\n\r\n <div className=\"modal-content\">\r\n <div>\r\n <svg className=\"seat-info-views-icon\" onClick={this._onCloseModal.bind(this)} dangerouslySetInnerHTML={{ __html: useTagClose }} />\r\n </div>\r\n <VenueLevelListFilter levels={this.props.venueLevels}\r\n {...this.props.appSettings}\r\n levelsHeading={this.props.levelHeading}\r\n clearButton=\"\"\r\n dispatch={this.props.dispatch}\r\n onSelectLevel={this._onSelectVenueLevel}\r\n onResetLevels={this._onResetVenueLevel}\r\n selectedLevelString={this.props.currentSeatmapId.length > 0\r\n ? this.props.venueLevels.filter(lvl => lvl.seatmap.id === this.props.currentSeatmapId)[0].levelNumber.toString()\r\n : \"\"}\r\n selectedPriceTypeIdsString={this.props.selectedPriceTypeIdsString}\r\n showComponent={true}\r\n isCheckbox={false}\r\n />\r\n </div>\r\n </div>\r\n </section>\r\n );\r\n }\r\n\r\n _onCloseModal = () => {\r\n this.props.closeFunction();\r\n }\r\n\r\n _onSelectVenueLevel = (level: Level) => {\r\n this.props.dispatch(unselectSeat());\r\n this.props.dispatch(selectVenueLevel(level, this.props.cartSeats));\r\n }\r\n _onResetVenueLevel() {\r\n }\r\n}\r\n\r\nexport default LevelSelectionModal;","import * as React from 'react';\r\nimport isEqual from 'react-fast-compare';\r\nimport { PriceType } from '../../classes/price-type';\r\nimport { CartSeat, Seat } from '../../classes/seat';\r\nimport { IPriceRangeModel } from '../../filter/reducers/filter-reducers';\r\nimport isMobile from '../../helpers/is-mobile';\r\nimport { IAppSettingsModel } from '../../reducers/fetch-settings-reducer';\r\nimport SeatHover from '../components/seat-hover';\r\nimport { ISeatMapModel } from '../reducers/seatmap-reducer';\r\nimport { hoverSeatCoordinates } from '../actions/seatmap-actions';\r\n\r\nlet count = 0;\r\n\r\ninterface IMapProps {\r\n appSettings: IAppSettingsModel;\r\n seatMapModel: ISeatMapModel;\r\n dispatch: any;\r\n cartSeats: Array<CartSeat>;\r\n selectedPriceTypeFilter: Array<PriceType>;\r\n mapDragging: boolean;\r\n}\r\n\r\ninterface IMapState {\r\n isChrome: boolean\r\n}\r\n\r\nclass SvgMapHover extends React.Component<IMapProps, IMapState>{\r\n svgMap: any;\r\n transformLayer: any;\r\n\r\n constructor(props: IMapProps) {\r\n super(props);\r\n var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);\r\n\r\n this.state = {\r\n isChrome: isChrome\r\n };\r\n }\r\n\r\n private _mouseOutSeat = () => {\r\n this.props.dispatch(hoverSeatCoordinates(null, null, []));\r\n }\r\n\r\n shouldComponentUpdate(nextProps: IMapProps, nextState: IMapState) {\r\n return !nextProps.mapDragging &&\r\n this.props.selectedPriceTypeFilter.length !== nextProps.selectedPriceTypeFilter.length\r\n || this.props.cartSeats.length !== nextProps.cartSeats.length\r\n || (this.props.seatMapModel.seatsHovered.length == 0 || nextProps.seatMapModel.seatsHovered.length == 0 ? true\r\n : this.props.seatMapModel.seatsHovered[0].seatId !== nextProps.seatMapModel.seatsHovered[0].seatId)\r\n || !isEqual(this.props, nextProps);\r\n }\r\n\r\n render() {\r\n const seats = this.props.seatMapModel.seatsHovered;\r\n const seatSection = (seats.length > 0 ? this.props.appSettings.useZoneDescription && seats[0].zoneDescription !== null ? seats[0].zoneDescription : seats[0].tessituraSeat.sectionDescription : '').replace(/\\s/g, '');\r\n const seatInfo = (seats.length > 1 ? this.props.appSettings.groupSeatCartItemText.replace(\"{0}\", \"\").replace(\"{1}\", seatSection) : `${seats[0].tessituraSeat.rowText}-${seats[0].tessituraSeat.numberText}`).replace(/\\s/g, '');\r\n const ariaLabelId = `${seatSection}_${seatInfo}`;\r\n return (\r\n <svg className=\"hover-map-svg\" viewBox=\"0 0 260 220\" aria-labelledby={ariaLabelId}>\r\n <g>\r\n {\r\n !this.props.appSettings.disableSeatHover && !isMobile() ?\r\n <SeatHover\r\n ariaLabelId={ariaLabelId}\r\n mouseOutHover={this._mouseOutSeat.bind(this)}\r\n isChrome={this.state.isChrome}\r\n showHover={!this.props.mapDragging && this.props.seatMapModel.seatHoverX !== null && this.props.seatMapModel.seatHoverY !== null}\r\n xPosition={this.props.seatMapModel.seatHoverX} yPosition={this.props.seatMapModel.seatHoverY} appSettingsModel={this.props.appSettings} levelPricing={this.props.seatMapModel.allSeatPricing}\r\n selectedPriceTypes={this.props.selectedPriceTypeFilter} cartSeats={this.props.cartSeats} seats={this.props.seatMapModel.seatsHovered} dispatch={this.props.dispatch} />\r\n : null\r\n }\r\n </g>\r\n\r\n </svg>\r\n );\r\n }\r\n\r\n\r\n}\r\n\r\nexport default SvgMapHover;","import { event, select, selectAll } from 'd3-selection';\r\nimport { timer } from 'd3-timer';\r\nimport { zoom } from 'd3-zoom';\r\nimport * as React from 'react';\r\nimport isEqual from 'react-fast-compare';\r\nimport { resetflexTicketsThreshold, resetmaxTicketsThreshold } from '../../cart/actions/cart-actions';\r\nimport { ItemType } from '../../classes/item-type';\r\nimport { PriceType } from '../../classes/price-type';\r\nimport { CartSeat, Seat } from '../../classes/seat';\r\nimport { SeatingOptionGroup } from '../../classes/seating-option';\r\nimport { IPriceRangeModel } from '../../filter/reducers/filter-reducers';\r\nimport { CartHelpers } from '../../helpers/cart-helpers';\r\nimport isMobile, { isPhone } from '../../helpers/is-mobile';\r\nimport { IAppSettingsModel } from '../../reducers/fetch-settings-reducer';\r\nimport { closeSeatmapCart, closeSeatmapFilters } from '../../seatmap/actions/seatmap-actions';\r\nimport { selectGroupedSeats, selectSeat, selectSingleClickSeat, userChangedZoom } from '../actions/seatmap-actions';\r\nimport { isSingleClick } from '../helpers/seatmap-helpers';\r\nimport { ISeatMapModel } from '../reducers/seatmap-reducer';\r\nimport BackgroundPaths from './background-paths';\r\nimport SeatPaths from './seat-paths';\r\n\r\ninterface IMapProps {\r\n appSettings: IAppSettingsModel;\r\n backgroundPaths: Array<string>;\r\n seatMapModel: ISeatMapModel;\r\n seats: Array<Seat>;\r\n selectedSeats: Array<Seat>;\r\n backgroundImageElement: string;\r\n dispatch: any;\r\n cartSeats: Array<CartSeat>;\r\n priceRangeModel: IPriceRangeModel;\r\n selectedPriceTypeFilter: Array<PriceType>;\r\n selectedSpecialSeatingFilter: Array<SeatingOptionGroup>;\r\n mapStartDragging: () => void;\r\n mapEndDragging: () => void;\r\n mapDragging: boolean;\r\n hoveredSeatId: string;\r\n isSeatmapView: boolean;\r\n\r\n overlayOpen: boolean;\r\n filterPanelOpen: boolean;\r\n showChangeLevelButton: boolean;\r\n onChangeLevelClick: () => any;\r\n onNoSelectedPricesForSeatClick: () => any;\r\n mouseOverSeat: (seats: Array<Seat>, xPos: number, yPos: number) => void;\r\n mouseOutSeat: () => void;\r\n}\r\n\r\ninterface IMapState {\r\n mapScale: number,\r\n mapScaleSensitivity: number,\r\n mapMaxZoom: number,\r\n mapTranslateX: number,\r\n mapTranslateY: number,\r\n d3Bound: boolean,\r\n firstShift: boolean,\r\n isChrome: boolean\r\n}\r\n\r\nclass SvgMap extends React.Component<IMapProps, IMapState>{\r\n svgMap: any;\r\n transformLayer: any;\r\n\r\n constructor(props: IMapProps) {\r\n super(props);\r\n var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);\r\n\r\n this.state = {\r\n mapScale: window.innerWidth > 770 ? props.appSettings.mapScale\r\n : (props.seatMapModel.currentZoom !== null ? props.seatMapModel.currentZoom : 1),\r\n mapScaleSensitivity: props.appSettings.mapScaleSensitivity,\r\n mapMaxZoom: window.innerWidth > 770 ? props.appSettings.mapMaxZoom : 6,\r\n mapTranslateX: 0,\r\n mapTranslateY: 0,\r\n d3Bound: false,\r\n firstShift: false,\r\n isChrome: isChrome\r\n };\r\n }\r\n\r\n shouldComponentUpdate(nextProps: IMapProps, nextState: IMapState) {\r\n return !nextProps.mapDragging &&\r\n this.props.hoveredSeatId !== nextProps.hoveredSeatId\r\n || this.props.priceRangeModel.minPrice !== nextProps.priceRangeModel.minPrice\r\n || this.props.selectedPriceTypeFilter.length !== nextProps.selectedPriceTypeFilter.length\r\n || this.props.selectedSpecialSeatingFilter.length !== nextProps.selectedSpecialSeatingFilter.length\r\n || (this.props.selectedSeats.length == 0 || nextProps.selectedSeats.length == 0 ? false\r\n : this.props.selectedSeats[0].seatId !== nextProps.selectedSeats[0].seatId)\r\n || this.props.priceRangeModel.maxPrice !== nextProps.priceRangeModel.maxPrice\r\n || this.props.backgroundPaths.length !== nextProps.backgroundPaths.length\r\n || this.props.seats.length !== nextProps.seats.length\r\n //|| (this.props.selectedSeats.length == 0 ? (nextProps.selectedSeats.length > 0 ? true : false)\r\n // : (nextProps.selectedSeats.length > 0 ? this.props.selectedSeats[0].seatId !== nextProps.selectedSeats[0].seatId : true))\r\n || this.props.cartSeats.length !== nextProps.cartSeats.length\r\n || this.state.mapScale !== nextState.mapScale\r\n || this.props.seatMapModel.levelBackgroundPaths.length !== nextProps.seatMapModel.levelBackgroundPaths.length\r\n || (this.props.seatMapModel.seatsHovered.length == 0 || nextProps.seatMapModel.seatsHovered.length == 0 ? true\r\n : this.props.seatMapModel.seatsHovered[0].seatId !== nextProps.seatMapModel.seatsHovered[0].seatId)\r\n || this.props.seatMapModel.loadedExchangePricing !== nextProps.seatMapModel.loadedExchangePricing\r\n || !isEqual(this.props, nextProps);\r\n }\r\n\r\n _closeFiltersTouch = () => {\r\n console.log('touch');\r\n this.props.dispatch(closeSeatmapFilters(false));\r\n this.props.dispatch(closeSeatmapCart(false));\r\n }\r\n\r\n _closeFiltersClick = () => {\r\n console.log('click');\r\n //this.props.dispatch(closeSeatmapFilters(false));\r\n //this.props.dispatch(closeSeatmapCart(false));\r\n }\r\n\r\n render() {\r\n const useTagPlus = '<use xlink:href=\"#icon-plus\" />';\r\n const useTagMinus = '<use xlink:href=\"#icon-minus\" />';\r\n\r\n const levelMatch = this.props.appSettings.venueLevels.filter(level => level.id === this.props.seatMapModel.levelId);\r\n const levelName = levelMatch && levelMatch.length > 0 ? levelMatch[0].name : \"\";\r\n //const svgTitleText = formatString(this.props.appSettings.altText !== null ? this.props.appSettings.altText.seatMap : '', [levelName]);\r\n\r\n let mapViewBox = \"0 0 1900 1200\";\r\n\r\n if (isMobile()) {\r\n\r\n if (isPhone() && this.props.seatMapModel.mobileSeatMapViewBox != null) {\r\n mapViewBox = this.props.seatMapModel.mobileSeatMapViewBox;\r\n } else if (this.props.seatMapModel.tabletSeatMapViewBox != null) {\r\n // iPad size\r\n mapViewBox = this.props.seatMapModel.tabletSeatMapViewBox;\r\n }\r\n }\r\n return (\r\n <div className=\"seatmap-content-map-inner\">\r\n <div className=\"seatmap-header\">\r\n {\r\n (this.props.appSettings.performanceDateString !== null || this.props.appSettings.venueName.length > 0) ?\r\n <p className=\"caption-paragraph\">\r\n {\r\n this.props.appSettings.performanceDateString !== null\r\n && (this.props.appSettings.itemType === ItemType.Performance\r\n || this.props.appSettings.itemType === ItemType.Flex\r\n || this.props.appSettings.itemType === ItemType.Exchange) ?\r\n <span className=\"seatmap-header-date\">{this.props.appSettings.performanceDateString}, </span>\r\n : null\r\n }\r\n {\r\n this.props.appSettings.performanceTimeString !== null\r\n && (this.props.appSettings.itemType === ItemType.Performance\r\n || this.props.appSettings.itemType === ItemType.Flex\r\n || this.props.appSettings.itemType === ItemType.Exchange) ?\r\n <span className=\"seatmap-header-time\">{this.props.appSettings.performanceTimeString}, </span>\r\n : null\r\n }\r\n {\r\n this.props.appSettings.itemType === ItemType.Super ?\r\n <span className=\"header-performance-venue\">{this.props.appSettings.packageProgressMessage}</span>\r\n :\r\n this.props.appSettings.venueName.length >= 0 ?\r\n <span className=\"seatmap-header-venue\">{this.props.appSettings.venueName}</span>\r\n :\r\n null\r\n }\r\n </p>\r\n : null\r\n }\r\n\r\n <div className=\"seatmap-header-level\">\r\n {\r\n this.props.seatMapModel.levelId.length > 0 ?\r\n <p className=\"caption-paragraph seatmap-header-level-name\">\r\n { levelName }\r\n </p>\r\n : null}\r\n\r\n {\r\n (this.props.appSettings.changeLevelsButtonText.length > 0 && this.props.seatMapModel.levelId.length > 0 && this.props.showChangeLevelButton) ?\r\n <button type=\"button\" className=\"filters-section-heading-btn\" onClick={this.props.onChangeLevelClick.bind(this)} disabled={this.props.filterPanelOpen}>\r\n {this.props.appSettings.changeLevelsButtonText}<span className=\"visually-hidden\"> {this.props.appSettings.venueLevels.filter(lvl => lvl.id === this.props.seatMapModel.levelId)[0].name}</span>\r\n </button>\r\n : null\r\n }\r\n </div>\r\n </div>\r\n\r\n <div className=\"map-container\" id=\"mapContainer\" >\r\n <svg id=\"mapSvg\" className=\"map-svg\" viewBox={mapViewBox} preserveAspectRatio=\"xMidYMin slice\" aria-label={levelName}>\r\n <g id=\"transformG\">\r\n {/* need to delete onces all images have been switched out*/}\r\n <g id=\"svgImage\" dangerouslySetInnerHTML={{ __html: this.props.backgroundImageElement }}>\r\n </g>\r\n <BackgroundPaths\r\n paths={this.props.backgroundPaths}\r\n seatmapBackgroundPathFill={this.props.appSettings.seatmapBackgroundPathFill}\r\n seatmapBackgroundPathStroke={this.props.appSettings.seatmapBackgroundPathStroke} />\r\n <SeatPaths\r\n usingForceMultipleSeats={this.props.appSettings.forcePatronsReserveInMultiples > 0}\r\n dispatch={this.props.dispatch}\r\n seats={this.props.seats}\r\n seatStyles={this.props.seatMapModel.seatStyles}\r\n selectedSeats={this.props.selectedSeats}\r\n levelPricing={this.props.seatMapModel.allSeatPricing}\r\n selectedPriceTypes={this.props.selectedPriceTypeFilter}\r\n selectedSpecialSeatingFilter={this.props.selectedSpecialSeatingFilter}\r\n cartSeats={this.props.cartSeats}\r\n priceRangeModel={this.props.priceRangeModel}\r\n mapDragging={this.props.mapDragging}\r\n hoveredSeatId={this.props.hoveredSeatId}\r\n mouseOutSeat={this.props.mouseOutSeat}\r\n mouseOverSeat={this.props.mouseOverSeat}\r\n isChrome={this.state.isChrome}\r\n isExchange={this.props.appSettings.exchangeTickets.length > 0}\r\n loadedExchangePricing={this.props.seatMapModel.loadedExchangePricing}\r\n />\r\n </g>\r\n </svg>\r\n </div>\r\n <div className={\"zoom-container \" + (this.props.appSettings.showZoomControlRight ? \"align-right\" : \"align-center\")}>\r\n <button className={\"zoom-item\" + (this.state.mapScale <= .5 ? \" disabled\" : \"\")} onClick={this._minusZoomMap.bind(this)} >\r\n {/*TODO: hardcoded text*/}\r\n <span className=\"visually-hidden\">Zoom Out on the Seatmap</span>\r\n <svg className=\"zoom-icon-minus\" dangerouslySetInnerHTML={{ __html: useTagMinus }} />\r\n </button>\r\n <button className={\"zoom-item\" + (this.state.mapScale >= this.state.mapMaxZoom ? \" disabled\" : \"\")} onClick={this._plusZoomMap.bind(this)}>\r\n {/*TODO: hardcoded text*/}\r\n <span className=\"visually-hidden\">Zoom In on the Seatmap</span>\r\n <svg className=\"zoom-icon-plus\" dangerouslySetInnerHTML={{ __html: useTagPlus }} />\r\n </button>\r\n </div>\r\n </div>\r\n );\r\n }\r\n\r\n\r\n\r\n _minusZoomMap() {\r\n if (this.state.mapScale > .5) {\r\n const newScale = this.state.mapScale - this.state.mapScaleSensitivity;\r\n const newState = {\r\n ...this.state,\r\n mapScale: newScale\r\n };\r\n\r\n this.setState(newState as any);\r\n this.props.dispatch(userChangedZoom(newScale, true));\r\n\r\n var mapZoom = zoom();\r\n this.svgMap.call(mapZoom.scaleExtent([1, 8])\r\n .on(\"zoom\", this.zoomed.bind(this)));;\r\n this.svgMap.call(mapZoom.scaleTo, newScale);\r\n }\r\n }\r\n\r\n _plusZoomMap() {\r\n if (this.state.mapScale < this.state.mapMaxZoom) {\r\n const newScale = this.state.mapScale + this.state.mapScaleSensitivity;\r\n const newState = {\r\n ...this.state,\r\n mapScale: newScale\r\n };\r\n\r\n this.setState(newState as any);\r\n this.props.dispatch(userChangedZoom(newScale, true));\r\n var mapZoom = zoom();\r\n this.svgMap.call(mapZoom.scaleExtent([1, 8])\r\n .on(\"zoom\", this.zoomed.bind(this)));;\r\n this.svgMap.call(mapZoom.scaleTo, newScale);\r\n }\r\n }\r\n\r\n _mouseZoomMap(event) {\r\n event.preventDefault();\r\n event.deltaY < 0 || event.deltaX < 0 ? this._plusZoomMap() : this._minusZoomMap();\r\n }\r\n\r\n componentDidMount() {\r\n this._initialize(this.props);\r\n\r\n //var mapSvg = document.getElementsByClassName(\"map-svg\")[0];\r\n //var seatSvg = mapSvg.querySelector(`.seat-path-js`);\r\n\r\n //if (this.state.allSeats.length === 0) {\r\n // let newState = { ...this.state } as IMapState;\r\n // newState.allSeats = this.props.seats;\r\n // this.setState(newState as any);\r\n //}\r\n }\r\n\r\n _initialize(nextProps: IMapProps) {\r\n //let newState = { ...this.state } as IMapState;\r\n\r\n //let changed = false;\r\n\r\n //if (this.state.allSeats.length === 0) {\r\n // newState.allSeats = nextProps.seats;\r\n // this.setState(newState as any);\r\n //}\r\n this.bindD3();\r\n }\r\n\r\n bindD3() {\r\n const map = select(\"#mapSvg\");\r\n\r\n var mapZoom = zoom();\r\n if (isMobile()) {\r\n map.call(mapZoom.scaleExtent([1, 8])\r\n .on(\"zoom\", this.zoomed.bind(this))\r\n\r\n );\r\n } else {\r\n map.call(mapZoom.scaleExtent([1, 8])\r\n .on(\"zoom\", this.zoomed.bind(this))\r\n .on(\"start\", this.props.mapStartDragging.bind(this))\r\n .on(\"end\", this.props.mapEndDragging.bind(this))\r\n );\r\n }\r\n\r\n\r\n //if (translateX > 0 && translateY > 0) {\r\n // map.call(zoom.translateBy, translateX, translateY);\r\n //}\r\n\r\n //map.call(zoom.scaleTo, scale);\r\n\r\n this.svgMap = map;\r\n this.transformLayer = document.getElementById(\"transformG\");\r\n }\r\n\r\n zoomed() {\r\n //let mapSvg = \r\n let newTransform = event.transform;\r\n var isIe: boolean = (/MSIE/i.test(navigator.userAgent)) || (/Trident.*rv\\:11\\./i.test(navigator.userAgent)) || /Edge\\/./i.test(navigator.userAgent);\r\n //need to add a z transform for mobile to utilize GPU\r\n timer(() => {\r\n if (isIe) {\r\n this.transformLayer.setAttribute(\"transform\", newTransform);\r\n } else {\r\n let matrix3d = `transform:matrix3d(${newTransform.k},0, 0, 0, 0, ${newTransform.k}, 0, 0, 0, 0, 1, 0, ${newTransform.x},${newTransform.y}, 0, 1)`;\r\n this.transformLayer.setAttribute(\"style\", matrix3d);\r\n }\r\n\r\n if (!isMobile() && this.state.mapScale !== newTransform.k) {\r\n this.setMapScale(newTransform.k);\r\n }\r\n });\r\n }\r\n\r\n setMapScale(newScale: number) {\r\n const newState = {\r\n ...this.state,\r\n mapScale: newScale\r\n };\r\n\r\n this.setState(newState as any);\r\n }\r\n\r\n disableClick = () => {\r\n // disable the ability to click on a seat because users are just click out of the overlay\r\n return isMobile() && this.props.overlayOpen;\r\n }\r\n\r\n componentDidUpdate() {\r\n if (!this.state.d3Bound) {\r\n var paths = document.getElementsByClassName('seat-path-js');\r\n var groupPaths = document.getElementsByClassName('seat-group-path-js');\r\n\r\n if (paths.length > 0 || groupPaths.length > 0) {\r\n selectAll(\".seat-path-js\")\r\n .on('click', (evt, index, array) => {\r\n\r\n if (!this.disableClick()) {\r\n var selectedSeats = this.props.seats.filter(seat => seat.seatId === (array[index] as any).getAttribute('data-seat-id'));\r\n\r\n if (selectedSeats.length > 0 && (selectedSeats[0].tessituraSeat.isAvailable && !selectedSeats[0].tessituraSeat.isDisabled)) {\r\n // Get the price types that are associated with the selected seat.\r\n const zonePrice = this.props.seatMapModel.allSeatPricing.filter(pricing =>\r\n pricing.zoneId.toString() === selectedSeats[0].tessituraSeat.zoneId);\r\n\r\n let selectedPriceTypeIds = this.props.selectedPriceTypeFilter.map(pt => {\r\n return pt.priceTypeId;\r\n });\r\n\r\n const selectedPrices = zonePrice[0].prices.filter(price => {\r\n return selectedPriceTypeIds.indexOf(+price.priceTypeId) >= 0;\r\n });\r\n\r\n // if there are no selected prices, then there's no point in selecting the seat so we will open the ticket type filter instead\r\n if (selectedPrices.length == 0) {\r\n this.props.onNoSelectedPricesForSeatClick();\r\n } else {\r\n if (CartHelpers.isSetQuantityPackage(this.props.appSettings)) {\r\n this.props.dispatch(resetflexTicketsThreshold());\r\n }\r\n\r\n if (isSingleClick(this.props.appSettings.disableOneClick,\r\n this.props.appSettings.enableZoneUpsells,\r\n this.props.appSettings.zoneUpsellEnableForMobile,\r\n selectedSeats, this.props.seatMapModel.zoneUpsells,\r\n this.props.seatMapModel.selectedPriceQuantities,\r\n selectedPrices\r\n )) {\r\n this.props.dispatch(selectSingleClickSeat(selectedSeats[0], this.props.selectedPriceTypeFilter, this.props.appSettings.disableOneClickRemove));\r\n } else {\r\n this.props.dispatch(selectSeat(selectedSeats[0], true, this.props.seatMapModel.seatmapId, this.props.seatMapModel.hasSeatViewImages));\r\n }\r\n }\r\n\r\n\r\n }\r\n\r\n if (this.props.mapDragging) {\r\n this.props.mapEndDragging();\r\n }\r\n //(d3.event as any).sourceEvent.stopPropagation();\r\n }\r\n }, true);\r\n\r\n selectAll(\".seat-group-path-js\")\r\n .on('click', (evt, index, array) => {\r\n if (!this.disableClick()) {\r\n var selectedSeats = this.props.seats.filter(seat => (array[index] as any).getAttribute('data-seat-id').indexOf(seat.seatId) >= 0);\r\n\r\n if (selectedSeats.length > 0 && selectedSeats.some(seat => seat.tessituraSeat.isAvailable)) {\r\n //fetch selected seat image\r\n this.props.dispatch(resetmaxTicketsThreshold());\r\n this.props.dispatch(resetflexTicketsThreshold());\r\n\r\n // dispatch seat group selection\r\n this.props.dispatch(selectGroupedSeats(selectedSeats, this.props.seatMapModel.seatmapId, this.props.seatMapModel.hasSeatViewImages));\r\n }\r\n\r\n //(d3.event as any).sourceEvent.stopPropagation();\r\n }\r\n }, true);\r\n\r\n const newState = { ...this.state, d3Bound: true };\r\n this.setState(newState as any);\r\n }\r\n } else {\r\n // commented out until this works.\r\n //if (!this.state.firstShift) {\r\n // this._shiftMapToSeat(this.props, this.state.mapScale);\r\n // this.setState(_.assign({}, this.state, { firstShift: true }))\r\n //}\r\n }\r\n }\r\n}\r\n\r\nexport default SvgMap;","import flatMap from 'lodash/flatMap';\r\nimport sumBy from 'lodash/sumBy';\r\nimport uniqBy from 'lodash/uniqBy';\r\n\r\nimport * as React from 'react';\r\nimport { PriceType } from '../../classes/price-type';\r\nimport { CartSeat, Seat, SeatPriceQuantity, SeatZone } from '../../classes/seat';\r\nimport QuantitySelect from '../../common/selects/quantity-select';\r\nimport { getCurrencyFormat } from '../../helpers/currency-format';\r\nimport { IAppSettingsModel } from '../../reducers/fetch-settings-reducer';\r\n\r\ninterface IPriceTypeQuantitiesProps {\r\n seats: Array<Seat>;\r\n selectedPriceTypes: Array<PriceType>;\r\n cartSeats: Array<CartSeat>;\r\n levelPricing: Array<SeatZone>;\r\n appSettingsModel: IAppSettingsModel;\r\n selectedPriceQuantities: Array<SeatPriceQuantity>;\r\n onSelectPricing: (priceQuantities: Array<SeatPriceQuantity>) => void;\r\n seatInCart?: boolean;\r\n isGAZone?: boolean;\r\n}\r\n\r\ninterface IPriceTypeQuantitiesState {\r\n selectedPriceQuantities: Array<SeatPriceQuantity>;\r\n reloadPriceQuantity: boolean; //this is set once the intial price quantities have been loaded and this component state should take over\r\n}\r\n\r\nclass PriceTypeQuantities extends React.Component<IPriceTypeQuantitiesProps, IPriceTypeQuantitiesState>{\r\n\r\n constructor(props) {\r\n super(props);\r\n this.state = { selectedPriceQuantities: this.getSelectedPrices(props), reloadPriceQuantity: true };\r\n }\r\n\r\n componentWillReceiveProps(nextProps: IPriceTypeQuantitiesProps) {\r\n if (this.state.reloadPriceQuantity) {\r\n this.setState({ selectedPriceQuantities: this.getSelectedPrices(nextProps), reloadPriceQuantity: true });\r\n }\r\n }\r\n\r\n getSelectedPrices(props: IPriceTypeQuantitiesProps): Array<SeatPriceQuantity> {\r\n const zonePrices = props.levelPricing.filter(pricing =>\r\n props.seats.map(seat => seat.tessituraSeat.zoneId)\r\n .some(zoneId => zoneId === pricing.zoneId.toString()));\r\n\r\n\r\n\r\n let selectedPrices = uniqBy(flatMap(zonePrices, zone => zone.prices.map(price => {\r\n price.zoneId = zone.zoneId;\r\n return price;\r\n })), 'priceTypeId');\r\n\r\n if (!props.isGAZone) {\r\n const selectedPriceTypeIds = props.selectedPriceTypes.map(pt => {\r\n return pt.priceTypeId;\r\n });\r\n\r\n selectedPrices = selectedPrices.filter(price => {\r\n return selectedPriceTypeIds.indexOf(+price.priceTypeId) >= 0;\r\n });\r\n } else {\r\n\r\n }\r\n\r\n //let filteredPrices = selectedPrices.filter(price =>\r\n // props.appSettingsModel.priceTypeSettings.filter(ptSetting => ptSetting.priceTypeId === +price.priceTypeId)[0].maxQuantity <= 0);\r\n\r\n\r\n return selectedPrices.filter(price => props.appSettingsModel.priceTypeSettings.some(ptSetting => ptSetting.priceTypeId === +price.priceTypeId)).map(price => {\r\n let priceTypeSetting = props.appSettingsModel.priceTypeSettings.filter(ptSetting => ptSetting.priceTypeId === +price.priceTypeId)[0];\r\n let selectedPriceQuantity = props.selectedPriceQuantities.filter(selectedPQ => selectedPQ.seatPricing.priceTypeId === price.priceTypeId)[0];\r\n return {\r\n seatPricing: price,\r\n maxQuantity: Math.min(\r\n (priceTypeSetting.clientMaxQuantity > 0 ? priceTypeSetting.clientMaxQuantity : 100),\r\n props.seats.filter(seat => +seat.tessituraSeat.zoneId === price.zoneId && seat.tessituraSeat.isAvailable).length,\r\n price.maxSeats),\r\n minQuantity: priceTypeSetting.clientMinQuantity,\r\n quantity: selectedPriceQuantity === undefined ? 0 : selectedPriceQuantity.quantity\r\n }\r\n })\r\n }\r\n\r\n _onSelectQuantity = (newQuantity: number, priceTypeId: number) => {\r\n const matchedPTQ = this.props.selectedPriceQuantities.filter(pt => pt.seatPricing.priceTypeId === priceTypeId);\r\n\r\n if (matchedPTQ.length > 0) {\r\n const newPriceQuantity: SeatPriceQuantity = { ...matchedPTQ[0], quantity: newQuantity };\r\n this.selectNewQuantity(newPriceQuantity);\r\n } else {\r\n // this means there are no tickets for this price type\r\n var stateMatchedPrice = this.state.selectedPriceQuantities.filter(pt => pt.seatPricing.priceTypeId === priceTypeId);\r\n if (stateMatchedPrice.length > 0) {\r\n const newPriceQuantity: SeatPriceQuantity = { ...stateMatchedPrice[0], quantity: newQuantity };\r\n this.selectNewQuantity(newPriceQuantity);\r\n }\r\n }\r\n }\r\n\r\n selectNewQuantity(newPriceQuantity: SeatPriceQuantity) {\r\n let newPriceQuanities = this.state.selectedPriceQuantities.map(priceQuantity => {\r\n if (newPriceQuantity.seatPricing.priceTypeId === priceQuantity.seatPricing.priceTypeId) {\r\n priceQuantity.quantity = newPriceQuantity.quantity;\r\n }\r\n\r\n return priceQuantity;\r\n });\r\n\r\n this.setState({\r\n ...this.state,\r\n reloadPriceQuantity: false,\r\n selectedPriceQuantities: newPriceQuanities\r\n });\r\n\r\n this.props.onSelectPricing(newPriceQuanities);\r\n }\r\n\r\n canAdd(priceQuantity: SeatPriceQuantity): boolean {\r\n const totalSeats = sumBy(this.props.selectedPriceQuantities, (pq) => pq.quantity);\r\n const maxSeats = this.props.seats.filter(seat => seat.tessituraSeat.isAvailable).length;\r\n return (totalSeats < maxSeats) && (priceQuantity.maxQuantity <= 0 || priceQuantity.quantity < priceQuantity.maxQuantity);\r\n }\r\n\r\n getMaxSeats(): number {\r\n return this.props.seats.filter(seat => seat.tessituraSeat.isAvailable).length;\r\n }\r\n\r\n canRemove(priceQuantity: SeatPriceQuantity): boolean {\r\n return (priceQuantity.minQuantity < priceQuantity.quantity && priceQuantity.quantity > 0);\r\n }\r\n\r\n getDisplayText(priceQuantity: SeatPriceQuantity): string {\r\n const priceText = getCurrencyFormat(this.props.appSettingsModel.currencyFormat, priceQuantity.seatPricing.price);\r\n const priceType = priceQuantity.seatPricing.priceTypeDescription;\r\n return `${priceText} - ${priceType}`;\r\n }\r\n\r\n render() {\r\n return (\r\n <div className=\"seat-info-prices\" >\r\n <div className=\"seat-info-prices-inner\">\r\n <p className=\"seat-info-prices-header caption-paragraph\">{this.props.appSettingsModel.gaZoneSelectTicketMessage}</p>\r\n {this.state.selectedPriceQuantities.map(priceQuantity =>\r\n <QuantitySelect\r\n messageText=\"\"\r\n startingAtText=\"\"\r\n priceTypeMaxError={this.props.appSettingsModel.maxQuantityPriceTypeSelectedError.replace(\"{0}\", priceQuantity.seatPricing.priceTypeDescription)}\r\n priceTypeMaxReached={!this.canAdd(priceQuantity)}\r\n priceTypeId={+priceQuantity.seatPricing.priceTypeId}\r\n displayText={this.getDisplayText(priceQuantity)}\r\n quantity={priceQuantity.quantity}\r\n onSelectQuantity={this._onSelectQuantity}\r\n canAdd={this.canAdd(priceQuantity)}\r\n canRemove={this.canRemove(priceQuantity)}\r\n key={priceQuantity.seatPricing.priceTypeId}\r\n maxQuantity={this.getMaxSeats()}\r\n />\r\n )}\r\n </div>\r\n </div>\r\n );\r\n }\r\n}\r\n\r\nexport default PriceTypeQuantities;","import flatMap from 'lodash/flatMap'\r\nimport orderBy from 'lodash/orderBy';\r\nimport uniq from 'lodash/uniq';\r\n\r\nimport * as React from 'react';\r\nimport isEqual from 'react-fast-compare';\r\nimport { PriceType } from '../../classes/price-type';\r\nimport { CartSeat, Seat, SeatZone } from '../../classes/seat';\r\n\r\n\r\ndeclare var Modernizr: any;\r\n\r\ninterface ISeatGroupPathProps {\r\n key: string;\r\n seats: Array<Seat>;\r\n cartSeats: Array<CartSeat>;\r\n selectedSeats: Array<Seat>;\r\n dispatch: any;\r\n levelPricing: Array<SeatZone>;\r\n selectedPriceTypes: Array<PriceType>;\r\n lowerPrice: number;\r\n upperPrice: number;\r\n isExchange: boolean;\r\n mouseOverGroup: (Seat, xPos, yPos) => any;\r\n mouseOutGroup: (Seat) => any;\r\n mapDragging: boolean;\r\n}\r\n\r\nenum SeatHoverPosition {\r\n TopLeft,\r\n TopRight,\r\n BottomLeft,\r\n BottomRight\r\n}\r\n\r\nclass SeatGroupPath extends React.Component<ISeatGroupPathProps, { hovered: boolean }>{\r\n private selectedPrices: Array<any> = [];\r\n private hasHoverText: boolean = false;\r\n\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n hovered: false\r\n };\r\n\r\n let seatZoneIds = uniq(props.seats.map(seat => {\r\n return parseInt(seat.tessituraSeat.zoneId);\r\n }));\r\n\r\n let matchedZones = props.levelPricing.filter(levelPricing => seatZoneIds.some(zoneId => levelPricing.zoneId === zoneId));\r\n\r\n if (matchedZones && matchedZones.length > 0) {\r\n let prices = flatMap(matchedZones, zone => zone.prices);\r\n this.selectedPrices = prices.filter(price => props.selectedPriceTypes.some(selectedPriceType => selectedPriceType.priceTypeId === parseInt(price.priceTypeId)));\r\n\r\n //this means the user did not pick any filters, so no need to match on selected filters\r\n if (props.selectedPriceTypes.length === 0) {\r\n this.selectedPrices = prices;\r\n }\r\n }\r\n\r\n this.hasHoverText = props.seats[0].seatStyleCulture.smallPrompt !== null && props.seats[0].seatStyleCulture.smallPrompt.length > 0;\r\n\r\n }\r\n\r\n shouldComponentUpdate(nextProps: ISeatGroupPathProps, nextState) {\r\n return !isEqual(this.props, nextProps) || this.state.hovered !== nextState.hovered;\r\n }\r\n\r\n private isInPriceRange(): boolean {\r\n\r\n if (this.selectedPrices.length > 0) {\r\n return this.selectedPrices.some(price => price.price >= this.props.lowerPrice && price.price <= this.props.upperPrice);\r\n\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n render() {\r\n var selectedSeat = this.props.selectedSeats.some(seat => this.props.seats.map(s => s.seatId).some(seatId => seatId === seat.seatId));\r\n let cartSeats = this.props.cartSeats.filter(cartSeat => this.props.seats.some(seat => seat.seatId === cartSeat.seatId));\r\n let inCart = cartSeats.length > 0;\r\n\r\n let firstAvailableSeat = orderBy(this.props.seats, (seat: Seat) => { return seat.tessituraSeat.isAvailable; }, 'desc')[0];\r\n\r\n var seatFill = inCart ? (selectedSeat ? cartSeats[0].seatStyle.svgSelectedFill : cartSeats[0].seatStyle.svgDefaultFill) : (selectedSeat ? this.props.seats[0].seatStyle.svgSelectedFill : this.props.seats[0].seatStyle.svgDefaultFill);\r\n seatFill = this.state.hovered && this.props.seats[0].tessituraSeat.isAvailable && !Modernizr.touchevents ? this.props.seats[0].seatStyle.svgHoverFill : seatFill;\r\n\r\n return (\r\n <path id={'seat-' + this.props.seats[0].seatId} data-seat-id={this.props.seats.map(seat => seat.seatId).join()}\r\n key={this.props.seats[0].seatId} d={this.props.seats[0].svgPath} fill={seatFill}\r\n strokeWidth={this.props.seats[0].seatStyle.svgStrokeWidth}\r\n stroke={this.props.seats[0].seatStyle.svgStrokeColor}\r\n className={(!this.props.seats[0].tessituraSeat.isAvailable ? \" is-unavailable\" : \"\") + (((!this.props.isExchange) && (!selectedSeat && !this.props.seats[0].suggestedSeat) || !this.isInPriceRange())\r\n && this.props.seats[0].tessituraSeat.isAvailable ? \" criteria-mismatch\" : \"\")\r\n + (this.hasHoverText ? \" has-hover\" : \"\") + \" seat-group-path-js seat-path\"}\r\n onMouseOver={(e) => {\r\n this.setState({ ...this.state, hovered: true });\r\n if (!this.props.mapDragging) {\r\n var pathRect = (e.target as any).getBoundingClientRect();\r\n\r\n this.props.mouseOverGroup(this.props.seats, pathRect.left + (pathRect.width / 2), pathRect.top + (pathRect.height / 2));\r\n }\r\n }}\r\n onMouseOut={(e) => {\r\n this.setState({ ...this.state, hovered: false });\r\n var hoverElement = document.getElementsByClassName('hover-map-svg');\r\n\r\n var inX = false;\r\n var inY = false;\r\n if (hoverElement.length > 0) {\r\n var hoverRect = hoverElement[0].getBoundingClientRect()\r\n inX = hoverRect.left <= e.clientX && e.clientX <= hoverRect.right;\r\n inY = hoverRect.top <= e.clientY && e.clientY <= hoverRect.bottom;\r\n }\r\n\r\n if (!this.props.mapDragging && !(inX && inY)) {\r\n this.props.mouseOutGroup(this.props.seats);\r\n }\r\n }} />\r\n );\r\n }\r\n}\r\n\r\nexport default SeatGroupPath;","import uniqBy from 'lodash/uniqBy';\r\nimport orderBy from 'lodash/orderBy';\r\n\r\nimport * as React from 'react';\r\nimport { ItemType } from '../../classes/item-type';\r\nimport { PriceType } from '../../classes/price-type';\r\nimport { CartSeat, Seat, SeatPricing, SeatZone } from '../../classes/seat';\r\nimport { getCurrencyFormat } from '../../helpers/currency-format';\r\nimport { Html } from '../../helpers/html-helpers';\r\nimport { sortPriceTypes } from '../../helpers/price-type-helpers';\r\nimport { isNullOrEmpty } from '../../helpers/string-format';\r\nimport { IAppSettingsModel } from '../../reducers/fetch-settings-reducer';\r\n\r\n\r\ninterface ISeatHoverProps {\r\n xPosition: number;\r\n yPosition: number;\r\n seats: Array<Seat>;\r\n cartSeats: Array<CartSeat>;\r\n levelPricing: Array<SeatZone>;\r\n selectedPriceTypes: Array<PriceType>;\r\n appSettingsModel: IAppSettingsModel;\r\n mouseOutHover: () => void;\r\n ariaLabelId: string;\r\n showHover: boolean;\r\n dispatch: any;\r\n isChrome: boolean;\r\n}\r\n\r\ninterface ISeatHoverState {\r\n}\r\n\r\nclass SeatHover extends React.Component<ISeatHoverProps, ISeatHoverState>{\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n shouldComponentUpdate(nextProps: ISeatHoverProps) {\r\n return this.props.xPosition != nextProps.xPosition\r\n || this.props.yPosition != nextProps.yPosition\r\n || this.props.showHover != nextProps.showHover;\r\n }\r\n\r\n hoverBoxClassName = 'seat-tooltip';\r\n\r\n getSelectedPrices(props: ISeatHoverProps): Array<SeatPricing> {\r\n // If no seats, no prices\r\n if (props.seats.length === 0 || props.seats.every(s => !s.tessituraSeat.isAvailable)) {\r\n return [];\r\n }\r\n\r\n // Get the prices for this zone\r\n const zonePrices = props.levelPricing.filter(pricing => pricing.zoneId.toString() === props.seats[0].tessituraSeat.zoneId);\r\n if (zonePrices.length < 1) {\r\n return [];\r\n }\r\n\r\n var sortedPriceTypes = sortPriceTypes(props.selectedPriceTypes);\r\n // Get the id's of the selected price types\r\n const selectedPriceTypeIds = sortedPriceTypes.map(pt => pt.priceTypeId);\r\n\r\n if (selectedPriceTypeIds.length === 0) {\r\n return zonePrices[0].prices;\r\n }\r\n\r\n // Get the unique prices from the zone that are also selected\r\n return orderBy(uniqBy(zonePrices[0].prices\r\n .filter(price => selectedPriceTypeIds.indexOf(price.priceTypeId) >= 0),\r\n price => price.priceTypeId),\r\n pr => selectedPriceTypeIds.indexOf(pr.priceTypeId)\r\n );\r\n }\r\n\r\n getSeatsRemainingText(): string {\r\n const seatsRemaining = this.props.seats.filter(seat => seat.tessituraSeat.isAvailable).length;\r\n\r\n return this.fetchHoverText(seatsRemaining, this.props.appSettingsModel.seatsRemainingText);\r\n }\r\n\r\n fetchHoverText(response, seatsAvailableText) {\r\n return seatsAvailableText.replace(\"{0}\", response.toString());\r\n }\r\n\r\n renderFeeAmount(price: SeatPricing) {\r\n return price?.feeAmount > 0 && this.props.appSettingsModel?.displaySeatFee && <div className=\"small-italic\">\r\n <p>{this.props.appSettingsModel?.priceFeeHeading}</p>\r\n <p>{this.props.appSettingsModel?.ticketCostText} {getCurrencyFormat(this.props.appSettingsModel.currencyFormat, price.price)}</p>\r\n <p>{this.props.appSettingsModel?.feeAmountText} {getCurrencyFormat(this.props.appSettingsModel.currencyFormat, price.feeAmount)}</p>\r\n </div>;\r\n }\r\n\r\n render() {\r\n var selectedPrices = this.getSelectedPrices(this.props);\r\n let section = this.props.seats.length > 0 ? this.props.appSettingsModel.useZoneDescription && this.props.seats[0].zoneDescription !== null ? this.props.seats[0].zoneDescription : this.props.seats[0].tessituraSeat.sectionDescription : '';\r\n\r\n const hasSeatHoverMessage = !isNullOrEmpty(this.props.appSettingsModel.seatHoverMessageText);\r\n const hasSeatingUnlockMessage = this.props.seats[0].tessituraSeat.isDisabled && this.props.seats[0].seatingOptionGroup !== null && this.props.seats[0].seatingOptionGroup.unlockSeatingOptionGroupId != null;\r\n const hasSmallPromptMessage = !isNullOrEmpty(this.props.seats[0].seatStyleCulture.smallPrompt);\r\n\r\n let priceToDisplay = \"\";\r\n if (selectedPrices.length > 0 && !this.props.appSettingsModel.hidePricesOnSeatHover) {\r\n const showFreeExchangePrice = this.props.appSettingsModel.itemType === ItemType.Exchange && selectedPrices[0].price === 0\r\n && this.props.appSettingsModel.exchangeFreeLabel.length > 0;\r\n\r\n if (showFreeExchangePrice) {\r\n priceToDisplay = this.props.appSettingsModel.exchangeFreeLabel;\r\n } else if (selectedPrices.length > 0) {\r\n priceToDisplay = getCurrencyFormat(this.props.appSettingsModel.currencyFormat, selectedPrices[0].price + selectedPrices[0].feeAmount);\r\n }\r\n }\r\n\r\n return (\r\n <foreignObject style={{ position: 'absolute' }}\r\n x={0}\r\n y={0}\r\n width=\"260\" height=\"220\" id=\"seat-tooltip-fo\"\r\n onMouseOut={(e) => {\r\n this.setState({ ...this.state, hovered: false });\r\n var hoverRect = document.getElementsByClassName('hover-map-svg')[0].getBoundingClientRect()\r\n var inX = hoverRect.left <= e.clientX && e.clientX <= hoverRect.right;\r\n var inY = hoverRect.top <= e.clientY && e.clientY <= hoverRect.bottom;\r\n\r\n this.props.mouseOutHover();\r\n\r\n }}>\r\n <div\r\n className={this.hoverBoxClassName\r\n + (this.props.isChrome ? ' tooltip-chrome' : '')\r\n + (this.props.yPosition <= (window.innerHeight / 2) ? ' tooltip-up' : ' tooltip-down')\r\n + (this.props.showHover ? ' tooltip-show' : ' tooltip-hide')} id={this.props.ariaLabelId}>\r\n <div className=\"seat-tooltip-header\">\r\n <div className=\"seat-tooltip-header-section\">\r\n {\r\n this.props.seats.length > 0 ?\r\n <span>{this.props.seats.length > 1 ? this.props.appSettingsModel.groupSeatCartItemText.replace(\"{0}\", \"\").replace(\"{1}\", section)\r\n : `${section}`}\r\n </span>\r\n : null\r\n }\r\n </div>\r\n <div className=\"seat-tooltip-header-seat\">\r\n <span>{this.props.seats.length > 1 ? this.props.appSettingsModel.groupSeatCartItemText.replace(\"{0}\", \"\").replace(\"{1}\", section)\r\n : `${this.props.seats[0].tessituraSeat.rowText}-${this.props.seats[0].tessituraSeat.numberText}`}\r\n </span>\r\n\r\n </div>\r\n </div>\r\n\r\n {\r\n selectedPrices.length > 0 ?\r\n <div className=\"seat-tooltip-prices\">\r\n <div className=\"seat-tooltip-prices-list\">\r\n {selectedPrices.length === 1 ?\r\n <>\r\n <span className=\"seat-tooltip-prices-list-text\">\r\n {priceToDisplay.length > 0 ? priceToDisplay + \" - \" : \"\"}{selectedPrices[0].priceTypeDescription}\r\n </span>\r\n {this.props.appSettingsModel?.displaySeatFee && this.renderFeeAmount(selectedPrices[0])}\r\n </>\r\n :\r\n orderBy(selectedPrices, selectedPrice => selectedPrice.price).map((price: SeatPricing) => {\r\n return <div key={price.priceTypeId} className=\"seat-tooltip-prices-list-item\">\r\n <span className=\"seat-tooltip-prices-list-text\">{getCurrencyFormat(this.props.appSettingsModel.currencyFormat, price.price + price.feeAmount)} - {price.priceTypeDescription}</span>\r\n {this.renderFeeAmount(price)}\r\n </div>\r\n })\r\n }\r\n </div>\r\n </div>\r\n :\r\n null\r\n }\r\n\r\n {\r\n this.props.seats.length > 0 && (hasSeatHoverMessage || hasSeatingUnlockMessage || hasSmallPromptMessage) ?\r\n <div>\r\n {\r\n hasSeatHoverMessage ?\r\n <div className=\"seat-tooltip-options\">\r\n {Html.renderDiv(this.props.appSettingsModel.seatHoverMessageText, \"seat-info-options-copy\")}\r\n </div>\r\n : null\r\n }\r\n {\r\n hasSeatingUnlockMessage ?\r\n <div className=\"seat-tooltip-options\">\r\n <div className=\"seat-tooltip-options-copy\">\r\n {this.props.seats[0].seatingOptionGroup.addSeatsToUnlockMessage}\r\n </div>\r\n </div>\r\n :\r\n hasSmallPromptMessage ?\r\n <div className=\"seat-tooltip-options\">\r\n {Html.renderDiv(this.props.seats[0].seatStyleCulture.smallPrompt, \"seat-info-options-copy\")}\r\n </div>\r\n : null\r\n }\r\n </div>\r\n :\r\n null\r\n }\r\n {\r\n (this.props.seats.length > 1) && Html.renderDiv(this.getSeatsRemainingText(), 'seat-tooltip-remaining')\r\n }\r\n\r\n {\r\n ((this.props.seats.length > 0) && (this.props.seats[0].tessituraSeat.isAvailable) && selectedPrices.length == 0) && Html.renderDiv(this.props.appSettingsModel.seatHoverMissingPriceTypesMessage, 'seat-tooltip-remaining')\r\n }\r\n\r\n </div>\r\n </foreignObject >\r\n );\r\n }\r\n\r\n componentDidMount() {\r\n var hoverBox = document.getElementsByClassName(this.hoverBoxClassName)[0];\r\n var height = hoverBox.getBoundingClientRect().height;\r\n var hoverFO = document.getElementsByTagName('foreignObject')[0];\r\n hoverFO.setAttribute('height', height.toString());\r\n\r\n var hoverViewBox = document.getElementsByClassName('hover-map-svg')[0];\r\n hoverViewBox.setAttribute('viewBox', `0 0 260 ${height}`);\r\n\r\n }\r\n\r\n}\r\n\r\nexport default SeatHover;","import * as React from 'react';\r\nimport { PriceType } from '../../classes/price-type';\r\nimport { CartSeat, Seat, SeatPricing, SeatZone, SeatStyle } from '../../classes/seat';\r\nimport isMobile from '../../helpers/is-mobile';\r\n\r\nimport isEqual from 'react-fast-compare';\r\nimport { SeatingOptionGroup } from '../../classes/seating-option';\r\n\r\ndeclare var Modernizr: any;\r\n\r\ninterface ISeatPathProps {\r\n key: string;\r\n seat: Seat;\r\n selectedSeat: Seat;\r\n dispatch: any;\r\n levelPricing: Array<SeatZone>;\r\n selectedPriceTypes: Array<PriceType>;\r\n selectedSpecialSeatingFilter: Array<SeatingOptionGroup>;\r\n lowerPrice: number;\r\n upperPrice: number;\r\n mouseOverSeat: (Seats, xPos, yPos) => any;\r\n mouseOutSeat: (Seats) => any;\r\n mapDragging: boolean;\r\n cartSeats: Array<CartSeat>;\r\n\r\n seatStyles: Array<SeatStyle>;\r\n seatHovered: boolean;\r\n isTest?: boolean;\r\n loadedExchangePricing: boolean;\r\n isExchange: boolean;\r\n}\r\n\r\nenum SeatHoverPosition {\r\n TopLeft,\r\n TopRight,\r\n BottomLeft,\r\n BottomRight\r\n}\r\n\r\nclass SeatPath extends React.Component<ISeatPathProps, any>{\r\n constructor(props: ISeatPathProps) {\r\n super(props);\r\n }\r\n\r\n shouldComponentUpdate(nextProps: ISeatPathProps, nextState) {\r\n if (nextProps.mapDragging) {\r\n return false;\r\n }\r\n if (nextProps.isTest != null && nextProps.isTest) {\r\n return true;\r\n }\r\n return !isEqual(this.props, nextProps);\r\n }\r\n\r\n private getSelectedPrices(props: ISeatPathProps) {\r\n let seatZone = parseInt(props.seat.tessituraSeat.zoneId);\r\n let matchedZone = props.levelPricing.filter(levelPricing => levelPricing.zoneId === seatZone);\r\n\r\n if (matchedZone.length > 0 && matchedZone[0].prices.length > 0) {\r\n //this means the user did not pick any filters, so no need to match on selected filters\r\n if (props.selectedPriceTypes.length === 0) {\r\n return matchedZone[0].prices;\r\n }\r\n return matchedZone[0].prices.filter(price => props.selectedPriceTypes.some(selectedPriceType => selectedPriceType.priceTypeId === price.priceTypeId));\r\n } else {\r\n return [];\r\n }\r\n }\r\n\r\n private isInPriceRange(): boolean {\r\n if (this.props.isExchange && !this.props.loadedExchangePricing) {\r\n return true;\r\n }\r\n\r\n if (this.getSelectedPrices(this.props).length > 0) {\r\n var ret = this.getSelectedPrices(this.props)\r\n .some(price => price.price + price.feeAmount >= this.props.lowerPrice\r\n && price.price + price.feeAmount <= this.props.upperPrice);\r\n //if (!ret) {\r\n // console.log('price: ' + this.getSelectedPrices(this.props)[0].price);\r\n // console.log('low: ' + this.props.lowerPrice);\r\n // console.log('high: ' + this.props.upperPrice);\r\n //}\r\n return ret;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n private doesApplyPriceTypeFilter(): boolean {\r\n return this.props.selectedPriceTypes.length > 0\r\n ? this.props.selectedPriceTypes.some(pt => this.getSelectedPrices(this.props).map(price => price.priceTypeId).indexOf(pt.priceTypeId) >= 0)\r\n : true;\r\n }\r\n\r\n private doesApplySpecialSeatingFilter(): boolean {\r\n if (this.props.selectedSpecialSeatingFilter.length == 0)\r\n return true;\r\n\r\n return this.props.selectedSpecialSeatingFilter\r\n .filter(x => this.props.seat.satisfiedSeatConditionIds.indexOf(x.seatConditionId) >= 0).length > 0;\r\n }\r\n\r\n private get isInCart(): boolean {\r\n if (this.props.cartSeats.length === 0)\r\n return false;\r\n else {\r\n var isInCart = this.props.cartSeats.some(cartSeat => cartSeat.seatId === this.props.seat.seatId);\r\n return isInCart;\r\n }\r\n }\r\n\r\n render() {\r\n var currentSeatStyle = this.props.seat.seatStyle;\r\n if (this.isInCart) {\r\n var inCartStyle = this.props.seatStyles.filter(sty => sty.id === this.props.seat.inCartSeatStyleId);\r\n if (inCartStyle.length > 0) {\r\n currentSeatStyle = inCartStyle[0];\r\n }\r\n }\r\n\r\n //if the current seat is in the cart\r\n const seatDisabled = this.props.seat.tessituraSeat.isAvailable && this.props.seat.tessituraSeat.isDisabled;\r\n\r\n var selectedSeat = this.props.selectedSeat != null ? this.props.selectedSeat.seatId === this.props.seat.seatId : false;\r\n\r\n var seatFill = selectedSeat ? currentSeatStyle.svgSelectedFill : currentSeatStyle.svgDefaultFill;\r\n seatFill = this.props.seatHovered && (!seatDisabled)\r\n && (this.props.seat.tessituraSeat.isAvailable || (this.props.seat.seatStyleCulture.fullPrompt != null && this.props.seat.seatStyleCulture.fullPrompt.length > 0))\r\n && !isMobile() ? currentSeatStyle.svgHoverFill : seatFill;\r\n\r\n let hasHoverText = (this.props.seat.seatStyleCulture.smallPrompt !== null && this.props.seat.seatStyleCulture.smallPrompt.length > 0)\r\n || (this.props.seat.tessituraSeat.isAvailable && this.props.seat.seatingOptionGroup != null && this.props.seat.seatingOptionGroup.unlockSeatingOptionGroupId != null);\r\n\r\n let hasPromptText = (this.props.seat.seatStyleCulture.fullPrompt !== null && this.props.seat.seatStyleCulture.fullPrompt.length > 0);\r\n\r\n let isUnAvailableText = ((!this.props.seat.tessituraSeat.isAvailable || this.props.seat.tessituraSeat.isDisabled) ? \" is-unavailable\" : \"\");\r\n let disableCriterMismatchFading = (this.props.seat.tessituraSeat.isAvailable && !selectedSeat && !this.props.seat.suggestedSeat);\r\n\r\n var specialSeatingMismatch = !this.doesApplySpecialSeatingFilter();\r\n var priceRangeMismatch = !this.isInPriceRange();\r\n var priceTypeMismatch = !this.doesApplyPriceTypeFilter();\r\n\r\n //if (specialSeatingMismatch) {\r\n // console.log(\"special seating mismatch for \" + this.props.seat.tessituraSeat.rowText + this.props.seat.tessituraSeat.numberText);\r\n //}\r\n //if (priceRangeMismatch) {\r\n // console.log(\"price range mismatch for \" + this.props.seat.tessituraSeat.rowText + this.props.seat.tessituraSeat.numberText);\r\n //}\r\n //if (priceTypeMismatch) {\r\n // console.log(\"price type mismatch for \" + this.props.seat.tessituraSeat.rowText + this.props.seat.tessituraSeat.numberText);\r\n //}\r\n\r\n return (\r\n <path id={'seat-' + this.props.seat.seatId} data-seat-id={this.props.seat.seatId} key={this.props.seat.seatId}\r\n d={this.isInCart ? this.props.seat.inCartSeatPath : this.props.seat.activeSvgPath} fill={seatFill}\r\n strokeWidth={currentSeatStyle.svgStrokeWidth}\r\n stroke={currentSeatStyle.svgStrokeColor}\r\n className={isUnAvailableText + ((disableCriterMismatchFading && (specialSeatingMismatch\r\n || priceRangeMismatch || priceTypeMismatch)) ? \" criteria-mismatch\" : \"\")\r\n + (hasPromptText ? \" has-prompt\" : (hasHoverText ? \" has-hover\" : \"\"))\r\n + \" seat-path-js seat-path\"}\r\n onMouseOver={(e) => {\r\n //if (!this.props.mapDragging) {\r\n let svgPath = e.currentTarget.getBoundingClientRect();\r\n let mouseCordsX = e.pageX;\r\n let mouseCordsY = e.pageY;\r\n this.props.mouseOverSeat([this.props.seat], mouseCordsX, mouseCordsY);\r\n //this.props.mouseOverSeat([this.props.seat], svgPath.left + (svgPath.width / 2), svgPath.top + (svgPath.height / 2));\r\n //}\r\n }}\r\n onMouseOut={(e) => {\r\n //if (!this.props.mapDragging) {\r\n this.props.mouseOutSeat([this.props.seat])\r\n //}\r\n }} />\r\n );\r\n }\r\n\r\n\r\n}\r\n\r\nexport default SeatPath;","import uniq from 'lodash/uniq';\r\nimport * as React from 'react';\r\nimport isEqual from 'react-fast-compare';\r\nimport { PriceType } from '../../classes/price-type';\r\nimport { CartSeat, Seat, SeatStyle, SeatZone } from '../../classes/seat';\r\nimport { SeatingOptionGroup } from '../../classes/seating-option';\r\nimport { IPriceRangeModel } from '../../filter/reducers/filter-reducers';\r\nimport SeatGroupPath from './seat-group-path';\r\nimport SeatPath from './seat-path';\r\n\r\n\r\n\r\ninterface ISeatPaths {\r\n seats: Array<Seat>;\r\n selectedSeats: Array<Seat>;\r\n seatStyles: Array<SeatStyle>;\r\n dispatch: any;\r\n levelPricing: Array<SeatZone>;\r\n selectedPriceTypes: Array<PriceType>;\r\n selectedSpecialSeatingFilter: Array<SeatingOptionGroup>;\r\n cartSeats: Array<CartSeat>;\r\n priceRangeModel: IPriceRangeModel;\r\n mapDragging: boolean;\r\n isExchange: boolean;\r\n loadedExchangePricing: boolean;\r\n\r\n hoveredSeatId: string;\r\n mouseOverSeat: (seats: Array<Seat>, xPos: number, yPos: number) => void;\r\n mouseOutSeat: () => void;\r\n isChrome: boolean;\r\n\r\n usingForceMultipleSeats: boolean;\r\n}\r\n\r\nclass SeatPaths extends React.Component<ISeatPaths, any> {\r\n private singleSeats: Array<Seat>;\r\n private seatsWithSamePaths: Array<Seat>;\r\n private seatGroupIds: Array<string>;\r\n\r\n constructor(props) {\r\n super(props);\r\n let seatWithPaths = props.seats.filter(seat => {\r\n return seat.svgPath !== null;\r\n });\r\n\r\n this.seatsWithSamePaths = seatWithPaths.filter(seat => {\r\n return seatWithPaths.filter(s => s.svgPathId === seat.svgPathId).length > 1;\r\n });\r\n\r\n this.seatGroupIds = uniq(this.seatsWithSamePaths.map(path => path.svgPathId));\r\n if (this.props.isChrome) {\r\n this.seatGroupIds = this.seatGroupIds.reverse();\r\n }\r\n\r\n this.singleSeats = seatWithPaths.filter(seat => {\r\n return seatWithPaths.filter(s => s.svgPathId === seat.svgPathId).length == 1;\r\n });\r\n }\r\n\r\n shouldComponentUpdate(nextProps: ISeatPaths, nextState) {\r\n return this.props.priceRangeModel.minPrice !== nextProps.priceRangeModel.minPrice\r\n || this.props.priceRangeModel.maxPrice !== nextProps.priceRangeModel.maxPrice\r\n || ((this.props.selectedSeats.length == 0) ? (nextProps.selectedSeats.length > 0 ? true : false)\r\n : (nextProps.selectedSeats.length == 0 || this.props.selectedSeats[0].seatId !== nextProps.selectedSeats[0].seatId))\r\n || this.props.selectedSpecialSeatingFilter.length !== nextProps.selectedSpecialSeatingFilter.length\r\n || this.props.selectedPriceTypes.length !== nextProps.selectedPriceTypes.length\r\n || this.props.loadedExchangePricing !== nextProps.loadedExchangePricing\r\n || !isEqual(this.props, nextProps);\r\n }\r\n\r\n render() {\r\n return <g>\r\n {\r\n this.singleSeats.map(seat => {\r\n return <SeatPath dispatch={this.props.dispatch}\r\n seat={seat}\r\n key={seat.seatId}\r\n selectedSeat={this.props.selectedSeats.length > 0 ? this.props.selectedSeats[0] : null}\r\n levelPricing={this.props.levelPricing}\r\n selectedPriceTypes={this.props.selectedPriceTypes}\r\n selectedSpecialSeatingFilter={this.props.selectedSpecialSeatingFilter}\r\n lowerPrice={this.props.priceRangeModel.minPrice}\r\n upperPrice={this.props.priceRangeModel.maxPrice}\r\n mouseOutSeat={this.props.mouseOutSeat}\r\n mouseOverSeat={this.props.mouseOverSeat}\r\n mapDragging={this.props.mapDragging}\r\n cartSeats={this.props.cartSeats}\r\n seatStyles={this.props.seatStyles}\r\n seatHovered={this.props.hoveredSeatId === seat.seatId}\r\n isExchange={this.props.isExchange}\r\n loadedExchangePricing={this.props.loadedExchangePricing}\r\n />\r\n })\r\n }\r\n {\r\n this.seatGroupIds.map((svgPathId) => {\r\n var groupSeats = this.seatsWithSamePaths.filter(seat => seat.svgPathId === svgPathId);\r\n var sortedSeats = [...groupSeats].sort((a, b) => {\r\n return (b.tessituraSeat.isAvailable ? 1 : 0) - (a.tessituraSeat.isAvailable ? 1 : 0);\r\n });\r\n return <SeatGroupPath dispatch={this.props.dispatch}\r\n seats={sortedSeats}\r\n key={svgPathId}\r\n cartSeats={this.props.cartSeats}\r\n selectedSeats={this.props.selectedSeats}\r\n levelPricing={this.props.levelPricing}\r\n selectedPriceTypes={this.props.selectedPriceTypes}\r\n lowerPrice={this.props.priceRangeModel.minPrice}\r\n upperPrice={this.props.priceRangeModel.maxPrice}\r\n isExchange={this.props.isExchange}\r\n mouseOutGroup={this.props.mouseOutSeat}\r\n mouseOverGroup={this.props.mouseOverSeat}\r\n mapDragging={this.props.mapDragging}\r\n />\r\n })\r\n }\r\n\r\n </g>\r\n }\r\n\r\n computeSeatHoverPositionY(seat: Seat) {\r\n var pos = document.getElementById('seat-' + seat.seatId).getBoundingClientRect();\r\n var yPos = window.innerHeight / 2 - pos.bottom - pos.height;\r\n\r\n if (yPos > 0) {\r\n yPos = yPos + (pos.height);\r\n }\r\n\r\n return yPos;\r\n }\r\n\r\n computeSeatHoverPositionX(seat: Seat) {\r\n var pos = document.getElementById('seat-' + seat.seatId).getBoundingClientRect();\r\n\r\n return pos.left + (pos.width / 2);\r\n }\r\n}\r\n\r\nexport default SeatPaths;","import * as React from 'react';\r\n\r\nimport { Seat, SeatZone } from '../../../classes/seat';\r\nimport { IAppSettingsModel } from '../../../reducers/fetch-settings-reducer';\r\n\r\ninterface IConfirmPromptProps {\r\n appSettingsModel: IAppSettingsModel;\r\n onConfirmSeatClick: () => any;\r\n onCancelSeatClick: () => any;\r\n confirmPromptText: string;\r\n}\r\n\r\nclass ConfirmPrompt extends React.Component<IConfirmPromptProps, { confirmed: boolean, needToConfirmError: boolean }>{\r\n constructor(props) {\r\n super(props);\r\n this.state = { confirmed: false, needToConfirmError: false };\r\n }\r\n render() {\r\n return (\r\n <div className=\"seat-info-dialog\">\r\n { this.isHtmlPrompt() ?\r\n <div className=\"rich-text\" dangerouslySetInnerHTML={{ __html: this.props.confirmPromptText }}></div>\r\n :\r\n <div>\r\n <input id=\"dialogCheckbox\" type=\"checkbox\" className=\"checkbox-custom\" value={this.state.confirmed.toString()} checked={this.state.confirmed}\r\n onChange={this._onConfirmChange.bind(this)} /> <label htmlFor=\"dialogCheckbox\">{this.props.confirmPromptText}</label>\r\n\r\n {this.state.needToConfirmError ?\r\n <div className=\"dialog-wrapper\">\r\n <div className=\"dialog-container\">\r\n <div>\r\n <h3 className=\"heading-general\">{this.props.appSettingsModel.missingAttestationErrorMessageHeader}</h3>\r\n <p>\r\n {this.props.appSettingsModel.missingAttestationErrorMessageText}\r\n </p>\r\n </div>\r\n <div className=\"dialog-cta-container\">\r\n <button className=\"dialog-cta-btn\" onClick={() => { this._closeDialog() }}>{this.props.appSettingsModel.missingAttestationErrorMessageButton}</button>\r\n </div>\r\n </div>\r\n </div>\r\n : null}\r\n </div>\r\n }\r\n\r\n <div className=\"seat-info-dialog-cta\">\r\n <button className=\"seat-info-dialog-cta-btn\" onClick={this.props.onCancelSeatClick}>{this.props.appSettingsModel.attestationSeatCancelButton}</button>\r\n <button className=\"seat-info-dialog-cta-btn\" onClick={this._onSelectSeatClick.bind(this)}>{this.props.appSettingsModel.attestationSeatConfirmationButton}</button>\r\n </div>\r\n </div>\r\n\r\n );\r\n }\r\n\r\n isHtmlPrompt() {\r\n if (this.props.confirmPromptText === null)\r\n return false;\r\n return this.props.confirmPromptText.substr(0, 4) === \"<div\";\r\n }\r\n\r\n _closeDialog() {\r\n const newState = {\r\n ...this.state,\r\n needToConfirmError: false\r\n };\r\n this.setState(newState as any);\r\n }\r\n\r\n _onSelectSeatClick() {\r\n if (this.state.confirmed || this.isHtmlPrompt()) {\r\n this.props.onConfirmSeatClick();\r\n } else {\r\n this.setState({\r\n confirmed: this.state.confirmed,\r\n needToConfirmError: true\r\n });\r\n }\r\n }\r\n\r\n _onConfirmChange() {\r\n this.setState({\r\n confirmed: !this.state.confirmed,\r\n needToConfirmError: false\r\n });\r\n }\r\n\r\n}\r\n\r\nexport default ConfirmPrompt;","import * as React from 'react';\r\nimport { Html } from '../../../helpers/html-helpers';\r\n\r\nexport interface ISeatInfoErrorMessageProps {\r\n isError: boolean;\r\n errorKey: string;\r\n showNotice: boolean;\r\n message: string;\r\n}\r\n\r\nexport const SeatInfoNoticeMessage: React.SFC<ISeatInfoErrorMessageProps> = (props) => {\r\n let error = null;\r\n const useTagAlert = '<use xlink:href=\"#icon-alert\" />';\r\n\r\n if (props.showNotice) {\r\n if (Html.isHtmlPrompt(props.message)) {\r\n return <div data-error={props.errorKey} className={\"seat-info-options seat-info-options-notice\" + (props.isError ? \" error-notice\" : \"\")}>\r\n\r\n <div className=\"rich-text caption-paragraph\" dangerouslySetInnerHTML={{ __html: props.message }}></div>\r\n </div>;\r\n } else {\r\n return <div data-error={props.errorKey} className={\"seat-info-options\" + (props.isError ? \" error-notice\" : \"\")}>\r\n {props.isError ?\r\n <svg dangerouslySetInnerHTML={{ __html: useTagAlert }} />\r\n\r\n : null\r\n }\r\n\r\n <span className={\"seat-info-options-notice caption-paragraph\" + (props.isError ? \" error-notice\" : \"\")}>{props.message}</span>\r\n </div>;\r\n }\r\n } else {\r\n return null;\r\n }\r\n}\r\n","import * as React from 'react';\r\nimport { SeatInfoNoticeMessage } from './seat-info-error-message';\r\nimport { formatString } from '../../../helpers/string-format';\r\n\r\n\r\nexport interface ISeatInfoNoticeProps {\r\n needPriceTypeError: boolean;\r\n maxQuantityPriceTypeError: boolean;\r\n minQuantityPriceTypeError: boolean;\r\n maxQuantitySeatingOptionError: boolean;\r\n flexMinQuantityError: boolean;\r\n flexMaxQuantityError: boolean;\r\n showFlexPriceTypeError: boolean;\r\n needSeatingOptionError: boolean;\r\n noMoreExchangeableTicketsError: boolean;\r\n\r\n isExchange: boolean;\r\n exchangeTicketsRemaining: number;\r\n additionalPurchasable: number;\r\n exchangeTicketsRemainingMessage: string;\r\n availableAddOnsMessage: string;\r\n exchangeAdditionalTicketsRemainingMessage: string;\r\n\r\n noMoreExchangeTicketsRemainingError: string;\r\n priceTypeNotSelectedError: string;\r\n maxQuantityPriceTypeSelectedError: string;\r\n maxQuantitySeatingOptionSelectedError: string;\r\n maxQuantityPriceTypeSelectedErrorTextReplace: string;\r\n minQuantityPriceTypeSelectedErrorTextReplace: string;\r\n minimumSeatsRequiredMessage: string;\r\n priceTypeMinQuantityRequiredMessage: string;\r\n maximumSeatsRequiredMessage: string;\r\n missingSelectedSeatingOptionNotice: string;\r\n}\r\n\r\nclass SeatInfoNotice extends React.PureComponent<ISeatInfoNoticeProps, any>{\r\n\r\n render() {\r\n const {\r\n isExchange,\r\n exchangeTicketsRemaining,\r\n additionalPurchasable,\r\n noMoreExchangeableTicketsError,\r\n needPriceTypeError,\r\n maxQuantityPriceTypeError,\r\n minQuantityPriceTypeError,\r\n maxQuantitySeatingOptionError,\r\n flexMinQuantityError,\r\n flexMaxQuantityError,\r\n showFlexPriceTypeError,\r\n needSeatingOptionError\r\n } = this.props;\r\n\r\n const maxQuantityPriceTypeErrorMessage = this.props.maxQuantityPriceTypeSelectedError.replace(\"{0}\", this.props.maxQuantityPriceTypeSelectedErrorTextReplace);\r\n const minQuantityPriceTypeErrorMessage = this.props.priceTypeMinQuantityRequiredMessage.replace(\"{0}\", this.props.minQuantityPriceTypeSelectedErrorTextReplace);\r\n\r\n let exchangeMessage = \"\";\r\n if (isExchange) {\r\n if (exchangeTicketsRemaining > 0) {\r\n exchangeMessage = formatString(this.props.exchangeTicketsRemainingMessage, [exchangeTicketsRemaining])\r\n } else {\r\n exchangeMessage = this.props.availableAddOnsMessage.trim().length > 0 ?\r\n this.props.availableAddOnsMessage\r\n :\r\n formatString(this.props.exchangeAdditionalTicketsRemainingMessage, [additionalPurchasable])\r\n }\r\n }\r\n\r\n return (\r\n <div>\r\n <SeatInfoNoticeMessage errorKey=\"is exchange message\" showNotice={isExchange} isError={false} message={exchangeMessage} />\r\n <SeatInfoNoticeMessage errorKey=\"exchange ticket limit error\" showNotice={noMoreExchangeableTicketsError} isError={true} message={this.props.noMoreExchangeTicketsRemainingError} />\r\n <SeatInfoNoticeMessage errorKey=\"price type not selected error\" showNotice={needPriceTypeError} isError={true} message={this.props.priceTypeNotSelectedError} />\r\n <SeatInfoNoticeMessage errorKey=\"price type max error\" showNotice={maxQuantityPriceTypeError} isError={true} message={maxQuantityPriceTypeErrorMessage} />\r\n <SeatInfoNoticeMessage errorKey=\"special seating max error\" showNotice={maxQuantitySeatingOptionError} isError={true} message={maxQuantityPriceTypeErrorMessage} />\r\n <SeatInfoNoticeMessage errorKey=\"flex min error\" showNotice={flexMinQuantityError} isError={true} message={this.props.minimumSeatsRequiredMessage} />\r\n <SeatInfoNoticeMessage errorKey=\"flex max message\" showNotice={flexMaxQuantityError} isError={false} message={this.props.maximumSeatsRequiredMessage} />\r\n <SeatInfoNoticeMessage errorKey=\"min price type error\" showNotice={minQuantityPriceTypeError && !flexMinQuantityError} isError={true} message={minQuantityPriceTypeErrorMessage} />\r\n <SeatInfoNoticeMessage errorKey=\"max price type error\" showNotice={showFlexPriceTypeError} isError={true} message={maxQuantityPriceTypeErrorMessage} />\r\n {\r\n this.props.missingSelectedSeatingOptionNotice.length > 0 ?\r\n <SeatInfoNoticeMessage errorKey=\"need seating option error\" showNotice={needSeatingOptionError} isError={true} message={this.props.missingSelectedSeatingOptionNotice} />\r\n : null\r\n }\r\n\r\n </div>\r\n );\r\n }\r\n}\r\n\r\nexport default SeatInfoNotice;","import * as React from 'react';\r\n\r\nimport { Seat, SeatStyle } from '../../../classes/seat';\r\nimport SeatInfoHeader from './seat-info-header';\r\n\r\n\r\nexport interface ISeatInfoHeaderContainerProps {\r\n seat: Seat\r\n useZoneDescription: boolean;\r\n isGAZone?: boolean;\r\n isInCart: boolean;\r\n inCartSeatStyle: SeatStyle;\r\n seatViewCaptionText: string;\r\n}\r\n\r\nclass SeatInfoHeaderContainer extends React.PureComponent<ISeatInfoHeaderContainerProps, any>{\r\n static defaultProps = {\r\n isGAZone: false\r\n }\r\n\r\n getSeatDescription(props: ISeatInfoHeaderContainerProps): string {\r\n const { seat, isGAZone } = props;\r\n const description = `${this.props.useZoneDescription && seat.zoneDescription !== null ? seat.zoneDescription : seat.tessituraSeat.sectionDescription}`;\r\n return isGAZone ? description : description;\r\n }\r\n\r\n getSeatRowNumber(props: ISeatInfoHeaderContainerProps): string {\r\n const { seat, isGAZone } = props;\r\n return isGAZone ? ` ${seat.tessituraSeat.rowText}-${seat.tessituraSeat.numberText}` : ` ${seat.tessituraSeat.rowText}-${seat.tessituraSeat.numberText}`;\r\n }\r\n\r\n\r\n render() {\r\n var seatStyleToUse: SeatStyle = this.props.seat.seatStyle;\r\n if (this.props.isInCart) {\r\n seatStyleToUse = this.props.inCartSeatStyle;\r\n }\r\n return <SeatInfoHeader\r\n seatDescription={this.getSeatDescription(this.props)}\r\n seatRowNumber={this.props.isGAZone ? null : this.getSeatRowNumber(this.props)}\r\n seatViewCaptionText={this.props.seatViewCaptionText}\r\n {...seatStyleToUse}\r\n {...this.props.seat.originalSeatStyleCulture}\r\n />\r\n\r\n }\r\n}\r\n\r\nexport default SeatInfoHeaderContainer;","import * as React from 'react';\r\nimport { SeatStyle } from '../../../classes/seat';\r\n\r\n\r\nexport interface ISeatInfoHeaderProps {\r\n seatDescription: string;\r\n seatRowNumber: string;\r\n svgStrokeColor: string;\r\n seatStyleSvgPath: string;\r\n svgViewBox: string;\r\n svgDefaultFill: string;\r\n svgStrokeWidth: number;\r\n fullPrompt: string;\r\n seatViewCaptionText: string;\r\n}\r\n\r\nclass SeatInfoHeader extends React.PureComponent<ISeatInfoHeaderProps, any>{\r\n\r\n\r\n render() {\r\n const { svgStrokeColor, seatStyleSvgPath, svgViewBox, svgDefaultFill, svgStrokeWidth } = this.props;\r\n const errorSvg = '<use xlink:href=\"#icon-alert\" />';\r\n\r\n const hasSeatStyle = seatStyleSvgPath != null && seatStyleSvgPath.length > 0;\r\n\r\n return (\r\n <div className=\"seat-info-header\">\r\n <div className=\"seat-info-header-item\">\r\n <svg className=\"seat-info-header-icon\" viewBox={hasSeatStyle ? svgViewBox : \"0 0 30 30\"}>\r\n {hasSeatStyle ?\r\n <path d={seatStyleSvgPath}\r\n fill={svgDefaultFill}\r\n stroke={svgStrokeColor}\r\n strokeWidth={svgStrokeWidth}></path>\r\n :\r\n <circle r=\"15\" cx=\"15\" cy=\"15\" fill={svgDefaultFill}\r\n stroke={svgStrokeColor}\r\n strokeWidth={svgStrokeWidth}></circle>\r\n }\r\n </svg>\r\n <div className=\"seat-info-header-item-content\">\r\n <span className=\"seat-description\">{this.props.seatDescription}</span>\r\n {this.props.seatRowNumber != null ?\r\n <span className=\"seat-info caption-paragraph\">{this.props.seatRowNumber}</span>\r\n : null\r\n }\r\n </div>\r\n </div>\r\n\r\n {\r\n this.props.fullPrompt ?\r\n <div className=\"seat-info-header-item notice\">\r\n <svg className=\"seat-info-header-icon\" dangerouslySetInnerHTML={{ __html: errorSvg }} />\r\n <div className=\"seat-info-header-item-content\">\r\n <span className=\"caption-paragraph\" dangerouslySetInnerHTML={{ __html: this.props.fullPrompt }} />\r\n </div>\r\n </div>\r\n\r\n : null\r\n }\r\n\r\n <div className=\"seat-info-header-mobile-caption\">\r\n {this.props.seatViewCaptionText}\r\n </div>\r\n\r\n </div>\r\n );\r\n }\r\n}\r\n\r\nexport default SeatInfoHeader;","import * as React from 'react';\r\nimport { closeViewFromSeatModal, openViewFromSeatModal } from '../../../actions/app-actions';\r\nimport { IAltText } from '../../../classes/alt-text';\r\nimport DataLoader from '../../../common/loader/data-loader';\r\n\r\n\r\nexport interface ISeatInfoImageProps {\r\n seatViewImageSrc: string;\r\n altText: IAltText;\r\n loadingSvgText: string;\r\n loadingText: string;\r\n stopLoadingAnimationButtonText: string;\r\n viewFromSeatModalActive: boolean;\r\n loadingSeatView: boolean;\r\n dispatch: any;\r\n seatViewCaptionText: string;\r\n}\r\n\r\ninterface ISeatInfoImageState {\r\n phonePanned: boolean,\r\n seatViewTransform: number,\r\n currentGamma: number\r\n\r\n}\r\n\r\nclass SeatInfoImage extends React.Component<ISeatInfoImageProps, ISeatInfoImageState> {\r\n seatViewImg: any;\r\n seatViewImgLarge: any;\r\n\r\n constructor(props) {\r\n super(props);\r\n\r\n this.state = {\r\n phonePanned: false,\r\n seatViewTransform: -50,\r\n currentGamma: 0,\r\n };\r\n\r\n //window.addEventListener(\"deviceorientation\",\r\n // this._handleMotion.bind(this)\r\n // , true);\r\n\r\n }\r\n\r\n render() {\r\n\r\n const useTagPlus = `<use xlink:href=\"#icon-search-plus\" />`;\r\n const useTagMinus = '<use xlink:href=\"#icon-search-minus\" />';\r\n const useTagClose = '<use xlink:href=\"#icon-close\" />';\r\n\r\n if (this.props.seatViewImageSrc) {\r\n var imageStyle = { transform: \"translateY(-50%) translateX(-50%)\" };\r\n\r\n return (\r\n <div className={\"seat-info-views\" + (this.props.seatViewImageSrc.length > 0 ? \" has-img\" : \"\") + (this.props.viewFromSeatModalActive ? \" open\" : \"\")} style={{ backgroundImage: \"url(\" + this.props.seatViewImageSrc + \")\" }}>\r\n <img className=\"seat-info-views-smallimage\" alt=\"View from this seat.\" id=\"seatViewImg\" style={imageStyle} src={this.props.seatViewImageSrc} />\r\n <button className=\"seat-info-views-button plus\" type=\"button\" onClick={() => this._openSeatView()}>\r\n <span className=\"visually-hidden\">{this.props.altText.seatViewMagnifyingGlassSvg}</span>\r\n <svg className=\"seat-info-views-icon\" dangerouslySetInnerHTML={{ __html: useTagPlus }} />\r\n </button>\r\n <button className=\"seat-info-views-button minus\" type=\"button\" onClick={() => this._closeSeatView()}>\r\n {/*TODO: hardcoded text*/}\r\n <span className=\"visually-hidden\">Close</span>\r\n <svg className=\"seat-info-views-icon\" dangerouslySetInnerHTML={{ __html: useTagMinus }} />\r\n </button>\r\n <button className=\"seat-info-views-button close\" type=\"button\" onClick={() => this._closeSeatView()}>\r\n {/*TODO: hardcoded text*/}\r\n <span className=\"visually-hidden\">Close</span>\r\n <svg className=\"seat-info-views-icon\" dangerouslySetInnerHTML={{ __html: useTagClose }} />\r\n </button>\r\n <div className=\"seat-info-views-caption\">\r\n <p className=\"caption-paragraph\">{this.props.seatViewCaptionText}</p>\r\n </div>\r\n\r\n <div className=\"seat-info-views-largeimage\">\r\n <div className=\"seat-info-views-trigger\" onClick={() => this._closeSeatView()}></div>\r\n <div className=\"seat-info-views-largeimage-inner\">\r\n <img src={this.props.seatViewImageSrc} alt=\"View from this seat.\" id=\"seatViewImgLarge\" style={imageStyle} />\r\n <button className=\"seat-info-views-button plus\" type=\"button\" onClick={() => this._openSeatView()}>\r\n <span className=\"visually-hidden\">{this.props.altText.seatViewMagnifyingGlassSvg}</span>\r\n <svg className=\"seat-info-views-icon\" dangerouslySetInnerHTML={{ __html: useTagPlus }} />\r\n </button>\r\n <button className=\"seat-info-views-button minus\" type=\"button\" onClick={() => this._closeSeatView()}>\r\n {/*TODO: hardcoded text*/}\r\n <span className=\"visually-hidden\">Close</span>\r\n <svg className=\"seat-info-views-icon\" dangerouslySetInnerHTML={{ __html: useTagMinus }} />\r\n </button>\r\n <button className=\"seat-info-views-button close\" type=\"button\" onClick={() => this._closeSeatView()}>\r\n {/*TODO: hardcoded text*/}\r\n <span className=\"visually-hidden\">Close</span>\r\n <svg className=\"seat-info-views-icon\" dangerouslySetInnerHTML={{ __html: useTagClose }} />\r\n </button>\r\n <div className=\"seat-info-views-largeimage-inner-caption\">\r\n <p className=\"caption-paragraph\">{this.props.seatViewCaptionText}</p>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n </div >\r\n );\r\n } else {\r\n return (\r\n <div>\r\n {this.props.loadingSeatView ?\r\n <div className=\"sidebar-loader\">\r\n <DataLoader {...this.props}\r\n loadingSvgText={this.props.loadingSvgText}\r\n loadingText={this.props.loadingText}\r\n stopAnimationText={this.props.stopLoadingAnimationButtonText}\r\n />\r\n </div>\r\n : null}\r\n </div>\r\n );\r\n }\r\n }\r\n\r\n\r\n\r\n _openSeatView() {\r\n this.props.dispatch(openViewFromSeatModal());\r\n }\r\n\r\n _closeSeatView() {\r\n this.props.dispatch(closeViewFromSeatModal());\r\n }\r\n\r\n _handleMotion(event) {\r\n\r\n if (this.props.viewFromSeatModalActive) {\r\n const seatViewImg = document.getElementById(\"seatViewImg\");\r\n\r\n if (seatViewImg) {\r\n const minValue = 0;\r\n //const maxValue = (seatViewImg.getBoundingClientRect().width - window.innerWidth + (seatViewImg.getBoundingClientRect().width * .5)) / seatViewImg.getBoundingClientRect().width;\r\n const maxValue = 100;\r\n\r\n if (Math.abs(event.alpha) > 10) {\r\n const newState = {\r\n ...this.state,\r\n phonePanned: true\r\n };\r\n this.setState(newState as any);\r\n if (event.alpha < 0) {\r\n\r\n if (seatViewImg.getBoundingClientRect().left <= 0) {\r\n var transform = this.state.seatViewTransform + -event.alpha * .02;\r\n const newState = {\r\n ...this.state,\r\n seatViewTransform: transform > minValue ? minValue : transform,\r\n currentGamma: event.alpha\r\n };\r\n const newTransformX = transform > minValue ? minValue : transform;\r\n\r\n if (this.seatViewImg == null) {\r\n this.seatViewImg = document.getElementById(\"seatViewImg\");\r\n }\r\n if (this.seatViewImgLarge == null) {\r\n this.seatViewImgLarge = document.getElementById(\"seatViewImgLarge\");\r\n }\r\n this.seatViewImg.setAttribute(\"style\", \"transform: translateY(-50%) translateX(\" + newTransformX + \"%)\");\r\n this.seatViewImgLarge.setAttribute(\"style\", \"transform: translateY(-50%) translateX(\" + newTransformX + \"%)\");\r\n this.setState(newState as any);\r\n }\r\n } else if (event.alpha > 0) {\r\n if (seatViewImg.getBoundingClientRect().right >= window.innerWidth) {\r\n var transform = this.state.seatViewTransform - event.alpha * .02;\r\n const newState = {\r\n ...this.state,\r\n seatViewTransform: transform < (maxValue * -1) ? maxValue * -1 : transform,\r\n currentGamma: event.alpha\r\n };\r\n const newTransformX = transform > minValue ? minValue : transform;\r\n if (this.seatViewImg == null) {\r\n this.seatViewImg = document.getElementById(\"seatViewImg\");\r\n }\r\n if (this.seatViewImgLarge == null) {\r\n this.seatViewImgLarge = document.getElementById(\"seatViewImgLarge\");\r\n }\r\n this.seatViewImg.setAttribute(\"style\", \"transform: translateY(-50%) translateX(\" + newTransformX + \"%)\");\r\n this.seatViewImgLarge.setAttribute(\"style\", \"transform: translateY(-50%) translateX(\" + newTransformX + \"%)\");\r\n\r\n this.setState(newState as any);\r\n }\r\n }\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n}\r\n\r\nexport default SeatInfoImage;","import * as React from 'react';\r\nimport isEqual from 'react-fast-compare';\r\nimport { Seat } from '../../../classes/seat';\r\nimport { SeatingOption } from '../../../classes/seating-option';\r\nimport { IAppSettingsModel } from '../../../reducers/fetch-settings-reducer';\r\nimport SeatInfoOptions from './seat-info-options';\r\n\r\nexport interface ISeatInfoOptionsContainerProps {\r\n seat: Seat;\r\n appSettingsModel: IAppSettingsModel;\r\n onSelectSeatingOption: (seatingOptions: SeatingOption[], groupId: string) => void;\r\n selectedSeatingOptions: Array<SeatingOption>;\r\n requestingSeatView: boolean;\r\n isGAZone?: boolean;\r\n}\r\n\r\nclass SeatInfoOptionsContainer extends React.Component<ISeatInfoOptionsContainerProps, any>{\r\n static defaultProps = {\r\n isGAZone: false\r\n }\r\n\r\n shouldComponentUpdate(nextProps: ISeatInfoOptionsContainerProps) {\r\n return !isEqual({ seat: this.props.seat, selectedSeatingOptions: this.props.selectedSeatingOptions },\r\n { seat: nextProps.seat, selectedSeatingOptions: nextProps.selectedSeatingOptions })\r\n }\r\n\r\n render() {\r\n return (<SeatInfoOptions {...this.props}\r\n seatingOptionGroup={this.props.seat.seatingOptionGroup}\r\n requestingSeatView={this.props.requestingSeatView}\r\n />);\r\n }\r\n}\r\n\r\nexport default SeatInfoOptionsContainer;","import * as React from 'react';\r\n\r\nimport { IAppSettingsModel } from '../../../reducers/fetch-settings-reducer';\r\nimport { SeatingOption, SeatingOptionGroup } from '../../../classes/seating-option';\r\n\r\nimport CheckBoxGroup from '../../../common/checkbox/checkbox-group';\r\nimport RadioGroup from '../../../common/radio/radio-group';\r\n\r\nexport interface ISeatInfoOptionsProps {\r\n seatingOptionGroup: SeatingOptionGroup;\r\n appSettingsModel: IAppSettingsModel;\r\n onSelectSeatingOption: (seatingOptions: SeatingOption[], groupId: string) => void;\r\n selectedSeatingOptions: Array<SeatingOption>;\r\n requestingSeatView: boolean;\r\n isGAZone?: boolean;\r\n}\r\n\r\nclass SeatInfoOptions extends React.Component<ISeatInfoOptionsProps, any>{\r\n static defaultProps = {\r\n isGAZone: false\r\n }\r\n\r\n render() {\r\n\r\n if (this.props.seatingOptionGroup == null) {\r\n return null;\r\n }\r\n\r\n return (\r\n <div className=\"seat-info-options\">\r\n {\r\n // For each seating group, create radio buttons.\r\n !this.props.seatingOptionGroup.isCheckbox ?\r\n <RadioGroup disabled={false} key={this.props.seatingOptionGroup.id} id={this.props.seatingOptionGroup.id}\r\n stateChangeFunction={this.props.onSelectSeatingOption.bind(this)}\r\n selectedOptions={this.props.selectedSeatingOptions} group={this.props.seatingOptionGroup} />\r\n :\r\n <CheckBoxGroup key={this.props.seatingOptionGroup.id} id={this.props.seatingOptionGroup.id}\r\n stateChangeFunction={this.props.onSelectSeatingOption}\r\n selectedOptions={this.props.selectedSeatingOptions} group={this.props.seatingOptionGroup}\r\n allText=\"\" showAllOption={false}\r\n />\r\n }\r\n </div>\r\n );\r\n }\r\n}\r\n\r\nexport default SeatInfoOptions;","import flatMap from 'lodash/flatMap';\r\nimport uniqBy from 'lodash/uniqBy';\r\n\r\nimport * as React from 'react';\r\nimport isEqual from 'react-fast-compare';\r\nimport { connect } from 'react-redux';\r\nimport { maxTicketsThresholdReached, resetmaxTicketsThreshold } from '../../../cart/actions/cart-actions';\r\nimport { PriceType } from '../../../classes/price-type';\r\nimport { CartSeat, Seat, SeatPriceQuantity, SeatZone } from '../../../classes/seat';\r\nimport { IOption, IOptionGroup } from '../../../classes/seating-option';\r\nimport RadioGroup from '../../../common/radio/radio-group';\r\nimport { CartHelpers } from '../../../helpers/cart-helpers';\r\nimport { getCurrencyFormat } from '../../../helpers/currency-format';\r\nimport { IAppState } from '../../../reducers';\r\nimport { IAppSettingsModel } from '../../../reducers/fetch-settings-reducer';\r\nimport PriceTypeQuantities from '../price-type-quantities';\r\n\r\n\r\nclass PriceTypeOption implements IOption {\r\n public id: string;\r\n public name: string;\r\n public selected: boolean = false;\r\n public price: SeatPriceQuantity;\r\n}\r\n\r\nclass PriceTypeOptionGroup implements IOptionGroup {\r\n public id: string;\r\n public name: string;\r\n public isCheckbox: boolean;\r\n public seatLimit: number;\r\n public seatLimitText: string;\r\n public groupSeatSelectedQuantity: number;\r\n public groupSelected: boolean;\r\n public options: Array<PriceTypeOption>;\r\n public selectedOptionId: string;\r\n}\r\n\r\nexport interface StateToProps {\r\n seats: Array<Seat>;\r\n cartSeats: Array<CartSeat>;\r\n levelPricing: Array<SeatZone>;\r\n appSettingsModel: IAppSettingsModel;\r\n defaultPTQuantities: Array<SeatPriceQuantity>;\r\n //onSelectPricing: (priceQuantities: SeatPriceQuantity[]) => any;\r\n isGAZone?: boolean;\r\n};\r\n\r\nexport interface OwnProps {\r\n selectedPriceQuantities: Array<SeatPriceQuantity>;\r\n selectedPriceTypes: Array<PriceType>;\r\n onSelectPricing: (priceQuantities: SeatPriceQuantity[]) => any;\r\n store?: any;\r\n}\r\n\r\ninterface DispatchToProps {\r\n resetMaxTicketsThreshold: () => any;\r\n maxTicketsThresholdReached: (errorPricesText: string) => any;\r\n}\r\n\r\nexport type ISeatInfoPricesProps = StateToProps & DispatchToProps & OwnProps;\r\n\r\nclass SeatInfoPrices extends React.Component<ISeatInfoPricesProps, null>{\r\n static defaultProps = {\r\n isGAZone: false\r\n }\r\n\r\n componentWillMount() {\r\n this.props.resetMaxTicketsThreshold();\r\n }\r\n\r\n shouldComponentUpdate(nextProps: ISeatInfoPricesProps, nextState) {\r\n return this.props.cartSeats.length != nextProps.cartSeats.length\r\n || this.props.seats.length != nextProps.seats.length\r\n || !isEqual(this.props, nextProps);\r\n }\r\n\r\n componentWillReceiveProps(nextProps: ISeatInfoPricesProps) {\r\n if (this.props.cartSeats.length != nextProps.cartSeats.length) {\r\n this.updateMaxTicketErrorMessaging(nextProps);\r\n }\r\n }\r\n\r\n updateMaxTicketErrorMessaging(props: ISeatInfoPricesProps) {\r\n const maxedOutPrices = props.defaultPTQuantities.filter(pt => CartHelpers.maxSeatsInCart(pt.seatPricing.priceTypeId, props.cartSeats, props.appSettingsModel.priceTypeSettings));\r\n if (maxedOutPrices.length == 0) {\r\n props.resetMaxTicketsThreshold();\r\n } else {\r\n const errorPricesText = this.getErrorPricesText(maxedOutPrices);\r\n props.maxTicketsThresholdReached(errorPricesText);\r\n }\r\n }\r\n\r\n getErrorPricesText(prices: SeatPriceQuantity[]) {\r\n if (prices.length == 1) {\r\n return prices[0].seatPricing.priceTypeDescription;\r\n } else {\r\n return \"several price types\";\r\n }\r\n }\r\n\r\n getSelectedPriceTypeId(): number {\r\n if (this.props.selectedPriceQuantities != null && this.props.selectedPriceQuantities.length > 0\r\n && this.props.selectedPriceQuantities[0].seatPricing !== undefined) {\r\n return this.props.selectedPriceQuantities[0].seatPricing.priceTypeId;\r\n }\r\n return 0;\r\n }\r\n\r\n getPriceTypeOptions() {\r\n let priceTypes = this.props.defaultPTQuantities;\r\n var activeSeatInCart = this.props.cartSeats.filter(cartSeat => this.props.seats.some(seat => seat.seatId === cartSeat.seatId));\r\n\r\n var priceTypeCarted = null;\r\n\r\n if (activeSeatInCart.length > 0) {\r\n priceTypeCarted = activeSeatInCart[0].selectedPricing.priceTypeId;\r\n }\r\n\r\n let priceTypeOptionArray: Array<PriceTypeOption> = priceTypes.map(price => {\r\n var option = {\r\n id: price.seatPricing.priceTypeId.toString(),\r\n price: price,\r\n name: `${getCurrencyFormat(this.props.appSettingsModel.currencyFormat, price.seatPricing.price + price.seatPricing.feeAmount)} - ${price.seatPricing.priceTypeDescription}`,\r\n selected: price.quantity > 0\r\n } as PriceTypeOption;\r\n\r\n if (priceTypeCarted !== null && price.seatPricing.priceTypeId === priceTypeCarted && priceTypes.filter(pt => pt.quantity > 0).length === 0) {\r\n option.selected = true;\r\n }\r\n return option;\r\n });\r\n\r\n return priceTypeOptionArray;\r\n }\r\n\r\n render() {\r\n let body: JSX.Element;\r\n\r\n const priceTypeOptionGroup: PriceTypeOptionGroup = {\r\n id: \"priceTypesForSeat\",\r\n name: \"priceTypesForSeat\",\r\n isCheckbox: false,\r\n options: this.getPriceTypeOptions(),\r\n selectedOptionId: this.getSelectedPriceTypeId().toString()\r\n } as PriceTypeOptionGroup;\r\n\r\n if (this.props.isGAZone) {\r\n //need to take into account global max for ga zones this.props.appSettingsModel.maxTicketQuantity\r\n return <PriceTypeQuantities {...this.props} />\r\n\r\n } else if (this.props.defaultPTQuantities.length === 1) {\r\n let priceDisplay = \"\";\r\n const price = this.props.defaultPTQuantities[0].seatPricing;\r\n if (this.props.defaultPTQuantities[0].seatPricing.price === 0 && this.props.appSettingsModel.exchangeFreeLabel.length > 0) {\r\n priceDisplay = this.props.appSettingsModel.exchangeFreeLabel;\r\n } else { \r\n priceDisplay = getCurrencyFormat(this.props.appSettingsModel.currencyFormat, price.price + price.feeAmount);\r\n }\r\n\r\n if (this.props.appSettingsModel.displaySeatFee) {\r\n body = (\r\n <div>\r\n <span className=\"seat-info-prices-list-text\">{priceDisplay} - {price.priceTypeDescription}</span> \r\n <div className=\"small-italic\">\r\n <p>{this.props.appSettingsModel.ticketCostText} {getCurrencyFormat(this.props.appSettingsModel.currencyFormat, price.price)}</p>\r\n <p>{this.props.appSettingsModel.feeAmountText} {getCurrencyFormat(this.props.appSettingsModel.currencyFormat, price.feeAmount)}</p>\r\n </div>\r\n </div>\r\n );\r\n }\r\n else {\r\n body = <span className=\"seat-info-prices-list-text\">{priceDisplay} - {price.priceTypeDescription}</span>\r\n }\r\n } else {\r\n /*TODO: May need to add fee display to radio */\r\n body = (\r\n <RadioGroup disabled={false} group={priceTypeOptionGroup} stateChangeFunction={this._onPriceButtonClick} />\r\n );\r\n }\r\n\r\n return (\r\n <div className=\"seat-info-prices\">\r\n <div className=\"seat-info-prices-list\">\r\n {body}\r\n </div>\r\n </div>\r\n );\r\n }\r\n\r\n _onPriceButtonClick = (selectedRadio) => {\r\n this.props.onSelectPricing([{ ...selectedRadio[0].price, quantity: 1 }]);\r\n };\r\n}\r\n\r\nfunction getSelectedPrices(state: IAppState, levelPricing, priceTypeSettings: Array<PriceType>, seats: Array<Seat>, selectedPriceQuantities, selectedPriceTypes, isGAZone: boolean): Array<SeatPriceQuantity> {\r\n const zonePrices = levelPricing.filter(pricing =>\r\n seats.map(seat => seat.tessituraSeat.zoneId)\r\n .some(zoneId => zoneId === pricing.zoneId.toString()));\r\n\r\n let selectedPrices = uniqBy(flatMap(zonePrices, zone => zone.prices.map(price => {\r\n price.zoneId = zone.zoneId;\r\n return price;\r\n })), 'priceTypeId');\r\n\r\n if (!isGAZone) {\r\n const selectedPriceTypeIds = selectedPriceTypes.map(pt => {\r\n return pt.priceTypeId;\r\n });\r\n\r\n selectedPrices = selectedPrices.filter(price => {\r\n return selectedPriceTypeIds.indexOf(+price.priceTypeId) >= 0;\r\n });\r\n } else {\r\n }\r\n\r\n //let filteredPrices = selectedPrices.filter(price =>\r\n // props.appSettingsModel.priceTypeSettings.filter(ptSetting => ptSetting.priceTypeId === +price.priceTypeId)[0].maxQuantity <= 0);\r\n\r\n return selectedPrices.filter(price => priceTypeSettings.filter(ptSetting => ptSetting.priceTypeId === +price.priceTypeId).length > 0)\r\n .map(price => {\r\n let priceTypeSettingMax = priceTypeSettings.filter(ptSetting => ptSetting.priceTypeId === +price.priceTypeId)[0];\r\n let selectedPriceQuantity = selectedPriceQuantities.filter(selectedPQ => selectedPQ.seatPricing !== undefined && selectedPQ.seatPricing.priceTypeId === price.priceTypeId)[0];\r\n\r\n return {\r\n seatPricing: price,\r\n maxQuantity: Math.min((priceTypeSettingMax.clientMaxQuantity > 0 ? priceTypeSettingMax.clientMaxQuantity : 100), seats.filter(seat => +seat.tessituraSeat.zoneId === price.zoneId).length, price.maxSeats),\r\n quantity: selectedPriceQuantity === undefined ? 0 : selectedPriceQuantity.quantity\r\n }\r\n })\r\n}\r\n\r\nfunction mapStateToProps(state: IAppState, ownProps: OwnProps): StateToProps {\r\n var selectedSeats = state.seatMapModel.selectedSeats;\r\n var isGaZone = state.seatMapModel.selectedSeats.length > 1;\r\n return {\r\n defaultPTQuantities: getSelectedPrices(state,\r\n state.seatMapModel.allSeatPricing,\r\n state.appSettingsModel.priceTypeSettings,\r\n selectedSeats,\r\n ownProps.selectedPriceQuantities,\r\n ownProps.selectedPriceTypes,\r\n isGaZone\r\n ),\r\n appSettingsModel: state.appSettingsModel,\r\n cartSeats: state.cartModel.seats,\r\n isGAZone: isGaZone,\r\n levelPricing: state.seatMapModel.allSeatPricing,\r\n seats: selectedSeats\r\n }\r\n}\r\n\r\nfunction mapDispatchToProps(dispatch: any): DispatchToProps {\r\n return {\r\n resetMaxTicketsThreshold: () => dispatch(resetmaxTicketsThreshold()),\r\n maxTicketsThresholdReached: (errorPricesText) => dispatch(maxTicketsThresholdReached(true, errorPricesText))\r\n }\r\n}\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(SeatInfoPrices);\r\n\r\n","import flatMap from 'lodash/flatMap';\r\nimport flatten from 'lodash/flatten';\r\nimport orderBy from 'lodash/orderBy';\r\nimport uniqBy from 'lodash/uniqBy';\r\n\r\nimport * as React from 'react';\r\nimport isEqual from 'react-fast-compare';\r\nimport {\r\n addSeatToCart, flagQuantityAsModified, maxTicketsThresholdReached, removeSeatFromCart,\r\n resetflexTicketsThreshold, setCartUpdated, updateFlexMessaging\r\n} from '../../../cart/actions/cart-actions';\r\nimport { ItemType } from '../../../classes/item-type';\r\nimport { PriceType } from '../../../classes/price-type';\r\nimport { CartSeat, Seat, SeatPriceQuantity, SeatPricing, SeatZone } from '../../../classes/seat';\r\nimport { SeatingOption } from '../../../classes/seating-option';\r\nimport { ZoneUpsell } from '../../../classes/zone-upsell';\r\nimport { IAdditionalSeatingOptionModel } from '../../../filter/reducers/filter-reducers';\r\nimport { CartHelpers } from '../../../helpers/cart-helpers';\r\nimport isMobile from '../../../helpers/is-mobile';\r\nimport { IExchangeSettingsModel } from '../../../reducers/exchange-reducer';\r\nimport { IAppSettingsModel } from '../../../reducers/fetch-settings-reducer';\r\nimport { checkSpecialSeatingSeatLimit, checkUnlockSeatConditions, openSeatmapCart, resetZoneUpsellCount, selectPriceTypeQuantities } from '../../actions/seatmap-actions';\r\nimport { isSingleClick } from '../../helpers/seatmap-helpers';\r\nimport { ISeatMapModel } from '../../reducers/seatmap-reducer';\r\nimport SeatingInfo from './seating-info';\r\n\r\n\r\n\r\ninterface ISeatingInfoContainerProps {\r\n additionalSeatingOptionModel: IAdditionalSeatingOptionModel;\r\n appSettingsModel: IAppSettingsModel;\r\n cartSeats: Array<CartSeat>;\r\n cartUpdated: boolean;\r\n selectedPriceTypes: Array<PriceType>;\r\n activeSeats: Array<Seat>;\r\n levelPricing: Array<SeatZone>;\r\n dispatch: any;\r\n viewFromSeatModalActive: boolean;\r\n maxQuantityPriceTypeError: boolean;\r\n maxQuantitySeatingOptionError: boolean;\r\n flexQuantityPriceTypeError: boolean;\r\n flexMinQuantityError: boolean;\r\n flexMaxQuantityErrorAllTickets: boolean;\r\n flexMaxQuantityErrorPriceType: boolean;\r\n quantityHasBeenModified: boolean;\r\n seatmapModel: ISeatMapModel;\r\n isGAZone?: boolean;\r\n exchangeModel: IExchangeSettingsModel;\r\n zoneUpsell: ZoneUpsell;\r\n seats: Array<Seat>;\r\n onCloseZoneUpsell: () => any;\r\n onToggleSeatingInfoOpen: () => any;\r\n selectedPriceTypeQuantities: Array<SeatPriceQuantity>;\r\n hidingUpsell: boolean;\r\n\r\n showOverlay: boolean;\r\n closeOverlays: () => void;\r\n showSeatingInfo: boolean;\r\n\r\n}\r\n\r\ninterface ISeatingInfoContainerState {\r\n selectedSeat: boolean;\r\n confirmedSeat: boolean,\r\n selectedPriceQuantities: Array<SeatPriceQuantity>,\r\n selectedSeatingOptions: Array<SeatingOption>,\r\n needPriceTypeError: boolean,\r\n needSeatingOptionError: boolean,\r\n previousSelectedSeats: Array<Seat>,\r\n noMoreExchangeableTicketsError: boolean,\r\n selectedSeatsPreferenceUpdated: boolean\r\n}\r\n\r\n/**\r\n * Return boolean based on whether or not the input seat has any option groups attached.\r\n * @param seat\r\n */\r\nclass SeatingInfoContainer extends React.Component<ISeatingInfoContainerProps, ISeatingInfoContainerState>{\r\n static defaultProps = {\r\n isGAZone: false\r\n }\r\n\r\n shouldComponentUpdate(nextProps: ISeatingInfoContainerProps, nextState) {\r\n const oldValue = {\r\n activeSeats: this.props.activeSeats,\r\n additionalSeatingOptionModel: this.props.additionalSeatingOptionModel,\r\n cartSeats: this.props.cartSeats,\r\n cartUpdated: this.props.cartUpdated,\r\n flexMaxQuantityErrorAllTickets: this.props.flexMaxQuantityErrorAllTickets,\r\n flexMaxQuantityErrorPriceType: this.props.flexMaxQuantityErrorPriceType,\r\n flexMinQuantityError: this.props.flexMinQuantityError,\r\n flexQuantityPriceTypeError: this.props.flexQuantityPriceTypeError,\r\n maxQuantityPriceTypeError: this.props.maxQuantityPriceTypeError,\r\n maxQuantitySeatingOptionError: this.props.maxQuantitySeatingOptionError,\r\n selectedPriceTypes: this.props.selectedPriceTypes,\r\n viewFromSeatModalActive: this.props.viewFromSeatModalActive,\r\n requestingSeatView: this.props.seatmapModel.requestingSeatView,\r\n showSeatingInfo: this.props.showSeatingInfo,\r\n confirmedAttestation: this.props.seatmapModel.confirmedAttestation\r\n };\r\n\r\n const newValue = {\r\n activeSeats: nextProps.activeSeats,\r\n additionalSeatingOptionModel: nextProps.additionalSeatingOptionModel,\r\n cartSeats: nextProps.cartSeats,\r\n cartUpdated: nextProps.cartUpdated,\r\n flexMaxQuantityErrorAllTickets: nextProps.flexMaxQuantityErrorAllTickets,\r\n flexMaxQuantityErrorPriceType: nextProps.flexMaxQuantityErrorPriceType,\r\n flexMinQuantityError: nextProps.flexMinQuantityError,\r\n flexQuantityPriceTypeError: nextProps.flexQuantityPriceTypeError,\r\n maxQuantityPriceTypeError: nextProps.maxQuantityPriceTypeError,\r\n maxQuantitySeatingOptionError: nextProps.maxQuantitySeatingOptionError,\r\n selectedPriceTypes: nextProps.selectedPriceTypes,\r\n viewFromSeatModalActive: nextProps.viewFromSeatModalActive,\r\n requestingSeatView: nextProps.seatmapModel.requestingSeatView,\r\n showSeatingInfo: nextProps.showSeatingInfo,\r\n confirmedAttestation: nextProps.seatmapModel.confirmedAttestation\r\n };\r\n\r\n return !isEqual(oldValue, newValue) || !isEqual(this.state, nextState);\r\n }\r\n\r\n private get hasConfirmPrompt(): boolean {\r\n return this.props.activeSeats[0].seatStyleCulture.confirmPrompt !== null;\r\n }\r\n\r\n private get isInCart(): boolean {\r\n if (this.props.cartSeats.length === 0)\r\n return false;\r\n else {\r\n var isInCart = this.props.cartSeats.some(cartSeat => this.props.activeSeats.some(seat => cartSeat.seatId === seat.seatId));\r\n return isInCart;\r\n }\r\n }\r\n\r\n //should only be for single seats not GA zones\r\n private getSelectedSeatingOptionFromFilters(props: ISeatingInfoContainerProps) {\r\n const selectedAdditionalSeatingOption = flatten(props.additionalSeatingOptionModel.additionalSeatingOptions\r\n .map(group => group.options)).filter(option => option.selected);\r\n\r\n const selectedSeatingOptionForSeat =\r\n props.activeSeats[0].seatingOptionGroup !== null ?\r\n flatten(props.activeSeats[0].seatingOptionGroup.options\r\n .filter(seatingOption => selectedAdditionalSeatingOption.map(option => option.id).indexOf(seatingOption.id) >= 0)).map(option => {\r\n option.selected = true;\r\n return option;\r\n }) : [];\r\n\r\n return selectedSeatingOptionForSeat;\r\n }\r\n\r\n constructor(props) {\r\n super(props);\r\n\r\n const selectedOptions = this.getSelectedSeatingOptionFromFilters(props);\r\n\r\n this.state = {\r\n selectedSeat: false,\r\n confirmedSeat: false,\r\n selectedPriceQuantities: this.getSelectedPrices(props),\r\n selectedSeatingOptions: selectedOptions,\r\n needPriceTypeError: false,\r\n needSeatingOptionError: selectedOptions.length === 0 && this.seatContainsSeatingOptions(props.activeSeats[0]),\r\n previousSelectedSeats: null,\r\n noMoreExchangeableTicketsError: false,\r\n selectedSeatsPreferenceUpdated: false\r\n };\r\n }\r\n\r\n componentWillReceiveProps(nextProps: ISeatingInfoContainerProps) {\r\n const cartSeats = this.getSeatsInCart(nextProps);\r\n let activeSeatsInCart = [];\r\n\r\n if (cartSeats != null) {\r\n activeSeatsInCart = uniqBy(cartSeats.map(cartSeat => {\r\n return {\r\n seatPricing: cartSeat.selectedPricing,\r\n quantity: cartSeats.filter(cS => cS.selectedPricing.priceTypeId === cartSeat.selectedPricing.priceTypeId).length\r\n }\r\n }), selectedSeat => selectedSeat.seatPricing.priceTypeId);\r\n }\r\n\r\n const newSeat = (this.state.previousSelectedSeats)\r\n && !this.state.previousSelectedSeats.every(prevSeat => {\r\n return nextProps.activeSeats.some(activeSeat => activeSeat.seatId === prevSeat.seatId);\r\n });\r\n\r\n if (this.state.previousSelectedSeats === null || newSeat || nextProps.cartUpdated) {\r\n let selectedOptions = this.getSelectedSeatingOptionFromFilters(nextProps);\r\n if (selectedOptions.length === 0) {\r\n selectedOptions = this.getSelectedSeatingOptions();\r\n }\r\n\r\n var newSelectedPriceQuantities = [];\r\n if (this.getSeatsInCart(nextProps) != null) {\r\n this.props.dispatch(selectPriceTypeQuantities(activeSeatsInCart, nextProps.appSettingsModel.itemType === ItemType.Flex || nextProps.appSettingsModel.itemType === ItemType.Super))\r\n } else {\r\n this.props.dispatch(selectPriceTypeQuantities(this.getSelectedPrices(nextProps), nextProps.appSettingsModel.itemType === ItemType.Flex || nextProps.appSettingsModel.itemType === ItemType.Super));\r\n }\r\n this.props.dispatch(setCartUpdated(false));\r\n\r\n this.setState({\r\n selectedSeat: newSeat ? false : this.state.selectedSeat,\r\n selectedPriceQuantities: this.getSeatsInCart(nextProps) != null ? activeSeatsInCart : this.getSelectedPrices(nextProps),\r\n selectedSeatingOptions: selectedOptions,\r\n needSeatingOptionError: selectedOptions.length === 0 && this.seatContainsSeatingOptions(nextProps.activeSeats[0]),\r\n previousSelectedSeats: nextProps.activeSeats,\r\n });\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n isMobile() ?\r\n <div className={'seatmap-content-info ' + (this.props.showOverlay ? \" filters-open\" : \"\")} >\r\n <SeatingInfo {...this.props}\r\n isSingleClick={this.isSingleClickProp()}\r\n selectedSeatingOptions={this.getSelectedSeatingOptions()}\r\n isSelectedSeat={this.state.selectedSeat}\r\n hasConfirmPrompt={this.hasConfirmPrompt}\r\n isExchange={this.isExchange()}\r\n isInCart={this.isInCart}\r\n onCancelConfirmClick={this._onCancelConfirmClick.bind(this)}\r\n onConfirmSeatClick={this._onConfirmSeatClick.bind(this)}\r\n onSelectPricing={this._onSelectPricing}\r\n onSelectSeatClick={this._onSelectSeatClick.bind(this)}\r\n onSelectSeatDisabledClick={this.onSelectSeatDisabledClick.bind(this)}\r\n onSelectSeatInCartClick={this.onSelectSeatInCartClick.bind(this)}\r\n onSelectSeatingOption={this._onSelectSeatingOption.bind(this)}\r\n onToggleSeatingInfoOpen={this.props.onToggleSeatingInfoOpen.bind(this)}\r\n selectedPriceQuantities={this.state.selectedPriceQuantities}\r\n needPriceTypeError={this.state.needPriceTypeError}\r\n needSeatingOptionError={this.state.needSeatingOptionError}\r\n noMoreExchangeableTicketsError={this.state.noMoreExchangeableTicketsError}\r\n selectedSeatsPreferenceUpdated={this.state.selectedSeatsPreferenceUpdated}\r\n confirmPromptText={this.props.activeSeats[0].seatStyleCulture.confirmPrompt}\r\n exchangeTicketsRemaining={this.props.appSettingsModel.exchangeTickets.length - this.props.cartSeats.length}\r\n additionalPurchasable={this.props.appSettingsModel.exchangeTickets.length - this.props.cartSeats.length}\r\n minQuantityPriceTypeError={this.minQuantityPriceTypeError()}\r\n minQuantityPriceTypeSelectedErrorTextReplace={this.checkForMinQuantity()}\r\n showSeatingInfo={this.props.showSeatingInfo}\r\n selectedPriceTypeQuantities={this.props.selectedPriceTypeQuantities}\r\n onCloseZoneUpsell={this.props.onCloseZoneUpsell}\r\n seats={this.props.seats}\r\n zoneUpsell={this.props.zoneUpsell}\r\n hidingUpsell={this.props.hidingUpsell}\r\n />\r\n </div >\r\n :\r\n <>\r\n <SeatingInfo {...this.props}\r\n isSingleClick={this.isSingleClickProp()}\r\n selectedSeatingOptions={this.getSelectedSeatingOptions()}\r\n isSelectedSeat={this.state.selectedSeat}\r\n hasConfirmPrompt={this.hasConfirmPrompt}\r\n isExchange={this.isExchange()}\r\n isInCart={this.isInCart}\r\n onCancelConfirmClick={this._onCancelConfirmClick.bind(this)}\r\n onConfirmSeatClick={this._onConfirmSeatClick.bind(this)}\r\n onSelectPricing={this._onSelectPricing}\r\n onSelectSeatClick={this._onSelectSeatClick.bind(this)}\r\n onSelectSeatDisabledClick={this.onSelectSeatDisabledClick.bind(this)}\r\n onSelectSeatInCartClick={this.onSelectSeatInCartClick.bind(this)}\r\n onSelectSeatingOption={this._onSelectSeatingOption.bind(this)}\r\n onToggleSeatingInfoOpen={this.props.onToggleSeatingInfoOpen.bind(this)}\r\n selectedPriceQuantities={this.state.selectedPriceQuantities}\r\n needPriceTypeError={this.state.needPriceTypeError}\r\n needSeatingOptionError={this.state.needSeatingOptionError}\r\n noMoreExchangeableTicketsError={this.state.noMoreExchangeableTicketsError}\r\n selectedSeatsPreferenceUpdated={this.state.selectedSeatsPreferenceUpdated}\r\n confirmPromptText={this.props.activeSeats[0].seatStyleCulture.confirmPrompt}\r\n exchangeTicketsRemaining={this.props.appSettingsModel.exchangeTickets.length - this.props.cartSeats.length}\r\n additionalPurchasable={this.props.appSettingsModel.exchangeTickets.length - this.props.cartSeats.length}\r\n minQuantityPriceTypeError={this.minQuantityPriceTypeError()}\r\n minQuantityPriceTypeSelectedErrorTextReplace={this.checkForMinQuantity()}\r\n showSeatingInfo={this.props.showSeatingInfo}\r\n selectedPriceTypeQuantities={this.props.selectedPriceTypeQuantities}\r\n onCloseZoneUpsell={this.props.onCloseZoneUpsell}\r\n seats={this.props.seats}\r\n zoneUpsell={this.props.zoneUpsell}\r\n hidingUpsell={this.props.hidingUpsell}\r\n />\r\n </>\r\n );\r\n }\r\n\r\n isSingleClickProp() {\r\n const zonePrice = this.props.seatmapModel.allSeatPricing.filter(pricing =>\r\n pricing.zoneId.toString() === this.props.seatmapModel.selectedSeats[0].tessituraSeat.zoneId);\r\n\r\n let selectedPriceTypeIds = this.props.selectedPriceTypes.map(pt => {\r\n return pt.priceTypeId;\r\n });\r\n let availablePrices = [];\r\n\r\n if (zonePrice.length > 0) {\r\n availablePrices = zonePrice[0].prices;\r\n\r\n //if (!this.props.appSettingsModel) {\r\n availablePrices = availablePrices.filter(price => {\r\n return selectedPriceTypeIds.indexOf(+price.priceTypeId) >= 0;\r\n });\r\n }\r\n //}\r\n\r\n return isSingleClick(this.props.appSettingsModel.disableOneClick,\r\n this.props.appSettingsModel.enableZoneUpsells,\r\n this.props.appSettingsModel.zoneUpsellEnableForMobile,\r\n this.props.seatmapModel.selectedSeats,\r\n this.props.seatmapModel.zoneUpsells,\r\n this.props.seatmapModel.selectedPriceQuantities,\r\n availablePrices\r\n );\r\n }\r\n\r\n getSelectedSeatingOptions() {\r\n const searchSeatInCart = this.props.cartSeats.filter(seat => {\r\n return seat.seatId === this.props.activeSeats[0].seatId;\r\n });\r\n const seatInCart = searchSeatInCart.length > 0 ? searchSeatInCart[0] : null;\r\n\r\n return seatInCart != null ? (seatInCart.selectedSeatingOptions !== undefined ? seatInCart.selectedSeatingOptions : []) : this.state.selectedSeatingOptions;\r\n }\r\n\r\n _onSelectSeatClick() {\r\n var cart = document.getElementById('cartIcon');\r\n if (cart != null) {\r\n cart.classList.remove('grow');\r\n }\r\n if (CartHelpers.isSetQuantityPackage(this.props.appSettingsModel)) {\r\n this.resetFlexTickets();\r\n }\r\n\r\n if (this.state.selectedPriceQuantities == null) {\r\n this.setState({\r\n ...this.state,\r\n needPriceTypeError: true,\r\n needSeatingOptionError: this.state.selectedSeatingOptions.length === 0 && this.seatContainsSeatingOptions(this.props.activeSeats[0]),\r\n noMoreExchangeableTicketsError: this.state.noMoreExchangeableTicketsError\r\n });\r\n } else {\r\n if (!this.hasConfirmPrompt || this.state.confirmedSeat\r\n // check to see if it has already been attested\r\n || (this.props.appSettingsModel.showAttestationOnlyOnce && this.props.seatmapModel.confirmedAttestation.indexOf(this.props.activeSeats[0].seatStyleCulture.confirmPrompt) >= 0)) {\r\n this._onConfirmSeatClick();\r\n } else {\r\n this.setState({\r\n ...this.state,\r\n selectedSeat: true,\r\n needSeatingOptionError: this.state.selectedSeatingOptions.length === 0 && this.seatContainsSeatingOptions(this.props.activeSeats[0]),\r\n });\r\n }\r\n }\r\n }\r\n\r\n onSelectSeatDisabledClick = () => {\r\n let seatInfoContainer = document.getElementsByClassName('seat-info-container-main')[0] as HTMLElement;\r\n seatInfoContainer.scrollBy({\r\n top: seatInfoContainer.scrollHeight,\r\n left: 0,\r\n behavior: 'smooth'\r\n });\r\n\r\n this.setState({\r\n ...this.state,\r\n selectedSeat: false,\r\n needSeatingOptionError: this.state.selectedSeatingOptions.length === 0 && this.seatContainsSeatingOptions(this.props.activeSeats[0]),\r\n });\r\n }\r\n\r\n onSelectSeatInCartClick = () => {\r\n this.props.dispatch(openSeatmapCart(false));\r\n }\r\n\r\n _onCancelConfirmClick() {\r\n this.setState({\r\n ...this.state,\r\n selectedSeat: false,\r\n confirmedSeat: false,\r\n needPriceTypeError: false,\r\n needSeatingOptionError: this.state.selectedSeatingOptions.length === 0 && this.seatContainsSeatingOptions(this.props.activeSeats[0]),\r\n });\r\n }\r\n\r\n _onConfirmSeatClick() {\r\n if (this.state.selectedPriceQuantities !== null) {\r\n this.props.dispatch(flagQuantityAsModified());\r\n\r\n let selectedPricings = [...this.state.selectedPriceQuantities.filter(pq => pq.quantity > 0)];\r\n\r\n let priceTypeSeatsInCart =\r\n selectedPricings.map(pr => {\r\n return {\r\n priceTypeId: pr.seatPricing.priceTypeId,\r\n cartSeats:\r\n this.props.cartSeats.filter(seat => pr.seatPricing.priceTypeId === seat.selectedPricing.priceTypeId)\r\n };\r\n });\r\n\r\n let selectedPriceTypesMinMaxQuantities = selectedPricings.map(pr => {\r\n return {\r\n priceTypeId: pr.seatPricing.priceTypeId,\r\n minQuantity: -1,\r\n maxQuantity:\r\n this.props.appSettingsModel.priceTypeSettings.filter(pt => {\r\n return pt.priceTypeId === pr.seatPricing.priceTypeId;\r\n })[0].clientMaxQuantity\r\n }\r\n });\r\n\r\n if (this.props.appSettingsModel.itemType === ItemType.Flex || this.props.appSettingsModel.itemType === ItemType.Super) {\r\n selectedPriceTypesMinMaxQuantities = selectedPriceTypesMinMaxQuantities.map(minMax => {\r\n minMax.maxQuantity = this.props.selectedPriceTypes.filter(pt => pt.priceTypeId === minMax.priceTypeId)[0].selectedQuantity;\r\n minMax.minQuantity = this.props.selectedPriceTypes.filter(pt => pt.priceTypeId === minMax.priceTypeId)[0].selectedQuantity;\r\n return minMax;\r\n });\r\n }\r\n\r\n // the selected seat has an unlock criteria and has a limit based on the number of the unlock seat in the cart\r\n if (this.props.activeSeats[0].seatingOptionGroup != null && this.props.activeSeats[0].seatingOptionGroup.unlockSeatingOptionGroupId !== null && this.props.activeSeats[0].seatingOptionGroup.seatLimitPerUnlockSeat > 0) {\r\n var unlockCriteriaSeatsInCart = this.props.cartSeats.filter(cartSeat => cartSeat.seatingOptionGroup.id === this.props.activeSeats[0].seatingOptionGroup.unlockSeatingOptionGroupId);\r\n var sameUnlockCriteriaSeatsInCart = this.props.cartSeats.filter(cartSeat => cartSeat.seatingOptionGroup.unlockSeatingOptionGroupId !== null\r\n && cartSeat.seatingOptionGroup.unlockSeatingOptionGroupId === this.props.activeSeats[0].seatingOptionGroup.unlockSeatingOptionGroupId);\r\n\r\n if (sameUnlockCriteriaSeatsInCart.length >= (unlockCriteriaSeatsInCart.length * this.props.activeSeats[0].seatingOptionGroup.seatLimitPerUnlockSeat)) {\r\n this.props.dispatch(maxTicketsThresholdReached(false, this.props.activeSeats[0].seatingOptionGroup.name));\r\n this.setState({\r\n ...this.state,\r\n needSeatingOptionError: this.state.selectedSeatingOptions.length === 0 && this.seatContainsSeatingOptions(this.props.activeSeats[0]),\r\n selectedSeat: false\r\n });\r\n\r\n return;\r\n }\r\n }\r\n\r\n // the selected seat has a special seating that has a seat limit\r\n if (!checkUnlockSeatConditions(this.props.activeSeats[0], this.props.cartSeats)) {\r\n this.props.dispatch(maxTicketsThresholdReached(false, this.props.activeSeats[0].seatingOptionGroup.name));\r\n this.setState({\r\n ...this.state,\r\n needSeatingOptionError: this.state.selectedSeatingOptions.length === 0 && this.seatContainsSeatingOptions(this.props.activeSeats[0]),\r\n selectedSeat: false\r\n });\r\n\r\n return;\r\n }\r\n\r\n if (!checkSpecialSeatingSeatLimit(this.props.activeSeats[0], this.props.cartSeats)) {\r\n\r\n this.props.dispatch(maxTicketsThresholdReached(false, this.props.activeSeats[0].seatingOptionGroup.name));\r\n this.setState({\r\n ...this.state,\r\n needSeatingOptionError: this.state.selectedSeatingOptions.length === 0 && this.seatContainsSeatingOptions(this.props.activeSeats[0]),\r\n selectedSeat: false\r\n });\r\n\r\n return;\r\n }\r\n\r\n var priceTypeCheck = selectedPriceTypesMinMaxQuantities.filter(quantity => quantity.maxQuantity !== 0\r\n && priceTypeSeatsInCart.filter(pt => pt.priceTypeId === quantity.priceTypeId)[0].cartSeats.length >= Math.min(quantity.maxQuantity, this.props.appSettingsModel.maxTicketQuantity));\r\n\r\n // Error for when in an exchange and no more tickets can be purchased.\r\n if (this.isExchange() && this.props.cartSeats.length === this.props.appSettingsModel.exchangeTickets.length) {\r\n this.setState({\r\n ...this.state,\r\n needSeatingOptionError: this.state.selectedSeatingOptions.length === 0 && this.seatContainsSeatingOptions(this.props.activeSeats[0]),\r\n noMoreExchangeableTicketsError: true,\r\n selectedSeat: false\r\n });\r\n // When the max quantity for a particular price type has been reached.\r\n }\r\n else if (priceTypeCheck.length == selectedPriceTypesMinMaxQuantities.length) {\r\n\r\n this.setState({\r\n ...this.state,\r\n needSeatingOptionError: this.state.selectedSeatingOptions.length === 0 && this.seatContainsSeatingOptions(this.props.activeSeats[0]),\r\n selectedSeat: false\r\n });\r\n this.props.dispatch(maxTicketsThresholdReached(true, selectedPricings.filter(pr => pr.seatPricing.priceTypeId == priceTypeCheck[0].priceTypeId)[0].seatPricing.priceTypeDescription));\r\n\r\n } else {\r\n // Success branch.\r\n var pricesToBeReserved = this.state.selectedPriceQuantities.filter(priceQuantity => priceQuantity.quantity > 0);\r\n\r\n let availableSeats = this.props.activeSeats.filter(seat => seat.tessituraSeat.isAvailable);\r\n\r\n //remove existing seats of the same path in the cart\r\n let samePathInCartSeats = this.props.cartSeats.filter(cartSeat => cartSeat.svgPathId === availableSeats[0].svgPathId);\r\n\r\n samePathInCartSeats.forEach(samePathCartSeat => {\r\n this.props.dispatch(removeSeatFromCart(samePathCartSeat, this.props.selectedPriceTypes, this.props.appSettingsModel.brandId, true));\r\n });\r\n\r\n let sliceIndex = 0;\r\n pricesToBeReserved.forEach(priceQuantity => {\r\n var seatsToReserve = availableSeats.slice(sliceIndex, sliceIndex + priceQuantity.quantity);\r\n\r\n if (seatsToReserve.length > 1) {\r\n seatsToReserve = seatsToReserve.map(seat => {\r\n let cartSeat = seat as CartSeat;\r\n cartSeat.isGroupedSeat = true;\r\n return cartSeat;\r\n });\r\n }\r\n\r\n sliceIndex = sliceIndex + priceQuantity.quantity;\r\n\r\n seatsToReserve.forEach(seatToReserve => {\r\n let cartSeat = seatToReserve as CartSeat;\r\n\r\n cartSeat.selectedPricing = priceQuantity.seatPricing;\r\n cartSeat.selectedSeatingOptions = this.state.selectedSeatingOptions;\r\n cartSeat.isGroupedSeat = this.props.isGAZone;\r\n\r\n this.props.dispatch(addSeatToCart(cartSeat,\r\n this.props.appSettingsModel.priceTypeSettings,\r\n this.props.appSettingsModel.useOnlyPromoPriceType,\r\n this.props.exchangeModel.activeExchangeTickets,\r\n this.props.exchangeModel.exchangeTickets));\r\n\r\n if (this.props.appSettingsModel.itemType === ItemType.Flex || this.props.appSettingsModel.itemType === ItemType.Super) {\r\n this.props.dispatch(updateFlexMessaging(+(selectedPricings[0].seatPricing.priceTypeId), this.props.selectedPriceTypes));\r\n }\r\n });\r\n });\r\n\r\n this.setState({\r\n ...this.state,\r\n confirmedSeat: false,\r\n selectedSeatsPreferenceUpdated: false,\r\n selectedSeat: false\r\n });\r\n\r\n if (this.props.seatmapModel.seatUpsoldCount > 0) {\r\n this.props.dispatch(resetZoneUpsellCount());\r\n }\r\n }\r\n // Error state for when a pricing isn't selected.\r\n } else {\r\n this.setState({\r\n ...this.state,\r\n needPriceTypeError: true,\r\n needSeatingOptionError: this.state.selectedSeatingOptions.length === 0 && this.seatContainsSeatingOptions(this.props.activeSeats[0]),\r\n });\r\n }\r\n }\r\n\r\n _onSelectPricing = (priceQuantities: Array<SeatPriceQuantity>) => {\r\n\r\n this.setState({\r\n ...this.state,\r\n selectedPriceQuantities: priceQuantities,\r\n needPriceTypeError: false,\r\n needSeatingOptionError: this.state.selectedSeatingOptions.length === 0 && this.seatContainsSeatingOptions(this.props.activeSeats[0]),\r\n selectedSeatsPreferenceUpdated: true\r\n });\r\n\r\n const { itemType } = this.props.appSettingsModel;\r\n\r\n this.props.dispatch(selectPriceTypeQuantities(priceQuantities, itemType === ItemType.Flex || itemType === ItemType.Super));\r\n };\r\n\r\n _onSelectSeatingOption(seatingOptions: Array<SeatingOption>, groupId: string) {\r\n this.setState({\r\n ...this.state,\r\n selectedSeatingOptions: seatingOptions,\r\n needPriceTypeError: false,\r\n needSeatingOptionError: seatingOptions.length === 0 && this.seatContainsSeatingOptions(this.props.activeSeats[0])\r\n });\r\n }\r\n\r\n handleClickOutside = evt => {\r\n if (this.props.showOverlay) {\r\n this.props.closeOverlays();\r\n }\r\n };\r\n\r\n // Seating info helper functions\r\n getSelectedPricesFromFilters(props: ISeatingInfoContainerProps): Array<SeatPriceQuantity> {\r\n const zonePrices = props.levelPricing.filter(pricing =>\r\n props.activeSeats.map(seat => seat.tessituraSeat.zoneId)\r\n .some(zoneId => zoneId === pricing.zoneId.toString()));\r\n\r\n const selectedPriceTypeIds = props.selectedPriceTypes.map(pt => {\r\n return pt.priceTypeId;\r\n });\r\n\r\n if (props.selectedPriceTypes.length === 1) {\r\n const selectedPrices = this.sortSeatPricings(flatMap(zonePrices, zone => zone.prices).filter(price => {\r\n return selectedPriceTypeIds.indexOf(+price.priceTypeId) >= 0;\r\n }));\r\n\r\n return selectedPrices.length > 0 ? [{ seatPricing: selectedPrices[0], quantity: 1 }] : [];\r\n } else if (this.isExchange()) {\r\n const selectedPrices = this.sortSeatPricings(flatMap(zonePrices, zone => zone.prices));\r\n\r\n return selectedPrices.length > 0 ? [{ seatPricing: selectedPrices[0], quantity: 1 }] : [];\r\n } else if (props.selectedPriceTypes.length === 0) {\r\n //This should only happen if the user clicked proceed without selecting a price type/quantity\r\n //so we will return all of the pricing available in the zone\r\n return this.sortSeatPricings(flatMap(zonePrices, zone => zone.prices))\r\n .map(selectedPrices => {\r\n return { seatPricing: selectedPrices[0], quantity: 1 };\r\n });\r\n } else {\r\n //normal path of having multiple price types and for now we will return all of them\r\n let selectedPrices = flatMap(zonePrices, zone => zone.prices);\r\n\r\n if (selectedPriceTypeIds.length > 0) {\r\n selectedPrices = selectedPrices.filter(price => {\r\n return selectedPriceTypeIds.indexOf(+price.priceTypeId) >= 0;\r\n });\r\n }\r\n\r\n const sortedPrices = this.sortSeatPricings(selectedPrices);\r\n\r\n if (sortedPrices.length == 1) {\r\n return sortedPrices.map(p => ({ seatPricing: p, quantity: 1 }));\r\n } else {\r\n return sortedPrices.map(p => ({ seatPricing: p, quantity: 0 }));\r\n }\r\n }\r\n }\r\n\r\n getSelectedPrices(props: ISeatingInfoContainerProps): SeatPriceQuantity[] {\r\n return this.getSelectedPricesFromFilters(props);\r\n }\r\n\r\n getSeatsInCart(props: ISeatingInfoContainerProps): Array<CartSeat> {\r\n let searchSeatInCart = props.cartSeats.filter(seat => {\r\n return props.activeSeats.map(activeSeat => activeSeat.seatId).some(seatId => seatId === seat.seatId);\r\n });\r\n\r\n return searchSeatInCart.length > 0 ? searchSeatInCart : null;\r\n }\r\n\r\n sortSeatPricings(seatPricings: SeatPricing[]): SeatPricing[] {\r\n const sorted = orderBy(seatPricings,\r\n [s => CartHelpers.maxSeatsInCart(s.priceTypeId, this.props.cartSeats, this.props.appSettingsModel.priceTypeSettings),\r\n s => this.reachedSelectedQuantity(s),\r\n s => s.isDefaultPriceType,\r\n s => s.priority > 0,\r\n s => s.priority,\r\n ], ['asc', 'asc', 'desc', 'desc', 'asc']);\r\n return sorted;\r\n }\r\n\r\n reachedSelectedQuantity(seatPricing: SeatPricing): boolean {\r\n const selectedPriceTypeMatches = this.props.selectedPriceTypes.filter(pt => pt.priceTypeId == +seatPricing.priceTypeId);\r\n const seatsInCart = this.props.cartSeats.filter(s => s.selectedPricing.priceTypeId == seatPricing.priceTypeId).length;\r\n if (selectedPriceTypeMatches.length == 0) {\r\n return false;\r\n }\r\n return seatsInCart >= selectedPriceTypeMatches[0].selectedQuantity;\r\n }\r\n\r\n isExchange(): boolean {\r\n return this.props.appSettingsModel.exchangeTickets.length > 0;\r\n }\r\n\r\n seatContainsSeatingOptions(seat: Seat) {\r\n return seat.seatingOptionGroup !== null && seat.seatingOptionGroup.options\r\n .filter(op => op.name != null && op.name.length > 0).length > 0;\r\n }\r\n\r\n getNewSeatingOptions(currSeatingOptions: SeatingOption[], selectedSeatingOption: SeatingOption) {\r\n return uniqBy([selectedSeatingOption].concat(currSeatingOptions), 'id');\r\n }\r\n\r\n resetFlexTickets() {\r\n //this.props.dispatch(resetmaxTicketsThreshold());\r\n this.props.dispatch(resetflexTicketsThreshold());\r\n }\r\n\r\n minQuantityPriceTypeError(): boolean {\r\n return this.checkForMinQuantity().length > 0\r\n && this.props.quantityHasBeenModified;\r\n }\r\n\r\n checkForMinQuantity(): string {\r\n if (this.state.selectedPriceQuantities != null && this.state.selectedPriceQuantities.length > 0) {\r\n var minQuantityRequired = this.state.selectedPriceQuantities.filter(pq => pq.quantity > 0 &&\r\n !CartHelpers.checkPriceTypeForMinQuantities(pq.seatPricing.priceTypeId, this.props.cartSeats, this.props.appSettingsModel.priceTypeSettings));\r\n\r\n if (minQuantityRequired.length > 0) {\r\n return this.props.appSettingsModel.priceTypeSettings.filter(ps => ps.priceTypeId === minQuantityRequired[0].seatPricing.priceTypeId)[0].title;\r\n } else\r\n return \"\";\r\n } else {\r\n return \"\";\r\n }\r\n }\r\n}\r\n\r\nexport default SeatingInfoContainer;","import * as React from 'react';\r\nimport { PriceType } from '../../../classes/price-type';\r\nimport { CartSeat, Seat, SeatPriceQuantity, SeatZone } from '../../../classes/seat';\r\nimport { SeatingOption } from '../../../classes/seating-option';\r\nimport { IAppSettingsModel } from '../../../reducers/fetch-settings-reducer';\r\nimport { ISeatMapModel } from '../../reducers/seatmap-reducer';\r\nimport ConfirmPrompt from './confirm-prompt';\r\nimport SeatInfoNotice from './seat-info-error';\r\nimport SeatInfoHeaderContainer from './seat-info-header-container';\r\nimport SeatInfoOptionsContainer from './seat-info-options-container';\r\nimport SeatInfoPrices from './seat-info-prices';\r\nimport { isPad } from '../../../helpers/is-mobile';\r\nimport { checkSpecialSeatingSeatLimit } from '../../actions/seatmap-actions';\r\nimport { ZoneUpsell } from '../../../classes/zone-upsell';\r\nimport ZoneUpsellContainer from './zone-upsell-container';\r\nimport SeatInfoImage from './seat-info-image';\r\n\r\nexport interface ISeatingInfoProps {\r\n appSettingsModel: IAppSettingsModel;\r\n cartSeats: Array<CartSeat>;\r\n selectedPriceTypes: Array<PriceType>;\r\n activeSeats: Array<Seat>;\r\n levelPricing: Array<SeatZone>;\r\n dispatch: any;\r\n viewFromSeatModalActive: boolean;\r\n maxQuantityPriceTypeError: boolean;\r\n minQuantityPriceTypeError: boolean;\r\n minQuantityPriceTypeSelectedErrorTextReplace: string;\r\n maxQuantitySeatingOptionError: boolean;\r\n flexQuantityPriceTypeError: boolean;\r\n flexMinQuantityError: boolean;\r\n flexMaxQuantityErrorAllTickets: boolean;\r\n flexMaxQuantityErrorPriceType: boolean;\r\n seatmapModel: ISeatMapModel;\r\n isGAZone?: boolean;\r\n isSingleClick: boolean;\r\n selectedSeatingOptions: SeatingOption[];\r\n hasConfirmPrompt: boolean;\r\n isExchange: boolean;\r\n isInCart: boolean;\r\n isSelectedSeat: boolean;\r\n onCancelConfirmClick: () => void;\r\n onConfirmSeatClick: () => void;\r\n onSelectPricing: (priceQuantities: Array<SeatPriceQuantity>) => void;\r\n onSelectSeatingOption: () => void;\r\n onSelectSeatClick: () => void;\r\n onSelectSeatDisabledClick: () => void;\r\n onSelectSeatInCartClick: () => void;\r\n onToggleSeatingInfoOpen: () => void;\r\n selectedPriceQuantities: SeatPriceQuantity[];\r\n needPriceTypeError: boolean;\r\n needSeatingOptionError: boolean;\r\n noMoreExchangeableTicketsError: boolean;\r\n selectedSeatsPreferenceUpdated: boolean;\r\n confirmPromptText: string;\r\n exchangeTicketsRemaining: number;\r\n additionalPurchasable: number;\r\n showSeatingInfo: boolean;\r\n selectedPriceTypeQuantities: Array<SeatPriceQuantity>;\r\n onCloseZoneUpsell: () => any;\r\n seats: Array<Seat>;\r\n zoneUpsell: ZoneUpsell;\r\n hidingUpsell: boolean;\r\n\r\n\r\n}\r\n\r\nclass SeatingInfo extends React.Component<ISeatingInfoProps, null>{\r\n static defaultProps = {\r\n isGAZone: false,\r\n }\r\n\r\n render() {\r\n const {\r\n isSingleClick,\r\n hasConfirmPrompt,\r\n isInCart,\r\n isSelectedSeat,\r\n selectedPriceTypes,\r\n onSelectPricing,\r\n selectedPriceQuantities,\r\n\r\n } = this.props;\r\n const xSvg = `<svg class=\"close-filters-icon\"><use xlink:href=\"#icon-close\" /></svg>`;\r\n const useTag = `<use xlink:href=\"#icon-arrow-down\" />`;\r\n const showConfirmPrompt = (!isSingleClick && hasConfirmPrompt && isSelectedSeat && !isInCart);\r\n return (\r\n\r\n <div className={\"seat-info-container\"}>\r\n\r\n <div className=\"seat-info-container-header seat-info-container-header-desktop\">\r\n <button type=\"button\" className=\"sidebar-section-toggle\" onClick={this.props.onToggleSeatingInfoOpen} aria-expanded={this.props.showSeatingInfo}>\r\n <h2 className=\"heading-general\" tabIndex={-1}>{this.props.isGAZone ? this.props.appSettingsModel.seatmapSelectedZoneText : this.props.appSettingsModel.seatmapSelectedSeatText}</h2>\r\n <div dangerouslySetInnerHTML={{ __html: xSvg }} ></div>\r\n </button>\r\n </div>\r\n\r\n <div className=\"seat-info-container-header seat-info-container-header-mobile\">\r\n <button type=\"button\" className=\"sidebar-section-toggle\" onClick={this.props.onToggleSeatingInfoOpen} aria-expanded={this.props.showSeatingInfo}>\r\n {/*TODO: dynamic text*/}\r\n <span className=\"visually-hidden\">Toggle Selected Seat View</span>\r\n <svg className={\"filters-section-heading-toggles-icon\"} aria-hidden=\"true\" dangerouslySetInnerHTML={{ __html: useTag }} />\r\n <h2 className=\"heading-general\">{this.props.isGAZone ? this.props.appSettingsModel.seatmapSelectedZoneText : this.props.appSettingsModel.seatmapSelectedSeatText}</h2>\r\n </button>\r\n </div>\r\n\r\n <div className={\"seat-info-container-main\"}>\r\n {\r\n showConfirmPrompt\r\n ? this.renderConfirmPrompt()\r\n : this.renderSeatingInfo()\r\n }\r\n </div>\r\n\r\n <div className=\"seat-info-footer\">\r\n {\r\n (this.props.activeSeats[0].tessituraSeat.isAvailable && !showConfirmPrompt) ?\r\n <SeatInfoPrices\r\n selectedPriceTypes={selectedPriceTypes}\r\n onSelectPricing={onSelectPricing}\r\n selectedPriceQuantities={selectedPriceQuantities}\r\n />\r\n : null\r\n }\r\n\r\n {\r\n //!isSingleClick &&\r\n this.props.activeSeats[0].tessituraSeat.isAvailable\r\n && this.renderSelectButton()\r\n }\r\n </div>\r\n\r\n {(!this.props.hidingUpsell) ?\r\n <ZoneUpsellContainer {...this.props}\r\n dispatch={this.props.dispatch}\r\n appSettingsModel={this.props.appSettingsModel}\r\n venueLevels={this.props.appSettingsModel.venueLevels}\r\n zoneUpsell={this.props.zoneUpsell}\r\n cartSeats={this.props.cartSeats}\r\n seats={this.props.seats}\r\n onCloseZoneUpsell={this.props.onCloseZoneUpsell}\r\n selectedPriceTypeQuantities={this.props.selectedPriceTypeQuantities}\r\n />\r\n : null\r\n }\r\n </div>\r\n );\r\n }\r\n\r\n renderConfirmPrompt() {\r\n return <ConfirmPrompt appSettingsModel={this.props.appSettingsModel} confirmPromptText={this.props.confirmPromptText}\r\n onCancelSeatClick={this.props.onCancelConfirmClick}\r\n onConfirmSeatClick={this.props.onConfirmSeatClick} />\r\n }\r\n\r\n renderSeatingInfo() {\r\n const {\r\n isExchange,\r\n dispatch,\r\n levelPricing,\r\n activeSeats,\r\n appSettingsModel,\r\n selectedPriceTypes,\r\n onSelectPricing,\r\n onSelectSeatingOption,\r\n selectedPriceQuantities,\r\n selectedSeatingOptions,\r\n cartSeats,\r\n seatmapModel,\r\n flexQuantityPriceTypeError,\r\n needSeatingOptionError,\r\n needPriceTypeError,\r\n noMoreExchangeableTicketsError,\r\n exchangeTicketsRemaining,\r\n additionalPurchasable\r\n } = this.props;\r\n\r\n return (\r\n <div className=\"seat-info-main\">\r\n <div className=\"seat-info-top\">\r\n {\r\n !this.props.seatmapModel.hasSeatViewImages || (isPad() && this.props.appSettingsModel.disableMobileViewFromSeat) ? null :\r\n <SeatInfoImage\r\n {...this.props}\r\n loadingSeatView={seatmapModel.requestingSeatView}\r\n seatViewImageSrc={this.props.activeSeats[0].seatViewImageSrc}\r\n viewFromSeatModalActive={this.props.viewFromSeatModalActive}\r\n altText={this.props.appSettingsModel.altText}\r\n loadingSvgText={this.props.appSettingsModel.loadingSvgText}\r\n loadingText={this.props.appSettingsModel.loadingText}\r\n stopLoadingAnimationButtonText={this.props.appSettingsModel.stopLoadingAnimationButtonText}\r\n seatViewCaptionText={this.props.appSettingsModel.viewFromSeatCaptionText}\r\n />\r\n }\r\n\r\n <SeatInfoHeaderContainer seat={this.props.activeSeats[0]}\r\n isInCart={this.props.isInCart}\r\n inCartSeatStyle={this.props.seatmapModel.seatStyles.filter(sty => sty.id === this.props.activeSeats[0].inCartSeatStyleId)[0]}\r\n useZoneDescription={appSettingsModel.useZoneDescription}\r\n seatViewCaptionText={this.props.appSettingsModel.viewFromSeatCaptionText}\r\n isGAZone={this.props.isGAZone}\r\n />\r\n </div>\r\n\r\n <SeatInfoNotice {...appSettingsModel}\r\n {...this.props}\r\n exchangeTicketsRemaining={exchangeTicketsRemaining}\r\n additionalPurchasable={additionalPurchasable}\r\n needPriceTypeError={needPriceTypeError}\r\n needSeatingOptionError={needSeatingOptionError}\r\n noMoreExchangeableTicketsError={noMoreExchangeableTicketsError}\r\n maxQuantityPriceTypeError={this.props.maxQuantityPriceTypeError || this.allPriceTypesMaxedOut}\r\n showFlexPriceTypeError={flexQuantityPriceTypeError}\r\n flexMaxQuantityError={this.props.flexMaxQuantityErrorAllTickets}\r\n minQuantityPriceTypeError={this.props.minQuantityPriceTypeError}\r\n minQuantityPriceTypeSelectedErrorTextReplace={this.props.minQuantityPriceTypeSelectedErrorTextReplace}\r\n priceTypeMinQuantityRequiredMessage={this.props.appSettingsModel.minimumSeatsSingleTicketRequiredMessage}\r\n />\r\n {\r\n this.props.activeSeats[0].tessituraSeat.isAvailable ?\r\n <SeatInfoOptionsContainer {...this.props}\r\n requestingSeatView={this.props.seatmapModel.requestingSeatView}\r\n seat={this.props.activeSeats[0]}\r\n onSelectSeatingOption={onSelectSeatingOption}\r\n selectedSeatingOptions={selectedSeatingOptions}\r\n />\r\n : null\r\n }\r\n\r\n </div>\r\n );\r\n }\r\n\r\n get allPriceTypesMaxedOut() {\r\n const selectedPricings = [...this.props.selectedPriceQuantities.filter(pq => pq.quantity > 0)] as Array<SeatPriceQuantity>;\r\n if (selectedPricings.length == 0)\r\n return false;\r\n\r\n return selectedPricings.every(selectedPricing => {\r\n let selectedPriceTypeMaxQuantity = this.props.appSettingsModel.priceTypeSettings.filter(pt => {\r\n return pt.priceTypeId === selectedPricing.seatPricing.priceTypeId;\r\n })[0].clientMaxQuantity;\r\n\r\n var numberOfTicketsInCart = this.props.cartSeats.length;\r\n\r\n if (numberOfTicketsInCart >= this.props.appSettingsModel.maxTicketQuantity)\r\n return true;\r\n\r\n var numberOfPriceTypeTicketsInCart = this.props.cartSeats.filter(cs => cs.selectedPricing.priceTypeId == selectedPricing.seatPricing.priceTypeId).length;\r\n\r\n return (selectedPriceTypeMaxQuantity !== 0 && (selectedPricing.quantity > selectedPriceTypeMaxQuantity\r\n || numberOfPriceTypeTicketsInCart >= selectedPriceTypeMaxQuantity))\r\n\r\n });\r\n }\r\n\r\n renderSelectButton() {\r\n if (this.props.hasConfirmPrompt && this.props.isSelectedSeat && !this.props.isInCart) {\r\n return null;\r\n }\r\n\r\n const cartButton = () => {\r\n const inCartMessage = this.props.isGAZone ? this.props.appSettingsModel.groupSeatsInCartMessage : this.props.appSettingsModel.seatIsInCartMessage;\r\n\r\n var specialSeatingCheck = checkSpecialSeatingSeatLimit(this.props.activeSeats[0], this.props.cartSeats);\r\n const requiresAdditionalInput = this.props.selectedPriceQuantities.filter(pq => pq.quantity > 0).length == 0 || this.props.needSeatingOptionError;\r\n const cannotAddToCart = requiresAdditionalInput || !specialSeatingCheck /*|| this.props.maxQuantityPriceTypeError*/\r\n || this.allPriceTypesMaxedOut || this.props.flexMaxQuantityErrorPriceType;\r\n\r\n if (!this.props.isInCart) {\r\n if (cannotAddToCart && !requiresAdditionalInput) {\r\n return <>\r\n {\r\n this.renderCartButton(this.props.appSettingsModel.addToCartButtonText, cannotAddToCart,\r\n cannotAddToCart ? this.props.onSelectSeatDisabledClick : this.props.onSelectSeatClick)\r\n }\r\n {\r\n this.renderCartButton(this.props.appSettingsModel.viewCartButtonText, false,\r\n this.props.onSelectSeatInCartClick)\r\n }\r\n </>\r\n } else {\r\n return this.renderCartButton(this.props.appSettingsModel.addToCartButtonText, cannotAddToCart,\r\n cannotAddToCart ? this.props.onSelectSeatDisabledClick : this.props.onSelectSeatClick);\r\n }\r\n }\r\n if (this.props.selectedSeatsPreferenceUpdated) {\r\n return this.renderCartButton(this.props.appSettingsModel.updateCartButtonText, false,\r\n this.props.onSelectSeatClick);\r\n }\r\n\r\n return this.renderCartButton(this.props.appSettingsModel.viewCartButtonText, false,\r\n this.props.onSelectSeatInCartClick);\r\n }\r\n\r\n return (\r\n <div className=\"seat-info-select-container\" onTouchMove={function (evt) { evt.preventDefault(); }}>\r\n {\r\n this.props.isInCart ?\r\n <p className=\"seat-info-container-cart-message\">\r\n {this.props.isGAZone ? this.props.appSettingsModel.groupSeatsInCartMessage : this.props.appSettingsModel.seatIsInCartMessage}\r\n </p>\r\n : null\r\n }\r\n {cartButton()}\r\n </div>\r\n );\r\n }\r\n\r\n renderCartButton(text: string, disabled: boolean, clickFunction: () => any) {\r\n return <button className={\"seat-info-container-btn\" + (disabled ? \" disabled\" : \"\")}\r\n onClick={clickFunction}>\r\n {text}\r\n </button>\r\n }\r\n}\r\n\r\nexport default SeatingInfo;\r\n","import * as React from 'react';\r\n\r\nimport ZoneUpsellComponent from './zone-upsell';\r\nimport { ZoneUpsell } from '../../../classes/zone-upsell';\r\nimport { Level } from '../../../classes/level';\r\nimport { Seat, CartSeat, SeatPriceQuantity } from '../../../classes/seat';\r\nimport { selectMinPrice, selectMaxPrice } from '../../../filter/actions/price-range-actions';\r\nimport { selectVenueLevel, resetVenueLevels } from '../../../filter/actions/filter-actions';\r\nimport { fetchSeatMap, fetchZoneUpsellSeatView } from '../../actions/seatmap-fetch';\r\nimport { unselectSeat, openSeatmapFilters, selectZoneUpsell } from '../../actions/seatmap-actions';\r\nimport { IAppSettingsModel } from '../../../reducers/fetch-settings-reducer';\r\nimport { getCurrencyFormat } from '../../../helpers/currency-format';\r\n//import { fetchSeatView } from '../../actions/upsell-fetch';\r\n\r\n\r\nexport interface IZoneUpsellContainerProps {\r\n selectedPriceTypeQuantities: Array<SeatPriceQuantity>;\r\n venueLevels: Array<Level>;\r\n zoneUpsell: ZoneUpsell;\r\n dispatch: any;\r\n seats: Array<Seat>;\r\n cartSeats: Array<CartSeat>;\r\n appSettingsModel: IAppSettingsModel;\r\n onCloseZoneUpsell: () => any;\r\n}\r\n\r\ninterface IZoneUpsellContainerState {\r\n zoneUpsellSeatView: string;\r\n loadingImage: boolean;\r\n mobileCartOpen: boolean;\r\n disableCart: boolean;\r\n}\r\n\r\nclass ZoneUpsellContainer extends React.Component<IZoneUpsellContainerProps, IZoneUpsellContainerState>{\r\n _isMounted = false;\r\n\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n zoneUpsellSeatView: null,\r\n loadingImage: false,\r\n mobileCartOpen: false,\r\n disableCart: false\r\n }\r\n }\r\n\r\n componentDidMount() {\r\n this._isMounted = true;\r\n this.reloadSeatView();\r\n }\r\n\r\n componentWillUnmount() {\r\n this._isMounted = false;\r\n }\r\n\r\n componentDidUpdate(prevProps: IZoneUpsellContainerProps, prevState: IZoneUpsellContainerState) {\r\n if (this.isNewUpsell(prevProps)) {\r\n this.reloadSeatView();\r\n }\r\n }\r\n\r\n reloadSeatView() {\r\n if (this.props.zoneUpsell.newZoneSeatPathId != null) {\r\n this.setState({ ...this.state, loadingImage: true })\r\n fetchZoneUpsellSeatView(this.props.zoneUpsell.newZoneSeatPathId, this.props.zoneUpsell.newZoneSeatmapId).then((zoneImageSrc: any) => {\r\n if (this._isMounted) {\r\n\r\n this.setState({\r\n ...this.state,\r\n zoneUpsellSeatView: zoneImageSrc,\r\n loadingImage: false\r\n })\r\n }\r\n });\r\n }\r\n }\r\n\r\n _onUpsellClick = () => {\r\n this.props.dispatch(selectZoneUpsell());\r\n this.props.dispatch(selectMinPrice(this.props.zoneUpsell.newZoneMinPrice));\r\n this.props.dispatch(selectMaxPrice(this.props.zoneUpsell.newZoneMaxPrice));\r\n this.props.dispatch(resetVenueLevels());\r\n this.props.dispatch(selectVenueLevel(this.getUpsellVenueLevel().levelNumber));\r\n this.props.dispatch(fetchSeatMap('', this.props.cartSeats, false, []));\r\n this.props.dispatch(openSeatmapFilters());\r\n\r\n this.props.dispatch(unselectSeat());\r\n };\r\n\r\n _onClose = () => {\r\n this.props.onCloseZoneUpsell();\r\n };\r\n\r\n _expandMobileCart() {\r\n const newState = {\r\n ...{},\r\n ...this.state,\r\n mobileCartOpen: !this.state.mobileCartOpen\r\n };\r\n\r\n this.setState(newState as any);\r\n }\r\n\r\n getUpsellVenueLevel(): Level {\r\n return this.props.venueLevels.filter(level => level.seatmap.id === this.props.zoneUpsell.newZoneSeatmapId)[0];\r\n }\r\n\r\n isNewUpsell(prevProps: IZoneUpsellContainerProps) {\r\n return prevProps.zoneUpsell.currentZoneId != this.props.zoneUpsell.currentZoneId\r\n || prevProps.zoneUpsell.newZoneSeatId != this.props.zoneUpsell.newZoneSeatId\r\n || prevProps.zoneUpsell.newZoneSeatmapId != this.props.zoneUpsell.newZoneSeatmapId\r\n || prevProps.zoneUpsell.newZoneSeatPathId != this.props.zoneUpsell.newZoneSeatPathId\r\n || prevProps.zoneUpsell.priceTypeId != this.props.zoneUpsell.priceTypeId;\r\n }\r\n\r\n getPrice(): string {\r\n var filteredZonePrice = this.props.selectedPriceTypeQuantities\r\n .filter(ptQ => ptQ.seatPricing.priceTypeId === this.props.zoneUpsell.priceTypeId);\r\n\r\n if (this.props.selectedPriceTypeQuantities.length > 0 && filteredZonePrice.length > 0) {\r\n const difference = (this.props.zoneUpsell.newPrice - filteredZonePrice[0].seatPricing.price);\r\n const currencyPrice = getCurrencyFormat(this.props.appSettingsModel.currencyFormat, difference, true);\r\n return `${currencyPrice}`;\r\n } else {\r\n return '';\r\n }\r\n }\r\n\r\n getUpsellMessage(): string {\r\n return this.props.appSettingsModel.upsellMessageText.replace(\"{ZoneDescription}\", this.getPrice());\r\n }\r\n\r\n render() {\r\n return <ZoneUpsellComponent\r\n {...this.props.appSettingsModel}\r\n loadingImage={this.state.loadingImage}\r\n mobileCartOpen={this.state.mobileCartOpen}\r\n onCloseZoneUpsell={this._onClose}\r\n onUpsellClick={this._onUpsellClick}\r\n priceText={this.getPrice()}\r\n upsellMessage={this.getUpsellMessage()}\r\n zoneUpsellName={this.props.zoneUpsell.newZoneDescription}\r\n zoneUpsellSeatView={this.state.zoneUpsellSeatView}\r\n />\r\n }\r\n\r\n // use if we want zone upsell to have open seat view capabilities\r\n // <SeatInfoImage {...this.props} imageClass={\"zone-upsell-content-image\"} loadingSeatView={this.state.loadingImage} seatViewImageSrc={this.state.zoneUpsellSeatView} />\r\n\r\n}\r\n\r\nexport default ZoneUpsellContainer;","import * as React from 'react';\r\n\r\nimport DataLoader from '../../../common/loader/data-loader';\r\n\r\nexport interface IZoneUpsellProps {\r\n onCloseZoneUpsell: () => void;\r\n onUpsellClick: () => void;\r\n priceText: string;\r\n upsellMessage: string;\r\n loadingImage: boolean;\r\n mobileCartOpen: boolean;\r\n zoneUpsellSeatView: string;\r\n\r\n loadingSvgText: string;\r\n stopLoadingAnimationButtonText: string;\r\n upsellButtonText: string;\r\n zoneUpsellName: string;\r\n}\r\n\r\nclass ZoneUpsellComponent extends React.PureComponent<IZoneUpsellProps, null>{\r\n render() {\r\n const {\r\n onCloseZoneUpsell,\r\n onUpsellClick,\r\n priceText,\r\n upsellMessage,\r\n loadingImage,\r\n mobileCartOpen,\r\n zoneUpsellSeatView,\r\n zoneUpsellName\r\n } = this.props;\r\n const useTagClose = '<use xlink:href=\"#icon-close\" />';\r\n const useDollarIcon = '<use xlink:href=\"#icon-dollar\" />';\r\n const useTagDownArrow = '<use xlink:href=\"#icon-arrow-down\" />';\r\n var cartContainerClass = 'cart-container';\r\n\r\n return (\r\n <div className={\"zone-upsell-container\"}>\r\n <div className={\"zone-upsell\" + (mobileCartOpen ? \"\" : \" collapsed\")}>\r\n <div className=\"zone-upsell-header\">\r\n <svg className=\"zone-upsell-header-icon\"\r\n dangerouslySetInnerHTML={{ __html: useDollarIcon }} />\r\n\r\n <span className=\"zone-upsell-header-msg\">{upsellMessage}</span>\r\n <button type=\"button\" className=\"zone-upsell-close\">\r\n <svg className=\"zone-upsell-close-svg\"\r\n dangerouslySetInnerHTML={{ __html: useTagClose }}\r\n onClick={onCloseZoneUpsell} />\r\n </button>\r\n\r\n </div>\r\n\r\n\r\n <div className=\"zone-upsell-inner\">\r\n <div className=\"zone-upsell-display\">\r\n <div className=\"zone-upsell-content\">\r\n <div className=\"zone-upsell-content-info\">\r\n <div className=\"zone-upsell-content-info-description\">\r\n {zoneUpsellName}\r\n </div>\r\n </div>\r\n\r\n {(!loadingImage && zoneUpsellSeatView) &&\r\n <div className=\"zone-upsell-content-image zone-upsell-seat-view\"\r\n style={{ backgroundImage: \"url(\" + zoneUpsellSeatView + \")\" }}>\r\n </div>\r\n }\r\n </div>\r\n <div className=\"zone-upsell-section\">\r\n <button className=\"zone-upsell-section-btn\" onClick={onUpsellClick}>\r\n {this.props.upsellButtonText}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n }\r\n}\r\n\r\nexport default ZoneUpsellComponent;","import flatMap from 'lodash/flatMap';\r\nimport * as React from 'react';\r\nimport isEqual from 'react-fast-compare';\r\nimport { connect } from 'react-redux';\r\nimport { closeApplyPromoCodeConfirmModal, closeCartRemovalModal, removeSeatFromCart } from '../../cart/actions/cart-actions';\r\nimport { ItemType } from '../../classes/item-type';\r\nimport { PriceType } from '../../classes/price-type';\r\nimport { Seat } from '../../classes/seat';\r\nimport { IOption, SeatingOptionGroup } from '../../classes/seating-option';\r\nimport { ZoneUpsell } from '../../classes/zone-upsell';\r\nimport DataLoader from '../../common/loader/data-loader';\r\nimport Modal from '../../common/modal/modal';\r\nimport ModalState from '../../common/modal/modal-states';\r\nimport Sidebar from '../../common/sidebar/sidebar';\r\nimport { selectPriceTypeTickets, setPriceRange } from '../../filter/actions/filter-actions';\r\nimport { selectMaxPrice, selectMinPrice } from '../../filter/actions/price-range-actions';\r\nimport { applyPromoCode } from '../../filter/actions/promo-actions';\r\nimport { convertNumberListToString } from '../../helpers/array-helpers';\r\nimport { CartHelpers } from '../../helpers/cart-helpers';\r\nimport isMobile from '../../helpers/is-mobile';\r\nimport { getSelectedPriceTypesFromFilter } from '../../helpers/price-type-helpers';\r\nimport { showLevelFilters, showPriceRangeFilters, showPriceTypeFilters, showSpecialSeatingFilters } from '../../helpers/state-helpers';\r\nimport { IAppState } from '../../reducers/index';\r\nimport { closeSeatingInfo, closeSeatmapCart, closeSeatmapFilters, openSeatingInfo, openSeatmapFilters, resetZoneUpsellCount } from '../../seatmap/actions/seatmap-actions';\r\nimport { hoverSeatCoordinates, unselectSeat } from '../actions/seatmap-actions';\r\nimport { fetchSeatMap } from '../actions/seatmap-fetch';\r\nimport CartOverlay from '../components/cart-panel/cart-overlay';\r\nimport FiltersOverlay from '../components/filter-panel/filters-overlay';\r\nimport Legend from '../components/legend';\r\nimport LegendModal from '../components/legend-modal';\r\nimport LevelSelectionModal from '../components/level-selection-modal';\r\nimport SvgMap from '../components/map';\r\nimport SvgMapHover from '../components/map-hover';\r\nimport SeatingInfoContainer from '../components/side-panel/seating-info-container';\r\n\r\ninterface ISeatMapState {\r\n middleCoordX: number;\r\n middleCoordY: number;\r\n newTop: number;\r\n newRight: number;\r\n showZoneUpsell: boolean;\r\n seatsToHideUpsell: Array<string>;\r\n legendFlyOut: boolean;\r\n selectedPriceTypeFilter: Array<PriceType>;\r\n selectedSpecialSeatingFilter: Array<SeatingOptionGroup>;\r\n mapDragging: boolean;\r\n hoveredSeatId: string;\r\n showLevelSelectFilter: boolean;\r\n levelSelectFilterOpen: boolean;\r\n showPriceRangeFilter: boolean;\r\n showPriceTypeFilter: boolean;\r\n priceTypeFilterOpen: boolean;\r\n showSpecialSeatingFilter: boolean;\r\n\r\n startingMin: number;\r\n startingMax: number;\r\n showLevelSelectModal: ModalState;\r\n cartDisabled: boolean;\r\n};\r\n\r\nenum SidebarItems {\r\n SeatInfo = 'seat-info',\r\n Cart = 'cart',\r\n Filters = 'filters'\r\n}\r\n\r\nclass Seatmap extends React.Component<IAppState, ISeatMapState>{\r\n constructor(props: IAppState) {\r\n super(props);\r\n let seatMapTitle = document.getElementsByTagName('title')[0];\r\n\r\n if (!props.appSettingsModel.disableSmartSeatPageTitle) {\r\n seatMapTitle.innerHTML = `${props.appSettingsModel.itemName} | Select Your Seats`;\r\n }\r\n\r\n let selectedPriceTypesFromFilter = getSelectedPriceTypesFromFilter(props.priceTypesModel, props.appSettingsModel.selectAllPriceTypesOnSeatmap, (!props.appSettingsModel.selectAllPriceTypesOnSeatmap && props.appSettingsModel.selectOnlyDefaultPriceTypesOnSeatmap));\r\n let selectedSpecialSeatingFromFilter = this.getSelectedSpecialSeatingFromFilter(props);\r\n\r\n let showLevelSelectFilter = showLevelFilters(props.appSettingsModel);\r\n let showPriceRangeFilter = showPriceRangeFilters(props.priceRangeModel);\r\n let showPriceTypeFilter = showPriceTypeFilters(props.appSettingsModel);\r\n let showSpecialSeatingFilter = showSpecialSeatingFilters(props.appSettingsModel);\r\n\r\n if (!showPriceRangeFilter && !showPriceTypeFilter && !showLevelSelectFilter) {\r\n props.dispatch(closeSeatmapFilters(false));\r\n }\r\n\r\n let selectPriceTypeFilter = selectedPriceTypesFromFilter.length > 0 ? selectedPriceTypesFromFilter\r\n : props.priceTypesModel.priceTypes;\r\n\r\n this.state = {\r\n middleCoordX: null,\r\n middleCoordY: null,\r\n newTop: null,\r\n newRight: null,\r\n showZoneUpsell: true,\r\n seatsToHideUpsell: [],\r\n legendFlyOut: props.appSettingsModel.showSeatingLegendOnPageLoad,\r\n selectedPriceTypeFilter: selectPriceTypeFilter,\r\n selectedSpecialSeatingFilter: selectedSpecialSeatingFromFilter,\r\n mapDragging: false,\r\n hoveredSeatId: null,\r\n showLevelSelectFilter: showLevelSelectFilter,\r\n levelSelectFilterOpen: props.appSettingsModel.expandLevelFilterOnSeatmapLoad,\r\n showPriceRangeFilter: showPriceRangeFilter,\r\n showPriceTypeFilter: showPriceTypeFilter,\r\n showSpecialSeatingFilter: showSpecialSeatingFilter,\r\n priceTypeFilterOpen: true,\r\n startingMin: props.priceRangeModel.minPrice,\r\n startingMax: props.priceRangeModel.maxPrice,\r\n showLevelSelectModal: props.appSettingsModel.isSelectSeatVenue && props.appSettingsModel.displayLevelSelectionOnLoad ? ModalState.OPEN : ModalState.CLOSE,\r\n cartDisabled: false\r\n };\r\n }\r\n\r\n componentWillMount() {\r\n this.props.dispatch(unselectSeat());\r\n this.props.dispatch(fetchSeatMap('', this.props.cartModel.seats, false, []));\r\n }\r\n\r\n //getExchangePriceTypes(priceTypes: Array<PriceType>, activeExchangeTickets: Array<IExchangeTicket>): Array<PriceType> { \r\n // return priceTypes.map(pt => {\r\n // pt.prices = pt.prices.map(pr => calculateExchangePrice(pr, activeExchangeTickets))\r\n // return pt;\r\n // });\r\n //}\r\n\r\n shouldComponentUpdate(nextProps, nextState: ISeatMapState) {\r\n if (this.state.mapDragging || nextState.mapDragging)\r\n return false;\r\n return !isEqual(this.state, nextState) || !isEqual(this.props, nextProps);\r\n }\r\n\r\n zoomedStart = () => {\r\n this.setState({ ...this.state, mapDragging: true });\r\n };\r\n\r\n zoomedEnd = () => {\r\n this.setState({ ...this.state, mapDragging: false });\r\n };\r\n\r\n openLevelSelectModal = () => {\r\n this.setState({ ...this.state, showLevelSelectModal: ModalState.OPEN });\r\n }\r\n\r\n closeLevelSelectModal() {\r\n this.setState({ ...this.state, showLevelSelectModal: ModalState.CLOSE });\r\n }\r\n\r\n getSelectedSpecialSeatingFromFilter(props: IAppState): Array<SeatingOptionGroup> {\r\n return props.additionalSeatingOptionModel.additionalSeatingOptions.filter(option => option.groupSeatSelectedQuantity > 0);\r\n }\r\n\r\n getAvailablePriceTypesFromPricing(props: IAppState): Array<number> {\r\n return flatMap(props.seatMapModel.allSeatPricing, pr => pr.prices.map(price => price.priceTypeId));\r\n }\r\n\r\n componentWillReceiveProps(nextProps: IAppState) {\r\n\r\n var updatedShowZoneUpsell = this.state.showZoneUpsell;\r\n var updatedShowLevelSelectModal = this.state.showLevelSelectModal;\r\n var updatedSelectedPriceTypeFilter = this.state.selectedPriceTypeFilter;\r\n var choseNewSeats = !isEqual(this.props.seatMapModel.selectedSeats, nextProps.seatMapModel.selectedSeats);\r\n var needUpdate = false;\r\n\r\n if (choseNewSeats || !isEqual(this.props.seatMapModel.selectedPriceQuantities, nextProps.seatMapModel.selectedPriceQuantities)) {\r\n updatedShowZoneUpsell = true;\r\n needUpdate = true;\r\n }\r\n\r\n // If the modal is open\r\n if (this.state.showLevelSelectModal === ModalState.OPEN\r\n // And we already have a seatMapModel\r\n && this.props.seatMapModel.seatmapId\r\n // And it's changed\r\n && this.props.seatMapModel.seatmapId !== nextProps.seatMapModel.seatmapId) {\r\n\r\n // Time to close it\r\n updatedShowLevelSelectModal = ModalState.CLOSE\r\n needUpdate = true;\r\n }\r\n\r\n if (this.props.appSettingsModel.selectAllPriceTypesOnSeatmap != nextProps.appSettingsModel.selectAllPriceTypesOnSeatmap\r\n || !isEqual(nextProps.priceTypesModel.priceTypes, this.props.priceTypesModel.priceTypes)) {\r\n needUpdate = true;\r\n updatedSelectedPriceTypeFilter = this.updateSelectedPriceTypes(nextProps);\r\n }\r\n\r\n if (!isEqual(nextProps.seatMapModel.allSeatPricing, this.props.seatMapModel.allSeatPricing)) {\r\n var currentPricing = this.getAvailablePriceTypesFromPricing(nextProps);\r\n // if the selected price type filters have no matching price types in the current level, remove the filter\r\n if (this.props.seatMapModel.seatmapId !== \"\" && this.props.seatMapModel.seatmapId !== nextProps.seatMapModel.seatmapId\r\n && currentPricing.length > 0 && this.state.selectedPriceTypeFilter.every(ptFilter => currentPricing.indexOf(ptFilter.priceTypeId) < 0)) {\r\n needUpdate = true;\r\n updatedSelectedPriceTypeFilter = this.updateSelectedPriceTypes(nextProps);\r\n }\r\n }\r\n\r\n\r\n if (needUpdate) {\r\n this.setState({\r\n ...this.state,\r\n showZoneUpsell: updatedShowZoneUpsell,\r\n showLevelSelectModal: updatedShowLevelSelectModal,\r\n selectedPriceTypeFilter: updatedSelectedPriceTypeFilter,\r\n cartDisabled: CartHelpers.checkCartForMinQuantities(nextProps.cartModel.seats, nextProps.appSettingsModel.priceTypeSettings)\r\n });\r\n }\r\n }\r\n\r\n private updateSelectedPriceTypes(nextProps: IAppState): PriceType[] {\r\n let selectedPriceTypesFromFilter = getSelectedPriceTypesFromFilter(nextProps.priceTypesModel, nextProps.appSettingsModel.selectAllPriceTypesOnSeatmap, (!nextProps.appSettingsModel.selectAllPriceTypesOnSeatmap\r\n && nextProps.appSettingsModel.selectOnlyDefaultPriceTypesOnSeatmap));\r\n let selectPriceTypeFilter = selectedPriceTypesFromFilter.length > 0 ? selectedPriceTypesFromFilter\r\n : nextProps.priceTypesModel.priceTypes;\r\n return selectPriceTypeFilter;\r\n }\r\n\r\n private get isInCart(): boolean {\r\n if (this.props.cartModel.seats.length === 0)\r\n return false;\r\n else {\r\n var isInCart = this.props.cartModel.seats.filter(cartSeat => {\r\n return this.props.seatMapModel.selectedSeats\r\n .some(seat => seat.seatId === cartSeat.seatId)\r\n }).length === 1;\r\n return isInCart;\r\n }\r\n }\r\n\r\n private get canChangeDate(): boolean {\r\n\r\n if (this.props.appSettingsModel.itemType === ItemType.Exchange || this.props.appSettingsModel.itemType === ItemType.Performance) {\r\n if (this.props.appSettingsModel.enableDateChange && this.props.appSettingsModel.productionPerformances.length > 1) {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }\r\n\r\n _redirectOnFail() {\r\n window.location.href = this.props.appSettingsModel.seatmapLoadErrorRedirectUrl as any;\r\n }\r\n\r\n render() {\r\n const mobileCheck = isMobile();\r\n var seatInCartLoaded = this.isInCart;\r\n\r\n //need to partition this out to two checks, one to disabled one click and one to show upsell. plus this disable one click is wrong\r\n const zoneUpsellForSelectedSeats = this.props.seatMapModel.selectedSeats.length > 0 ? this.props.seatMapModel.zoneUpsells\r\n .filter(zoneUpsell => {\r\n return this.props.seatMapModel.selectedPriceQuantities.some(priceQuantity => priceQuantity.quantity > 0\r\n && priceQuantity.seatPricing.zoneId === zoneUpsell.currentZoneId\r\n && priceQuantity.seatPricing.priceTypeId === zoneUpsell.priceTypeId);\r\n })\r\n : [];\r\n\r\n var cart = document.getElementById('cartIcon');\r\n if (cart !== null) {\r\n if (seatInCartLoaded) {\r\n cart.classList.add('grow');\r\n var cartAmount = document.getElementById('cartAmountIcon');\r\n if (cartAmount != null) {\r\n cartAmount.classList.add('show');\r\n }\r\n }\r\n }\r\n\r\n // Woah\r\n const hidingUpsell = !this.state.showZoneUpsell || (mobileCheck && !this.props.appSettingsModel.zoneUpsellEnableForMobile) || zoneUpsellForSelectedSeats.length == 0\r\n || this.props.seatMapModel.selectedSeats.some(selectedSeat =>\r\n this.props.cartModel.seats.some(cartSeat => cartSeat.seatId === selectedSeat.seatId))\r\n || this.state.seatsToHideUpsell.filter(seatId => this.props.seatMapModel.selectedSeats.filter(seat => seat.seatId === seatId).length > 0).length > 0\r\n || (this.props.appSettingsModel.zoneUpsellNumberOfTimesToUpsell > 0 ? this.props.seatMapModel.seatUpsoldCount >= this.props.appSettingsModel.zoneUpsellNumberOfTimesToUpsell : false);\r\n\r\n const visibleSidebar = this.props.seatMapModel.openSeatmapCart ? SidebarItems.Cart\r\n : this.props.seatMapModel.openSeatmapFilters ? SidebarItems.Filters\r\n : (!isMobile() && this.props.seatMapModel.openSeatingInfo ? SidebarItems.SeatInfo : undefined);\r\n\r\n const closeSidebar = () => {\r\n if (visibleSidebar) {\r\n if (visibleSidebar === SidebarItems.Cart) {\r\n this.props.dispatch(closeSeatmapCart(false));\r\n }\r\n else if (visibleSidebar === SidebarItems.Filters) {\r\n this.props.dispatch(closeSeatmapFilters(false));\r\n }\r\n else if (visibleSidebar === SidebarItems.SeatInfo) {\r\n this.props.dispatch(closeSeatingInfo());\r\n }\r\n }\r\n }\r\n\r\n return (\r\n <main className={\"seatmap-container\" + (this.props.seatMapModel.selectedSeats.length > 0 ? \" show-seat-view\" : \"\") + (this.props.applicationModel.viewFromSeatModalActive ? \" show-seat-modal-view\" : \"\") + (this.props.seatMapModel.openSeatingInfo ? \" show-seat-info-view\" : \"\")}>\r\n {\r\n this.state.showLevelSelectModal == ModalState.OPEN ?\r\n <LevelSelectionModal modalKey=\"Level Select seat map modal\"\r\n cancelFunction={this.closeLevelSelectModal.bind(this)}\r\n cancelString=\"caneldar\"\r\n closeFunction={this.closeLevelSelectModal.bind(this)}\r\n confirmFunction={null}\r\n confirmString=\"adsf\"\r\n isError={false}\r\n key=\"Level Select seat map modal\"\r\n message=\"adsf\"\r\n showModal={true}\r\n title=\"adsf\"\r\n levelHeading={this.props.appSettingsModel.levelsHeading}\r\n modalClass=\"levelselection-modal\"\r\n //level select props\r\n currentSeatmapId={this.props.seatMapModel.seatmapId}\r\n cartSeats={this.props.cartModel.seats}\r\n appSettings={this.props.appSettingsModel}\r\n dispatch={this.props.dispatch}\r\n venueLevels={this.props.venueLevelModel.venueLevels}\r\n selectedPriceTypeIdsString={convertNumberListToString(this.props.priceTypesModel.priceTypes.filter(pt => pt.selectedQuantity > 0).map(pt => pt.priceTypeId))}\r\n />\r\n : null\r\n }\r\n\r\n {\r\n this.props.cartModel.showApplyPromoConfirmModal ?\r\n <Modal cancelFunction={this._closeApplyPromoConfirmModal}\r\n cancelString={this.props.appSettingsModel.promoCodeConfirmApplyCancel}\r\n closeFunction={this._closeApplyPromoConfirmModal}\r\n confirmFunction={this._confirmApplyPromoConfirmModal}\r\n confirmString={this.props.appSettingsModel.promoCodeConfirmApplyConfirm}\r\n isError={false}\r\n key=\"Apply Promo Confirm Modal\"\r\n message={this.props.appSettingsModel.promoCodeConfirmApplyMessage}\r\n modalKey=\"Cart Removal Confirm Prompt\"\r\n title={this.props.appSettingsModel.promoCodeConfirmApplyTitle} /> : null\r\n }\r\n\r\n {\r\n this.props.cartModel.showCartRemovalConfirmPrompt ?\r\n <Modal cancelFunction={this._closeCartRemovalConfirmModal}\r\n cancelString={this.props.appSettingsModel.modalCancelButtonText}\r\n closeFunction={this._closeCartRemovalConfirmModal}\r\n confirmFunction={this._confirmCartRemovalConfirmModal}\r\n confirmString={this.props.appSettingsModel.modalConfirmButtonText}\r\n isError={false}\r\n key=\"Cart Removal Confirm Prompt\"\r\n message={this.props.appSettingsModel.specialSeatingRemovalConfirmPromptMessage}\r\n modalKey=\"Cart Removal Confirm Prompt\"\r\n title={this.props.appSettingsModel.specialSeatingRemovalConfirmPromptHeader} /> : null\r\n }\r\n {\r\n this.props.errorModel.getSeatmapFailed ?\r\n <Modal modalKey=\"seat map load\" isError={true}\r\n message={this.props.appSettingsModel.seatmapLoadErrorMessage}\r\n title={this.props.appSettingsModel.seatmapLoadErrorTitle}\r\n confirmFunction={this._redirectOnFail.bind(this)}\r\n confirmString={this.props.appSettingsModel.seatmapLoadErrorBackButton}\r\n closeFunction={this._redirectOnFail.bind(this)}\r\n />\r\n :\r\n !this.props.seatMapResultModel.requestingBackgroundPaths\r\n && !this.props.seatMapResultModel.requestingSeatmap\r\n && !this.props.seatMapResultModel.requestingSeatPaths\r\n ?\r\n\r\n <div className={\"seatmap-content\" + (!hidingUpsell ? \" show-upsell\" : \"\")}>\r\n\r\n {\r\n this.props.appSettingsModel.showSeatingLegendAsModal ?\r\n <LegendModal seatStyles={this.props.seatMapModel.seatStyles} seatStyleCultures={this.props.seatMapModel.seatStyleCultures}\r\n selectedSeats={this.props.seatMapModel.selectedSeats.length > 0}\r\n isMobile={mobileCheck}\r\n legendFlyOut={this.state.legendFlyOut && this.state.showLevelSelectModal !== ModalState.OPEN}\r\n legendTitle={this.props.appSettingsModel.legendText}\r\n legendTitleAltText={this.props.appSettingsModel.altText !== null ? this.props.appSettingsModel.altText.legendIcon : ''}\r\n updateLegendFlyout={this._updateLegendFlyoutState}\r\n legendModalText={this.props.appSettingsModel.legendModalText}\r\n />\r\n :\r\n <Legend seatStyles={this.props.seatMapModel.seatStyles} seatStyleCultures={this.props.seatMapModel.seatStyleCultures}\r\n selectedSeats={this.props.seatMapModel.selectedSeats.length > 0}\r\n isMobile={mobileCheck}\r\n legendFlyOut={this.state.legendFlyOut && this.state.showLevelSelectModal !== ModalState.OPEN}\r\n legendTitle={this.props.appSettingsModel.legendText}\r\n legendTitleAltText={this.props.appSettingsModel.altText !== null ? this.props.appSettingsModel.altText.legendIcon : ''}\r\n updateLegendFlyout={this._updateLegendFlyoutState}\r\n legendModalText={this.props.appSettingsModel.legendModalText}\r\n />\r\n }\r\n\r\n <div className=\"seatmap-content-map\" onTouchMove={function (evt) { evt.preventDefault(); }}>\r\n <SvgMap backgroundImageElement={this.props.seatMapModel.levelSvgBackgroundImage} seats={this.props.seatMapModel.levelSeats}\r\n selectedSeats={this.props.seatMapModel.selectedSeats}\r\n appSettings={this.props.appSettingsModel}\r\n seatMapModel={this.props.seatMapModel}\r\n dispatch={this.props.dispatch}\r\n cartSeats={this.props.cartModel.seats}\r\n priceRangeModel={this.props.priceRangeModel}\r\n backgroundPaths={this.props.seatMapModel.levelBackgroundPaths}\r\n selectedPriceTypeFilter={this.state.selectedPriceTypeFilter}\r\n selectedSpecialSeatingFilter={this.state.selectedSpecialSeatingFilter}\r\n mapDragging={this.state.mapDragging}\r\n mapStartDragging={this.zoomedStart}\r\n hoveredSeatId={this.state.hoveredSeatId}\r\n mapEndDragging={this.zoomedEnd}\r\n mouseOutSeat={this._mouseOutSeat}\r\n mouseOverSeat={this._mouseOverSeat}\r\n showChangeLevelButton={showLevelFilters(this.props.appSettingsModel)}\r\n onChangeLevelClick={this._changeLevelButtonClick}\r\n isSeatmapView={this.props.location.pathname === \"/seatmap\" ? true : false}\r\n overlayOpen={visibleSidebar !== undefined}\r\n filterPanelOpen={visibleSidebar === SidebarItems.Filters}\r\n onNoSelectedPricesForSeatClick={this._noSelectedPriceSeatClick.bind(this)}\r\n />\r\n </div>\r\n {\r\n isMobile() ? null :\r\n (!this.state.mapDragging && this.props.seatMapModel.seatHoverX !== null && this.props.seatMapModel.seatHoverY !== null ?\r\n\r\n <div className=\"seatmap-hover\" style={{ top: this.props.seatMapModel.seatHoverY, left: this.props.seatMapModel.seatHoverX, marginTop: '-40px' }}>\r\n <SvgMapHover\r\n appSettings={this.props.appSettingsModel}\r\n seatMapModel={this.props.seatMapModel}\r\n dispatch={this.props.dispatch}\r\n cartSeats={this.props.cartModel.seats}\r\n selectedPriceTypeFilter={this.state.selectedPriceTypeFilter}\r\n mapDragging={this.state.mapDragging}\r\n />\r\n </div>\r\n\r\n : null)\r\n }\r\n\r\n {\r\n isMobile() ?\r\n <>\r\n <Sidebar visibleChildKey={visibleSidebar} closeOverlays={closeSidebar.bind(this)} isMobile={true}>\r\n {this.renderFilters(hidingUpsell, zoneUpsellForSelectedSeats)}\r\n {this.renderCart(hidingUpsell)}\r\n </Sidebar>\r\n\r\n {this.renderSeatingInfo(hidingUpsell, zoneUpsellForSelectedSeats)}\r\n </>\r\n :\r\n <Sidebar visibleChildKey={visibleSidebar} closeOverlays={closeSidebar.bind(this)} isMobile={false}>\r\n {this.renderSeatingInfo(hidingUpsell, zoneUpsellForSelectedSeats)}\r\n {this.renderFilters(hidingUpsell, zoneUpsellForSelectedSeats)}\r\n {this.renderCart(hidingUpsell)}\r\n </Sidebar>\r\n }\r\n\r\n\r\n </div>\r\n : <DataLoader loadingSvgText={this.props.appSettingsModel.loadingSvgText}\r\n loadingText={this.props.appSettingsModel.loadingText}\r\n stopAnimationText={this.props.appSettingsModel.stopLoadingAnimationButtonText} />\r\n }\r\n </main>\r\n\r\n );\r\n }\r\n\r\n private toggleSeatingInfo = () => {\r\n this.props.seatMapModel.openSeatingInfo ? this.props.dispatch(closeSeatingInfo()) : this.props.dispatch(openSeatingInfo());\r\n\r\n }\r\n\r\n private closeOverlays = () => {\r\n this.props.dispatch(closeSeatingInfo());\r\n }\r\n\r\n private renderSeatingInfo = (hidingUpsell: boolean, zoneUpsellForSelectedSeats: ZoneUpsell[]) => {\r\n if (this.props.seatMapModel.selectedSeats.length < 1) {\r\n return null;\r\n }\r\n\r\n const isGAZone = (this.props.seatMapModel.selectedSeats.length > 1);\r\n\r\n return (\r\n <SeatingInfoContainer\r\n key={SidebarItems.SeatInfo}\r\n viewFromSeatModalActive={this.props.applicationModel.viewFromSeatModalActive}\r\n activeSeats={this.props.seatMapModel.selectedSeats}\r\n levelPricing={this.props.seatMapModel.allSeatPricing}\r\n selectedPriceTypes={this.state.selectedPriceTypeFilter}\r\n appSettingsModel={this.props.appSettingsModel}\r\n cartSeats={this.props.cartModel.seats}\r\n cartUpdated={this.props.cartModel.cartUpdated}\r\n dispatch={this.props.dispatch}\r\n seatmapModel={this.props.seatMapModel}\r\n additionalSeatingOptionModel={this.props.additionalSeatingOptionModel}\r\n maxQuantityPriceTypeError={this.props.cartModel.maxPriceTypeTicketQuantityReached}\r\n flexQuantityPriceTypeError={this.props.cartModel.flexTicketQuantityNotReachedError}\r\n isGAZone={isGAZone}\r\n exchangeModel={this.props.exchangeSettingsModel}\r\n zoneUpsell={zoneUpsellForSelectedSeats[0]}\r\n seats={this.props.seatMapModel.levelSeats}\r\n onCloseZoneUpsell={this._onCloseZoneUpsell.bind(this)}\r\n onToggleSeatingInfoOpen={this.toggleSeatingInfo.bind(this)}\r\n selectedPriceTypeQuantities={this.props.seatMapModel.selectedPriceQuantities}\r\n hidingUpsell={hidingUpsell || isGAZone}\r\n maxQuantitySeatingOptionError={this.props.cartModel.maxSeatingOptionTicketQuantityReached}\r\n flexMinQuantityError={\r\n this.props.cartModel.flexMinQuantityReachedForPriceType != null\r\n && this.props.cartModel.quantityHasBeenModified\r\n }\r\n quantityHasBeenModified={this.props.cartModel.quantityHasBeenModified}\r\n flexMaxQuantityErrorAllTickets={this.props.cartModel.flexMaxQuantityReached}\r\n flexMaxQuantityErrorPriceType={this.props.cartModel.flexMaxQuantityReachedForPriceType}\r\n showSeatingInfo={this.props.seatMapModel.openSeatingInfo}\r\n showOverlay={this.props.seatMapModel.openSeatingInfo}\r\n closeOverlays={this.closeOverlays.bind(this)}\r\n //disableOnClickOutside={!isMobile()}\r\n //outsideClickIgnoreClass=\"seat-path\"\r\n />\r\n );\r\n }\r\n\r\n private renderFilters = (hidingUpsell: boolean, zoneUpsellForSelectedSeats: ZoneUpsell[]) => {\r\n\r\n return (\r\n <React.Fragment key={SidebarItems.Filters} >\r\n <div className=\"overlay-section-mobile-background\" onClick={() => this.props.dispatch(closeSeatmapFilters(false))}></div>\r\n <FiltersOverlay {...this.props.appSettingsModel}\r\n priceRangeModel={this.props.priceRangeModel}\r\n onSelectMaxPrice={this.onSelectMaxPrice}\r\n onSelectMinPrice={this.onSelectMinPrice}\r\n onPriceRangeClear={null}\r\n startingMaxPrice={this.state.startingMax}\r\n startingMinPrice={this.state.startingMin}\r\n appSettings={this.props.appSettingsModel}\r\n showComponent={this.props.seatMapModel.openSeatmapFilters}\r\n onPriceTypeToggle={this.onTogglePriceType}\r\n onLevelSelectOpenToggle={this._toggleLevelSelectFilter.bind(this)}\r\n priceTypes={this.props.priceTypesModel.priceTypes.filter(ptS => this.getAvailablePriceTypesFromPricing(this.props).indexOf(ptS.priceTypeId) >= 0)}\r\n selectedPriceTypes={this.state.selectedPriceTypeFilter}\r\n activeExchangeTickets={this.props.exchangeSettingsModel.activeExchangeTickets}\r\n showLevelSelectFilter={this.state.showLevelSelectFilter}\r\n levelSelectFilterOpen={this.state.levelSelectFilterOpen}\r\n showPriceRangeFilter={this.state.showPriceRangeFilter}\r\n showPriceTypeFilter={this.state.showPriceTypeFilter}\r\n onPriceTypeFilterOpenToggle={this._togglePriceTypeFilter}\r\n openPriceTypeFilter={this.state.priceTypeFilterOpen}\r\n dispatch={this.props.dispatch}\r\n levels={this.props.venueLevelModel.venueLevels}\r\n cartSeats={this.props.cartModel.seats}\r\n currentSeatmapId={this.props.seatMapModel.seatmapId}\r\n onLevelSelectModalOpen={this.openLevelSelectModal.bind(this)}\r\n seatmapFiltersIsOpen={this.props.seatMapModel.openSeatmapFilters}\r\n seatmapFiltersText={this.props.appSettingsModel.seatmapFiltersText}\r\n showPerformanceSelectFilter={this.canChangeDate}\r\n showSpecialSeatingFilter={this.state.showSpecialSeatingFilter}\r\n additionalSeatingOptions={this.props.additionalSeatingOptionModel.additionalSeatingOptions.filter(option => option.seatConditionId)}\r\n onSpecialSeatingToggle={this.onToggleSpecialSeating}\r\n selectedSeatingOptions={this.state.selectedSpecialSeatingFilter}\r\n //disableOnClickOutside={!isMobile()}\r\n //outsideClickIgnoreClass=\"seat-path\"\r\n />\r\n\r\n\r\n {\r\n this.props.seatMapModel.selectedSeats.length === 0 ?\r\n <div className=\"seat-info-container\"></div>\r\n : \"\"\r\n }\r\n\r\n </React.Fragment>\r\n )\r\n }\r\n\r\n private renderCart = (hidingUpsell: boolean) => {\r\n return (\r\n <React.Fragment key={SidebarItems.Cart} >\r\n <div className=\"overlay-section-mobile-background\" onClick={() => this.props.dispatch(closeSeatmapCart(false))}></div>\r\n <CartOverlay\r\n key={SidebarItems.Cart}\r\n isMobile={isMobile()}\r\n hidingUpsell={hidingUpsell}\r\n showOverlay={this.props.seatMapModel.openSeatmapCart}\r\n showPromoCode={this.props.appSettingsModel.enablePromoCodes}\r\n promoCodeTitle={this.props.appSettingsModel.promoCodeTitle}\r\n appSettings={this.props.appSettingsModel}\r\n cartModel={this.props.cartModel}\r\n cartOverlayMessage=\"NEED TO ADD TO VENUE BUILDER\"\r\n additionalNotesTitle={this.props.appSettingsModel.additionalNotesTitle}\r\n dispatch={this.props.dispatch}\r\n itemType={this.props.appSettingsModel.itemType}\r\n promoCodeModel={this.props.promoCodeModel}\r\n levelSeats={this.props.seatMapModel.levelSeats}\r\n seatmapId={this.props.seatMapModel.seatmapId}\r\n selectedSeats={this.props.seatMapModel.selectedSeats}\r\n additionalSeatingOptionModel={this.props.additionalSeatingOptionModel}\r\n seatmapCartText={this.props.appSettingsModel.cartTitle}\r\n selectedPriceTypes={this.state.selectedPriceTypeFilter}\r\n fetchSeatViewImage={this.props.seatMapModel.hasSeatViewImages}\r\n />\r\n </React.Fragment>\r\n\r\n )\r\n }\r\n\r\n private _onCloseZoneUpsell() {\r\n this.setState({\r\n ...this.state,\r\n showZoneUpsell: false,\r\n seatsToHideUpsell: this.state.seatsToHideUpsell.concat(this.props.seatMapModel.selectedSeats.map(seat => seat.seatId))\r\n })\r\n\r\n if (this.props.seatMapModel.seatUpsoldCount > 0) {\r\n this.props.dispatch(resetZoneUpsellCount);\r\n }\r\n }\r\n\r\n _closeApplyPromoConfirmModal = () => {\r\n this.props.dispatch(closeApplyPromoCodeConfirmModal());\r\n }\r\n\r\n _confirmApplyPromoConfirmModal = () => {\r\n this.props.dispatch(applyPromoCode(this.props.cartModel.promoCodeToApply,\r\n this.props.appSettingsModel.currentCulture,\r\n true, this.props.appSettingsModel.itemId, this.props.appSettingsModel.itemType));\r\n this.props.dispatch(closeApplyPromoCodeConfirmModal());\r\n this.props.dispatch(unselectSeat());\r\n }\r\n\r\n _closeCartRemovalConfirmModal = () => {\r\n this.props.dispatch(closeCartRemovalModal());\r\n }\r\n\r\n _confirmCartRemovalConfirmModal = () => {\r\n this.props.dispatch(removeSeatFromCart(this.props.cartModel.seatToRemove, this.state.selectedPriceTypeFilter, this.props.appSettingsModel.brandId, true));\r\n this.props.dispatch(closeCartRemovalModal());\r\n }\r\n\r\n private onSelectMinPrice = (minPrice: number) => {\r\n this.props.dispatch(selectMinPrice(minPrice))\r\n };\r\n\r\n private onSelectMaxPrice = (maxPrice: number) => {\r\n this.props.dispatch(selectMaxPrice(maxPrice))\r\n };\r\n\r\n private onTogglePriceType = (selectedOptions: IOption[]) => {\r\n var newPriceTypes = selectedOptions.map(option =>\r\n this.props.priceTypesModel.priceTypes\r\n .filter(pt => pt.priceTypeId.toString() === option.id)[0]);\r\n\r\n this.setState({\r\n ...this.state,\r\n selectedPriceTypeFilter: newPriceTypes\r\n });\r\n\r\n this.props.dispatch(setPriceRange(true, [], newPriceTypes));\r\n }\r\n\r\n private onToggleSpecialSeating = (selectedOptions: IOption[]) => {\r\n var newSpecialSeating = selectedOptions.map(option =>\r\n this.props.additionalSeatingOptionModel.additionalSeatingOptions\r\n .filter(specialSeating => specialSeating.id === option.id)[0]);\r\n\r\n this.setState({\r\n ...this.state,\r\n selectedSpecialSeatingFilter: newSpecialSeating\r\n })\r\n }\r\n\r\n private _toggleLevelSelectFilter = () => {\r\n this.setState({\r\n levelSelectFilterOpen: !this.state.levelSelectFilterOpen\r\n })\r\n }\r\n\r\n private _togglePriceTypeFilter = () => {\r\n this.setState({\r\n priceTypeFilterOpen: !this.state.priceTypeFilterOpen\r\n })\r\n }\r\n\r\n private _changeLevelButtonClick = () => {\r\n this.props.dispatch(openSeatmapFilters());\r\n this.setState({\r\n levelSelectFilterOpen: true\r\n })\r\n }\r\n\r\n // this is used when there is no pricing on a seat that has been clicked on\r\n private _noSelectedPriceSeatClick = () => {\r\n this.props.dispatch(openSeatmapFilters());\r\n this.setState({\r\n priceTypeFilterOpen: true,\r\n levelSelectFilterOpen: false\r\n })\r\n }\r\n\r\n private _mouseOverSeat = (seats: Array<Seat>, xPos: number, yPos: number) => {\r\n if (!this.state.hoveredSeatId !== null) {\r\n //let closeToCenter = Math.abs(window.innerHeight / 2 - yPos - 82) <= 100;\r\n //console.log(yPos);\r\n //console.log(closeToCenter);\r\n this.props.dispatch(hoverSeatCoordinates(xPos + 10, yPos - (window.innerHeight / 2 - yPos < -200 ? 200 : 20), seats))\r\n this.setState({ hoveredSeatId: seats[0].seatId });\r\n }\r\n //+ (window.innerHeight / 2 - yPos > 0 ? (closeToCenter ? 5 : 10) : (closeToCenter ? 5 : -20))\r\n //var yPos = this.computeSeatHoverPositionY(seat);\r\n //var xPos = this.computeSeatHoverPositionX(seat);\r\n\r\n\r\n\r\n }\r\n\r\n private _mouseOutSeat = () => {\r\n this.props.dispatch(hoverSeatCoordinates(null, null, []));\r\n this.setState({ hoveredSeatId: null });\r\n }\r\n\r\n _updateLegendFlyoutState = (flyoutStatus: boolean) => {\r\n this.setState({\r\n legendFlyOut: flyoutStatus\r\n });\r\n };\r\n\r\n}\r\n\r\nexport default connect((state) => state)(Seatmap);","import { Seat, CartSeat, SeatZone, SeatPricing, SeatPriceQuantity } from '../../classes/seat';\r\nimport { PriceType } from '../../classes/price-type';\r\nimport isMobile from '../../helpers/is-mobile';\r\n\r\nimport { ZoneUpsell } from '../../classes/zone-upsell';\r\n\r\nexport function isSingleClick(disableOneClick: boolean, enableZoneUpsells: boolean, zoneUpsellEnableForMobile: boolean, seats: Array<Seat>, zoneUpsells: Array<ZoneUpsell>, selectedPriceQuantities: Array<SeatPriceQuantity>, priceTypes: Array<SeatPricing>): boolean {\r\n if ((selectedPriceQuantities.length > 1 || priceTypes.length > 1)) //if there are multiple price types\r\n return false;\r\n\r\n //if ((!disableOneClick) && selectedPriceQuantities.length === 0 && priceTypes.length === 0\r\n // && (enableZoneUpsells && !zoneUpsells.some(zoneUpsell => zoneUpsell.currentZoneId.toString() === seats[0].tessituraSeat.zoneId))) //this only happens on first select and price type quantities has been created yet\r\n // return true;\r\n\r\n // Set in VB\r\n var disableCase1 = disableOneClick;\r\n\r\n // Multiple pricetypes available for selection\r\n var disableCase2 = (priceTypes.length > 1 || priceTypes.length === 0);\r\n\r\n // If selected seat has confirm prompt\r\n var disableCase3 = (seats[0].seatStyleCulture.confirmPrompt != null && seats[0].seatStyleCulture.confirmPrompt.length > 0);\r\n\r\n // Special seating options\r\n var disableCase4 = (seats[0].seatingOptionGroup != null);\r\n\r\n // Selected price type should enable upsell\r\n var disableCase5 = (selectedPriceQuantities.length === 1\r\n && (enableZoneUpsells && !(isMobile() && !zoneUpsellEnableForMobile))\r\n && sameZoneAndPriceType(zoneUpsells, seats[0].tessituraSeat.zoneId, selectedPriceQuantities[0].seatPricing.priceTypeId)\r\n );\r\n\r\n // Before price type is selected, but there is one available price type,\r\n // Price type should enable upsell\r\n var disableCase6 = (selectedPriceQuantities.length === 0\r\n && priceTypes.length === 1\r\n && (enableZoneUpsells && !(isMobile() && !zoneUpsellEnableForMobile))\r\n && sameZoneAndPriceType(zoneUpsells, seats[0].tessituraSeat.zoneId, priceTypes[0].priceTypeId)\r\n );\r\n\r\n // Multiple selected seats mean GA zone (GA zone check)\r\n var disableCase7 = seats.length > 1;\r\n\r\n return !(disableCase1 || disableCase2 || disableCase3 || disableCase4 || disableCase5 || disableCase6 || disableCase7);\r\n}\r\n\r\nfunction sameZoneAndPriceType(zoneUpsells: ZoneUpsell[], zoneId: string, priceTypeId: number) {\r\n return zoneUpsells.some(zoneUpsell => zoneUpsell.currentZoneId.toString() === zoneId\r\n && zoneUpsell.priceTypeId === priceTypeId);\r\n}\r\n","import { ActionType, ActionTypes } from '../../actions/index';\r\nimport { ISeatInCartRequestModel } from '../../actions/fetch';\r\nimport { ISeatMatchRequestModel } from '../../classes/request-model';\r\nimport * as redux from 'redux';\r\n\r\nexport interface ISeatMapResultModel {\r\n requestingSeatmap: boolean;\r\n requestingSeatPaths: boolean;\r\n requestingBackgroundPaths: boolean;\r\n seatMapMatchFilter: ISeatMatchRequestModel;\r\n}\r\n\r\nlet defaultSeatMapResultModel = {\r\n seatMapMatchFilter: null,\r\n requestingSeatmap: false,\r\n requestingBackgroundPaths: false,\r\n requestingSeatPaths: false\r\n};\r\n\r\nexport { defaultSeatMapResultModel };\r\n\r\nexport function seatMapResultModel(state: ISeatMapResultModel = defaultSeatMapResultModel\r\n , action) {\r\n switch (action.type) {\r\n case ActionTypes.REQUEST_SEATMAP:\r\n return { ...state, seatMapMatchFilter: action.value, requestingSeatmap: true };\r\n case ActionTypes.RECEIVE_SEATMAP:\r\n return {\r\n ...state,\r\n requestingSeatmap: false\r\n };\r\n case ActionTypes.REQUEST_SEATMAP_BACKGROUND:\r\n return { ...state, requestingBackgroundPaths: true };\r\n case ActionTypes.RECEIVE_SEATMAP_BACKGROUND:\r\n return {\r\n ...state,\r\n requestingBackgroundPaths: false\r\n };\r\n case ActionTypes.REQUEST_SEATMAP_PATHS:\r\n return { ...state, requestingSeatPaths: true };\r\n case ActionTypes.RECEIVE_SEATMAP_PATHS:\r\n return {\r\n ...state,\r\n requestingSeatPaths: false\r\n };\r\n default:\r\n return state;\r\n }\r\n};\r\n","import sortBy from 'lodash/sortBy';\r\nimport { calculateExchangePrice } from '../../actions/exchange-actions';\r\nimport { ActionTypes } from '../../actions/index';\r\nimport { CartSeat, Seat, SeatPriceQuantity, SeatStyle, SeatStyleCulture, SeatZone } from '../../classes/seat';\r\nimport { ZoneUpsell } from '../../classes/zone-upsell';\r\nimport isMobile from '../../helpers/is-mobile';\r\n\r\n\r\ninterface PriceTypeQuantity {\r\n priceTypeId: number;\r\n quantity: number;\r\n}\r\n\r\nexport interface ISeatMapModel {\r\n brandId: string;\r\n levelId: string;\r\n seatmapId: string;\r\n levelSeats: Array<Seat>;\r\n levelBackgroundPaths: Array<string>;\r\n allSeatPricing: Array<SeatZone>\r\n levelSvgBackgroundImage: string;\r\n selectedSeats: Array<Seat>;\r\n seatStyles: Array<SeatStyle>;\r\n seatStyleCultures: Array<SeatStyleCulture>;\r\n currentZoom: number;\r\n zoomChanged: boolean;\r\n requestingSeatView: boolean;\r\n openSeatmapFilters: boolean;\r\n openSeatmapCart: boolean;\r\n openSeatingInfo: boolean;\r\n seatHoverX: number;\r\n seatHoverY: number;\r\n seatsHovered: Array<Seat>;\r\n zoneUpsells: Array<ZoneUpsell>;\r\n selectedPriceQuantities: Array<SeatPriceQuantity>;\r\n seatUpsoldCount: number;\r\n hasSeatViewImages: boolean;\r\n\r\n mobileSeatMapViewBox: string;\r\n tabletSeatMapViewBox: string;\r\n confirmedAttestation: Array<string>;\r\n loadedExchangePricing: boolean;\r\n}\r\n\r\nlet defaultSeatMapModel: ISeatMapModel = {\r\n brandId: '',\r\n levelId: '',\r\n seatmapId: '',\r\n levelSeats: [],\r\n levelBackgroundPaths: [],\r\n levelSvgBackgroundImage: '',\r\n selectedSeats: [],\r\n //activeSeat: { seatId: '', svgPath: '', tessituraSeat: null, seatStyleId: '', seatStyle: null },\r\n allSeatPricing: [],\r\n seatStyles: [],\r\n seatStyleCultures: [],\r\n currentZoom: null,\r\n zoomChanged: false,\r\n requestingSeatView: false,\r\n openSeatmapFilters: true,\r\n openSeatmapCart: false,\r\n openSeatingInfo: false,\r\n seatHoverX: null,\r\n seatHoverY: null,\r\n seatsHovered: [],\r\n zoneUpsells: [],\r\n selectedPriceQuantities: [],\r\n seatUpsoldCount: 0,\r\n confirmedAttestation: [],\r\n mobileSeatMapViewBox: \"\",\r\n tabletSeatMapViewBox: \"\",\r\n hasSeatViewImages: false,\r\n loadedExchangePricing: false\r\n};\r\n\r\nexport { defaultSeatMapModel };\r\n\r\nexport function seatMapModel(state: ISeatMapModel = defaultSeatMapModel, action) {\r\n switch (action.type) {\r\n case ActionTypes.RECEIVE_SETTINGS:\r\n return { ...state, openSeatmapFilters: isMobile() ? false : action.value.expandFiltersOnSeatmapLoad };\r\n case ActionTypes.CLOSE_SEATMAP_FILTERS:\r\n return { ...state, openSeatmapFilters: false };\r\n case ActionTypes.OPEN_SEATMAP_FILTERS:\r\n return { ...state, openSeatmapFilters: true, openSeatmapCart: false, openSeatingInfo: false };\r\n case ActionTypes.CLOSE_SEATMAP_CART:\r\n return { ...state, openSeatmapCart: false };\r\n case ActionTypes.OPEN_SEATMAP_CART:\r\n return {\r\n ...state, openSeatmapCart: true, openSeatmapFilters: false, openSeatingInfo: isMobile() ? false : state.openSeatingInfo\r\n };\r\n case ActionTypes.CLOSE_SEATING_INFO:\r\n return { ...state, openSeatingInfo: false };\r\n case ActionTypes.OPEN_SEATING_INFO:\r\n return { ...state, openSeatingInfo: true, openSeatmapFilters: false };\r\n case ActionTypes.ADD_SEAT_TO_CART:\r\n let newSeat = action.value as CartSeat;\r\n let newAttested = [];\r\n if (newSeat.seatStyleCulture.confirmPrompt != null && newSeat.seatStyleCulture.confirmPrompt.length > 0 && state.confirmedAttestation.indexOf(newSeat.seatStyleCulture.confirmPrompt) < 0) {\r\n newAttested = newAttested.concat(newSeat.seatStyleCulture.confirmPrompt);\r\n }\r\n\r\n return { ...state, openSeatmapFilters: false, confirmedAttestation: state.confirmedAttestation.concat(newAttested) };\r\n case ActionTypes.LOAD_SEATMAP_BACKGROUND:\r\n return { ...state, levelBackgroundPaths: action.value.response };\r\n case ActionTypes.SET_CURRENT_EXCHANGE_TICKETS:\r\n let newExchangePricing = state.allSeatPricing.map(pricing => {\r\n pricing.prices = pricing.prices.map(pr => {\r\n pr.price = calculateExchangePrice(pr.defaultPrice, action.value.exchangeTickets);\r\n return pr;\r\n });\r\n return pricing;\r\n });\r\n\r\n const cartSeats = action.value.cartSeats as Array<CartSeat>;\r\n\r\n const newLevelSeats = state.levelSeats.map(seat => {\r\n let seatPrice = newExchangePricing.filter(pricing => pricing.zoneId.toString() === seat.tessituraSeat.zoneId)[0];\r\n if (seatPrice !== undefined && seat.tessituraSeat.isAvailable && !cartSeats.some(cartS => cartS.seatId === seat.seatId)) {\r\n\r\n //exchanges should only have one price type\r\n if (seatPrice.prices[0].price > 0) {\r\n seat.seatStyle = state.seatStyles.filter(style => {\r\n return style.id === seat.exchangeHigherPriceSeatStyleId;\r\n })[0];\r\n\r\n let styleCulture = state.seatStyleCultures.filter(style => {\r\n return style.seatStyleId === seat.exchangeHigherPriceSeatStyleId;\r\n })[0];\r\n\r\n seat.seatStyleCulture = styleCulture;\r\n\r\n if (seat.seatStyle === undefined) {\r\n console.log(\"missing seat style:\" + seat.seatStyleId + \" for seat\", seat);\r\n let unavailable = newState.seatStyles.filter(style => style.name.toLocaleLowerCase() === \"unavailable\");\r\n seat.tessituraSeat.isAvailable = false;\r\n\r\n if (unavailable.length > 0) {\r\n seat.seatStyleId = unavailable[0].id;\r\n seat.seatStyle = unavailable[0];\r\n } else {\r\n console.log(\"BUT NO UNAVAIBLE STYLE:\", newState.seatStyles);\r\n }\r\n }\r\n\r\n if (seat.exchangeHigherPriceSvgPath != null) {\r\n seat.activeSvgPath = seat.exchangeHigherPriceSvgPath;\r\n }\r\n } else {\r\n seat.seatStyle = state.seatStyles.filter(style => {\r\n return style.id === seat.exchangeSamePriceSeatStyleId;\r\n })[0];\r\n\r\n let styleCulture = state.seatStyleCultures.filter(style => {\r\n return style.seatStyleId === seat.exchangeSamePriceSeatStyleId;\r\n })[0];\r\n\r\n seat.seatStyleCulture = styleCulture;\r\n\r\n if (seat.seatStyle === undefined) {\r\n console.log(\"missing seat style:\" + seat.seatStyleId + \" for seat\", seat);\r\n let unavailable = newState.seatStyles.filter(style => style.name.toLocaleLowerCase() === \"unavailable\");\r\n seat.tessituraSeat.isAvailable = false;\r\n\r\n if (unavailable.length > 0) {\r\n seat.seatStyleId = unavailable[0].id;\r\n seat.seatStyle = unavailable[0];\r\n } else {\r\n console.log(\"BUT NO UNAVAIBLE STYLE:\", newState.seatStyles);\r\n }\r\n }\r\n\r\n if (seat.exchangeHigherPriceSvgPath != null) {\r\n seat.activeSvgPath = seat.exchangeSamePriceSvgPath;\r\n }\r\n }\r\n\r\n }\r\n return seat;\r\n });\r\n return { ...state, allSeatPricing: newExchangePricing, levelSeats: newLevelSeats, loadedExchangePricing: true };\r\n case ActionTypes.REQUEST_SEATMAP:\r\n return { ...state, loadedExchangePricing: false };\r\n case ActionTypes.LOAD_SEATMAP:\r\n const newState = action.value.response as ISeatMapModel;\r\n\r\n const selectedPriceTypeQuantities = action.value.selectedPriceTypes as Array<PriceTypeQuantity>;\r\n const unavailableStyles = newState.seatStyles.filter(style => style.name.toLocaleLowerCase() === \"unavailable\");\r\n const levelPricing = newState.allSeatPricing;\r\n\r\n // Assign the appropriate seat style and view to each seat and set availability.\r\n const levelSeats = newState.levelSeats.map(seat => {\r\n const zonePrice = levelPricing.filter(pricing => pricing.zoneId.toString() === seat.tessituraSeat.zoneId);\r\n const selectedPriceTypeIds = selectedPriceTypeQuantities.map(priceTypeQuantity => priceTypeQuantity.priceTypeId)\r\n\r\n if ((zonePrice.length == 0 || zonePrice.every(pr => pr.prices.length == 0)) && seat.tessituraSeat.isAvailable) {\r\n console.log(\"SEAT IS AVAILABLE BUT MISSING ZONE:\", seat.tessituraSeat);\r\n if (unavailableStyles.length > 0) {\r\n seat.seatStyleId = unavailableStyles[0].id;\r\n seat.tessituraSeat.isAvailable = false;\r\n }\r\n }\r\n else if (zonePrice.length > 0 && selectedPriceTypeIds.length > 0) {\r\n //const selectedPrice = zonePrice[0].prices.filter(price => selectedPriceTypeIds.indexOf(+price.priceTypeId) >= 0);\r\n\r\n if (seat.seatingOptionGroup != null\r\n && seat.seatingOptionGroup.unlockSeatingOptionGroupId !== null\r\n && seat.seatingOptionGroup.unlockSeatingOptionGroupId.length > 0) {\r\n seat.tessituraSeat.isDisabled = true;\r\n }\r\n\r\n }\r\n\r\n const matchedCartStyles = state.seatStyles.filter(style => {\r\n return style.id === seat.inCartSeatStyleId;\r\n });\r\n\r\n if (action.value.cartSeats.length > 0\r\n && action.value.cartSeats.some(currentCartSeat => currentCartSeat.seatId === seat.seatId)\r\n && matchedCartStyles.length > 0) {\r\n\r\n seat.seatStyleCulture = state.seatStyleCultures.filter(style => {\r\n return style.seatStyleId === seat.inCartSeatStyleId;\r\n })[0];\r\n\r\n seat.seatStyle = state.seatStyles.filter(style => {\r\n return style.id === seat.inCartSeatStyleId;\r\n })[0];\r\n\r\n if (!seat.seatStyle) {\r\n console.log(\"missing cart seat style:\" + seat.seatStyleId + \" for seat\", seat);\r\n if (unavailableStyles.length > 0) {\r\n seat.seatStyleId = unavailableStyles[0].id;\r\n seat.seatStyle = unavailableStyles[0];\r\n seat.tessituraSeat.isAvailable = false;\r\n }\r\n }\r\n\r\n seat.activeSvgPath = seat.inCartSeatPath;\r\n //seat.svgPath = seat.inCartSeatPath;;\r\n\r\n } else {\r\n\r\n seat.seatStyle = newState.seatStyles.filter(style => {\r\n return style.id === seat.seatStyleId;\r\n })[0];\r\n\r\n let styleCulture = newState.seatStyleCultures.filter(style => {\r\n return style.seatStyleId === seat.seatStyleId;\r\n })[0];\r\n\r\n seat.seatStyleCulture = styleCulture;\r\n\r\n seat.originalSeatStyleCulture = styleCulture;\r\n\r\n if (seat.seatStyle === undefined) {\r\n console.log(\"missing seat style:\" + seat.seatStyleId + \" for seat\", seat);\r\n\r\n if (unavailableStyles.length > 0) {\r\n seat.seatStyleId = unavailableStyles[0].id;\r\n seat.seatStyle = unavailableStyles[0];\r\n seat.tessituraSeat.isAvailable = false;\r\n }\r\n }\r\n\r\n seat.activeSvgPath = seat.svgPath;\r\n\r\n }\r\n\r\n return seat;\r\n });\r\n\r\n const levelBackgroundPaths = [];\r\n return {\r\n ...state,\r\n ...action.value.response,\r\n levelSeats,\r\n levelBackgroundPaths\r\n };\r\n case ActionTypes.REQUEST_SEATVIEW:\r\n return { ...state, requestingSeatView: true };\r\n case ActionTypes.LOAD_SEATVIEW:\r\n return {\r\n ...state,\r\n requestingSeatView: false,\r\n selectedSeats: state.selectedSeats.map(seat => {\r\n seat.seatViewImageSrc = action.value;\r\n return seat;\r\n })\r\n };\r\n case ActionTypes.LOAD_SEAT_INCART_STYLE:\r\n var cartSeat = action.value as Seat;\r\n return {\r\n ...state,\r\n // For each seat\r\n levelSeats: state.levelSeats.map(seat => {\r\n // give it the appropriate style object\r\n if (seat.seatId === cartSeat.seatId) {\r\n seat.activeSvgPath = seat.inCartSeatPath;\r\n\r\n seat.seatStyleCulture = state.seatStyleCultures.filter(style => {\r\n return style.seatStyleId === seat.inCartSeatStyleId;\r\n })[0];\r\n\r\n seat.seatStyle = state.seatStyles.filter(style => {\r\n return style.id === seat.inCartSeatStyleId;\r\n })[0];\r\n\r\n if (seat.seatStyle == null) {\r\n console.log(\"missing cart seat style:\" + seat.seatStyleId);\r\n }\r\n }\r\n return seat;\r\n })\r\n };\r\n case ActionTypes.REMOVE_SEAT_INCART_STYLE:\r\n var cartSeat = action.value as Seat;\r\n return {\r\n ...state,\r\n // For each seat\r\n levelSeats: state.levelSeats.map(seat => {\r\n // give it the appropriate style object\r\n if (seat.seatId === cartSeat.seatId) {\r\n seat.seatStyle = state.seatStyles.filter(style => {\r\n return style.id === seat.seatStyleId;\r\n })[0];\r\n\r\n if (seat.seatStyle == null) {\r\n console.log(\"missing cart seat style:\" + seat.seatStyleId);\r\n }\r\n\r\n seat.seatStyleCulture = state.seatStyleCultures.filter(style => {\r\n return style.seatStyleId === seat.seatStyleId;\r\n })[0];\r\n\r\n seat.activeSvgPath = seat.svgPath;\r\n }\r\n return seat;\r\n })\r\n };\r\n\r\n // Add seat to selected and close the cart\r\n case ActionTypes.SELECT_SEAT:\r\n const actionValue = action.value as { seats: Seat[], openInfo: boolean };\r\n const selectedSeats = actionValue.seats.map(seat => {\r\n seat.associatedSeatmapId = seat.associatedSeatmapId || state.seatmapId;\r\n return seat;\r\n });\r\n return {\r\n ...state,\r\n selectedSeats: selectedSeats.sort((a, b) => (+b.tessituraSeat.isAvailable) - (+a.tessituraSeat.isAvailable)),\r\n openSeatmapCart: !isMobile() ? false : state.openSeatmapCart,\r\n openSeatingInfo: actionValue.openInfo,\r\n openSeatmapFilters: false\r\n };\r\n\r\n case ActionTypes.UNSELECT_SEAT:\r\n const emptySeats = [];\r\n return { ...state, selectedSeats: emptySeats };\r\n case ActionTypes.UNLOCK_SEATS:\r\n let unlockableSeats = action.value as Array<Seat>;\r\n\r\n let regularSeats = state.levelSeats.filter(seat => !unlockableSeats.some(s => s.seatId === seat.seatId));\r\n\r\n return {\r\n ...state,\r\n levelSeats: sortBy(regularSeats.concat(unlockableSeats.map(unlockSeat => {\r\n unlockSeat.tessituraSeat.isDisabled = false;\r\n return unlockSeat;\r\n })), s => s.seatId),\r\n cartUpdated: true\r\n };\r\n case ActionTypes.LOCK_SEATS:\r\n let lockableSeats = action.value as Array<Seat>;\r\n\r\n let unlockedSeats = state.levelSeats.filter(seat => !lockableSeats.some(s => s.seatId === seat.seatId));\r\n\r\n return {\r\n ...state,\r\n levelSeats: sortBy(unlockedSeats.concat(lockableSeats.map(lockSeat => {\r\n lockSeat.tessituraSeat.isDisabled = true;\r\n return lockSeat;\r\n })), s => s.seatId),\r\n cartUpdated: true\r\n };\r\n case ActionTypes.LOCK_ALL_SEATS:\r\n return {\r\n ...state,\r\n levelSeats: state.levelSeats.map(lockSeat => {\r\n lockSeat.tessituraSeat.isDisabled = true;\r\n return lockSeat;\r\n }),\r\n cartUpdated: true\r\n };\r\n case ActionTypes.ON_ZOOM:\r\n return { ...state, currentZoom: action.value.newZoom, zoomChanged: action.value.zoomChanged };\r\n case ActionTypes.SELECT_LEVEL:\r\n return { ...state, seatmapId: action.value, loaded: false };\r\n case ActionTypes.HOVER_SEAT:\r\n return { ...state, seatHoverX: action.value.xCoord, seatHoverY: action.value.yCoord, seatsHovered: action.value.seatsHovered };\r\n case ActionTypes.SET_SELECTED_PRICE_QUANTITIES:\r\n return {\r\n ...state, selectedPriceQuantities: action.value\r\n }\r\n case ActionTypes.SELECT_ZONE_UPSELL:\r\n return {\r\n ...state,\r\n seatUpsoldCount: state.seatUpsoldCount + 1\r\n }\r\n case ActionTypes.RESET_ZONE_UPSELL:\r\n return {\r\n ...state,\r\n seatUpsoldCount: 0\r\n }\r\n default:\r\n return state;\r\n }\r\n};\r\n","import moment from 'moment';\r\nimport * as PropTypes from 'prop-types';\r\nimport * as React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { showLoadingScreen } from '../../actions/app-actions';\r\nimport Modal from '../../common/modal/modal';\r\nimport PromoCodeContainer from '../../common/promo-code/promo-code';\r\nimport { selectPriceTypeTickets } from '../../filter/actions/filter-actions';\r\nimport FilterPageHeader from '../../filter/components/filter-page-header';\r\nimport PriceTypeFilterContainer from '../../filter/components/price-type-filter-container';\r\nimport { getSelectedTicketCount } from '../../helpers/price-type-helpers';\r\nimport { CartHelpers } from '../../helpers/cart-helpers';\r\nimport { IAppState } from '../../reducers/index';\r\n\r\n\r\nexport interface IFilterState {\r\n showMissingTicketsError: boolean;\r\n invalidTicketsMessage: string;\r\n lastFocused: any;\r\n modalFocusableElements: any[];\r\n};\r\n\r\nclass PackageQuantitySelect extends React.Component<IAppState, IFilterState>{\r\n static contextTypes = {\r\n router: PropTypes.object\r\n }\r\n\r\n constructor(props: IAppState) {\r\n super(props);\r\n // If no app settings are passed in, let it through until something comes.\r\n\r\n this.state = {\r\n showMissingTicketsError: false,\r\n invalidTicketsMessage: \"\",\r\n lastFocused: null,\r\n modalFocusableElements: null\r\n };\r\n }\r\n\r\n \r\n\r\n get canProceed(): boolean {\r\n return getSelectedTicketCount(this.props.priceTypesModel) > 0;\r\n }\r\n\r\n get disableText(): string {\r\n if (this.canProceed) {\r\n return \"\";\r\n }\r\n\r\n return \"disabled\";\r\n }\r\n\r\n componentWillReceiveProps(props: IAppState) {\r\n // If no app settings are passed in, let it through until something comes.\r\n let hasNotPassed: boolean;\r\n if (props.appSettingsModel.performanceDate) {\r\n const currPerformanceDate = moment(props.appSettingsModel.performanceDate);\r\n hasNotPassed = currPerformanceDate.diff(moment()) >= 0;\r\n } else {\r\n hasNotPassed = true;\r\n }\r\n\r\n this.setState({\r\n showMissingTicketsError: this.state.showMissingTicketsError,\r\n invalidTicketsMessage: this.state.invalidTicketsMessage,\r\n lastFocused: null,\r\n modalFocusableElements: null\r\n });\r\n }\r\n\r\n render() {\r\n return (\r\n <>\r\n <main className=\"filters-container\" id=\"main-content\">\r\n <FilterPageHeader\r\n title={this.props.appSettingsModel.subscriptionQuantitySelectPageHeaderTitle}\r\n message={this.props.appSettingsModel.subscriptionQuantitySelectPageHeaderMessage} />\r\n\r\n <PromoCodeContainer collapseDown={true} culture={this.props.appSettingsModel.currentCulture} />\r\n\r\n <PriceTypeFilterContainer\r\n priceTypes={this.props.priceTypesModel.priceTypes}\r\n onChangePriceTypeQuantity={this._onChangePriceTypeQuantity.bind(this)}\r\n appSettingsModel={this.props.appSettingsModel}\r\n showComponent={true}\r\n multipleOfSeatsRequiredToContinue={CartHelpers.checkForcedMultipleReserve(this.props.appSettingsModel.forcePatronsReserveInMultiples, this.props.priceTypesModel.priceTypes)}\r\n />\r\n </main>\r\n\r\n {\r\n !this.props.appSettingsModel.itemOnSale ?\r\n <Modal modalKey=\"performance not on sale\" isError={true}\r\n title={this.props.appSettingsModel.performanceNotOnSaleModalTitle}\r\n message={this.props.appSettingsModel.performanceNotOnSaleModalMessage}\r\n confirmFunction={this._performanceNotOnSaleRedirect.bind(this)}\r\n confirmString={this.props.appSettingsModel.performanceNotOnSaleRedirectButtonText}\r\n closeFunction={this._performanceNotOnSaleRedirect.bind(this)}\r\n />\r\n :\r\n (\r\n !this.props.appSettingsModel.itemOnSale ?\r\n <Modal modalKey=\"performance sold out\" isError={true}\r\n title={this.props.appSettingsModel.performanceSoldOutModalTitle}\r\n message={this.props.appSettingsModel.performanceSoldOutModalMessage}\r\n confirmFunction={this._performanceNotOnSaleRedirect.bind(this)}\r\n confirmString={this.props.appSettingsModel.performanceNotOnSaleRedirectButtonText}\r\n closeFunction={this._performanceNotOnSaleRedirect.bind(this)}\r\n />\r\n : null)\r\n }\r\n\r\n <footer className=\"footer-wrapper\">\r\n\r\n <div className=\"footer-container\">\r\n <button type=\"button\" disabled={this.disableText.length > 0} onClick={() => this._onProceedClick()} className={\"footer-link \" + this.disableText}><span>{this.props.appSettingsModel.packageQuantityStepOneButton}</span></button>\r\n </div>\r\n </footer>\r\n </>\r\n\r\n );\r\n }\r\n\r\n _performanceNotOnSaleRedirect() {\r\n window.location.href = this.props.appSettingsModel.performanceNotOnSaleRedirectUrl;\r\n }\r\n\r\n _ticketQuantityZeroRedirect() {\r\n window.location.href = this.props.appSettingsModel.ticketQuantityZeroRedirectUrl;\r\n }\r\n\r\n _onProceedClick() {\r\n this.props.dispatch(showLoadingScreen());\r\n this.context.router.history.push(\"/filters\");\r\n }\r\n\r\n _onChangePriceTypeQuantity(quantity: number, priceTypeId: number) {\r\n this.props.dispatch(selectPriceTypeTickets(priceTypeId, quantity, false, [], true));\r\n }\r\n\r\n}\r\n\r\nexport default connect((state) => state)(PackageQuantitySelect);","var focusableSelectors = [\n 'a[href]:not([tabindex^=\"-\"])',\n 'area[href]:not([tabindex^=\"-\"])',\n 'input:not([type=\"hidden\"]):not([type=\"radio\"]):not([disabled]):not([tabindex^=\"-\"])',\n 'input[type=\"radio\"]:not([disabled]):not([tabindex^=\"-\"])',\n 'select:not([disabled]):not([tabindex^=\"-\"])',\n 'textarea:not([disabled]):not([tabindex^=\"-\"])',\n 'button:not([disabled]):not([tabindex^=\"-\"])',\n 'iframe:not([tabindex^=\"-\"])',\n 'audio[controls]:not([tabindex^=\"-\"])',\n 'video[controls]:not([tabindex^=\"-\"])',\n '[contenteditable]:not([tabindex^=\"-\"])',\n '[tabindex]:not([tabindex^=\"-\"])',\n];\n\nvar TAB_KEY = 'Tab';\nvar ESCAPE_KEY = 'Escape';\n\n/**\n * Define the constructor to instantiate a dialog\n *\n * @constructor\n * @param {Element} element\n */\nfunction A11yDialog(element) {\n // Prebind the functions that will be bound in addEventListener and\n // removeEventListener to avoid losing references\n this._show = this.show.bind(this);\n this._hide = this.hide.bind(this);\n this._maintainFocus = this._maintainFocus.bind(this);\n this._bindKeypress = this._bindKeypress.bind(this);\n\n this.$el = element;\n this.shown = false;\n this._id = this.$el.getAttribute('data-a11y-dialog') || this.$el.id;\n this._previouslyFocused = null;\n this._listeners = {};\n\n // Initialise everything needed for the dialog to work properly\n this.create();\n}\n\n/**\n * Set up everything necessary for the dialog to be functioning\n *\n * @param {(NodeList | Element | string)} targets\n * @return {this}\n */\nA11yDialog.prototype.create = function () {\n this.$el.setAttribute('aria-hidden', true);\n this.$el.setAttribute('aria-modal', true);\n this.$el.setAttribute('tabindex', -1);\n\n if (!this.$el.hasAttribute('role')) {\n this.$el.setAttribute('role', 'dialog');\n }\n\n // Keep a collection of dialog openers, each of which will be bound a click\n // event listener to open the dialog\n this._openers = $$('[data-a11y-dialog-show=\"' + this._id + '\"]');\n this._openers.forEach(\n function (opener) {\n opener.addEventListener('click', this._show);\n }.bind(this)\n );\n\n // Keep a collection of dialog closers, each of which will be bound a click\n // event listener to close the dialog\n const $el = this.$el;\n\n this._closers = $$('[data-a11y-dialog-hide]', this.$el)\n // This filter is necessary in case there are nested dialogs, so that\n // only closers from the current dialog are retrieved and effective\n .filter(function (closer) {\n // Testing for `[aria-modal=\"true\"]` is not enough since this attribute\n // and the collect of closers is done at instantation time, when nested\n // dialogs might not have yet been instantiated. Note that if the dialogs\n // are manually instantiated, this could still fail because none of these\n // selectors would match; this would cause closers to close all parent\n // dialogs instead of just the current one\n return closer.closest('[aria-modal=\"true\"], [data-a11y-dialog]') === $el\n })\n .concat($$('[data-a11y-dialog-hide=\"' + this._id + '\"]'));\n\n this._closers.forEach(\n function (closer) {\n closer.addEventListener('click', this._hide);\n }.bind(this)\n );\n\n // Execute all callbacks registered for the `create` event\n this._fire('create');\n\n return this\n};\n\n/**\n * Show the dialog element, disable all the targets (siblings), trap the\n * current focus within it, listen for some specific key presses and fire all\n * registered callbacks for `show` event\n *\n * @param {CustomEvent} event\n * @return {this}\n */\nA11yDialog.prototype.show = function (event) {\n // If the dialog is already open, abort\n if (this.shown) {\n return this\n }\n\n // Keep a reference to the currently focused element to be able to restore\n // it later\n this._previouslyFocused = document.activeElement;\n\n // Due to a long lasting bug in Safari, clicking an interactive element (like\n // a <button>) does *not* move the focus to that element, which means\n // `document.activeElement` is whatever element is currently focused (like an\n // <input>), or the <body> element otherwise. We can work around that problem\n // by checking whether the focused element is the <body>, and if it, store the\n // click event target.\n // See: https://bugs.webkit.org/show_bug.cgi?id=22261\n const target = event && event.target ? event.target : null;\n if (target && Object.is(this._previouslyFocused, document.body)) {\n this._previouslyFocused = target;\n }\n\n this.$el.removeAttribute('aria-hidden');\n this.shown = true;\n\n // Set the focus to the dialog element\n moveFocusToDialog(this.$el);\n\n // Bind a focus event listener to the body element to make sure the focus\n // stays trapped inside the dialog while open, and start listening for some\n // specific key presses (TAB and ESC)\n document.body.addEventListener('focus', this._maintainFocus, true);\n document.addEventListener('keydown', this._bindKeypress);\n\n // Execute all callbacks registered for the `show` event\n this._fire('show', event);\n\n return this\n};\n\n/**\n * Hide the dialog element, enable all the targets (siblings), restore the\n * focus to the previously active element, stop listening for some specific\n * key presses and fire all registered callbacks for `hide` event\n *\n * @param {CustomEvent} event\n * @return {this}\n */\nA11yDialog.prototype.hide = function (event) {\n // If the dialog is already closed, abort\n if (!this.shown) {\n return this\n }\n\n this.shown = false;\n this.$el.setAttribute('aria-hidden', 'true');\n\n // If there was a focused element before the dialog was opened (and it has a\n // `focus` method), restore the focus back to it\n // See: https://github.com/KittyGiraudel/a11y-dialog/issues/108\n if (this._previouslyFocused && this._previouslyFocused.focus) {\n this._previouslyFocused.focus();\n }\n\n // Remove the focus event listener to the body element and stop listening\n // for specific key presses\n document.body.removeEventListener('focus', this._maintainFocus, true);\n document.removeEventListener('keydown', this._bindKeypress);\n\n // Execute all callbacks registered for the `hide` event\n this._fire('hide', event);\n\n return this\n};\n\n/**\n * Destroy the current instance (after making sure the dialog has been hidden)\n * and remove all associated listeners from dialog openers and closers\n *\n * @return {this}\n */\nA11yDialog.prototype.destroy = function () {\n // Hide the dialog to avoid destroying an open instance\n this.hide();\n\n // Remove the click event listener from all dialog openers\n this._openers.forEach(\n function (opener) {\n opener.removeEventListener('click', this._show);\n }.bind(this)\n );\n\n // Remove the click event listener from all dialog closers\n this._closers.forEach(\n function (closer) {\n closer.removeEventListener('click', this._hide);\n }.bind(this)\n );\n\n // Execute all callbacks registered for the `destroy` event\n this._fire('destroy');\n\n // Keep an object of listener types mapped to callback functions\n this._listeners = {};\n\n return this\n};\n\n/**\n * Register a new callback for the given event type\n *\n * @param {string} type\n * @param {Function} handler\n */\nA11yDialog.prototype.on = function (type, handler) {\n if (typeof this._listeners[type] === 'undefined') {\n this._listeners[type] = [];\n }\n\n this._listeners[type].push(handler);\n\n return this\n};\n\n/**\n * Unregister an existing callback for the given event type\n *\n * @param {string} type\n * @param {Function} handler\n */\nA11yDialog.prototype.off = function (type, handler) {\n var index = (this._listeners[type] || []).indexOf(handler);\n\n if (index > -1) {\n this._listeners[type].splice(index, 1);\n }\n\n return this\n};\n\n/**\n * Iterate over all registered handlers for given type and call them all with\n * the dialog element as first argument, event as second argument (if any). Also\n * dispatch a custom event on the DOM element itself to make it possible to\n * react to the lifecycle of auto-instantiated dialogs.\n *\n * @access private\n * @param {string} type\n * @param {CustomEvent} event\n */\nA11yDialog.prototype._fire = function (type, event) {\n var listeners = this._listeners[type] || [];\n var domEvent = new CustomEvent(type, { detail: event });\n\n this.$el.dispatchEvent(domEvent);\n\n listeners.forEach(\n function (listener) {\n listener(this.$el, event);\n }.bind(this)\n );\n};\n\n/**\n * Private event handler used when listening to some specific key presses\n * (namely ESCAPE and TAB)\n *\n * @access private\n * @param {Event} event\n */\nA11yDialog.prototype._bindKeypress = function (event) {\n // This is an escape hatch in case there are nested dialogs, so the keypresses\n // are only reacted to for the most recent one\n const focused = document.activeElement;\n if (focused && focused.closest('[aria-modal=\"true\"]') !== this.$el) return\n\n // If the dialog is shown and the ESCAPE key is being pressed, prevent any\n // further effects from the ESCAPE key and hide the dialog, unless its role\n // is 'alertdialog', which should be modal\n if (\n this.shown &&\n event.key === ESCAPE_KEY &&\n this.$el.getAttribute('role') !== 'alertdialog'\n ) {\n event.preventDefault();\n this.hide(event);\n }\n\n // If the dialog is shown and the TAB key is being pressed, make sure the\n // focus stays trapped within the dialog element\n if (this.shown && event.key === TAB_KEY) {\n trapTabKey(this.$el, event);\n }\n};\n\n/**\n * Private event handler used when making sure the focus stays within the\n * currently open dialog\n *\n * @access private\n * @param {Event} event\n */\nA11yDialog.prototype._maintainFocus = function (event) {\n // If the dialog is shown and the focus is not within a dialog element (either\n // this one or another one in case of nested dialogs) or within an element\n // with the `data-a11y-dialog-focus-trap-ignore` attribute, move it back to\n // its first focusable child.\n // See: https://github.com/KittyGiraudel/a11y-dialog/issues/177\n if (\n this.shown &&\n !event.target.closest('[aria-modal=\"true\"]') &&\n !event.target.closest('[data-a11y-dialog-ignore-focus-trap]')\n ) {\n moveFocusToDialog(this.$el);\n }\n};\n\n/**\n * Convert a NodeList into an array\n *\n * @param {NodeList} collection\n * @return {Array<Element>}\n */\nfunction toArray(collection) {\n return Array.prototype.slice.call(collection)\n}\n\n/**\n * Query the DOM for nodes matching the given selector, scoped to context (or\n * the whole document)\n *\n * @param {String} selector\n * @param {Element} [context = document]\n * @return {Array<Element>}\n */\nfunction $$(selector, context) {\n return toArray((context || document).querySelectorAll(selector))\n}\n\n/**\n * Set the focus to the first element with `autofocus` with the element or the\n * element itself\n *\n * @param {Element} node\n */\nfunction moveFocusToDialog(node) {\n var focused = node.querySelector('[autofocus]') || node;\n\n focused.focus();\n}\n\n/**\n * Get the focusable children of the given element\n *\n * @param {Element} node\n * @return {Array<Element>}\n */\nfunction getFocusableChildren(node) {\n return $$(focusableSelectors.join(','), node).filter(function (child) {\n return !!(\n child.offsetWidth ||\n child.offsetHeight ||\n child.getClientRects().length\n )\n })\n}\n\n/**\n * Trap the focus inside the given element\n *\n * @param {Element} node\n * @param {Event} event\n */\nfunction trapTabKey(node, event) {\n var focusableChildren = getFocusableChildren(node);\n var focusedItemIndex = focusableChildren.indexOf(document.activeElement);\n\n // If the SHIFT key is being pressed while tabbing (moving backwards) and\n // the currently focused item is the first one, move the focus to the last\n // focusable item from the dialog element\n if (event.shiftKey && focusedItemIndex === 0) {\n focusableChildren[focusableChildren.length - 1].focus();\n event.preventDefault();\n // If the SHIFT key is not being pressed (moving forwards) and the currently\n // focused item is the last one, move the focus to the first focusable item\n // from the dialog element\n } else if (\n !event.shiftKey &&\n focusedItemIndex === focusableChildren.length - 1\n ) {\n focusableChildren[0].focus();\n event.preventDefault();\n }\n}\n\nfunction instantiateDialogs() {\n $$('[data-a11y-dialog]').forEach(function (node) {\n new A11yDialog(node);\n });\n}\n\nif (typeof document !== 'undefined') {\n if (document.readyState === 'loading') {\n document.addEventListener('DOMContentLoaded', instantiateDialogs);\n } else {\n if (window.requestAnimationFrame) {\n window.requestAnimationFrame(instantiateDialogs);\n } else {\n window.setTimeout(instantiateDialogs, 16);\n }\n }\n}\n\nexport { A11yDialog as default };\n","import define, {extend} from \"./define\";\n\nexport function Color() {}\n\nexport var darker = 0.7;\nexport var brighter = 1 / darker;\n\nvar reI = \"\\\\s*([+-]?\\\\d+)\\\\s*\",\n reN = \"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*\",\n reP = \"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*\",\n reHex3 = /^#([0-9a-f]{3})$/,\n reHex6 = /^#([0-9a-f]{6})$/,\n reRgbInteger = new RegExp(\"^rgb\\\\(\" + [reI, reI, reI] + \"\\\\)$\"),\n reRgbPercent = new RegExp(\"^rgb\\\\(\" + [reP, reP, reP] + \"\\\\)$\"),\n reRgbaInteger = new RegExp(\"^rgba\\\\(\" + [reI, reI, reI, reN] + \"\\\\)$\"),\n reRgbaPercent = new RegExp(\"^rgba\\\\(\" + [reP, reP, reP, reN] + \"\\\\)$\"),\n reHslPercent = new RegExp(\"^hsl\\\\(\" + [reN, reP, reP] + \"\\\\)$\"),\n reHslaPercent = new RegExp(\"^hsla\\\\(\" + [reN, reP, reP, reN] + \"\\\\)$\");\n\nvar named = {\n aliceblue: 0xf0f8ff,\n antiquewhite: 0xfaebd7,\n aqua: 0x00ffff,\n aquamarine: 0x7fffd4,\n azure: 0xf0ffff,\n beige: 0xf5f5dc,\n bisque: 0xffe4c4,\n black: 0x000000,\n blanchedalmond: 0xffebcd,\n blue: 0x0000ff,\n blueviolet: 0x8a2be2,\n brown: 0xa52a2a,\n burlywood: 0xdeb887,\n cadetblue: 0x5f9ea0,\n chartreuse: 0x7fff00,\n chocolate: 0xd2691e,\n coral: 0xff7f50,\n cornflowerblue: 0x6495ed,\n cornsilk: 0xfff8dc,\n crimson: 0xdc143c,\n cyan: 0x00ffff,\n darkblue: 0x00008b,\n darkcyan: 0x008b8b,\n darkgoldenrod: 0xb8860b,\n darkgray: 0xa9a9a9,\n darkgreen: 0x006400,\n darkgrey: 0xa9a9a9,\n darkkhaki: 0xbdb76b,\n darkmagenta: 0x8b008b,\n darkolivegreen: 0x556b2f,\n darkorange: 0xff8c00,\n darkorchid: 0x9932cc,\n darkred: 0x8b0000,\n darksalmon: 0xe9967a,\n darkseagreen: 0x8fbc8f,\n darkslateblue: 0x483d8b,\n darkslategray: 0x2f4f4f,\n darkslategrey: 0x2f4f4f,\n darkturquoise: 0x00ced1,\n darkviolet: 0x9400d3,\n deeppink: 0xff1493,\n deepskyblue: 0x00bfff,\n dimgray: 0x696969,\n dimgrey: 0x696969,\n dodgerblue: 0x1e90ff,\n firebrick: 0xb22222,\n floralwhite: 0xfffaf0,\n forestgreen: 0x228b22,\n fuchsia: 0xff00ff,\n gainsboro: 0xdcdcdc,\n ghostwhite: 0xf8f8ff,\n gold: 0xffd700,\n goldenrod: 0xdaa520,\n gray: 0x808080,\n green: 0x008000,\n greenyellow: 0xadff2f,\n grey: 0x808080,\n honeydew: 0xf0fff0,\n hotpink: 0xff69b4,\n indianred: 0xcd5c5c,\n indigo: 0x4b0082,\n ivory: 0xfffff0,\n khaki: 0xf0e68c,\n lavender: 0xe6e6fa,\n lavenderblush: 0xfff0f5,\n lawngreen: 0x7cfc00,\n lemonchiffon: 0xfffacd,\n lightblue: 0xadd8e6,\n lightcoral: 0xf08080,\n lightcyan: 0xe0ffff,\n lightgoldenrodyellow: 0xfafad2,\n lightgray: 0xd3d3d3,\n lightgreen: 0x90ee90,\n lightgrey: 0xd3d3d3,\n lightpink: 0xffb6c1,\n lightsalmon: 0xffa07a,\n lightseagreen: 0x20b2aa,\n lightskyblue: 0x87cefa,\n lightslategray: 0x778899,\n lightslategrey: 0x778899,\n lightsteelblue: 0xb0c4de,\n lightyellow: 0xffffe0,\n lime: 0x00ff00,\n limegreen: 0x32cd32,\n linen: 0xfaf0e6,\n magenta: 0xff00ff,\n maroon: 0x800000,\n mediumaquamarine: 0x66cdaa,\n mediumblue: 0x0000cd,\n mediumorchid: 0xba55d3,\n mediumpurple: 0x9370db,\n mediumseagreen: 0x3cb371,\n mediumslateblue: 0x7b68ee,\n mediumspringgreen: 0x00fa9a,\n mediumturquoise: 0x48d1cc,\n mediumvioletred: 0xc71585,\n midnightblue: 0x191970,\n mintcream: 0xf5fffa,\n mistyrose: 0xffe4e1,\n moccasin: 0xffe4b5,\n navajowhite: 0xffdead,\n navy: 0x000080,\n oldlace: 0xfdf5e6,\n olive: 0x808000,\n olivedrab: 0x6b8e23,\n orange: 0xffa500,\n orangered: 0xff4500,\n orchid: 0xda70d6,\n palegoldenrod: 0xeee8aa,\n palegreen: 0x98fb98,\n paleturquoise: 0xafeeee,\n palevioletred: 0xdb7093,\n papayawhip: 0xffefd5,\n peachpuff: 0xffdab9,\n peru: 0xcd853f,\n pink: 0xffc0cb,\n plum: 0xdda0dd,\n powderblue: 0xb0e0e6,\n purple: 0x800080,\n rebeccapurple: 0x663399,\n red: 0xff0000,\n rosybrown: 0xbc8f8f,\n royalblue: 0x4169e1,\n saddlebrown: 0x8b4513,\n salmon: 0xfa8072,\n sandybrown: 0xf4a460,\n seagreen: 0x2e8b57,\n seashell: 0xfff5ee,\n sienna: 0xa0522d,\n silver: 0xc0c0c0,\n skyblue: 0x87ceeb,\n slateblue: 0x6a5acd,\n slategray: 0x708090,\n slategrey: 0x708090,\n snow: 0xfffafa,\n springgreen: 0x00ff7f,\n steelblue: 0x4682b4,\n tan: 0xd2b48c,\n teal: 0x008080,\n thistle: 0xd8bfd8,\n tomato: 0xff6347,\n turquoise: 0x40e0d0,\n violet: 0xee82ee,\n wheat: 0xf5deb3,\n white: 0xffffff,\n whitesmoke: 0xf5f5f5,\n yellow: 0xffff00,\n yellowgreen: 0x9acd32\n};\n\ndefine(Color, color, {\n displayable: function() {\n return this.rgb().displayable();\n },\n hex: function() {\n return this.rgb().hex();\n },\n toString: function() {\n return this.rgb() + \"\";\n }\n});\n\nexport default function color(format) {\n var m;\n format = (format + \"\").trim().toLowerCase();\n return (m = reHex3.exec(format)) ? (m = parseInt(m[1], 16), new Rgb((m >> 8 & 0xf) | (m >> 4 & 0x0f0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1)) // #f00\n : (m = reHex6.exec(format)) ? rgbn(parseInt(m[1], 16)) // #ff0000\n : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)\n : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)\n : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)\n : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)\n : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)\n : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)\n : named.hasOwnProperty(format) ? rgbn(named[format])\n : format === \"transparent\" ? new Rgb(NaN, NaN, NaN, 0)\n : null;\n}\n\nfunction rgbn(n) {\n return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);\n}\n\nfunction rgba(r, g, b, a) {\n if (a <= 0) r = g = b = NaN;\n return new Rgb(r, g, b, a);\n}\n\nexport function rgbConvert(o) {\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Rgb;\n o = o.rgb();\n return new Rgb(o.r, o.g, o.b, o.opacity);\n}\n\nexport function rgb(r, g, b, opacity) {\n return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);\n}\n\nexport function Rgb(r, g, b, opacity) {\n this.r = +r;\n this.g = +g;\n this.b = +b;\n this.opacity = +opacity;\n}\n\ndefine(Rgb, rgb, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n rgb: function() {\n return this;\n },\n displayable: function() {\n return (0 <= this.r && this.r <= 255)\n && (0 <= this.g && this.g <= 255)\n && (0 <= this.b && this.b <= 255)\n && (0 <= this.opacity && this.opacity <= 1);\n },\n hex: function() {\n return \"#\" + hex(this.r) + hex(this.g) + hex(this.b);\n },\n toString: function() {\n var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));\n return (a === 1 ? \"rgb(\" : \"rgba(\")\n + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + \", \"\n + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + \", \"\n + Math.max(0, Math.min(255, Math.round(this.b) || 0))\n + (a === 1 ? \")\" : \", \" + a + \")\");\n }\n}));\n\nfunction hex(value) {\n value = Math.max(0, Math.min(255, Math.round(value) || 0));\n return (value < 16 ? \"0\" : \"\") + value.toString(16);\n}\n\nfunction hsla(h, s, l, a) {\n if (a <= 0) h = s = l = NaN;\n else if (l <= 0 || l >= 1) h = s = NaN;\n else if (s <= 0) h = NaN;\n return new Hsl(h, s, l, a);\n}\n\nexport function hslConvert(o) {\n if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Hsl;\n if (o instanceof Hsl) return o;\n o = o.rgb();\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n min = Math.min(r, g, b),\n max = Math.max(r, g, b),\n h = NaN,\n s = max - min,\n l = (max + min) / 2;\n if (s) {\n if (r === max) h = (g - b) / s + (g < b) * 6;\n else if (g === max) h = (b - r) / s + 2;\n else h = (r - g) / s + 4;\n s /= l < 0.5 ? max + min : 2 - max - min;\n h *= 60;\n } else {\n s = l > 0 && l < 1 ? 0 : h;\n }\n return new Hsl(h, s, l, o.opacity);\n}\n\nexport function hsl(h, s, l, opacity) {\n return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);\n}\n\nfunction Hsl(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Hsl, hsl, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n rgb: function() {\n var h = this.h % 360 + (this.h < 0) * 360,\n s = isNaN(h) || isNaN(this.s) ? 0 : this.s,\n l = this.l,\n m2 = l + (l < 0.5 ? l : 1 - l) * s,\n m1 = 2 * l - m2;\n return new Rgb(\n hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),\n hsl2rgb(h, m1, m2),\n hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),\n this.opacity\n );\n },\n displayable: function() {\n return (0 <= this.s && this.s <= 1 || isNaN(this.s))\n && (0 <= this.l && this.l <= 1)\n && (0 <= this.opacity && this.opacity <= 1);\n }\n}));\n\n/* From FvD 13.37, CSS Color Module Level 3 */\nfunction hsl2rgb(h, m1, m2) {\n return (h < 60 ? m1 + (m2 - m1) * h / 60\n : h < 180 ? m2\n : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60\n : m1) * 255;\n}\n","import define, {extend} from \"./define\";\nimport {Color, rgbConvert, Rgb, darker, brighter} from \"./color\";\nimport {deg2rad, rad2deg} from \"./math\";\n\nvar A = -0.14861,\n B = +1.78277,\n C = -0.29227,\n D = -0.90649,\n E = +1.97294,\n ED = E * D,\n EB = E * B,\n BC_DA = B * C - D * A;\n\nfunction cubehelixConvert(o) {\n if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Rgb)) o = rgbConvert(o);\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB),\n bl = b - l,\n k = (E * (g - l) - C * bl) / D,\n s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1\n h = s ? Math.atan2(k, bl) * rad2deg - 120 : NaN;\n return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity);\n}\n\nexport default function cubehelix(h, s, l, opacity) {\n return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity);\n}\n\nexport function Cubehelix(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Cubehelix, cubehelix, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Cubehelix(this.h, this.s, this.l * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Cubehelix(this.h, this.s, this.l * k, this.opacity);\n },\n rgb: function() {\n var h = isNaN(this.h) ? 0 : (this.h + 120) * deg2rad,\n l = +this.l,\n a = isNaN(this.s) ? 0 : this.s * l * (1 - l),\n cosh = Math.cos(h),\n sinh = Math.sin(h);\n return new Rgb(\n 255 * (l + a * (A * cosh + B * sinh)),\n 255 * (l + a * (C * cosh + D * sinh)),\n 255 * (l + a * (E * cosh)),\n this.opacity\n );\n }\n}));\n","export default function(constructor, factory, prototype) {\n constructor.prototype = factory.prototype = prototype;\n prototype.constructor = constructor;\n}\n\nexport function extend(parent, definition) {\n var prototype = Object.create(parent.prototype);\n for (var key in definition) prototype[key] = definition[key];\n return prototype;\n}\n","export {default as color, rgb, hsl} from \"./color\";\nexport {default as lab, hcl, lch, gray} from \"./lab\";\nexport {default as cubehelix} from \"./cubehelix\";\n","import define, {extend} from \"./define\";\nimport {Color, rgbConvert, Rgb} from \"./color\";\nimport {deg2rad, rad2deg} from \"./math\";\n\n// https://beta.observablehq.com/@mbostock/lab-and-rgb\nvar K = 18,\n Xn = 0.96422,\n Yn = 1,\n Zn = 0.82521,\n t0 = 4 / 29,\n t1 = 6 / 29,\n t2 = 3 * t1 * t1,\n t3 = t1 * t1 * t1;\n\nfunction labConvert(o) {\n if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);\n if (o instanceof Hcl) {\n if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);\n var h = o.h * deg2rad;\n return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);\n }\n if (!(o instanceof Rgb)) o = rgbConvert(o);\n var r = rgb2lrgb(o.r),\n g = rgb2lrgb(o.g),\n b = rgb2lrgb(o.b),\n y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z;\n if (r === g && g === b) x = z = y; else {\n x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn);\n z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn);\n }\n return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);\n}\n\nexport function gray(l, opacity) {\n return new Lab(l, 0, 0, opacity == null ? 1 : opacity);\n}\n\nexport default function lab(l, a, b, opacity) {\n return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);\n}\n\nexport function Lab(l, a, b, opacity) {\n this.l = +l;\n this.a = +a;\n this.b = +b;\n this.opacity = +opacity;\n}\n\ndefine(Lab, lab, extend(Color, {\n brighter: function(k) {\n return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);\n },\n darker: function(k) {\n return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);\n },\n rgb: function() {\n var y = (this.l + 16) / 116,\n x = isNaN(this.a) ? y : y + this.a / 500,\n z = isNaN(this.b) ? y : y - this.b / 200;\n x = Xn * lab2xyz(x);\n y = Yn * lab2xyz(y);\n z = Zn * lab2xyz(z);\n return new Rgb(\n lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z),\n lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z),\n lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z),\n this.opacity\n );\n }\n}));\n\nfunction xyz2lab(t) {\n return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0;\n}\n\nfunction lab2xyz(t) {\n return t > t1 ? t * t * t : t2 * (t - t0);\n}\n\nfunction lrgb2rgb(x) {\n return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);\n}\n\nfunction rgb2lrgb(x) {\n return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);\n}\n\nfunction hclConvert(o) {\n if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);\n if (!(o instanceof Lab)) o = labConvert(o);\n if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0, o.l, o.opacity);\n var h = Math.atan2(o.b, o.a) * rad2deg;\n return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);\n}\n\nexport function lch(l, c, h, opacity) {\n return arguments.length === 1 ? hclConvert(l) : new Hcl(h, c, l, opacity == null ? 1 : opacity);\n}\n\nexport function hcl(h, c, l, opacity) {\n return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);\n}\n\nexport function Hcl(h, c, l, opacity) {\n this.h = +h;\n this.c = +c;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Hcl, hcl, extend(Color, {\n brighter: function(k) {\n return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);\n },\n darker: function(k) {\n return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);\n },\n rgb: function() {\n return labConvert(this).rgb();\n }\n}));\n","export var deg2rad = Math.PI / 180;\nexport var rad2deg = 180 / Math.PI;\n","var noop = {value: function() {}};\n\nfunction dispatch() {\n for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) {\n if (!(t = arguments[i] + \"\") || (t in _)) throw new Error(\"illegal type: \" + t);\n _[t] = [];\n }\n return new Dispatch(_);\n}\n\nfunction Dispatch(_) {\n this._ = _;\n}\n\nfunction parseTypenames(typenames, types) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n if (t && !types.hasOwnProperty(t)) throw new Error(\"unknown type: \" + t);\n return {type: t, name: name};\n });\n}\n\nDispatch.prototype = dispatch.prototype = {\n constructor: Dispatch,\n on: function(typename, callback) {\n var _ = this._,\n T = parseTypenames(typename + \"\", _),\n t,\n i = -1,\n n = T.length;\n\n // If no callback was specified, return the callback of the given type and name.\n if (arguments.length < 2) {\n while (++i < n) if ((t = (typename = T[i]).type) && (t = get(_[t], typename.name))) return t;\n return;\n }\n\n // If a type was specified, set the callback for the given type and name.\n // Otherwise, if a null callback was specified, remove callbacks of the given name.\n if (callback != null && typeof callback !== \"function\") throw new Error(\"invalid callback: \" + callback);\n while (++i < n) {\n if (t = (typename = T[i]).type) _[t] = set(_[t], typename.name, callback);\n else if (callback == null) for (t in _) _[t] = set(_[t], typename.name, null);\n }\n\n return this;\n },\n copy: function() {\n var copy = {}, _ = this._;\n for (var t in _) copy[t] = _[t].slice();\n return new Dispatch(copy);\n },\n call: function(type, that) {\n if ((n = arguments.length - 2) > 0) for (var args = new Array(n), i = 0, n, t; i < n; ++i) args[i] = arguments[i + 2];\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n },\n apply: function(type, that, args) {\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (var t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n }\n};\n\nfunction get(type, name) {\n for (var i = 0, n = type.length, c; i < n; ++i) {\n if ((c = type[i]).name === name) {\n return c.value;\n }\n }\n}\n\nfunction set(type, name, callback) {\n for (var i = 0, n = type.length; i < n; ++i) {\n if (type[i].name === name) {\n type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1));\n break;\n }\n }\n if (callback != null) type.push({name: name, value: callback});\n return type;\n}\n\nexport default dispatch;\n","export {default as dispatch} from \"./dispatch\";\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import {dispatch} from \"d3-dispatch\";\nimport {event, customEvent, select, mouse, touch} from \"d3-selection\";\nimport nodrag, {yesdrag} from \"./nodrag\";\nimport noevent, {nopropagation} from \"./noevent\";\nimport constant from \"./constant\";\nimport DragEvent from \"./event\";\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.button;\n}\n\nfunction defaultContainer() {\n return this.parentNode;\n}\n\nfunction defaultSubject(d) {\n return d == null ? {x: event.x, y: event.y} : d;\n}\n\nfunction defaultTouchable() {\n return \"ontouchstart\" in this;\n}\n\nexport default function() {\n var filter = defaultFilter,\n container = defaultContainer,\n subject = defaultSubject,\n touchable = defaultTouchable,\n gestures = {},\n listeners = dispatch(\"start\", \"drag\", \"end\"),\n active = 0,\n mousedownx,\n mousedowny,\n mousemoving,\n touchending,\n clickDistance2 = 0;\n\n function drag(selection) {\n selection\n .on(\"mousedown.drag\", mousedowned)\n .filter(touchable)\n .on(\"touchstart.drag\", touchstarted)\n .on(\"touchmove.drag\", touchmoved)\n .on(\"touchend.drag touchcancel.drag\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n function mousedowned() {\n if (touchending || !filter.apply(this, arguments)) return;\n var gesture = beforestart(\"mouse\", container.apply(this, arguments), mouse, this, arguments);\n if (!gesture) return;\n select(event.view).on(\"mousemove.drag\", mousemoved, true).on(\"mouseup.drag\", mouseupped, true);\n nodrag(event.view);\n nopropagation();\n mousemoving = false;\n mousedownx = event.clientX;\n mousedowny = event.clientY;\n gesture(\"start\");\n }\n\n function mousemoved() {\n noevent();\n if (!mousemoving) {\n var dx = event.clientX - mousedownx, dy = event.clientY - mousedowny;\n mousemoving = dx * dx + dy * dy > clickDistance2;\n }\n gestures.mouse(\"drag\");\n }\n\n function mouseupped() {\n select(event.view).on(\"mousemove.drag mouseup.drag\", null);\n yesdrag(event.view, mousemoving);\n noevent();\n gestures.mouse(\"end\");\n }\n\n function touchstarted() {\n if (!filter.apply(this, arguments)) return;\n var touches = event.changedTouches,\n c = container.apply(this, arguments),\n n = touches.length, i, gesture;\n\n for (i = 0; i < n; ++i) {\n if (gesture = beforestart(touches[i].identifier, c, touch, this, arguments)) {\n nopropagation();\n gesture(\"start\");\n }\n }\n }\n\n function touchmoved() {\n var touches = event.changedTouches,\n n = touches.length, i, gesture;\n\n for (i = 0; i < n; ++i) {\n if (gesture = gestures[touches[i].identifier]) {\n noevent();\n gesture(\"drag\");\n }\n }\n }\n\n function touchended() {\n var touches = event.changedTouches,\n n = touches.length, i, gesture;\n\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!\n for (i = 0; i < n; ++i) {\n if (gesture = gestures[touches[i].identifier]) {\n nopropagation();\n gesture(\"end\");\n }\n }\n }\n\n function beforestart(id, container, point, that, args) {\n var p = point(container, id), s, dx, dy,\n sublisteners = listeners.copy();\n\n if (!customEvent(new DragEvent(drag, \"beforestart\", s, id, active, p[0], p[1], 0, 0, sublisteners), function() {\n if ((event.subject = s = subject.apply(that, args)) == null) return false;\n dx = s.x - p[0] || 0;\n dy = s.y - p[1] || 0;\n return true;\n })) return;\n\n return function gesture(type) {\n var p0 = p, n;\n switch (type) {\n case \"start\": gestures[id] = gesture, n = active++; break;\n case \"end\": delete gestures[id], --active; // nobreak\n case \"drag\": p = point(container, id), n = active; break;\n }\n customEvent(new DragEvent(drag, type, s, id, n, p[0] + dx, p[1] + dy, p[0] - p0[0], p[1] - p0[1], sublisteners), sublisteners.apply, sublisteners, [type, that, args]);\n };\n }\n\n drag.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), drag) : filter;\n };\n\n drag.container = function(_) {\n return arguments.length ? (container = typeof _ === \"function\" ? _ : constant(_), drag) : container;\n };\n\n drag.subject = function(_) {\n return arguments.length ? (subject = typeof _ === \"function\" ? _ : constant(_), drag) : subject;\n };\n\n drag.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), drag) : touchable;\n };\n\n drag.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? drag : value;\n };\n\n drag.clickDistance = function(_) {\n return arguments.length ? (clickDistance2 = (_ = +_) * _, drag) : Math.sqrt(clickDistance2);\n };\n\n return drag;\n}\n","export default function DragEvent(target, type, subject, id, active, x, y, dx, dy, dispatch) {\n this.target = target;\n this.type = type;\n this.subject = subject;\n this.identifier = id;\n this.active = active;\n this.x = x;\n this.y = y;\n this.dx = dx;\n this.dy = dy;\n this._ = dispatch;\n}\n\nDragEvent.prototype.on = function() {\n var value = this._.on.apply(this._, arguments);\n return value === this._ ? this : value;\n};\n","export {default as drag} from \"./drag\";\nexport {default as dragDisable, yesdrag as dragEnable} from \"./nodrag\";\n","import {select} from \"d3-selection\";\nimport noevent from \"./noevent\";\n\nexport default function(view) {\n var root = view.document.documentElement,\n selection = select(view).on(\"dragstart.drag\", noevent, true);\n if (\"onselectstart\" in root) {\n selection.on(\"selectstart.drag\", noevent, true);\n } else {\n root.__noselect = root.style.MozUserSelect;\n root.style.MozUserSelect = \"none\";\n }\n}\n\nexport function yesdrag(view, noclick) {\n var root = view.document.documentElement,\n selection = select(view).on(\"dragstart.drag\", null);\n if (noclick) {\n selection.on(\"click.drag\", noevent, true);\n setTimeout(function() { selection.on(\"click.drag\", null); }, 0);\n }\n if (\"onselectstart\" in root) {\n selection.on(\"selectstart.drag\", null);\n } else {\n root.style.MozUserSelect = root.__noselect;\n delete root.__noselect;\n }\n}\n","import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n","var overshoot = 1.70158;\n\nexport var backIn = (function custom(s) {\n s = +s;\n\n function backIn(t) {\n return t * t * ((s + 1) * t - s);\n }\n\n backIn.overshoot = custom;\n\n return backIn;\n})(overshoot);\n\nexport var backOut = (function custom(s) {\n s = +s;\n\n function backOut(t) {\n return --t * t * ((s + 1) * t + s) + 1;\n }\n\n backOut.overshoot = custom;\n\n return backOut;\n})(overshoot);\n\nexport var backInOut = (function custom(s) {\n s = +s;\n\n function backInOut(t) {\n return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2;\n }\n\n backInOut.overshoot = custom;\n\n return backInOut;\n})(overshoot);\n","var b1 = 4 / 11,\n b2 = 6 / 11,\n b3 = 8 / 11,\n b4 = 3 / 4,\n b5 = 9 / 11,\n b6 = 10 / 11,\n b7 = 15 / 16,\n b8 = 21 / 22,\n b9 = 63 / 64,\n b0 = 1 / b1 / b1;\n\nexport function bounceIn(t) {\n return 1 - bounceOut(1 - t);\n}\n\nexport function bounceOut(t) {\n return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9;\n}\n\nexport function bounceInOut(t) {\n return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2;\n}\n","export function circleIn(t) {\n return 1 - Math.sqrt(1 - t * t);\n}\n\nexport function circleOut(t) {\n return Math.sqrt(1 - --t * t);\n}\n\nexport function circleInOut(t) {\n return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;\n}\n","export function cubicIn(t) {\n return t * t * t;\n}\n\nexport function cubicOut(t) {\n return --t * t * t + 1;\n}\n\nexport function cubicInOut(t) {\n return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;\n}\n","var tau = 2 * Math.PI,\n amplitude = 1,\n period = 0.3;\n\nexport var elasticIn = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticIn(t) {\n return a * Math.pow(2, 10 * --t) * Math.sin((s - t) / p);\n }\n\n elasticIn.amplitude = function(a) { return custom(a, p * tau); };\n elasticIn.period = function(p) { return custom(a, p); };\n\n return elasticIn;\n})(amplitude, period);\n\nexport var elasticOut = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticOut(t) {\n return 1 - a * Math.pow(2, -10 * (t = +t)) * Math.sin((t + s) / p);\n }\n\n elasticOut.amplitude = function(a) { return custom(a, p * tau); };\n elasticOut.period = function(p) { return custom(a, p); };\n\n return elasticOut;\n})(amplitude, period);\n\nexport var elasticInOut = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticInOut(t) {\n return ((t = t * 2 - 1) < 0\n ? a * Math.pow(2, 10 * t) * Math.sin((s - t) / p)\n : 2 - a * Math.pow(2, -10 * t) * Math.sin((s + t) / p)) / 2;\n }\n\n elasticInOut.amplitude = function(a) { return custom(a, p * tau); };\n elasticInOut.period = function(p) { return custom(a, p); };\n\n return elasticInOut;\n})(amplitude, period);\n","export function expIn(t) {\n return Math.pow(2, 10 * t - 10);\n}\n\nexport function expOut(t) {\n return 1 - Math.pow(2, -10 * t);\n}\n\nexport function expInOut(t) {\n return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2;\n}\n","export {\n linear as easeLinear\n} from \"./linear\";\n\nexport {\n quadInOut as easeQuad,\n quadIn as easeQuadIn,\n quadOut as easeQuadOut,\n quadInOut as easeQuadInOut\n} from \"./quad\";\n\nexport {\n cubicInOut as easeCubic,\n cubicIn as easeCubicIn,\n cubicOut as easeCubicOut,\n cubicInOut as easeCubicInOut\n} from \"./cubic\";\n\nexport {\n polyInOut as easePoly,\n polyIn as easePolyIn,\n polyOut as easePolyOut,\n polyInOut as easePolyInOut\n} from \"./poly\";\n\nexport {\n sinInOut as easeSin,\n sinIn as easeSinIn,\n sinOut as easeSinOut,\n sinInOut as easeSinInOut\n} from \"./sin\";\n\nexport {\n expInOut as easeExp,\n expIn as easeExpIn,\n expOut as easeExpOut,\n expInOut as easeExpInOut\n} from \"./exp\";\n\nexport {\n circleInOut as easeCircle,\n circleIn as easeCircleIn,\n circleOut as easeCircleOut,\n circleInOut as easeCircleInOut\n} from \"./circle\";\n\nexport {\n bounceOut as easeBounce,\n bounceIn as easeBounceIn,\n bounceOut as easeBounceOut,\n bounceInOut as easeBounceInOut\n} from \"./bounce\";\n\nexport {\n backInOut as easeBack,\n backIn as easeBackIn,\n backOut as easeBackOut,\n backInOut as easeBackInOut\n} from \"./back\";\n\nexport {\n elasticOut as easeElastic,\n elasticIn as easeElasticIn,\n elasticOut as easeElasticOut,\n elasticInOut as easeElasticInOut\n} from \"./elastic\";\n","export function linear(t) {\n return +t;\n}\n","var exponent = 3;\n\nexport var polyIn = (function custom(e) {\n e = +e;\n\n function polyIn(t) {\n return Math.pow(t, e);\n }\n\n polyIn.exponent = custom;\n\n return polyIn;\n})(exponent);\n\nexport var polyOut = (function custom(e) {\n e = +e;\n\n function polyOut(t) {\n return 1 - Math.pow(1 - t, e);\n }\n\n polyOut.exponent = custom;\n\n return polyOut;\n})(exponent);\n\nexport var polyInOut = (function custom(e) {\n e = +e;\n\n function polyInOut(t) {\n return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2;\n }\n\n polyInOut.exponent = custom;\n\n return polyInOut;\n})(exponent);\n","export function quadIn(t) {\n return t * t;\n}\n\nexport function quadOut(t) {\n return t * (2 - t);\n}\n\nexport function quadInOut(t) {\n return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2;\n}\n","var pi = Math.PI,\n halfPi = pi / 2;\n\nexport function sinIn(t) {\n return 1 - Math.cos(t * halfPi);\n}\n\nexport function sinOut(t) {\n return Math.sin(t * halfPi);\n}\n\nexport function sinInOut(t) {\n return (1 - Math.cos(pi * t)) / 2;\n}\n","import value from \"./value\";\n\nexport default function(a, b) {\n var nb = b ? b.length : 0,\n na = a ? Math.min(nb, a.length) : 0,\n x = new Array(na),\n c = new Array(nb),\n i;\n\n for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]);\n for (; i < nb; ++i) c[i] = b[i];\n\n return function(t) {\n for (i = 0; i < na; ++i) c[i] = x[i](t);\n return c;\n };\n}\n","export function basis(t1, v0, v1, v2, v3) {\n var t2 = t1 * t1, t3 = t2 * t1;\n return ((1 - 3 * t1 + 3 * t2 - t3) * v0\n + (4 - 6 * t2 + 3 * t3) * v1\n + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2\n + t3 * v3) / 6;\n}\n\nexport default function(values) {\n var n = values.length - 1;\n return function(t) {\n var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),\n v1 = values[i],\n v2 = values[i + 1],\n v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,\n v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n","import {basis} from \"./basis\";\n\nexport default function(values) {\n var n = values.length;\n return function(t) {\n var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),\n v0 = values[(i + n - 1) % n],\n v1 = values[i % n],\n v2 = values[(i + 1) % n],\n v3 = values[(i + 2) % n];\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n","import constant from \"./constant\";\n\nfunction linear(a, d) {\n return function(t) {\n return a + t * d;\n };\n}\n\nfunction exponential(a, b, y) {\n return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {\n return Math.pow(a + t * b, y);\n };\n}\n\nexport function hue(a, b) {\n var d = b - a;\n return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a);\n}\n\nexport function gamma(y) {\n return (y = +y) === 1 ? nogamma : function(a, b) {\n return b - a ? exponential(a, b, y) : constant(isNaN(a) ? b : a);\n };\n}\n\nexport default function nogamma(a, b) {\n var d = b - a;\n return d ? linear(a, d) : constant(isNaN(a) ? b : a);\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import {cubehelix as colorCubehelix} from \"d3-color\";\nimport color, {hue} from \"./color\";\n\nfunction cubehelix(hue) {\n return (function cubehelixGamma(y) {\n y = +y;\n\n function cubehelix(start, end) {\n var h = hue((start = colorCubehelix(start)).h, (end = colorCubehelix(end)).h),\n s = color(start.s, end.s),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.s = s(t);\n start.l = l(Math.pow(t, y));\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n cubehelix.gamma = cubehelixGamma;\n\n return cubehelix;\n })(1);\n}\n\nexport default cubehelix(hue);\nexport var cubehelixLong = cubehelix(color);\n","export default function(a, b) {\n var d = new Date;\n return a = +a, b -= a, function(t) {\n return d.setTime(a + b * t), d;\n };\n}\n","export default function(range) {\n var n = range.length;\n return function(t) {\n return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];\n };\n}\n","import {hcl as colorHcl} from \"d3-color\";\nimport color, {hue} from \"./color\";\n\nfunction hcl(hue) {\n return function(start, end) {\n var h = hue((start = colorHcl(start)).h, (end = colorHcl(end)).h),\n c = color(start.c, end.c),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.c = c(t);\n start.l = l(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n}\n\nexport default hcl(hue);\nexport var hclLong = hcl(color);\n","import {hsl as colorHsl} from \"d3-color\";\nimport color, {hue} from \"./color\";\n\nfunction hsl(hue) {\n return function(start, end) {\n var h = hue((start = colorHsl(start)).h, (end = colorHsl(end)).h),\n s = color(start.s, end.s),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.s = s(t);\n start.l = l(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n}\n\nexport default hsl(hue);\nexport var hslLong = hsl(color);\n","import {hue} from \"./color\";\n\nexport default function(a, b) {\n var i = hue(+a, +b);\n return function(t) {\n var x = i(t);\n return x - 360 * Math.floor(x / 360);\n };\n}\n","export {default as interpolate} from \"./value\";\nexport {default as interpolateArray} from \"./array\";\nexport {default as interpolateBasis} from \"./basis\";\nexport {default as interpolateBasisClosed} from \"./basisClosed\";\nexport {default as interpolateDate} from \"./date\";\nexport {default as interpolateDiscrete} from \"./discrete\";\nexport {default as interpolateHue} from \"./hue\";\nexport {default as interpolateNumber} from \"./number\";\nexport {default as interpolateObject} from \"./object\";\nexport {default as interpolateRound} from \"./round\";\nexport {default as interpolateString} from \"./string\";\nexport {interpolateTransformCss, interpolateTransformSvg} from \"./transform/index\";\nexport {default as interpolateZoom} from \"./zoom\";\nexport {default as interpolateRgb, rgbBasis as interpolateRgbBasis, rgbBasisClosed as interpolateRgbBasisClosed} from \"./rgb\";\nexport {default as interpolateHsl, hslLong as interpolateHslLong} from \"./hsl\";\nexport {default as interpolateLab} from \"./lab\";\nexport {default as interpolateHcl, hclLong as interpolateHclLong} from \"./hcl\";\nexport {default as interpolateCubehelix, cubehelixLong as interpolateCubehelixLong} from \"./cubehelix\";\nexport {default as piecewise} from \"./piecewise\";\nexport {default as quantize} from \"./quantize\";\n","import {lab as colorLab} from \"d3-color\";\nimport color from \"./color\";\n\nexport default function lab(start, end) {\n var l = color((start = colorLab(start)).l, (end = colorLab(end)).l),\n a = color(start.a, end.a),\n b = color(start.b, end.b),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.l = l(t);\n start.a = a(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n}\n","export default function(a, b) {\n return a = +a, b -= a, function(t) {\n return a + b * t;\n };\n}\n","import value from \"./value\";\n\nexport default function(a, b) {\n var i = {},\n c = {},\n k;\n\n if (a === null || typeof a !== \"object\") a = {};\n if (b === null || typeof b !== \"object\") b = {};\n\n for (k in b) {\n if (k in a) {\n i[k] = value(a[k], b[k]);\n } else {\n c[k] = b[k];\n }\n }\n\n return function(t) {\n for (k in i) c[k] = i[k](t);\n return c;\n };\n}\n","export default function piecewise(interpolate, values) {\n var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n);\n while (i < n) I[i] = interpolate(v, v = values[++i]);\n return function(t) {\n var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n)));\n return I[i](t - i);\n };\n}\n","export default function(interpolator, n) {\n var samples = new Array(n);\n for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1));\n return samples;\n}\n","import {rgb as colorRgb} from \"d3-color\";\nimport basis from \"./basis\";\nimport basisClosed from \"./basisClosed\";\nimport nogamma, {gamma} from \"./color\";\n\nexport default (function rgbGamma(y) {\n var color = gamma(y);\n\n function rgb(start, end) {\n var r = color((start = colorRgb(start)).r, (end = colorRgb(end)).r),\n g = color(start.g, end.g),\n b = color(start.b, end.b),\n opacity = nogamma(start.opacity, end.opacity);\n return function(t) {\n start.r = r(t);\n start.g = g(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n rgb.gamma = rgbGamma;\n\n return rgb;\n})(1);\n\nfunction rgbSpline(spline) {\n return function(colors) {\n var n = colors.length,\n r = new Array(n),\n g = new Array(n),\n b = new Array(n),\n i, color;\n for (i = 0; i < n; ++i) {\n color = colorRgb(colors[i]);\n r[i] = color.r || 0;\n g[i] = color.g || 0;\n b[i] = color.b || 0;\n }\n r = spline(r);\n g = spline(g);\n b = spline(b);\n color.opacity = 1;\n return function(t) {\n color.r = r(t);\n color.g = g(t);\n color.b = b(t);\n return color + \"\";\n };\n };\n}\n\nexport var rgbBasis = rgbSpline(basis);\nexport var rgbBasisClosed = rgbSpline(basisClosed);\n","export default function(a, b) {\n return a = +a, b -= a, function(t) {\n return Math.round(a + b * t);\n };\n}\n","import number from \"./number\";\n\nvar reA = /[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,\n reB = new RegExp(reA.source, \"g\");\n\nfunction zero(b) {\n return function() {\n return b;\n };\n}\n\nfunction one(b) {\n return function(t) {\n return b(t) + \"\";\n };\n}\n\nexport default function(a, b) {\n var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b\n am, // current match in a\n bm, // current match in b\n bs, // string preceding current number in b, if any\n i = -1, // index in s\n s = [], // string constants and placeholders\n q = []; // number interpolators\n\n // Coerce inputs to strings.\n a = a + \"\", b = b + \"\";\n\n // Interpolate pairs of numbers in a & b.\n while ((am = reA.exec(a))\n && (bm = reB.exec(b))) {\n if ((bs = bm.index) > bi) { // a string precedes the next number in b\n bs = b.slice(bi, bs);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match\n if (s[i]) s[i] += bm; // coalesce with previous string\n else s[++i] = bm;\n } else { // interpolate non-matching numbers\n s[++i] = null;\n q.push({i: i, x: number(am, bm)});\n }\n bi = reB.lastIndex;\n }\n\n // Add remains of b.\n if (bi < b.length) {\n bs = b.slice(bi);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n\n // Special optimization for only a single match.\n // Otherwise, interpolate each of the numbers and rejoin the string.\n return s.length < 2 ? (q[0]\n ? one(q[0].x)\n : zero(b))\n : (b = q.length, function(t) {\n for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n });\n}\n","var degrees = 180 / Math.PI;\n\nexport var identity = {\n translateX: 0,\n translateY: 0,\n rotate: 0,\n skewX: 0,\n scaleX: 1,\n scaleY: 1\n};\n\nexport default function(a, b, c, d, e, f) {\n var scaleX, scaleY, skewX;\n if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX;\n if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX;\n if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY;\n if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX;\n return {\n translateX: e,\n translateY: f,\n rotate: Math.atan2(b, a) * degrees,\n skewX: Math.atan(skewX) * degrees,\n scaleX: scaleX,\n scaleY: scaleY\n };\n}\n","import number from \"../number\";\nimport {parseCss, parseSvg} from \"./parse\";\n\nfunction interpolateTransform(parse, pxComma, pxParen, degParen) {\n\n function pop(s) {\n return s.length ? s.pop() + \" \" : \"\";\n }\n\n function translate(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(\"translate(\", null, pxComma, null, pxParen);\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb || yb) {\n s.push(\"translate(\" + xb + pxComma + yb + pxParen);\n }\n }\n\n function rotate(a, b, s, q) {\n if (a !== b) {\n if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path\n q.push({i: s.push(pop(s) + \"rotate(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"rotate(\" + b + degParen);\n }\n }\n\n function skewX(a, b, s, q) {\n if (a !== b) {\n q.push({i: s.push(pop(s) + \"skewX(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"skewX(\" + b + degParen);\n }\n }\n\n function scale(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(pop(s) + \"scale(\", null, \",\", null, \")\");\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb !== 1 || yb !== 1) {\n s.push(pop(s) + \"scale(\" + xb + \",\" + yb + \")\");\n }\n }\n\n return function(a, b) {\n var s = [], // string constants and placeholders\n q = []; // number interpolators\n a = parse(a), b = parse(b);\n translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q);\n rotate(a.rotate, b.rotate, s, q);\n skewX(a.skewX, b.skewX, s, q);\n scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q);\n a = b = null; // gc\n return function(t) {\n var i = -1, n = q.length, o;\n while (++i < n) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n };\n };\n}\n\nexport var interpolateTransformCss = interpolateTransform(parseCss, \"px, \", \"px)\", \"deg)\");\nexport var interpolateTransformSvg = interpolateTransform(parseSvg, \", \", \")\", \")\");\n","import decompose, {identity} from \"./decompose\";\n\nvar cssNode,\n cssRoot,\n cssView,\n svgNode;\n\nexport function parseCss(value) {\n if (value === \"none\") return identity;\n if (!cssNode) cssNode = document.createElement(\"DIV\"), cssRoot = document.documentElement, cssView = document.defaultView;\n cssNode.style.transform = value;\n value = cssView.getComputedStyle(cssRoot.appendChild(cssNode), null).getPropertyValue(\"transform\");\n cssRoot.removeChild(cssNode);\n value = value.slice(7, -1).split(\",\");\n return decompose(+value[0], +value[1], +value[2], +value[3], +value[4], +value[5]);\n}\n\nexport function parseSvg(value) {\n if (value == null) return identity;\n if (!svgNode) svgNode = document.createElementNS(\"http://www.w3.org/2000/svg\", \"g\");\n svgNode.setAttribute(\"transform\", value);\n if (!(value = svgNode.transform.baseVal.consolidate())) return identity;\n value = value.matrix;\n return decompose(value.a, value.b, value.c, value.d, value.e, value.f);\n}\n","import {color} from \"d3-color\";\nimport rgb from \"./rgb\";\nimport array from \"./array\";\nimport date from \"./date\";\nimport number from \"./number\";\nimport object from \"./object\";\nimport string from \"./string\";\nimport constant from \"./constant\";\n\nexport default function(a, b) {\n var t = typeof b, c;\n return b == null || t === \"boolean\" ? constant(b)\n : (t === \"number\" ? number\n : t === \"string\" ? ((c = color(b)) ? (b = c, rgb) : string)\n : b instanceof color ? rgb\n : b instanceof Date ? date\n : Array.isArray(b) ? array\n : typeof b.valueOf !== \"function\" && typeof b.toString !== \"function\" || isNaN(b) ? object\n : number)(a, b);\n}\n","var rho = Math.SQRT2,\n rho2 = 2,\n rho4 = 4,\n epsilon2 = 1e-12;\n\nfunction cosh(x) {\n return ((x = Math.exp(x)) + 1 / x) / 2;\n}\n\nfunction sinh(x) {\n return ((x = Math.exp(x)) - 1 / x) / 2;\n}\n\nfunction tanh(x) {\n return ((x = Math.exp(2 * x)) - 1) / (x + 1);\n}\n\n// p0 = [ux0, uy0, w0]\n// p1 = [ux1, uy1, w1]\nexport default function(p0, p1) {\n var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],\n ux1 = p1[0], uy1 = p1[1], w1 = p1[2],\n dx = ux1 - ux0,\n dy = uy1 - uy0,\n d2 = dx * dx + dy * dy,\n i,\n S;\n\n // Special case for u0 ≅ u1.\n if (d2 < epsilon2) {\n S = Math.log(w1 / w0) / rho;\n i = function(t) {\n return [\n ux0 + t * dx,\n uy0 + t * dy,\n w0 * Math.exp(rho * t * S)\n ];\n }\n }\n\n // General case.\n else {\n var d1 = Math.sqrt(d2),\n b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1),\n b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1),\n r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0),\n r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);\n S = (r1 - r0) / rho;\n i = function(t) {\n var s = t * S,\n coshr0 = cosh(r0),\n u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0));\n return [\n ux0 + u * dx,\n uy0 + u * dy,\n w0 * coshr0 / cosh(rho * s + r0)\n ];\n }\n }\n\n i.duration = S * 1000;\n\n return i;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import creator from \"./creator\";\nimport select from \"./select\";\n\nexport default function(name) {\n return select(creator(name).call(document.documentElement));\n}\n","import namespace from \"./namespace\";\nimport {xhtml} from \"./namespaces\";\n\nfunction creatorInherit(name) {\n return function() {\n var document = this.ownerDocument,\n uri = this.namespaceURI;\n return uri === xhtml && document.documentElement.namespaceURI === xhtml\n ? document.createElement(name)\n : document.createElementNS(uri, name);\n };\n}\n\nfunction creatorFixed(fullname) {\n return function() {\n return this.ownerDocument.createElementNS(fullname.space, fullname.local);\n };\n}\n\nexport default function(name) {\n var fullname = namespace(name);\n return (fullname.local\n ? creatorFixed\n : creatorInherit)(fullname);\n}\n","export {default as create} from \"./create\";\nexport {default as creator} from \"./creator\";\nexport {default as local} from \"./local\";\nexport {default as matcher} from \"./matcher\";\nexport {default as mouse} from \"./mouse\";\nexport {default as namespace} from \"./namespace\";\nexport {default as namespaces} from \"./namespaces\";\nexport {default as clientPoint} from \"./point\";\nexport {default as select} from \"./select\";\nexport {default as selectAll} from \"./selectAll\";\nexport {default as selection} from \"./selection/index\";\nexport {default as selector} from \"./selector\";\nexport {default as selectorAll} from \"./selectorAll\";\nexport {styleValue as style} from \"./selection/style\";\nexport {default as touch} from \"./touch\";\nexport {default as touches} from \"./touches\";\nexport {default as window} from \"./window\";\nexport {event, customEvent} from \"./selection/on\";\n","var nextId = 0;\n\nexport default function local() {\n return new Local;\n}\n\nfunction Local() {\n this._ = \"@\" + (++nextId).toString(36);\n}\n\nLocal.prototype = local.prototype = {\n constructor: Local,\n get: function(node) {\n var id = this._;\n while (!(id in node)) if (!(node = node.parentNode)) return;\n return node[id];\n },\n set: function(node, value) {\n return node[this._] = value;\n },\n remove: function(node) {\n return this._ in node && delete node[this._];\n },\n toString: function() {\n return this._;\n }\n};\n","var matcher = function(selector) {\n return function() {\n return this.matches(selector);\n };\n};\n\nif (typeof document !== \"undefined\") {\n var element = document.documentElement;\n if (!element.matches) {\n var vendorMatches = element.webkitMatchesSelector\n || element.msMatchesSelector\n || element.mozMatchesSelector\n || element.oMatchesSelector;\n matcher = function(selector) {\n return function() {\n return vendorMatches.call(this, selector);\n };\n };\n }\n}\n\nexport default matcher;\n","import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node) {\n var event = sourceEvent();\n if (event.changedTouches) event = event.changedTouches[0];\n return point(node, event);\n}\n","import namespaces from \"./namespaces\";\n\nexport default function(name) {\n var prefix = name += \"\", i = prefix.indexOf(\":\");\n if (i >= 0 && (prefix = name.slice(0, i)) !== \"xmlns\") name = name.slice(i + 1);\n return namespaces.hasOwnProperty(prefix) ? {space: namespaces[prefix], local: name} : name;\n}\n","export var xhtml = \"http://www.w3.org/1999/xhtml\";\n\nexport default {\n svg: \"http://www.w3.org/2000/svg\",\n xhtml: xhtml,\n xlink: \"http://www.w3.org/1999/xlink\",\n xml: \"http://www.w3.org/XML/1998/namespace\",\n xmlns: \"http://www.w3.org/2000/xmlns/\"\n};\n","export default function(node, event) {\n var svg = node.ownerSVGElement || node;\n\n if (svg.createSVGPoint) {\n var point = svg.createSVGPoint();\n point.x = event.clientX, point.y = event.clientY;\n point = point.matrixTransform(node.getScreenCTM().inverse());\n return [point.x, point.y];\n }\n\n var rect = node.getBoundingClientRect();\n return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop];\n}\n","import {Selection, root} from \"./selection/index\";\n\nexport default function(selector) {\n return typeof selector === \"string\"\n ? new Selection([[document.querySelector(selector)]], [document.documentElement])\n : new Selection([[selector]], root);\n}\n","import {Selection, root} from \"./selection/index\";\n\nexport default function(selector) {\n return typeof selector === \"string\"\n ? new Selection([document.querySelectorAll(selector)], [document.documentElement])\n : new Selection([selector == null ? [] : selector], root);\n}\n","import creator from \"../creator\";\n\nexport default function(name) {\n var create = typeof name === \"function\" ? name : creator(name);\n return this.select(function() {\n return this.appendChild(create.apply(this, arguments));\n });\n}\n","import namespace from \"../namespace\";\n\nfunction attrRemove(name) {\n return function() {\n this.removeAttribute(name);\n };\n}\n\nfunction attrRemoveNS(fullname) {\n return function() {\n this.removeAttributeNS(fullname.space, fullname.local);\n };\n}\n\nfunction attrConstant(name, value) {\n return function() {\n this.setAttribute(name, value);\n };\n}\n\nfunction attrConstantNS(fullname, value) {\n return function() {\n this.setAttributeNS(fullname.space, fullname.local, value);\n };\n}\n\nfunction attrFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttribute(name);\n else this.setAttribute(name, v);\n };\n}\n\nfunction attrFunctionNS(fullname, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttributeNS(fullname.space, fullname.local);\n else this.setAttributeNS(fullname.space, fullname.local, v);\n };\n}\n\nexport default function(name, value) {\n var fullname = namespace(name);\n\n if (arguments.length < 2) {\n var node = this.node();\n return fullname.local\n ? node.getAttributeNS(fullname.space, fullname.local)\n : node.getAttribute(fullname);\n }\n\n return this.each((value == null\n ? (fullname.local ? attrRemoveNS : attrRemove) : (typeof value === \"function\"\n ? (fullname.local ? attrFunctionNS : attrFunction)\n : (fullname.local ? attrConstantNS : attrConstant)))(fullname, value));\n}\n","export default function() {\n var callback = arguments[0];\n arguments[0] = this;\n callback.apply(null, arguments);\n return this;\n}\n","function classArray(string) {\n return string.trim().split(/^|\\s+/);\n}\n\nfunction classList(node) {\n return node.classList || new ClassList(node);\n}\n\nfunction ClassList(node) {\n this._node = node;\n this._names = classArray(node.getAttribute(\"class\") || \"\");\n}\n\nClassList.prototype = {\n add: function(name) {\n var i = this._names.indexOf(name);\n if (i < 0) {\n this._names.push(name);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n remove: function(name) {\n var i = this._names.indexOf(name);\n if (i >= 0) {\n this._names.splice(i, 1);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n contains: function(name) {\n return this._names.indexOf(name) >= 0;\n }\n};\n\nfunction classedAdd(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.add(names[i]);\n}\n\nfunction classedRemove(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.remove(names[i]);\n}\n\nfunction classedTrue(names) {\n return function() {\n classedAdd(this, names);\n };\n}\n\nfunction classedFalse(names) {\n return function() {\n classedRemove(this, names);\n };\n}\n\nfunction classedFunction(names, value) {\n return function() {\n (value.apply(this, arguments) ? classedAdd : classedRemove)(this, names);\n };\n}\n\nexport default function(name, value) {\n var names = classArray(name + \"\");\n\n if (arguments.length < 2) {\n var list = classList(this.node()), i = -1, n = names.length;\n while (++i < n) if (!list.contains(names[i])) return false;\n return true;\n }\n\n return this.each((typeof value === \"function\"\n ? classedFunction : value\n ? classedTrue\n : classedFalse)(names, value));\n}\n","function selection_cloneShallow() {\n return this.parentNode.insertBefore(this.cloneNode(false), this.nextSibling);\n}\n\nfunction selection_cloneDeep() {\n return this.parentNode.insertBefore(this.cloneNode(true), this.nextSibling);\n}\n\nexport default function(deep) {\n return this.select(deep ? selection_cloneDeep : selection_cloneShallow);\n}\n","import {Selection} from \"./index\";\nimport {EnterNode} from \"./enter\";\nimport constant from \"../constant\";\n\nvar keyPrefix = \"$\"; // Protect against keys like “__proto__â€.\n\nfunction bindIndex(parent, group, enter, update, exit, data) {\n var i = 0,\n node,\n groupLength = group.length,\n dataLength = data.length;\n\n // Put any non-null nodes that fit into update.\n // Put any null nodes into enter.\n // Put any remaining data into enter.\n for (; i < dataLength; ++i) {\n if (node = group[i]) {\n node.__data__ = data[i];\n update[i] = node;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Put any non-null nodes that don’t fit into exit.\n for (; i < groupLength; ++i) {\n if (node = group[i]) {\n exit[i] = node;\n }\n }\n}\n\nfunction bindKey(parent, group, enter, update, exit, data, key) {\n var i,\n node,\n nodeByKeyValue = {},\n groupLength = group.length,\n dataLength = data.length,\n keyValues = new Array(groupLength),\n keyValue;\n\n // Compute the key for each node.\n // If multiple nodes have the same key, the duplicates are added to exit.\n for (i = 0; i < groupLength; ++i) {\n if (node = group[i]) {\n keyValues[i] = keyValue = keyPrefix + key.call(node, node.__data__, i, group);\n if (keyValue in nodeByKeyValue) {\n exit[i] = node;\n } else {\n nodeByKeyValue[keyValue] = node;\n }\n }\n }\n\n // Compute the key for each datum.\n // If there a node associated with this key, join and add it to update.\n // If there is not (or the key is a duplicate), add it to enter.\n for (i = 0; i < dataLength; ++i) {\n keyValue = keyPrefix + key.call(parent, data[i], i, data);\n if (node = nodeByKeyValue[keyValue]) {\n update[i] = node;\n node.__data__ = data[i];\n nodeByKeyValue[keyValue] = null;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Add any remaining nodes that were not bound to data to exit.\n for (i = 0; i < groupLength; ++i) {\n if ((node = group[i]) && (nodeByKeyValue[keyValues[i]] === node)) {\n exit[i] = node;\n }\n }\n}\n\nexport default function(value, key) {\n if (!value) {\n data = new Array(this.size()), j = -1;\n this.each(function(d) { data[++j] = d; });\n return data;\n }\n\n var bind = key ? bindKey : bindIndex,\n parents = this._parents,\n groups = this._groups;\n\n if (typeof value !== \"function\") value = constant(value);\n\n for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) {\n var parent = parents[j],\n group = groups[j],\n groupLength = group.length,\n data = value.call(parent, parent && parent.__data__, j, parents),\n dataLength = data.length,\n enterGroup = enter[j] = new Array(dataLength),\n updateGroup = update[j] = new Array(dataLength),\n exitGroup = exit[j] = new Array(groupLength);\n\n bind(parent, group, enterGroup, updateGroup, exitGroup, data, key);\n\n // Now connect the enter nodes to their following update node, such that\n // appendChild can insert the materialized enter node before this node,\n // rather than at the end of the parent node.\n for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {\n if (previous = enterGroup[i0]) {\n if (i0 >= i1) i1 = i0 + 1;\n while (!(next = updateGroup[i1]) && ++i1 < dataLength);\n previous._next = next || null;\n }\n }\n }\n\n update = new Selection(update, parents);\n update._enter = enter;\n update._exit = exit;\n return update;\n}\n","export default function(value) {\n return arguments.length\n ? this.property(\"__data__\", value)\n : this.node().__data__;\n}\n","import defaultView from \"../window\";\n\nfunction dispatchEvent(node, type, params) {\n var window = defaultView(node),\n event = window.CustomEvent;\n\n if (typeof event === \"function\") {\n event = new event(type, params);\n } else {\n event = window.document.createEvent(\"Event\");\n if (params) event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail;\n else event.initEvent(type, false, false);\n }\n\n node.dispatchEvent(event);\n}\n\nfunction dispatchConstant(type, params) {\n return function() {\n return dispatchEvent(this, type, params);\n };\n}\n\nfunction dispatchFunction(type, params) {\n return function() {\n return dispatchEvent(this, type, params.apply(this, arguments));\n };\n}\n\nexport default function(type, params) {\n return this.each((typeof params === \"function\"\n ? dispatchFunction\n : dispatchConstant)(type, params));\n}\n","export default function(callback) {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {\n if (node = group[i]) callback.call(node, node.__data__, i, group);\n }\n }\n\n return this;\n}\n","export default function() {\n return !this.node();\n}\n","import sparse from \"./sparse\";\nimport {Selection} from \"./index\";\n\nexport default function() {\n return new Selection(this._enter || this._groups.map(sparse), this._parents);\n}\n\nexport function EnterNode(parent, datum) {\n this.ownerDocument = parent.ownerDocument;\n this.namespaceURI = parent.namespaceURI;\n this._next = null;\n this._parent = parent;\n this.__data__ = datum;\n}\n\nEnterNode.prototype = {\n constructor: EnterNode,\n appendChild: function(child) { return this._parent.insertBefore(child, this._next); },\n insertBefore: function(child, next) { return this._parent.insertBefore(child, next); },\n querySelector: function(selector) { return this._parent.querySelector(selector); },\n querySelectorAll: function(selector) { return this._parent.querySelectorAll(selector); }\n};\n","import sparse from \"./sparse\";\nimport {Selection} from \"./index\";\n\nexport default function() {\n return new Selection(this._exit || this._groups.map(sparse), this._parents);\n}\n","import {Selection} from \"./index\";\nimport matcher from \"../matcher\";\n\nexport default function(match) {\n if (typeof match !== \"function\") match = matcher(match);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {\n if ((node = group[i]) && match.call(node, node.__data__, i, group)) {\n subgroup.push(node);\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n","function htmlRemove() {\n this.innerHTML = \"\";\n}\n\nfunction htmlConstant(value) {\n return function() {\n this.innerHTML = value;\n };\n}\n\nfunction htmlFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.innerHTML = v == null ? \"\" : v;\n };\n}\n\nexport default function(value) {\n return arguments.length\n ? this.each(value == null\n ? htmlRemove : (typeof value === \"function\"\n ? htmlFunction\n : htmlConstant)(value))\n : this.node().innerHTML;\n}\n","import selection_select from \"./select\";\nimport selection_selectAll from \"./selectAll\";\nimport selection_filter from \"./filter\";\nimport selection_data from \"./data\";\nimport selection_enter from \"./enter\";\nimport selection_exit from \"./exit\";\nimport selection_merge from \"./merge\";\nimport selection_order from \"./order\";\nimport selection_sort from \"./sort\";\nimport selection_call from \"./call\";\nimport selection_nodes from \"./nodes\";\nimport selection_node from \"./node\";\nimport selection_size from \"./size\";\nimport selection_empty from \"./empty\";\nimport selection_each from \"./each\";\nimport selection_attr from \"./attr\";\nimport selection_style from \"./style\";\nimport selection_property from \"./property\";\nimport selection_classed from \"./classed\";\nimport selection_text from \"./text\";\nimport selection_html from \"./html\";\nimport selection_raise from \"./raise\";\nimport selection_lower from \"./lower\";\nimport selection_append from \"./append\";\nimport selection_insert from \"./insert\";\nimport selection_remove from \"./remove\";\nimport selection_clone from \"./clone\";\nimport selection_datum from \"./datum\";\nimport selection_on from \"./on\";\nimport selection_dispatch from \"./dispatch\";\n\nexport var root = [null];\n\nexport function Selection(groups, parents) {\n this._groups = groups;\n this._parents = parents;\n}\n\nfunction selection() {\n return new Selection([[document.documentElement]], root);\n}\n\nSelection.prototype = selection.prototype = {\n constructor: Selection,\n select: selection_select,\n selectAll: selection_selectAll,\n filter: selection_filter,\n data: selection_data,\n enter: selection_enter,\n exit: selection_exit,\n merge: selection_merge,\n order: selection_order,\n sort: selection_sort,\n call: selection_call,\n nodes: selection_nodes,\n node: selection_node,\n size: selection_size,\n empty: selection_empty,\n each: selection_each,\n attr: selection_attr,\n style: selection_style,\n property: selection_property,\n classed: selection_classed,\n text: selection_text,\n html: selection_html,\n raise: selection_raise,\n lower: selection_lower,\n append: selection_append,\n insert: selection_insert,\n remove: selection_remove,\n clone: selection_clone,\n datum: selection_datum,\n on: selection_on,\n dispatch: selection_dispatch\n};\n\nexport default selection;\n","import creator from \"../creator\";\nimport selector from \"../selector\";\n\nfunction constantNull() {\n return null;\n}\n\nexport default function(name, before) {\n var create = typeof name === \"function\" ? name : creator(name),\n select = before == null ? constantNull : typeof before === \"function\" ? before : selector(before);\n return this.select(function() {\n return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);\n });\n}\n","function lower() {\n if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild);\n}\n\nexport default function() {\n return this.each(lower);\n}\n","import {Selection} from \"./index\";\n\nexport default function(selection) {\n\n for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {\n for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group0[i] || group1[i]) {\n merge[i] = node;\n }\n }\n }\n\n for (; j < m0; ++j) {\n merges[j] = groups0[j];\n }\n\n return new Selection(merges, this._parents);\n}\n","export default function() {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length; i < n; ++i) {\n var node = group[i];\n if (node) return node;\n }\n }\n\n return null;\n}\n","export default function() {\n var nodes = new Array(this.size()), i = -1;\n this.each(function() { nodes[++i] = this; });\n return nodes;\n}\n","var filterEvents = {};\n\nexport var event = null;\n\nif (typeof document !== \"undefined\") {\n var element = document.documentElement;\n if (!(\"onmouseenter\" in element)) {\n filterEvents = {mouseenter: \"mouseover\", mouseleave: \"mouseout\"};\n }\n}\n\nfunction filterContextListener(listener, index, group) {\n listener = contextListener(listener, index, group);\n return function(event) {\n var related = event.relatedTarget;\n if (!related || (related !== this && !(related.compareDocumentPosition(this) & 8))) {\n listener.call(this, event);\n }\n };\n}\n\nfunction contextListener(listener, index, group) {\n return function(event1) {\n var event0 = event; // Events can be reentrant (e.g., focus).\n event = event1;\n try {\n listener.call(this, this.__data__, index, group);\n } finally {\n event = event0;\n }\n };\n}\n\nfunction parseTypenames(typenames) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n return {type: t, name: name};\n });\n}\n\nfunction onRemove(typename) {\n return function() {\n var on = this.__on;\n if (!on) return;\n for (var j = 0, i = -1, m = on.length, o; j < m; ++j) {\n if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.capture);\n } else {\n on[++i] = o;\n }\n }\n if (++i) on.length = i;\n else delete this.__on;\n };\n}\n\nfunction onAdd(typename, value, capture) {\n var wrap = filterEvents.hasOwnProperty(typename.type) ? filterContextListener : contextListener;\n return function(d, i, group) {\n var on = this.__on, o, listener = wrap(value, i, group);\n if (on) for (var j = 0, m = on.length; j < m; ++j) {\n if ((o = on[j]).type === typename.type && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.capture);\n this.addEventListener(o.type, o.listener = listener, o.capture = capture);\n o.value = value;\n return;\n }\n }\n this.addEventListener(typename.type, listener, capture);\n o = {type: typename.type, name: typename.name, value: value, listener: listener, capture: capture};\n if (!on) this.__on = [o];\n else on.push(o);\n };\n}\n\nexport default function(typename, value, capture) {\n var typenames = parseTypenames(typename + \"\"), i, n = typenames.length, t;\n\n if (arguments.length < 2) {\n var on = this.node().__on;\n if (on) for (var j = 0, m = on.length, o; j < m; ++j) {\n for (i = 0, o = on[j]; i < n; ++i) {\n if ((t = typenames[i]).type === o.type && t.name === o.name) {\n return o.value;\n }\n }\n }\n return;\n }\n\n on = value ? onAdd : onRemove;\n if (capture == null) capture = false;\n for (i = 0; i < n; ++i) this.each(on(typenames[i], value, capture));\n return this;\n}\n\nexport function customEvent(event1, listener, that, args) {\n var event0 = event;\n event1.sourceEvent = event;\n event = event1;\n try {\n return listener.apply(that, args);\n } finally {\n event = event0;\n }\n}\n","export default function() {\n\n for (var groups = this._groups, j = -1, m = groups.length; ++j < m;) {\n for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0;) {\n if (node = group[i]) {\n if (next && next !== node.nextSibling) next.parentNode.insertBefore(node, next);\n next = node;\n }\n }\n }\n\n return this;\n}\n","function propertyRemove(name) {\n return function() {\n delete this[name];\n };\n}\n\nfunction propertyConstant(name, value) {\n return function() {\n this[name] = value;\n };\n}\n\nfunction propertyFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) delete this[name];\n else this[name] = v;\n };\n}\n\nexport default function(name, value) {\n return arguments.length > 1\n ? this.each((value == null\n ? propertyRemove : typeof value === \"function\"\n ? propertyFunction\n : propertyConstant)(name, value))\n : this.node()[name];\n}\n","function raise() {\n if (this.nextSibling) this.parentNode.appendChild(this);\n}\n\nexport default function() {\n return this.each(raise);\n}\n","function remove() {\n var parent = this.parentNode;\n if (parent) parent.removeChild(this);\n}\n\nexport default function() {\n return this.each(remove);\n}\n","import {Selection} from \"./index\";\nimport selector from \"../selector\";\n\nexport default function(select) {\n if (typeof select !== \"function\") select = selector(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {\n if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {\n if (\"__data__\" in node) subnode.__data__ = node.__data__;\n subgroup[i] = subnode;\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n","import {Selection} from \"./index\";\nimport selectorAll from \"../selectorAll\";\n\nexport default function(select) {\n if (typeof select !== \"function\") select = selectorAll(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n subgroups.push(select.call(node, node.__data__, i, group));\n parents.push(node);\n }\n }\n }\n\n return new Selection(subgroups, parents);\n}\n","export default function() {\n var size = 0;\n this.each(function() { ++size; });\n return size;\n}\n","import {Selection} from \"./index\";\n\nexport default function(compare) {\n if (!compare) compare = ascending;\n\n function compareNode(a, b) {\n return a && b ? compare(a.__data__, b.__data__) : !a - !b;\n }\n\n for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n sortgroup[i] = node;\n }\n }\n sortgroup.sort(compareNode);\n }\n\n return new Selection(sortgroups, this._parents).order();\n}\n\nfunction ascending(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n","export default function(update) {\n return new Array(update.length);\n}\n","import defaultView from \"../window\";\n\nfunction styleRemove(name) {\n return function() {\n this.style.removeProperty(name);\n };\n}\n\nfunction styleConstant(name, value, priority) {\n return function() {\n this.style.setProperty(name, value, priority);\n };\n}\n\nfunction styleFunction(name, value, priority) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.style.removeProperty(name);\n else this.style.setProperty(name, v, priority);\n };\n}\n\nexport default function(name, value, priority) {\n return arguments.length > 1\n ? this.each((value == null\n ? styleRemove : typeof value === \"function\"\n ? styleFunction\n : styleConstant)(name, value, priority == null ? \"\" : priority))\n : styleValue(this.node(), name);\n}\n\nexport function styleValue(node, name) {\n return node.style.getPropertyValue(name)\n || defaultView(node).getComputedStyle(node, null).getPropertyValue(name);\n}\n","function textRemove() {\n this.textContent = \"\";\n}\n\nfunction textConstant(value) {\n return function() {\n this.textContent = value;\n };\n}\n\nfunction textFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.textContent = v == null ? \"\" : v;\n };\n}\n\nexport default function(value) {\n return arguments.length\n ? this.each(value == null\n ? textRemove : (typeof value === \"function\"\n ? textFunction\n : textConstant)(value))\n : this.node().textContent;\n}\n","function none() {}\n\nexport default function(selector) {\n return selector == null ? none : function() {\n return this.querySelector(selector);\n };\n}\n","function empty() {\n return [];\n}\n\nexport default function(selector) {\n return selector == null ? empty : function() {\n return this.querySelectorAll(selector);\n };\n}\n","import {event} from \"./selection/on\";\n\nexport default function() {\n var current = event, source;\n while (source = current.sourceEvent) current = source;\n return current;\n}\n","import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node, touches, identifier) {\n if (arguments.length < 3) identifier = touches, touches = sourceEvent().changedTouches;\n\n for (var i = 0, n = touches ? touches.length : 0, touch; i < n; ++i) {\n if ((touch = touches[i]).identifier === identifier) {\n return point(node, touch);\n }\n }\n\n return null;\n}\n","import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node, touches) {\n if (touches == null) touches = sourceEvent().touches;\n\n for (var i = 0, n = touches ? touches.length : 0, points = new Array(n); i < n; ++i) {\n points[i] = point(node, touches[i]);\n }\n\n return points;\n}\n","export default function(node) {\n return (node.ownerDocument && node.ownerDocument.defaultView) // node is a Node\n || (node.document && node) // node is a Window\n || node.defaultView; // node is a Document\n}\n","export {\n now,\n timer,\n timerFlush\n} from \"./timer\";\n\nexport {\n default as timeout\n} from \"./timeout\";\n\nexport {\n default as interval\n} from \"./interval\";\n","import {Timer, now} from \"./timer\";\n\nexport default function(callback, delay, time) {\n var t = new Timer, total = delay;\n if (delay == null) return t.restart(callback, delay, time), t;\n delay = +delay, time = time == null ? now() : +time;\n t.restart(function tick(elapsed) {\n elapsed += total;\n t.restart(tick, total += delay, time);\n callback(elapsed);\n }, delay, time);\n return t;\n}\n","import {Timer} from \"./timer\";\n\nexport default function(callback, delay, time) {\n var t = new Timer;\n delay = delay == null ? 0 : +delay;\n t.restart(function(elapsed) {\n t.stop();\n callback(elapsed + delay);\n }, delay, time);\n return t;\n}\n","var frame = 0, // is an animation frame pending?\n timeout = 0, // is a timeout pending?\n interval = 0, // are any timers active?\n pokeDelay = 1000, // how frequently we check for clock skew\n taskHead,\n taskTail,\n clockLast = 0,\n clockNow = 0,\n clockSkew = 0,\n clock = typeof performance === \"object\" && performance.now ? performance : Date,\n setFrame = typeof window === \"object\" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); };\n\nexport function now() {\n return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);\n}\n\nfunction clearNow() {\n clockNow = 0;\n}\n\nexport function Timer() {\n this._call =\n this._time =\n this._next = null;\n}\n\nTimer.prototype = timer.prototype = {\n constructor: Timer,\n restart: function(callback, delay, time) {\n if (typeof callback !== \"function\") throw new TypeError(\"callback is not a function\");\n time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);\n if (!this._next && taskTail !== this) {\n if (taskTail) taskTail._next = this;\n else taskHead = this;\n taskTail = this;\n }\n this._call = callback;\n this._time = time;\n sleep();\n },\n stop: function() {\n if (this._call) {\n this._call = null;\n this._time = Infinity;\n sleep();\n }\n }\n};\n\nexport function timer(callback, delay, time) {\n var t = new Timer;\n t.restart(callback, delay, time);\n return t;\n}\n\nexport function timerFlush() {\n now(); // Get the current time, if not already set.\n ++frame; // Pretend we’ve set an alarm, if we haven’t already.\n var t = taskHead, e;\n while (t) {\n if ((e = clockNow - t._time) >= 0) t._call.call(null, e);\n t = t._next;\n }\n --frame;\n}\n\nfunction wake() {\n clockNow = (clockLast = clock.now()) + clockSkew;\n frame = timeout = 0;\n try {\n timerFlush();\n } finally {\n frame = 0;\n nap();\n clockNow = 0;\n }\n}\n\nfunction poke() {\n var now = clock.now(), delay = now - clockLast;\n if (delay > pokeDelay) clockSkew -= delay, clockLast = now;\n}\n\nfunction nap() {\n var t0, t1 = taskHead, t2, time = Infinity;\n while (t1) {\n if (t1._call) {\n if (time > t1._time) time = t1._time;\n t0 = t1, t1 = t1._next;\n } else {\n t2 = t1._next, t1._next = null;\n t1 = t0 ? t0._next = t2 : taskHead = t2;\n }\n }\n taskTail = t0;\n sleep(time);\n}\n\nfunction sleep(time) {\n if (frame) return; // Soonest alarm already set, or will be.\n if (timeout) timeout = clearTimeout(timeout);\n var delay = time - clockNow; // Strictly less than if we recomputed clockNow.\n if (delay > 24) {\n if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);\n if (interval) interval = clearInterval(interval);\n } else {\n if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);\n frame = 1, setFrame(wake);\n }\n}\n","import {Transition} from \"./transition/index\";\nimport {SCHEDULED} from \"./transition/schedule\";\n\nvar root = [null];\n\nexport default function(node, name) {\n var schedules = node.__transition,\n schedule,\n i;\n\n if (schedules) {\n name = name == null ? null : name + \"\";\n for (i in schedules) {\n if ((schedule = schedules[i]).state > SCHEDULED && schedule.name === name) {\n return new Transition([[node]], root, name, +i);\n }\n }\n }\n\n return null;\n}\n","import \"./selection/index\";\nexport {default as transition} from \"./transition/index\";\nexport {default as active} from \"./active\";\nexport {default as interrupt} from \"./interrupt\";\n","import {STARTING, ENDING, ENDED} from \"./transition/schedule\";\n\nexport default function(node, name) {\n var schedules = node.__transition,\n schedule,\n active,\n empty = true,\n i;\n\n if (!schedules) return;\n\n name = name == null ? null : name + \"\";\n\n for (i in schedules) {\n if ((schedule = schedules[i]).name !== name) { empty = false; continue; }\n active = schedule.state > STARTING && schedule.state < ENDING;\n schedule.state = ENDED;\n schedule.timer.stop();\n if (active) schedule.on.call(\"interrupt\", node, node.__data__, schedule.index, schedule.group);\n delete schedules[i];\n }\n\n if (empty) delete node.__transition;\n}\n","import {selection} from \"d3-selection\";\nimport selection_interrupt from \"./interrupt\";\nimport selection_transition from \"./transition\";\n\nselection.prototype.interrupt = selection_interrupt;\nselection.prototype.transition = selection_transition;\n","import interrupt from \"../interrupt\";\n\nexport default function(name) {\n return this.each(function() {\n interrupt(this, name);\n });\n}\n","import {Transition, newId} from \"../transition/index\";\nimport schedule from \"../transition/schedule\";\nimport {easeCubicInOut} from \"d3-ease\";\nimport {now} from \"d3-timer\";\n\nvar defaultTiming = {\n time: null, // Set on use.\n delay: 0,\n duration: 250,\n ease: easeCubicInOut\n};\n\nfunction inherit(node, id) {\n var timing;\n while (!(timing = node.__transition) || !(timing = timing[id])) {\n if (!(node = node.parentNode)) {\n return defaultTiming.time = now(), defaultTiming;\n }\n }\n return timing;\n}\n\nexport default function(name) {\n var id,\n timing;\n\n if (name instanceof Transition) {\n id = name._id, name = name._name;\n } else {\n id = newId(), (timing = defaultTiming).time = now(), name = name == null ? null : name + \"\";\n }\n\n for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n schedule(node, name, id, i, group, timing || inherit(node, id));\n }\n }\n }\n\n return new Transition(groups, this._parents, name, id);\n}\n","import {interpolateTransformSvg as interpolateTransform} from \"d3-interpolate\";\nimport {namespace} from \"d3-selection\";\nimport {tweenValue} from \"./tween\";\nimport interpolate from \"./interpolate\";\n\nfunction attrRemove(name) {\n return function() {\n this.removeAttribute(name);\n };\n}\n\nfunction attrRemoveNS(fullname) {\n return function() {\n this.removeAttributeNS(fullname.space, fullname.local);\n };\n}\n\nfunction attrConstant(name, interpolate, value1) {\n var value00,\n interpolate0;\n return function() {\n var value0 = this.getAttribute(name);\n return value0 === value1 ? null\n : value0 === value00 ? interpolate0\n : interpolate0 = interpolate(value00 = value0, value1);\n };\n}\n\nfunction attrConstantNS(fullname, interpolate, value1) {\n var value00,\n interpolate0;\n return function() {\n var value0 = this.getAttributeNS(fullname.space, fullname.local);\n return value0 === value1 ? null\n : value0 === value00 ? interpolate0\n : interpolate0 = interpolate(value00 = value0, value1);\n };\n}\n\nfunction attrFunction(name, interpolate, value) {\n var value00,\n value10,\n interpolate0;\n return function() {\n var value0, value1 = value(this);\n if (value1 == null) return void this.removeAttribute(name);\n value0 = this.getAttribute(name);\n return value0 === value1 ? null\n : value0 === value00 && value1 === value10 ? interpolate0\n : interpolate0 = interpolate(value00 = value0, value10 = value1);\n };\n}\n\nfunction attrFunctionNS(fullname, interpolate, value) {\n var value00,\n value10,\n interpolate0;\n return function() {\n var value0, value1 = value(this);\n if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local);\n value0 = this.getAttributeNS(fullname.space, fullname.local);\n return value0 === value1 ? null\n : value0 === value00 && value1 === value10 ? interpolate0\n : interpolate0 = interpolate(value00 = value0, value10 = value1);\n };\n}\n\nexport default function(name, value) {\n var fullname = namespace(name), i = fullname === \"transform\" ? interpolateTransform : interpolate;\n return this.attrTween(name, typeof value === \"function\"\n ? (fullname.local ? attrFunctionNS : attrFunction)(fullname, i, tweenValue(this, \"attr.\" + name, value))\n : value == null ? (fullname.local ? attrRemoveNS : attrRemove)(fullname)\n : (fullname.local ? attrConstantNS : attrConstant)(fullname, i, value + \"\"));\n}\n","import {namespace} from \"d3-selection\";\n\nfunction attrTweenNS(fullname, value) {\n function tween() {\n var node = this, i = value.apply(node, arguments);\n return i && function(t) {\n node.setAttributeNS(fullname.space, fullname.local, i(t));\n };\n }\n tween._value = value;\n return tween;\n}\n\nfunction attrTween(name, value) {\n function tween() {\n var node = this, i = value.apply(node, arguments);\n return i && function(t) {\n node.setAttribute(name, i(t));\n };\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(name, value) {\n var key = \"attr.\" + name;\n if (arguments.length < 2) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n var fullname = namespace(name);\n return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value));\n}\n","import {get, init} from \"./schedule\";\n\nfunction delayFunction(id, value) {\n return function() {\n init(this, id).delay = +value.apply(this, arguments);\n };\n}\n\nfunction delayConstant(id, value) {\n return value = +value, function() {\n init(this, id).delay = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each((typeof value === \"function\"\n ? delayFunction\n : delayConstant)(id, value))\n : get(this.node(), id).delay;\n}\n","import {get, set} from \"./schedule\";\n\nfunction durationFunction(id, value) {\n return function() {\n set(this, id).duration = +value.apply(this, arguments);\n };\n}\n\nfunction durationConstant(id, value) {\n return value = +value, function() {\n set(this, id).duration = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each((typeof value === \"function\"\n ? durationFunction\n : durationConstant)(id, value))\n : get(this.node(), id).duration;\n}\n","import {get, set} from \"./schedule\";\n\nfunction easeConstant(id, value) {\n if (typeof value !== \"function\") throw new Error;\n return function() {\n set(this, id).ease = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each(easeConstant(id, value))\n : get(this.node(), id).ease;\n}\n","import {matcher} from \"d3-selection\";\nimport {Transition} from \"./index\";\n\nexport default function(match) {\n if (typeof match !== \"function\") match = matcher(match);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {\n if ((node = group[i]) && match.call(node, node.__data__, i, group)) {\n subgroup.push(node);\n }\n }\n }\n\n return new Transition(subgroups, this._parents, this._name, this._id);\n}\n","import {selection} from \"d3-selection\";\nimport transition_attr from \"./attr\";\nimport transition_attrTween from \"./attrTween\";\nimport transition_delay from \"./delay\";\nimport transition_duration from \"./duration\";\nimport transition_ease from \"./ease\";\nimport transition_filter from \"./filter\";\nimport transition_merge from \"./merge\";\nimport transition_on from \"./on\";\nimport transition_remove from \"./remove\";\nimport transition_select from \"./select\";\nimport transition_selectAll from \"./selectAll\";\nimport transition_selection from \"./selection\";\nimport transition_style from \"./style\";\nimport transition_styleTween from \"./styleTween\";\nimport transition_text from \"./text\";\nimport transition_transition from \"./transition\";\nimport transition_tween from \"./tween\";\n\nvar id = 0;\n\nexport function Transition(groups, parents, name, id) {\n this._groups = groups;\n this._parents = parents;\n this._name = name;\n this._id = id;\n}\n\nexport default function transition(name) {\n return selection().transition(name);\n}\n\nexport function newId() {\n return ++id;\n}\n\nvar selection_prototype = selection.prototype;\n\nTransition.prototype = transition.prototype = {\n constructor: Transition,\n select: transition_select,\n selectAll: transition_selectAll,\n filter: transition_filter,\n merge: transition_merge,\n selection: transition_selection,\n transition: transition_transition,\n call: selection_prototype.call,\n nodes: selection_prototype.nodes,\n node: selection_prototype.node,\n size: selection_prototype.size,\n empty: selection_prototype.empty,\n each: selection_prototype.each,\n on: transition_on,\n attr: transition_attr,\n attrTween: transition_attrTween,\n style: transition_style,\n styleTween: transition_styleTween,\n text: transition_text,\n remove: transition_remove,\n tween: transition_tween,\n delay: transition_delay,\n duration: transition_duration,\n ease: transition_ease\n};\n","import {color} from \"d3-color\";\nimport {interpolateNumber, interpolateRgb, interpolateString} from \"d3-interpolate\";\n\nexport default function(a, b) {\n var c;\n return (typeof b === \"number\" ? interpolateNumber\n : b instanceof color ? interpolateRgb\n : (c = color(b)) ? (b = c, interpolateRgb)\n : interpolateString)(a, b);\n}\n","import {Transition} from \"./index\";\n\nexport default function(transition) {\n if (transition._id !== this._id) throw new Error;\n\n for (var groups0 = this._groups, groups1 = transition._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {\n for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group0[i] || group1[i]) {\n merge[i] = node;\n }\n }\n }\n\n for (; j < m0; ++j) {\n merges[j] = groups0[j];\n }\n\n return new Transition(merges, this._parents, this._name, this._id);\n}\n","import {get, set, init} from \"./schedule\";\n\nfunction start(name) {\n return (name + \"\").trim().split(/^|\\s+/).every(function(t) {\n var i = t.indexOf(\".\");\n if (i >= 0) t = t.slice(0, i);\n return !t || t === \"start\";\n });\n}\n\nfunction onFunction(id, name, listener) {\n var on0, on1, sit = start(name) ? init : set;\n return function() {\n var schedule = sit(this, id),\n on = schedule.on;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener);\n\n schedule.on = on1;\n };\n}\n\nexport default function(name, listener) {\n var id = this._id;\n\n return arguments.length < 2\n ? get(this.node(), id).on.on(name)\n : this.each(onFunction(id, name, listener));\n}\n","function removeFunction(id) {\n return function() {\n var parent = this.parentNode;\n for (var i in this.__transition) if (+i !== id) return;\n if (parent) parent.removeChild(this);\n };\n}\n\nexport default function() {\n return this.on(\"end.remove\", removeFunction(this._id));\n}\n","import {dispatch} from \"d3-dispatch\";\nimport {timer, timeout} from \"d3-timer\";\n\nvar emptyOn = dispatch(\"start\", \"end\", \"interrupt\");\nvar emptyTween = [];\n\nexport var CREATED = 0;\nexport var SCHEDULED = 1;\nexport var STARTING = 2;\nexport var STARTED = 3;\nexport var RUNNING = 4;\nexport var ENDING = 5;\nexport var ENDED = 6;\n\nexport default function(node, name, id, index, group, timing) {\n var schedules = node.__transition;\n if (!schedules) node.__transition = {};\n else if (id in schedules) return;\n create(node, id, {\n name: name,\n index: index, // For context during callback.\n group: group, // For context during callback.\n on: emptyOn,\n tween: emptyTween,\n time: timing.time,\n delay: timing.delay,\n duration: timing.duration,\n ease: timing.ease,\n timer: null,\n state: CREATED\n });\n}\n\nexport function init(node, id) {\n var schedule = get(node, id);\n if (schedule.state > CREATED) throw new Error(\"too late; already scheduled\");\n return schedule;\n}\n\nexport function set(node, id) {\n var schedule = get(node, id);\n if (schedule.state > STARTING) throw new Error(\"too late; already started\");\n return schedule;\n}\n\nexport function get(node, id) {\n var schedule = node.__transition;\n if (!schedule || !(schedule = schedule[id])) throw new Error(\"transition not found\");\n return schedule;\n}\n\nfunction create(node, id, self) {\n var schedules = node.__transition,\n tween;\n\n // Initialize the self timer when the transition is created.\n // Note the actual delay is not known until the first callback!\n schedules[id] = self;\n self.timer = timer(schedule, 0, self.time);\n\n function schedule(elapsed) {\n self.state = SCHEDULED;\n self.timer.restart(start, self.delay, self.time);\n\n // If the elapsed delay is less than our first sleep, start immediately.\n if (self.delay <= elapsed) start(elapsed - self.delay);\n }\n\n function start(elapsed) {\n var i, j, n, o;\n\n // If the state is not SCHEDULED, then we previously errored on start.\n if (self.state !== SCHEDULED) return stop();\n\n for (i in schedules) {\n o = schedules[i];\n if (o.name !== self.name) continue;\n\n // While this element already has a starting transition during this frame,\n // defer starting an interrupting transition until that transition has a\n // chance to tick (and possibly end); see d3/d3-transition#54!\n if (o.state === STARTED) return timeout(start);\n\n // Interrupt the active transition, if any.\n // Dispatch the interrupt event.\n if (o.state === RUNNING) {\n o.state = ENDED;\n o.timer.stop();\n o.on.call(\"interrupt\", node, node.__data__, o.index, o.group);\n delete schedules[i];\n }\n\n // Cancel any pre-empted transitions. No interrupt event is dispatched\n // because the cancelled transitions never started. Note that this also\n // removes this transition from the pending list!\n else if (+i < id) {\n o.state = ENDED;\n o.timer.stop();\n delete schedules[i];\n }\n }\n\n // Defer the first tick to end of the current frame; see d3/d3#1576.\n // Note the transition may be canceled after start and before the first tick!\n // Note this must be scheduled before the start event; see d3/d3-transition#16!\n // Assuming this is successful, subsequent callbacks go straight to tick.\n timeout(function() {\n if (self.state === STARTED) {\n self.state = RUNNING;\n self.timer.restart(tick, self.delay, self.time);\n tick(elapsed);\n }\n });\n\n // Dispatch the start event.\n // Note this must be done before the tween are initialized.\n self.state = STARTING;\n self.on.call(\"start\", node, node.__data__, self.index, self.group);\n if (self.state !== STARTING) return; // interrupted\n self.state = STARTED;\n\n // Initialize the tween, deleting null tween.\n tween = new Array(n = self.tween.length);\n for (i = 0, j = -1; i < n; ++i) {\n if (o = self.tween[i].value.call(node, node.__data__, self.index, self.group)) {\n tween[++j] = o;\n }\n }\n tween.length = j + 1;\n }\n\n function tick(elapsed) {\n var t = elapsed < self.duration ? self.ease.call(null, elapsed / self.duration) : (self.timer.restart(stop), self.state = ENDING, 1),\n i = -1,\n n = tween.length;\n\n while (++i < n) {\n tween[i].call(null, t);\n }\n\n // Dispatch the end event.\n if (self.state === ENDING) {\n self.on.call(\"end\", node, node.__data__, self.index, self.group);\n stop();\n }\n }\n\n function stop() {\n self.state = ENDED;\n self.timer.stop();\n delete schedules[id];\n for (var i in schedules) return; // eslint-disable-line no-unused-vars\n delete node.__transition;\n }\n}\n","import {selector} from \"d3-selection\";\nimport {Transition} from \"./index\";\nimport schedule, {get} from \"./schedule\";\n\nexport default function(select) {\n var name = this._name,\n id = this._id;\n\n if (typeof select !== \"function\") select = selector(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {\n if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {\n if (\"__data__\" in node) subnode.__data__ = node.__data__;\n subgroup[i] = subnode;\n schedule(subgroup[i], name, id, i, subgroup, get(node, id));\n }\n }\n }\n\n return new Transition(subgroups, this._parents, name, id);\n}\n","import {selectorAll} from \"d3-selection\";\nimport {Transition} from \"./index\";\nimport schedule, {get} from \"./schedule\";\n\nexport default function(select) {\n var name = this._name,\n id = this._id;\n\n if (typeof select !== \"function\") select = selectorAll(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n for (var children = select.call(node, node.__data__, i, group), child, inherit = get(node, id), k = 0, l = children.length; k < l; ++k) {\n if (child = children[k]) {\n schedule(child, name, id, k, children, inherit);\n }\n }\n subgroups.push(children);\n parents.push(node);\n }\n }\n }\n\n return new Transition(subgroups, parents, name, id);\n}\n","import {selection} from \"d3-selection\";\n\nvar Selection = selection.prototype.constructor;\n\nexport default function() {\n return new Selection(this._groups, this._parents);\n}\n","import {interpolateTransformCss as interpolateTransform} from \"d3-interpolate\";\nimport {style} from \"d3-selection\";\nimport {tweenValue} from \"./tween\";\nimport interpolate from \"./interpolate\";\n\nfunction styleRemove(name, interpolate) {\n var value00,\n value10,\n interpolate0;\n return function() {\n var value0 = style(this, name),\n value1 = (this.style.removeProperty(name), style(this, name));\n return value0 === value1 ? null\n : value0 === value00 && value1 === value10 ? interpolate0\n : interpolate0 = interpolate(value00 = value0, value10 = value1);\n };\n}\n\nfunction styleRemoveEnd(name) {\n return function() {\n this.style.removeProperty(name);\n };\n}\n\nfunction styleConstant(name, interpolate, value1) {\n var value00,\n interpolate0;\n return function() {\n var value0 = style(this, name);\n return value0 === value1 ? null\n : value0 === value00 ? interpolate0\n : interpolate0 = interpolate(value00 = value0, value1);\n };\n}\n\nfunction styleFunction(name, interpolate, value) {\n var value00,\n value10,\n interpolate0;\n return function() {\n var value0 = style(this, name),\n value1 = value(this);\n if (value1 == null) value1 = (this.style.removeProperty(name), style(this, name));\n return value0 === value1 ? null\n : value0 === value00 && value1 === value10 ? interpolate0\n : interpolate0 = interpolate(value00 = value0, value10 = value1);\n };\n}\n\nexport default function(name, value, priority) {\n var i = (name += \"\") === \"transform\" ? interpolateTransform : interpolate;\n return value == null ? this\n .styleTween(name, styleRemove(name, i))\n .on(\"end.style.\" + name, styleRemoveEnd(name))\n : this.styleTween(name, typeof value === \"function\"\n ? styleFunction(name, i, tweenValue(this, \"style.\" + name, value))\n : styleConstant(name, i, value + \"\"), priority);\n}\n","function styleTween(name, value, priority) {\n function tween() {\n var node = this, i = value.apply(node, arguments);\n return i && function(t) {\n node.style.setProperty(name, i(t), priority);\n };\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(name, value, priority) {\n var key = \"style.\" + (name += \"\");\n if (arguments.length < 2) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n return this.tween(key, styleTween(name, value, priority == null ? \"\" : priority));\n}\n","import {tweenValue} from \"./tween\";\n\nfunction textConstant(value) {\n return function() {\n this.textContent = value;\n };\n}\n\nfunction textFunction(value) {\n return function() {\n var value1 = value(this);\n this.textContent = value1 == null ? \"\" : value1;\n };\n}\n\nexport default function(value) {\n return this.tween(\"text\", typeof value === \"function\"\n ? textFunction(tweenValue(this, \"text\", value))\n : textConstant(value == null ? \"\" : value + \"\"));\n}\n","import {Transition, newId} from \"./index\";\nimport schedule, {get} from \"./schedule\";\n\nexport default function() {\n var name = this._name,\n id0 = this._id,\n id1 = newId();\n\n for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n var inherit = get(node, id0);\n schedule(node, name, id1, i, group, {\n time: inherit.time + inherit.delay + inherit.duration,\n delay: 0,\n duration: inherit.duration,\n ease: inherit.ease\n });\n }\n }\n }\n\n return new Transition(groups, this._parents, name, id1);\n}\n","import {get, set} from \"./schedule\";\n\nfunction tweenRemove(id, name) {\n var tween0, tween1;\n return function() {\n var schedule = set(this, id),\n tween = schedule.tween;\n\n // If this node shared tween with the previous node,\n // just assign the updated shared tween and we’re done!\n // Otherwise, copy-on-write.\n if (tween !== tween0) {\n tween1 = tween0 = tween;\n for (var i = 0, n = tween1.length; i < n; ++i) {\n if (tween1[i].name === name) {\n tween1 = tween1.slice();\n tween1.splice(i, 1);\n break;\n }\n }\n }\n\n schedule.tween = tween1;\n };\n}\n\nfunction tweenFunction(id, name, value) {\n var tween0, tween1;\n if (typeof value !== \"function\") throw new Error;\n return function() {\n var schedule = set(this, id),\n tween = schedule.tween;\n\n // If this node shared tween with the previous node,\n // just assign the updated shared tween and we’re done!\n // Otherwise, copy-on-write.\n if (tween !== tween0) {\n tween1 = (tween0 = tween).slice();\n for (var t = {name: name, value: value}, i = 0, n = tween1.length; i < n; ++i) {\n if (tween1[i].name === name) {\n tween1[i] = t;\n break;\n }\n }\n if (i === n) tween1.push(t);\n }\n\n schedule.tween = tween1;\n };\n}\n\nexport default function(name, value) {\n var id = this._id;\n\n name += \"\";\n\n if (arguments.length < 2) {\n var tween = get(this.node(), id).tween;\n for (var i = 0, n = tween.length, t; i < n; ++i) {\n if ((t = tween[i]).name === name) {\n return t.value;\n }\n }\n return null;\n }\n\n return this.each((value == null ? tweenRemove : tweenFunction)(id, name, value));\n}\n\nexport function tweenValue(transition, name, value) {\n var id = transition._id;\n\n transition.each(function() {\n var schedule = set(this, id);\n (schedule.value || (schedule.value = {}))[name] = value.apply(this, arguments);\n });\n\n return function(node) {\n return get(node, id).value[name];\n };\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function ZoomEvent(target, type, transform) {\n this.target = target;\n this.type = type;\n this.transform = transform;\n}\n","export {default as zoom} from \"./zoom\";\nexport {default as zoomTransform, identity as zoomIdentity} from \"./transform\";\n","import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n","export function Transform(k, x, y) {\n this.k = k;\n this.x = x;\n this.y = y;\n}\n\nTransform.prototype = {\n constructor: Transform,\n scale: function(k) {\n return k === 1 ? this : new Transform(this.k * k, this.x, this.y);\n },\n translate: function(x, y) {\n return x === 0 & y === 0 ? this : new Transform(this.k, this.x + this.k * x, this.y + this.k * y);\n },\n apply: function(point) {\n return [point[0] * this.k + this.x, point[1] * this.k + this.y];\n },\n applyX: function(x) {\n return x * this.k + this.x;\n },\n applyY: function(y) {\n return y * this.k + this.y;\n },\n invert: function(location) {\n return [(location[0] - this.x) / this.k, (location[1] - this.y) / this.k];\n },\n invertX: function(x) {\n return (x - this.x) / this.k;\n },\n invertY: function(y) {\n return (y - this.y) / this.k;\n },\n rescaleX: function(x) {\n return x.copy().domain(x.range().map(this.invertX, this).map(x.invert, x));\n },\n rescaleY: function(y) {\n return y.copy().domain(y.range().map(this.invertY, this).map(y.invert, y));\n },\n toString: function() {\n return \"translate(\" + this.x + \",\" + this.y + \") scale(\" + this.k + \")\";\n }\n};\n\nexport var identity = new Transform(1, 0, 0);\n\ntransform.prototype = Transform.prototype;\n\nexport default function transform(node) {\n return node.__zoom || identity;\n}\n","import {dispatch} from \"d3-dispatch\";\nimport {dragDisable, dragEnable} from \"d3-drag\";\nimport {interpolateZoom} from \"d3-interpolate\";\nimport {event, customEvent, select, mouse, touch} from \"d3-selection\";\nimport {interrupt} from \"d3-transition\";\nimport constant from \"./constant\";\nimport ZoomEvent from \"./event\";\nimport {Transform, identity} from \"./transform\";\nimport noevent, {nopropagation} from \"./noevent\";\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.button;\n}\n\nfunction defaultExtent() {\n var e = this, w, h;\n if (e instanceof SVGElement) {\n e = e.ownerSVGElement || e;\n w = e.width.baseVal.value;\n h = e.height.baseVal.value;\n } else {\n w = e.clientWidth;\n h = e.clientHeight;\n }\n return [[0, 0], [w, h]];\n}\n\nfunction defaultTransform() {\n return this.__zoom || identity;\n}\n\nfunction defaultWheelDelta() {\n return -event.deltaY * (event.deltaMode ? 120 : 1) / 500;\n}\n\nfunction defaultTouchable() {\n return \"ontouchstart\" in this;\n}\n\nfunction defaultConstrain(transform, extent, translateExtent) {\n var dx0 = transform.invertX(extent[0][0]) - translateExtent[0][0],\n dx1 = transform.invertX(extent[1][0]) - translateExtent[1][0],\n dy0 = transform.invertY(extent[0][1]) - translateExtent[0][1],\n dy1 = transform.invertY(extent[1][1]) - translateExtent[1][1];\n return transform.translate(\n dx1 > dx0 ? (dx0 + dx1) / 2 : Math.min(0, dx0) || Math.max(0, dx1),\n dy1 > dy0 ? (dy0 + dy1) / 2 : Math.min(0, dy0) || Math.max(0, dy1)\n );\n}\n\nexport default function() {\n var filter = defaultFilter,\n extent = defaultExtent,\n constrain = defaultConstrain,\n wheelDelta = defaultWheelDelta,\n touchable = defaultTouchable,\n scaleExtent = [0, Infinity],\n translateExtent = [[-Infinity, -Infinity], [Infinity, Infinity]],\n duration = 250,\n interpolate = interpolateZoom,\n gestures = [],\n listeners = dispatch(\"start\", \"zoom\", \"end\"),\n touchstarting,\n touchending,\n touchDelay = 500,\n wheelDelay = 150,\n clickDistance2 = 0;\n\n function zoom(selection) {\n selection\n .property(\"__zoom\", defaultTransform)\n .on(\"wheel.zoom\", wheeled)\n .on(\"mousedown.zoom\", mousedowned)\n .on(\"dblclick.zoom\", dblclicked)\n .filter(touchable)\n .on(\"touchstart.zoom\", touchstarted)\n .on(\"touchmove.zoom\", touchmoved)\n .on(\"touchend.zoom touchcancel.zoom\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n zoom.transform = function(collection, transform) {\n var selection = collection.selection ? collection.selection() : collection;\n selection.property(\"__zoom\", defaultTransform);\n if (collection !== selection) {\n schedule(collection, transform);\n } else {\n selection.interrupt().each(function() {\n gesture(this, arguments)\n .start()\n .zoom(null, typeof transform === \"function\" ? transform.apply(this, arguments) : transform)\n .end();\n });\n }\n };\n\n zoom.scaleBy = function(selection, k) {\n zoom.scaleTo(selection, function() {\n var k0 = this.__zoom.k,\n k1 = typeof k === \"function\" ? k.apply(this, arguments) : k;\n return k0 * k1;\n });\n };\n\n zoom.scaleTo = function(selection, k) {\n zoom.transform(selection, function() {\n var e = extent.apply(this, arguments),\n t0 = this.__zoom,\n p0 = centroid(e),\n p1 = t0.invert(p0),\n k1 = typeof k === \"function\" ? k.apply(this, arguments) : k;\n return constrain(translate(scale(t0, k1), p0, p1), e, translateExtent);\n });\n };\n\n zoom.translateBy = function(selection, x, y) {\n zoom.transform(selection, function() {\n return constrain(this.__zoom.translate(\n typeof x === \"function\" ? x.apply(this, arguments) : x,\n typeof y === \"function\" ? y.apply(this, arguments) : y\n ), extent.apply(this, arguments), translateExtent);\n });\n };\n\n zoom.translateTo = function(selection, x, y) {\n zoom.transform(selection, function() {\n var e = extent.apply(this, arguments),\n t = this.__zoom,\n p = centroid(e);\n return constrain(identity.translate(p[0], p[1]).scale(t.k).translate(\n typeof x === \"function\" ? -x.apply(this, arguments) : -x,\n typeof y === \"function\" ? -y.apply(this, arguments) : -y\n ), e, translateExtent);\n });\n };\n\n function scale(transform, k) {\n k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], k));\n return k === transform.k ? transform : new Transform(k, transform.x, transform.y);\n }\n\n function translate(transform, p0, p1) {\n var x = p0[0] - p1[0] * transform.k, y = p0[1] - p1[1] * transform.k;\n return x === transform.x && y === transform.y ? transform : new Transform(transform.k, x, y);\n }\n\n function centroid(extent) {\n return [(+extent[0][0] + +extent[1][0]) / 2, (+extent[0][1] + +extent[1][1]) / 2];\n }\n\n function schedule(transition, transform, center) {\n transition\n .on(\"start.zoom\", function() { gesture(this, arguments).start(); })\n .on(\"interrupt.zoom end.zoom\", function() { gesture(this, arguments).end(); })\n .tween(\"zoom\", function() {\n var that = this,\n args = arguments,\n g = gesture(that, args),\n e = extent.apply(that, args),\n p = center || centroid(e),\n w = Math.max(e[1][0] - e[0][0], e[1][1] - e[0][1]),\n a = that.__zoom,\n b = typeof transform === \"function\" ? transform.apply(that, args) : transform,\n i = interpolate(a.invert(p).concat(w / a.k), b.invert(p).concat(w / b.k));\n return function(t) {\n if (t === 1) t = b; // Avoid rounding error on end.\n else { var l = i(t), k = w / l[2]; t = new Transform(k, p[0] - l[0] * k, p[1] - l[1] * k); }\n g.zoom(null, t);\n };\n });\n }\n\n function gesture(that, args) {\n for (var i = 0, n = gestures.length, g; i < n; ++i) {\n if ((g = gestures[i]).that === that) {\n return g;\n }\n }\n return new Gesture(that, args);\n }\n\n function Gesture(that, args) {\n this.that = that;\n this.args = args;\n this.index = -1;\n this.active = 0;\n this.extent = extent.apply(that, args);\n }\n\n Gesture.prototype = {\n start: function() {\n if (++this.active === 1) {\n this.index = gestures.push(this) - 1;\n this.emit(\"start\");\n }\n return this;\n },\n zoom: function(key, transform) {\n if (this.mouse && key !== \"mouse\") this.mouse[1] = transform.invert(this.mouse[0]);\n if (this.touch0 && key !== \"touch\") this.touch0[1] = transform.invert(this.touch0[0]);\n if (this.touch1 && key !== \"touch\") this.touch1[1] = transform.invert(this.touch1[0]);\n this.that.__zoom = transform;\n this.emit(\"zoom\");\n return this;\n },\n end: function() {\n if (--this.active === 0) {\n gestures.splice(this.index, 1);\n this.index = -1;\n this.emit(\"end\");\n }\n return this;\n },\n emit: function(type) {\n customEvent(new ZoomEvent(zoom, type, this.that.__zoom), listeners.apply, listeners, [type, this.that, this.args]);\n }\n };\n\n function wheeled() {\n if (!filter.apply(this, arguments)) return;\n var g = gesture(this, arguments),\n t = this.__zoom,\n k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], t.k * Math.pow(2, wheelDelta.apply(this, arguments)))),\n p = mouse(this);\n\n // If the mouse is in the same location as before, reuse it.\n // If there were recent wheel events, reset the wheel idle timeout.\n if (g.wheel) {\n if (g.mouse[0][0] !== p[0] || g.mouse[0][1] !== p[1]) {\n g.mouse[1] = t.invert(g.mouse[0] = p);\n }\n clearTimeout(g.wheel);\n }\n\n // If this wheel event won’t trigger a transform change, ignore it.\n else if (t.k === k) return;\n\n // Otherwise, capture the mouse point and location at the start.\n else {\n g.mouse = [p, t.invert(p)];\n interrupt(this);\n g.start();\n }\n\n noevent();\n g.wheel = setTimeout(wheelidled, wheelDelay);\n g.zoom(\"mouse\", constrain(translate(scale(t, k), g.mouse[0], g.mouse[1]), g.extent, translateExtent));\n\n function wheelidled() {\n g.wheel = null;\n g.end();\n }\n }\n\n function mousedowned() {\n if (touchending || !filter.apply(this, arguments)) return;\n var g = gesture(this, arguments),\n v = select(event.view).on(\"mousemove.zoom\", mousemoved, true).on(\"mouseup.zoom\", mouseupped, true),\n p = mouse(this),\n x0 = event.clientX,\n y0 = event.clientY;\n\n dragDisable(event.view);\n nopropagation();\n g.mouse = [p, this.__zoom.invert(p)];\n interrupt(this);\n g.start();\n\n function mousemoved() {\n noevent();\n if (!g.moved) {\n var dx = event.clientX - x0, dy = event.clientY - y0;\n g.moved = dx * dx + dy * dy > clickDistance2;\n }\n g.zoom(\"mouse\", constrain(translate(g.that.__zoom, g.mouse[0] = mouse(g.that), g.mouse[1]), g.extent, translateExtent));\n }\n\n function mouseupped() {\n v.on(\"mousemove.zoom mouseup.zoom\", null);\n dragEnable(event.view, g.moved);\n noevent();\n g.end();\n }\n }\n\n function dblclicked() {\n if (!filter.apply(this, arguments)) return;\n var t0 = this.__zoom,\n p0 = mouse(this),\n p1 = t0.invert(p0),\n k1 = t0.k * (event.shiftKey ? 0.5 : 2),\n t1 = constrain(translate(scale(t0, k1), p0, p1), extent.apply(this, arguments), translateExtent);\n\n noevent();\n if (duration > 0) select(this).transition().duration(duration).call(schedule, t1, p0);\n else select(this).call(zoom.transform, t1);\n }\n\n function touchstarted() {\n if (!filter.apply(this, arguments)) return;\n var g = gesture(this, arguments),\n touches = event.changedTouches,\n started,\n n = touches.length, i, t, p;\n\n nopropagation();\n for (i = 0; i < n; ++i) {\n t = touches[i], p = touch(this, touches, t.identifier);\n p = [p, this.__zoom.invert(p), t.identifier];\n if (!g.touch0) g.touch0 = p, started = true;\n else if (!g.touch1) g.touch1 = p;\n }\n\n // If this is a dbltap, reroute to the (optional) dblclick.zoom handler.\n if (touchstarting) {\n touchstarting = clearTimeout(touchstarting);\n if (!g.touch1) {\n g.end();\n p = select(this).on(\"dblclick.zoom\");\n if (p) p.apply(this, arguments);\n return;\n }\n }\n\n if (started) {\n touchstarting = setTimeout(function() { touchstarting = null; }, touchDelay);\n interrupt(this);\n g.start();\n }\n }\n\n function touchmoved() {\n var g = gesture(this, arguments),\n touches = event.changedTouches,\n n = touches.length, i, t, p, l;\n\n noevent();\n if (touchstarting) touchstarting = clearTimeout(touchstarting);\n for (i = 0; i < n; ++i) {\n t = touches[i], p = touch(this, touches, t.identifier);\n if (g.touch0 && g.touch0[2] === t.identifier) g.touch0[0] = p;\n else if (g.touch1 && g.touch1[2] === t.identifier) g.touch1[0] = p;\n }\n t = g.that.__zoom;\n if (g.touch1) {\n var p0 = g.touch0[0], l0 = g.touch0[1],\n p1 = g.touch1[0], l1 = g.touch1[1],\n dp = (dp = p1[0] - p0[0]) * dp + (dp = p1[1] - p0[1]) * dp,\n dl = (dl = l1[0] - l0[0]) * dl + (dl = l1[1] - l0[1]) * dl;\n t = scale(t, Math.sqrt(dp / dl));\n p = [(p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2];\n l = [(l0[0] + l1[0]) / 2, (l0[1] + l1[1]) / 2];\n }\n else if (g.touch0) p = g.touch0[0], l = g.touch0[1];\n else return;\n g.zoom(\"touch\", constrain(translate(t, p, l), g.extent, translateExtent));\n }\n\n function touchended() {\n var g = gesture(this, arguments),\n touches = event.changedTouches,\n n = touches.length, i, t;\n\n nopropagation();\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, touchDelay);\n for (i = 0; i < n; ++i) {\n t = touches[i];\n if (g.touch0 && g.touch0[2] === t.identifier) delete g.touch0;\n else if (g.touch1 && g.touch1[2] === t.identifier) delete g.touch1;\n }\n if (g.touch1 && !g.touch0) g.touch0 = g.touch1, delete g.touch1;\n if (g.touch0) g.touch0[1] = this.__zoom.invert(g.touch0[0]);\n else g.end();\n }\n\n zoom.wheelDelta = function(_) {\n return arguments.length ? (wheelDelta = typeof _ === \"function\" ? _ : constant(+_), zoom) : wheelDelta;\n };\n\n zoom.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), zoom) : filter;\n };\n\n zoom.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), zoom) : touchable;\n };\n\n zoom.extent = function(_) {\n return arguments.length ? (extent = typeof _ === \"function\" ? _ : constant([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]), zoom) : extent;\n };\n\n zoom.scaleExtent = function(_) {\n return arguments.length ? (scaleExtent[0] = +_[0], scaleExtent[1] = +_[1], zoom) : [scaleExtent[0], scaleExtent[1]];\n };\n\n zoom.translateExtent = function(_) {\n return arguments.length ? (translateExtent[0][0] = +_[0][0], translateExtent[1][0] = +_[1][0], translateExtent[0][1] = +_[0][1], translateExtent[1][1] = +_[1][1], zoom) : [[translateExtent[0][0], translateExtent[0][1]], [translateExtent[1][0], translateExtent[1][1]]];\n };\n\n zoom.constrain = function(_) {\n return arguments.length ? (constrain = _, zoom) : constrain;\n };\n\n zoom.duration = function(_) {\n return arguments.length ? (duration = +_, zoom) : duration;\n };\n\n zoom.interpolate = function(_) {\n return arguments.length ? (interpolate = _, zoom) : interpolate;\n };\n\n zoom.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? zoom : value;\n };\n\n zoom.clickDistance = function(_) {\n return arguments.length ? (clickDistance2 = (_ = +_) * _, zoom) : Math.sqrt(clickDistance2);\n };\n\n return zoom;\n}\n","/*!\n * @overview es6-promise - a tiny implementation of Promises/A+.\n * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)\n * @license Licensed under MIT license\n * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE\n * @version v4.2.4+314e4831\n */\n\n(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n\ttypeof define === 'function' && define.amd ? define(factory) :\n\t(global.ES6Promise = factory());\n}(this, (function () { 'use strict';\n\nfunction objectOrFunction(x) {\n var type = typeof x;\n return x !== null && (type === 'object' || type === 'function');\n}\n\nfunction isFunction(x) {\n return typeof x === 'function';\n}\n\n\n\nvar _isArray = void 0;\nif (Array.isArray) {\n _isArray = Array.isArray;\n} else {\n _isArray = function (x) {\n return Object.prototype.toString.call(x) === '[object Array]';\n };\n}\n\nvar isArray = _isArray;\n\nvar len = 0;\nvar vertxNext = void 0;\nvar customSchedulerFn = void 0;\n\nvar asap = function asap(callback, arg) {\n queue[len] = callback;\n queue[len + 1] = arg;\n len += 2;\n if (len === 2) {\n // If len is 2, that means that we need to schedule an async flush.\n // If additional callbacks are queued before the queue is flushed, they\n // will be processed by this flush that we are scheduling.\n if (customSchedulerFn) {\n customSchedulerFn(flush);\n } else {\n scheduleFlush();\n }\n }\n};\n\nfunction setScheduler(scheduleFn) {\n customSchedulerFn = scheduleFn;\n}\n\nfunction setAsap(asapFn) {\n asap = asapFn;\n}\n\nvar browserWindow = typeof window !== 'undefined' ? window : undefined;\nvar browserGlobal = browserWindow || {};\nvar BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\nvar isNode = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';\n\n// test for web worker but not in IE10\nvar isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';\n\n// node\nfunction useNextTick() {\n // node version 0.10.x displays a deprecation warning when nextTick is used recursively\n // see https://github.com/cujojs/when/issues/410 for details\n return function () {\n return process.nextTick(flush);\n };\n}\n\n// vertx\nfunction useVertxTimer() {\n if (typeof vertxNext !== 'undefined') {\n return function () {\n vertxNext(flush);\n };\n }\n\n return useSetTimeout();\n}\n\nfunction useMutationObserver() {\n var iterations = 0;\n var observer = new BrowserMutationObserver(flush);\n var node = document.createTextNode('');\n observer.observe(node, { characterData: true });\n\n return function () {\n node.data = iterations = ++iterations % 2;\n };\n}\n\n// web worker\nfunction useMessageChannel() {\n var channel = new MessageChannel();\n channel.port1.onmessage = flush;\n return function () {\n return channel.port2.postMessage(0);\n };\n}\n\nfunction useSetTimeout() {\n // Store setTimeout reference so es6-promise will be unaffected by\n // other code modifying setTimeout (like sinon.useFakeTimers())\n var globalSetTimeout = setTimeout;\n return function () {\n return globalSetTimeout(flush, 1);\n };\n}\n\nvar queue = new Array(1000);\nfunction flush() {\n for (var i = 0; i < len; i += 2) {\n var callback = queue[i];\n var arg = queue[i + 1];\n\n callback(arg);\n\n queue[i] = undefined;\n queue[i + 1] = undefined;\n }\n\n len = 0;\n}\n\nfunction attemptVertx() {\n try {\n var vertx = Function('return this')().require('vertx');\n vertxNext = vertx.runOnLoop || vertx.runOnContext;\n return useVertxTimer();\n } catch (e) {\n return useSetTimeout();\n }\n}\n\nvar scheduleFlush = void 0;\n// Decide what async method to use to triggering processing of queued callbacks:\nif (isNode) {\n scheduleFlush = useNextTick();\n} else if (BrowserMutationObserver) {\n scheduleFlush = useMutationObserver();\n} else if (isWorker) {\n scheduleFlush = useMessageChannel();\n} else if (browserWindow === undefined && typeof require === 'function') {\n scheduleFlush = attemptVertx();\n} else {\n scheduleFlush = useSetTimeout();\n}\n\nfunction then(onFulfillment, onRejection) {\n var parent = this;\n\n var child = new this.constructor(noop);\n\n if (child[PROMISE_ID] === undefined) {\n makePromise(child);\n }\n\n var _state = parent._state;\n\n\n if (_state) {\n var callback = arguments[_state - 1];\n asap(function () {\n return invokeCallback(_state, child, callback, parent._result);\n });\n } else {\n subscribe(parent, child, onFulfillment, onRejection);\n }\n\n return child;\n}\n\n/**\n `Promise.resolve` returns a promise that will become resolved with the\n passed `value`. It is shorthand for the following:\n\n ```javascript\n let promise = new Promise(function(resolve, reject){\n resolve(1);\n });\n\n promise.then(function(value){\n // value === 1\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n let promise = Promise.resolve(1);\n\n promise.then(function(value){\n // value === 1\n });\n ```\n\n @method resolve\n @static\n @param {Any} value value that the returned promise will be resolved with\n Useful for tooling.\n @return {Promise} a promise that will become fulfilled with the given\n `value`\n*/\nfunction resolve$1(object) {\n /*jshint validthis:true */\n var Constructor = this;\n\n if (object && typeof object === 'object' && object.constructor === Constructor) {\n return object;\n }\n\n var promise = new Constructor(noop);\n resolve(promise, object);\n return promise;\n}\n\nvar PROMISE_ID = Math.random().toString(36).substring(2);\n\nfunction noop() {}\n\nvar PENDING = void 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\n\nvar TRY_CATCH_ERROR = { error: null };\n\nfunction selfFulfillment() {\n return new TypeError(\"You cannot resolve a promise with itself\");\n}\n\nfunction cannotReturnOwn() {\n return new TypeError('A promises callback cannot return that same promise.');\n}\n\nfunction getThen(promise) {\n try {\n return promise.then;\n } catch (error) {\n TRY_CATCH_ERROR.error = error;\n return TRY_CATCH_ERROR;\n }\n}\n\nfunction tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) {\n try {\n then$$1.call(value, fulfillmentHandler, rejectionHandler);\n } catch (e) {\n return e;\n }\n}\n\nfunction handleForeignThenable(promise, thenable, then$$1) {\n asap(function (promise) {\n var sealed = false;\n var error = tryThen(then$$1, thenable, function (value) {\n if (sealed) {\n return;\n }\n sealed = true;\n if (thenable !== value) {\n resolve(promise, value);\n } else {\n fulfill(promise, value);\n }\n }, function (reason) {\n if (sealed) {\n return;\n }\n sealed = true;\n\n reject(promise, reason);\n }, 'Settle: ' + (promise._label || ' unknown promise'));\n\n if (!sealed && error) {\n sealed = true;\n reject(promise, error);\n }\n }, promise);\n}\n\nfunction handleOwnThenable(promise, thenable) {\n if (thenable._state === FULFILLED) {\n fulfill(promise, thenable._result);\n } else if (thenable._state === REJECTED) {\n reject(promise, thenable._result);\n } else {\n subscribe(thenable, undefined, function (value) {\n return resolve(promise, value);\n }, function (reason) {\n return reject(promise, reason);\n });\n }\n}\n\nfunction handleMaybeThenable(promise, maybeThenable, then$$1) {\n if (maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1) {\n handleOwnThenable(promise, maybeThenable);\n } else {\n if (then$$1 === TRY_CATCH_ERROR) {\n reject(promise, TRY_CATCH_ERROR.error);\n TRY_CATCH_ERROR.error = null;\n } else if (then$$1 === undefined) {\n fulfill(promise, maybeThenable);\n } else if (isFunction(then$$1)) {\n handleForeignThenable(promise, maybeThenable, then$$1);\n } else {\n fulfill(promise, maybeThenable);\n }\n }\n}\n\nfunction resolve(promise, value) {\n if (promise === value) {\n reject(promise, selfFulfillment());\n } else if (objectOrFunction(value)) {\n handleMaybeThenable(promise, value, getThen(value));\n } else {\n fulfill(promise, value);\n }\n}\n\nfunction publishRejection(promise) {\n if (promise._onerror) {\n promise._onerror(promise._result);\n }\n\n publish(promise);\n}\n\nfunction fulfill(promise, value) {\n if (promise._state !== PENDING) {\n return;\n }\n\n promise._result = value;\n promise._state = FULFILLED;\n\n if (promise._subscribers.length !== 0) {\n asap(publish, promise);\n }\n}\n\nfunction reject(promise, reason) {\n if (promise._state !== PENDING) {\n return;\n }\n promise._state = REJECTED;\n promise._result = reason;\n\n asap(publishRejection, promise);\n}\n\nfunction subscribe(parent, child, onFulfillment, onRejection) {\n var _subscribers = parent._subscribers;\n var length = _subscribers.length;\n\n\n parent._onerror = null;\n\n _subscribers[length] = child;\n _subscribers[length + FULFILLED] = onFulfillment;\n _subscribers[length + REJECTED] = onRejection;\n\n if (length === 0 && parent._state) {\n asap(publish, parent);\n }\n}\n\nfunction publish(promise) {\n var subscribers = promise._subscribers;\n var settled = promise._state;\n\n if (subscribers.length === 0) {\n return;\n }\n\n var child = void 0,\n callback = void 0,\n detail = promise._result;\n\n for (var i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n\n if (child) {\n invokeCallback(settled, child, callback, detail);\n } else {\n callback(detail);\n }\n }\n\n promise._subscribers.length = 0;\n}\n\nfunction tryCatch(callback, detail) {\n try {\n return callback(detail);\n } catch (e) {\n TRY_CATCH_ERROR.error = e;\n return TRY_CATCH_ERROR;\n }\n}\n\nfunction invokeCallback(settled, promise, callback, detail) {\n var hasCallback = isFunction(callback),\n value = void 0,\n error = void 0,\n succeeded = void 0,\n failed = void 0;\n\n if (hasCallback) {\n value = tryCatch(callback, detail);\n\n if (value === TRY_CATCH_ERROR) {\n failed = true;\n error = value.error;\n value.error = null;\n } else {\n succeeded = true;\n }\n\n if (promise === value) {\n reject(promise, cannotReturnOwn());\n return;\n }\n } else {\n value = detail;\n succeeded = true;\n }\n\n if (promise._state !== PENDING) {\n // noop\n } else if (hasCallback && succeeded) {\n resolve(promise, value);\n } else if (failed) {\n reject(promise, error);\n } else if (settled === FULFILLED) {\n fulfill(promise, value);\n } else if (settled === REJECTED) {\n reject(promise, value);\n }\n}\n\nfunction initializePromise(promise, resolver) {\n try {\n resolver(function resolvePromise(value) {\n resolve(promise, value);\n }, function rejectPromise(reason) {\n reject(promise, reason);\n });\n } catch (e) {\n reject(promise, e);\n }\n}\n\nvar id = 0;\nfunction nextId() {\n return id++;\n}\n\nfunction makePromise(promise) {\n promise[PROMISE_ID] = id++;\n promise._state = undefined;\n promise._result = undefined;\n promise._subscribers = [];\n}\n\nfunction validationError() {\n return new Error('Array Methods must be provided an Array');\n}\n\nvar Enumerator = function () {\n function Enumerator(Constructor, input) {\n this._instanceConstructor = Constructor;\n this.promise = new Constructor(noop);\n\n if (!this.promise[PROMISE_ID]) {\n makePromise(this.promise);\n }\n\n if (isArray(input)) {\n this.length = input.length;\n this._remaining = input.length;\n\n this._result = new Array(this.length);\n\n if (this.length === 0) {\n fulfill(this.promise, this._result);\n } else {\n this.length = this.length || 0;\n this._enumerate(input);\n if (this._remaining === 0) {\n fulfill(this.promise, this._result);\n }\n }\n } else {\n reject(this.promise, validationError());\n }\n }\n\n Enumerator.prototype._enumerate = function _enumerate(input) {\n for (var i = 0; this._state === PENDING && i < input.length; i++) {\n this._eachEntry(input[i], i);\n }\n };\n\n Enumerator.prototype._eachEntry = function _eachEntry(entry, i) {\n var c = this._instanceConstructor;\n var resolve$$1 = c.resolve;\n\n\n if (resolve$$1 === resolve$1) {\n var _then = getThen(entry);\n\n if (_then === then && entry._state !== PENDING) {\n this._settledAt(entry._state, i, entry._result);\n } else if (typeof _then !== 'function') {\n this._remaining--;\n this._result[i] = entry;\n } else if (c === Promise$1) {\n var promise = new c(noop);\n handleMaybeThenable(promise, entry, _then);\n this._willSettleAt(promise, i);\n } else {\n this._willSettleAt(new c(function (resolve$$1) {\n return resolve$$1(entry);\n }), i);\n }\n } else {\n this._willSettleAt(resolve$$1(entry), i);\n }\n };\n\n Enumerator.prototype._settledAt = function _settledAt(state, i, value) {\n var promise = this.promise;\n\n\n if (promise._state === PENDING) {\n this._remaining--;\n\n if (state === REJECTED) {\n reject(promise, value);\n } else {\n this._result[i] = value;\n }\n }\n\n if (this._remaining === 0) {\n fulfill(promise, this._result);\n }\n };\n\n Enumerator.prototype._willSettleAt = function _willSettleAt(promise, i) {\n var enumerator = this;\n\n subscribe(promise, undefined, function (value) {\n return enumerator._settledAt(FULFILLED, i, value);\n }, function (reason) {\n return enumerator._settledAt(REJECTED, i, reason);\n });\n };\n\n return Enumerator;\n}();\n\n/**\n `Promise.all` accepts an array of promises, and returns a new promise which\n is fulfilled with an array of fulfillment values for the passed promises, or\n rejected with the reason of the first passed promise to be rejected. It casts all\n elements of the passed iterable to promises as it runs this algorithm.\n\n Example:\n\n ```javascript\n let promise1 = resolve(1);\n let promise2 = resolve(2);\n let promise3 = resolve(3);\n let promises = [ promise1, promise2, promise3 ];\n\n Promise.all(promises).then(function(array){\n // The array here would be [ 1, 2, 3 ];\n });\n ```\n\n If any of the `promises` given to `all` are rejected, the first promise\n that is rejected will be given as an argument to the returned promises's\n rejection handler. For example:\n\n Example:\n\n ```javascript\n let promise1 = resolve(1);\n let promise2 = reject(new Error(\"2\"));\n let promise3 = reject(new Error(\"3\"));\n let promises = [ promise1, promise2, promise3 ];\n\n Promise.all(promises).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(error) {\n // error.message === \"2\"\n });\n ```\n\n @method all\n @static\n @param {Array} entries array of promises\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @return {Promise} promise that is fulfilled when all `promises` have been\n fulfilled, or rejected if any of them become rejected.\n @static\n*/\nfunction all(entries) {\n return new Enumerator(this, entries).promise;\n}\n\n/**\n `Promise.race` returns a new promise which is settled in the same way as the\n first passed promise to settle.\n\n Example:\n\n ```javascript\n let promise1 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 1');\n }, 200);\n });\n\n let promise2 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 2');\n }, 100);\n });\n\n Promise.race([promise1, promise2]).then(function(result){\n // result === 'promise 2' because it was resolved before promise1\n // was resolved.\n });\n ```\n\n `Promise.race` is deterministic in that only the state of the first\n settled promise matters. For example, even if other promises given to the\n `promises` array argument are resolved, but the first settled promise has\n become rejected before the other promises became fulfilled, the returned\n promise will become rejected:\n\n ```javascript\n let promise1 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 1');\n }, 200);\n });\n\n let promise2 = new Promise(function(resolve, reject){\n setTimeout(function(){\n reject(new Error('promise 2'));\n }, 100);\n });\n\n Promise.race([promise1, promise2]).then(function(result){\n // Code here never runs\n }, function(reason){\n // reason.message === 'promise 2' because promise 2 became rejected before\n // promise 1 became fulfilled\n });\n ```\n\n An example real-world use case is implementing timeouts:\n\n ```javascript\n Promise.race([ajax('foo.json'), timeout(5000)])\n ```\n\n @method race\n @static\n @param {Array} promises array of promises to observe\n Useful for tooling.\n @return {Promise} a promise which settles in the same way as the first passed\n promise to settle.\n*/\nfunction race(entries) {\n /*jshint validthis:true */\n var Constructor = this;\n\n if (!isArray(entries)) {\n return new Constructor(function (_, reject) {\n return reject(new TypeError('You must pass an array to race.'));\n });\n } else {\n return new Constructor(function (resolve, reject) {\n var length = entries.length;\n for (var i = 0; i < length; i++) {\n Constructor.resolve(entries[i]).then(resolve, reject);\n }\n });\n }\n}\n\n/**\n `Promise.reject` returns a promise rejected with the passed `reason`.\n It is shorthand for the following:\n\n ```javascript\n let promise = new Promise(function(resolve, reject){\n reject(new Error('WHOOPS'));\n });\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n let promise = Promise.reject(new Error('WHOOPS'));\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n @method reject\n @static\n @param {Any} reason value that the returned promise will be rejected with.\n Useful for tooling.\n @return {Promise} a promise rejected with the given `reason`.\n*/\nfunction reject$1(reason) {\n /*jshint validthis:true */\n var Constructor = this;\n var promise = new Constructor(noop);\n reject(promise, reason);\n return promise;\n}\n\nfunction needsResolver() {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n}\n\nfunction needsNew() {\n throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n}\n\n/**\n Promise objects represent the eventual result of an asynchronous operation. The\n primary way of interacting with a promise is through its `then` method, which\n registers callbacks to receive either a promise's eventual value or the reason\n why the promise cannot be fulfilled.\n\n Terminology\n -----------\n\n - `promise` is an object or function with a `then` method whose behavior conforms to this specification.\n - `thenable` is an object or function that defines a `then` method.\n - `value` is any legal JavaScript value (including undefined, a thenable, or a promise).\n - `exception` is a value that is thrown using the throw statement.\n - `reason` is a value that indicates why a promise was rejected.\n - `settled` the final resting state of a promise, fulfilled or rejected.\n\n A promise can be in one of three states: pending, fulfilled, or rejected.\n\n Promises that are fulfilled have a fulfillment value and are in the fulfilled\n state. Promises that are rejected have a rejection reason and are in the\n rejected state. A fulfillment value is never a thenable.\n\n Promises can also be said to *resolve* a value. If this value is also a\n promise, then the original promise's settled state will match the value's\n settled state. So a promise that *resolves* a promise that rejects will\n itself reject, and a promise that *resolves* a promise that fulfills will\n itself fulfill.\n\n\n Basic Usage:\n ------------\n\n ```js\n let promise = new Promise(function(resolve, reject) {\n // on success\n resolve(value);\n\n // on failure\n reject(reason);\n });\n\n promise.then(function(value) {\n // on fulfillment\n }, function(reason) {\n // on rejection\n });\n ```\n\n Advanced Usage:\n ---------------\n\n Promises shine when abstracting away asynchronous interactions such as\n `XMLHttpRequest`s.\n\n ```js\n function getJSON(url) {\n return new Promise(function(resolve, reject){\n let xhr = new XMLHttpRequest();\n\n xhr.open('GET', url);\n xhr.onreadystatechange = handler;\n xhr.responseType = 'json';\n xhr.setRequestHeader('Accept', 'application/json');\n xhr.send();\n\n function handler() {\n if (this.readyState === this.DONE) {\n if (this.status === 200) {\n resolve(this.response);\n } else {\n reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));\n }\n }\n };\n });\n }\n\n getJSON('/posts.json').then(function(json) {\n // on fulfillment\n }, function(reason) {\n // on rejection\n });\n ```\n\n Unlike callbacks, promises are great composable primitives.\n\n ```js\n Promise.all([\n getJSON('/posts'),\n getJSON('/comments')\n ]).then(function(values){\n values[0] // => postsJSON\n values[1] // => commentsJSON\n\n return values;\n });\n ```\n\n @class Promise\n @param {Function} resolver\n Useful for tooling.\n @constructor\n*/\n\nvar Promise$1 = function () {\n function Promise(resolver) {\n this[PROMISE_ID] = nextId();\n this._result = this._state = undefined;\n this._subscribers = [];\n\n if (noop !== resolver) {\n typeof resolver !== 'function' && needsResolver();\n this instanceof Promise ? initializePromise(this, resolver) : needsNew();\n }\n }\n\n /**\n The primary way of interacting with a promise is through its `then` method,\n which registers callbacks to receive either a promise's eventual value or the\n reason why the promise cannot be fulfilled.\n ```js\n findUser().then(function(user){\n // user is available\n }, function(reason){\n // user is unavailable, and you are given the reason why\n });\n ```\n Chaining\n --------\n The return value of `then` is itself a promise. This second, 'downstream'\n promise is resolved with the return value of the first promise's fulfillment\n or rejection handler, or rejected if the handler throws an exception.\n ```js\n findUser().then(function (user) {\n return user.name;\n }, function (reason) {\n return 'default name';\n }).then(function (userName) {\n // If `findUser` fulfilled, `userName` will be the user's name, otherwise it\n // will be `'default name'`\n });\n findUser().then(function (user) {\n throw new Error('Found user, but still unhappy');\n }, function (reason) {\n throw new Error('`findUser` rejected and we're unhappy');\n }).then(function (value) {\n // never reached\n }, function (reason) {\n // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.\n // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'.\n });\n ```\n If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.\n ```js\n findUser().then(function (user) {\n throw new PedagogicalException('Upstream error');\n }).then(function (value) {\n // never reached\n }).then(function (value) {\n // never reached\n }, function (reason) {\n // The `PedgagocialException` is propagated all the way down to here\n });\n ```\n Assimilation\n ------------\n Sometimes the value you want to propagate to a downstream promise can only be\n retrieved asynchronously. This can be achieved by returning a promise in the\n fulfillment or rejection handler. The downstream promise will then be pending\n until the returned promise is settled. This is called *assimilation*.\n ```js\n findUser().then(function (user) {\n return findCommentsByAuthor(user);\n }).then(function (comments) {\n // The user's comments are now available\n });\n ```\n If the assimliated promise rejects, then the downstream promise will also reject.\n ```js\n findUser().then(function (user) {\n return findCommentsByAuthor(user);\n }).then(function (comments) {\n // If `findCommentsByAuthor` fulfills, we'll have the value here\n }, function (reason) {\n // If `findCommentsByAuthor` rejects, we'll have the reason here\n });\n ```\n Simple Example\n --------------\n Synchronous Example\n ```javascript\n let result;\n try {\n result = findResult();\n // success\n } catch(reason) {\n // failure\n }\n ```\n Errback Example\n ```js\n findResult(function(result, err){\n if (err) {\n // failure\n } else {\n // success\n }\n });\n ```\n Promise Example;\n ```javascript\n findResult().then(function(result){\n // success\n }, function(reason){\n // failure\n });\n ```\n Advanced Example\n --------------\n Synchronous Example\n ```javascript\n let author, books;\n try {\n author = findAuthor();\n books = findBooksByAuthor(author);\n // success\n } catch(reason) {\n // failure\n }\n ```\n Errback Example\n ```js\n function foundBooks(books) {\n }\n function failure(reason) {\n }\n findAuthor(function(author, err){\n if (err) {\n failure(err);\n // failure\n } else {\n try {\n findBoooksByAuthor(author, function(books, err) {\n if (err) {\n failure(err);\n } else {\n try {\n foundBooks(books);\n } catch(reason) {\n failure(reason);\n }\n }\n });\n } catch(error) {\n failure(err);\n }\n // success\n }\n });\n ```\n Promise Example;\n ```javascript\n findAuthor().\n then(findBooksByAuthor).\n then(function(books){\n // found books\n }).catch(function(reason){\n // something went wrong\n });\n ```\n @method then\n @param {Function} onFulfilled\n @param {Function} onRejected\n Useful for tooling.\n @return {Promise}\n */\n\n /**\n `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same\n as the catch block of a try/catch statement.\n ```js\n function findAuthor(){\n throw new Error('couldn't find that author');\n }\n // synchronous\n try {\n findAuthor();\n } catch(reason) {\n // something went wrong\n }\n // async with promises\n findAuthor().catch(function(reason){\n // something went wrong\n });\n ```\n @method catch\n @param {Function} onRejection\n Useful for tooling.\n @return {Promise}\n */\n\n\n Promise.prototype.catch = function _catch(onRejection) {\n return this.then(null, onRejection);\n };\n\n /**\n `finally` will be invoked regardless of the promise's fate just as native\n try/catch/finally behaves\n \n Synchronous example:\n \n ```js\n findAuthor() {\n if (Math.random() > 0.5) {\n throw new Error();\n }\n return new Author();\n }\n \n try {\n return findAuthor(); // succeed or fail\n } catch(error) {\n return findOtherAuther();\n } finally {\n // always runs\n // doesn't affect the return value\n }\n ```\n \n Asynchronous example:\n \n ```js\n findAuthor().catch(function(reason){\n return findOtherAuther();\n }).finally(function(){\n // author was either found, or not\n });\n ```\n \n @method finally\n @param {Function} callback\n @return {Promise}\n */\n\n\n Promise.prototype.finally = function _finally(callback) {\n var promise = this;\n var constructor = promise.constructor;\n\n return promise.then(function (value) {\n return constructor.resolve(callback()).then(function () {\n return value;\n });\n }, function (reason) {\n return constructor.resolve(callback()).then(function () {\n throw reason;\n });\n });\n };\n\n return Promise;\n}();\n\nPromise$1.prototype.then = then;\nPromise$1.all = all;\nPromise$1.race = race;\nPromise$1.resolve = resolve$1;\nPromise$1.reject = reject$1;\nPromise$1._setScheduler = setScheduler;\nPromise$1._setAsap = setAsap;\nPromise$1._asap = asap;\n\n/*global self*/\nfunction polyfill() {\n var local = void 0;\n\n if (typeof global !== 'undefined') {\n local = global;\n } else if (typeof self !== 'undefined') {\n local = self;\n } else {\n try {\n local = Function('return this')();\n } catch (e) {\n throw new Error('polyfill failed because global object is unavailable in this environment');\n }\n }\n\n var P = local.Promise;\n\n if (P) {\n var promiseToString = null;\n try {\n promiseToString = Object.prototype.toString.call(P.resolve());\n } catch (e) {\n // silently ignored\n }\n\n if (promiseToString === '[object Promise]' && !P.cast) {\n return;\n }\n }\n\n local.Promise = Promise$1;\n}\n\n// Strange compat..\nPromise$1.polyfill = polyfill;\nPromise$1.Promise = Promise$1;\n\nreturn Promise$1;\n\n})));\n\n\n\n//# sourceMappingURL=es6-promise.map\n","export var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n\nexport var addEventListener = function addEventListener(node, event, listener) {\n return node.addEventListener ? node.addEventListener(event, listener, false) : node.attachEvent('on' + event, listener);\n};\n\nexport var removeEventListener = function removeEventListener(node, event, listener) {\n return node.removeEventListener ? node.removeEventListener(event, listener, false) : node.detachEvent('on' + event, listener);\n};\n\nexport var getConfirmation = function getConfirmation(message, callback) {\n return callback(window.confirm(message));\n}; // eslint-disable-line no-alert\n\n/**\n * Returns true if the HTML5 history API is supported. Taken from Modernizr.\n *\n * https://github.com/Modernizr/Modernizr/blob/master/LICENSE\n * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js\n * changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586\n */\nexport var supportsHistory = function supportsHistory() {\n var ua = window.navigator.userAgent;\n\n if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;\n\n return window.history && 'pushState' in window.history;\n};\n\n/**\n * Returns true if browser fires popstate on hash change.\n * IE10 and IE11 do not.\n */\nexport var supportsPopStateOnHashChange = function supportsPopStateOnHashChange() {\n return window.navigator.userAgent.indexOf('Trident') === -1;\n};\n\n/**\n * Returns false if using go(n) with hash history causes a full page reload.\n */\nexport var supportsGoWithoutReloadUsingHash = function supportsGoWithoutReloadUsingHash() {\n return window.navigator.userAgent.indexOf('Firefox') === -1;\n};\n\n/**\n * Returns true if a given popstate event is an extraneous WebKit event.\n * Accounts for the fact that Chrome on iOS fires real popstate events\n * containing undefined state when pressing the back button.\n */\nexport var isExtraneousPopstateEvent = function isExtraneousPopstateEvent(event) {\n return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;\n};","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nimport resolvePathname from 'resolve-pathname';\nimport valueEqual from 'value-equal';\nimport { parsePath } from './PathUtils';\n\nexport var createLocation = function createLocation(path, state, key, currentLocation) {\n var location = void 0;\n if (typeof path === 'string') {\n // Two-arg form: push(path, state)\n location = parsePath(path);\n location.state = state;\n } else {\n // One-arg form: push(location)\n location = _extends({}, path);\n\n if (location.pathname === undefined) location.pathname = '';\n\n if (location.search) {\n if (location.search.charAt(0) !== '?') location.search = '?' + location.search;\n } else {\n location.search = '';\n }\n\n if (location.hash) {\n if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash;\n } else {\n location.hash = '';\n }\n\n if (state !== undefined && location.state === undefined) location.state = state;\n }\n\n try {\n location.pathname = decodeURI(location.pathname);\n } catch (e) {\n if (e instanceof URIError) {\n throw new URIError('Pathname \"' + location.pathname + '\" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');\n } else {\n throw e;\n }\n }\n\n if (key) location.key = key;\n\n if (currentLocation) {\n // Resolve incomplete/relative pathname relative to current location.\n if (!location.pathname) {\n location.pathname = currentLocation.pathname;\n } else if (location.pathname.charAt(0) !== '/') {\n location.pathname = resolvePathname(location.pathname, currentLocation.pathname);\n }\n } else {\n // When there is no prior location and pathname is empty, set it to /\n if (!location.pathname) {\n location.pathname = '/';\n }\n }\n\n return location;\n};\n\nexport var locationsAreEqual = function locationsAreEqual(a, b) {\n return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && a.key === b.key && valueEqual(a.state, b.state);\n};","export var addLeadingSlash = function addLeadingSlash(path) {\n return path.charAt(0) === '/' ? path : '/' + path;\n};\n\nexport var stripLeadingSlash = function stripLeadingSlash(path) {\n return path.charAt(0) === '/' ? path.substr(1) : path;\n};\n\nexport var hasBasename = function hasBasename(path, prefix) {\n return new RegExp('^' + prefix + '(\\\\/|\\\\?|#|$)', 'i').test(path);\n};\n\nexport var stripBasename = function stripBasename(path, prefix) {\n return hasBasename(path, prefix) ? path.substr(prefix.length) : path;\n};\n\nexport var stripTrailingSlash = function stripTrailingSlash(path) {\n return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;\n};\n\nexport var parsePath = function parsePath(path) {\n var pathname = path || '/';\n var search = '';\n var hash = '';\n\n var hashIndex = pathname.indexOf('#');\n if (hashIndex !== -1) {\n hash = pathname.substr(hashIndex);\n pathname = pathname.substr(0, hashIndex);\n }\n\n var searchIndex = pathname.indexOf('?');\n if (searchIndex !== -1) {\n search = pathname.substr(searchIndex);\n pathname = pathname.substr(0, searchIndex);\n }\n\n return {\n pathname: pathname,\n search: search === '?' ? '' : search,\n hash: hash === '#' ? '' : hash\n };\n};\n\nexport var createPath = function createPath(location) {\n var pathname = location.pathname,\n search = location.search,\n hash = location.hash;\n\n\n var path = pathname || '/';\n\n if (search && search !== '?') path += search.charAt(0) === '?' ? search : '?' + search;\n\n if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : '#' + hash;\n\n return path;\n};","var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nimport warning from 'warning';\nimport invariant from 'invariant';\nimport { createLocation } from './LocationUtils';\nimport { addLeadingSlash, stripTrailingSlash, hasBasename, stripBasename, createPath } from './PathUtils';\nimport createTransitionManager from './createTransitionManager';\nimport { canUseDOM, addEventListener, removeEventListener, getConfirmation, supportsHistory, supportsPopStateOnHashChange, isExtraneousPopstateEvent } from './DOMUtils';\n\nvar PopStateEvent = 'popstate';\nvar HashChangeEvent = 'hashchange';\n\nvar getHistoryState = function getHistoryState() {\n try {\n return window.history.state || {};\n } catch (e) {\n // IE 11 sometimes throws when accessing window.history.state\n // See https://github.com/ReactTraining/history/pull/289\n return {};\n }\n};\n\n/**\n * Creates a history object that uses the HTML5 history API including\n * pushState, replaceState, and the popstate event.\n */\nvar createBrowserHistory = function createBrowserHistory() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n invariant(canUseDOM, 'Browser history needs a DOM');\n\n var globalHistory = window.history;\n var canUseHistory = supportsHistory();\n var needsHashChangeListener = !supportsPopStateOnHashChange();\n\n var _props$forceRefresh = props.forceRefresh,\n forceRefresh = _props$forceRefresh === undefined ? false : _props$forceRefresh,\n _props$getUserConfirm = props.getUserConfirmation,\n getUserConfirmation = _props$getUserConfirm === undefined ? getConfirmation : _props$getUserConfirm,\n _props$keyLength = props.keyLength,\n keyLength = _props$keyLength === undefined ? 6 : _props$keyLength;\n\n var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';\n\n var getDOMLocation = function getDOMLocation(historyState) {\n var _ref = historyState || {},\n key = _ref.key,\n state = _ref.state;\n\n var _window$location = window.location,\n pathname = _window$location.pathname,\n search = _window$location.search,\n hash = _window$location.hash;\n\n\n var path = pathname + search + hash;\n\n warning(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path \"' + path + '\" to begin with \"' + basename + '\".');\n\n if (basename) path = stripBasename(path, basename);\n\n return createLocation(path, state, key);\n };\n\n var createKey = function createKey() {\n return Math.random().toString(36).substr(2, keyLength);\n };\n\n var transitionManager = createTransitionManager();\n\n var setState = function setState(nextState) {\n _extends(history, nextState);\n\n history.length = globalHistory.length;\n\n transitionManager.notifyListeners(history.location, history.action);\n };\n\n var handlePopState = function handlePopState(event) {\n // Ignore extraneous popstate events in WebKit.\n if (isExtraneousPopstateEvent(event)) return;\n\n handlePop(getDOMLocation(event.state));\n };\n\n var handleHashChange = function handleHashChange() {\n handlePop(getDOMLocation(getHistoryState()));\n };\n\n var forceNextPop = false;\n\n var handlePop = function handlePop(location) {\n if (forceNextPop) {\n forceNextPop = false;\n setState();\n } else {\n var action = 'POP';\n\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (ok) {\n setState({ action: action, location: location });\n } else {\n revertPop(location);\n }\n });\n }\n };\n\n var revertPop = function revertPop(fromLocation) {\n var toLocation = history.location;\n\n // TODO: We could probably make this more reliable by\n // keeping a list of keys we've seen in sessionStorage.\n // Instead, we just default to 0 for keys we don't know.\n\n var toIndex = allKeys.indexOf(toLocation.key);\n\n if (toIndex === -1) toIndex = 0;\n\n var fromIndex = allKeys.indexOf(fromLocation.key);\n\n if (fromIndex === -1) fromIndex = 0;\n\n var delta = toIndex - fromIndex;\n\n if (delta) {\n forceNextPop = true;\n go(delta);\n }\n };\n\n var initialLocation = getDOMLocation(getHistoryState());\n var allKeys = [initialLocation.key];\n\n // Public interface\n\n var createHref = function createHref(location) {\n return basename + createPath(location);\n };\n\n var push = function push(path, state) {\n warning(!((typeof path === 'undefined' ? 'undefined' : _typeof(path)) === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored');\n\n var action = 'PUSH';\n var location = createLocation(path, state, createKey(), history.location);\n\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n\n var href = createHref(location);\n var key = location.key,\n state = location.state;\n\n\n if (canUseHistory) {\n globalHistory.pushState({ key: key, state: state }, null, href);\n\n if (forceRefresh) {\n window.location.href = href;\n } else {\n var prevIndex = allKeys.indexOf(history.location.key);\n var nextKeys = allKeys.slice(0, prevIndex === -1 ? 0 : prevIndex + 1);\n\n nextKeys.push(location.key);\n allKeys = nextKeys;\n\n setState({ action: action, location: location });\n }\n } else {\n warning(state === undefined, 'Browser history cannot push state in browsers that do not support HTML5 history');\n\n window.location.href = href;\n }\n });\n };\n\n var replace = function replace(path, state) {\n warning(!((typeof path === 'undefined' ? 'undefined' : _typeof(path)) === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored');\n\n var action = 'REPLACE';\n var location = createLocation(path, state, createKey(), history.location);\n\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n\n var href = createHref(location);\n var key = location.key,\n state = location.state;\n\n\n if (canUseHistory) {\n globalHistory.replaceState({ key: key, state: state }, null, href);\n\n if (forceRefresh) {\n window.location.replace(href);\n } else {\n var prevIndex = allKeys.indexOf(history.location.key);\n\n if (prevIndex !== -1) allKeys[prevIndex] = location.key;\n\n setState({ action: action, location: location });\n }\n } else {\n warning(state === undefined, 'Browser history cannot replace state in browsers that do not support HTML5 history');\n\n window.location.replace(href);\n }\n });\n };\n\n var go = function go(n) {\n globalHistory.go(n);\n };\n\n var goBack = function goBack() {\n return go(-1);\n };\n\n var goForward = function goForward() {\n return go(1);\n };\n\n var listenerCount = 0;\n\n var checkDOMListeners = function checkDOMListeners(delta) {\n listenerCount += delta;\n\n if (listenerCount === 1) {\n addEventListener(window, PopStateEvent, handlePopState);\n\n if (needsHashChangeListener) addEventListener(window, HashChangeEvent, handleHashChange);\n } else if (listenerCount === 0) {\n removeEventListener(window, PopStateEvent, handlePopState);\n\n if (needsHashChangeListener) removeEventListener(window, HashChangeEvent, handleHashChange);\n }\n };\n\n var isBlocked = false;\n\n var block = function block() {\n var prompt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n var unblock = transitionManager.setPrompt(prompt);\n\n if (!isBlocked) {\n checkDOMListeners(1);\n isBlocked = true;\n }\n\n return function () {\n if (isBlocked) {\n isBlocked = false;\n checkDOMListeners(-1);\n }\n\n return unblock();\n };\n };\n\n var listen = function listen(listener) {\n var unlisten = transitionManager.appendListener(listener);\n checkDOMListeners(1);\n\n return function () {\n checkDOMListeners(-1);\n unlisten();\n };\n };\n\n var history = {\n length: globalHistory.length,\n action: 'POP',\n location: initialLocation,\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n goBack: goBack,\n goForward: goForward,\n block: block,\n listen: listen\n };\n\n return history;\n};\n\nexport default createBrowserHistory;","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nimport warning from 'warning';\nimport invariant from 'invariant';\nimport { createLocation, locationsAreEqual } from './LocationUtils';\nimport { addLeadingSlash, stripLeadingSlash, stripTrailingSlash, hasBasename, stripBasename, createPath } from './PathUtils';\nimport createTransitionManager from './createTransitionManager';\nimport { canUseDOM, addEventListener, removeEventListener, getConfirmation, supportsGoWithoutReloadUsingHash } from './DOMUtils';\n\nvar HashChangeEvent = 'hashchange';\n\nvar HashPathCoders = {\n hashbang: {\n encodePath: function encodePath(path) {\n return path.charAt(0) === '!' ? path : '!/' + stripLeadingSlash(path);\n },\n decodePath: function decodePath(path) {\n return path.charAt(0) === '!' ? path.substr(1) : path;\n }\n },\n noslash: {\n encodePath: stripLeadingSlash,\n decodePath: addLeadingSlash\n },\n slash: {\n encodePath: addLeadingSlash,\n decodePath: addLeadingSlash\n }\n};\n\nvar getHashPath = function getHashPath() {\n // We can't use window.location.hash here because it's not\n // consistent across browsers - Firefox will pre-decode it!\n var href = window.location.href;\n var hashIndex = href.indexOf('#');\n return hashIndex === -1 ? '' : href.substring(hashIndex + 1);\n};\n\nvar pushHashPath = function pushHashPath(path) {\n return window.location.hash = path;\n};\n\nvar replaceHashPath = function replaceHashPath(path) {\n var hashIndex = window.location.href.indexOf('#');\n\n window.location.replace(window.location.href.slice(0, hashIndex >= 0 ? hashIndex : 0) + '#' + path);\n};\n\nvar createHashHistory = function createHashHistory() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n invariant(canUseDOM, 'Hash history needs a DOM');\n\n var globalHistory = window.history;\n var canGoWithoutReload = supportsGoWithoutReloadUsingHash();\n\n var _props$getUserConfirm = props.getUserConfirmation,\n getUserConfirmation = _props$getUserConfirm === undefined ? getConfirmation : _props$getUserConfirm,\n _props$hashType = props.hashType,\n hashType = _props$hashType === undefined ? 'slash' : _props$hashType;\n\n var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';\n\n var _HashPathCoders$hashT = HashPathCoders[hashType],\n encodePath = _HashPathCoders$hashT.encodePath,\n decodePath = _HashPathCoders$hashT.decodePath;\n\n\n var getDOMLocation = function getDOMLocation() {\n var path = decodePath(getHashPath());\n\n warning(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path \"' + path + '\" to begin with \"' + basename + '\".');\n\n if (basename) path = stripBasename(path, basename);\n\n return createLocation(path);\n };\n\n var transitionManager = createTransitionManager();\n\n var setState = function setState(nextState) {\n _extends(history, nextState);\n\n history.length = globalHistory.length;\n\n transitionManager.notifyListeners(history.location, history.action);\n };\n\n var forceNextPop = false;\n var ignorePath = null;\n\n var handleHashChange = function handleHashChange() {\n var path = getHashPath();\n var encodedPath = encodePath(path);\n\n if (path !== encodedPath) {\n // Ensure we always have a properly-encoded hash.\n replaceHashPath(encodedPath);\n } else {\n var location = getDOMLocation();\n var prevLocation = history.location;\n\n if (!forceNextPop && locationsAreEqual(prevLocation, location)) return; // A hashchange doesn't always == location change.\n\n if (ignorePath === createPath(location)) return; // Ignore this change; we already setState in push/replace.\n\n ignorePath = null;\n\n handlePop(location);\n }\n };\n\n var handlePop = function handlePop(location) {\n if (forceNextPop) {\n forceNextPop = false;\n setState();\n } else {\n var action = 'POP';\n\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (ok) {\n setState({ action: action, location: location });\n } else {\n revertPop(location);\n }\n });\n }\n };\n\n var revertPop = function revertPop(fromLocation) {\n var toLocation = history.location;\n\n // TODO: We could probably make this more reliable by\n // keeping a list of paths we've seen in sessionStorage.\n // Instead, we just default to 0 for paths we don't know.\n\n var toIndex = allPaths.lastIndexOf(createPath(toLocation));\n\n if (toIndex === -1) toIndex = 0;\n\n var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));\n\n if (fromIndex === -1) fromIndex = 0;\n\n var delta = toIndex - fromIndex;\n\n if (delta) {\n forceNextPop = true;\n go(delta);\n }\n };\n\n // Ensure the hash is encoded properly before doing anything else.\n var path = getHashPath();\n var encodedPath = encodePath(path);\n\n if (path !== encodedPath) replaceHashPath(encodedPath);\n\n var initialLocation = getDOMLocation();\n var allPaths = [createPath(initialLocation)];\n\n // Public interface\n\n var createHref = function createHref(location) {\n return '#' + encodePath(basename + createPath(location));\n };\n\n var push = function push(path, state) {\n warning(state === undefined, 'Hash history cannot push state; it is ignored');\n\n var action = 'PUSH';\n var location = createLocation(path, undefined, undefined, history.location);\n\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n\n var path = createPath(location);\n var encodedPath = encodePath(basename + path);\n var hashChanged = getHashPath() !== encodedPath;\n\n if (hashChanged) {\n // We cannot tell if a hashchange was caused by a PUSH, so we'd\n // rather setState here and ignore the hashchange. The caveat here\n // is that other hash histories in the page will consider it a POP.\n ignorePath = path;\n pushHashPath(encodedPath);\n\n var prevIndex = allPaths.lastIndexOf(createPath(history.location));\n var nextPaths = allPaths.slice(0, prevIndex === -1 ? 0 : prevIndex + 1);\n\n nextPaths.push(path);\n allPaths = nextPaths;\n\n setState({ action: action, location: location });\n } else {\n warning(false, 'Hash history cannot PUSH the same path; a new entry will not be added to the history stack');\n\n setState();\n }\n });\n };\n\n var replace = function replace(path, state) {\n warning(state === undefined, 'Hash history cannot replace state; it is ignored');\n\n var action = 'REPLACE';\n var location = createLocation(path, undefined, undefined, history.location);\n\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n\n var path = createPath(location);\n var encodedPath = encodePath(basename + path);\n var hashChanged = getHashPath() !== encodedPath;\n\n if (hashChanged) {\n // We cannot tell if a hashchange was caused by a REPLACE, so we'd\n // rather setState here and ignore the hashchange. The caveat here\n // is that other hash histories in the page will consider it a POP.\n ignorePath = path;\n replaceHashPath(encodedPath);\n }\n\n var prevIndex = allPaths.indexOf(createPath(history.location));\n\n if (prevIndex !== -1) allPaths[prevIndex] = path;\n\n setState({ action: action, location: location });\n });\n };\n\n var go = function go(n) {\n warning(canGoWithoutReload, 'Hash history go(n) causes a full page reload in this browser');\n\n globalHistory.go(n);\n };\n\n var goBack = function goBack() {\n return go(-1);\n };\n\n var goForward = function goForward() {\n return go(1);\n };\n\n var listenerCount = 0;\n\n var checkDOMListeners = function checkDOMListeners(delta) {\n listenerCount += delta;\n\n if (listenerCount === 1) {\n addEventListener(window, HashChangeEvent, handleHashChange);\n } else if (listenerCount === 0) {\n removeEventListener(window, HashChangeEvent, handleHashChange);\n }\n };\n\n var isBlocked = false;\n\n var block = function block() {\n var prompt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n var unblock = transitionManager.setPrompt(prompt);\n\n if (!isBlocked) {\n checkDOMListeners(1);\n isBlocked = true;\n }\n\n return function () {\n if (isBlocked) {\n isBlocked = false;\n checkDOMListeners(-1);\n }\n\n return unblock();\n };\n };\n\n var listen = function listen(listener) {\n var unlisten = transitionManager.appendListener(listener);\n checkDOMListeners(1);\n\n return function () {\n checkDOMListeners(-1);\n unlisten();\n };\n };\n\n var history = {\n length: globalHistory.length,\n action: 'POP',\n location: initialLocation,\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n goBack: goBack,\n goForward: goForward,\n block: block,\n listen: listen\n };\n\n return history;\n};\n\nexport default createHashHistory;","var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nimport warning from 'warning';\nimport { createPath } from './PathUtils';\nimport { createLocation } from './LocationUtils';\nimport createTransitionManager from './createTransitionManager';\n\nvar clamp = function clamp(n, lowerBound, upperBound) {\n return Math.min(Math.max(n, lowerBound), upperBound);\n};\n\n/**\n * Creates a history object that stores locations in memory.\n */\nvar createMemoryHistory = function createMemoryHistory() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var getUserConfirmation = props.getUserConfirmation,\n _props$initialEntries = props.initialEntries,\n initialEntries = _props$initialEntries === undefined ? ['/'] : _props$initialEntries,\n _props$initialIndex = props.initialIndex,\n initialIndex = _props$initialIndex === undefined ? 0 : _props$initialIndex,\n _props$keyLength = props.keyLength,\n keyLength = _props$keyLength === undefined ? 6 : _props$keyLength;\n\n\n var transitionManager = createTransitionManager();\n\n var setState = function setState(nextState) {\n _extends(history, nextState);\n\n history.length = history.entries.length;\n\n transitionManager.notifyListeners(history.location, history.action);\n };\n\n var createKey = function createKey() {\n return Math.random().toString(36).substr(2, keyLength);\n };\n\n var index = clamp(initialIndex, 0, initialEntries.length - 1);\n var entries = initialEntries.map(function (entry) {\n return typeof entry === 'string' ? createLocation(entry, undefined, createKey()) : createLocation(entry, undefined, entry.key || createKey());\n });\n\n // Public interface\n\n var createHref = createPath;\n\n var push = function push(path, state) {\n warning(!((typeof path === 'undefined' ? 'undefined' : _typeof(path)) === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored');\n\n var action = 'PUSH';\n var location = createLocation(path, state, createKey(), history.location);\n\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n\n var prevIndex = history.index;\n var nextIndex = prevIndex + 1;\n\n var nextEntries = history.entries.slice(0);\n if (nextEntries.length > nextIndex) {\n nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);\n } else {\n nextEntries.push(location);\n }\n\n setState({\n action: action,\n location: location,\n index: nextIndex,\n entries: nextEntries\n });\n });\n };\n\n var replace = function replace(path, state) {\n warning(!((typeof path === 'undefined' ? 'undefined' : _typeof(path)) === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored');\n\n var action = 'REPLACE';\n var location = createLocation(path, state, createKey(), history.location);\n\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n\n history.entries[history.index] = location;\n\n setState({ action: action, location: location });\n });\n };\n\n var go = function go(n) {\n var nextIndex = clamp(history.index + n, 0, history.entries.length - 1);\n\n var action = 'POP';\n var location = history.entries[nextIndex];\n\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (ok) {\n setState({\n action: action,\n location: location,\n index: nextIndex\n });\n } else {\n // Mimic the behavior of DOM histories by\n // causing a render after a cancelled POP.\n setState();\n }\n });\n };\n\n var goBack = function goBack() {\n return go(-1);\n };\n\n var goForward = function goForward() {\n return go(1);\n };\n\n var canGo = function canGo(n) {\n var nextIndex = history.index + n;\n return nextIndex >= 0 && nextIndex < history.entries.length;\n };\n\n var block = function block() {\n var prompt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return transitionManager.setPrompt(prompt);\n };\n\n var listen = function listen(listener) {\n return transitionManager.appendListener(listener);\n };\n\n var history = {\n length: entries.length,\n action: 'POP',\n location: entries[index],\n index: index,\n entries: entries,\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n goBack: goBack,\n goForward: goForward,\n canGo: canGo,\n block: block,\n listen: listen\n };\n\n return history;\n};\n\nexport default createMemoryHistory;","import warning from 'warning';\n\nvar createTransitionManager = function createTransitionManager() {\n var prompt = null;\n\n var setPrompt = function setPrompt(nextPrompt) {\n warning(prompt == null, 'A history supports only one prompt at a time');\n\n prompt = nextPrompt;\n\n return function () {\n if (prompt === nextPrompt) prompt = null;\n };\n };\n\n var confirmTransitionTo = function confirmTransitionTo(location, action, getUserConfirmation, callback) {\n // TODO: If another transition starts while we're still confirming\n // the previous one, we may end up in a weird state. Figure out the\n // best way to handle this.\n if (prompt != null) {\n var result = typeof prompt === 'function' ? prompt(location, action) : prompt;\n\n if (typeof result === 'string') {\n if (typeof getUserConfirmation === 'function') {\n getUserConfirmation(result, callback);\n } else {\n warning(false, 'A history needs a getUserConfirmation function in order to use a prompt message');\n\n callback(true);\n }\n } else {\n // Return false from a transition hook to cancel the transition.\n callback(result !== false);\n }\n } else {\n callback(true);\n }\n };\n\n var listeners = [];\n\n var appendListener = function appendListener(fn) {\n var isActive = true;\n\n var listener = function listener() {\n if (isActive) fn.apply(undefined, arguments);\n };\n\n listeners.push(listener);\n\n return function () {\n isActive = false;\n listeners = listeners.filter(function (item) {\n return item !== listener;\n });\n };\n };\n\n var notifyListeners = function notifyListeners() {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n listeners.forEach(function (listener) {\n return listener.apply(undefined, args);\n });\n };\n\n return {\n setPrompt: setPrompt,\n confirmTransitionTo: confirmTransitionTo,\n appendListener: appendListener,\n notifyListeners: notifyListeners\n };\n};\n\nexport default createTransitionManager;","import _createBrowserHistory from './createBrowserHistory';\nexport { _createBrowserHistory as createBrowserHistory };\nimport _createHashHistory from './createHashHistory';\nexport { _createHashHistory as createHashHistory };\nimport _createMemoryHistory from './createMemoryHistory';\nexport { _createMemoryHistory as createMemoryHistory };\n\nexport { createLocation, locationsAreEqual } from './LocationUtils';\nexport { parsePath, createPath } from './PathUtils';","'use strict';\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\n\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = getPrototypeOf && getPrototypeOf(Object);\n\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components\n\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n try { // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n\n return targetComponent;\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar invariant = function(condition, format, a, b, c, d, e, f) {\n if (process.env.NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() { return args[argIndex++]; })\n );\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\n\nmodule.exports = invariant;\n","module.exports = Array.isArray || function (arr) {\n return Object.prototype.toString.call(arr) == '[object Array]';\n};\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nexport default Symbol;\n","import Symbol from './_Symbol.js';\nimport getRawTag from './_getRawTag.js';\nimport objectToString from './_objectToString.js';\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nexport default baseGetTag;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nexport default freeGlobal;\n","import overArg from './_overArg.js';\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nexport default getPrototype;\n","import Symbol from './_Symbol.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nexport default getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nexport default objectToString;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nexport default overArg;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nexport default root;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nexport default isObjectLike;\n","import baseGetTag from './_baseGetTag.js';\nimport getPrototype from './_getPrototype.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nexport default isPlainObject;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n","var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n","var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","/**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n}\n\nmodule.exports = arrayAggregator;\n","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nmodule.exports = arrayEach;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n}\n\nmodule.exports = arrayIncludes;\n","/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arrayIncludesWith;\n","var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nmodule.exports = arrayPush;\n","/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arraySome;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignValue;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var baseEach = require('./_baseEach');\n\n/**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n}\n\nmodule.exports = baseAggregator;\n","var copyObject = require('./_copyObject'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n\nmodule.exports = baseAssign;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n}\n\nmodule.exports = baseAssignIn;\n","var defineProperty = require('./_defineProperty');\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nmodule.exports = baseAssignValue;\n","var Stack = require('./_Stack'),\n arrayEach = require('./_arrayEach'),\n assignValue = require('./_assignValue'),\n baseAssign = require('./_baseAssign'),\n baseAssignIn = require('./_baseAssignIn'),\n cloneBuffer = require('./_cloneBuffer'),\n copyArray = require('./_copyArray'),\n copySymbols = require('./_copySymbols'),\n copySymbolsIn = require('./_copySymbolsIn'),\n getAllKeys = require('./_getAllKeys'),\n getAllKeysIn = require('./_getAllKeysIn'),\n getTag = require('./_getTag'),\n initCloneArray = require('./_initCloneArray'),\n initCloneByTag = require('./_initCloneByTag'),\n initCloneObject = require('./_initCloneObject'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isMap = require('./isMap'),\n isObject = require('./isObject'),\n isSet = require('./isSet'),\n keys = require('./keys');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\n\nmodule.exports = baseClone;\n","var isObject = require('./isObject');\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nmodule.exports = baseCreate;\n","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n","var isSymbol = require('./isSymbol');\n\n/**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\nfunction baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseExtremum;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n","var createBaseFor = require('./_createBaseFor');\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n","var baseFor = require('./_baseFor'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nmodule.exports = baseForOwn;\n","var castPath = require('./_castPath'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n}\n\nmodule.exports = baseGet;\n","var arrayPush = require('./_arrayPush'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nmodule.exports = baseGetAllKeys;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\nfunction baseGt(value, other) {\n return value > other;\n}\n\nmodule.exports = baseGt;\n","/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\n\nmodule.exports = baseHasIn;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIsNaN = require('./_baseIsNaN'),\n strictIndexOf = require('./_strictIndexOf');\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n}\n\nmodule.exports = baseIndexOf;\n","var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n arrayMap = require('./_arrayMap'),\n baseUnary = require('./_baseUnary'),\n cacheHas = require('./_cacheHas');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMin = Math.min;\n\n/**\n * The base implementation of methods like `_.intersection`, without support\n * for iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of shared values.\n */\nfunction baseIntersection(arrays, iteratee, comparator) {\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\n length = arrays[0].length,\n othLength = arrays.length,\n othIndex = othLength,\n caches = Array(othLength),\n maxLength = Infinity,\n result = [];\n\n while (othIndex--) {\n var array = arrays[othIndex];\n if (othIndex && iteratee) {\n array = arrayMap(array, baseUnary(iteratee));\n }\n maxLength = nativeMin(array.length, maxLength);\n caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\n ? new SetCache(othIndex && array)\n : undefined;\n }\n array = arrays[0];\n\n var index = -1,\n seen = caches[0];\n\n outer:\n while (++index < length && result.length < maxLength) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (!(seen\n ? cacheHas(seen, computed)\n : includes(result, computed, comparator)\n )) {\n othIndex = othLength;\n while (--othIndex) {\n var cache = caches[othIndex];\n if (!(cache\n ? cacheHas(cache, computed)\n : includes(arrays[othIndex], computed, comparator))\n ) {\n continue outer;\n }\n }\n if (seen) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n}\n\nmodule.exports = baseIntersection;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","var baseIsEqualDeep = require('./_baseIsEqualDeep'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nmodule.exports = baseIsEqual;\n","var Stack = require('./_Stack'),\n equalArrays = require('./_equalArrays'),\n equalByTag = require('./_equalByTag'),\n equalObjects = require('./_equalObjects'),\n getTag = require('./_getTag'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isTypedArray = require('./isTypedArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nmodule.exports = baseIsEqualDeep;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nmodule.exports = baseIsMap;\n","var Stack = require('./_Stack'),\n baseIsEqual = require('./_baseIsEqual');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n}\n\nmodule.exports = baseIsMatch;\n","/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n return value !== value;\n}\n\nmodule.exports = baseIsNaN;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n}\n\nmodule.exports = baseIsSet;\n","var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","var baseMatches = require('./_baseMatches'),\n baseMatchesProperty = require('./_baseMatchesProperty'),\n identity = require('./identity'),\n isArray = require('./isArray'),\n property = require('./property');\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n}\n\nmodule.exports = baseIteratee;\n","var isPrototype = require('./_isPrototype'),\n nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeys;\n","var isObject = require('./isObject'),\n isPrototype = require('./_isPrototype'),\n nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeysIn;\n","/**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\nfunction baseLt(value, other) {\n return value < other;\n}\n\nmodule.exports = baseLt;\n","var baseEach = require('./_baseEach'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\n\nmodule.exports = baseMap;\n","var baseIsMatch = require('./_baseIsMatch'),\n getMatchData = require('./_getMatchData'),\n matchesStrictComparable = require('./_matchesStrictComparable');\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n}\n\nmodule.exports = baseMatches;\n","var baseIsEqual = require('./_baseIsEqual'),\n get = require('./get'),\n hasIn = require('./hasIn'),\n isKey = require('./_isKey'),\n isStrictComparable = require('./_isStrictComparable'),\n matchesStrictComparable = require('./_matchesStrictComparable'),\n toKey = require('./_toKey');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\n\nmodule.exports = baseMatchesProperty;\n","var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n baseSortBy = require('./_baseSortBy'),\n baseUnary = require('./_baseUnary'),\n compareMultiple = require('./_compareMultiple'),\n identity = require('./identity');\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n var index = -1;\n iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n}\n\nmodule.exports = baseOrderBy;\n","/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\nmodule.exports = baseProperty;\n","var baseGet = require('./_baseGet');\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n}\n\nmodule.exports = basePropertyDeep;\n","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n","/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\nfunction baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n}\n\nmodule.exports = baseSortBy;\n","/**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\nfunction baseSum(array, iteratee) {\n var result,\n index = -1,\n length = array.length;\n\n while (++index < length) {\n var current = iteratee(array[index]);\n if (current !== undefined) {\n result = result === undefined ? current : (result + current);\n }\n }\n return result;\n}\n\nmodule.exports = baseSum;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n","var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n cacheHas = require('./_cacheHas'),\n createSet = require('./_createSet'),\n setToArray = require('./_setToArray');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\nfunction baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n}\n\nmodule.exports = baseUniq;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n","var isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Casts `value` to an empty array if it's not an array like object.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array|Object} Returns the cast array-like object.\n */\nfunction castArrayLikeObject(value) {\n return isArrayLikeObject(value) ? value : [];\n}\n\nmodule.exports = castArrayLikeObject;\n","var identity = require('./identity');\n\n/**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\nfunction castFunction(value) {\n return typeof value == 'function' ? value : identity;\n}\n\nmodule.exports = castFunction;\n","var isArray = require('./isArray'),\n isKey = require('./_isKey'),\n stringToPath = require('./_stringToPath'),\n toString = require('./toString');\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n","var Uint8Array = require('./_Uint8Array');\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nmodule.exports = cloneArrayBuffer;\n","var root = require('./_root');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\nmodule.exports = cloneBuffer;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nmodule.exports = cloneDataView;\n","/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n\nmodule.exports = cloneRegExp;\n","var Symbol = require('./_Symbol');\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nmodule.exports = cloneSymbol;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nmodule.exports = cloneTypedArray;\n","var isSymbol = require('./isSymbol');\n\n/**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\nfunction compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n}\n\nmodule.exports = compareAscending;\n","var compareAscending = require('./_compareAscending');\n\n/**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\nfunction compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n}\n\nmodule.exports = compareMultiple;\n","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nmodule.exports = copyArray;\n","var assignValue = require('./_assignValue'),\n baseAssignValue = require('./_baseAssignValue');\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nmodule.exports = copyObject;\n","var copyObject = require('./_copyObject'),\n getSymbols = require('./_getSymbols');\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n\nmodule.exports = copySymbols;\n","var copyObject = require('./_copyObject'),\n getSymbolsIn = require('./_getSymbolsIn');\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\n\nmodule.exports = copySymbolsIn;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","var arrayAggregator = require('./_arrayAggregator'),\n baseAggregator = require('./_baseAggregator'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray');\n\n/**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\nfunction createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, baseIteratee(iteratee, 2), accumulator);\n };\n}\n\nmodule.exports = createAggregator;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\nmodule.exports = createBaseFor;\n","var baseIteratee = require('./_baseIteratee'),\n isArrayLike = require('./isArrayLike'),\n keys = require('./keys');\n\n/**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\nfunction createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = baseIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n}\n\nmodule.exports = createFind;\n","var Set = require('./_Set'),\n noop = require('./noop'),\n setToArray = require('./_setToArray');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\nvar createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n};\n\nmodule.exports = createSet;\n","var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n","var SetCache = require('./_SetCache'),\n arraySome = require('./_arraySome'),\n cacheHas = require('./_cacheHas');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalArrays;\n","var Symbol = require('./_Symbol'),\n Uint8Array = require('./_Uint8Array'),\n eq = require('./eq'),\n equalArrays = require('./_equalArrays'),\n mapToArray = require('./_mapToArray'),\n setToArray = require('./_setToArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nmodule.exports = equalByTag;\n","var getAllKeys = require('./_getAllKeys');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalObjects;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbols = require('./_getSymbols'),\n keys = require('./keys');\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nmodule.exports = getAllKeys;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbolsIn = require('./_getSymbolsIn'),\n keysIn = require('./keysIn');\n\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nmodule.exports = getAllKeysIn;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","var isStrictComparable = require('./_isStrictComparable'),\n keys = require('./keys');\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n}\n\nmodule.exports = getMatchData;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","var arrayFilter = require('./_arrayFilter'),\n stubArray = require('./stubArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nmodule.exports = getSymbols;\n","var arrayPush = require('./_arrayPush'),\n getPrototype = require('./_getPrototype'),\n getSymbols = require('./_getSymbols'),\n stubArray = require('./stubArray');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n};\n\nmodule.exports = getSymbolsIn;\n","var DataView = require('./_DataView'),\n Map = require('./_Map'),\n Promise = require('./_Promise'),\n Set = require('./_Set'),\n WeakMap = require('./_WeakMap'),\n baseGetTag = require('./_baseGetTag'),\n toSource = require('./_toSource');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nmodule.exports = getTag;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","var castPath = require('./_castPath'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isIndex = require('./_isIndex'),\n isLength = require('./isLength'),\n toKey = require('./_toKey');\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n}\n\nmodule.exports = hasPath;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n\nmodule.exports = initCloneArray;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer'),\n cloneDataView = require('./_cloneDataView'),\n cloneRegExp = require('./_cloneRegExp'),\n cloneSymbol = require('./_cloneSymbol'),\n cloneTypedArray = require('./_cloneTypedArray');\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n\nmodule.exports = initCloneByTag;\n","var baseCreate = require('./_baseCreate'),\n getPrototype = require('./_getPrototype'),\n isPrototype = require('./_isPrototype');\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\nmodule.exports = initCloneObject;\n","var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","var isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","var isObject = require('./isObject');\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\nmodule.exports = isStrictComparable;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nmodule.exports = mapToArray;\n","/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n}\n\nmodule.exports = matchesStrictComparable;\n","var memoize = require('./memoize');\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n}\n\nmodule.exports = memoizeCapped;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nmodule.exports = setCacheAdd;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n","/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\nmodule.exports = setToArray;\n","var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n","var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nmodule.exports = stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nmodule.exports = stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n","var ListCache = require('./_ListCache'),\n Map = require('./_Map'),\n MapCache = require('./_MapCache');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nmodule.exports = stackSet;\n","/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = strictIndexOf;\n","var memoizeCapped = require('./_memoizeCapped');\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n});\n\nmodule.exports = stringToPath;\n","var isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = cloneDeep;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var createFind = require('./_createFind'),\n findIndex = require('./findIndex');\n\n/**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\nvar find = createFind(findIndex);\n\nmodule.exports = find;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIteratee = require('./_baseIteratee'),\n toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nmodule.exports = findIndex;\n","var createFind = require('./_createFind'),\n findLastIndex = require('./findLastIndex');\n\n/**\n * This method is like `_.find` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=collection.length-1] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * _.findLast([1, 2, 3, 4], function(n) {\n * return n % 2 == 1;\n * });\n * // => 3\n */\nvar findLast = createFind(findLastIndex);\n\nmodule.exports = findLast;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIteratee = require('./_baseIteratee'),\n toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\nfunction findLastIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length - 1;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = fromIndex < 0\n ? nativeMax(length + index, 0)\n : nativeMin(index, length - 1);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index, true);\n}\n\nmodule.exports = findLastIndex;\n","var baseFlatten = require('./_baseFlatten'),\n map = require('./map');\n\n/**\n * Creates a flattened array of values by running each element in `collection`\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n * with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [n, n];\n * }\n *\n * _.flatMap([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\nfunction flatMap(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), 1);\n}\n\nmodule.exports = flatMap;\n","var baseFlatten = require('./_baseFlatten');\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n}\n\nmodule.exports = flatten;\n","var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n","var baseAssignValue = require('./_baseAssignValue'),\n createAggregator = require('./_createAggregator');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\nvar groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n});\n\nmodule.exports = groupBy;\n","var baseHasIn = require('./_baseHasIn'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\n\nmodule.exports = hasIn;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","var arrayMap = require('./_arrayMap'),\n baseIntersection = require('./_baseIntersection'),\n baseRest = require('./_baseRest'),\n castArrayLikeObject = require('./_castArrayLikeObject');\n\n/**\n * Creates an array of unique values that are included in all given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersection([2, 1], [2, 3]);\n * // => [2]\n */\nvar intersection = baseRest(function(arrays) {\n var mapped = arrayMap(arrays, castArrayLikeObject);\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped)\n : [];\n});\n\nmodule.exports = intersection;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n","var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","var baseIsMap = require('./_baseIsMap'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nmodule.exports = isMap;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseIsSet = require('./_baseIsSet'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\nmodule.exports = isSet;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n","var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n isArray = require('./isArray');\n\n/**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\nfunction map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, baseIteratee(iteratee, 3));\n}\n\nmodule.exports = map;\n","var baseExtremum = require('./_baseExtremum'),\n baseGt = require('./_baseGt'),\n identity = require('./identity');\n\n/**\n * Computes the maximum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * _.max([4, 2, 8, 6]);\n * // => 8\n *\n * _.max([]);\n * // => undefined\n */\nfunction max(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseGt)\n : undefined;\n}\n\nmodule.exports = max;\n","var baseExtremum = require('./_baseExtremum'),\n baseGt = require('./_baseGt'),\n baseIteratee = require('./_baseIteratee');\n\n/**\n * This method is like `_.max` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * the value is ranked. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * var objects = [{ 'n': 1 }, { 'n': 2 }];\n *\n * _.maxBy(objects, function(o) { return o.n; });\n * // => { 'n': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.maxBy(objects, 'n');\n * // => { 'n': 2 }\n */\nfunction maxBy(array, iteratee) {\n return (array && array.length)\n ? baseExtremum(array, baseIteratee(iteratee, 2), baseGt)\n : undefined;\n}\n\nmodule.exports = maxBy;\n","var MapCache = require('./_MapCache');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nmodule.exports = memoize;\n","var baseExtremum = require('./_baseExtremum'),\n baseLt = require('./_baseLt'),\n identity = require('./identity');\n\n/**\n * Computes the minimum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * _.min([4, 2, 8, 6]);\n * // => 2\n *\n * _.min([]);\n * // => undefined\n */\nfunction min(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseLt)\n : undefined;\n}\n\nmodule.exports = min;\n","var baseExtremum = require('./_baseExtremum'),\n baseIteratee = require('./_baseIteratee'),\n baseLt = require('./_baseLt');\n\n/**\n * This method is like `_.min` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * the value is ranked. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * var objects = [{ 'n': 1 }, { 'n': 2 }];\n *\n * _.minBy(objects, function(o) { return o.n; });\n * // => { 'n': 1 }\n *\n * // The `_.property` iteratee shorthand.\n * _.minBy(objects, 'n');\n * // => { 'n': 1 }\n */\nfunction minBy(array, iteratee) {\n return (array && array.length)\n ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt)\n : undefined;\n}\n\nmodule.exports = minBy;\n","/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\n\nmodule.exports = noop;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var baseOrderBy = require('./_baseOrderBy'),\n isArray = require('./isArray');\n\n/**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\nfunction orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n}\n\nmodule.exports = orderBy;\n","var baseProperty = require('./_baseProperty'),\n basePropertyDeep = require('./_basePropertyDeep'),\n isKey = require('./_isKey'),\n toKey = require('./_toKey');\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nmodule.exports = property;\n","var baseFlatten = require('./_baseFlatten'),\n baseOrderBy = require('./_baseOrderBy'),\n baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]\n */\nvar sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n});\n\nmodule.exports = sortBy;\n","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nmodule.exports = stubArray;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","var baseSum = require('./_baseSum'),\n identity = require('./identity');\n\n/**\n * Computes the sum of the values in `array`.\n *\n * @static\n * @memberOf _\n * @since 3.4.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {number} Returns the sum.\n * @example\n *\n * _.sum([4, 2, 8, 6]);\n * // => 20\n */\nfunction sum(array) {\n return (array && array.length)\n ? baseSum(array, identity)\n : 0;\n}\n\nmodule.exports = sum;\n","var baseIteratee = require('./_baseIteratee'),\n baseSum = require('./_baseSum');\n\n/**\n * This method is like `_.sum` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the value to be summed.\n * The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the sum.\n * @example\n *\n * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];\n *\n * _.sumBy(objects, function(o) { return o.n; });\n * // => 20\n *\n * // The `_.property` iteratee shorthand.\n * _.sumBy(objects, 'n');\n * // => 20\n */\nfunction sumBy(array, iteratee) {\n return (array && array.length)\n ? baseSum(array, baseIteratee(iteratee, 2))\n : 0;\n}\n\nmodule.exports = sumBy;\n","var baseTimes = require('./_baseTimes'),\n castFunction = require('./_castFunction'),\n toInteger = require('./toInteger');\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used as references for the maximum length and index of an array. */\nvar MAX_ARRAY_LENGTH = 4294967295;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMin = Math.min;\n\n/**\n * Invokes the iteratee `n` times, returning an array of the results of\n * each invocation. The iteratee is invoked with one argument; (index).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.times(3, String);\n * // => ['0', '1', '2']\n *\n * _.times(4, _.constant(0));\n * // => [0, 0, 0, 0]\n */\nfunction times(n, iteratee) {\n n = toInteger(n);\n if (n < 1 || n > MAX_SAFE_INTEGER) {\n return [];\n }\n var index = MAX_ARRAY_LENGTH,\n length = nativeMin(n, MAX_ARRAY_LENGTH);\n\n iteratee = castFunction(iteratee);\n n -= MAX_ARRAY_LENGTH;\n\n var result = baseTimes(length, iteratee);\n while (++index < n) {\n iteratee(index);\n }\n return result;\n}\n\nmodule.exports = times;\n","var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n","var isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n","var baseUniq = require('./_baseUniq');\n\n/**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\nfunction uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n}\n\nmodule.exports = uniq;\n","var baseIteratee = require('./_baseIteratee'),\n baseUniq = require('./_baseUniq');\n\n/**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\nfunction uniqBy(array, iteratee) {\n return (array && array.length) ? baseUniq(array, baseIteratee(iteratee, 2)) : [];\n}\n\nmodule.exports = uniqBy;\n","var moment = module.exports = require(\"./moment-timezone\");\nmoment.tz.load(require('./data/packed/latest.json'));\n","//! moment-timezone.js\n//! version : 0.5.31\n//! Copyright (c) JS Foundation and other contributors\n//! license : MIT\n//! github.com/moment/moment-timezone\n\n(function (root, factory) {\n\t\"use strict\";\n\n\t/*global define*/\n\tif (typeof module === 'object' && module.exports) {\n\t\tmodule.exports = factory(require('moment')); // Node\n\t} else if (typeof define === 'function' && define.amd) {\n\t\tdefine(['moment'], factory); // AMD\n\t} else {\n\t\tfactory(root.moment); // Browser\n\t}\n}(this, function (moment) {\n\t\"use strict\";\n\n\t// Resolves es6 module loading issue\n\tif (moment.version === undefined && moment.default) {\n\t\tmoment = moment.default;\n\t}\n\n\t// Do not load moment-timezone a second time.\n\t// if (moment.tz !== undefined) {\n\t// \tlogError('Moment Timezone ' + moment.tz.version + ' was already loaded ' + (moment.tz.dataVersion ? 'with data from ' : 'without any data') + moment.tz.dataVersion);\n\t// \treturn moment;\n\t// }\n\n\tvar VERSION = \"0.5.31\",\n\t\tzones = {},\n\t\tlinks = {},\n\t\tcountries = {},\n\t\tnames = {},\n\t\tguesses = {},\n\t\tcachedGuess;\n\n\tif (!moment || typeof moment.version !== 'string') {\n\t\tlogError('Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/');\n\t}\n\n\tvar momentVersion = moment.version.split('.'),\n\t\tmajor = +momentVersion[0],\n\t\tminor = +momentVersion[1];\n\n\t// Moment.js version check\n\tif (major < 2 || (major === 2 && minor < 6)) {\n\t\tlogError('Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js ' + moment.version + '. See momentjs.com');\n\t}\n\n\t/************************************\n\t\tUnpacking\n\t************************************/\n\n\tfunction charCodeToInt(charCode) {\n\t\tif (charCode > 96) {\n\t\t\treturn charCode - 87;\n\t\t} else if (charCode > 64) {\n\t\t\treturn charCode - 29;\n\t\t}\n\t\treturn charCode - 48;\n\t}\n\n\tfunction unpackBase60(string) {\n\t\tvar i = 0,\n\t\t\tparts = string.split('.'),\n\t\t\twhole = parts[0],\n\t\t\tfractional = parts[1] || '',\n\t\t\tmultiplier = 1,\n\t\t\tnum,\n\t\t\tout = 0,\n\t\t\tsign = 1;\n\n\t\t// handle negative numbers\n\t\tif (string.charCodeAt(0) === 45) {\n\t\t\ti = 1;\n\t\t\tsign = -1;\n\t\t}\n\n\t\t// handle digits before the decimal\n\t\tfor (i; i < whole.length; i++) {\n\t\t\tnum = charCodeToInt(whole.charCodeAt(i));\n\t\t\tout = 60 * out + num;\n\t\t}\n\n\t\t// handle digits after the decimal\n\t\tfor (i = 0; i < fractional.length; i++) {\n\t\t\tmultiplier = multiplier / 60;\n\t\t\tnum = charCodeToInt(fractional.charCodeAt(i));\n\t\t\tout += num * multiplier;\n\t\t}\n\n\t\treturn out * sign;\n\t}\n\n\tfunction arrayToInt (array) {\n\t\tfor (var i = 0; i < array.length; i++) {\n\t\t\tarray[i] = unpackBase60(array[i]);\n\t\t}\n\t}\n\n\tfunction intToUntil (array, length) {\n\t\tfor (var i = 0; i < length; i++) {\n\t\t\tarray[i] = Math.round((array[i - 1] || 0) + (array[i] * 60000)); // minutes to milliseconds\n\t\t}\n\n\t\tarray[length - 1] = Infinity;\n\t}\n\n\tfunction mapIndices (source, indices) {\n\t\tvar out = [], i;\n\n\t\tfor (i = 0; i < indices.length; i++) {\n\t\t\tout[i] = source[indices[i]];\n\t\t}\n\n\t\treturn out;\n\t}\n\n\tfunction unpack (string) {\n\t\tvar data = string.split('|'),\n\t\t\toffsets = data[2].split(' '),\n\t\t\tindices = data[3].split(''),\n\t\t\tuntils = data[4].split(' ');\n\n\t\tarrayToInt(offsets);\n\t\tarrayToInt(indices);\n\t\tarrayToInt(untils);\n\n\t\tintToUntil(untils, indices.length);\n\n\t\treturn {\n\t\t\tname : data[0],\n\t\t\tabbrs : mapIndices(data[1].split(' '), indices),\n\t\t\toffsets : mapIndices(offsets, indices),\n\t\t\tuntils : untils,\n\t\t\tpopulation : data[5] | 0\n\t\t};\n\t}\n\n\t/************************************\n\t\tZone object\n\t************************************/\n\n\tfunction Zone (packedString) {\n\t\tif (packedString) {\n\t\t\tthis._set(unpack(packedString));\n\t\t}\n\t}\n\n\tZone.prototype = {\n\t\t_set : function (unpacked) {\n\t\t\tthis.name = unpacked.name;\n\t\t\tthis.abbrs = unpacked.abbrs;\n\t\t\tthis.untils = unpacked.untils;\n\t\t\tthis.offsets = unpacked.offsets;\n\t\t\tthis.population = unpacked.population;\n\t\t},\n\n\t\t_index : function (timestamp) {\n\t\t\tvar target = +timestamp,\n\t\t\t\tuntils = this.untils,\n\t\t\t\ti;\n\n\t\t\tfor (i = 0; i < untils.length; i++) {\n\t\t\t\tif (target < untils[i]) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tcountries : function () {\n\t\t\tvar zone_name = this.name;\n\t\t\treturn Object.keys(countries).filter(function (country_code) {\n\t\t\t\treturn countries[country_code].zones.indexOf(zone_name) !== -1;\n\t\t\t});\n\t\t},\n\n\t\tparse : function (timestamp) {\n\t\t\tvar target = +timestamp,\n\t\t\t\toffsets = this.offsets,\n\t\t\t\tuntils = this.untils,\n\t\t\t\tmax = untils.length - 1,\n\t\t\t\toffset, offsetNext, offsetPrev, i;\n\n\t\t\tfor (i = 0; i < max; i++) {\n\t\t\t\toffset = offsets[i];\n\t\t\t\toffsetNext = offsets[i + 1];\n\t\t\t\toffsetPrev = offsets[i ? i - 1 : i];\n\n\t\t\t\tif (offset < offsetNext && tz.moveAmbiguousForward) {\n\t\t\t\t\toffset = offsetNext;\n\t\t\t\t} else if (offset > offsetPrev && tz.moveInvalidForward) {\n\t\t\t\t\toffset = offsetPrev;\n\t\t\t\t}\n\n\t\t\t\tif (target < untils[i] - (offset * 60000)) {\n\t\t\t\t\treturn offsets[i];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn offsets[max];\n\t\t},\n\n\t\tabbr : function (mom) {\n\t\t\treturn this.abbrs[this._index(mom)];\n\t\t},\n\n\t\toffset : function (mom) {\n\t\t\tlogError(\"zone.offset has been deprecated in favor of zone.utcOffset\");\n\t\t\treturn this.offsets[this._index(mom)];\n\t\t},\n\n\t\tutcOffset : function (mom) {\n\t\t\treturn this.offsets[this._index(mom)];\n\t\t}\n\t};\n\n\t/************************************\n\t\tCountry object\n\t************************************/\n\n\tfunction Country (country_name, zone_names) {\n\t\tthis.name = country_name;\n\t\tthis.zones = zone_names;\n\t}\n\n\t/************************************\n\t\tCurrent Timezone\n\t************************************/\n\n\tfunction OffsetAt(at) {\n\t\tvar timeString = at.toTimeString();\n\t\tvar abbr = timeString.match(/\\([a-z ]+\\)/i);\n\t\tif (abbr && abbr[0]) {\n\t\t\t// 17:56:31 GMT-0600 (CST)\n\t\t\t// 17:56:31 GMT-0600 (Central Standard Time)\n\t\t\tabbr = abbr[0].match(/[A-Z]/g);\n\t\t\tabbr = abbr ? abbr.join('') : undefined;\n\t\t} else {\n\t\t\t// 17:56:31 CST\n\t\t\t// 17:56:31 GMT+0800 (å°åŒ—標準時間)\n\t\t\tabbr = timeString.match(/[A-Z]{3,5}/g);\n\t\t\tabbr = abbr ? abbr[0] : undefined;\n\t\t}\n\n\t\tif (abbr === 'GMT') {\n\t\t\tabbr = undefined;\n\t\t}\n\n\t\tthis.at = +at;\n\t\tthis.abbr = abbr;\n\t\tthis.offset = at.getTimezoneOffset();\n\t}\n\n\tfunction ZoneScore(zone) {\n\t\tthis.zone = zone;\n\t\tthis.offsetScore = 0;\n\t\tthis.abbrScore = 0;\n\t}\n\n\tZoneScore.prototype.scoreOffsetAt = function (offsetAt) {\n\t\tthis.offsetScore += Math.abs(this.zone.utcOffset(offsetAt.at) - offsetAt.offset);\n\t\tif (this.zone.abbr(offsetAt.at).replace(/[^A-Z]/g, '') !== offsetAt.abbr) {\n\t\t\tthis.abbrScore++;\n\t\t}\n\t};\n\n\tfunction findChange(low, high) {\n\t\tvar mid, diff;\n\n\t\twhile ((diff = ((high.at - low.at) / 12e4 | 0) * 6e4)) {\n\t\t\tmid = new OffsetAt(new Date(low.at + diff));\n\t\t\tif (mid.offset === low.offset) {\n\t\t\t\tlow = mid;\n\t\t\t} else {\n\t\t\t\thigh = mid;\n\t\t\t}\n\t\t}\n\n\t\treturn low;\n\t}\n\n\tfunction userOffsets() {\n\t\tvar startYear = new Date().getFullYear() - 2,\n\t\t\tlast = new OffsetAt(new Date(startYear, 0, 1)),\n\t\t\toffsets = [last],\n\t\t\tchange, next, i;\n\n\t\tfor (i = 1; i < 48; i++) {\n\t\t\tnext = new OffsetAt(new Date(startYear, i, 1));\n\t\t\tif (next.offset !== last.offset) {\n\t\t\t\tchange = findChange(last, next);\n\t\t\t\toffsets.push(change);\n\t\t\t\toffsets.push(new OffsetAt(new Date(change.at + 6e4)));\n\t\t\t}\n\t\t\tlast = next;\n\t\t}\n\n\t\tfor (i = 0; i < 4; i++) {\n\t\t\toffsets.push(new OffsetAt(new Date(startYear + i, 0, 1)));\n\t\t\toffsets.push(new OffsetAt(new Date(startYear + i, 6, 1)));\n\t\t}\n\n\t\treturn offsets;\n\t}\n\n\tfunction sortZoneScores (a, b) {\n\t\tif (a.offsetScore !== b.offsetScore) {\n\t\t\treturn a.offsetScore - b.offsetScore;\n\t\t}\n\t\tif (a.abbrScore !== b.abbrScore) {\n\t\t\treturn a.abbrScore - b.abbrScore;\n\t\t}\n\t\tif (a.zone.population !== b.zone.population) {\n\t\t\treturn b.zone.population - a.zone.population;\n\t\t}\n\t\treturn b.zone.name.localeCompare(a.zone.name);\n\t}\n\n\tfunction addToGuesses (name, offsets) {\n\t\tvar i, offset;\n\t\tarrayToInt(offsets);\n\t\tfor (i = 0; i < offsets.length; i++) {\n\t\t\toffset = offsets[i];\n\t\t\tguesses[offset] = guesses[offset] || {};\n\t\t\tguesses[offset][name] = true;\n\t\t}\n\t}\n\n\tfunction guessesForUserOffsets (offsets) {\n\t\tvar offsetsLength = offsets.length,\n\t\t\tfilteredGuesses = {},\n\t\t\tout = [],\n\t\t\ti, j, guessesOffset;\n\n\t\tfor (i = 0; i < offsetsLength; i++) {\n\t\t\tguessesOffset = guesses[offsets[i].offset] || {};\n\t\t\tfor (j in guessesOffset) {\n\t\t\t\tif (guessesOffset.hasOwnProperty(j)) {\n\t\t\t\t\tfilteredGuesses[j] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (i in filteredGuesses) {\n\t\t\tif (filteredGuesses.hasOwnProperty(i)) {\n\t\t\t\tout.push(names[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn out;\n\t}\n\n\tfunction rebuildGuess () {\n\n\t\t// use Intl API when available and returning valid time zone\n\t\ttry {\n\t\t\tvar intlName = Intl.DateTimeFormat().resolvedOptions().timeZone;\n\t\t\tif (intlName && intlName.length > 3) {\n\t\t\t\tvar name = names[normalizeName(intlName)];\n\t\t\t\tif (name) {\n\t\t\t\t\treturn name;\n\t\t\t\t}\n\t\t\t\tlogError(\"Moment Timezone found \" + intlName + \" from the Intl api, but did not have that data loaded.\");\n\t\t\t}\n\t\t} catch (e) {\n\t\t\t// Intl unavailable, fall back to manual guessing.\n\t\t}\n\n\t\tvar offsets = userOffsets(),\n\t\t\toffsetsLength = offsets.length,\n\t\t\tguesses = guessesForUserOffsets(offsets),\n\t\t\tzoneScores = [],\n\t\t\tzoneScore, i, j;\n\n\t\tfor (i = 0; i < guesses.length; i++) {\n\t\t\tzoneScore = new ZoneScore(getZone(guesses[i]), offsetsLength);\n\t\t\tfor (j = 0; j < offsetsLength; j++) {\n\t\t\t\tzoneScore.scoreOffsetAt(offsets[j]);\n\t\t\t}\n\t\t\tzoneScores.push(zoneScore);\n\t\t}\n\n\t\tzoneScores.sort(sortZoneScores);\n\n\t\treturn zoneScores.length > 0 ? zoneScores[0].zone.name : undefined;\n\t}\n\n\tfunction guess (ignoreCache) {\n\t\tif (!cachedGuess || ignoreCache) {\n\t\t\tcachedGuess = rebuildGuess();\n\t\t}\n\t\treturn cachedGuess;\n\t}\n\n\t/************************************\n\t\tGlobal Methods\n\t************************************/\n\n\tfunction normalizeName (name) {\n\t\treturn (name || '').toLowerCase().replace(/\\//g, '_');\n\t}\n\n\tfunction addZone (packed) {\n\t\tvar i, name, split, normalized;\n\n\t\tif (typeof packed === \"string\") {\n\t\t\tpacked = [packed];\n\t\t}\n\n\t\tfor (i = 0; i < packed.length; i++) {\n\t\t\tsplit = packed[i].split('|');\n\t\t\tname = split[0];\n\t\t\tnormalized = normalizeName(name);\n\t\t\tzones[normalized] = packed[i];\n\t\t\tnames[normalized] = name;\n\t\t\taddToGuesses(normalized, split[2].split(' '));\n\t\t}\n\t}\n\n\tfunction getZone (name, caller) {\n\n\t\tname = normalizeName(name);\n\n\t\tvar zone = zones[name];\n\t\tvar link;\n\n\t\tif (zone instanceof Zone) {\n\t\t\treturn zone;\n\t\t}\n\n\t\tif (typeof zone === 'string') {\n\t\t\tzone = new Zone(zone);\n\t\t\tzones[name] = zone;\n\t\t\treturn zone;\n\t\t}\n\n\t\t// Pass getZone to prevent recursion more than 1 level deep\n\t\tif (links[name] && caller !== getZone && (link = getZone(links[name], getZone))) {\n\t\t\tzone = zones[name] = new Zone();\n\t\t\tzone._set(link);\n\t\t\tzone.name = names[name];\n\t\t\treturn zone;\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tfunction getNames () {\n\t\tvar i, out = [];\n\n\t\tfor (i in names) {\n\t\t\tif (names.hasOwnProperty(i) && (zones[i] || zones[links[i]]) && names[i]) {\n\t\t\t\tout.push(names[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn out.sort();\n\t}\n\n\tfunction getCountryNames () {\n\t\treturn Object.keys(countries);\n\t}\n\n\tfunction addLink (aliases) {\n\t\tvar i, alias, normal0, normal1;\n\n\t\tif (typeof aliases === \"string\") {\n\t\t\taliases = [aliases];\n\t\t}\n\n\t\tfor (i = 0; i < aliases.length; i++) {\n\t\t\talias = aliases[i].split('|');\n\n\t\t\tnormal0 = normalizeName(alias[0]);\n\t\t\tnormal1 = normalizeName(alias[1]);\n\n\t\t\tlinks[normal0] = normal1;\n\t\t\tnames[normal0] = alias[0];\n\n\t\t\tlinks[normal1] = normal0;\n\t\t\tnames[normal1] = alias[1];\n\t\t}\n\t}\n\n\tfunction addCountries (data) {\n\t\tvar i, country_code, country_zones, split;\n\t\tif (!data || !data.length) return;\n\t\tfor (i = 0; i < data.length; i++) {\n\t\t\tsplit = data[i].split('|');\n\t\t\tcountry_code = split[0].toUpperCase();\n\t\t\tcountry_zones = split[1].split(' ');\n\t\t\tcountries[country_code] = new Country(\n\t\t\t\tcountry_code,\n\t\t\t\tcountry_zones\n\t\t\t);\n\t\t}\n\t}\n\n\tfunction getCountry (name) {\n\t\tname = name.toUpperCase();\n\t\treturn countries[name] || null;\n\t}\n\n\tfunction zonesForCountry(country, with_offset) {\n\t\tcountry = getCountry(country);\n\n\t\tif (!country) return null;\n\n\t\tvar zones = country.zones.sort();\n\n\t\tif (with_offset) {\n\t\t\treturn zones.map(function (zone_name) {\n\t\t\t\tvar zone = getZone(zone_name);\n\t\t\t\treturn {\n\t\t\t\t\tname: zone_name,\n\t\t\t\t\toffset: zone.utcOffset(new Date())\n\t\t\t\t};\n\t\t\t});\n\t\t}\n\n\t\treturn zones;\n\t}\n\n\tfunction loadData (data) {\n\t\taddZone(data.zones);\n\t\taddLink(data.links);\n\t\taddCountries(data.countries);\n\t\ttz.dataVersion = data.version;\n\t}\n\n\tfunction zoneExists (name) {\n\t\tif (!zoneExists.didShowError) {\n\t\t\tzoneExists.didShowError = true;\n\t\t\t\tlogError(\"moment.tz.zoneExists('\" + name + \"') has been deprecated in favor of !moment.tz.zone('\" + name + \"')\");\n\t\t}\n\t\treturn !!getZone(name);\n\t}\n\n\tfunction needsOffset (m) {\n\t\tvar isUnixTimestamp = (m._f === 'X' || m._f === 'x');\n\t\treturn !!(m._a && (m._tzm === undefined) && !isUnixTimestamp);\n\t}\n\n\tfunction logError (message) {\n\t\tif (typeof console !== 'undefined' && typeof console.error === 'function') {\n\t\t\tconsole.error(message);\n\t\t}\n\t}\n\n\t/************************************\n\t\tmoment.tz namespace\n\t************************************/\n\n\tfunction tz (input) {\n\t\tvar args = Array.prototype.slice.call(arguments, 0, -1),\n\t\t\tname = arguments[arguments.length - 1],\n\t\t\tzone = getZone(name),\n\t\t\tout = moment.utc.apply(null, args);\n\n\t\tif (zone && !moment.isMoment(input) && needsOffset(out)) {\n\t\t\tout.add(zone.parse(out), 'minutes');\n\t\t}\n\n\t\tout.tz(name);\n\n\t\treturn out;\n\t}\n\n\ttz.version = VERSION;\n\ttz.dataVersion = '';\n\ttz._zones = zones;\n\ttz._links = links;\n\ttz._names = names;\n\ttz._countries\t= countries;\n\ttz.add = addZone;\n\ttz.link = addLink;\n\ttz.load = loadData;\n\ttz.zone = getZone;\n\ttz.zoneExists = zoneExists; // deprecated in 0.1.0\n\ttz.guess = guess;\n\ttz.names = getNames;\n\ttz.Zone = Zone;\n\ttz.unpack = unpack;\n\ttz.unpackBase60 = unpackBase60;\n\ttz.needsOffset = needsOffset;\n\ttz.moveInvalidForward = true;\n\ttz.moveAmbiguousForward = false;\n\ttz.countries = getCountryNames;\n\ttz.zonesForCountry = zonesForCountry;\n\n\t/************************************\n\t\tInterface with Moment.js\n\t************************************/\n\n\tvar fn = moment.fn;\n\n\tmoment.tz = tz;\n\n\tmoment.defaultZone = null;\n\n\tmoment.updateOffset = function (mom, keepTime) {\n\t\tvar zone = moment.defaultZone,\n\t\t\toffset;\n\n\t\tif (mom._z === undefined) {\n\t\t\tif (zone && needsOffset(mom) && !mom._isUTC) {\n\t\t\t\tmom._d = moment.utc(mom._a)._d;\n\t\t\t\tmom.utc().add(zone.parse(mom), 'minutes');\n\t\t\t}\n\t\t\tmom._z = zone;\n\t\t}\n\t\tif (mom._z) {\n\t\t\toffset = mom._z.utcOffset(mom);\n\t\t\tif (Math.abs(offset) < 16) {\n\t\t\t\toffset = offset / 60;\n\t\t\t}\n\t\t\tif (mom.utcOffset !== undefined) {\n\t\t\t\tvar z = mom._z;\n\t\t\t\tmom.utcOffset(-offset, keepTime);\n\t\t\t\tmom._z = z;\n\t\t\t} else {\n\t\t\t\tmom.zone(offset, keepTime);\n\t\t\t}\n\t\t}\n\t};\n\n\tfn.tz = function (name, keepTime) {\n\t\tif (name) {\n\t\t\tif (typeof name !== 'string') {\n\t\t\t\tthrow new Error('Time zone name must be a string, got ' + name + ' [' + typeof name + ']');\n\t\t\t}\n\t\t\tthis._z = getZone(name);\n\t\t\tif (this._z) {\n\t\t\t\tmoment.updateOffset(this, keepTime);\n\t\t\t} else {\n\t\t\t\tlogError(\"Moment Timezone has no data for \" + name + \". See http://momentjs.com/timezone/docs/#/data-loading/.\");\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\t\tif (this._z) { return this._z.name; }\n\t};\n\n\tfunction abbrWrap (old) {\n\t\treturn function () {\n\t\t\tif (this._z) { return this._z.abbr(this); }\n\t\t\treturn old.call(this);\n\t\t};\n\t}\n\n\tfunction resetZoneWrap (old) {\n\t\treturn function () {\n\t\t\tthis._z = null;\n\t\t\treturn old.apply(this, arguments);\n\t\t};\n\t}\n\n\tfunction resetZoneWrap2 (old) {\n\t\treturn function () {\n\t\t\tif (arguments.length > 0) this._z = null;\n\t\t\treturn old.apply(this, arguments);\n\t\t};\n\t}\n\n\tfn.zoneName = abbrWrap(fn.zoneName);\n\tfn.zoneAbbr = abbrWrap(fn.zoneAbbr);\n\tfn.utc = resetZoneWrap(fn.utc);\n\tfn.local = resetZoneWrap(fn.local);\n\tfn.utcOffset = resetZoneWrap2(fn.utcOffset);\n\n\tmoment.tz.setDefault = function(name) {\n\t\tif (major < 2 || (major === 2 && minor < 9)) {\n\t\t\tlogError('Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js ' + moment.version + '.');\n\t\t}\n\t\tmoment.defaultZone = name ? getZone(name) : null;\n\t\treturn moment;\n\t};\n\n\t// Cloning a moment should include the _z property.\n\tvar momentProperties = moment.momentProperties;\n\tif (Object.prototype.toString.call(momentProperties) === '[object Array]') {\n\t\t// moment 2.8.1+\n\t\tmomentProperties.push('_z');\n\t\tmomentProperties.push('_a');\n\t} else if (momentProperties) {\n\t\t// moment 2.7.0\n\t\tmomentProperties._z = null;\n\t}\n\n\t// INJECT DATA\n\n\treturn moment;\n}));\n","//! moment.js\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n global.moment = factory()\n}(this, (function () { 'use strict';\n\n var hookCallback;\n\n function hooks () {\n return hookCallback.apply(null, arguments);\n }\n\n // This is done to register the method called with moment()\n // without creating circular dependencies.\n function setHookCallback (callback) {\n hookCallback = callback;\n }\n\n function isArray(input) {\n return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';\n }\n\n function isObject(input) {\n // IE8 will treat undefined and null as object if it wasn't for\n // input != null\n return input != null && Object.prototype.toString.call(input) === '[object Object]';\n }\n\n function isObjectEmpty(obj) {\n if (Object.getOwnPropertyNames) {\n return (Object.getOwnPropertyNames(obj).length === 0);\n } else {\n var k;\n for (k in obj) {\n if (obj.hasOwnProperty(k)) {\n return false;\n }\n }\n return true;\n }\n }\n\n function isUndefined(input) {\n return input === void 0;\n }\n\n function isNumber(input) {\n return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]';\n }\n\n function isDate(input) {\n return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';\n }\n\n function map(arr, fn) {\n var res = [], i;\n for (i = 0; i < arr.length; ++i) {\n res.push(fn(arr[i], i));\n }\n return res;\n }\n\n function hasOwnProp(a, b) {\n return Object.prototype.hasOwnProperty.call(a, b);\n }\n\n function extend(a, b) {\n for (var i in b) {\n if (hasOwnProp(b, i)) {\n a[i] = b[i];\n }\n }\n\n if (hasOwnProp(b, 'toString')) {\n a.toString = b.toString;\n }\n\n if (hasOwnProp(b, 'valueOf')) {\n a.valueOf = b.valueOf;\n }\n\n return a;\n }\n\n function createUTC (input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, true).utc();\n }\n\n function defaultParsingFlags() {\n // We need to deep clone this object.\n return {\n empty : false,\n unusedTokens : [],\n unusedInput : [],\n overflow : -2,\n charsLeftOver : 0,\n nullInput : false,\n invalidMonth : null,\n invalidFormat : false,\n userInvalidated : false,\n iso : false,\n parsedDateParts : [],\n meridiem : null,\n rfc2822 : false,\n weekdayMismatch : false\n };\n }\n\n function getParsingFlags(m) {\n if (m._pf == null) {\n m._pf = defaultParsingFlags();\n }\n return m._pf;\n }\n\n var some;\n if (Array.prototype.some) {\n some = Array.prototype.some;\n } else {\n some = function (fun) {\n var t = Object(this);\n var len = t.length >>> 0;\n\n for (var i = 0; i < len; i++) {\n if (i in t && fun.call(this, t[i], i, t)) {\n return true;\n }\n }\n\n return false;\n };\n }\n\n function isValid(m) {\n if (m._isValid == null) {\n var flags = getParsingFlags(m);\n var parsedParts = some.call(flags.parsedDateParts, function (i) {\n return i != null;\n });\n var isNowValid = !isNaN(m._d.getTime()) &&\n flags.overflow < 0 &&\n !flags.empty &&\n !flags.invalidMonth &&\n !flags.invalidWeekday &&\n !flags.weekdayMismatch &&\n !flags.nullInput &&\n !flags.invalidFormat &&\n !flags.userInvalidated &&\n (!flags.meridiem || (flags.meridiem && parsedParts));\n\n if (m._strict) {\n isNowValid = isNowValid &&\n flags.charsLeftOver === 0 &&\n flags.unusedTokens.length === 0 &&\n flags.bigHour === undefined;\n }\n\n if (Object.isFrozen == null || !Object.isFrozen(m)) {\n m._isValid = isNowValid;\n }\n else {\n return isNowValid;\n }\n }\n return m._isValid;\n }\n\n function createInvalid (flags) {\n var m = createUTC(NaN);\n if (flags != null) {\n extend(getParsingFlags(m), flags);\n }\n else {\n getParsingFlags(m).userInvalidated = true;\n }\n\n return m;\n }\n\n // Plugins that add properties should also add the key here (null value),\n // so we can properly clone ourselves.\n var momentProperties = hooks.momentProperties = [];\n\n function copyConfig(to, from) {\n var i, prop, val;\n\n if (!isUndefined(from._isAMomentObject)) {\n to._isAMomentObject = from._isAMomentObject;\n }\n if (!isUndefined(from._i)) {\n to._i = from._i;\n }\n if (!isUndefined(from._f)) {\n to._f = from._f;\n }\n if (!isUndefined(from._l)) {\n to._l = from._l;\n }\n if (!isUndefined(from._strict)) {\n to._strict = from._strict;\n }\n if (!isUndefined(from._tzm)) {\n to._tzm = from._tzm;\n }\n if (!isUndefined(from._isUTC)) {\n to._isUTC = from._isUTC;\n }\n if (!isUndefined(from._offset)) {\n to._offset = from._offset;\n }\n if (!isUndefined(from._pf)) {\n to._pf = getParsingFlags(from);\n }\n if (!isUndefined(from._locale)) {\n to._locale = from._locale;\n }\n\n if (momentProperties.length > 0) {\n for (i = 0; i < momentProperties.length; i++) {\n prop = momentProperties[i];\n val = from[prop];\n if (!isUndefined(val)) {\n to[prop] = val;\n }\n }\n }\n\n return to;\n }\n\n var updateInProgress = false;\n\n // Moment prototype object\n function Moment(config) {\n copyConfig(this, config);\n this._d = new Date(config._d != null ? config._d.getTime() : NaN);\n if (!this.isValid()) {\n this._d = new Date(NaN);\n }\n // Prevent infinite loop in case updateOffset creates new moment\n // objects.\n if (updateInProgress === false) {\n updateInProgress = true;\n hooks.updateOffset(this);\n updateInProgress = false;\n }\n }\n\n function isMoment (obj) {\n return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);\n }\n\n function absFloor (number) {\n if (number < 0) {\n // -0 -> 0\n return Math.ceil(number) || 0;\n } else {\n return Math.floor(number);\n }\n }\n\n function toInt(argumentForCoercion) {\n var coercedNumber = +argumentForCoercion,\n value = 0;\n\n if (coercedNumber !== 0 && isFinite(coercedNumber)) {\n value = absFloor(coercedNumber);\n }\n\n return value;\n }\n\n // compare two arrays, return the number of differences\n function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if ((dontConvert && array1[i] !== array2[i]) ||\n (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }\n\n function warn(msg) {\n if (hooks.suppressDeprecationWarnings === false &&\n (typeof console !== 'undefined') && console.warn) {\n console.warn('Deprecation warning: ' + msg);\n }\n }\n\n function deprecate(msg, fn) {\n var firstTime = true;\n\n return extend(function () {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(null, msg);\n }\n if (firstTime) {\n var args = [];\n var arg;\n for (var i = 0; i < arguments.length; i++) {\n arg = '';\n if (typeof arguments[i] === 'object') {\n arg += '\\n[' + i + '] ';\n for (var key in arguments[0]) {\n arg += key + ': ' + arguments[0][key] + ', ';\n }\n arg = arg.slice(0, -2); // Remove trailing comma and space\n } else {\n arg = arguments[i];\n }\n args.push(arg);\n }\n warn(msg + '\\nArguments: ' + Array.prototype.slice.call(args).join('') + '\\n' + (new Error()).stack);\n firstTime = false;\n }\n return fn.apply(this, arguments);\n }, fn);\n }\n\n var deprecations = {};\n\n function deprecateSimple(name, msg) {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(name, msg);\n }\n if (!deprecations[name]) {\n warn(msg);\n deprecations[name] = true;\n }\n }\n\n hooks.suppressDeprecationWarnings = false;\n hooks.deprecationHandler = null;\n\n function isFunction(input) {\n return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';\n }\n\n function set (config) {\n var prop, i;\n for (i in config) {\n prop = config[i];\n if (isFunction(prop)) {\n this[i] = prop;\n } else {\n this['_' + i] = prop;\n }\n }\n this._config = config;\n // Lenient ordinal parsing accepts just a number in addition to\n // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n this._dayOfMonthOrdinalParseLenient = new RegExp(\n (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +\n '|' + (/\\d{1,2}/).source);\n }\n\n function mergeConfigs(parentConfig, childConfig) {\n var res = extend({}, parentConfig), prop;\n for (prop in childConfig) {\n if (hasOwnProp(childConfig, prop)) {\n if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {\n res[prop] = {};\n extend(res[prop], parentConfig[prop]);\n extend(res[prop], childConfig[prop]);\n } else if (childConfig[prop] != null) {\n res[prop] = childConfig[prop];\n } else {\n delete res[prop];\n }\n }\n }\n for (prop in parentConfig) {\n if (hasOwnProp(parentConfig, prop) &&\n !hasOwnProp(childConfig, prop) &&\n isObject(parentConfig[prop])) {\n // make sure changes to properties don't modify parent config\n res[prop] = extend({}, res[prop]);\n }\n }\n return res;\n }\n\n function Locale(config) {\n if (config != null) {\n this.set(config);\n }\n }\n\n var keys;\n\n if (Object.keys) {\n keys = Object.keys;\n } else {\n keys = function (obj) {\n var i, res = [];\n for (i in obj) {\n if (hasOwnProp(obj, i)) {\n res.push(i);\n }\n }\n return res;\n };\n }\n\n var defaultCalendar = {\n sameDay : '[Today at] LT',\n nextDay : '[Tomorrow at] LT',\n nextWeek : 'dddd [at] LT',\n lastDay : '[Yesterday at] LT',\n lastWeek : '[Last] dddd [at] LT',\n sameElse : 'L'\n };\n\n function calendar (key, mom, now) {\n var output = this._calendar[key] || this._calendar['sameElse'];\n return isFunction(output) ? output.call(mom, now) : output;\n }\n\n var defaultLongDateFormat = {\n LTS : 'h:mm:ss A',\n LT : 'h:mm A',\n L : 'MM/DD/YYYY',\n LL : 'MMMM D, YYYY',\n LLL : 'MMMM D, YYYY h:mm A',\n LLLL : 'dddd, MMMM D, YYYY h:mm A'\n };\n\n function longDateFormat (key) {\n var format = this._longDateFormat[key],\n formatUpper = this._longDateFormat[key.toUpperCase()];\n\n if (format || !formatUpper) {\n return format;\n }\n\n this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {\n return val.slice(1);\n });\n\n return this._longDateFormat[key];\n }\n\n var defaultInvalidDate = 'Invalid date';\n\n function invalidDate () {\n return this._invalidDate;\n }\n\n var defaultOrdinal = '%d';\n var defaultDayOfMonthOrdinalParse = /\\d{1,2}/;\n\n function ordinal (number) {\n return this._ordinal.replace('%d', number);\n }\n\n var defaultRelativeTime = {\n future : 'in %s',\n past : '%s ago',\n s : 'a few seconds',\n ss : '%d seconds',\n m : 'a minute',\n mm : '%d minutes',\n h : 'an hour',\n hh : '%d hours',\n d : 'a day',\n dd : '%d days',\n M : 'a month',\n MM : '%d months',\n y : 'a year',\n yy : '%d years'\n };\n\n function relativeTime (number, withoutSuffix, string, isFuture) {\n var output = this._relativeTime[string];\n return (isFunction(output)) ?\n output(number, withoutSuffix, string, isFuture) :\n output.replace(/%d/i, number);\n }\n\n function pastFuture (diff, output) {\n var format = this._relativeTime[diff > 0 ? 'future' : 'past'];\n return isFunction(format) ? format(output) : format.replace(/%s/i, output);\n }\n\n var aliases = {};\n\n function addUnitAlias (unit, shorthand) {\n var lowerCase = unit.toLowerCase();\n aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;\n }\n\n function normalizeUnits(units) {\n return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;\n }\n\n function normalizeObjectUnits(inputObject) {\n var normalizedInput = {},\n normalizedProp,\n prop;\n\n for (prop in inputObject) {\n if (hasOwnProp(inputObject, prop)) {\n normalizedProp = normalizeUnits(prop);\n if (normalizedProp) {\n normalizedInput[normalizedProp] = inputObject[prop];\n }\n }\n }\n\n return normalizedInput;\n }\n\n var priorities = {};\n\n function addUnitPriority(unit, priority) {\n priorities[unit] = priority;\n }\n\n function getPrioritizedUnits(unitsObj) {\n var units = [];\n for (var u in unitsObj) {\n units.push({unit: u, priority: priorities[u]});\n }\n units.sort(function (a, b) {\n return a.priority - b.priority;\n });\n return units;\n }\n\n function zeroFill(number, targetLength, forceSign) {\n var absNumber = '' + Math.abs(number),\n zerosToFill = targetLength - absNumber.length,\n sign = number >= 0;\n return (sign ? (forceSign ? '+' : '') : '-') +\n Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;\n }\n\n 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;\n\n var localFormattingTokens = /(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g;\n\n var formatFunctions = {};\n\n var formatTokenFunctions = {};\n\n // token: 'M'\n // padded: ['MM', 2]\n // ordinal: 'Mo'\n // callback: function () { this.month() + 1 }\n function addFormatToken (token, padded, ordinal, callback) {\n var func = callback;\n if (typeof callback === 'string') {\n func = function () {\n return this[callback]();\n };\n }\n if (token) {\n formatTokenFunctions[token] = func;\n }\n if (padded) {\n formatTokenFunctions[padded[0]] = function () {\n return zeroFill(func.apply(this, arguments), padded[1], padded[2]);\n };\n }\n if (ordinal) {\n formatTokenFunctions[ordinal] = function () {\n return this.localeData().ordinal(func.apply(this, arguments), token);\n };\n }\n }\n\n function removeFormattingTokens(input) {\n if (input.match(/\\[[\\s\\S]/)) {\n return input.replace(/^\\[|\\]$/g, '');\n }\n return input.replace(/\\\\/g, '');\n }\n\n function makeFormatFunction(format) {\n var array = format.match(formattingTokens), i, length;\n\n for (i = 0, length = array.length; i < length; i++) {\n if (formatTokenFunctions[array[i]]) {\n array[i] = formatTokenFunctions[array[i]];\n } else {\n array[i] = removeFormattingTokens(array[i]);\n }\n }\n\n return function (mom) {\n var output = '', i;\n for (i = 0; i < length; i++) {\n output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];\n }\n return output;\n };\n }\n\n // format date using native date object\n function formatMoment(m, format) {\n if (!m.isValid()) {\n return m.localeData().invalidDate();\n }\n\n format = expandFormat(format, m.localeData());\n formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);\n\n return formatFunctions[format](m);\n }\n\n function expandFormat(format, locale) {\n var i = 5;\n\n function replaceLongDateFormatTokens(input) {\n return locale.longDateFormat(input) || input;\n }\n\n localFormattingTokens.lastIndex = 0;\n while (i >= 0 && localFormattingTokens.test(format)) {\n format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);\n localFormattingTokens.lastIndex = 0;\n i -= 1;\n }\n\n return format;\n }\n\n var match1 = /\\d/; // 0 - 9\n var match2 = /\\d\\d/; // 00 - 99\n var match3 = /\\d{3}/; // 000 - 999\n var match4 = /\\d{4}/; // 0000 - 9999\n var match6 = /[+-]?\\d{6}/; // -999999 - 999999\n var match1to2 = /\\d\\d?/; // 0 - 99\n var match3to4 = /\\d\\d\\d\\d?/; // 999 - 9999\n var match5to6 = /\\d\\d\\d\\d\\d\\d?/; // 99999 - 999999\n var match1to3 = /\\d{1,3}/; // 0 - 999\n var match1to4 = /\\d{1,4}/; // 0 - 9999\n var match1to6 = /[+-]?\\d{1,6}/; // -999999 - 999999\n\n var matchUnsigned = /\\d+/; // 0 - inf\n var matchSigned = /[+-]?\\d+/; // -inf - inf\n\n var matchOffset = /Z|[+-]\\d\\d:?\\d\\d/gi; // +00:00 -00:00 +0000 -0000 or Z\n var matchShortOffset = /Z|[+-]\\d\\d(?::?\\d\\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z\n\n var matchTimestamp = /[+-]?\\d+(\\.\\d{1,3})?/; // 123456789 123456789.123\n\n // any word (or two) characters or numbers including two/three word month in arabic.\n // includes scottish gaelic two word and hyphenated months\n var 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;\n\n var regexes = {};\n\n function addRegexToken (token, regex, strictRegex) {\n regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {\n return (isStrict && strictRegex) ? strictRegex : regex;\n };\n }\n\n function getParseRegexForToken (token, config) {\n if (!hasOwnProp(regexes, token)) {\n return new RegExp(unescapeFormat(token));\n }\n\n return regexes[token](config._strict, config._locale);\n }\n\n // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript\n function unescapeFormat(s) {\n return regexEscape(s.replace('\\\\', '').replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g, function (matched, p1, p2, p3, p4) {\n return p1 || p2 || p3 || p4;\n }));\n }\n\n function regexEscape(s) {\n return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n }\n\n var tokens = {};\n\n function addParseToken (token, callback) {\n var i, func = callback;\n if (typeof token === 'string') {\n token = [token];\n }\n if (isNumber(callback)) {\n func = function (input, array) {\n array[callback] = toInt(input);\n };\n }\n for (i = 0; i < token.length; i++) {\n tokens[token[i]] = func;\n }\n }\n\n function addWeekParseToken (token, callback) {\n addParseToken(token, function (input, array, config, token) {\n config._w = config._w || {};\n callback(input, config._w, config, token);\n });\n }\n\n function addTimeToArrayFromToken(token, input, config) {\n if (input != null && hasOwnProp(tokens, token)) {\n tokens[token](input, config._a, config, token);\n }\n }\n\n var YEAR = 0;\n var MONTH = 1;\n var DATE = 2;\n var HOUR = 3;\n var MINUTE = 4;\n var SECOND = 5;\n var MILLISECOND = 6;\n var WEEK = 7;\n var WEEKDAY = 8;\n\n // FORMATTING\n\n addFormatToken('Y', 0, 0, function () {\n var y = this.year();\n return y <= 9999 ? '' + y : '+' + y;\n });\n\n addFormatToken(0, ['YY', 2], 0, function () {\n return this.year() % 100;\n });\n\n addFormatToken(0, ['YYYY', 4], 0, 'year');\n addFormatToken(0, ['YYYYY', 5], 0, 'year');\n addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');\n\n // ALIASES\n\n addUnitAlias('year', 'y');\n\n // PRIORITIES\n\n addUnitPriority('year', 1);\n\n // PARSING\n\n addRegexToken('Y', matchSigned);\n addRegexToken('YY', match1to2, match2);\n addRegexToken('YYYY', match1to4, match4);\n addRegexToken('YYYYY', match1to6, match6);\n addRegexToken('YYYYYY', match1to6, match6);\n\n addParseToken(['YYYYY', 'YYYYYY'], YEAR);\n addParseToken('YYYY', function (input, array) {\n array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);\n });\n addParseToken('YY', function (input, array) {\n array[YEAR] = hooks.parseTwoDigitYear(input);\n });\n addParseToken('Y', function (input, array) {\n array[YEAR] = parseInt(input, 10);\n });\n\n // HELPERS\n\n function daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n }\n\n function isLeapYear(year) {\n return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;\n }\n\n // HOOKS\n\n hooks.parseTwoDigitYear = function (input) {\n return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);\n };\n\n // MOMENTS\n\n var getSetYear = makeGetSet('FullYear', true);\n\n function getIsLeapYear () {\n return isLeapYear(this.year());\n }\n\n function makeGetSet (unit, keepTime) {\n return function (value) {\n if (value != null) {\n set$1(this, unit, value);\n hooks.updateOffset(this, keepTime);\n return this;\n } else {\n return get(this, unit);\n }\n };\n }\n\n function get (mom, unit) {\n return mom.isValid() ?\n mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;\n }\n\n function set$1 (mom, unit, value) {\n if (mom.isValid() && !isNaN(value)) {\n if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {\n mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month()));\n }\n else {\n mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);\n }\n }\n }\n\n // MOMENTS\n\n function stringGet (units) {\n units = normalizeUnits(units);\n if (isFunction(this[units])) {\n return this[units]();\n }\n return this;\n }\n\n\n function stringSet (units, value) {\n if (typeof units === 'object') {\n units = normalizeObjectUnits(units);\n var prioritized = getPrioritizedUnits(units);\n for (var i = 0; i < prioritized.length; i++) {\n this[prioritized[i].unit](units[prioritized[i].unit]);\n }\n } else {\n units = normalizeUnits(units);\n if (isFunction(this[units])) {\n return this[units](value);\n }\n }\n return this;\n }\n\n function mod(n, x) {\n return ((n % x) + x) % x;\n }\n\n var indexOf;\n\n if (Array.prototype.indexOf) {\n indexOf = Array.prototype.indexOf;\n } else {\n indexOf = function (o) {\n // I know\n var i;\n for (i = 0; i < this.length; ++i) {\n if (this[i] === o) {\n return i;\n }\n }\n return -1;\n };\n }\n\n function daysInMonth(year, month) {\n if (isNaN(year) || isNaN(month)) {\n return NaN;\n }\n var modMonth = mod(month, 12);\n year += (month - modMonth) / 12;\n return modMonth === 1 ? (isLeapYear(year) ? 29 : 28) : (31 - modMonth % 7 % 2);\n }\n\n // FORMATTING\n\n addFormatToken('M', ['MM', 2], 'Mo', function () {\n return this.month() + 1;\n });\n\n addFormatToken('MMM', 0, 0, function (format) {\n return this.localeData().monthsShort(this, format);\n });\n\n addFormatToken('MMMM', 0, 0, function (format) {\n return this.localeData().months(this, format);\n });\n\n // ALIASES\n\n addUnitAlias('month', 'M');\n\n // PRIORITY\n\n addUnitPriority('month', 8);\n\n // PARSING\n\n addRegexToken('M', match1to2);\n addRegexToken('MM', match1to2, match2);\n addRegexToken('MMM', function (isStrict, locale) {\n return locale.monthsShortRegex(isStrict);\n });\n addRegexToken('MMMM', function (isStrict, locale) {\n return locale.monthsRegex(isStrict);\n });\n\n addParseToken(['M', 'MM'], function (input, array) {\n array[MONTH] = toInt(input) - 1;\n });\n\n addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {\n var month = config._locale.monthsParse(input, token, config._strict);\n // if we didn't find a month name, mark the date as invalid.\n if (month != null) {\n array[MONTH] = month;\n } else {\n getParsingFlags(config).invalidMonth = input;\n }\n });\n\n // LOCALES\n\n var MONTHS_IN_FORMAT = /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/;\n var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');\n function localeMonths (m, format) {\n if (!m) {\n return isArray(this._months) ? this._months :\n this._months['standalone'];\n }\n return isArray(this._months) ? this._months[m.month()] :\n this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];\n }\n\n var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');\n function localeMonthsShort (m, format) {\n if (!m) {\n return isArray(this._monthsShort) ? this._monthsShort :\n this._monthsShort['standalone'];\n }\n return isArray(this._monthsShort) ? this._monthsShort[m.month()] :\n this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];\n }\n\n function handleStrictParse(monthName, format, strict) {\n var i, ii, mom, llc = monthName.toLocaleLowerCase();\n if (!this._monthsParse) {\n // this is not used\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n for (i = 0; i < 12; ++i) {\n mom = createUTC([2000, i]);\n this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();\n this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n }\n\n function localeMonthsParse (monthName, format, strict) {\n var i, mom, regex;\n\n if (this._monthsParseExact) {\n return handleStrictParse.call(this, monthName, format, strict);\n }\n\n if (!this._monthsParse) {\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n }\n\n // TODO: add sorting\n // Sorting makes sure if one month (or abbr) is a prefix of another\n // see sorting in computeMonthsParse\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n if (strict && !this._longMonthsParse[i]) {\n this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');\n this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');\n }\n if (!strict && !this._monthsParse[i]) {\n regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');\n this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');\n }\n // test the regex\n if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {\n return i;\n } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {\n return i;\n } else if (!strict && this._monthsParse[i].test(monthName)) {\n return i;\n }\n }\n }\n\n // MOMENTS\n\n function setMonth (mom, value) {\n var dayOfMonth;\n\n if (!mom.isValid()) {\n // No op\n return mom;\n }\n\n if (typeof value === 'string') {\n if (/^\\d+$/.test(value)) {\n value = toInt(value);\n } else {\n value = mom.localeData().monthsParse(value);\n // TODO: Another silent failure?\n if (!isNumber(value)) {\n return mom;\n }\n }\n }\n\n dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));\n mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);\n return mom;\n }\n\n function getSetMonth (value) {\n if (value != null) {\n setMonth(this, value);\n hooks.updateOffset(this, true);\n return this;\n } else {\n return get(this, 'Month');\n }\n }\n\n function getDaysInMonth () {\n return daysInMonth(this.year(), this.month());\n }\n\n var defaultMonthsShortRegex = matchWord;\n function monthsShortRegex (isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n if (isStrict) {\n return this._monthsShortStrictRegex;\n } else {\n return this._monthsShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsShortRegex')) {\n this._monthsShortRegex = defaultMonthsShortRegex;\n }\n return this._monthsShortStrictRegex && isStrict ?\n this._monthsShortStrictRegex : this._monthsShortRegex;\n }\n }\n\n var defaultMonthsRegex = matchWord;\n function monthsRegex (isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n if (isStrict) {\n return this._monthsStrictRegex;\n } else {\n return this._monthsRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsRegex')) {\n this._monthsRegex = defaultMonthsRegex;\n }\n return this._monthsStrictRegex && isStrict ?\n this._monthsStrictRegex : this._monthsRegex;\n }\n }\n\n function computeMonthsParse () {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var shortPieces = [], longPieces = [], mixedPieces = [],\n i, mom;\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n shortPieces.push(this.monthsShort(mom, ''));\n longPieces.push(this.months(mom, ''));\n mixedPieces.push(this.months(mom, ''));\n mixedPieces.push(this.monthsShort(mom, ''));\n }\n // Sorting makes sure if one month (or abbr) is a prefix of another it\n // will match the longer piece.\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n for (i = 0; i < 12; i++) {\n shortPieces[i] = regexEscape(shortPieces[i]);\n longPieces[i] = regexEscape(longPieces[i]);\n }\n for (i = 0; i < 24; i++) {\n mixedPieces[i] = regexEscape(mixedPieces[i]);\n }\n\n this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._monthsShortRegex = this._monthsRegex;\n this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');\n this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');\n }\n\n function createDate (y, m, d, h, M, s, ms) {\n // can't just apply() to create a date:\n // https://stackoverflow.com/q/181348\n var date = new Date(y, m, d, h, M, s, ms);\n\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0 && isFinite(date.getFullYear())) {\n date.setFullYear(y);\n }\n return date;\n }\n\n function createUTCDate (y) {\n var date = new Date(Date.UTC.apply(null, arguments));\n\n // the Date.UTC function remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) {\n date.setUTCFullYear(y);\n }\n return date;\n }\n\n // start-of-first-week - start-of-year\n function firstWeekOffset(year, dow, doy) {\n var // first-week day -- which january is always in the first week (4 for iso, 1 for other)\n fwd = 7 + dow - doy,\n // first-week day local weekday -- which local weekday is fwd\n fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;\n\n return -fwdlw + fwd - 1;\n }\n\n // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday\n function dayOfYearFromWeeks(year, week, weekday, dow, doy) {\n var localWeekday = (7 + weekday - dow) % 7,\n weekOffset = firstWeekOffset(year, dow, doy),\n dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,\n resYear, resDayOfYear;\n\n if (dayOfYear <= 0) {\n resYear = year - 1;\n resDayOfYear = daysInYear(resYear) + dayOfYear;\n } else if (dayOfYear > daysInYear(year)) {\n resYear = year + 1;\n resDayOfYear = dayOfYear - daysInYear(year);\n } else {\n resYear = year;\n resDayOfYear = dayOfYear;\n }\n\n return {\n year: resYear,\n dayOfYear: resDayOfYear\n };\n }\n\n function weekOfYear(mom, dow, doy) {\n var weekOffset = firstWeekOffset(mom.year(), dow, doy),\n week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,\n resWeek, resYear;\n\n if (week < 1) {\n resYear = mom.year() - 1;\n resWeek = week + weeksInYear(resYear, dow, doy);\n } else if (week > weeksInYear(mom.year(), dow, doy)) {\n resWeek = week - weeksInYear(mom.year(), dow, doy);\n resYear = mom.year() + 1;\n } else {\n resYear = mom.year();\n resWeek = week;\n }\n\n return {\n week: resWeek,\n year: resYear\n };\n }\n\n function weeksInYear(year, dow, doy) {\n var weekOffset = firstWeekOffset(year, dow, doy),\n weekOffsetNext = firstWeekOffset(year + 1, dow, doy);\n return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;\n }\n\n // FORMATTING\n\n addFormatToken('w', ['ww', 2], 'wo', 'week');\n addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');\n\n // ALIASES\n\n addUnitAlias('week', 'w');\n addUnitAlias('isoWeek', 'W');\n\n // PRIORITIES\n\n addUnitPriority('week', 5);\n addUnitPriority('isoWeek', 5);\n\n // PARSING\n\n addRegexToken('w', match1to2);\n addRegexToken('ww', match1to2, match2);\n addRegexToken('W', match1to2);\n addRegexToken('WW', match1to2, match2);\n\n addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {\n week[token.substr(0, 1)] = toInt(input);\n });\n\n // HELPERS\n\n // LOCALES\n\n function localeWeek (mom) {\n return weekOfYear(mom, this._week.dow, this._week.doy).week;\n }\n\n var defaultLocaleWeek = {\n dow : 0, // Sunday is the first day of the week.\n doy : 6 // The week that contains Jan 1st is the first week of the year.\n };\n\n function localeFirstDayOfWeek () {\n return this._week.dow;\n }\n\n function localeFirstDayOfYear () {\n return this._week.doy;\n }\n\n // MOMENTS\n\n function getSetWeek (input) {\n var week = this.localeData().week(this);\n return input == null ? week : this.add((input - week) * 7, 'd');\n }\n\n function getSetISOWeek (input) {\n var week = weekOfYear(this, 1, 4).week;\n return input == null ? week : this.add((input - week) * 7, 'd');\n }\n\n // FORMATTING\n\n addFormatToken('d', 0, 'do', 'day');\n\n addFormatToken('dd', 0, 0, function (format) {\n return this.localeData().weekdaysMin(this, format);\n });\n\n addFormatToken('ddd', 0, 0, function (format) {\n return this.localeData().weekdaysShort(this, format);\n });\n\n addFormatToken('dddd', 0, 0, function (format) {\n return this.localeData().weekdays(this, format);\n });\n\n addFormatToken('e', 0, 0, 'weekday');\n addFormatToken('E', 0, 0, 'isoWeekday');\n\n // ALIASES\n\n addUnitAlias('day', 'd');\n addUnitAlias('weekday', 'e');\n addUnitAlias('isoWeekday', 'E');\n\n // PRIORITY\n addUnitPriority('day', 11);\n addUnitPriority('weekday', 11);\n addUnitPriority('isoWeekday', 11);\n\n // PARSING\n\n addRegexToken('d', match1to2);\n addRegexToken('e', match1to2);\n addRegexToken('E', match1to2);\n addRegexToken('dd', function (isStrict, locale) {\n return locale.weekdaysMinRegex(isStrict);\n });\n addRegexToken('ddd', function (isStrict, locale) {\n return locale.weekdaysShortRegex(isStrict);\n });\n addRegexToken('dddd', function (isStrict, locale) {\n return locale.weekdaysRegex(isStrict);\n });\n\n addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {\n var weekday = config._locale.weekdaysParse(input, token, config._strict);\n // if we didn't get a weekday name, mark the date as invalid\n if (weekday != null) {\n week.d = weekday;\n } else {\n getParsingFlags(config).invalidWeekday = input;\n }\n });\n\n addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {\n week[token] = toInt(input);\n });\n\n // HELPERS\n\n function parseWeekday(input, locale) {\n if (typeof input !== 'string') {\n return input;\n }\n\n if (!isNaN(input)) {\n return parseInt(input, 10);\n }\n\n input = locale.weekdaysParse(input);\n if (typeof input === 'number') {\n return input;\n }\n\n return null;\n }\n\n function parseIsoWeekday(input, locale) {\n if (typeof input === 'string') {\n return locale.weekdaysParse(input) % 7 || 7;\n }\n return isNaN(input) ? null : input;\n }\n\n // LOCALES\n\n var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');\n function localeWeekdays (m, format) {\n if (!m) {\n return isArray(this._weekdays) ? this._weekdays :\n this._weekdays['standalone'];\n }\n return isArray(this._weekdays) ? this._weekdays[m.day()] :\n this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()];\n }\n\n var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');\n function localeWeekdaysShort (m) {\n return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort;\n }\n\n var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');\n function localeWeekdaysMin (m) {\n return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin;\n }\n\n function handleStrictParse$1(weekdayName, format, strict) {\n var i, ii, mom, llc = weekdayName.toLocaleLowerCase();\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._minWeekdaysParse = [];\n\n for (i = 0; i < 7; ++i) {\n mom = createUTC([2000, 1]).day(i);\n this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();\n this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();\n this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n }\n\n function localeWeekdaysParse (weekdayName, format, strict) {\n var i, mom, regex;\n\n if (this._weekdaysParseExact) {\n return handleStrictParse$1.call(this, weekdayName, format, strict);\n }\n\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._minWeekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._fullWeekdaysParse = [];\n }\n\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n\n mom = createUTC([2000, 1]).day(i);\n if (strict && !this._fullWeekdaysParse[i]) {\n this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\\\\.?') + '$', 'i');\n this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\\\\.?') + '$', 'i');\n this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\\\\.?') + '$', 'i');\n }\n if (!this._weekdaysParse[i]) {\n regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');\n this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');\n }\n // test the regex\n if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {\n return i;\n } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {\n return i;\n } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {\n return i;\n } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {\n return i;\n }\n }\n }\n\n // MOMENTS\n\n function getSetDayOfWeek (input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();\n if (input != null) {\n input = parseWeekday(input, this.localeData());\n return this.add(input - day, 'd');\n } else {\n return day;\n }\n }\n\n function getSetLocaleDayOfWeek (input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;\n return input == null ? weekday : this.add(input - weekday, 'd');\n }\n\n function getSetISODayOfWeek (input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n\n // behaves the same as moment#day except\n // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)\n // as a setter, sunday should belong to the previous week.\n\n if (input != null) {\n var weekday = parseIsoWeekday(input, this.localeData());\n return this.day(this.day() % 7 ? weekday : weekday - 7);\n } else {\n return this.day() || 7;\n }\n }\n\n var defaultWeekdaysRegex = matchWord;\n function weekdaysRegex (isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysStrictRegex;\n } else {\n return this._weekdaysRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n this._weekdaysRegex = defaultWeekdaysRegex;\n }\n return this._weekdaysStrictRegex && isStrict ?\n this._weekdaysStrictRegex : this._weekdaysRegex;\n }\n }\n\n var defaultWeekdaysShortRegex = matchWord;\n function weekdaysShortRegex (isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysShortStrictRegex;\n } else {\n return this._weekdaysShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysShortRegex')) {\n this._weekdaysShortRegex = defaultWeekdaysShortRegex;\n }\n return this._weekdaysShortStrictRegex && isStrict ?\n this._weekdaysShortStrictRegex : this._weekdaysShortRegex;\n }\n }\n\n var defaultWeekdaysMinRegex = matchWord;\n function weekdaysMinRegex (isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysMinStrictRegex;\n } else {\n return this._weekdaysMinRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysMinRegex')) {\n this._weekdaysMinRegex = defaultWeekdaysMinRegex;\n }\n return this._weekdaysMinStrictRegex && isStrict ?\n this._weekdaysMinStrictRegex : this._weekdaysMinRegex;\n }\n }\n\n\n function computeWeekdaysParse () {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [],\n i, mom, minp, shortp, longp;\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, 1]).day(i);\n minp = this.weekdaysMin(mom, '');\n shortp = this.weekdaysShort(mom, '');\n longp = this.weekdays(mom, '');\n minPieces.push(minp);\n shortPieces.push(shortp);\n longPieces.push(longp);\n mixedPieces.push(minp);\n mixedPieces.push(shortp);\n mixedPieces.push(longp);\n }\n // Sorting makes sure if one weekday (or abbr) is a prefix of another it\n // will match the longer piece.\n minPieces.sort(cmpLenRev);\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n for (i = 0; i < 7; i++) {\n shortPieces[i] = regexEscape(shortPieces[i]);\n longPieces[i] = regexEscape(longPieces[i]);\n mixedPieces[i] = regexEscape(mixedPieces[i]);\n }\n\n this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._weekdaysShortRegex = this._weekdaysRegex;\n this._weekdaysMinRegex = this._weekdaysRegex;\n\n this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');\n this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');\n this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');\n }\n\n // FORMATTING\n\n function hFormat() {\n return this.hours() % 12 || 12;\n }\n\n function kFormat() {\n return this.hours() || 24;\n }\n\n addFormatToken('H', ['HH', 2], 0, 'hour');\n addFormatToken('h', ['hh', 2], 0, hFormat);\n addFormatToken('k', ['kk', 2], 0, kFormat);\n\n addFormatToken('hmm', 0, 0, function () {\n return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);\n });\n\n addFormatToken('hmmss', 0, 0, function () {\n return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) +\n zeroFill(this.seconds(), 2);\n });\n\n addFormatToken('Hmm', 0, 0, function () {\n return '' + this.hours() + zeroFill(this.minutes(), 2);\n });\n\n addFormatToken('Hmmss', 0, 0, function () {\n return '' + this.hours() + zeroFill(this.minutes(), 2) +\n zeroFill(this.seconds(), 2);\n });\n\n function meridiem (token, lowercase) {\n addFormatToken(token, 0, 0, function () {\n return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);\n });\n }\n\n meridiem('a', true);\n meridiem('A', false);\n\n // ALIASES\n\n addUnitAlias('hour', 'h');\n\n // PRIORITY\n addUnitPriority('hour', 13);\n\n // PARSING\n\n function matchMeridiem (isStrict, locale) {\n return locale._meridiemParse;\n }\n\n addRegexToken('a', matchMeridiem);\n addRegexToken('A', matchMeridiem);\n addRegexToken('H', match1to2);\n addRegexToken('h', match1to2);\n addRegexToken('k', match1to2);\n addRegexToken('HH', match1to2, match2);\n addRegexToken('hh', match1to2, match2);\n addRegexToken('kk', match1to2, match2);\n\n addRegexToken('hmm', match3to4);\n addRegexToken('hmmss', match5to6);\n addRegexToken('Hmm', match3to4);\n addRegexToken('Hmmss', match5to6);\n\n addParseToken(['H', 'HH'], HOUR);\n addParseToken(['k', 'kk'], function (input, array, config) {\n var kInput = toInt(input);\n array[HOUR] = kInput === 24 ? 0 : kInput;\n });\n addParseToken(['a', 'A'], function (input, array, config) {\n config._isPm = config._locale.isPM(input);\n config._meridiem = input;\n });\n addParseToken(['h', 'hh'], function (input, array, config) {\n array[HOUR] = toInt(input);\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('hmmss', function (input, array, config) {\n var pos1 = input.length - 4;\n var pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('Hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n });\n addParseToken('Hmmss', function (input, array, config) {\n var pos1 = input.length - 4;\n var pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n });\n\n // LOCALES\n\n function localeIsPM (input) {\n // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays\n // Using charAt should be more compatible.\n return ((input + '').toLowerCase().charAt(0) === 'p');\n }\n\n var defaultLocaleMeridiemParse = /[ap]\\.?m?\\.?/i;\n function localeMeridiem (hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'pm' : 'PM';\n } else {\n return isLower ? 'am' : 'AM';\n }\n }\n\n\n // MOMENTS\n\n // Setting the hour should keep the time, because the user explicitly\n // specified which hour they want. So trying to maintain the same hour (in\n // a new timezone) makes sense. Adding/subtracting hours does not follow\n // this rule.\n var getSetHour = makeGetSet('Hours', true);\n\n var baseConfig = {\n calendar: defaultCalendar,\n longDateFormat: defaultLongDateFormat,\n invalidDate: defaultInvalidDate,\n ordinal: defaultOrdinal,\n dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,\n relativeTime: defaultRelativeTime,\n\n months: defaultLocaleMonths,\n monthsShort: defaultLocaleMonthsShort,\n\n week: defaultLocaleWeek,\n\n weekdays: defaultLocaleWeekdays,\n weekdaysMin: defaultLocaleWeekdaysMin,\n weekdaysShort: defaultLocaleWeekdaysShort,\n\n meridiemParse: defaultLocaleMeridiemParse\n };\n\n // internal storage for locale config files\n var locales = {};\n var localeFamilies = {};\n var globalLocale;\n\n function normalizeLocale(key) {\n return key ? key.toLowerCase().replace('_', '-') : key;\n }\n\n // pick the locale from the array\n // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each\n // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root\n function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n }\n\n function loadLocale(name) {\n var oldLocale = null;\n // TODO: Find a better way to register and load all the locales in Node\n if (!locales[name] && (typeof module !== 'undefined') &&\n module && module.exports) {\n try {\n oldLocale = globalLocale._abbr;\n var aliasedRequire = require;\n aliasedRequire('./locale/' + name);\n getSetGlobalLocale(oldLocale);\n } catch (e) {}\n }\n return locales[name];\n }\n\n // This function will load locale and then set the global locale. If\n // no arguments are passed in, it will simply return the current global\n // locale key.\n function getSetGlobalLocale (key, values) {\n var data;\n if (key) {\n if (isUndefined(values)) {\n data = getLocale(key);\n }\n else {\n data = defineLocale(key, values);\n }\n\n if (data) {\n // moment.duration._locale = moment._locale = data;\n globalLocale = data;\n }\n else {\n if ((typeof console !== 'undefined') && console.warn) {\n //warn user if arguments are passed but the locale could not be set\n console.warn('Locale ' + key + ' not found. Did you forget to load it?');\n }\n }\n }\n\n return globalLocale._abbr;\n }\n\n function defineLocale (name, config) {\n if (config !== null) {\n var locale, parentConfig = baseConfig;\n config.abbr = name;\n if (locales[name] != null) {\n deprecateSimple('defineLocaleOverride',\n 'use moment.updateLocale(localeName, config) to change ' +\n 'an existing locale. moment.defineLocale(localeName, ' +\n 'config) should only be used for creating a new locale ' +\n 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');\n parentConfig = locales[name]._config;\n } else if (config.parentLocale != null) {\n if (locales[config.parentLocale] != null) {\n parentConfig = locales[config.parentLocale]._config;\n } else {\n locale = loadLocale(config.parentLocale);\n if (locale != null) {\n parentConfig = locale._config;\n } else {\n if (!localeFamilies[config.parentLocale]) {\n localeFamilies[config.parentLocale] = [];\n }\n localeFamilies[config.parentLocale].push({\n name: name,\n config: config\n });\n return null;\n }\n }\n }\n locales[name] = new Locale(mergeConfigs(parentConfig, config));\n\n if (localeFamilies[name]) {\n localeFamilies[name].forEach(function (x) {\n defineLocale(x.name, x.config);\n });\n }\n\n // backwards compat for now: also set the locale\n // make sure we set the locale AFTER all child locales have been\n // created, so we won't end up with the child locale set.\n getSetGlobalLocale(name);\n\n\n return locales[name];\n } else {\n // useful for testing\n delete locales[name];\n return null;\n }\n }\n\n function updateLocale(name, config) {\n if (config != null) {\n var locale, tmpLocale, parentConfig = baseConfig;\n // MERGE\n tmpLocale = loadLocale(name);\n if (tmpLocale != null) {\n parentConfig = tmpLocale._config;\n }\n config = mergeConfigs(parentConfig, config);\n locale = new Locale(config);\n locale.parentLocale = locales[name];\n locales[name] = locale;\n\n // backwards compat for now: also set the locale\n getSetGlobalLocale(name);\n } else {\n // pass null for config to unupdate, useful for tests\n if (locales[name] != null) {\n if (locales[name].parentLocale != null) {\n locales[name] = locales[name].parentLocale;\n } else if (locales[name] != null) {\n delete locales[name];\n }\n }\n }\n return locales[name];\n }\n\n // returns locale data\n function getLocale (key) {\n var locale;\n\n if (key && key._locale && key._locale._abbr) {\n key = key._locale._abbr;\n }\n\n if (!key) {\n return globalLocale;\n }\n\n if (!isArray(key)) {\n //short-circuit everything else\n locale = loadLocale(key);\n if (locale) {\n return locale;\n }\n key = [key];\n }\n\n return chooseLocale(key);\n }\n\n function listLocales() {\n return keys(locales);\n }\n\n function checkOverflow (m) {\n var overflow;\n var a = m._a;\n\n if (a && getParsingFlags(m).overflow === -2) {\n overflow =\n a[MONTH] < 0 || a[MONTH] > 11 ? MONTH :\n a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE :\n a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :\n a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE :\n a[SECOND] < 0 || a[SECOND] > 59 ? SECOND :\n a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :\n -1;\n\n if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {\n overflow = DATE;\n }\n if (getParsingFlags(m)._overflowWeeks && overflow === -1) {\n overflow = WEEK;\n }\n if (getParsingFlags(m)._overflowWeekday && overflow === -1) {\n overflow = WEEKDAY;\n }\n\n getParsingFlags(m).overflow = overflow;\n }\n\n return m;\n }\n\n // Pick the first defined of two or three arguments.\n function defaults(a, b, c) {\n if (a != null) {\n return a;\n }\n if (b != null) {\n return b;\n }\n return c;\n }\n\n function currentDateArray(config) {\n // hooks is actually the exported moment object\n var nowValue = new Date(hooks.now());\n if (config._useUTC) {\n return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];\n }\n return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];\n }\n\n // convert an array to a date.\n // the array should mirror the parameters below\n // note: all values past the year are optional and will default to the lowest possible value.\n // [year, month, day , hour, minute, second, millisecond]\n function configFromArray (config) {\n var i, date, input = [], currentDate, expectedWeekday, yearToUse;\n\n if (config._d) {\n return;\n }\n\n currentDate = currentDateArray(config);\n\n //compute day of the year from weeks and weekdays\n if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {\n dayOfYearFromWeekInfo(config);\n }\n\n //if the day of the year is set, figure out what it is\n if (config._dayOfYear != null) {\n yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);\n\n if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {\n getParsingFlags(config)._overflowDayOfYear = true;\n }\n\n date = createUTCDate(yearToUse, 0, config._dayOfYear);\n config._a[MONTH] = date.getUTCMonth();\n config._a[DATE] = date.getUTCDate();\n }\n\n // Default to current date.\n // * if no year, month, day of month are given, default to today\n // * if day of month is given, default month and year\n // * if month is given, default only year\n // * if year is given, don't default anything\n for (i = 0; i < 3 && config._a[i] == null; ++i) {\n config._a[i] = input[i] = currentDate[i];\n }\n\n // Zero out whatever was not defaulted, including time\n for (; i < 7; i++) {\n config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];\n }\n\n // Check for 24:00:00.000\n if (config._a[HOUR] === 24 &&\n config._a[MINUTE] === 0 &&\n config._a[SECOND] === 0 &&\n config._a[MILLISECOND] === 0) {\n config._nextDay = true;\n config._a[HOUR] = 0;\n }\n\n config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);\n expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay();\n\n // Apply timezone offset from input. The actual utcOffset can be changed\n // with parseZone.\n if (config._tzm != null) {\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n }\n\n if (config._nextDay) {\n config._a[HOUR] = 24;\n }\n\n // check for mismatching day of week\n if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) {\n getParsingFlags(config).weekdayMismatch = true;\n }\n }\n\n function dayOfYearFromWeekInfo(config) {\n var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow;\n\n w = config._w;\n if (w.GG != null || w.W != null || w.E != null) {\n dow = 1;\n doy = 4;\n\n // TODO: We need to take the current isoWeekYear, but that depends on\n // how we interpret now (local, utc, fixed offset). So create\n // a now version of current config (take local/utc/offset flags, and\n // create now).\n weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);\n week = defaults(w.W, 1);\n weekday = defaults(w.E, 1);\n if (weekday < 1 || weekday > 7) {\n weekdayOverflow = true;\n }\n } else {\n dow = config._locale._week.dow;\n doy = config._locale._week.doy;\n\n var curWeek = weekOfYear(createLocal(), dow, doy);\n\n weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);\n\n // Default to current week.\n week = defaults(w.w, curWeek.week);\n\n if (w.d != null) {\n // weekday -- low day numbers are considered next week\n weekday = w.d;\n if (weekday < 0 || weekday > 6) {\n weekdayOverflow = true;\n }\n } else if (w.e != null) {\n // local weekday -- counting starts from begining of week\n weekday = w.e + dow;\n if (w.e < 0 || w.e > 6) {\n weekdayOverflow = true;\n }\n } else {\n // default to begining of week\n weekday = dow;\n }\n }\n if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {\n getParsingFlags(config)._overflowWeeks = true;\n } else if (weekdayOverflow != null) {\n getParsingFlags(config)._overflowWeekday = true;\n } else {\n temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);\n config._a[YEAR] = temp.year;\n config._dayOfYear = temp.dayOfYear;\n }\n }\n\n // iso 8601 regex\n // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)\n 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)?)?$/;\n var 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)?)?$/;\n\n var tzRegex = /Z|[+-]\\d\\d(?::?\\d\\d)?/;\n\n var isoDates = [\n ['YYYYYY-MM-DD', /[+-]\\d{6}-\\d\\d-\\d\\d/],\n ['YYYY-MM-DD', /\\d{4}-\\d\\d-\\d\\d/],\n ['GGGG-[W]WW-E', /\\d{4}-W\\d\\d-\\d/],\n ['GGGG-[W]WW', /\\d{4}-W\\d\\d/, false],\n ['YYYY-DDD', /\\d{4}-\\d{3}/],\n ['YYYY-MM', /\\d{4}-\\d\\d/, false],\n ['YYYYYYMMDD', /[+-]\\d{10}/],\n ['YYYYMMDD', /\\d{8}/],\n // YYYYMM is NOT allowed by the standard\n ['GGGG[W]WWE', /\\d{4}W\\d{3}/],\n ['GGGG[W]WW', /\\d{4}W\\d{2}/, false],\n ['YYYYDDD', /\\d{7}/]\n ];\n\n // iso time formats and regexes\n var isoTimes = [\n ['HH:mm:ss.SSSS', /\\d\\d:\\d\\d:\\d\\d\\.\\d+/],\n ['HH:mm:ss,SSSS', /\\d\\d:\\d\\d:\\d\\d,\\d+/],\n ['HH:mm:ss', /\\d\\d:\\d\\d:\\d\\d/],\n ['HH:mm', /\\d\\d:\\d\\d/],\n ['HHmmss.SSSS', /\\d\\d\\d\\d\\d\\d\\.\\d+/],\n ['HHmmss,SSSS', /\\d\\d\\d\\d\\d\\d,\\d+/],\n ['HHmmss', /\\d\\d\\d\\d\\d\\d/],\n ['HHmm', /\\d\\d\\d\\d/],\n ['HH', /\\d\\d/]\n ];\n\n var aspNetJsonRegex = /^\\/?Date\\((\\-?\\d+)/i;\n\n // date from iso format\n function configFromISO(config) {\n var i, l,\n string = config._i,\n match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),\n allowTime, dateFormat, timeFormat, tzFormat;\n\n if (match) {\n getParsingFlags(config).iso = true;\n\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(match[1])) {\n dateFormat = isoDates[i][0];\n allowTime = isoDates[i][2] !== false;\n break;\n }\n }\n if (dateFormat == null) {\n config._isValid = false;\n return;\n }\n if (match[3]) {\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(match[3])) {\n // match[2] should be 'T' or space\n timeFormat = (match[2] || ' ') + isoTimes[i][0];\n break;\n }\n }\n if (timeFormat == null) {\n config._isValid = false;\n return;\n }\n }\n if (!allowTime && timeFormat != null) {\n config._isValid = false;\n return;\n }\n if (match[4]) {\n if (tzRegex.exec(match[4])) {\n tzFormat = 'Z';\n } else {\n config._isValid = false;\n return;\n }\n }\n config._f = dateFormat + (timeFormat || '') + (tzFormat || '');\n configFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n }\n\n // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3\n 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}))$/;\n\n function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {\n var result = [\n untruncateYear(yearStr),\n defaultLocaleMonthsShort.indexOf(monthStr),\n parseInt(dayStr, 10),\n parseInt(hourStr, 10),\n parseInt(minuteStr, 10)\n ];\n\n if (secondStr) {\n result.push(parseInt(secondStr, 10));\n }\n\n return result;\n }\n\n function untruncateYear(yearStr) {\n var year = parseInt(yearStr, 10);\n if (year <= 49) {\n return 2000 + year;\n } else if (year <= 999) {\n return 1900 + year;\n }\n return year;\n }\n\n function preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s.replace(/\\([^)]*\\)|[\\n\\t]/g, ' ').replace(/(\\s\\s+)/g, ' ').replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n }\n\n function checkWeekday(weekdayStr, parsedInput, config) {\n if (weekdayStr) {\n // TODO: Replace the vanilla JS Date object with an indepentent day-of-week check.\n var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),\n weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();\n if (weekdayProvided !== weekdayActual) {\n getParsingFlags(config).weekdayMismatch = true;\n config._isValid = false;\n return false;\n }\n }\n return true;\n }\n\n var obsOffsets = {\n UT: 0,\n GMT: 0,\n EDT: -4 * 60,\n EST: -5 * 60,\n CDT: -5 * 60,\n CST: -6 * 60,\n MDT: -6 * 60,\n MST: -7 * 60,\n PDT: -7 * 60,\n PST: -8 * 60\n };\n\n function calculateOffset(obsOffset, militaryOffset, numOffset) {\n if (obsOffset) {\n return obsOffsets[obsOffset];\n } else if (militaryOffset) {\n // the only allowed military tz is Z\n return 0;\n } else {\n var hm = parseInt(numOffset, 10);\n var m = hm % 100, h = (hm - m) / 100;\n return h * 60 + m;\n }\n }\n\n // date and time from ref 2822 format\n function configFromRFC2822(config) {\n var match = rfc2822.exec(preprocessRFC2822(config._i));\n if (match) {\n var parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);\n if (!checkWeekday(match[1], parsedArray, config)) {\n return;\n }\n\n config._a = parsedArray;\n config._tzm = calculateOffset(match[8], match[9], match[10]);\n\n config._d = createUTCDate.apply(null, config._a);\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n\n getParsingFlags(config).rfc2822 = true;\n } else {\n config._isValid = false;\n }\n }\n\n // date from iso format or fallback\n function configFromString(config) {\n var matched = aspNetJsonRegex.exec(config._i);\n\n if (matched !== null) {\n config._d = new Date(+matched[1]);\n return;\n }\n\n configFromISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n }\n\n configFromRFC2822(config);\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n }\n\n // Final attempt, use Input Fallback\n hooks.createFromInputFallback(config);\n }\n\n hooks.createFromInputFallback = deprecate(\n 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +\n 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +\n 'discouraged and will be removed in an upcoming major release. Please refer to ' +\n 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',\n function (config) {\n config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));\n }\n );\n\n // constant that refers to the ISO standard\n hooks.ISO_8601 = function () {};\n\n // constant that refers to the RFC 2822 form\n hooks.RFC_2822 = function () {};\n\n // date from string and format string\n function configFromStringAndFormat(config) {\n // TODO: Move this to another part of the creation flow to prevent circular deps\n if (config._f === hooks.ISO_8601) {\n configFromISO(config);\n return;\n }\n if (config._f === hooks.RFC_2822) {\n configFromRFC2822(config);\n return;\n }\n config._a = [];\n getParsingFlags(config).empty = true;\n\n // This array is used to make a Date, either with `new Date` or `Date.UTC`\n var string = '' + config._i,\n i, parsedInput, tokens, token, skipped,\n stringLength = string.length,\n totalParsedInputLength = 0;\n\n tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];\n\n for (i = 0; i < tokens.length; i++) {\n token = tokens[i];\n parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];\n // console.log('token', token, 'parsedInput', parsedInput,\n // 'regex', getParseRegexForToken(token, config));\n if (parsedInput) {\n skipped = string.substr(0, string.indexOf(parsedInput));\n if (skipped.length > 0) {\n getParsingFlags(config).unusedInput.push(skipped);\n }\n string = string.slice(string.indexOf(parsedInput) + parsedInput.length);\n totalParsedInputLength += parsedInput.length;\n }\n // don't parse if it's not a known token\n if (formatTokenFunctions[token]) {\n if (parsedInput) {\n getParsingFlags(config).empty = false;\n }\n else {\n getParsingFlags(config).unusedTokens.push(token);\n }\n addTimeToArrayFromToken(token, parsedInput, config);\n }\n else if (config._strict && !parsedInput) {\n getParsingFlags(config).unusedTokens.push(token);\n }\n }\n\n // add remaining unparsed input length to the string\n getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;\n if (string.length > 0) {\n getParsingFlags(config).unusedInput.push(string);\n }\n\n // clear _12h flag if hour is <= 12\n if (config._a[HOUR] <= 12 &&\n getParsingFlags(config).bigHour === true &&\n config._a[HOUR] > 0) {\n getParsingFlags(config).bigHour = undefined;\n }\n\n getParsingFlags(config).parsedDateParts = config._a.slice(0);\n getParsingFlags(config).meridiem = config._meridiem;\n // handle meridiem\n config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);\n\n configFromArray(config);\n checkOverflow(config);\n }\n\n\n function meridiemFixWrap (locale, hour, meridiem) {\n var isPm;\n\n if (meridiem == null) {\n // nothing to do\n return hour;\n }\n if (locale.meridiemHour != null) {\n return locale.meridiemHour(hour, meridiem);\n } else if (locale.isPM != null) {\n // Fallback\n isPm = locale.isPM(meridiem);\n if (isPm && hour < 12) {\n hour += 12;\n }\n if (!isPm && hour === 12) {\n hour = 0;\n }\n return hour;\n } else {\n // this is not supposed to happen\n return hour;\n }\n }\n\n // date from string and array of format strings\n function configFromStringAndArray(config) {\n var tempConfig,\n bestMoment,\n\n scoreToBeat,\n i,\n currentScore;\n\n if (config._f.length === 0) {\n getParsingFlags(config).invalidFormat = true;\n config._d = new Date(NaN);\n return;\n }\n\n for (i = 0; i < config._f.length; i++) {\n currentScore = 0;\n tempConfig = copyConfig({}, config);\n if (config._useUTC != null) {\n tempConfig._useUTC = config._useUTC;\n }\n tempConfig._f = config._f[i];\n configFromStringAndFormat(tempConfig);\n\n if (!isValid(tempConfig)) {\n continue;\n }\n\n // if there is any input that was not parsed add a penalty for that format\n currentScore += getParsingFlags(tempConfig).charsLeftOver;\n\n //or tokens\n currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;\n\n getParsingFlags(tempConfig).score = currentScore;\n\n if (scoreToBeat == null || currentScore < scoreToBeat) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n }\n }\n\n extend(config, bestMoment || tempConfig);\n }\n\n function configFromObject(config) {\n if (config._d) {\n return;\n }\n\n var i = normalizeObjectUnits(config._i);\n config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {\n return obj && parseInt(obj, 10);\n });\n\n configFromArray(config);\n }\n\n function createFromConfig (config) {\n var res = new Moment(checkOverflow(prepareConfig(config)));\n if (res._nextDay) {\n // Adding is smart enough around DST\n res.add(1, 'd');\n res._nextDay = undefined;\n }\n\n return res;\n }\n\n function prepareConfig (config) {\n var input = config._i,\n format = config._f;\n\n config._locale = config._locale || getLocale(config._l);\n\n if (input === null || (format === undefined && input === '')) {\n return createInvalid({nullInput: true});\n }\n\n if (typeof input === 'string') {\n config._i = input = config._locale.preparse(input);\n }\n\n if (isMoment(input)) {\n return new Moment(checkOverflow(input));\n } else if (isDate(input)) {\n config._d = input;\n } else if (isArray(format)) {\n configFromStringAndArray(config);\n } else if (format) {\n configFromStringAndFormat(config);\n } else {\n configFromInput(config);\n }\n\n if (!isValid(config)) {\n config._d = null;\n }\n\n return config;\n }\n\n function configFromInput(config) {\n var input = config._i;\n if (isUndefined(input)) {\n config._d = new Date(hooks.now());\n } else if (isDate(input)) {\n config._d = new Date(input.valueOf());\n } else if (typeof input === 'string') {\n configFromString(config);\n } else if (isArray(input)) {\n config._a = map(input.slice(0), function (obj) {\n return parseInt(obj, 10);\n });\n configFromArray(config);\n } else if (isObject(input)) {\n configFromObject(config);\n } else if (isNumber(input)) {\n // from milliseconds\n config._d = new Date(input);\n } else {\n hooks.createFromInputFallback(config);\n }\n }\n\n function createLocalOrUTC (input, format, locale, strict, isUTC) {\n var c = {};\n\n if (locale === true || locale === false) {\n strict = locale;\n locale = undefined;\n }\n\n if ((isObject(input) && isObjectEmpty(input)) ||\n (isArray(input) && input.length === 0)) {\n input = undefined;\n }\n // object construction must be done this way.\n // https://github.com/moment/moment/issues/1423\n c._isAMomentObject = true;\n c._useUTC = c._isUTC = isUTC;\n c._l = locale;\n c._i = input;\n c._f = format;\n c._strict = strict;\n\n return createFromConfig(c);\n }\n\n function createLocal (input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, false);\n }\n\n var prototypeMin = deprecate(\n 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',\n function () {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) {\n return other < this ? this : other;\n } else {\n return createInvalid();\n }\n }\n );\n\n var prototypeMax = deprecate(\n 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',\n function () {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) {\n return other > this ? this : other;\n } else {\n return createInvalid();\n }\n }\n );\n\n // Pick a moment m from moments so that m[fn](other) is true for all\n // other. This relies on the function fn to be transitive.\n //\n // moments should either be an array of moment objects or an array, whose\n // first element is an array of moment objects.\n function pickBy(fn, moments) {\n var res, i;\n if (moments.length === 1 && isArray(moments[0])) {\n moments = moments[0];\n }\n if (!moments.length) {\n return createLocal();\n }\n res = moments[0];\n for (i = 1; i < moments.length; ++i) {\n if (!moments[i].isValid() || moments[i][fn](res)) {\n res = moments[i];\n }\n }\n return res;\n }\n\n // TODO: Use [].sort instead?\n function min () {\n var args = [].slice.call(arguments, 0);\n\n return pickBy('isBefore', args);\n }\n\n function max () {\n var args = [].slice.call(arguments, 0);\n\n return pickBy('isAfter', args);\n }\n\n var now = function () {\n return Date.now ? Date.now() : +(new Date());\n };\n\n var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];\n\n function isDurationValid(m) {\n for (var key in m) {\n if (!(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) {\n return false;\n }\n }\n\n var unitHasDecimal = false;\n for (var i = 0; i < ordering.length; ++i) {\n if (m[ordering[i]]) {\n if (unitHasDecimal) {\n return false; // only allow non-integers for smallest unit\n }\n if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {\n unitHasDecimal = true;\n }\n }\n }\n\n return true;\n }\n\n function isValid$1() {\n return this._isValid;\n }\n\n function createInvalid$1() {\n return createDuration(NaN);\n }\n\n function Duration (duration) {\n var normalizedInput = normalizeObjectUnits(duration),\n years = normalizedInput.year || 0,\n quarters = normalizedInput.quarter || 0,\n months = normalizedInput.month || 0,\n weeks = normalizedInput.week || 0,\n days = normalizedInput.day || 0,\n hours = normalizedInput.hour || 0,\n minutes = normalizedInput.minute || 0,\n seconds = normalizedInput.second || 0,\n milliseconds = normalizedInput.millisecond || 0;\n\n this._isValid = isDurationValid(normalizedInput);\n\n // representation for dateAddRemove\n this._milliseconds = +milliseconds +\n seconds * 1e3 + // 1000\n minutes * 6e4 + // 1000 * 60\n hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978\n // Because of dateAddRemove treats 24 hours as different from a\n // day when working around DST, we need to store them separately\n this._days = +days +\n weeks * 7;\n // It is impossible to translate months into days without knowing\n // which months you are are talking about, so we have to store\n // it separately.\n this._months = +months +\n quarters * 3 +\n years * 12;\n\n this._data = {};\n\n this._locale = getLocale();\n\n this._bubble();\n }\n\n function isDuration (obj) {\n return obj instanceof Duration;\n }\n\n function absRound (number) {\n if (number < 0) {\n return Math.round(-1 * number) * -1;\n } else {\n return Math.round(number);\n }\n }\n\n // FORMATTING\n\n function offset (token, separator) {\n addFormatToken(token, 0, 0, function () {\n var offset = this.utcOffset();\n var sign = '+';\n if (offset < 0) {\n offset = -offset;\n sign = '-';\n }\n return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);\n });\n }\n\n offset('Z', ':');\n offset('ZZ', '');\n\n // PARSING\n\n addRegexToken('Z', matchShortOffset);\n addRegexToken('ZZ', matchShortOffset);\n addParseToken(['Z', 'ZZ'], function (input, array, config) {\n config._useUTC = true;\n config._tzm = offsetFromString(matchShortOffset, input);\n });\n\n // HELPERS\n\n // timezone chunker\n // '+10:00' > ['10', '00']\n // '-1530' > ['-15', '30']\n var chunkOffset = /([\\+\\-]|\\d\\d)/gi;\n\n function offsetFromString(matcher, string) {\n var matches = (string || '').match(matcher);\n\n if (matches === null) {\n return null;\n }\n\n var chunk = matches[matches.length - 1] || [];\n var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];\n var minutes = +(parts[1] * 60) + toInt(parts[2]);\n\n return minutes === 0 ?\n 0 :\n parts[0] === '+' ? minutes : -minutes;\n }\n\n // Return a moment from input, that is local/utc/zone equivalent to model.\n function cloneWithOffset(input, model) {\n var res, diff;\n if (model._isUTC) {\n res = model.clone();\n diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();\n // Use low-level api, because this fn is low-level api.\n res._d.setTime(res._d.valueOf() + diff);\n hooks.updateOffset(res, false);\n return res;\n } else {\n return createLocal(input).local();\n }\n }\n\n function getDateOffset (m) {\n // On Firefox.24 Date#getTimezoneOffset returns a floating point.\n // https://github.com/moment/moment/pull/1871\n return -Math.round(m._d.getTimezoneOffset() / 15) * 15;\n }\n\n // HOOKS\n\n // This function will be called whenever a moment is mutated.\n // It is intended to keep the offset in sync with the timezone.\n hooks.updateOffset = function () {};\n\n // MOMENTS\n\n // keepLocalTime = true means only change the timezone, without\n // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->\n // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset\n // +0200, so we adjust the time as needed, to be valid.\n //\n // Keeping the time actually adds/subtracts (one hour)\n // from the actual represented time. That is why we call updateOffset\n // a second time. In case it wants us to change the offset again\n // _changeInProgress == true case, then we have to adjust, because\n // there is no such time in the given timezone.\n function getSetOffset (input, keepLocalTime, keepMinutes) {\n var offset = this._offset || 0,\n localAdjust;\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n if (input != null) {\n if (typeof input === 'string') {\n input = offsetFromString(matchShortOffset, input);\n if (input === null) {\n return this;\n }\n } else if (Math.abs(input) < 16 && !keepMinutes) {\n input = input * 60;\n }\n if (!this._isUTC && keepLocalTime) {\n localAdjust = getDateOffset(this);\n }\n this._offset = input;\n this._isUTC = true;\n if (localAdjust != null) {\n this.add(localAdjust, 'm');\n }\n if (offset !== input) {\n if (!keepLocalTime || this._changeInProgress) {\n addSubtract(this, createDuration(input - offset, 'm'), 1, false);\n } else if (!this._changeInProgress) {\n this._changeInProgress = true;\n hooks.updateOffset(this, true);\n this._changeInProgress = null;\n }\n }\n return this;\n } else {\n return this._isUTC ? offset : getDateOffset(this);\n }\n }\n\n function getSetZone (input, keepLocalTime) {\n if (input != null) {\n if (typeof input !== 'string') {\n input = -input;\n }\n\n this.utcOffset(input, keepLocalTime);\n\n return this;\n } else {\n return -this.utcOffset();\n }\n }\n\n function setOffsetToUTC (keepLocalTime) {\n return this.utcOffset(0, keepLocalTime);\n }\n\n function setOffsetToLocal (keepLocalTime) {\n if (this._isUTC) {\n this.utcOffset(0, keepLocalTime);\n this._isUTC = false;\n\n if (keepLocalTime) {\n this.subtract(getDateOffset(this), 'm');\n }\n }\n return this;\n }\n\n function setOffsetToParsedOffset () {\n if (this._tzm != null) {\n this.utcOffset(this._tzm, false, true);\n } else if (typeof this._i === 'string') {\n var tZone = offsetFromString(matchOffset, this._i);\n if (tZone != null) {\n this.utcOffset(tZone);\n }\n else {\n this.utcOffset(0, true);\n }\n }\n return this;\n }\n\n function hasAlignedHourOffset (input) {\n if (!this.isValid()) {\n return false;\n }\n input = input ? createLocal(input).utcOffset() : 0;\n\n return (this.utcOffset() - input) % 60 === 0;\n }\n\n function isDaylightSavingTime () {\n return (\n this.utcOffset() > this.clone().month(0).utcOffset() ||\n this.utcOffset() > this.clone().month(5).utcOffset()\n );\n }\n\n function isDaylightSavingTimeShifted () {\n if (!isUndefined(this._isDSTShifted)) {\n return this._isDSTShifted;\n }\n\n var c = {};\n\n copyConfig(c, this);\n c = prepareConfig(c);\n\n if (c._a) {\n var other = c._isUTC ? createUTC(c._a) : createLocal(c._a);\n this._isDSTShifted = this.isValid() &&\n compareArrays(c._a, other.toArray()) > 0;\n } else {\n this._isDSTShifted = false;\n }\n\n return this._isDSTShifted;\n }\n\n function isLocal () {\n return this.isValid() ? !this._isUTC : false;\n }\n\n function isUtcOffset () {\n return this.isValid() ? this._isUTC : false;\n }\n\n function isUtc () {\n return this.isValid() ? this._isUTC && this._offset === 0 : false;\n }\n\n // ASP.NET json date format regex\n var aspNetRegex = /^(\\-|\\+)?(?:(\\d*)[. ])?(\\d+)\\:(\\d+)(?:\\:(\\d+)(\\.\\d*)?)?$/;\n\n // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html\n // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere\n // and further modified to allow for strings containing both week and day\n var isoRegex = /^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;\n\n function createDuration (input, key) {\n var duration = input,\n // matching against regexp is expensive, do it on demand\n match = null,\n sign,\n ret,\n diffRes;\n\n if (isDuration(input)) {\n duration = {\n ms : input._milliseconds,\n d : input._days,\n M : input._months\n };\n } else if (isNumber(input)) {\n duration = {};\n if (key) {\n duration[key] = input;\n } else {\n duration.milliseconds = input;\n }\n } else if (!!(match = aspNetRegex.exec(input))) {\n sign = (match[1] === '-') ? -1 : 1;\n duration = {\n y : 0,\n d : toInt(match[DATE]) * sign,\n h : toInt(match[HOUR]) * sign,\n m : toInt(match[MINUTE]) * sign,\n s : toInt(match[SECOND]) * sign,\n ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match\n };\n } else if (!!(match = isoRegex.exec(input))) {\n sign = (match[1] === '-') ? -1 : (match[1] === '+') ? 1 : 1;\n duration = {\n y : parseIso(match[2], sign),\n M : parseIso(match[3], sign),\n w : parseIso(match[4], sign),\n d : parseIso(match[5], sign),\n h : parseIso(match[6], sign),\n m : parseIso(match[7], sign),\n s : parseIso(match[8], sign)\n };\n } else if (duration == null) {// checks for null or undefined\n duration = {};\n } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {\n diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));\n\n duration = {};\n duration.ms = diffRes.milliseconds;\n duration.M = diffRes.months;\n }\n\n ret = new Duration(duration);\n\n if (isDuration(input) && hasOwnProp(input, '_locale')) {\n ret._locale = input._locale;\n }\n\n return ret;\n }\n\n createDuration.fn = Duration.prototype;\n createDuration.invalid = createInvalid$1;\n\n function parseIso (inp, sign) {\n // We'd normally use ~~inp for this, but unfortunately it also\n // converts floats to ints.\n // inp may be undefined, so careful calling replace on it.\n var res = inp && parseFloat(inp.replace(',', '.'));\n // apply sign while we're at it\n return (isNaN(res) ? 0 : res) * sign;\n }\n\n function positiveMomentsDifference(base, other) {\n var res = {milliseconds: 0, months: 0};\n\n res.months = other.month() - base.month() +\n (other.year() - base.year()) * 12;\n if (base.clone().add(res.months, 'M').isAfter(other)) {\n --res.months;\n }\n\n res.milliseconds = +other - +(base.clone().add(res.months, 'M'));\n\n return res;\n }\n\n function momentsDifference(base, other) {\n var res;\n if (!(base.isValid() && other.isValid())) {\n return {milliseconds: 0, months: 0};\n }\n\n other = cloneWithOffset(other, base);\n if (base.isBefore(other)) {\n res = positiveMomentsDifference(base, other);\n } else {\n res = positiveMomentsDifference(other, base);\n res.milliseconds = -res.milliseconds;\n res.months = -res.months;\n }\n\n return res;\n }\n\n // TODO: remove 'name' arg after deprecation is removed\n function createAdder(direction, name) {\n return function (val, period) {\n var dur, tmp;\n //invert the arguments, but complain about it\n if (period !== null && !isNaN(+period)) {\n deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' +\n 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');\n tmp = val; val = period; period = tmp;\n }\n\n val = typeof val === 'string' ? +val : val;\n dur = createDuration(val, period);\n addSubtract(this, dur, direction);\n return this;\n };\n }\n\n function addSubtract (mom, duration, isAdding, updateOffset) {\n var milliseconds = duration._milliseconds,\n days = absRound(duration._days),\n months = absRound(duration._months);\n\n if (!mom.isValid()) {\n // No op\n return;\n }\n\n updateOffset = updateOffset == null ? true : updateOffset;\n\n if (months) {\n setMonth(mom, get(mom, 'Month') + months * isAdding);\n }\n if (days) {\n set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);\n }\n if (milliseconds) {\n mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);\n }\n if (updateOffset) {\n hooks.updateOffset(mom, days || months);\n }\n }\n\n var add = createAdder(1, 'add');\n var subtract = createAdder(-1, 'subtract');\n\n function getCalendarFormat(myMoment, now) {\n var diff = myMoment.diff(now, 'days', true);\n return diff < -6 ? 'sameElse' :\n diff < -1 ? 'lastWeek' :\n diff < 0 ? 'lastDay' :\n diff < 1 ? 'sameDay' :\n diff < 2 ? 'nextDay' :\n diff < 7 ? 'nextWeek' : 'sameElse';\n }\n\n function calendar$1 (time, formats) {\n // We want to compare the start of today, vs this.\n // Getting start-of-today depends on whether we're local/utc/offset or not.\n var now = time || createLocal(),\n sod = cloneWithOffset(now, this).startOf('day'),\n format = hooks.calendarFormat(this, sod) || 'sameElse';\n\n var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);\n\n return this.format(output || this.localeData().calendar(format, this, createLocal(now)));\n }\n\n function clone () {\n return new Moment(this);\n }\n\n function isAfter (input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');\n if (units === 'millisecond') {\n return this.valueOf() > localInput.valueOf();\n } else {\n return localInput.valueOf() < this.clone().startOf(units).valueOf();\n }\n }\n\n function isBefore (input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');\n if (units === 'millisecond') {\n return this.valueOf() < localInput.valueOf();\n } else {\n return this.clone().endOf(units).valueOf() < localInput.valueOf();\n }\n }\n\n function isBetween (from, to, units, inclusivity) {\n inclusivity = inclusivity || '()';\n return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) &&\n (inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units));\n }\n\n function isSame (input, units) {\n var localInput = isMoment(input) ? input : createLocal(input),\n inputMs;\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units || 'millisecond');\n if (units === 'millisecond') {\n return this.valueOf() === localInput.valueOf();\n } else {\n inputMs = localInput.valueOf();\n return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();\n }\n }\n\n function isSameOrAfter (input, units) {\n return this.isSame(input, units) || this.isAfter(input,units);\n }\n\n function isSameOrBefore (input, units) {\n return this.isSame(input, units) || this.isBefore(input,units);\n }\n\n function diff (input, units, asFloat) {\n var that,\n zoneDelta,\n output;\n\n if (!this.isValid()) {\n return NaN;\n }\n\n that = cloneWithOffset(input, this);\n\n if (!that.isValid()) {\n return NaN;\n }\n\n zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;\n\n units = normalizeUnits(units);\n\n switch (units) {\n case 'year': output = monthDiff(this, that) / 12; break;\n case 'month': output = monthDiff(this, that); break;\n case 'quarter': output = monthDiff(this, that) / 3; break;\n case 'second': output = (this - that) / 1e3; break; // 1000\n case 'minute': output = (this - that) / 6e4; break; // 1000 * 60\n case 'hour': output = (this - that) / 36e5; break; // 1000 * 60 * 60\n case 'day': output = (this - that - zoneDelta) / 864e5; break; // 1000 * 60 * 60 * 24, negate dst\n case 'week': output = (this - that - zoneDelta) / 6048e5; break; // 1000 * 60 * 60 * 24 * 7, negate dst\n default: output = this - that;\n }\n\n return asFloat ? output : absFloor(output);\n }\n\n function monthDiff (a, b) {\n // difference in months\n var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),\n // b is in (anchor - 1 month, anchor + 1 month)\n anchor = a.clone().add(wholeMonthDiff, 'months'),\n anchor2, adjust;\n\n if (b - anchor < 0) {\n anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');\n // linear across the month\n adjust = (b - anchor) / (anchor - anchor2);\n } else {\n anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');\n // linear across the month\n adjust = (b - anchor) / (anchor2 - anchor);\n }\n\n //check for negative zero, return zero if negative zero\n return -(wholeMonthDiff + adjust) || 0;\n }\n\n hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';\n hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';\n\n function toString () {\n return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');\n }\n\n function toISOString(keepOffset) {\n if (!this.isValid()) {\n return null;\n }\n var utc = keepOffset !== true;\n var m = utc ? this.clone().utc() : this;\n if (m.year() < 0 || m.year() > 9999) {\n return formatMoment(m, utc ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ');\n }\n if (isFunction(Date.prototype.toISOString)) {\n // native implementation is ~50x faster, use it when we can\n if (utc) {\n return this.toDate().toISOString();\n } else {\n return new Date(this.valueOf() + this.utcOffset() * 60 * 1000).toISOString().replace('Z', formatMoment(m, 'Z'));\n }\n }\n return formatMoment(m, utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ');\n }\n\n /**\n * Return a human readable representation of a moment that can\n * also be evaluated to get a new moment which is the same\n *\n * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects\n */\n function inspect () {\n if (!this.isValid()) {\n return 'moment.invalid(/* ' + this._i + ' */)';\n }\n var func = 'moment';\n var zone = '';\n if (!this.isLocal()) {\n func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';\n zone = 'Z';\n }\n var prefix = '[' + func + '(\"]';\n var year = (0 <= this.year() && this.year() <= 9999) ? 'YYYY' : 'YYYYYY';\n var datetime = '-MM-DD[T]HH:mm:ss.SSS';\n var suffix = zone + '[\")]';\n\n return this.format(prefix + year + datetime + suffix);\n }\n\n function format (inputString) {\n if (!inputString) {\n inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;\n }\n var output = formatMoment(this, inputString);\n return this.localeData().postformat(output);\n }\n\n function from (time, withoutSuffix) {\n if (this.isValid() &&\n ((isMoment(time) && time.isValid()) ||\n createLocal(time).isValid())) {\n return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n }\n\n function fromNow (withoutSuffix) {\n return this.from(createLocal(), withoutSuffix);\n }\n\n function to (time, withoutSuffix) {\n if (this.isValid() &&\n ((isMoment(time) && time.isValid()) ||\n createLocal(time).isValid())) {\n return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n }\n\n function toNow (withoutSuffix) {\n return this.to(createLocal(), withoutSuffix);\n }\n\n // If passed a locale key, it will set the locale for this\n // instance. Otherwise, it will return the locale configuration\n // variables for this instance.\n function locale (key) {\n var newLocaleData;\n\n if (key === undefined) {\n return this._locale._abbr;\n } else {\n newLocaleData = getLocale(key);\n if (newLocaleData != null) {\n this._locale = newLocaleData;\n }\n return this;\n }\n }\n\n var lang = deprecate(\n 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',\n function (key) {\n if (key === undefined) {\n return this.localeData();\n } else {\n return this.locale(key);\n }\n }\n );\n\n function localeData () {\n return this._locale;\n }\n\n function startOf (units) {\n units = normalizeUnits(units);\n // the following switch intentionally omits break keywords\n // to utilize falling through the cases.\n switch (units) {\n case 'year':\n this.month(0);\n /* falls through */\n case 'quarter':\n case 'month':\n this.date(1);\n /* falls through */\n case 'week':\n case 'isoWeek':\n case 'day':\n case 'date':\n this.hours(0);\n /* falls through */\n case 'hour':\n this.minutes(0);\n /* falls through */\n case 'minute':\n this.seconds(0);\n /* falls through */\n case 'second':\n this.milliseconds(0);\n }\n\n // weeks are a special case\n if (units === 'week') {\n this.weekday(0);\n }\n if (units === 'isoWeek') {\n this.isoWeekday(1);\n }\n\n // quarters are also special\n if (units === 'quarter') {\n this.month(Math.floor(this.month() / 3) * 3);\n }\n\n return this;\n }\n\n function endOf (units) {\n units = normalizeUnits(units);\n if (units === undefined || units === 'millisecond') {\n return this;\n }\n\n // 'date' is an alias for 'day', so it should be considered as such.\n if (units === 'date') {\n units = 'day';\n }\n\n return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');\n }\n\n function valueOf () {\n return this._d.valueOf() - ((this._offset || 0) * 60000);\n }\n\n function unix () {\n return Math.floor(this.valueOf() / 1000);\n }\n\n function toDate () {\n return new Date(this.valueOf());\n }\n\n function toArray () {\n var m = this;\n return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];\n }\n\n function toObject () {\n var m = this;\n return {\n years: m.year(),\n months: m.month(),\n date: m.date(),\n hours: m.hours(),\n minutes: m.minutes(),\n seconds: m.seconds(),\n milliseconds: m.milliseconds()\n };\n }\n\n function toJSON () {\n // new Date(NaN).toJSON() === null\n return this.isValid() ? this.toISOString() : null;\n }\n\n function isValid$2 () {\n return isValid(this);\n }\n\n function parsingFlags () {\n return extend({}, getParsingFlags(this));\n }\n\n function invalidAt () {\n return getParsingFlags(this).overflow;\n }\n\n function creationData() {\n return {\n input: this._i,\n format: this._f,\n locale: this._locale,\n isUTC: this._isUTC,\n strict: this._strict\n };\n }\n\n // FORMATTING\n\n addFormatToken(0, ['gg', 2], 0, function () {\n return this.weekYear() % 100;\n });\n\n addFormatToken(0, ['GG', 2], 0, function () {\n return this.isoWeekYear() % 100;\n });\n\n function addWeekYearFormatToken (token, getter) {\n addFormatToken(0, [token, token.length], 0, getter);\n }\n\n addWeekYearFormatToken('gggg', 'weekYear');\n addWeekYearFormatToken('ggggg', 'weekYear');\n addWeekYearFormatToken('GGGG', 'isoWeekYear');\n addWeekYearFormatToken('GGGGG', 'isoWeekYear');\n\n // ALIASES\n\n addUnitAlias('weekYear', 'gg');\n addUnitAlias('isoWeekYear', 'GG');\n\n // PRIORITY\n\n addUnitPriority('weekYear', 1);\n addUnitPriority('isoWeekYear', 1);\n\n\n // PARSING\n\n addRegexToken('G', matchSigned);\n addRegexToken('g', matchSigned);\n addRegexToken('GG', match1to2, match2);\n addRegexToken('gg', match1to2, match2);\n addRegexToken('GGGG', match1to4, match4);\n addRegexToken('gggg', match1to4, match4);\n addRegexToken('GGGGG', match1to6, match6);\n addRegexToken('ggggg', match1to6, match6);\n\n addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {\n week[token.substr(0, 2)] = toInt(input);\n });\n\n addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {\n week[token] = hooks.parseTwoDigitYear(input);\n });\n\n // MOMENTS\n\n function getSetWeekYear (input) {\n return getSetWeekYearHelper.call(this,\n input,\n this.week(),\n this.weekday(),\n this.localeData()._week.dow,\n this.localeData()._week.doy);\n }\n\n function getSetISOWeekYear (input) {\n return getSetWeekYearHelper.call(this,\n input, this.isoWeek(), this.isoWeekday(), 1, 4);\n }\n\n function getISOWeeksInYear () {\n return weeksInYear(this.year(), 1, 4);\n }\n\n function getWeeksInYear () {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);\n }\n\n function getSetWeekYearHelper(input, week, weekday, dow, doy) {\n var weeksTarget;\n if (input == null) {\n return weekOfYear(this, dow, doy).year;\n } else {\n weeksTarget = weeksInYear(input, dow, doy);\n if (week > weeksTarget) {\n week = weeksTarget;\n }\n return setWeekAll.call(this, input, week, weekday, dow, doy);\n }\n }\n\n function setWeekAll(weekYear, week, weekday, dow, doy) {\n var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),\n date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);\n\n this.year(date.getUTCFullYear());\n this.month(date.getUTCMonth());\n this.date(date.getUTCDate());\n return this;\n }\n\n // FORMATTING\n\n addFormatToken('Q', 0, 'Qo', 'quarter');\n\n // ALIASES\n\n addUnitAlias('quarter', 'Q');\n\n // PRIORITY\n\n addUnitPriority('quarter', 7);\n\n // PARSING\n\n addRegexToken('Q', match1);\n addParseToken('Q', function (input, array) {\n array[MONTH] = (toInt(input) - 1) * 3;\n });\n\n // MOMENTS\n\n function getSetQuarter (input) {\n return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);\n }\n\n // FORMATTING\n\n addFormatToken('D', ['DD', 2], 'Do', 'date');\n\n // ALIASES\n\n addUnitAlias('date', 'D');\n\n // PRIORITY\n addUnitPriority('date', 9);\n\n // PARSING\n\n addRegexToken('D', match1to2);\n addRegexToken('DD', match1to2, match2);\n addRegexToken('Do', function (isStrict, locale) {\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n return isStrict ?\n (locale._dayOfMonthOrdinalParse || locale._ordinalParse) :\n locale._dayOfMonthOrdinalParseLenient;\n });\n\n addParseToken(['D', 'DD'], DATE);\n addParseToken('Do', function (input, array) {\n array[DATE] = toInt(input.match(match1to2)[0]);\n });\n\n // MOMENTS\n\n var getSetDayOfMonth = makeGetSet('Date', true);\n\n // FORMATTING\n\n addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');\n\n // ALIASES\n\n addUnitAlias('dayOfYear', 'DDD');\n\n // PRIORITY\n addUnitPriority('dayOfYear', 4);\n\n // PARSING\n\n addRegexToken('DDD', match1to3);\n addRegexToken('DDDD', match3);\n addParseToken(['DDD', 'DDDD'], function (input, array, config) {\n config._dayOfYear = toInt(input);\n });\n\n // HELPERS\n\n // MOMENTS\n\n function getSetDayOfYear (input) {\n var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;\n return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');\n }\n\n // FORMATTING\n\n addFormatToken('m', ['mm', 2], 0, 'minute');\n\n // ALIASES\n\n addUnitAlias('minute', 'm');\n\n // PRIORITY\n\n addUnitPriority('minute', 14);\n\n // PARSING\n\n addRegexToken('m', match1to2);\n addRegexToken('mm', match1to2, match2);\n addParseToken(['m', 'mm'], MINUTE);\n\n // MOMENTS\n\n var getSetMinute = makeGetSet('Minutes', false);\n\n // FORMATTING\n\n addFormatToken('s', ['ss', 2], 0, 'second');\n\n // ALIASES\n\n addUnitAlias('second', 's');\n\n // PRIORITY\n\n addUnitPriority('second', 15);\n\n // PARSING\n\n addRegexToken('s', match1to2);\n addRegexToken('ss', match1to2, match2);\n addParseToken(['s', 'ss'], SECOND);\n\n // MOMENTS\n\n var getSetSecond = makeGetSet('Seconds', false);\n\n // FORMATTING\n\n addFormatToken('S', 0, 0, function () {\n return ~~(this.millisecond() / 100);\n });\n\n addFormatToken(0, ['SS', 2], 0, function () {\n return ~~(this.millisecond() / 10);\n });\n\n addFormatToken(0, ['SSS', 3], 0, 'millisecond');\n addFormatToken(0, ['SSSS', 4], 0, function () {\n return this.millisecond() * 10;\n });\n addFormatToken(0, ['SSSSS', 5], 0, function () {\n return this.millisecond() * 100;\n });\n addFormatToken(0, ['SSSSSS', 6], 0, function () {\n return this.millisecond() * 1000;\n });\n addFormatToken(0, ['SSSSSSS', 7], 0, function () {\n return this.millisecond() * 10000;\n });\n addFormatToken(0, ['SSSSSSSS', 8], 0, function () {\n return this.millisecond() * 100000;\n });\n addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {\n return this.millisecond() * 1000000;\n });\n\n\n // ALIASES\n\n addUnitAlias('millisecond', 'ms');\n\n // PRIORITY\n\n addUnitPriority('millisecond', 16);\n\n // PARSING\n\n addRegexToken('S', match1to3, match1);\n addRegexToken('SS', match1to3, match2);\n addRegexToken('SSS', match1to3, match3);\n\n var token;\n for (token = 'SSSS'; token.length <= 9; token += 'S') {\n addRegexToken(token, matchUnsigned);\n }\n\n function parseMs(input, array) {\n array[MILLISECOND] = toInt(('0.' + input) * 1000);\n }\n\n for (token = 'S'; token.length <= 9; token += 'S') {\n addParseToken(token, parseMs);\n }\n // MOMENTS\n\n var getSetMillisecond = makeGetSet('Milliseconds', false);\n\n // FORMATTING\n\n addFormatToken('z', 0, 0, 'zoneAbbr');\n addFormatToken('zz', 0, 0, 'zoneName');\n\n // MOMENTS\n\n function getZoneAbbr () {\n return this._isUTC ? 'UTC' : '';\n }\n\n function getZoneName () {\n return this._isUTC ? 'Coordinated Universal Time' : '';\n }\n\n var proto = Moment.prototype;\n\n proto.add = add;\n proto.calendar = calendar$1;\n proto.clone = clone;\n proto.diff = diff;\n proto.endOf = endOf;\n proto.format = format;\n proto.from = from;\n proto.fromNow = fromNow;\n proto.to = to;\n proto.toNow = toNow;\n proto.get = stringGet;\n proto.invalidAt = invalidAt;\n proto.isAfter = isAfter;\n proto.isBefore = isBefore;\n proto.isBetween = isBetween;\n proto.isSame = isSame;\n proto.isSameOrAfter = isSameOrAfter;\n proto.isSameOrBefore = isSameOrBefore;\n proto.isValid = isValid$2;\n proto.lang = lang;\n proto.locale = locale;\n proto.localeData = localeData;\n proto.max = prototypeMax;\n proto.min = prototypeMin;\n proto.parsingFlags = parsingFlags;\n proto.set = stringSet;\n proto.startOf = startOf;\n proto.subtract = subtract;\n proto.toArray = toArray;\n proto.toObject = toObject;\n proto.toDate = toDate;\n proto.toISOString = toISOString;\n proto.inspect = inspect;\n proto.toJSON = toJSON;\n proto.toString = toString;\n proto.unix = unix;\n proto.valueOf = valueOf;\n proto.creationData = creationData;\n proto.year = getSetYear;\n proto.isLeapYear = getIsLeapYear;\n proto.weekYear = getSetWeekYear;\n proto.isoWeekYear = getSetISOWeekYear;\n proto.quarter = proto.quarters = getSetQuarter;\n proto.month = getSetMonth;\n proto.daysInMonth = getDaysInMonth;\n proto.week = proto.weeks = getSetWeek;\n proto.isoWeek = proto.isoWeeks = getSetISOWeek;\n proto.weeksInYear = getWeeksInYear;\n proto.isoWeeksInYear = getISOWeeksInYear;\n proto.date = getSetDayOfMonth;\n proto.day = proto.days = getSetDayOfWeek;\n proto.weekday = getSetLocaleDayOfWeek;\n proto.isoWeekday = getSetISODayOfWeek;\n proto.dayOfYear = getSetDayOfYear;\n proto.hour = proto.hours = getSetHour;\n proto.minute = proto.minutes = getSetMinute;\n proto.second = proto.seconds = getSetSecond;\n proto.millisecond = proto.milliseconds = getSetMillisecond;\n proto.utcOffset = getSetOffset;\n proto.utc = setOffsetToUTC;\n proto.local = setOffsetToLocal;\n proto.parseZone = setOffsetToParsedOffset;\n proto.hasAlignedHourOffset = hasAlignedHourOffset;\n proto.isDST = isDaylightSavingTime;\n proto.isLocal = isLocal;\n proto.isUtcOffset = isUtcOffset;\n proto.isUtc = isUtc;\n proto.isUTC = isUtc;\n proto.zoneAbbr = getZoneAbbr;\n proto.zoneName = getZoneName;\n proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);\n proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);\n proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);\n proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);\n proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);\n\n function createUnix (input) {\n return createLocal(input * 1000);\n }\n\n function createInZone () {\n return createLocal.apply(null, arguments).parseZone();\n }\n\n function preParsePostFormat (string) {\n return string;\n }\n\n var proto$1 = Locale.prototype;\n\n proto$1.calendar = calendar;\n proto$1.longDateFormat = longDateFormat;\n proto$1.invalidDate = invalidDate;\n proto$1.ordinal = ordinal;\n proto$1.preparse = preParsePostFormat;\n proto$1.postformat = preParsePostFormat;\n proto$1.relativeTime = relativeTime;\n proto$1.pastFuture = pastFuture;\n proto$1.set = set;\n\n proto$1.months = localeMonths;\n proto$1.monthsShort = localeMonthsShort;\n proto$1.monthsParse = localeMonthsParse;\n proto$1.monthsRegex = monthsRegex;\n proto$1.monthsShortRegex = monthsShortRegex;\n proto$1.week = localeWeek;\n proto$1.firstDayOfYear = localeFirstDayOfYear;\n proto$1.firstDayOfWeek = localeFirstDayOfWeek;\n\n proto$1.weekdays = localeWeekdays;\n proto$1.weekdaysMin = localeWeekdaysMin;\n proto$1.weekdaysShort = localeWeekdaysShort;\n proto$1.weekdaysParse = localeWeekdaysParse;\n\n proto$1.weekdaysRegex = weekdaysRegex;\n proto$1.weekdaysShortRegex = weekdaysShortRegex;\n proto$1.weekdaysMinRegex = weekdaysMinRegex;\n\n proto$1.isPM = localeIsPM;\n proto$1.meridiem = localeMeridiem;\n\n function get$1 (format, index, field, setter) {\n var locale = getLocale();\n var utc = createUTC().set(setter, index);\n return locale[field](utc, format);\n }\n\n function listMonthsImpl (format, index, field) {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n\n if (index != null) {\n return get$1(format, index, field, 'month');\n }\n\n var i;\n var out = [];\n for (i = 0; i < 12; i++) {\n out[i] = get$1(format, i, field, 'month');\n }\n return out;\n }\n\n // ()\n // (5)\n // (fmt, 5)\n // (fmt)\n // (true)\n // (true, 5)\n // (true, fmt, 5)\n // (true, fmt)\n function listWeekdaysImpl (localeSorted, format, index, field) {\n if (typeof localeSorted === 'boolean') {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n } else {\n format = localeSorted;\n index = format;\n localeSorted = false;\n\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n }\n\n var locale = getLocale(),\n shift = localeSorted ? locale._week.dow : 0;\n\n if (index != null) {\n return get$1(format, (index + shift) % 7, field, 'day');\n }\n\n var i;\n var out = [];\n for (i = 0; i < 7; i++) {\n out[i] = get$1(format, (i + shift) % 7, field, 'day');\n }\n return out;\n }\n\n function listMonths (format, index) {\n return listMonthsImpl(format, index, 'months');\n }\n\n function listMonthsShort (format, index) {\n return listMonthsImpl(format, index, 'monthsShort');\n }\n\n function listWeekdays (localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdays');\n }\n\n function listWeekdaysShort (localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');\n }\n\n function listWeekdaysMin (localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');\n }\n\n getSetGlobalLocale('en', {\n dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n ordinal : function (number) {\n var b = number % 10,\n output = (toInt(number % 100 / 10) === 1) ? 'th' :\n (b === 1) ? 'st' :\n (b === 2) ? 'nd' :\n (b === 3) ? 'rd' : 'th';\n return number + output;\n }\n });\n\n // Side effect imports\n\n hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);\n hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale);\n\n var mathAbs = Math.abs;\n\n function abs () {\n var data = this._data;\n\n this._milliseconds = mathAbs(this._milliseconds);\n this._days = mathAbs(this._days);\n this._months = mathAbs(this._months);\n\n data.milliseconds = mathAbs(data.milliseconds);\n data.seconds = mathAbs(data.seconds);\n data.minutes = mathAbs(data.minutes);\n data.hours = mathAbs(data.hours);\n data.months = mathAbs(data.months);\n data.years = mathAbs(data.years);\n\n return this;\n }\n\n function addSubtract$1 (duration, input, value, direction) {\n var other = createDuration(input, value);\n\n duration._milliseconds += direction * other._milliseconds;\n duration._days += direction * other._days;\n duration._months += direction * other._months;\n\n return duration._bubble();\n }\n\n // supports only 2.0-style add(1, 's') or add(duration)\n function add$1 (input, value) {\n return addSubtract$1(this, input, value, 1);\n }\n\n // supports only 2.0-style subtract(1, 's') or subtract(duration)\n function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n }\n\n function absCeil (number) {\n if (number < 0) {\n return Math.floor(number);\n } else {\n return Math.ceil(number);\n }\n }\n\n function bubble () {\n var milliseconds = this._milliseconds;\n var days = this._days;\n var months = this._months;\n var data = this._data;\n var seconds, minutes, hours, years, monthsFromDays;\n\n // if we have a mix of positive and negative values, bubble down first\n // check: https://github.com/moment/moment/issues/2166\n if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||\n (milliseconds <= 0 && days <= 0 && months <= 0))) {\n milliseconds += absCeil(monthsToDays(months) + days) * 864e5;\n days = 0;\n months = 0;\n }\n\n // The following code bubbles up values, see the tests for\n // examples of what that means.\n data.milliseconds = milliseconds % 1000;\n\n seconds = absFloor(milliseconds / 1000);\n data.seconds = seconds % 60;\n\n minutes = absFloor(seconds / 60);\n data.minutes = minutes % 60;\n\n hours = absFloor(minutes / 60);\n data.hours = hours % 24;\n\n days += absFloor(hours / 24);\n\n // convert days to months\n monthsFromDays = absFloor(daysToMonths(days));\n months += monthsFromDays;\n days -= absCeil(monthsToDays(monthsFromDays));\n\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n\n data.days = days;\n data.months = months;\n data.years = years;\n\n return this;\n }\n\n function daysToMonths (days) {\n // 400 years have 146097 days (taking into account leap year rules)\n // 400 years have 12 months === 4800\n return days * 4800 / 146097;\n }\n\n function monthsToDays (months) {\n // the reverse of daysToMonths\n return months * 146097 / 4800;\n }\n\n function as (units) {\n if (!this.isValid()) {\n return NaN;\n }\n var days;\n var months;\n var milliseconds = this._milliseconds;\n\n units = normalizeUnits(units);\n\n if (units === 'month' || units === 'year') {\n days = this._days + milliseconds / 864e5;\n months = this._months + daysToMonths(days);\n return units === 'month' ? months : months / 12;\n } else {\n // handle milliseconds separately because of floating point math errors (issue #1867)\n days = this._days + Math.round(monthsToDays(this._months));\n switch (units) {\n case 'week' : return days / 7 + milliseconds / 6048e5;\n case 'day' : return days + milliseconds / 864e5;\n case 'hour' : return days * 24 + milliseconds / 36e5;\n case 'minute' : return days * 1440 + milliseconds / 6e4;\n case 'second' : return days * 86400 + milliseconds / 1000;\n // Math.floor prevents floating point math errors here\n case 'millisecond': return Math.floor(days * 864e5) + milliseconds;\n default: throw new Error('Unknown unit ' + units);\n }\n }\n }\n\n // TODO: Use this.as('ms')?\n function valueOf$1 () {\n if (!this.isValid()) {\n return NaN;\n }\n return (\n this._milliseconds +\n this._days * 864e5 +\n (this._months % 12) * 2592e6 +\n toInt(this._months / 12) * 31536e6\n );\n }\n\n function makeAs (alias) {\n return function () {\n return this.as(alias);\n };\n }\n\n var asMilliseconds = makeAs('ms');\n var asSeconds = makeAs('s');\n var asMinutes = makeAs('m');\n var asHours = makeAs('h');\n var asDays = makeAs('d');\n var asWeeks = makeAs('w');\n var asMonths = makeAs('M');\n var asYears = makeAs('y');\n\n function clone$1 () {\n return createDuration(this);\n }\n\n function get$2 (units) {\n units = normalizeUnits(units);\n return this.isValid() ? this[units + 's']() : NaN;\n }\n\n function makeGetter(name) {\n return function () {\n return this.isValid() ? this._data[name] : NaN;\n };\n }\n\n var milliseconds = makeGetter('milliseconds');\n var seconds = makeGetter('seconds');\n var minutes = makeGetter('minutes');\n var hours = makeGetter('hours');\n var days = makeGetter('days');\n var months = makeGetter('months');\n var years = makeGetter('years');\n\n function weeks () {\n return absFloor(this.days() / 7);\n }\n\n var round = Math.round;\n var thresholds = {\n ss: 44, // a few seconds to seconds\n s : 45, // seconds to minute\n m : 45, // minutes to hour\n h : 22, // hours to day\n d : 26, // days to month\n M : 11 // months to year\n };\n\n // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize\n function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {\n return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);\n }\n\n function relativeTime$1 (posNegDuration, withoutSuffix, locale) {\n var duration = createDuration(posNegDuration).abs();\n var seconds = round(duration.as('s'));\n var minutes = round(duration.as('m'));\n var hours = round(duration.as('h'));\n var days = round(duration.as('d'));\n var months = round(duration.as('M'));\n var years = round(duration.as('y'));\n\n var a = seconds <= thresholds.ss && ['s', seconds] ||\n seconds < thresholds.s && ['ss', seconds] ||\n minutes <= 1 && ['m'] ||\n minutes < thresholds.m && ['mm', minutes] ||\n hours <= 1 && ['h'] ||\n hours < thresholds.h && ['hh', hours] ||\n days <= 1 && ['d'] ||\n days < thresholds.d && ['dd', days] ||\n months <= 1 && ['M'] ||\n months < thresholds.M && ['MM', months] ||\n years <= 1 && ['y'] || ['yy', years];\n\n a[2] = withoutSuffix;\n a[3] = +posNegDuration > 0;\n a[4] = locale;\n return substituteTimeAgo.apply(null, a);\n }\n\n // This function allows you to set the rounding function for relative time strings\n function getSetRelativeTimeRounding (roundingFunction) {\n if (roundingFunction === undefined) {\n return round;\n }\n if (typeof(roundingFunction) === 'function') {\n round = roundingFunction;\n return true;\n }\n return false;\n }\n\n // This function allows you to set a threshold for relative time strings\n function getSetRelativeTimeThreshold (threshold, limit) {\n if (thresholds[threshold] === undefined) {\n return false;\n }\n if (limit === undefined) {\n return thresholds[threshold];\n }\n thresholds[threshold] = limit;\n if (threshold === 's') {\n thresholds.ss = limit - 1;\n }\n return true;\n }\n\n function humanize (withSuffix) {\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var locale = this.localeData();\n var output = relativeTime$1(this, !withSuffix, locale);\n\n if (withSuffix) {\n output = locale.pastFuture(+this, output);\n }\n\n return locale.postformat(output);\n }\n\n var abs$1 = Math.abs;\n\n function sign(x) {\n return ((x > 0) - (x < 0)) || +x;\n }\n\n function toISOString$1() {\n // for ISO strings we do not use the normal bubbling rules:\n // * milliseconds bubble up until they become hours\n // * days do not bubble at all\n // * months bubble up until they become years\n // This is because there is no context-free conversion between hours and days\n // (think of clock changes)\n // and also not between days and months (28-31 days per month)\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var seconds = abs$1(this._milliseconds) / 1000;\n var days = abs$1(this._days);\n var months = abs$1(this._months);\n var minutes, hours, years;\n\n // 3600 seconds -> 60 minutes -> 1 hour\n minutes = absFloor(seconds / 60);\n hours = absFloor(minutes / 60);\n seconds %= 60;\n minutes %= 60;\n\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n\n\n // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js\n var Y = years;\n var M = months;\n var D = days;\n var h = hours;\n var m = minutes;\n var s = seconds ? seconds.toFixed(3).replace(/\\.?0+$/, '') : '';\n var total = this.asSeconds();\n\n if (!total) {\n // this is the same as C#'s (Noda) and python (isodate)...\n // but not other JS (goog.date)\n return 'P0D';\n }\n\n var totalSign = total < 0 ? '-' : '';\n var ymSign = sign(this._months) !== sign(total) ? '-' : '';\n var daysSign = sign(this._days) !== sign(total) ? '-' : '';\n var hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';\n\n return totalSign + 'P' +\n (Y ? ymSign + Y + 'Y' : '') +\n (M ? ymSign + M + 'M' : '') +\n (D ? daysSign + D + 'D' : '') +\n ((h || m || s) ? 'T' : '') +\n (h ? hmsSign + h + 'H' : '') +\n (m ? hmsSign + m + 'M' : '') +\n (s ? hmsSign + s + 'S' : '');\n }\n\n var proto$2 = Duration.prototype;\n\n proto$2.isValid = isValid$1;\n proto$2.abs = abs;\n proto$2.add = add$1;\n proto$2.subtract = subtract$1;\n proto$2.as = as;\n proto$2.asMilliseconds = asMilliseconds;\n proto$2.asSeconds = asSeconds;\n proto$2.asMinutes = asMinutes;\n proto$2.asHours = asHours;\n proto$2.asDays = asDays;\n proto$2.asWeeks = asWeeks;\n proto$2.asMonths = asMonths;\n proto$2.asYears = asYears;\n proto$2.valueOf = valueOf$1;\n proto$2._bubble = bubble;\n proto$2.clone = clone$1;\n proto$2.get = get$2;\n proto$2.milliseconds = milliseconds;\n proto$2.seconds = seconds;\n proto$2.minutes = minutes;\n proto$2.hours = hours;\n proto$2.days = days;\n proto$2.weeks = weeks;\n proto$2.months = months;\n proto$2.years = years;\n proto$2.humanize = humanize;\n proto$2.toISOString = toISOString$1;\n proto$2.toString = toISOString$1;\n proto$2.toJSON = toISOString$1;\n proto$2.locale = locale;\n proto$2.localeData = localeData;\n\n proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1);\n proto$2.lang = lang;\n\n // Side effect imports\n\n // FORMATTING\n\n addFormatToken('X', 0, 0, 'unix');\n addFormatToken('x', 0, 0, 'valueOf');\n\n // PARSING\n\n addRegexToken('x', matchSigned);\n addRegexToken('X', matchTimestamp);\n addParseToken('X', function (input, array, config) {\n config._d = new Date(parseFloat(input, 10) * 1000);\n });\n addParseToken('x', function (input, array, config) {\n config._d = new Date(toInt(input));\n });\n\n // Side effect imports\n\n\n hooks.version = '2.22.2';\n\n setHookCallback(createLocal);\n\n hooks.fn = proto;\n hooks.min = min;\n hooks.max = max;\n hooks.now = now;\n hooks.utc = createUTC;\n hooks.unix = createUnix;\n hooks.months = listMonths;\n hooks.isDate = isDate;\n hooks.locale = getSetGlobalLocale;\n hooks.invalid = createInvalid;\n hooks.duration = createDuration;\n hooks.isMoment = isMoment;\n hooks.weekdays = listWeekdays;\n hooks.parseZone = createInZone;\n hooks.localeData = getLocale;\n hooks.isDuration = isDuration;\n hooks.monthsShort = listMonthsShort;\n hooks.weekdaysMin = listWeekdaysMin;\n hooks.defineLocale = defineLocale;\n hooks.updateLocale = updateLocale;\n hooks.locales = listLocales;\n hooks.weekdaysShort = listWeekdaysShort;\n hooks.normalizeUnits = normalizeUnits;\n hooks.relativeTimeRounding = getSetRelativeTimeRounding;\n hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;\n hooks.calendarFormat = getCalendarFormat;\n hooks.prototype = proto;\n\n // currently HTML5 input type only supports 24-hour formats\n hooks.HTML5_FMT = {\n DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type=\"datetime-local\" />\n DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type=\"datetime-local\" step=\"1\" />\n DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type=\"datetime-local\" step=\"0.001\" />\n DATE: 'YYYY-MM-DD', // <input type=\"date\" />\n TIME: 'HH:mm', // <input type=\"time\" />\n TIME_SECONDS: 'HH:mm:ss', // <input type=\"time\" step=\"1\" />\n TIME_MS: 'HH:mm:ss.SSS', // <input type=\"time\" step=\"0.001\" />\n WEEK: 'YYYY-[W]WW', // <input type=\"week\" />\n MONTH: 'YYYY-MM' // <input type=\"month\" />\n };\n\n return hooks;\n\n})));\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","var isarray = require('isarray')\n\n/**\n * Expose `pathToRegexp`.\n */\nmodule.exports = pathToRegexp\nmodule.exports.parse = parse\nmodule.exports.compile = compile\nmodule.exports.tokensToFunction = tokensToFunction\nmodule.exports.tokensToRegExp = tokensToRegExp\n\n/**\n * The main path matching regexp utility.\n *\n * @type {RegExp}\n */\nvar PATH_REGEXP = new RegExp([\n // Match escaped characters that would otherwise appear in future matches.\n // This allows the user to escape special characters that won't transform.\n '(\\\\\\\\.)',\n // Match Express-style parameters and un-named parameters with a prefix\n // and optional suffixes. Matches appear as:\n //\n // \"/:test(\\\\d+)?\" => [\"/\", \"test\", \"\\d+\", undefined, \"?\", undefined]\n // \"/route(\\\\d+)\" => [undefined, undefined, undefined, \"\\d+\", undefined, undefined]\n // \"/*\" => [\"/\", undefined, undefined, undefined, undefined, \"*\"]\n '([\\\\/.])?(?:(?:\\\\:(\\\\w+)(?:\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))?|\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))([+*?])?|(\\\\*))'\n].join('|'), 'g')\n\n/**\n * Parse a string for the raw tokens.\n *\n * @param {string} str\n * @param {Object=} options\n * @return {!Array}\n */\nfunction parse (str, options) {\n var tokens = []\n var key = 0\n var index = 0\n var path = ''\n var defaultDelimiter = options && options.delimiter || '/'\n var res\n\n while ((res = PATH_REGEXP.exec(str)) != null) {\n var m = res[0]\n var escaped = res[1]\n var offset = res.index\n path += str.slice(index, offset)\n index = offset + m.length\n\n // Ignore already escaped sequences.\n if (escaped) {\n path += escaped[1]\n continue\n }\n\n var next = str[index]\n var prefix = res[2]\n var name = res[3]\n var capture = res[4]\n var group = res[5]\n var modifier = res[6]\n var asterisk = res[7]\n\n // Push the current path onto the tokens.\n if (path) {\n tokens.push(path)\n path = ''\n }\n\n var partial = prefix != null && next != null && next !== prefix\n var repeat = modifier === '+' || modifier === '*'\n var optional = modifier === '?' || modifier === '*'\n var delimiter = res[2] || defaultDelimiter\n var pattern = capture || group\n\n tokens.push({\n name: name || key++,\n prefix: prefix || '',\n delimiter: delimiter,\n optional: optional,\n repeat: repeat,\n partial: partial,\n asterisk: !!asterisk,\n pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')\n })\n }\n\n // Match any characters still remaining.\n if (index < str.length) {\n path += str.substr(index)\n }\n\n // If the path exists, push it onto the end.\n if (path) {\n tokens.push(path)\n }\n\n return tokens\n}\n\n/**\n * Compile a string to a template function for the path.\n *\n * @param {string} str\n * @param {Object=} options\n * @return {!function(Object=, Object=)}\n */\nfunction compile (str, options) {\n return tokensToFunction(parse(str, options))\n}\n\n/**\n * Prettier encoding of URI path segments.\n *\n * @param {string}\n * @return {string}\n */\nfunction encodeURIComponentPretty (str) {\n return encodeURI(str).replace(/[\\/?#]/g, function (c) {\n return '%' + c.charCodeAt(0).toString(16).toUpperCase()\n })\n}\n\n/**\n * Encode the asterisk parameter. Similar to `pretty`, but allows slashes.\n *\n * @param {string}\n * @return {string}\n */\nfunction encodeAsterisk (str) {\n return encodeURI(str).replace(/[?#]/g, function (c) {\n return '%' + c.charCodeAt(0).toString(16).toUpperCase()\n })\n}\n\n/**\n * Expose a method for transforming tokens into the path function.\n */\nfunction tokensToFunction (tokens) {\n // Compile all the tokens into regexps.\n var matches = new Array(tokens.length)\n\n // Compile all the patterns before compilation.\n for (var i = 0; i < tokens.length; i++) {\n if (typeof tokens[i] === 'object') {\n matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$')\n }\n }\n\n return function (obj, opts) {\n var path = ''\n var data = obj || {}\n var options = opts || {}\n var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent\n\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i]\n\n if (typeof token === 'string') {\n path += token\n\n continue\n }\n\n var value = data[token.name]\n var segment\n\n if (value == null) {\n if (token.optional) {\n // Prepend partial segment prefixes.\n if (token.partial) {\n path += token.prefix\n }\n\n continue\n } else {\n throw new TypeError('Expected \"' + token.name + '\" to be defined')\n }\n }\n\n if (isarray(value)) {\n if (!token.repeat) {\n throw new TypeError('Expected \"' + token.name + '\" to not repeat, but received `' + JSON.stringify(value) + '`')\n }\n\n if (value.length === 0) {\n if (token.optional) {\n continue\n } else {\n throw new TypeError('Expected \"' + token.name + '\" to not be empty')\n }\n }\n\n for (var j = 0; j < value.length; j++) {\n segment = encode(value[j])\n\n if (!matches[i].test(segment)) {\n throw new TypeError('Expected all \"' + token.name + '\" to match \"' + token.pattern + '\", but received `' + JSON.stringify(segment) + '`')\n }\n\n path += (j === 0 ? token.prefix : token.delimiter) + segment\n }\n\n continue\n }\n\n segment = token.asterisk ? encodeAsterisk(value) : encode(value)\n\n if (!matches[i].test(segment)) {\n throw new TypeError('Expected \"' + token.name + '\" to match \"' + token.pattern + '\", but received \"' + segment + '\"')\n }\n\n path += token.prefix + segment\n }\n\n return path\n }\n}\n\n/**\n * Escape a regular expression string.\n *\n * @param {string} str\n * @return {string}\n */\nfunction escapeString (str) {\n return str.replace(/([.+*?=^!:${}()[\\]|\\/\\\\])/g, '\\\\$1')\n}\n\n/**\n * Escape the capturing group by escaping special characters and meaning.\n *\n * @param {string} group\n * @return {string}\n */\nfunction escapeGroup (group) {\n return group.replace(/([=!:$\\/()])/g, '\\\\$1')\n}\n\n/**\n * Attach the keys as a property of the regexp.\n *\n * @param {!RegExp} re\n * @param {Array} keys\n * @return {!RegExp}\n */\nfunction attachKeys (re, keys) {\n re.keys = keys\n return re\n}\n\n/**\n * Get the flags for a regexp from the options.\n *\n * @param {Object} options\n * @return {string}\n */\nfunction flags (options) {\n return options.sensitive ? '' : 'i'\n}\n\n/**\n * Pull out keys from a regexp.\n *\n * @param {!RegExp} path\n * @param {!Array} keys\n * @return {!RegExp}\n */\nfunction regexpToRegexp (path, keys) {\n // Use a negative lookahead to match only capturing groups.\n var groups = path.source.match(/\\((?!\\?)/g)\n\n if (groups) {\n for (var i = 0; i < groups.length; i++) {\n keys.push({\n name: i,\n prefix: null,\n delimiter: null,\n optional: false,\n repeat: false,\n partial: false,\n asterisk: false,\n pattern: null\n })\n }\n }\n\n return attachKeys(path, keys)\n}\n\n/**\n * Transform an array into a regexp.\n *\n * @param {!Array} path\n * @param {Array} keys\n * @param {!Object} options\n * @return {!RegExp}\n */\nfunction arrayToRegexp (path, keys, options) {\n var parts = []\n\n for (var i = 0; i < path.length; i++) {\n parts.push(pathToRegexp(path[i], keys, options).source)\n }\n\n var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options))\n\n return attachKeys(regexp, keys)\n}\n\n/**\n * Create a path regexp from string input.\n *\n * @param {string} path\n * @param {!Array} keys\n * @param {!Object} options\n * @return {!RegExp}\n */\nfunction stringToRegexp (path, keys, options) {\n return tokensToRegExp(parse(path, options), keys, options)\n}\n\n/**\n * Expose a function for taking tokens and returning a RegExp.\n *\n * @param {!Array} tokens\n * @param {(Array|Object)=} keys\n * @param {Object=} options\n * @return {!RegExp}\n */\nfunction tokensToRegExp (tokens, keys, options) {\n if (!isarray(keys)) {\n options = /** @type {!Object} */ (keys || options)\n keys = []\n }\n\n options = options || {}\n\n var strict = options.strict\n var end = options.end !== false\n var route = ''\n\n // Iterate over the tokens and create our regexp string.\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i]\n\n if (typeof token === 'string') {\n route += escapeString(token)\n } else {\n var prefix = escapeString(token.prefix)\n var capture = '(?:' + token.pattern + ')'\n\n keys.push(token)\n\n if (token.repeat) {\n capture += '(?:' + prefix + capture + ')*'\n }\n\n if (token.optional) {\n if (!token.partial) {\n capture = '(?:' + prefix + '(' + capture + '))?'\n } else {\n capture = prefix + '(' + capture + ')?'\n }\n } else {\n capture = prefix + '(' + capture + ')'\n }\n\n route += capture\n }\n }\n\n var delimiter = escapeString(options.delimiter || '/')\n var endsWithDelimiter = route.slice(-delimiter.length) === delimiter\n\n // In non-strict mode we allow a slash at the end of match. If the path to\n // match already ends with a slash, we remove it for consistency. The slash\n // is valid at the end of a path match, not in the middle. This is important\n // in non-ending mode, where \"/test/\" shouldn't match \"/test//route\".\n if (!strict) {\n route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?'\n }\n\n if (end) {\n route += '$'\n } else {\n // In non-ending mode, we need the capturing groups to match as much as\n // possible by using a positive lookahead to the end or next path segment.\n route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)'\n }\n\n return attachKeys(new RegExp('^' + route, flags(options)), keys)\n}\n\n/**\n * Normalize the given path string, returning a regular expression.\n *\n * An empty array can be passed in for the keys, which will hold the\n * placeholder key descriptions. For example, using `/user/:id`, `keys` will\n * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.\n *\n * @param {(string|RegExp|Array)} path\n * @param {(Array|Object)=} keys\n * @param {Object=} options\n * @return {!RegExp}\n */\nfunction pathToRegexp (path, keys, options) {\n if (!isarray(keys)) {\n options = /** @type {!Object} */ (keys || options)\n keys = []\n }\n\n options = options || {}\n\n if (path instanceof RegExp) {\n return regexpToRegexp(path, /** @type {!Array} */ (keys))\n }\n\n if (isarray(path)) {\n return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)\n }\n\n return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)\n}\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (typeSpecs.hasOwnProperty(typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n )\n\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<<anonymous>>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message) {\n this.message = message;\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOf, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (propValue.hasOwnProperty(key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {\n return null;\n }\n }\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (!checker) {\n continue;\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from\n // props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&\n Symbol.for &&\n Symbol.for('react.element')) ||\n 0xeac7;\n\n var isValidElement = function(object) {\n return typeof object === 'object' &&\n object !== null &&\n object.$$typeof === REACT_ELEMENT_TYPE;\n };\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(isValidElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useA11yDialog = exports.A11yDialog = void 0;\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _reactDom = _interopRequireDefault(require(\"react-dom\"));\nvar _a11yDialog = _interopRequireDefault(require(\"a11y-dialog\"));\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\nfunction _iterableToArrayLimit(arr, i) { if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar useIsMounted = function useIsMounted() {\n var _React$useState = _react[\"default\"].useState(false),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n isMounted = _React$useState2[0],\n setIsMounted = _React$useState2[1];\n _react[\"default\"].useEffect(function () {\n return setIsMounted(true);\n }, []);\n return isMounted;\n};\nvar useA11yDialogInstance = function useA11yDialogInstance() {\n var _React$useState3 = _react[\"default\"].useState(null),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n instance = _React$useState4[0],\n setInstance = _React$useState4[1];\n var container = _react[\"default\"].useCallback(function (node) {\n if (node !== null) setInstance(new _a11yDialog[\"default\"](node));\n }, []);\n return [instance, container];\n};\nvar useA11yDialog = function useA11yDialog(props) {\n var _useA11yDialogInstanc = useA11yDialogInstance(),\n _useA11yDialogInstanc2 = _slicedToArray(_useA11yDialogInstanc, 2),\n instance = _useA11yDialogInstanc2[0],\n ref = _useA11yDialogInstanc2[1];\n var close = _react[\"default\"].useCallback(function () {\n return instance.hide();\n }, [instance]);\n var role = props.role || 'dialog';\n var isAlertDialog = role === 'alertdialog';\n var titleId = props.titleId || props.id + '-title';\n\n // Destroy the `a11y-dialog` instance when unmounting the component.\n _react[\"default\"].useEffect(function () {\n return function () {\n if (instance) instance.destroy();\n };\n }, [instance]);\n return [instance, {\n container: {\n id: props.id,\n ref: ref,\n role: role,\n tabIndex: -1,\n 'aria-modal': true,\n 'aria-hidden': true,\n 'aria-labelledby': titleId\n },\n overlay: {\n onClick: isAlertDialog ? undefined : close\n },\n dialog: {\n role: 'document'\n },\n closeButton: {\n type: 'button',\n onClick: close\n },\n // Using a paragraph with accessibility mapping can be useful to work\n // around SEO concerns of having multiple <h1> per page.\n // See: https://twitter.com/goetsu/status/1261253532315004930\n title: {\n role: 'heading',\n 'aria-level': 1,\n id: titleId\n }\n }];\n};\nexports.useA11yDialog = useA11yDialog;\nvar A11yDialog = function A11yDialog(props) {\n var isMounted = useIsMounted();\n var _useA11yDialog = useA11yDialog(props),\n _useA11yDialog2 = _slicedToArray(_useA11yDialog, 2),\n instance = _useA11yDialog2[0],\n attributes = _useA11yDialog2[1];\n var dialogRef = props.dialogRef;\n _react[\"default\"].useEffect(function () {\n if (instance) dialogRef(instance);\n return function () {\n return dialogRef(undefined);\n };\n }, [dialogRef, instance]);\n if (!isMounted) return null;\n var root = props.dialogRoot ? document.querySelector(props.dialogRoot) : document.body;\n var title = /*#__PURE__*/_react[\"default\"].createElement(\"p\", _extends({}, attributes.title, {\n className: props.classNames.title,\n key: \"title\"\n }), props.title);\n var button = /*#__PURE__*/_react[\"default\"].createElement(\"button\", _extends({}, attributes.closeButton, {\n className: props.classNames.closeButton,\n \"aria-label\": props.closeButtonLabel,\n key: \"button\"\n }), props.closeButtonContent);\n var children = [props.closeButtonPosition === 'first' && button, title, props.children, props.closeButtonPosition === 'last' && button].filter(Boolean);\n return /*#__PURE__*/_reactDom[\"default\"].createPortal( /*#__PURE__*/_react[\"default\"].createElement(\"div\", _extends({}, attributes.container, {\n className: props.classNames.container\n }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", _extends({}, attributes.overlay, {\n className: props.classNames.overlay\n })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", _extends({}, attributes.dialog, {\n className: props.classNames.dialog\n }), children)), root);\n};\nexports.A11yDialog = A11yDialog;\nA11yDialog.defaultProps = {\n role: 'dialog',\n closeButtonLabel: 'Close this dialog window',\n closeButtonContent: \"\\xD7\",\n closeButtonPosition: 'first',\n classNames: {},\n dialogRef: function dialogRef() {\n return void 0;\n }\n // Default properties cannot be based on other properties, so the default\n // value for the `titleId` prop is defined in the `render(..)` method.\n};\n\nA11yDialog.propTypes = {\n // The `role` attribute of the dialog element, either `dialog` (default) or\n // `alertdialog` to make it a modal (preventing closing on click outside of\n // ESC key).\n role: _propTypes[\"default\"].oneOf(['dialog', 'alertdialog']),\n // The HTML `id` attribute of the dialog element, internally used by\n // a11y-dialog to manipulate the dialog.\n id: _propTypes[\"default\"].string.isRequired,\n // The title of the dialog, mandatory in the document to provide context to\n // assistive technology. Could be hidden (while remaining accessible) with\n // CSS though.\n title: _propTypes[\"default\"].node.isRequired,\n // A function called when the component has mounted, receiving the instance\n // of A11yDialog so that it can be programmatically accessed later on.\n // E.g.: dialogRef={(dialog) => (this.dialog = dialog)}\n dialogRef: _propTypes[\"default\"].func,\n // The HTML `id` attribute of the dialog’s title element, used by assistive\n // technologies to provide context and meaning to the dialog window. Falls\n // back to the `${this.props.id}-title` if not provided.\n titleId: _propTypes[\"default\"].string,\n // The HTML `aria-label` attribute of the close button, used by assistive\n // technologies to provide extra meaning to the usual cross-mark. Defaults\n // to a generic English explanation.\n closeButtonLabel: _propTypes[\"default\"].string,\n // The string that is the innerHTML of the close button.\n closeButtonContent: _propTypes[\"default\"].node,\n // Whether the close button should be rendered as first/last children or not at all.\n closeButtonPosition: _propTypes[\"default\"].oneOf(['first', 'last', 'none']),\n // React 16 requires a container for the portal’s content to be rendered\n // into; this needs to be an existing valid DOM node and defaults to the body\n // element.\n dialogRoot: _propTypes[\"default\"].string,\n // Object of classes for each HTML element of the dialog element.\n // See: https://a11y-dialog.netlify.app/usage/markup\n classNames: _propTypes[\"default\"].exact({\n container: _propTypes[\"default\"].string,\n overlay: _propTypes[\"default\"].string,\n dialog: _propTypes[\"default\"].string,\n title: _propTypes[\"default\"].string,\n closeButton: _propTypes[\"default\"].string\n }),\n // Dialog content.\n // Anything that can be rendered: numbers, strings, elements or an array\n // (or fragment) containing these types.\n children: _propTypes[\"default\"].node\n};\n","/** @license React v16.8.4\n * react-dom.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\nvar _assign = require('object-assign');\nvar checkPropTypes = require('prop-types/checkPropTypes');\nvar scheduler = require('scheduler');\nvar tracing = require('scheduler/tracing');\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function () {};\n\n{\n validateFormat = function (format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error = void 0;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n\n// Relying on the `invariant()` implementation lets us\n// preserve the format and params in the www builds.\n\n!React ? invariant(false, 'ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.') : void 0;\n\nvar invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) {\n var funcArgs = Array.prototype.slice.call(arguments, 3);\n try {\n func.apply(context, funcArgs);\n } catch (error) {\n this.onError(error);\n }\n};\n\n{\n // In DEV mode, we swap out invokeGuardedCallback for a special version\n // that plays more nicely with the browser's DevTools. The idea is to preserve\n // \"Pause on exceptions\" behavior. Because React wraps all user-provided\n // functions in invokeGuardedCallback, and the production version of\n // invokeGuardedCallback uses a try-catch, all user exceptions are treated\n // like caught exceptions, and the DevTools won't pause unless the developer\n // takes the extra step of enabling pause on caught exceptions. This is\n // unintuitive, though, because even though React has caught the error, from\n // the developer's perspective, the error is uncaught.\n //\n // To preserve the expected \"Pause on exceptions\" behavior, we don't use a\n // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake\n // DOM node, and call the user-provided callback from inside an event handler\n // for that fake event. If the callback throws, the error is \"captured\" using\n // a global event handler. But because the error happens in a different\n // event loop context, it does not interrupt the normal program flow.\n // Effectively, this gives us try-catch behavior without actually using\n // try-catch. Neat!\n\n // Check that the browser supports the APIs we need to implement our special\n // DEV version of invokeGuardedCallback\n if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {\n var fakeNode = document.createElement('react');\n\n var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) {\n // If document doesn't exist we know for sure we will crash in this method\n // when we call document.createEvent(). However this can cause confusing\n // errors: https://github.com/facebookincubator/create-react-app/issues/3482\n // So we preemptively throw with a better message instead.\n !(typeof document !== 'undefined') ? invariant(false, 'The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.') : void 0;\n var evt = document.createEvent('Event');\n\n // Keeps track of whether the user-provided callback threw an error. We\n // set this to true at the beginning, then set it to false right after\n // calling the function. If the function errors, `didError` will never be\n // set to false. This strategy works even if the browser is flaky and\n // fails to call our global error handler, because it doesn't rely on\n // the error event at all.\n var didError = true;\n\n // Keeps track of the value of window.event so that we can reset it\n // during the callback to let user code access window.event in the\n // browsers that support it.\n var windowEvent = window.event;\n\n // Keeps track of the descriptor of window.event to restore it after event\n // dispatching: https://github.com/facebook/react/issues/13688\n var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event');\n\n // Create an event handler for our fake event. We will synchronously\n // dispatch our fake event using `dispatchEvent`. Inside the handler, we\n // call the user-provided callback.\n var funcArgs = Array.prototype.slice.call(arguments, 3);\n function callCallback() {\n // We immediately remove the callback from event listeners so that\n // nested `invokeGuardedCallback` calls do not clash. Otherwise, a\n // nested call would trigger the fake event handlers of any call higher\n // in the stack.\n fakeNode.removeEventListener(evtType, callCallback, false);\n\n // We check for window.hasOwnProperty('event') to prevent the\n // window.event assignment in both IE <= 10 as they throw an error\n // \"Member not found\" in strict mode, and in Firefox which does not\n // support window.event.\n if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {\n window.event = windowEvent;\n }\n\n func.apply(context, funcArgs);\n didError = false;\n }\n\n // Create a global error event handler. We use this to capture the value\n // that was thrown. It's possible that this error handler will fire more\n // than once; for example, if non-React code also calls `dispatchEvent`\n // and a handler for that event throws. We should be resilient to most of\n // those cases. Even if our error event handler fires more than once, the\n // last error event is always used. If the callback actually does error,\n // we know that the last error event is the correct one, because it's not\n // possible for anything else to have happened in between our callback\n // erroring and the code that follows the `dispatchEvent` call below. If\n // the callback doesn't error, but the error event was fired, we know to\n // ignore it because `didError` will be false, as described above.\n var error = void 0;\n // Use this to track whether the error event is ever called.\n var didSetError = false;\n var isCrossOriginError = false;\n\n function handleWindowError(event) {\n error = event.error;\n didSetError = true;\n if (error === null && event.colno === 0 && event.lineno === 0) {\n isCrossOriginError = true;\n }\n if (event.defaultPrevented) {\n // Some other error handler has prevented default.\n // Browsers silence the error report if this happens.\n // We'll remember this to later decide whether to log it or not.\n if (error != null && typeof error === 'object') {\n try {\n error._suppressLogging = true;\n } catch (inner) {\n // Ignore.\n }\n }\n }\n }\n\n // Create a fake event type.\n var evtType = 'react-' + (name ? name : 'invokeguardedcallback');\n\n // Attach our event handlers\n window.addEventListener('error', handleWindowError);\n fakeNode.addEventListener(evtType, callCallback, false);\n\n // Synchronously dispatch our fake event. If the user-provided function\n // errors, it will trigger our global error handler.\n evt.initEvent(evtType, false, false);\n fakeNode.dispatchEvent(evt);\n\n if (windowEventDescriptor) {\n Object.defineProperty(window, 'event', windowEventDescriptor);\n }\n\n if (didError) {\n if (!didSetError) {\n // The callback errored, but the error event never fired.\n error = new Error('An error was thrown inside one of your components, but React ' + \"doesn't know what it was. This is likely due to browser \" + 'flakiness. React does its best to preserve the \"Pause on ' + 'exceptions\" behavior of the DevTools, which requires some ' + \"DEV-mode only tricks. It's possible that these don't work in \" + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.');\n } else if (isCrossOriginError) {\n error = new Error(\"A cross-origin error was thrown. React doesn't have access to \" + 'the actual error object in development. ' + 'See https://fb.me/react-crossorigin-error for more information.');\n }\n this.onError(error);\n }\n\n // Remove our event listeners\n window.removeEventListener('error', handleWindowError);\n };\n\n invokeGuardedCallbackImpl = invokeGuardedCallbackDev;\n }\n}\n\nvar invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;\n\n// Used by Fiber to simulate a try-catch.\nvar hasError = false;\nvar caughtError = null;\n\n// Used by event system to capture/rethrow the first error.\nvar hasRethrowError = false;\nvar rethrowError = null;\n\nvar reporter = {\n onError: function (error) {\n hasError = true;\n caughtError = error;\n }\n};\n\n/**\n * Call a function while guarding against errors that happens within it.\n * Returns an error if it throws, otherwise null.\n *\n * In production, this is implemented using a try-catch. The reason we don't\n * use a try-catch directly is so that we can swap out a different\n * implementation in DEV mode.\n *\n * @param {String} name of the guard to use for logging or debugging\n * @param {Function} func The function to invoke\n * @param {*} context The context to use when calling the function\n * @param {...*} args Arguments for function\n */\nfunction invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {\n hasError = false;\n caughtError = null;\n invokeGuardedCallbackImpl$1.apply(reporter, arguments);\n}\n\n/**\n * Same as invokeGuardedCallback, but instead of returning an error, it stores\n * it in a global so it can be rethrown by `rethrowCaughtError` later.\n * TODO: See if caughtError and rethrowError can be unified.\n *\n * @param {String} name of the guard to use for logging or debugging\n * @param {Function} func The function to invoke\n * @param {*} context The context to use when calling the function\n * @param {...*} args Arguments for function\n */\nfunction invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {\n invokeGuardedCallback.apply(this, arguments);\n if (hasError) {\n var error = clearCaughtError();\n if (!hasRethrowError) {\n hasRethrowError = true;\n rethrowError = error;\n }\n }\n}\n\n/**\n * During execution of guarded functions we will capture the first error which\n * we will rethrow to be handled by the top level error handler.\n */\nfunction rethrowCaughtError() {\n if (hasRethrowError) {\n var error = rethrowError;\n hasRethrowError = false;\n rethrowError = null;\n throw error;\n }\n}\n\nfunction hasCaughtError() {\n return hasError;\n}\n\nfunction clearCaughtError() {\n if (hasError) {\n var error = caughtError;\n hasError = false;\n caughtError = null;\n return error;\n } else {\n invariant(false, 'clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.');\n }\n}\n\n/**\n * Injectable ordering of event plugins.\n */\nvar eventPluginOrder = null;\n\n/**\n * Injectable mapping from names to event plugin modules.\n */\nvar namesToPlugins = {};\n\n/**\n * Recomputes the plugin list using the injected plugins and plugin ordering.\n *\n * @private\n */\nfunction recomputePluginOrdering() {\n if (!eventPluginOrder) {\n // Wait until an `eventPluginOrder` is injected.\n return;\n }\n for (var pluginName in namesToPlugins) {\n var pluginModule = namesToPlugins[pluginName];\n var pluginIndex = eventPluginOrder.indexOf(pluginName);\n !(pluginIndex > -1) ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : void 0;\n if (plugins[pluginIndex]) {\n continue;\n }\n !pluginModule.extractEvents ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : void 0;\n plugins[pluginIndex] = pluginModule;\n var publishedEvents = pluginModule.eventTypes;\n for (var eventName in publishedEvents) {\n !publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : void 0;\n }\n }\n}\n\n/**\n * Publishes an event so that it can be dispatched by the supplied plugin.\n *\n * @param {object} dispatchConfig Dispatch configuration for the event.\n * @param {object} PluginModule Plugin publishing the event.\n * @return {boolean} True if the event was successfully published.\n * @private\n */\nfunction publishEventForPlugin(dispatchConfig, pluginModule, eventName) {\n !!eventNameDispatchConfigs.hasOwnProperty(eventName) ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : void 0;\n eventNameDispatchConfigs[eventName] = dispatchConfig;\n\n var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;\n if (phasedRegistrationNames) {\n for (var phaseName in phasedRegistrationNames) {\n if (phasedRegistrationNames.hasOwnProperty(phaseName)) {\n var phasedRegistrationName = phasedRegistrationNames[phaseName];\n publishRegistrationName(phasedRegistrationName, pluginModule, eventName);\n }\n }\n return true;\n } else if (dispatchConfig.registrationName) {\n publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);\n return true;\n }\n return false;\n}\n\n/**\n * Publishes a registration name that is used to identify dispatched events.\n *\n * @param {string} registrationName Registration name to add.\n * @param {object} PluginModule Plugin publishing the event.\n * @private\n */\nfunction publishRegistrationName(registrationName, pluginModule, eventName) {\n !!registrationNameModules[registrationName] ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : void 0;\n registrationNameModules[registrationName] = pluginModule;\n registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;\n\n {\n var lowerCasedName = registrationName.toLowerCase();\n possibleRegistrationNames[lowerCasedName] = registrationName;\n\n if (registrationName === 'onDoubleClick') {\n possibleRegistrationNames.ondblclick = registrationName;\n }\n }\n}\n\n/**\n * Registers plugins so that they can extract and dispatch events.\n *\n * @see {EventPluginHub}\n */\n\n/**\n * Ordered list of injected plugins.\n */\nvar plugins = [];\n\n/**\n * Mapping from event name to dispatch config\n */\nvar eventNameDispatchConfigs = {};\n\n/**\n * Mapping from registration name to plugin module\n */\nvar registrationNameModules = {};\n\n/**\n * Mapping from registration name to event name\n */\nvar registrationNameDependencies = {};\n\n/**\n * Mapping from lowercase registration names to the properly cased version,\n * used to warn in the case of missing event handlers. Available\n * only in true.\n * @type {Object}\n */\nvar possibleRegistrationNames = {};\n// Trust the developer to only use possibleRegistrationNames in true\n\n/**\n * Injects an ordering of plugins (by plugin name). This allows the ordering\n * to be decoupled from injection of the actual plugins so that ordering is\n * always deterministic regardless of packaging, on-the-fly injection, etc.\n *\n * @param {array} InjectedEventPluginOrder\n * @internal\n * @see {EventPluginHub.injection.injectEventPluginOrder}\n */\nfunction injectEventPluginOrder(injectedEventPluginOrder) {\n !!eventPluginOrder ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : void 0;\n // Clone the ordering so it cannot be dynamically mutated.\n eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);\n recomputePluginOrdering();\n}\n\n/**\n * Injects plugins to be used by `EventPluginHub`. The plugin names must be\n * in the ordering injected by `injectEventPluginOrder`.\n *\n * Plugins can be injected as part of page initialization or on-the-fly.\n *\n * @param {object} injectedNamesToPlugins Map from names to plugin modules.\n * @internal\n * @see {EventPluginHub.injection.injectEventPluginsByName}\n */\nfunction injectEventPluginsByName(injectedNamesToPlugins) {\n var isOrderingDirty = false;\n for (var pluginName in injectedNamesToPlugins) {\n if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {\n continue;\n }\n var pluginModule = injectedNamesToPlugins[pluginName];\n if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {\n !!namesToPlugins[pluginName] ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : void 0;\n namesToPlugins[pluginName] = pluginModule;\n isOrderingDirty = true;\n }\n }\n if (isOrderingDirty) {\n recomputePluginOrdering();\n }\n}\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warningWithoutStack = function () {};\n\n{\n warningWithoutStack = function (condition, format) {\n for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n if (format === undefined) {\n throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n if (args.length > 8) {\n // Check before the condition to catch violations early.\n throw new Error('warningWithoutStack() currently supports at most 8 arguments.');\n }\n if (condition) {\n return;\n }\n if (typeof console !== 'undefined') {\n var argsWithFormat = args.map(function (item) {\n return '' + item;\n });\n argsWithFormat.unshift('Warning: ' + format);\n\n // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n Function.prototype.apply.call(console.error, console, argsWithFormat);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nvar warningWithoutStack$1 = warningWithoutStack;\n\nvar getFiberCurrentPropsFromNode = null;\nvar getInstanceFromNode = null;\nvar getNodeFromInstance = null;\n\nfunction setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) {\n getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl;\n getInstanceFromNode = getInstanceFromNodeImpl;\n getNodeFromInstance = getNodeFromInstanceImpl;\n {\n !(getNodeFromInstance && getInstanceFromNode) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;\n }\n}\n\nvar validateEventDispatches = void 0;\n{\n validateEventDispatches = function (event) {\n var dispatchListeners = event._dispatchListeners;\n var dispatchInstances = event._dispatchInstances;\n\n var listenersIsArr = Array.isArray(dispatchListeners);\n var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;\n\n var instancesIsArr = Array.isArray(dispatchInstances);\n var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;\n\n !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0;\n };\n}\n\n/**\n * Dispatch the event to the listener.\n * @param {SyntheticEvent} event SyntheticEvent to handle\n * @param {function} listener Application-level callback\n * @param {*} inst Internal component instance\n */\nfunction executeDispatch(event, listener, inst) {\n var type = event.type || 'unknown-event';\n event.currentTarget = getNodeFromInstance(inst);\n invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);\n event.currentTarget = null;\n}\n\n/**\n * Standard/simple iteration through an event's collected dispatches.\n */\nfunction executeDispatchesInOrder(event) {\n var dispatchListeners = event._dispatchListeners;\n var dispatchInstances = event._dispatchInstances;\n {\n validateEventDispatches(event);\n }\n if (Array.isArray(dispatchListeners)) {\n for (var i = 0; i < dispatchListeners.length; i++) {\n if (event.isPropagationStopped()) {\n break;\n }\n // Listeners and Instances are two parallel arrays that are always in sync.\n executeDispatch(event, dispatchListeners[i], dispatchInstances[i]);\n }\n } else if (dispatchListeners) {\n executeDispatch(event, dispatchListeners, dispatchInstances);\n }\n event._dispatchListeners = null;\n event._dispatchInstances = null;\n}\n\n/**\n * @see executeDispatchesInOrderStopAtTrueImpl\n */\n\n\n/**\n * Execution of a \"direct\" dispatch - there must be at most one dispatch\n * accumulated on the event or it is considered an error. It doesn't really make\n * sense for an event with multiple dispatches (bubbled) to keep track of the\n * return values at each dispatch execution, but it does tend to make sense when\n * dealing with \"direct\" dispatches.\n *\n * @return {*} The return value of executing the single dispatch.\n */\n\n\n/**\n * @param {SyntheticEvent} event\n * @return {boolean} True iff number of dispatches accumulated is greater than 0.\n */\n\n/**\n * Accumulates items that must not be null or undefined into the first one. This\n * is used to conserve memory by avoiding array allocations, and thus sacrifices\n * API cleanness. Since `current` can be null before being passed in and not\n * null after this function, make sure to assign it back to `current`:\n *\n * `a = accumulateInto(a, b);`\n *\n * This API should be sparingly used. Try `accumulate` for something cleaner.\n *\n * @return {*|array<*>} An accumulation of items.\n */\n\nfunction accumulateInto(current, next) {\n !(next != null) ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : void 0;\n\n if (current == null) {\n return next;\n }\n\n // Both are not empty. Warning: Never call x.concat(y) when you are not\n // certain that x is an Array (x could be a string with concat method).\n if (Array.isArray(current)) {\n if (Array.isArray(next)) {\n current.push.apply(current, next);\n return current;\n }\n current.push(next);\n return current;\n }\n\n if (Array.isArray(next)) {\n // A bit too dangerous to mutate `next`.\n return [current].concat(next);\n }\n\n return [current, next];\n}\n\n/**\n * @param {array} arr an \"accumulation\" of items which is either an Array or\n * a single item. Useful when paired with the `accumulate` module. This is a\n * simple utility that allows us to reason about a collection of items, but\n * handling the case when there is exactly one item (and we do not need to\n * allocate an array).\n * @param {function} cb Callback invoked with each element or a collection.\n * @param {?} [scope] Scope used as `this` in a callback.\n */\nfunction forEachAccumulated(arr, cb, scope) {\n if (Array.isArray(arr)) {\n arr.forEach(cb, scope);\n } else if (arr) {\n cb.call(scope, arr);\n }\n}\n\n/**\n * Internal queue of events that have accumulated their dispatches and are\n * waiting to have their dispatches executed.\n */\nvar eventQueue = null;\n\n/**\n * Dispatches an event and releases it back into the pool, unless persistent.\n *\n * @param {?object} event Synthetic event to be dispatched.\n * @private\n */\nvar executeDispatchesAndRelease = function (event) {\n if (event) {\n executeDispatchesInOrder(event);\n\n if (!event.isPersistent()) {\n event.constructor.release(event);\n }\n }\n};\nvar executeDispatchesAndReleaseTopLevel = function (e) {\n return executeDispatchesAndRelease(e);\n};\n\nfunction isInteractive(tag) {\n return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';\n}\n\nfunction shouldPreventMouseEvent(name, type, props) {\n switch (name) {\n case 'onClick':\n case 'onClickCapture':\n case 'onDoubleClick':\n case 'onDoubleClickCapture':\n case 'onMouseDown':\n case 'onMouseDownCapture':\n case 'onMouseMove':\n case 'onMouseMoveCapture':\n case 'onMouseUp':\n case 'onMouseUpCapture':\n return !!(props.disabled && isInteractive(type));\n default:\n return false;\n }\n}\n\n/**\n * This is a unified interface for event plugins to be installed and configured.\n *\n * Event plugins can implement the following properties:\n *\n * `extractEvents` {function(string, DOMEventTarget, string, object): *}\n * Required. When a top-level event is fired, this method is expected to\n * extract synthetic events that will in turn be queued and dispatched.\n *\n * `eventTypes` {object}\n * Optional, plugins that fire events must publish a mapping of registration\n * names that are used to register listeners. Values of this mapping must\n * be objects that contain `registrationName` or `phasedRegistrationNames`.\n *\n * `executeDispatch` {function(object, function, string)}\n * Optional, allows plugins to override how an event gets dispatched. By\n * default, the listener is simply invoked.\n *\n * Each plugin that is injected into `EventsPluginHub` is immediately operable.\n *\n * @public\n */\n\n/**\n * Methods for injecting dependencies.\n */\nvar injection = {\n /**\n * @param {array} InjectedEventPluginOrder\n * @public\n */\n injectEventPluginOrder: injectEventPluginOrder,\n\n /**\n * @param {object} injectedNamesToPlugins Map from names to plugin modules.\n */\n injectEventPluginsByName: injectEventPluginsByName\n};\n\n/**\n * @param {object} inst The instance, which is the source of events.\n * @param {string} registrationName Name of listener (e.g. `onClick`).\n * @return {?function} The stored callback.\n */\nfunction getListener(inst, registrationName) {\n var listener = void 0;\n\n // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not\n // live here; needs to be moved to a better place soon\n var stateNode = inst.stateNode;\n if (!stateNode) {\n // Work in progress (ex: onload events in incremental mode).\n return null;\n }\n var props = getFiberCurrentPropsFromNode(stateNode);\n if (!props) {\n // Work in progress.\n return null;\n }\n listener = props[registrationName];\n if (shouldPreventMouseEvent(registrationName, inst.type, props)) {\n return null;\n }\n !(!listener || typeof listener === 'function') ? invariant(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener) : void 0;\n return listener;\n}\n\n/**\n * Allows registered plugins an opportunity to extract events from top-level\n * native browser events.\n *\n * @return {*} An accumulation of synthetic events.\n * @internal\n */\nfunction extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var events = null;\n for (var i = 0; i < plugins.length; i++) {\n // Not every plugin in the ordering may be loaded at runtime.\n var possiblePlugin = plugins[i];\n if (possiblePlugin) {\n var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);\n if (extractedEvents) {\n events = accumulateInto(events, extractedEvents);\n }\n }\n }\n return events;\n}\n\nfunction runEventsInBatch(events) {\n if (events !== null) {\n eventQueue = accumulateInto(eventQueue, events);\n }\n\n // Set `eventQueue` to null before processing it so that we can tell if more\n // events get enqueued while processing.\n var processingEventQueue = eventQueue;\n eventQueue = null;\n\n if (!processingEventQueue) {\n return;\n }\n\n forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);\n !!eventQueue ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.') : void 0;\n // This would be a good time to rethrow if any of the event handlers threw.\n rethrowCaughtError();\n}\n\nfunction runExtractedEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var events = extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);\n runEventsInBatch(events);\n}\n\nvar FunctionComponent = 0;\nvar ClassComponent = 1;\nvar IndeterminateComponent = 2; // Before we know whether it is function or class\nvar HostRoot = 3; // Root of a host tree. Could be nested inside another node.\nvar HostPortal = 4; // A subtree. Could be an entry point to a different renderer.\nvar HostComponent = 5;\nvar HostText = 6;\nvar Fragment = 7;\nvar Mode = 8;\nvar ContextConsumer = 9;\nvar ContextProvider = 10;\nvar ForwardRef = 11;\nvar Profiler = 12;\nvar SuspenseComponent = 13;\nvar MemoComponent = 14;\nvar SimpleMemoComponent = 15;\nvar LazyComponent = 16;\nvar IncompleteClassComponent = 17;\nvar DehydratedSuspenseComponent = 18;\n\nvar randomKey = Math.random().toString(36).slice(2);\nvar internalInstanceKey = '__reactInternalInstance$' + randomKey;\nvar internalEventHandlersKey = '__reactEventHandlers$' + randomKey;\n\nfunction precacheFiberNode(hostInst, node) {\n node[internalInstanceKey] = hostInst;\n}\n\n/**\n * Given a DOM node, return the closest ReactDOMComponent or\n * ReactDOMTextComponent instance ancestor.\n */\nfunction getClosestInstanceFromNode(node) {\n if (node[internalInstanceKey]) {\n return node[internalInstanceKey];\n }\n\n while (!node[internalInstanceKey]) {\n if (node.parentNode) {\n node = node.parentNode;\n } else {\n // Top of the tree. This node must not be part of a React tree (or is\n // unmounted, potentially).\n return null;\n }\n }\n\n var inst = node[internalInstanceKey];\n if (inst.tag === HostComponent || inst.tag === HostText) {\n // In Fiber, this will always be the deepest root.\n return inst;\n }\n\n return null;\n}\n\n/**\n * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent\n * instance, or null if the node was not rendered by this React.\n */\nfunction getInstanceFromNode$1(node) {\n var inst = node[internalInstanceKey];\n if (inst) {\n if (inst.tag === HostComponent || inst.tag === HostText) {\n return inst;\n } else {\n return null;\n }\n }\n return null;\n}\n\n/**\n * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding\n * DOM node.\n */\nfunction getNodeFromInstance$1(inst) {\n if (inst.tag === HostComponent || inst.tag === HostText) {\n // In Fiber this, is just the state node right now. We assume it will be\n // a host component or host text.\n return inst.stateNode;\n }\n\n // Without this first invariant, passing a non-DOM-component triggers the next\n // invariant for a missing parent, which is super confusing.\n invariant(false, 'getNodeFromInstance: Invalid argument.');\n}\n\nfunction getFiberCurrentPropsFromNode$1(node) {\n return node[internalEventHandlersKey] || null;\n}\n\nfunction updateFiberProps(node, props) {\n node[internalEventHandlersKey] = props;\n}\n\nfunction getParent(inst) {\n do {\n inst = inst.return;\n // TODO: If this is a HostRoot we might want to bail out.\n // That is depending on if we want nested subtrees (layers) to bubble\n // events to their parent. We could also go through parentNode on the\n // host node but that wouldn't work for React Native and doesn't let us\n // do the portal feature.\n } while (inst && inst.tag !== HostComponent);\n if (inst) {\n return inst;\n }\n return null;\n}\n\n/**\n * Return the lowest common ancestor of A and B, or null if they are in\n * different trees.\n */\nfunction getLowestCommonAncestor(instA, instB) {\n var depthA = 0;\n for (var tempA = instA; tempA; tempA = getParent(tempA)) {\n depthA++;\n }\n var depthB = 0;\n for (var tempB = instB; tempB; tempB = getParent(tempB)) {\n depthB++;\n }\n\n // If A is deeper, crawl up.\n while (depthA - depthB > 0) {\n instA = getParent(instA);\n depthA--;\n }\n\n // If B is deeper, crawl up.\n while (depthB - depthA > 0) {\n instB = getParent(instB);\n depthB--;\n }\n\n // Walk in lockstep until we find a match.\n var depth = depthA;\n while (depth--) {\n if (instA === instB || instA === instB.alternate) {\n return instA;\n }\n instA = getParent(instA);\n instB = getParent(instB);\n }\n return null;\n}\n\n/**\n * Return if A is an ancestor of B.\n */\n\n\n/**\n * Return the parent instance of the passed-in instance.\n */\n\n\n/**\n * Simulates the traversal of a two-phase, capture/bubble event dispatch.\n */\nfunction traverseTwoPhase(inst, fn, arg) {\n var path = [];\n while (inst) {\n path.push(inst);\n inst = getParent(inst);\n }\n var i = void 0;\n for (i = path.length; i-- > 0;) {\n fn(path[i], 'captured', arg);\n }\n for (i = 0; i < path.length; i++) {\n fn(path[i], 'bubbled', arg);\n }\n}\n\n/**\n * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that\n * should would receive a `mouseEnter` or `mouseLeave` event.\n *\n * Does not invoke the callback on the nearest common ancestor because nothing\n * \"entered\" or \"left\" that element.\n */\nfunction traverseEnterLeave(from, to, fn, argFrom, argTo) {\n var common = from && to ? getLowestCommonAncestor(from, to) : null;\n var pathFrom = [];\n while (true) {\n if (!from) {\n break;\n }\n if (from === common) {\n break;\n }\n var alternate = from.alternate;\n if (alternate !== null && alternate === common) {\n break;\n }\n pathFrom.push(from);\n from = getParent(from);\n }\n var pathTo = [];\n while (true) {\n if (!to) {\n break;\n }\n if (to === common) {\n break;\n }\n var _alternate = to.alternate;\n if (_alternate !== null && _alternate === common) {\n break;\n }\n pathTo.push(to);\n to = getParent(to);\n }\n for (var i = 0; i < pathFrom.length; i++) {\n fn(pathFrom[i], 'bubbled', argFrom);\n }\n for (var _i = pathTo.length; _i-- > 0;) {\n fn(pathTo[_i], 'captured', argTo);\n }\n}\n\n/**\n * Some event types have a notion of different registration names for different\n * \"phases\" of propagation. This finds listeners by a given phase.\n */\nfunction listenerAtPhase(inst, event, propagationPhase) {\n var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];\n return getListener(inst, registrationName);\n}\n\n/**\n * A small set of propagation patterns, each of which will accept a small amount\n * of information, and generate a set of \"dispatch ready event objects\" - which\n * are sets of events that have already been annotated with a set of dispatched\n * listener functions/ids. The API is designed this way to discourage these\n * propagation strategies from actually executing the dispatches, since we\n * always want to collect the entire set of dispatches before executing even a\n * single one.\n */\n\n/**\n * Tags a `SyntheticEvent` with dispatched listeners. Creating this function\n * here, allows us to not have to bind or create functions for each event.\n * Mutating the event's members allows us to not have to create a wrapping\n * \"dispatch\" object that pairs the event with the listener.\n */\nfunction accumulateDirectionalDispatches(inst, phase, event) {\n {\n !inst ? warningWithoutStack$1(false, 'Dispatching inst must not be null') : void 0;\n }\n var listener = listenerAtPhase(inst, event, phase);\n if (listener) {\n event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);\n event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);\n }\n}\n\n/**\n * Collect dispatches (must be entirely collected before dispatching - see unit\n * tests). Lazily allocate the array to conserve memory. We must loop through\n * each event and perform the traversal for each one. We cannot perform a\n * single traversal for the entire collection of events because each event may\n * have a different target.\n */\nfunction accumulateTwoPhaseDispatchesSingle(event) {\n if (event && event.dispatchConfig.phasedRegistrationNames) {\n traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);\n }\n}\n\n/**\n * Accumulates without regard to direction, does not look for phased\n * registration names. Same as `accumulateDirectDispatchesSingle` but without\n * requiring that the `dispatchMarker` be the same as the dispatched ID.\n */\nfunction accumulateDispatches(inst, ignoredDirection, event) {\n if (inst && event && event.dispatchConfig.registrationName) {\n var registrationName = event.dispatchConfig.registrationName;\n var listener = getListener(inst, registrationName);\n if (listener) {\n event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);\n event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);\n }\n }\n}\n\n/**\n * Accumulates dispatches on an `SyntheticEvent`, but only for the\n * `dispatchMarker`.\n * @param {SyntheticEvent} event\n */\nfunction accumulateDirectDispatchesSingle(event) {\n if (event && event.dispatchConfig.registrationName) {\n accumulateDispatches(event._targetInst, null, event);\n }\n}\n\nfunction accumulateTwoPhaseDispatches(events) {\n forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);\n}\n\n\n\nfunction accumulateEnterLeaveDispatches(leave, enter, from, to) {\n traverseEnterLeave(from, to, accumulateDispatches, leave, enter);\n}\n\nfunction accumulateDirectDispatches(events) {\n forEachAccumulated(events, accumulateDirectDispatchesSingle);\n}\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n\n// Do not uses the below two methods directly!\n// Instead use constants exported from DOMTopLevelEventTypes in ReactDOM.\n// (It is the only module that is allowed to access these methods.)\n\nfunction unsafeCastStringToDOMTopLevelType(topLevelType) {\n return topLevelType;\n}\n\nfunction unsafeCastDOMTopLevelTypeToString(topLevelType) {\n return topLevelType;\n}\n\n/**\n * Generate a mapping of standard vendor prefixes using the defined style property and event name.\n *\n * @param {string} styleProp\n * @param {string} eventName\n * @returns {object}\n */\nfunction makePrefixMap(styleProp, eventName) {\n var prefixes = {};\n\n prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();\n prefixes['Webkit' + styleProp] = 'webkit' + eventName;\n prefixes['Moz' + styleProp] = 'moz' + eventName;\n\n return prefixes;\n}\n\n/**\n * A list of event names to a configurable list of vendor prefixes.\n */\nvar vendorPrefixes = {\n animationend: makePrefixMap('Animation', 'AnimationEnd'),\n animationiteration: makePrefixMap('Animation', 'AnimationIteration'),\n animationstart: makePrefixMap('Animation', 'AnimationStart'),\n transitionend: makePrefixMap('Transition', 'TransitionEnd')\n};\n\n/**\n * Event names that have already been detected and prefixed (if applicable).\n */\nvar prefixedEventNames = {};\n\n/**\n * Element to check for prefixes on.\n */\nvar style = {};\n\n/**\n * Bootstrap if a DOM exists.\n */\nif (canUseDOM) {\n style = document.createElement('div').style;\n\n // On some platforms, in particular some releases of Android 4.x,\n // the un-prefixed \"animation\" and \"transition\" properties are defined on the\n // style object but the events that fire will still be prefixed, so we need\n // to check if the un-prefixed events are usable, and if not remove them from the map.\n if (!('AnimationEvent' in window)) {\n delete vendorPrefixes.animationend.animation;\n delete vendorPrefixes.animationiteration.animation;\n delete vendorPrefixes.animationstart.animation;\n }\n\n // Same as above\n if (!('TransitionEvent' in window)) {\n delete vendorPrefixes.transitionend.transition;\n }\n}\n\n/**\n * Attempts to determine the correct vendor prefixed event name.\n *\n * @param {string} eventName\n * @returns {string}\n */\nfunction getVendorPrefixedEventName(eventName) {\n if (prefixedEventNames[eventName]) {\n return prefixedEventNames[eventName];\n } else if (!vendorPrefixes[eventName]) {\n return eventName;\n }\n\n var prefixMap = vendorPrefixes[eventName];\n\n for (var styleProp in prefixMap) {\n if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {\n return prefixedEventNames[eventName] = prefixMap[styleProp];\n }\n }\n\n return eventName;\n}\n\n/**\n * To identify top level events in ReactDOM, we use constants defined by this\n * module. This is the only module that uses the unsafe* methods to express\n * that the constants actually correspond to the browser event names. This lets\n * us save some bundle size by avoiding a top level type -> event name map.\n * The rest of ReactDOM code should import top level types from this file.\n */\nvar TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort');\nvar TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend'));\nvar TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration'));\nvar TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart'));\nvar TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur');\nvar TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay');\nvar TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough');\nvar TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel');\nvar TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change');\nvar TOP_CLICK = unsafeCastStringToDOMTopLevelType('click');\nvar TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close');\nvar TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend');\nvar TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart');\nvar TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate');\nvar TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu');\nvar TOP_COPY = unsafeCastStringToDOMTopLevelType('copy');\nvar TOP_CUT = unsafeCastStringToDOMTopLevelType('cut');\nvar TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick');\nvar TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick');\nvar TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag');\nvar TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend');\nvar TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter');\nvar TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit');\nvar TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave');\nvar TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover');\nvar TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart');\nvar TOP_DROP = unsafeCastStringToDOMTopLevelType('drop');\nvar TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange');\nvar TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied');\nvar TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted');\nvar TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended');\nvar TOP_ERROR = unsafeCastStringToDOMTopLevelType('error');\nvar TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus');\nvar TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture');\nvar TOP_INPUT = unsafeCastStringToDOMTopLevelType('input');\nvar TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid');\nvar TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown');\nvar TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress');\nvar TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup');\nvar TOP_LOAD = unsafeCastStringToDOMTopLevelType('load');\nvar TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart');\nvar TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata');\nvar TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata');\nvar TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture');\nvar TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown');\nvar TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove');\nvar TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout');\nvar TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover');\nvar TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup');\nvar TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste');\nvar TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause');\nvar TOP_PLAY = unsafeCastStringToDOMTopLevelType('play');\nvar TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing');\nvar TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel');\nvar TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown');\n\n\nvar TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove');\nvar TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout');\nvar TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover');\nvar TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup');\nvar TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress');\nvar TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange');\nvar TOP_RESET = unsafeCastStringToDOMTopLevelType('reset');\nvar TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll');\nvar TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked');\nvar TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking');\nvar TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange');\nvar TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled');\nvar TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit');\nvar TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend');\nvar TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput');\nvar TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate');\nvar TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle');\nvar TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel');\nvar TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend');\nvar TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove');\nvar TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart');\nvar TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend'));\nvar TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange');\nvar TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting');\nvar TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel');\n\n// List of events that need to be individually attached to media elements.\n// Note that events in this list will *not* be listened to at the top level\n// unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.\nvar mediaEventTypes = [TOP_ABORT, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_VOLUME_CHANGE, TOP_WAITING];\n\nfunction getRawEventName(topLevelType) {\n return unsafeCastDOMTopLevelTypeToString(topLevelType);\n}\n\n/**\n * These variables store information about text content of a target node,\n * allowing comparison of content before and after a given event.\n *\n * Identify the node where selection currently begins, then observe\n * both its text content and its current position in the DOM. Since the\n * browser may natively replace the target node during composition, we can\n * use its position to find its replacement.\n *\n *\n */\n\nvar root = null;\nvar startText = null;\nvar fallbackText = null;\n\nfunction initialize(nativeEventTarget) {\n root = nativeEventTarget;\n startText = getText();\n return true;\n}\n\nfunction reset() {\n root = null;\n startText = null;\n fallbackText = null;\n}\n\nfunction getData() {\n if (fallbackText) {\n return fallbackText;\n }\n\n var start = void 0;\n var startValue = startText;\n var startLength = startValue.length;\n var end = void 0;\n var endValue = getText();\n var endLength = endValue.length;\n\n for (start = 0; start < startLength; start++) {\n if (startValue[start] !== endValue[start]) {\n break;\n }\n }\n\n var minEnd = startLength - start;\n for (end = 1; end <= minEnd; end++) {\n if (startValue[startLength - end] !== endValue[endLength - end]) {\n break;\n }\n }\n\n var sliceTail = end > 1 ? 1 - end : undefined;\n fallbackText = endValue.slice(start, sliceTail);\n return fallbackText;\n}\n\nfunction getText() {\n if ('value' in root) {\n return root.value;\n }\n return root.textContent;\n}\n\n/* eslint valid-typeof: 0 */\n\nvar EVENT_POOL_SIZE = 10;\n\n/**\n * @interface Event\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\nvar EventInterface = {\n type: null,\n target: null,\n // currentTarget is set when dispatching; no use in copying it here\n currentTarget: function () {\n return null;\n },\n eventPhase: null,\n bubbles: null,\n cancelable: null,\n timeStamp: function (event) {\n return event.timeStamp || Date.now();\n },\n defaultPrevented: null,\n isTrusted: null\n};\n\nfunction functionThatReturnsTrue() {\n return true;\n}\n\nfunction functionThatReturnsFalse() {\n return false;\n}\n\n/**\n * Synthetic events are dispatched by event plugins, typically in response to a\n * top-level event delegation handler.\n *\n * These systems should generally use pooling to reduce the frequency of garbage\n * collection. The system should check `isPersistent` to determine whether the\n * event should be released into the pool after being dispatched. Users that\n * need a persisted event should invoke `persist`.\n *\n * Synthetic events (and subclasses) implement the DOM Level 3 Events API by\n * normalizing browser quirks. Subclasses do not necessarily have to implement a\n * DOM interface; custom application-specific events can also subclass this.\n *\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {*} targetInst Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @param {DOMEventTarget} nativeEventTarget Target node.\n */\nfunction SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {\n {\n // these have a getter/setter for warnings\n delete this.nativeEvent;\n delete this.preventDefault;\n delete this.stopPropagation;\n delete this.isDefaultPrevented;\n delete this.isPropagationStopped;\n }\n\n this.dispatchConfig = dispatchConfig;\n this._targetInst = targetInst;\n this.nativeEvent = nativeEvent;\n\n var Interface = this.constructor.Interface;\n for (var propName in Interface) {\n if (!Interface.hasOwnProperty(propName)) {\n continue;\n }\n {\n delete this[propName]; // this has a getter/setter for warnings\n }\n var normalize = Interface[propName];\n if (normalize) {\n this[propName] = normalize(nativeEvent);\n } else {\n if (propName === 'target') {\n this.target = nativeEventTarget;\n } else {\n this[propName] = nativeEvent[propName];\n }\n }\n }\n\n var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;\n if (defaultPrevented) {\n this.isDefaultPrevented = functionThatReturnsTrue;\n } else {\n this.isDefaultPrevented = functionThatReturnsFalse;\n }\n this.isPropagationStopped = functionThatReturnsFalse;\n return this;\n}\n\n_assign(SyntheticEvent.prototype, {\n preventDefault: function () {\n this.defaultPrevented = true;\n var event = this.nativeEvent;\n if (!event) {\n return;\n }\n\n if (event.preventDefault) {\n event.preventDefault();\n } else if (typeof event.returnValue !== 'unknown') {\n event.returnValue = false;\n }\n this.isDefaultPrevented = functionThatReturnsTrue;\n },\n\n stopPropagation: function () {\n var event = this.nativeEvent;\n if (!event) {\n return;\n }\n\n if (event.stopPropagation) {\n event.stopPropagation();\n } else if (typeof event.cancelBubble !== 'unknown') {\n // The ChangeEventPlugin registers a \"propertychange\" event for\n // IE. This event does not support bubbling or cancelling, and\n // any references to cancelBubble throw \"Member not found\". A\n // typeof check of \"unknown\" circumvents this issue (and is also\n // IE specific).\n event.cancelBubble = true;\n }\n\n this.isPropagationStopped = functionThatReturnsTrue;\n },\n\n /**\n * We release all dispatched `SyntheticEvent`s after each event loop, adding\n * them back into the pool. This allows a way to hold onto a reference that\n * won't be added back into the pool.\n */\n persist: function () {\n this.isPersistent = functionThatReturnsTrue;\n },\n\n /**\n * Checks if this event should be released back into the pool.\n *\n * @return {boolean} True if this should not be released, false otherwise.\n */\n isPersistent: functionThatReturnsFalse,\n\n /**\n * `PooledClass` looks for `destructor` on each instance it releases.\n */\n destructor: function () {\n var Interface = this.constructor.Interface;\n for (var propName in Interface) {\n {\n Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));\n }\n }\n this.dispatchConfig = null;\n this._targetInst = null;\n this.nativeEvent = null;\n this.isDefaultPrevented = functionThatReturnsFalse;\n this.isPropagationStopped = functionThatReturnsFalse;\n this._dispatchListeners = null;\n this._dispatchInstances = null;\n {\n Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));\n Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse));\n Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse));\n Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () {}));\n Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () {}));\n }\n }\n});\n\nSyntheticEvent.Interface = EventInterface;\n\n/**\n * Helper to reduce boilerplate when creating subclasses.\n */\nSyntheticEvent.extend = function (Interface) {\n var Super = this;\n\n var E = function () {};\n E.prototype = Super.prototype;\n var prototype = new E();\n\n function Class() {\n return Super.apply(this, arguments);\n }\n _assign(prototype, Class.prototype);\n Class.prototype = prototype;\n Class.prototype.constructor = Class;\n\n Class.Interface = _assign({}, Super.Interface, Interface);\n Class.extend = Super.extend;\n addEventPoolingTo(Class);\n\n return Class;\n};\n\naddEventPoolingTo(SyntheticEvent);\n\n/**\n * Helper to nullify syntheticEvent instance properties when destructing\n *\n * @param {String} propName\n * @param {?object} getVal\n * @return {object} defineProperty object\n */\nfunction getPooledWarningPropertyDefinition(propName, getVal) {\n var isFunction = typeof getVal === 'function';\n return {\n configurable: true,\n set: set,\n get: get\n };\n\n function set(val) {\n var action = isFunction ? 'setting the method' : 'setting the property';\n warn(action, 'This is effectively a no-op');\n return val;\n }\n\n function get() {\n var action = isFunction ? 'accessing the method' : 'accessing the property';\n var result = isFunction ? 'This is a no-op function' : 'This is set to null';\n warn(action, result);\n return getVal;\n }\n\n function warn(action, result) {\n var warningCondition = false;\n !warningCondition ? warningWithoutStack$1(false, \"This synthetic event is reused for performance reasons. If you're seeing this, \" + \"you're %s `%s` on a released/nullified synthetic event. %s. \" + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;\n }\n}\n\nfunction getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {\n var EventConstructor = this;\n if (EventConstructor.eventPool.length) {\n var instance = EventConstructor.eventPool.pop();\n EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);\n return instance;\n }\n return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);\n}\n\nfunction releasePooledEvent(event) {\n var EventConstructor = this;\n !(event instanceof EventConstructor) ? invariant(false, 'Trying to release an event instance into a pool of a different type.') : void 0;\n event.destructor();\n if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) {\n EventConstructor.eventPool.push(event);\n }\n}\n\nfunction addEventPoolingTo(EventConstructor) {\n EventConstructor.eventPool = [];\n EventConstructor.getPooled = getPooledEvent;\n EventConstructor.release = releasePooledEvent;\n}\n\n/**\n * @interface Event\n * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents\n */\nvar SyntheticCompositionEvent = SyntheticEvent.extend({\n data: null\n});\n\n/**\n * @interface Event\n * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105\n * /#events-inputevents\n */\nvar SyntheticInputEvent = SyntheticEvent.extend({\n data: null\n});\n\nvar END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space\nvar START_KEYCODE = 229;\n\nvar canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;\n\nvar documentMode = null;\nif (canUseDOM && 'documentMode' in document) {\n documentMode = document.documentMode;\n}\n\n// Webkit offers a very useful `textInput` event that can be used to\n// directly represent `beforeInput`. The IE `textinput` event is not as\n// useful, so we don't use it.\nvar canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode;\n\n// In IE9+, we have access to composition events, but the data supplied\n// by the native compositionend event may be incorrect. Japanese ideographic\n// spaces, for instance (\\u3000) are not recorded correctly.\nvar useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);\n\nvar SPACEBAR_CODE = 32;\nvar SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);\n\n// Events and their corresponding property names.\nvar eventTypes = {\n beforeInput: {\n phasedRegistrationNames: {\n bubbled: 'onBeforeInput',\n captured: 'onBeforeInputCapture'\n },\n dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE]\n },\n compositionEnd: {\n phasedRegistrationNames: {\n bubbled: 'onCompositionEnd',\n captured: 'onCompositionEndCapture'\n },\n dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]\n },\n compositionStart: {\n phasedRegistrationNames: {\n bubbled: 'onCompositionStart',\n captured: 'onCompositionStartCapture'\n },\n dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]\n },\n compositionUpdate: {\n phasedRegistrationNames: {\n bubbled: 'onCompositionUpdate',\n captured: 'onCompositionUpdateCapture'\n },\n dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]\n }\n};\n\n// Track whether we've ever handled a keypress on the space key.\nvar hasSpaceKeypress = false;\n\n/**\n * Return whether a native keypress event is assumed to be a command.\n * This is required because Firefox fires `keypress` events for key commands\n * (cut, copy, select-all, etc.) even though no character is inserted.\n */\nfunction isKeypressCommand(nativeEvent) {\n return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&\n // ctrlKey && altKey is equivalent to AltGr, and is not a command.\n !(nativeEvent.ctrlKey && nativeEvent.altKey);\n}\n\n/**\n * Translate native top level events into event types.\n *\n * @param {string} topLevelType\n * @return {object}\n */\nfunction getCompositionEventType(topLevelType) {\n switch (topLevelType) {\n case TOP_COMPOSITION_START:\n return eventTypes.compositionStart;\n case TOP_COMPOSITION_END:\n return eventTypes.compositionEnd;\n case TOP_COMPOSITION_UPDATE:\n return eventTypes.compositionUpdate;\n }\n}\n\n/**\n * Does our fallback best-guess model think this event signifies that\n * composition has begun?\n *\n * @param {string} topLevelType\n * @param {object} nativeEvent\n * @return {boolean}\n */\nfunction isFallbackCompositionStart(topLevelType, nativeEvent) {\n return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE;\n}\n\n/**\n * Does our fallback mode think that this event is the end of composition?\n *\n * @param {string} topLevelType\n * @param {object} nativeEvent\n * @return {boolean}\n */\nfunction isFallbackCompositionEnd(topLevelType, nativeEvent) {\n switch (topLevelType) {\n case TOP_KEY_UP:\n // Command keys insert or clear IME input.\n return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;\n case TOP_KEY_DOWN:\n // Expect IME keyCode on each keydown. If we get any other\n // code we must have exited earlier.\n return nativeEvent.keyCode !== START_KEYCODE;\n case TOP_KEY_PRESS:\n case TOP_MOUSE_DOWN:\n case TOP_BLUR:\n // Events are not possible without cancelling IME.\n return true;\n default:\n return false;\n }\n}\n\n/**\n * Google Input Tools provides composition data via a CustomEvent,\n * with the `data` property populated in the `detail` object. If this\n * is available on the event object, use it. If not, this is a plain\n * composition event and we have nothing special to extract.\n *\n * @param {object} nativeEvent\n * @return {?string}\n */\nfunction getDataFromCustomEvent(nativeEvent) {\n var detail = nativeEvent.detail;\n if (typeof detail === 'object' && 'data' in detail) {\n return detail.data;\n }\n return null;\n}\n\n/**\n * Check if a composition event was triggered by Korean IME.\n * Our fallback mode does not work well with IE's Korean IME,\n * so just use native composition events when Korean IME is used.\n * Although CompositionEvent.locale property is deprecated,\n * it is available in IE, where our fallback mode is enabled.\n *\n * @param {object} nativeEvent\n * @return {boolean}\n */\nfunction isUsingKoreanIME(nativeEvent) {\n return nativeEvent.locale === 'ko';\n}\n\n// Track the current IME composition status, if any.\nvar isComposing = false;\n\n/**\n * @return {?object} A SyntheticCompositionEvent.\n */\nfunction extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var eventType = void 0;\n var fallbackData = void 0;\n\n if (canUseCompositionEvent) {\n eventType = getCompositionEventType(topLevelType);\n } else if (!isComposing) {\n if (isFallbackCompositionStart(topLevelType, nativeEvent)) {\n eventType = eventTypes.compositionStart;\n }\n } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {\n eventType = eventTypes.compositionEnd;\n }\n\n if (!eventType) {\n return null;\n }\n\n if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {\n // The current composition is stored statically and must not be\n // overwritten while composition continues.\n if (!isComposing && eventType === eventTypes.compositionStart) {\n isComposing = initialize(nativeEventTarget);\n } else if (eventType === eventTypes.compositionEnd) {\n if (isComposing) {\n fallbackData = getData();\n }\n }\n }\n\n var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);\n\n if (fallbackData) {\n // Inject data generated from fallback path into the synthetic event.\n // This matches the property of native CompositionEventInterface.\n event.data = fallbackData;\n } else {\n var customData = getDataFromCustomEvent(nativeEvent);\n if (customData !== null) {\n event.data = customData;\n }\n }\n\n accumulateTwoPhaseDispatches(event);\n return event;\n}\n\n/**\n * @param {TopLevelType} topLevelType Number from `TopLevelType`.\n * @param {object} nativeEvent Native browser event.\n * @return {?string} The string corresponding to this `beforeInput` event.\n */\nfunction getNativeBeforeInputChars(topLevelType, nativeEvent) {\n switch (topLevelType) {\n case TOP_COMPOSITION_END:\n return getDataFromCustomEvent(nativeEvent);\n case TOP_KEY_PRESS:\n /**\n * If native `textInput` events are available, our goal is to make\n * use of them. However, there is a special case: the spacebar key.\n * In Webkit, preventing default on a spacebar `textInput` event\n * cancels character insertion, but it *also* causes the browser\n * to fall back to its default spacebar behavior of scrolling the\n * page.\n *\n * Tracking at:\n * https://code.google.com/p/chromium/issues/detail?id=355103\n *\n * To avoid this issue, use the keypress event as if no `textInput`\n * event is available.\n */\n var which = nativeEvent.which;\n if (which !== SPACEBAR_CODE) {\n return null;\n }\n\n hasSpaceKeypress = true;\n return SPACEBAR_CHAR;\n\n case TOP_TEXT_INPUT:\n // Record the characters to be added to the DOM.\n var chars = nativeEvent.data;\n\n // If it's a spacebar character, assume that we have already handled\n // it at the keypress level and bail immediately. Android Chrome\n // doesn't give us keycodes, so we need to ignore it.\n if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {\n return null;\n }\n\n return chars;\n\n default:\n // For other native event types, do nothing.\n return null;\n }\n}\n\n/**\n * For browsers that do not provide the `textInput` event, extract the\n * appropriate string to use for SyntheticInputEvent.\n *\n * @param {number} topLevelType Number from `TopLevelEventTypes`.\n * @param {object} nativeEvent Native browser event.\n * @return {?string} The fallback string for this `beforeInput` event.\n */\nfunction getFallbackBeforeInputChars(topLevelType, nativeEvent) {\n // If we are currently composing (IME) and using a fallback to do so,\n // try to extract the composed characters from the fallback object.\n // If composition event is available, we extract a string only at\n // compositionevent, otherwise extract it at fallback events.\n if (isComposing) {\n if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {\n var chars = getData();\n reset();\n isComposing = false;\n return chars;\n }\n return null;\n }\n\n switch (topLevelType) {\n case TOP_PASTE:\n // If a paste event occurs after a keypress, throw out the input\n // chars. Paste events should not lead to BeforeInput events.\n return null;\n case TOP_KEY_PRESS:\n /**\n * As of v27, Firefox may fire keypress events even when no character\n * will be inserted. A few possibilities:\n *\n * - `which` is `0`. Arrow keys, Esc key, etc.\n *\n * - `which` is the pressed key code, but no char is available.\n * Ex: 'AltGr + d` in Polish. There is no modified character for\n * this key combination and no character is inserted into the\n * document, but FF fires the keypress for char code `100` anyway.\n * No `input` event will occur.\n *\n * - `which` is the pressed key code, but a command combination is\n * being used. Ex: `Cmd+C`. No character is inserted, and no\n * `input` event will occur.\n */\n if (!isKeypressCommand(nativeEvent)) {\n // IE fires the `keypress` event when a user types an emoji via\n // Touch keyboard of Windows. In such a case, the `char` property\n // holds an emoji character like `\\uD83D\\uDE0A`. Because its length\n // is 2, the property `which` does not represent an emoji correctly.\n // In such a case, we directly return the `char` property instead of\n // using `which`.\n if (nativeEvent.char && nativeEvent.char.length > 1) {\n return nativeEvent.char;\n } else if (nativeEvent.which) {\n return String.fromCharCode(nativeEvent.which);\n }\n }\n return null;\n case TOP_COMPOSITION_END:\n return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;\n default:\n return null;\n }\n}\n\n/**\n * Extract a SyntheticInputEvent for `beforeInput`, based on either native\n * `textInput` or fallback behavior.\n *\n * @return {?object} A SyntheticInputEvent.\n */\nfunction extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var chars = void 0;\n\n if (canUseTextInputEvent) {\n chars = getNativeBeforeInputChars(topLevelType, nativeEvent);\n } else {\n chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);\n }\n\n // If no characters are being inserted, no BeforeInput event should\n // be fired.\n if (!chars) {\n return null;\n }\n\n var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);\n\n event.data = chars;\n accumulateTwoPhaseDispatches(event);\n return event;\n}\n\n/**\n * Create an `onBeforeInput` event to match\n * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.\n *\n * This event plugin is based on the native `textInput` event\n * available in Chrome, Safari, Opera, and IE. This event fires after\n * `onKeyPress` and `onCompositionEnd`, but before `onInput`.\n *\n * `beforeInput` is spec'd but not implemented in any browsers, and\n * the `input` event does not provide any useful information about what has\n * actually been added, contrary to the spec. Thus, `textInput` is the best\n * available event to identify the characters that have actually been inserted\n * into the target node.\n *\n * This plugin is also responsible for emitting `composition` events, thus\n * allowing us to share composition fallback code for both `beforeInput` and\n * `composition` event types.\n */\nvar BeforeInputEventPlugin = {\n eventTypes: eventTypes,\n\n extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);\n\n var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);\n\n if (composition === null) {\n return beforeInput;\n }\n\n if (beforeInput === null) {\n return composition;\n }\n\n return [composition, beforeInput];\n }\n};\n\n// Use to restore controlled state after a change event has fired.\n\nvar restoreImpl = null;\nvar restoreTarget = null;\nvar restoreQueue = null;\n\nfunction restoreStateOfTarget(target) {\n // We perform this translation at the end of the event loop so that we\n // always receive the correct fiber here\n var internalInstance = getInstanceFromNode(target);\n if (!internalInstance) {\n // Unmounted\n return;\n }\n !(typeof restoreImpl === 'function') ? invariant(false, 'setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n var props = getFiberCurrentPropsFromNode(internalInstance.stateNode);\n restoreImpl(internalInstance.stateNode, internalInstance.type, props);\n}\n\nfunction setRestoreImplementation(impl) {\n restoreImpl = impl;\n}\n\nfunction enqueueStateRestore(target) {\n if (restoreTarget) {\n if (restoreQueue) {\n restoreQueue.push(target);\n } else {\n restoreQueue = [target];\n }\n } else {\n restoreTarget = target;\n }\n}\n\nfunction needsStateRestore() {\n return restoreTarget !== null || restoreQueue !== null;\n}\n\nfunction restoreStateIfNeeded() {\n if (!restoreTarget) {\n return;\n }\n var target = restoreTarget;\n var queuedTargets = restoreQueue;\n restoreTarget = null;\n restoreQueue = null;\n\n restoreStateOfTarget(target);\n if (queuedTargets) {\n for (var i = 0; i < queuedTargets.length; i++) {\n restoreStateOfTarget(queuedTargets[i]);\n }\n }\n}\n\n// Used as a way to call batchedUpdates when we don't have a reference to\n// the renderer. Such as when we're dispatching events or if third party\n// libraries need to call batchedUpdates. Eventually, this API will go away when\n// everything is batched by default. We'll then have a similar API to opt-out of\n// scheduled work and instead do synchronous work.\n\n// Defaults\nvar _batchedUpdatesImpl = function (fn, bookkeeping) {\n return fn(bookkeeping);\n};\nvar _interactiveUpdatesImpl = function (fn, a, b) {\n return fn(a, b);\n};\nvar _flushInteractiveUpdatesImpl = function () {};\n\nvar isBatching = false;\nfunction batchedUpdates(fn, bookkeeping) {\n if (isBatching) {\n // If we are currently inside another batch, we need to wait until it\n // fully completes before restoring state.\n return fn(bookkeeping);\n }\n isBatching = true;\n try {\n return _batchedUpdatesImpl(fn, bookkeeping);\n } finally {\n // Here we wait until all updates have propagated, which is important\n // when using controlled components within layers:\n // https://github.com/facebook/react/issues/1698\n // Then we restore state of any controlled component.\n isBatching = false;\n var controlledComponentsHavePendingUpdates = needsStateRestore();\n if (controlledComponentsHavePendingUpdates) {\n // If a controlled event was fired, we may need to restore the state of\n // the DOM node back to the controlled value. This is necessary when React\n // bails out of the update without touching the DOM.\n _flushInteractiveUpdatesImpl();\n restoreStateIfNeeded();\n }\n }\n}\n\nfunction interactiveUpdates(fn, a, b) {\n return _interactiveUpdatesImpl(fn, a, b);\n}\n\n\n\nfunction setBatchingImplementation(batchedUpdatesImpl, interactiveUpdatesImpl, flushInteractiveUpdatesImpl) {\n _batchedUpdatesImpl = batchedUpdatesImpl;\n _interactiveUpdatesImpl = interactiveUpdatesImpl;\n _flushInteractiveUpdatesImpl = flushInteractiveUpdatesImpl;\n}\n\n/**\n * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary\n */\nvar supportedInputTypes = {\n color: true,\n date: true,\n datetime: true,\n 'datetime-local': true,\n email: true,\n month: true,\n number: true,\n password: true,\n range: true,\n search: true,\n tel: true,\n text: true,\n time: true,\n url: true,\n week: true\n};\n\nfunction isTextInputElement(elem) {\n var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n\n if (nodeName === 'input') {\n return !!supportedInputTypes[elem.type];\n }\n\n if (nodeName === 'textarea') {\n return true;\n }\n\n return false;\n}\n\n/**\n * HTML nodeType values that represent the type of the node\n */\n\nvar ELEMENT_NODE = 1;\nvar TEXT_NODE = 3;\nvar COMMENT_NODE = 8;\nvar DOCUMENT_NODE = 9;\nvar DOCUMENT_FRAGMENT_NODE = 11;\n\n/**\n * Gets the target node from a native browser event by accounting for\n * inconsistencies in browser DOM APIs.\n *\n * @param {object} nativeEvent Native browser event.\n * @return {DOMEventTarget} Target node.\n */\nfunction getEventTarget(nativeEvent) {\n // Fallback to nativeEvent.srcElement for IE9\n // https://github.com/facebook/react/issues/12506\n var target = nativeEvent.target || nativeEvent.srcElement || window;\n\n // Normalize SVG <use> element events #4963\n if (target.correspondingUseElement) {\n target = target.correspondingUseElement;\n }\n\n // Safari may fire events on text nodes (Node.TEXT_NODE is 3).\n // @see http://www.quirksmode.org/js/events_properties.html\n return target.nodeType === TEXT_NODE ? target.parentNode : target;\n}\n\n/**\n * Checks if an event is supported in the current execution environment.\n *\n * NOTE: This will not work correctly for non-generic events such as `change`,\n * `reset`, `load`, `error`, and `select`.\n *\n * Borrows from Modernizr.\n *\n * @param {string} eventNameSuffix Event name, e.g. \"click\".\n * @return {boolean} True if the event is supported.\n * @internal\n * @license Modernizr 3.0.0pre (Custom Build) | MIT\n */\nfunction isEventSupported(eventNameSuffix) {\n if (!canUseDOM) {\n return false;\n }\n\n var eventName = 'on' + eventNameSuffix;\n var isSupported = eventName in document;\n\n if (!isSupported) {\n var element = document.createElement('div');\n element.setAttribute(eventName, 'return;');\n isSupported = typeof element[eventName] === 'function';\n }\n\n return isSupported;\n}\n\nfunction isCheckable(elem) {\n var type = elem.type;\n var nodeName = elem.nodeName;\n return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');\n}\n\nfunction getTracker(node) {\n return node._valueTracker;\n}\n\nfunction detachTracker(node) {\n node._valueTracker = null;\n}\n\nfunction getValueFromNode(node) {\n var value = '';\n if (!node) {\n return value;\n }\n\n if (isCheckable(node)) {\n value = node.checked ? 'true' : 'false';\n } else {\n value = node.value;\n }\n\n return value;\n}\n\nfunction trackValueOnNode(node) {\n var valueField = isCheckable(node) ? 'checked' : 'value';\n var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);\n\n var currentValue = '' + node[valueField];\n\n // if someone has already defined a value or Safari, then bail\n // and don't track value will cause over reporting of changes,\n // but it's better then a hard failure\n // (needed for certain tests that spyOn input values and Safari)\n if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {\n return;\n }\n var get = descriptor.get,\n set = descriptor.set;\n\n Object.defineProperty(node, valueField, {\n configurable: true,\n get: function () {\n return get.call(this);\n },\n set: function (value) {\n currentValue = '' + value;\n set.call(this, value);\n }\n });\n // We could've passed this the first time\n // but it triggers a bug in IE11 and Edge 14/15.\n // Calling defineProperty() again should be equivalent.\n // https://github.com/facebook/react/issues/11768\n Object.defineProperty(node, valueField, {\n enumerable: descriptor.enumerable\n });\n\n var tracker = {\n getValue: function () {\n return currentValue;\n },\n setValue: function (value) {\n currentValue = '' + value;\n },\n stopTracking: function () {\n detachTracker(node);\n delete node[valueField];\n }\n };\n return tracker;\n}\n\nfunction track(node) {\n if (getTracker(node)) {\n return;\n }\n\n // TODO: Once it's just Fiber we can move this to node._wrapperState\n node._valueTracker = trackValueOnNode(node);\n}\n\nfunction updateValueIfChanged(node) {\n if (!node) {\n return false;\n }\n\n var tracker = getTracker(node);\n // if there is no tracker at this point it's unlikely\n // that trying again will succeed\n if (!tracker) {\n return true;\n }\n\n var lastValue = tracker.getValue();\n var nextValue = getValueFromNode(node);\n if (nextValue !== lastValue) {\n tracker.setValue(nextValue);\n return true;\n }\n return false;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\n// Prevent newer renderers from RTE when used with older react package versions.\n// Current owner and dispatcher used to share the same ref,\n// but PR #14548 split them out to better support the react-debug-tools package.\nif (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) {\n ReactSharedInternals.ReactCurrentDispatcher = {\n current: null\n };\n}\n\nvar BEFORE_SLASH_RE = /^(.*)[\\\\\\/]/;\n\nvar describeComponentFrame = function (name, source, ownerName) {\n var sourceInfo = '';\n if (source) {\n var path = source.fileName;\n var fileName = path.replace(BEFORE_SLASH_RE, '');\n {\n // In DEV, include code for a common special case:\n // prefer \"folder/index.js\" instead of just \"index.js\".\n if (/^index\\./.test(fileName)) {\n var match = path.match(BEFORE_SLASH_RE);\n if (match) {\n var pathBeforeSlash = match[1];\n if (pathBeforeSlash) {\n var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');\n fileName = folderName + '/' + fileName;\n }\n }\n }\n }\n sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';\n } else if (ownerName) {\n sourceInfo = ' (created by ' + ownerName + ')';\n }\n return '\\n in ' + (name || 'Unknown') + sourceInfo;\n};\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\n\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;\n\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\n\nvar MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\n\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n return null;\n}\n\nvar Pending = 0;\nvar Resolved = 1;\nvar Rejected = 2;\n\nfunction refineResolvedLazyComponent(lazyComponent) {\n return lazyComponent._status === Resolved ? lazyComponent._result : null;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var functionName = innerType.displayName || innerType.name || '';\n return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);\n}\n\nfunction getComponentName(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n {\n if (typeof type.tag === 'number') {\n warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n if (typeof type === 'string') {\n return type;\n }\n switch (type) {\n case REACT_CONCURRENT_MODE_TYPE:\n return 'ConcurrentMode';\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n case REACT_PORTAL_TYPE:\n return 'Portal';\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n }\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n return 'Context.Consumer';\n case REACT_PROVIDER_TYPE:\n return 'Context.Provider';\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n case REACT_MEMO_TYPE:\n return getComponentName(type.type);\n case REACT_LAZY_TYPE:\n {\n var thenable = type;\n var resolvedThenable = refineResolvedLazyComponent(thenable);\n if (resolvedThenable) {\n return getComponentName(resolvedThenable);\n }\n }\n }\n }\n return null;\n}\n\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction describeFiber(fiber) {\n switch (fiber.tag) {\n case HostRoot:\n case HostPortal:\n case HostText:\n case Fragment:\n case ContextProvider:\n case ContextConsumer:\n return '';\n default:\n var owner = fiber._debugOwner;\n var source = fiber._debugSource;\n var name = getComponentName(fiber.type);\n var ownerName = null;\n if (owner) {\n ownerName = getComponentName(owner.type);\n }\n return describeComponentFrame(name, source, ownerName);\n }\n}\n\nfunction getStackByFiberInDevAndProd(workInProgress) {\n var info = '';\n var node = workInProgress;\n do {\n info += describeFiber(node);\n node = node.return;\n } while (node);\n return info;\n}\n\nvar current = null;\nvar phase = null;\n\nfunction getCurrentFiberOwnerNameInDevOrNull() {\n {\n if (current === null) {\n return null;\n }\n var owner = current._debugOwner;\n if (owner !== null && typeof owner !== 'undefined') {\n return getComponentName(owner.type);\n }\n }\n return null;\n}\n\nfunction getCurrentFiberStackInDev() {\n {\n if (current === null) {\n return '';\n }\n // Safe because if current fiber exists, we are reconciling,\n // and it is guaranteed to be the work-in-progress version.\n return getStackByFiberInDevAndProd(current);\n }\n return '';\n}\n\nfunction resetCurrentFiber() {\n {\n ReactDebugCurrentFrame.getCurrentStack = null;\n current = null;\n phase = null;\n }\n}\n\nfunction setCurrentFiber(fiber) {\n {\n ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;\n current = fiber;\n phase = null;\n }\n}\n\nfunction setCurrentPhase(lifeCyclePhase) {\n {\n phase = lifeCyclePhase;\n }\n}\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = warningWithoutStack$1;\n\n{\n warning = function (condition, format) {\n if (condition) {\n return;\n }\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n // eslint-disable-next-line react-internal/warning-and-invariant-args\n\n for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));\n };\n}\n\nvar warning$1 = warning;\n\n// A reserved attribute.\n// It is handled by React separately and shouldn't be written to the DOM.\nvar RESERVED = 0;\n\n// A simple string attribute.\n// Attributes that aren't in the whitelist are presumed to have this type.\nvar STRING = 1;\n\n// A string attribute that accepts booleans in React. In HTML, these are called\n// \"enumerated\" attributes with \"true\" and \"false\" as possible values.\n// When true, it should be set to a \"true\" string.\n// When false, it should be set to a \"false\" string.\nvar BOOLEANISH_STRING = 2;\n\n// A real boolean attribute.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\nvar BOOLEAN = 3;\n\n// An attribute that can be used as a flag as well as with a value.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\n// For any other value, should be present with that value.\nvar OVERLOADED_BOOLEAN = 4;\n\n// An attribute that must be numeric or parse as a numeric.\n// When falsy, it should be removed.\nvar NUMERIC = 5;\n\n// An attribute that must be positive numeric or parse as a positive numeric.\n// When falsy, it should be removed.\nvar POSITIVE_NUMERIC = 6;\n\n/* eslint-disable max-len */\nvar 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';\n/* eslint-enable max-len */\nvar ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + '\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040';\n\n\nvar ROOT_ATTRIBUTE_NAME = 'data-reactroot';\nvar VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar illegalAttributeNameCache = {};\nvar validatedAttributeNameCache = {};\n\nfunction isAttributeNameSafe(attributeName) {\n if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {\n return true;\n }\n if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {\n return false;\n }\n if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {\n validatedAttributeNameCache[attributeName] = true;\n return true;\n }\n illegalAttributeNameCache[attributeName] = true;\n {\n warning$1(false, 'Invalid attribute name: `%s`', attributeName);\n }\n return false;\n}\n\nfunction shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {\n if (propertyInfo !== null) {\n return propertyInfo.type === RESERVED;\n }\n if (isCustomComponentTag) {\n return false;\n }\n if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {\n return true;\n }\n return false;\n}\n\nfunction shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {\n if (propertyInfo !== null && propertyInfo.type === RESERVED) {\n return false;\n }\n switch (typeof value) {\n case 'function':\n // $FlowIssue symbol is perfectly valid here\n case 'symbol':\n // eslint-disable-line\n return true;\n case 'boolean':\n {\n if (isCustomComponentTag) {\n return false;\n }\n if (propertyInfo !== null) {\n return !propertyInfo.acceptsBooleans;\n } else {\n var prefix = name.toLowerCase().slice(0, 5);\n return prefix !== 'data-' && prefix !== 'aria-';\n }\n }\n default:\n return false;\n }\n}\n\nfunction shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {\n if (value === null || typeof value === 'undefined') {\n return true;\n }\n if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {\n return true;\n }\n if (isCustomComponentTag) {\n return false;\n }\n if (propertyInfo !== null) {\n switch (propertyInfo.type) {\n case BOOLEAN:\n return !value;\n case OVERLOADED_BOOLEAN:\n return value === false;\n case NUMERIC:\n return isNaN(value);\n case POSITIVE_NUMERIC:\n return isNaN(value) || value < 1;\n }\n }\n return false;\n}\n\nfunction getPropertyInfo(name) {\n return properties.hasOwnProperty(name) ? properties[name] : null;\n}\n\nfunction PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace) {\n this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;\n this.attributeName = attributeName;\n this.attributeNamespace = attributeNamespace;\n this.mustUseProperty = mustUseProperty;\n this.propertyName = name;\n this.type = type;\n}\n\n// When adding attributes to this list, be sure to also add them to\n// the `possibleStandardNames` module to ensure casing and incorrect\n// name warnings.\nvar properties = {};\n\n// These props are reserved by React. They shouldn't be written to the DOM.\n['children', 'dangerouslySetInnerHTML',\n// TODO: This prevents the assignment of defaultValue to regular\n// elements (not just inputs). Now that ReactDOMInput assigns to the\n// defaultValue property -- do we need this?\n'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty\n name, // attributeName\n null);\n} // attributeNamespace\n);\n\n// A few React string attributes have a different name.\n// This is a mapping from React prop names to the attribute names.\n[['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {\n var name = _ref[0],\n attributeName = _ref[1];\n\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, // attributeName\n null);\n} // attributeNamespace\n);\n\n// These are \"enumerated\" HTML attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n name.toLowerCase(), // attributeName\n null);\n} // attributeNamespace\n);\n\n// These are \"enumerated\" SVG attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n// Since these are SVG attributes, their attribute names are case-sensitive.\n['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n name, // attributeName\n null);\n} // attributeNamespace\n);\n\n// These are HTML boolean attributes.\n['allowFullScreen', 'async',\n// Note: there is a special case that prevents it from being written to the DOM\n// on the client side because the browsers are inconsistent. Instead we call focus().\n'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless',\n// Microdata\n'itemScope'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty\n name.toLowerCase(), // attributeName\n null);\n} // attributeNamespace\n);\n\n// These are the few React props that we set as DOM properties\n// rather than attributes. These are all booleans.\n['checked',\n// Note: `option.selected` is not updated if `select.multiple` is\n// disabled with `removeAttribute`. We have special logic for handling this.\n'multiple', 'muted', 'selected'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty\n name, // attributeName\n null);\n} // attributeNamespace\n);\n\n// These are HTML attributes that are \"overloaded booleans\": they behave like\n// booleans, but can also accept a string value.\n['capture', 'download'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty\n name, // attributeName\n null);\n} // attributeNamespace\n);\n\n// These are HTML attributes that must be positive numbers.\n['cols', 'rows', 'size', 'span'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty\n name, // attributeName\n null);\n} // attributeNamespace\n);\n\n// These are HTML attributes that must be numbers.\n['rowSpan', 'start'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty\n name.toLowerCase(), // attributeName\n null);\n} // attributeNamespace\n);\n\nvar CAMELIZE = /[\\-\\:]([a-z])/g;\nvar capitalize = function (token) {\n return token[1].toUpperCase();\n};\n\n// This is a list of all SVG attributes that need special casing, namespacing,\n// or boolean value assignment. Regular attributes that just accept strings\n// and have the same names are omitted, just like in the HTML whitelist.\n// Some of these attributes can be hard to find. This list was created by\n// scrapping the MDN documentation.\n['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height'].forEach(function (attributeName) {\n var name = attributeName.replace(CAMELIZE, capitalize);\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, null);\n} // attributeNamespace\n);\n\n// String SVG attributes with the xlink namespace.\n['xlink:actuate', 'xlink:arcrole', 'xlink:href', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function (attributeName) {\n var name = attributeName.replace(CAMELIZE, capitalize);\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, 'http://www.w3.org/1999/xlink');\n});\n\n// String SVG attributes with the xml namespace.\n['xml:base', 'xml:lang', 'xml:space'].forEach(function (attributeName) {\n var name = attributeName.replace(CAMELIZE, capitalize);\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, 'http://www.w3.org/XML/1998/namespace');\n});\n\n// These attribute exists both in HTML and SVG.\n// The attribute name is case-sensitive in SVG so we can't just use\n// the React name like we do for attributes that exist only in HTML.\n['tabIndex', 'crossOrigin'].forEach(function (attributeName) {\n properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty\n attributeName.toLowerCase(), // attributeName\n null);\n} // attributeNamespace\n);\n\n/**\n * Get the value for a property on a node. Only used in DEV for SSR validation.\n * The \"expected\" argument is used as a hint of what the expected value is.\n * Some properties have multiple equivalent values.\n */\nfunction getValueForProperty(node, name, expected, propertyInfo) {\n {\n if (propertyInfo.mustUseProperty) {\n var propertyName = propertyInfo.propertyName;\n\n return node[propertyName];\n } else {\n var attributeName = propertyInfo.attributeName;\n\n var stringValue = null;\n\n if (propertyInfo.type === OVERLOADED_BOOLEAN) {\n if (node.hasAttribute(attributeName)) {\n var value = node.getAttribute(attributeName);\n if (value === '') {\n return true;\n }\n if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {\n return value;\n }\n if (value === '' + expected) {\n return expected;\n }\n return value;\n }\n } else if (node.hasAttribute(attributeName)) {\n if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {\n // We had an attribute but shouldn't have had one, so read it\n // for the error message.\n return node.getAttribute(attributeName);\n }\n if (propertyInfo.type === BOOLEAN) {\n // If this was a boolean, it doesn't matter what the value is\n // the fact that we have it is the same as the expected.\n return expected;\n }\n // Even if this property uses a namespace we use getAttribute\n // because we assume its namespaced name is the same as our config.\n // To use getAttributeNS we need the local name which we don't have\n // in our config atm.\n stringValue = node.getAttribute(attributeName);\n }\n\n if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {\n return stringValue === null ? expected : stringValue;\n } else if (stringValue === '' + expected) {\n return expected;\n } else {\n return stringValue;\n }\n }\n }\n}\n\n/**\n * Get the value for a attribute on a node. Only used in DEV for SSR validation.\n * The third argument is used as a hint of what the expected value is. Some\n * attributes have multiple equivalent values.\n */\nfunction getValueForAttribute(node, name, expected) {\n {\n if (!isAttributeNameSafe(name)) {\n return;\n }\n if (!node.hasAttribute(name)) {\n return expected === undefined ? undefined : null;\n }\n var value = node.getAttribute(name);\n if (value === '' + expected) {\n return expected;\n }\n return value;\n }\n}\n\n/**\n * Sets the value for a property on a node.\n *\n * @param {DOMElement} node\n * @param {string} name\n * @param {*} value\n */\nfunction setValueForProperty(node, name, value, isCustomComponentTag) {\n var propertyInfo = getPropertyInfo(name);\n if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {\n return;\n }\n if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {\n value = null;\n }\n // If the prop isn't in the special list, treat it as a simple attribute.\n if (isCustomComponentTag || propertyInfo === null) {\n if (isAttributeNameSafe(name)) {\n var _attributeName = name;\n if (value === null) {\n node.removeAttribute(_attributeName);\n } else {\n node.setAttribute(_attributeName, '' + value);\n }\n }\n return;\n }\n var mustUseProperty = propertyInfo.mustUseProperty;\n\n if (mustUseProperty) {\n var propertyName = propertyInfo.propertyName;\n\n if (value === null) {\n var type = propertyInfo.type;\n\n node[propertyName] = type === BOOLEAN ? false : '';\n } else {\n // Contrary to `setAttribute`, object properties are properly\n // `toString`ed by IE8/9.\n node[propertyName] = value;\n }\n return;\n }\n // The rest are treated as attributes with special cases.\n var attributeName = propertyInfo.attributeName,\n attributeNamespace = propertyInfo.attributeNamespace;\n\n if (value === null) {\n node.removeAttribute(attributeName);\n } else {\n var _type = propertyInfo.type;\n\n var attributeValue = void 0;\n if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {\n attributeValue = '';\n } else {\n // `setAttribute` with objects becomes only `[object]` in IE8/9,\n // ('' + value) makes it output the correct toString()-value.\n attributeValue = '' + value;\n }\n if (attributeNamespace) {\n node.setAttributeNS(attributeNamespace, attributeName, attributeValue);\n } else {\n node.setAttribute(attributeName, attributeValue);\n }\n }\n}\n\n// Flow does not allow string concatenation of most non-string types. To work\n// around this limitation, we use an opaque type that can only be obtained by\n// passing the value through getToStringValue first.\nfunction toString(value) {\n return '' + value;\n}\n\nfunction getToStringValue(value) {\n switch (typeof value) {\n case 'boolean':\n case 'number':\n case 'object':\n case 'string':\n case 'undefined':\n return value;\n default:\n // function, symbol are assigned as empty strings\n return '';\n }\n}\n\nvar ReactDebugCurrentFrame$1 = null;\n\nvar ReactControlledValuePropTypes = {\n checkPropTypes: null\n};\n\n{\n ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\n var hasReadOnlyValue = {\n button: true,\n checkbox: true,\n image: true,\n hidden: true,\n radio: true,\n reset: true,\n submit: true\n };\n\n var propTypes = {\n value: function (props, propName, componentName) {\n if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null) {\n return null;\n }\n return 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`.');\n },\n checked: function (props, propName, componentName) {\n if (props.onChange || props.readOnly || props.disabled || props[propName] == null) {\n return null;\n }\n return 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`.');\n }\n };\n\n /**\n * Provide a linked `value` attribute for controlled forms. You should not use\n * this outside of the ReactDOM controlled form components.\n */\n ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) {\n checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$1.getStackAddendum);\n };\n}\n\nvar enableUserTimingAPI = true;\n\n// Helps identify side effects in begin-phase lifecycle hooks and setState reducers:\nvar debugRenderPhaseSideEffects = false;\n\n// In some cases, StrictMode should also double-render lifecycles.\n// This can be confusing for tests though,\n// And it can be bad for performance in production.\n// This feature flag can be used to control the behavior:\nvar debugRenderPhaseSideEffectsForStrictMode = true;\n\n// To preserve the \"Pause on caught exceptions\" behavior of the debugger, we\n// replay the begin phase of a failed component inside invokeGuardedCallback.\nvar replayFailedUnitOfWorkWithInvokeGuardedCallback = true;\n\n// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:\nvar warnAboutDeprecatedLifecycles = false;\n\n// Gather advanced timing metrics for Profiler subtrees.\nvar enableProfilerTimer = true;\n\n// Trace which interactions trigger each commit.\nvar enableSchedulerTracing = true;\n\n// Only used in www builds.\nvar enableSuspenseServerRenderer = false; // TODO: true? Here it might just be false.\n\n// Only used in www builds.\n\n\n// Only used in www builds.\n\n\n// React Fire: prevent the value and checked attributes from syncing\n// with their related DOM properties\nvar disableInputAttributeSyncing = false;\n\n// These APIs will no longer be \"unstable\" in the upcoming 16.7 release,\n// Control this behavior with a flag to support 16.6 minor releases in the meanwhile.\nvar enableStableConcurrentModeAPIs = false;\n\nvar warnAboutShorthandPropertyCollision = false;\n\n// TODO: direct imports like some-package/src/* are bad. Fix me.\nvar didWarnValueDefaultValue = false;\nvar didWarnCheckedDefaultChecked = false;\nvar didWarnControlledToUncontrolled = false;\nvar didWarnUncontrolledToControlled = false;\n\nfunction isControlled(props) {\n var usesChecked = props.type === 'checkbox' || props.type === 'radio';\n return usesChecked ? props.checked != null : props.value != null;\n}\n\n/**\n * Implements an <input> host component that allows setting these optional\n * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.\n *\n * If `checked` or `value` are not supplied (or null/undefined), user actions\n * that affect the checked state or value will trigger updates to the element.\n *\n * If they are supplied (and not null/undefined), the rendered element will not\n * trigger updates to the element. Instead, the props must change in order for\n * the rendered element to be updated.\n *\n * The rendered element will be initialized as unchecked (or `defaultChecked`)\n * with an empty value (or `defaultValue`).\n *\n * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html\n */\n\nfunction getHostProps(element, props) {\n var node = element;\n var checked = props.checked;\n\n var hostProps = _assign({}, props, {\n defaultChecked: undefined,\n defaultValue: undefined,\n value: undefined,\n checked: checked != null ? checked : node._wrapperState.initialChecked\n });\n\n return hostProps;\n}\n\nfunction initWrapperState(element, props) {\n {\n ReactControlledValuePropTypes.checkPropTypes('input', props);\n\n if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {\n warning$1(false, '%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);\n didWarnCheckedDefaultChecked = true;\n }\n if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {\n warning$1(false, '%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);\n didWarnValueDefaultValue = true;\n }\n }\n\n var node = element;\n var defaultValue = props.defaultValue == null ? '' : props.defaultValue;\n\n node._wrapperState = {\n initialChecked: props.checked != null ? props.checked : props.defaultChecked,\n initialValue: getToStringValue(props.value != null ? props.value : defaultValue),\n controlled: isControlled(props)\n };\n}\n\nfunction updateChecked(element, props) {\n var node = element;\n var checked = props.checked;\n if (checked != null) {\n setValueForProperty(node, 'checked', checked, false);\n }\n}\n\nfunction updateWrapper(element, props) {\n var node = element;\n {\n var _controlled = isControlled(props);\n\n if (!node._wrapperState.controlled && _controlled && !didWarnUncontrolledToControlled) {\n warning$1(false, 'A component is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);\n didWarnUncontrolledToControlled = true;\n }\n if (node._wrapperState.controlled && !_controlled && !didWarnControlledToUncontrolled) {\n warning$1(false, 'A component is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);\n didWarnControlledToUncontrolled = true;\n }\n }\n\n updateChecked(element, props);\n\n var value = getToStringValue(props.value);\n var type = props.type;\n\n if (value != null) {\n if (type === 'number') {\n if (value === 0 && node.value === '' ||\n // We explicitly want to coerce to number here if possible.\n // eslint-disable-next-line\n node.value != value) {\n node.value = toString(value);\n }\n } else if (node.value !== toString(value)) {\n node.value = toString(value);\n }\n } else if (type === 'submit' || type === 'reset') {\n // Submit/reset inputs need the attribute removed completely to avoid\n // blank-text buttons.\n node.removeAttribute('value');\n return;\n }\n\n if (disableInputAttributeSyncing) {\n // When not syncing the value attribute, React only assigns a new value\n // whenever the defaultValue React prop has changed. When not present,\n // React does nothing\n if (props.hasOwnProperty('defaultValue')) {\n setDefaultValue(node, props.type, getToStringValue(props.defaultValue));\n }\n } else {\n // When syncing the value attribute, the value comes from a cascade of\n // properties:\n // 1. The value React property\n // 2. The defaultValue React property\n // 3. Otherwise there should be no change\n if (props.hasOwnProperty('value')) {\n setDefaultValue(node, props.type, value);\n } else if (props.hasOwnProperty('defaultValue')) {\n setDefaultValue(node, props.type, getToStringValue(props.defaultValue));\n }\n }\n\n if (disableInputAttributeSyncing) {\n // When not syncing the checked attribute, the attribute is directly\n // controllable from the defaultValue React property. It needs to be\n // updated as new props come in.\n if (props.defaultChecked == null) {\n node.removeAttribute('checked');\n } else {\n node.defaultChecked = !!props.defaultChecked;\n }\n } else {\n // When syncing the checked attribute, it only changes when it needs\n // to be removed, such as transitioning from a checkbox into a text input\n if (props.checked == null && props.defaultChecked != null) {\n node.defaultChecked = !!props.defaultChecked;\n }\n }\n}\n\nfunction postMountWrapper(element, props, isHydrating) {\n var node = element;\n\n // Do not assign value if it is already set. This prevents user text input\n // from being lost during SSR hydration.\n if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {\n var type = props.type;\n var isButton = type === 'submit' || type === 'reset';\n\n // Avoid setting value attribute on submit/reset inputs as it overrides the\n // default value provided by the browser. See: #12872\n if (isButton && (props.value === undefined || props.value === null)) {\n return;\n }\n\n var _initialValue = toString(node._wrapperState.initialValue);\n\n // Do not assign value if it is already set. This prevents user text input\n // from being lost during SSR hydration.\n if (!isHydrating) {\n if (disableInputAttributeSyncing) {\n var value = getToStringValue(props.value);\n\n // When not syncing the value attribute, the value property points\n // directly to the React prop. Only assign it if it exists.\n if (value != null) {\n // Always assign on buttons so that it is possible to assign an\n // empty string to clear button text.\n //\n // Otherwise, do not re-assign the value property if is empty. This\n // potentially avoids a DOM write and prevents Firefox (~60.0.1) from\n // prematurely marking required inputs as invalid. Equality is compared\n // to the current value in case the browser provided value is not an\n // empty string.\n if (isButton || value !== node.value) {\n node.value = toString(value);\n }\n }\n } else {\n // When syncing the value attribute, the value property should use\n // the wrapperState._initialValue property. This uses:\n //\n // 1. The value React property when present\n // 2. The defaultValue React property when present\n // 3. An empty string\n if (_initialValue !== node.value) {\n node.value = _initialValue;\n }\n }\n }\n\n if (disableInputAttributeSyncing) {\n // When not syncing the value attribute, assign the value attribute\n // directly from the defaultValue React property (when present)\n var defaultValue = getToStringValue(props.defaultValue);\n if (defaultValue != null) {\n node.defaultValue = toString(defaultValue);\n }\n } else {\n // Otherwise, the value attribute is synchronized to the property,\n // so we assign defaultValue to the same thing as the value property\n // assignment step above.\n node.defaultValue = _initialValue;\n }\n }\n\n // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug\n // this is needed to work around a chrome bug where setting defaultChecked\n // will sometimes influence the value of checked (even after detachment).\n // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416\n // We need to temporarily unset name to avoid disrupting radio button groups.\n var name = node.name;\n if (name !== '') {\n node.name = '';\n }\n\n if (disableInputAttributeSyncing) {\n // When not syncing the checked attribute, the checked property\n // never gets assigned. It must be manually set. We don't want\n // to do this when hydrating so that existing user input isn't\n // modified\n if (!isHydrating) {\n updateChecked(element, props);\n }\n\n // Only assign the checked attribute if it is defined. This saves\n // a DOM write when controlling the checked attribute isn't needed\n // (text inputs, submit/reset)\n if (props.hasOwnProperty('defaultChecked')) {\n node.defaultChecked = !node.defaultChecked;\n node.defaultChecked = !!props.defaultChecked;\n }\n } else {\n // When syncing the checked attribute, both the checked property and\n // attribute are assigned at the same time using defaultChecked. This uses:\n //\n // 1. The checked React property when present\n // 2. The defaultChecked React property when present\n // 3. Otherwise, false\n node.defaultChecked = !node.defaultChecked;\n node.defaultChecked = !!node._wrapperState.initialChecked;\n }\n\n if (name !== '') {\n node.name = name;\n }\n}\n\nfunction restoreControlledState(element, props) {\n var node = element;\n updateWrapper(node, props);\n updateNamedCousins(node, props);\n}\n\nfunction updateNamedCousins(rootNode, props) {\n var name = props.name;\n if (props.type === 'radio' && name != null) {\n var queryRoot = rootNode;\n\n while (queryRoot.parentNode) {\n queryRoot = queryRoot.parentNode;\n }\n\n // If `rootNode.form` was non-null, then we could try `form.elements`,\n // but that sometimes behaves strangely in IE8. We could also try using\n // `form.getElementsByName`, but that will only return direct children\n // and won't include inputs that use the HTML5 `form=` attribute. Since\n // the input might not even be in a form. It might not even be in the\n // document. Let's just use the local `querySelectorAll` to ensure we don't\n // miss anything.\n var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type=\"radio\"]');\n\n for (var i = 0; i < group.length; i++) {\n var otherNode = group[i];\n if (otherNode === rootNode || otherNode.form !== rootNode.form) {\n continue;\n }\n // This will throw if radio buttons rendered by different copies of React\n // and the same name are rendered into the same form (same as #1939).\n // That's probably okay; we don't support it just as we don't support\n // mixing React radio buttons with non-React ones.\n var otherProps = getFiberCurrentPropsFromNode$1(otherNode);\n !otherProps ? invariant(false, 'ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.') : void 0;\n\n // We need update the tracked value on the named cousin since the value\n // was changed but the input saw no event or value set\n updateValueIfChanged(otherNode);\n\n // If this is a controlled radio button group, forcing the input that\n // was previously checked to update will cause it to be come re-checked\n // as appropriate.\n updateWrapper(otherNode, otherProps);\n }\n }\n}\n\n// In Chrome, assigning defaultValue to certain input types triggers input validation.\n// For number inputs, the display value loses trailing decimal points. For email inputs,\n// Chrome raises \"The specified value <x> is not a valid email address\".\n//\n// Here we check to see if the defaultValue has actually changed, avoiding these problems\n// when the user is inputting text\n//\n// https://github.com/facebook/react/issues/7253\nfunction setDefaultValue(node, type, value) {\n if (\n // Focused number inputs synchronize on blur. See ChangeEventPlugin.js\n type !== 'number' || node.ownerDocument.activeElement !== node) {\n if (value == null) {\n node.defaultValue = toString(node._wrapperState.initialValue);\n } else if (node.defaultValue !== toString(value)) {\n node.defaultValue = toString(value);\n }\n }\n}\n\nvar eventTypes$1 = {\n change: {\n phasedRegistrationNames: {\n bubbled: 'onChange',\n captured: 'onChangeCapture'\n },\n dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE]\n }\n};\n\nfunction createAndAccumulateChangeEvent(inst, nativeEvent, target) {\n var event = SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target);\n event.type = 'change';\n // Flag this event loop as needing state restore.\n enqueueStateRestore(target);\n accumulateTwoPhaseDispatches(event);\n return event;\n}\n/**\n * For IE shims\n */\nvar activeElement = null;\nvar activeElementInst = null;\n\n/**\n * SECTION: handle `change` event\n */\nfunction shouldUseChangeEvent(elem) {\n var nodeName = elem.nodeName && elem.nodeName.toLowerCase();\n return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';\n}\n\nfunction manualDispatchChangeEvent(nativeEvent) {\n var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent));\n\n // If change and propertychange bubbled, we'd just bind to it like all the\n // other events and have it go through ReactBrowserEventEmitter. Since it\n // doesn't, we manually listen for the events and so we have to enqueue and\n // process the abstract event manually.\n //\n // Batching is necessary here in order to ensure that all event handlers run\n // before the next rerender (including event handlers attached to ancestor\n // elements instead of directly on the input). Without this, controlled\n // components don't work properly in conjunction with event bubbling because\n // the component is rerendered and the value reverted before all the event\n // handlers can run. See https://github.com/facebook/react/issues/708.\n batchedUpdates(runEventInBatch, event);\n}\n\nfunction runEventInBatch(event) {\n runEventsInBatch(event);\n}\n\nfunction getInstIfValueChanged(targetInst) {\n var targetNode = getNodeFromInstance$1(targetInst);\n if (updateValueIfChanged(targetNode)) {\n return targetInst;\n }\n}\n\nfunction getTargetInstForChangeEvent(topLevelType, targetInst) {\n if (topLevelType === TOP_CHANGE) {\n return targetInst;\n }\n}\n\n/**\n * SECTION: handle `input` event\n */\nvar isInputEventSupported = false;\nif (canUseDOM) {\n // IE9 claims to support the input event but fails to trigger it when\n // deleting text, so we ignore its input events.\n isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);\n}\n\n/**\n * (For IE <=9) Starts tracking propertychange events on the passed-in element\n * and override the value property so that we can distinguish user events from\n * value changes in JS.\n */\nfunction startWatchingForValueChange(target, targetInst) {\n activeElement = target;\n activeElementInst = targetInst;\n activeElement.attachEvent('onpropertychange', handlePropertyChange);\n}\n\n/**\n * (For IE <=9) Removes the event listeners from the currently-tracked element,\n * if any exists.\n */\nfunction stopWatchingForValueChange() {\n if (!activeElement) {\n return;\n }\n activeElement.detachEvent('onpropertychange', handlePropertyChange);\n activeElement = null;\n activeElementInst = null;\n}\n\n/**\n * (For IE <=9) Handles a propertychange event, sending a `change` event if\n * the value of the active element has changed.\n */\nfunction handlePropertyChange(nativeEvent) {\n if (nativeEvent.propertyName !== 'value') {\n return;\n }\n if (getInstIfValueChanged(activeElementInst)) {\n manualDispatchChangeEvent(nativeEvent);\n }\n}\n\nfunction handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {\n if (topLevelType === TOP_FOCUS) {\n // In IE9, propertychange fires for most input events but is buggy and\n // doesn't fire when text is deleted, but conveniently, selectionchange\n // appears to fire in all of the remaining cases so we catch those and\n // forward the event if the value has changed\n // In either case, we don't want to call the event handler if the value\n // is changed from JS so we redefine a setter for `.value` that updates\n // our activeElementValue variable, allowing us to ignore those changes\n //\n // stopWatching() should be a noop here but we call it just in case we\n // missed a blur event somehow.\n stopWatchingForValueChange();\n startWatchingForValueChange(target, targetInst);\n } else if (topLevelType === TOP_BLUR) {\n stopWatchingForValueChange();\n }\n}\n\n// For IE8 and IE9.\nfunction getTargetInstForInputEventPolyfill(topLevelType, targetInst) {\n if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) {\n // On the selectionchange event, the target is just document which isn't\n // helpful for us so just check activeElement instead.\n //\n // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire\n // propertychange on the first input event after setting `value` from a\n // script and fires only keydown, keypress, keyup. Catching keyup usually\n // gets it and catching keydown lets us fire an event for the first\n // keystroke if user does a key repeat (it'll be a little delayed: right\n // before the second keystroke). Other input methods (e.g., paste) seem to\n // fire selectionchange normally.\n return getInstIfValueChanged(activeElementInst);\n }\n}\n\n/**\n * SECTION: handle `click` event\n */\nfunction shouldUseClickEvent(elem) {\n // Use the `click` event to detect changes to checkbox and radio inputs.\n // This approach works across all browsers, whereas `change` does not fire\n // until `blur` in IE8.\n var nodeName = elem.nodeName;\n return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');\n}\n\nfunction getTargetInstForClickEvent(topLevelType, targetInst) {\n if (topLevelType === TOP_CLICK) {\n return getInstIfValueChanged(targetInst);\n }\n}\n\nfunction getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {\n if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) {\n return getInstIfValueChanged(targetInst);\n }\n}\n\nfunction handleControlledInputBlur(node) {\n var state = node._wrapperState;\n\n if (!state || !state.controlled || node.type !== 'number') {\n return;\n }\n\n if (!disableInputAttributeSyncing) {\n // If controlled, assign the value attribute to the current value on blur\n setDefaultValue(node, 'number', node.value);\n }\n}\n\n/**\n * This plugin creates an `onChange` event that normalizes change events\n * across form elements. This event fires at a time when it's possible to\n * change the element's value without seeing a flicker.\n *\n * Supported elements are:\n * - input (see `isTextInputElement`)\n * - textarea\n * - select\n */\nvar ChangeEventPlugin = {\n eventTypes: eventTypes$1,\n\n _isInputEventSupported: isInputEventSupported,\n\n extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;\n\n var getTargetInstFunc = void 0,\n handleEventFunc = void 0;\n if (shouldUseChangeEvent(targetNode)) {\n getTargetInstFunc = getTargetInstForChangeEvent;\n } else if (isTextInputElement(targetNode)) {\n if (isInputEventSupported) {\n getTargetInstFunc = getTargetInstForInputOrChangeEvent;\n } else {\n getTargetInstFunc = getTargetInstForInputEventPolyfill;\n handleEventFunc = handleEventsForInputEventPolyfill;\n }\n } else if (shouldUseClickEvent(targetNode)) {\n getTargetInstFunc = getTargetInstForClickEvent;\n }\n\n if (getTargetInstFunc) {\n var inst = getTargetInstFunc(topLevelType, targetInst);\n if (inst) {\n var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);\n return event;\n }\n }\n\n if (handleEventFunc) {\n handleEventFunc(topLevelType, targetNode, targetInst);\n }\n\n // When blurring, set the value attribute for number inputs\n if (topLevelType === TOP_BLUR) {\n handleControlledInputBlur(targetNode);\n }\n }\n};\n\n/**\n * Module that is injectable into `EventPluginHub`, that specifies a\n * deterministic ordering of `EventPlugin`s. A convenient way to reason about\n * plugins, without having to package every one of them. This is better than\n * having plugins be ordered in the same order that they are injected because\n * that ordering would be influenced by the packaging order.\n * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that\n * preventing default on events is convenient in `SimpleEventPlugin` handlers.\n */\nvar DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];\n\nvar SyntheticUIEvent = SyntheticEvent.extend({\n view: null,\n detail: null\n});\n\nvar modifierKeyToProp = {\n Alt: 'altKey',\n Control: 'ctrlKey',\n Meta: 'metaKey',\n Shift: 'shiftKey'\n};\n\n// Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support\n// getModifierState. If getModifierState is not supported, we map it to a set of\n// modifier keys exposed by the event. In this case, Lock-keys are not supported.\n/**\n * Translation from modifier key to the associated property in the event.\n * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers\n */\n\nfunction modifierStateGetter(keyArg) {\n var syntheticEvent = this;\n var nativeEvent = syntheticEvent.nativeEvent;\n if (nativeEvent.getModifierState) {\n return nativeEvent.getModifierState(keyArg);\n }\n var keyProp = modifierKeyToProp[keyArg];\n return keyProp ? !!nativeEvent[keyProp] : false;\n}\n\nfunction getEventModifierState(nativeEvent) {\n return modifierStateGetter;\n}\n\nvar previousScreenX = 0;\nvar previousScreenY = 0;\n// Use flags to signal movementX/Y has already been set\nvar isMovementXSet = false;\nvar isMovementYSet = false;\n\n/**\n * @interface MouseEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\nvar SyntheticMouseEvent = SyntheticUIEvent.extend({\n screenX: null,\n screenY: null,\n clientX: null,\n clientY: null,\n pageX: null,\n pageY: null,\n ctrlKey: null,\n shiftKey: null,\n altKey: null,\n metaKey: null,\n getModifierState: getEventModifierState,\n button: null,\n buttons: null,\n relatedTarget: function (event) {\n return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);\n },\n movementX: function (event) {\n if ('movementX' in event) {\n return event.movementX;\n }\n\n var screenX = previousScreenX;\n previousScreenX = event.screenX;\n\n if (!isMovementXSet) {\n isMovementXSet = true;\n return 0;\n }\n\n return event.type === 'mousemove' ? event.screenX - screenX : 0;\n },\n movementY: function (event) {\n if ('movementY' in event) {\n return event.movementY;\n }\n\n var screenY = previousScreenY;\n previousScreenY = event.screenY;\n\n if (!isMovementYSet) {\n isMovementYSet = true;\n return 0;\n }\n\n return event.type === 'mousemove' ? event.screenY - screenY : 0;\n }\n});\n\n/**\n * @interface PointerEvent\n * @see http://www.w3.org/TR/pointerevents/\n */\nvar SyntheticPointerEvent = SyntheticMouseEvent.extend({\n pointerId: null,\n width: null,\n height: null,\n pressure: null,\n tangentialPressure: null,\n tiltX: null,\n tiltY: null,\n twist: null,\n pointerType: null,\n isPrimary: null\n});\n\nvar eventTypes$2 = {\n mouseEnter: {\n registrationName: 'onMouseEnter',\n dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]\n },\n mouseLeave: {\n registrationName: 'onMouseLeave',\n dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]\n },\n pointerEnter: {\n registrationName: 'onPointerEnter',\n dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]\n },\n pointerLeave: {\n registrationName: 'onPointerLeave',\n dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]\n }\n};\n\nvar EnterLeaveEventPlugin = {\n eventTypes: eventTypes$2,\n\n /**\n * For almost every interaction we care about, there will be both a top-level\n * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that\n * we do not extract duplicate events. However, moving the mouse into the\n * browser from outside will not fire a `mouseout` event. In this case, we use\n * the `mouseover` top-level event.\n */\n extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER;\n var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT;\n\n if (isOverEvent && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {\n return null;\n }\n\n if (!isOutEvent && !isOverEvent) {\n // Must not be a mouse or pointer in or out - ignoring.\n return null;\n }\n\n var win = void 0;\n if (nativeEventTarget.window === nativeEventTarget) {\n // `nativeEventTarget` is probably a window object.\n win = nativeEventTarget;\n } else {\n // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.\n var doc = nativeEventTarget.ownerDocument;\n if (doc) {\n win = doc.defaultView || doc.parentWindow;\n } else {\n win = window;\n }\n }\n\n var from = void 0;\n var to = void 0;\n if (isOutEvent) {\n from = targetInst;\n var related = nativeEvent.relatedTarget || nativeEvent.toElement;\n to = related ? getClosestInstanceFromNode(related) : null;\n } else {\n // Moving to a node from outside the window.\n from = null;\n to = targetInst;\n }\n\n if (from === to) {\n // Nothing pertains to our managed components.\n return null;\n }\n\n var eventInterface = void 0,\n leaveEventType = void 0,\n enterEventType = void 0,\n eventTypePrefix = void 0;\n\n if (topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER) {\n eventInterface = SyntheticMouseEvent;\n leaveEventType = eventTypes$2.mouseLeave;\n enterEventType = eventTypes$2.mouseEnter;\n eventTypePrefix = 'mouse';\n } else if (topLevelType === TOP_POINTER_OUT || topLevelType === TOP_POINTER_OVER) {\n eventInterface = SyntheticPointerEvent;\n leaveEventType = eventTypes$2.pointerLeave;\n enterEventType = eventTypes$2.pointerEnter;\n eventTypePrefix = 'pointer';\n }\n\n var fromNode = from == null ? win : getNodeFromInstance$1(from);\n var toNode = to == null ? win : getNodeFromInstance$1(to);\n\n var leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget);\n leave.type = eventTypePrefix + 'leave';\n leave.target = fromNode;\n leave.relatedTarget = toNode;\n\n var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget);\n enter.type = eventTypePrefix + 'enter';\n enter.target = toNode;\n enter.relatedTarget = fromNode;\n\n accumulateEnterLeaveDispatches(leave, enter, from, to);\n\n return [leave, enter];\n }\n};\n\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nfunction is(x, y) {\n return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare\n ;\n}\n\nvar hasOwnProperty$1 = Object.prototype.hasOwnProperty;\n\n/**\n * Performs equality by iterating through keys on an object and returning false\n * when any key has values which are not strictly equal between the arguments.\n * Returns true when the values of all keys are strictly equal.\n */\nfunction shallowEqual(objA, objB) {\n if (is(objA, objB)) {\n return true;\n }\n\n if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n return false;\n }\n\n var keysA = Object.keys(objA);\n var keysB = Object.keys(objB);\n\n if (keysA.length !== keysB.length) {\n return false;\n }\n\n // Test for A's keys different from B.\n for (var i = 0; i < keysA.length; i++) {\n if (!hasOwnProperty$1.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {\n return false;\n }\n }\n\n return true;\n}\n\n/**\n * `ReactInstanceMap` maintains a mapping from a public facing stateful\n * instance (key) and the internal representation (value). This allows public\n * methods to accept the user facing instance as an argument and map them back\n * to internal methods.\n *\n * Note that this module is currently shared and assumed to be stateless.\n * If this becomes an actual Map, that will break.\n */\n\n/**\n * This API should be called `delete` but we'd have to make sure to always\n * transform these to strings for IE support. When this transform is fully\n * supported we can rename it.\n */\n\n\nfunction get(key) {\n return key._reactInternalFiber;\n}\n\nfunction has(key) {\n return key._reactInternalFiber !== undefined;\n}\n\nfunction set(key, value) {\n key._reactInternalFiber = value;\n}\n\n// Don't change these two values. They're used by React Dev Tools.\nvar NoEffect = /* */0;\nvar PerformedWork = /* */1;\n\n// You can change the rest (and add more).\nvar Placement = /* */2;\nvar Update = /* */4;\nvar PlacementAndUpdate = /* */6;\nvar Deletion = /* */8;\nvar ContentReset = /* */16;\nvar Callback = /* */32;\nvar DidCapture = /* */64;\nvar Ref = /* */128;\nvar Snapshot = /* */256;\nvar Passive = /* */512;\n\n// Passive & Update & Callback & Ref & Snapshot\nvar LifecycleEffectMask = /* */932;\n\n// Union of all host effects\nvar HostEffectMask = /* */1023;\n\nvar Incomplete = /* */1024;\nvar ShouldCapture = /* */2048;\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\n\nvar MOUNTING = 1;\nvar MOUNTED = 2;\nvar UNMOUNTED = 3;\n\nfunction isFiberMountedImpl(fiber) {\n var node = fiber;\n if (!fiber.alternate) {\n // If there is no alternate, this might be a new tree that isn't inserted\n // yet. If it is, then it will have a pending insertion effect on it.\n if ((node.effectTag & Placement) !== NoEffect) {\n return MOUNTING;\n }\n while (node.return) {\n node = node.return;\n if ((node.effectTag & Placement) !== NoEffect) {\n return MOUNTING;\n }\n }\n } else {\n while (node.return) {\n node = node.return;\n }\n }\n if (node.tag === HostRoot) {\n // TODO: Check if this was a nested HostRoot when used with\n // renderContainerIntoSubtree.\n return MOUNTED;\n }\n // If we didn't hit the root, that means that we're in an disconnected tree\n // that has been unmounted.\n return UNMOUNTED;\n}\n\nfunction isFiberMounted(fiber) {\n return isFiberMountedImpl(fiber) === MOUNTED;\n}\n\nfunction isMounted(component) {\n {\n var owner = ReactCurrentOwner$1.current;\n if (owner !== null && owner.tag === ClassComponent) {\n var ownerFiber = owner;\n var instance = ownerFiber.stateNode;\n !instance._warnedAboutRefsInRender ? warningWithoutStack$1(false, '%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(ownerFiber.type) || 'A component') : void 0;\n instance._warnedAboutRefsInRender = true;\n }\n }\n\n var fiber = get(component);\n if (!fiber) {\n return false;\n }\n return isFiberMountedImpl(fiber) === MOUNTED;\n}\n\nfunction assertIsMounted(fiber) {\n !(isFiberMountedImpl(fiber) === MOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;\n}\n\nfunction findCurrentFiberUsingSlowPath(fiber) {\n var alternate = fiber.alternate;\n if (!alternate) {\n // If there is no alternate, then we only need to check if it is mounted.\n var state = isFiberMountedImpl(fiber);\n !(state !== UNMOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;\n if (state === MOUNTING) {\n return null;\n }\n return fiber;\n }\n // If we have two possible branches, we'll walk backwards up to the root\n // to see what path the root points to. On the way we may hit one of the\n // special cases and we'll deal with them.\n var a = fiber;\n var b = alternate;\n while (true) {\n var parentA = a.return;\n var parentB = parentA ? parentA.alternate : null;\n if (!parentA || !parentB) {\n // We're at the root.\n break;\n }\n\n // If both copies of the parent fiber point to the same child, we can\n // assume that the child is current. This happens when we bailout on low\n // priority: the bailed out fiber's child reuses the current child.\n if (parentA.child === parentB.child) {\n var child = parentA.child;\n while (child) {\n if (child === a) {\n // We've determined that A is the current branch.\n assertIsMounted(parentA);\n return fiber;\n }\n if (child === b) {\n // We've determined that B is the current branch.\n assertIsMounted(parentA);\n return alternate;\n }\n child = child.sibling;\n }\n // We should never have an alternate for any mounting node. So the only\n // way this could possibly happen is if this was unmounted, if at all.\n invariant(false, 'Unable to find node on an unmounted component.');\n }\n\n if (a.return !== b.return) {\n // The return pointer of A and the return pointer of B point to different\n // fibers. We assume that return pointers never criss-cross, so A must\n // belong to the child set of A.return, and B must belong to the child\n // set of B.return.\n a = parentA;\n b = parentB;\n } else {\n // The return pointers point to the same fiber. We'll have to use the\n // default, slow path: scan the child sets of each parent alternate to see\n // which child belongs to which set.\n //\n // Search parent A's child set\n var didFindChild = false;\n var _child = parentA.child;\n while (_child) {\n if (_child === a) {\n didFindChild = true;\n a = parentA;\n b = parentB;\n break;\n }\n if (_child === b) {\n didFindChild = true;\n b = parentA;\n a = parentB;\n break;\n }\n _child = _child.sibling;\n }\n if (!didFindChild) {\n // Search parent B's child set\n _child = parentB.child;\n while (_child) {\n if (_child === a) {\n didFindChild = true;\n a = parentB;\n b = parentA;\n break;\n }\n if (_child === b) {\n didFindChild = true;\n b = parentB;\n a = parentA;\n break;\n }\n _child = _child.sibling;\n }\n !didFindChild ? invariant(false, 'Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.') : void 0;\n }\n }\n\n !(a.alternate === b) ? invariant(false, 'Return fibers should always be each others\\' alternates. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n }\n // If the root is not a host container, we're in a disconnected tree. I.e.\n // unmounted.\n !(a.tag === HostRoot) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;\n if (a.stateNode.current === a) {\n // We've determined that A is the current branch.\n return fiber;\n }\n // Otherwise B has to be current branch.\n return alternate;\n}\n\nfunction findCurrentHostFiber(parent) {\n var currentParent = findCurrentFiberUsingSlowPath(parent);\n if (!currentParent) {\n return null;\n }\n\n // Next we'll drill down this component to find the first HostComponent/Text.\n var node = currentParent;\n while (true) {\n if (node.tag === HostComponent || node.tag === HostText) {\n return node;\n } else if (node.child) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n if (node === currentParent) {\n return null;\n }\n while (!node.sibling) {\n if (!node.return || node.return === currentParent) {\n return null;\n }\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n // Flow needs the return null here, but ESLint complains about it.\n // eslint-disable-next-line no-unreachable\n return null;\n}\n\nfunction findCurrentHostFiberWithNoPortals(parent) {\n var currentParent = findCurrentFiberUsingSlowPath(parent);\n if (!currentParent) {\n return null;\n }\n\n // Next we'll drill down this component to find the first HostComponent/Text.\n var node = currentParent;\n while (true) {\n if (node.tag === HostComponent || node.tag === HostText) {\n return node;\n } else if (node.child && node.tag !== HostPortal) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n if (node === currentParent) {\n return null;\n }\n while (!node.sibling) {\n if (!node.return || node.return === currentParent) {\n return null;\n }\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n // Flow needs the return null here, but ESLint complains about it.\n // eslint-disable-next-line no-unreachable\n return null;\n}\n\nfunction addEventBubbleListener(element, eventType, listener) {\n element.addEventListener(eventType, listener, false);\n}\n\nfunction addEventCaptureListener(element, eventType, listener) {\n element.addEventListener(eventType, listener, true);\n}\n\n/**\n * @interface Event\n * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface\n * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent\n */\nvar SyntheticAnimationEvent = SyntheticEvent.extend({\n animationName: null,\n elapsedTime: null,\n pseudoElement: null\n});\n\n/**\n * @interface Event\n * @see http://www.w3.org/TR/clipboard-apis/\n */\nvar SyntheticClipboardEvent = SyntheticEvent.extend({\n clipboardData: function (event) {\n return 'clipboardData' in event ? event.clipboardData : window.clipboardData;\n }\n});\n\n/**\n * @interface FocusEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\nvar SyntheticFocusEvent = SyntheticUIEvent.extend({\n relatedTarget: null\n});\n\n/**\n * `charCode` represents the actual \"character code\" and is safe to use with\n * `String.fromCharCode`. As such, only keys that correspond to printable\n * characters produce a valid `charCode`, the only exception to this is Enter.\n * The Tab-key is considered non-printable and does not have a `charCode`,\n * presumably because it does not produce a tab-character in browsers.\n *\n * @param {object} nativeEvent Native browser event.\n * @return {number} Normalized `charCode` property.\n */\nfunction getEventCharCode(nativeEvent) {\n var charCode = void 0;\n var keyCode = nativeEvent.keyCode;\n\n if ('charCode' in nativeEvent) {\n charCode = nativeEvent.charCode;\n\n // FF does not set `charCode` for the Enter-key, check against `keyCode`.\n if (charCode === 0 && keyCode === 13) {\n charCode = 13;\n }\n } else {\n // IE8 does not implement `charCode`, but `keyCode` has the correct value.\n charCode = keyCode;\n }\n\n // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)\n // report Enter as charCode 10 when ctrl is pressed.\n if (charCode === 10) {\n charCode = 13;\n }\n\n // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.\n // Must not discard the (non-)printable Enter-key.\n if (charCode >= 32 || charCode === 13) {\n return charCode;\n }\n\n return 0;\n}\n\n/**\n * Normalization of deprecated HTML5 `key` values\n * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names\n */\nvar normalizeKey = {\n Esc: 'Escape',\n Spacebar: ' ',\n Left: 'ArrowLeft',\n Up: 'ArrowUp',\n Right: 'ArrowRight',\n Down: 'ArrowDown',\n Del: 'Delete',\n Win: 'OS',\n Menu: 'ContextMenu',\n Apps: 'ContextMenu',\n Scroll: 'ScrollLock',\n MozPrintableKey: 'Unidentified'\n};\n\n/**\n * Translation from legacy `keyCode` to HTML5 `key`\n * Only special keys supported, all others depend on keyboard layout or browser\n * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names\n */\nvar translateToKey = {\n '8': 'Backspace',\n '9': 'Tab',\n '12': 'Clear',\n '13': 'Enter',\n '16': 'Shift',\n '17': 'Control',\n '18': 'Alt',\n '19': 'Pause',\n '20': 'CapsLock',\n '27': 'Escape',\n '32': ' ',\n '33': 'PageUp',\n '34': 'PageDown',\n '35': 'End',\n '36': 'Home',\n '37': 'ArrowLeft',\n '38': 'ArrowUp',\n '39': 'ArrowRight',\n '40': 'ArrowDown',\n '45': 'Insert',\n '46': 'Delete',\n '112': 'F1',\n '113': 'F2',\n '114': 'F3',\n '115': 'F4',\n '116': 'F5',\n '117': 'F6',\n '118': 'F7',\n '119': 'F8',\n '120': 'F9',\n '121': 'F10',\n '122': 'F11',\n '123': 'F12',\n '144': 'NumLock',\n '145': 'ScrollLock',\n '224': 'Meta'\n};\n\n/**\n * @param {object} nativeEvent Native browser event.\n * @return {string} Normalized `key` property.\n */\nfunction getEventKey(nativeEvent) {\n if (nativeEvent.key) {\n // Normalize inconsistent values reported by browsers due to\n // implementations of a working draft specification.\n\n // FireFox implements `key` but returns `MozPrintableKey` for all\n // printable characters (normalized to `Unidentified`), ignore it.\n var key = normalizeKey[nativeEvent.key] || nativeEvent.key;\n if (key !== 'Unidentified') {\n return key;\n }\n }\n\n // Browser does not implement `key`, polyfill as much of it as we can.\n if (nativeEvent.type === 'keypress') {\n var charCode = getEventCharCode(nativeEvent);\n\n // The enter-key is technically both printable and non-printable and can\n // thus be captured by `keypress`, no other non-printable key should.\n return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);\n }\n if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {\n // While user keyboard layout determines the actual meaning of each\n // `keyCode` value, almost all function keys have a universal value.\n return translateToKey[nativeEvent.keyCode] || 'Unidentified';\n }\n return '';\n}\n\n/**\n * @interface KeyboardEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\nvar SyntheticKeyboardEvent = SyntheticUIEvent.extend({\n key: getEventKey,\n location: null,\n ctrlKey: null,\n shiftKey: null,\n altKey: null,\n metaKey: null,\n repeat: null,\n locale: null,\n getModifierState: getEventModifierState,\n // Legacy Interface\n charCode: function (event) {\n // `charCode` is the result of a KeyPress event and represents the value of\n // the actual printable character.\n\n // KeyPress is deprecated, but its replacement is not yet final and not\n // implemented in any major browser. Only KeyPress has charCode.\n if (event.type === 'keypress') {\n return getEventCharCode(event);\n }\n return 0;\n },\n keyCode: function (event) {\n // `keyCode` is the result of a KeyDown/Up event and represents the value of\n // physical keyboard key.\n\n // The actual meaning of the value depends on the users' keyboard layout\n // which cannot be detected. Assuming that it is a US keyboard layout\n // provides a surprisingly accurate mapping for US and European users.\n // Due to this, it is left to the user to implement at this time.\n if (event.type === 'keydown' || event.type === 'keyup') {\n return event.keyCode;\n }\n return 0;\n },\n which: function (event) {\n // `which` is an alias for either `keyCode` or `charCode` depending on the\n // type of the event.\n if (event.type === 'keypress') {\n return getEventCharCode(event);\n }\n if (event.type === 'keydown' || event.type === 'keyup') {\n return event.keyCode;\n }\n return 0;\n }\n});\n\n/**\n * @interface DragEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\nvar SyntheticDragEvent = SyntheticMouseEvent.extend({\n dataTransfer: null\n});\n\n/**\n * @interface TouchEvent\n * @see http://www.w3.org/TR/touch-events/\n */\nvar SyntheticTouchEvent = SyntheticUIEvent.extend({\n touches: null,\n targetTouches: null,\n changedTouches: null,\n altKey: null,\n metaKey: null,\n ctrlKey: null,\n shiftKey: null,\n getModifierState: getEventModifierState\n});\n\n/**\n * @interface Event\n * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-\n * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent\n */\nvar SyntheticTransitionEvent = SyntheticEvent.extend({\n propertyName: null,\n elapsedTime: null,\n pseudoElement: null\n});\n\n/**\n * @interface WheelEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\nvar SyntheticWheelEvent = SyntheticMouseEvent.extend({\n deltaX: function (event) {\n return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).\n 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;\n },\n deltaY: function (event) {\n return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).\n 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).\n 'wheelDelta' in event ? -event.wheelDelta : 0;\n },\n\n deltaZ: null,\n\n // Browsers without \"deltaMode\" is reporting in raw wheel delta where one\n // notch on the scroll is always +/- 120, roughly equivalent to pixels.\n // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or\n // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.\n deltaMode: null\n});\n\n/**\n * Turns\n * ['abort', ...]\n * into\n * eventTypes = {\n * 'abort': {\n * phasedRegistrationNames: {\n * bubbled: 'onAbort',\n * captured: 'onAbortCapture',\n * },\n * dependencies: [TOP_ABORT],\n * },\n * ...\n * };\n * topLevelEventsToDispatchConfig = new Map([\n * [TOP_ABORT, { sameConfig }],\n * ]);\n */\n\nvar interactiveEventTypeNames = [[TOP_BLUR, 'blur'], [TOP_CANCEL, 'cancel'], [TOP_CLICK, 'click'], [TOP_CLOSE, 'close'], [TOP_CONTEXT_MENU, 'contextMenu'], [TOP_COPY, 'copy'], [TOP_CUT, 'cut'], [TOP_AUX_CLICK, 'auxClick'], [TOP_DOUBLE_CLICK, 'doubleClick'], [TOP_DRAG_END, 'dragEnd'], [TOP_DRAG_START, 'dragStart'], [TOP_DROP, 'drop'], [TOP_FOCUS, 'focus'], [TOP_INPUT, 'input'], [TOP_INVALID, 'invalid'], [TOP_KEY_DOWN, 'keyDown'], [TOP_KEY_PRESS, 'keyPress'], [TOP_KEY_UP, 'keyUp'], [TOP_MOUSE_DOWN, 'mouseDown'], [TOP_MOUSE_UP, 'mouseUp'], [TOP_PASTE, 'paste'], [TOP_PAUSE, 'pause'], [TOP_PLAY, 'play'], [TOP_POINTER_CANCEL, 'pointerCancel'], [TOP_POINTER_DOWN, 'pointerDown'], [TOP_POINTER_UP, 'pointerUp'], [TOP_RATE_CHANGE, 'rateChange'], [TOP_RESET, 'reset'], [TOP_SEEKED, 'seeked'], [TOP_SUBMIT, 'submit'], [TOP_TOUCH_CANCEL, 'touchCancel'], [TOP_TOUCH_END, 'touchEnd'], [TOP_TOUCH_START, 'touchStart'], [TOP_VOLUME_CHANGE, 'volumeChange']];\nvar nonInteractiveEventTypeNames = [[TOP_ABORT, 'abort'], [TOP_ANIMATION_END, 'animationEnd'], [TOP_ANIMATION_ITERATION, 'animationIteration'], [TOP_ANIMATION_START, 'animationStart'], [TOP_CAN_PLAY, 'canPlay'], [TOP_CAN_PLAY_THROUGH, 'canPlayThrough'], [TOP_DRAG, 'drag'], [TOP_DRAG_ENTER, 'dragEnter'], [TOP_DRAG_EXIT, 'dragExit'], [TOP_DRAG_LEAVE, 'dragLeave'], [TOP_DRAG_OVER, 'dragOver'], [TOP_DURATION_CHANGE, 'durationChange'], [TOP_EMPTIED, 'emptied'], [TOP_ENCRYPTED, 'encrypted'], [TOP_ENDED, 'ended'], [TOP_ERROR, 'error'], [TOP_GOT_POINTER_CAPTURE, 'gotPointerCapture'], [TOP_LOAD, 'load'], [TOP_LOADED_DATA, 'loadedData'], [TOP_LOADED_METADATA, 'loadedMetadata'], [TOP_LOAD_START, 'loadStart'], [TOP_LOST_POINTER_CAPTURE, 'lostPointerCapture'], [TOP_MOUSE_MOVE, 'mouseMove'], [TOP_MOUSE_OUT, 'mouseOut'], [TOP_MOUSE_OVER, 'mouseOver'], [TOP_PLAYING, 'playing'], [TOP_POINTER_MOVE, 'pointerMove'], [TOP_POINTER_OUT, 'pointerOut'], [TOP_POINTER_OVER, 'pointerOver'], [TOP_PROGRESS, 'progress'], [TOP_SCROLL, 'scroll'], [TOP_SEEKING, 'seeking'], [TOP_STALLED, 'stalled'], [TOP_SUSPEND, 'suspend'], [TOP_TIME_UPDATE, 'timeUpdate'], [TOP_TOGGLE, 'toggle'], [TOP_TOUCH_MOVE, 'touchMove'], [TOP_TRANSITION_END, 'transitionEnd'], [TOP_WAITING, 'waiting'], [TOP_WHEEL, 'wheel']];\n\nvar eventTypes$4 = {};\nvar topLevelEventsToDispatchConfig = {};\n\nfunction addEventTypeNameToConfig(_ref, isInteractive) {\n var topEvent = _ref[0],\n event = _ref[1];\n\n var capitalizedEvent = event[0].toUpperCase() + event.slice(1);\n var onEvent = 'on' + capitalizedEvent;\n\n var type = {\n phasedRegistrationNames: {\n bubbled: onEvent,\n captured: onEvent + 'Capture'\n },\n dependencies: [topEvent],\n isInteractive: isInteractive\n };\n eventTypes$4[event] = type;\n topLevelEventsToDispatchConfig[topEvent] = type;\n}\n\ninteractiveEventTypeNames.forEach(function (eventTuple) {\n addEventTypeNameToConfig(eventTuple, true);\n});\nnonInteractiveEventTypeNames.forEach(function (eventTuple) {\n addEventTypeNameToConfig(eventTuple, false);\n});\n\n// Only used in DEV for exhaustiveness validation.\nvar knownHTMLTopLevelTypes = [TOP_ABORT, TOP_CANCEL, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_CLOSE, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_INPUT, TOP_INVALID, TOP_LOAD, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_RESET, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUBMIT, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_TOGGLE, TOP_VOLUME_CHANGE, TOP_WAITING];\n\nvar SimpleEventPlugin = {\n eventTypes: eventTypes$4,\n\n isInteractiveTopLevelEventType: function (topLevelType) {\n var config = topLevelEventsToDispatchConfig[topLevelType];\n return config !== undefined && config.isInteractive === true;\n },\n\n\n extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];\n if (!dispatchConfig) {\n return null;\n }\n var EventConstructor = void 0;\n switch (topLevelType) {\n case TOP_KEY_PRESS:\n // Firefox creates a keypress event for function keys too. This removes\n // the unwanted keypress events. Enter is however both printable and\n // non-printable. One would expect Tab to be as well (but it isn't).\n if (getEventCharCode(nativeEvent) === 0) {\n return null;\n }\n /* falls through */\n case TOP_KEY_DOWN:\n case TOP_KEY_UP:\n EventConstructor = SyntheticKeyboardEvent;\n break;\n case TOP_BLUR:\n case TOP_FOCUS:\n EventConstructor = SyntheticFocusEvent;\n break;\n case TOP_CLICK:\n // Firefox creates a click event on right mouse clicks. This removes the\n // unwanted click events.\n if (nativeEvent.button === 2) {\n return null;\n }\n /* falls through */\n case TOP_AUX_CLICK:\n case TOP_DOUBLE_CLICK:\n case TOP_MOUSE_DOWN:\n case TOP_MOUSE_MOVE:\n case TOP_MOUSE_UP:\n // TODO: Disabled elements should not respond to mouse events\n /* falls through */\n case TOP_MOUSE_OUT:\n case TOP_MOUSE_OVER:\n case TOP_CONTEXT_MENU:\n EventConstructor = SyntheticMouseEvent;\n break;\n case TOP_DRAG:\n case TOP_DRAG_END:\n case TOP_DRAG_ENTER:\n case TOP_DRAG_EXIT:\n case TOP_DRAG_LEAVE:\n case TOP_DRAG_OVER:\n case TOP_DRAG_START:\n case TOP_DROP:\n EventConstructor = SyntheticDragEvent;\n break;\n case TOP_TOUCH_CANCEL:\n case TOP_TOUCH_END:\n case TOP_TOUCH_MOVE:\n case TOP_TOUCH_START:\n EventConstructor = SyntheticTouchEvent;\n break;\n case TOP_ANIMATION_END:\n case TOP_ANIMATION_ITERATION:\n case TOP_ANIMATION_START:\n EventConstructor = SyntheticAnimationEvent;\n break;\n case TOP_TRANSITION_END:\n EventConstructor = SyntheticTransitionEvent;\n break;\n case TOP_SCROLL:\n EventConstructor = SyntheticUIEvent;\n break;\n case TOP_WHEEL:\n EventConstructor = SyntheticWheelEvent;\n break;\n case TOP_COPY:\n case TOP_CUT:\n case TOP_PASTE:\n EventConstructor = SyntheticClipboardEvent;\n break;\n case TOP_GOT_POINTER_CAPTURE:\n case TOP_LOST_POINTER_CAPTURE:\n case TOP_POINTER_CANCEL:\n case TOP_POINTER_DOWN:\n case TOP_POINTER_MOVE:\n case TOP_POINTER_OUT:\n case TOP_POINTER_OVER:\n case TOP_POINTER_UP:\n EventConstructor = SyntheticPointerEvent;\n break;\n default:\n {\n if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) {\n warningWithoutStack$1(false, 'SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType);\n }\n }\n // HTML Events\n // @see http://www.w3.org/TR/html5/index.html#events-0\n EventConstructor = SyntheticEvent;\n break;\n }\n var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);\n accumulateTwoPhaseDispatches(event);\n return event;\n }\n};\n\nvar isInteractiveTopLevelEventType = SimpleEventPlugin.isInteractiveTopLevelEventType;\n\n\nvar CALLBACK_BOOKKEEPING_POOL_SIZE = 10;\nvar callbackBookkeepingPool = [];\n\n/**\n * Find the deepest React component completely containing the root of the\n * passed-in instance (for use when entire React trees are nested within each\n * other). If React trees are not nested, returns null.\n */\nfunction findRootContainerNode(inst) {\n // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n // traversal, but caching is difficult to do correctly without using a\n // mutation observer to listen for all DOM changes.\n while (inst.return) {\n inst = inst.return;\n }\n if (inst.tag !== HostRoot) {\n // This can happen if we're in a detached tree.\n return null;\n }\n return inst.stateNode.containerInfo;\n}\n\n// Used to store ancestor hierarchy in top level callback\nfunction getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) {\n if (callbackBookkeepingPool.length) {\n var instance = callbackBookkeepingPool.pop();\n instance.topLevelType = topLevelType;\n instance.nativeEvent = nativeEvent;\n instance.targetInst = targetInst;\n return instance;\n }\n return {\n topLevelType: topLevelType,\n nativeEvent: nativeEvent,\n targetInst: targetInst,\n ancestors: []\n };\n}\n\nfunction releaseTopLevelCallbackBookKeeping(instance) {\n instance.topLevelType = null;\n instance.nativeEvent = null;\n instance.targetInst = null;\n instance.ancestors.length = 0;\n if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) {\n callbackBookkeepingPool.push(instance);\n }\n}\n\nfunction handleTopLevel(bookKeeping) {\n var targetInst = bookKeeping.targetInst;\n\n // Loop through the hierarchy, in case there's any nested components.\n // It's important that we build the array of ancestors before calling any\n // event handlers, because event handlers can modify the DOM, leading to\n // inconsistencies with ReactMount's node cache. See #1105.\n var ancestor = targetInst;\n do {\n if (!ancestor) {\n bookKeeping.ancestors.push(ancestor);\n break;\n }\n var root = findRootContainerNode(ancestor);\n if (!root) {\n break;\n }\n bookKeeping.ancestors.push(ancestor);\n ancestor = getClosestInstanceFromNode(root);\n } while (ancestor);\n\n for (var i = 0; i < bookKeeping.ancestors.length; i++) {\n targetInst = bookKeeping.ancestors[i];\n runExtractedEventsInBatch(bookKeeping.topLevelType, targetInst, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent));\n }\n}\n\n// TODO: can we stop exporting these?\nvar _enabled = true;\n\nfunction setEnabled(enabled) {\n _enabled = !!enabled;\n}\n\nfunction isEnabled() {\n return _enabled;\n}\n\n/**\n * Traps top-level events by using event bubbling.\n *\n * @param {number} topLevelType Number from `TopLevelEventTypes`.\n * @param {object} element Element on which to attach listener.\n * @return {?object} An object with a remove function which will forcefully\n * remove the listener.\n * @internal\n */\nfunction trapBubbledEvent(topLevelType, element) {\n if (!element) {\n return null;\n }\n var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent;\n\n addEventBubbleListener(element, getRawEventName(topLevelType),\n // Check if interactive and wrap in interactiveUpdates\n dispatch.bind(null, topLevelType));\n}\n\n/**\n * Traps a top-level event by using event capturing.\n *\n * @param {number} topLevelType Number from `TopLevelEventTypes`.\n * @param {object} element Element on which to attach listener.\n * @return {?object} An object with a remove function which will forcefully\n * remove the listener.\n * @internal\n */\nfunction trapCapturedEvent(topLevelType, element) {\n if (!element) {\n return null;\n }\n var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent;\n\n addEventCaptureListener(element, getRawEventName(topLevelType),\n // Check if interactive and wrap in interactiveUpdates\n dispatch.bind(null, topLevelType));\n}\n\nfunction dispatchInteractiveEvent(topLevelType, nativeEvent) {\n interactiveUpdates(dispatchEvent, topLevelType, nativeEvent);\n}\n\nfunction dispatchEvent(topLevelType, nativeEvent) {\n if (!_enabled) {\n return;\n }\n\n var nativeEventTarget = getEventTarget(nativeEvent);\n var targetInst = getClosestInstanceFromNode(nativeEventTarget);\n if (targetInst !== null && typeof targetInst.tag === 'number' && !isFiberMounted(targetInst)) {\n // If we get an event (ex: img onload) before committing that\n // component's mount, ignore it for now (that is, treat it as if it was an\n // event on a non-React tree). We might also consider queueing events and\n // dispatching them after the mount.\n targetInst = null;\n }\n\n var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst);\n\n try {\n // Event queue being processed in the same cycle allows\n // `preventDefault`.\n batchedUpdates(handleTopLevel, bookKeeping);\n } finally {\n releaseTopLevelCallbackBookKeeping(bookKeeping);\n }\n}\n\n/**\n * Summary of `ReactBrowserEventEmitter` event handling:\n *\n * - Top-level delegation is used to trap most native browser events. This\n * may only occur in the main thread and is the responsibility of\n * ReactDOMEventListener, which is injected and can therefore support\n * pluggable event sources. This is the only work that occurs in the main\n * thread.\n *\n * - We normalize and de-duplicate events to account for browser quirks. This\n * may be done in the worker thread.\n *\n * - Forward these native events (with the associated top-level type used to\n * trap it) to `EventPluginHub`, which in turn will ask plugins if they want\n * to extract any synthetic events.\n *\n * - The `EventPluginHub` will then process each event by annotating them with\n * \"dispatches\", a sequence of listeners and IDs that care about that event.\n *\n * - The `EventPluginHub` then dispatches the events.\n *\n * Overview of React and the event system:\n *\n * +------------+ .\n * | DOM | .\n * +------------+ .\n * | .\n * v .\n * +------------+ .\n * | ReactEvent | .\n * | Listener | .\n * +------------+ . +-----------+\n * | . +--------+|SimpleEvent|\n * | . | |Plugin |\n * +-----|------+ . v +-----------+\n * | | | . +--------------+ +------------+\n * | +-----------.--->|EventPluginHub| | Event |\n * | | . | | +-----------+ | Propagators|\n * | ReactEvent | . | | |TapEvent | |------------|\n * | Emitter | . | |<---+|Plugin | |other plugin|\n * | | . | | +-----------+ | utilities |\n * | +-----------.--->| | +------------+\n * | | | . +--------------+\n * +-----|------+ . ^ +-----------+\n * | . | |Enter/Leave|\n * + . +-------+|Plugin |\n * +-------------+ . +-----------+\n * | application | .\n * |-------------| .\n * | | .\n * | | .\n * +-------------+ .\n * .\n * React Core . General Purpose Event Plugin System\n */\n\nvar alreadyListeningTo = {};\nvar reactTopListenersCounter = 0;\n\n/**\n * To ensure no conflicts with other potential React instances on the page\n */\nvar topListenersIDKey = '_reactListenersID' + ('' + Math.random()).slice(2);\n\nfunction getListeningForDocument(mountAt) {\n // In IE8, `mountAt` is a host object and doesn't have `hasOwnProperty`\n // directly.\n if (!Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey)) {\n mountAt[topListenersIDKey] = reactTopListenersCounter++;\n alreadyListeningTo[mountAt[topListenersIDKey]] = {};\n }\n return alreadyListeningTo[mountAt[topListenersIDKey]];\n}\n\n/**\n * We listen for bubbled touch events on the document object.\n *\n * Firefox v8.01 (and possibly others) exhibited strange behavior when\n * mounting `onmousemove` events at some node that was not the document\n * element. The symptoms were that if your mouse is not moving over something\n * contained within that mount point (for example on the background) the\n * top-level listeners for `onmousemove` won't be called. However, if you\n * register the `mousemove` on the document object, then it will of course\n * catch all `mousemove`s. This along with iOS quirks, justifies restricting\n * top-level listeners to the document object only, at least for these\n * movement types of events and possibly all events.\n *\n * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html\n *\n * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but\n * they bubble to document.\n *\n * @param {string} registrationName Name of listener (e.g. `onClick`).\n * @param {object} mountAt Container where to mount the listener\n */\nfunction listenTo(registrationName, mountAt) {\n var isListening = getListeningForDocument(mountAt);\n var dependencies = registrationNameDependencies[registrationName];\n\n for (var i = 0; i < dependencies.length; i++) {\n var dependency = dependencies[i];\n if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {\n switch (dependency) {\n case TOP_SCROLL:\n trapCapturedEvent(TOP_SCROLL, mountAt);\n break;\n case TOP_FOCUS:\n case TOP_BLUR:\n trapCapturedEvent(TOP_FOCUS, mountAt);\n trapCapturedEvent(TOP_BLUR, mountAt);\n // We set the flag for a single dependency later in this function,\n // but this ensures we mark both as attached rather than just one.\n isListening[TOP_BLUR] = true;\n isListening[TOP_FOCUS] = true;\n break;\n case TOP_CANCEL:\n case TOP_CLOSE:\n if (isEventSupported(getRawEventName(dependency))) {\n trapCapturedEvent(dependency, mountAt);\n }\n break;\n case TOP_INVALID:\n case TOP_SUBMIT:\n case TOP_RESET:\n // We listen to them on the target DOM elements.\n // Some of them bubble so we don't want them to fire twice.\n break;\n default:\n // By default, listen on the top level to all non-media events.\n // Media events don't bubble so adding the listener wouldn't do anything.\n var isMediaEvent = mediaEventTypes.indexOf(dependency) !== -1;\n if (!isMediaEvent) {\n trapBubbledEvent(dependency, mountAt);\n }\n break;\n }\n isListening[dependency] = true;\n }\n }\n}\n\nfunction isListeningToAllDependencies(registrationName, mountAt) {\n var isListening = getListeningForDocument(mountAt);\n var dependencies = registrationNameDependencies[registrationName];\n for (var i = 0; i < dependencies.length; i++) {\n var dependency = dependencies[i];\n if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {\n return false;\n }\n }\n return true;\n}\n\nfunction getActiveElement(doc) {\n doc = doc || (typeof document !== 'undefined' ? document : undefined);\n if (typeof doc === 'undefined') {\n return null;\n }\n try {\n return doc.activeElement || doc.body;\n } catch (e) {\n return doc.body;\n }\n}\n\n/**\n * Given any node return the first leaf node without children.\n *\n * @param {DOMElement|DOMTextNode} node\n * @return {DOMElement|DOMTextNode}\n */\nfunction getLeafNode(node) {\n while (node && node.firstChild) {\n node = node.firstChild;\n }\n return node;\n}\n\n/**\n * Get the next sibling within a container. This will walk up the\n * DOM if a node's siblings have been exhausted.\n *\n * @param {DOMElement|DOMTextNode} node\n * @return {?DOMElement|DOMTextNode}\n */\nfunction getSiblingNode(node) {\n while (node) {\n if (node.nextSibling) {\n return node.nextSibling;\n }\n node = node.parentNode;\n }\n}\n\n/**\n * Get object describing the nodes which contain characters at offset.\n *\n * @param {DOMElement|DOMTextNode} root\n * @param {number} offset\n * @return {?object}\n */\nfunction getNodeForCharacterOffset(root, offset) {\n var node = getLeafNode(root);\n var nodeStart = 0;\n var nodeEnd = 0;\n\n while (node) {\n if (node.nodeType === TEXT_NODE) {\n nodeEnd = nodeStart + node.textContent.length;\n\n if (nodeStart <= offset && nodeEnd >= offset) {\n return {\n node: node,\n offset: offset - nodeStart\n };\n }\n\n nodeStart = nodeEnd;\n }\n\n node = getLeafNode(getSiblingNode(node));\n }\n}\n\n/**\n * @param {DOMElement} outerNode\n * @return {?object}\n */\nfunction getOffsets(outerNode) {\n var ownerDocument = outerNode.ownerDocument;\n\n var win = ownerDocument && ownerDocument.defaultView || window;\n var selection = win.getSelection && win.getSelection();\n\n if (!selection || selection.rangeCount === 0) {\n return null;\n }\n\n var anchorNode = selection.anchorNode,\n anchorOffset = selection.anchorOffset,\n focusNode = selection.focusNode,\n focusOffset = selection.focusOffset;\n\n // In Firefox, anchorNode and focusNode can be \"anonymous divs\", e.g. the\n // up/down buttons on an <input type=\"number\">. Anonymous divs do not seem to\n // expose properties, triggering a \"Permission denied error\" if any of its\n // properties are accessed. The only seemingly possible way to avoid erroring\n // is to access a property that typically works for non-anonymous divs and\n // catch any error that may otherwise arise. See\n // https://bugzilla.mozilla.org/show_bug.cgi?id=208427\n\n try {\n /* eslint-disable no-unused-expressions */\n anchorNode.nodeType;\n focusNode.nodeType;\n /* eslint-enable no-unused-expressions */\n } catch (e) {\n return null;\n }\n\n return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);\n}\n\n/**\n * Returns {start, end} where `start` is the character/codepoint index of\n * (anchorNode, anchorOffset) within the textContent of `outerNode`, and\n * `end` is the index of (focusNode, focusOffset).\n *\n * Returns null if you pass in garbage input but we should probably just crash.\n *\n * Exported only for testing.\n */\nfunction getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {\n var length = 0;\n var start = -1;\n var end = -1;\n var indexWithinAnchor = 0;\n var indexWithinFocus = 0;\n var node = outerNode;\n var parentNode = null;\n\n outer: while (true) {\n var next = null;\n\n while (true) {\n if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {\n start = length + anchorOffset;\n }\n if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {\n end = length + focusOffset;\n }\n\n if (node.nodeType === TEXT_NODE) {\n length += node.nodeValue.length;\n }\n\n if ((next = node.firstChild) === null) {\n break;\n }\n // Moving from `node` to its first child `next`.\n parentNode = node;\n node = next;\n }\n\n while (true) {\n if (node === outerNode) {\n // If `outerNode` has children, this is always the second time visiting\n // it. If it has no children, this is still the first loop, and the only\n // valid selection is anchorNode and focusNode both equal to this node\n // and both offsets 0, in which case we will have handled above.\n break outer;\n }\n if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {\n start = length;\n }\n if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {\n end = length;\n }\n if ((next = node.nextSibling) !== null) {\n break;\n }\n node = parentNode;\n parentNode = node.parentNode;\n }\n\n // Moving from `node` to its next sibling `next`.\n node = next;\n }\n\n if (start === -1 || end === -1) {\n // This should never happen. (Would happen if the anchor/focus nodes aren't\n // actually inside the passed-in node.)\n return null;\n }\n\n return {\n start: start,\n end: end\n };\n}\n\n/**\n * In modern non-IE browsers, we can support both forward and backward\n * selections.\n *\n * Note: IE10+ supports the Selection object, but it does not support\n * the `extend` method, which means that even in modern IE, it's not possible\n * to programmatically create a backward selection. Thus, for all IE\n * versions, we use the old IE API to create our selections.\n *\n * @param {DOMElement|DOMTextNode} node\n * @param {object} offsets\n */\nfunction setOffsets(node, offsets) {\n var doc = node.ownerDocument || document;\n var win = doc && doc.defaultView || window;\n\n // Edge fails with \"Object expected\" in some scenarios.\n // (For instance: TinyMCE editor used in a list component that supports pasting to add more,\n // fails when pasting 100+ items)\n if (!win.getSelection) {\n return;\n }\n\n var selection = win.getSelection();\n var length = node.textContent.length;\n var start = Math.min(offsets.start, length);\n var end = offsets.end === undefined ? start : Math.min(offsets.end, length);\n\n // IE 11 uses modern selection, but doesn't support the extend method.\n // Flip backward selections, so we can set with a single range.\n if (!selection.extend && start > end) {\n var temp = end;\n end = start;\n start = temp;\n }\n\n var startMarker = getNodeForCharacterOffset(node, start);\n var endMarker = getNodeForCharacterOffset(node, end);\n\n if (startMarker && endMarker) {\n if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {\n return;\n }\n var range = doc.createRange();\n range.setStart(startMarker.node, startMarker.offset);\n selection.removeAllRanges();\n\n if (start > end) {\n selection.addRange(range);\n selection.extend(endMarker.node, endMarker.offset);\n } else {\n range.setEnd(endMarker.node, endMarker.offset);\n selection.addRange(range);\n }\n }\n}\n\nfunction isTextNode(node) {\n return node && node.nodeType === TEXT_NODE;\n}\n\nfunction containsNode(outerNode, innerNode) {\n if (!outerNode || !innerNode) {\n return false;\n } else if (outerNode === innerNode) {\n return true;\n } else if (isTextNode(outerNode)) {\n return false;\n } else if (isTextNode(innerNode)) {\n return containsNode(outerNode, innerNode.parentNode);\n } else if ('contains' in outerNode) {\n return outerNode.contains(innerNode);\n } else if (outerNode.compareDocumentPosition) {\n return !!(outerNode.compareDocumentPosition(innerNode) & 16);\n } else {\n return false;\n }\n}\n\nfunction isInDocument(node) {\n return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);\n}\n\nfunction getActiveElementDeep() {\n var win = window;\n var element = getActiveElement();\n while (element instanceof win.HTMLIFrameElement) {\n // Accessing the contentDocument of a HTMLIframeElement can cause the browser\n // to throw, e.g. if it has a cross-origin src attribute\n try {\n win = element.contentDocument.defaultView;\n } catch (e) {\n return element;\n }\n element = getActiveElement(win.document);\n }\n return element;\n}\n\n/**\n * @ReactInputSelection: React input selection module. Based on Selection.js,\n * but modified to be suitable for react and has a couple of bug fixes (doesn't\n * assume buttons have range selections allowed).\n * Input selection module for React.\n */\n\n/**\n * @hasSelectionCapabilities: we get the element types that support selection\n * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`\n * and `selectionEnd` rows.\n */\nfunction hasSelectionCapabilities(elem) {\n var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');\n}\n\nfunction getSelectionInformation() {\n var focusedElem = getActiveElementDeep();\n return {\n focusedElem: focusedElem,\n selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null\n };\n}\n\n/**\n * @restoreSelection: If any selection information was potentially lost,\n * restore it. This is useful when performing operations that could remove dom\n * nodes and place them back in, resulting in focus being lost.\n */\nfunction restoreSelection(priorSelectionInformation) {\n var curFocusedElem = getActiveElementDeep();\n var priorFocusedElem = priorSelectionInformation.focusedElem;\n var priorSelectionRange = priorSelectionInformation.selectionRange;\n if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {\n if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {\n setSelection(priorFocusedElem, priorSelectionRange);\n }\n\n // Focusing a node can change the scroll position, which is undesirable\n var ancestors = [];\n var ancestor = priorFocusedElem;\n while (ancestor = ancestor.parentNode) {\n if (ancestor.nodeType === ELEMENT_NODE) {\n ancestors.push({\n element: ancestor,\n left: ancestor.scrollLeft,\n top: ancestor.scrollTop\n });\n }\n }\n\n if (typeof priorFocusedElem.focus === 'function') {\n priorFocusedElem.focus();\n }\n\n for (var i = 0; i < ancestors.length; i++) {\n var info = ancestors[i];\n info.element.scrollLeft = info.left;\n info.element.scrollTop = info.top;\n }\n }\n}\n\n/**\n * @getSelection: Gets the selection bounds of a focused textarea, input or\n * contentEditable node.\n * -@input: Look up selection bounds of this input\n * -@return {start: selectionStart, end: selectionEnd}\n */\nfunction getSelection$1(input) {\n var selection = void 0;\n\n if ('selectionStart' in input) {\n // Modern browser with input or textarea.\n selection = {\n start: input.selectionStart,\n end: input.selectionEnd\n };\n } else {\n // Content editable or old IE textarea.\n selection = getOffsets(input);\n }\n\n return selection || { start: 0, end: 0 };\n}\n\n/**\n * @setSelection: Sets the selection bounds of a textarea or input and focuses\n * the input.\n * -@input Set selection bounds of this input or textarea\n * -@offsets Object of same form that is returned from get*\n */\nfunction setSelection(input, offsets) {\n var start = offsets.start,\n end = offsets.end;\n\n if (end === undefined) {\n end = start;\n }\n\n if ('selectionStart' in input) {\n input.selectionStart = start;\n input.selectionEnd = Math.min(end, input.value.length);\n } else {\n setOffsets(input, offsets);\n }\n}\n\nvar skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;\n\nvar eventTypes$3 = {\n select: {\n phasedRegistrationNames: {\n bubbled: 'onSelect',\n captured: 'onSelectCapture'\n },\n dependencies: [TOP_BLUR, TOP_CONTEXT_MENU, TOP_DRAG_END, TOP_FOCUS, TOP_KEY_DOWN, TOP_KEY_UP, TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_SELECTION_CHANGE]\n }\n};\n\nvar activeElement$1 = null;\nvar activeElementInst$1 = null;\nvar lastSelection = null;\nvar mouseDown = false;\n\n/**\n * Get an object which is a unique representation of the current selection.\n *\n * The return value will not be consistent across nodes or browsers, but\n * two identical selections on the same node will return identical objects.\n *\n * @param {DOMElement} node\n * @return {object}\n */\nfunction getSelection(node) {\n if ('selectionStart' in node && hasSelectionCapabilities(node)) {\n return {\n start: node.selectionStart,\n end: node.selectionEnd\n };\n } else {\n var win = node.ownerDocument && node.ownerDocument.defaultView || window;\n var selection = win.getSelection();\n return {\n anchorNode: selection.anchorNode,\n anchorOffset: selection.anchorOffset,\n focusNode: selection.focusNode,\n focusOffset: selection.focusOffset\n };\n }\n}\n\n/**\n * Get document associated with the event target.\n *\n * @param {object} nativeEventTarget\n * @return {Document}\n */\nfunction getEventTargetDocument(eventTarget) {\n return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;\n}\n\n/**\n * Poll selection to see whether it's changed.\n *\n * @param {object} nativeEvent\n * @param {object} nativeEventTarget\n * @return {?SyntheticEvent}\n */\nfunction constructSelectEvent(nativeEvent, nativeEventTarget) {\n // Ensure we have the right element, and that the user is not dragging a\n // selection (this matches native `select` event behavior). In HTML5, select\n // fires only on input and textarea thus if there's no focused element we\n // won't dispatch.\n var doc = getEventTargetDocument(nativeEventTarget);\n\n if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {\n return null;\n }\n\n // Only fire when selection has actually changed.\n var currentSelection = getSelection(activeElement$1);\n if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {\n lastSelection = currentSelection;\n\n var syntheticEvent = SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget);\n\n syntheticEvent.type = 'select';\n syntheticEvent.target = activeElement$1;\n\n accumulateTwoPhaseDispatches(syntheticEvent);\n\n return syntheticEvent;\n }\n\n return null;\n}\n\n/**\n * This plugin creates an `onSelect` event that normalizes select events\n * across form elements.\n *\n * Supported elements are:\n * - input (see `isTextInputElement`)\n * - textarea\n * - contentEditable\n *\n * This differs from native browser implementations in the following ways:\n * - Fires on contentEditable fields as well as inputs.\n * - Fires for collapsed selection.\n * - Fires after user input.\n */\nvar SelectEventPlugin = {\n eventTypes: eventTypes$3,\n\n extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {\n var doc = getEventTargetDocument(nativeEventTarget);\n // Track whether all listeners exists for this plugin. If none exist, we do\n // not extract events. See #3639.\n if (!doc || !isListeningToAllDependencies('onSelect', doc)) {\n return null;\n }\n\n var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;\n\n switch (topLevelType) {\n // Track the input node that has focus.\n case TOP_FOCUS:\n if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {\n activeElement$1 = targetNode;\n activeElementInst$1 = targetInst;\n lastSelection = null;\n }\n break;\n case TOP_BLUR:\n activeElement$1 = null;\n activeElementInst$1 = null;\n lastSelection = null;\n break;\n // Don't fire the event while the user is dragging. This matches the\n // semantics of the native select event.\n case TOP_MOUSE_DOWN:\n mouseDown = true;\n break;\n case TOP_CONTEXT_MENU:\n case TOP_MOUSE_UP:\n case TOP_DRAG_END:\n mouseDown = false;\n return constructSelectEvent(nativeEvent, nativeEventTarget);\n // Chrome and IE fire non-standard event when selection is changed (and\n // sometimes when it hasn't). IE's event fires out of order with respect\n // to key and input events on deletion, so we discard it.\n //\n // Firefox doesn't support selectionchange, so check selection status\n // after each key entry. The selection changes after keydown and before\n // keyup, but we check on keydown as well in the case of holding down a\n // key, when multiple keydown events are fired but only one keyup is.\n // This is also our approach for IE handling, for the reason above.\n case TOP_SELECTION_CHANGE:\n if (skipSelectionChangeEvent) {\n break;\n }\n // falls through\n case TOP_KEY_DOWN:\n case TOP_KEY_UP:\n return constructSelectEvent(nativeEvent, nativeEventTarget);\n }\n\n return null;\n }\n};\n\n/**\n * Inject modules for resolving DOM hierarchy and plugin ordering.\n */\ninjection.injectEventPluginOrder(DOMEventPluginOrder);\nsetComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1);\n\n/**\n * Some important event plugins included by default (without having to require\n * them).\n */\ninjection.injectEventPluginsByName({\n SimpleEventPlugin: SimpleEventPlugin,\n EnterLeaveEventPlugin: EnterLeaveEventPlugin,\n ChangeEventPlugin: ChangeEventPlugin,\n SelectEventPlugin: SelectEventPlugin,\n BeforeInputEventPlugin: BeforeInputEventPlugin\n});\n\nvar didWarnSelectedSetOnOption = false;\nvar didWarnInvalidChild = false;\n\nfunction flattenChildren(children) {\n var content = '';\n\n // Flatten children. We'll warn if they are invalid\n // during validateProps() which runs for hydration too.\n // Note that this would throw on non-element objects.\n // Elements are stringified (which is normally irrelevant\n // but matters for <fbt>).\n React.Children.forEach(children, function (child) {\n if (child == null) {\n return;\n }\n content += child;\n // Note: we don't warn about invalid children here.\n // Instead, this is done separately below so that\n // it happens during the hydration codepath too.\n });\n\n return content;\n}\n\n/**\n * Implements an <option> host component that warns when `selected` is set.\n */\n\nfunction validateProps(element, props) {\n {\n // This mirrors the codepath above, but runs for hydration too.\n // Warn about invalid children here so that client and hydration are consistent.\n // TODO: this seems like it could cause a DEV-only throw for hydration\n // if children contains a non-element object. We should try to avoid that.\n if (typeof props.children === 'object' && props.children !== null) {\n React.Children.forEach(props.children, function (child) {\n if (child == null) {\n return;\n }\n if (typeof child === 'string' || typeof child === 'number') {\n return;\n }\n if (typeof child.type !== 'string') {\n return;\n }\n if (!didWarnInvalidChild) {\n didWarnInvalidChild = true;\n warning$1(false, 'Only strings and numbers are supported as <option> children.');\n }\n });\n }\n\n // TODO: Remove support for `selected` in <option>.\n if (props.selected != null && !didWarnSelectedSetOnOption) {\n warning$1(false, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');\n didWarnSelectedSetOnOption = true;\n }\n }\n}\n\nfunction postMountWrapper$1(element, props) {\n // value=\"\" should make a value attribute (#6219)\n if (props.value != null) {\n element.setAttribute('value', toString(getToStringValue(props.value)));\n }\n}\n\nfunction getHostProps$1(element, props) {\n var hostProps = _assign({ children: undefined }, props);\n var content = flattenChildren(props.children);\n\n if (content) {\n hostProps.children = content;\n }\n\n return hostProps;\n}\n\n// TODO: direct imports like some-package/src/* are bad. Fix me.\nvar didWarnValueDefaultValue$1 = void 0;\n\n{\n didWarnValueDefaultValue$1 = false;\n}\n\nfunction getDeclarationErrorAddendum() {\n var ownerName = getCurrentFiberOwnerNameInDevOrNull();\n if (ownerName) {\n return '\\n\\nCheck the render method of `' + ownerName + '`.';\n }\n return '';\n}\n\nvar valuePropNames = ['value', 'defaultValue'];\n\n/**\n * Validation function for `value` and `defaultValue`.\n */\nfunction checkSelectPropTypes(props) {\n ReactControlledValuePropTypes.checkPropTypes('select', props);\n\n for (var i = 0; i < valuePropNames.length; i++) {\n var propName = valuePropNames[i];\n if (props[propName] == null) {\n continue;\n }\n var isArray = Array.isArray(props[propName]);\n if (props.multiple && !isArray) {\n warning$1(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());\n } else if (!props.multiple && isArray) {\n warning$1(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());\n }\n }\n}\n\nfunction updateOptions(node, multiple, propValue, setDefaultSelected) {\n var options = node.options;\n\n if (multiple) {\n var selectedValues = propValue;\n var selectedValue = {};\n for (var i = 0; i < selectedValues.length; i++) {\n // Prefix to avoid chaos with special keys.\n selectedValue['$' + selectedValues[i]] = true;\n }\n for (var _i = 0; _i < options.length; _i++) {\n var selected = selectedValue.hasOwnProperty('$' + options[_i].value);\n if (options[_i].selected !== selected) {\n options[_i].selected = selected;\n }\n if (selected && setDefaultSelected) {\n options[_i].defaultSelected = true;\n }\n }\n } else {\n // Do not set `select.value` as exact behavior isn't consistent across all\n // browsers for all cases.\n var _selectedValue = toString(getToStringValue(propValue));\n var defaultSelected = null;\n for (var _i2 = 0; _i2 < options.length; _i2++) {\n if (options[_i2].value === _selectedValue) {\n options[_i2].selected = true;\n if (setDefaultSelected) {\n options[_i2].defaultSelected = true;\n }\n return;\n }\n if (defaultSelected === null && !options[_i2].disabled) {\n defaultSelected = options[_i2];\n }\n }\n if (defaultSelected !== null) {\n defaultSelected.selected = true;\n }\n }\n}\n\n/**\n * Implements a <select> host component that allows optionally setting the\n * props `value` and `defaultValue`. If `multiple` is false, the prop must be a\n * stringable. If `multiple` is true, the prop must be an array of stringables.\n *\n * If `value` is not supplied (or null/undefined), user actions that change the\n * selected option will trigger updates to the rendered options.\n *\n * If it is supplied (and not null/undefined), the rendered options will not\n * update in response to user actions. Instead, the `value` prop must change in\n * order for the rendered options to update.\n *\n * If `defaultValue` is provided, any options with the supplied values will be\n * selected.\n */\n\nfunction getHostProps$2(element, props) {\n return _assign({}, props, {\n value: undefined\n });\n}\n\nfunction initWrapperState$1(element, props) {\n var node = element;\n {\n checkSelectPropTypes(props);\n }\n\n node._wrapperState = {\n wasMultiple: !!props.multiple\n };\n\n {\n if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {\n warning$1(false, 'Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components');\n didWarnValueDefaultValue$1 = true;\n }\n }\n}\n\nfunction postMountWrapper$2(element, props) {\n var node = element;\n node.multiple = !!props.multiple;\n var value = props.value;\n if (value != null) {\n updateOptions(node, !!props.multiple, value, false);\n } else if (props.defaultValue != null) {\n updateOptions(node, !!props.multiple, props.defaultValue, true);\n }\n}\n\nfunction postUpdateWrapper(element, props) {\n var node = element;\n var wasMultiple = node._wrapperState.wasMultiple;\n node._wrapperState.wasMultiple = !!props.multiple;\n\n var value = props.value;\n if (value != null) {\n updateOptions(node, !!props.multiple, value, false);\n } else if (wasMultiple !== !!props.multiple) {\n // For simplicity, reapply `defaultValue` if `multiple` is toggled.\n if (props.defaultValue != null) {\n updateOptions(node, !!props.multiple, props.defaultValue, true);\n } else {\n // Revert the select back to its default unselected state.\n updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);\n }\n }\n}\n\nfunction restoreControlledState$2(element, props) {\n var node = element;\n var value = props.value;\n\n if (value != null) {\n updateOptions(node, !!props.multiple, value, false);\n }\n}\n\nvar didWarnValDefaultVal = false;\n\n/**\n * Implements a <textarea> host component that allows setting `value`, and\n * `defaultValue`. This differs from the traditional DOM API because value is\n * usually set as PCDATA children.\n *\n * If `value` is not supplied (or null/undefined), user actions that affect the\n * value will trigger updates to the element.\n *\n * If `value` is supplied (and not null/undefined), the rendered element will\n * not trigger updates to the element. Instead, the `value` prop must change in\n * order for the rendered element to be updated.\n *\n * The rendered element will be initialized with an empty value, the prop\n * `defaultValue` if specified, or the children content (deprecated).\n */\n\nfunction getHostProps$3(element, props) {\n var node = element;\n !(props.dangerouslySetInnerHTML == null) ? invariant(false, '`dangerouslySetInnerHTML` does not make sense on <textarea>.') : void 0;\n\n // Always set children to the same thing. In IE9, the selection range will\n // get reset if `textContent` is mutated. We could add a check in setTextContent\n // to only set the value if/when the value differs from the node value (which would\n // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this\n // solution. The value can be a boolean or object so that's why it's forced\n // to be a string.\n var hostProps = _assign({}, props, {\n value: undefined,\n defaultValue: undefined,\n children: toString(node._wrapperState.initialValue)\n });\n\n return hostProps;\n}\n\nfunction initWrapperState$2(element, props) {\n var node = element;\n {\n ReactControlledValuePropTypes.checkPropTypes('textarea', props);\n if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {\n warning$1(false, '%s contains a textarea with both value and defaultValue props. ' + 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component');\n didWarnValDefaultVal = true;\n }\n }\n\n var initialValue = props.value;\n\n // Only bother fetching default value if we're going to use it\n if (initialValue == null) {\n var defaultValue = props.defaultValue;\n // TODO (yungsters): Remove support for children content in <textarea>.\n var children = props.children;\n if (children != null) {\n {\n warning$1(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');\n }\n !(defaultValue == null) ? invariant(false, 'If you supply `defaultValue` on a <textarea>, do not pass children.') : void 0;\n if (Array.isArray(children)) {\n !(children.length <= 1) ? invariant(false, '<textarea> can only have at most one child.') : void 0;\n children = children[0];\n }\n\n defaultValue = children;\n }\n if (defaultValue == null) {\n defaultValue = '';\n }\n initialValue = defaultValue;\n }\n\n node._wrapperState = {\n initialValue: getToStringValue(initialValue)\n };\n}\n\nfunction updateWrapper$1(element, props) {\n var node = element;\n var value = getToStringValue(props.value);\n var defaultValue = getToStringValue(props.defaultValue);\n if (value != null) {\n // Cast `value` to a string to ensure the value is set correctly. While\n // browsers typically do this as necessary, jsdom doesn't.\n var newValue = toString(value);\n // To avoid side effects (such as losing text selection), only set value if changed\n if (newValue !== node.value) {\n node.value = newValue;\n }\n if (props.defaultValue == null && node.defaultValue !== newValue) {\n node.defaultValue = newValue;\n }\n }\n if (defaultValue != null) {\n node.defaultValue = toString(defaultValue);\n }\n}\n\nfunction postMountWrapper$3(element, props) {\n var node = element;\n // This is in postMount because we need access to the DOM node, which is not\n // available until after the component has mounted.\n var textContent = node.textContent;\n\n // Only set node.value if textContent is equal to the expected\n // initial value. In IE10/IE11 there is a bug where the placeholder attribute\n // will populate textContent as well.\n // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/\n if (textContent === node._wrapperState.initialValue) {\n node.value = textContent;\n }\n}\n\nfunction restoreControlledState$3(element, props) {\n // DOM component is still mounted; update\n updateWrapper$1(element, props);\n}\n\nvar HTML_NAMESPACE$1 = 'http://www.w3.org/1999/xhtml';\nvar MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\nvar SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n\nvar Namespaces = {\n html: HTML_NAMESPACE$1,\n mathml: MATH_NAMESPACE,\n svg: SVG_NAMESPACE\n};\n\n// Assumes there is no parent namespace.\nfunction getIntrinsicNamespace(type) {\n switch (type) {\n case 'svg':\n return SVG_NAMESPACE;\n case 'math':\n return MATH_NAMESPACE;\n default:\n return HTML_NAMESPACE$1;\n }\n}\n\nfunction getChildNamespace(parentNamespace, type) {\n if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {\n // No (or default) parent namespace: potential entry point.\n return getIntrinsicNamespace(type);\n }\n if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {\n // We're leaving SVG.\n return HTML_NAMESPACE$1;\n }\n // By default, pass namespace below.\n return parentNamespace;\n}\n\n/* globals MSApp */\n\n/**\n * Create a function which has 'unsafe' privileges (required by windows8 apps)\n */\nvar createMicrosoftUnsafeLocalFunction = function (func) {\n if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {\n return function (arg0, arg1, arg2, arg3) {\n MSApp.execUnsafeLocalFunction(function () {\n return func(arg0, arg1, arg2, arg3);\n });\n };\n } else {\n return func;\n }\n};\n\n// SVG temp container for IE lacking innerHTML\nvar reusableSVGContainer = void 0;\n\n/**\n * Set the innerHTML property of a node\n *\n * @param {DOMElement} node\n * @param {string} html\n * @internal\n */\nvar setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {\n // IE does not have innerHTML for SVG nodes, so instead we inject the\n // new markup in a temp node and then move the child nodes across into\n // the target node\n\n if (node.namespaceURI === Namespaces.svg && !('innerHTML' in node)) {\n reusableSVGContainer = reusableSVGContainer || document.createElement('div');\n reusableSVGContainer.innerHTML = '<svg>' + html + '</svg>';\n var svgNode = reusableSVGContainer.firstChild;\n while (node.firstChild) {\n node.removeChild(node.firstChild);\n }\n while (svgNode.firstChild) {\n node.appendChild(svgNode.firstChild);\n }\n } else {\n node.innerHTML = html;\n }\n});\n\n/**\n * Set the textContent property of a node. For text updates, it's faster\n * to set the `nodeValue` of the Text node directly instead of using\n * `.textContent` which will remove the existing node and create a new one.\n *\n * @param {DOMElement} node\n * @param {string} text\n * @internal\n */\nvar setTextContent = function (node, text) {\n if (text) {\n var firstChild = node.firstChild;\n\n if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {\n firstChild.nodeValue = text;\n return;\n }\n }\n node.textContent = text;\n};\n\n// List derived from Gecko source code:\n// https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js\nvar shorthandToLonghand = {\n animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'],\n background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'],\n backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'],\n border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'],\n borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'],\n borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'],\n borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'],\n borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],\n borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'],\n borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'],\n borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'],\n borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'],\n borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'],\n borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'],\n borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],\n borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'],\n borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],\n columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'],\n columns: ['columnCount', 'columnWidth'],\n flex: ['flexBasis', 'flexGrow', 'flexShrink'],\n flexFlow: ['flexDirection', 'flexWrap'],\n font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'],\n fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'],\n gap: ['columnGap', 'rowGap'],\n grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],\n gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'],\n gridColumn: ['gridColumnEnd', 'gridColumnStart'],\n gridColumnGap: ['columnGap'],\n gridGap: ['columnGap', 'rowGap'],\n gridRow: ['gridRowEnd', 'gridRowStart'],\n gridRowGap: ['rowGap'],\n gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],\n listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'],\n margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'],\n marker: ['markerEnd', 'markerMid', 'markerStart'],\n mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'],\n maskPosition: ['maskPositionX', 'maskPositionY'],\n outline: ['outlineColor', 'outlineStyle', 'outlineWidth'],\n overflow: ['overflowX', 'overflowY'],\n padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],\n placeContent: ['alignContent', 'justifyContent'],\n placeItems: ['alignItems', 'justifyItems'],\n placeSelf: ['alignSelf', 'justifySelf'],\n textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'],\n textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'],\n transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'],\n wordWrap: ['overflowWrap']\n};\n\n/**\n * CSS properties which accept numbers but are not in units of \"px\".\n */\nvar isUnitlessNumber = {\n animationIterationCount: true,\n borderImageOutset: true,\n borderImageSlice: true,\n borderImageWidth: true,\n boxFlex: true,\n boxFlexGroup: true,\n boxOrdinalGroup: true,\n columnCount: true,\n columns: true,\n flex: true,\n flexGrow: true,\n flexPositive: true,\n flexShrink: true,\n flexNegative: true,\n flexOrder: true,\n gridArea: true,\n gridRow: true,\n gridRowEnd: true,\n gridRowSpan: true,\n gridRowStart: true,\n gridColumn: true,\n gridColumnEnd: true,\n gridColumnSpan: true,\n gridColumnStart: true,\n fontWeight: true,\n lineClamp: true,\n lineHeight: true,\n opacity: true,\n order: true,\n orphans: true,\n tabSize: true,\n widows: true,\n zIndex: true,\n zoom: true,\n\n // SVG-related properties\n fillOpacity: true,\n floodOpacity: true,\n stopOpacity: true,\n strokeDasharray: true,\n strokeDashoffset: true,\n strokeMiterlimit: true,\n strokeOpacity: true,\n strokeWidth: true\n};\n\n/**\n * @param {string} prefix vendor-specific prefix, eg: Webkit\n * @param {string} key style name, eg: transitionDuration\n * @return {string} style name prefixed with `prefix`, properly camelCased, eg:\n * WebkitTransitionDuration\n */\nfunction prefixKey(prefix, key) {\n return prefix + key.charAt(0).toUpperCase() + key.substring(1);\n}\n\n/**\n * Support style names that may come passed in prefixed by adding permutations\n * of vendor prefixes.\n */\nvar prefixes = ['Webkit', 'ms', 'Moz', 'O'];\n\n// Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an\n// infinite loop, because it iterates over the newly added props too.\nObject.keys(isUnitlessNumber).forEach(function (prop) {\n prefixes.forEach(function (prefix) {\n isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];\n });\n});\n\n/**\n * Convert a value into the proper css writable value. The style name `name`\n * should be logical (no hyphens), as specified\n * in `CSSProperty.isUnitlessNumber`.\n *\n * @param {string} name CSS property name such as `topMargin`.\n * @param {*} value CSS property value such as `10px`.\n * @return {string} Normalized style value with dimensions applied.\n */\nfunction dangerousStyleValue(name, value, isCustomProperty) {\n // Note that we've removed escapeTextForBrowser() calls here since the\n // whole string will be escaped when the attribute is injected into\n // the markup. If you provide unsafe user data here they can inject\n // arbitrary CSS which may be problematic (I couldn't repro this):\n // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet\n // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/\n // This is not an XSS hole but instead a potential CSS injection issue\n // which has lead to a greater discussion about how we're going to\n // trust URLs moving forward. See #2115901\n\n var isEmpty = value == null || typeof value === 'boolean' || value === '';\n if (isEmpty) {\n return '';\n }\n\n if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {\n return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers\n }\n\n return ('' + value).trim();\n}\n\nvar uppercasePattern = /([A-Z])/g;\nvar msPattern = /^ms-/;\n\n/**\n * Hyphenates a camelcased CSS property name, for example:\n *\n * > hyphenateStyleName('backgroundColor')\n * < \"background-color\"\n * > hyphenateStyleName('MozTransition')\n * < \"-moz-transition\"\n * > hyphenateStyleName('msTransition')\n * < \"-ms-transition\"\n *\n * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix\n * is converted to `-ms-`.\n */\nfunction hyphenateStyleName(name) {\n return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');\n}\n\nvar warnValidStyle = function () {};\n\n{\n // 'msTransform' is correct, but the other prefixes should be capitalized\n var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;\n var msPattern$1 = /^-ms-/;\n var hyphenPattern = /-(.)/g;\n\n // style values shouldn't contain a semicolon\n var badStyleValueWithSemicolonPattern = /;\\s*$/;\n\n var warnedStyleNames = {};\n var warnedStyleValues = {};\n var warnedForNaNValue = false;\n var warnedForInfinityValue = false;\n\n var camelize = function (string) {\n return string.replace(hyphenPattern, function (_, character) {\n return character.toUpperCase();\n });\n };\n\n var warnHyphenatedStyleName = function (name) {\n if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {\n return;\n }\n\n warnedStyleNames[name] = true;\n warning$1(false, 'Unsupported style property %s. Did you mean %s?', name,\n // As Andi Smith suggests\n // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix\n // is converted to lowercase `ms`.\n camelize(name.replace(msPattern$1, 'ms-')));\n };\n\n var warnBadVendoredStyleName = function (name) {\n if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {\n return;\n }\n\n warnedStyleNames[name] = true;\n warning$1(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));\n };\n\n var warnStyleValueWithSemicolon = function (name, value) {\n if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {\n return;\n }\n\n warnedStyleValues[value] = true;\n warning$1(false, \"Style property values shouldn't contain a semicolon. \" + 'Try \"%s: %s\" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));\n };\n\n var warnStyleValueIsNaN = function (name, value) {\n if (warnedForNaNValue) {\n return;\n }\n\n warnedForNaNValue = true;\n warning$1(false, '`NaN` is an invalid value for the `%s` css style property.', name);\n };\n\n var warnStyleValueIsInfinity = function (name, value) {\n if (warnedForInfinityValue) {\n return;\n }\n\n warnedForInfinityValue = true;\n warning$1(false, '`Infinity` is an invalid value for the `%s` css style property.', name);\n };\n\n warnValidStyle = function (name, value) {\n if (name.indexOf('-') > -1) {\n warnHyphenatedStyleName(name);\n } else if (badVendoredStyleNamePattern.test(name)) {\n warnBadVendoredStyleName(name);\n } else if (badStyleValueWithSemicolonPattern.test(value)) {\n warnStyleValueWithSemicolon(name, value);\n }\n\n if (typeof value === 'number') {\n if (isNaN(value)) {\n warnStyleValueIsNaN(name, value);\n } else if (!isFinite(value)) {\n warnStyleValueIsInfinity(name, value);\n }\n }\n };\n}\n\nvar warnValidStyle$1 = warnValidStyle;\n\n/**\n * Operations for dealing with CSS properties.\n */\n\n/**\n * This creates a string that is expected to be equivalent to the style\n * attribute generated by server-side rendering. It by-passes warnings and\n * security checks so it's not safe to use this value for anything other than\n * comparison. It is only used in DEV for SSR validation.\n */\nfunction createDangerousStringForStyles(styles) {\n {\n var serialized = '';\n var delimiter = '';\n for (var styleName in styles) {\n if (!styles.hasOwnProperty(styleName)) {\n continue;\n }\n var styleValue = styles[styleName];\n if (styleValue != null) {\n var isCustomProperty = styleName.indexOf('--') === 0;\n serialized += delimiter + hyphenateStyleName(styleName) + ':';\n serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);\n\n delimiter = ';';\n }\n }\n return serialized || null;\n }\n}\n\n/**\n * Sets the value for multiple styles on a node. If a value is specified as\n * '' (empty string), the corresponding style property will be unset.\n *\n * @param {DOMElement} node\n * @param {object} styles\n */\nfunction setValueForStyles(node, styles) {\n var style = node.style;\n for (var styleName in styles) {\n if (!styles.hasOwnProperty(styleName)) {\n continue;\n }\n var isCustomProperty = styleName.indexOf('--') === 0;\n {\n if (!isCustomProperty) {\n warnValidStyle$1(styleName, styles[styleName]);\n }\n }\n var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);\n if (styleName === 'float') {\n styleName = 'cssFloat';\n }\n if (isCustomProperty) {\n style.setProperty(styleName, styleValue);\n } else {\n style[styleName] = styleValue;\n }\n }\n}\n\nfunction isValueEmpty(value) {\n return value == null || typeof value === 'boolean' || value === '';\n}\n\n/**\n * Given {color: 'red', overflow: 'hidden'} returns {\n * color: 'color',\n * overflowX: 'overflow',\n * overflowY: 'overflow',\n * }. This can be read as \"the overflowY property was set by the overflow\n * shorthand\". That is, the values are the property that each was derived from.\n */\nfunction expandShorthandMap(styles) {\n var expanded = {};\n for (var key in styles) {\n var longhands = shorthandToLonghand[key] || [key];\n for (var i = 0; i < longhands.length; i++) {\n expanded[longhands[i]] = key;\n }\n }\n return expanded;\n}\n\n/**\n * When mixing shorthand and longhand property names, we warn during updates if\n * we expect an incorrect result to occur. In particular, we warn for:\n *\n * Updating a shorthand property (longhand gets overwritten):\n * {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'}\n * becomes .style.font = 'baz'\n * Removing a shorthand property (longhand gets lost too):\n * {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'}\n * becomes .style.font = ''\n * Removing a longhand property (should revert to shorthand; doesn't):\n * {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'}\n * becomes .style.fontVariant = ''\n */\nfunction validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) {\n if (!warnAboutShorthandPropertyCollision) {\n return;\n }\n\n if (!nextStyles) {\n return;\n }\n\n var expandedUpdates = expandShorthandMap(styleUpdates);\n var expandedStyles = expandShorthandMap(nextStyles);\n var warnedAbout = {};\n for (var key in expandedUpdates) {\n var originalKey = expandedUpdates[key];\n var correctOriginalKey = expandedStyles[key];\n if (correctOriginalKey && originalKey !== correctOriginalKey) {\n var warningKey = originalKey + ',' + correctOriginalKey;\n if (warnedAbout[warningKey]) {\n continue;\n }\n warnedAbout[warningKey] = true;\n warning$1(false, '%s a style property during rerender (%s) when a ' + 'conflicting property is set (%s) can lead to styling bugs. To ' + \"avoid this, don't mix shorthand and non-shorthand properties \" + 'for the same value; instead, replace the shorthand with ' + 'separate values.', isValueEmpty(styleUpdates[originalKey]) ? 'Removing' : 'Updating', originalKey, correctOriginalKey);\n }\n }\n}\n\n// For HTML, certain tags should omit their close tag. We keep a whitelist for\n// those special-case tags.\n\nvar omittedCloseTags = {\n area: true,\n base: true,\n br: true,\n col: true,\n embed: true,\n hr: true,\n img: true,\n input: true,\n keygen: true,\n link: true,\n meta: true,\n param: true,\n source: true,\n track: true,\n wbr: true\n // NOTE: menuitem's close tag should be omitted, but that causes problems.\n};\n\n// For HTML, certain tags cannot have children. This has the same purpose as\n// `omittedCloseTags` except that `menuitem` should still have its closing tag.\n\nvar voidElementTags = _assign({\n menuitem: true\n}, omittedCloseTags);\n\n// TODO: We can remove this if we add invariantWithStack()\n// or add stack by default to invariants where possible.\nvar HTML$1 = '__html';\n\nvar ReactDebugCurrentFrame$2 = null;\n{\n ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame;\n}\n\nfunction assertValidProps(tag, props) {\n if (!props) {\n return;\n }\n // Note the use of `==` which checks for null or undefined.\n if (voidElementTags[tag]) {\n !(props.children == null && props.dangerouslySetInnerHTML == null) ? invariant(false, '%s is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.%s', tag, ReactDebugCurrentFrame$2.getStackAddendum()) : void 0;\n }\n if (props.dangerouslySetInnerHTML != null) {\n !(props.children == null) ? invariant(false, 'Can only set one of `children` or `props.dangerouslySetInnerHTML`.') : void 0;\n !(typeof props.dangerouslySetInnerHTML === 'object' && HTML$1 in props.dangerouslySetInnerHTML) ? invariant(false, '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.') : void 0;\n }\n {\n !(props.suppressContentEditableWarning || !props.contentEditable || props.children == null) ? warning$1(false, 'A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.') : void 0;\n }\n !(props.style == null || typeof props.style === 'object') ? invariant(false, 'The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \\'em\\'}} when using JSX.%s', ReactDebugCurrentFrame$2.getStackAddendum()) : void 0;\n}\n\nfunction isCustomComponent(tagName, props) {\n if (tagName.indexOf('-') === -1) {\n return typeof props.is === 'string';\n }\n switch (tagName) {\n // These are reserved SVG and MathML elements.\n // We don't mind this whitelist too much because we expect it to never grow.\n // The alternative is to track the namespace in a few places which is convoluted.\n // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts\n case 'annotation-xml':\n case 'color-profile':\n case 'font-face':\n case 'font-face-src':\n case 'font-face-uri':\n case 'font-face-format':\n case 'font-face-name':\n case 'missing-glyph':\n return false;\n default:\n return true;\n }\n}\n\n// When adding attributes to the HTML or SVG whitelist, be sure to\n// also add them to this module to ensure casing and incorrect name\n// warnings.\nvar possibleStandardNames = {\n // HTML\n accept: 'accept',\n acceptcharset: 'acceptCharset',\n 'accept-charset': 'acceptCharset',\n accesskey: 'accessKey',\n action: 'action',\n allowfullscreen: 'allowFullScreen',\n alt: 'alt',\n as: 'as',\n async: 'async',\n autocapitalize: 'autoCapitalize',\n autocomplete: 'autoComplete',\n autocorrect: 'autoCorrect',\n autofocus: 'autoFocus',\n autoplay: 'autoPlay',\n autosave: 'autoSave',\n capture: 'capture',\n cellpadding: 'cellPadding',\n cellspacing: 'cellSpacing',\n challenge: 'challenge',\n charset: 'charSet',\n checked: 'checked',\n children: 'children',\n cite: 'cite',\n class: 'className',\n classid: 'classID',\n classname: 'className',\n cols: 'cols',\n colspan: 'colSpan',\n content: 'content',\n contenteditable: 'contentEditable',\n contextmenu: 'contextMenu',\n controls: 'controls',\n controlslist: 'controlsList',\n coords: 'coords',\n crossorigin: 'crossOrigin',\n dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',\n data: 'data',\n datetime: 'dateTime',\n default: 'default',\n defaultchecked: 'defaultChecked',\n defaultvalue: 'defaultValue',\n defer: 'defer',\n dir: 'dir',\n disabled: 'disabled',\n download: 'download',\n draggable: 'draggable',\n enctype: 'encType',\n for: 'htmlFor',\n form: 'form',\n formmethod: 'formMethod',\n formaction: 'formAction',\n formenctype: 'formEncType',\n formnovalidate: 'formNoValidate',\n formtarget: 'formTarget',\n frameborder: 'frameBorder',\n headers: 'headers',\n height: 'height',\n hidden: 'hidden',\n high: 'high',\n href: 'href',\n hreflang: 'hrefLang',\n htmlfor: 'htmlFor',\n httpequiv: 'httpEquiv',\n 'http-equiv': 'httpEquiv',\n icon: 'icon',\n id: 'id',\n innerhtml: 'innerHTML',\n inputmode: 'inputMode',\n integrity: 'integrity',\n is: 'is',\n itemid: 'itemID',\n itemprop: 'itemProp',\n itemref: 'itemRef',\n itemscope: 'itemScope',\n itemtype: 'itemType',\n keyparams: 'keyParams',\n keytype: 'keyType',\n kind: 'kind',\n label: 'label',\n lang: 'lang',\n list: 'list',\n loop: 'loop',\n low: 'low',\n manifest: 'manifest',\n marginwidth: 'marginWidth',\n marginheight: 'marginHeight',\n max: 'max',\n maxlength: 'maxLength',\n media: 'media',\n mediagroup: 'mediaGroup',\n method: 'method',\n min: 'min',\n minlength: 'minLength',\n multiple: 'multiple',\n muted: 'muted',\n name: 'name',\n nomodule: 'noModule',\n nonce: 'nonce',\n novalidate: 'noValidate',\n open: 'open',\n optimum: 'optimum',\n pattern: 'pattern',\n placeholder: 'placeholder',\n playsinline: 'playsInline',\n poster: 'poster',\n preload: 'preload',\n profile: 'profile',\n radiogroup: 'radioGroup',\n readonly: 'readOnly',\n referrerpolicy: 'referrerPolicy',\n rel: 'rel',\n required: 'required',\n reversed: 'reversed',\n role: 'role',\n rows: 'rows',\n rowspan: 'rowSpan',\n sandbox: 'sandbox',\n scope: 'scope',\n scoped: 'scoped',\n scrolling: 'scrolling',\n seamless: 'seamless',\n selected: 'selected',\n shape: 'shape',\n size: 'size',\n sizes: 'sizes',\n span: 'span',\n spellcheck: 'spellCheck',\n src: 'src',\n srcdoc: 'srcDoc',\n srclang: 'srcLang',\n srcset: 'srcSet',\n start: 'start',\n step: 'step',\n style: 'style',\n summary: 'summary',\n tabindex: 'tabIndex',\n target: 'target',\n title: 'title',\n type: 'type',\n usemap: 'useMap',\n value: 'value',\n width: 'width',\n wmode: 'wmode',\n wrap: 'wrap',\n\n // SVG\n about: 'about',\n accentheight: 'accentHeight',\n 'accent-height': 'accentHeight',\n accumulate: 'accumulate',\n additive: 'additive',\n alignmentbaseline: 'alignmentBaseline',\n 'alignment-baseline': 'alignmentBaseline',\n allowreorder: 'allowReorder',\n alphabetic: 'alphabetic',\n amplitude: 'amplitude',\n arabicform: 'arabicForm',\n 'arabic-form': 'arabicForm',\n ascent: 'ascent',\n attributename: 'attributeName',\n attributetype: 'attributeType',\n autoreverse: 'autoReverse',\n azimuth: 'azimuth',\n basefrequency: 'baseFrequency',\n baselineshift: 'baselineShift',\n 'baseline-shift': 'baselineShift',\n baseprofile: 'baseProfile',\n bbox: 'bbox',\n begin: 'begin',\n bias: 'bias',\n by: 'by',\n calcmode: 'calcMode',\n capheight: 'capHeight',\n 'cap-height': 'capHeight',\n clip: 'clip',\n clippath: 'clipPath',\n 'clip-path': 'clipPath',\n clippathunits: 'clipPathUnits',\n cliprule: 'clipRule',\n 'clip-rule': 'clipRule',\n color: 'color',\n colorinterpolation: 'colorInterpolation',\n 'color-interpolation': 'colorInterpolation',\n colorinterpolationfilters: 'colorInterpolationFilters',\n 'color-interpolation-filters': 'colorInterpolationFilters',\n colorprofile: 'colorProfile',\n 'color-profile': 'colorProfile',\n colorrendering: 'colorRendering',\n 'color-rendering': 'colorRendering',\n contentscripttype: 'contentScriptType',\n contentstyletype: 'contentStyleType',\n cursor: 'cursor',\n cx: 'cx',\n cy: 'cy',\n d: 'd',\n datatype: 'datatype',\n decelerate: 'decelerate',\n descent: 'descent',\n diffuseconstant: 'diffuseConstant',\n direction: 'direction',\n display: 'display',\n divisor: 'divisor',\n dominantbaseline: 'dominantBaseline',\n 'dominant-baseline': 'dominantBaseline',\n dur: 'dur',\n dx: 'dx',\n dy: 'dy',\n edgemode: 'edgeMode',\n elevation: 'elevation',\n enablebackground: 'enableBackground',\n 'enable-background': 'enableBackground',\n end: 'end',\n exponent: 'exponent',\n externalresourcesrequired: 'externalResourcesRequired',\n fill: 'fill',\n fillopacity: 'fillOpacity',\n 'fill-opacity': 'fillOpacity',\n fillrule: 'fillRule',\n 'fill-rule': 'fillRule',\n filter: 'filter',\n filterres: 'filterRes',\n filterunits: 'filterUnits',\n floodopacity: 'floodOpacity',\n 'flood-opacity': 'floodOpacity',\n floodcolor: 'floodColor',\n 'flood-color': 'floodColor',\n focusable: 'focusable',\n fontfamily: 'fontFamily',\n 'font-family': 'fontFamily',\n fontsize: 'fontSize',\n 'font-size': 'fontSize',\n fontsizeadjust: 'fontSizeAdjust',\n 'font-size-adjust': 'fontSizeAdjust',\n fontstretch: 'fontStretch',\n 'font-stretch': 'fontStretch',\n fontstyle: 'fontStyle',\n 'font-style': 'fontStyle',\n fontvariant: 'fontVariant',\n 'font-variant': 'fontVariant',\n fontweight: 'fontWeight',\n 'font-weight': 'fontWeight',\n format: 'format',\n from: 'from',\n fx: 'fx',\n fy: 'fy',\n g1: 'g1',\n g2: 'g2',\n glyphname: 'glyphName',\n 'glyph-name': 'glyphName',\n glyphorientationhorizontal: 'glyphOrientationHorizontal',\n 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',\n glyphorientationvertical: 'glyphOrientationVertical',\n 'glyph-orientation-vertical': 'glyphOrientationVertical',\n glyphref: 'glyphRef',\n gradienttransform: 'gradientTransform',\n gradientunits: 'gradientUnits',\n hanging: 'hanging',\n horizadvx: 'horizAdvX',\n 'horiz-adv-x': 'horizAdvX',\n horizoriginx: 'horizOriginX',\n 'horiz-origin-x': 'horizOriginX',\n ideographic: 'ideographic',\n imagerendering: 'imageRendering',\n 'image-rendering': 'imageRendering',\n in2: 'in2',\n in: 'in',\n inlist: 'inlist',\n intercept: 'intercept',\n k1: 'k1',\n k2: 'k2',\n k3: 'k3',\n k4: 'k4',\n k: 'k',\n kernelmatrix: 'kernelMatrix',\n kernelunitlength: 'kernelUnitLength',\n kerning: 'kerning',\n keypoints: 'keyPoints',\n keysplines: 'keySplines',\n keytimes: 'keyTimes',\n lengthadjust: 'lengthAdjust',\n letterspacing: 'letterSpacing',\n 'letter-spacing': 'letterSpacing',\n lightingcolor: 'lightingColor',\n 'lighting-color': 'lightingColor',\n limitingconeangle: 'limitingConeAngle',\n local: 'local',\n markerend: 'markerEnd',\n 'marker-end': 'markerEnd',\n markerheight: 'markerHeight',\n markermid: 'markerMid',\n 'marker-mid': 'markerMid',\n markerstart: 'markerStart',\n 'marker-start': 'markerStart',\n markerunits: 'markerUnits',\n markerwidth: 'markerWidth',\n mask: 'mask',\n maskcontentunits: 'maskContentUnits',\n maskunits: 'maskUnits',\n mathematical: 'mathematical',\n mode: 'mode',\n numoctaves: 'numOctaves',\n offset: 'offset',\n opacity: 'opacity',\n operator: 'operator',\n order: 'order',\n orient: 'orient',\n orientation: 'orientation',\n origin: 'origin',\n overflow: 'overflow',\n overlineposition: 'overlinePosition',\n 'overline-position': 'overlinePosition',\n overlinethickness: 'overlineThickness',\n 'overline-thickness': 'overlineThickness',\n paintorder: 'paintOrder',\n 'paint-order': 'paintOrder',\n panose1: 'panose1',\n 'panose-1': 'panose1',\n pathlength: 'pathLength',\n patterncontentunits: 'patternContentUnits',\n patterntransform: 'patternTransform',\n patternunits: 'patternUnits',\n pointerevents: 'pointerEvents',\n 'pointer-events': 'pointerEvents',\n points: 'points',\n pointsatx: 'pointsAtX',\n pointsaty: 'pointsAtY',\n pointsatz: 'pointsAtZ',\n prefix: 'prefix',\n preservealpha: 'preserveAlpha',\n preserveaspectratio: 'preserveAspectRatio',\n primitiveunits: 'primitiveUnits',\n property: 'property',\n r: 'r',\n radius: 'radius',\n refx: 'refX',\n refy: 'refY',\n renderingintent: 'renderingIntent',\n 'rendering-intent': 'renderingIntent',\n repeatcount: 'repeatCount',\n repeatdur: 'repeatDur',\n requiredextensions: 'requiredExtensions',\n requiredfeatures: 'requiredFeatures',\n resource: 'resource',\n restart: 'restart',\n result: 'result',\n results: 'results',\n rotate: 'rotate',\n rx: 'rx',\n ry: 'ry',\n scale: 'scale',\n security: 'security',\n seed: 'seed',\n shaperendering: 'shapeRendering',\n 'shape-rendering': 'shapeRendering',\n slope: 'slope',\n spacing: 'spacing',\n specularconstant: 'specularConstant',\n specularexponent: 'specularExponent',\n speed: 'speed',\n spreadmethod: 'spreadMethod',\n startoffset: 'startOffset',\n stddeviation: 'stdDeviation',\n stemh: 'stemh',\n stemv: 'stemv',\n stitchtiles: 'stitchTiles',\n stopcolor: 'stopColor',\n 'stop-color': 'stopColor',\n stopopacity: 'stopOpacity',\n 'stop-opacity': 'stopOpacity',\n strikethroughposition: 'strikethroughPosition',\n 'strikethrough-position': 'strikethroughPosition',\n strikethroughthickness: 'strikethroughThickness',\n 'strikethrough-thickness': 'strikethroughThickness',\n string: 'string',\n stroke: 'stroke',\n strokedasharray: 'strokeDasharray',\n 'stroke-dasharray': 'strokeDasharray',\n strokedashoffset: 'strokeDashoffset',\n 'stroke-dashoffset': 'strokeDashoffset',\n strokelinecap: 'strokeLinecap',\n 'stroke-linecap': 'strokeLinecap',\n strokelinejoin: 'strokeLinejoin',\n 'stroke-linejoin': 'strokeLinejoin',\n strokemiterlimit: 'strokeMiterlimit',\n 'stroke-miterlimit': 'strokeMiterlimit',\n strokewidth: 'strokeWidth',\n 'stroke-width': 'strokeWidth',\n strokeopacity: 'strokeOpacity',\n 'stroke-opacity': 'strokeOpacity',\n suppresscontenteditablewarning: 'suppressContentEditableWarning',\n suppresshydrationwarning: 'suppressHydrationWarning',\n surfacescale: 'surfaceScale',\n systemlanguage: 'systemLanguage',\n tablevalues: 'tableValues',\n targetx: 'targetX',\n targety: 'targetY',\n textanchor: 'textAnchor',\n 'text-anchor': 'textAnchor',\n textdecoration: 'textDecoration',\n 'text-decoration': 'textDecoration',\n textlength: 'textLength',\n textrendering: 'textRendering',\n 'text-rendering': 'textRendering',\n to: 'to',\n transform: 'transform',\n typeof: 'typeof',\n u1: 'u1',\n u2: 'u2',\n underlineposition: 'underlinePosition',\n 'underline-position': 'underlinePosition',\n underlinethickness: 'underlineThickness',\n 'underline-thickness': 'underlineThickness',\n unicode: 'unicode',\n unicodebidi: 'unicodeBidi',\n 'unicode-bidi': 'unicodeBidi',\n unicoderange: 'unicodeRange',\n 'unicode-range': 'unicodeRange',\n unitsperem: 'unitsPerEm',\n 'units-per-em': 'unitsPerEm',\n unselectable: 'unselectable',\n valphabetic: 'vAlphabetic',\n 'v-alphabetic': 'vAlphabetic',\n values: 'values',\n vectoreffect: 'vectorEffect',\n 'vector-effect': 'vectorEffect',\n version: 'version',\n vertadvy: 'vertAdvY',\n 'vert-adv-y': 'vertAdvY',\n vertoriginx: 'vertOriginX',\n 'vert-origin-x': 'vertOriginX',\n vertoriginy: 'vertOriginY',\n 'vert-origin-y': 'vertOriginY',\n vhanging: 'vHanging',\n 'v-hanging': 'vHanging',\n videographic: 'vIdeographic',\n 'v-ideographic': 'vIdeographic',\n viewbox: 'viewBox',\n viewtarget: 'viewTarget',\n visibility: 'visibility',\n vmathematical: 'vMathematical',\n 'v-mathematical': 'vMathematical',\n vocab: 'vocab',\n widths: 'widths',\n wordspacing: 'wordSpacing',\n 'word-spacing': 'wordSpacing',\n writingmode: 'writingMode',\n 'writing-mode': 'writingMode',\n x1: 'x1',\n x2: 'x2',\n x: 'x',\n xchannelselector: 'xChannelSelector',\n xheight: 'xHeight',\n 'x-height': 'xHeight',\n xlinkactuate: 'xlinkActuate',\n 'xlink:actuate': 'xlinkActuate',\n xlinkarcrole: 'xlinkArcrole',\n 'xlink:arcrole': 'xlinkArcrole',\n xlinkhref: 'xlinkHref',\n 'xlink:href': 'xlinkHref',\n xlinkrole: 'xlinkRole',\n 'xlink:role': 'xlinkRole',\n xlinkshow: 'xlinkShow',\n 'xlink:show': 'xlinkShow',\n xlinktitle: 'xlinkTitle',\n 'xlink:title': 'xlinkTitle',\n xlinktype: 'xlinkType',\n 'xlink:type': 'xlinkType',\n xmlbase: 'xmlBase',\n 'xml:base': 'xmlBase',\n xmllang: 'xmlLang',\n 'xml:lang': 'xmlLang',\n xmlns: 'xmlns',\n 'xml:space': 'xmlSpace',\n xmlnsxlink: 'xmlnsXlink',\n 'xmlns:xlink': 'xmlnsXlink',\n xmlspace: 'xmlSpace',\n y1: 'y1',\n y2: 'y2',\n y: 'y',\n ychannelselector: 'yChannelSelector',\n z: 'z',\n zoomandpan: 'zoomAndPan'\n};\n\nvar ariaProperties = {\n 'aria-current': 0, // state\n 'aria-details': 0,\n 'aria-disabled': 0, // state\n 'aria-hidden': 0, // state\n 'aria-invalid': 0, // state\n 'aria-keyshortcuts': 0,\n 'aria-label': 0,\n 'aria-roledescription': 0,\n // Widget Attributes\n 'aria-autocomplete': 0,\n 'aria-checked': 0,\n 'aria-expanded': 0,\n 'aria-haspopup': 0,\n 'aria-level': 0,\n 'aria-modal': 0,\n 'aria-multiline': 0,\n 'aria-multiselectable': 0,\n 'aria-orientation': 0,\n 'aria-placeholder': 0,\n 'aria-pressed': 0,\n 'aria-readonly': 0,\n 'aria-required': 0,\n 'aria-selected': 0,\n 'aria-sort': 0,\n 'aria-valuemax': 0,\n 'aria-valuemin': 0,\n 'aria-valuenow': 0,\n 'aria-valuetext': 0,\n // Live Region Attributes\n 'aria-atomic': 0,\n 'aria-busy': 0,\n 'aria-live': 0,\n 'aria-relevant': 0,\n // Drag-and-Drop Attributes\n 'aria-dropeffect': 0,\n 'aria-grabbed': 0,\n // Relationship Attributes\n 'aria-activedescendant': 0,\n 'aria-colcount': 0,\n 'aria-colindex': 0,\n 'aria-colspan': 0,\n 'aria-controls': 0,\n 'aria-describedby': 0,\n 'aria-errormessage': 0,\n 'aria-flowto': 0,\n 'aria-labelledby': 0,\n 'aria-owns': 0,\n 'aria-posinset': 0,\n 'aria-rowcount': 0,\n 'aria-rowindex': 0,\n 'aria-rowspan': 0,\n 'aria-setsize': 0\n};\n\nvar warnedProperties = {};\nvar rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');\nvar rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');\n\nvar hasOwnProperty$2 = Object.prototype.hasOwnProperty;\n\nfunction validateProperty(tagName, name) {\n if (hasOwnProperty$2.call(warnedProperties, name) && warnedProperties[name]) {\n return true;\n }\n\n if (rARIACamel.test(name)) {\n var ariaName = 'aria-' + name.slice(4).toLowerCase();\n var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null;\n\n // If this is an aria-* attribute, but is not listed in the known DOM\n // DOM properties, then it is an invalid aria-* attribute.\n if (correctName == null) {\n warning$1(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);\n warnedProperties[name] = true;\n return true;\n }\n // aria-* attributes should be lowercase; suggest the lowercase version.\n if (name !== correctName) {\n warning$1(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);\n warnedProperties[name] = true;\n return true;\n }\n }\n\n if (rARIA.test(name)) {\n var lowerCasedName = name.toLowerCase();\n var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null;\n\n // If this is an aria-* attribute, but is not listed in the known DOM\n // DOM properties, then it is an invalid aria-* attribute.\n if (standardName == null) {\n warnedProperties[name] = true;\n return false;\n }\n // aria-* attributes should be lowercase; suggest the lowercase version.\n if (name !== standardName) {\n warning$1(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);\n warnedProperties[name] = true;\n return true;\n }\n }\n\n return true;\n}\n\nfunction warnInvalidARIAProps(type, props) {\n var invalidProps = [];\n\n for (var key in props) {\n var isValid = validateProperty(type, key);\n if (!isValid) {\n invalidProps.push(key);\n }\n }\n\n var unknownPropString = invalidProps.map(function (prop) {\n return '`' + prop + '`';\n }).join(', ');\n\n if (invalidProps.length === 1) {\n warning$1(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);\n } else if (invalidProps.length > 1) {\n warning$1(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);\n }\n}\n\nfunction validateProperties(type, props) {\n if (isCustomComponent(type, props)) {\n return;\n }\n warnInvalidARIAProps(type, props);\n}\n\nvar didWarnValueNull = false;\n\nfunction validateProperties$1(type, props) {\n if (type !== 'input' && type !== 'textarea' && type !== 'select') {\n return;\n }\n\n if (props != null && props.value === null && !didWarnValueNull) {\n didWarnValueNull = true;\n if (type === 'select' && props.multiple) {\n warning$1(false, '`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type);\n } else {\n warning$1(false, '`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);\n }\n }\n}\n\nvar validateProperty$1 = function () {};\n\n{\n var warnedProperties$1 = {};\n var _hasOwnProperty = Object.prototype.hasOwnProperty;\n var EVENT_NAME_REGEX = /^on./;\n var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;\n var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');\n var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');\n\n validateProperty$1 = function (tagName, name, value, canUseEventSystem) {\n if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {\n return true;\n }\n\n var lowerCasedName = name.toLowerCase();\n if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {\n warning$1(false, 'React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');\n warnedProperties$1[name] = true;\n return true;\n }\n\n // We can't rely on the event system being injected on the server.\n if (canUseEventSystem) {\n if (registrationNameModules.hasOwnProperty(name)) {\n return true;\n }\n var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;\n if (registrationName != null) {\n warning$1(false, 'Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);\n warnedProperties$1[name] = true;\n return true;\n }\n if (EVENT_NAME_REGEX.test(name)) {\n warning$1(false, 'Unknown event handler property `%s`. It will be ignored.', name);\n warnedProperties$1[name] = true;\n return true;\n }\n } else if (EVENT_NAME_REGEX.test(name)) {\n // If no event plugins have been injected, we are in a server environment.\n // So we can't tell if the event name is correct for sure, but we can filter\n // out known bad ones like `onclick`. We can't suggest a specific replacement though.\n if (INVALID_EVENT_NAME_REGEX.test(name)) {\n warning$1(false, 'Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);\n }\n warnedProperties$1[name] = true;\n return true;\n }\n\n // Let the ARIA attribute hook validate ARIA attributes\n if (rARIA$1.test(name) || rARIACamel$1.test(name)) {\n return true;\n }\n\n if (lowerCasedName === 'innerhtml') {\n warning$1(false, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');\n warnedProperties$1[name] = true;\n return true;\n }\n\n if (lowerCasedName === 'aria') {\n warning$1(false, 'The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');\n warnedProperties$1[name] = true;\n return true;\n }\n\n if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {\n warning$1(false, 'Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);\n warnedProperties$1[name] = true;\n return true;\n }\n\n if (typeof value === 'number' && isNaN(value)) {\n warning$1(false, 'Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);\n warnedProperties$1[name] = true;\n return true;\n }\n\n var propertyInfo = getPropertyInfo(name);\n var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED;\n\n // Known attributes should match the casing specified in the property config.\n if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {\n var standardName = possibleStandardNames[lowerCasedName];\n if (standardName !== name) {\n warning$1(false, 'Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);\n warnedProperties$1[name] = true;\n return true;\n }\n } else if (!isReserved && name !== lowerCasedName) {\n // Unknown attributes should have lowercase casing since that's how they\n // will be cased anyway with server rendering.\n warning$1(false, 'React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName);\n warnedProperties$1[name] = true;\n return true;\n }\n\n if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {\n if (value) {\n warning$1(false, 'Received `%s` for a non-boolean attribute `%s`.\\n\\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s=\"%s\" or %s={value.toString()}.', value, name, name, value, name);\n } else {\n warning$1(false, 'Received `%s` for a non-boolean attribute `%s`.\\n\\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s=\"%s\" or %s={value.toString()}.\\n\\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);\n }\n warnedProperties$1[name] = true;\n return true;\n }\n\n // Now that we've validated casing, do not validate\n // data types for reserved props\n if (isReserved) {\n return true;\n }\n\n // Warn when a known attribute is a bad type\n if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {\n warnedProperties$1[name] = true;\n return false;\n }\n\n // Warn when passing the strings 'false' or 'true' into a boolean prop\n if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {\n warning$1(false, 'Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string \"false\".', name, value);\n warnedProperties$1[name] = true;\n return true;\n }\n\n return true;\n };\n}\n\nvar warnUnknownProperties = function (type, props, canUseEventSystem) {\n var unknownProps = [];\n for (var key in props) {\n var isValid = validateProperty$1(type, key, props[key], canUseEventSystem);\n if (!isValid) {\n unknownProps.push(key);\n }\n }\n\n var unknownPropString = unknownProps.map(function (prop) {\n return '`' + prop + '`';\n }).join(', ');\n if (unknownProps.length === 1) {\n warning$1(false, 'Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type);\n } else if (unknownProps.length > 1) {\n warning$1(false, 'Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type);\n }\n};\n\nfunction validateProperties$2(type, props, canUseEventSystem) {\n if (isCustomComponent(type, props)) {\n return;\n }\n warnUnknownProperties(type, props, canUseEventSystem);\n}\n\n// TODO: direct imports like some-package/src/* are bad. Fix me.\nvar didWarnInvalidHydration = false;\nvar didWarnShadyDOM = false;\n\nvar DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';\nvar SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';\nvar SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';\nvar AUTOFOCUS = 'autoFocus';\nvar CHILDREN = 'children';\nvar STYLE$1 = 'style';\nvar HTML = '__html';\n\nvar HTML_NAMESPACE = Namespaces.html;\n\n\nvar warnedUnknownTags = void 0;\nvar suppressHydrationWarning = void 0;\n\nvar validatePropertiesInDevelopment = void 0;\nvar warnForTextDifference = void 0;\nvar warnForPropDifference = void 0;\nvar warnForExtraAttributes = void 0;\nvar warnForInvalidEventListener = void 0;\nvar canDiffStyleForHydrationWarning = void 0;\n\nvar normalizeMarkupForTextOrAttribute = void 0;\nvar normalizeHTML = void 0;\n\n{\n warnedUnknownTags = {\n // Chrome is the only major browser not shipping <time>. But as of July\n // 2017 it intends to ship it due to widespread usage. We intentionally\n // *don't* warn for <time> even if it's unrecognized by Chrome because\n // it soon will be, and many apps have been using it anyway.\n time: true,\n // There are working polyfills for <dialog>. Let people use it.\n dialog: true,\n // Electron ships a custom <webview> tag to display external web content in\n // an isolated frame and process.\n // This tag is not present in non Electron environments such as JSDom which\n // is often used for testing purposes.\n // @see https://electronjs.org/docs/api/webview-tag\n webview: true\n };\n\n validatePropertiesInDevelopment = function (type, props) {\n validateProperties(type, props);\n validateProperties$1(type, props);\n validateProperties$2(type, props, /* canUseEventSystem */true);\n };\n\n // IE 11 parses & normalizes the style attribute as opposed to other\n // browsers. It adds spaces and sorts the properties in some\n // non-alphabetical order. Handling that would require sorting CSS\n // properties in the client & server versions or applying\n // `expectedStyle` to a temporary DOM node to read its `style` attribute\n // normalized. Since it only affects IE, we're skipping style warnings\n // in that browser completely in favor of doing all that work.\n // See https://github.com/facebook/react/issues/11807\n canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode;\n\n // HTML parsing normalizes CR and CRLF to LF.\n // It also can turn \\u0000 into \\uFFFD inside attributes.\n // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream\n // If we have a mismatch, it might be caused by that.\n // We will still patch up in this case but not fire the warning.\n var NORMALIZE_NEWLINES_REGEX = /\\r\\n?/g;\n var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\\u0000|\\uFFFD/g;\n\n normalizeMarkupForTextOrAttribute = function (markup) {\n var markupString = typeof markup === 'string' ? markup : '' + markup;\n return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');\n };\n\n warnForTextDifference = function (serverText, clientText) {\n if (didWarnInvalidHydration) {\n return;\n }\n var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);\n var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);\n if (normalizedServerText === normalizedClientText) {\n return;\n }\n didWarnInvalidHydration = true;\n warningWithoutStack$1(false, 'Text content did not match. Server: \"%s\" Client: \"%s\"', normalizedServerText, normalizedClientText);\n };\n\n warnForPropDifference = function (propName, serverValue, clientValue) {\n if (didWarnInvalidHydration) {\n return;\n }\n var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);\n var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);\n if (normalizedServerValue === normalizedClientValue) {\n return;\n }\n didWarnInvalidHydration = true;\n warningWithoutStack$1(false, 'Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));\n };\n\n warnForExtraAttributes = function (attributeNames) {\n if (didWarnInvalidHydration) {\n return;\n }\n didWarnInvalidHydration = true;\n var names = [];\n attributeNames.forEach(function (name) {\n names.push(name);\n });\n warningWithoutStack$1(false, 'Extra attributes from the server: %s', names);\n };\n\n warnForInvalidEventListener = function (registrationName, listener) {\n if (listener === false) {\n warning$1(false, 'Expected `%s` listener to be a function, instead got `false`.\\n\\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', registrationName, registrationName, registrationName);\n } else {\n warning$1(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);\n }\n };\n\n // Parse the HTML and read it back to normalize the HTML string so that it\n // can be used for comparison.\n normalizeHTML = function (parent, html) {\n // We could have created a separate document here to avoid\n // re-initializing custom elements if they exist. But this breaks\n // how <noscript> is being handled. So we use the same document.\n // See the discussion in https://github.com/facebook/react/pull/11157.\n var testElement = parent.namespaceURI === HTML_NAMESPACE ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);\n testElement.innerHTML = html;\n return testElement.innerHTML;\n };\n}\n\nfunction ensureListeningTo(rootContainerElement, registrationName) {\n var isDocumentOrFragment = rootContainerElement.nodeType === DOCUMENT_NODE || rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE;\n var doc = isDocumentOrFragment ? rootContainerElement : rootContainerElement.ownerDocument;\n listenTo(registrationName, doc);\n}\n\nfunction getOwnerDocumentFromRootContainer(rootContainerElement) {\n return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;\n}\n\nfunction noop() {}\n\nfunction trapClickOnNonInteractiveElement(node) {\n // Mobile Safari does not fire properly bubble click events on\n // non-interactive elements, which means delegated click listeners do not\n // fire. The workaround for this bug involves attaching an empty click\n // listener on the target node.\n // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html\n // Just set it using the onclick property so that we don't have to manage any\n // bookkeeping for it. Not sure if we need to clear it when the listener is\n // removed.\n // TODO: Only do this for the relevant Safaris maybe?\n node.onclick = noop;\n}\n\nfunction setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {\n for (var propKey in nextProps) {\n if (!nextProps.hasOwnProperty(propKey)) {\n continue;\n }\n var nextProp = nextProps[propKey];\n if (propKey === STYLE$1) {\n {\n if (nextProp) {\n // Freeze the next style object so that we can assume it won't be\n // mutated. We have already warned for this in the past.\n Object.freeze(nextProp);\n }\n }\n // Relies on `updateStylesByID` not mutating `styleUpdates`.\n setValueForStyles(domElement, nextProp);\n } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {\n var nextHtml = nextProp ? nextProp[HTML] : undefined;\n if (nextHtml != null) {\n setInnerHTML(domElement, nextHtml);\n }\n } else if (propKey === CHILDREN) {\n if (typeof nextProp === 'string') {\n // Avoid setting initial textContent when the text is empty. In IE11 setting\n // textContent on a <textarea> will cause the placeholder to not\n // show within the <textarea> until it has been focused and blurred again.\n // https://github.com/facebook/react/issues/6731#issuecomment-254874553\n var canSetTextContent = tag !== 'textarea' || nextProp !== '';\n if (canSetTextContent) {\n setTextContent(domElement, nextProp);\n }\n } else if (typeof nextProp === 'number') {\n setTextContent(domElement, '' + nextProp);\n }\n } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {\n // Noop\n } else if (propKey === AUTOFOCUS) {\n // We polyfill it separately on the client during commit.\n // We could have excluded it in the property list instead of\n // adding a special case here, but then it wouldn't be emitted\n // on server rendering (but we *do* want to emit it in SSR).\n } else if (registrationNameModules.hasOwnProperty(propKey)) {\n if (nextProp != null) {\n if (true && typeof nextProp !== 'function') {\n warnForInvalidEventListener(propKey, nextProp);\n }\n ensureListeningTo(rootContainerElement, propKey);\n }\n } else if (nextProp != null) {\n setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);\n }\n }\n}\n\nfunction updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {\n // TODO: Handle wasCustomComponentTag\n for (var i = 0; i < updatePayload.length; i += 2) {\n var propKey = updatePayload[i];\n var propValue = updatePayload[i + 1];\n if (propKey === STYLE$1) {\n setValueForStyles(domElement, propValue);\n } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {\n setInnerHTML(domElement, propValue);\n } else if (propKey === CHILDREN) {\n setTextContent(domElement, propValue);\n } else {\n setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);\n }\n }\n}\n\nfunction createElement(type, props, rootContainerElement, parentNamespace) {\n var isCustomComponentTag = void 0;\n\n // We create tags in the namespace of their parent container, except HTML\n // tags get no namespace.\n var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);\n var domElement = void 0;\n var namespaceURI = parentNamespace;\n if (namespaceURI === HTML_NAMESPACE) {\n namespaceURI = getIntrinsicNamespace(type);\n }\n if (namespaceURI === HTML_NAMESPACE) {\n {\n isCustomComponentTag = isCustomComponent(type, props);\n // Should this check be gated by parent namespace? Not sure we want to\n // allow <SVG> or <mATH>.\n !(isCustomComponentTag || type === type.toLowerCase()) ? warning$1(false, '<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type) : void 0;\n }\n\n if (type === 'script') {\n // Create the script via .innerHTML so its \"parser-inserted\" flag is\n // set to true and it does not execute\n var div = ownerDocument.createElement('div');\n div.innerHTML = '<script><' + '/script>'; // eslint-disable-line\n // This is guaranteed to yield a script element.\n var firstChild = div.firstChild;\n domElement = div.removeChild(firstChild);\n } else if (typeof props.is === 'string') {\n // $FlowIssue `createElement` should be updated for Web Components\n domElement = ownerDocument.createElement(type, { is: props.is });\n } else {\n // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.\n // See discussion in https://github.com/facebook/react/pull/6896\n // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240\n domElement = ownerDocument.createElement(type);\n // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple`\n // attribute on `select`s needs to be added before `option`s are inserted. This prevents\n // a bug where the `select` does not scroll to the correct option because singular\n // `select` elements automatically pick the first item.\n // See https://github.com/facebook/react/issues/13222\n if (type === 'select' && props.multiple) {\n var node = domElement;\n node.multiple = true;\n }\n }\n } else {\n domElement = ownerDocument.createElementNS(namespaceURI, type);\n }\n\n {\n if (namespaceURI === HTML_NAMESPACE) {\n if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {\n warnedUnknownTags[type] = true;\n warning$1(false, 'The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type);\n }\n }\n }\n\n return domElement;\n}\n\nfunction createTextNode(text, rootContainerElement) {\n return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);\n}\n\nfunction setInitialProperties(domElement, tag, rawProps, rootContainerElement) {\n var isCustomComponentTag = isCustomComponent(tag, rawProps);\n {\n validatePropertiesInDevelopment(tag, rawProps);\n if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {\n warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');\n didWarnShadyDOM = true;\n }\n }\n\n // TODO: Make sure that we check isMounted before firing any of these events.\n var props = void 0;\n switch (tag) {\n case 'iframe':\n case 'object':\n trapBubbledEvent(TOP_LOAD, domElement);\n props = rawProps;\n break;\n case 'video':\n case 'audio':\n // Create listener for each media event\n for (var i = 0; i < mediaEventTypes.length; i++) {\n trapBubbledEvent(mediaEventTypes[i], domElement);\n }\n props = rawProps;\n break;\n case 'source':\n trapBubbledEvent(TOP_ERROR, domElement);\n props = rawProps;\n break;\n case 'img':\n case 'image':\n case 'link':\n trapBubbledEvent(TOP_ERROR, domElement);\n trapBubbledEvent(TOP_LOAD, domElement);\n props = rawProps;\n break;\n case 'form':\n trapBubbledEvent(TOP_RESET, domElement);\n trapBubbledEvent(TOP_SUBMIT, domElement);\n props = rawProps;\n break;\n case 'details':\n trapBubbledEvent(TOP_TOGGLE, domElement);\n props = rawProps;\n break;\n case 'input':\n initWrapperState(domElement, rawProps);\n props = getHostProps(domElement, rawProps);\n trapBubbledEvent(TOP_INVALID, domElement);\n // For controlled components we always need to ensure we're listening\n // to onChange. Even if there is no listener.\n ensureListeningTo(rootContainerElement, 'onChange');\n break;\n case 'option':\n validateProps(domElement, rawProps);\n props = getHostProps$1(domElement, rawProps);\n break;\n case 'select':\n initWrapperState$1(domElement, rawProps);\n props = getHostProps$2(domElement, rawProps);\n trapBubbledEvent(TOP_INVALID, domElement);\n // For controlled components we always need to ensure we're listening\n // to onChange. Even if there is no listener.\n ensureListeningTo(rootContainerElement, 'onChange');\n break;\n case 'textarea':\n initWrapperState$2(domElement, rawProps);\n props = getHostProps$3(domElement, rawProps);\n trapBubbledEvent(TOP_INVALID, domElement);\n // For controlled components we always need to ensure we're listening\n // to onChange. Even if there is no listener.\n ensureListeningTo(rootContainerElement, 'onChange');\n break;\n default:\n props = rawProps;\n }\n\n assertValidProps(tag, props);\n\n setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);\n\n switch (tag) {\n case 'input':\n // TODO: Make sure we check if this is still unmounted or do any clean\n // up necessary since we never stop tracking anymore.\n track(domElement);\n postMountWrapper(domElement, rawProps, false);\n break;\n case 'textarea':\n // TODO: Make sure we check if this is still unmounted or do any clean\n // up necessary since we never stop tracking anymore.\n track(domElement);\n postMountWrapper$3(domElement, rawProps);\n break;\n case 'option':\n postMountWrapper$1(domElement, rawProps);\n break;\n case 'select':\n postMountWrapper$2(domElement, rawProps);\n break;\n default:\n if (typeof props.onClick === 'function') {\n // TODO: This cast may not be sound for SVG, MathML or custom elements.\n trapClickOnNonInteractiveElement(domElement);\n }\n break;\n }\n}\n\n// Calculate the diff between the two objects.\nfunction diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {\n {\n validatePropertiesInDevelopment(tag, nextRawProps);\n }\n\n var updatePayload = null;\n\n var lastProps = void 0;\n var nextProps = void 0;\n switch (tag) {\n case 'input':\n lastProps = getHostProps(domElement, lastRawProps);\n nextProps = getHostProps(domElement, nextRawProps);\n updatePayload = [];\n break;\n case 'option':\n lastProps = getHostProps$1(domElement, lastRawProps);\n nextProps = getHostProps$1(domElement, nextRawProps);\n updatePayload = [];\n break;\n case 'select':\n lastProps = getHostProps$2(domElement, lastRawProps);\n nextProps = getHostProps$2(domElement, nextRawProps);\n updatePayload = [];\n break;\n case 'textarea':\n lastProps = getHostProps$3(domElement, lastRawProps);\n nextProps = getHostProps$3(domElement, nextRawProps);\n updatePayload = [];\n break;\n default:\n lastProps = lastRawProps;\n nextProps = nextRawProps;\n if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {\n // TODO: This cast may not be sound for SVG, MathML or custom elements.\n trapClickOnNonInteractiveElement(domElement);\n }\n break;\n }\n\n assertValidProps(tag, nextProps);\n\n var propKey = void 0;\n var styleName = void 0;\n var styleUpdates = null;\n for (propKey in lastProps) {\n if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {\n continue;\n }\n if (propKey === STYLE$1) {\n var lastStyle = lastProps[propKey];\n for (styleName in lastStyle) {\n if (lastStyle.hasOwnProperty(styleName)) {\n if (!styleUpdates) {\n styleUpdates = {};\n }\n styleUpdates[styleName] = '';\n }\n }\n } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) {\n // Noop. This is handled by the clear text mechanism.\n } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {\n // Noop\n } else if (propKey === AUTOFOCUS) {\n // Noop. It doesn't work on updates anyway.\n } else if (registrationNameModules.hasOwnProperty(propKey)) {\n // This is a special case. If any listener updates we need to ensure\n // that the \"current\" fiber pointer gets updated so we need a commit\n // to update this element.\n if (!updatePayload) {\n updatePayload = [];\n }\n } else {\n // For all other deleted properties we add it to the queue. We use\n // the whitelist in the commit phase instead.\n (updatePayload = updatePayload || []).push(propKey, null);\n }\n }\n for (propKey in nextProps) {\n var nextProp = nextProps[propKey];\n var lastProp = lastProps != null ? lastProps[propKey] : undefined;\n if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {\n continue;\n }\n if (propKey === STYLE$1) {\n {\n if (nextProp) {\n // Freeze the next style object so that we can assume it won't be\n // mutated. We have already warned for this in the past.\n Object.freeze(nextProp);\n }\n }\n if (lastProp) {\n // Unset styles on `lastProp` but not on `nextProp`.\n for (styleName in lastProp) {\n if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {\n if (!styleUpdates) {\n styleUpdates = {};\n }\n styleUpdates[styleName] = '';\n }\n }\n // Update styles that changed since `lastProp`.\n for (styleName in nextProp) {\n if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {\n if (!styleUpdates) {\n styleUpdates = {};\n }\n styleUpdates[styleName] = nextProp[styleName];\n }\n }\n } else {\n // Relies on `updateStylesByID` not mutating `styleUpdates`.\n if (!styleUpdates) {\n if (!updatePayload) {\n updatePayload = [];\n }\n updatePayload.push(propKey, styleUpdates);\n }\n styleUpdates = nextProp;\n }\n } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {\n var nextHtml = nextProp ? nextProp[HTML] : undefined;\n var lastHtml = lastProp ? lastProp[HTML] : undefined;\n if (nextHtml != null) {\n if (lastHtml !== nextHtml) {\n (updatePayload = updatePayload || []).push(propKey, '' + nextHtml);\n }\n } else {\n // TODO: It might be too late to clear this if we have children\n // inserted already.\n }\n } else if (propKey === CHILDREN) {\n if (lastProp !== nextProp && (typeof nextProp === 'string' || typeof nextProp === 'number')) {\n (updatePayload = updatePayload || []).push(propKey, '' + nextProp);\n }\n } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {\n // Noop\n } else if (registrationNameModules.hasOwnProperty(propKey)) {\n if (nextProp != null) {\n // We eagerly listen to this even though we haven't committed yet.\n if (true && typeof nextProp !== 'function') {\n warnForInvalidEventListener(propKey, nextProp);\n }\n ensureListeningTo(rootContainerElement, propKey);\n }\n if (!updatePayload && lastProp !== nextProp) {\n // This is a special case. If any listener updates we need to ensure\n // that the \"current\" props pointer gets updated so we need a commit\n // to update this element.\n updatePayload = [];\n }\n } else {\n // For any other property we always add it to the queue and then we\n // filter it out using the whitelist during the commit.\n (updatePayload = updatePayload || []).push(propKey, nextProp);\n }\n }\n if (styleUpdates) {\n {\n validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE$1]);\n }\n (updatePayload = updatePayload || []).push(STYLE$1, styleUpdates);\n }\n return updatePayload;\n}\n\n// Apply the diff.\nfunction updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {\n // Update checked *before* name.\n // In the middle of an update, it is possible to have multiple checked.\n // When a checked radio tries to change name, browser makes another radio's checked false.\n if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {\n updateChecked(domElement, nextRawProps);\n }\n\n var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);\n var isCustomComponentTag = isCustomComponent(tag, nextRawProps);\n // Apply the diff.\n updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag);\n\n // TODO: Ensure that an update gets scheduled if any of the special props\n // changed.\n switch (tag) {\n case 'input':\n // Update the wrapper around inputs *after* updating props. This has to\n // happen after `updateDOMProperties`. Otherwise HTML5 input validations\n // raise warnings and prevent the new value from being assigned.\n updateWrapper(domElement, nextRawProps);\n break;\n case 'textarea':\n updateWrapper$1(domElement, nextRawProps);\n break;\n case 'select':\n // <select> value update needs to occur after <option> children\n // reconciliation\n postUpdateWrapper(domElement, nextRawProps);\n break;\n }\n}\n\nfunction getPossibleStandardName(propName) {\n {\n var lowerCasedName = propName.toLowerCase();\n if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {\n return null;\n }\n return possibleStandardNames[lowerCasedName] || null;\n }\n return null;\n}\n\nfunction diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {\n var isCustomComponentTag = void 0;\n var extraAttributeNames = void 0;\n\n {\n suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING$1] === true;\n isCustomComponentTag = isCustomComponent(tag, rawProps);\n validatePropertiesInDevelopment(tag, rawProps);\n if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {\n warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');\n didWarnShadyDOM = true;\n }\n }\n\n // TODO: Make sure that we check isMounted before firing any of these events.\n switch (tag) {\n case 'iframe':\n case 'object':\n trapBubbledEvent(TOP_LOAD, domElement);\n break;\n case 'video':\n case 'audio':\n // Create listener for each media event\n for (var i = 0; i < mediaEventTypes.length; i++) {\n trapBubbledEvent(mediaEventTypes[i], domElement);\n }\n break;\n case 'source':\n trapBubbledEvent(TOP_ERROR, domElement);\n break;\n case 'img':\n case 'image':\n case 'link':\n trapBubbledEvent(TOP_ERROR, domElement);\n trapBubbledEvent(TOP_LOAD, domElement);\n break;\n case 'form':\n trapBubbledEvent(TOP_RESET, domElement);\n trapBubbledEvent(TOP_SUBMIT, domElement);\n break;\n case 'details':\n trapBubbledEvent(TOP_TOGGLE, domElement);\n break;\n case 'input':\n initWrapperState(domElement, rawProps);\n trapBubbledEvent(TOP_INVALID, domElement);\n // For controlled components we always need to ensure we're listening\n // to onChange. Even if there is no listener.\n ensureListeningTo(rootContainerElement, 'onChange');\n break;\n case 'option':\n validateProps(domElement, rawProps);\n break;\n case 'select':\n initWrapperState$1(domElement, rawProps);\n trapBubbledEvent(TOP_INVALID, domElement);\n // For controlled components we always need to ensure we're listening\n // to onChange. Even if there is no listener.\n ensureListeningTo(rootContainerElement, 'onChange');\n break;\n case 'textarea':\n initWrapperState$2(domElement, rawProps);\n trapBubbledEvent(TOP_INVALID, domElement);\n // For controlled components we always need to ensure we're listening\n // to onChange. Even if there is no listener.\n ensureListeningTo(rootContainerElement, 'onChange');\n break;\n }\n\n assertValidProps(tag, rawProps);\n\n {\n extraAttributeNames = new Set();\n var attributes = domElement.attributes;\n for (var _i = 0; _i < attributes.length; _i++) {\n var name = attributes[_i].name.toLowerCase();\n switch (name) {\n // Built-in SSR attribute is whitelisted\n case 'data-reactroot':\n break;\n // Controlled attributes are not validated\n // TODO: Only ignore them on controlled tags.\n case 'value':\n break;\n case 'checked':\n break;\n case 'selected':\n break;\n default:\n // Intentionally use the original name.\n // See discussion in https://github.com/facebook/react/pull/10676.\n extraAttributeNames.add(attributes[_i].name);\n }\n }\n }\n\n var updatePayload = null;\n for (var propKey in rawProps) {\n if (!rawProps.hasOwnProperty(propKey)) {\n continue;\n }\n var nextProp = rawProps[propKey];\n if (propKey === CHILDREN) {\n // For text content children we compare against textContent. This\n // might match additional HTML that is hidden when we read it using\n // textContent. E.g. \"foo\" will match \"f<span>oo</span>\" but that still\n // satisfies our requirement. Our requirement is not to produce perfect\n // HTML and attributes. Ideally we should preserve structure but it's\n // ok not to if the visible content is still enough to indicate what\n // even listeners these nodes might be wired up to.\n // TODO: Warn if there is more than a single textNode as a child.\n // TODO: Should we use domElement.firstChild.nodeValue to compare?\n if (typeof nextProp === 'string') {\n if (domElement.textContent !== nextProp) {\n if (true && !suppressHydrationWarning) {\n warnForTextDifference(domElement.textContent, nextProp);\n }\n updatePayload = [CHILDREN, nextProp];\n }\n } else if (typeof nextProp === 'number') {\n if (domElement.textContent !== '' + nextProp) {\n if (true && !suppressHydrationWarning) {\n warnForTextDifference(domElement.textContent, nextProp);\n }\n updatePayload = [CHILDREN, '' + nextProp];\n }\n }\n } else if (registrationNameModules.hasOwnProperty(propKey)) {\n if (nextProp != null) {\n if (true && typeof nextProp !== 'function') {\n warnForInvalidEventListener(propKey, nextProp);\n }\n ensureListeningTo(rootContainerElement, propKey);\n }\n } else if (true &&\n // Convince Flow we've calculated it (it's DEV-only in this method.)\n typeof isCustomComponentTag === 'boolean') {\n // Validate that the properties correspond to their expected values.\n var serverValue = void 0;\n var propertyInfo = getPropertyInfo(propKey);\n if (suppressHydrationWarning) {\n // Don't bother comparing. We're ignoring all these warnings.\n } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1 ||\n // Controlled attributes are not validated\n // TODO: Only ignore them on controlled tags.\n propKey === 'value' || propKey === 'checked' || propKey === 'selected') {\n // Noop\n } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {\n var serverHTML = domElement.innerHTML;\n var nextHtml = nextProp ? nextProp[HTML] : undefined;\n var expectedHTML = normalizeHTML(domElement, nextHtml != null ? nextHtml : '');\n if (expectedHTML !== serverHTML) {\n warnForPropDifference(propKey, serverHTML, expectedHTML);\n }\n } else if (propKey === STYLE$1) {\n // $FlowFixMe - Should be inferred as not undefined.\n extraAttributeNames.delete(propKey);\n\n if (canDiffStyleForHydrationWarning) {\n var expectedStyle = createDangerousStringForStyles(nextProp);\n serverValue = domElement.getAttribute('style');\n if (expectedStyle !== serverValue) {\n warnForPropDifference(propKey, serverValue, expectedStyle);\n }\n }\n } else if (isCustomComponentTag) {\n // $FlowFixMe - Should be inferred as not undefined.\n extraAttributeNames.delete(propKey.toLowerCase());\n serverValue = getValueForAttribute(domElement, propKey, nextProp);\n\n if (nextProp !== serverValue) {\n warnForPropDifference(propKey, serverValue, nextProp);\n }\n } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {\n var isMismatchDueToBadCasing = false;\n if (propertyInfo !== null) {\n // $FlowFixMe - Should be inferred as not undefined.\n extraAttributeNames.delete(propertyInfo.attributeName);\n serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);\n } else {\n var ownNamespace = parentNamespace;\n if (ownNamespace === HTML_NAMESPACE) {\n ownNamespace = getIntrinsicNamespace(tag);\n }\n if (ownNamespace === HTML_NAMESPACE) {\n // $FlowFixMe - Should be inferred as not undefined.\n extraAttributeNames.delete(propKey.toLowerCase());\n } else {\n var standardName = getPossibleStandardName(propKey);\n if (standardName !== null && standardName !== propKey) {\n // If an SVG prop is supplied with bad casing, it will\n // be successfully parsed from HTML, but will produce a mismatch\n // (and would be incorrectly rendered on the client).\n // However, we already warn about bad casing elsewhere.\n // So we'll skip the misleading extra mismatch warning in this case.\n isMismatchDueToBadCasing = true;\n // $FlowFixMe - Should be inferred as not undefined.\n extraAttributeNames.delete(standardName);\n }\n // $FlowFixMe - Should be inferred as not undefined.\n extraAttributeNames.delete(propKey);\n }\n serverValue = getValueForAttribute(domElement, propKey, nextProp);\n }\n\n if (nextProp !== serverValue && !isMismatchDueToBadCasing) {\n warnForPropDifference(propKey, serverValue, nextProp);\n }\n }\n }\n }\n\n {\n // $FlowFixMe - Should be inferred as not undefined.\n if (extraAttributeNames.size > 0 && !suppressHydrationWarning) {\n // $FlowFixMe - Should be inferred as not undefined.\n warnForExtraAttributes(extraAttributeNames);\n }\n }\n\n switch (tag) {\n case 'input':\n // TODO: Make sure we check if this is still unmounted or do any clean\n // up necessary since we never stop tracking anymore.\n track(domElement);\n postMountWrapper(domElement, rawProps, true);\n break;\n case 'textarea':\n // TODO: Make sure we check if this is still unmounted or do any clean\n // up necessary since we never stop tracking anymore.\n track(domElement);\n postMountWrapper$3(domElement, rawProps);\n break;\n case 'select':\n case 'option':\n // For input and textarea we current always set the value property at\n // post mount to force it to diverge from attributes. However, for\n // option and select we don't quite do the same thing and select\n // is not resilient to the DOM state changing so we don't do that here.\n // TODO: Consider not doing this for input and textarea.\n break;\n default:\n if (typeof rawProps.onClick === 'function') {\n // TODO: This cast may not be sound for SVG, MathML or custom elements.\n trapClickOnNonInteractiveElement(domElement);\n }\n break;\n }\n\n return updatePayload;\n}\n\nfunction diffHydratedText(textNode, text) {\n var isDifferent = textNode.nodeValue !== text;\n return isDifferent;\n}\n\nfunction warnForUnmatchedText(textNode, text) {\n {\n warnForTextDifference(textNode.nodeValue, text);\n }\n}\n\nfunction warnForDeletedHydratableElement(parentNode, child) {\n {\n if (didWarnInvalidHydration) {\n return;\n }\n didWarnInvalidHydration = true;\n warningWithoutStack$1(false, 'Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());\n }\n}\n\nfunction warnForDeletedHydratableText(parentNode, child) {\n {\n if (didWarnInvalidHydration) {\n return;\n }\n didWarnInvalidHydration = true;\n warningWithoutStack$1(false, 'Did not expect server HTML to contain the text node \"%s\" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());\n }\n}\n\nfunction warnForInsertedHydratedElement(parentNode, tag, props) {\n {\n if (didWarnInvalidHydration) {\n return;\n }\n didWarnInvalidHydration = true;\n warningWithoutStack$1(false, 'Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());\n }\n}\n\nfunction warnForInsertedHydratedText(parentNode, text) {\n {\n if (text === '') {\n // We expect to insert empty text nodes since they're not represented in\n // the HTML.\n // TODO: Remove this special case if we can just avoid inserting empty\n // text nodes.\n return;\n }\n if (didWarnInvalidHydration) {\n return;\n }\n didWarnInvalidHydration = true;\n warningWithoutStack$1(false, 'Expected server HTML to contain a matching text node for \"%s\" in <%s>.', text, parentNode.nodeName.toLowerCase());\n }\n}\n\nfunction restoreControlledState$1(domElement, tag, props) {\n switch (tag) {\n case 'input':\n restoreControlledState(domElement, props);\n return;\n case 'textarea':\n restoreControlledState$3(domElement, props);\n return;\n case 'select':\n restoreControlledState$2(domElement, props);\n return;\n }\n}\n\n// TODO: direct imports like some-package/src/* are bad. Fix me.\nvar validateDOMNesting = function () {};\nvar updatedAncestorInfo = function () {};\n\n{\n // This validation code was written based on the HTML5 parsing spec:\n // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope\n //\n // Note: this does not catch all invalid nesting, nor does it try to (as it's\n // not clear what practical benefit doing so provides); instead, we warn only\n // for cases where the parser will give a parse tree differing from what React\n // intended. For example, <b><div></div></b> is invalid but we don't warn\n // because it still parses correctly; we do warn for other cases like nested\n // <p> tags where the beginning of the second element implicitly closes the\n // first, causing a confusing mess.\n\n // https://html.spec.whatwg.org/multipage/syntax.html#special\n var specialTags = ['address', 'applet', 'area', 'article', 'aside', 'base', 'basefont', 'bgsound', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'iframe', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'main', 'marquee', 'menu', 'menuitem', 'meta', 'nav', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 'script', 'section', 'select', 'source', 'style', 'summary', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul', 'wbr', 'xmp'];\n\n // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope\n var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template',\n\n // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point\n // TODO: Distinguish by namespace here -- for <title>, including it here\n // errs on the side of fewer warnings\n 'foreignObject', 'desc', 'title'];\n\n // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope\n var buttonScopeTags = inScopeTags.concat(['button']);\n\n // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags\n var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];\n\n var emptyAncestorInfo = {\n current: null,\n\n formTag: null,\n aTagInScope: null,\n buttonTagInScope: null,\n nobrTagInScope: null,\n pTagInButtonScope: null,\n\n listItemTagAutoclosing: null,\n dlItemTagAutoclosing: null\n };\n\n updatedAncestorInfo = function (oldInfo, tag) {\n var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);\n var info = { tag: tag };\n\n if (inScopeTags.indexOf(tag) !== -1) {\n ancestorInfo.aTagInScope = null;\n ancestorInfo.buttonTagInScope = null;\n ancestorInfo.nobrTagInScope = null;\n }\n if (buttonScopeTags.indexOf(tag) !== -1) {\n ancestorInfo.pTagInButtonScope = null;\n }\n\n // See rules for 'li', 'dd', 'dt' start tags in\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody\n if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {\n ancestorInfo.listItemTagAutoclosing = null;\n ancestorInfo.dlItemTagAutoclosing = null;\n }\n\n ancestorInfo.current = info;\n\n if (tag === 'form') {\n ancestorInfo.formTag = info;\n }\n if (tag === 'a') {\n ancestorInfo.aTagInScope = info;\n }\n if (tag === 'button') {\n ancestorInfo.buttonTagInScope = info;\n }\n if (tag === 'nobr') {\n ancestorInfo.nobrTagInScope = info;\n }\n if (tag === 'p') {\n ancestorInfo.pTagInButtonScope = info;\n }\n if (tag === 'li') {\n ancestorInfo.listItemTagAutoclosing = info;\n }\n if (tag === 'dd' || tag === 'dt') {\n ancestorInfo.dlItemTagAutoclosing = info;\n }\n\n return ancestorInfo;\n };\n\n /**\n * Returns whether\n */\n var isTagValidWithParent = function (tag, parentTag) {\n // First, let's check if we're in an unusual parsing mode...\n switch (parentTag) {\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect\n case 'select':\n return tag === 'option' || tag === 'optgroup' || tag === '#text';\n case 'optgroup':\n return tag === 'option' || tag === '#text';\n // Strictly speaking, seeing an <option> doesn't mean we're in a <select>\n // but\n case 'option':\n return tag === '#text';\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption\n // No special behavior since these rules fall back to \"in body\" mode for\n // all except special table nodes which cause bad parsing behavior anyway.\n\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr\n case 'tr':\n return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody\n case 'tbody':\n case 'thead':\n case 'tfoot':\n return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup\n case 'colgroup':\n return tag === 'col' || tag === 'template';\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable\n case 'table':\n return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead\n case 'head':\n return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';\n // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element\n case 'html':\n return tag === 'head' || tag === 'body';\n case '#document':\n return tag === 'html';\n }\n\n // Probably in the \"in body\" parsing mode, so we outlaw only tag combos\n // where the parsing rules cause implicit opens or closes to be added.\n // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody\n switch (tag) {\n case 'h1':\n case 'h2':\n case 'h3':\n case 'h4':\n case 'h5':\n case 'h6':\n return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';\n\n case 'rp':\n case 'rt':\n return impliedEndTags.indexOf(parentTag) === -1;\n\n case 'body':\n case 'caption':\n case 'col':\n case 'colgroup':\n case 'frame':\n case 'head':\n case 'html':\n case 'tbody':\n case 'td':\n case 'tfoot':\n case 'th':\n case 'thead':\n case 'tr':\n // These tags are only valid with a few parents that have special child\n // parsing rules -- if we're down here, then none of those matched and\n // so we allow it only if we don't know what the parent is, as all other\n // cases are invalid.\n return parentTag == null;\n }\n\n return true;\n };\n\n /**\n * Returns whether\n */\n var findInvalidAncestorForTag = function (tag, ancestorInfo) {\n switch (tag) {\n case 'address':\n case 'article':\n case 'aside':\n case 'blockquote':\n case 'center':\n case 'details':\n case 'dialog':\n case 'dir':\n case 'div':\n case 'dl':\n case 'fieldset':\n case 'figcaption':\n case 'figure':\n case 'footer':\n case 'header':\n case 'hgroup':\n case 'main':\n case 'menu':\n case 'nav':\n case 'ol':\n case 'p':\n case 'section':\n case 'summary':\n case 'ul':\n case 'pre':\n case 'listing':\n case 'table':\n case 'hr':\n case 'xmp':\n case 'h1':\n case 'h2':\n case 'h3':\n case 'h4':\n case 'h5':\n case 'h6':\n return ancestorInfo.pTagInButtonScope;\n\n case 'form':\n return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;\n\n case 'li':\n return ancestorInfo.listItemTagAutoclosing;\n\n case 'dd':\n case 'dt':\n return ancestorInfo.dlItemTagAutoclosing;\n\n case 'button':\n return ancestorInfo.buttonTagInScope;\n\n case 'a':\n // Spec says something about storing a list of markers, but it sounds\n // equivalent to this check.\n return ancestorInfo.aTagInScope;\n\n case 'nobr':\n return ancestorInfo.nobrTagInScope;\n }\n\n return null;\n };\n\n var didWarn = {};\n\n validateDOMNesting = function (childTag, childText, ancestorInfo) {\n ancestorInfo = ancestorInfo || emptyAncestorInfo;\n var parentInfo = ancestorInfo.current;\n var parentTag = parentInfo && parentInfo.tag;\n\n if (childText != null) {\n !(childTag == null) ? warningWithoutStack$1(false, 'validateDOMNesting: when childText is passed, childTag should be null') : void 0;\n childTag = '#text';\n }\n\n var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;\n var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);\n var invalidParentOrAncestor = invalidParent || invalidAncestor;\n if (!invalidParentOrAncestor) {\n return;\n }\n\n var ancestorTag = invalidParentOrAncestor.tag;\n var addendum = getCurrentFiberStackInDev();\n\n var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum;\n if (didWarn[warnKey]) {\n return;\n }\n didWarn[warnKey] = true;\n\n var tagDisplayName = childTag;\n var whitespaceInfo = '';\n if (childTag === '#text') {\n if (/\\S/.test(childText)) {\n tagDisplayName = 'Text nodes';\n } else {\n tagDisplayName = 'Whitespace text nodes';\n whitespaceInfo = \" Make sure you don't have any extra whitespace between tags on \" + 'each line of your source code.';\n }\n } else {\n tagDisplayName = '<' + childTag + '>';\n }\n\n if (invalidParent) {\n var info = '';\n if (ancestorTag === 'table' && childTag === 'tr') {\n info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.';\n }\n warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info, addendum);\n } else {\n warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.%s', tagDisplayName, ancestorTag, addendum);\n }\n };\n}\n\n// Renderers that don't support persistence\n// can re-export everything from this module.\n\nfunction shim() {\n invariant(false, 'The current renderer does not support persistence. This error is likely caused by a bug in React. Please file an issue.');\n}\n\n// Persistence (when unsupported)\nvar supportsPersistence = false;\nvar cloneInstance = shim;\nvar createContainerChildSet = shim;\nvar appendChildToContainerChildSet = shim;\nvar finalizeContainerChildren = shim;\nvar replaceContainerChildren = shim;\nvar cloneHiddenInstance = shim;\nvar cloneUnhiddenInstance = shim;\nvar createHiddenTextInstance = shim;\n\nvar SUPPRESS_HYDRATION_WARNING = void 0;\n{\n SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';\n}\n\nvar SUSPENSE_START_DATA = '$';\nvar SUSPENSE_END_DATA = '/$';\n\nvar STYLE = 'style';\n\nvar eventsEnabled = null;\nvar selectionInformation = null;\n\nfunction shouldAutoFocusHostComponent(type, props) {\n switch (type) {\n case 'button':\n case 'input':\n case 'select':\n case 'textarea':\n return !!props.autoFocus;\n }\n return false;\n}\n\nfunction getRootHostContext(rootContainerInstance) {\n var type = void 0;\n var namespace = void 0;\n var nodeType = rootContainerInstance.nodeType;\n switch (nodeType) {\n case DOCUMENT_NODE:\n case DOCUMENT_FRAGMENT_NODE:\n {\n type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';\n var root = rootContainerInstance.documentElement;\n namespace = root ? root.namespaceURI : getChildNamespace(null, '');\n break;\n }\n default:\n {\n var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;\n var ownNamespace = container.namespaceURI || null;\n type = container.tagName;\n namespace = getChildNamespace(ownNamespace, type);\n break;\n }\n }\n {\n var validatedTag = type.toLowerCase();\n var _ancestorInfo = updatedAncestorInfo(null, validatedTag);\n return { namespace: namespace, ancestorInfo: _ancestorInfo };\n }\n return namespace;\n}\n\nfunction getChildHostContext(parentHostContext, type, rootContainerInstance) {\n {\n var parentHostContextDev = parentHostContext;\n var _namespace = getChildNamespace(parentHostContextDev.namespace, type);\n var _ancestorInfo2 = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);\n return { namespace: _namespace, ancestorInfo: _ancestorInfo2 };\n }\n var parentNamespace = parentHostContext;\n return getChildNamespace(parentNamespace, type);\n}\n\nfunction getPublicInstance(instance) {\n return instance;\n}\n\nfunction prepareForCommit(containerInfo) {\n eventsEnabled = isEnabled();\n selectionInformation = getSelectionInformation();\n setEnabled(false);\n}\n\nfunction resetAfterCommit(containerInfo) {\n restoreSelection(selectionInformation);\n selectionInformation = null;\n setEnabled(eventsEnabled);\n eventsEnabled = null;\n}\n\nfunction createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {\n var parentNamespace = void 0;\n {\n // TODO: take namespace into account when validating.\n var hostContextDev = hostContext;\n validateDOMNesting(type, null, hostContextDev.ancestorInfo);\n if (typeof props.children === 'string' || typeof props.children === 'number') {\n var string = '' + props.children;\n var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);\n validateDOMNesting(null, string, ownAncestorInfo);\n }\n parentNamespace = hostContextDev.namespace;\n }\n var domElement = createElement(type, props, rootContainerInstance, parentNamespace);\n precacheFiberNode(internalInstanceHandle, domElement);\n updateFiberProps(domElement, props);\n return domElement;\n}\n\nfunction appendInitialChild(parentInstance, child) {\n parentInstance.appendChild(child);\n}\n\nfunction finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {\n setInitialProperties(domElement, type, props, rootContainerInstance);\n return shouldAutoFocusHostComponent(type, props);\n}\n\nfunction prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {\n {\n var hostContextDev = hostContext;\n if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {\n var string = '' + newProps.children;\n var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);\n validateDOMNesting(null, string, ownAncestorInfo);\n }\n }\n return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);\n}\n\nfunction shouldSetTextContent(type, props) {\n return type === 'textarea' || type === 'option' || type === 'noscript' || typeof props.children === 'string' || typeof props.children === 'number' || typeof props.dangerouslySetInnerHTML === 'object' && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null;\n}\n\nfunction shouldDeprioritizeSubtree(type, props) {\n return !!props.hidden;\n}\n\nfunction createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {\n {\n var hostContextDev = hostContext;\n validateDOMNesting(null, text, hostContextDev.ancestorInfo);\n }\n var textNode = createTextNode(text, rootContainerInstance);\n precacheFiberNode(internalInstanceHandle, textNode);\n return textNode;\n}\n\nvar isPrimaryRenderer = true;\n// This initialization code may run even on server environments\n// if a component just imports ReactDOM (e.g. for findDOMNode).\n// Some environments might not have setTimeout or clearTimeout.\nvar scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;\nvar cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;\nvar noTimeout = -1;\nvar schedulePassiveEffects = scheduler.unstable_scheduleCallback;\nvar cancelPassiveEffects = scheduler.unstable_cancelCallback;\n\n// -------------------\n// Mutation\n// -------------------\n\nvar supportsMutation = true;\n\nfunction commitMount(domElement, type, newProps, internalInstanceHandle) {\n // Despite the naming that might imply otherwise, this method only\n // fires if there is an `Update` effect scheduled during mounting.\n // This happens if `finalizeInitialChildren` returns `true` (which it\n // does to implement the `autoFocus` attribute on the client). But\n // there are also other cases when this might happen (such as patching\n // up text content during hydration mismatch). So we'll check this again.\n if (shouldAutoFocusHostComponent(type, newProps)) {\n domElement.focus();\n }\n}\n\nfunction commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {\n // Update the props handle so that we know which props are the ones with\n // with current event handlers.\n updateFiberProps(domElement, newProps);\n // Apply the diff to the DOM node.\n updateProperties(domElement, updatePayload, type, oldProps, newProps);\n}\n\nfunction resetTextContent(domElement) {\n setTextContent(domElement, '');\n}\n\nfunction commitTextUpdate(textInstance, oldText, newText) {\n textInstance.nodeValue = newText;\n}\n\nfunction appendChild(parentInstance, child) {\n parentInstance.appendChild(child);\n}\n\nfunction appendChildToContainer(container, child) {\n var parentNode = void 0;\n if (container.nodeType === COMMENT_NODE) {\n parentNode = container.parentNode;\n parentNode.insertBefore(child, container);\n } else {\n parentNode = container;\n parentNode.appendChild(child);\n }\n // This container might be used for a portal.\n // If something inside a portal is clicked, that click should bubble\n // through the React tree. However, on Mobile Safari the click would\n // never bubble through the *DOM* tree unless an ancestor with onclick\n // event exists. So we wouldn't see it and dispatch it.\n // This is why we ensure that non React root containers have inline onclick\n // defined.\n // https://github.com/facebook/react/issues/11918\n var reactRootContainer = container._reactRootContainer;\n if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {\n // TODO: This cast may not be sound for SVG, MathML or custom elements.\n trapClickOnNonInteractiveElement(parentNode);\n }\n}\n\nfunction insertBefore(parentInstance, child, beforeChild) {\n parentInstance.insertBefore(child, beforeChild);\n}\n\nfunction insertInContainerBefore(container, child, beforeChild) {\n if (container.nodeType === COMMENT_NODE) {\n container.parentNode.insertBefore(child, beforeChild);\n } else {\n container.insertBefore(child, beforeChild);\n }\n}\n\nfunction removeChild(parentInstance, child) {\n parentInstance.removeChild(child);\n}\n\nfunction removeChildFromContainer(container, child) {\n if (container.nodeType === COMMENT_NODE) {\n container.parentNode.removeChild(child);\n } else {\n container.removeChild(child);\n }\n}\n\nfunction clearSuspenseBoundary(parentInstance, suspenseInstance) {\n var node = suspenseInstance;\n // Delete all nodes within this suspense boundary.\n // There might be nested nodes so we need to keep track of how\n // deep we are and only break out when we're back on top.\n var depth = 0;\n do {\n var nextNode = node.nextSibling;\n parentInstance.removeChild(node);\n if (nextNode && nextNode.nodeType === COMMENT_NODE) {\n var data = nextNode.data;\n if (data === SUSPENSE_END_DATA) {\n if (depth === 0) {\n parentInstance.removeChild(nextNode);\n return;\n } else {\n depth--;\n }\n } else if (data === SUSPENSE_START_DATA) {\n depth++;\n }\n }\n node = nextNode;\n } while (node);\n // TODO: Warn, we didn't find the end comment boundary.\n}\n\nfunction clearSuspenseBoundaryFromContainer(container, suspenseInstance) {\n if (container.nodeType === COMMENT_NODE) {\n clearSuspenseBoundary(container.parentNode, suspenseInstance);\n } else if (container.nodeType === ELEMENT_NODE) {\n clearSuspenseBoundary(container, suspenseInstance);\n } else {\n // Document nodes should never contain suspense boundaries.\n }\n}\n\nfunction hideInstance(instance) {\n // TODO: Does this work for all element types? What about MathML? Should we\n // pass host context to this method?\n instance = instance;\n instance.style.display = 'none';\n}\n\nfunction hideTextInstance(textInstance) {\n textInstance.nodeValue = '';\n}\n\nfunction unhideInstance(instance, props) {\n instance = instance;\n var styleProp = props[STYLE];\n var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;\n instance.style.display = dangerousStyleValue('display', display);\n}\n\nfunction unhideTextInstance(textInstance, text) {\n textInstance.nodeValue = text;\n}\n\n// -------------------\n// Hydration\n// -------------------\n\nvar supportsHydration = true;\n\nfunction canHydrateInstance(instance, type, props) {\n if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {\n return null;\n }\n // This has now been refined to an element node.\n return instance;\n}\n\nfunction canHydrateTextInstance(instance, text) {\n if (text === '' || instance.nodeType !== TEXT_NODE) {\n // Empty strings are not parsed by HTML so there won't be a correct match here.\n return null;\n }\n // This has now been refined to a text node.\n return instance;\n}\n\nfunction canHydrateSuspenseInstance(instance) {\n if (instance.nodeType !== COMMENT_NODE) {\n // Empty strings are not parsed by HTML so there won't be a correct match here.\n return null;\n }\n // This has now been refined to a suspense node.\n return instance;\n}\n\nfunction getNextHydratableSibling(instance) {\n var node = instance.nextSibling;\n // Skip non-hydratable nodes.\n while (node && node.nodeType !== ELEMENT_NODE && node.nodeType !== TEXT_NODE && (!enableSuspenseServerRenderer || node.nodeType !== COMMENT_NODE || node.data !== SUSPENSE_START_DATA)) {\n node = node.nextSibling;\n }\n return node;\n}\n\nfunction getFirstHydratableChild(parentInstance) {\n var next = parentInstance.firstChild;\n // Skip non-hydratable nodes.\n while (next && next.nodeType !== ELEMENT_NODE && next.nodeType !== TEXT_NODE && (!enableSuspenseServerRenderer || next.nodeType !== COMMENT_NODE || next.data !== SUSPENSE_START_DATA)) {\n next = next.nextSibling;\n }\n return next;\n}\n\nfunction hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {\n precacheFiberNode(internalInstanceHandle, instance);\n // TODO: Possibly defer this until the commit phase where all the events\n // get attached.\n updateFiberProps(instance, props);\n var parentNamespace = void 0;\n {\n var hostContextDev = hostContext;\n parentNamespace = hostContextDev.namespace;\n }\n return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance);\n}\n\nfunction hydrateTextInstance(textInstance, text, internalInstanceHandle) {\n precacheFiberNode(internalInstanceHandle, textInstance);\n return diffHydratedText(textInstance, text);\n}\n\nfunction getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) {\n var node = suspenseInstance.nextSibling;\n // Skip past all nodes within this suspense boundary.\n // There might be nested nodes so we need to keep track of how\n // deep we are and only break out when we're back on top.\n var depth = 0;\n while (node) {\n if (node.nodeType === COMMENT_NODE) {\n var data = node.data;\n if (data === SUSPENSE_END_DATA) {\n if (depth === 0) {\n return getNextHydratableSibling(node);\n } else {\n depth--;\n }\n } else if (data === SUSPENSE_START_DATA) {\n depth++;\n }\n }\n node = node.nextSibling;\n }\n // TODO: Warn, we didn't find the end comment boundary.\n return null;\n}\n\nfunction didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {\n {\n warnForUnmatchedText(textInstance, text);\n }\n}\n\nfunction didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {\n if (true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {\n warnForUnmatchedText(textInstance, text);\n }\n}\n\nfunction didNotHydrateContainerInstance(parentContainer, instance) {\n {\n if (instance.nodeType === ELEMENT_NODE) {\n warnForDeletedHydratableElement(parentContainer, instance);\n } else if (instance.nodeType === COMMENT_NODE) {\n // TODO: warnForDeletedHydratableSuspenseBoundary\n } else {\n warnForDeletedHydratableText(parentContainer, instance);\n }\n }\n}\n\nfunction didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {\n if (true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {\n if (instance.nodeType === ELEMENT_NODE) {\n warnForDeletedHydratableElement(parentInstance, instance);\n } else if (instance.nodeType === COMMENT_NODE) {\n // TODO: warnForDeletedHydratableSuspenseBoundary\n } else {\n warnForDeletedHydratableText(parentInstance, instance);\n }\n }\n}\n\nfunction didNotFindHydratableContainerInstance(parentContainer, type, props) {\n {\n warnForInsertedHydratedElement(parentContainer, type, props);\n }\n}\n\nfunction didNotFindHydratableContainerTextInstance(parentContainer, text) {\n {\n warnForInsertedHydratedText(parentContainer, text);\n }\n}\n\n\n\nfunction didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {\n if (true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {\n warnForInsertedHydratedElement(parentInstance, type, props);\n }\n}\n\nfunction didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {\n if (true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {\n warnForInsertedHydratedText(parentInstance, text);\n }\n}\n\nfunction didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance) {\n if (true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {\n // TODO: warnForInsertedHydratedSuspense(parentInstance);\n }\n}\n\n// Prefix measurements so that it's possible to filter them.\n// Longer prefixes are hard to read in DevTools.\nvar reactEmoji = '\\u269B';\nvar warningEmoji = '\\u26D4';\nvar supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';\n\n// Keep track of current fiber so that we know the path to unwind on pause.\n// TODO: this looks the same as nextUnitOfWork in scheduler. Can we unify them?\nvar currentFiber = null;\n// If we're in the middle of user code, which fiber and method is it?\n// Reusing `currentFiber` would be confusing for this because user code fiber\n// can change during commit phase too, but we don't need to unwind it (since\n// lifecycles in the commit phase don't resemble a tree).\nvar currentPhase = null;\nvar currentPhaseFiber = null;\n// Did lifecycle hook schedule an update? This is often a performance problem,\n// so we will keep track of it, and include it in the report.\n// Track commits caused by cascading updates.\nvar isCommitting = false;\nvar hasScheduledUpdateInCurrentCommit = false;\nvar hasScheduledUpdateInCurrentPhase = false;\nvar commitCountInCurrentWorkLoop = 0;\nvar effectCountInCurrentCommit = 0;\nvar isWaitingForCallback = false;\n// During commits, we only show a measurement once per method name\n// to avoid stretch the commit phase with measurement overhead.\nvar labelsInCurrentCommit = new Set();\n\nvar formatMarkName = function (markName) {\n return reactEmoji + ' ' + markName;\n};\n\nvar formatLabel = function (label, warning) {\n var prefix = warning ? warningEmoji + ' ' : reactEmoji + ' ';\n var suffix = warning ? ' Warning: ' + warning : '';\n return '' + prefix + label + suffix;\n};\n\nvar beginMark = function (markName) {\n performance.mark(formatMarkName(markName));\n};\n\nvar clearMark = function (markName) {\n performance.clearMarks(formatMarkName(markName));\n};\n\nvar endMark = function (label, markName, warning) {\n var formattedMarkName = formatMarkName(markName);\n var formattedLabel = formatLabel(label, warning);\n try {\n performance.measure(formattedLabel, formattedMarkName);\n } catch (err) {}\n // If previous mark was missing for some reason, this will throw.\n // This could only happen if React crashed in an unexpected place earlier.\n // Don't pile on with more errors.\n\n // Clear marks immediately to avoid growing buffer.\n performance.clearMarks(formattedMarkName);\n performance.clearMeasures(formattedLabel);\n};\n\nvar getFiberMarkName = function (label, debugID) {\n return label + ' (#' + debugID + ')';\n};\n\nvar getFiberLabel = function (componentName, isMounted, phase) {\n if (phase === null) {\n // These are composite component total time measurements.\n return componentName + ' [' + (isMounted ? 'update' : 'mount') + ']';\n } else {\n // Composite component methods.\n return componentName + '.' + phase;\n }\n};\n\nvar beginFiberMark = function (fiber, phase) {\n var componentName = getComponentName(fiber.type) || 'Unknown';\n var debugID = fiber._debugID;\n var isMounted = fiber.alternate !== null;\n var label = getFiberLabel(componentName, isMounted, phase);\n\n if (isCommitting && labelsInCurrentCommit.has(label)) {\n // During the commit phase, we don't show duplicate labels because\n // there is a fixed overhead for every measurement, and we don't\n // want to stretch the commit phase beyond necessary.\n return false;\n }\n labelsInCurrentCommit.add(label);\n\n var markName = getFiberMarkName(label, debugID);\n beginMark(markName);\n return true;\n};\n\nvar clearFiberMark = function (fiber, phase) {\n var componentName = getComponentName(fiber.type) || 'Unknown';\n var debugID = fiber._debugID;\n var isMounted = fiber.alternate !== null;\n var label = getFiberLabel(componentName, isMounted, phase);\n var markName = getFiberMarkName(label, debugID);\n clearMark(markName);\n};\n\nvar endFiberMark = function (fiber, phase, warning) {\n var componentName = getComponentName(fiber.type) || 'Unknown';\n var debugID = fiber._debugID;\n var isMounted = fiber.alternate !== null;\n var label = getFiberLabel(componentName, isMounted, phase);\n var markName = getFiberMarkName(label, debugID);\n endMark(label, markName, warning);\n};\n\nvar shouldIgnoreFiber = function (fiber) {\n // Host components should be skipped in the timeline.\n // We could check typeof fiber.type, but does this work with RN?\n switch (fiber.tag) {\n case HostRoot:\n case HostComponent:\n case HostText:\n case HostPortal:\n case Fragment:\n case ContextProvider:\n case ContextConsumer:\n case Mode:\n return true;\n default:\n return false;\n }\n};\n\nvar clearPendingPhaseMeasurement = function () {\n if (currentPhase !== null && currentPhaseFiber !== null) {\n clearFiberMark(currentPhaseFiber, currentPhase);\n }\n currentPhaseFiber = null;\n currentPhase = null;\n hasScheduledUpdateInCurrentPhase = false;\n};\n\nvar pauseTimers = function () {\n // Stops all currently active measurements so that they can be resumed\n // if we continue in a later deferred loop from the same unit of work.\n var fiber = currentFiber;\n while (fiber) {\n if (fiber._debugIsCurrentlyTiming) {\n endFiberMark(fiber, null, null);\n }\n fiber = fiber.return;\n }\n};\n\nvar resumeTimersRecursively = function (fiber) {\n if (fiber.return !== null) {\n resumeTimersRecursively(fiber.return);\n }\n if (fiber._debugIsCurrentlyTiming) {\n beginFiberMark(fiber, null);\n }\n};\n\nvar resumeTimers = function () {\n // Resumes all measurements that were active during the last deferred loop.\n if (currentFiber !== null) {\n resumeTimersRecursively(currentFiber);\n }\n};\n\nfunction recordEffect() {\n if (enableUserTimingAPI) {\n effectCountInCurrentCommit++;\n }\n}\n\nfunction recordScheduleUpdate() {\n if (enableUserTimingAPI) {\n if (isCommitting) {\n hasScheduledUpdateInCurrentCommit = true;\n }\n if (currentPhase !== null && currentPhase !== 'componentWillMount' && currentPhase !== 'componentWillReceiveProps') {\n hasScheduledUpdateInCurrentPhase = true;\n }\n }\n}\n\nfunction startRequestCallbackTimer() {\n if (enableUserTimingAPI) {\n if (supportsUserTiming && !isWaitingForCallback) {\n isWaitingForCallback = true;\n beginMark('(Waiting for async callback...)');\n }\n }\n}\n\nfunction stopRequestCallbackTimer(didExpire, expirationTime) {\n if (enableUserTimingAPI) {\n if (supportsUserTiming) {\n isWaitingForCallback = false;\n var warning = didExpire ? 'React was blocked by main thread' : null;\n endMark('(Waiting for async callback... will force flush in ' + expirationTime + ' ms)', '(Waiting for async callback...)', warning);\n }\n }\n}\n\nfunction startWorkTimer(fiber) {\n if (enableUserTimingAPI) {\n if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {\n return;\n }\n // If we pause, this is the fiber to unwind from.\n currentFiber = fiber;\n if (!beginFiberMark(fiber, null)) {\n return;\n }\n fiber._debugIsCurrentlyTiming = true;\n }\n}\n\nfunction cancelWorkTimer(fiber) {\n if (enableUserTimingAPI) {\n if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {\n return;\n }\n // Remember we shouldn't complete measurement for this fiber.\n // Otherwise flamechart will be deep even for small updates.\n fiber._debugIsCurrentlyTiming = false;\n clearFiberMark(fiber, null);\n }\n}\n\nfunction stopWorkTimer(fiber) {\n if (enableUserTimingAPI) {\n if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {\n return;\n }\n // If we pause, its parent is the fiber to unwind from.\n currentFiber = fiber.return;\n if (!fiber._debugIsCurrentlyTiming) {\n return;\n }\n fiber._debugIsCurrentlyTiming = false;\n endFiberMark(fiber, null, null);\n }\n}\n\nfunction stopFailedWorkTimer(fiber) {\n if (enableUserTimingAPI) {\n if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {\n return;\n }\n // If we pause, its parent is the fiber to unwind from.\n currentFiber = fiber.return;\n if (!fiber._debugIsCurrentlyTiming) {\n return;\n }\n fiber._debugIsCurrentlyTiming = false;\n var warning = fiber.tag === SuspenseComponent || fiber.tag === DehydratedSuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary';\n endFiberMark(fiber, null, warning);\n }\n}\n\nfunction startPhaseTimer(fiber, phase) {\n if (enableUserTimingAPI) {\n if (!supportsUserTiming) {\n return;\n }\n clearPendingPhaseMeasurement();\n if (!beginFiberMark(fiber, phase)) {\n return;\n }\n currentPhaseFiber = fiber;\n currentPhase = phase;\n }\n}\n\nfunction stopPhaseTimer() {\n if (enableUserTimingAPI) {\n if (!supportsUserTiming) {\n return;\n }\n if (currentPhase !== null && currentPhaseFiber !== null) {\n var warning = hasScheduledUpdateInCurrentPhase ? 'Scheduled a cascading update' : null;\n endFiberMark(currentPhaseFiber, currentPhase, warning);\n }\n currentPhase = null;\n currentPhaseFiber = null;\n }\n}\n\nfunction startWorkLoopTimer(nextUnitOfWork) {\n if (enableUserTimingAPI) {\n currentFiber = nextUnitOfWork;\n if (!supportsUserTiming) {\n return;\n }\n commitCountInCurrentWorkLoop = 0;\n // This is top level call.\n // Any other measurements are performed within.\n beginMark('(React Tree Reconciliation)');\n // Resume any measurements that were in progress during the last loop.\n resumeTimers();\n }\n}\n\nfunction stopWorkLoopTimer(interruptedBy, didCompleteRoot) {\n if (enableUserTimingAPI) {\n if (!supportsUserTiming) {\n return;\n }\n var warning = null;\n if (interruptedBy !== null) {\n if (interruptedBy.tag === HostRoot) {\n warning = 'A top-level update interrupted the previous render';\n } else {\n var componentName = getComponentName(interruptedBy.type) || 'Unknown';\n warning = 'An update to ' + componentName + ' interrupted the previous render';\n }\n } else if (commitCountInCurrentWorkLoop > 1) {\n warning = 'There were cascading updates';\n }\n commitCountInCurrentWorkLoop = 0;\n var label = didCompleteRoot ? '(React Tree Reconciliation: Completed Root)' : '(React Tree Reconciliation: Yielded)';\n // Pause any measurements until the next loop.\n pauseTimers();\n endMark(label, '(React Tree Reconciliation)', warning);\n }\n}\n\nfunction startCommitTimer() {\n if (enableUserTimingAPI) {\n if (!supportsUserTiming) {\n return;\n }\n isCommitting = true;\n hasScheduledUpdateInCurrentCommit = false;\n labelsInCurrentCommit.clear();\n beginMark('(Committing Changes)');\n }\n}\n\nfunction stopCommitTimer() {\n if (enableUserTimingAPI) {\n if (!supportsUserTiming) {\n return;\n }\n\n var warning = null;\n if (hasScheduledUpdateInCurrentCommit) {\n warning = 'Lifecycle hook scheduled a cascading update';\n } else if (commitCountInCurrentWorkLoop > 0) {\n warning = 'Caused by a cascading update in earlier commit';\n }\n hasScheduledUpdateInCurrentCommit = false;\n commitCountInCurrentWorkLoop++;\n isCommitting = false;\n labelsInCurrentCommit.clear();\n\n endMark('(Committing Changes)', '(Committing Changes)', warning);\n }\n}\n\nfunction startCommitSnapshotEffectsTimer() {\n if (enableUserTimingAPI) {\n if (!supportsUserTiming) {\n return;\n }\n effectCountInCurrentCommit = 0;\n beginMark('(Committing Snapshot Effects)');\n }\n}\n\nfunction stopCommitSnapshotEffectsTimer() {\n if (enableUserTimingAPI) {\n if (!supportsUserTiming) {\n return;\n }\n var count = effectCountInCurrentCommit;\n effectCountInCurrentCommit = 0;\n endMark('(Committing Snapshot Effects: ' + count + ' Total)', '(Committing Snapshot Effects)', null);\n }\n}\n\nfunction startCommitHostEffectsTimer() {\n if (enableUserTimingAPI) {\n if (!supportsUserTiming) {\n return;\n }\n effectCountInCurrentCommit = 0;\n beginMark('(Committing Host Effects)');\n }\n}\n\nfunction stopCommitHostEffectsTimer() {\n if (enableUserTimingAPI) {\n if (!supportsUserTiming) {\n return;\n }\n var count = effectCountInCurrentCommit;\n effectCountInCurrentCommit = 0;\n endMark('(Committing Host Effects: ' + count + ' Total)', '(Committing Host Effects)', null);\n }\n}\n\nfunction startCommitLifeCyclesTimer() {\n if (enableUserTimingAPI) {\n if (!supportsUserTiming) {\n return;\n }\n effectCountInCurrentCommit = 0;\n beginMark('(Calling Lifecycle Methods)');\n }\n}\n\nfunction stopCommitLifeCyclesTimer() {\n if (enableUserTimingAPI) {\n if (!supportsUserTiming) {\n return;\n }\n var count = effectCountInCurrentCommit;\n effectCountInCurrentCommit = 0;\n endMark('(Calling Lifecycle Methods: ' + count + ' Total)', '(Calling Lifecycle Methods)', null);\n }\n}\n\nvar valueStack = [];\n\nvar fiberStack = void 0;\n\n{\n fiberStack = [];\n}\n\nvar index = -1;\n\nfunction createCursor(defaultValue) {\n return {\n current: defaultValue\n };\n}\n\nfunction pop(cursor, fiber) {\n if (index < 0) {\n {\n warningWithoutStack$1(false, 'Unexpected pop.');\n }\n return;\n }\n\n {\n if (fiber !== fiberStack[index]) {\n warningWithoutStack$1(false, 'Unexpected Fiber popped.');\n }\n }\n\n cursor.current = valueStack[index];\n\n valueStack[index] = null;\n\n {\n fiberStack[index] = null;\n }\n\n index--;\n}\n\nfunction push(cursor, value, fiber) {\n index++;\n\n valueStack[index] = cursor.current;\n\n {\n fiberStack[index] = fiber;\n }\n\n cursor.current = value;\n}\n\nfunction checkThatStackIsEmpty() {\n {\n if (index !== -1) {\n warningWithoutStack$1(false, 'Expected an empty stack. Something was not reset properly.');\n }\n }\n}\n\nfunction resetStackAfterFatalErrorInDev() {\n {\n index = -1;\n valueStack.length = 0;\n fiberStack.length = 0;\n }\n}\n\nvar warnedAboutMissingGetChildContext = void 0;\n\n{\n warnedAboutMissingGetChildContext = {};\n}\n\nvar emptyContextObject = {};\n{\n Object.freeze(emptyContextObject);\n}\n\n// A cursor to the current merged context object on the stack.\nvar contextStackCursor = createCursor(emptyContextObject);\n// A cursor to a boolean indicating whether the context has changed.\nvar didPerformWorkStackCursor = createCursor(false);\n// Keep track of the previous context object that was on the stack.\n// We use this to get access to the parent context after we have already\n// pushed the next context provider, and now need to merge their contexts.\nvar previousContext = emptyContextObject;\n\nfunction getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {\n if (didPushOwnContextIfProvider && isContextProvider(Component)) {\n // If the fiber is a context provider itself, when we read its context\n // we may have already pushed its own child context on the stack. A context\n // provider should not \"see\" its own child context. Therefore we read the\n // previous (parent) context instead for a context provider.\n return previousContext;\n }\n return contextStackCursor.current;\n}\n\nfunction cacheContext(workInProgress, unmaskedContext, maskedContext) {\n var instance = workInProgress.stateNode;\n instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;\n instance.__reactInternalMemoizedMaskedChildContext = maskedContext;\n}\n\nfunction getMaskedContext(workInProgress, unmaskedContext) {\n var type = workInProgress.type;\n var contextTypes = type.contextTypes;\n if (!contextTypes) {\n return emptyContextObject;\n }\n\n // Avoid recreating masked context unless unmasked context has changed.\n // Failing to do this will result in unnecessary calls to componentWillReceiveProps.\n // This may trigger infinite loops if componentWillReceiveProps calls setState.\n var instance = workInProgress.stateNode;\n if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {\n return instance.__reactInternalMemoizedMaskedChildContext;\n }\n\n var context = {};\n for (var key in contextTypes) {\n context[key] = unmaskedContext[key];\n }\n\n {\n var name = getComponentName(type) || 'Unknown';\n checkPropTypes(contextTypes, context, 'context', name, getCurrentFiberStackInDev);\n }\n\n // Cache unmasked context so we can avoid recreating masked context unless necessary.\n // Context is created before the class component is instantiated so check for instance.\n if (instance) {\n cacheContext(workInProgress, unmaskedContext, context);\n }\n\n return context;\n}\n\nfunction hasContextChanged() {\n return didPerformWorkStackCursor.current;\n}\n\nfunction isContextProvider(type) {\n var childContextTypes = type.childContextTypes;\n return childContextTypes !== null && childContextTypes !== undefined;\n}\n\nfunction popContext(fiber) {\n pop(didPerformWorkStackCursor, fiber);\n pop(contextStackCursor, fiber);\n}\n\nfunction popTopLevelContextObject(fiber) {\n pop(didPerformWorkStackCursor, fiber);\n pop(contextStackCursor, fiber);\n}\n\nfunction pushTopLevelContextObject(fiber, context, didChange) {\n !(contextStackCursor.current === emptyContextObject) ? invariant(false, 'Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n\n push(contextStackCursor, context, fiber);\n push(didPerformWorkStackCursor, didChange, fiber);\n}\n\nfunction processChildContext(fiber, type, parentContext) {\n var instance = fiber.stateNode;\n var childContextTypes = type.childContextTypes;\n\n // TODO (bvaughn) Replace this behavior with an invariant() in the future.\n // It has only been added in Fiber to match the (unintentional) behavior in Stack.\n if (typeof instance.getChildContext !== 'function') {\n {\n var componentName = getComponentName(type) || 'Unknown';\n\n if (!warnedAboutMissingGetChildContext[componentName]) {\n warnedAboutMissingGetChildContext[componentName] = true;\n warningWithoutStack$1(false, '%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);\n }\n }\n return parentContext;\n }\n\n var childContext = void 0;\n {\n setCurrentPhase('getChildContext');\n }\n startPhaseTimer(fiber, 'getChildContext');\n childContext = instance.getChildContext();\n stopPhaseTimer();\n {\n setCurrentPhase(null);\n }\n for (var contextKey in childContext) {\n !(contextKey in childContextTypes) ? invariant(false, '%s.getChildContext(): key \"%s\" is not defined in childContextTypes.', getComponentName(type) || 'Unknown', contextKey) : void 0;\n }\n {\n var name = getComponentName(type) || 'Unknown';\n checkPropTypes(childContextTypes, childContext, 'child context', name,\n // In practice, there is one case in which we won't get a stack. It's when\n // somebody calls unstable_renderSubtreeIntoContainer() and we process\n // context from the parent component instance. The stack will be missing\n // because it's outside of the reconciliation, and so the pointer has not\n // been set. This is rare and doesn't matter. We'll also remove that API.\n getCurrentFiberStackInDev);\n }\n\n return _assign({}, parentContext, childContext);\n}\n\nfunction pushContextProvider(workInProgress) {\n var instance = workInProgress.stateNode;\n // We push the context as early as possible to ensure stack integrity.\n // If the instance does not exist yet, we will push null at first,\n // and replace it on the stack later when invalidating the context.\n var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject;\n\n // Remember the parent context so we can merge with it later.\n // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.\n previousContext = contextStackCursor.current;\n push(contextStackCursor, memoizedMergedChildContext, workInProgress);\n push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);\n\n return true;\n}\n\nfunction invalidateContextProvider(workInProgress, type, didChange) {\n var instance = workInProgress.stateNode;\n !instance ? invariant(false, 'Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n\n if (didChange) {\n // Merge parent and own context.\n // Skip this if we're not updating due to sCU.\n // This avoids unnecessarily recomputing memoized values.\n var mergedContext = processChildContext(workInProgress, type, previousContext);\n instance.__reactInternalMemoizedMergedChildContext = mergedContext;\n\n // Replace the old (or empty) context with the new one.\n // It is important to unwind the context in the reverse order.\n pop(didPerformWorkStackCursor, workInProgress);\n pop(contextStackCursor, workInProgress);\n // Now push the new context and mark that it has changed.\n push(contextStackCursor, mergedContext, workInProgress);\n push(didPerformWorkStackCursor, didChange, workInProgress);\n } else {\n pop(didPerformWorkStackCursor, workInProgress);\n push(didPerformWorkStackCursor, didChange, workInProgress);\n }\n}\n\nfunction findCurrentUnmaskedContext(fiber) {\n // Currently this is only used with renderSubtreeIntoContainer; not sure if it\n // makes sense elsewhere\n !(isFiberMounted(fiber) && fiber.tag === ClassComponent) ? invariant(false, 'Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n\n var node = fiber;\n do {\n switch (node.tag) {\n case HostRoot:\n return node.stateNode.context;\n case ClassComponent:\n {\n var Component = node.type;\n if (isContextProvider(Component)) {\n return node.stateNode.__reactInternalMemoizedMergedChildContext;\n }\n break;\n }\n }\n node = node.return;\n } while (node !== null);\n invariant(false, 'Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.');\n}\n\nvar onCommitFiberRoot = null;\nvar onCommitFiberUnmount = null;\nvar hasLoggedError = false;\n\nfunction catchErrors(fn) {\n return function (arg) {\n try {\n return fn(arg);\n } catch (err) {\n if (true && !hasLoggedError) {\n hasLoggedError = true;\n warningWithoutStack$1(false, 'React DevTools encountered an error: %s', err);\n }\n }\n };\n}\n\nvar isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';\n\nfunction injectInternals(internals) {\n if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {\n // No DevTools\n return false;\n }\n var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;\n if (hook.isDisabled) {\n // This isn't a real property on the hook, but it can be set to opt out\n // of DevTools integration and associated warnings and logs.\n // https://github.com/facebook/react/issues/3877\n return true;\n }\n if (!hook.supportsFiber) {\n {\n warningWithoutStack$1(false, 'The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://fb.me/react-devtools');\n }\n // DevTools exists, even though it doesn't support Fiber.\n return true;\n }\n try {\n var rendererID = hook.inject(internals);\n // We have successfully injected, so now it is safe to set up hooks.\n onCommitFiberRoot = catchErrors(function (root) {\n return hook.onCommitFiberRoot(rendererID, root);\n });\n onCommitFiberUnmount = catchErrors(function (fiber) {\n return hook.onCommitFiberUnmount(rendererID, fiber);\n });\n } catch (err) {\n // Catch all errors because it is unsafe to throw during initialization.\n {\n warningWithoutStack$1(false, 'React DevTools encountered an error: %s.', err);\n }\n }\n // DevTools exists\n return true;\n}\n\nfunction onCommitRoot(root) {\n if (typeof onCommitFiberRoot === 'function') {\n onCommitFiberRoot(root);\n }\n}\n\nfunction onCommitUnmount(fiber) {\n if (typeof onCommitFiberUnmount === 'function') {\n onCommitFiberUnmount(fiber);\n }\n}\n\n// Max 31 bit integer. The max integer size in V8 for 32-bit systems.\n// Math.pow(2, 30) - 1\n// 0b111111111111111111111111111111\nvar maxSigned31BitInt = 1073741823;\n\nvar NoWork = 0;\nvar Never = 1;\nvar Sync = maxSigned31BitInt;\n\nvar UNIT_SIZE = 10;\nvar MAGIC_NUMBER_OFFSET = maxSigned31BitInt - 1;\n\n// 1 unit of expiration time represents 10ms.\nfunction msToExpirationTime(ms) {\n // Always add an offset so that we don't clash with the magic number for NoWork.\n return MAGIC_NUMBER_OFFSET - (ms / UNIT_SIZE | 0);\n}\n\nfunction expirationTimeToMs(expirationTime) {\n return (MAGIC_NUMBER_OFFSET - expirationTime) * UNIT_SIZE;\n}\n\nfunction ceiling(num, precision) {\n return ((num / precision | 0) + 1) * precision;\n}\n\nfunction computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) {\n return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE);\n}\n\nvar LOW_PRIORITY_EXPIRATION = 5000;\nvar LOW_PRIORITY_BATCH_SIZE = 250;\n\nfunction computeAsyncExpiration(currentTime) {\n return computeExpirationBucket(currentTime, LOW_PRIORITY_EXPIRATION, LOW_PRIORITY_BATCH_SIZE);\n}\n\n// We intentionally set a higher expiration time for interactive updates in\n// dev than in production.\n//\n// If the main thread is being blocked so long that you hit the expiration,\n// it's a problem that could be solved with better scheduling.\n//\n// People will be more likely to notice this and fix it with the long\n// expiration time in development.\n//\n// In production we opt for better UX at the risk of masking scheduling\n// problems, by expiring fast.\nvar HIGH_PRIORITY_EXPIRATION = 500;\nvar HIGH_PRIORITY_BATCH_SIZE = 100;\n\nfunction computeInteractiveExpiration(currentTime) {\n return computeExpirationBucket(currentTime, HIGH_PRIORITY_EXPIRATION, HIGH_PRIORITY_BATCH_SIZE);\n}\n\nvar NoContext = 0;\nvar ConcurrentMode = 1;\nvar StrictMode = 2;\nvar ProfileMode = 4;\n\nvar hasBadMapPolyfill = void 0;\n\n{\n hasBadMapPolyfill = false;\n try {\n var nonExtensibleObject = Object.preventExtensions({});\n var testMap = new Map([[nonExtensibleObject, null]]);\n var testSet = new Set([nonExtensibleObject]);\n // This is necessary for Rollup to not consider these unused.\n // https://github.com/rollup/rollup/issues/1771\n // TODO: we can remove these if Rollup fixes the bug.\n testMap.set(0, 0);\n testSet.add(0);\n } catch (e) {\n // TODO: Consider warning about bad polyfills\n hasBadMapPolyfill = true;\n }\n}\n\n// A Fiber is work on a Component that needs to be done or was done. There can\n// be more than one per component.\n\n\nvar debugCounter = void 0;\n\n{\n debugCounter = 1;\n}\n\nfunction FiberNode(tag, pendingProps, key, mode) {\n // Instance\n this.tag = tag;\n this.key = key;\n this.elementType = null;\n this.type = null;\n this.stateNode = null;\n\n // Fiber\n this.return = null;\n this.child = null;\n this.sibling = null;\n this.index = 0;\n\n this.ref = null;\n\n this.pendingProps = pendingProps;\n this.memoizedProps = null;\n this.updateQueue = null;\n this.memoizedState = null;\n this.contextDependencies = null;\n\n this.mode = mode;\n\n // Effects\n this.effectTag = NoEffect;\n this.nextEffect = null;\n\n this.firstEffect = null;\n this.lastEffect = null;\n\n this.expirationTime = NoWork;\n this.childExpirationTime = NoWork;\n\n this.alternate = null;\n\n if (enableProfilerTimer) {\n // Note: The following is done to avoid a v8 performance cliff.\n //\n // Initializing the fields below to smis and later updating them with\n // double values will cause Fibers to end up having separate shapes.\n // This behavior/bug has something to do with Object.preventExtension().\n // Fortunately this only impacts DEV builds.\n // Unfortunately it makes React unusably slow for some applications.\n // To work around this, initialize the fields below with doubles.\n //\n // Learn more about this here:\n // https://github.com/facebook/react/issues/14365\n // https://bugs.chromium.org/p/v8/issues/detail?id=8538\n this.actualDuration = Number.NaN;\n this.actualStartTime = Number.NaN;\n this.selfBaseDuration = Number.NaN;\n this.treeBaseDuration = Number.NaN;\n\n // It's okay to replace the initial doubles with smis after initialization.\n // This won't trigger the performance cliff mentioned above,\n // and it simplifies other profiler code (including DevTools).\n this.actualDuration = 0;\n this.actualStartTime = -1;\n this.selfBaseDuration = 0;\n this.treeBaseDuration = 0;\n }\n\n {\n this._debugID = debugCounter++;\n this._debugSource = null;\n this._debugOwner = null;\n this._debugIsCurrentlyTiming = false;\n this._debugHookTypes = null;\n if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {\n Object.preventExtensions(this);\n }\n }\n}\n\n// This is a constructor function, rather than a POJO constructor, still\n// please ensure we do the following:\n// 1) Nobody should add any instance methods on this. Instance methods can be\n// more difficult to predict when they get optimized and they are almost\n// never inlined properly in static compilers.\n// 2) Nobody should rely on `instanceof Fiber` for type testing. We should\n// always know when it is a fiber.\n// 3) We might want to experiment with using numeric keys since they are easier\n// to optimize in a non-JIT environment.\n// 4) We can easily go from a constructor to a createFiber object literal if that\n// is faster.\n// 5) It should be easy to port this to a C struct and keep a C implementation\n// compatible.\nvar createFiber = function (tag, pendingProps, key, mode) {\n // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors\n return new FiberNode(tag, pendingProps, key, mode);\n};\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction isSimpleFunctionComponent(type) {\n return typeof type === 'function' && !shouldConstruct(type) && type.defaultProps === undefined;\n}\n\nfunction resolveLazyComponentTag(Component) {\n if (typeof Component === 'function') {\n return shouldConstruct(Component) ? ClassComponent : FunctionComponent;\n } else if (Component !== undefined && Component !== null) {\n var $$typeof = Component.$$typeof;\n if ($$typeof === REACT_FORWARD_REF_TYPE) {\n return ForwardRef;\n }\n if ($$typeof === REACT_MEMO_TYPE) {\n return MemoComponent;\n }\n }\n return IndeterminateComponent;\n}\n\n// This is used to create an alternate fiber to do work on.\nfunction createWorkInProgress(current, pendingProps, expirationTime) {\n var workInProgress = current.alternate;\n if (workInProgress === null) {\n // We use a double buffering pooling technique because we know that we'll\n // only ever need at most two versions of a tree. We pool the \"other\" unused\n // node that we're free to reuse. This is lazily created to avoid allocating\n // extra objects for things that are never updated. It also allow us to\n // reclaim the extra memory if needed.\n workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);\n workInProgress.elementType = current.elementType;\n workInProgress.type = current.type;\n workInProgress.stateNode = current.stateNode;\n\n {\n // DEV-only fields\n workInProgress._debugID = current._debugID;\n workInProgress._debugSource = current._debugSource;\n workInProgress._debugOwner = current._debugOwner;\n workInProgress._debugHookTypes = current._debugHookTypes;\n }\n\n workInProgress.alternate = current;\n current.alternate = workInProgress;\n } else {\n workInProgress.pendingProps = pendingProps;\n\n // We already have an alternate.\n // Reset the effect tag.\n workInProgress.effectTag = NoEffect;\n\n // The effect list is no longer valid.\n workInProgress.nextEffect = null;\n workInProgress.firstEffect = null;\n workInProgress.lastEffect = null;\n\n if (enableProfilerTimer) {\n // We intentionally reset, rather than copy, actualDuration & actualStartTime.\n // This prevents time from endlessly accumulating in new commits.\n // This has the downside of resetting values for different priority renders,\n // But works for yielding (the common case) and should support resuming.\n workInProgress.actualDuration = 0;\n workInProgress.actualStartTime = -1;\n }\n }\n\n workInProgress.childExpirationTime = current.childExpirationTime;\n workInProgress.expirationTime = current.expirationTime;\n\n workInProgress.child = current.child;\n workInProgress.memoizedProps = current.memoizedProps;\n workInProgress.memoizedState = current.memoizedState;\n workInProgress.updateQueue = current.updateQueue;\n workInProgress.contextDependencies = current.contextDependencies;\n\n // These will be overridden during the parent's reconciliation\n workInProgress.sibling = current.sibling;\n workInProgress.index = current.index;\n workInProgress.ref = current.ref;\n\n if (enableProfilerTimer) {\n workInProgress.selfBaseDuration = current.selfBaseDuration;\n workInProgress.treeBaseDuration = current.treeBaseDuration;\n }\n\n return workInProgress;\n}\n\nfunction createHostRootFiber(isConcurrent) {\n var mode = isConcurrent ? ConcurrentMode | StrictMode : NoContext;\n\n if (enableProfilerTimer && isDevToolsPresent) {\n // Always collect profile timings when DevTools are present.\n // This enables DevTools to start capturing timing at any point–\n // Without some nodes in the tree having empty base times.\n mode |= ProfileMode;\n }\n\n return createFiber(HostRoot, null, null, mode);\n}\n\nfunction createFiberFromTypeAndProps(type, // React$ElementType\nkey, pendingProps, owner, mode, expirationTime) {\n var fiber = void 0;\n\n var fiberTag = IndeterminateComponent;\n // The resolved type is set if we know what the final type will be. I.e. it's not lazy.\n var resolvedType = type;\n if (typeof type === 'function') {\n if (shouldConstruct(type)) {\n fiberTag = ClassComponent;\n }\n } else if (typeof type === 'string') {\n fiberTag = HostComponent;\n } else {\n getTag: switch (type) {\n case REACT_FRAGMENT_TYPE:\n return createFiberFromFragment(pendingProps.children, mode, expirationTime, key);\n case REACT_CONCURRENT_MODE_TYPE:\n return createFiberFromMode(pendingProps, mode | ConcurrentMode | StrictMode, expirationTime, key);\n case REACT_STRICT_MODE_TYPE:\n return createFiberFromMode(pendingProps, mode | StrictMode, expirationTime, key);\n case REACT_PROFILER_TYPE:\n return createFiberFromProfiler(pendingProps, mode, expirationTime, key);\n case REACT_SUSPENSE_TYPE:\n return createFiberFromSuspense(pendingProps, mode, expirationTime, key);\n default:\n {\n if (typeof type === 'object' && type !== null) {\n switch (type.$$typeof) {\n case REACT_PROVIDER_TYPE:\n fiberTag = ContextProvider;\n break getTag;\n case REACT_CONTEXT_TYPE:\n // This is a consumer\n fiberTag = ContextConsumer;\n break getTag;\n case REACT_FORWARD_REF_TYPE:\n fiberTag = ForwardRef;\n break getTag;\n case REACT_MEMO_TYPE:\n fiberTag = MemoComponent;\n break getTag;\n case REACT_LAZY_TYPE:\n fiberTag = LazyComponent;\n resolvedType = null;\n break getTag;\n }\n }\n var info = '';\n {\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and \" + 'named imports.';\n }\n var ownerName = owner ? getComponentName(owner.type) : null;\n if (ownerName) {\n info += '\\n\\nCheck the render method of `' + ownerName + '`.';\n }\n }\n invariant(false, 'Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s', type == null ? type : typeof type, info);\n }\n }\n }\n\n fiber = createFiber(fiberTag, pendingProps, key, mode);\n fiber.elementType = type;\n fiber.type = resolvedType;\n fiber.expirationTime = expirationTime;\n\n return fiber;\n}\n\nfunction createFiberFromElement(element, mode, expirationTime) {\n var owner = null;\n {\n owner = element._owner;\n }\n var type = element.type;\n var key = element.key;\n var pendingProps = element.props;\n var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, expirationTime);\n {\n fiber._debugSource = element._source;\n fiber._debugOwner = element._owner;\n }\n return fiber;\n}\n\nfunction createFiberFromFragment(elements, mode, expirationTime, key) {\n var fiber = createFiber(Fragment, elements, key, mode);\n fiber.expirationTime = expirationTime;\n return fiber;\n}\n\nfunction createFiberFromProfiler(pendingProps, mode, expirationTime, key) {\n {\n if (typeof pendingProps.id !== 'string' || typeof pendingProps.onRender !== 'function') {\n warningWithoutStack$1(false, 'Profiler must specify an \"id\" string and \"onRender\" function as props');\n }\n }\n\n var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode);\n // TODO: The Profiler fiber shouldn't have a type. It has a tag.\n fiber.elementType = REACT_PROFILER_TYPE;\n fiber.type = REACT_PROFILER_TYPE;\n fiber.expirationTime = expirationTime;\n\n return fiber;\n}\n\nfunction createFiberFromMode(pendingProps, mode, expirationTime, key) {\n var fiber = createFiber(Mode, pendingProps, key, mode);\n\n // TODO: The Mode fiber shouldn't have a type. It has a tag.\n var type = (mode & ConcurrentMode) === NoContext ? REACT_STRICT_MODE_TYPE : REACT_CONCURRENT_MODE_TYPE;\n fiber.elementType = type;\n fiber.type = type;\n\n fiber.expirationTime = expirationTime;\n return fiber;\n}\n\nfunction createFiberFromSuspense(pendingProps, mode, expirationTime, key) {\n var fiber = createFiber(SuspenseComponent, pendingProps, key, mode);\n\n // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.\n var type = REACT_SUSPENSE_TYPE;\n fiber.elementType = type;\n fiber.type = type;\n\n fiber.expirationTime = expirationTime;\n return fiber;\n}\n\nfunction createFiberFromText(content, mode, expirationTime) {\n var fiber = createFiber(HostText, content, null, mode);\n fiber.expirationTime = expirationTime;\n return fiber;\n}\n\nfunction createFiberFromHostInstanceForDeletion() {\n var fiber = createFiber(HostComponent, null, null, NoContext);\n // TODO: These should not need a type.\n fiber.elementType = 'DELETED';\n fiber.type = 'DELETED';\n return fiber;\n}\n\nfunction createFiberFromPortal(portal, mode, expirationTime) {\n var pendingProps = portal.children !== null ? portal.children : [];\n var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);\n fiber.expirationTime = expirationTime;\n fiber.stateNode = {\n containerInfo: portal.containerInfo,\n pendingChildren: null, // Used by persistent updates\n implementation: portal.implementation\n };\n return fiber;\n}\n\n// Used for stashing WIP properties to replay failed work in DEV.\nfunction assignFiberPropertiesInDEV(target, source) {\n if (target === null) {\n // This Fiber's initial properties will always be overwritten.\n // We only use a Fiber to ensure the same hidden class so DEV isn't slow.\n target = createFiber(IndeterminateComponent, null, null, NoContext);\n }\n\n // This is intentionally written as a list of all properties.\n // We tried to use Object.assign() instead but this is called in\n // the hottest path, and Object.assign() was too slow:\n // https://github.com/facebook/react/issues/12502\n // This code is DEV-only so size is not a concern.\n\n target.tag = source.tag;\n target.key = source.key;\n target.elementType = source.elementType;\n target.type = source.type;\n target.stateNode = source.stateNode;\n target.return = source.return;\n target.child = source.child;\n target.sibling = source.sibling;\n target.index = source.index;\n target.ref = source.ref;\n target.pendingProps = source.pendingProps;\n target.memoizedProps = source.memoizedProps;\n target.updateQueue = source.updateQueue;\n target.memoizedState = source.memoizedState;\n target.contextDependencies = source.contextDependencies;\n target.mode = source.mode;\n target.effectTag = source.effectTag;\n target.nextEffect = source.nextEffect;\n target.firstEffect = source.firstEffect;\n target.lastEffect = source.lastEffect;\n target.expirationTime = source.expirationTime;\n target.childExpirationTime = source.childExpirationTime;\n target.alternate = source.alternate;\n if (enableProfilerTimer) {\n target.actualDuration = source.actualDuration;\n target.actualStartTime = source.actualStartTime;\n target.selfBaseDuration = source.selfBaseDuration;\n target.treeBaseDuration = source.treeBaseDuration;\n }\n target._debugID = source._debugID;\n target._debugSource = source._debugSource;\n target._debugOwner = source._debugOwner;\n target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming;\n target._debugHookTypes = source._debugHookTypes;\n return target;\n}\n\n// TODO: This should be lifted into the renderer.\n\n\n// The following attributes are only used by interaction tracing builds.\n// They enable interactions to be associated with their async work,\n// And expose interaction metadata to the React DevTools Profiler plugin.\n// Note that these attributes are only defined when the enableSchedulerTracing flag is enabled.\n\n\n// Exported FiberRoot type includes all properties,\n// To avoid requiring potentially error-prone :any casts throughout the project.\n// Profiling properties are only safe to access in profiling builds (when enableSchedulerTracing is true).\n// The types are defined separately within this file to ensure they stay in sync.\n// (We don't have to use an inline :any cast when enableSchedulerTracing is disabled.)\n\n\nfunction createFiberRoot(containerInfo, isConcurrent, hydrate) {\n // Cyclic construction. This cheats the type system right now because\n // stateNode is any.\n var uninitializedFiber = createHostRootFiber(isConcurrent);\n\n var root = void 0;\n if (enableSchedulerTracing) {\n root = {\n current: uninitializedFiber,\n containerInfo: containerInfo,\n pendingChildren: null,\n\n earliestPendingTime: NoWork,\n latestPendingTime: NoWork,\n earliestSuspendedTime: NoWork,\n latestSuspendedTime: NoWork,\n latestPingedTime: NoWork,\n\n pingCache: null,\n\n didError: false,\n\n pendingCommitExpirationTime: NoWork,\n finishedWork: null,\n timeoutHandle: noTimeout,\n context: null,\n pendingContext: null,\n hydrate: hydrate,\n nextExpirationTimeToWorkOn: NoWork,\n expirationTime: NoWork,\n firstBatch: null,\n nextScheduledRoot: null,\n\n interactionThreadID: tracing.unstable_getThreadID(),\n memoizedInteractions: new Set(),\n pendingInteractionMap: new Map()\n };\n } else {\n root = {\n current: uninitializedFiber,\n containerInfo: containerInfo,\n pendingChildren: null,\n\n pingCache: null,\n\n earliestPendingTime: NoWork,\n latestPendingTime: NoWork,\n earliestSuspendedTime: NoWork,\n latestSuspendedTime: NoWork,\n latestPingedTime: NoWork,\n\n didError: false,\n\n pendingCommitExpirationTime: NoWork,\n finishedWork: null,\n timeoutHandle: noTimeout,\n context: null,\n pendingContext: null,\n hydrate: hydrate,\n nextExpirationTimeToWorkOn: NoWork,\n expirationTime: NoWork,\n firstBatch: null,\n nextScheduledRoot: null\n };\n }\n\n uninitializedFiber.stateNode = root;\n\n // The reason for the way the Flow types are structured in this file,\n // Is to avoid needing :any casts everywhere interaction tracing fields are used.\n // Unfortunately that requires an :any cast for non-interaction tracing capable builds.\n // $FlowFixMe Remove this :any cast and replace it with something better.\n return root;\n}\n\n/**\n * Forked from fbjs/warning:\n * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js\n *\n * Only change is we use console.warn instead of console.error,\n * and do nothing when 'console' is not supported.\n * This really simplifies the code.\n * ---\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar lowPriorityWarning = function () {};\n\n{\n var printWarning = function (format) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.warn(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n lowPriorityWarning = function (condition, format) {\n if (format === undefined) {\n throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n if (!condition) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(undefined, [format].concat(args));\n }\n };\n}\n\nvar lowPriorityWarning$1 = lowPriorityWarning;\n\nvar ReactStrictModeWarnings = {\n discardPendingWarnings: function () {},\n flushPendingDeprecationWarnings: function () {},\n flushPendingUnsafeLifecycleWarnings: function () {},\n recordDeprecationWarnings: function (fiber, instance) {},\n recordUnsafeLifecycleWarnings: function (fiber, instance) {},\n recordLegacyContextWarning: function (fiber, instance) {},\n flushLegacyContextWarning: function () {}\n};\n\n{\n var LIFECYCLE_SUGGESTIONS = {\n UNSAFE_componentWillMount: 'componentDidMount',\n UNSAFE_componentWillReceiveProps: 'static getDerivedStateFromProps',\n UNSAFE_componentWillUpdate: 'componentDidUpdate'\n };\n\n var pendingComponentWillMountWarnings = [];\n var pendingComponentWillReceivePropsWarnings = [];\n var pendingComponentWillUpdateWarnings = [];\n var pendingUnsafeLifecycleWarnings = new Map();\n var pendingLegacyContextWarning = new Map();\n\n // Tracks components we have already warned about.\n var didWarnAboutDeprecatedLifecycles = new Set();\n var didWarnAboutUnsafeLifecycles = new Set();\n var didWarnAboutLegacyContext = new Set();\n\n var setToSortedString = function (set) {\n var array = [];\n set.forEach(function (value) {\n array.push(value);\n });\n return array.sort().join(', ');\n };\n\n ReactStrictModeWarnings.discardPendingWarnings = function () {\n pendingComponentWillMountWarnings = [];\n pendingComponentWillReceivePropsWarnings = [];\n pendingComponentWillUpdateWarnings = [];\n pendingUnsafeLifecycleWarnings = new Map();\n pendingLegacyContextWarning = new Map();\n };\n\n ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {\n pendingUnsafeLifecycleWarnings.forEach(function (lifecycleWarningsMap, strictRoot) {\n var lifecyclesWarningMessages = [];\n\n Object.keys(lifecycleWarningsMap).forEach(function (lifecycle) {\n var lifecycleWarnings = lifecycleWarningsMap[lifecycle];\n if (lifecycleWarnings.length > 0) {\n var componentNames = new Set();\n lifecycleWarnings.forEach(function (fiber) {\n componentNames.add(getComponentName(fiber.type) || 'Component');\n didWarnAboutUnsafeLifecycles.add(fiber.type);\n });\n\n var formatted = lifecycle.replace('UNSAFE_', '');\n var suggestion = LIFECYCLE_SUGGESTIONS[lifecycle];\n var sortedComponentNames = setToSortedString(componentNames);\n\n lifecyclesWarningMessages.push(formatted + ': Please update the following components to use ' + (suggestion + ' instead: ' + sortedComponentNames));\n }\n });\n\n if (lifecyclesWarningMessages.length > 0) {\n var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot);\n\n warningWithoutStack$1(false, 'Unsafe lifecycle methods were found within a strict-mode tree:%s' + '\\n\\n%s' + '\\n\\nLearn more about this warning here:' + '\\nhttps://fb.me/react-strict-mode-warnings', strictRootComponentStack, lifecyclesWarningMessages.join('\\n\\n'));\n }\n });\n\n pendingUnsafeLifecycleWarnings = new Map();\n };\n\n var findStrictRoot = function (fiber) {\n var maybeStrictRoot = null;\n\n var node = fiber;\n while (node !== null) {\n if (node.mode & StrictMode) {\n maybeStrictRoot = node;\n }\n node = node.return;\n }\n\n return maybeStrictRoot;\n };\n\n ReactStrictModeWarnings.flushPendingDeprecationWarnings = function () {\n if (pendingComponentWillMountWarnings.length > 0) {\n var uniqueNames = new Set();\n pendingComponentWillMountWarnings.forEach(function (fiber) {\n uniqueNames.add(getComponentName(fiber.type) || 'Component');\n didWarnAboutDeprecatedLifecycles.add(fiber.type);\n });\n\n var sortedNames = setToSortedString(uniqueNames);\n\n lowPriorityWarning$1(false, 'componentWillMount is deprecated and will be removed in the next major version. ' + 'Use componentDidMount instead. As a temporary workaround, ' + 'you can rename to UNSAFE_componentWillMount.' + '\\n\\nPlease update the following components: %s' + '\\n\\nLearn more about this warning here:' + '\\nhttps://fb.me/react-async-component-lifecycle-hooks', sortedNames);\n\n pendingComponentWillMountWarnings = [];\n }\n\n if (pendingComponentWillReceivePropsWarnings.length > 0) {\n var _uniqueNames = new Set();\n pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {\n _uniqueNames.add(getComponentName(fiber.type) || 'Component');\n didWarnAboutDeprecatedLifecycles.add(fiber.type);\n });\n\n var _sortedNames = setToSortedString(_uniqueNames);\n\n lowPriorityWarning$1(false, 'componentWillReceiveProps is deprecated and will be removed in the next major version. ' + 'Use static getDerivedStateFromProps instead.' + '\\n\\nPlease update the following components: %s' + '\\n\\nLearn more about this warning here:' + '\\nhttps://fb.me/react-async-component-lifecycle-hooks', _sortedNames);\n\n pendingComponentWillReceivePropsWarnings = [];\n }\n\n if (pendingComponentWillUpdateWarnings.length > 0) {\n var _uniqueNames2 = new Set();\n pendingComponentWillUpdateWarnings.forEach(function (fiber) {\n _uniqueNames2.add(getComponentName(fiber.type) || 'Component');\n didWarnAboutDeprecatedLifecycles.add(fiber.type);\n });\n\n var _sortedNames2 = setToSortedString(_uniqueNames2);\n\n lowPriorityWarning$1(false, 'componentWillUpdate is deprecated and will be removed in the next major version. ' + 'Use componentDidUpdate instead. As a temporary workaround, ' + 'you can rename to UNSAFE_componentWillUpdate.' + '\\n\\nPlease update the following components: %s' + '\\n\\nLearn more about this warning here:' + '\\nhttps://fb.me/react-async-component-lifecycle-hooks', _sortedNames2);\n\n pendingComponentWillUpdateWarnings = [];\n }\n };\n\n ReactStrictModeWarnings.recordDeprecationWarnings = function (fiber, instance) {\n // Dedup strategy: Warn once per component.\n if (didWarnAboutDeprecatedLifecycles.has(fiber.type)) {\n return;\n }\n\n // Don't warn about react-lifecycles-compat polyfilled components.\n if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {\n pendingComponentWillMountWarnings.push(fiber);\n }\n if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {\n pendingComponentWillReceivePropsWarnings.push(fiber);\n }\n if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {\n pendingComponentWillUpdateWarnings.push(fiber);\n }\n };\n\n ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {\n var strictRoot = findStrictRoot(fiber);\n if (strictRoot === null) {\n warningWithoutStack$1(false, 'Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');\n return;\n }\n\n // Dedup strategy: Warn once per component.\n // This is difficult to track any other way since component names\n // are often vague and are likely to collide between 3rd party libraries.\n // An expand property is probably okay to use here since it's DEV-only,\n // and will only be set in the event of serious warnings.\n if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {\n return;\n }\n\n var warningsForRoot = void 0;\n if (!pendingUnsafeLifecycleWarnings.has(strictRoot)) {\n warningsForRoot = {\n UNSAFE_componentWillMount: [],\n UNSAFE_componentWillReceiveProps: [],\n UNSAFE_componentWillUpdate: []\n };\n\n pendingUnsafeLifecycleWarnings.set(strictRoot, warningsForRoot);\n } else {\n warningsForRoot = pendingUnsafeLifecycleWarnings.get(strictRoot);\n }\n\n var unsafeLifecycles = [];\n if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillMount === 'function') {\n unsafeLifecycles.push('UNSAFE_componentWillMount');\n }\n if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillReceiveProps === 'function') {\n unsafeLifecycles.push('UNSAFE_componentWillReceiveProps');\n }\n if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillUpdate === 'function') {\n unsafeLifecycles.push('UNSAFE_componentWillUpdate');\n }\n\n if (unsafeLifecycles.length > 0) {\n unsafeLifecycles.forEach(function (lifecycle) {\n warningsForRoot[lifecycle].push(fiber);\n });\n }\n };\n\n ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {\n var strictRoot = findStrictRoot(fiber);\n if (strictRoot === null) {\n warningWithoutStack$1(false, 'Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');\n return;\n }\n\n // Dedup strategy: Warn once per component.\n if (didWarnAboutLegacyContext.has(fiber.type)) {\n return;\n }\n\n var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);\n\n if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {\n if (warningsForRoot === undefined) {\n warningsForRoot = [];\n pendingLegacyContextWarning.set(strictRoot, warningsForRoot);\n }\n warningsForRoot.push(fiber);\n }\n };\n\n ReactStrictModeWarnings.flushLegacyContextWarning = function () {\n pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {\n var uniqueNames = new Set();\n fiberArray.forEach(function (fiber) {\n uniqueNames.add(getComponentName(fiber.type) || 'Component');\n didWarnAboutLegacyContext.add(fiber.type);\n });\n\n var sortedNames = setToSortedString(uniqueNames);\n var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot);\n\n warningWithoutStack$1(false, 'Legacy context API has been detected within a strict-mode tree: %s' + '\\n\\nPlease update the following components: %s' + '\\n\\nLearn more about this warning here:' + '\\nhttps://fb.me/react-strict-mode-warnings', strictRootComponentStack, sortedNames);\n });\n };\n}\n\n// This lets us hook into Fiber to debug what it's doing.\n// See https://github.com/facebook/react/pull/8033.\n// This is not part of the public API, not even for React DevTools.\n// You may only inject a debugTool if you work on React Fiber itself.\nvar ReactFiberInstrumentation = {\n debugTool: null\n};\n\nvar ReactFiberInstrumentation_1 = ReactFiberInstrumentation;\n\n// TODO: Offscreen updates should never suspend. However, a promise that\n// suspended inside an offscreen subtree should be able to ping at the priority\n// of the outer render.\n\nfunction markPendingPriorityLevel(root, expirationTime) {\n // If there's a gap between completing a failed root and retrying it,\n // additional updates may be scheduled. Clear `didError`, in case the update\n // is sufficient to fix the error.\n root.didError = false;\n\n // Update the latest and earliest pending times\n var earliestPendingTime = root.earliestPendingTime;\n if (earliestPendingTime === NoWork) {\n // No other pending updates.\n root.earliestPendingTime = root.latestPendingTime = expirationTime;\n } else {\n if (earliestPendingTime < expirationTime) {\n // This is the earliest pending update.\n root.earliestPendingTime = expirationTime;\n } else {\n var latestPendingTime = root.latestPendingTime;\n if (latestPendingTime > expirationTime) {\n // This is the latest pending update\n root.latestPendingTime = expirationTime;\n }\n }\n }\n findNextExpirationTimeToWorkOn(expirationTime, root);\n}\n\nfunction markCommittedPriorityLevels(root, earliestRemainingTime) {\n root.didError = false;\n\n if (earliestRemainingTime === NoWork) {\n // Fast path. There's no remaining work. Clear everything.\n root.earliestPendingTime = NoWork;\n root.latestPendingTime = NoWork;\n root.earliestSuspendedTime = NoWork;\n root.latestSuspendedTime = NoWork;\n root.latestPingedTime = NoWork;\n findNextExpirationTimeToWorkOn(NoWork, root);\n return;\n }\n\n if (earliestRemainingTime < root.latestPingedTime) {\n root.latestPingedTime = NoWork;\n }\n\n // Let's see if the previous latest known pending level was just flushed.\n var latestPendingTime = root.latestPendingTime;\n if (latestPendingTime !== NoWork) {\n if (latestPendingTime > earliestRemainingTime) {\n // We've flushed all the known pending levels.\n root.earliestPendingTime = root.latestPendingTime = NoWork;\n } else {\n var earliestPendingTime = root.earliestPendingTime;\n if (earliestPendingTime > earliestRemainingTime) {\n // We've flushed the earliest known pending level. Set this to the\n // latest pending time.\n root.earliestPendingTime = root.latestPendingTime;\n }\n }\n }\n\n // Now let's handle the earliest remaining level in the whole tree. We need to\n // decide whether to treat it as a pending level or as suspended. Check\n // it falls within the range of known suspended levels.\n\n var earliestSuspendedTime = root.earliestSuspendedTime;\n if (earliestSuspendedTime === NoWork) {\n // There's no suspended work. Treat the earliest remaining level as a\n // pending level.\n markPendingPriorityLevel(root, earliestRemainingTime);\n findNextExpirationTimeToWorkOn(NoWork, root);\n return;\n }\n\n var latestSuspendedTime = root.latestSuspendedTime;\n if (earliestRemainingTime < latestSuspendedTime) {\n // The earliest remaining level is later than all the suspended work. That\n // means we've flushed all the suspended work.\n root.earliestSuspendedTime = NoWork;\n root.latestSuspendedTime = NoWork;\n root.latestPingedTime = NoWork;\n\n // There's no suspended work. Treat the earliest remaining level as a\n // pending level.\n markPendingPriorityLevel(root, earliestRemainingTime);\n findNextExpirationTimeToWorkOn(NoWork, root);\n return;\n }\n\n if (earliestRemainingTime > earliestSuspendedTime) {\n // The earliest remaining time is earlier than all the suspended work.\n // Treat it as a pending update.\n markPendingPriorityLevel(root, earliestRemainingTime);\n findNextExpirationTimeToWorkOn(NoWork, root);\n return;\n }\n\n // The earliest remaining time falls within the range of known suspended\n // levels. We should treat this as suspended work.\n findNextExpirationTimeToWorkOn(NoWork, root);\n}\n\nfunction hasLowerPriorityWork(root, erroredExpirationTime) {\n var latestPendingTime = root.latestPendingTime;\n var latestSuspendedTime = root.latestSuspendedTime;\n var latestPingedTime = root.latestPingedTime;\n return latestPendingTime !== NoWork && latestPendingTime < erroredExpirationTime || latestSuspendedTime !== NoWork && latestSuspendedTime < erroredExpirationTime || latestPingedTime !== NoWork && latestPingedTime < erroredExpirationTime;\n}\n\nfunction isPriorityLevelSuspended(root, expirationTime) {\n var earliestSuspendedTime = root.earliestSuspendedTime;\n var latestSuspendedTime = root.latestSuspendedTime;\n return earliestSuspendedTime !== NoWork && expirationTime <= earliestSuspendedTime && expirationTime >= latestSuspendedTime;\n}\n\nfunction markSuspendedPriorityLevel(root, suspendedTime) {\n root.didError = false;\n clearPing(root, suspendedTime);\n\n // First, check the known pending levels and update them if needed.\n var earliestPendingTime = root.earliestPendingTime;\n var latestPendingTime = root.latestPendingTime;\n if (earliestPendingTime === suspendedTime) {\n if (latestPendingTime === suspendedTime) {\n // Both known pending levels were suspended. Clear them.\n root.earliestPendingTime = root.latestPendingTime = NoWork;\n } else {\n // The earliest pending level was suspended. Clear by setting it to the\n // latest pending level.\n root.earliestPendingTime = latestPendingTime;\n }\n } else if (latestPendingTime === suspendedTime) {\n // The latest pending level was suspended. Clear by setting it to the\n // latest pending level.\n root.latestPendingTime = earliestPendingTime;\n }\n\n // Finally, update the known suspended levels.\n var earliestSuspendedTime = root.earliestSuspendedTime;\n var latestSuspendedTime = root.latestSuspendedTime;\n if (earliestSuspendedTime === NoWork) {\n // No other suspended levels.\n root.earliestSuspendedTime = root.latestSuspendedTime = suspendedTime;\n } else {\n if (earliestSuspendedTime < suspendedTime) {\n // This is the earliest suspended level.\n root.earliestSuspendedTime = suspendedTime;\n } else if (latestSuspendedTime > suspendedTime) {\n // This is the latest suspended level\n root.latestSuspendedTime = suspendedTime;\n }\n }\n\n findNextExpirationTimeToWorkOn(suspendedTime, root);\n}\n\nfunction markPingedPriorityLevel(root, pingedTime) {\n root.didError = false;\n\n // TODO: When we add back resuming, we need to ensure the progressed work\n // is thrown out and not reused during the restarted render. One way to\n // invalidate the progressed work is to restart at expirationTime + 1.\n var latestPingedTime = root.latestPingedTime;\n if (latestPingedTime === NoWork || latestPingedTime > pingedTime) {\n root.latestPingedTime = pingedTime;\n }\n findNextExpirationTimeToWorkOn(pingedTime, root);\n}\n\nfunction clearPing(root, completedTime) {\n var latestPingedTime = root.latestPingedTime;\n if (latestPingedTime >= completedTime) {\n root.latestPingedTime = NoWork;\n }\n}\n\nfunction findEarliestOutstandingPriorityLevel(root, renderExpirationTime) {\n var earliestExpirationTime = renderExpirationTime;\n\n var earliestPendingTime = root.earliestPendingTime;\n var earliestSuspendedTime = root.earliestSuspendedTime;\n if (earliestPendingTime > earliestExpirationTime) {\n earliestExpirationTime = earliestPendingTime;\n }\n if (earliestSuspendedTime > earliestExpirationTime) {\n earliestExpirationTime = earliestSuspendedTime;\n }\n return earliestExpirationTime;\n}\n\nfunction didExpireAtExpirationTime(root, currentTime) {\n var expirationTime = root.expirationTime;\n if (expirationTime !== NoWork && currentTime <= expirationTime) {\n // The root has expired. Flush all work up to the current time.\n root.nextExpirationTimeToWorkOn = currentTime;\n }\n}\n\nfunction findNextExpirationTimeToWorkOn(completedExpirationTime, root) {\n var earliestSuspendedTime = root.earliestSuspendedTime;\n var latestSuspendedTime = root.latestSuspendedTime;\n var earliestPendingTime = root.earliestPendingTime;\n var latestPingedTime = root.latestPingedTime;\n\n // Work on the earliest pending time. Failing that, work on the latest\n // pinged time.\n var nextExpirationTimeToWorkOn = earliestPendingTime !== NoWork ? earliestPendingTime : latestPingedTime;\n\n // If there is no pending or pinged work, check if there's suspended work\n // that's lower priority than what we just completed.\n if (nextExpirationTimeToWorkOn === NoWork && (completedExpirationTime === NoWork || latestSuspendedTime < completedExpirationTime)) {\n // The lowest priority suspended work is the work most likely to be\n // committed next. Let's start rendering it again, so that if it times out,\n // it's ready to commit.\n nextExpirationTimeToWorkOn = latestSuspendedTime;\n }\n\n var expirationTime = nextExpirationTimeToWorkOn;\n if (expirationTime !== NoWork && earliestSuspendedTime > expirationTime) {\n // Expire using the earliest known expiration time.\n expirationTime = earliestSuspendedTime;\n }\n\n root.nextExpirationTimeToWorkOn = nextExpirationTimeToWorkOn;\n root.expirationTime = expirationTime;\n}\n\nfunction resolveDefaultProps(Component, baseProps) {\n if (Component && Component.defaultProps) {\n // Resolve default props. Taken from ReactElement\n var props = _assign({}, baseProps);\n var defaultProps = Component.defaultProps;\n for (var propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n return props;\n }\n return baseProps;\n}\n\nfunction readLazyComponentType(lazyComponent) {\n var status = lazyComponent._status;\n var result = lazyComponent._result;\n switch (status) {\n case Resolved:\n {\n var Component = result;\n return Component;\n }\n case Rejected:\n {\n var error = result;\n throw error;\n }\n case Pending:\n {\n var thenable = result;\n throw thenable;\n }\n default:\n {\n lazyComponent._status = Pending;\n var ctor = lazyComponent._ctor;\n var _thenable = ctor();\n _thenable.then(function (moduleObject) {\n if (lazyComponent._status === Pending) {\n var defaultExport = moduleObject.default;\n {\n if (defaultExport === undefined) {\n warning$1(false, 'lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\\n\\nYour code should look like: \\n ' + \"const MyComponent = lazy(() => import('./MyComponent'))\", moduleObject);\n }\n }\n lazyComponent._status = Resolved;\n lazyComponent._result = defaultExport;\n }\n }, function (error) {\n if (lazyComponent._status === Pending) {\n lazyComponent._status = Rejected;\n lazyComponent._result = error;\n }\n });\n // Handle synchronous thenables.\n switch (lazyComponent._status) {\n case Resolved:\n return lazyComponent._result;\n case Rejected:\n throw lazyComponent._result;\n }\n lazyComponent._result = _thenable;\n throw _thenable;\n }\n }\n}\n\nvar fakeInternalInstance = {};\nvar isArray$1 = Array.isArray;\n\n// React.Component uses a shared frozen object by default.\n// We'll use it to determine whether we need to initialize legacy refs.\nvar emptyRefsObject = new React.Component().refs;\n\nvar didWarnAboutStateAssignmentForComponent = void 0;\nvar didWarnAboutUninitializedState = void 0;\nvar didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = void 0;\nvar didWarnAboutLegacyLifecyclesAndDerivedState = void 0;\nvar didWarnAboutUndefinedDerivedState = void 0;\nvar warnOnUndefinedDerivedState = void 0;\nvar warnOnInvalidCallback$1 = void 0;\nvar didWarnAboutDirectlyAssigningPropsToState = void 0;\nvar didWarnAboutContextTypeAndContextTypes = void 0;\nvar didWarnAboutInvalidateContextType = void 0;\n\n{\n didWarnAboutStateAssignmentForComponent = new Set();\n didWarnAboutUninitializedState = new Set();\n didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();\n didWarnAboutLegacyLifecyclesAndDerivedState = new Set();\n didWarnAboutDirectlyAssigningPropsToState = new Set();\n didWarnAboutUndefinedDerivedState = new Set();\n didWarnAboutContextTypeAndContextTypes = new Set();\n didWarnAboutInvalidateContextType = new Set();\n\n var didWarnOnInvalidCallback = new Set();\n\n warnOnInvalidCallback$1 = function (callback, callerName) {\n if (callback === null || typeof callback === 'function') {\n return;\n }\n var key = callerName + '_' + callback;\n if (!didWarnOnInvalidCallback.has(key)) {\n didWarnOnInvalidCallback.add(key);\n warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);\n }\n };\n\n warnOnUndefinedDerivedState = function (type, partialState) {\n if (partialState === undefined) {\n var componentName = getComponentName(type) || 'Component';\n if (!didWarnAboutUndefinedDerivedState.has(componentName)) {\n didWarnAboutUndefinedDerivedState.add(componentName);\n warningWithoutStack$1(false, '%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);\n }\n }\n };\n\n // This is so gross but it's at least non-critical and can be removed if\n // it causes problems. This is meant to give a nicer error message for\n // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,\n // ...)) which otherwise throws a \"_processChildContext is not a function\"\n // exception.\n Object.defineProperty(fakeInternalInstance, '_processChildContext', {\n enumerable: false,\n value: function () {\n invariant(false, '_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn\\'t supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).');\n }\n });\n Object.freeze(fakeInternalInstance);\n}\n\nfunction applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {\n var prevState = workInProgress.memoizedState;\n\n {\n if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {\n // Invoke the function an extra time to help detect side-effects.\n getDerivedStateFromProps(nextProps, prevState);\n }\n }\n\n var partialState = getDerivedStateFromProps(nextProps, prevState);\n\n {\n warnOnUndefinedDerivedState(ctor, partialState);\n }\n // Merge the partial state and the previous state.\n var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState);\n workInProgress.memoizedState = memoizedState;\n\n // Once the update queue is empty, persist the derived state onto the\n // base state.\n var updateQueue = workInProgress.updateQueue;\n if (updateQueue !== null && workInProgress.expirationTime === NoWork) {\n updateQueue.baseState = memoizedState;\n }\n}\n\nvar classComponentUpdater = {\n isMounted: isMounted,\n enqueueSetState: function (inst, payload, callback) {\n var fiber = get(inst);\n var currentTime = requestCurrentTime();\n var expirationTime = computeExpirationForFiber(currentTime, fiber);\n\n var update = createUpdate(expirationTime);\n update.payload = payload;\n if (callback !== undefined && callback !== null) {\n {\n warnOnInvalidCallback$1(callback, 'setState');\n }\n update.callback = callback;\n }\n\n flushPassiveEffects();\n enqueueUpdate(fiber, update);\n scheduleWork(fiber, expirationTime);\n },\n enqueueReplaceState: function (inst, payload, callback) {\n var fiber = get(inst);\n var currentTime = requestCurrentTime();\n var expirationTime = computeExpirationForFiber(currentTime, fiber);\n\n var update = createUpdate(expirationTime);\n update.tag = ReplaceState;\n update.payload = payload;\n\n if (callback !== undefined && callback !== null) {\n {\n warnOnInvalidCallback$1(callback, 'replaceState');\n }\n update.callback = callback;\n }\n\n flushPassiveEffects();\n enqueueUpdate(fiber, update);\n scheduleWork(fiber, expirationTime);\n },\n enqueueForceUpdate: function (inst, callback) {\n var fiber = get(inst);\n var currentTime = requestCurrentTime();\n var expirationTime = computeExpirationForFiber(currentTime, fiber);\n\n var update = createUpdate(expirationTime);\n update.tag = ForceUpdate;\n\n if (callback !== undefined && callback !== null) {\n {\n warnOnInvalidCallback$1(callback, 'forceUpdate');\n }\n update.callback = callback;\n }\n\n flushPassiveEffects();\n enqueueUpdate(fiber, update);\n scheduleWork(fiber, expirationTime);\n }\n};\n\nfunction checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {\n var instance = workInProgress.stateNode;\n if (typeof instance.shouldComponentUpdate === 'function') {\n startPhaseTimer(workInProgress, 'shouldComponentUpdate');\n var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);\n stopPhaseTimer();\n\n {\n !(shouldUpdate !== undefined) ? warningWithoutStack$1(false, '%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName(ctor) || 'Component') : void 0;\n }\n\n return shouldUpdate;\n }\n\n if (ctor.prototype && ctor.prototype.isPureReactComponent) {\n return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);\n }\n\n return true;\n}\n\nfunction checkClassInstance(workInProgress, ctor, newProps) {\n var instance = workInProgress.stateNode;\n {\n var name = getComponentName(ctor) || 'Component';\n var renderPresent = instance.render;\n\n if (!renderPresent) {\n if (ctor.prototype && typeof ctor.prototype.render === 'function') {\n warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);\n } else {\n warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);\n }\n }\n\n var noGetInitialStateOnES6 = !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state;\n !noGetInitialStateOnES6 ? warningWithoutStack$1(false, 'getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name) : void 0;\n var noGetDefaultPropsOnES6 = !instance.getDefaultProps || instance.getDefaultProps.isReactClassApproved;\n !noGetDefaultPropsOnES6 ? warningWithoutStack$1(false, 'getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name) : void 0;\n var noInstancePropTypes = !instance.propTypes;\n !noInstancePropTypes ? warningWithoutStack$1(false, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name) : void 0;\n var noInstanceContextType = !instance.contextType;\n !noInstanceContextType ? warningWithoutStack$1(false, 'contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name) : void 0;\n var noInstanceContextTypes = !instance.contextTypes;\n !noInstanceContextTypes ? warningWithoutStack$1(false, 'contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name) : void 0;\n\n if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {\n didWarnAboutContextTypeAndContextTypes.add(ctor);\n warningWithoutStack$1(false, '%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);\n }\n\n var noComponentShouldUpdate = typeof instance.componentShouldUpdate !== 'function';\n !noComponentShouldUpdate ? warningWithoutStack$1(false, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name) : void 0;\n if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {\n warningWithoutStack$1(false, '%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentName(ctor) || 'A pure component');\n }\n var noComponentDidUnmount = typeof instance.componentDidUnmount !== 'function';\n !noComponentDidUnmount ? warningWithoutStack$1(false, '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name) : void 0;\n var noComponentDidReceiveProps = typeof instance.componentDidReceiveProps !== 'function';\n !noComponentDidReceiveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'componentDidReceiveProps(). But there is no such lifecycle method. ' + 'If you meant to update the state in response to changing props, ' + 'use componentWillReceiveProps(). If you meant to fetch data or ' + 'run side-effects or mutations after React has updated the UI, use componentDidUpdate().', name) : void 0;\n var noComponentWillRecieveProps = typeof instance.componentWillRecieveProps !== 'function';\n !noComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name) : void 0;\n var noUnsafeComponentWillRecieveProps = typeof instance.UNSAFE_componentWillRecieveProps !== 'function';\n !noUnsafeComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name) : void 0;\n var hasMutatedProps = instance.props !== newProps;\n !(instance.props === undefined || !hasMutatedProps) ? warningWithoutStack$1(false, '%s(...): When calling super() in `%s`, make sure to pass ' + \"up the same props that your component's constructor was passed.\", name, name) : void 0;\n var noInstanceDefaultProps = !instance.defaultProps;\n !noInstanceDefaultProps ? warningWithoutStack$1(false, 'Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name) : void 0;\n\n if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {\n didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);\n warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));\n }\n\n var noInstanceGetDerivedStateFromProps = typeof instance.getDerivedStateFromProps !== 'function';\n !noInstanceGetDerivedStateFromProps ? warningWithoutStack$1(false, '%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name) : void 0;\n var noInstanceGetDerivedStateFromCatch = typeof instance.getDerivedStateFromError !== 'function';\n !noInstanceGetDerivedStateFromCatch ? warningWithoutStack$1(false, '%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name) : void 0;\n var noStaticGetSnapshotBeforeUpdate = typeof ctor.getSnapshotBeforeUpdate !== 'function';\n !noStaticGetSnapshotBeforeUpdate ? warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name) : void 0;\n var _state = instance.state;\n if (_state && (typeof _state !== 'object' || isArray$1(_state))) {\n warningWithoutStack$1(false, '%s.state: must be set to an object or null', name);\n }\n if (typeof instance.getChildContext === 'function') {\n !(typeof ctor.childContextTypes === 'object') ? warningWithoutStack$1(false, '%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name) : void 0;\n }\n }\n}\n\nfunction adoptClassInstance(workInProgress, instance) {\n instance.updater = classComponentUpdater;\n workInProgress.stateNode = instance;\n // The instance needs access to the fiber so that it can schedule updates\n set(instance, workInProgress);\n {\n instance._reactInternalInstance = fakeInternalInstance;\n }\n}\n\nfunction constructClassInstance(workInProgress, ctor, props, renderExpirationTime) {\n var isLegacyContextConsumer = false;\n var unmaskedContext = emptyContextObject;\n var context = null;\n var contextType = ctor.contextType;\n if (typeof contextType === 'object' && contextType !== null) {\n {\n if (contextType.$$typeof !== REACT_CONTEXT_TYPE && !didWarnAboutInvalidateContextType.has(ctor)) {\n didWarnAboutInvalidateContextType.add(ctor);\n warningWithoutStack$1(false, '%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext(). ' + 'Did you accidentally pass the Context.Provider instead?', getComponentName(ctor) || 'Component');\n }\n }\n\n context = readContext(contextType);\n } else {\n unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);\n var contextTypes = ctor.contextTypes;\n isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;\n context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;\n }\n\n // Instantiate twice to help detect side-effects.\n {\n if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {\n new ctor(props, context); // eslint-disable-line no-new\n }\n }\n\n var instance = new ctor(props, context);\n var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;\n adoptClassInstance(workInProgress, instance);\n\n {\n if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {\n var componentName = getComponentName(ctor) || 'Component';\n if (!didWarnAboutUninitializedState.has(componentName)) {\n didWarnAboutUninitializedState.add(componentName);\n warningWithoutStack$1(false, '`%s` uses `getDerivedStateFromProps` but its initial state is ' + '%s. This is not recommended. Instead, define the initial state by ' + 'assigning an object to `this.state` in the constructor of `%s`. ' + 'This ensures that `getDerivedStateFromProps` arguments have a consistent shape.', componentName, instance.state === null ? 'null' : 'undefined', componentName);\n }\n }\n\n // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n // Warn about these lifecycles if they are present.\n // Don't warn about react-lifecycles-compat polyfilled methods though.\n if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {\n var foundWillMountName = null;\n var foundWillReceivePropsName = null;\n var foundWillUpdateName = null;\n if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {\n foundWillMountName = 'componentWillMount';\n } else if (typeof instance.UNSAFE_componentWillMount === 'function') {\n foundWillMountName = 'UNSAFE_componentWillMount';\n }\n if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {\n foundWillReceivePropsName = 'componentWillReceiveProps';\n } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n }\n if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {\n foundWillUpdateName = 'componentWillUpdate';\n } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {\n foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n }\n if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {\n var _componentName = getComponentName(ctor) || 'Component';\n var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';\n if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {\n didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);\n warningWithoutStack$1(false, 'Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\\n\\n' + 'The above lifecycles should be removed. Learn more about this warning here:\\n' + 'https://fb.me/react-async-component-lifecycle-hooks', _componentName, newApiName, foundWillMountName !== null ? '\\n ' + foundWillMountName : '', foundWillReceivePropsName !== null ? '\\n ' + foundWillReceivePropsName : '', foundWillUpdateName !== null ? '\\n ' + foundWillUpdateName : '');\n }\n }\n }\n }\n\n // Cache unmasked context so we can avoid recreating masked context unless necessary.\n // ReactFiberContext usually updates this cache but can't for newly-created instances.\n if (isLegacyContextConsumer) {\n cacheContext(workInProgress, unmaskedContext, context);\n }\n\n return instance;\n}\n\nfunction callComponentWillMount(workInProgress, instance) {\n startPhaseTimer(workInProgress, 'componentWillMount');\n var oldState = instance.state;\n\n if (typeof instance.componentWillMount === 'function') {\n instance.componentWillMount();\n }\n if (typeof instance.UNSAFE_componentWillMount === 'function') {\n instance.UNSAFE_componentWillMount();\n }\n\n stopPhaseTimer();\n\n if (oldState !== instance.state) {\n {\n warningWithoutStack$1(false, '%s.componentWillMount(): Assigning directly to this.state is ' + \"deprecated (except inside a component's \" + 'constructor). Use setState instead.', getComponentName(workInProgress.type) || 'Component');\n }\n classComponentUpdater.enqueueReplaceState(instance, instance.state, null);\n }\n}\n\nfunction callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {\n var oldState = instance.state;\n startPhaseTimer(workInProgress, 'componentWillReceiveProps');\n if (typeof instance.componentWillReceiveProps === 'function') {\n instance.componentWillReceiveProps(newProps, nextContext);\n }\n if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {\n instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);\n }\n stopPhaseTimer();\n\n if (instance.state !== oldState) {\n {\n var componentName = getComponentName(workInProgress.type) || 'Component';\n if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {\n didWarnAboutStateAssignmentForComponent.add(componentName);\n warningWithoutStack$1(false, '%s.componentWillReceiveProps(): Assigning directly to ' + \"this.state is deprecated (except inside a component's \" + 'constructor). Use setState instead.', componentName);\n }\n }\n classComponentUpdater.enqueueReplaceState(instance, instance.state, null);\n }\n}\n\n// Invokes the mount life-cycles on a previously never rendered instance.\nfunction mountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {\n {\n checkClassInstance(workInProgress, ctor, newProps);\n }\n\n var instance = workInProgress.stateNode;\n instance.props = newProps;\n instance.state = workInProgress.memoizedState;\n instance.refs = emptyRefsObject;\n\n var contextType = ctor.contextType;\n if (typeof contextType === 'object' && contextType !== null) {\n instance.context = readContext(contextType);\n } else {\n var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);\n instance.context = getMaskedContext(workInProgress, unmaskedContext);\n }\n\n {\n if (instance.state === newProps) {\n var componentName = getComponentName(ctor) || 'Component';\n if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {\n didWarnAboutDirectlyAssigningPropsToState.add(componentName);\n warningWithoutStack$1(false, '%s: It is not recommended to assign props directly to state ' + \"because updates to props won't be reflected in state. \" + 'In most cases, it is better to use props directly.', componentName);\n }\n }\n\n if (workInProgress.mode & StrictMode) {\n ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);\n\n ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);\n }\n\n if (warnAboutDeprecatedLifecycles) {\n ReactStrictModeWarnings.recordDeprecationWarnings(workInProgress, instance);\n }\n }\n\n var updateQueue = workInProgress.updateQueue;\n if (updateQueue !== null) {\n processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);\n instance.state = workInProgress.memoizedState;\n }\n\n var getDerivedStateFromProps = ctor.getDerivedStateFromProps;\n if (typeof getDerivedStateFromProps === 'function') {\n applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);\n instance.state = workInProgress.memoizedState;\n }\n\n // In order to support react-lifecycles-compat polyfilled components,\n // Unsafe lifecycles should not be invoked for components using the new APIs.\n if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {\n callComponentWillMount(workInProgress, instance);\n // If we had additional state updates during this life-cycle, let's\n // process them now.\n updateQueue = workInProgress.updateQueue;\n if (updateQueue !== null) {\n processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);\n instance.state = workInProgress.memoizedState;\n }\n }\n\n if (typeof instance.componentDidMount === 'function') {\n workInProgress.effectTag |= Update;\n }\n}\n\nfunction resumeMountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {\n var instance = workInProgress.stateNode;\n\n var oldProps = workInProgress.memoizedProps;\n instance.props = oldProps;\n\n var oldContext = instance.context;\n var contextType = ctor.contextType;\n var nextContext = void 0;\n if (typeof contextType === 'object' && contextType !== null) {\n nextContext = readContext(contextType);\n } else {\n var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);\n nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);\n }\n\n var getDerivedStateFromProps = ctor.getDerivedStateFromProps;\n var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';\n\n // Note: During these life-cycles, instance.props/instance.state are what\n // ever the previously attempted to render - not the \"current\". However,\n // during componentDidUpdate we pass the \"current\" props.\n\n // In order to support react-lifecycles-compat polyfilled components,\n // Unsafe lifecycles should not be invoked for components using the new APIs.\n if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {\n if (oldProps !== newProps || oldContext !== nextContext) {\n callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);\n }\n }\n\n resetHasForceUpdateBeforeProcessing();\n\n var oldState = workInProgress.memoizedState;\n var newState = instance.state = oldState;\n var updateQueue = workInProgress.updateQueue;\n if (updateQueue !== null) {\n processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);\n newState = workInProgress.memoizedState;\n }\n if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {\n // If an update was already in progress, we should schedule an Update\n // effect even though we're bailing out, so that cWU/cDU are called.\n if (typeof instance.componentDidMount === 'function') {\n workInProgress.effectTag |= Update;\n }\n return false;\n }\n\n if (typeof getDerivedStateFromProps === 'function') {\n applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);\n newState = workInProgress.memoizedState;\n }\n\n var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);\n\n if (shouldUpdate) {\n // In order to support react-lifecycles-compat polyfilled components,\n // Unsafe lifecycles should not be invoked for components using the new APIs.\n if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {\n startPhaseTimer(workInProgress, 'componentWillMount');\n if (typeof instance.componentWillMount === 'function') {\n instance.componentWillMount();\n }\n if (typeof instance.UNSAFE_componentWillMount === 'function') {\n instance.UNSAFE_componentWillMount();\n }\n stopPhaseTimer();\n }\n if (typeof instance.componentDidMount === 'function') {\n workInProgress.effectTag |= Update;\n }\n } else {\n // If an update was already in progress, we should schedule an Update\n // effect even though we're bailing out, so that cWU/cDU are called.\n if (typeof instance.componentDidMount === 'function') {\n workInProgress.effectTag |= Update;\n }\n\n // If shouldComponentUpdate returned false, we should still update the\n // memoized state to indicate that this work can be reused.\n workInProgress.memoizedProps = newProps;\n workInProgress.memoizedState = newState;\n }\n\n // Update the existing instance's state, props, and context pointers even\n // if shouldComponentUpdate returns false.\n instance.props = newProps;\n instance.state = newState;\n instance.context = nextContext;\n\n return shouldUpdate;\n}\n\n// Invokes the update life-cycles and returns false if it shouldn't rerender.\nfunction updateClassInstance(current, workInProgress, ctor, newProps, renderExpirationTime) {\n var instance = workInProgress.stateNode;\n\n var oldProps = workInProgress.memoizedProps;\n instance.props = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps);\n\n var oldContext = instance.context;\n var contextType = ctor.contextType;\n var nextContext = void 0;\n if (typeof contextType === 'object' && contextType !== null) {\n nextContext = readContext(contextType);\n } else {\n var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);\n nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);\n }\n\n var getDerivedStateFromProps = ctor.getDerivedStateFromProps;\n var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';\n\n // Note: During these life-cycles, instance.props/instance.state are what\n // ever the previously attempted to render - not the \"current\". However,\n // during componentDidUpdate we pass the \"current\" props.\n\n // In order to support react-lifecycles-compat polyfilled components,\n // Unsafe lifecycles should not be invoked for components using the new APIs.\n if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {\n if (oldProps !== newProps || oldContext !== nextContext) {\n callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);\n }\n }\n\n resetHasForceUpdateBeforeProcessing();\n\n var oldState = workInProgress.memoizedState;\n var newState = instance.state = oldState;\n var updateQueue = workInProgress.updateQueue;\n if (updateQueue !== null) {\n processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);\n newState = workInProgress.memoizedState;\n }\n\n if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {\n // If an update was already in progress, we should schedule an Update\n // effect even though we're bailing out, so that cWU/cDU are called.\n if (typeof instance.componentDidUpdate === 'function') {\n if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {\n workInProgress.effectTag |= Update;\n }\n }\n if (typeof instance.getSnapshotBeforeUpdate === 'function') {\n if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {\n workInProgress.effectTag |= Snapshot;\n }\n }\n return false;\n }\n\n if (typeof getDerivedStateFromProps === 'function') {\n applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);\n newState = workInProgress.memoizedState;\n }\n\n var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);\n\n if (shouldUpdate) {\n // In order to support react-lifecycles-compat polyfilled components,\n // Unsafe lifecycles should not be invoked for components using the new APIs.\n if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {\n startPhaseTimer(workInProgress, 'componentWillUpdate');\n if (typeof instance.componentWillUpdate === 'function') {\n instance.componentWillUpdate(newProps, newState, nextContext);\n }\n if (typeof instance.UNSAFE_componentWillUpdate === 'function') {\n instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);\n }\n stopPhaseTimer();\n }\n if (typeof instance.componentDidUpdate === 'function') {\n workInProgress.effectTag |= Update;\n }\n if (typeof instance.getSnapshotBeforeUpdate === 'function') {\n workInProgress.effectTag |= Snapshot;\n }\n } else {\n // If an update was already in progress, we should schedule an Update\n // effect even though we're bailing out, so that cWU/cDU are called.\n if (typeof instance.componentDidUpdate === 'function') {\n if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {\n workInProgress.effectTag |= Update;\n }\n }\n if (typeof instance.getSnapshotBeforeUpdate === 'function') {\n if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {\n workInProgress.effectTag |= Snapshot;\n }\n }\n\n // If shouldComponentUpdate returned false, we should still update the\n // memoized props/state to indicate that this work can be reused.\n workInProgress.memoizedProps = newProps;\n workInProgress.memoizedState = newState;\n }\n\n // Update the existing instance's state, props, and context pointers even\n // if shouldComponentUpdate returns false.\n instance.props = newProps;\n instance.state = newState;\n instance.context = nextContext;\n\n return shouldUpdate;\n}\n\nvar didWarnAboutMaps = void 0;\nvar didWarnAboutGenerators = void 0;\nvar didWarnAboutStringRefInStrictMode = void 0;\nvar ownerHasKeyUseWarning = void 0;\nvar ownerHasFunctionTypeWarning = void 0;\nvar warnForMissingKey = function (child) {};\n\n{\n didWarnAboutMaps = false;\n didWarnAboutGenerators = false;\n didWarnAboutStringRefInStrictMode = {};\n\n /**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n ownerHasKeyUseWarning = {};\n ownerHasFunctionTypeWarning = {};\n\n warnForMissingKey = function (child) {\n if (child === null || typeof child !== 'object') {\n return;\n }\n if (!child._store || child._store.validated || child.key != null) {\n return;\n }\n !(typeof child._store === 'object') ? invariant(false, 'React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n child._store.validated = true;\n\n var currentComponentErrorInfo = 'Each child in a list should have a unique ' + '\"key\" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev();\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true;\n\n warning$1(false, 'Each child in a list should have a unique ' + '\"key\" prop. See https://fb.me/react-warning-keys for ' + 'more information.');\n };\n}\n\nvar isArray = Array.isArray;\n\nfunction coerceRef(returnFiber, current$$1, element) {\n var mixedRef = element.ref;\n if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {\n {\n if (returnFiber.mode & StrictMode) {\n var componentName = getComponentName(returnFiber.type) || 'Component';\n if (!didWarnAboutStringRefInStrictMode[componentName]) {\n warningWithoutStack$1(false, 'A string ref, \"%s\", has been found within a strict mode tree. ' + 'String refs are a source of potential bugs and should be avoided. ' + 'We recommend using createRef() instead.' + '\\n%s' + '\\n\\nLearn more about using refs safely here:' + '\\nhttps://fb.me/react-strict-mode-string-ref', mixedRef, getStackByFiberInDevAndProd(returnFiber));\n didWarnAboutStringRefInStrictMode[componentName] = true;\n }\n }\n }\n\n if (element._owner) {\n var owner = element._owner;\n var inst = void 0;\n if (owner) {\n var ownerFiber = owner;\n !(ownerFiber.tag === ClassComponent) ? invariant(false, 'Function components cannot have refs. Did you mean to use React.forwardRef()?') : void 0;\n inst = ownerFiber.stateNode;\n }\n !inst ? invariant(false, 'Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.', mixedRef) : void 0;\n var stringRef = '' + mixedRef;\n // Check if previous string ref matches new string ref\n if (current$$1 !== null && current$$1.ref !== null && typeof current$$1.ref === 'function' && current$$1.ref._stringRef === stringRef) {\n return current$$1.ref;\n }\n var ref = function (value) {\n var refs = inst.refs;\n if (refs === emptyRefsObject) {\n // This is a lazy pooled frozen object, so we need to initialize.\n refs = inst.refs = {};\n }\n if (value === null) {\n delete refs[stringRef];\n } else {\n refs[stringRef] = value;\n }\n };\n ref._stringRef = stringRef;\n return ref;\n } else {\n !(typeof mixedRef === 'string') ? invariant(false, 'Expected ref to be a function, a string, an object returned by React.createRef(), or null.') : void 0;\n !element._owner ? invariant(false, 'Element ref was specified as a string (%s) but no owner was set. This could happen for one of the following reasons:\\n1. You may be adding a ref to a function component\\n2. You may be adding a ref to a component that was not created inside a component\\'s render method\\n3. You have multiple copies of React loaded\\nSee https://fb.me/react-refs-must-have-owner for more information.', mixedRef) : void 0;\n }\n }\n return mixedRef;\n}\n\nfunction throwOnInvalidObjectType(returnFiber, newChild) {\n if (returnFiber.type !== 'textarea') {\n var addendum = '';\n {\n addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + getCurrentFiberStackInDev();\n }\n invariant(false, 'Objects are not valid as a React child (found: %s).%s', Object.prototype.toString.call(newChild) === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : newChild, addendum);\n }\n}\n\nfunction warnOnFunctionType() {\n var currentComponentErrorInfo = 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.' + getCurrentFiberStackInDev();\n\n if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) {\n return;\n }\n ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true;\n\n warning$1(false, 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.');\n}\n\n// This wrapper function exists because I expect to clone the code in each path\n// to be able to optimize each path individually by branching early. This needs\n// a compiler or we can do it manually. Helpers that don't need this branching\n// live outside of this function.\nfunction ChildReconciler(shouldTrackSideEffects) {\n function deleteChild(returnFiber, childToDelete) {\n if (!shouldTrackSideEffects) {\n // Noop.\n return;\n }\n // Deletions are added in reversed order so we add it to the front.\n // At this point, the return fiber's effect list is empty except for\n // deletions, so we can just append the deletion to the list. The remaining\n // effects aren't added until the complete phase. Once we implement\n // resuming, this may not be true.\n var last = returnFiber.lastEffect;\n if (last !== null) {\n last.nextEffect = childToDelete;\n returnFiber.lastEffect = childToDelete;\n } else {\n returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;\n }\n childToDelete.nextEffect = null;\n childToDelete.effectTag = Deletion;\n }\n\n function deleteRemainingChildren(returnFiber, currentFirstChild) {\n if (!shouldTrackSideEffects) {\n // Noop.\n return null;\n }\n\n // TODO: For the shouldClone case, this could be micro-optimized a bit by\n // assuming that after the first child we've already added everything.\n var childToDelete = currentFirstChild;\n while (childToDelete !== null) {\n deleteChild(returnFiber, childToDelete);\n childToDelete = childToDelete.sibling;\n }\n return null;\n }\n\n function mapRemainingChildren(returnFiber, currentFirstChild) {\n // Add the remaining children to a temporary map so that we can find them by\n // keys quickly. Implicit (null) keys get added to this set with their index\n var existingChildren = new Map();\n\n var existingChild = currentFirstChild;\n while (existingChild !== null) {\n if (existingChild.key !== null) {\n existingChildren.set(existingChild.key, existingChild);\n } else {\n existingChildren.set(existingChild.index, existingChild);\n }\n existingChild = existingChild.sibling;\n }\n return existingChildren;\n }\n\n function useFiber(fiber, pendingProps, expirationTime) {\n // We currently set sibling to null and index to 0 here because it is easy\n // to forget to do before returning it. E.g. for the single child case.\n var clone = createWorkInProgress(fiber, pendingProps, expirationTime);\n clone.index = 0;\n clone.sibling = null;\n return clone;\n }\n\n function placeChild(newFiber, lastPlacedIndex, newIndex) {\n newFiber.index = newIndex;\n if (!shouldTrackSideEffects) {\n // Noop.\n return lastPlacedIndex;\n }\n var current$$1 = newFiber.alternate;\n if (current$$1 !== null) {\n var oldIndex = current$$1.index;\n if (oldIndex < lastPlacedIndex) {\n // This is a move.\n newFiber.effectTag = Placement;\n return lastPlacedIndex;\n } else {\n // This item can stay in place.\n return oldIndex;\n }\n } else {\n // This is an insertion.\n newFiber.effectTag = Placement;\n return lastPlacedIndex;\n }\n }\n\n function placeSingleChild(newFiber) {\n // This is simpler for the single child case. We only need to do a\n // placement for inserting new children.\n if (shouldTrackSideEffects && newFiber.alternate === null) {\n newFiber.effectTag = Placement;\n }\n return newFiber;\n }\n\n function updateTextNode(returnFiber, current$$1, textContent, expirationTime) {\n if (current$$1 === null || current$$1.tag !== HostText) {\n // Insert\n var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);\n created.return = returnFiber;\n return created;\n } else {\n // Update\n var existing = useFiber(current$$1, textContent, expirationTime);\n existing.return = returnFiber;\n return existing;\n }\n }\n\n function updateElement(returnFiber, current$$1, element, expirationTime) {\n if (current$$1 !== null && current$$1.elementType === element.type) {\n // Move based on index\n var existing = useFiber(current$$1, element.props, expirationTime);\n existing.ref = coerceRef(returnFiber, current$$1, element);\n existing.return = returnFiber;\n {\n existing._debugSource = element._source;\n existing._debugOwner = element._owner;\n }\n return existing;\n } else {\n // Insert\n var created = createFiberFromElement(element, returnFiber.mode, expirationTime);\n created.ref = coerceRef(returnFiber, current$$1, element);\n created.return = returnFiber;\n return created;\n }\n }\n\n function updatePortal(returnFiber, current$$1, portal, expirationTime) {\n if (current$$1 === null || current$$1.tag !== HostPortal || current$$1.stateNode.containerInfo !== portal.containerInfo || current$$1.stateNode.implementation !== portal.implementation) {\n // Insert\n var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);\n created.return = returnFiber;\n return created;\n } else {\n // Update\n var existing = useFiber(current$$1, portal.children || [], expirationTime);\n existing.return = returnFiber;\n return existing;\n }\n }\n\n function updateFragment(returnFiber, current$$1, fragment, expirationTime, key) {\n if (current$$1 === null || current$$1.tag !== Fragment) {\n // Insert\n var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);\n created.return = returnFiber;\n return created;\n } else {\n // Update\n var existing = useFiber(current$$1, fragment, expirationTime);\n existing.return = returnFiber;\n return existing;\n }\n }\n\n function createChild(returnFiber, newChild, expirationTime) {\n if (typeof newChild === 'string' || typeof newChild === 'number') {\n // Text nodes don't have keys. If the previous node is implicitly keyed\n // we can continue to replace it without aborting even if it is not a text\n // node.\n var created = createFiberFromText('' + newChild, returnFiber.mode, expirationTime);\n created.return = returnFiber;\n return created;\n }\n\n if (typeof newChild === 'object' && newChild !== null) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n {\n var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime);\n _created.ref = coerceRef(returnFiber, null, newChild);\n _created.return = returnFiber;\n return _created;\n }\n case REACT_PORTAL_TYPE:\n {\n var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime);\n _created2.return = returnFiber;\n return _created2;\n }\n }\n\n if (isArray(newChild) || getIteratorFn(newChild)) {\n var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null);\n _created3.return = returnFiber;\n return _created3;\n }\n\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n\n {\n if (typeof newChild === 'function') {\n warnOnFunctionType();\n }\n }\n\n return null;\n }\n\n function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {\n // Update the fiber if the keys match, otherwise return null.\n\n var key = oldFiber !== null ? oldFiber.key : null;\n\n if (typeof newChild === 'string' || typeof newChild === 'number') {\n // Text nodes don't have keys. If the previous node is implicitly keyed\n // we can continue to replace it without aborting even if it is not a text\n // node.\n if (key !== null) {\n return null;\n }\n return updateTextNode(returnFiber, oldFiber, '' + newChild, expirationTime);\n }\n\n if (typeof newChild === 'object' && newChild !== null) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n {\n if (newChild.key === key) {\n if (newChild.type === REACT_FRAGMENT_TYPE) {\n return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key);\n }\n return updateElement(returnFiber, oldFiber, newChild, expirationTime);\n } else {\n return null;\n }\n }\n case REACT_PORTAL_TYPE:\n {\n if (newChild.key === key) {\n return updatePortal(returnFiber, oldFiber, newChild, expirationTime);\n } else {\n return null;\n }\n }\n }\n\n if (isArray(newChild) || getIteratorFn(newChild)) {\n if (key !== null) {\n return null;\n }\n\n return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null);\n }\n\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n\n {\n if (typeof newChild === 'function') {\n warnOnFunctionType();\n }\n }\n\n return null;\n }\n\n function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) {\n if (typeof newChild === 'string' || typeof newChild === 'number') {\n // Text nodes don't have keys, so we neither have to check the old nor\n // new node for the key. If both are text nodes, they match.\n var matchedFiber = existingChildren.get(newIdx) || null;\n return updateTextNode(returnFiber, matchedFiber, '' + newChild, expirationTime);\n }\n\n if (typeof newChild === 'object' && newChild !== null) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n {\n var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;\n if (newChild.type === REACT_FRAGMENT_TYPE) {\n return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key);\n }\n return updateElement(returnFiber, _matchedFiber, newChild, expirationTime);\n }\n case REACT_PORTAL_TYPE:\n {\n var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;\n return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime);\n }\n }\n\n if (isArray(newChild) || getIteratorFn(newChild)) {\n var _matchedFiber3 = existingChildren.get(newIdx) || null;\n return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null);\n }\n\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n\n {\n if (typeof newChild === 'function') {\n warnOnFunctionType();\n }\n }\n\n return null;\n }\n\n /**\n * Warns if there is a duplicate or missing key\n */\n function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n if (typeof key !== 'string') {\n break;\n }\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n warning$1(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);\n break;\n default:\n break;\n }\n }\n return knownKeys;\n }\n\n function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) {\n // This algorithm can't optimize by searching from both ends since we\n // don't have backpointers on fibers. I'm trying to see how far we can get\n // with that model. If it ends up not being worth the tradeoffs, we can\n // add it later.\n\n // Even with a two ended optimization, we'd want to optimize for the case\n // where there are few changes and brute force the comparison instead of\n // going for the Map. It'd like to explore hitting that path first in\n // forward-only mode and only go for the Map once we notice that we need\n // lots of look ahead. This doesn't handle reversal as well as two ended\n // search but that's unusual. Besides, for the two ended optimization to\n // work on Iterables, we'd need to copy the whole set.\n\n // In this first iteration, we'll just live with hitting the bad case\n // (adding everything to a Map) in for every insert/move.\n\n // If you change this code, also update reconcileChildrenIterator() which\n // uses the same algorithm.\n\n {\n // First, validate keys.\n var knownKeys = null;\n for (var i = 0; i < newChildren.length; i++) {\n var child = newChildren[i];\n knownKeys = warnOnInvalidKey(child, knownKeys);\n }\n }\n\n var resultingFirstChild = null;\n var previousNewFiber = null;\n\n var oldFiber = currentFirstChild;\n var lastPlacedIndex = 0;\n var newIdx = 0;\n var nextOldFiber = null;\n for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {\n if (oldFiber.index > newIdx) {\n nextOldFiber = oldFiber;\n oldFiber = null;\n } else {\n nextOldFiber = oldFiber.sibling;\n }\n var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime);\n if (newFiber === null) {\n // TODO: This breaks on empty slots like null children. That's\n // unfortunate because it triggers the slow path all the time. We need\n // a better way to communicate whether this was a miss or null,\n // boolean, undefined, etc.\n if (oldFiber === null) {\n oldFiber = nextOldFiber;\n }\n break;\n }\n if (shouldTrackSideEffects) {\n if (oldFiber && newFiber.alternate === null) {\n // We matched the slot, but we didn't reuse the existing fiber, so we\n // need to delete the existing child.\n deleteChild(returnFiber, oldFiber);\n }\n }\n lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);\n if (previousNewFiber === null) {\n // TODO: Move out of the loop. This only happens for the first run.\n resultingFirstChild = newFiber;\n } else {\n // TODO: Defer siblings if we're not at the right index for this slot.\n // I.e. if we had null values before, then we want to defer this\n // for each null value. However, we also don't want to call updateSlot\n // with the previous one.\n previousNewFiber.sibling = newFiber;\n }\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n\n if (newIdx === newChildren.length) {\n // We've reached the end of the new children. We can delete the rest.\n deleteRemainingChildren(returnFiber, oldFiber);\n return resultingFirstChild;\n }\n\n if (oldFiber === null) {\n // If we don't have any more existing children we can choose a fast path\n // since the rest will all be insertions.\n for (; newIdx < newChildren.length; newIdx++) {\n var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime);\n if (!_newFiber) {\n continue;\n }\n lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);\n if (previousNewFiber === null) {\n // TODO: Move out of the loop. This only happens for the first run.\n resultingFirstChild = _newFiber;\n } else {\n previousNewFiber.sibling = _newFiber;\n }\n previousNewFiber = _newFiber;\n }\n return resultingFirstChild;\n }\n\n // Add all children to a key map for quick lookups.\n var existingChildren = mapRemainingChildren(returnFiber, oldFiber);\n\n // Keep scanning and use the map to restore deleted items as moves.\n for (; newIdx < newChildren.length; newIdx++) {\n var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime);\n if (_newFiber2) {\n if (shouldTrackSideEffects) {\n if (_newFiber2.alternate !== null) {\n // The new fiber is a work in progress, but if there exists a\n // current, that means that we reused the fiber. We need to delete\n // it from the child list so that we don't add it to the deletion\n // list.\n existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);\n }\n }\n lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);\n if (previousNewFiber === null) {\n resultingFirstChild = _newFiber2;\n } else {\n previousNewFiber.sibling = _newFiber2;\n }\n previousNewFiber = _newFiber2;\n }\n }\n\n if (shouldTrackSideEffects) {\n // Any existing children that weren't consumed above were deleted. We need\n // to add them to the deletion list.\n existingChildren.forEach(function (child) {\n return deleteChild(returnFiber, child);\n });\n }\n\n return resultingFirstChild;\n }\n\n function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) {\n // This is the same implementation as reconcileChildrenArray(),\n // but using the iterator instead.\n\n var iteratorFn = getIteratorFn(newChildrenIterable);\n !(typeof iteratorFn === 'function') ? invariant(false, 'An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n\n {\n // We don't support rendering Generators because it's a mutation.\n // See https://github.com/facebook/react/issues/12995\n if (typeof Symbol === 'function' &&\n // $FlowFixMe Flow doesn't know about toStringTag\n newChildrenIterable[Symbol.toStringTag] === 'Generator') {\n !didWarnAboutGenerators ? warning$1(false, 'Using Generators as children is unsupported and will likely yield ' + 'unexpected results because enumerating a generator mutates it. ' + 'You may convert it to an array with `Array.from()` or the ' + '`[...spread]` operator before rendering. Keep in mind ' + 'you might need to polyfill these features for older browsers.') : void 0;\n didWarnAboutGenerators = true;\n }\n\n // Warn about using Maps as children\n if (newChildrenIterable.entries === iteratorFn) {\n !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;\n didWarnAboutMaps = true;\n }\n\n // First, validate keys.\n // We'll get a different iterator later for the main pass.\n var _newChildren = iteratorFn.call(newChildrenIterable);\n if (_newChildren) {\n var knownKeys = null;\n var _step = _newChildren.next();\n for (; !_step.done; _step = _newChildren.next()) {\n var child = _step.value;\n knownKeys = warnOnInvalidKey(child, knownKeys);\n }\n }\n }\n\n var newChildren = iteratorFn.call(newChildrenIterable);\n !(newChildren != null) ? invariant(false, 'An iterable object provided no iterator.') : void 0;\n\n var resultingFirstChild = null;\n var previousNewFiber = null;\n\n var oldFiber = currentFirstChild;\n var lastPlacedIndex = 0;\n var newIdx = 0;\n var nextOldFiber = null;\n\n var step = newChildren.next();\n for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {\n if (oldFiber.index > newIdx) {\n nextOldFiber = oldFiber;\n oldFiber = null;\n } else {\n nextOldFiber = oldFiber.sibling;\n }\n var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime);\n if (newFiber === null) {\n // TODO: This breaks on empty slots like null children. That's\n // unfortunate because it triggers the slow path all the time. We need\n // a better way to communicate whether this was a miss or null,\n // boolean, undefined, etc.\n if (!oldFiber) {\n oldFiber = nextOldFiber;\n }\n break;\n }\n if (shouldTrackSideEffects) {\n if (oldFiber && newFiber.alternate === null) {\n // We matched the slot, but we didn't reuse the existing fiber, so we\n // need to delete the existing child.\n deleteChild(returnFiber, oldFiber);\n }\n }\n lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);\n if (previousNewFiber === null) {\n // TODO: Move out of the loop. This only happens for the first run.\n resultingFirstChild = newFiber;\n } else {\n // TODO: Defer siblings if we're not at the right index for this slot.\n // I.e. if we had null values before, then we want to defer this\n // for each null value. However, we also don't want to call updateSlot\n // with the previous one.\n previousNewFiber.sibling = newFiber;\n }\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n\n if (step.done) {\n // We've reached the end of the new children. We can delete the rest.\n deleteRemainingChildren(returnFiber, oldFiber);\n return resultingFirstChild;\n }\n\n if (oldFiber === null) {\n // If we don't have any more existing children we can choose a fast path\n // since the rest will all be insertions.\n for (; !step.done; newIdx++, step = newChildren.next()) {\n var _newFiber3 = createChild(returnFiber, step.value, expirationTime);\n if (_newFiber3 === null) {\n continue;\n }\n lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);\n if (previousNewFiber === null) {\n // TODO: Move out of the loop. This only happens for the first run.\n resultingFirstChild = _newFiber3;\n } else {\n previousNewFiber.sibling = _newFiber3;\n }\n previousNewFiber = _newFiber3;\n }\n return resultingFirstChild;\n }\n\n // Add all children to a key map for quick lookups.\n var existingChildren = mapRemainingChildren(returnFiber, oldFiber);\n\n // Keep scanning and use the map to restore deleted items as moves.\n for (; !step.done; newIdx++, step = newChildren.next()) {\n var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime);\n if (_newFiber4 !== null) {\n if (shouldTrackSideEffects) {\n if (_newFiber4.alternate !== null) {\n // The new fiber is a work in progress, but if there exists a\n // current, that means that we reused the fiber. We need to delete\n // it from the child list so that we don't add it to the deletion\n // list.\n existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);\n }\n }\n lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);\n if (previousNewFiber === null) {\n resultingFirstChild = _newFiber4;\n } else {\n previousNewFiber.sibling = _newFiber4;\n }\n previousNewFiber = _newFiber4;\n }\n }\n\n if (shouldTrackSideEffects) {\n // Any existing children that weren't consumed above were deleted. We need\n // to add them to the deletion list.\n existingChildren.forEach(function (child) {\n return deleteChild(returnFiber, child);\n });\n }\n\n return resultingFirstChild;\n }\n\n function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) {\n // There's no need to check for keys on text nodes since we don't have a\n // way to define them.\n if (currentFirstChild !== null && currentFirstChild.tag === HostText) {\n // We already have an existing node so let's just update it and delete\n // the rest.\n deleteRemainingChildren(returnFiber, currentFirstChild.sibling);\n var existing = useFiber(currentFirstChild, textContent, expirationTime);\n existing.return = returnFiber;\n return existing;\n }\n // The existing first child is not a text node so we need to create one\n // and delete the existing ones.\n deleteRemainingChildren(returnFiber, currentFirstChild);\n var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);\n created.return = returnFiber;\n return created;\n }\n\n function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) {\n var key = element.key;\n var child = currentFirstChild;\n while (child !== null) {\n // TODO: If key === null and child.key === null, then this only applies to\n // the first item in the list.\n if (child.key === key) {\n if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.elementType === element.type) {\n deleteRemainingChildren(returnFiber, child.sibling);\n var existing = useFiber(child, element.type === REACT_FRAGMENT_TYPE ? element.props.children : element.props, expirationTime);\n existing.ref = coerceRef(returnFiber, child, element);\n existing.return = returnFiber;\n {\n existing._debugSource = element._source;\n existing._debugOwner = element._owner;\n }\n return existing;\n } else {\n deleteRemainingChildren(returnFiber, child);\n break;\n }\n } else {\n deleteChild(returnFiber, child);\n }\n child = child.sibling;\n }\n\n if (element.type === REACT_FRAGMENT_TYPE) {\n var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key);\n created.return = returnFiber;\n return created;\n } else {\n var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime);\n _created4.ref = coerceRef(returnFiber, currentFirstChild, element);\n _created4.return = returnFiber;\n return _created4;\n }\n }\n\n function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) {\n var key = portal.key;\n var child = currentFirstChild;\n while (child !== null) {\n // TODO: If key === null and child.key === null, then this only applies to\n // the first item in the list.\n if (child.key === key) {\n if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {\n deleteRemainingChildren(returnFiber, child.sibling);\n var existing = useFiber(child, portal.children || [], expirationTime);\n existing.return = returnFiber;\n return existing;\n } else {\n deleteRemainingChildren(returnFiber, child);\n break;\n }\n } else {\n deleteChild(returnFiber, child);\n }\n child = child.sibling;\n }\n\n var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);\n created.return = returnFiber;\n return created;\n }\n\n // This API will tag the children with the side-effect of the reconciliation\n // itself. They will be added to the side-effect list as we pass through the\n // children and the parent.\n function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) {\n // This function is not recursive.\n // If the top level item is an array, we treat it as a set of children,\n // not as a fragment. Nested arrays on the other hand will be treated as\n // fragment nodes. Recursion happens at the normal flow.\n\n // Handle top level unkeyed fragments as if they were arrays.\n // This leads to an ambiguity between <>{[...]}</> and <>...</>.\n // We treat the ambiguous cases above the same.\n var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;\n if (isUnkeyedTopLevelFragment) {\n newChild = newChild.props.children;\n }\n\n // Handle object types\n var isObject = typeof newChild === 'object' && newChild !== null;\n\n if (isObject) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime));\n case REACT_PORTAL_TYPE:\n return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime));\n }\n }\n\n if (typeof newChild === 'string' || typeof newChild === 'number') {\n return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, expirationTime));\n }\n\n if (isArray(newChild)) {\n return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime);\n }\n\n if (getIteratorFn(newChild)) {\n return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime);\n }\n\n if (isObject) {\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n\n {\n if (typeof newChild === 'function') {\n warnOnFunctionType();\n }\n }\n if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) {\n // If the new child is undefined, and the return fiber is a composite\n // component, throw an error. If Fiber return types are disabled,\n // we already threw above.\n switch (returnFiber.tag) {\n case ClassComponent:\n {\n {\n var instance = returnFiber.stateNode;\n if (instance.render._isMockFunction) {\n // We allow auto-mocks to proceed as if they're returning null.\n break;\n }\n }\n }\n // Intentionally fall through to the next case, which handles both\n // functions and classes\n // eslint-disable-next-lined no-fallthrough\n case FunctionComponent:\n {\n var Component = returnFiber.type;\n invariant(false, '%s(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.', Component.displayName || Component.name || 'Component');\n }\n }\n }\n\n // Remaining cases are all treated as empty.\n return deleteRemainingChildren(returnFiber, currentFirstChild);\n }\n\n return reconcileChildFibers;\n}\n\nvar reconcileChildFibers = ChildReconciler(true);\nvar mountChildFibers = ChildReconciler(false);\n\nfunction cloneChildFibers(current$$1, workInProgress) {\n !(current$$1 === null || workInProgress.child === current$$1.child) ? invariant(false, 'Resuming work not yet implemented.') : void 0;\n\n if (workInProgress.child === null) {\n return;\n }\n\n var currentChild = workInProgress.child;\n var newChild = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);\n workInProgress.child = newChild;\n\n newChild.return = workInProgress;\n while (currentChild.sibling !== null) {\n currentChild = currentChild.sibling;\n newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);\n newChild.return = workInProgress;\n }\n newChild.sibling = null;\n}\n\nvar NO_CONTEXT = {};\n\nvar contextStackCursor$1 = createCursor(NO_CONTEXT);\nvar contextFiberStackCursor = createCursor(NO_CONTEXT);\nvar rootInstanceStackCursor = createCursor(NO_CONTEXT);\n\nfunction requiredContext(c) {\n !(c !== NO_CONTEXT) ? invariant(false, 'Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n return c;\n}\n\nfunction getRootHostContainer() {\n var rootInstance = requiredContext(rootInstanceStackCursor.current);\n return rootInstance;\n}\n\nfunction pushHostContainer(fiber, nextRootInstance) {\n // Push current root instance onto the stack;\n // This allows us to reset root when portals are popped.\n push(rootInstanceStackCursor, nextRootInstance, fiber);\n // Track the context and the Fiber that provided it.\n // This enables us to pop only Fibers that provide unique contexts.\n push(contextFiberStackCursor, fiber, fiber);\n\n // Finally, we need to push the host context to the stack.\n // However, we can't just call getRootHostContext() and push it because\n // we'd have a different number of entries on the stack depending on\n // whether getRootHostContext() throws somewhere in renderer code or not.\n // So we push an empty value first. This lets us safely unwind on errors.\n push(contextStackCursor$1, NO_CONTEXT, fiber);\n var nextRootContext = getRootHostContext(nextRootInstance);\n // Now that we know this function doesn't throw, replace it.\n pop(contextStackCursor$1, fiber);\n push(contextStackCursor$1, nextRootContext, fiber);\n}\n\nfunction popHostContainer(fiber) {\n pop(contextStackCursor$1, fiber);\n pop(contextFiberStackCursor, fiber);\n pop(rootInstanceStackCursor, fiber);\n}\n\nfunction getHostContext() {\n var context = requiredContext(contextStackCursor$1.current);\n return context;\n}\n\nfunction pushHostContext(fiber) {\n var rootInstance = requiredContext(rootInstanceStackCursor.current);\n var context = requiredContext(contextStackCursor$1.current);\n var nextContext = getChildHostContext(context, fiber.type, rootInstance);\n\n // Don't push this Fiber's context unless it's unique.\n if (context === nextContext) {\n return;\n }\n\n // Track the context and the Fiber that provided it.\n // This enables us to pop only Fibers that provide unique contexts.\n push(contextFiberStackCursor, fiber, fiber);\n push(contextStackCursor$1, nextContext, fiber);\n}\n\nfunction popHostContext(fiber) {\n // Do not pop unless this Fiber provided the current context.\n // pushHostContext() only pushes Fibers that provide unique contexts.\n if (contextFiberStackCursor.current !== fiber) {\n return;\n }\n\n pop(contextStackCursor$1, fiber);\n pop(contextFiberStackCursor, fiber);\n}\n\nvar NoEffect$1 = /* */0;\nvar UnmountSnapshot = /* */2;\nvar UnmountMutation = /* */4;\nvar MountMutation = /* */8;\nvar UnmountLayout = /* */16;\nvar MountLayout = /* */32;\nvar MountPassive = /* */64;\nvar UnmountPassive = /* */128;\n\nvar ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;\n\n\nvar didWarnAboutMismatchedHooksForComponent = void 0;\n{\n didWarnAboutMismatchedHooksForComponent = new Set();\n}\n\n// These are set right before calling the component.\nvar renderExpirationTime = NoWork;\n// The work-in-progress fiber. I've named it differently to distinguish it from\n// the work-in-progress hook.\nvar currentlyRenderingFiber$1 = null;\n\n// Hooks are stored as a linked list on the fiber's memoizedState field. The\n// current hook list is the list that belongs to the current fiber. The\n// work-in-progress hook list is a new list that will be added to the\n// work-in-progress fiber.\nvar currentHook = null;\nvar nextCurrentHook = null;\nvar firstWorkInProgressHook = null;\nvar workInProgressHook = null;\nvar nextWorkInProgressHook = null;\n\nvar remainingExpirationTime = NoWork;\nvar componentUpdateQueue = null;\nvar sideEffectTag = 0;\n\n// Updates scheduled during render will trigger an immediate re-render at the\n// end of the current pass. We can't store these updates on the normal queue,\n// because if the work is aborted, they should be discarded. Because this is\n// a relatively rare case, we also don't want to add an additional field to\n// either the hook or queue object types. So we store them in a lazily create\n// map of queue -> render-phase updates, which are discarded once the component\n// completes without re-rendering.\n\n// Whether an update was scheduled during the currently executing render pass.\nvar didScheduleRenderPhaseUpdate = false;\n// Lazily created map of render-phase updates\nvar renderPhaseUpdates = null;\n// Counter to prevent infinite loops.\nvar numberOfReRenders = 0;\nvar RE_RENDER_LIMIT = 25;\n\n// In DEV, this is the name of the currently executing primitive hook\nvar currentHookNameInDev = null;\n\n// In DEV, this list ensures that hooks are called in the same order between renders.\n// The list stores the order of hooks used during the initial render (mount).\n// Subsequent renders (updates) reference this list.\nvar hookTypesDev = null;\nvar hookTypesUpdateIndexDev = -1;\n\nfunction mountHookTypesDev() {\n {\n var hookName = currentHookNameInDev;\n\n if (hookTypesDev === null) {\n hookTypesDev = [hookName];\n } else {\n hookTypesDev.push(hookName);\n }\n }\n}\n\nfunction updateHookTypesDev() {\n {\n var hookName = currentHookNameInDev;\n\n if (hookTypesDev !== null) {\n hookTypesUpdateIndexDev++;\n if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) {\n warnOnHookMismatchInDev(hookName);\n }\n }\n }\n}\n\nfunction warnOnHookMismatchInDev(currentHookName) {\n {\n var componentName = getComponentName(currentlyRenderingFiber$1.type);\n if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) {\n didWarnAboutMismatchedHooksForComponent.add(componentName);\n\n if (hookTypesDev !== null) {\n var table = '';\n\n var secondColumnStart = 30;\n\n for (var i = 0; i <= hookTypesUpdateIndexDev; i++) {\n var oldHookName = hookTypesDev[i];\n var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName;\n\n var row = i + 1 + '. ' + oldHookName;\n\n // Extra space so second column lines up\n // lol @ IE not supporting String#repeat\n while (row.length < secondColumnStart) {\n row += ' ';\n }\n\n row += newHookName + '\\n';\n\n table += row;\n }\n\n warning$1(false, 'React has detected a change in the order of Hooks called by %s. ' + 'This will lead to bugs and errors if not fixed. ' + 'For more information, read the Rules of Hooks: https://fb.me/rules-of-hooks\\n\\n' + ' Previous render Next render\\n' + ' ------------------------------------------------------\\n' + '%s' + ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n', componentName, table);\n }\n }\n }\n}\n\nfunction throwInvalidHookError() {\n invariant(false, 'Hooks can only be called inside the body of a function component. (https://fb.me/react-invalid-hook-call)');\n}\n\nfunction areHookInputsEqual(nextDeps, prevDeps) {\n if (prevDeps === null) {\n {\n warning$1(false, '%s received a final argument during this render, but not during ' + 'the previous render. Even though the final argument is optional, ' + 'its type cannot change between renders.', currentHookNameInDev);\n }\n return false;\n }\n\n {\n // Don't bother comparing lengths in prod because these arrays should be\n // passed inline.\n if (nextDeps.length !== prevDeps.length) {\n warning$1(false, 'The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\\n\\n' + 'Previous: %s\\n' + 'Incoming: %s', currentHookNameInDev, '[' + nextDeps.join(', ') + ']', '[' + prevDeps.join(', ') + ']');\n }\n }\n for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {\n if (is(nextDeps[i], prevDeps[i])) {\n continue;\n }\n return false;\n }\n return true;\n}\n\nfunction renderWithHooks(current, workInProgress, Component, props, refOrContext, nextRenderExpirationTime) {\n renderExpirationTime = nextRenderExpirationTime;\n currentlyRenderingFiber$1 = workInProgress;\n nextCurrentHook = current !== null ? current.memoizedState : null;\n\n {\n hookTypesDev = current !== null ? current._debugHookTypes : null;\n hookTypesUpdateIndexDev = -1;\n }\n\n // The following should have already been reset\n // currentHook = null;\n // workInProgressHook = null;\n\n // remainingExpirationTime = NoWork;\n // componentUpdateQueue = null;\n\n // didScheduleRenderPhaseUpdate = false;\n // renderPhaseUpdates = null;\n // numberOfReRenders = 0;\n // sideEffectTag = 0;\n\n // TODO Warn if no hooks are used at all during mount, then some are used during update.\n // Currently we will identify the update render as a mount because nextCurrentHook === null.\n // This is tricky because it's valid for certain types of components (e.g. React.lazy)\n\n // Using nextCurrentHook to differentiate between mount/update only works if at least one stateful hook is used.\n // Non-stateful hooks (e.g. context) don't get added to memoizedState,\n // so nextCurrentHook would be null during updates and mounts.\n {\n if (nextCurrentHook !== null) {\n ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV;\n } else if (hookTypesDev !== null) {\n // This dispatcher handles an edge case where a component is updating,\n // but no stateful hooks have been used.\n // We want to match the production code behavior (which will use HooksDispatcherOnMount),\n // but with the extra DEV validation to ensure hooks ordering hasn't changed.\n // This dispatcher does that.\n ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV;\n } else {\n ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV;\n }\n }\n\n var children = Component(props, refOrContext);\n\n if (didScheduleRenderPhaseUpdate) {\n do {\n didScheduleRenderPhaseUpdate = false;\n numberOfReRenders += 1;\n\n // Start over from the beginning of the list\n nextCurrentHook = current !== null ? current.memoizedState : null;\n nextWorkInProgressHook = firstWorkInProgressHook;\n\n currentHook = null;\n workInProgressHook = null;\n componentUpdateQueue = null;\n\n {\n // Also validate hook order for cascading updates.\n hookTypesUpdateIndexDev = -1;\n }\n\n ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV;\n\n children = Component(props, refOrContext);\n } while (didScheduleRenderPhaseUpdate);\n\n renderPhaseUpdates = null;\n numberOfReRenders = 0;\n }\n\n // We can assume the previous dispatcher is always this one, since we set it\n // at the beginning of the render phase and there's no re-entrancy.\n ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;\n\n var renderedWork = currentlyRenderingFiber$1;\n\n renderedWork.memoizedState = firstWorkInProgressHook;\n renderedWork.expirationTime = remainingExpirationTime;\n renderedWork.updateQueue = componentUpdateQueue;\n renderedWork.effectTag |= sideEffectTag;\n\n {\n renderedWork._debugHookTypes = hookTypesDev;\n }\n\n // This check uses currentHook so that it works the same in DEV and prod bundles.\n // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles.\n var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;\n\n renderExpirationTime = NoWork;\n currentlyRenderingFiber$1 = null;\n\n currentHook = null;\n nextCurrentHook = null;\n firstWorkInProgressHook = null;\n workInProgressHook = null;\n nextWorkInProgressHook = null;\n\n {\n currentHookNameInDev = null;\n hookTypesDev = null;\n hookTypesUpdateIndexDev = -1;\n }\n\n remainingExpirationTime = NoWork;\n componentUpdateQueue = null;\n sideEffectTag = 0;\n\n // These were reset above\n // didScheduleRenderPhaseUpdate = false;\n // renderPhaseUpdates = null;\n // numberOfReRenders = 0;\n\n !!didRenderTooFewHooks ? invariant(false, 'Rendered fewer hooks than expected. This may be caused by an accidental early return statement.') : void 0;\n\n return children;\n}\n\nfunction bailoutHooks(current, workInProgress, expirationTime) {\n workInProgress.updateQueue = current.updateQueue;\n workInProgress.effectTag &= ~(Passive | Update);\n if (current.expirationTime <= expirationTime) {\n current.expirationTime = NoWork;\n }\n}\n\nfunction resetHooks() {\n // We can assume the previous dispatcher is always this one, since we set it\n // at the beginning of the render phase and there's no re-entrancy.\n ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;\n\n // This is used to reset the state of this module when a component throws.\n // It's also called inside mountIndeterminateComponent if we determine the\n // component is a module-style component.\n renderExpirationTime = NoWork;\n currentlyRenderingFiber$1 = null;\n\n currentHook = null;\n nextCurrentHook = null;\n firstWorkInProgressHook = null;\n workInProgressHook = null;\n nextWorkInProgressHook = null;\n\n {\n hookTypesDev = null;\n hookTypesUpdateIndexDev = -1;\n\n currentHookNameInDev = null;\n }\n\n remainingExpirationTime = NoWork;\n componentUpdateQueue = null;\n sideEffectTag = 0;\n\n didScheduleRenderPhaseUpdate = false;\n renderPhaseUpdates = null;\n numberOfReRenders = 0;\n}\n\nfunction mountWorkInProgressHook() {\n var hook = {\n memoizedState: null,\n\n baseState: null,\n queue: null,\n baseUpdate: null,\n\n next: null\n };\n\n if (workInProgressHook === null) {\n // This is the first hook in the list\n firstWorkInProgressHook = workInProgressHook = hook;\n } else {\n // Append to the end of the list\n workInProgressHook = workInProgressHook.next = hook;\n }\n return workInProgressHook;\n}\n\nfunction updateWorkInProgressHook() {\n // This function is used both for updates and for re-renders triggered by a\n // render phase update. It assumes there is either a current hook we can\n // clone, or a work-in-progress hook from a previous render pass that we can\n // use as a base. When we reach the end of the base list, we must switch to\n // the dispatcher used for mounts.\n if (nextWorkInProgressHook !== null) {\n // There's already a work-in-progress. Reuse it.\n workInProgressHook = nextWorkInProgressHook;\n nextWorkInProgressHook = workInProgressHook.next;\n\n currentHook = nextCurrentHook;\n nextCurrentHook = currentHook !== null ? currentHook.next : null;\n } else {\n // Clone from the current hook.\n !(nextCurrentHook !== null) ? invariant(false, 'Rendered more hooks than during the previous render.') : void 0;\n currentHook = nextCurrentHook;\n\n var newHook = {\n memoizedState: currentHook.memoizedState,\n\n baseState: currentHook.baseState,\n queue: currentHook.queue,\n baseUpdate: currentHook.baseUpdate,\n\n next: null\n };\n\n if (workInProgressHook === null) {\n // This is the first hook in the list.\n workInProgressHook = firstWorkInProgressHook = newHook;\n } else {\n // Append to the end of the list.\n workInProgressHook = workInProgressHook.next = newHook;\n }\n nextCurrentHook = currentHook.next;\n }\n return workInProgressHook;\n}\n\nfunction createFunctionComponentUpdateQueue() {\n return {\n lastEffect: null\n };\n}\n\nfunction basicStateReducer(state, action) {\n return typeof action === 'function' ? action(state) : action;\n}\n\nfunction mountReducer(reducer, initialArg, init) {\n var hook = mountWorkInProgressHook();\n var initialState = void 0;\n if (init !== undefined) {\n initialState = init(initialArg);\n } else {\n initialState = initialArg;\n }\n hook.memoizedState = hook.baseState = initialState;\n var queue = hook.queue = {\n last: null,\n dispatch: null,\n eagerReducer: reducer,\n eagerState: initialState\n };\n var dispatch = queue.dispatch = dispatchAction.bind(null,\n // Flow doesn't know this is non-null, but we do.\n currentlyRenderingFiber$1, queue);\n return [hook.memoizedState, dispatch];\n}\n\nfunction updateReducer(reducer, initialArg, init) {\n var hook = updateWorkInProgressHook();\n var queue = hook.queue;\n !(queue !== null) ? invariant(false, 'Should have a queue. This is likely a bug in React. Please file an issue.') : void 0;\n\n if (numberOfReRenders > 0) {\n // This is a re-render. Apply the new render phase updates to the previous\n var _dispatch = queue.dispatch;\n if (renderPhaseUpdates !== null) {\n // Render phase updates are stored in a map of queue -> linked list\n var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);\n if (firstRenderPhaseUpdate !== undefined) {\n renderPhaseUpdates.delete(queue);\n var newState = hook.memoizedState;\n var update = firstRenderPhaseUpdate;\n do {\n // Process this render phase update. We don't have to check the\n // priority because it will always be the same as the current\n // render's.\n var _action = update.action;\n newState = reducer(newState, _action);\n update = update.next;\n } while (update !== null);\n\n // Mark that the fiber performed work, but only if the new state is\n // different from the current state.\n if (!is(newState, hook.memoizedState)) {\n markWorkInProgressReceivedUpdate();\n }\n\n hook.memoizedState = newState;\n // Don't persist the state accumlated from the render phase updates to\n // the base state unless the queue is empty.\n // TODO: Not sure if this is the desired semantics, but it's what we\n // do for gDSFP. I can't remember why.\n if (hook.baseUpdate === queue.last) {\n hook.baseState = newState;\n }\n\n queue.eagerReducer = reducer;\n queue.eagerState = newState;\n\n return [newState, _dispatch];\n }\n }\n return [hook.memoizedState, _dispatch];\n }\n\n // The last update in the entire queue\n var last = queue.last;\n // The last update that is part of the base state.\n var baseUpdate = hook.baseUpdate;\n var baseState = hook.baseState;\n\n // Find the first unprocessed update.\n var first = void 0;\n if (baseUpdate !== null) {\n if (last !== null) {\n // For the first update, the queue is a circular linked list where\n // `queue.last.next = queue.first`. Once the first update commits, and\n // the `baseUpdate` is no longer empty, we can unravel the list.\n last.next = null;\n }\n first = baseUpdate.next;\n } else {\n first = last !== null ? last.next : null;\n }\n if (first !== null) {\n var _newState = baseState;\n var newBaseState = null;\n var newBaseUpdate = null;\n var prevUpdate = baseUpdate;\n var _update = first;\n var didSkip = false;\n do {\n var updateExpirationTime = _update.expirationTime;\n if (updateExpirationTime < renderExpirationTime) {\n // Priority is insufficient. Skip this update. If this is the first\n // skipped update, the previous update/state is the new base\n // update/state.\n if (!didSkip) {\n didSkip = true;\n newBaseUpdate = prevUpdate;\n newBaseState = _newState;\n }\n // Update the remaining priority in the queue.\n if (updateExpirationTime > remainingExpirationTime) {\n remainingExpirationTime = updateExpirationTime;\n }\n } else {\n // Process this update.\n if (_update.eagerReducer === reducer) {\n // If this update was processed eagerly, and its reducer matches the\n // current reducer, we can use the eagerly computed state.\n _newState = _update.eagerState;\n } else {\n var _action2 = _update.action;\n _newState = reducer(_newState, _action2);\n }\n }\n prevUpdate = _update;\n _update = _update.next;\n } while (_update !== null && _update !== first);\n\n if (!didSkip) {\n newBaseUpdate = prevUpdate;\n newBaseState = _newState;\n }\n\n // Mark that the fiber performed work, but only if the new state is\n // different from the current state.\n if (!is(_newState, hook.memoizedState)) {\n markWorkInProgressReceivedUpdate();\n }\n\n hook.memoizedState = _newState;\n hook.baseUpdate = newBaseUpdate;\n hook.baseState = newBaseState;\n\n queue.eagerReducer = reducer;\n queue.eagerState = _newState;\n }\n\n var dispatch = queue.dispatch;\n return [hook.memoizedState, dispatch];\n}\n\nfunction mountState(initialState) {\n var hook = mountWorkInProgressHook();\n if (typeof initialState === 'function') {\n initialState = initialState();\n }\n hook.memoizedState = hook.baseState = initialState;\n var queue = hook.queue = {\n last: null,\n dispatch: null,\n eagerReducer: basicStateReducer,\n eagerState: initialState\n };\n var dispatch = queue.dispatch = dispatchAction.bind(null,\n // Flow doesn't know this is non-null, but we do.\n currentlyRenderingFiber$1, queue);\n return [hook.memoizedState, dispatch];\n}\n\nfunction updateState(initialState) {\n return updateReducer(basicStateReducer, initialState);\n}\n\nfunction pushEffect(tag, create, destroy, deps) {\n var effect = {\n tag: tag,\n create: create,\n destroy: destroy,\n deps: deps,\n // Circular\n next: null\n };\n if (componentUpdateQueue === null) {\n componentUpdateQueue = createFunctionComponentUpdateQueue();\n componentUpdateQueue.lastEffect = effect.next = effect;\n } else {\n var _lastEffect = componentUpdateQueue.lastEffect;\n if (_lastEffect === null) {\n componentUpdateQueue.lastEffect = effect.next = effect;\n } else {\n var firstEffect = _lastEffect.next;\n _lastEffect.next = effect;\n effect.next = firstEffect;\n componentUpdateQueue.lastEffect = effect;\n }\n }\n return effect;\n}\n\nfunction mountRef(initialValue) {\n var hook = mountWorkInProgressHook();\n var ref = { current: initialValue };\n {\n Object.seal(ref);\n }\n hook.memoizedState = ref;\n return ref;\n}\n\nfunction updateRef(initialValue) {\n var hook = updateWorkInProgressHook();\n return hook.memoizedState;\n}\n\nfunction mountEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {\n var hook = mountWorkInProgressHook();\n var nextDeps = deps === undefined ? null : deps;\n sideEffectTag |= fiberEffectTag;\n hook.memoizedState = pushEffect(hookEffectTag, create, undefined, nextDeps);\n}\n\nfunction updateEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {\n var hook = updateWorkInProgressHook();\n var nextDeps = deps === undefined ? null : deps;\n var destroy = undefined;\n\n if (currentHook !== null) {\n var prevEffect = currentHook.memoizedState;\n destroy = prevEffect.destroy;\n if (nextDeps !== null) {\n var prevDeps = prevEffect.deps;\n if (areHookInputsEqual(nextDeps, prevDeps)) {\n pushEffect(NoEffect$1, create, destroy, nextDeps);\n return;\n }\n }\n }\n\n sideEffectTag |= fiberEffectTag;\n hook.memoizedState = pushEffect(hookEffectTag, create, destroy, nextDeps);\n}\n\nfunction mountEffect(create, deps) {\n return mountEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, deps);\n}\n\nfunction updateEffect(create, deps) {\n return updateEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, deps);\n}\n\nfunction mountLayoutEffect(create, deps) {\n return mountEffectImpl(Update, UnmountMutation | MountLayout, create, deps);\n}\n\nfunction updateLayoutEffect(create, deps) {\n return updateEffectImpl(Update, UnmountMutation | MountLayout, create, deps);\n}\n\nfunction imperativeHandleEffect(create, ref) {\n if (typeof ref === 'function') {\n var refCallback = ref;\n var _inst = create();\n refCallback(_inst);\n return function () {\n refCallback(null);\n };\n } else if (ref !== null && ref !== undefined) {\n var refObject = ref;\n {\n !refObject.hasOwnProperty('current') ? warning$1(false, 'Expected useImperativeHandle() first argument to either be a ' + 'ref callback or React.createRef() object. Instead received: %s.', 'an object with keys {' + Object.keys(refObject).join(', ') + '}') : void 0;\n }\n var _inst2 = create();\n refObject.current = _inst2;\n return function () {\n refObject.current = null;\n };\n }\n}\n\nfunction mountImperativeHandle(ref, create, deps) {\n {\n !(typeof create === 'function') ? warning$1(false, 'Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null') : void 0;\n }\n\n // TODO: If deps are provided, should we skip comparing the ref itself?\n var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;\n\n return mountEffectImpl(Update, UnmountMutation | MountLayout, imperativeHandleEffect.bind(null, create, ref), effectDeps);\n}\n\nfunction updateImperativeHandle(ref, create, deps) {\n {\n !(typeof create === 'function') ? warning$1(false, 'Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null') : void 0;\n }\n\n // TODO: If deps are provided, should we skip comparing the ref itself?\n var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;\n\n return updateEffectImpl(Update, UnmountMutation | MountLayout, imperativeHandleEffect.bind(null, create, ref), effectDeps);\n}\n\nfunction mountDebugValue(value, formatterFn) {\n // This hook is normally a no-op.\n // The react-debug-hooks package injects its own implementation\n // so that e.g. DevTools can display custom hook values.\n}\n\nvar updateDebugValue = mountDebugValue;\n\nfunction mountCallback(callback, deps) {\n var hook = mountWorkInProgressHook();\n var nextDeps = deps === undefined ? null : deps;\n hook.memoizedState = [callback, nextDeps];\n return callback;\n}\n\nfunction updateCallback(callback, deps) {\n var hook = updateWorkInProgressHook();\n var nextDeps = deps === undefined ? null : deps;\n var prevState = hook.memoizedState;\n if (prevState !== null) {\n if (nextDeps !== null) {\n var prevDeps = prevState[1];\n if (areHookInputsEqual(nextDeps, prevDeps)) {\n return prevState[0];\n }\n }\n }\n hook.memoizedState = [callback, nextDeps];\n return callback;\n}\n\nfunction mountMemo(nextCreate, deps) {\n var hook = mountWorkInProgressHook();\n var nextDeps = deps === undefined ? null : deps;\n var nextValue = nextCreate();\n hook.memoizedState = [nextValue, nextDeps];\n return nextValue;\n}\n\nfunction updateMemo(nextCreate, deps) {\n var hook = updateWorkInProgressHook();\n var nextDeps = deps === undefined ? null : deps;\n var prevState = hook.memoizedState;\n if (prevState !== null) {\n // Assume these are defined. If they're not, areHookInputsEqual will warn.\n if (nextDeps !== null) {\n var prevDeps = prevState[1];\n if (areHookInputsEqual(nextDeps, prevDeps)) {\n return prevState[0];\n }\n }\n }\n var nextValue = nextCreate();\n hook.memoizedState = [nextValue, nextDeps];\n return nextValue;\n}\n\n// in a test-like environment, we want to warn if dispatchAction()\n// is called outside of a batchedUpdates/TestUtils.act(...) call.\nvar shouldWarnForUnbatchedSetState = false;\n\n{\n // jest isn't a 'global', it's just exposed to tests via a wrapped function\n // further, this isn't a test file, so flow doesn't recognize the symbol. So...\n // $FlowExpectedError - because requirements don't give a damn about your type sigs.\n if ('undefined' !== typeof jest) {\n shouldWarnForUnbatchedSetState = true;\n }\n}\n\nfunction dispatchAction(fiber, queue, action) {\n !(numberOfReRenders < RE_RENDER_LIMIT) ? invariant(false, 'Too many re-renders. React limits the number of renders to prevent an infinite loop.') : void 0;\n\n {\n !(arguments.length <= 3) ? warning$1(false, \"State updates from the useState() and useReducer() Hooks don't support the \" + 'second callback argument. To execute a side effect after ' + 'rendering, declare it in the component body with useEffect().') : void 0;\n }\n\n var alternate = fiber.alternate;\n if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) {\n // This is a render phase update. Stash it in a lazily-created map of\n // queue -> linked list of updates. After this render pass, we'll restart\n // and apply the stashed updates on top of the work-in-progress hook.\n didScheduleRenderPhaseUpdate = true;\n var update = {\n expirationTime: renderExpirationTime,\n action: action,\n eagerReducer: null,\n eagerState: null,\n next: null\n };\n if (renderPhaseUpdates === null) {\n renderPhaseUpdates = new Map();\n }\n var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);\n if (firstRenderPhaseUpdate === undefined) {\n renderPhaseUpdates.set(queue, update);\n } else {\n // Append the update to the end of the list.\n var lastRenderPhaseUpdate = firstRenderPhaseUpdate;\n while (lastRenderPhaseUpdate.next !== null) {\n lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;\n }\n lastRenderPhaseUpdate.next = update;\n }\n } else {\n flushPassiveEffects();\n\n var currentTime = requestCurrentTime();\n var _expirationTime = computeExpirationForFiber(currentTime, fiber);\n\n var _update2 = {\n expirationTime: _expirationTime,\n action: action,\n eagerReducer: null,\n eagerState: null,\n next: null\n };\n\n // Append the update to the end of the list.\n var _last = queue.last;\n if (_last === null) {\n // This is the first update. Create a circular list.\n _update2.next = _update2;\n } else {\n var first = _last.next;\n if (first !== null) {\n // Still circular.\n _update2.next = first;\n }\n _last.next = _update2;\n }\n queue.last = _update2;\n\n if (fiber.expirationTime === NoWork && (alternate === null || alternate.expirationTime === NoWork)) {\n // The queue is currently empty, which means we can eagerly compute the\n // next state before entering the render phase. If the new state is the\n // same as the current state, we may be able to bail out entirely.\n var _eagerReducer = queue.eagerReducer;\n if (_eagerReducer !== null) {\n var prevDispatcher = void 0;\n {\n prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n }\n try {\n var currentState = queue.eagerState;\n var _eagerState = _eagerReducer(currentState, action);\n // Stash the eagerly computed state, and the reducer used to compute\n // it, on the update object. If the reducer hasn't changed by the\n // time we enter the render phase, then the eager state can be used\n // without calling the reducer again.\n _update2.eagerReducer = _eagerReducer;\n _update2.eagerState = _eagerState;\n if (is(_eagerState, currentState)) {\n // Fast path. We can bail out without scheduling React to re-render.\n // It's still possible that we'll need to rebase this update later,\n // if the component re-renders for a different reason and by that\n // time the reducer has changed.\n return;\n }\n } catch (error) {\n // Suppress the error. It will throw again in the render phase.\n } finally {\n {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n }\n }\n }\n {\n if (shouldWarnForUnbatchedSetState === true) {\n warnIfNotCurrentlyBatchingInDev(fiber);\n }\n }\n scheduleWork(fiber, _expirationTime);\n }\n}\n\nvar ContextOnlyDispatcher = {\n readContext: readContext,\n\n useCallback: throwInvalidHookError,\n useContext: throwInvalidHookError,\n useEffect: throwInvalidHookError,\n useImperativeHandle: throwInvalidHookError,\n useLayoutEffect: throwInvalidHookError,\n useMemo: throwInvalidHookError,\n useReducer: throwInvalidHookError,\n useRef: throwInvalidHookError,\n useState: throwInvalidHookError,\n useDebugValue: throwInvalidHookError\n};\n\nvar HooksDispatcherOnMountInDEV = null;\nvar HooksDispatcherOnMountWithHookTypesInDEV = null;\nvar HooksDispatcherOnUpdateInDEV = null;\nvar InvalidNestedHooksDispatcherOnMountInDEV = null;\nvar InvalidNestedHooksDispatcherOnUpdateInDEV = null;\n\n{\n var warnInvalidContextAccess = function () {\n warning$1(false, 'Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');\n };\n\n var warnInvalidHookAccess = function () {\n warning$1(false, 'Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://fb.me/rules-of-hooks');\n };\n\n HooksDispatcherOnMountInDEV = {\n readContext: function (context, observedBits) {\n return readContext(context, observedBits);\n },\n useCallback: function (callback, deps) {\n currentHookNameInDev = 'useCallback';\n mountHookTypesDev();\n return mountCallback(callback, deps);\n },\n useContext: function (context, observedBits) {\n currentHookNameInDev = 'useContext';\n mountHookTypesDev();\n return readContext(context, observedBits);\n },\n useEffect: function (create, deps) {\n currentHookNameInDev = 'useEffect';\n mountHookTypesDev();\n return mountEffect(create, deps);\n },\n useImperativeHandle: function (ref, create, deps) {\n currentHookNameInDev = 'useImperativeHandle';\n mountHookTypesDev();\n return mountImperativeHandle(ref, create, deps);\n },\n useLayoutEffect: function (create, deps) {\n currentHookNameInDev = 'useLayoutEffect';\n mountHookTypesDev();\n return mountLayoutEffect(create, deps);\n },\n useMemo: function (create, deps) {\n currentHookNameInDev = 'useMemo';\n mountHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n try {\n return mountMemo(create, deps);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useReducer: function (reducer, initialArg, init) {\n currentHookNameInDev = 'useReducer';\n mountHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n try {\n return mountReducer(reducer, initialArg, init);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useRef: function (initialValue) {\n currentHookNameInDev = 'useRef';\n mountHookTypesDev();\n return mountRef(initialValue);\n },\n useState: function (initialState) {\n currentHookNameInDev = 'useState';\n mountHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n try {\n return mountState(initialState);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useDebugValue: function (value, formatterFn) {\n currentHookNameInDev = 'useDebugValue';\n mountHookTypesDev();\n return mountDebugValue(value, formatterFn);\n }\n };\n\n HooksDispatcherOnMountWithHookTypesInDEV = {\n readContext: function (context, observedBits) {\n return readContext(context, observedBits);\n },\n useCallback: function (callback, deps) {\n currentHookNameInDev = 'useCallback';\n updateHookTypesDev();\n return mountCallback(callback, deps);\n },\n useContext: function (context, observedBits) {\n currentHookNameInDev = 'useContext';\n updateHookTypesDev();\n return readContext(context, observedBits);\n },\n useEffect: function (create, deps) {\n currentHookNameInDev = 'useEffect';\n updateHookTypesDev();\n return mountEffect(create, deps);\n },\n useImperativeHandle: function (ref, create, deps) {\n currentHookNameInDev = 'useImperativeHandle';\n updateHookTypesDev();\n return mountImperativeHandle(ref, create, deps);\n },\n useLayoutEffect: function (create, deps) {\n currentHookNameInDev = 'useLayoutEffect';\n updateHookTypesDev();\n return mountLayoutEffect(create, deps);\n },\n useMemo: function (create, deps) {\n currentHookNameInDev = 'useMemo';\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n try {\n return mountMemo(create, deps);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useReducer: function (reducer, initialArg, init) {\n currentHookNameInDev = 'useReducer';\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n try {\n return mountReducer(reducer, initialArg, init);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useRef: function (initialValue) {\n currentHookNameInDev = 'useRef';\n updateHookTypesDev();\n return mountRef(initialValue);\n },\n useState: function (initialState) {\n currentHookNameInDev = 'useState';\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n try {\n return mountState(initialState);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useDebugValue: function (value, formatterFn) {\n currentHookNameInDev = 'useDebugValue';\n updateHookTypesDev();\n return mountDebugValue(value, formatterFn);\n }\n };\n\n HooksDispatcherOnUpdateInDEV = {\n readContext: function (context, observedBits) {\n return readContext(context, observedBits);\n },\n useCallback: function (callback, deps) {\n currentHookNameInDev = 'useCallback';\n updateHookTypesDev();\n return updateCallback(callback, deps);\n },\n useContext: function (context, observedBits) {\n currentHookNameInDev = 'useContext';\n updateHookTypesDev();\n return readContext(context, observedBits);\n },\n useEffect: function (create, deps) {\n currentHookNameInDev = 'useEffect';\n updateHookTypesDev();\n return updateEffect(create, deps);\n },\n useImperativeHandle: function (ref, create, deps) {\n currentHookNameInDev = 'useImperativeHandle';\n updateHookTypesDev();\n return updateImperativeHandle(ref, create, deps);\n },\n useLayoutEffect: function (create, deps) {\n currentHookNameInDev = 'useLayoutEffect';\n updateHookTypesDev();\n return updateLayoutEffect(create, deps);\n },\n useMemo: function (create, deps) {\n currentHookNameInDev = 'useMemo';\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n try {\n return updateMemo(create, deps);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useReducer: function (reducer, initialArg, init) {\n currentHookNameInDev = 'useReducer';\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n try {\n return updateReducer(reducer, initialArg, init);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useRef: function (initialValue) {\n currentHookNameInDev = 'useRef';\n updateHookTypesDev();\n return updateRef(initialValue);\n },\n useState: function (initialState) {\n currentHookNameInDev = 'useState';\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n try {\n return updateState(initialState);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useDebugValue: function (value, formatterFn) {\n currentHookNameInDev = 'useDebugValue';\n updateHookTypesDev();\n return updateDebugValue(value, formatterFn);\n }\n };\n\n InvalidNestedHooksDispatcherOnMountInDEV = {\n readContext: function (context, observedBits) {\n warnInvalidContextAccess();\n return readContext(context, observedBits);\n },\n useCallback: function (callback, deps) {\n currentHookNameInDev = 'useCallback';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return mountCallback(callback, deps);\n },\n useContext: function (context, observedBits) {\n currentHookNameInDev = 'useContext';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return readContext(context, observedBits);\n },\n useEffect: function (create, deps) {\n currentHookNameInDev = 'useEffect';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return mountEffect(create, deps);\n },\n useImperativeHandle: function (ref, create, deps) {\n currentHookNameInDev = 'useImperativeHandle';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return mountImperativeHandle(ref, create, deps);\n },\n useLayoutEffect: function (create, deps) {\n currentHookNameInDev = 'useLayoutEffect';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return mountLayoutEffect(create, deps);\n },\n useMemo: function (create, deps) {\n currentHookNameInDev = 'useMemo';\n warnInvalidHookAccess();\n mountHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n try {\n return mountMemo(create, deps);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useReducer: function (reducer, initialArg, init) {\n currentHookNameInDev = 'useReducer';\n warnInvalidHookAccess();\n mountHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n try {\n return mountReducer(reducer, initialArg, init);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useRef: function (initialValue) {\n currentHookNameInDev = 'useRef';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return mountRef(initialValue);\n },\n useState: function (initialState) {\n currentHookNameInDev = 'useState';\n warnInvalidHookAccess();\n mountHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n try {\n return mountState(initialState);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useDebugValue: function (value, formatterFn) {\n currentHookNameInDev = 'useDebugValue';\n warnInvalidHookAccess();\n mountHookTypesDev();\n return mountDebugValue(value, formatterFn);\n }\n };\n\n InvalidNestedHooksDispatcherOnUpdateInDEV = {\n readContext: function (context, observedBits) {\n warnInvalidContextAccess();\n return readContext(context, observedBits);\n },\n useCallback: function (callback, deps) {\n currentHookNameInDev = 'useCallback';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateCallback(callback, deps);\n },\n useContext: function (context, observedBits) {\n currentHookNameInDev = 'useContext';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return readContext(context, observedBits);\n },\n useEffect: function (create, deps) {\n currentHookNameInDev = 'useEffect';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateEffect(create, deps);\n },\n useImperativeHandle: function (ref, create, deps) {\n currentHookNameInDev = 'useImperativeHandle';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateImperativeHandle(ref, create, deps);\n },\n useLayoutEffect: function (create, deps) {\n currentHookNameInDev = 'useLayoutEffect';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateLayoutEffect(create, deps);\n },\n useMemo: function (create, deps) {\n currentHookNameInDev = 'useMemo';\n warnInvalidHookAccess();\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n try {\n return updateMemo(create, deps);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useReducer: function (reducer, initialArg, init) {\n currentHookNameInDev = 'useReducer';\n warnInvalidHookAccess();\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n try {\n return updateReducer(reducer, initialArg, init);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useRef: function (initialValue) {\n currentHookNameInDev = 'useRef';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateRef(initialValue);\n },\n useState: function (initialState) {\n currentHookNameInDev = 'useState';\n warnInvalidHookAccess();\n updateHookTypesDev();\n var prevDispatcher = ReactCurrentDispatcher$1.current;\n ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n try {\n return updateState(initialState);\n } finally {\n ReactCurrentDispatcher$1.current = prevDispatcher;\n }\n },\n useDebugValue: function (value, formatterFn) {\n currentHookNameInDev = 'useDebugValue';\n warnInvalidHookAccess();\n updateHookTypesDev();\n return updateDebugValue(value, formatterFn);\n }\n };\n}\n\nvar commitTime = 0;\nvar profilerStartTime = -1;\n\nfunction getCommitTime() {\n return commitTime;\n}\n\nfunction recordCommitTime() {\n if (!enableProfilerTimer) {\n return;\n }\n commitTime = scheduler.unstable_now();\n}\n\nfunction startProfilerTimer(fiber) {\n if (!enableProfilerTimer) {\n return;\n }\n\n profilerStartTime = scheduler.unstable_now();\n\n if (fiber.actualStartTime < 0) {\n fiber.actualStartTime = scheduler.unstable_now();\n }\n}\n\nfunction stopProfilerTimerIfRunning(fiber) {\n if (!enableProfilerTimer) {\n return;\n }\n profilerStartTime = -1;\n}\n\nfunction stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {\n if (!enableProfilerTimer) {\n return;\n }\n\n if (profilerStartTime >= 0) {\n var elapsedTime = scheduler.unstable_now() - profilerStartTime;\n fiber.actualDuration += elapsedTime;\n if (overrideBaseTime) {\n fiber.selfBaseDuration = elapsedTime;\n }\n profilerStartTime = -1;\n }\n}\n\n// The deepest Fiber on the stack involved in a hydration context.\n// This may have been an insertion or a hydration.\nvar hydrationParentFiber = null;\nvar nextHydratableInstance = null;\nvar isHydrating = false;\n\nfunction enterHydrationState(fiber) {\n if (!supportsHydration) {\n return false;\n }\n\n var parentInstance = fiber.stateNode.containerInfo;\n nextHydratableInstance = getFirstHydratableChild(parentInstance);\n hydrationParentFiber = fiber;\n isHydrating = true;\n return true;\n}\n\nfunction reenterHydrationStateFromDehydratedSuspenseInstance(fiber) {\n if (!supportsHydration) {\n return false;\n }\n\n var suspenseInstance = fiber.stateNode;\n nextHydratableInstance = getNextHydratableSibling(suspenseInstance);\n popToNextHostParent(fiber);\n isHydrating = true;\n return true;\n}\n\nfunction deleteHydratableInstance(returnFiber, instance) {\n {\n switch (returnFiber.tag) {\n case HostRoot:\n didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);\n break;\n case HostComponent:\n didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);\n break;\n }\n }\n\n var childToDelete = createFiberFromHostInstanceForDeletion();\n childToDelete.stateNode = instance;\n childToDelete.return = returnFiber;\n childToDelete.effectTag = Deletion;\n\n // This might seem like it belongs on progressedFirstDeletion. However,\n // these children are not part of the reconciliation list of children.\n // Even if we abort and rereconcile the children, that will try to hydrate\n // again and the nodes are still in the host tree so these will be\n // recreated.\n if (returnFiber.lastEffect !== null) {\n returnFiber.lastEffect.nextEffect = childToDelete;\n returnFiber.lastEffect = childToDelete;\n } else {\n returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;\n }\n}\n\nfunction insertNonHydratedInstance(returnFiber, fiber) {\n fiber.effectTag |= Placement;\n {\n switch (returnFiber.tag) {\n case HostRoot:\n {\n var parentContainer = returnFiber.stateNode.containerInfo;\n switch (fiber.tag) {\n case HostComponent:\n var type = fiber.type;\n var props = fiber.pendingProps;\n didNotFindHydratableContainerInstance(parentContainer, type, props);\n break;\n case HostText:\n var text = fiber.pendingProps;\n didNotFindHydratableContainerTextInstance(parentContainer, text);\n break;\n case SuspenseComponent:\n \n break;\n }\n break;\n }\n case HostComponent:\n {\n var parentType = returnFiber.type;\n var parentProps = returnFiber.memoizedProps;\n var parentInstance = returnFiber.stateNode;\n switch (fiber.tag) {\n case HostComponent:\n var _type = fiber.type;\n var _props = fiber.pendingProps;\n didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props);\n break;\n case HostText:\n var _text = fiber.pendingProps;\n didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);\n break;\n case SuspenseComponent:\n didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance);\n break;\n }\n break;\n }\n default:\n return;\n }\n }\n}\n\nfunction tryHydrate(fiber, nextInstance) {\n switch (fiber.tag) {\n case HostComponent:\n {\n var type = fiber.type;\n var props = fiber.pendingProps;\n var instance = canHydrateInstance(nextInstance, type, props);\n if (instance !== null) {\n fiber.stateNode = instance;\n return true;\n }\n return false;\n }\n case HostText:\n {\n var text = fiber.pendingProps;\n var textInstance = canHydrateTextInstance(nextInstance, text);\n if (textInstance !== null) {\n fiber.stateNode = textInstance;\n return true;\n }\n return false;\n }\n case SuspenseComponent:\n {\n if (enableSuspenseServerRenderer) {\n var suspenseInstance = canHydrateSuspenseInstance(nextInstance);\n if (suspenseInstance !== null) {\n // Downgrade the tag to a dehydrated component until we've hydrated it.\n fiber.tag = DehydratedSuspenseComponent;\n fiber.stateNode = suspenseInstance;\n return true;\n }\n }\n return false;\n }\n default:\n return false;\n }\n}\n\nfunction tryToClaimNextHydratableInstance(fiber) {\n if (!isHydrating) {\n return;\n }\n var nextInstance = nextHydratableInstance;\n if (!nextInstance) {\n // Nothing to hydrate. Make it an insertion.\n insertNonHydratedInstance(hydrationParentFiber, fiber);\n isHydrating = false;\n hydrationParentFiber = fiber;\n return;\n }\n var firstAttemptedInstance = nextInstance;\n if (!tryHydrate(fiber, nextInstance)) {\n // If we can't hydrate this instance let's try the next one.\n // We use this as a heuristic. It's based on intuition and not data so it\n // might be flawed or unnecessary.\n nextInstance = getNextHydratableSibling(firstAttemptedInstance);\n if (!nextInstance || !tryHydrate(fiber, nextInstance)) {\n // Nothing to hydrate. Make it an insertion.\n insertNonHydratedInstance(hydrationParentFiber, fiber);\n isHydrating = false;\n hydrationParentFiber = fiber;\n return;\n }\n // We matched the next one, we'll now assume that the first one was\n // superfluous and we'll delete it. Since we can't eagerly delete it\n // we'll have to schedule a deletion. To do that, this node needs a dummy\n // fiber associated with it.\n deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);\n }\n hydrationParentFiber = fiber;\n nextHydratableInstance = getFirstHydratableChild(nextInstance);\n}\n\nfunction prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {\n if (!supportsHydration) {\n invariant(false, 'Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.');\n }\n\n var instance = fiber.stateNode;\n var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber);\n // TODO: Type this specific to this type of component.\n fiber.updateQueue = updatePayload;\n // If the update payload indicates that there is a change or if there\n // is a new ref we mark this as an update.\n if (updatePayload !== null) {\n return true;\n }\n return false;\n}\n\nfunction prepareToHydrateHostTextInstance(fiber) {\n if (!supportsHydration) {\n invariant(false, 'Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.');\n }\n\n var textInstance = fiber.stateNode;\n var textContent = fiber.memoizedProps;\n var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);\n {\n if (shouldUpdate) {\n // We assume that prepareToHydrateHostTextInstance is called in a context where the\n // hydration parent is the parent host component of this host text.\n var returnFiber = hydrationParentFiber;\n if (returnFiber !== null) {\n switch (returnFiber.tag) {\n case HostRoot:\n {\n var parentContainer = returnFiber.stateNode.containerInfo;\n didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);\n break;\n }\n case HostComponent:\n {\n var parentType = returnFiber.type;\n var parentProps = returnFiber.memoizedProps;\n var parentInstance = returnFiber.stateNode;\n didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);\n break;\n }\n }\n }\n }\n }\n return shouldUpdate;\n}\n\nfunction skipPastDehydratedSuspenseInstance(fiber) {\n if (!supportsHydration) {\n invariant(false, 'Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.');\n }\n var suspenseInstance = fiber.stateNode;\n !suspenseInstance ? invariant(false, 'Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n nextHydratableInstance = getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance);\n}\n\nfunction popToNextHostParent(fiber) {\n var parent = fiber.return;\n while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== DehydratedSuspenseComponent) {\n parent = parent.return;\n }\n hydrationParentFiber = parent;\n}\n\nfunction popHydrationState(fiber) {\n if (!supportsHydration) {\n return false;\n }\n if (fiber !== hydrationParentFiber) {\n // We're deeper than the current hydration context, inside an inserted\n // tree.\n return false;\n }\n if (!isHydrating) {\n // If we're not currently hydrating but we're in a hydration context, then\n // we were an insertion and now need to pop up reenter hydration of our\n // siblings.\n popToNextHostParent(fiber);\n isHydrating = true;\n return false;\n }\n\n var type = fiber.type;\n\n // If we have any remaining hydratable nodes, we need to delete them now.\n // We only do this deeper than head and body since they tend to have random\n // other nodes in them. We also ignore components with pure text content in\n // side of them.\n // TODO: Better heuristic.\n if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) {\n var nextInstance = nextHydratableInstance;\n while (nextInstance) {\n deleteHydratableInstance(fiber, nextInstance);\n nextInstance = getNextHydratableSibling(nextInstance);\n }\n }\n\n popToNextHostParent(fiber);\n nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;\n return true;\n}\n\nfunction resetHydrationState() {\n if (!supportsHydration) {\n return;\n }\n\n hydrationParentFiber = null;\n nextHydratableInstance = null;\n isHydrating = false;\n}\n\nvar ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;\n\nvar didReceiveUpdate = false;\n\nvar didWarnAboutBadClass = void 0;\nvar didWarnAboutContextTypeOnFunctionComponent = void 0;\nvar didWarnAboutGetDerivedStateOnFunctionComponent = void 0;\nvar didWarnAboutFunctionRefs = void 0;\nvar didWarnAboutReassigningProps = void 0;\n\n{\n didWarnAboutBadClass = {};\n didWarnAboutContextTypeOnFunctionComponent = {};\n didWarnAboutGetDerivedStateOnFunctionComponent = {};\n didWarnAboutFunctionRefs = {};\n didWarnAboutReassigningProps = false;\n}\n\nfunction reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime) {\n if (current$$1 === null) {\n // If this is a fresh new component that hasn't been rendered yet, we\n // won't update its child set by applying minimal side-effects. Instead,\n // we will add them all to the child before it gets rendered. That means\n // we can optimize this reconciliation pass by not tracking side-effects.\n workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);\n } else {\n // If the current child is the same as the work in progress, it means that\n // we haven't yet started any work on these children. Therefore, we use\n // the clone algorithm to create a copy of all the current children.\n\n // If we had any progressed work already, that is invalid at this point so\n // let's throw it out.\n workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, nextChildren, renderExpirationTime);\n }\n}\n\nfunction forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime) {\n // This function is fork of reconcileChildren. It's used in cases where we\n // want to reconcile without matching against the existing set. This has the\n // effect of all current children being unmounted; even if the type and key\n // are the same, the old child is unmounted and a new child is created.\n //\n // To do this, we're going to go through the reconcile algorithm twice. In\n // the first pass, we schedule a deletion for all the current children by\n // passing null.\n workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, null, renderExpirationTime);\n // In the second pass, we mount the new children. The trick here is that we\n // pass null in place of where we usually pass the current child set. This has\n // the effect of remounting all children regardless of whether their their\n // identity matches.\n workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);\n}\n\nfunction updateForwardRef(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {\n // TODO: current can be non-null here even if the component\n // hasn't yet mounted. This happens after the first render suspends.\n // We'll need to figure out if this is fine or can cause issues.\n\n {\n if (workInProgress.type !== workInProgress.elementType) {\n // Lazy component props can't be validated in createElement\n // because they're only guaranteed to be resolved here.\n var innerPropTypes = Component.propTypes;\n if (innerPropTypes) {\n checkPropTypes(innerPropTypes, nextProps, // Resolved props\n 'prop', getComponentName(Component), getCurrentFiberStackInDev);\n }\n }\n }\n\n var render = Component.render;\n var ref = workInProgress.ref;\n\n // The rest is a fork of updateFunctionComponent\n var nextChildren = void 0;\n prepareToReadContext(workInProgress, renderExpirationTime);\n {\n ReactCurrentOwner$3.current = workInProgress;\n setCurrentPhase('render');\n nextChildren = renderWithHooks(current$$1, workInProgress, render, nextProps, ref, renderExpirationTime);\n if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {\n // Only double-render components with Hooks\n if (workInProgress.memoizedState !== null) {\n nextChildren = renderWithHooks(current$$1, workInProgress, render, nextProps, ref, renderExpirationTime);\n }\n }\n setCurrentPhase(null);\n }\n\n if (current$$1 !== null && !didReceiveUpdate) {\n bailoutHooks(current$$1, workInProgress, renderExpirationTime);\n return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);\n }\n\n // React DevTools reads this flag.\n workInProgress.effectTag |= PerformedWork;\n reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);\n return workInProgress.child;\n}\n\nfunction updateMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {\n if (current$$1 === null) {\n var type = Component.type;\n if (isSimpleFunctionComponent(type) && Component.compare === null &&\n // SimpleMemoComponent codepath doesn't resolve outer props either.\n Component.defaultProps === undefined) {\n // If this is a plain function component without default props,\n // and with only the default shallow comparison, we upgrade it\n // to a SimpleMemoComponent to allow fast path updates.\n workInProgress.tag = SimpleMemoComponent;\n workInProgress.type = type;\n {\n validateFunctionComponentInDev(workInProgress, type);\n }\n return updateSimpleMemoComponent(current$$1, workInProgress, type, nextProps, updateExpirationTime, renderExpirationTime);\n }\n {\n var innerPropTypes = type.propTypes;\n if (innerPropTypes) {\n // Inner memo component props aren't currently validated in createElement.\n // We could move it there, but we'd still need this for lazy code path.\n checkPropTypes(innerPropTypes, nextProps, // Resolved props\n 'prop', getComponentName(type), getCurrentFiberStackInDev);\n }\n }\n var child = createFiberFromTypeAndProps(Component.type, null, nextProps, null, workInProgress.mode, renderExpirationTime);\n child.ref = workInProgress.ref;\n child.return = workInProgress;\n workInProgress.child = child;\n return child;\n }\n {\n var _type = Component.type;\n var _innerPropTypes = _type.propTypes;\n if (_innerPropTypes) {\n // Inner memo component props aren't currently validated in createElement.\n // We could move it there, but we'd still need this for lazy code path.\n checkPropTypes(_innerPropTypes, nextProps, // Resolved props\n 'prop', getComponentName(_type), getCurrentFiberStackInDev);\n }\n }\n var currentChild = current$$1.child; // This is always exactly one child\n if (updateExpirationTime < renderExpirationTime) {\n // This will be the props with resolved defaultProps,\n // unlike current.memoizedProps which will be the unresolved ones.\n var prevProps = currentChild.memoizedProps;\n // Default to shallow comparison\n var compare = Component.compare;\n compare = compare !== null ? compare : shallowEqual;\n if (compare(prevProps, nextProps) && current$$1.ref === workInProgress.ref) {\n return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);\n }\n }\n // React DevTools reads this flag.\n workInProgress.effectTag |= PerformedWork;\n var newChild = createWorkInProgress(currentChild, nextProps, renderExpirationTime);\n newChild.ref = workInProgress.ref;\n newChild.return = workInProgress;\n workInProgress.child = newChild;\n return newChild;\n}\n\nfunction updateSimpleMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {\n // TODO: current can be non-null here even if the component\n // hasn't yet mounted. This happens when the inner render suspends.\n // We'll need to figure out if this is fine or can cause issues.\n\n {\n if (workInProgress.type !== workInProgress.elementType) {\n // Lazy component props can't be validated in createElement\n // because they're only guaranteed to be resolved here.\n var outerMemoType = workInProgress.elementType;\n if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {\n // We warn when you define propTypes on lazy()\n // so let's just skip over it to find memo() outer wrapper.\n // Inner props for memo are validated later.\n outerMemoType = refineResolvedLazyComponent(outerMemoType);\n }\n var outerPropTypes = outerMemoType && outerMemoType.propTypes;\n if (outerPropTypes) {\n checkPropTypes(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps)\n 'prop', getComponentName(outerMemoType), getCurrentFiberStackInDev);\n }\n // Inner propTypes will be validated in the function component path.\n }\n }\n if (current$$1 !== null) {\n var prevProps = current$$1.memoizedProps;\n if (shallowEqual(prevProps, nextProps) && current$$1.ref === workInProgress.ref) {\n didReceiveUpdate = false;\n if (updateExpirationTime < renderExpirationTime) {\n return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);\n }\n }\n }\n return updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime);\n}\n\nfunction updateFragment(current$$1, workInProgress, renderExpirationTime) {\n var nextChildren = workInProgress.pendingProps;\n reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);\n return workInProgress.child;\n}\n\nfunction updateMode(current$$1, workInProgress, renderExpirationTime) {\n var nextChildren = workInProgress.pendingProps.children;\n reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);\n return workInProgress.child;\n}\n\nfunction updateProfiler(current$$1, workInProgress, renderExpirationTime) {\n if (enableProfilerTimer) {\n workInProgress.effectTag |= Update;\n }\n var nextProps = workInProgress.pendingProps;\n var nextChildren = nextProps.children;\n reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);\n return workInProgress.child;\n}\n\nfunction markRef(current$$1, workInProgress) {\n var ref = workInProgress.ref;\n if (current$$1 === null && ref !== null || current$$1 !== null && current$$1.ref !== ref) {\n // Schedule a Ref effect\n workInProgress.effectTag |= Ref;\n }\n}\n\nfunction updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {\n {\n if (workInProgress.type !== workInProgress.elementType) {\n // Lazy component props can't be validated in createElement\n // because they're only guaranteed to be resolved here.\n var innerPropTypes = Component.propTypes;\n if (innerPropTypes) {\n checkPropTypes(innerPropTypes, nextProps, // Resolved props\n 'prop', getComponentName(Component), getCurrentFiberStackInDev);\n }\n }\n }\n\n var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);\n var context = getMaskedContext(workInProgress, unmaskedContext);\n\n var nextChildren = void 0;\n prepareToReadContext(workInProgress, renderExpirationTime);\n {\n ReactCurrentOwner$3.current = workInProgress;\n setCurrentPhase('render');\n nextChildren = renderWithHooks(current$$1, workInProgress, Component, nextProps, context, renderExpirationTime);\n if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {\n // Only double-render components with Hooks\n if (workInProgress.memoizedState !== null) {\n nextChildren = renderWithHooks(current$$1, workInProgress, Component, nextProps, context, renderExpirationTime);\n }\n }\n setCurrentPhase(null);\n }\n\n if (current$$1 !== null && !didReceiveUpdate) {\n bailoutHooks(current$$1, workInProgress, renderExpirationTime);\n return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);\n }\n\n // React DevTools reads this flag.\n workInProgress.effectTag |= PerformedWork;\n reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);\n return workInProgress.child;\n}\n\nfunction updateClassComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {\n {\n if (workInProgress.type !== workInProgress.elementType) {\n // Lazy component props can't be validated in createElement\n // because they're only guaranteed to be resolved here.\n var innerPropTypes = Component.propTypes;\n if (innerPropTypes) {\n checkPropTypes(innerPropTypes, nextProps, // Resolved props\n 'prop', getComponentName(Component), getCurrentFiberStackInDev);\n }\n }\n }\n\n // Push context providers early to prevent context stack mismatches.\n // During mounting we don't know the child context yet as the instance doesn't exist.\n // We will invalidate the child context in finishClassComponent() right after rendering.\n var hasContext = void 0;\n if (isContextProvider(Component)) {\n hasContext = true;\n pushContextProvider(workInProgress);\n } else {\n hasContext = false;\n }\n prepareToReadContext(workInProgress, renderExpirationTime);\n\n var instance = workInProgress.stateNode;\n var shouldUpdate = void 0;\n if (instance === null) {\n if (current$$1 !== null) {\n // An class component without an instance only mounts if it suspended\n // inside a non- concurrent tree, in an inconsistent state. We want to\n // tree it like a new mount, even though an empty version of it already\n // committed. Disconnect the alternate pointers.\n current$$1.alternate = null;\n workInProgress.alternate = null;\n // Since this is conceptually a new fiber, schedule a Placement effect\n workInProgress.effectTag |= Placement;\n }\n // In the initial pass we might need to construct the instance.\n constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);\n mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);\n shouldUpdate = true;\n } else if (current$$1 === null) {\n // In a resume, we'll already have an instance we can reuse.\n shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);\n } else {\n shouldUpdate = updateClassInstance(current$$1, workInProgress, Component, nextProps, renderExpirationTime);\n }\n var nextUnitOfWork = finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime);\n {\n var inst = workInProgress.stateNode;\n if (inst.props !== nextProps) {\n !didWarnAboutReassigningProps ? warning$1(false, 'It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentName(workInProgress.type) || 'a component') : void 0;\n didWarnAboutReassigningProps = true;\n }\n }\n return nextUnitOfWork;\n}\n\nfunction finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime) {\n // Refs should update even if shouldComponentUpdate returns false\n markRef(current$$1, workInProgress);\n\n var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect;\n\n if (!shouldUpdate && !didCaptureError) {\n // Context providers should defer to sCU for rendering\n if (hasContext) {\n invalidateContextProvider(workInProgress, Component, false);\n }\n\n return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);\n }\n\n var instance = workInProgress.stateNode;\n\n // Rerender\n ReactCurrentOwner$3.current = workInProgress;\n var nextChildren = void 0;\n if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {\n // If we captured an error, but getDerivedStateFrom catch is not defined,\n // unmount all the children. componentDidCatch will schedule an update to\n // re-render a fallback. This is temporary until we migrate everyone to\n // the new API.\n // TODO: Warn in a future release.\n nextChildren = null;\n\n if (enableProfilerTimer) {\n stopProfilerTimerIfRunning(workInProgress);\n }\n } else {\n {\n setCurrentPhase('render');\n nextChildren = instance.render();\n if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {\n instance.render();\n }\n setCurrentPhase(null);\n }\n }\n\n // React DevTools reads this flag.\n workInProgress.effectTag |= PerformedWork;\n if (current$$1 !== null && didCaptureError) {\n // If we're recovering from an error, reconcile without reusing any of\n // the existing children. Conceptually, the normal children and the children\n // that are shown on error are two different sets, so we shouldn't reuse\n // normal children even if their identities match.\n forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime);\n } else {\n reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);\n }\n\n // Memoize state using the values we just used to render.\n // TODO: Restructure so we never read values from the instance.\n workInProgress.memoizedState = instance.state;\n\n // The context might have changed so we need to recalculate it.\n if (hasContext) {\n invalidateContextProvider(workInProgress, Component, true);\n }\n\n return workInProgress.child;\n}\n\nfunction pushHostRootContext(workInProgress) {\n var root = workInProgress.stateNode;\n if (root.pendingContext) {\n pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);\n } else if (root.context) {\n // Should always be set\n pushTopLevelContextObject(workInProgress, root.context, false);\n }\n pushHostContainer(workInProgress, root.containerInfo);\n}\n\nfunction updateHostRoot(current$$1, workInProgress, renderExpirationTime) {\n pushHostRootContext(workInProgress);\n var updateQueue = workInProgress.updateQueue;\n !(updateQueue !== null) ? invariant(false, 'If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n var nextProps = workInProgress.pendingProps;\n var prevState = workInProgress.memoizedState;\n var prevChildren = prevState !== null ? prevState.element : null;\n processUpdateQueue(workInProgress, updateQueue, nextProps, null, renderExpirationTime);\n var nextState = workInProgress.memoizedState;\n // Caution: React DevTools currently depends on this property\n // being called \"element\".\n var nextChildren = nextState.element;\n if (nextChildren === prevChildren) {\n // If the state is the same as before, that's a bailout because we had\n // no work that expires at this time.\n resetHydrationState();\n return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);\n }\n var root = workInProgress.stateNode;\n if ((current$$1 === null || current$$1.child === null) && root.hydrate && enterHydrationState(workInProgress)) {\n // If we don't have any current children this might be the first pass.\n // We always try to hydrate. If this isn't a hydration pass there won't\n // be any children to hydrate which is effectively the same thing as\n // not hydrating.\n\n // This is a bit of a hack. We track the host root as a placement to\n // know that we're currently in a mounting state. That way isMounted\n // works as expected. We must reset this before committing.\n // TODO: Delete this when we delete isMounted and findDOMNode.\n workInProgress.effectTag |= Placement;\n\n // Ensure that children mount into this root without tracking\n // side-effects. This ensures that we don't store Placement effects on\n // nodes that will be hydrated.\n workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);\n } else {\n // Otherwise reset hydration state in case we aborted and resumed another\n // root.\n reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);\n resetHydrationState();\n }\n return workInProgress.child;\n}\n\nfunction updateHostComponent(current$$1, workInProgress, renderExpirationTime) {\n pushHostContext(workInProgress);\n\n if (current$$1 === null) {\n tryToClaimNextHydratableInstance(workInProgress);\n }\n\n var type = workInProgress.type;\n var nextProps = workInProgress.pendingProps;\n var prevProps = current$$1 !== null ? current$$1.memoizedProps : null;\n\n var nextChildren = nextProps.children;\n var isDirectTextChild = shouldSetTextContent(type, nextProps);\n\n if (isDirectTextChild) {\n // We special case a direct text child of a host node. This is a common\n // case. We won't handle it as a reified child. We will instead handle\n // this in the host environment that also have access to this prop. That\n // avoids allocating another HostText fiber and traversing it.\n nextChildren = null;\n } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {\n // If we're switching from a direct text child to a normal child, or to\n // empty, we need to schedule the text content to be reset.\n workInProgress.effectTag |= ContentReset;\n }\n\n markRef(current$$1, workInProgress);\n\n // Check the host config to see if the children are offscreen/hidden.\n if (renderExpirationTime !== Never && workInProgress.mode & ConcurrentMode && shouldDeprioritizeSubtree(type, nextProps)) {\n // Schedule this fiber to re-render at offscreen priority. Then bailout.\n workInProgress.expirationTime = workInProgress.childExpirationTime = Never;\n return null;\n }\n\n reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);\n return workInProgress.child;\n}\n\nfunction updateHostText(current$$1, workInProgress) {\n if (current$$1 === null) {\n tryToClaimNextHydratableInstance(workInProgress);\n }\n // Nothing to do here. This is terminal. We'll do the completion step\n // immediately after.\n return null;\n}\n\nfunction mountLazyComponent(_current, workInProgress, elementType, updateExpirationTime, renderExpirationTime) {\n if (_current !== null) {\n // An lazy component only mounts if it suspended inside a non-\n // concurrent tree, in an inconsistent state. We want to treat it like\n // a new mount, even though an empty version of it already committed.\n // Disconnect the alternate pointers.\n _current.alternate = null;\n workInProgress.alternate = null;\n // Since this is conceptually a new fiber, schedule a Placement effect\n workInProgress.effectTag |= Placement;\n }\n\n var props = workInProgress.pendingProps;\n // We can't start a User Timing measurement with correct label yet.\n // Cancel and resume right after we know the tag.\n cancelWorkTimer(workInProgress);\n var Component = readLazyComponentType(elementType);\n // Store the unwrapped component in the type.\n workInProgress.type = Component;\n var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);\n startWorkTimer(workInProgress);\n var resolvedProps = resolveDefaultProps(Component, props);\n var child = void 0;\n switch (resolvedTag) {\n case FunctionComponent:\n {\n {\n validateFunctionComponentInDev(workInProgress, Component);\n }\n child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);\n break;\n }\n case ClassComponent:\n {\n child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);\n break;\n }\n case ForwardRef:\n {\n child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderExpirationTime);\n break;\n }\n case MemoComponent:\n {\n {\n if (workInProgress.type !== workInProgress.elementType) {\n var outerPropTypes = Component.propTypes;\n if (outerPropTypes) {\n checkPropTypes(outerPropTypes, resolvedProps, // Resolved for outer only\n 'prop', getComponentName(Component), getCurrentFiberStackInDev);\n }\n }\n }\n child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too\n updateExpirationTime, renderExpirationTime);\n break;\n }\n default:\n {\n var hint = '';\n {\n if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) {\n hint = ' Did you wrap a component in React.lazy() more than once?';\n }\n }\n // This message intentionally doesn't mention ForwardRef or MemoComponent\n // because the fact that it's a separate type of work is an\n // implementation detail.\n invariant(false, 'Element type is invalid. Received a promise that resolves to: %s. Lazy element type must resolve to a class or function.%s', Component, hint);\n }\n }\n return child;\n}\n\nfunction mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderExpirationTime) {\n if (_current !== null) {\n // An incomplete component only mounts if it suspended inside a non-\n // concurrent tree, in an inconsistent state. We want to treat it like\n // a new mount, even though an empty version of it already committed.\n // Disconnect the alternate pointers.\n _current.alternate = null;\n workInProgress.alternate = null;\n // Since this is conceptually a new fiber, schedule a Placement effect\n workInProgress.effectTag |= Placement;\n }\n\n // Promote the fiber to a class and try rendering again.\n workInProgress.tag = ClassComponent;\n\n // The rest of this function is a fork of `updateClassComponent`\n\n // Push context providers early to prevent context stack mismatches.\n // During mounting we don't know the child context yet as the instance doesn't exist.\n // We will invalidate the child context in finishClassComponent() right after rendering.\n var hasContext = void 0;\n if (isContextProvider(Component)) {\n hasContext = true;\n pushContextProvider(workInProgress);\n } else {\n hasContext = false;\n }\n prepareToReadContext(workInProgress, renderExpirationTime);\n\n constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);\n mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);\n\n return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);\n}\n\nfunction mountIndeterminateComponent(_current, workInProgress, Component, renderExpirationTime) {\n if (_current !== null) {\n // An indeterminate component only mounts if it suspended inside a non-\n // concurrent tree, in an inconsistent state. We want to treat it like\n // a new mount, even though an empty version of it already committed.\n // Disconnect the alternate pointers.\n _current.alternate = null;\n workInProgress.alternate = null;\n // Since this is conceptually a new fiber, schedule a Placement effect\n workInProgress.effectTag |= Placement;\n }\n\n var props = workInProgress.pendingProps;\n var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);\n var context = getMaskedContext(workInProgress, unmaskedContext);\n\n prepareToReadContext(workInProgress, renderExpirationTime);\n\n var value = void 0;\n\n {\n if (Component.prototype && typeof Component.prototype.render === 'function') {\n var componentName = getComponentName(Component) || 'Unknown';\n\n if (!didWarnAboutBadClass[componentName]) {\n warningWithoutStack$1(false, \"The <%s /> component appears to have a render method, but doesn't extend React.Component. \" + 'This is likely to cause errors. Change %s to extend React.Component instead.', componentName, componentName);\n didWarnAboutBadClass[componentName] = true;\n }\n }\n\n if (workInProgress.mode & StrictMode) {\n ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);\n }\n\n ReactCurrentOwner$3.current = workInProgress;\n value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);\n }\n // React DevTools reads this flag.\n workInProgress.effectTag |= PerformedWork;\n\n if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {\n // Proceed under the assumption that this is a class instance\n workInProgress.tag = ClassComponent;\n\n // Throw out any hooks that were used.\n resetHooks();\n\n // Push context providers early to prevent context stack mismatches.\n // During mounting we don't know the child context yet as the instance doesn't exist.\n // We will invalidate the child context in finishClassComponent() right after rendering.\n var hasContext = false;\n if (isContextProvider(Component)) {\n hasContext = true;\n pushContextProvider(workInProgress);\n } else {\n hasContext = false;\n }\n\n workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;\n\n var getDerivedStateFromProps = Component.getDerivedStateFromProps;\n if (typeof getDerivedStateFromProps === 'function') {\n applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);\n }\n\n adoptClassInstance(workInProgress, value);\n mountClassInstance(workInProgress, Component, props, renderExpirationTime);\n return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);\n } else {\n // Proceed under the assumption that this is a function component\n workInProgress.tag = FunctionComponent;\n {\n if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {\n // Only double-render components with Hooks\n if (workInProgress.memoizedState !== null) {\n value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);\n }\n }\n }\n reconcileChildren(null, workInProgress, value, renderExpirationTime);\n {\n validateFunctionComponentInDev(workInProgress, Component);\n }\n return workInProgress.child;\n }\n}\n\nfunction validateFunctionComponentInDev(workInProgress, Component) {\n if (Component) {\n !!Component.childContextTypes ? warningWithoutStack$1(false, '%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component') : void 0;\n }\n if (workInProgress.ref !== null) {\n var info = '';\n var ownerName = getCurrentFiberOwnerNameInDevOrNull();\n if (ownerName) {\n info += '\\n\\nCheck the render method of `' + ownerName + '`.';\n }\n\n var warningKey = ownerName || workInProgress._debugID || '';\n var debugSource = workInProgress._debugSource;\n if (debugSource) {\n warningKey = debugSource.fileName + ':' + debugSource.lineNumber;\n }\n if (!didWarnAboutFunctionRefs[warningKey]) {\n didWarnAboutFunctionRefs[warningKey] = true;\n warning$1(false, 'Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info);\n }\n }\n\n if (typeof Component.getDerivedStateFromProps === 'function') {\n var componentName = getComponentName(Component) || 'Unknown';\n\n if (!didWarnAboutGetDerivedStateOnFunctionComponent[componentName]) {\n warningWithoutStack$1(false, '%s: Function components do not support getDerivedStateFromProps.', componentName);\n didWarnAboutGetDerivedStateOnFunctionComponent[componentName] = true;\n }\n }\n\n if (typeof Component.contextType === 'object' && Component.contextType !== null) {\n var _componentName = getComponentName(Component) || 'Unknown';\n\n if (!didWarnAboutContextTypeOnFunctionComponent[_componentName]) {\n warningWithoutStack$1(false, '%s: Function components do not support contextType.', _componentName);\n didWarnAboutContextTypeOnFunctionComponent[_componentName] = true;\n }\n }\n}\n\nfunction updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime) {\n var mode = workInProgress.mode;\n var nextProps = workInProgress.pendingProps;\n\n // We should attempt to render the primary children unless this boundary\n // already suspended during this render (`alreadyCaptured` is true).\n var nextState = workInProgress.memoizedState;\n\n var nextDidTimeout = void 0;\n if ((workInProgress.effectTag & DidCapture) === NoEffect) {\n // This is the first attempt.\n nextState = null;\n nextDidTimeout = false;\n } else {\n // Something in this boundary's subtree already suspended. Switch to\n // rendering the fallback children.\n nextState = {\n timedOutAt: nextState !== null ? nextState.timedOutAt : NoWork\n };\n nextDidTimeout = true;\n workInProgress.effectTag &= ~DidCapture;\n }\n\n // This next part is a bit confusing. If the children timeout, we switch to\n // showing the fallback children in place of the \"primary\" children.\n // However, we don't want to delete the primary children because then their\n // state will be lost (both the React state and the host state, e.g.\n // uncontrolled form inputs). Instead we keep them mounted and hide them.\n // Both the fallback children AND the primary children are rendered at the\n // same time. Once the primary children are un-suspended, we can delete\n // the fallback children — don't need to preserve their state.\n //\n // The two sets of children are siblings in the host environment, but\n // semantically, for purposes of reconciliation, they are two separate sets.\n // So we store them using two fragment fibers.\n //\n // However, we want to avoid allocating extra fibers for every placeholder.\n // They're only necessary when the children time out, because that's the\n // only time when both sets are mounted.\n //\n // So, the extra fragment fibers are only used if the children time out.\n // Otherwise, we render the primary children directly. This requires some\n // custom reconciliation logic to preserve the state of the primary\n // children. It's essentially a very basic form of re-parenting.\n\n // `child` points to the child fiber. In the normal case, this is the first\n // fiber of the primary children set. In the timed-out case, it's a\n // a fragment fiber containing the primary children.\n var child = void 0;\n // `next` points to the next fiber React should render. In the normal case,\n // it's the same as `child`: the first fiber of the primary children set.\n // In the timed-out case, it's a fragment fiber containing the *fallback*\n // children -- we skip over the primary children entirely.\n var next = void 0;\n if (current$$1 === null) {\n if (enableSuspenseServerRenderer) {\n // If we're currently hydrating, try to hydrate this boundary.\n // But only if this has a fallback.\n if (nextProps.fallback !== undefined) {\n tryToClaimNextHydratableInstance(workInProgress);\n // This could've changed the tag if this was a dehydrated suspense component.\n if (workInProgress.tag === DehydratedSuspenseComponent) {\n return updateDehydratedSuspenseComponent(null, workInProgress, renderExpirationTime);\n }\n }\n }\n\n // This is the initial mount. This branch is pretty simple because there's\n // no previous state that needs to be preserved.\n if (nextDidTimeout) {\n // Mount separate fragments for primary and fallback children.\n var nextFallbackChildren = nextProps.fallback;\n var primaryChildFragment = createFiberFromFragment(null, mode, NoWork, null);\n\n if ((workInProgress.mode & ConcurrentMode) === NoContext) {\n // Outside of concurrent mode, we commit the effects from the\n var progressedState = workInProgress.memoizedState;\n var progressedPrimaryChild = progressedState !== null ? workInProgress.child.child : workInProgress.child;\n primaryChildFragment.child = progressedPrimaryChild;\n }\n\n var fallbackChildFragment = createFiberFromFragment(nextFallbackChildren, mode, renderExpirationTime, null);\n primaryChildFragment.sibling = fallbackChildFragment;\n child = primaryChildFragment;\n // Skip the primary children, and continue working on the\n // fallback children.\n next = fallbackChildFragment;\n child.return = next.return = workInProgress;\n } else {\n // Mount the primary children without an intermediate fragment fiber.\n var nextPrimaryChildren = nextProps.children;\n child = next = mountChildFibers(workInProgress, null, nextPrimaryChildren, renderExpirationTime);\n }\n } else {\n // This is an update. This branch is more complicated because we need to\n // ensure the state of the primary children is preserved.\n var prevState = current$$1.memoizedState;\n var prevDidTimeout = prevState !== null;\n if (prevDidTimeout) {\n // The current tree already timed out. That means each child set is\n var currentPrimaryChildFragment = current$$1.child;\n var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;\n if (nextDidTimeout) {\n // Still timed out. Reuse the current primary children by cloning\n // its fragment. We're going to skip over these entirely.\n var _nextFallbackChildren = nextProps.fallback;\n var _primaryChildFragment = createWorkInProgress(currentPrimaryChildFragment, currentPrimaryChildFragment.pendingProps, NoWork);\n\n if ((workInProgress.mode & ConcurrentMode) === NoContext) {\n // Outside of concurrent mode, we commit the effects from the\n var _progressedState = workInProgress.memoizedState;\n var _progressedPrimaryChild = _progressedState !== null ? workInProgress.child.child : workInProgress.child;\n if (_progressedPrimaryChild !== currentPrimaryChildFragment.child) {\n _primaryChildFragment.child = _progressedPrimaryChild;\n }\n }\n\n // Because primaryChildFragment is a new fiber that we're inserting as the\n // parent of a new tree, we need to set its treeBaseDuration.\n if (enableProfilerTimer && workInProgress.mode & ProfileMode) {\n // treeBaseDuration is the sum of all the child tree base durations.\n var treeBaseDuration = 0;\n var hiddenChild = _primaryChildFragment.child;\n while (hiddenChild !== null) {\n treeBaseDuration += hiddenChild.treeBaseDuration;\n hiddenChild = hiddenChild.sibling;\n }\n _primaryChildFragment.treeBaseDuration = treeBaseDuration;\n }\n\n // Clone the fallback child fragment, too. These we'll continue\n // working on.\n var _fallbackChildFragment = _primaryChildFragment.sibling = createWorkInProgress(currentFallbackChildFragment, _nextFallbackChildren, currentFallbackChildFragment.expirationTime);\n child = _primaryChildFragment;\n _primaryChildFragment.childExpirationTime = NoWork;\n // Skip the primary children, and continue working on the\n // fallback children.\n next = _fallbackChildFragment;\n child.return = next.return = workInProgress;\n } else {\n // No longer suspended. Switch back to showing the primary children,\n // and remove the intermediate fragment fiber.\n var _nextPrimaryChildren = nextProps.children;\n var currentPrimaryChild = currentPrimaryChildFragment.child;\n var primaryChild = reconcileChildFibers(workInProgress, currentPrimaryChild, _nextPrimaryChildren, renderExpirationTime);\n\n // If this render doesn't suspend, we need to delete the fallback\n // children. Wait until the complete phase, after we've confirmed the\n // fallback is no longer needed.\n // TODO: Would it be better to store the fallback fragment on\n // the stateNode?\n\n // Continue rendering the children, like we normally do.\n child = next = primaryChild;\n }\n } else {\n // The current tree has not already timed out. That means the primary\n // children are not wrapped in a fragment fiber.\n var _currentPrimaryChild = current$$1.child;\n if (nextDidTimeout) {\n // Timed out. Wrap the children in a fragment fiber to keep them\n // separate from the fallback children.\n var _nextFallbackChildren2 = nextProps.fallback;\n var _primaryChildFragment2 = createFiberFromFragment(\n // It shouldn't matter what the pending props are because we aren't\n // going to render this fragment.\n null, mode, NoWork, null);\n _primaryChildFragment2.child = _currentPrimaryChild;\n\n // Even though we're creating a new fiber, there are no new children,\n // because we're reusing an already mounted tree. So we don't need to\n // schedule a placement.\n // primaryChildFragment.effectTag |= Placement;\n\n if ((workInProgress.mode & ConcurrentMode) === NoContext) {\n // Outside of concurrent mode, we commit the effects from the\n var _progressedState2 = workInProgress.memoizedState;\n var _progressedPrimaryChild2 = _progressedState2 !== null ? workInProgress.child.child : workInProgress.child;\n _primaryChildFragment2.child = _progressedPrimaryChild2;\n }\n\n // Because primaryChildFragment is a new fiber that we're inserting as the\n // parent of a new tree, we need to set its treeBaseDuration.\n if (enableProfilerTimer && workInProgress.mode & ProfileMode) {\n // treeBaseDuration is the sum of all the child tree base durations.\n var _treeBaseDuration = 0;\n var _hiddenChild = _primaryChildFragment2.child;\n while (_hiddenChild !== null) {\n _treeBaseDuration += _hiddenChild.treeBaseDuration;\n _hiddenChild = _hiddenChild.sibling;\n }\n _primaryChildFragment2.treeBaseDuration = _treeBaseDuration;\n }\n\n // Create a fragment from the fallback children, too.\n var _fallbackChildFragment2 = _primaryChildFragment2.sibling = createFiberFromFragment(_nextFallbackChildren2, mode, renderExpirationTime, null);\n _fallbackChildFragment2.effectTag |= Placement;\n child = _primaryChildFragment2;\n _primaryChildFragment2.childExpirationTime = NoWork;\n // Skip the primary children, and continue working on the\n // fallback children.\n next = _fallbackChildFragment2;\n child.return = next.return = workInProgress;\n } else {\n // Still haven't timed out. Continue rendering the children, like we\n // normally do.\n var _nextPrimaryChildren2 = nextProps.children;\n next = child = reconcileChildFibers(workInProgress, _currentPrimaryChild, _nextPrimaryChildren2, renderExpirationTime);\n }\n }\n workInProgress.stateNode = current$$1.stateNode;\n }\n\n workInProgress.memoizedState = nextState;\n workInProgress.child = child;\n return next;\n}\n\nfunction updateDehydratedSuspenseComponent(current$$1, workInProgress, renderExpirationTime) {\n if (current$$1 === null) {\n // During the first pass, we'll bail out and not drill into the children.\n // Instead, we'll leave the content in place and try to hydrate it later.\n workInProgress.expirationTime = Never;\n return null;\n }\n // We use childExpirationTime to indicate that a child might depend on context, so if\n // any context has changed, we need to treat is as if the input might have changed.\n var hasContextChanged$$1 = current$$1.childExpirationTime >= renderExpirationTime;\n if (didReceiveUpdate || hasContextChanged$$1) {\n // This boundary has changed since the first render. This means that we are now unable to\n // hydrate it. We might still be able to hydrate it using an earlier expiration time but\n // during this render we can't. Instead, we're going to delete the whole subtree and\n // instead inject a new real Suspense boundary to take its place, which may render content\n // or fallback. The real Suspense boundary will suspend for a while so we have some time\n // to ensure it can produce real content, but all state and pending events will be lost.\n\n // Detach from the current dehydrated boundary.\n current$$1.alternate = null;\n workInProgress.alternate = null;\n\n // Insert a deletion in the effect list.\n var returnFiber = workInProgress.return;\n !(returnFiber !== null) ? invariant(false, 'Suspense boundaries are never on the root. This is probably a bug in React.') : void 0;\n var last = returnFiber.lastEffect;\n if (last !== null) {\n last.nextEffect = current$$1;\n returnFiber.lastEffect = current$$1;\n } else {\n returnFiber.firstEffect = returnFiber.lastEffect = current$$1;\n }\n current$$1.nextEffect = null;\n current$$1.effectTag = Deletion;\n\n // Upgrade this work in progress to a real Suspense component.\n workInProgress.tag = SuspenseComponent;\n workInProgress.stateNode = null;\n workInProgress.memoizedState = null;\n // This is now an insertion.\n workInProgress.effectTag |= Placement;\n // Retry as a real Suspense component.\n return updateSuspenseComponent(null, workInProgress, renderExpirationTime);\n }\n if ((workInProgress.effectTag & DidCapture) === NoEffect) {\n // This is the first attempt.\n reenterHydrationStateFromDehydratedSuspenseInstance(workInProgress);\n var nextProps = workInProgress.pendingProps;\n var nextChildren = nextProps.children;\n workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);\n return workInProgress.child;\n } else {\n // Something suspended. Leave the existing children in place.\n // TODO: In non-concurrent mode, should we commit the nodes we have hydrated so far?\n workInProgress.child = null;\n return null;\n }\n}\n\nfunction updatePortalComponent(current$$1, workInProgress, renderExpirationTime) {\n pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);\n var nextChildren = workInProgress.pendingProps;\n if (current$$1 === null) {\n // Portals are special because we don't append the children during mount\n // but at commit. Therefore we need to track insertions which the normal\n // flow doesn't do during mount. This doesn't happen at the root because\n // the root always starts with a \"current\" with a null child.\n // TODO: Consider unifying this with how the root works.\n workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);\n } else {\n reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);\n }\n return workInProgress.child;\n}\n\nfunction updateContextProvider(current$$1, workInProgress, renderExpirationTime) {\n var providerType = workInProgress.type;\n var context = providerType._context;\n\n var newProps = workInProgress.pendingProps;\n var oldProps = workInProgress.memoizedProps;\n\n var newValue = newProps.value;\n\n {\n var providerPropTypes = workInProgress.type.propTypes;\n\n if (providerPropTypes) {\n checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider', getCurrentFiberStackInDev);\n }\n }\n\n pushProvider(workInProgress, newValue);\n\n if (oldProps !== null) {\n var oldValue = oldProps.value;\n var changedBits = calculateChangedBits(context, newValue, oldValue);\n if (changedBits === 0) {\n // No change. Bailout early if children are the same.\n if (oldProps.children === newProps.children && !hasContextChanged()) {\n return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);\n }\n } else {\n // The context value changed. Search for matching consumers and schedule\n // them to update.\n propagateContextChange(workInProgress, context, changedBits, renderExpirationTime);\n }\n }\n\n var newChildren = newProps.children;\n reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);\n return workInProgress.child;\n}\n\nvar hasWarnedAboutUsingContextAsConsumer = false;\n\nfunction updateContextConsumer(current$$1, workInProgress, renderExpirationTime) {\n var context = workInProgress.type;\n // The logic below for Context differs depending on PROD or DEV mode. In\n // DEV mode, we create a separate object for Context.Consumer that acts\n // like a proxy to Context. This proxy object adds unnecessary code in PROD\n // so we use the old behaviour (Context.Consumer references Context) to\n // reduce size and overhead. The separate object references context via\n // a property called \"_context\", which also gives us the ability to check\n // in DEV mode if this property exists or not and warn if it does not.\n {\n if (context._context === undefined) {\n // This may be because it's a Context (rather than a Consumer).\n // Or it may be because it's older React where they're the same thing.\n // We only want to warn if we're sure it's a new React.\n if (context !== context.Consumer) {\n if (!hasWarnedAboutUsingContextAsConsumer) {\n hasWarnedAboutUsingContextAsConsumer = true;\n warning$1(false, 'Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');\n }\n }\n } else {\n context = context._context;\n }\n }\n var newProps = workInProgress.pendingProps;\n var render = newProps.children;\n\n {\n !(typeof render === 'function') ? warningWithoutStack$1(false, 'A context consumer was rendered with multiple children, or a child ' + \"that isn't a function. A context consumer expects a single child \" + 'that is a function. If you did pass a function, make sure there ' + 'is no trailing or leading whitespace around it.') : void 0;\n }\n\n prepareToReadContext(workInProgress, renderExpirationTime);\n var newValue = readContext(context, newProps.unstable_observedBits);\n var newChildren = void 0;\n {\n ReactCurrentOwner$3.current = workInProgress;\n setCurrentPhase('render');\n newChildren = render(newValue);\n setCurrentPhase(null);\n }\n\n // React DevTools reads this flag.\n workInProgress.effectTag |= PerformedWork;\n reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);\n return workInProgress.child;\n}\n\nfunction markWorkInProgressReceivedUpdate() {\n didReceiveUpdate = true;\n}\n\nfunction bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime) {\n cancelWorkTimer(workInProgress);\n\n if (current$$1 !== null) {\n // Reuse previous context list\n workInProgress.contextDependencies = current$$1.contextDependencies;\n }\n\n if (enableProfilerTimer) {\n // Don't update \"base\" render times for bailouts.\n stopProfilerTimerIfRunning(workInProgress);\n }\n\n // Check if the children have any pending work.\n var childExpirationTime = workInProgress.childExpirationTime;\n if (childExpirationTime < renderExpirationTime) {\n // The children don't have any work either. We can skip them.\n // TODO: Once we add back resuming, we should check if the children are\n // a work-in-progress set. If so, we need to transfer their effects.\n return null;\n } else {\n // This fiber doesn't have work, but its subtree does. Clone the child\n // fibers and continue.\n cloneChildFibers(current$$1, workInProgress);\n return workInProgress.child;\n }\n}\n\nfunction beginWork(current$$1, workInProgress, renderExpirationTime) {\n var updateExpirationTime = workInProgress.expirationTime;\n\n if (current$$1 !== null) {\n var oldProps = current$$1.memoizedProps;\n var newProps = workInProgress.pendingProps;\n\n if (oldProps !== newProps || hasContextChanged()) {\n // If props or context changed, mark the fiber as having performed work.\n // This may be unset if the props are determined to be equal later (memo).\n didReceiveUpdate = true;\n } else if (updateExpirationTime < renderExpirationTime) {\n didReceiveUpdate = false;\n // This fiber does not have any pending work. Bailout without entering\n // the begin phase. There's still some bookkeeping we that needs to be done\n // in this optimized path, mostly pushing stuff onto the stack.\n switch (workInProgress.tag) {\n case HostRoot:\n pushHostRootContext(workInProgress);\n resetHydrationState();\n break;\n case HostComponent:\n pushHostContext(workInProgress);\n break;\n case ClassComponent:\n {\n var Component = workInProgress.type;\n if (isContextProvider(Component)) {\n pushContextProvider(workInProgress);\n }\n break;\n }\n case HostPortal:\n pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);\n break;\n case ContextProvider:\n {\n var newValue = workInProgress.memoizedProps.value;\n pushProvider(workInProgress, newValue);\n break;\n }\n case Profiler:\n if (enableProfilerTimer) {\n workInProgress.effectTag |= Update;\n }\n break;\n case SuspenseComponent:\n {\n var state = workInProgress.memoizedState;\n var didTimeout = state !== null;\n if (didTimeout) {\n // If this boundary is currently timed out, we need to decide\n // whether to retry the primary children, or to skip over it and\n // go straight to the fallback. Check the priority of the primary\n var primaryChildFragment = workInProgress.child;\n var primaryChildExpirationTime = primaryChildFragment.childExpirationTime;\n if (primaryChildExpirationTime !== NoWork && primaryChildExpirationTime >= renderExpirationTime) {\n // The primary children have pending work. Use the normal path\n // to attempt to render the primary children again.\n return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);\n } else {\n // The primary children do not have pending work with sufficient\n // priority. Bailout.\n var child = bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);\n if (child !== null) {\n // The fallback children have pending work. Skip over the\n // primary children and work on the fallback.\n return child.sibling;\n } else {\n return null;\n }\n }\n }\n break;\n }\n case DehydratedSuspenseComponent:\n {\n if (enableSuspenseServerRenderer) {\n // We know that this component will suspend again because if it has\n // been unsuspended it has committed as a regular Suspense component.\n // If it needs to be retried, it should have work scheduled on it.\n workInProgress.effectTag |= DidCapture;\n break;\n }\n }\n }\n return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);\n }\n } else {\n didReceiveUpdate = false;\n }\n\n // Before entering the begin phase, clear the expiration time.\n workInProgress.expirationTime = NoWork;\n\n switch (workInProgress.tag) {\n case IndeterminateComponent:\n {\n var elementType = workInProgress.elementType;\n return mountIndeterminateComponent(current$$1, workInProgress, elementType, renderExpirationTime);\n }\n case LazyComponent:\n {\n var _elementType = workInProgress.elementType;\n return mountLazyComponent(current$$1, workInProgress, _elementType, updateExpirationTime, renderExpirationTime);\n }\n case FunctionComponent:\n {\n var _Component = workInProgress.type;\n var unresolvedProps = workInProgress.pendingProps;\n var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);\n return updateFunctionComponent(current$$1, workInProgress, _Component, resolvedProps, renderExpirationTime);\n }\n case ClassComponent:\n {\n var _Component2 = workInProgress.type;\n var _unresolvedProps = workInProgress.pendingProps;\n var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);\n return updateClassComponent(current$$1, workInProgress, _Component2, _resolvedProps, renderExpirationTime);\n }\n case HostRoot:\n return updateHostRoot(current$$1, workInProgress, renderExpirationTime);\n case HostComponent:\n return updateHostComponent(current$$1, workInProgress, renderExpirationTime);\n case HostText:\n return updateHostText(current$$1, workInProgress);\n case SuspenseComponent:\n return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);\n case HostPortal:\n return updatePortalComponent(current$$1, workInProgress, renderExpirationTime);\n case ForwardRef:\n {\n var type = workInProgress.type;\n var _unresolvedProps2 = workInProgress.pendingProps;\n var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);\n return updateForwardRef(current$$1, workInProgress, type, _resolvedProps2, renderExpirationTime);\n }\n case Fragment:\n return updateFragment(current$$1, workInProgress, renderExpirationTime);\n case Mode:\n return updateMode(current$$1, workInProgress, renderExpirationTime);\n case Profiler:\n return updateProfiler(current$$1, workInProgress, renderExpirationTime);\n case ContextProvider:\n return updateContextProvider(current$$1, workInProgress, renderExpirationTime);\n case ContextConsumer:\n return updateContextConsumer(current$$1, workInProgress, renderExpirationTime);\n case MemoComponent:\n {\n var _type2 = workInProgress.type;\n var _unresolvedProps3 = workInProgress.pendingProps;\n // Resolve outer props first, then resolve inner props.\n var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3);\n {\n if (workInProgress.type !== workInProgress.elementType) {\n var outerPropTypes = _type2.propTypes;\n if (outerPropTypes) {\n checkPropTypes(outerPropTypes, _resolvedProps3, // Resolved for outer only\n 'prop', getComponentName(_type2), getCurrentFiberStackInDev);\n }\n }\n }\n _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3);\n return updateMemoComponent(current$$1, workInProgress, _type2, _resolvedProps3, updateExpirationTime, renderExpirationTime);\n }\n case SimpleMemoComponent:\n {\n return updateSimpleMemoComponent(current$$1, workInProgress, workInProgress.type, workInProgress.pendingProps, updateExpirationTime, renderExpirationTime);\n }\n case IncompleteClassComponent:\n {\n var _Component3 = workInProgress.type;\n var _unresolvedProps4 = workInProgress.pendingProps;\n var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);\n return mountIncompleteClassComponent(current$$1, workInProgress, _Component3, _resolvedProps4, renderExpirationTime);\n }\n case DehydratedSuspenseComponent:\n {\n if (enableSuspenseServerRenderer) {\n return updateDehydratedSuspenseComponent(current$$1, workInProgress, renderExpirationTime);\n }\n break;\n }\n }\n invariant(false, 'Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.');\n}\n\nvar valueCursor = createCursor(null);\n\nvar rendererSigil = void 0;\n{\n // Use this to detect multiple renderers using the same context\n rendererSigil = {};\n}\n\nvar currentlyRenderingFiber = null;\nvar lastContextDependency = null;\nvar lastContextWithAllBitsObserved = null;\n\nvar isDisallowedContextReadInDEV = false;\n\nfunction resetContextDependences() {\n // This is called right before React yields execution, to ensure `readContext`\n // cannot be called outside the render phase.\n currentlyRenderingFiber = null;\n lastContextDependency = null;\n lastContextWithAllBitsObserved = null;\n {\n isDisallowedContextReadInDEV = false;\n }\n}\n\nfunction enterDisallowedContextReadInDEV() {\n {\n isDisallowedContextReadInDEV = true;\n }\n}\n\nfunction exitDisallowedContextReadInDEV() {\n {\n isDisallowedContextReadInDEV = false;\n }\n}\n\nfunction pushProvider(providerFiber, nextValue) {\n var context = providerFiber.type._context;\n\n if (isPrimaryRenderer) {\n push(valueCursor, context._currentValue, providerFiber);\n\n context._currentValue = nextValue;\n {\n !(context._currentRenderer === undefined || context._currentRenderer === null || context._currentRenderer === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0;\n context._currentRenderer = rendererSigil;\n }\n } else {\n push(valueCursor, context._currentValue2, providerFiber);\n\n context._currentValue2 = nextValue;\n {\n !(context._currentRenderer2 === undefined || context._currentRenderer2 === null || context._currentRenderer2 === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0;\n context._currentRenderer2 = rendererSigil;\n }\n }\n}\n\nfunction popProvider(providerFiber) {\n var currentValue = valueCursor.current;\n\n pop(valueCursor, providerFiber);\n\n var context = providerFiber.type._context;\n if (isPrimaryRenderer) {\n context._currentValue = currentValue;\n } else {\n context._currentValue2 = currentValue;\n }\n}\n\nfunction calculateChangedBits(context, newValue, oldValue) {\n if (is(oldValue, newValue)) {\n // No change\n return 0;\n } else {\n var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : maxSigned31BitInt;\n\n {\n !((changedBits & maxSigned31BitInt) === changedBits) ? warning$1(false, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits) : void 0;\n }\n return changedBits | 0;\n }\n}\n\nfunction scheduleWorkOnParentPath(parent, renderExpirationTime) {\n // Update the child expiration time of all the ancestors, including\n // the alternates.\n var node = parent;\n while (node !== null) {\n var alternate = node.alternate;\n if (node.childExpirationTime < renderExpirationTime) {\n node.childExpirationTime = renderExpirationTime;\n if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {\n alternate.childExpirationTime = renderExpirationTime;\n }\n } else if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {\n alternate.childExpirationTime = renderExpirationTime;\n } else {\n // Neither alternate was updated, which means the rest of the\n // ancestor path already has sufficient priority.\n break;\n }\n node = node.return;\n }\n}\n\nfunction propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) {\n var fiber = workInProgress.child;\n if (fiber !== null) {\n // Set the return pointer of the child to the work-in-progress fiber.\n fiber.return = workInProgress;\n }\n while (fiber !== null) {\n var nextFiber = void 0;\n\n // Visit this fiber.\n var list = fiber.contextDependencies;\n if (list !== null) {\n nextFiber = fiber.child;\n\n var dependency = list.first;\n while (dependency !== null) {\n // Check if the context matches.\n if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {\n // Match! Schedule an update on this fiber.\n\n if (fiber.tag === ClassComponent) {\n // Schedule a force update on the work-in-progress.\n var update = createUpdate(renderExpirationTime);\n update.tag = ForceUpdate;\n // TODO: Because we don't have a work-in-progress, this will add the\n // update to the current fiber, too, which means it will persist even if\n // this render is thrown away. Since it's a race condition, not sure it's\n // worth fixing.\n enqueueUpdate(fiber, update);\n }\n\n if (fiber.expirationTime < renderExpirationTime) {\n fiber.expirationTime = renderExpirationTime;\n }\n var alternate = fiber.alternate;\n if (alternate !== null && alternate.expirationTime < renderExpirationTime) {\n alternate.expirationTime = renderExpirationTime;\n }\n\n scheduleWorkOnParentPath(fiber.return, renderExpirationTime);\n\n // Mark the expiration time on the list, too.\n if (list.expirationTime < renderExpirationTime) {\n list.expirationTime = renderExpirationTime;\n }\n\n // Since we already found a match, we can stop traversing the\n // dependency list.\n break;\n }\n dependency = dependency.next;\n }\n } else if (fiber.tag === ContextProvider) {\n // Don't scan deeper if this is a matching provider\n nextFiber = fiber.type === workInProgress.type ? null : fiber.child;\n } else if (enableSuspenseServerRenderer && fiber.tag === DehydratedSuspenseComponent) {\n // If a dehydrated suspense component is in this subtree, we don't know\n // if it will have any context consumers in it. The best we can do is\n // mark it as having updates on its children.\n if (fiber.expirationTime < renderExpirationTime) {\n fiber.expirationTime = renderExpirationTime;\n }\n var _alternate = fiber.alternate;\n if (_alternate !== null && _alternate.expirationTime < renderExpirationTime) {\n _alternate.expirationTime = renderExpirationTime;\n }\n // This is intentionally passing this fiber as the parent\n // because we want to schedule this fiber as having work\n // on its children. We'll use the childExpirationTime on\n // this fiber to indicate that a context has changed.\n scheduleWorkOnParentPath(fiber, renderExpirationTime);\n nextFiber = fiber.sibling;\n } else {\n // Traverse down.\n nextFiber = fiber.child;\n }\n\n if (nextFiber !== null) {\n // Set the return pointer of the child to the work-in-progress fiber.\n nextFiber.return = fiber;\n } else {\n // No child. Traverse to next sibling.\n nextFiber = fiber;\n while (nextFiber !== null) {\n if (nextFiber === workInProgress) {\n // We're back to the root of this subtree. Exit.\n nextFiber = null;\n break;\n }\n var sibling = nextFiber.sibling;\n if (sibling !== null) {\n // Set the return pointer of the sibling to the work-in-progress fiber.\n sibling.return = nextFiber.return;\n nextFiber = sibling;\n break;\n }\n // No more siblings. Traverse up.\n nextFiber = nextFiber.return;\n }\n }\n fiber = nextFiber;\n }\n}\n\nfunction prepareToReadContext(workInProgress, renderExpirationTime) {\n currentlyRenderingFiber = workInProgress;\n lastContextDependency = null;\n lastContextWithAllBitsObserved = null;\n\n var currentDependencies = workInProgress.contextDependencies;\n if (currentDependencies !== null && currentDependencies.expirationTime >= renderExpirationTime) {\n // Context list has a pending update. Mark that this fiber performed work.\n markWorkInProgressReceivedUpdate();\n }\n\n // Reset the work-in-progress list\n workInProgress.contextDependencies = null;\n}\n\nfunction readContext(context, observedBits) {\n {\n // This warning would fire if you read context inside a Hook like useMemo.\n // Unlike the class check below, it's not enforced in production for perf.\n !!isDisallowedContextReadInDEV ? warning$1(false, 'Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().') : void 0;\n }\n\n if (lastContextWithAllBitsObserved === context) {\n // Nothing to do. We already observe everything in this context.\n } else if (observedBits === false || observedBits === 0) {\n // Do not observe any updates.\n } else {\n var resolvedObservedBits = void 0; // Avoid deopting on observable arguments or heterogeneous types.\n if (typeof observedBits !== 'number' || observedBits === maxSigned31BitInt) {\n // Observe all updates.\n lastContextWithAllBitsObserved = context;\n resolvedObservedBits = maxSigned31BitInt;\n } else {\n resolvedObservedBits = observedBits;\n }\n\n var contextItem = {\n context: context,\n observedBits: resolvedObservedBits,\n next: null\n };\n\n if (lastContextDependency === null) {\n !(currentlyRenderingFiber !== null) ? invariant(false, 'Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().') : void 0;\n\n // This is the first dependency for this component. Create a new list.\n lastContextDependency = contextItem;\n currentlyRenderingFiber.contextDependencies = {\n first: contextItem,\n expirationTime: NoWork\n };\n } else {\n // Append a new context item.\n lastContextDependency = lastContextDependency.next = contextItem;\n }\n }\n return isPrimaryRenderer ? context._currentValue : context._currentValue2;\n}\n\n// UpdateQueue is a linked list of prioritized updates.\n//\n// Like fibers, update queues come in pairs: a current queue, which represents\n// the visible state of the screen, and a work-in-progress queue, which can be\n// mutated and processed asynchronously before it is committed — a form of\n// double buffering. If a work-in-progress render is discarded before finishing,\n// we create a new work-in-progress by cloning the current queue.\n//\n// Both queues share a persistent, singly-linked list structure. To schedule an\n// update, we append it to the end of both queues. Each queue maintains a\n// pointer to first update in the persistent list that hasn't been processed.\n// The work-in-progress pointer always has a position equal to or greater than\n// the current queue, since we always work on that one. The current queue's\n// pointer is only updated during the commit phase, when we swap in the\n// work-in-progress.\n//\n// For example:\n//\n// Current pointer: A - B - C - D - E - F\n// Work-in-progress pointer: D - E - F\n// ^\n// The work-in-progress queue has\n// processed more updates than current.\n//\n// The reason we append to both queues is because otherwise we might drop\n// updates without ever processing them. For example, if we only add updates to\n// the work-in-progress queue, some updates could be lost whenever a work-in\n// -progress render restarts by cloning from current. Similarly, if we only add\n// updates to the current queue, the updates will be lost whenever an already\n// in-progress queue commits and swaps with the current queue. However, by\n// adding to both queues, we guarantee that the update will be part of the next\n// work-in-progress. (And because the work-in-progress queue becomes the\n// current queue once it commits, there's no danger of applying the same\n// update twice.)\n//\n// Prioritization\n// --------------\n//\n// Updates are not sorted by priority, but by insertion; new updates are always\n// appended to the end of the list.\n//\n// The priority is still important, though. When processing the update queue\n// during the render phase, only the updates with sufficient priority are\n// included in the result. If we skip an update because it has insufficient\n// priority, it remains in the queue to be processed later, during a lower\n// priority render. Crucially, all updates subsequent to a skipped update also\n// remain in the queue *regardless of their priority*. That means high priority\n// updates are sometimes processed twice, at two separate priorities. We also\n// keep track of a base state, that represents the state before the first\n// update in the queue is applied.\n//\n// For example:\n//\n// Given a base state of '', and the following queue of updates\n//\n// A1 - B2 - C1 - D2\n//\n// where the number indicates the priority, and the update is applied to the\n// previous state by appending a letter, React will process these updates as\n// two separate renders, one per distinct priority level:\n//\n// First render, at priority 1:\n// Base state: ''\n// Updates: [A1, C1]\n// Result state: 'AC'\n//\n// Second render, at priority 2:\n// Base state: 'A' <- The base state does not include C1,\n// because B2 was skipped.\n// Updates: [B2, C1, D2] <- C1 was rebased on top of B2\n// Result state: 'ABCD'\n//\n// Because we process updates in insertion order, and rebase high priority\n// updates when preceding updates are skipped, the final result is deterministic\n// regardless of priority. Intermediate state may vary according to system\n// resources, but the final state is always the same.\n\nvar UpdateState = 0;\nvar ReplaceState = 1;\nvar ForceUpdate = 2;\nvar CaptureUpdate = 3;\n\n// Global state that is reset at the beginning of calling `processUpdateQueue`.\n// It should only be read right after calling `processUpdateQueue`, via\n// `checkHasForceUpdateAfterProcessing`.\nvar hasForceUpdate = false;\n\nvar didWarnUpdateInsideUpdate = void 0;\nvar currentlyProcessingQueue = void 0;\nvar resetCurrentlyProcessingQueue = void 0;\n{\n didWarnUpdateInsideUpdate = false;\n currentlyProcessingQueue = null;\n resetCurrentlyProcessingQueue = function () {\n currentlyProcessingQueue = null;\n };\n}\n\nfunction createUpdateQueue(baseState) {\n var queue = {\n baseState: baseState,\n firstUpdate: null,\n lastUpdate: null,\n firstCapturedUpdate: null,\n lastCapturedUpdate: null,\n firstEffect: null,\n lastEffect: null,\n firstCapturedEffect: null,\n lastCapturedEffect: null\n };\n return queue;\n}\n\nfunction cloneUpdateQueue(currentQueue) {\n var queue = {\n baseState: currentQueue.baseState,\n firstUpdate: currentQueue.firstUpdate,\n lastUpdate: currentQueue.lastUpdate,\n\n // TODO: With resuming, if we bail out and resuse the child tree, we should\n // keep these effects.\n firstCapturedUpdate: null,\n lastCapturedUpdate: null,\n\n firstEffect: null,\n lastEffect: null,\n\n firstCapturedEffect: null,\n lastCapturedEffect: null\n };\n return queue;\n}\n\nfunction createUpdate(expirationTime) {\n return {\n expirationTime: expirationTime,\n\n tag: UpdateState,\n payload: null,\n callback: null,\n\n next: null,\n nextEffect: null\n };\n}\n\nfunction appendUpdateToQueue(queue, update) {\n // Append the update to the end of the list.\n if (queue.lastUpdate === null) {\n // Queue is empty\n queue.firstUpdate = queue.lastUpdate = update;\n } else {\n queue.lastUpdate.next = update;\n queue.lastUpdate = update;\n }\n}\n\nfunction enqueueUpdate(fiber, update) {\n // Update queues are created lazily.\n var alternate = fiber.alternate;\n var queue1 = void 0;\n var queue2 = void 0;\n if (alternate === null) {\n // There's only one fiber.\n queue1 = fiber.updateQueue;\n queue2 = null;\n if (queue1 === null) {\n queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);\n }\n } else {\n // There are two owners.\n queue1 = fiber.updateQueue;\n queue2 = alternate.updateQueue;\n if (queue1 === null) {\n if (queue2 === null) {\n // Neither fiber has an update queue. Create new ones.\n queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);\n queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState);\n } else {\n // Only one fiber has an update queue. Clone to create a new one.\n queue1 = fiber.updateQueue = cloneUpdateQueue(queue2);\n }\n } else {\n if (queue2 === null) {\n // Only one fiber has an update queue. Clone to create a new one.\n queue2 = alternate.updateQueue = cloneUpdateQueue(queue1);\n } else {\n // Both owners have an update queue.\n }\n }\n }\n if (queue2 === null || queue1 === queue2) {\n // There's only a single queue.\n appendUpdateToQueue(queue1, update);\n } else {\n // There are two queues. We need to append the update to both queues,\n // while accounting for the persistent structure of the list — we don't\n // want the same update to be added multiple times.\n if (queue1.lastUpdate === null || queue2.lastUpdate === null) {\n // One of the queues is not empty. We must add the update to both queues.\n appendUpdateToQueue(queue1, update);\n appendUpdateToQueue(queue2, update);\n } else {\n // Both queues are non-empty. The last update is the same in both lists,\n // because of structural sharing. So, only append to one of the lists.\n appendUpdateToQueue(queue1, update);\n // But we still need to update the `lastUpdate` pointer of queue2.\n queue2.lastUpdate = update;\n }\n }\n\n {\n if (fiber.tag === ClassComponent && (currentlyProcessingQueue === queue1 || queue2 !== null && currentlyProcessingQueue === queue2) && !didWarnUpdateInsideUpdate) {\n warningWithoutStack$1(false, 'An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');\n didWarnUpdateInsideUpdate = true;\n }\n }\n}\n\nfunction enqueueCapturedUpdate(workInProgress, update) {\n // Captured updates go into a separate list, and only on the work-in-\n // progress queue.\n var workInProgressQueue = workInProgress.updateQueue;\n if (workInProgressQueue === null) {\n workInProgressQueue = workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState);\n } else {\n // TODO: I put this here rather than createWorkInProgress so that we don't\n // clone the queue unnecessarily. There's probably a better way to\n // structure this.\n workInProgressQueue = ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue);\n }\n\n // Append the update to the end of the list.\n if (workInProgressQueue.lastCapturedUpdate === null) {\n // This is the first render phase update\n workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update;\n } else {\n workInProgressQueue.lastCapturedUpdate.next = update;\n workInProgressQueue.lastCapturedUpdate = update;\n }\n}\n\nfunction ensureWorkInProgressQueueIsAClone(workInProgress, queue) {\n var current = workInProgress.alternate;\n if (current !== null) {\n // If the work-in-progress queue is equal to the current queue,\n // we need to clone it first.\n if (queue === current.updateQueue) {\n queue = workInProgress.updateQueue = cloneUpdateQueue(queue);\n }\n }\n return queue;\n}\n\nfunction getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {\n switch (update.tag) {\n case ReplaceState:\n {\n var _payload = update.payload;\n if (typeof _payload === 'function') {\n // Updater function\n {\n enterDisallowedContextReadInDEV();\n if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {\n _payload.call(instance, prevState, nextProps);\n }\n }\n var nextState = _payload.call(instance, prevState, nextProps);\n {\n exitDisallowedContextReadInDEV();\n }\n return nextState;\n }\n // State object\n return _payload;\n }\n case CaptureUpdate:\n {\n workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture;\n }\n // Intentional fallthrough\n case UpdateState:\n {\n var _payload2 = update.payload;\n var partialState = void 0;\n if (typeof _payload2 === 'function') {\n // Updater function\n {\n enterDisallowedContextReadInDEV();\n if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {\n _payload2.call(instance, prevState, nextProps);\n }\n }\n partialState = _payload2.call(instance, prevState, nextProps);\n {\n exitDisallowedContextReadInDEV();\n }\n } else {\n // Partial state object\n partialState = _payload2;\n }\n if (partialState === null || partialState === undefined) {\n // Null and undefined are treated as no-ops.\n return prevState;\n }\n // Merge the partial state and the previous state.\n return _assign({}, prevState, partialState);\n }\n case ForceUpdate:\n {\n hasForceUpdate = true;\n return prevState;\n }\n }\n return prevState;\n}\n\nfunction processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) {\n hasForceUpdate = false;\n\n queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue);\n\n {\n currentlyProcessingQueue = queue;\n }\n\n // These values may change as we process the queue.\n var newBaseState = queue.baseState;\n var newFirstUpdate = null;\n var newExpirationTime = NoWork;\n\n // Iterate through the list of updates to compute the result.\n var update = queue.firstUpdate;\n var resultState = newBaseState;\n while (update !== null) {\n var updateExpirationTime = update.expirationTime;\n if (updateExpirationTime < renderExpirationTime) {\n // This update does not have sufficient priority. Skip it.\n if (newFirstUpdate === null) {\n // This is the first skipped update. It will be the first update in\n // the new list.\n newFirstUpdate = update;\n // Since this is the first update that was skipped, the current result\n // is the new base state.\n newBaseState = resultState;\n }\n // Since this update will remain in the list, update the remaining\n // expiration time.\n if (newExpirationTime < updateExpirationTime) {\n newExpirationTime = updateExpirationTime;\n }\n } else {\n // This update does have sufficient priority. Process it and compute\n // a new result.\n resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);\n var _callback = update.callback;\n if (_callback !== null) {\n workInProgress.effectTag |= Callback;\n // Set this to null, in case it was mutated during an aborted render.\n update.nextEffect = null;\n if (queue.lastEffect === null) {\n queue.firstEffect = queue.lastEffect = update;\n } else {\n queue.lastEffect.nextEffect = update;\n queue.lastEffect = update;\n }\n }\n }\n // Continue to the next update.\n update = update.next;\n }\n\n // Separately, iterate though the list of captured updates.\n var newFirstCapturedUpdate = null;\n update = queue.firstCapturedUpdate;\n while (update !== null) {\n var _updateExpirationTime = update.expirationTime;\n if (_updateExpirationTime < renderExpirationTime) {\n // This update does not have sufficient priority. Skip it.\n if (newFirstCapturedUpdate === null) {\n // This is the first skipped captured update. It will be the first\n // update in the new list.\n newFirstCapturedUpdate = update;\n // If this is the first update that was skipped, the current result is\n // the new base state.\n if (newFirstUpdate === null) {\n newBaseState = resultState;\n }\n }\n // Since this update will remain in the list, update the remaining\n // expiration time.\n if (newExpirationTime < _updateExpirationTime) {\n newExpirationTime = _updateExpirationTime;\n }\n } else {\n // This update does have sufficient priority. Process it and compute\n // a new result.\n resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);\n var _callback2 = update.callback;\n if (_callback2 !== null) {\n workInProgress.effectTag |= Callback;\n // Set this to null, in case it was mutated during an aborted render.\n update.nextEffect = null;\n if (queue.lastCapturedEffect === null) {\n queue.firstCapturedEffect = queue.lastCapturedEffect = update;\n } else {\n queue.lastCapturedEffect.nextEffect = update;\n queue.lastCapturedEffect = update;\n }\n }\n }\n update = update.next;\n }\n\n if (newFirstUpdate === null) {\n queue.lastUpdate = null;\n }\n if (newFirstCapturedUpdate === null) {\n queue.lastCapturedUpdate = null;\n } else {\n workInProgress.effectTag |= Callback;\n }\n if (newFirstUpdate === null && newFirstCapturedUpdate === null) {\n // We processed every update, without skipping. That means the new base\n // state is the same as the result state.\n newBaseState = resultState;\n }\n\n queue.baseState = newBaseState;\n queue.firstUpdate = newFirstUpdate;\n queue.firstCapturedUpdate = newFirstCapturedUpdate;\n\n // Set the remaining expiration time to be whatever is remaining in the queue.\n // This should be fine because the only two other things that contribute to\n // expiration time are props and context. We're already in the middle of the\n // begin phase by the time we start processing the queue, so we've already\n // dealt with the props. Context in components that specify\n // shouldComponentUpdate is tricky; but we'll have to account for\n // that regardless.\n workInProgress.expirationTime = newExpirationTime;\n workInProgress.memoizedState = resultState;\n\n {\n currentlyProcessingQueue = null;\n }\n}\n\nfunction callCallback(callback, context) {\n !(typeof callback === 'function') ? invariant(false, 'Invalid argument passed as callback. Expected a function. Instead received: %s', callback) : void 0;\n callback.call(context);\n}\n\nfunction resetHasForceUpdateBeforeProcessing() {\n hasForceUpdate = false;\n}\n\nfunction checkHasForceUpdateAfterProcessing() {\n return hasForceUpdate;\n}\n\nfunction commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) {\n // If the finished render included captured updates, and there are still\n // lower priority updates left over, we need to keep the captured updates\n // in the queue so that they are rebased and not dropped once we process the\n // queue again at the lower priority.\n if (finishedQueue.firstCapturedUpdate !== null) {\n // Join the captured update list to the end of the normal list.\n if (finishedQueue.lastUpdate !== null) {\n finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate;\n finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate;\n }\n // Clear the list of captured updates.\n finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null;\n }\n\n // Commit the effects\n commitUpdateEffects(finishedQueue.firstEffect, instance);\n finishedQueue.firstEffect = finishedQueue.lastEffect = null;\n\n commitUpdateEffects(finishedQueue.firstCapturedEffect, instance);\n finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null;\n}\n\nfunction commitUpdateEffects(effect, instance) {\n while (effect !== null) {\n var _callback3 = effect.callback;\n if (_callback3 !== null) {\n effect.callback = null;\n callCallback(_callback3, instance);\n }\n effect = effect.nextEffect;\n }\n}\n\nfunction createCapturedValue(value, source) {\n // If the value is an error, call this function immediately after it is thrown\n // so the stack is accurate.\n return {\n value: value,\n source: source,\n stack: getStackByFiberInDevAndProd(source)\n };\n}\n\nfunction markUpdate(workInProgress) {\n // Tag the fiber with an update effect. This turns a Placement into\n // a PlacementAndUpdate.\n workInProgress.effectTag |= Update;\n}\n\nfunction markRef$1(workInProgress) {\n workInProgress.effectTag |= Ref;\n}\n\nvar appendAllChildren = void 0;\nvar updateHostContainer = void 0;\nvar updateHostComponent$1 = void 0;\nvar updateHostText$1 = void 0;\nif (supportsMutation) {\n // Mutation mode\n\n appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {\n // We only have the top Fiber that was created but we need recurse down its\n // children to find all the terminal nodes.\n var node = workInProgress.child;\n while (node !== null) {\n if (node.tag === HostComponent || node.tag === HostText) {\n appendInitialChild(parent, node.stateNode);\n } else if (node.tag === HostPortal) {\n // If we have a portal child, then we don't want to traverse\n // down its children. Instead, we'll get insertions from each child in\n // the portal directly.\n } else if (node.child !== null) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n if (node === workInProgress) {\n return;\n }\n while (node.sibling === null) {\n if (node.return === null || node.return === workInProgress) {\n return;\n }\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n };\n\n updateHostContainer = function (workInProgress) {\n // Noop\n };\n updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {\n // If we have an alternate, that means this is an update and we need to\n // schedule a side-effect to do the updates.\n var oldProps = current.memoizedProps;\n if (oldProps === newProps) {\n // In mutation mode, this is sufficient for a bailout because\n // we won't touch this node even if children changed.\n return;\n }\n\n // If we get updated because one of our children updated, we don't\n // have newProps so we'll have to reuse them.\n // TODO: Split the update API as separate for the props vs. children.\n // Even better would be if children weren't special cased at all tho.\n var instance = workInProgress.stateNode;\n var currentHostContext = getHostContext();\n // TODO: Experiencing an error where oldProps is null. Suggests a host\n // component is hitting the resume path. Figure out why. Possibly\n // related to `hidden`.\n var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext);\n // TODO: Type this specific to this type of component.\n workInProgress.updateQueue = updatePayload;\n // If the update payload indicates that there is a change or if there\n // is a new ref we mark this as an update. All the work is done in commitWork.\n if (updatePayload) {\n markUpdate(workInProgress);\n }\n };\n updateHostText$1 = function (current, workInProgress, oldText, newText) {\n // If the text differs, mark it as an update. All the work in done in commitWork.\n if (oldText !== newText) {\n markUpdate(workInProgress);\n }\n };\n} else if (supportsPersistence) {\n // Persistent host tree mode\n\n appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {\n // We only have the top Fiber that was created but we need recurse down its\n // children to find all the terminal nodes.\n var node = workInProgress.child;\n while (node !== null) {\n // eslint-disable-next-line no-labels\n branches: if (node.tag === HostComponent) {\n var instance = node.stateNode;\n if (needsVisibilityToggle) {\n var props = node.memoizedProps;\n var type = node.type;\n if (isHidden) {\n // This child is inside a timed out tree. Hide it.\n instance = cloneHiddenInstance(instance, type, props, node);\n } else {\n // This child was previously inside a timed out tree. If it was not\n // updated during this render, it may need to be unhidden. Clone\n // again to be sure.\n instance = cloneUnhiddenInstance(instance, type, props, node);\n }\n node.stateNode = instance;\n }\n appendInitialChild(parent, instance);\n } else if (node.tag === HostText) {\n var _instance = node.stateNode;\n if (needsVisibilityToggle) {\n var text = node.memoizedProps;\n var rootContainerInstance = getRootHostContainer();\n var currentHostContext = getHostContext();\n if (isHidden) {\n _instance = createHiddenTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);\n } else {\n _instance = createTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);\n }\n node.stateNode = _instance;\n }\n appendInitialChild(parent, _instance);\n } else if (node.tag === HostPortal) {\n // If we have a portal child, then we don't want to traverse\n // down its children. Instead, we'll get insertions from each child in\n // the portal directly.\n } else if (node.tag === SuspenseComponent) {\n var current = node.alternate;\n if (current !== null) {\n var oldState = current.memoizedState;\n var newState = node.memoizedState;\n var oldIsHidden = oldState !== null;\n var newIsHidden = newState !== null;\n if (oldIsHidden !== newIsHidden) {\n // The placeholder either just timed out or switched back to the normal\n // children after having previously timed out. Toggle the visibility of\n // the direct host children.\n var primaryChildParent = newIsHidden ? node.child : node;\n if (primaryChildParent !== null) {\n appendAllChildren(parent, primaryChildParent, true, newIsHidden);\n }\n // eslint-disable-next-line no-labels\n break branches;\n }\n }\n if (node.child !== null) {\n // Continue traversing like normal\n node.child.return = node;\n node = node.child;\n continue;\n }\n } else if (node.child !== null) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n // $FlowFixMe This is correct but Flow is confused by the labeled break.\n node = node;\n if (node === workInProgress) {\n return;\n }\n while (node.sibling === null) {\n if (node.return === null || node.return === workInProgress) {\n return;\n }\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n };\n\n // An unfortunate fork of appendAllChildren because we have two different parent types.\n var appendAllChildrenToContainer = function (containerChildSet, workInProgress, needsVisibilityToggle, isHidden) {\n // We only have the top Fiber that was created but we need recurse down its\n // children to find all the terminal nodes.\n var node = workInProgress.child;\n while (node !== null) {\n // eslint-disable-next-line no-labels\n branches: if (node.tag === HostComponent) {\n var instance = node.stateNode;\n if (needsVisibilityToggle) {\n var props = node.memoizedProps;\n var type = node.type;\n if (isHidden) {\n // This child is inside a timed out tree. Hide it.\n instance = cloneHiddenInstance(instance, type, props, node);\n } else {\n // This child was previously inside a timed out tree. If it was not\n // updated during this render, it may need to be unhidden. Clone\n // again to be sure.\n instance = cloneUnhiddenInstance(instance, type, props, node);\n }\n node.stateNode = instance;\n }\n appendChildToContainerChildSet(containerChildSet, instance);\n } else if (node.tag === HostText) {\n var _instance2 = node.stateNode;\n if (needsVisibilityToggle) {\n var text = node.memoizedProps;\n var rootContainerInstance = getRootHostContainer();\n var currentHostContext = getHostContext();\n if (isHidden) {\n _instance2 = createHiddenTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);\n } else {\n _instance2 = createTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);\n }\n node.stateNode = _instance2;\n }\n appendChildToContainerChildSet(containerChildSet, _instance2);\n } else if (node.tag === HostPortal) {\n // If we have a portal child, then we don't want to traverse\n // down its children. Instead, we'll get insertions from each child in\n // the portal directly.\n } else if (node.tag === SuspenseComponent) {\n var current = node.alternate;\n if (current !== null) {\n var oldState = current.memoizedState;\n var newState = node.memoizedState;\n var oldIsHidden = oldState !== null;\n var newIsHidden = newState !== null;\n if (oldIsHidden !== newIsHidden) {\n // The placeholder either just timed out or switched back to the normal\n // children after having previously timed out. Toggle the visibility of\n // the direct host children.\n var primaryChildParent = newIsHidden ? node.child : node;\n if (primaryChildParent !== null) {\n appendAllChildrenToContainer(containerChildSet, primaryChildParent, true, newIsHidden);\n }\n // eslint-disable-next-line no-labels\n break branches;\n }\n }\n if (node.child !== null) {\n // Continue traversing like normal\n node.child.return = node;\n node = node.child;\n continue;\n }\n } else if (node.child !== null) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n // $FlowFixMe This is correct but Flow is confused by the labeled break.\n node = node;\n if (node === workInProgress) {\n return;\n }\n while (node.sibling === null) {\n if (node.return === null || node.return === workInProgress) {\n return;\n }\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n };\n updateHostContainer = function (workInProgress) {\n var portalOrRoot = workInProgress.stateNode;\n var childrenUnchanged = workInProgress.firstEffect === null;\n if (childrenUnchanged) {\n // No changes, just reuse the existing instance.\n } else {\n var container = portalOrRoot.containerInfo;\n var newChildSet = createContainerChildSet(container);\n // If children might have changed, we have to add them all to the set.\n appendAllChildrenToContainer(newChildSet, workInProgress, false, false);\n portalOrRoot.pendingChildren = newChildSet;\n // Schedule an update on the container to swap out the container.\n markUpdate(workInProgress);\n finalizeContainerChildren(container, newChildSet);\n }\n };\n updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {\n var currentInstance = current.stateNode;\n var oldProps = current.memoizedProps;\n // If there are no effects associated with this node, then none of our children had any updates.\n // This guarantees that we can reuse all of them.\n var childrenUnchanged = workInProgress.firstEffect === null;\n if (childrenUnchanged && oldProps === newProps) {\n // No changes, just reuse the existing instance.\n // Note that this might release a previous clone.\n workInProgress.stateNode = currentInstance;\n return;\n }\n var recyclableInstance = workInProgress.stateNode;\n var currentHostContext = getHostContext();\n var updatePayload = null;\n if (oldProps !== newProps) {\n updatePayload = prepareUpdate(recyclableInstance, type, oldProps, newProps, rootContainerInstance, currentHostContext);\n }\n if (childrenUnchanged && updatePayload === null) {\n // No changes, just reuse the existing instance.\n // Note that this might release a previous clone.\n workInProgress.stateNode = currentInstance;\n return;\n }\n var newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged, recyclableInstance);\n if (finalizeInitialChildren(newInstance, type, newProps, rootContainerInstance, currentHostContext)) {\n markUpdate(workInProgress);\n }\n workInProgress.stateNode = newInstance;\n if (childrenUnchanged) {\n // If there are no other effects in this tree, we need to flag this node as having one.\n // Even though we're not going to use it for anything.\n // Otherwise parents won't know that there are new children to propagate upwards.\n markUpdate(workInProgress);\n } else {\n // If children might have changed, we have to add them all to the set.\n appendAllChildren(newInstance, workInProgress, false, false);\n }\n };\n updateHostText$1 = function (current, workInProgress, oldText, newText) {\n if (oldText !== newText) {\n // If the text content differs, we'll create a new text instance for it.\n var rootContainerInstance = getRootHostContainer();\n var currentHostContext = getHostContext();\n workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress);\n // We'll have to mark it as having an effect, even though we won't use the effect for anything.\n // This lets the parents know that at least one of their children has changed.\n markUpdate(workInProgress);\n }\n };\n} else {\n // No host operations\n updateHostContainer = function (workInProgress) {\n // Noop\n };\n updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {\n // Noop\n };\n updateHostText$1 = function (current, workInProgress, oldText, newText) {\n // Noop\n };\n}\n\nfunction completeWork(current, workInProgress, renderExpirationTime) {\n var newProps = workInProgress.pendingProps;\n\n switch (workInProgress.tag) {\n case IndeterminateComponent:\n break;\n case LazyComponent:\n break;\n case SimpleMemoComponent:\n case FunctionComponent:\n break;\n case ClassComponent:\n {\n var Component = workInProgress.type;\n if (isContextProvider(Component)) {\n popContext(workInProgress);\n }\n break;\n }\n case HostRoot:\n {\n popHostContainer(workInProgress);\n popTopLevelContextObject(workInProgress);\n var fiberRoot = workInProgress.stateNode;\n if (fiberRoot.pendingContext) {\n fiberRoot.context = fiberRoot.pendingContext;\n fiberRoot.pendingContext = null;\n }\n if (current === null || current.child === null) {\n // If we hydrated, pop so that we can delete any remaining children\n // that weren't hydrated.\n popHydrationState(workInProgress);\n // This resets the hacky state to fix isMounted before committing.\n // TODO: Delete this when we delete isMounted and findDOMNode.\n workInProgress.effectTag &= ~Placement;\n }\n updateHostContainer(workInProgress);\n break;\n }\n case HostComponent:\n {\n popHostContext(workInProgress);\n var rootContainerInstance = getRootHostContainer();\n var type = workInProgress.type;\n if (current !== null && workInProgress.stateNode != null) {\n updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);\n\n if (current.ref !== workInProgress.ref) {\n markRef$1(workInProgress);\n }\n } else {\n if (!newProps) {\n !(workInProgress.stateNode !== null) ? invariant(false, 'We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n // This can happen when we abort work.\n break;\n }\n\n var currentHostContext = getHostContext();\n // TODO: Move createInstance to beginWork and keep it on a context\n // \"stack\" as the parent. Then append children as we go in beginWork\n // or completeWork depending on we want to add then top->down or\n // bottom->up. Top->down is faster in IE11.\n var wasHydrated = popHydrationState(workInProgress);\n if (wasHydrated) {\n // TODO: Move this and createInstance step into the beginPhase\n // to consolidate.\n if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {\n // If changes to the hydrated node needs to be applied at the\n // commit-phase we mark this as such.\n markUpdate(workInProgress);\n }\n } else {\n var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);\n\n appendAllChildren(instance, workInProgress, false, false);\n\n // Certain renderers require commit-time effects for initial mount.\n // (eg DOM renderer supports auto-focus for certain elements).\n // Make sure such renderers get scheduled for later work.\n if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance, currentHostContext)) {\n markUpdate(workInProgress);\n }\n workInProgress.stateNode = instance;\n }\n\n if (workInProgress.ref !== null) {\n // If there is a ref on a host node we need to schedule a callback\n markRef$1(workInProgress);\n }\n }\n break;\n }\n case HostText:\n {\n var newText = newProps;\n if (current && workInProgress.stateNode != null) {\n var oldText = current.memoizedProps;\n // If we have an alternate, that means this is an update and we need\n // to schedule a side-effect to do the updates.\n updateHostText$1(current, workInProgress, oldText, newText);\n } else {\n if (typeof newText !== 'string') {\n !(workInProgress.stateNode !== null) ? invariant(false, 'We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n // This can happen when we abort work.\n }\n var _rootContainerInstance = getRootHostContainer();\n var _currentHostContext = getHostContext();\n var _wasHydrated = popHydrationState(workInProgress);\n if (_wasHydrated) {\n if (prepareToHydrateHostTextInstance(workInProgress)) {\n markUpdate(workInProgress);\n }\n } else {\n workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);\n }\n }\n break;\n }\n case ForwardRef:\n break;\n case SuspenseComponent:\n {\n var nextState = workInProgress.memoizedState;\n if ((workInProgress.effectTag & DidCapture) !== NoEffect) {\n // Something suspended. Re-render with the fallback children.\n workInProgress.expirationTime = renderExpirationTime;\n // Do not reset the effect list.\n return workInProgress;\n }\n\n var nextDidTimeout = nextState !== null;\n var prevDidTimeout = current !== null && current.memoizedState !== null;\n\n if (current !== null && !nextDidTimeout && prevDidTimeout) {\n // We just switched from the fallback to the normal children. Delete\n // the fallback.\n // TODO: Would it be better to store the fallback fragment on\n var currentFallbackChild = current.child.sibling;\n if (currentFallbackChild !== null) {\n // Deletions go at the beginning of the return fiber's effect list\n var first = workInProgress.firstEffect;\n if (first !== null) {\n workInProgress.firstEffect = currentFallbackChild;\n currentFallbackChild.nextEffect = first;\n } else {\n workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChild;\n currentFallbackChild.nextEffect = null;\n }\n currentFallbackChild.effectTag = Deletion;\n }\n }\n\n if (nextDidTimeout || prevDidTimeout) {\n // If the children are hidden, or if they were previous hidden, schedule\n // an effect to toggle their visibility. This is also used to attach a\n // retry listener to the promise.\n workInProgress.effectTag |= Update;\n }\n break;\n }\n case Fragment:\n break;\n case Mode:\n break;\n case Profiler:\n break;\n case HostPortal:\n popHostContainer(workInProgress);\n updateHostContainer(workInProgress);\n break;\n case ContextProvider:\n // Pop provider fiber\n popProvider(workInProgress);\n break;\n case ContextConsumer:\n break;\n case MemoComponent:\n break;\n case IncompleteClassComponent:\n {\n // Same as class component case. I put it down here so that the tags are\n // sequential to ensure this switch is compiled to a jump table.\n var _Component = workInProgress.type;\n if (isContextProvider(_Component)) {\n popContext(workInProgress);\n }\n break;\n }\n case DehydratedSuspenseComponent:\n {\n if (enableSuspenseServerRenderer) {\n if (current === null) {\n var _wasHydrated2 = popHydrationState(workInProgress);\n !_wasHydrated2 ? invariant(false, 'A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.') : void 0;\n skipPastDehydratedSuspenseInstance(workInProgress);\n } else if ((workInProgress.effectTag & DidCapture) === NoEffect) {\n // This boundary did not suspend so it's now hydrated.\n // To handle any future suspense cases, we're going to now upgrade it\n // to a Suspense component. We detach it from the existing current fiber.\n current.alternate = null;\n workInProgress.alternate = null;\n workInProgress.tag = SuspenseComponent;\n workInProgress.memoizedState = null;\n workInProgress.stateNode = null;\n }\n }\n break;\n }\n default:\n invariant(false, 'Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.');\n }\n\n return null;\n}\n\nfunction shouldCaptureSuspense(workInProgress) {\n // In order to capture, the Suspense component must have a fallback prop.\n if (workInProgress.memoizedProps.fallback === undefined) {\n return false;\n }\n // If it was the primary children that just suspended, capture and render the\n // fallback. Otherwise, don't capture and bubble to the next boundary.\n var nextState = workInProgress.memoizedState;\n return nextState === null;\n}\n\n// This module is forked in different environments.\n// By default, return `true` to log errors to the console.\n// Forks can return `false` if this isn't desirable.\nfunction showErrorDialog(capturedError) {\n return true;\n}\n\nfunction logCapturedError(capturedError) {\n var logError = showErrorDialog(capturedError);\n\n // Allow injected showErrorDialog() to prevent default console.error logging.\n // This enables renderers like ReactNative to better manage redbox behavior.\n if (logError === false) {\n return;\n }\n\n var error = capturedError.error;\n {\n var componentName = capturedError.componentName,\n componentStack = capturedError.componentStack,\n errorBoundaryName = capturedError.errorBoundaryName,\n errorBoundaryFound = capturedError.errorBoundaryFound,\n willRetry = capturedError.willRetry;\n\n // Browsers support silencing uncaught errors by calling\n // `preventDefault()` in window `error` handler.\n // We record this information as an expando on the error.\n\n if (error != null && error._suppressLogging) {\n if (errorBoundaryFound && willRetry) {\n // The error is recoverable and was silenced.\n // Ignore it and don't print the stack addendum.\n // This is handy for testing error boundaries without noise.\n return;\n }\n // The error is fatal. Since the silencing might have\n // been accidental, we'll surface it anyway.\n // However, the browser would have silenced the original error\n // so we'll print it first, and then print the stack addendum.\n console.error(error);\n // For a more detailed description of this block, see:\n // https://github.com/facebook/react/pull/13384\n }\n\n var componentNameMessage = componentName ? 'The above error occurred in the <' + componentName + '> component:' : 'The above error occurred in one of your React components:';\n\n var errorBoundaryMessage = void 0;\n // errorBoundaryFound check is sufficient; errorBoundaryName check is to satisfy Flow.\n if (errorBoundaryFound && errorBoundaryName) {\n if (willRetry) {\n errorBoundaryMessage = 'React will try to recreate this component tree from scratch ' + ('using the error boundary you provided, ' + errorBoundaryName + '.');\n } else {\n errorBoundaryMessage = 'This error was initially handled by the error boundary ' + errorBoundaryName + '.\\n' + 'Recreating the tree from scratch failed so React will unmount the tree.';\n }\n } else {\n errorBoundaryMessage = 'Consider adding an error boundary to your tree to customize error handling behavior.\\n' + 'Visit https://fb.me/react-error-boundaries to learn more about error boundaries.';\n }\n var combinedMessage = '' + componentNameMessage + componentStack + '\\n\\n' + ('' + errorBoundaryMessage);\n\n // In development, we provide our own message with just the component stack.\n // We don't include the original error message and JS stack because the browser\n // has already printed it. Even if the application swallows the error, it is still\n // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.\n console.error(combinedMessage);\n }\n}\n\nvar didWarnAboutUndefinedSnapshotBeforeUpdate = null;\n{\n didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();\n}\n\nvar PossiblyWeakSet$1 = typeof WeakSet === 'function' ? WeakSet : Set;\n\nfunction logError(boundary, errorInfo) {\n var source = errorInfo.source;\n var stack = errorInfo.stack;\n if (stack === null && source !== null) {\n stack = getStackByFiberInDevAndProd(source);\n }\n\n var capturedError = {\n componentName: source !== null ? getComponentName(source.type) : null,\n componentStack: stack !== null ? stack : '',\n error: errorInfo.value,\n errorBoundary: null,\n errorBoundaryName: null,\n errorBoundaryFound: false,\n willRetry: false\n };\n\n if (boundary !== null && boundary.tag === ClassComponent) {\n capturedError.errorBoundary = boundary.stateNode;\n capturedError.errorBoundaryName = getComponentName(boundary.type);\n capturedError.errorBoundaryFound = true;\n capturedError.willRetry = true;\n }\n\n try {\n logCapturedError(capturedError);\n } catch (e) {\n // This method must not throw, or React internal state will get messed up.\n // If console.error is overridden, or logCapturedError() shows a dialog that throws,\n // we want to report this error outside of the normal stack as a last resort.\n // https://github.com/facebook/react/issues/13188\n setTimeout(function () {\n throw e;\n });\n }\n}\n\nvar callComponentWillUnmountWithTimer = function (current$$1, instance) {\n startPhaseTimer(current$$1, 'componentWillUnmount');\n instance.props = current$$1.memoizedProps;\n instance.state = current$$1.memoizedState;\n instance.componentWillUnmount();\n stopPhaseTimer();\n};\n\n// Capture errors so they don't interrupt unmounting.\nfunction safelyCallComponentWillUnmount(current$$1, instance) {\n {\n invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current$$1, instance);\n if (hasCaughtError()) {\n var unmountError = clearCaughtError();\n captureCommitPhaseError(current$$1, unmountError);\n }\n }\n}\n\nfunction safelyDetachRef(current$$1) {\n var ref = current$$1.ref;\n if (ref !== null) {\n if (typeof ref === 'function') {\n {\n invokeGuardedCallback(null, ref, null, null);\n if (hasCaughtError()) {\n var refError = clearCaughtError();\n captureCommitPhaseError(current$$1, refError);\n }\n }\n } else {\n ref.current = null;\n }\n }\n}\n\nfunction safelyCallDestroy(current$$1, destroy) {\n {\n invokeGuardedCallback(null, destroy, null);\n if (hasCaughtError()) {\n var error = clearCaughtError();\n captureCommitPhaseError(current$$1, error);\n }\n }\n}\n\nfunction commitBeforeMutationLifeCycles(current$$1, finishedWork) {\n switch (finishedWork.tag) {\n case FunctionComponent:\n case ForwardRef:\n case SimpleMemoComponent:\n {\n commitHookEffectList(UnmountSnapshot, NoEffect$1, finishedWork);\n return;\n }\n case ClassComponent:\n {\n if (finishedWork.effectTag & Snapshot) {\n if (current$$1 !== null) {\n var prevProps = current$$1.memoizedProps;\n var prevState = current$$1.memoizedState;\n startPhaseTimer(finishedWork, 'getSnapshotBeforeUpdate');\n var instance = finishedWork.stateNode;\n // We could update instance props and state here,\n // but instead we rely on them being set during last render.\n // TODO: revisit this when we implement resuming.\n {\n if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {\n !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;\n !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;\n }\n }\n var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);\n {\n var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;\n if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {\n didWarnSet.add(finishedWork.type);\n warningWithoutStack$1(false, '%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));\n }\n }\n instance.__reactInternalSnapshotBeforeUpdate = snapshot;\n stopPhaseTimer();\n }\n }\n return;\n }\n case HostRoot:\n case HostComponent:\n case HostText:\n case HostPortal:\n case IncompleteClassComponent:\n // Nothing to do for these component types\n return;\n default:\n {\n invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');\n }\n }\n}\n\nfunction commitHookEffectList(unmountTag, mountTag, finishedWork) {\n var updateQueue = finishedWork.updateQueue;\n var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;\n if (lastEffect !== null) {\n var firstEffect = lastEffect.next;\n var effect = firstEffect;\n do {\n if ((effect.tag & unmountTag) !== NoEffect$1) {\n // Unmount\n var destroy = effect.destroy;\n effect.destroy = undefined;\n if (destroy !== undefined) {\n destroy();\n }\n }\n if ((effect.tag & mountTag) !== NoEffect$1) {\n // Mount\n var create = effect.create;\n effect.destroy = create();\n\n {\n var _destroy = effect.destroy;\n if (_destroy !== undefined && typeof _destroy !== 'function') {\n var addendum = void 0;\n if (_destroy === null) {\n addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).';\n } else if (typeof _destroy.then === 'function') {\n addendum = '\\n\\nIt looks like you wrote useEffect(async () => ...) or returned a Promise. ' + 'Instead, you may write an async function separately ' + 'and then call it from inside the effect:\\n\\n' + 'async function fetchComment(commentId) {\\n' + ' // You can await here\\n' + '}\\n\\n' + 'useEffect(() => {\\n' + ' fetchComment(commentId);\\n' + '}, [commentId]);\\n\\n' + 'In the future, React will provide a more idiomatic solution for data fetching ' + \"that doesn't involve writing effects manually.\";\n } else {\n addendum = ' You returned: ' + _destroy;\n }\n warningWithoutStack$1(false, 'An Effect function must not return anything besides a function, ' + 'which is used for clean-up.%s%s', addendum, getStackByFiberInDevAndProd(finishedWork));\n }\n }\n }\n effect = effect.next;\n } while (effect !== firstEffect);\n }\n}\n\nfunction commitPassiveHookEffects(finishedWork) {\n commitHookEffectList(UnmountPassive, NoEffect$1, finishedWork);\n commitHookEffectList(NoEffect$1, MountPassive, finishedWork);\n}\n\nfunction commitLifeCycles(finishedRoot, current$$1, finishedWork, committedExpirationTime) {\n switch (finishedWork.tag) {\n case FunctionComponent:\n case ForwardRef:\n case SimpleMemoComponent:\n {\n commitHookEffectList(UnmountLayout, MountLayout, finishedWork);\n break;\n }\n case ClassComponent:\n {\n var instance = finishedWork.stateNode;\n if (finishedWork.effectTag & Update) {\n if (current$$1 === null) {\n startPhaseTimer(finishedWork, 'componentDidMount');\n // We could update instance props and state here,\n // but instead we rely on them being set during last render.\n // TODO: revisit this when we implement resuming.\n {\n if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {\n !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;\n !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;\n }\n }\n instance.componentDidMount();\n stopPhaseTimer();\n } else {\n var prevProps = finishedWork.elementType === finishedWork.type ? current$$1.memoizedProps : resolveDefaultProps(finishedWork.type, current$$1.memoizedProps);\n var prevState = current$$1.memoizedState;\n startPhaseTimer(finishedWork, 'componentDidUpdate');\n // We could update instance props and state here,\n // but instead we rely on them being set during last render.\n // TODO: revisit this when we implement resuming.\n {\n if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {\n !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;\n !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;\n }\n }\n instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);\n stopPhaseTimer();\n }\n }\n var updateQueue = finishedWork.updateQueue;\n if (updateQueue !== null) {\n {\n if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {\n !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;\n !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;\n }\n }\n // We could update instance props and state here,\n // but instead we rely on them being set during last render.\n // TODO: revisit this when we implement resuming.\n commitUpdateQueue(finishedWork, updateQueue, instance, committedExpirationTime);\n }\n return;\n }\n case HostRoot:\n {\n var _updateQueue = finishedWork.updateQueue;\n if (_updateQueue !== null) {\n var _instance = null;\n if (finishedWork.child !== null) {\n switch (finishedWork.child.tag) {\n case HostComponent:\n _instance = getPublicInstance(finishedWork.child.stateNode);\n break;\n case ClassComponent:\n _instance = finishedWork.child.stateNode;\n break;\n }\n }\n commitUpdateQueue(finishedWork, _updateQueue, _instance, committedExpirationTime);\n }\n return;\n }\n case HostComponent:\n {\n var _instance2 = finishedWork.stateNode;\n\n // Renderers may schedule work to be done after host components are mounted\n // (eg DOM renderer may schedule auto-focus for inputs and form controls).\n // These effects should only be committed when components are first mounted,\n // aka when there is no current/alternate.\n if (current$$1 === null && finishedWork.effectTag & Update) {\n var type = finishedWork.type;\n var props = finishedWork.memoizedProps;\n commitMount(_instance2, type, props, finishedWork);\n }\n\n return;\n }\n case HostText:\n {\n // We have no life-cycles associated with text.\n return;\n }\n case HostPortal:\n {\n // We have no life-cycles associated with portals.\n return;\n }\n case Profiler:\n {\n if (enableProfilerTimer) {\n var onRender = finishedWork.memoizedProps.onRender;\n\n if (enableSchedulerTracing) {\n onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime(), finishedRoot.memoizedInteractions);\n } else {\n onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime());\n }\n }\n return;\n }\n case SuspenseComponent:\n break;\n case IncompleteClassComponent:\n break;\n default:\n {\n invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');\n }\n }\n}\n\nfunction hideOrUnhideAllChildren(finishedWork, isHidden) {\n if (supportsMutation) {\n // We only have the top Fiber that was inserted but we need to recurse down its\n var node = finishedWork;\n while (true) {\n if (node.tag === HostComponent) {\n var instance = node.stateNode;\n if (isHidden) {\n hideInstance(instance);\n } else {\n unhideInstance(node.stateNode, node.memoizedProps);\n }\n } else if (node.tag === HostText) {\n var _instance3 = node.stateNode;\n if (isHidden) {\n hideTextInstance(_instance3);\n } else {\n unhideTextInstance(_instance3, node.memoizedProps);\n }\n } else if (node.tag === SuspenseComponent && node.memoizedState !== null) {\n // Found a nested Suspense component that timed out. Skip over the\n var fallbackChildFragment = node.child.sibling;\n fallbackChildFragment.return = node;\n node = fallbackChildFragment;\n continue;\n } else if (node.child !== null) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n if (node === finishedWork) {\n return;\n }\n while (node.sibling === null) {\n if (node.return === null || node.return === finishedWork) {\n return;\n }\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n }\n}\n\nfunction commitAttachRef(finishedWork) {\n var ref = finishedWork.ref;\n if (ref !== null) {\n var instance = finishedWork.stateNode;\n var instanceToUse = void 0;\n switch (finishedWork.tag) {\n case HostComponent:\n instanceToUse = getPublicInstance(instance);\n break;\n default:\n instanceToUse = instance;\n }\n if (typeof ref === 'function') {\n ref(instanceToUse);\n } else {\n {\n if (!ref.hasOwnProperty('current')) {\n warningWithoutStack$1(false, 'Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().%s', getComponentName(finishedWork.type), getStackByFiberInDevAndProd(finishedWork));\n }\n }\n\n ref.current = instanceToUse;\n }\n }\n}\n\nfunction commitDetachRef(current$$1) {\n var currentRef = current$$1.ref;\n if (currentRef !== null) {\n if (typeof currentRef === 'function') {\n currentRef(null);\n } else {\n currentRef.current = null;\n }\n }\n}\n\n// User-originating errors (lifecycles and refs) should not interrupt\n// deletion, so don't let them throw. Host-originating errors should\n// interrupt deletion, so it's okay\nfunction commitUnmount(current$$1) {\n onCommitUnmount(current$$1);\n\n switch (current$$1.tag) {\n case FunctionComponent:\n case ForwardRef:\n case MemoComponent:\n case SimpleMemoComponent:\n {\n var updateQueue = current$$1.updateQueue;\n if (updateQueue !== null) {\n var lastEffect = updateQueue.lastEffect;\n if (lastEffect !== null) {\n var firstEffect = lastEffect.next;\n var effect = firstEffect;\n do {\n var destroy = effect.destroy;\n if (destroy !== undefined) {\n safelyCallDestroy(current$$1, destroy);\n }\n effect = effect.next;\n } while (effect !== firstEffect);\n }\n }\n break;\n }\n case ClassComponent:\n {\n safelyDetachRef(current$$1);\n var instance = current$$1.stateNode;\n if (typeof instance.componentWillUnmount === 'function') {\n safelyCallComponentWillUnmount(current$$1, instance);\n }\n return;\n }\n case HostComponent:\n {\n safelyDetachRef(current$$1);\n return;\n }\n case HostPortal:\n {\n // TODO: this is recursive.\n // We are also not using this parent because\n // the portal will get pushed immediately.\n if (supportsMutation) {\n unmountHostComponents(current$$1);\n } else if (supportsPersistence) {\n emptyPortalContainer(current$$1);\n }\n return;\n }\n }\n}\n\nfunction commitNestedUnmounts(root) {\n // While we're inside a removed host node we don't want to call\n // removeChild on the inner nodes because they're removed by the top\n // call anyway. We also want to call componentWillUnmount on all\n // composites before this host node is removed from the tree. Therefore\n var node = root;\n while (true) {\n commitUnmount(node);\n // Visit children because they may contain more composite or host nodes.\n // Skip portals because commitUnmount() currently visits them recursively.\n if (node.child !== null && (\n // If we use mutation we drill down into portals using commitUnmount above.\n // If we don't use mutation we drill down into portals here instead.\n !supportsMutation || node.tag !== HostPortal)) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n if (node === root) {\n return;\n }\n while (node.sibling === null) {\n if (node.return === null || node.return === root) {\n return;\n }\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n}\n\nfunction detachFiber(current$$1) {\n // Cut off the return pointers to disconnect it from the tree. Ideally, we\n // should clear the child pointer of the parent alternate to let this\n // get GC:ed but we don't know which for sure which parent is the current\n // one so we'll settle for GC:ing the subtree of this child. This child\n // itself will be GC:ed when the parent updates the next time.\n current$$1.return = null;\n current$$1.child = null;\n current$$1.memoizedState = null;\n current$$1.updateQueue = null;\n var alternate = current$$1.alternate;\n if (alternate !== null) {\n alternate.return = null;\n alternate.child = null;\n alternate.memoizedState = null;\n alternate.updateQueue = null;\n }\n}\n\nfunction emptyPortalContainer(current$$1) {\n if (!supportsPersistence) {\n return;\n }\n\n var portal = current$$1.stateNode;\n var containerInfo = portal.containerInfo;\n\n var emptyChildSet = createContainerChildSet(containerInfo);\n replaceContainerChildren(containerInfo, emptyChildSet);\n}\n\nfunction commitContainer(finishedWork) {\n if (!supportsPersistence) {\n return;\n }\n\n switch (finishedWork.tag) {\n case ClassComponent:\n {\n return;\n }\n case HostComponent:\n {\n return;\n }\n case HostText:\n {\n return;\n }\n case HostRoot:\n case HostPortal:\n {\n var portalOrRoot = finishedWork.stateNode;\n var containerInfo = portalOrRoot.containerInfo,\n _pendingChildren = portalOrRoot.pendingChildren;\n\n replaceContainerChildren(containerInfo, _pendingChildren);\n return;\n }\n default:\n {\n invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');\n }\n }\n}\n\nfunction getHostParentFiber(fiber) {\n var parent = fiber.return;\n while (parent !== null) {\n if (isHostParent(parent)) {\n return parent;\n }\n parent = parent.return;\n }\n invariant(false, 'Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.');\n}\n\nfunction isHostParent(fiber) {\n return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;\n}\n\nfunction getHostSibling(fiber) {\n // We're going to search forward into the tree until we find a sibling host\n // node. Unfortunately, if multiple insertions are done in a row we have to\n // search past them. This leads to exponential search for the next sibling.\n var node = fiber;\n siblings: while (true) {\n // If we didn't find anything, let's try the next sibling.\n while (node.sibling === null) {\n if (node.return === null || isHostParent(node.return)) {\n // If we pop out of the root or hit the parent the fiber we are the\n // last sibling.\n return null;\n }\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedSuspenseComponent) {\n // If it is not host node and, we might have a host node inside it.\n // Try to search down until we find one.\n if (node.effectTag & Placement) {\n // If we don't have a child, try the siblings instead.\n continue siblings;\n }\n // If we don't have a child, try the siblings instead.\n // We also skip portals because they are not part of this host tree.\n if (node.child === null || node.tag === HostPortal) {\n continue siblings;\n } else {\n node.child.return = node;\n node = node.child;\n }\n }\n // Check if this host node is stable or about to be placed.\n if (!(node.effectTag & Placement)) {\n // Found it!\n return node.stateNode;\n }\n }\n}\n\nfunction commitPlacement(finishedWork) {\n if (!supportsMutation) {\n return;\n }\n\n // Recursively insert all host nodes into the parent.\n var parentFiber = getHostParentFiber(finishedWork);\n\n // Note: these two variables *must* always be updated together.\n var parent = void 0;\n var isContainer = void 0;\n\n switch (parentFiber.tag) {\n case HostComponent:\n parent = parentFiber.stateNode;\n isContainer = false;\n break;\n case HostRoot:\n parent = parentFiber.stateNode.containerInfo;\n isContainer = true;\n break;\n case HostPortal:\n parent = parentFiber.stateNode.containerInfo;\n isContainer = true;\n break;\n default:\n invariant(false, 'Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.');\n }\n if (parentFiber.effectTag & ContentReset) {\n // Reset the text content of the parent before doing any insertions\n resetTextContent(parent);\n // Clear ContentReset from the effect tag\n parentFiber.effectTag &= ~ContentReset;\n }\n\n var before = getHostSibling(finishedWork);\n // We only have the top Fiber that was inserted but we need to recurse down its\n // children to find all the terminal nodes.\n var node = finishedWork;\n while (true) {\n if (node.tag === HostComponent || node.tag === HostText) {\n if (before) {\n if (isContainer) {\n insertInContainerBefore(parent, node.stateNode, before);\n } else {\n insertBefore(parent, node.stateNode, before);\n }\n } else {\n if (isContainer) {\n appendChildToContainer(parent, node.stateNode);\n } else {\n appendChild(parent, node.stateNode);\n }\n }\n } else if (node.tag === HostPortal) {\n // If the insertion itself is a portal, then we don't want to traverse\n // down its children. Instead, we'll get insertions from each child in\n // the portal directly.\n } else if (node.child !== null) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n if (node === finishedWork) {\n return;\n }\n while (node.sibling === null) {\n if (node.return === null || node.return === finishedWork) {\n return;\n }\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n}\n\nfunction unmountHostComponents(current$$1) {\n // We only have the top Fiber that was deleted but we need to recurse down its\n var node = current$$1;\n\n // Each iteration, currentParent is populated with node's host parent if not\n // currentParentIsValid.\n var currentParentIsValid = false;\n\n // Note: these two variables *must* always be updated together.\n var currentParent = void 0;\n var currentParentIsContainer = void 0;\n\n while (true) {\n if (!currentParentIsValid) {\n var parent = node.return;\n findParent: while (true) {\n !(parent !== null) ? invariant(false, 'Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n switch (parent.tag) {\n case HostComponent:\n currentParent = parent.stateNode;\n currentParentIsContainer = false;\n break findParent;\n case HostRoot:\n currentParent = parent.stateNode.containerInfo;\n currentParentIsContainer = true;\n break findParent;\n case HostPortal:\n currentParent = parent.stateNode.containerInfo;\n currentParentIsContainer = true;\n break findParent;\n }\n parent = parent.return;\n }\n currentParentIsValid = true;\n }\n\n if (node.tag === HostComponent || node.tag === HostText) {\n commitNestedUnmounts(node);\n // After all the children have unmounted, it is now safe to remove the\n // node from the tree.\n if (currentParentIsContainer) {\n removeChildFromContainer(currentParent, node.stateNode);\n } else {\n removeChild(currentParent, node.stateNode);\n }\n // Don't visit children because we already visited them.\n } else if (enableSuspenseServerRenderer && node.tag === DehydratedSuspenseComponent) {\n // Delete the dehydrated suspense boundary and all of its content.\n if (currentParentIsContainer) {\n clearSuspenseBoundaryFromContainer(currentParent, node.stateNode);\n } else {\n clearSuspenseBoundary(currentParent, node.stateNode);\n }\n } else if (node.tag === HostPortal) {\n if (node.child !== null) {\n // When we go into a portal, it becomes the parent to remove from.\n // We will reassign it back when we pop the portal on the way up.\n currentParent = node.stateNode.containerInfo;\n currentParentIsContainer = true;\n // Visit children because portals might contain host components.\n node.child.return = node;\n node = node.child;\n continue;\n }\n } else {\n commitUnmount(node);\n // Visit children because we may find more host components below.\n if (node.child !== null) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n }\n if (node === current$$1) {\n return;\n }\n while (node.sibling === null) {\n if (node.return === null || node.return === current$$1) {\n return;\n }\n node = node.return;\n if (node.tag === HostPortal) {\n // When we go out of the portal, we need to restore the parent.\n // Since we don't keep a stack of them, we will search for it.\n currentParentIsValid = false;\n }\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n}\n\nfunction commitDeletion(current$$1) {\n if (supportsMutation) {\n // Recursively delete all host nodes from the parent.\n // Detach refs and call componentWillUnmount() on the whole subtree.\n unmountHostComponents(current$$1);\n } else {\n // Detach refs and call componentWillUnmount() on the whole subtree.\n commitNestedUnmounts(current$$1);\n }\n detachFiber(current$$1);\n}\n\nfunction commitWork(current$$1, finishedWork) {\n if (!supportsMutation) {\n switch (finishedWork.tag) {\n case FunctionComponent:\n case ForwardRef:\n case MemoComponent:\n case SimpleMemoComponent:\n {\n // Note: We currently never use MountMutation, but useLayout uses\n // UnmountMutation.\n commitHookEffectList(UnmountMutation, MountMutation, finishedWork);\n return;\n }\n }\n\n commitContainer(finishedWork);\n return;\n }\n\n switch (finishedWork.tag) {\n case FunctionComponent:\n case ForwardRef:\n case MemoComponent:\n case SimpleMemoComponent:\n {\n // Note: We currently never use MountMutation, but useLayout uses\n // UnmountMutation.\n commitHookEffectList(UnmountMutation, MountMutation, finishedWork);\n return;\n }\n case ClassComponent:\n {\n return;\n }\n case HostComponent:\n {\n var instance = finishedWork.stateNode;\n if (instance != null) {\n // Commit the work prepared earlier.\n var newProps = finishedWork.memoizedProps;\n // For hydration we reuse the update path but we treat the oldProps\n // as the newProps. The updatePayload will contain the real change in\n // this case.\n var oldProps = current$$1 !== null ? current$$1.memoizedProps : newProps;\n var type = finishedWork.type;\n // TODO: Type the updateQueue to be specific to host components.\n var updatePayload = finishedWork.updateQueue;\n finishedWork.updateQueue = null;\n if (updatePayload !== null) {\n commitUpdate(instance, updatePayload, type, oldProps, newProps, finishedWork);\n }\n }\n return;\n }\n case HostText:\n {\n !(finishedWork.stateNode !== null) ? invariant(false, 'This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n var textInstance = finishedWork.stateNode;\n var newText = finishedWork.memoizedProps;\n // For hydration we reuse the update path but we treat the oldProps\n // as the newProps. The updatePayload will contain the real change in\n // this case.\n var oldText = current$$1 !== null ? current$$1.memoizedProps : newText;\n commitTextUpdate(textInstance, oldText, newText);\n return;\n }\n case HostRoot:\n {\n return;\n }\n case Profiler:\n {\n return;\n }\n case SuspenseComponent:\n {\n var newState = finishedWork.memoizedState;\n\n var newDidTimeout = void 0;\n var primaryChildParent = finishedWork;\n if (newState === null) {\n newDidTimeout = false;\n } else {\n newDidTimeout = true;\n primaryChildParent = finishedWork.child;\n if (newState.timedOutAt === NoWork) {\n // If the children had not already timed out, record the time.\n // This is used to compute the elapsed time during subsequent\n // attempts to render the children.\n newState.timedOutAt = requestCurrentTime();\n }\n }\n\n if (primaryChildParent !== null) {\n hideOrUnhideAllChildren(primaryChildParent, newDidTimeout);\n }\n\n // If this boundary just timed out, then it will have a set of thenables.\n // For each thenable, attach a listener so that when it resolves, React\n // attempts to re-render the boundary in the primary (pre-timeout) state.\n var thenables = finishedWork.updateQueue;\n if (thenables !== null) {\n finishedWork.updateQueue = null;\n var retryCache = finishedWork.stateNode;\n if (retryCache === null) {\n retryCache = finishedWork.stateNode = new PossiblyWeakSet$1();\n }\n thenables.forEach(function (thenable) {\n // Memoize using the boundary fiber to prevent redundant listeners.\n var retry = retryTimedOutBoundary.bind(null, finishedWork, thenable);\n if (enableSchedulerTracing) {\n retry = tracing.unstable_wrap(retry);\n }\n if (!retryCache.has(thenable)) {\n retryCache.add(thenable);\n thenable.then(retry, retry);\n }\n });\n }\n\n return;\n }\n case IncompleteClassComponent:\n {\n return;\n }\n default:\n {\n invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');\n }\n }\n}\n\nfunction commitResetTextContent(current$$1) {\n if (!supportsMutation) {\n return;\n }\n resetTextContent(current$$1.stateNode);\n}\n\nvar PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set;\nvar PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n\nfunction createRootErrorUpdate(fiber, errorInfo, expirationTime) {\n var update = createUpdate(expirationTime);\n // Unmount the root by rendering null.\n update.tag = CaptureUpdate;\n // Caution: React DevTools currently depends on this property\n // being called \"element\".\n update.payload = { element: null };\n var error = errorInfo.value;\n update.callback = function () {\n onUncaughtError(error);\n logError(fiber, errorInfo);\n };\n return update;\n}\n\nfunction createClassErrorUpdate(fiber, errorInfo, expirationTime) {\n var update = createUpdate(expirationTime);\n update.tag = CaptureUpdate;\n var getDerivedStateFromError = fiber.type.getDerivedStateFromError;\n if (typeof getDerivedStateFromError === 'function') {\n var error = errorInfo.value;\n update.payload = function () {\n return getDerivedStateFromError(error);\n };\n }\n\n var inst = fiber.stateNode;\n if (inst !== null && typeof inst.componentDidCatch === 'function') {\n update.callback = function callback() {\n if (typeof getDerivedStateFromError !== 'function') {\n // To preserve the preexisting retry behavior of error boundaries,\n // we keep track of which ones already failed during this batch.\n // This gets reset before we yield back to the browser.\n // TODO: Warn in strict mode if getDerivedStateFromError is\n // not defined.\n markLegacyErrorBoundaryAsFailed(this);\n }\n var error = errorInfo.value;\n var stack = errorInfo.stack;\n logError(fiber, errorInfo);\n this.componentDidCatch(error, {\n componentStack: stack !== null ? stack : ''\n });\n {\n if (typeof getDerivedStateFromError !== 'function') {\n // If componentDidCatch is the only error boundary method defined,\n // then it needs to call setState to recover from errors.\n // If no state update is scheduled then the boundary will swallow the error.\n !(fiber.expirationTime === Sync) ? warningWithoutStack$1(false, '%s: Error boundaries should implement getDerivedStateFromError(). ' + 'In that method, return a state update to display an error message or fallback UI.', getComponentName(fiber.type) || 'Unknown') : void 0;\n }\n }\n };\n }\n return update;\n}\n\nfunction attachPingListener(root, renderExpirationTime, thenable) {\n // Attach a listener to the promise to \"ping\" the root and retry. But\n // only if one does not already exist for the current render expiration\n // time (which acts like a \"thread ID\" here).\n var pingCache = root.pingCache;\n var threadIDs = void 0;\n if (pingCache === null) {\n pingCache = root.pingCache = new PossiblyWeakMap();\n threadIDs = new Set();\n pingCache.set(thenable, threadIDs);\n } else {\n threadIDs = pingCache.get(thenable);\n if (threadIDs === undefined) {\n threadIDs = new Set();\n pingCache.set(thenable, threadIDs);\n }\n }\n if (!threadIDs.has(renderExpirationTime)) {\n // Memoize using the thread ID to prevent redundant listeners.\n threadIDs.add(renderExpirationTime);\n var ping = pingSuspendedRoot.bind(null, root, thenable, renderExpirationTime);\n if (enableSchedulerTracing) {\n ping = tracing.unstable_wrap(ping);\n }\n thenable.then(ping, ping);\n }\n}\n\nfunction throwException(root, returnFiber, sourceFiber, value, renderExpirationTime) {\n // The source fiber did not complete.\n sourceFiber.effectTag |= Incomplete;\n // Its effect list is no longer valid.\n sourceFiber.firstEffect = sourceFiber.lastEffect = null;\n\n if (value !== null && typeof value === 'object' && typeof value.then === 'function') {\n // This is a thenable.\n var thenable = value;\n\n // Find the earliest timeout threshold of all the placeholders in the\n // ancestor path. We could avoid this traversal by storing the thresholds on\n // the stack, but we choose not to because we only hit this path if we're\n // IO-bound (i.e. if something suspends). Whereas the stack is used even in\n // the non-IO- bound case.\n var _workInProgress = returnFiber;\n var earliestTimeoutMs = -1;\n var startTimeMs = -1;\n do {\n if (_workInProgress.tag === SuspenseComponent) {\n var current$$1 = _workInProgress.alternate;\n if (current$$1 !== null) {\n var currentState = current$$1.memoizedState;\n if (currentState !== null) {\n // Reached a boundary that already timed out. Do not search\n // any further.\n var timedOutAt = currentState.timedOutAt;\n startTimeMs = expirationTimeToMs(timedOutAt);\n // Do not search any further.\n break;\n }\n }\n var timeoutPropMs = _workInProgress.pendingProps.maxDuration;\n if (typeof timeoutPropMs === 'number') {\n if (timeoutPropMs <= 0) {\n earliestTimeoutMs = 0;\n } else if (earliestTimeoutMs === -1 || timeoutPropMs < earliestTimeoutMs) {\n earliestTimeoutMs = timeoutPropMs;\n }\n }\n }\n // If there is a DehydratedSuspenseComponent we don't have to do anything because\n // if something suspends inside it, we will simply leave that as dehydrated. It\n // will never timeout.\n _workInProgress = _workInProgress.return;\n } while (_workInProgress !== null);\n\n // Schedule the nearest Suspense to re-render the timed out view.\n _workInProgress = returnFiber;\n do {\n if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress)) {\n // Found the nearest boundary.\n\n // Stash the promise on the boundary fiber. If the boundary times out, we'll\n var thenables = _workInProgress.updateQueue;\n if (thenables === null) {\n var updateQueue = new Set();\n updateQueue.add(thenable);\n _workInProgress.updateQueue = updateQueue;\n } else {\n thenables.add(thenable);\n }\n\n // If the boundary is outside of concurrent mode, we should *not*\n // suspend the commit. Pretend as if the suspended component rendered\n // null and keep rendering. In the commit phase, we'll schedule a\n // subsequent synchronous update to re-render the Suspense.\n //\n // Note: It doesn't matter whether the component that suspended was\n // inside a concurrent mode tree. If the Suspense is outside of it, we\n // should *not* suspend the commit.\n if ((_workInProgress.mode & ConcurrentMode) === NoEffect) {\n _workInProgress.effectTag |= DidCapture;\n\n // We're going to commit this fiber even though it didn't complete.\n // But we shouldn't call any lifecycle methods or callbacks. Remove\n // all lifecycle effect tags.\n sourceFiber.effectTag &= ~(LifecycleEffectMask | Incomplete);\n\n if (sourceFiber.tag === ClassComponent) {\n var currentSourceFiber = sourceFiber.alternate;\n if (currentSourceFiber === null) {\n // This is a new mount. Change the tag so it's not mistaken for a\n // completed class component. For example, we should not call\n // componentWillUnmount if it is deleted.\n sourceFiber.tag = IncompleteClassComponent;\n } else {\n // When we try rendering again, we should not reuse the current fiber,\n // since it's known to be in an inconsistent state. Use a force updte to\n // prevent a bail out.\n var update = createUpdate(Sync);\n update.tag = ForceUpdate;\n enqueueUpdate(sourceFiber, update);\n }\n }\n\n // The source fiber did not complete. Mark it with Sync priority to\n // indicate that it still has pending work.\n sourceFiber.expirationTime = Sync;\n\n // Exit without suspending.\n return;\n }\n\n // Confirmed that the boundary is in a concurrent mode tree. Continue\n // with the normal suspend path.\n\n attachPingListener(root, renderExpirationTime, thenable);\n\n var absoluteTimeoutMs = void 0;\n if (earliestTimeoutMs === -1) {\n // If no explicit threshold is given, default to an arbitrarily large\n // value. The actual size doesn't matter because the threshold for the\n // whole tree will be clamped to the expiration time.\n absoluteTimeoutMs = maxSigned31BitInt;\n } else {\n if (startTimeMs === -1) {\n // This suspend happened outside of any already timed-out\n // placeholders. We don't know exactly when the update was\n // scheduled, but we can infer an approximate start time from the\n // expiration time. First, find the earliest uncommitted expiration\n // time in the tree, including work that is suspended. Then subtract\n // the offset used to compute an async update's expiration time.\n // This will cause high priority (interactive) work to expire\n // earlier than necessary, but we can account for this by adjusting\n // for the Just Noticeable Difference.\n var earliestExpirationTime = findEarliestOutstandingPriorityLevel(root, renderExpirationTime);\n var earliestExpirationTimeMs = expirationTimeToMs(earliestExpirationTime);\n startTimeMs = earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;\n }\n absoluteTimeoutMs = startTimeMs + earliestTimeoutMs;\n }\n\n // Mark the earliest timeout in the suspended fiber's ancestor path.\n // After completing the root, we'll take the largest of all the\n // suspended fiber's timeouts and use it to compute a timeout for the\n // whole tree.\n renderDidSuspend(root, absoluteTimeoutMs, renderExpirationTime);\n\n _workInProgress.effectTag |= ShouldCapture;\n _workInProgress.expirationTime = renderExpirationTime;\n return;\n } else if (enableSuspenseServerRenderer && _workInProgress.tag === DehydratedSuspenseComponent) {\n attachPingListener(root, renderExpirationTime, thenable);\n\n // Since we already have a current fiber, we can eagerly add a retry listener.\n var retryCache = _workInProgress.memoizedState;\n if (retryCache === null) {\n retryCache = _workInProgress.memoizedState = new PossiblyWeakSet();\n var _current = _workInProgress.alternate;\n !_current ? invariant(false, 'A dehydrated suspense boundary must commit before trying to render. This is probably a bug in React.') : void 0;\n _current.memoizedState = retryCache;\n }\n // Memoize using the boundary fiber to prevent redundant listeners.\n if (!retryCache.has(thenable)) {\n retryCache.add(thenable);\n var retry = retryTimedOutBoundary.bind(null, _workInProgress, thenable);\n if (enableSchedulerTracing) {\n retry = tracing.unstable_wrap(retry);\n }\n thenable.then(retry, retry);\n }\n _workInProgress.effectTag |= ShouldCapture;\n _workInProgress.expirationTime = renderExpirationTime;\n return;\n }\n // This boundary already captured during this render. Continue to the next\n // boundary.\n _workInProgress = _workInProgress.return;\n } while (_workInProgress !== null);\n // No boundary was found. Fallthrough to error mode.\n // TODO: Use invariant so the message is stripped in prod?\n value = new Error((getComponentName(sourceFiber.type) || 'A React component') + ' suspended while rendering, but no fallback UI was specified.\\n' + '\\n' + 'Add a <Suspense fallback=...> component higher in the tree to ' + 'provide a loading indicator or placeholder to display.' + getStackByFiberInDevAndProd(sourceFiber));\n }\n\n // We didn't find a boundary that could handle this type of exception. Start\n // over and traverse parent path again, this time treating the exception\n // as an error.\n renderDidError();\n value = createCapturedValue(value, sourceFiber);\n var workInProgress = returnFiber;\n do {\n switch (workInProgress.tag) {\n case HostRoot:\n {\n var _errorInfo = value;\n workInProgress.effectTag |= ShouldCapture;\n workInProgress.expirationTime = renderExpirationTime;\n var _update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime);\n enqueueCapturedUpdate(workInProgress, _update);\n return;\n }\n case ClassComponent:\n // Capture and retry\n var errorInfo = value;\n var ctor = workInProgress.type;\n var instance = workInProgress.stateNode;\n if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {\n workInProgress.effectTag |= ShouldCapture;\n workInProgress.expirationTime = renderExpirationTime;\n // Schedule the error boundary to re-render using updated state\n var _update2 = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime);\n enqueueCapturedUpdate(workInProgress, _update2);\n return;\n }\n break;\n default:\n break;\n }\n workInProgress = workInProgress.return;\n } while (workInProgress !== null);\n}\n\nfunction unwindWork(workInProgress, renderExpirationTime) {\n switch (workInProgress.tag) {\n case ClassComponent:\n {\n var Component = workInProgress.type;\n if (isContextProvider(Component)) {\n popContext(workInProgress);\n }\n var effectTag = workInProgress.effectTag;\n if (effectTag & ShouldCapture) {\n workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;\n return workInProgress;\n }\n return null;\n }\n case HostRoot:\n {\n popHostContainer(workInProgress);\n popTopLevelContextObject(workInProgress);\n var _effectTag = workInProgress.effectTag;\n !((_effectTag & DidCapture) === NoEffect) ? invariant(false, 'The root failed to unmount after an error. This is likely a bug in React. Please file an issue.') : void 0;\n workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;\n return workInProgress;\n }\n case HostComponent:\n {\n // TODO: popHydrationState\n popHostContext(workInProgress);\n return null;\n }\n case SuspenseComponent:\n {\n var _effectTag2 = workInProgress.effectTag;\n if (_effectTag2 & ShouldCapture) {\n workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture;\n // Captured a suspense effect. Re-render the boundary.\n return workInProgress;\n }\n return null;\n }\n case DehydratedSuspenseComponent:\n {\n if (enableSuspenseServerRenderer) {\n // TODO: popHydrationState\n var _effectTag3 = workInProgress.effectTag;\n if (_effectTag3 & ShouldCapture) {\n workInProgress.effectTag = _effectTag3 & ~ShouldCapture | DidCapture;\n // Captured a suspense effect. Re-render the boundary.\n return workInProgress;\n }\n }\n return null;\n }\n case HostPortal:\n popHostContainer(workInProgress);\n return null;\n case ContextProvider:\n popProvider(workInProgress);\n return null;\n default:\n return null;\n }\n}\n\nfunction unwindInterruptedWork(interruptedWork) {\n switch (interruptedWork.tag) {\n case ClassComponent:\n {\n var childContextTypes = interruptedWork.type.childContextTypes;\n if (childContextTypes !== null && childContextTypes !== undefined) {\n popContext(interruptedWork);\n }\n break;\n }\n case HostRoot:\n {\n popHostContainer(interruptedWork);\n popTopLevelContextObject(interruptedWork);\n break;\n }\n case HostComponent:\n {\n popHostContext(interruptedWork);\n break;\n }\n case HostPortal:\n popHostContainer(interruptedWork);\n break;\n case ContextProvider:\n popProvider(interruptedWork);\n break;\n default:\n break;\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner;\n\n\nvar didWarnAboutStateTransition = void 0;\nvar didWarnSetStateChildContext = void 0;\nvar warnAboutUpdateOnUnmounted = void 0;\nvar warnAboutInvalidUpdates = void 0;\n\nif (enableSchedulerTracing) {\n // Provide explicit error message when production+profiling bundle of e.g. react-dom\n // is used with production (non-profiling) bundle of scheduler/tracing\n !(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null) ? invariant(false, 'It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling') : void 0;\n}\n\n{\n didWarnAboutStateTransition = false;\n didWarnSetStateChildContext = false;\n var didWarnStateUpdateForUnmountedComponent = {};\n\n warnAboutUpdateOnUnmounted = function (fiber, isClass) {\n // We show the whole stack but dedupe on the top component's name because\n // the problematic code almost always lies inside that component.\n var componentName = getComponentName(fiber.type) || 'ReactComponent';\n if (didWarnStateUpdateForUnmountedComponent[componentName]) {\n return;\n }\n warningWithoutStack$1(false, \"Can't perform a React state update on an unmounted component. This \" + 'is a no-op, but it indicates a memory leak in your application. To ' + 'fix, cancel all subscriptions and asynchronous tasks in %s.%s', isClass ? 'the componentWillUnmount method' : 'a useEffect cleanup function', getStackByFiberInDevAndProd(fiber));\n didWarnStateUpdateForUnmountedComponent[componentName] = true;\n };\n\n warnAboutInvalidUpdates = function (instance) {\n switch (phase) {\n case 'getChildContext':\n if (didWarnSetStateChildContext) {\n return;\n }\n warningWithoutStack$1(false, 'setState(...): Cannot call setState() inside getChildContext()');\n didWarnSetStateChildContext = true;\n break;\n case 'render':\n if (didWarnAboutStateTransition) {\n return;\n }\n warningWithoutStack$1(false, 'Cannot update during an existing state transition (such as within ' + '`render`). Render methods should be a pure function of props and state.');\n didWarnAboutStateTransition = true;\n break;\n }\n };\n}\n\n// Used to ensure computeUniqueAsyncExpiration is monotonically decreasing.\nvar lastUniqueAsyncExpiration = Sync - 1;\n\nvar isWorking = false;\n\n// The next work in progress fiber that we're currently working on.\nvar nextUnitOfWork = null;\nvar nextRoot = null;\n// The time at which we're currently rendering work.\nvar nextRenderExpirationTime = NoWork;\nvar nextLatestAbsoluteTimeoutMs = -1;\nvar nextRenderDidError = false;\n\n// The next fiber with an effect that we're currently committing.\nvar nextEffect = null;\n\nvar isCommitting$1 = false;\nvar rootWithPendingPassiveEffects = null;\nvar passiveEffectCallbackHandle = null;\nvar passiveEffectCallback = null;\n\nvar legacyErrorBoundariesThatAlreadyFailed = null;\n\n// Used for performance tracking.\nvar interruptedBy = null;\n\nvar stashedWorkInProgressProperties = void 0;\nvar replayUnitOfWork = void 0;\nvar mayReplayFailedUnitOfWork = void 0;\nvar isReplayingFailedUnitOfWork = void 0;\nvar originalReplayError = void 0;\nvar rethrowOriginalError = void 0;\nif (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {\n stashedWorkInProgressProperties = null;\n mayReplayFailedUnitOfWork = true;\n isReplayingFailedUnitOfWork = false;\n originalReplayError = null;\n replayUnitOfWork = function (failedUnitOfWork, thrownValue, isYieldy) {\n if (thrownValue !== null && typeof thrownValue === 'object' && typeof thrownValue.then === 'function') {\n // Don't replay promises. Treat everything else like an error.\n // TODO: Need to figure out a different strategy if/when we add\n // support for catching other types.\n return;\n }\n\n // Restore the original state of the work-in-progress\n if (stashedWorkInProgressProperties === null) {\n // This should never happen. Don't throw because this code is DEV-only.\n warningWithoutStack$1(false, 'Could not replay rendering after an error. This is likely a bug in React. ' + 'Please file an issue.');\n return;\n }\n assignFiberPropertiesInDEV(failedUnitOfWork, stashedWorkInProgressProperties);\n\n switch (failedUnitOfWork.tag) {\n case HostRoot:\n popHostContainer(failedUnitOfWork);\n popTopLevelContextObject(failedUnitOfWork);\n break;\n case HostComponent:\n popHostContext(failedUnitOfWork);\n break;\n case ClassComponent:\n {\n var Component = failedUnitOfWork.type;\n if (isContextProvider(Component)) {\n popContext(failedUnitOfWork);\n }\n break;\n }\n case HostPortal:\n popHostContainer(failedUnitOfWork);\n break;\n case ContextProvider:\n popProvider(failedUnitOfWork);\n break;\n }\n // Replay the begin phase.\n isReplayingFailedUnitOfWork = true;\n originalReplayError = thrownValue;\n invokeGuardedCallback(null, workLoop, null, isYieldy);\n isReplayingFailedUnitOfWork = false;\n originalReplayError = null;\n if (hasCaughtError()) {\n var replayError = clearCaughtError();\n if (replayError != null && thrownValue != null) {\n try {\n // Reading the expando property is intentionally\n // inside `try` because it might be a getter or Proxy.\n if (replayError._suppressLogging) {\n // Also suppress logging for the original error.\n thrownValue._suppressLogging = true;\n }\n } catch (inner) {\n // Ignore.\n }\n }\n } else {\n // If the begin phase did not fail the second time, set this pointer\n // back to the original value.\n nextUnitOfWork = failedUnitOfWork;\n }\n };\n rethrowOriginalError = function () {\n throw originalReplayError;\n };\n}\n\nfunction resetStack() {\n if (nextUnitOfWork !== null) {\n var interruptedWork = nextUnitOfWork.return;\n while (interruptedWork !== null) {\n unwindInterruptedWork(interruptedWork);\n interruptedWork = interruptedWork.return;\n }\n }\n\n {\n ReactStrictModeWarnings.discardPendingWarnings();\n checkThatStackIsEmpty();\n }\n\n nextRoot = null;\n nextRenderExpirationTime = NoWork;\n nextLatestAbsoluteTimeoutMs = -1;\n nextRenderDidError = false;\n nextUnitOfWork = null;\n}\n\nfunction commitAllHostEffects() {\n while (nextEffect !== null) {\n {\n setCurrentFiber(nextEffect);\n }\n recordEffect();\n\n var effectTag = nextEffect.effectTag;\n\n if (effectTag & ContentReset) {\n commitResetTextContent(nextEffect);\n }\n\n if (effectTag & Ref) {\n var current$$1 = nextEffect.alternate;\n if (current$$1 !== null) {\n commitDetachRef(current$$1);\n }\n }\n\n // The following switch statement is only concerned about placement,\n // updates, and deletions. To avoid needing to add a case for every\n // possible bitmap value, we remove the secondary effects from the\n // effect tag and switch on that value.\n var primaryEffectTag = effectTag & (Placement | Update | Deletion);\n switch (primaryEffectTag) {\n case Placement:\n {\n commitPlacement(nextEffect);\n // Clear the \"placement\" from effect tag so that we know that this is inserted, before\n // any life-cycles like componentDidMount gets called.\n // TODO: findDOMNode doesn't rely on this any more but isMounted\n // does and isMounted is deprecated anyway so we should be able\n // to kill this.\n nextEffect.effectTag &= ~Placement;\n break;\n }\n case PlacementAndUpdate:\n {\n // Placement\n commitPlacement(nextEffect);\n // Clear the \"placement\" from effect tag so that we know that this is inserted, before\n // any life-cycles like componentDidMount gets called.\n nextEffect.effectTag &= ~Placement;\n\n // Update\n var _current = nextEffect.alternate;\n commitWork(_current, nextEffect);\n break;\n }\n case Update:\n {\n var _current2 = nextEffect.alternate;\n commitWork(_current2, nextEffect);\n break;\n }\n case Deletion:\n {\n commitDeletion(nextEffect);\n break;\n }\n }\n nextEffect = nextEffect.nextEffect;\n }\n\n {\n resetCurrentFiber();\n }\n}\n\nfunction commitBeforeMutationLifecycles() {\n while (nextEffect !== null) {\n {\n setCurrentFiber(nextEffect);\n }\n\n var effectTag = nextEffect.effectTag;\n if (effectTag & Snapshot) {\n recordEffect();\n var current$$1 = nextEffect.alternate;\n commitBeforeMutationLifeCycles(current$$1, nextEffect);\n }\n\n nextEffect = nextEffect.nextEffect;\n }\n\n {\n resetCurrentFiber();\n }\n}\n\nfunction commitAllLifeCycles(finishedRoot, committedExpirationTime) {\n {\n ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();\n ReactStrictModeWarnings.flushLegacyContextWarning();\n\n if (warnAboutDeprecatedLifecycles) {\n ReactStrictModeWarnings.flushPendingDeprecationWarnings();\n }\n }\n while (nextEffect !== null) {\n {\n setCurrentFiber(nextEffect);\n }\n var effectTag = nextEffect.effectTag;\n\n if (effectTag & (Update | Callback)) {\n recordEffect();\n var current$$1 = nextEffect.alternate;\n commitLifeCycles(finishedRoot, current$$1, nextEffect, committedExpirationTime);\n }\n\n if (effectTag & Ref) {\n recordEffect();\n commitAttachRef(nextEffect);\n }\n\n if (effectTag & Passive) {\n rootWithPendingPassiveEffects = finishedRoot;\n }\n\n nextEffect = nextEffect.nextEffect;\n }\n {\n resetCurrentFiber();\n }\n}\n\nfunction commitPassiveEffects(root, firstEffect) {\n rootWithPendingPassiveEffects = null;\n passiveEffectCallbackHandle = null;\n passiveEffectCallback = null;\n\n // Set this to true to prevent re-entrancy\n var previousIsRendering = isRendering;\n isRendering = true;\n\n var effect = firstEffect;\n do {\n {\n setCurrentFiber(effect);\n }\n\n if (effect.effectTag & Passive) {\n var didError = false;\n var error = void 0;\n {\n invokeGuardedCallback(null, commitPassiveHookEffects, null, effect);\n if (hasCaughtError()) {\n didError = true;\n error = clearCaughtError();\n }\n }\n if (didError) {\n captureCommitPhaseError(effect, error);\n }\n }\n effect = effect.nextEffect;\n } while (effect !== null);\n {\n resetCurrentFiber();\n }\n\n isRendering = previousIsRendering;\n\n // Check if work was scheduled by one of the effects\n var rootExpirationTime = root.expirationTime;\n if (rootExpirationTime !== NoWork) {\n requestWork(root, rootExpirationTime);\n }\n // Flush any sync work that was scheduled by effects\n if (!isBatchingUpdates && !isRendering) {\n performSyncWork();\n }\n}\n\nfunction isAlreadyFailedLegacyErrorBoundary(instance) {\n return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);\n}\n\nfunction markLegacyErrorBoundaryAsFailed(instance) {\n if (legacyErrorBoundariesThatAlreadyFailed === null) {\n legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);\n } else {\n legacyErrorBoundariesThatAlreadyFailed.add(instance);\n }\n}\n\nfunction flushPassiveEffects() {\n if (passiveEffectCallbackHandle !== null) {\n cancelPassiveEffects(passiveEffectCallbackHandle);\n }\n if (passiveEffectCallback !== null) {\n // We call the scheduled callback instead of commitPassiveEffects directly\n // to ensure tracing works correctly.\n passiveEffectCallback();\n }\n}\n\nfunction commitRoot(root, finishedWork) {\n isWorking = true;\n isCommitting$1 = true;\n startCommitTimer();\n\n !(root.current !== finishedWork) ? invariant(false, 'Cannot commit the same tree as before. This is probably a bug related to the return field. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n var committedExpirationTime = root.pendingCommitExpirationTime;\n !(committedExpirationTime !== NoWork) ? invariant(false, 'Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n root.pendingCommitExpirationTime = NoWork;\n\n // Update the pending priority levels to account for the work that we are\n // about to commit. This needs to happen before calling the lifecycles, since\n // they may schedule additional updates.\n var updateExpirationTimeBeforeCommit = finishedWork.expirationTime;\n var childExpirationTimeBeforeCommit = finishedWork.childExpirationTime;\n var earliestRemainingTimeBeforeCommit = childExpirationTimeBeforeCommit > updateExpirationTimeBeforeCommit ? childExpirationTimeBeforeCommit : updateExpirationTimeBeforeCommit;\n markCommittedPriorityLevels(root, earliestRemainingTimeBeforeCommit);\n\n var prevInteractions = null;\n if (enableSchedulerTracing) {\n // Restore any pending interactions at this point,\n // So that cascading work triggered during the render phase will be accounted for.\n prevInteractions = tracing.__interactionsRef.current;\n tracing.__interactionsRef.current = root.memoizedInteractions;\n }\n\n // Reset this to null before calling lifecycles\n ReactCurrentOwner$2.current = null;\n\n var firstEffect = void 0;\n if (finishedWork.effectTag > PerformedWork) {\n // A fiber's effect list consists only of its children, not itself. So if\n // the root has an effect, we need to add it to the end of the list. The\n // resulting list is the set that would belong to the root's parent, if\n // it had one; that is, all the effects in the tree including the root.\n if (finishedWork.lastEffect !== null) {\n finishedWork.lastEffect.nextEffect = finishedWork;\n firstEffect = finishedWork.firstEffect;\n } else {\n firstEffect = finishedWork;\n }\n } else {\n // There is no effect on the root.\n firstEffect = finishedWork.firstEffect;\n }\n\n prepareForCommit(root.containerInfo);\n\n // Invoke instances of getSnapshotBeforeUpdate before mutation.\n nextEffect = firstEffect;\n startCommitSnapshotEffectsTimer();\n while (nextEffect !== null) {\n var didError = false;\n var error = void 0;\n {\n invokeGuardedCallback(null, commitBeforeMutationLifecycles, null);\n if (hasCaughtError()) {\n didError = true;\n error = clearCaughtError();\n }\n }\n if (didError) {\n !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n captureCommitPhaseError(nextEffect, error);\n // Clean-up\n if (nextEffect !== null) {\n nextEffect = nextEffect.nextEffect;\n }\n }\n }\n stopCommitSnapshotEffectsTimer();\n\n if (enableProfilerTimer) {\n // Mark the current commit time to be shared by all Profilers in this batch.\n // This enables them to be grouped later.\n recordCommitTime();\n }\n\n // Commit all the side-effects within a tree. We'll do this in two passes.\n // The first pass performs all the host insertions, updates, deletions and\n // ref unmounts.\n nextEffect = firstEffect;\n startCommitHostEffectsTimer();\n while (nextEffect !== null) {\n var _didError = false;\n var _error = void 0;\n {\n invokeGuardedCallback(null, commitAllHostEffects, null);\n if (hasCaughtError()) {\n _didError = true;\n _error = clearCaughtError();\n }\n }\n if (_didError) {\n !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n captureCommitPhaseError(nextEffect, _error);\n // Clean-up\n if (nextEffect !== null) {\n nextEffect = nextEffect.nextEffect;\n }\n }\n }\n stopCommitHostEffectsTimer();\n\n resetAfterCommit(root.containerInfo);\n\n // The work-in-progress tree is now the current tree. This must come after\n // the first pass of the commit phase, so that the previous tree is still\n // current during componentWillUnmount, but before the second pass, so that\n // the finished work is current during componentDidMount/Update.\n root.current = finishedWork;\n\n // In the second pass we'll perform all life-cycles and ref callbacks.\n // Life-cycles happen as a separate pass so that all placements, updates,\n // and deletions in the entire tree have already been invoked.\n // This pass also triggers any renderer-specific initial effects.\n nextEffect = firstEffect;\n startCommitLifeCyclesTimer();\n while (nextEffect !== null) {\n var _didError2 = false;\n var _error2 = void 0;\n {\n invokeGuardedCallback(null, commitAllLifeCycles, null, root, committedExpirationTime);\n if (hasCaughtError()) {\n _didError2 = true;\n _error2 = clearCaughtError();\n }\n }\n if (_didError2) {\n !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n captureCommitPhaseError(nextEffect, _error2);\n if (nextEffect !== null) {\n nextEffect = nextEffect.nextEffect;\n }\n }\n }\n\n if (firstEffect !== null && rootWithPendingPassiveEffects !== null) {\n // This commit included a passive effect. These do not need to fire until\n // after the next paint. Schedule an callback to fire them in an async\n // event. To ensure serial execution, the callback will be flushed early if\n // we enter rootWithPendingPassiveEffects commit phase before then.\n var callback = commitPassiveEffects.bind(null, root, firstEffect);\n if (enableSchedulerTracing) {\n // TODO: Avoid this extra callback by mutating the tracing ref directly,\n // like we do at the beginning of commitRoot. I've opted not to do that\n // here because that code is still in flux.\n callback = tracing.unstable_wrap(callback);\n }\n passiveEffectCallbackHandle = scheduler.unstable_runWithPriority(scheduler.unstable_NormalPriority, function () {\n return schedulePassiveEffects(callback);\n });\n passiveEffectCallback = callback;\n }\n\n isCommitting$1 = false;\n isWorking = false;\n stopCommitLifeCyclesTimer();\n stopCommitTimer();\n onCommitRoot(finishedWork.stateNode);\n if (true && ReactFiberInstrumentation_1.debugTool) {\n ReactFiberInstrumentation_1.debugTool.onCommitWork(finishedWork);\n }\n\n var updateExpirationTimeAfterCommit = finishedWork.expirationTime;\n var childExpirationTimeAfterCommit = finishedWork.childExpirationTime;\n var earliestRemainingTimeAfterCommit = childExpirationTimeAfterCommit > updateExpirationTimeAfterCommit ? childExpirationTimeAfterCommit : updateExpirationTimeAfterCommit;\n if (earliestRemainingTimeAfterCommit === NoWork) {\n // If there's no remaining work, we can clear the set of already failed\n // error boundaries.\n legacyErrorBoundariesThatAlreadyFailed = null;\n }\n onCommit(root, earliestRemainingTimeAfterCommit);\n\n if (enableSchedulerTracing) {\n tracing.__interactionsRef.current = prevInteractions;\n\n var subscriber = void 0;\n\n try {\n subscriber = tracing.__subscriberRef.current;\n if (subscriber !== null && root.memoizedInteractions.size > 0) {\n var threadID = computeThreadID(committedExpirationTime, root.interactionThreadID);\n subscriber.onWorkStopped(root.memoizedInteractions, threadID);\n }\n } catch (error) {\n // It's not safe for commitRoot() to throw.\n // Store the error for now and we'll re-throw in finishRendering().\n if (!hasUnhandledError) {\n hasUnhandledError = true;\n unhandledError = error;\n }\n } finally {\n // Clear completed interactions from the pending Map.\n // Unless the render was suspended or cascading work was scheduled,\n // In which case– leave pending interactions until the subsequent render.\n var pendingInteractionMap = root.pendingInteractionMap;\n pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {\n // Only decrement the pending interaction count if we're done.\n // If there's still work at the current priority,\n // That indicates that we are waiting for suspense data.\n if (scheduledExpirationTime > earliestRemainingTimeAfterCommit) {\n pendingInteractionMap.delete(scheduledExpirationTime);\n\n scheduledInteractions.forEach(function (interaction) {\n interaction.__count--;\n\n if (subscriber !== null && interaction.__count === 0) {\n try {\n subscriber.onInteractionScheduledWorkCompleted(interaction);\n } catch (error) {\n // It's not safe for commitRoot() to throw.\n // Store the error for now and we'll re-throw in finishRendering().\n if (!hasUnhandledError) {\n hasUnhandledError = true;\n unhandledError = error;\n }\n }\n }\n });\n }\n });\n }\n }\n}\n\nfunction resetChildExpirationTime(workInProgress, renderTime) {\n if (renderTime !== Never && workInProgress.childExpirationTime === Never) {\n // The children of this component are hidden. Don't bubble their\n // expiration times.\n return;\n }\n\n var newChildExpirationTime = NoWork;\n\n // Bubble up the earliest expiration time.\n if (enableProfilerTimer && workInProgress.mode & ProfileMode) {\n // We're in profiling mode.\n // Let's use this same traversal to update the render durations.\n var actualDuration = workInProgress.actualDuration;\n var treeBaseDuration = workInProgress.selfBaseDuration;\n\n // When a fiber is cloned, its actualDuration is reset to 0.\n // This value will only be updated if work is done on the fiber (i.e. it doesn't bailout).\n // When work is done, it should bubble to the parent's actualDuration.\n // If the fiber has not been cloned though, (meaning no work was done),\n // Then this value will reflect the amount of time spent working on a previous render.\n // In that case it should not bubble.\n // We determine whether it was cloned by comparing the child pointer.\n var shouldBubbleActualDurations = workInProgress.alternate === null || workInProgress.child !== workInProgress.alternate.child;\n\n var child = workInProgress.child;\n while (child !== null) {\n var childUpdateExpirationTime = child.expirationTime;\n var childChildExpirationTime = child.childExpirationTime;\n if (childUpdateExpirationTime > newChildExpirationTime) {\n newChildExpirationTime = childUpdateExpirationTime;\n }\n if (childChildExpirationTime > newChildExpirationTime) {\n newChildExpirationTime = childChildExpirationTime;\n }\n if (shouldBubbleActualDurations) {\n actualDuration += child.actualDuration;\n }\n treeBaseDuration += child.treeBaseDuration;\n child = child.sibling;\n }\n workInProgress.actualDuration = actualDuration;\n workInProgress.treeBaseDuration = treeBaseDuration;\n } else {\n var _child = workInProgress.child;\n while (_child !== null) {\n var _childUpdateExpirationTime = _child.expirationTime;\n var _childChildExpirationTime = _child.childExpirationTime;\n if (_childUpdateExpirationTime > newChildExpirationTime) {\n newChildExpirationTime = _childUpdateExpirationTime;\n }\n if (_childChildExpirationTime > newChildExpirationTime) {\n newChildExpirationTime = _childChildExpirationTime;\n }\n _child = _child.sibling;\n }\n }\n\n workInProgress.childExpirationTime = newChildExpirationTime;\n}\n\nfunction completeUnitOfWork(workInProgress) {\n // Attempt to complete the current unit of work, then move to the\n // next sibling. If there are no more siblings, return to the\n // parent fiber.\n while (true) {\n // The current, flushed, state of this fiber is the alternate.\n // Ideally nothing should rely on this, but relying on it here\n // means that we don't need an additional field on the work in\n // progress.\n var current$$1 = workInProgress.alternate;\n {\n setCurrentFiber(workInProgress);\n }\n\n var returnFiber = workInProgress.return;\n var siblingFiber = workInProgress.sibling;\n\n if ((workInProgress.effectTag & Incomplete) === NoEffect) {\n if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {\n // Don't replay if it fails during completion phase.\n mayReplayFailedUnitOfWork = false;\n }\n // This fiber completed.\n // Remember we're completing this unit so we can find a boundary if it fails.\n nextUnitOfWork = workInProgress;\n if (enableProfilerTimer) {\n if (workInProgress.mode & ProfileMode) {\n startProfilerTimer(workInProgress);\n }\n nextUnitOfWork = completeWork(current$$1, workInProgress, nextRenderExpirationTime);\n if (workInProgress.mode & ProfileMode) {\n // Update render duration assuming we didn't error.\n stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);\n }\n } else {\n nextUnitOfWork = completeWork(current$$1, workInProgress, nextRenderExpirationTime);\n }\n if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {\n // We're out of completion phase so replaying is fine now.\n mayReplayFailedUnitOfWork = true;\n }\n stopWorkTimer(workInProgress);\n resetChildExpirationTime(workInProgress, nextRenderExpirationTime);\n {\n resetCurrentFiber();\n }\n\n if (nextUnitOfWork !== null) {\n // Completing this fiber spawned new work. Work on that next.\n return nextUnitOfWork;\n }\n\n if (returnFiber !== null &&\n // Do not append effects to parents if a sibling failed to complete\n (returnFiber.effectTag & Incomplete) === NoEffect) {\n // Append all the effects of the subtree and this fiber onto the effect\n // list of the parent. The completion order of the children affects the\n // side-effect order.\n if (returnFiber.firstEffect === null) {\n returnFiber.firstEffect = workInProgress.firstEffect;\n }\n if (workInProgress.lastEffect !== null) {\n if (returnFiber.lastEffect !== null) {\n returnFiber.lastEffect.nextEffect = workInProgress.firstEffect;\n }\n returnFiber.lastEffect = workInProgress.lastEffect;\n }\n\n // If this fiber had side-effects, we append it AFTER the children's\n // side-effects. We can perform certain side-effects earlier if\n // needed, by doing multiple passes over the effect list. We don't want\n // to schedule our own side-effect on our own list because if end up\n // reusing children we'll schedule this effect onto itself since we're\n // at the end.\n var effectTag = workInProgress.effectTag;\n // Skip both NoWork and PerformedWork tags when creating the effect list.\n // PerformedWork effect is read by React DevTools but shouldn't be committed.\n if (effectTag > PerformedWork) {\n if (returnFiber.lastEffect !== null) {\n returnFiber.lastEffect.nextEffect = workInProgress;\n } else {\n returnFiber.firstEffect = workInProgress;\n }\n returnFiber.lastEffect = workInProgress;\n }\n }\n\n if (true && ReactFiberInstrumentation_1.debugTool) {\n ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);\n }\n\n if (siblingFiber !== null) {\n // If there is more work to do in this returnFiber, do that next.\n return siblingFiber;\n } else if (returnFiber !== null) {\n // If there's no more work in this returnFiber. Complete the returnFiber.\n workInProgress = returnFiber;\n continue;\n } else {\n // We've reached the root.\n return null;\n }\n } else {\n if (enableProfilerTimer && workInProgress.mode & ProfileMode) {\n // Record the render duration for the fiber that errored.\n stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);\n\n // Include the time spent working on failed children before continuing.\n var actualDuration = workInProgress.actualDuration;\n var child = workInProgress.child;\n while (child !== null) {\n actualDuration += child.actualDuration;\n child = child.sibling;\n }\n workInProgress.actualDuration = actualDuration;\n }\n\n // This fiber did not complete because something threw. Pop values off\n // the stack without entering the complete phase. If this is a boundary,\n // capture values if possible.\n var next = unwindWork(workInProgress, nextRenderExpirationTime);\n // Because this fiber did not complete, don't reset its expiration time.\n if (workInProgress.effectTag & DidCapture) {\n // Restarting an error boundary\n stopFailedWorkTimer(workInProgress);\n } else {\n stopWorkTimer(workInProgress);\n }\n\n {\n resetCurrentFiber();\n }\n\n if (next !== null) {\n stopWorkTimer(workInProgress);\n if (true && ReactFiberInstrumentation_1.debugTool) {\n ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);\n }\n\n // If completing this work spawned new work, do that next. We'll come\n // back here again.\n // Since we're restarting, remove anything that is not a host effect\n // from the effect tag.\n next.effectTag &= HostEffectMask;\n return next;\n }\n\n if (returnFiber !== null) {\n // Mark the parent fiber as incomplete and clear its effect list.\n returnFiber.firstEffect = returnFiber.lastEffect = null;\n returnFiber.effectTag |= Incomplete;\n }\n\n if (true && ReactFiberInstrumentation_1.debugTool) {\n ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);\n }\n\n if (siblingFiber !== null) {\n // If there is more work to do in this returnFiber, do that next.\n return siblingFiber;\n } else if (returnFiber !== null) {\n // If there's no more work in this returnFiber. Complete the returnFiber.\n workInProgress = returnFiber;\n continue;\n } else {\n return null;\n }\n }\n }\n\n // Without this explicit null return Flow complains of invalid return type\n // TODO Remove the above while(true) loop\n // eslint-disable-next-line no-unreachable\n return null;\n}\n\nfunction performUnitOfWork(workInProgress) {\n // The current, flushed, state of this fiber is the alternate.\n // Ideally nothing should rely on this, but relying on it here\n // means that we don't need an additional field on the work in\n // progress.\n var current$$1 = workInProgress.alternate;\n\n // See if beginning this work spawns more work.\n startWorkTimer(workInProgress);\n {\n setCurrentFiber(workInProgress);\n }\n\n if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {\n stashedWorkInProgressProperties = assignFiberPropertiesInDEV(stashedWorkInProgressProperties, workInProgress);\n }\n\n var next = void 0;\n if (enableProfilerTimer) {\n if (workInProgress.mode & ProfileMode) {\n startProfilerTimer(workInProgress);\n }\n\n next = beginWork(current$$1, workInProgress, nextRenderExpirationTime);\n workInProgress.memoizedProps = workInProgress.pendingProps;\n\n if (workInProgress.mode & ProfileMode) {\n // Record the render duration assuming we didn't bailout (or error).\n stopProfilerTimerIfRunningAndRecordDelta(workInProgress, true);\n }\n } else {\n next = beginWork(current$$1, workInProgress, nextRenderExpirationTime);\n workInProgress.memoizedProps = workInProgress.pendingProps;\n }\n\n {\n resetCurrentFiber();\n if (isReplayingFailedUnitOfWork) {\n // Currently replaying a failed unit of work. This should be unreachable,\n // because the render phase is meant to be idempotent, and it should\n // have thrown again. Since it didn't, rethrow the original error, so\n // React's internal stack is not misaligned.\n rethrowOriginalError();\n }\n }\n if (true && ReactFiberInstrumentation_1.debugTool) {\n ReactFiberInstrumentation_1.debugTool.onBeginWork(workInProgress);\n }\n\n if (next === null) {\n // If this doesn't spawn new work, complete the current work.\n next = completeUnitOfWork(workInProgress);\n }\n\n ReactCurrentOwner$2.current = null;\n\n return next;\n}\n\nfunction workLoop(isYieldy) {\n if (!isYieldy) {\n // Flush work without yielding\n while (nextUnitOfWork !== null) {\n nextUnitOfWork = performUnitOfWork(nextUnitOfWork);\n }\n } else {\n // Flush asynchronous work until there's a higher priority event\n while (nextUnitOfWork !== null && !shouldYieldToRenderer()) {\n nextUnitOfWork = performUnitOfWork(nextUnitOfWork);\n }\n }\n}\n\nfunction renderRoot(root, isYieldy) {\n !!isWorking ? invariant(false, 'renderRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n\n flushPassiveEffects();\n\n isWorking = true;\n var previousDispatcher = ReactCurrentDispatcher.current;\n ReactCurrentDispatcher.current = ContextOnlyDispatcher;\n\n var expirationTime = root.nextExpirationTimeToWorkOn;\n\n // Check if we're starting from a fresh stack, or if we're resuming from\n // previously yielded work.\n if (expirationTime !== nextRenderExpirationTime || root !== nextRoot || nextUnitOfWork === null) {\n // Reset the stack and start working from the root.\n resetStack();\n nextRoot = root;\n nextRenderExpirationTime = expirationTime;\n nextUnitOfWork = createWorkInProgress(nextRoot.current, null, nextRenderExpirationTime);\n root.pendingCommitExpirationTime = NoWork;\n\n if (enableSchedulerTracing) {\n // Determine which interactions this batch of work currently includes,\n // So that we can accurately attribute time spent working on it,\n var interactions = new Set();\n root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {\n if (scheduledExpirationTime >= expirationTime) {\n scheduledInteractions.forEach(function (interaction) {\n return interactions.add(interaction);\n });\n }\n });\n\n // Store the current set of interactions on the FiberRoot for a few reasons:\n // We can re-use it in hot functions like renderRoot() without having to recalculate it.\n // We will also use it in commitWork() to pass to any Profiler onRender() hooks.\n // This also provides DevTools with a way to access it when the onCommitRoot() hook is called.\n root.memoizedInteractions = interactions;\n\n if (interactions.size > 0) {\n var subscriber = tracing.__subscriberRef.current;\n if (subscriber !== null) {\n var threadID = computeThreadID(expirationTime, root.interactionThreadID);\n try {\n subscriber.onWorkStarted(interactions, threadID);\n } catch (error) {\n // Work thrown by an interaction tracing subscriber should be rethrown,\n // But only once it's safe (to avoid leaving the scheduler in an invalid state).\n // Store the error for now and we'll re-throw in finishRendering().\n if (!hasUnhandledError) {\n hasUnhandledError = true;\n unhandledError = error;\n }\n }\n }\n }\n }\n }\n\n var prevInteractions = null;\n if (enableSchedulerTracing) {\n // We're about to start new traced work.\n // Restore pending interactions so cascading work triggered during the render phase will be accounted for.\n prevInteractions = tracing.__interactionsRef.current;\n tracing.__interactionsRef.current = root.memoizedInteractions;\n }\n\n var didFatal = false;\n\n startWorkLoopTimer(nextUnitOfWork);\n\n do {\n try {\n workLoop(isYieldy);\n } catch (thrownValue) {\n resetContextDependences();\n resetHooks();\n\n // Reset in case completion throws.\n // This is only used in DEV and when replaying is on.\n var mayReplay = void 0;\n if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {\n mayReplay = mayReplayFailedUnitOfWork;\n mayReplayFailedUnitOfWork = true;\n }\n\n if (nextUnitOfWork === null) {\n // This is a fatal error.\n didFatal = true;\n onUncaughtError(thrownValue);\n } else {\n if (enableProfilerTimer && nextUnitOfWork.mode & ProfileMode) {\n // Record the time spent rendering before an error was thrown.\n // This avoids inaccurate Profiler durations in the case of a suspended render.\n stopProfilerTimerIfRunningAndRecordDelta(nextUnitOfWork, true);\n }\n\n {\n // Reset global debug state\n // We assume this is defined in DEV\n resetCurrentlyProcessingQueue();\n }\n\n if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {\n if (mayReplay) {\n var failedUnitOfWork = nextUnitOfWork;\n replayUnitOfWork(failedUnitOfWork, thrownValue, isYieldy);\n }\n }\n\n // TODO: we already know this isn't true in some cases.\n // At least this shows a nicer error message until we figure out the cause.\n // https://github.com/facebook/react/issues/12449#issuecomment-386727431\n !(nextUnitOfWork !== null) ? invariant(false, 'Failed to replay rendering after an error. This is likely caused by a bug in React. Please file an issue with a reproducing case to help us find it.') : void 0;\n\n var sourceFiber = nextUnitOfWork;\n var returnFiber = sourceFiber.return;\n if (returnFiber === null) {\n // This is the root. The root could capture its own errors. However,\n // we don't know if it errors before or after we pushed the host\n // context. This information is needed to avoid a stack mismatch.\n // Because we're not sure, treat this as a fatal error. We could track\n // which phase it fails in, but doesn't seem worth it. At least\n // for now.\n didFatal = true;\n onUncaughtError(thrownValue);\n } else {\n throwException(root, returnFiber, sourceFiber, thrownValue, nextRenderExpirationTime);\n nextUnitOfWork = completeUnitOfWork(sourceFiber);\n continue;\n }\n }\n }\n break;\n } while (true);\n\n if (enableSchedulerTracing) {\n // Traced work is done for now; restore the previous interactions.\n tracing.__interactionsRef.current = prevInteractions;\n }\n\n // We're done performing work. Time to clean up.\n isWorking = false;\n ReactCurrentDispatcher.current = previousDispatcher;\n resetContextDependences();\n resetHooks();\n\n // Yield back to main thread.\n if (didFatal) {\n var _didCompleteRoot = false;\n stopWorkLoopTimer(interruptedBy, _didCompleteRoot);\n interruptedBy = null;\n // There was a fatal error.\n {\n resetStackAfterFatalErrorInDev();\n }\n // `nextRoot` points to the in-progress root. A non-null value indicates\n // that we're in the middle of an async render. Set it to null to indicate\n // there's no more work to be done in the current batch.\n nextRoot = null;\n onFatal(root);\n return;\n }\n\n if (nextUnitOfWork !== null) {\n // There's still remaining async work in this tree, but we ran out of time\n // in the current frame. Yield back to the renderer. Unless we're\n // interrupted by a higher priority update, we'll continue later from where\n // we left off.\n var _didCompleteRoot2 = false;\n stopWorkLoopTimer(interruptedBy, _didCompleteRoot2);\n interruptedBy = null;\n onYield(root);\n return;\n }\n\n // We completed the whole tree.\n var didCompleteRoot = true;\n stopWorkLoopTimer(interruptedBy, didCompleteRoot);\n var rootWorkInProgress = root.current.alternate;\n !(rootWorkInProgress !== null) ? invariant(false, 'Finished root should have a work-in-progress. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n\n // `nextRoot` points to the in-progress root. A non-null value indicates\n // that we're in the middle of an async render. Set it to null to indicate\n // there's no more work to be done in the current batch.\n nextRoot = null;\n interruptedBy = null;\n\n if (nextRenderDidError) {\n // There was an error\n if (hasLowerPriorityWork(root, expirationTime)) {\n // There's lower priority work. If so, it may have the effect of fixing\n // the exception that was just thrown. Exit without committing. This is\n // similar to a suspend, but without a timeout because we're not waiting\n // for a promise to resolve. React will restart at the lower\n // priority level.\n markSuspendedPriorityLevel(root, expirationTime);\n var suspendedExpirationTime = expirationTime;\n var rootExpirationTime = root.expirationTime;\n onSuspend(root, rootWorkInProgress, suspendedExpirationTime, rootExpirationTime, -1 // Indicates no timeout\n );\n return;\n } else if (\n // There's no lower priority work, but we're rendering asynchronously.\n // Synchronously attempt to render the same level one more time. This is\n // similar to a suspend, but without a timeout because we're not waiting\n // for a promise to resolve.\n !root.didError && isYieldy) {\n root.didError = true;\n var _suspendedExpirationTime = root.nextExpirationTimeToWorkOn = expirationTime;\n var _rootExpirationTime = root.expirationTime = Sync;\n onSuspend(root, rootWorkInProgress, _suspendedExpirationTime, _rootExpirationTime, -1 // Indicates no timeout\n );\n return;\n }\n }\n\n if (isYieldy && nextLatestAbsoluteTimeoutMs !== -1) {\n // The tree was suspended.\n var _suspendedExpirationTime2 = expirationTime;\n markSuspendedPriorityLevel(root, _suspendedExpirationTime2);\n\n // Find the earliest uncommitted expiration time in the tree, including\n // work that is suspended. The timeout threshold cannot be longer than\n // the overall expiration.\n var earliestExpirationTime = findEarliestOutstandingPriorityLevel(root, expirationTime);\n var earliestExpirationTimeMs = expirationTimeToMs(earliestExpirationTime);\n if (earliestExpirationTimeMs < nextLatestAbsoluteTimeoutMs) {\n nextLatestAbsoluteTimeoutMs = earliestExpirationTimeMs;\n }\n\n // Subtract the current time from the absolute timeout to get the number\n // of milliseconds until the timeout. In other words, convert an absolute\n // timestamp to a relative time. This is the value that is passed\n // to `setTimeout`.\n var currentTimeMs = expirationTimeToMs(requestCurrentTime());\n var msUntilTimeout = nextLatestAbsoluteTimeoutMs - currentTimeMs;\n msUntilTimeout = msUntilTimeout < 0 ? 0 : msUntilTimeout;\n\n // TODO: Account for the Just Noticeable Difference\n\n var _rootExpirationTime2 = root.expirationTime;\n onSuspend(root, rootWorkInProgress, _suspendedExpirationTime2, _rootExpirationTime2, msUntilTimeout);\n return;\n }\n\n // Ready to commit.\n onComplete(root, rootWorkInProgress, expirationTime);\n}\n\nfunction captureCommitPhaseError(sourceFiber, value) {\n var expirationTime = Sync;\n var fiber = sourceFiber.return;\n while (fiber !== null) {\n switch (fiber.tag) {\n case ClassComponent:\n var ctor = fiber.type;\n var instance = fiber.stateNode;\n if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {\n var errorInfo = createCapturedValue(value, sourceFiber);\n var update = createClassErrorUpdate(fiber, errorInfo, expirationTime);\n enqueueUpdate(fiber, update);\n scheduleWork(fiber, expirationTime);\n return;\n }\n break;\n case HostRoot:\n {\n var _errorInfo = createCapturedValue(value, sourceFiber);\n var _update = createRootErrorUpdate(fiber, _errorInfo, expirationTime);\n enqueueUpdate(fiber, _update);\n scheduleWork(fiber, expirationTime);\n return;\n }\n }\n fiber = fiber.return;\n }\n\n if (sourceFiber.tag === HostRoot) {\n // Error was thrown at the root. There is no parent, so the root\n // itself should capture it.\n var rootFiber = sourceFiber;\n var _errorInfo2 = createCapturedValue(value, rootFiber);\n var _update2 = createRootErrorUpdate(rootFiber, _errorInfo2, expirationTime);\n enqueueUpdate(rootFiber, _update2);\n scheduleWork(rootFiber, expirationTime);\n }\n}\n\nfunction computeThreadID(expirationTime, interactionThreadID) {\n // Interaction threads are unique per root and expiration time.\n return expirationTime * 1000 + interactionThreadID;\n}\n\n// Creates a unique async expiration time.\nfunction computeUniqueAsyncExpiration() {\n var currentTime = requestCurrentTime();\n var result = computeAsyncExpiration(currentTime);\n if (result >= lastUniqueAsyncExpiration) {\n // Since we assume the current time monotonically increases, we only hit\n // this branch when computeUniqueAsyncExpiration is fired multiple times\n // within a 200ms window (or whatever the async bucket size is).\n result = lastUniqueAsyncExpiration - 1;\n }\n lastUniqueAsyncExpiration = result;\n return lastUniqueAsyncExpiration;\n}\n\nfunction computeExpirationForFiber(currentTime, fiber) {\n var priorityLevel = scheduler.unstable_getCurrentPriorityLevel();\n\n var expirationTime = void 0;\n if ((fiber.mode & ConcurrentMode) === NoContext) {\n // Outside of concurrent mode, updates are always synchronous.\n expirationTime = Sync;\n } else if (isWorking && !isCommitting$1) {\n // During render phase, updates expire during as the current render.\n expirationTime = nextRenderExpirationTime;\n } else {\n switch (priorityLevel) {\n case scheduler.unstable_ImmediatePriority:\n expirationTime = Sync;\n break;\n case scheduler.unstable_UserBlockingPriority:\n expirationTime = computeInteractiveExpiration(currentTime);\n break;\n case scheduler.unstable_NormalPriority:\n // This is a normal, concurrent update\n expirationTime = computeAsyncExpiration(currentTime);\n break;\n case scheduler.unstable_LowPriority:\n case scheduler.unstable_IdlePriority:\n expirationTime = Never;\n break;\n default:\n invariant(false, 'Unknown priority level. This error is likely caused by a bug in React. Please file an issue.');\n }\n\n // If we're in the middle of rendering a tree, do not update at the same\n // expiration time that is already rendering.\n if (nextRoot !== null && expirationTime === nextRenderExpirationTime) {\n expirationTime -= 1;\n }\n }\n\n // Keep track of the lowest pending interactive expiration time. This\n // allows us to synchronously flush all interactive updates\n // when needed.\n // TODO: Move this to renderer?\n if (priorityLevel === scheduler.unstable_UserBlockingPriority && (lowestPriorityPendingInteractiveExpirationTime === NoWork || expirationTime < lowestPriorityPendingInteractiveExpirationTime)) {\n lowestPriorityPendingInteractiveExpirationTime = expirationTime;\n }\n\n return expirationTime;\n}\n\nfunction renderDidSuspend(root, absoluteTimeoutMs, suspendedTime) {\n // Schedule the timeout.\n if (absoluteTimeoutMs >= 0 && nextLatestAbsoluteTimeoutMs < absoluteTimeoutMs) {\n nextLatestAbsoluteTimeoutMs = absoluteTimeoutMs;\n }\n}\n\nfunction renderDidError() {\n nextRenderDidError = true;\n}\n\nfunction pingSuspendedRoot(root, thenable, pingTime) {\n // A promise that previously suspended React from committing has resolved.\n // If React is still suspended, try again at the previous level (pingTime).\n\n var pingCache = root.pingCache;\n if (pingCache !== null) {\n // The thenable resolved, so we no longer need to memoize, because it will\n // never be thrown again.\n pingCache.delete(thenable);\n }\n\n if (nextRoot !== null && nextRenderExpirationTime === pingTime) {\n // Received a ping at the same priority level at which we're currently\n // rendering. Restart from the root.\n nextRoot = null;\n } else {\n // Confirm that the root is still suspended at this level. Otherwise exit.\n if (isPriorityLevelSuspended(root, pingTime)) {\n // Ping at the original level\n markPingedPriorityLevel(root, pingTime);\n var rootExpirationTime = root.expirationTime;\n if (rootExpirationTime !== NoWork) {\n requestWork(root, rootExpirationTime);\n }\n }\n }\n}\n\nfunction retryTimedOutBoundary(boundaryFiber, thenable) {\n // The boundary fiber (a Suspense component) previously timed out and was\n // rendered in its fallback state. One of the promises that suspended it has\n // resolved, which means at least part of the tree was likely unblocked. Try\n var retryCache = void 0;\n if (enableSuspenseServerRenderer) {\n switch (boundaryFiber.tag) {\n case SuspenseComponent:\n retryCache = boundaryFiber.stateNode;\n break;\n case DehydratedSuspenseComponent:\n retryCache = boundaryFiber.memoizedState;\n break;\n default:\n invariant(false, 'Pinged unknown suspense boundary type. This is probably a bug in React.');\n }\n } else {\n retryCache = boundaryFiber.stateNode;\n }\n if (retryCache !== null) {\n // The thenable resolved, so we no longer need to memoize, because it will\n // never be thrown again.\n retryCache.delete(thenable);\n }\n\n var currentTime = requestCurrentTime();\n var retryTime = computeExpirationForFiber(currentTime, boundaryFiber);\n var root = scheduleWorkToRoot(boundaryFiber, retryTime);\n if (root !== null) {\n markPendingPriorityLevel(root, retryTime);\n var rootExpirationTime = root.expirationTime;\n if (rootExpirationTime !== NoWork) {\n requestWork(root, rootExpirationTime);\n }\n }\n}\n\nfunction scheduleWorkToRoot(fiber, expirationTime) {\n recordScheduleUpdate();\n\n {\n if (fiber.tag === ClassComponent) {\n var instance = fiber.stateNode;\n warnAboutInvalidUpdates(instance);\n }\n }\n\n // Update the source fiber's expiration time\n if (fiber.expirationTime < expirationTime) {\n fiber.expirationTime = expirationTime;\n }\n var alternate = fiber.alternate;\n if (alternate !== null && alternate.expirationTime < expirationTime) {\n alternate.expirationTime = expirationTime;\n }\n // Walk the parent path to the root and update the child expiration time.\n var node = fiber.return;\n var root = null;\n if (node === null && fiber.tag === HostRoot) {\n root = fiber.stateNode;\n } else {\n while (node !== null) {\n alternate = node.alternate;\n if (node.childExpirationTime < expirationTime) {\n node.childExpirationTime = expirationTime;\n if (alternate !== null && alternate.childExpirationTime < expirationTime) {\n alternate.childExpirationTime = expirationTime;\n }\n } else if (alternate !== null && alternate.childExpirationTime < expirationTime) {\n alternate.childExpirationTime = expirationTime;\n }\n if (node.return === null && node.tag === HostRoot) {\n root = node.stateNode;\n break;\n }\n node = node.return;\n }\n }\n\n if (enableSchedulerTracing) {\n if (root !== null) {\n var interactions = tracing.__interactionsRef.current;\n if (interactions.size > 0) {\n var pendingInteractionMap = root.pendingInteractionMap;\n var pendingInteractions = pendingInteractionMap.get(expirationTime);\n if (pendingInteractions != null) {\n interactions.forEach(function (interaction) {\n if (!pendingInteractions.has(interaction)) {\n // Update the pending async work count for previously unscheduled interaction.\n interaction.__count++;\n }\n\n pendingInteractions.add(interaction);\n });\n } else {\n pendingInteractionMap.set(expirationTime, new Set(interactions));\n\n // Update the pending async work count for the current interactions.\n interactions.forEach(function (interaction) {\n interaction.__count++;\n });\n }\n\n var subscriber = tracing.__subscriberRef.current;\n if (subscriber !== null) {\n var threadID = computeThreadID(expirationTime, root.interactionThreadID);\n subscriber.onWorkScheduled(interactions, threadID);\n }\n }\n }\n }\n return root;\n}\n\nfunction warnIfNotCurrentlyBatchingInDev(fiber) {\n {\n if (isRendering === false && isBatchingUpdates === false) {\n warningWithoutStack$1(false, 'An update to %s inside a test was not wrapped in act(...).\\n\\n' + 'When testing, code that causes React state updates should be wrapped into act(...):\\n\\n' + 'act(() => {\\n' + ' /* fire events that update state */\\n' + '});\\n' + '/* assert on the output */\\n\\n' + \"This ensures that you're testing the behavior the user would see in the browser.\" + ' Learn more at https://fb.me/react-wrap-tests-with-act' + '%s', getComponentName(fiber.type), getStackByFiberInDevAndProd(fiber));\n }\n }\n}\n\nfunction scheduleWork(fiber, expirationTime) {\n var root = scheduleWorkToRoot(fiber, expirationTime);\n if (root === null) {\n {\n switch (fiber.tag) {\n case ClassComponent:\n warnAboutUpdateOnUnmounted(fiber, true);\n break;\n case FunctionComponent:\n case ForwardRef:\n case MemoComponent:\n case SimpleMemoComponent:\n warnAboutUpdateOnUnmounted(fiber, false);\n break;\n }\n }\n return;\n }\n\n if (!isWorking && nextRenderExpirationTime !== NoWork && expirationTime > nextRenderExpirationTime) {\n // This is an interruption. (Used for performance tracking.)\n interruptedBy = fiber;\n resetStack();\n }\n markPendingPriorityLevel(root, expirationTime);\n if (\n // If we're in the render phase, we don't need to schedule this root\n // for an update, because we'll do it before we exit...\n !isWorking || isCommitting$1 ||\n // ...unless this is a different root than the one we're rendering.\n nextRoot !== root) {\n var rootExpirationTime = root.expirationTime;\n requestWork(root, rootExpirationTime);\n }\n if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {\n // Reset this back to zero so subsequent updates don't throw.\n nestedUpdateCount = 0;\n invariant(false, 'Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.');\n }\n}\n\nfunction syncUpdates(fn, a, b, c, d) {\n return scheduler.unstable_runWithPriority(scheduler.unstable_ImmediatePriority, function () {\n return fn(a, b, c, d);\n });\n}\n\n// TODO: Everything below this is written as if it has been lifted to the\n// renderers. I'll do this in a follow-up.\n\n// Linked-list of roots\nvar firstScheduledRoot = null;\nvar lastScheduledRoot = null;\n\nvar callbackExpirationTime = NoWork;\nvar callbackID = void 0;\nvar isRendering = false;\nvar nextFlushedRoot = null;\nvar nextFlushedExpirationTime = NoWork;\nvar lowestPriorityPendingInteractiveExpirationTime = NoWork;\nvar hasUnhandledError = false;\nvar unhandledError = null;\n\nvar isBatchingUpdates = false;\nvar isUnbatchingUpdates = false;\n\nvar completedBatches = null;\n\nvar originalStartTimeMs = scheduler.unstable_now();\nvar currentRendererTime = msToExpirationTime(originalStartTimeMs);\nvar currentSchedulerTime = currentRendererTime;\n\n// Use these to prevent an infinite loop of nested updates\nvar NESTED_UPDATE_LIMIT = 50;\nvar nestedUpdateCount = 0;\nvar lastCommittedRootDuringThisBatch = null;\n\nfunction recomputeCurrentRendererTime() {\n var currentTimeMs = scheduler.unstable_now() - originalStartTimeMs;\n currentRendererTime = msToExpirationTime(currentTimeMs);\n}\n\nfunction scheduleCallbackWithExpirationTime(root, expirationTime) {\n if (callbackExpirationTime !== NoWork) {\n // A callback is already scheduled. Check its expiration time (timeout).\n if (expirationTime < callbackExpirationTime) {\n // Existing callback has sufficient timeout. Exit.\n return;\n } else {\n if (callbackID !== null) {\n // Existing callback has insufficient timeout. Cancel and schedule a\n // new one.\n scheduler.unstable_cancelCallback(callbackID);\n }\n }\n // The request callback timer is already running. Don't start a new one.\n } else {\n startRequestCallbackTimer();\n }\n\n callbackExpirationTime = expirationTime;\n var currentMs = scheduler.unstable_now() - originalStartTimeMs;\n var expirationTimeMs = expirationTimeToMs(expirationTime);\n var timeout = expirationTimeMs - currentMs;\n callbackID = scheduler.unstable_scheduleCallback(performAsyncWork, { timeout: timeout });\n}\n\n// For every call to renderRoot, one of onFatal, onComplete, onSuspend, and\n// onYield is called upon exiting. We use these in lieu of returning a tuple.\n// I've also chosen not to inline them into renderRoot because these will\n// eventually be lifted into the renderer.\nfunction onFatal(root) {\n root.finishedWork = null;\n}\n\nfunction onComplete(root, finishedWork, expirationTime) {\n root.pendingCommitExpirationTime = expirationTime;\n root.finishedWork = finishedWork;\n}\n\nfunction onSuspend(root, finishedWork, suspendedExpirationTime, rootExpirationTime, msUntilTimeout) {\n root.expirationTime = rootExpirationTime;\n if (msUntilTimeout === 0 && !shouldYieldToRenderer()) {\n // Don't wait an additional tick. Commit the tree immediately.\n root.pendingCommitExpirationTime = suspendedExpirationTime;\n root.finishedWork = finishedWork;\n } else if (msUntilTimeout > 0) {\n // Wait `msUntilTimeout` milliseconds before committing.\n root.timeoutHandle = scheduleTimeout(onTimeout.bind(null, root, finishedWork, suspendedExpirationTime), msUntilTimeout);\n }\n}\n\nfunction onYield(root) {\n root.finishedWork = null;\n}\n\nfunction onTimeout(root, finishedWork, suspendedExpirationTime) {\n // The root timed out. Commit it.\n root.pendingCommitExpirationTime = suspendedExpirationTime;\n root.finishedWork = finishedWork;\n // Read the current time before entering the commit phase. We can be\n // certain this won't cause tearing related to batching of event updates\n // because we're at the top of a timer event.\n recomputeCurrentRendererTime();\n currentSchedulerTime = currentRendererTime;\n flushRoot(root, suspendedExpirationTime);\n}\n\nfunction onCommit(root, expirationTime) {\n root.expirationTime = expirationTime;\n root.finishedWork = null;\n}\n\nfunction requestCurrentTime() {\n // requestCurrentTime is called by the scheduler to compute an expiration\n // time.\n //\n // Expiration times are computed by adding to the current time (the start\n // time). However, if two updates are scheduled within the same event, we\n // should treat their start times as simultaneous, even if the actual clock\n // time has advanced between the first and second call.\n\n // In other words, because expiration times determine how updates are batched,\n // we want all updates of like priority that occur within the same event to\n // receive the same expiration time. Otherwise we get tearing.\n //\n // We keep track of two separate times: the current \"renderer\" time and the\n // current \"scheduler\" time. The renderer time can be updated whenever; it\n // only exists to minimize the calls performance.now.\n //\n // But the scheduler time can only be updated if there's no pending work, or\n // if we know for certain that we're not in the middle of an event.\n\n if (isRendering) {\n // We're already rendering. Return the most recently read time.\n return currentSchedulerTime;\n }\n // Check if there's pending work.\n findHighestPriorityRoot();\n if (nextFlushedExpirationTime === NoWork || nextFlushedExpirationTime === Never) {\n // If there's no pending work, or if the pending work is offscreen, we can\n // read the current time without risk of tearing.\n recomputeCurrentRendererTime();\n currentSchedulerTime = currentRendererTime;\n return currentSchedulerTime;\n }\n // There's already pending work. We might be in the middle of a browser\n // event. If we were to read the current time, it could cause multiple updates\n // within the same event to receive different expiration times, leading to\n // tearing. Return the last read time. During the next idle callback, the\n // time will be updated.\n return currentSchedulerTime;\n}\n\n// requestWork is called by the scheduler whenever a root receives an update.\n// It's up to the renderer to call renderRoot at some point in the future.\nfunction requestWork(root, expirationTime) {\n addRootToSchedule(root, expirationTime);\n if (isRendering) {\n // Prevent reentrancy. Remaining work will be scheduled at the end of\n // the currently rendering batch.\n return;\n }\n\n if (isBatchingUpdates) {\n // Flush work at the end of the batch.\n if (isUnbatchingUpdates) {\n // ...unless we're inside unbatchedUpdates, in which case we should\n // flush it now.\n nextFlushedRoot = root;\n nextFlushedExpirationTime = Sync;\n performWorkOnRoot(root, Sync, false);\n }\n return;\n }\n\n // TODO: Get rid of Sync and use current time?\n if (expirationTime === Sync) {\n performSyncWork();\n } else {\n scheduleCallbackWithExpirationTime(root, expirationTime);\n }\n}\n\nfunction addRootToSchedule(root, expirationTime) {\n // Add the root to the schedule.\n // Check if this root is already part of the schedule.\n if (root.nextScheduledRoot === null) {\n // This root is not already scheduled. Add it.\n root.expirationTime = expirationTime;\n if (lastScheduledRoot === null) {\n firstScheduledRoot = lastScheduledRoot = root;\n root.nextScheduledRoot = root;\n } else {\n lastScheduledRoot.nextScheduledRoot = root;\n lastScheduledRoot = root;\n lastScheduledRoot.nextScheduledRoot = firstScheduledRoot;\n }\n } else {\n // This root is already scheduled, but its priority may have increased.\n var remainingExpirationTime = root.expirationTime;\n if (expirationTime > remainingExpirationTime) {\n // Update the priority.\n root.expirationTime = expirationTime;\n }\n }\n}\n\nfunction findHighestPriorityRoot() {\n var highestPriorityWork = NoWork;\n var highestPriorityRoot = null;\n if (lastScheduledRoot !== null) {\n var previousScheduledRoot = lastScheduledRoot;\n var root = firstScheduledRoot;\n while (root !== null) {\n var remainingExpirationTime = root.expirationTime;\n if (remainingExpirationTime === NoWork) {\n // This root no longer has work. Remove it from the scheduler.\n\n // TODO: This check is redudant, but Flow is confused by the branch\n // below where we set lastScheduledRoot to null, even though we break\n // from the loop right after.\n !(previousScheduledRoot !== null && lastScheduledRoot !== null) ? invariant(false, 'Should have a previous and last root. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n if (root === root.nextScheduledRoot) {\n // This is the only root in the list.\n root.nextScheduledRoot = null;\n firstScheduledRoot = lastScheduledRoot = null;\n break;\n } else if (root === firstScheduledRoot) {\n // This is the first root in the list.\n var next = root.nextScheduledRoot;\n firstScheduledRoot = next;\n lastScheduledRoot.nextScheduledRoot = next;\n root.nextScheduledRoot = null;\n } else if (root === lastScheduledRoot) {\n // This is the last root in the list.\n lastScheduledRoot = previousScheduledRoot;\n lastScheduledRoot.nextScheduledRoot = firstScheduledRoot;\n root.nextScheduledRoot = null;\n break;\n } else {\n previousScheduledRoot.nextScheduledRoot = root.nextScheduledRoot;\n root.nextScheduledRoot = null;\n }\n root = previousScheduledRoot.nextScheduledRoot;\n } else {\n if (remainingExpirationTime > highestPriorityWork) {\n // Update the priority, if it's higher\n highestPriorityWork = remainingExpirationTime;\n highestPriorityRoot = root;\n }\n if (root === lastScheduledRoot) {\n break;\n }\n if (highestPriorityWork === Sync) {\n // Sync is highest priority by definition so\n // we can stop searching.\n break;\n }\n previousScheduledRoot = root;\n root = root.nextScheduledRoot;\n }\n }\n }\n\n nextFlushedRoot = highestPriorityRoot;\n nextFlushedExpirationTime = highestPriorityWork;\n}\n\n// TODO: This wrapper exists because many of the older tests (the ones that use\n// flushDeferredPri) rely on the number of times `shouldYield` is called. We\n// should get rid of it.\nvar didYield = false;\nfunction shouldYieldToRenderer() {\n if (didYield) {\n return true;\n }\n if (scheduler.unstable_shouldYield()) {\n didYield = true;\n return true;\n }\n return false;\n}\n\nfunction performAsyncWork() {\n try {\n if (!shouldYieldToRenderer()) {\n // The callback timed out. That means at least one update has expired.\n // Iterate through the root schedule. If they contain expired work, set\n // the next render expiration time to the current time. This has the effect\n // of flushing all expired work in a single batch, instead of flushing each\n // level one at a time.\n if (firstScheduledRoot !== null) {\n recomputeCurrentRendererTime();\n var root = firstScheduledRoot;\n do {\n didExpireAtExpirationTime(root, currentRendererTime);\n // The root schedule is circular, so this is never null.\n root = root.nextScheduledRoot;\n } while (root !== firstScheduledRoot);\n }\n }\n performWork(NoWork, true);\n } finally {\n didYield = false;\n }\n}\n\nfunction performSyncWork() {\n performWork(Sync, false);\n}\n\nfunction performWork(minExpirationTime, isYieldy) {\n // Keep working on roots until there's no more work, or until there's a higher\n // priority event.\n findHighestPriorityRoot();\n\n if (isYieldy) {\n recomputeCurrentRendererTime();\n currentSchedulerTime = currentRendererTime;\n\n if (enableUserTimingAPI) {\n var didExpire = nextFlushedExpirationTime > currentRendererTime;\n var timeout = expirationTimeToMs(nextFlushedExpirationTime);\n stopRequestCallbackTimer(didExpire, timeout);\n }\n\n while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && minExpirationTime <= nextFlushedExpirationTime && !(didYield && currentRendererTime > nextFlushedExpirationTime)) {\n performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, currentRendererTime > nextFlushedExpirationTime);\n findHighestPriorityRoot();\n recomputeCurrentRendererTime();\n currentSchedulerTime = currentRendererTime;\n }\n } else {\n while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && minExpirationTime <= nextFlushedExpirationTime) {\n performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, false);\n findHighestPriorityRoot();\n }\n }\n\n // We're done flushing work. Either we ran out of time in this callback,\n // or there's no more work left with sufficient priority.\n\n // If we're inside a callback, set this to false since we just completed it.\n if (isYieldy) {\n callbackExpirationTime = NoWork;\n callbackID = null;\n }\n // If there's work left over, schedule a new callback.\n if (nextFlushedExpirationTime !== NoWork) {\n scheduleCallbackWithExpirationTime(nextFlushedRoot, nextFlushedExpirationTime);\n }\n\n // Clean-up.\n finishRendering();\n}\n\nfunction flushRoot(root, expirationTime) {\n !!isRendering ? invariant(false, 'work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.') : void 0;\n // Perform work on root as if the given expiration time is the current time.\n // This has the effect of synchronously flushing all work up to and\n // including the given time.\n nextFlushedRoot = root;\n nextFlushedExpirationTime = expirationTime;\n performWorkOnRoot(root, expirationTime, false);\n // Flush any sync work that was scheduled by lifecycles\n performSyncWork();\n}\n\nfunction finishRendering() {\n nestedUpdateCount = 0;\n lastCommittedRootDuringThisBatch = null;\n\n if (completedBatches !== null) {\n var batches = completedBatches;\n completedBatches = null;\n for (var i = 0; i < batches.length; i++) {\n var batch = batches[i];\n try {\n batch._onComplete();\n } catch (error) {\n if (!hasUnhandledError) {\n hasUnhandledError = true;\n unhandledError = error;\n }\n }\n }\n }\n\n if (hasUnhandledError) {\n var error = unhandledError;\n unhandledError = null;\n hasUnhandledError = false;\n throw error;\n }\n}\n\nfunction performWorkOnRoot(root, expirationTime, isYieldy) {\n !!isRendering ? invariant(false, 'performWorkOnRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n\n isRendering = true;\n\n // Check if this is async work or sync/expired work.\n if (!isYieldy) {\n // Flush work without yielding.\n // TODO: Non-yieldy work does not necessarily imply expired work. A renderer\n // may want to perform some work without yielding, but also without\n // requiring the root to complete (by triggering placeholders).\n\n var finishedWork = root.finishedWork;\n if (finishedWork !== null) {\n // This root is already complete. We can commit it.\n completeRoot(root, finishedWork, expirationTime);\n } else {\n root.finishedWork = null;\n // If this root previously suspended, clear its existing timeout, since\n // we're about to try rendering again.\n var timeoutHandle = root.timeoutHandle;\n if (timeoutHandle !== noTimeout) {\n root.timeoutHandle = noTimeout;\n // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above\n cancelTimeout(timeoutHandle);\n }\n renderRoot(root, isYieldy);\n finishedWork = root.finishedWork;\n if (finishedWork !== null) {\n // We've completed the root. Commit it.\n completeRoot(root, finishedWork, expirationTime);\n }\n }\n } else {\n // Flush async work.\n var _finishedWork = root.finishedWork;\n if (_finishedWork !== null) {\n // This root is already complete. We can commit it.\n completeRoot(root, _finishedWork, expirationTime);\n } else {\n root.finishedWork = null;\n // If this root previously suspended, clear its existing timeout, since\n // we're about to try rendering again.\n var _timeoutHandle = root.timeoutHandle;\n if (_timeoutHandle !== noTimeout) {\n root.timeoutHandle = noTimeout;\n // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above\n cancelTimeout(_timeoutHandle);\n }\n renderRoot(root, isYieldy);\n _finishedWork = root.finishedWork;\n if (_finishedWork !== null) {\n // We've completed the root. Check the if we should yield one more time\n // before committing.\n if (!shouldYieldToRenderer()) {\n // Still time left. Commit the root.\n completeRoot(root, _finishedWork, expirationTime);\n } else {\n // There's no time left. Mark this root as complete. We'll come\n // back and commit it later.\n root.finishedWork = _finishedWork;\n }\n }\n }\n }\n\n isRendering = false;\n}\n\nfunction completeRoot(root, finishedWork, expirationTime) {\n // Check if there's a batch that matches this expiration time.\n var firstBatch = root.firstBatch;\n if (firstBatch !== null && firstBatch._expirationTime >= expirationTime) {\n if (completedBatches === null) {\n completedBatches = [firstBatch];\n } else {\n completedBatches.push(firstBatch);\n }\n if (firstBatch._defer) {\n // This root is blocked from committing by a batch. Unschedule it until\n // we receive another update.\n root.finishedWork = finishedWork;\n root.expirationTime = NoWork;\n return;\n }\n }\n\n // Commit the root.\n root.finishedWork = null;\n\n // Check if this is a nested update (a sync update scheduled during the\n // commit phase).\n if (root === lastCommittedRootDuringThisBatch) {\n // If the next root is the same as the previous root, this is a nested\n // update. To prevent an infinite loop, increment the nested update count.\n nestedUpdateCount++;\n } else {\n // Reset whenever we switch roots.\n lastCommittedRootDuringThisBatch = root;\n nestedUpdateCount = 0;\n }\n scheduler.unstable_runWithPriority(scheduler.unstable_ImmediatePriority, function () {\n commitRoot(root, finishedWork);\n });\n}\n\nfunction onUncaughtError(error) {\n !(nextFlushedRoot !== null) ? invariant(false, 'Should be working on a root. This error is likely caused by a bug in React. Please file an issue.') : void 0;\n // Unschedule this root so we don't work on it again until there's\n // another update.\n nextFlushedRoot.expirationTime = NoWork;\n if (!hasUnhandledError) {\n hasUnhandledError = true;\n unhandledError = error;\n }\n}\n\n// TODO: Batching should be implemented at the renderer level, not inside\n// the reconciler.\nfunction batchedUpdates$1(fn, a) {\n var previousIsBatchingUpdates = isBatchingUpdates;\n isBatchingUpdates = true;\n try {\n return fn(a);\n } finally {\n isBatchingUpdates = previousIsBatchingUpdates;\n if (!isBatchingUpdates && !isRendering) {\n performSyncWork();\n }\n }\n}\n\n// TODO: Batching should be implemented at the renderer level, not inside\n// the reconciler.\nfunction unbatchedUpdates(fn, a) {\n if (isBatchingUpdates && !isUnbatchingUpdates) {\n isUnbatchingUpdates = true;\n try {\n return fn(a);\n } finally {\n isUnbatchingUpdates = false;\n }\n }\n return fn(a);\n}\n\n// TODO: Batching should be implemented at the renderer level, not within\n// the reconciler.\nfunction flushSync(fn, a) {\n !!isRendering ? invariant(false, 'flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering.') : void 0;\n var previousIsBatchingUpdates = isBatchingUpdates;\n isBatchingUpdates = true;\n try {\n return syncUpdates(fn, a);\n } finally {\n isBatchingUpdates = previousIsBatchingUpdates;\n performSyncWork();\n }\n}\n\nfunction interactiveUpdates$1(fn, a, b) {\n // If there are any pending interactive updates, synchronously flush them.\n // This needs to happen before we read any handlers, because the effect of\n // the previous event may influence which handlers are called during\n // this event.\n if (!isBatchingUpdates && !isRendering && lowestPriorityPendingInteractiveExpirationTime !== NoWork) {\n // Synchronously flush pending interactive updates.\n performWork(lowestPriorityPendingInteractiveExpirationTime, false);\n lowestPriorityPendingInteractiveExpirationTime = NoWork;\n }\n var previousIsBatchingUpdates = isBatchingUpdates;\n isBatchingUpdates = true;\n try {\n return scheduler.unstable_runWithPriority(scheduler.unstable_UserBlockingPriority, function () {\n return fn(a, b);\n });\n } finally {\n isBatchingUpdates = previousIsBatchingUpdates;\n if (!isBatchingUpdates && !isRendering) {\n performSyncWork();\n }\n }\n}\n\nfunction flushInteractiveUpdates$1() {\n if (!isRendering && lowestPriorityPendingInteractiveExpirationTime !== NoWork) {\n // Synchronously flush pending interactive updates.\n performWork(lowestPriorityPendingInteractiveExpirationTime, false);\n lowestPriorityPendingInteractiveExpirationTime = NoWork;\n }\n}\n\nfunction flushControlled(fn) {\n var previousIsBatchingUpdates = isBatchingUpdates;\n isBatchingUpdates = true;\n try {\n syncUpdates(fn);\n } finally {\n isBatchingUpdates = previousIsBatchingUpdates;\n if (!isBatchingUpdates && !isRendering) {\n performSyncWork();\n }\n }\n}\n\n// 0 is PROD, 1 is DEV.\n// Might add PROFILE later.\n\n\nvar didWarnAboutNestedUpdates = void 0;\nvar didWarnAboutFindNodeInStrictMode = void 0;\n\n{\n didWarnAboutNestedUpdates = false;\n didWarnAboutFindNodeInStrictMode = {};\n}\n\nfunction getContextForSubtree(parentComponent) {\n if (!parentComponent) {\n return emptyContextObject;\n }\n\n var fiber = get(parentComponent);\n var parentContext = findCurrentUnmaskedContext(fiber);\n\n if (fiber.tag === ClassComponent) {\n var Component = fiber.type;\n if (isContextProvider(Component)) {\n return processChildContext(fiber, Component, parentContext);\n }\n }\n\n return parentContext;\n}\n\nfunction scheduleRootUpdate(current$$1, element, expirationTime, callback) {\n {\n if (phase === 'render' && current !== null && !didWarnAboutNestedUpdates) {\n didWarnAboutNestedUpdates = true;\n warningWithoutStack$1(false, 'Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\\n\\n' + 'Check the render method of %s.', getComponentName(current.type) || 'Unknown');\n }\n }\n\n var update = createUpdate(expirationTime);\n // Caution: React DevTools currently depends on this property\n // being called \"element\".\n update.payload = { element: element };\n\n callback = callback === undefined ? null : callback;\n if (callback !== null) {\n !(typeof callback === 'function') ? warningWithoutStack$1(false, 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback) : void 0;\n update.callback = callback;\n }\n\n flushPassiveEffects();\n enqueueUpdate(current$$1, update);\n scheduleWork(current$$1, expirationTime);\n\n return expirationTime;\n}\n\nfunction updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback) {\n // TODO: If this is a nested container, this won't be the root.\n var current$$1 = container.current;\n\n {\n if (ReactFiberInstrumentation_1.debugTool) {\n if (current$$1.alternate === null) {\n ReactFiberInstrumentation_1.debugTool.onMountContainer(container);\n } else if (element === null) {\n ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container);\n } else {\n ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container);\n }\n }\n }\n\n var context = getContextForSubtree(parentComponent);\n if (container.context === null) {\n container.context = context;\n } else {\n container.pendingContext = context;\n }\n\n return scheduleRootUpdate(current$$1, element, expirationTime, callback);\n}\n\nfunction findHostInstance(component) {\n var fiber = get(component);\n if (fiber === undefined) {\n if (typeof component.render === 'function') {\n invariant(false, 'Unable to find node on an unmounted component.');\n } else {\n invariant(false, 'Argument appears to not be a ReactComponent. Keys: %s', Object.keys(component));\n }\n }\n var hostFiber = findCurrentHostFiber(fiber);\n if (hostFiber === null) {\n return null;\n }\n return hostFiber.stateNode;\n}\n\nfunction findHostInstanceWithWarning(component, methodName) {\n {\n var fiber = get(component);\n if (fiber === undefined) {\n if (typeof component.render === 'function') {\n invariant(false, 'Unable to find node on an unmounted component.');\n } else {\n invariant(false, 'Argument appears to not be a ReactComponent. Keys: %s', Object.keys(component));\n }\n }\n var hostFiber = findCurrentHostFiber(fiber);\n if (hostFiber === null) {\n return null;\n }\n if (hostFiber.mode & StrictMode) {\n var componentName = getComponentName(fiber.type) || 'Component';\n if (!didWarnAboutFindNodeInStrictMode[componentName]) {\n didWarnAboutFindNodeInStrictMode[componentName] = true;\n if (fiber.mode & StrictMode) {\n warningWithoutStack$1(false, '%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which is inside StrictMode. ' + 'Instead, add a ref directly to the element you want to reference.' + '\\n%s' + '\\n\\nLearn more about using refs safely here:' + '\\nhttps://fb.me/react-strict-mode-find-node', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));\n } else {\n warningWithoutStack$1(false, '%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which renders StrictMode children. ' + 'Instead, add a ref directly to the element you want to reference.' + '\\n%s' + '\\n\\nLearn more about using refs safely here:' + '\\nhttps://fb.me/react-strict-mode-find-node', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));\n }\n }\n }\n return hostFiber.stateNode;\n }\n return findHostInstance(component);\n}\n\nfunction createContainer(containerInfo, isConcurrent, hydrate) {\n return createFiberRoot(containerInfo, isConcurrent, hydrate);\n}\n\nfunction updateContainer(element, container, parentComponent, callback) {\n var current$$1 = container.current;\n var currentTime = requestCurrentTime();\n var expirationTime = computeExpirationForFiber(currentTime, current$$1);\n return updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback);\n}\n\nfunction getPublicRootInstance(container) {\n var containerFiber = container.current;\n if (!containerFiber.child) {\n return null;\n }\n switch (containerFiber.child.tag) {\n case HostComponent:\n return getPublicInstance(containerFiber.child.stateNode);\n default:\n return containerFiber.child.stateNode;\n }\n}\n\nfunction findHostInstanceWithNoPortals(fiber) {\n var hostFiber = findCurrentHostFiberWithNoPortals(fiber);\n if (hostFiber === null) {\n return null;\n }\n return hostFiber.stateNode;\n}\n\nvar overrideProps = null;\n\n{\n var copyWithSetImpl = function (obj, path, idx, value) {\n if (idx >= path.length) {\n return value;\n }\n var key = path[idx];\n var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj);\n // $FlowFixMe number or string is fine here\n updated[key] = copyWithSetImpl(obj[key], path, idx + 1, value);\n return updated;\n };\n\n var copyWithSet = function (obj, path, value) {\n return copyWithSetImpl(obj, path, 0, value);\n };\n\n // Support DevTools props for function components, forwardRef, memo, host components, etc.\n overrideProps = function (fiber, path, value) {\n flushPassiveEffects();\n fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value);\n if (fiber.alternate) {\n fiber.alternate.pendingProps = fiber.pendingProps;\n }\n scheduleWork(fiber, Sync);\n };\n}\n\nfunction injectIntoDevTools(devToolsConfig) {\n var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;\n var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\n\n\n return injectInternals(_assign({}, devToolsConfig, {\n overrideProps: overrideProps,\n currentDispatcherRef: ReactCurrentDispatcher,\n findHostInstanceByFiber: function (fiber) {\n var hostFiber = findCurrentHostFiber(fiber);\n if (hostFiber === null) {\n return null;\n }\n return hostFiber.stateNode;\n },\n findFiberByHostInstance: function (instance) {\n if (!findFiberByHostInstance) {\n // Might not be implemented by the renderer.\n return null;\n }\n return findFiberByHostInstance(instance);\n }\n }));\n}\n\n// This file intentionally does *not* have the Flow annotation.\n// Don't add it. See `./inline-typed.js` for an explanation.\n\nfunction createPortal$1(children, containerInfo,\n// TODO: figure out the API for cross-renderer implementation.\nimplementation) {\n var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;\n\n return {\n // This tag allow us to uniquely identify this as a React Portal\n $$typeof: REACT_PORTAL_TYPE,\n key: key == null ? null : '' + key,\n children: children,\n containerInfo: containerInfo,\n implementation: implementation\n };\n}\n\n// TODO: this is special because it gets imported during build.\n\nvar ReactVersion = '16.8.4';\n\n// TODO: This type is shared between the reconciler and ReactDOM, but will\n// eventually be lifted out to the renderer.\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\n\nvar topLevelUpdateWarnings = void 0;\nvar warnOnInvalidCallback = void 0;\nvar didWarnAboutUnstableCreatePortal = false;\n\n{\n if (typeof Map !== 'function' ||\n // $FlowIssue Flow incorrectly thinks Map has no prototype\n Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' ||\n // $FlowIssue Flow incorrectly thinks Set has no prototype\n Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {\n warningWithoutStack$1(false, 'React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');\n }\n\n topLevelUpdateWarnings = function (container) {\n if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {\n var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);\n if (hostInstance) {\n !(hostInstance.parentNode === container) ? warningWithoutStack$1(false, 'render(...): It looks like the React-rendered content of this ' + 'container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + 'ReactDOM.unmountComponentAtNode to empty a container.') : void 0;\n }\n }\n\n var isRootRenderedBySomeReact = !!container._reactRootContainer;\n var rootEl = getReactRootElementInContainer(container);\n var hasNonRootReactChild = !!(rootEl && getInstanceFromNode$1(rootEl));\n\n !(!hasNonRootReactChild || isRootRenderedBySomeReact) ? warningWithoutStack$1(false, 'render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.') : void 0;\n\n !(container.nodeType !== ELEMENT_NODE || !container.tagName || container.tagName.toUpperCase() !== 'BODY') ? warningWithoutStack$1(false, 'render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.') : void 0;\n };\n\n warnOnInvalidCallback = function (callback, callerName) {\n !(callback === null || typeof callback === 'function') ? warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback) : void 0;\n };\n}\n\nsetRestoreImplementation(restoreControlledState$1);\n\nfunction ReactBatch(root) {\n var expirationTime = computeUniqueAsyncExpiration();\n this._expirationTime = expirationTime;\n this._root = root;\n this._next = null;\n this._callbacks = null;\n this._didComplete = false;\n this._hasChildren = false;\n this._children = null;\n this._defer = true;\n}\nReactBatch.prototype.render = function (children) {\n !this._defer ? invariant(false, 'batch.render: Cannot render a batch that already committed.') : void 0;\n this._hasChildren = true;\n this._children = children;\n var internalRoot = this._root._internalRoot;\n var expirationTime = this._expirationTime;\n var work = new ReactWork();\n updateContainerAtExpirationTime(children, internalRoot, null, expirationTime, work._onCommit);\n return work;\n};\nReactBatch.prototype.then = function (onComplete) {\n if (this._didComplete) {\n onComplete();\n return;\n }\n var callbacks = this._callbacks;\n if (callbacks === null) {\n callbacks = this._callbacks = [];\n }\n callbacks.push(onComplete);\n};\nReactBatch.prototype.commit = function () {\n var internalRoot = this._root._internalRoot;\n var firstBatch = internalRoot.firstBatch;\n !(this._defer && firstBatch !== null) ? invariant(false, 'batch.commit: Cannot commit a batch multiple times.') : void 0;\n\n if (!this._hasChildren) {\n // This batch is empty. Return.\n this._next = null;\n this._defer = false;\n return;\n }\n\n var expirationTime = this._expirationTime;\n\n // Ensure this is the first batch in the list.\n if (firstBatch !== this) {\n // This batch is not the earliest batch. We need to move it to the front.\n // Update its expiration time to be the expiration time of the earliest\n // batch, so that we can flush it without flushing the other batches.\n if (this._hasChildren) {\n expirationTime = this._expirationTime = firstBatch._expirationTime;\n // Rendering this batch again ensures its children will be the final state\n // when we flush (updates are processed in insertion order: last\n // update wins).\n // TODO: This forces a restart. Should we print a warning?\n this.render(this._children);\n }\n\n // Remove the batch from the list.\n var previous = null;\n var batch = firstBatch;\n while (batch !== this) {\n previous = batch;\n batch = batch._next;\n }\n !(previous !== null) ? invariant(false, 'batch.commit: Cannot commit a batch multiple times.') : void 0;\n previous._next = batch._next;\n\n // Add it to the front.\n this._next = firstBatch;\n firstBatch = internalRoot.firstBatch = this;\n }\n\n // Synchronously flush all the work up to this batch's expiration time.\n this._defer = false;\n flushRoot(internalRoot, expirationTime);\n\n // Pop the batch from the list.\n var next = this._next;\n this._next = null;\n firstBatch = internalRoot.firstBatch = next;\n\n // Append the next earliest batch's children to the update queue.\n if (firstBatch !== null && firstBatch._hasChildren) {\n firstBatch.render(firstBatch._children);\n }\n};\nReactBatch.prototype._onComplete = function () {\n if (this._didComplete) {\n return;\n }\n this._didComplete = true;\n var callbacks = this._callbacks;\n if (callbacks === null) {\n return;\n }\n // TODO: Error handling.\n for (var i = 0; i < callbacks.length; i++) {\n var _callback = callbacks[i];\n _callback();\n }\n};\n\nfunction ReactWork() {\n this._callbacks = null;\n this._didCommit = false;\n // TODO: Avoid need to bind by replacing callbacks in the update queue with\n // list of Work objects.\n this._onCommit = this._onCommit.bind(this);\n}\nReactWork.prototype.then = function (onCommit) {\n if (this._didCommit) {\n onCommit();\n return;\n }\n var callbacks = this._callbacks;\n if (callbacks === null) {\n callbacks = this._callbacks = [];\n }\n callbacks.push(onCommit);\n};\nReactWork.prototype._onCommit = function () {\n if (this._didCommit) {\n return;\n }\n this._didCommit = true;\n var callbacks = this._callbacks;\n if (callbacks === null) {\n return;\n }\n // TODO: Error handling.\n for (var i = 0; i < callbacks.length; i++) {\n var _callback2 = callbacks[i];\n !(typeof _callback2 === 'function') ? invariant(false, 'Invalid argument passed as callback. Expected a function. Instead received: %s', _callback2) : void 0;\n _callback2();\n }\n};\n\nfunction ReactRoot(container, isConcurrent, hydrate) {\n var root = createContainer(container, isConcurrent, hydrate);\n this._internalRoot = root;\n}\nReactRoot.prototype.render = function (children, callback) {\n var root = this._internalRoot;\n var work = new ReactWork();\n callback = callback === undefined ? null : callback;\n {\n warnOnInvalidCallback(callback, 'render');\n }\n if (callback !== null) {\n work.then(callback);\n }\n updateContainer(children, root, null, work._onCommit);\n return work;\n};\nReactRoot.prototype.unmount = function (callback) {\n var root = this._internalRoot;\n var work = new ReactWork();\n callback = callback === undefined ? null : callback;\n {\n warnOnInvalidCallback(callback, 'render');\n }\n if (callback !== null) {\n work.then(callback);\n }\n updateContainer(null, root, null, work._onCommit);\n return work;\n};\nReactRoot.prototype.legacy_renderSubtreeIntoContainer = function (parentComponent, children, callback) {\n var root = this._internalRoot;\n var work = new ReactWork();\n callback = callback === undefined ? null : callback;\n {\n warnOnInvalidCallback(callback, 'render');\n }\n if (callback !== null) {\n work.then(callback);\n }\n updateContainer(children, root, parentComponent, work._onCommit);\n return work;\n};\nReactRoot.prototype.createBatch = function () {\n var batch = new ReactBatch(this);\n var expirationTime = batch._expirationTime;\n\n var internalRoot = this._internalRoot;\n var firstBatch = internalRoot.firstBatch;\n if (firstBatch === null) {\n internalRoot.firstBatch = batch;\n batch._next = null;\n } else {\n // Insert sorted by expiration time then insertion order\n var insertAfter = null;\n var insertBefore = firstBatch;\n while (insertBefore !== null && insertBefore._expirationTime >= expirationTime) {\n insertAfter = insertBefore;\n insertBefore = insertBefore._next;\n }\n batch._next = insertBefore;\n if (insertAfter !== null) {\n insertAfter._next = batch;\n }\n }\n\n return batch;\n};\n\n/**\n * True if the supplied DOM node is a valid node element.\n *\n * @param {?DOMElement} node The candidate DOM node.\n * @return {boolean} True if the DOM is a valid DOM node.\n * @internal\n */\nfunction isValidContainer(node) {\n return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || node.nodeType === COMMENT_NODE && node.nodeValue === ' react-mount-point-unstable '));\n}\n\nfunction getReactRootElementInContainer(container) {\n if (!container) {\n return null;\n }\n\n if (container.nodeType === DOCUMENT_NODE) {\n return container.documentElement;\n } else {\n return container.firstChild;\n }\n}\n\nfunction shouldHydrateDueToLegacyHeuristic(container) {\n var rootElement = getReactRootElementInContainer(container);\n return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));\n}\n\nsetBatchingImplementation(batchedUpdates$1, interactiveUpdates$1, flushInteractiveUpdates$1);\n\nvar warnedAboutHydrateAPI = false;\n\nfunction legacyCreateRootFromDOMContainer(container, forceHydrate) {\n var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container);\n // First clear any existing content.\n if (!shouldHydrate) {\n var warned = false;\n var rootSibling = void 0;\n while (rootSibling = container.lastChild) {\n {\n if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {\n warned = true;\n warningWithoutStack$1(false, 'render(): Target node has markup rendered by React, but there ' + 'are unrelated nodes as well. This is most commonly caused by ' + 'white-space inserted around server-rendered markup.');\n }\n }\n container.removeChild(rootSibling);\n }\n }\n {\n if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) {\n warnedAboutHydrateAPI = true;\n lowPriorityWarning$1(false, 'render(): Calling ReactDOM.render() to hydrate server-rendered markup ' + 'will stop working in React v17. Replace the ReactDOM.render() call ' + 'with ReactDOM.hydrate() if you want React to attach to the server HTML.');\n }\n }\n // Legacy roots are not async by default.\n var isConcurrent = false;\n return new ReactRoot(container, isConcurrent, shouldHydrate);\n}\n\nfunction legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {\n {\n topLevelUpdateWarnings(container);\n }\n\n // TODO: Without `any` type, Flow says \"Property cannot be accessed on any\n // member of intersection type.\" Whyyyyyy.\n var root = container._reactRootContainer;\n if (!root) {\n // Initial mount\n root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);\n if (typeof callback === 'function') {\n var originalCallback = callback;\n callback = function () {\n var instance = getPublicRootInstance(root._internalRoot);\n originalCallback.call(instance);\n };\n }\n // Initial mount should not be batched.\n unbatchedUpdates(function () {\n if (parentComponent != null) {\n root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback);\n } else {\n root.render(children, callback);\n }\n });\n } else {\n if (typeof callback === 'function') {\n var _originalCallback = callback;\n callback = function () {\n var instance = getPublicRootInstance(root._internalRoot);\n _originalCallback.call(instance);\n };\n }\n // Update\n if (parentComponent != null) {\n root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback);\n } else {\n root.render(children, callback);\n }\n }\n return getPublicRootInstance(root._internalRoot);\n}\n\nfunction createPortal$$1(children, container) {\n var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n\n !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0;\n // TODO: pass ReactDOM portal implementation as third argument\n return createPortal$1(children, container, null, key);\n}\n\nvar ReactDOM = {\n createPortal: createPortal$$1,\n\n findDOMNode: function (componentOrElement) {\n {\n var owner = ReactCurrentOwner.current;\n if (owner !== null && owner.stateNode !== null) {\n var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;\n !warnedAboutRefsInRender ? warningWithoutStack$1(false, '%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(owner.type) || 'A component') : void 0;\n owner.stateNode._warnedAboutRefsInRender = true;\n }\n }\n if (componentOrElement == null) {\n return null;\n }\n if (componentOrElement.nodeType === ELEMENT_NODE) {\n return componentOrElement;\n }\n {\n return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');\n }\n return findHostInstance(componentOrElement);\n },\n hydrate: function (element, container, callback) {\n !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0;\n {\n !!container._reactHasBeenPassedToCreateRootDEV ? warningWithoutStack$1(false, 'You are calling ReactDOM.hydrate() on a container that was previously ' + 'passed to ReactDOM.%s(). This is not supported. ' + 'Did you mean to call createRoot(container, {hydrate: true}).render(element)?', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;\n }\n // TODO: throw or warn if we couldn't hydrate?\n return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);\n },\n render: function (element, container, callback) {\n !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0;\n {\n !!container._reactHasBeenPassedToCreateRootDEV ? warningWithoutStack$1(false, 'You are calling ReactDOM.render() on a container that was previously ' + 'passed to ReactDOM.%s(). This is not supported. ' + 'Did you mean to call root.render(element)?', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;\n }\n return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);\n },\n unstable_renderSubtreeIntoContainer: function (parentComponent, element, containerNode, callback) {\n !isValidContainer(containerNode) ? invariant(false, 'Target container is not a DOM element.') : void 0;\n !(parentComponent != null && has(parentComponent)) ? invariant(false, 'parentComponent must be a valid React Component') : void 0;\n return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);\n },\n unmountComponentAtNode: function (container) {\n !isValidContainer(container) ? invariant(false, 'unmountComponentAtNode(...): Target container is not a DOM element.') : void 0;\n\n {\n !!container._reactHasBeenPassedToCreateRootDEV ? warningWithoutStack$1(false, 'You are calling ReactDOM.unmountComponentAtNode() on a container that was previously ' + 'passed to ReactDOM.%s(). This is not supported. Did you mean to call root.unmount()?', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;\n }\n\n if (container._reactRootContainer) {\n {\n var rootEl = getReactRootElementInContainer(container);\n var renderedByDifferentReact = rootEl && !getInstanceFromNode$1(rootEl);\n !!renderedByDifferentReact ? warningWithoutStack$1(false, \"unmountComponentAtNode(): The node you're attempting to unmount \" + 'was rendered by another copy of React.') : void 0;\n }\n\n // Unmount should not be batched.\n unbatchedUpdates(function () {\n legacyRenderSubtreeIntoContainer(null, null, container, false, function () {\n container._reactRootContainer = null;\n });\n });\n // If you call unmountComponentAtNode twice in quick succession, you'll\n // get `true` twice. That's probably fine?\n return true;\n } else {\n {\n var _rootEl = getReactRootElementInContainer(container);\n var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode$1(_rootEl));\n\n // Check if the container itself is a React root node.\n var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;\n\n !!hasNonRootReactChild ? warningWithoutStack$1(false, \"unmountComponentAtNode(): The node you're attempting to unmount \" + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.') : void 0;\n }\n\n return false;\n }\n },\n\n\n // Temporary alias since we already shipped React 16 RC with it.\n // TODO: remove in React 17.\n unstable_createPortal: function () {\n if (!didWarnAboutUnstableCreatePortal) {\n didWarnAboutUnstableCreatePortal = true;\n lowPriorityWarning$1(false, 'The ReactDOM.unstable_createPortal() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactDOM.createPortal() instead. It has the exact same API, ' + 'but without the \"unstable_\" prefix.');\n }\n return createPortal$$1.apply(undefined, arguments);\n },\n\n\n unstable_batchedUpdates: batchedUpdates$1,\n\n unstable_interactiveUpdates: interactiveUpdates$1,\n\n flushSync: flushSync,\n\n unstable_createRoot: createRoot,\n unstable_flushControlled: flushControlled,\n\n __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {\n // Keep in sync with ReactDOMUnstableNativeDependencies.js\n // and ReactTestUtils.js. This is an array for better minification.\n Events: [getInstanceFromNode$1, getNodeFromInstance$1, getFiberCurrentPropsFromNode$1, injection.injectEventPluginsByName, eventNameDispatchConfigs, accumulateTwoPhaseDispatches, accumulateDirectDispatches, enqueueStateRestore, restoreStateIfNeeded, dispatchEvent, runEventsInBatch]\n }\n};\n\nfunction createRoot(container, options) {\n var functionName = enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot';\n !isValidContainer(container) ? invariant(false, '%s(...): Target container is not a DOM element.', functionName) : void 0;\n {\n !!container._reactRootContainer ? warningWithoutStack$1(false, 'You are calling ReactDOM.%s() on a container that was previously ' + 'passed to ReactDOM.render(). This is not supported.', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;\n container._reactHasBeenPassedToCreateRootDEV = true;\n }\n var hydrate = options != null && options.hydrate === true;\n return new ReactRoot(container, true, hydrate);\n}\n\nif (enableStableConcurrentModeAPIs) {\n ReactDOM.createRoot = createRoot;\n ReactDOM.unstable_createRoot = undefined;\n}\n\nvar foundDevTools = injectIntoDevTools({\n findFiberByHostInstance: getClosestInstanceFromNode,\n bundleType: 1,\n version: ReactVersion,\n rendererPackageName: 'react-dom'\n});\n\n{\n if (!foundDevTools && canUseDOM && window.top === window.self) {\n // If we're in Chrome or Firefox, provide a download link if not installed.\n if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {\n var protocol = window.location.protocol;\n // Don't warn in exotic cases like chrome-extension://.\n if (/^(https?|file):$/.test(protocol)) {\n console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://fb.me/react-devtools' + (protocol === 'file:' ? '\\nYou might need to use a local HTTP server (instead of file://): ' + 'https://fb.me/react-devtools-faq' : ''), 'font-weight:bold');\n }\n }\n }\n}\n\n\n\nvar ReactDOM$2 = Object.freeze({\n\tdefault: ReactDOM\n});\n\nvar ReactDOM$3 = ( ReactDOM$2 && ReactDOM ) || ReactDOM$2;\n\n// TODO: decide on the top-level export form.\n// This is hacky but makes it work with both Rollup and Jest.\nvar reactDom = ReactDOM$3.default || ReactDOM$3;\n\nmodule.exports = reactDom;\n })();\n}\n","'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.profiling.min.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}\n","'use strict';\n\nvar isArray = Array.isArray;\nvar keyList = Object.keys;\nvar hasProp = Object.prototype.hasOwnProperty;\n\nfunction equal(a, b) {\n // fast-deep-equal index.js 2.0.1\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n var arrA = isArray(a)\n , arrB = isArray(b)\n , i\n , length\n , key;\n\n if (arrA && arrB) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n if (arrA != arrB) return false;\n\n var dateA = a instanceof Date\n , dateB = b instanceof Date;\n if (dateA != dateB) return false;\n if (dateA && dateB) return a.getTime() == b.getTime();\n\n var regexpA = a instanceof RegExp\n , regexpB = b instanceof RegExp;\n if (regexpA != regexpB) return false;\n if (regexpA && regexpB) return a.toString() == b.toString();\n\n var keys = keyList(a);\n length = keys.length;\n\n if (length !== keyList(b).length)\n return false;\n\n for (i = length; i-- !== 0;)\n if (!hasProp.call(b, keys[i])) return false;\n // end fast-deep-equal\n\n // Custom handling for React\n for (i = length; i-- !== 0;) {\n key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n // React-specific: avoid traversing React elements' _owner.\n // _owner contains circular references\n // and is not needed when comparing the actual elements (and not their owners)\n // .$$typeof and ._store on just reasonable markers of a react element\n continue;\n } else {\n // all other properties should be traversed as usual\n if (!equal(a[key], b[key])) return false;\n }\n }\n\n // fast-deep-equal index.js 2.0.1\n return true;\n }\n\n return a!==a && b!==b;\n}\n// end fast-deep-equal\n\nmodule.exports = function exportedEqual(a, b) {\n try {\n return equal(a, b);\n } catch (error) {\n if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260))\n {\n // warn on circular references, don't crash\n // browsers give this different errors name and messages:\n // chrome/safari: \"RangeError\", \"Maximum call stack size exceeded\"\n // firefox: \"InternalError\", too much recursion\"\n // edge: \"Error\", \"Out of stack space\"\n console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);\n return false;\n }\n // some other error. we should definitely know about these\n throw error;\n }\n};\n","function _typeof(obj) { \"@babel/helpers - typeof\"; return _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; }, _typeof(obj); }\n\nvar _excluded = [\"to\", \"target\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport warn from '../utils/console/warn';\nvar NEWTAB = '_blank';\nvar MIDDLECLICK = 1;\n\nvar OutboundLink = /*#__PURE__*/function (_Component) {\n _inherits(OutboundLink, _Component);\n\n var _super = _createSuper(OutboundLink);\n\n function OutboundLink() {\n var _this;\n\n _classCallCheck(this, OutboundLink);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"handleClick\", function (event) {\n var _this$props = _this.props,\n target = _this$props.target,\n eventLabel = _this$props.eventLabel,\n to = _this$props.to,\n onClick = _this$props.onClick,\n trackerNames = _this$props.trackerNames;\n var eventMeta = {\n label: eventLabel\n };\n var sameTarget = target !== NEWTAB;\n var normalClick = !(event.ctrlKey || event.shiftKey || event.metaKey || event.button === MIDDLECLICK);\n\n if (sameTarget && normalClick) {\n event.preventDefault();\n OutboundLink.trackLink(eventMeta, function () {\n window.location.href = to;\n }, trackerNames);\n } else {\n OutboundLink.trackLink(eventMeta, function () {}, trackerNames);\n }\n\n if (onClick) {\n onClick(event);\n }\n });\n\n return _this;\n }\n\n _createClass(OutboundLink, [{\n key: \"render\",\n value: function render() {\n var _this$props2 = this.props,\n href = _this$props2.to,\n target = _this$props2.target,\n oldProps = _objectWithoutProperties(_this$props2, _excluded);\n\n var props = _objectSpread(_objectSpread({}, oldProps), {}, {\n target: target,\n href: href,\n onClick: this.handleClick\n });\n\n if (target === NEWTAB) {\n props.rel = \"\".concat(props.rel ? props.rel : '', \" noopener noreferrer\").trim();\n }\n\n delete props.eventLabel;\n delete props.trackerNames;\n return /*#__PURE__*/React.createElement('a', props);\n }\n }]);\n\n return OutboundLink;\n}(Component);\n\n_defineProperty(OutboundLink, \"trackLink\", function () {\n warn('ga tracking not enabled');\n});\n\nexport { OutboundLink as default };\nOutboundLink.propTypes = {\n eventLabel: PropTypes.string.isRequired,\n target: PropTypes.string,\n to: PropTypes.string,\n onClick: PropTypes.func,\n trackerNames: PropTypes.arrayOf(PropTypes.string)\n};\nOutboundLink.defaultProps = {\n target: null,\n to: null,\n onClick: null,\n trackerNames: null\n};","var _excluded = [\"category\", \"action\", \"label\", \"value\", \"nonInteraction\", \"transport\"];\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _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; }, _typeof(obj); }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n/**\n * React Google Analytics Module\n *\n * @package react-ga\n * @author Adam Lofting <adam@mozillafoundation.org>\n * Atul Varma <atul@mozillafoundation.org>\n */\n\n/**\n * Utilities\n */\nimport format from './utils/format';\nimport removeLeadingSlash from './utils/removeLeadingSlash';\nimport trim from './utils/trim';\nimport loadGA from './utils/loadGA';\nimport warn from './utils/console/warn';\nimport log from './utils/console/log';\nimport TestModeAPI from './utils/testModeAPI';\n\nvar _isNotBrowser = typeof window === 'undefined' || typeof document === 'undefined';\n\nvar _debug = false;\nvar _titleCase = true;\nvar _testMode = false;\nvar _alwaysSendToDefaultTracker = true;\nvar _redactEmail = true;\n\nvar internalGa = function internalGa() {\n var _window;\n\n if (_testMode) return TestModeAPI.ga.apply(TestModeAPI, arguments);\n if (_isNotBrowser) return false;\n if (!window.ga) return warn('ReactGA.initialize must be called first or GoogleAnalytics should be loaded manually');\n return (_window = window).ga.apply(_window, arguments);\n};\n\nfunction _format(s) {\n return format(s, _titleCase, _redactEmail);\n}\n\nfunction _gaCommand(trackerNames) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var command = args[0];\n\n if (typeof internalGa === 'function') {\n if (typeof command !== 'string') {\n warn('ga command must be a string');\n return;\n }\n\n if (_alwaysSendToDefaultTracker || !Array.isArray(trackerNames)) internalGa.apply(void 0, args);\n\n if (Array.isArray(trackerNames)) {\n trackerNames.forEach(function (name) {\n internalGa.apply(void 0, _toConsumableArray([\"\".concat(name, \".\").concat(command)].concat(args.slice(1))));\n });\n }\n }\n}\n\nfunction _initialize(gaTrackingID, options) {\n if (!gaTrackingID) {\n warn('gaTrackingID is required in initialize()');\n return;\n }\n\n if (options) {\n if (options.debug && options.debug === true) {\n _debug = true;\n }\n\n if (options.titleCase === false) {\n _titleCase = false;\n }\n\n if (options.redactEmail === false) {\n _redactEmail = false;\n }\n\n if (options.useExistingGa) {\n return;\n }\n }\n\n if (options && options.gaOptions) {\n internalGa('create', gaTrackingID, options.gaOptions);\n } else {\n internalGa('create', gaTrackingID, 'auto');\n }\n}\n\nexport function addTrackers(configsOrTrackingId, options) {\n if (Array.isArray(configsOrTrackingId)) {\n configsOrTrackingId.forEach(function (config) {\n if (_typeof(config) !== 'object') {\n warn('All configs must be an object');\n return;\n }\n\n _initialize(config.trackingId, config);\n });\n } else {\n _initialize(configsOrTrackingId, options);\n }\n\n return true;\n}\nexport function initialize(configsOrTrackingId, options) {\n if (options && options.testMode === true) {\n _testMode = true;\n } else {\n if (_isNotBrowser) {\n return;\n }\n\n if (!options || options.standardImplementation !== true) loadGA(options);\n }\n\n _alwaysSendToDefaultTracker = options && typeof options.alwaysSendToDefaultTracker === 'boolean' ? options.alwaysSendToDefaultTracker : true;\n addTrackers(configsOrTrackingId, options);\n}\n/**\n * ga:\n * Returns the original GA object.\n */\n\nexport function ga() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n if (args.length > 0) {\n internalGa.apply(void 0, args);\n\n if (_debug) {\n log(\"called ga('arguments');\");\n log(\"with arguments: \".concat(JSON.stringify(args)));\n }\n }\n\n return window.ga;\n}\n/**\n * set:\n * GA tracker set method\n * @param {Object} fieldsObject - a field/value pair or a group of field/value pairs on the tracker\n * @param {Array} trackerNames - (optional) a list of extra trackers to run the command on\n */\n\nexport function set(fieldsObject, trackerNames) {\n if (!fieldsObject) {\n warn('`fieldsObject` is required in .set()');\n return;\n }\n\n if (_typeof(fieldsObject) !== 'object') {\n warn('Expected `fieldsObject` arg to be an Object');\n return;\n }\n\n if (Object.keys(fieldsObject).length === 0) {\n warn('empty `fieldsObject` given to .set()');\n }\n\n _gaCommand(trackerNames, 'set', fieldsObject);\n\n if (_debug) {\n log(\"called ga('set', fieldsObject);\");\n log(\"with fieldsObject: \".concat(JSON.stringify(fieldsObject)));\n }\n}\n/**\n * send:\n * Clone of the low level `ga.send` method\n * WARNING: No validations will be applied to this\n * @param {Object} fieldObject - field object for tracking different analytics\n * @param {Array} trackerNames - trackers to send the command to\n * @param {Array} trackerNames - (optional) a list of extra trackers to run the command on\n */\n\nexport function send(fieldObject, trackerNames) {\n _gaCommand(trackerNames, 'send', fieldObject);\n\n if (_debug) {\n log(\"called ga('send', fieldObject);\");\n log(\"with fieldObject: \".concat(JSON.stringify(fieldObject)));\n log(\"with trackers: \".concat(JSON.stringify(trackerNames)));\n }\n}\n/**\n * pageview:\n * Basic GA pageview tracking\n * @param {String} path - the current page page e.g. '/about'\n * @param {Array} trackerNames - (optional) a list of extra trackers to run the command on\n * @param {String} title - (optional) the page title e. g. 'My Website'\n */\n\nexport function pageview(rawPath, trackerNames, title) {\n if (!rawPath) {\n warn('path is required in .pageview()');\n return;\n }\n\n var path = trim(rawPath);\n\n if (path === '') {\n warn('path cannot be an empty string in .pageview()');\n return;\n }\n\n var extraFields = {};\n\n if (title) {\n extraFields.title = title;\n }\n\n if (typeof ga === 'function') {\n _gaCommand(trackerNames, 'send', _objectSpread({\n hitType: 'pageview',\n page: path\n }, extraFields));\n\n if (_debug) {\n log(\"called ga('send', 'pageview', path);\");\n var extraLog = '';\n\n if (title) {\n extraLog = \" and title: \".concat(title);\n }\n\n log(\"with path: \".concat(path).concat(extraLog));\n }\n }\n}\n/**\n * modalview:\n * a proxy to basic GA pageview tracking to consistently track\n * modal views that are an equivalent UX to a traditional pageview\n * @param {String} modalName e.g. 'add-or-edit-club'\n * @param {Array} trackerNames - (optional) a list of extra trackers to run the command on\n */\n\nexport function modalview(rawModalName, trackerNames) {\n if (!rawModalName) {\n warn('modalName is required in .modalview(modalName)');\n return;\n }\n\n var modalName = removeLeadingSlash(trim(rawModalName));\n\n if (modalName === '') {\n warn('modalName cannot be an empty string or a single / in .modalview()');\n return;\n }\n\n if (typeof ga === 'function') {\n var path = \"/modal/\".concat(modalName);\n\n _gaCommand(trackerNames, 'send', 'pageview', path);\n\n if (_debug) {\n log(\"called ga('send', 'pageview', path);\");\n log(\"with path: \".concat(path));\n }\n }\n}\n/**\n * timing:\n * GA timing\n * @param args.category {String} required\n * @param args.variable {String} required\n * @param args.value {Int} required\n * @param args.label {String} required\n * @param {Array} trackerNames - (optional) a list of extra trackers to run the command on\n */\n\nexport function timing() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n category = _ref.category,\n variable = _ref.variable,\n value = _ref.value,\n label = _ref.label;\n\n var trackerNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n if (typeof ga === 'function') {\n if (!category || !variable || typeof value !== 'number') {\n warn('args.category, args.variable ' + 'AND args.value are required in timing() ' + 'AND args.value has to be a number');\n return;\n } // Required Fields\n\n\n var fieldObject = {\n hitType: 'timing',\n timingCategory: _format(category),\n timingVar: _format(variable),\n timingValue: value\n };\n\n if (label) {\n fieldObject.timingLabel = _format(label);\n }\n\n send(fieldObject, trackerNames);\n }\n}\n/**\n * event:\n * GA event tracking\n * @param args.category {String} required\n * @param args.action {String} required\n * @param args.label {String} optional\n * @param args.value {Int} optional\n * @param args.nonInteraction {boolean} optional\n * @param args.transport {string} optional\n * @param {{action: string, category: string}} trackerNames - (optional) a list of extra trackers to run the command on\n */\n\nexport function event() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n category = _ref2.category,\n action = _ref2.action,\n label = _ref2.label,\n value = _ref2.value,\n nonInteraction = _ref2.nonInteraction,\n transport = _ref2.transport,\n args = _objectWithoutProperties(_ref2, _excluded);\n\n var trackerNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n if (typeof ga === 'function') {\n // Simple Validation\n if (!category || !action) {\n warn('args.category AND args.action are required in event()');\n return;\n } // Required Fields\n\n\n var fieldObject = {\n hitType: 'event',\n eventCategory: _format(category),\n eventAction: _format(action)\n }; // Optional Fields\n\n if (label) {\n fieldObject.eventLabel = _format(label);\n }\n\n if (typeof value !== 'undefined') {\n if (typeof value !== 'number') {\n warn('Expected `args.value` arg to be a Number.');\n } else {\n fieldObject.eventValue = value;\n }\n }\n\n if (typeof nonInteraction !== 'undefined') {\n if (typeof nonInteraction !== 'boolean') {\n warn('`args.nonInteraction` must be a boolean.');\n } else {\n fieldObject.nonInteraction = nonInteraction;\n }\n }\n\n if (typeof transport !== 'undefined') {\n if (typeof transport !== 'string') {\n warn('`args.transport` must be a string.');\n } else {\n if (['beacon', 'xhr', 'image'].indexOf(transport) === -1) {\n warn('`args.transport` must be either one of these values: `beacon`, `xhr` or `image`');\n }\n\n fieldObject.transport = transport;\n }\n }\n\n Object.keys(args).filter(function (key) {\n return key.substr(0, 'dimension'.length) === 'dimension';\n }).forEach(function (key) {\n fieldObject[key] = args[key];\n });\n Object.keys(args).filter(function (key) {\n return key.substr(0, 'metric'.length) === 'metric';\n }).forEach(function (key) {\n fieldObject[key] = args[key];\n }); // Send to GA\n\n send(fieldObject, trackerNames);\n }\n}\n/**\n * exception:\n * GA exception tracking\n * @param args.description {String} optional\n * @param args.fatal {boolean} optional\n * @param {Array} trackerNames - (optional) a list of extra trackers to run the command on\n */\n\nexport function exception(_ref3, trackerNames) {\n var description = _ref3.description,\n fatal = _ref3.fatal;\n\n if (typeof ga === 'function') {\n // Required Fields\n var fieldObject = {\n hitType: 'exception'\n }; // Optional Fields\n\n if (description) {\n fieldObject.exDescription = _format(description);\n }\n\n if (typeof fatal !== 'undefined') {\n if (typeof fatal !== 'boolean') {\n warn('`args.fatal` must be a boolean.');\n } else {\n fieldObject.exFatal = fatal;\n }\n } // Send to GA\n\n\n send(fieldObject, trackerNames);\n }\n}\nexport var plugin = {\n /**\n * require:\n * GA requires a plugin\n * @param name {String} e.g. 'ecommerce' or 'myplugin'\n * @param options {Object} optional e.g {path: '/log', debug: true}\n * @param trackerName {String} optional e.g 'trackerName'\n */\n require: function require(rawName, options, trackerName) {\n if (typeof ga === 'function') {\n // Required Fields\n if (!rawName) {\n warn('`name` is required in .require()');\n return;\n }\n\n var name = trim(rawName);\n\n if (name === '') {\n warn('`name` cannot be an empty string in .require()');\n return;\n }\n\n var requireString = trackerName ? \"\".concat(trackerName, \".require\") : 'require'; // Optional Fields\n\n if (options) {\n if (_typeof(options) !== 'object') {\n warn('Expected `options` arg to be an Object');\n return;\n }\n\n if (Object.keys(options).length === 0) {\n warn('Empty `options` given to .require()');\n }\n\n ga(requireString, name, options);\n\n if (_debug) {\n log(\"called ga('require', '\".concat(name, \"', \").concat(JSON.stringify(options)));\n }\n } else {\n ga(requireString, name);\n\n if (_debug) {\n log(\"called ga('require', '\".concat(name, \"');\"));\n }\n }\n }\n },\n\n /**\n * execute:\n * GA execute action for plugin\n * Takes variable number of arguments\n * @param pluginName {String} e.g. 'ecommerce' or 'myplugin'\n * @param action {String} e.g. 'addItem' or 'myCustomAction'\n * @param actionType {String} optional e.g. 'detail'\n * @param payload {Object} optional e.g { id: '1x5e', name : 'My product to track' }\n */\n execute: function execute(pluginName, action) {\n var payload;\n var actionType;\n\n for (var _len3 = arguments.length, args = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) {\n args[_key3 - 2] = arguments[_key3];\n }\n\n if (args.length === 1) {\n payload = args[0];\n } else {\n actionType = args[0];\n payload = args[1];\n }\n\n if (typeof ga === 'function') {\n if (typeof pluginName !== 'string') {\n warn('Expected `pluginName` arg to be a String.');\n } else if (typeof action !== 'string') {\n warn('Expected `action` arg to be a String.');\n } else {\n var command = \"\".concat(pluginName, \":\").concat(action);\n payload = payload || null;\n\n if (actionType && payload) {\n ga(command, actionType, payload);\n\n if (_debug) {\n log(\"called ga('\".concat(command, \"');\"));\n log(\"actionType: \\\"\".concat(actionType, \"\\\" with payload: \").concat(JSON.stringify(payload)));\n }\n } else if (payload) {\n ga(command, payload);\n\n if (_debug) {\n log(\"called ga('\".concat(command, \"');\"));\n log(\"with payload: \".concat(JSON.stringify(payload)));\n }\n } else {\n ga(command);\n\n if (_debug) {\n log(\"called ga('\".concat(command, \"');\"));\n }\n }\n }\n }\n }\n};\n/**\n * outboundLink:\n * GA outboundLink tracking\n * @param args.label {String} e.g. url, or 'Create an Account'\n * @param {function} hitCallback - Called after processing a hit.\n */\n\nexport function outboundLink(args, hitCallback, trackerNames) {\n if (typeof hitCallback !== 'function') {\n warn('hitCallback function is required');\n return;\n }\n\n if (typeof ga === 'function') {\n // Simple Validation\n if (!args || !args.label) {\n warn('args.label is required in outboundLink()');\n return;\n } // Required Fields\n\n\n var fieldObject = {\n hitType: 'event',\n eventCategory: 'Outbound',\n eventAction: 'Click',\n eventLabel: _format(args.label)\n };\n var safetyCallbackCalled = false;\n\n var safetyCallback = function safetyCallback() {\n // This prevents a delayed response from GA\n // causing hitCallback from being fired twice\n safetyCallbackCalled = true;\n hitCallback();\n }; // Using a timeout to ensure the execution of critical application code\n // in the case when the GA server might be down\n // or an ad blocker prevents sending the data\n // register safety net timeout:\n\n\n var t = setTimeout(safetyCallback, 250);\n\n var clearableCallbackForGA = function clearableCallbackForGA() {\n clearTimeout(t);\n\n if (!safetyCallbackCalled) {\n hitCallback();\n }\n };\n\n fieldObject.hitCallback = clearableCallbackForGA; // Send to GA\n\n send(fieldObject, trackerNames);\n } else {\n // if ga is not defined, return the callback so the application\n // continues to work as expected\n setTimeout(hitCallback, 0);\n }\n}\nexport var testModeAPI = TestModeAPI;\nexport default {\n initialize: initialize,\n ga: ga,\n set: set,\n send: send,\n pageview: pageview,\n modalview: modalview,\n timing: timing,\n event: event,\n exception: exception,\n plugin: plugin,\n outboundLink: outboundLink,\n testModeAPI: TestModeAPI\n};","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport UnboundOutboundLink from './components/OutboundLink';\nimport * as Defaults from './core';\nvar initialize = Defaults.initialize;\nexport { initialize };\nvar addTrackers = Defaults.addTrackers;\nexport { addTrackers };\nvar ga = Defaults.ga;\nexport { ga };\nvar set = Defaults.set;\nexport { set };\nvar send = Defaults.send;\nexport { send };\nvar pageview = Defaults.pageview;\nexport { pageview };\nvar modalview = Defaults.modalview;\nexport { modalview };\nvar timing = Defaults.timing;\nexport { timing };\nvar event = Defaults.event;\nexport { event };\nvar exception = Defaults.exception;\nexport { exception };\nvar plugin = Defaults.plugin;\nexport { plugin };\nvar outboundLink = Defaults.outboundLink;\nexport { outboundLink };\nvar testModeAPI = Defaults.testModeAPI;\nexport { testModeAPI };\nUnboundOutboundLink.origTrackLink = UnboundOutboundLink.trackLink;\nUnboundOutboundLink.trackLink = Defaults.outboundLink;\nexport var OutboundLink = UnboundOutboundLink;\nexport default _objectSpread(_objectSpread({}, Defaults), {}, {\n OutboundLink: OutboundLink\n});","export default function log(s) {\n console.info('[react-ga]', s);\n}","export default function warn(s) {\n console.warn('[react-ga]', s);\n}","import redactEmail from './redactEmail';\nimport toTitleCase from './toTitleCase';\nexport default function format() {\n var s = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var titleCase = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var redactingEmail = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n\n var _str = s || '';\n\n if (titleCase) {\n _str = toTitleCase(s);\n }\n\n if (redactingEmail) {\n _str = redactEmail(_str);\n }\n\n return _str;\n}","var isLoaded = false;\nexport default function (options) {\n if (isLoaded) return;\n isLoaded = true;\n var gaAddress = 'https://www.google-analytics.com/analytics.js';\n\n if (options && options.gaAddress) {\n gaAddress = options.gaAddress;\n } else if (options && options.debug) {\n gaAddress = 'https://www.google-analytics.com/analytics_debug.js';\n }\n\n var onerror = options && options.onerror; // https://developers.google.com/analytics/devguides/collection/analyticsjs/\n\n /* eslint-disable */\n\n (function (i, s, o, g, r, a, m) {\n i['GoogleAnalyticsObject'] = r;\n i[r] = i[r] || function () {\n (i[r].q = i[r].q || []).push(arguments);\n }, i[r].l = 1 * new Date();\n a = s.createElement(o), m = s.getElementsByTagName(o)[0];\n a.async = 1;\n a.src = g;\n a.onerror = onerror;\n m.parentNode.insertBefore(a, m);\n })(window, document, 'script', gaAddress, 'ga');\n /* eslint-enable */\n\n}","// See if s could be an email address. We don't want to send personal data like email.\n// https://support.google.com/analytics/answer/2795983?hl=en\nexport default function mightBeEmail(s) {\n // There's no point trying to validate rfc822 fully, just look for ...@...\n return typeof s === 'string' && s.indexOf('@') !== -1;\n}","import warn from './console/warn';\nimport mightBeEmail from './mightBeEmail';\nvar redacted = 'REDACTED (Potential Email Address)';\nexport default function redactEmail(string) {\n if (mightBeEmail(string)) {\n warn('This arg looks like an email address, redacting.');\n return redacted;\n }\n\n return string;\n}","export default function removeLeadingSlash(string) {\n if (string.substring(0, 1) === '/') {\n return string.substring(1);\n }\n\n return string;\n}","export var gaCalls = [];\nexport default {\n calls: gaCalls,\n ga: function ga() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n gaCalls.push([].concat(args));\n },\n resetCalls: function resetCalls() {\n gaCalls.length = 0;\n }\n};","/**\n * To Title Case 2.1 - http://individed.com/code/to-title-case/\n * Copyright 2008-2013 David Gouch. Licensed under the MIT License.\n * https://github.com/gouch/to-title-case\n */\nimport trim from './trim';\nvar smallWords = /^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\\.?|via)$/i; // test\n\nexport default function toTitleCase(string) {\n return trim(string).replace(/[A-Za-z0-9\\u00C0-\\u00FF]+[^\\s-]*/g, function (match, index, title) {\n if (index > 0 && index + match.length !== title.length && match.search(smallWords) > -1 && title.charAt(index - 2) !== ':' && (title.charAt(index + match.length) !== '-' || title.charAt(index - 1) === '-') && title.charAt(index - 1).search(/[^\\s-]/) < 0) {\n return match.toLowerCase();\n }\n\n if (match.substr(1).search(/[A-Z]|\\../) > -1) {\n return match;\n }\n\n return match.charAt(0).toUpperCase() + match.substr(1);\n });\n}","// GA strings need to have leading/trailing whitespace trimmed, and not all\n// browsers have String.prototoype.trim().\nexport default function trim(s) {\n return s && s.toString().replace(/^\\s+|\\s+$/g, '');\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = format;\nvar smallWords = /^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\\.?|via)$/i;\n\nfunction toTitleCase(string) {\n return string.toString().trim().replace(/[A-Za-z0-9\\u00C0-\\u00FF]+[^\\s-]*/g, function (match, index, title) {\n if (index > 0 && index + match.length !== title.length && match.search(smallWords) > -1 && title.charAt(index - 2) !== \":\" && (title.charAt(index + match.length) !== \"-\" || title.charAt(index - 1) === \"-\") && title.charAt(index - 1).search(/[^\\s-]/) < 0) {\n return match.toLowerCase();\n }\n\n if (match.substr(1).search(/[A-Z]|\\../) > -1) {\n return match;\n }\n\n return match.charAt(0).toUpperCase() + match.substr(1);\n });\n} // See if s could be an email address. We don't want to send personal data like email.\n// https://support.google.com/analytics/answer/2795983?hl=en\n\n\nfunction mightBeEmail(s) {\n // There's no point trying to validate rfc822 fully, just look for ...@...\n return typeof s === \"string\" && s.indexOf(\"@\") !== -1;\n}\n\nvar redacted = \"REDACTED (Potential Email Address)\";\n\nfunction redactEmail(string) {\n if (mightBeEmail(string)) {\n console.warn(\"This arg looks like an email address, redacting.\");\n return redacted;\n }\n\n return string;\n}\n\nfunction format() {\n var s = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var titleCase = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n var redactingEmail = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n\n var _str = s || \"\";\n\n if (titleCase) {\n _str = toTitleCase(s);\n }\n\n if (redactingEmail) {\n _str = redactEmail(_str);\n }\n\n return _str;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = exports.GA4 = void 0;\n\nvar _gtag = _interopRequireDefault(require(\"./gtag\"));\n\nvar _format = _interopRequireDefault(require(\"./format\"));\n\nvar _excluded = [\"eventCategory\", \"eventAction\", \"eventLabel\", \"eventValue\", \"hitType\"],\n _excluded2 = [\"title\", \"location\"],\n _excluded3 = [\"page\", \"hitType\"],\n _excluded4 = [\"action\", \"category\", \"label\", \"value\", \"nonInteraction\", \"transport\"];\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n/*\nLinks\nhttps://developers.google.com/gtagjs/reference/api\nhttps://developers.google.com/tag-platform/gtagjs/reference\n*/\n\n/**\n * @typedef GaOptions\n * @type {Object}\n * @property {boolean} [cookieUpdate=true]\n * @property {number} [cookieExpires=63072000] Default two years\n * @property {string} [cookieDomain=\"auto\"]\n * @property {string} [cookieFlags]\n * @property {string} [userId]\n * @property {string} [clientId]\n * @property {boolean} [anonymizeIp]\n * @property {string} [contentGroup1]\n * @property {string} [contentGroup2]\n * @property {string} [contentGroup3]\n * @property {string} [contentGroup4]\n * @property {string} [contentGroup5]\n * @property {boolean} [allowAdFeatures=true]\n * @property {boolean} [allowAdPersonalizationSignals]\n * @property {boolean} [nonInteraction]\n * @property {string} [page]\n */\n\n/**\n * @typedef UaEventOptions\n * @type {Object}\n * @property {string} action\n * @property {string} category\n * @property {string} [label]\n * @property {number} [value]\n * @property {boolean} [nonInteraction]\n * @property {('beacon'|'xhr'|'image')} [transport]\n */\n\n/**\n * @typedef InitOptions\n * @type {Object}\n * @property {string} trackingId\n * @property {GaOptions|any} [gaOptions]\n * @property {Object} [gtagOptions] New parameter\n */\nvar GA4 = /*#__PURE__*/function () {\n function GA4() {\n var _this = this;\n\n _classCallCheck(this, GA4);\n\n _defineProperty(this, \"reset\", function () {\n _this.isInitialized = false;\n _this._testMode = false;\n _this._currentMeasurementId;\n _this._hasLoadedGA = false;\n _this._isQueuing = false;\n _this._queueGtag = [];\n });\n\n _defineProperty(this, \"_gtag\", function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n if (!_this._testMode) {\n if (_this._isQueuing) {\n _this._queueGtag.push(args);\n } else {\n _gtag[\"default\"].apply(void 0, args);\n }\n } else {\n _this._queueGtag.push(args);\n }\n });\n\n _defineProperty(this, \"_loadGA\", function (GA_MEASUREMENT_ID, nonce) {\n if (typeof window === \"undefined\" || typeof document === \"undefined\") {\n return;\n }\n\n if (!_this._hasLoadedGA) {\n // Global Site Tag (gtag.js) - Google Analytics\n var script = document.createElement(\"script\");\n script.async = true;\n script.src = \"https://www.googletagmanager.com/gtag/js?id=\".concat(GA_MEASUREMENT_ID);\n\n if (nonce) {\n script.setAttribute(\"nonce\", nonce);\n }\n\n document.body.appendChild(script);\n window.dataLayer = window.dataLayer || [];\n\n window.gtag = function gtag() {\n window.dataLayer.push(arguments);\n };\n\n _this._hasLoadedGA = true;\n }\n });\n\n _defineProperty(this, \"_toGtagOptions\", function (gaOptions) {\n if (!gaOptions) {\n return;\n }\n\n var mapFields = {\n // Old https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#cookieUpdate\n // New https://developers.google.com/analytics/devguides/collection/gtagjs/cookies-user-id#cookie_update\n cookieUpdate: \"cookie_update\",\n cookieExpires: \"cookie_expires\",\n cookieDomain: \"cookie_domain\",\n cookieFlags: \"cookie_flags\",\n // must be in set method?\n userId: \"user_id\",\n clientId: \"client_id\",\n anonymizeIp: \"anonymize_ip\",\n // https://support.google.com/analytics/answer/2853546?hl=en#zippy=%2Cin-this-article\n contentGroup1: \"content_group1\",\n contentGroup2: \"content_group2\",\n contentGroup3: \"content_group3\",\n contentGroup4: \"content_group4\",\n contentGroup5: \"content_group5\",\n // https://support.google.com/analytics/answer/9050852?hl=en\n allowAdFeatures: \"allow_google_signals\",\n allowAdPersonalizationSignals: \"allow_ad_personalization_signals\",\n nonInteraction: \"non_interaction\",\n page: \"page_path\",\n hitCallback: \"event_callback\"\n };\n var gtagOptions = Object.entries(gaOptions).reduce(function (prev, _ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n value = _ref2[1];\n\n if (mapFields[key]) {\n prev[mapFields[key]] = value;\n } else {\n prev[key] = value;\n }\n\n return prev;\n }, {});\n return gtagOptions;\n });\n\n _defineProperty(this, \"initialize\", function (GA_MEASUREMENT_ID) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (!GA_MEASUREMENT_ID) {\n throw new Error(\"Require GA_MEASUREMENT_ID\");\n }\n\n var initConfigs = typeof GA_MEASUREMENT_ID === \"string\" ? [{\n trackingId: GA_MEASUREMENT_ID\n }] : GA_MEASUREMENT_ID;\n _this._currentMeasurementId = initConfigs[0].trackingId;\n var gaOptions = options.gaOptions,\n gtagOptions = options.gtagOptions,\n _options$legacyDimens = options.legacyDimensionMetric,\n legacyDimensionMetric = _options$legacyDimens === void 0 ? true : _options$legacyDimens,\n nonce = options.nonce,\n _options$testMode = options.testMode,\n testMode = _options$testMode === void 0 ? false : _options$testMode;\n _this._testMode = testMode;\n\n if (!testMode) {\n _this._loadGA(_this._currentMeasurementId, nonce);\n }\n\n if (!_this.isInitialized) {\n _this._gtag(\"js\", new Date());\n\n initConfigs.forEach(function (config) {\n var mergedGtagOptions = _this._appendCustomMap(_objectSpread(_objectSpread(_objectSpread({\n // https://developers.google.com/analytics/devguides/collection/gtagjs/pages#disable_pageview_measurement\n send_page_view: false\n }, _this._toGtagOptions(_objectSpread(_objectSpread({}, gaOptions), config.gaOptions))), gtagOptions), config.gtagOptions), legacyDimensionMetric);\n\n _this._gtag(\"config\", config.trackingId, mergedGtagOptions);\n });\n }\n\n _this.isInitialized = true;\n\n if (!testMode) {\n var queues = _toConsumableArray(_this._queueGtag);\n\n _this._queueGtag = [];\n _this._isQueuing = false;\n\n while (queues.length) {\n var queue = queues.shift();\n\n _this._gtag.apply(_this, _toConsumableArray(queue));\n\n if (queue[0] === \"get\") {\n _this._isQueuing = true;\n }\n }\n }\n });\n\n _defineProperty(this, \"set\", function (fieldsObject) {\n if (!fieldsObject) {\n console.warn(\"`fieldsObject` is required in .set()\");\n return;\n }\n\n if (_typeof(fieldsObject) !== \"object\") {\n console.warn(\"Expected `fieldsObject` arg to be an Object\");\n return;\n }\n\n if (Object.keys(fieldsObject).length === 0) {\n console.warn(\"empty `fieldsObject` given to .set()\");\n }\n\n _this._gaCommand(\"set\", fieldsObject);\n });\n\n _defineProperty(this, \"_gaCommandSendEvent\", function (eventCategory, eventAction, eventLabel, eventValue, fieldsObject) {\n _this._gtag(\"event\", eventAction, _objectSpread(_objectSpread({\n event_category: eventCategory,\n event_label: eventLabel,\n value: eventValue\n }, fieldsObject && {\n non_interaction: fieldsObject.nonInteraction\n }), _this._toGtagOptions(fieldsObject)));\n });\n\n _defineProperty(this, \"_gaCommandSendEventParameters\", function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n if (typeof args[0] === \"string\") {\n _this._gaCommandSendEvent.apply(_this, _toConsumableArray(args.slice(1)));\n } else {\n var _args$ = args[0],\n eventCategory = _args$.eventCategory,\n eventAction = _args$.eventAction,\n eventLabel = _args$.eventLabel,\n eventValue = _args$.eventValue,\n hitType = _args$.hitType,\n rest = _objectWithoutProperties(_args$, _excluded);\n\n _this._gaCommandSendEvent(eventCategory, eventAction, eventLabel, eventValue, rest);\n }\n });\n\n _defineProperty(this, \"_gaCommandSendTiming\", function (timingCategory, timingVar, timingValue, timingLabel) {\n _this._gtag(\"event\", \"timing_complete\", {\n name: timingVar,\n value: timingValue,\n event_category: timingCategory,\n event_label: timingLabel\n });\n });\n\n _defineProperty(this, \"_gaCommandSendPageview\", function (page, fieldsObject) {\n if (fieldsObject && Object.keys(fieldsObject).length) {\n var _this$_toGtagOptions = _this._toGtagOptions(fieldsObject),\n title = _this$_toGtagOptions.title,\n location = _this$_toGtagOptions.location,\n rest = _objectWithoutProperties(_this$_toGtagOptions, _excluded2);\n\n _this._gtag(\"event\", \"page_view\", _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, page && {\n page_path: page\n }), title && {\n page_title: title\n }), location && {\n page_location: location\n }), rest));\n } else if (page) {\n _this._gtag(\"event\", \"page_view\", {\n page_path: page\n });\n } else {\n _this._gtag(\"event\", \"page_view\");\n }\n });\n\n _defineProperty(this, \"_gaCommandSendPageviewParameters\", function () {\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n if (typeof args[0] === \"string\") {\n _this._gaCommandSendPageview.apply(_this, _toConsumableArray(args.slice(1)));\n } else {\n var _args$2 = args[0],\n page = _args$2.page,\n hitType = _args$2.hitType,\n rest = _objectWithoutProperties(_args$2, _excluded3);\n\n _this._gaCommandSendPageview(page, rest);\n }\n });\n\n _defineProperty(this, \"_gaCommandSend\", function () {\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n\n var hitType = typeof args[0] === \"string\" ? args[0] : args[0].hitType;\n\n switch (hitType) {\n case \"event\":\n _this._gaCommandSendEventParameters.apply(_this, args);\n\n break;\n\n case \"pageview\":\n _this._gaCommandSendPageviewParameters.apply(_this, args);\n\n break;\n\n case \"timing\":\n _this._gaCommandSendTiming.apply(_this, _toConsumableArray(args.slice(1)));\n\n break;\n\n case \"screenview\":\n case \"transaction\":\n case \"item\":\n case \"social\":\n case \"exception\":\n console.warn(\"Unsupported send command: \".concat(hitType));\n break;\n\n default:\n console.warn(\"Send command doesn't exist: \".concat(hitType));\n }\n });\n\n _defineProperty(this, \"_gaCommandSet\", function () {\n for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {\n args[_key5] = arguments[_key5];\n }\n\n if (typeof args[0] === \"string\") {\n args[0] = _defineProperty({}, args[0], args[1]);\n }\n\n _this._gtag(\"set\", _this._toGtagOptions(args[0]));\n });\n\n _defineProperty(this, \"_gaCommand\", function (command) {\n for (var _len6 = arguments.length, args = new Array(_len6 > 1 ? _len6 - 1 : 0), _key6 = 1; _key6 < _len6; _key6++) {\n args[_key6 - 1] = arguments[_key6];\n }\n\n switch (command) {\n case \"send\":\n _this._gaCommandSend.apply(_this, args);\n\n break;\n\n case \"set\":\n _this._gaCommandSet.apply(_this, args);\n\n break;\n\n default:\n console.warn(\"Command doesn't exist: \".concat(command));\n }\n });\n\n _defineProperty(this, \"ga\", function () {\n for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {\n args[_key7] = arguments[_key7];\n }\n\n if (typeof args[0] === \"string\") {\n _this._gaCommand.apply(_this, args);\n } else {\n var readyCallback = args[0];\n\n _this._gtag(\"get\", _this._currentMeasurementId, \"client_id\", function (clientId) {\n _this._isQueuing = false;\n var queues = _this._queueGtag;\n readyCallback({\n get: function get(property) {\n return property === \"clientId\" ? clientId : property === \"trackingId\" ? _this._currentMeasurementId : property === \"apiVersion\" ? \"1\" : undefined;\n }\n });\n\n while (queues.length) {\n var queue = queues.shift();\n\n _this._gtag.apply(_this, _toConsumableArray(queue));\n }\n });\n\n _this._isQueuing = true;\n }\n\n return _this.ga;\n });\n\n _defineProperty(this, \"event\", function (optionsOrName, params) {\n if (typeof optionsOrName === \"string\") {\n _this._gtag(\"event\", optionsOrName, _this._toGtagOptions(params));\n } else {\n var action = optionsOrName.action,\n category = optionsOrName.category,\n label = optionsOrName.label,\n value = optionsOrName.value,\n nonInteraction = optionsOrName.nonInteraction,\n transport = optionsOrName.transport,\n rest = _objectWithoutProperties(optionsOrName, _excluded4);\n\n if (!category || !action) {\n console.warn(\"args.category AND args.action are required in event()\");\n return;\n } // Required Fields\n\n\n var fieldObject = {\n hitType: \"event\",\n eventCategory: (0, _format[\"default\"])(category),\n eventAction: (0, _format[\"default\"])(action)\n }; // Optional Fields\n\n if (label) {\n fieldObject.eventLabel = (0, _format[\"default\"])(label);\n }\n\n if (typeof value !== \"undefined\") {\n if (typeof value !== \"number\") {\n console.warn(\"Expected `args.value` arg to be a Number.\");\n } else {\n fieldObject.eventValue = value;\n }\n }\n\n if (typeof nonInteraction !== \"undefined\") {\n if (typeof nonInteraction !== \"boolean\") {\n console.warn(\"`args.nonInteraction` must be a boolean.\");\n } else {\n fieldObject.nonInteraction = nonInteraction;\n }\n }\n\n if (typeof transport !== \"undefined\") {\n if (typeof transport !== \"string\") {\n console.warn(\"`args.transport` must be a string.\");\n } else {\n if ([\"beacon\", \"xhr\", \"image\"].indexOf(transport) === -1) {\n console.warn(\"`args.transport` must be either one of these values: `beacon`, `xhr` or `image`\");\n }\n\n fieldObject.transport = transport;\n }\n }\n\n Object.keys(rest).filter(function (key) {\n return key.substr(0, \"dimension\".length) === \"dimension\";\n }).forEach(function (key) {\n fieldObject[key] = rest[key];\n });\n Object.keys(rest).filter(function (key) {\n return key.substr(0, \"metric\".length) === \"metric\";\n }).forEach(function (key) {\n fieldObject[key] = rest[key];\n });\n\n _this._gaCommand(\"send\", fieldObject);\n }\n });\n\n _defineProperty(this, \"send\", function (fieldObject) {\n _this._gaCommand(\"send\", fieldObject);\n });\n\n _defineProperty(this, \"pageview\", function (path, _, title) {\n var pathTrim = path === null || path === void 0 ? void 0 : path.trim();\n\n if (pathTrim === \"\") {\n console.warn(\"path cannot be an empty string in .pageview()\");\n return;\n }\n\n _this._gaCommand(\"send\", \"pageview\", pathTrim, {\n title: title\n });\n });\n\n this.reset();\n }\n\n _createClass(GA4, [{\n key: \"gtag\",\n value: function gtag() {\n this._gtag.apply(this, arguments);\n }\n }, {\n key: \"_appendCustomMap\",\n value: function _appendCustomMap(options) {\n var legacyDimensionMetric = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n if (!legacyDimensionMetric) {\n return options;\n }\n\n if (!options.custom_map) {\n options.custom_map = {};\n }\n\n for (var i = 1; i <= 200; i++) {\n if (!options.custom_map[\"dimension\".concat(i)]) {\n options.custom_map[\"dimension\".concat(i)] = \"dimension\".concat(i);\n }\n\n if (!options.custom_map[\"metric\".concat(i)]) {\n options.custom_map[\"metric\".concat(i)] = \"metric\".concat(i);\n }\n }\n\n return options;\n }\n /**\n * @since v1.0.2\n * @param {string} [path=\"location.href\"]\n * @param {string[]} [_] unsupported\n * @param {string} [title=\"location.pathname\"]\n * @deprecated Use `.send(\"pageview\")` instead\n */\n\n }, {\n key: \"outboundLink\",\n value:\n /**\n * @since v1.0.6\n * @param {Object} options\n * @param {string} options.label\n * @param {function} hitCallback\n * @deprecated Use `enhanced measurement` feature in Google Analytics.\n */\n function outboundLink(_ref3, hitCallback) {\n var label = _ref3.label;\n\n if (typeof hitCallback !== \"function\") {\n console.warn(\"hitCallback function is required\");\n return;\n }\n\n if (!label) {\n console.warn(\"args.label is required in outboundLink()\");\n return;\n } // Required Fields\n\n\n var fieldObject = {\n hitType: \"event\",\n eventCategory: \"Outbound\",\n eventAction: \"Click\",\n eventLabel: (0, _format[\"default\"])(label)\n };\n var safetyCallbackCalled = false;\n\n var safetyCallback = function safetyCallback() {\n // This prevents a delayed response from GA\n // causing hitCallback from being fired twice\n safetyCallbackCalled = true;\n hitCallback();\n }; // Using a timeout to ensure the execution of critical application code\n // in the case when the GA server might be down\n // or an ad blocker prevents sending the data\n // register safety net timeout:\n\n\n var t = setTimeout(safetyCallback, 250);\n\n var clearableCallbackForGA = function clearableCallbackForGA() {\n clearTimeout(t);\n\n if (!safetyCallbackCalled) {\n hitCallback();\n }\n };\n\n fieldObject.hitCallback = clearableCallbackForGA;\n\n this._gaCommand(\"send\", fieldObject);\n }\n }]);\n\n return GA4;\n}();\n\nexports.GA4 = GA4;\n\nvar _default = new GA4();\n\nexports[\"default\"] = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar gtag = function gtag() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n if (typeof window !== \"undefined\") {\n var _window;\n\n if (typeof window.gtag === \"undefined\") {\n window.dataLayer = window.dataLayer || [];\n\n window.gtag = function gtag() {\n window.dataLayer.push(arguments);\n };\n }\n\n (_window = window).gtag.apply(_window, args);\n }\n};\n\nvar _default = gtag;\nexports[\"default\"] = _default;","\"use strict\";\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = exports.ReactGAImplementation = void 0;\n\nvar _ga = _interopRequireWildcard(require(\"./ga4\"));\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nvar ReactGAImplementation = _ga.GA4;\nexports.ReactGAImplementation = ReactGAImplementation;\nvar _default = _ga[\"default\"];\nexports[\"default\"] = _default;","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport { Component, Children } from 'react';\nimport PropTypes from 'prop-types';\nimport { storeShape, subscriptionShape } from '../utils/PropTypes';\nimport warning from '../utils/warning';\n\nvar didWarnAboutReceivingStore = false;\nfunction warnAboutReceivingStore() {\n if (didWarnAboutReceivingStore) {\n return;\n }\n didWarnAboutReceivingStore = true;\n\n warning('<Provider> does not support changing `store` on the fly. ' + 'It is most likely that you see this error because you updated to ' + 'Redux 2.x and React Redux 2.x which no longer hot reload reducers ' + 'automatically. See https://github.com/reactjs/react-redux/releases/' + 'tag/v2.0.0 for the migration instructions.');\n}\n\nexport function createProvider() {\n var _Provider$childContex;\n\n var storeKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'store';\n var subKey = arguments[1];\n\n var subscriptionKey = subKey || storeKey + 'Subscription';\n\n var Provider = function (_Component) {\n _inherits(Provider, _Component);\n\n Provider.prototype.getChildContext = function getChildContext() {\n var _ref;\n\n return _ref = {}, _ref[storeKey] = this[storeKey], _ref[subscriptionKey] = null, _ref;\n };\n\n function Provider(props, context) {\n _classCallCheck(this, Provider);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));\n\n _this[storeKey] = props.store;\n return _this;\n }\n\n Provider.prototype.render = function render() {\n return Children.only(this.props.children);\n };\n\n return Provider;\n }(Component);\n\n if (process.env.NODE_ENV !== 'production') {\n Provider.prototype.componentWillReceiveProps = function (nextProps) {\n if (this[storeKey] !== nextProps.store) {\n warnAboutReceivingStore();\n }\n };\n }\n\n Provider.propTypes = {\n store: storeShape.isRequired,\n children: PropTypes.element.isRequired\n };\n Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[storeKey] = storeShape.isRequired, _Provider$childContex[subscriptionKey] = subscriptionShape, _Provider$childContex);\n\n return Provider;\n}\n\nexport default createProvider();","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nimport hoistStatics from 'hoist-non-react-statics';\nimport invariant from 'invariant';\nimport { Component, createElement } from 'react';\n\nimport Subscription from '../utils/Subscription';\nimport { storeShape, subscriptionShape } from '../utils/PropTypes';\n\nvar hotReloadingVersion = 0;\nvar dummyState = {};\nfunction noop() {}\nfunction makeSelectorStateful(sourceSelector, store) {\n // wrap the selector in an object that tracks its results between runs.\n var selector = {\n run: function runComponentSelector(props) {\n try {\n var nextProps = sourceSelector(store.getState(), props);\n if (nextProps !== selector.props || selector.error) {\n selector.shouldComponentUpdate = true;\n selector.props = nextProps;\n selector.error = null;\n }\n } catch (error) {\n selector.shouldComponentUpdate = true;\n selector.error = error;\n }\n }\n };\n\n return selector;\n}\n\nexport default function connectAdvanced(\n/*\n selectorFactory is a func that is responsible for returning the selector function used to\n compute new props from state, props, and dispatch. For example:\n export default connectAdvanced((dispatch, options) => (state, props) => ({\n thing: state.things[props.thingId],\n saveThing: fields => dispatch(actionCreators.saveThing(props.thingId, fields)),\n }))(YourComponent)\n Access to dispatch is provided to the factory so selectorFactories can bind actionCreators\n outside of their selector as an optimization. Options passed to connectAdvanced are passed to\n the selectorFactory, along with displayName and WrappedComponent, as the second argument.\n Note that selectorFactory is responsible for all caching/memoization of inbound and outbound\n props. Do not use connectAdvanced directly without memoizing results between calls to your\n selector, otherwise the Connect component will re-render on every state or props change.\n*/\nselectorFactory) {\n var _contextTypes, _childContextTypes;\n\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref$getDisplayName = _ref.getDisplayName,\n getDisplayName = _ref$getDisplayName === undefined ? function (name) {\n return 'ConnectAdvanced(' + name + ')';\n } : _ref$getDisplayName,\n _ref$methodName = _ref.methodName,\n methodName = _ref$methodName === undefined ? 'connectAdvanced' : _ref$methodName,\n _ref$renderCountProp = _ref.renderCountProp,\n renderCountProp = _ref$renderCountProp === undefined ? undefined : _ref$renderCountProp,\n _ref$shouldHandleStat = _ref.shouldHandleStateChanges,\n shouldHandleStateChanges = _ref$shouldHandleStat === undefined ? true : _ref$shouldHandleStat,\n _ref$storeKey = _ref.storeKey,\n storeKey = _ref$storeKey === undefined ? 'store' : _ref$storeKey,\n _ref$withRef = _ref.withRef,\n withRef = _ref$withRef === undefined ? false : _ref$withRef,\n connectOptions = _objectWithoutProperties(_ref, ['getDisplayName', 'methodName', 'renderCountProp', 'shouldHandleStateChanges', 'storeKey', 'withRef']);\n\n var subscriptionKey = storeKey + 'Subscription';\n var version = hotReloadingVersion++;\n\n var contextTypes = (_contextTypes = {}, _contextTypes[storeKey] = storeShape, _contextTypes[subscriptionKey] = subscriptionShape, _contextTypes);\n var childContextTypes = (_childContextTypes = {}, _childContextTypes[subscriptionKey] = subscriptionShape, _childContextTypes);\n\n return function wrapWithConnect(WrappedComponent) {\n invariant(typeof WrappedComponent == 'function', 'You must pass a component to the function returned by ' + (methodName + '. Instead received ' + JSON.stringify(WrappedComponent)));\n\n var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';\n\n var displayName = getDisplayName(wrappedComponentName);\n\n var selectorFactoryOptions = _extends({}, connectOptions, {\n getDisplayName: getDisplayName,\n methodName: methodName,\n renderCountProp: renderCountProp,\n shouldHandleStateChanges: shouldHandleStateChanges,\n storeKey: storeKey,\n withRef: withRef,\n displayName: displayName,\n wrappedComponentName: wrappedComponentName,\n WrappedComponent: WrappedComponent\n });\n\n var Connect = function (_Component) {\n _inherits(Connect, _Component);\n\n function Connect(props, context) {\n _classCallCheck(this, Connect);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));\n\n _this.version = version;\n _this.state = {};\n _this.renderCount = 0;\n _this.store = props[storeKey] || context[storeKey];\n _this.propsMode = Boolean(props[storeKey]);\n _this.setWrappedInstance = _this.setWrappedInstance.bind(_this);\n\n invariant(_this.store, 'Could not find \"' + storeKey + '\" in either the context or props of ' + ('\"' + displayName + '\". Either wrap the root component in a <Provider>, ') + ('or explicitly pass \"' + storeKey + '\" as a prop to \"' + displayName + '\".'));\n\n _this.initSelector();\n _this.initSubscription();\n return _this;\n }\n\n Connect.prototype.getChildContext = function getChildContext() {\n var _ref2;\n\n // If this component received store from props, its subscription should be transparent\n // to any descendants receiving store+subscription from context; it passes along\n // subscription passed to it. Otherwise, it shadows the parent subscription, which allows\n // Connect to control ordering of notifications to flow top-down.\n var subscription = this.propsMode ? null : this.subscription;\n return _ref2 = {}, _ref2[subscriptionKey] = subscription || this.context[subscriptionKey], _ref2;\n };\n\n Connect.prototype.componentDidMount = function componentDidMount() {\n if (!shouldHandleStateChanges) return;\n\n // componentWillMount fires during server side rendering, but componentDidMount and\n // componentWillUnmount do not. Because of this, trySubscribe happens during ...didMount.\n // Otherwise, unsubscription would never take place during SSR, causing a memory leak.\n // To handle the case where a child component may have triggered a state change by\n // dispatching an action in its componentWillMount, we have to re-run the select and maybe\n // re-render.\n this.subscription.trySubscribe();\n this.selector.run(this.props);\n if (this.selector.shouldComponentUpdate) this.forceUpdate();\n };\n\n Connect.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n this.selector.run(nextProps);\n };\n\n Connect.prototype.shouldComponentUpdate = function shouldComponentUpdate() {\n return this.selector.shouldComponentUpdate;\n };\n\n Connect.prototype.componentWillUnmount = function componentWillUnmount() {\n if (this.subscription) this.subscription.tryUnsubscribe();\n this.subscription = null;\n this.notifyNestedSubs = noop;\n this.store = null;\n this.selector.run = noop;\n this.selector.shouldComponentUpdate = false;\n };\n\n Connect.prototype.getWrappedInstance = function getWrappedInstance() {\n invariant(withRef, 'To access the wrapped instance, you need to specify ' + ('{ withRef: true } in the options argument of the ' + methodName + '() call.'));\n return this.wrappedInstance;\n };\n\n Connect.prototype.setWrappedInstance = function setWrappedInstance(ref) {\n this.wrappedInstance = ref;\n };\n\n Connect.prototype.initSelector = function initSelector() {\n var sourceSelector = selectorFactory(this.store.dispatch, selectorFactoryOptions);\n this.selector = makeSelectorStateful(sourceSelector, this.store);\n this.selector.run(this.props);\n };\n\n Connect.prototype.initSubscription = function initSubscription() {\n if (!shouldHandleStateChanges) return;\n\n // parentSub's source should match where store came from: props vs. context. A component\n // connected to the store via props shouldn't use subscription from context, or vice versa.\n var parentSub = (this.propsMode ? this.props : this.context)[subscriptionKey];\n this.subscription = new Subscription(this.store, parentSub, this.onStateChange.bind(this));\n\n // `notifyNestedSubs` is duplicated to handle the case where the component is unmounted in\n // the middle of the notification loop, where `this.subscription` will then be null. An\n // extra null check every change can be avoided by copying the method onto `this` and then\n // replacing it with a no-op on unmount. This can probably be avoided if Subscription's\n // listeners logic is changed to not call listeners that have been unsubscribed in the\n // middle of the notification loop.\n this.notifyNestedSubs = this.subscription.notifyNestedSubs.bind(this.subscription);\n };\n\n Connect.prototype.onStateChange = function onStateChange() {\n this.selector.run(this.props);\n\n if (!this.selector.shouldComponentUpdate) {\n this.notifyNestedSubs();\n } else {\n this.componentDidUpdate = this.notifyNestedSubsOnComponentDidUpdate;\n this.setState(dummyState);\n }\n };\n\n Connect.prototype.notifyNestedSubsOnComponentDidUpdate = function notifyNestedSubsOnComponentDidUpdate() {\n // `componentDidUpdate` is conditionally implemented when `onStateChange` determines it\n // needs to notify nested subs. Once called, it unimplements itself until further state\n // changes occur. Doing it this way vs having a permanent `componentDidUpdate` that does\n // a boolean check every time avoids an extra method call most of the time, resulting\n // in some perf boost.\n this.componentDidUpdate = undefined;\n this.notifyNestedSubs();\n };\n\n Connect.prototype.isSubscribed = function isSubscribed() {\n return Boolean(this.subscription) && this.subscription.isSubscribed();\n };\n\n Connect.prototype.addExtraProps = function addExtraProps(props) {\n if (!withRef && !renderCountProp && !(this.propsMode && this.subscription)) return props;\n // make a shallow copy so that fields added don't leak to the original selector.\n // this is especially important for 'ref' since that's a reference back to the component\n // instance. a singleton memoized selector would then be holding a reference to the\n // instance, preventing the instance from being garbage collected, and that would be bad\n var withExtras = _extends({}, props);\n if (withRef) withExtras.ref = this.setWrappedInstance;\n if (renderCountProp) withExtras[renderCountProp] = this.renderCount++;\n if (this.propsMode && this.subscription) withExtras[subscriptionKey] = this.subscription;\n return withExtras;\n };\n\n Connect.prototype.render = function render() {\n var selector = this.selector;\n selector.shouldComponentUpdate = false;\n\n if (selector.error) {\n throw selector.error;\n } else {\n return createElement(WrappedComponent, this.addExtraProps(selector.props));\n }\n };\n\n return Connect;\n }(Component);\n\n Connect.WrappedComponent = WrappedComponent;\n Connect.displayName = displayName;\n Connect.childContextTypes = childContextTypes;\n Connect.contextTypes = contextTypes;\n Connect.propTypes = contextTypes;\n\n if (process.env.NODE_ENV !== 'production') {\n Connect.prototype.componentWillUpdate = function componentWillUpdate() {\n var _this2 = this;\n\n // We are hot reloading!\n if (this.version !== version) {\n this.version = version;\n this.initSelector();\n\n // If any connected descendants don't hot reload (and resubscribe in the process), their\n // listeners will be lost when we unsubscribe. Unfortunately, by copying over all\n // listeners, this does mean that the old versions of connected descendants will still be\n // notified of state changes; however, their onStateChange function is a no-op so this\n // isn't a huge deal.\n var oldListeners = [];\n\n if (this.subscription) {\n oldListeners = this.subscription.listeners.get();\n this.subscription.tryUnsubscribe();\n }\n this.initSubscription();\n if (shouldHandleStateChanges) {\n this.subscription.trySubscribe();\n oldListeners.forEach(function (listener) {\n return _this2.subscription.listeners.subscribe(listener);\n });\n }\n }\n };\n }\n\n return hoistStatics(Connect, WrappedComponent);\n };\n}","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nimport connectAdvanced from '../components/connectAdvanced';\nimport shallowEqual from '../utils/shallowEqual';\nimport defaultMapDispatchToPropsFactories from './mapDispatchToProps';\nimport defaultMapStateToPropsFactories from './mapStateToProps';\nimport defaultMergePropsFactories from './mergeProps';\nimport defaultSelectorFactory from './selectorFactory';\n\n/*\n connect is a facade over connectAdvanced. It turns its args into a compatible\n selectorFactory, which has the signature:\n\n (dispatch, options) => (nextState, nextOwnProps) => nextFinalProps\n \n connect passes its args to connectAdvanced as options, which will in turn pass them to\n selectorFactory each time a Connect component instance is instantiated or hot reloaded.\n\n selectorFactory returns a final props selector from its mapStateToProps,\n mapStateToPropsFactories, mapDispatchToProps, mapDispatchToPropsFactories, mergeProps,\n mergePropsFactories, and pure args.\n\n The resulting final props selector is called by the Connect component instance whenever\n it receives new props or store state.\n */\n\nfunction match(arg, factories, name) {\n for (var i = factories.length - 1; i >= 0; i--) {\n var result = factories[i](arg);\n if (result) return result;\n }\n\n return function (dispatch, options) {\n throw new Error('Invalid value of type ' + typeof arg + ' for ' + name + ' argument when connecting component ' + options.wrappedComponentName + '.');\n };\n}\n\nfunction strictEqual(a, b) {\n return a === b;\n}\n\n// createConnect with default args builds the 'official' connect behavior. Calling it with\n// different options opens up some testing and extensibility scenarios\nexport function createConnect() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref$connectHOC = _ref.connectHOC,\n connectHOC = _ref$connectHOC === undefined ? connectAdvanced : _ref$connectHOC,\n _ref$mapStateToPropsF = _ref.mapStateToPropsFactories,\n mapStateToPropsFactories = _ref$mapStateToPropsF === undefined ? defaultMapStateToPropsFactories : _ref$mapStateToPropsF,\n _ref$mapDispatchToPro = _ref.mapDispatchToPropsFactories,\n mapDispatchToPropsFactories = _ref$mapDispatchToPro === undefined ? defaultMapDispatchToPropsFactories : _ref$mapDispatchToPro,\n _ref$mergePropsFactor = _ref.mergePropsFactories,\n mergePropsFactories = _ref$mergePropsFactor === undefined ? defaultMergePropsFactories : _ref$mergePropsFactor,\n _ref$selectorFactory = _ref.selectorFactory,\n selectorFactory = _ref$selectorFactory === undefined ? defaultSelectorFactory : _ref$selectorFactory;\n\n return function connect(mapStateToProps, mapDispatchToProps, mergeProps) {\n var _ref2 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {},\n _ref2$pure = _ref2.pure,\n pure = _ref2$pure === undefined ? true : _ref2$pure,\n _ref2$areStatesEqual = _ref2.areStatesEqual,\n areStatesEqual = _ref2$areStatesEqual === undefined ? strictEqual : _ref2$areStatesEqual,\n _ref2$areOwnPropsEqua = _ref2.areOwnPropsEqual,\n areOwnPropsEqual = _ref2$areOwnPropsEqua === undefined ? shallowEqual : _ref2$areOwnPropsEqua,\n _ref2$areStatePropsEq = _ref2.areStatePropsEqual,\n areStatePropsEqual = _ref2$areStatePropsEq === undefined ? shallowEqual : _ref2$areStatePropsEq,\n _ref2$areMergedPropsE = _ref2.areMergedPropsEqual,\n areMergedPropsEqual = _ref2$areMergedPropsE === undefined ? shallowEqual : _ref2$areMergedPropsE,\n extraOptions = _objectWithoutProperties(_ref2, ['pure', 'areStatesEqual', 'areOwnPropsEqual', 'areStatePropsEqual', 'areMergedPropsEqual']);\n\n var initMapStateToProps = match(mapStateToProps, mapStateToPropsFactories, 'mapStateToProps');\n var initMapDispatchToProps = match(mapDispatchToProps, mapDispatchToPropsFactories, 'mapDispatchToProps');\n var initMergeProps = match(mergeProps, mergePropsFactories, 'mergeProps');\n\n return connectHOC(selectorFactory, _extends({\n // used in error messages\n methodName: 'connect',\n\n // used to compute Connect's displayName from the wrapped component's displayName.\n getDisplayName: function getDisplayName(name) {\n return 'Connect(' + name + ')';\n },\n\n // if mapStateToProps is falsy, the Connect component doesn't subscribe to store state changes\n shouldHandleStateChanges: Boolean(mapStateToProps),\n\n // passed through to selectorFactory\n initMapStateToProps: initMapStateToProps,\n initMapDispatchToProps: initMapDispatchToProps,\n initMergeProps: initMergeProps,\n pure: pure,\n areStatesEqual: areStatesEqual,\n areOwnPropsEqual: areOwnPropsEqual,\n areStatePropsEqual: areStatePropsEqual,\n areMergedPropsEqual: areMergedPropsEqual\n\n }, extraOptions));\n };\n}\n\nexport default createConnect();","import { bindActionCreators } from 'redux';\nimport { wrapMapToPropsConstant, wrapMapToPropsFunc } from './wrapMapToProps';\n\nexport function whenMapDispatchToPropsIsFunction(mapDispatchToProps) {\n return typeof mapDispatchToProps === 'function' ? wrapMapToPropsFunc(mapDispatchToProps, 'mapDispatchToProps') : undefined;\n}\n\nexport function whenMapDispatchToPropsIsMissing(mapDispatchToProps) {\n return !mapDispatchToProps ? wrapMapToPropsConstant(function (dispatch) {\n return { dispatch: dispatch };\n }) : undefined;\n}\n\nexport function whenMapDispatchToPropsIsObject(mapDispatchToProps) {\n return mapDispatchToProps && typeof mapDispatchToProps === 'object' ? wrapMapToPropsConstant(function (dispatch) {\n return bindActionCreators(mapDispatchToProps, dispatch);\n }) : undefined;\n}\n\nexport default [whenMapDispatchToPropsIsFunction, whenMapDispatchToPropsIsMissing, whenMapDispatchToPropsIsObject];","import { wrapMapToPropsConstant, wrapMapToPropsFunc } from './wrapMapToProps';\n\nexport function whenMapStateToPropsIsFunction(mapStateToProps) {\n return typeof mapStateToProps === 'function' ? wrapMapToPropsFunc(mapStateToProps, 'mapStateToProps') : undefined;\n}\n\nexport function whenMapStateToPropsIsMissing(mapStateToProps) {\n return !mapStateToProps ? wrapMapToPropsConstant(function () {\n return {};\n }) : undefined;\n}\n\nexport default [whenMapStateToPropsIsFunction, whenMapStateToPropsIsMissing];","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nimport verifyPlainObject from '../utils/verifyPlainObject';\n\nexport function defaultMergeProps(stateProps, dispatchProps, ownProps) {\n return _extends({}, ownProps, stateProps, dispatchProps);\n}\n\nexport function wrapMergePropsFunc(mergeProps) {\n return function initMergePropsProxy(dispatch, _ref) {\n var displayName = _ref.displayName,\n pure = _ref.pure,\n areMergedPropsEqual = _ref.areMergedPropsEqual;\n\n var hasRunOnce = false;\n var mergedProps = void 0;\n\n return function mergePropsProxy(stateProps, dispatchProps, ownProps) {\n var nextMergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n\n if (hasRunOnce) {\n if (!pure || !areMergedPropsEqual(nextMergedProps, mergedProps)) mergedProps = nextMergedProps;\n } else {\n hasRunOnce = true;\n mergedProps = nextMergedProps;\n\n if (process.env.NODE_ENV !== 'production') verifyPlainObject(mergedProps, displayName, 'mergeProps');\n }\n\n return mergedProps;\n };\n };\n}\n\nexport function whenMergePropsIsFunction(mergeProps) {\n return typeof mergeProps === 'function' ? wrapMergePropsFunc(mergeProps) : undefined;\n}\n\nexport function whenMergePropsIsOmitted(mergeProps) {\n return !mergeProps ? function () {\n return defaultMergeProps;\n } : undefined;\n}\n\nexport default [whenMergePropsIsFunction, whenMergePropsIsOmitted];","function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nimport verifySubselectors from './verifySubselectors';\n\nexport function impureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch) {\n return function impureFinalPropsSelector(state, ownProps) {\n return mergeProps(mapStateToProps(state, ownProps), mapDispatchToProps(dispatch, ownProps), ownProps);\n };\n}\n\nexport function pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, _ref) {\n var areStatesEqual = _ref.areStatesEqual,\n areOwnPropsEqual = _ref.areOwnPropsEqual,\n areStatePropsEqual = _ref.areStatePropsEqual;\n\n var hasRunAtLeastOnce = false;\n var state = void 0;\n var ownProps = void 0;\n var stateProps = void 0;\n var dispatchProps = void 0;\n var mergedProps = void 0;\n\n function handleFirstCall(firstState, firstOwnProps) {\n state = firstState;\n ownProps = firstOwnProps;\n stateProps = mapStateToProps(state, ownProps);\n dispatchProps = mapDispatchToProps(dispatch, ownProps);\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n hasRunAtLeastOnce = true;\n return mergedProps;\n }\n\n function handleNewPropsAndNewState() {\n stateProps = mapStateToProps(state, ownProps);\n\n if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);\n\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n return mergedProps;\n }\n\n function handleNewProps() {\n if (mapStateToProps.dependsOnOwnProps) stateProps = mapStateToProps(state, ownProps);\n\n if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);\n\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n return mergedProps;\n }\n\n function handleNewState() {\n var nextStateProps = mapStateToProps(state, ownProps);\n var statePropsChanged = !areStatePropsEqual(nextStateProps, stateProps);\n stateProps = nextStateProps;\n\n if (statePropsChanged) mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n\n return mergedProps;\n }\n\n function handleSubsequentCalls(nextState, nextOwnProps) {\n var propsChanged = !areOwnPropsEqual(nextOwnProps, ownProps);\n var stateChanged = !areStatesEqual(nextState, state);\n state = nextState;\n ownProps = nextOwnProps;\n\n if (propsChanged && stateChanged) return handleNewPropsAndNewState();\n if (propsChanged) return handleNewProps();\n if (stateChanged) return handleNewState();\n return mergedProps;\n }\n\n return function pureFinalPropsSelector(nextState, nextOwnProps) {\n return hasRunAtLeastOnce ? handleSubsequentCalls(nextState, nextOwnProps) : handleFirstCall(nextState, nextOwnProps);\n };\n}\n\n// TODO: Add more comments\n\n// If pure is true, the selector returned by selectorFactory will memoize its results,\n// allowing connectAdvanced's shouldComponentUpdate to return false if final\n// props have not changed. If false, the selector will always return a new\n// object and shouldComponentUpdate will always return true.\n\nexport default function finalPropsSelectorFactory(dispatch, _ref2) {\n var initMapStateToProps = _ref2.initMapStateToProps,\n initMapDispatchToProps = _ref2.initMapDispatchToProps,\n initMergeProps = _ref2.initMergeProps,\n options = _objectWithoutProperties(_ref2, ['initMapStateToProps', 'initMapDispatchToProps', 'initMergeProps']);\n\n var mapStateToProps = initMapStateToProps(dispatch, options);\n var mapDispatchToProps = initMapDispatchToProps(dispatch, options);\n var mergeProps = initMergeProps(dispatch, options);\n\n if (process.env.NODE_ENV !== 'production') {\n verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps, options.displayName);\n }\n\n var selectorFactory = options.pure ? pureFinalPropsSelectorFactory : impureFinalPropsSelectorFactory;\n\n return selectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);\n}","import warning from '../utils/warning';\n\nfunction verify(selector, methodName, displayName) {\n if (!selector) {\n throw new Error('Unexpected value for ' + methodName + ' in ' + displayName + '.');\n } else if (methodName === 'mapStateToProps' || methodName === 'mapDispatchToProps') {\n if (!selector.hasOwnProperty('dependsOnOwnProps')) {\n warning('The selector for ' + methodName + ' of ' + displayName + ' did not specify a value for dependsOnOwnProps.');\n }\n }\n}\n\nexport default function verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps, displayName) {\n verify(mapStateToProps, 'mapStateToProps', displayName);\n verify(mapDispatchToProps, 'mapDispatchToProps', displayName);\n verify(mergeProps, 'mergeProps', displayName);\n}","import verifyPlainObject from '../utils/verifyPlainObject';\n\nexport function wrapMapToPropsConstant(getConstant) {\n return function initConstantSelector(dispatch, options) {\n var constant = getConstant(dispatch, options);\n\n function constantSelector() {\n return constant;\n }\n constantSelector.dependsOnOwnProps = false;\n return constantSelector;\n };\n}\n\n// dependsOnOwnProps is used by createMapToPropsProxy to determine whether to pass props as args\n// to the mapToProps function being wrapped. It is also used by makePurePropsSelector to determine\n// whether mapToProps needs to be invoked when props have changed.\n// \n// A length of one signals that mapToProps does not depend on props from the parent component.\n// A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and\n// therefore not reporting its length accurately..\nexport function getDependsOnOwnProps(mapToProps) {\n return mapToProps.dependsOnOwnProps !== null && mapToProps.dependsOnOwnProps !== undefined ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1;\n}\n\n// Used by whenMapStateToPropsIsFunction and whenMapDispatchToPropsIsFunction,\n// this function wraps mapToProps in a proxy function which does several things:\n// \n// * Detects whether the mapToProps function being called depends on props, which\n// is used by selectorFactory to decide if it should reinvoke on props changes.\n// \n// * On first call, handles mapToProps if returns another function, and treats that\n// new function as the true mapToProps for subsequent calls.\n// \n// * On first call, verifies the first result is a plain object, in order to warn\n// the developer that their mapToProps function is not returning a valid result.\n// \nexport function wrapMapToPropsFunc(mapToProps, methodName) {\n return function initProxySelector(dispatch, _ref) {\n var displayName = _ref.displayName;\n\n var proxy = function mapToPropsProxy(stateOrDispatch, ownProps) {\n return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch);\n };\n\n // allow detectFactoryAndVerify to get ownProps\n proxy.dependsOnOwnProps = true;\n\n proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) {\n proxy.mapToProps = mapToProps;\n proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps);\n var props = proxy(stateOrDispatch, ownProps);\n\n if (typeof props === 'function') {\n proxy.mapToProps = props;\n proxy.dependsOnOwnProps = getDependsOnOwnProps(props);\n props = proxy(stateOrDispatch, ownProps);\n }\n\n if (process.env.NODE_ENV !== 'production') verifyPlainObject(props, displayName, methodName);\n\n return props;\n };\n\n return proxy;\n };\n}","import Provider, { createProvider } from './components/Provider';\nimport connectAdvanced from './components/connectAdvanced';\nimport connect from './connect/connect';\n\nexport { Provider, createProvider, connectAdvanced, connect };","import PropTypes from 'prop-types';\n\nexport var subscriptionShape = PropTypes.shape({\n trySubscribe: PropTypes.func.isRequired,\n tryUnsubscribe: PropTypes.func.isRequired,\n notifyNestedSubs: PropTypes.func.isRequired,\n isSubscribed: PropTypes.func.isRequired\n});\n\nexport var storeShape = PropTypes.shape({\n subscribe: PropTypes.func.isRequired,\n dispatch: PropTypes.func.isRequired,\n getState: PropTypes.func.isRequired\n});","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n// encapsulates the subscription logic for connecting a component to the redux store, as\n// well as nesting subscriptions of descendant components, so that we can ensure the\n// ancestor components re-render before descendants\n\nvar CLEARED = null;\nvar nullListeners = {\n notify: function notify() {}\n};\n\nfunction createListenerCollection() {\n // the current/next pattern is copied from redux's createStore code.\n // TODO: refactor+expose that code to be reusable here?\n var current = [];\n var next = [];\n\n return {\n clear: function clear() {\n next = CLEARED;\n current = CLEARED;\n },\n notify: function notify() {\n var listeners = current = next;\n for (var i = 0; i < listeners.length; i++) {\n listeners[i]();\n }\n },\n get: function get() {\n return next;\n },\n subscribe: function subscribe(listener) {\n var isSubscribed = true;\n if (next === current) next = current.slice();\n next.push(listener);\n\n return function unsubscribe() {\n if (!isSubscribed || current === CLEARED) return;\n isSubscribed = false;\n\n if (next === current) next = current.slice();\n next.splice(next.indexOf(listener), 1);\n };\n }\n };\n}\n\nvar Subscription = function () {\n function Subscription(store, parentSub, onStateChange) {\n _classCallCheck(this, Subscription);\n\n this.store = store;\n this.parentSub = parentSub;\n this.onStateChange = onStateChange;\n this.unsubscribe = null;\n this.listeners = nullListeners;\n }\n\n Subscription.prototype.addNestedSub = function addNestedSub(listener) {\n this.trySubscribe();\n return this.listeners.subscribe(listener);\n };\n\n Subscription.prototype.notifyNestedSubs = function notifyNestedSubs() {\n this.listeners.notify();\n };\n\n Subscription.prototype.isSubscribed = function isSubscribed() {\n return Boolean(this.unsubscribe);\n };\n\n Subscription.prototype.trySubscribe = function trySubscribe() {\n if (!this.unsubscribe) {\n this.unsubscribe = this.parentSub ? this.parentSub.addNestedSub(this.onStateChange) : this.store.subscribe(this.onStateChange);\n\n this.listeners = createListenerCollection();\n }\n };\n\n Subscription.prototype.tryUnsubscribe = function tryUnsubscribe() {\n if (this.unsubscribe) {\n this.unsubscribe();\n this.unsubscribe = null;\n this.listeners.clear();\n this.listeners = nullListeners;\n }\n };\n\n return Subscription;\n}();\n\nexport { Subscription as default };","var hasOwn = Object.prototype.hasOwnProperty;\n\nfunction is(x, y) {\n if (x === y) {\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\n } else {\n return x !== x && y !== y;\n }\n}\n\nexport default function shallowEqual(objA, objB) {\n if (is(objA, objB)) return true;\n\n if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n return false;\n }\n\n var keysA = Object.keys(objA);\n var keysB = Object.keys(objB);\n\n if (keysA.length !== keysB.length) return false;\n\n for (var i = 0; i < keysA.length; i++) {\n if (!hasOwn.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {\n return false;\n }\n }\n\n return true;\n}","import isPlainObject from 'lodash-es/isPlainObject';\nimport warning from './warning';\n\nexport default function verifyPlainObject(value, displayName, methodName) {\n if (!isPlainObject(value)) {\n warning(methodName + '() in ' + displayName + ' must return a plain object. Instead received ' + value + '.');\n }\n}","/**\n * Prints a warning in the console if it exists.\n *\n * @param {String} message The warning message.\n * @returns {void}\n */\nexport default function warning(message) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(message);\n }\n /* eslint-enable no-console */\n try {\n // This error was thrown as a convenience so that if you enable\n // \"break on all exceptions\" in your console,\n // it would pause the execution at this line.\n throw new Error(message);\n /* eslint-disable no-empty */\n } catch (e) {}\n /* eslint-enable no-empty */\n}","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport warning from \"warning\";\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { createBrowserHistory as createHistory } from \"history\";\nimport Router from \"./Router\";\n\n/**\n * The public API for a <Router> that uses HTML5 history.\n */\n\nvar BrowserRouter = function (_React$Component) {\n _inherits(BrowserRouter, _React$Component);\n\n function BrowserRouter() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, BrowserRouter);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.history = createHistory(_this.props), _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n BrowserRouter.prototype.componentWillMount = function componentWillMount() {\n warning(!this.props.history, \"<BrowserRouter> ignores the history prop. To use a custom history, \" + \"use `import { Router }` instead of `import { BrowserRouter as Router }`.\");\n };\n\n BrowserRouter.prototype.render = function render() {\n return React.createElement(Router, { history: this.history, children: this.props.children });\n };\n\n return BrowserRouter;\n}(React.Component);\n\nBrowserRouter.propTypes = {\n basename: PropTypes.string,\n forceRefresh: PropTypes.bool,\n getUserConfirmation: PropTypes.func,\n keyLength: PropTypes.number,\n children: PropTypes.node\n};\n\n\nexport default BrowserRouter;","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport warning from \"warning\";\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { createHashHistory as createHistory } from \"history\";\nimport Router from \"./Router\";\n\n/**\n * The public API for a <Router> that uses window.location.hash.\n */\n\nvar HashRouter = function (_React$Component) {\n _inherits(HashRouter, _React$Component);\n\n function HashRouter() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, HashRouter);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.history = createHistory(_this.props), _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n HashRouter.prototype.componentWillMount = function componentWillMount() {\n warning(!this.props.history, \"<HashRouter> ignores the history prop. To use a custom history, \" + \"use `import { Router }` instead of `import { HashRouter as Router }`.\");\n };\n\n HashRouter.prototype.render = function render() {\n return React.createElement(Router, { history: this.history, children: this.props.children });\n };\n\n return HashRouter;\n}(React.Component);\n\nHashRouter.propTypes = {\n basename: PropTypes.string,\n getUserConfirmation: PropTypes.func,\n hashType: PropTypes.oneOf([\"hashbang\", \"noslash\", \"slash\"]),\n children: PropTypes.node\n};\n\n\nexport default HashRouter;","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport invariant from \"invariant\";\nimport { createLocation } from \"history\";\n\nvar isModifiedEvent = function isModifiedEvent(event) {\n return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);\n};\n\n/**\n * The public API for rendering a history-aware <a>.\n */\n\nvar Link = function (_React$Component) {\n _inherits(Link, _React$Component);\n\n function Link() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, Link);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.handleClick = function (event) {\n if (_this.props.onClick) _this.props.onClick(event);\n\n if (!event.defaultPrevented && // onClick prevented default\n event.button === 0 && // ignore everything but left clicks\n !_this.props.target && // let browser handle \"target=_blank\" etc.\n !isModifiedEvent(event) // ignore clicks with modifier keys\n ) {\n event.preventDefault();\n\n var history = _this.context.router.history;\n var _this$props = _this.props,\n replace = _this$props.replace,\n to = _this$props.to;\n\n\n if (replace) {\n history.replace(to);\n } else {\n history.push(to);\n }\n }\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n Link.prototype.render = function render() {\n var _props = this.props,\n replace = _props.replace,\n to = _props.to,\n innerRef = _props.innerRef,\n props = _objectWithoutProperties(_props, [\"replace\", \"to\", \"innerRef\"]); // eslint-disable-line no-unused-vars\n\n invariant(this.context.router, \"You should not use <Link> outside a <Router>\");\n\n invariant(to !== undefined, 'You must specify the \"to\" property');\n\n var history = this.context.router.history;\n\n var location = typeof to === \"string\" ? createLocation(to, null, null, history.location) : to;\n\n var href = history.createHref(location);\n return React.createElement(\"a\", _extends({}, props, { onClick: this.handleClick, href: href, ref: innerRef }));\n };\n\n return Link;\n}(React.Component);\n\nLink.propTypes = {\n onClick: PropTypes.func,\n target: PropTypes.string,\n replace: PropTypes.bool,\n to: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,\n innerRef: PropTypes.oneOfType([PropTypes.string, PropTypes.func])\n};\nLink.defaultProps = {\n replace: false\n};\nLink.contextTypes = {\n router: PropTypes.shape({\n history: PropTypes.shape({\n push: PropTypes.func.isRequired,\n replace: PropTypes.func.isRequired,\n createHref: PropTypes.func.isRequired\n }).isRequired\n }).isRequired\n};\n\n\nexport default Link;","// Written in this round about way for babel-transform-imports\nimport MemoryRouter from \"react-router/es/MemoryRouter\";\n\nexport default MemoryRouter;","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport Route from \"./Route\";\nimport Link from \"./Link\";\n\n/**\n * A <Link> wrapper that knows if it's \"active\" or not.\n */\nvar NavLink = function NavLink(_ref) {\n var to = _ref.to,\n exact = _ref.exact,\n strict = _ref.strict,\n location = _ref.location,\n activeClassName = _ref.activeClassName,\n className = _ref.className,\n activeStyle = _ref.activeStyle,\n style = _ref.style,\n getIsActive = _ref.isActive,\n ariaCurrent = _ref[\"aria-current\"],\n rest = _objectWithoutProperties(_ref, [\"to\", \"exact\", \"strict\", \"location\", \"activeClassName\", \"className\", \"activeStyle\", \"style\", \"isActive\", \"aria-current\"]);\n\n var path = (typeof to === \"undefined\" ? \"undefined\" : _typeof(to)) === \"object\" ? to.pathname : to;\n\n // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202\n var escapedPath = path && path.replace(/([.+*?=^!:${}()[\\]|/\\\\])/g, \"\\\\$1\");\n\n return React.createElement(Route, {\n path: escapedPath,\n exact: exact,\n strict: strict,\n location: location,\n children: function children(_ref2) {\n var location = _ref2.location,\n match = _ref2.match;\n\n var isActive = !!(getIsActive ? getIsActive(match, location) : match);\n\n return React.createElement(Link, _extends({\n to: to,\n className: isActive ? [className, activeClassName].filter(function (i) {\n return i;\n }).join(\" \") : className,\n style: isActive ? _extends({}, style, activeStyle) : style,\n \"aria-current\": isActive && ariaCurrent || null\n }, rest));\n }\n });\n};\n\nNavLink.propTypes = {\n to: Link.propTypes.to,\n exact: PropTypes.bool,\n strict: PropTypes.bool,\n location: PropTypes.object,\n activeClassName: PropTypes.string,\n className: PropTypes.string,\n activeStyle: PropTypes.object,\n style: PropTypes.object,\n isActive: PropTypes.func,\n \"aria-current\": PropTypes.oneOf([\"page\", \"step\", \"location\", \"date\", \"time\", \"true\"])\n};\n\nNavLink.defaultProps = {\n activeClassName: \"active\",\n \"aria-current\": \"page\"\n};\n\nexport default NavLink;","// Written in this round about way for babel-transform-imports\nimport Prompt from \"react-router/es/Prompt\";\n\nexport default Prompt;","// Written in this round about way for babel-transform-imports\nimport Redirect from \"react-router/es/Redirect\";\n\nexport default Redirect;","// Written in this round about way for babel-transform-imports\nimport Route from \"react-router/es/Route\";\n\nexport default Route;","// Written in this round about way for babel-transform-imports\nimport Router from \"react-router/es/Router\";\n\nexport default Router;","// Written in this round about way for babel-transform-imports\nimport StaticRouter from \"react-router/es/StaticRouter\";\n\nexport default StaticRouter;","// Written in this round about way for babel-transform-imports\nimport Switch from \"react-router/es/Switch\";\n\nexport default Switch;","// Written in this round about way for babel-transform-imports\nimport generatePath from \"react-router/es/generatePath\";\n\nexport default generatePath;","import _BrowserRouter from \"./BrowserRouter\";\nexport { _BrowserRouter as BrowserRouter };\nimport _HashRouter from \"./HashRouter\";\nexport { _HashRouter as HashRouter };\nimport _Link from \"./Link\";\nexport { _Link as Link };\nimport _MemoryRouter from \"./MemoryRouter\";\nexport { _MemoryRouter as MemoryRouter };\nimport _NavLink from \"./NavLink\";\nexport { _NavLink as NavLink };\nimport _Prompt from \"./Prompt\";\nexport { _Prompt as Prompt };\nimport _Redirect from \"./Redirect\";\nexport { _Redirect as Redirect };\nimport _Route from \"./Route\";\nexport { _Route as Route };\nimport _Router from \"./Router\";\nexport { _Router as Router };\nimport _StaticRouter from \"./StaticRouter\";\nexport { _StaticRouter as StaticRouter };\nimport _Switch from \"./Switch\";\nexport { _Switch as Switch };\nimport _generatePath from \"./generatePath\";\nexport { _generatePath as generatePath };\nimport _matchPath from \"./matchPath\";\nexport { _matchPath as matchPath };\nimport _withRouter from \"./withRouter\";\nexport { _withRouter as withRouter };","// Written in this round about way for babel-transform-imports\nimport matchPath from \"react-router/es/matchPath\";\n\nexport default matchPath;","// Written in this round about way for babel-transform-imports\nimport withRouter from \"react-router/es/withRouter\";\n\nexport default withRouter;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar invariant = function(condition, format, a, b, c, d, e, f) {\n if (process.env.NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() { return args[argIndex++]; })\n );\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\n\nmodule.exports = invariant;\n","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport warning from \"warning\";\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { createMemoryHistory as createHistory } from \"history\";\nimport Router from \"./Router\";\n\n/**\n * The public API for a <Router> that stores location in memory.\n */\n\nvar MemoryRouter = function (_React$Component) {\n _inherits(MemoryRouter, _React$Component);\n\n function MemoryRouter() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, MemoryRouter);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.history = createHistory(_this.props), _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n MemoryRouter.prototype.componentWillMount = function componentWillMount() {\n warning(!this.props.history, \"<MemoryRouter> ignores the history prop. To use a custom history, \" + \"use `import { Router }` instead of `import { MemoryRouter as Router }`.\");\n };\n\n MemoryRouter.prototype.render = function render() {\n return React.createElement(Router, { history: this.history, children: this.props.children });\n };\n\n return MemoryRouter;\n}(React.Component);\n\nMemoryRouter.propTypes = {\n initialEntries: PropTypes.array,\n initialIndex: PropTypes.number,\n getUserConfirmation: PropTypes.func,\n keyLength: PropTypes.number,\n children: PropTypes.node\n};\n\n\nexport default MemoryRouter;","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport invariant from \"invariant\";\n\n/**\n * The public API for prompting the user before navigating away\n * from a screen with a component.\n */\n\nvar Prompt = function (_React$Component) {\n _inherits(Prompt, _React$Component);\n\n function Prompt() {\n _classCallCheck(this, Prompt);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n Prompt.prototype.enable = function enable(message) {\n if (this.unblock) this.unblock();\n\n this.unblock = this.context.router.history.block(message);\n };\n\n Prompt.prototype.disable = function disable() {\n if (this.unblock) {\n this.unblock();\n this.unblock = null;\n }\n };\n\n Prompt.prototype.componentWillMount = function componentWillMount() {\n invariant(this.context.router, \"You should not use <Prompt> outside a <Router>\");\n\n if (this.props.when) this.enable(this.props.message);\n };\n\n Prompt.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (nextProps.when) {\n if (!this.props.when || this.props.message !== nextProps.message) this.enable(nextProps.message);\n } else {\n this.disable();\n }\n };\n\n Prompt.prototype.componentWillUnmount = function componentWillUnmount() {\n this.disable();\n };\n\n Prompt.prototype.render = function render() {\n return null;\n };\n\n return Prompt;\n}(React.Component);\n\nPrompt.propTypes = {\n when: PropTypes.bool,\n message: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired\n};\nPrompt.defaultProps = {\n when: true\n};\nPrompt.contextTypes = {\n router: PropTypes.shape({\n history: PropTypes.shape({\n block: PropTypes.func.isRequired\n }).isRequired\n }).isRequired\n};\n\n\nexport default Prompt;","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport warning from \"warning\";\nimport invariant from \"invariant\";\nimport { createLocation, locationsAreEqual } from \"history\";\nimport generatePath from \"./generatePath\";\n\n/**\n * The public API for updating the location programmatically\n * with a component.\n */\n\nvar Redirect = function (_React$Component) {\n _inherits(Redirect, _React$Component);\n\n function Redirect() {\n _classCallCheck(this, Redirect);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n Redirect.prototype.isStatic = function isStatic() {\n return this.context.router && this.context.router.staticContext;\n };\n\n Redirect.prototype.componentWillMount = function componentWillMount() {\n invariant(this.context.router, \"You should not use <Redirect> outside a <Router>\");\n\n if (this.isStatic()) this.perform();\n };\n\n Redirect.prototype.componentDidMount = function componentDidMount() {\n if (!this.isStatic()) this.perform();\n };\n\n Redirect.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {\n var prevTo = createLocation(prevProps.to);\n var nextTo = createLocation(this.props.to);\n\n if (locationsAreEqual(prevTo, nextTo)) {\n warning(false, \"You tried to redirect to the same route you're currently on: \" + (\"\\\"\" + nextTo.pathname + nextTo.search + \"\\\"\"));\n return;\n }\n\n this.perform();\n };\n\n Redirect.prototype.computeTo = function computeTo(_ref) {\n var computedMatch = _ref.computedMatch,\n to = _ref.to;\n\n if (computedMatch) {\n if (typeof to === \"string\") {\n return generatePath(to, computedMatch.params);\n } else {\n return _extends({}, to, {\n pathname: generatePath(to.pathname, computedMatch.params)\n });\n }\n }\n\n return to;\n };\n\n Redirect.prototype.perform = function perform() {\n var history = this.context.router.history;\n var push = this.props.push;\n\n var to = this.computeTo(this.props);\n\n if (push) {\n history.push(to);\n } else {\n history.replace(to);\n }\n };\n\n Redirect.prototype.render = function render() {\n return null;\n };\n\n return Redirect;\n}(React.Component);\n\nRedirect.propTypes = {\n computedMatch: PropTypes.object, // private, from <Switch>\n push: PropTypes.bool,\n from: PropTypes.string,\n to: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired\n};\nRedirect.defaultProps = {\n push: false\n};\nRedirect.contextTypes = {\n router: PropTypes.shape({\n history: PropTypes.shape({\n push: PropTypes.func.isRequired,\n replace: PropTypes.func.isRequired\n }).isRequired,\n staticContext: PropTypes.object\n }).isRequired\n};\n\n\nexport default Redirect;","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport warning from \"warning\";\nimport invariant from \"invariant\";\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport matchPath from \"./matchPath\";\n\nvar isEmptyChildren = function isEmptyChildren(children) {\n return React.Children.count(children) === 0;\n};\n\n/**\n * The public API for matching a single path and rendering.\n */\n\nvar Route = function (_React$Component) {\n _inherits(Route, _React$Component);\n\n function Route() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, Route);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {\n match: _this.computeMatch(_this.props, _this.context.router)\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n Route.prototype.getChildContext = function getChildContext() {\n return {\n router: _extends({}, this.context.router, {\n route: {\n location: this.props.location || this.context.router.route.location,\n match: this.state.match\n }\n })\n };\n };\n\n Route.prototype.computeMatch = function computeMatch(_ref, router) {\n var computedMatch = _ref.computedMatch,\n location = _ref.location,\n path = _ref.path,\n strict = _ref.strict,\n exact = _ref.exact,\n sensitive = _ref.sensitive;\n\n if (computedMatch) return computedMatch; // <Switch> already computed the match for us\n\n invariant(router, \"You should not use <Route> or withRouter() outside a <Router>\");\n\n var route = router.route;\n\n var pathname = (location || route.location).pathname;\n\n return matchPath(pathname, { path: path, strict: strict, exact: exact, sensitive: sensitive }, route.match);\n };\n\n Route.prototype.componentWillMount = function componentWillMount() {\n warning(!(this.props.component && this.props.render), \"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored\");\n\n warning(!(this.props.component && this.props.children && !isEmptyChildren(this.props.children)), \"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored\");\n\n warning(!(this.props.render && this.props.children && !isEmptyChildren(this.props.children)), \"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored\");\n };\n\n Route.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps, nextContext) {\n warning(!(nextProps.location && !this.props.location), '<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no \"location\" prop and then provided one on a subsequent render.');\n\n warning(!(!nextProps.location && this.props.location), '<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a \"location\" prop initially but omitted it on a subsequent render.');\n\n this.setState({\n match: this.computeMatch(nextProps, nextContext.router)\n });\n };\n\n Route.prototype.render = function render() {\n var match = this.state.match;\n var _props = this.props,\n children = _props.children,\n component = _props.component,\n render = _props.render;\n var _context$router = this.context.router,\n history = _context$router.history,\n route = _context$router.route,\n staticContext = _context$router.staticContext;\n\n var location = this.props.location || route.location;\n var props = { match: match, location: location, history: history, staticContext: staticContext };\n\n if (component) return match ? React.createElement(component, props) : null;\n\n if (render) return match ? render(props) : null;\n\n if (typeof children === \"function\") return children(props);\n\n if (children && !isEmptyChildren(children)) return React.Children.only(children);\n\n return null;\n };\n\n return Route;\n}(React.Component);\n\nRoute.propTypes = {\n computedMatch: PropTypes.object, // private, from <Switch>\n path: PropTypes.string,\n exact: PropTypes.bool,\n strict: PropTypes.bool,\n sensitive: PropTypes.bool,\n component: PropTypes.func,\n render: PropTypes.func,\n children: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),\n location: PropTypes.object\n};\nRoute.contextTypes = {\n router: PropTypes.shape({\n history: PropTypes.object.isRequired,\n route: PropTypes.object.isRequired,\n staticContext: PropTypes.object\n })\n};\nRoute.childContextTypes = {\n router: PropTypes.object.isRequired\n};\n\n\nexport default Route;","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport warning from \"warning\";\nimport invariant from \"invariant\";\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\n\n/**\n * The public API for putting history on context.\n */\n\nvar Router = function (_React$Component) {\n _inherits(Router, _React$Component);\n\n function Router() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, Router);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {\n match: _this.computeMatch(_this.props.history.location.pathname)\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n Router.prototype.getChildContext = function getChildContext() {\n return {\n router: _extends({}, this.context.router, {\n history: this.props.history,\n route: {\n location: this.props.history.location,\n match: this.state.match\n }\n })\n };\n };\n\n Router.prototype.computeMatch = function computeMatch(pathname) {\n return {\n path: \"/\",\n url: \"/\",\n params: {},\n isExact: pathname === \"/\"\n };\n };\n\n Router.prototype.componentWillMount = function componentWillMount() {\n var _this2 = this;\n\n var _props = this.props,\n children = _props.children,\n history = _props.history;\n\n\n invariant(children == null || React.Children.count(children) === 1, \"A <Router> may have only one child element\");\n\n // Do this here so we can setState when a <Redirect> changes the\n // location in componentWillMount. This happens e.g. when doing\n // server rendering using a <StaticRouter>.\n this.unlisten = history.listen(function () {\n _this2.setState({\n match: _this2.computeMatch(history.location.pathname)\n });\n });\n };\n\n Router.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n warning(this.props.history === nextProps.history, \"You cannot change <Router history>\");\n };\n\n Router.prototype.componentWillUnmount = function componentWillUnmount() {\n this.unlisten();\n };\n\n Router.prototype.render = function render() {\n var children = this.props.children;\n\n return children ? React.Children.only(children) : null;\n };\n\n return Router;\n}(React.Component);\n\nRouter.propTypes = {\n history: PropTypes.object.isRequired,\n children: PropTypes.node\n};\nRouter.contextTypes = {\n router: PropTypes.object\n};\nRouter.childContextTypes = {\n router: PropTypes.object.isRequired\n};\n\n\nexport default Router;","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport warning from \"warning\";\nimport invariant from \"invariant\";\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { createLocation, createPath } from \"history\";\nimport Router from \"./Router\";\n\nvar addLeadingSlash = function addLeadingSlash(path) {\n return path.charAt(0) === \"/\" ? path : \"/\" + path;\n};\n\nvar addBasename = function addBasename(basename, location) {\n if (!basename) return location;\n\n return _extends({}, location, {\n pathname: addLeadingSlash(basename) + location.pathname\n });\n};\n\nvar stripBasename = function stripBasename(basename, location) {\n if (!basename) return location;\n\n var base = addLeadingSlash(basename);\n\n if (location.pathname.indexOf(base) !== 0) return location;\n\n return _extends({}, location, {\n pathname: location.pathname.substr(base.length)\n });\n};\n\nvar createURL = function createURL(location) {\n return typeof location === \"string\" ? location : createPath(location);\n};\n\nvar staticHandler = function staticHandler(methodName) {\n return function () {\n invariant(false, \"You cannot %s with <StaticRouter>\", methodName);\n };\n};\n\nvar noop = function noop() {};\n\n/**\n * The public top-level API for a \"static\" <Router>, so-called because it\n * can't actually change the current location. Instead, it just records\n * location changes in a context object. Useful mainly in testing and\n * server-rendering scenarios.\n */\n\nvar StaticRouter = function (_React$Component) {\n _inherits(StaticRouter, _React$Component);\n\n function StaticRouter() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, StaticRouter);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.createHref = function (path) {\n return addLeadingSlash(_this.props.basename + createURL(path));\n }, _this.handlePush = function (location) {\n var _this$props = _this.props,\n basename = _this$props.basename,\n context = _this$props.context;\n\n context.action = \"PUSH\";\n context.location = addBasename(basename, createLocation(location));\n context.url = createURL(context.location);\n }, _this.handleReplace = function (location) {\n var _this$props2 = _this.props,\n basename = _this$props2.basename,\n context = _this$props2.context;\n\n context.action = \"REPLACE\";\n context.location = addBasename(basename, createLocation(location));\n context.url = createURL(context.location);\n }, _this.handleListen = function () {\n return noop;\n }, _this.handleBlock = function () {\n return noop;\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n StaticRouter.prototype.getChildContext = function getChildContext() {\n return {\n router: {\n staticContext: this.props.context\n }\n };\n };\n\n StaticRouter.prototype.componentWillMount = function componentWillMount() {\n warning(!this.props.history, \"<StaticRouter> ignores the history prop. To use a custom history, \" + \"use `import { Router }` instead of `import { StaticRouter as Router }`.\");\n };\n\n StaticRouter.prototype.render = function render() {\n var _props = this.props,\n basename = _props.basename,\n context = _props.context,\n location = _props.location,\n props = _objectWithoutProperties(_props, [\"basename\", \"context\", \"location\"]);\n\n var history = {\n createHref: this.createHref,\n action: \"POP\",\n location: stripBasename(basename, createLocation(location)),\n push: this.handlePush,\n replace: this.handleReplace,\n go: staticHandler(\"go\"),\n goBack: staticHandler(\"goBack\"),\n goForward: staticHandler(\"goForward\"),\n listen: this.handleListen,\n block: this.handleBlock\n };\n\n return React.createElement(Router, _extends({}, props, { history: history }));\n };\n\n return StaticRouter;\n}(React.Component);\n\nStaticRouter.propTypes = {\n basename: PropTypes.string,\n context: PropTypes.object.isRequired,\n location: PropTypes.oneOfType([PropTypes.string, PropTypes.object])\n};\nStaticRouter.defaultProps = {\n basename: \"\",\n location: \"/\"\n};\nStaticRouter.childContextTypes = {\n router: PropTypes.object.isRequired\n};\n\n\nexport default StaticRouter;","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport warning from \"warning\";\nimport invariant from \"invariant\";\nimport matchPath from \"./matchPath\";\n\n/**\n * The public API for rendering the first <Route> that matches.\n */\n\nvar Switch = function (_React$Component) {\n _inherits(Switch, _React$Component);\n\n function Switch() {\n _classCallCheck(this, Switch);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n Switch.prototype.componentWillMount = function componentWillMount() {\n invariant(this.context.router, \"You should not use <Switch> outside a <Router>\");\n };\n\n Switch.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n warning(!(nextProps.location && !this.props.location), '<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no \"location\" prop and then provided one on a subsequent render.');\n\n warning(!(!nextProps.location && this.props.location), '<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a \"location\" prop initially but omitted it on a subsequent render.');\n };\n\n Switch.prototype.render = function render() {\n var route = this.context.router.route;\n var children = this.props.children;\n\n var location = this.props.location || route.location;\n\n var match = void 0,\n child = void 0;\n React.Children.forEach(children, function (element) {\n if (match == null && React.isValidElement(element)) {\n var _element$props = element.props,\n pathProp = _element$props.path,\n exact = _element$props.exact,\n strict = _element$props.strict,\n sensitive = _element$props.sensitive,\n from = _element$props.from;\n\n var path = pathProp || from;\n\n child = element;\n match = matchPath(location.pathname, { path: path, exact: exact, strict: strict, sensitive: sensitive }, route.match);\n }\n });\n\n return match ? React.cloneElement(child, { location: location, computedMatch: match }) : null;\n };\n\n return Switch;\n}(React.Component);\n\nSwitch.contextTypes = {\n router: PropTypes.shape({\n route: PropTypes.object.isRequired\n }).isRequired\n};\nSwitch.propTypes = {\n children: PropTypes.node,\n location: PropTypes.object\n};\n\n\nexport default Switch;","import pathToRegexp from \"path-to-regexp\";\n\nvar patternCache = {};\nvar cacheLimit = 10000;\nvar cacheCount = 0;\n\nvar compileGenerator = function compileGenerator(pattern) {\n var cacheKey = pattern;\n var cache = patternCache[cacheKey] || (patternCache[cacheKey] = {});\n\n if (cache[pattern]) return cache[pattern];\n\n var compiledGenerator = pathToRegexp.compile(pattern);\n\n if (cacheCount < cacheLimit) {\n cache[pattern] = compiledGenerator;\n cacheCount++;\n }\n\n return compiledGenerator;\n};\n\n/**\n * Public API for generating a URL pathname from a pattern and parameters.\n */\nvar generatePath = function generatePath() {\n var pattern = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"/\";\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (pattern === \"/\") {\n return pattern;\n }\n var generator = compileGenerator(pattern);\n return generator(params, { pretty: true });\n};\n\nexport default generatePath;","import pathToRegexp from \"path-to-regexp\";\n\nvar patternCache = {};\nvar cacheLimit = 10000;\nvar cacheCount = 0;\n\nvar compilePath = function compilePath(pattern, options) {\n var cacheKey = \"\" + options.end + options.strict + options.sensitive;\n var cache = patternCache[cacheKey] || (patternCache[cacheKey] = {});\n\n if (cache[pattern]) return cache[pattern];\n\n var keys = [];\n var re = pathToRegexp(pattern, keys, options);\n var compiledPattern = { re: re, keys: keys };\n\n if (cacheCount < cacheLimit) {\n cache[pattern] = compiledPattern;\n cacheCount++;\n }\n\n return compiledPattern;\n};\n\n/**\n * Public API for matching a URL pathname to a path pattern.\n */\nvar matchPath = function matchPath(pathname) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var parent = arguments[2];\n\n if (typeof options === \"string\") options = { path: options };\n\n var _options = options,\n path = _options.path,\n _options$exact = _options.exact,\n exact = _options$exact === undefined ? false : _options$exact,\n _options$strict = _options.strict,\n strict = _options$strict === undefined ? false : _options$strict,\n _options$sensitive = _options.sensitive,\n sensitive = _options$sensitive === undefined ? false : _options$sensitive;\n\n\n if (path == null) return parent;\n\n var _compilePath = compilePath(path, { end: exact, strict: strict, sensitive: sensitive }),\n re = _compilePath.re,\n keys = _compilePath.keys;\n\n var match = re.exec(pathname);\n\n if (!match) return null;\n\n var url = match[0],\n values = match.slice(1);\n\n var isExact = pathname === url;\n\n if (exact && !isExact) return null;\n\n return {\n path: path, // the path pattern used to match\n url: path === \"/\" && url === \"\" ? \"/\" : url, // the matched portion of the URL\n isExact: isExact, // whether or not we matched exactly\n params: keys.reduce(function (memo, key, index) {\n memo[key.name] = values[index];\n return memo;\n }, {})\n };\n};\n\nexport default matchPath;","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport hoistStatics from \"hoist-non-react-statics\";\nimport Route from \"./Route\";\n\n/**\n * A public higher-order component to access the imperative API\n */\nvar withRouter = function withRouter(Component) {\n var C = function C(props) {\n var wrappedComponentRef = props.wrappedComponentRef,\n remainingProps = _objectWithoutProperties(props, [\"wrappedComponentRef\"]);\n\n return React.createElement(Route, {\n children: function children(routeComponentProps) {\n return React.createElement(Component, _extends({}, remainingProps, routeComponentProps, {\n ref: wrappedComponentRef\n }));\n }\n });\n };\n\n C.displayName = \"withRouter(\" + (Component.displayName || Component.name) + \")\";\n C.WrappedComponent = Component;\n C.propTypes = {\n wrappedComponentRef: PropTypes.func\n };\n\n return hoistStatics(C, Component);\n};\n\nexport default withRouter;","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar __DEV__ = process.env.NODE_ENV !== 'production';\n\nvar warning = function() {};\n\nif (__DEV__) {\n var printWarning = function printWarning(format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n var argIndex = 0;\n var message = 'Warning: ' +\n format.replace(/%s/g, function() {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n }\n\n warning = function(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n if (format === undefined) {\n throw new Error(\n '`warning(condition, format, ...args)` requires a warning ' +\n 'message argument'\n );\n }\n if (!condition) {\n printWarning.apply(null, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;\n","/** @license React v16.8.3\n * react.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar _assign = require('object-assign');\nvar checkPropTypes = require('prop-types/checkPropTypes');\n\n// TODO: this is special because it gets imported during build.\n\nvar ReactVersion = '16.8.3';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\n\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;\n\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\n\nvar MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\n\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n return null;\n}\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function () {};\n\n{\n validateFormat = function (format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error = void 0;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n\n// Relying on the `invariant()` implementation lets us\n// preserve the format and params in the www builds.\n\n/**\n * Forked from fbjs/warning:\n * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js\n *\n * Only change is we use console.warn instead of console.error,\n * and do nothing when 'console' is not supported.\n * This really simplifies the code.\n * ---\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar lowPriorityWarning = function () {};\n\n{\n var printWarning = function (format) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.warn(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n lowPriorityWarning = function (condition, format) {\n if (format === undefined) {\n throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n if (!condition) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(undefined, [format].concat(args));\n }\n };\n}\n\nvar lowPriorityWarning$1 = lowPriorityWarning;\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warningWithoutStack = function () {};\n\n{\n warningWithoutStack = function (condition, format) {\n for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n if (format === undefined) {\n throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n if (args.length > 8) {\n // Check before the condition to catch violations early.\n throw new Error('warningWithoutStack() currently supports at most 8 arguments.');\n }\n if (condition) {\n return;\n }\n if (typeof console !== 'undefined') {\n var argsWithFormat = args.map(function (item) {\n return '' + item;\n });\n argsWithFormat.unshift('Warning: ' + format);\n\n // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n Function.prototype.apply.call(console.error, console, argsWithFormat);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nvar warningWithoutStack$1 = warningWithoutStack;\n\nvar didWarnStateUpdateForUnmountedComponent = {};\n\nfunction warnNoop(publicInstance, callerName) {\n {\n var _constructor = publicInstance.constructor;\n var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';\n var warningKey = componentName + '.' + callerName;\n if (didWarnStateUpdateForUnmountedComponent[warningKey]) {\n return;\n }\n warningWithoutStack$1(false, \"Can't call %s on a component that is not yet mounted. \" + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);\n didWarnStateUpdateForUnmountedComponent[warningKey] = true;\n }\n}\n\n/**\n * This is the abstract API for an update queue.\n */\nvar ReactNoopUpdateQueue = {\n /**\n * Checks whether or not this composite component is mounted.\n * @param {ReactClass} publicInstance The instance we want to test.\n * @return {boolean} True if mounted, false otherwise.\n * @protected\n * @final\n */\n isMounted: function (publicInstance) {\n return false;\n },\n\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueForceUpdate: function (publicInstance, callback, callerName) {\n warnNoop(publicInstance, 'forceUpdate');\n },\n\n /**\n * Replaces all of the state. Always use this or `setState` to mutate state.\n * You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} completeState Next state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {\n warnNoop(publicInstance, 'replaceState');\n },\n\n /**\n * Sets a subset of the state. This only exists because _pendingState is\n * internal. This provides a merging strategy that is not available to deep\n * properties which is confusing. TODO: Expose pendingState or don't use it\n * during the merge.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} partialState Next partial state to be merged with state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} Name of the calling function in the public API.\n * @internal\n */\n enqueueSetState: function (publicInstance, partialState, callback, callerName) {\n warnNoop(publicInstance, 'setState');\n }\n};\n\nvar emptyObject = {};\n{\n Object.freeze(emptyObject);\n}\n\n/**\n * Base class helpers for the updating state of a component.\n */\nfunction Component(props, context, updater) {\n this.props = props;\n this.context = context;\n // If a component has string refs, we will assign a different object later.\n this.refs = emptyObject;\n // We initialize the default updater but the real one gets injected by the\n // renderer.\n this.updater = updater || ReactNoopUpdateQueue;\n}\n\nComponent.prototype.isReactComponent = {};\n\n/**\n * Sets a subset of the state. Always use this to mutate\n * state. You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * There is no guarantee that calls to `setState` will run synchronously,\n * as they may eventually be batched together. You can provide an optional\n * callback that will be executed when the call to setState is actually\n * completed.\n *\n * When a function is provided to setState, it will be called at some point in\n * the future (not synchronously). It will be called with the up to date\n * component arguments (state, props, context). These values can be different\n * from this.* because your function may be called after receiveProps but before\n * shouldComponentUpdate, and this new state, props, and context will not yet be\n * assigned to this.\n *\n * @param {object|function} partialState Next partial state or function to\n * produce next partial state to be merged with current state.\n * @param {?function} callback Called after state is updated.\n * @final\n * @protected\n */\nComponent.prototype.setState = function (partialState, callback) {\n !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : void 0;\n this.updater.enqueueSetState(this, partialState, callback, 'setState');\n};\n\n/**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {?function} callback Called after update is complete.\n * @final\n * @protected\n */\nComponent.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');\n};\n\n/**\n * Deprecated APIs. These APIs used to exist on classic React classes but since\n * we would like to deprecate them, we're not going to move them over to this\n * modern base class. Instead, we define a getter that warns if it's accessed.\n */\n{\n var deprecatedAPIs = {\n isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],\n replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']\n };\n var defineDeprecationWarning = function (methodName, info) {\n Object.defineProperty(Component.prototype, methodName, {\n get: function () {\n lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);\n return undefined;\n }\n });\n };\n for (var fnName in deprecatedAPIs) {\n if (deprecatedAPIs.hasOwnProperty(fnName)) {\n defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n }\n }\n}\n\nfunction ComponentDummy() {}\nComponentDummy.prototype = Component.prototype;\n\n/**\n * Convenience component with default shallow equality check for sCU.\n */\nfunction PureComponent(props, context, updater) {\n this.props = props;\n this.context = context;\n // If a component has string refs, we will assign a different object later.\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n}\n\nvar pureComponentPrototype = PureComponent.prototype = new ComponentDummy();\npureComponentPrototype.constructor = PureComponent;\n// Avoid an extra prototype jump for these methods.\n_assign(pureComponentPrototype, Component.prototype);\npureComponentPrototype.isPureReactComponent = true;\n\n// an immutable object with a single mutable value\nfunction createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n}\n\n/**\n * Keeps track of the current dispatcher.\n */\nvar ReactCurrentDispatcher = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n};\n\n/**\n * Keeps track of the current owner.\n *\n * The current owner is the component who should own any components that are\n * currently being constructed.\n */\nvar ReactCurrentOwner = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n};\n\nvar BEFORE_SLASH_RE = /^(.*)[\\\\\\/]/;\n\nvar describeComponentFrame = function (name, source, ownerName) {\n var sourceInfo = '';\n if (source) {\n var path = source.fileName;\n var fileName = path.replace(BEFORE_SLASH_RE, '');\n {\n // In DEV, include code for a common special case:\n // prefer \"folder/index.js\" instead of just \"index.js\".\n if (/^index\\./.test(fileName)) {\n var match = path.match(BEFORE_SLASH_RE);\n if (match) {\n var pathBeforeSlash = match[1];\n if (pathBeforeSlash) {\n var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');\n fileName = folderName + '/' + fileName;\n }\n }\n }\n }\n sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';\n } else if (ownerName) {\n sourceInfo = ' (created by ' + ownerName + ')';\n }\n return '\\n in ' + (name || 'Unknown') + sourceInfo;\n};\n\nvar Resolved = 1;\n\n\nfunction refineResolvedLazyComponent(lazyComponent) {\n return lazyComponent._status === Resolved ? lazyComponent._result : null;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var functionName = innerType.displayName || innerType.name || '';\n return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);\n}\n\nfunction getComponentName(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n {\n if (typeof type.tag === 'number') {\n warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n if (typeof type === 'string') {\n return type;\n }\n switch (type) {\n case REACT_CONCURRENT_MODE_TYPE:\n return 'ConcurrentMode';\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n case REACT_PORTAL_TYPE:\n return 'Portal';\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n }\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n return 'Context.Consumer';\n case REACT_PROVIDER_TYPE:\n return 'Context.Provider';\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n case REACT_MEMO_TYPE:\n return getComponentName(type.type);\n case REACT_LAZY_TYPE:\n {\n var thenable = type;\n var resolvedThenable = refineResolvedLazyComponent(thenable);\n if (resolvedThenable) {\n return getComponentName(resolvedThenable);\n }\n }\n }\n }\n return null;\n}\n\nvar ReactDebugCurrentFrame = {};\n\nvar currentlyValidatingElement = null;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n currentlyValidatingElement = element;\n }\n}\n\n{\n // Stack implementation injected by the current renderer.\n ReactDebugCurrentFrame.getCurrentStack = null;\n\n ReactDebugCurrentFrame.getStackAddendum = function () {\n var stack = '';\n\n // Add an extra top frame while an element is being validated\n if (currentlyValidatingElement) {\n var name = getComponentName(currentlyValidatingElement.type);\n var owner = currentlyValidatingElement._owner;\n stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));\n }\n\n // Delegate to the injected renderer-specific implementation\n var impl = ReactDebugCurrentFrame.getCurrentStack;\n if (impl) {\n stack += impl() || '';\n }\n\n return stack;\n };\n}\n\nvar ReactSharedInternals = {\n ReactCurrentDispatcher: ReactCurrentDispatcher,\n ReactCurrentOwner: ReactCurrentOwner,\n // Used by renderers to avoid bundling object-assign twice in UMD bundles:\n assign: _assign\n};\n\n{\n _assign(ReactSharedInternals, {\n // These should not be included in production.\n ReactDebugCurrentFrame: ReactDebugCurrentFrame,\n // Shim for React DOM 16.0.0 which still destructured (but not used) this.\n // TODO: remove in React 17.0.\n ReactComponentTreeHook: {}\n });\n}\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = warningWithoutStack$1;\n\n{\n warning = function (condition, format) {\n if (condition) {\n return;\n }\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n // eslint-disable-next-line react-internal/warning-and-invariant-args\n\n for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));\n };\n}\n\nvar warning$1 = warning;\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\n\nvar specialPropKeyWarningShown = void 0;\nvar specialPropRefWarningShown = void 0;\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.key !== undefined;\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n warningWithoutStack$1(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);\n }\n };\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n warningWithoutStack$1(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);\n }\n };\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n}\n\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, no instanceof check\n * will work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} key\n * @param {string|object} ref\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @param {*} owner\n * @param {*} props\n * @internal\n */\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {};\n\n // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n });\n // self and source are DEV only properties.\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n });\n // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n\n/**\n * Create and return a new ReactElement of the given type.\n * See https://reactjs.org/docs/react-api.html#createelement\n */\nfunction createElement(type, config, children) {\n var propName = void 0;\n\n // Reserved names are extracted\n var props = {};\n\n var key = null;\n var ref = null;\n var self = null;\n var source = null;\n\n if (config != null) {\n if (hasValidRef(config)) {\n ref = config.ref;\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n }\n\n self = config.__self === undefined ? null : config.__self;\n source = config.__source === undefined ? null : config.__source;\n // Remaining properties are added to a new props object\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n }\n }\n\n // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n {\n if (Object.freeze) {\n Object.freeze(childArray);\n }\n }\n props.children = childArray;\n }\n\n // Resolve default props\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n {\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n }\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n}\n\n/**\n * Return a function that produces ReactElements of a given type.\n * See https://reactjs.org/docs/react-api.html#createfactory\n */\n\n\nfunction cloneAndReplaceKey(oldElement, newKey) {\n var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);\n\n return newElement;\n}\n\n/**\n * Clone and return a new ReactElement using element as the starting point.\n * See https://reactjs.org/docs/react-api.html#cloneelement\n */\nfunction cloneElement(element, config, children) {\n !!(element === null || element === undefined) ? invariant(false, 'React.cloneElement(...): The argument must be a React element, but you passed %s.', element) : void 0;\n\n var propName = void 0;\n\n // Original props are copied\n var props = _assign({}, element.props);\n\n // Reserved names are extracted\n var key = element.key;\n var ref = element.ref;\n // Self is preserved since the owner is preserved.\n var self = element._self;\n // Source is preserved since cloneElement is unlikely to be targeted by a\n // transpiler, and the original source is probably a better indicator of the\n // true owner.\n var source = element._source;\n\n // Owner will be preserved, unless ref is overridden\n var owner = element._owner;\n\n if (config != null) {\n if (hasValidRef(config)) {\n // Silently steal the ref from the parent.\n ref = config.ref;\n owner = ReactCurrentOwner.current;\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n }\n\n // Remaining properties override existing props\n var defaultProps = void 0;\n if (element.type && element.type.defaultProps) {\n defaultProps = element.type.defaultProps;\n }\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n if (config[propName] === undefined && defaultProps !== undefined) {\n // Resolve default props\n props[propName] = defaultProps[propName];\n } else {\n props[propName] = config[propName];\n }\n }\n }\n }\n\n // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n props.children = childArray;\n }\n\n return ReactElement(element.type, key, ref, self, source, owner, props);\n}\n\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\nfunction isValidElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\n\nvar SEPARATOR = '.';\nvar SUBSEPARATOR = ':';\n\n/**\n * Escape and wrap key so it is safe to use as a reactid\n *\n * @param {string} key to be escaped.\n * @return {string} the escaped key.\n */\nfunction escape(key) {\n var escapeRegex = /[=:]/g;\n var escaperLookup = {\n '=': '=0',\n ':': '=2'\n };\n var escapedString = ('' + key).replace(escapeRegex, function (match) {\n return escaperLookup[match];\n });\n\n return '$' + escapedString;\n}\n\n/**\n * TODO: Test that a single child and an array with one item have the same key\n * pattern.\n */\n\nvar didWarnAboutMaps = false;\n\nvar userProvidedKeyEscapeRegex = /\\/+/g;\nfunction escapeUserProvidedKey(text) {\n return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');\n}\n\nvar POOL_SIZE = 10;\nvar traverseContextPool = [];\nfunction getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {\n if (traverseContextPool.length) {\n var traverseContext = traverseContextPool.pop();\n traverseContext.result = mapResult;\n traverseContext.keyPrefix = keyPrefix;\n traverseContext.func = mapFunction;\n traverseContext.context = mapContext;\n traverseContext.count = 0;\n return traverseContext;\n } else {\n return {\n result: mapResult,\n keyPrefix: keyPrefix,\n func: mapFunction,\n context: mapContext,\n count: 0\n };\n }\n}\n\nfunction releaseTraverseContext(traverseContext) {\n traverseContext.result = null;\n traverseContext.keyPrefix = null;\n traverseContext.func = null;\n traverseContext.context = null;\n traverseContext.count = 0;\n if (traverseContextPool.length < POOL_SIZE) {\n traverseContextPool.push(traverseContext);\n }\n}\n\n/**\n * @param {?*} children Children tree container.\n * @param {!string} nameSoFar Name of the key path so far.\n * @param {!function} callback Callback to invoke with each child found.\n * @param {?*} traverseContext Used to pass information throughout the traversal\n * process.\n * @return {!number} The number of children in this subtree.\n */\nfunction traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {\n var type = typeof children;\n\n if (type === 'undefined' || type === 'boolean') {\n // All of the above are perceived as null.\n children = null;\n }\n\n var invokeCallback = false;\n\n if (children === null) {\n invokeCallback = true;\n } else {\n switch (type) {\n case 'string':\n case 'number':\n invokeCallback = true;\n break;\n case 'object':\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = true;\n }\n }\n }\n\n if (invokeCallback) {\n callback(traverseContext, children,\n // If it's the only child, treat the name as if it was wrapped in an array\n // so that it's consistent if the number of children grows.\n nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);\n return 1;\n }\n\n var child = void 0;\n var nextName = void 0;\n var subtreeCount = 0; // Count of children found in the current subtree.\n var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;\n\n if (Array.isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n child = children[i];\n nextName = nextNamePrefix + getComponentKey(child, i);\n subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n }\n } else {\n var iteratorFn = getIteratorFn(children);\n if (typeof iteratorFn === 'function') {\n {\n // Warn about using Maps as children\n if (iteratorFn === children.entries) {\n !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;\n didWarnAboutMaps = true;\n }\n }\n\n var iterator = iteratorFn.call(children);\n var step = void 0;\n var ii = 0;\n while (!(step = iterator.next()).done) {\n child = step.value;\n nextName = nextNamePrefix + getComponentKey(child, ii++);\n subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n }\n } else if (type === 'object') {\n var addendum = '';\n {\n addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();\n }\n var childrenString = '' + children;\n invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum);\n }\n }\n\n return subtreeCount;\n}\n\n/**\n * Traverses children that are typically specified as `props.children`, but\n * might also be specified through attributes:\n *\n * - `traverseAllChildren(this.props.children, ...)`\n * - `traverseAllChildren(this.props.leftPanelChildren, ...)`\n *\n * The `traverseContext` is an optional argument that is passed through the\n * entire traversal. It can be used to store accumulations or anything else that\n * the callback might find relevant.\n *\n * @param {?*} children Children tree object.\n * @param {!function} callback To invoke upon traversing each child.\n * @param {?*} traverseContext Context for traversal.\n * @return {!number} The number of children in this subtree.\n */\nfunction traverseAllChildren(children, callback, traverseContext) {\n if (children == null) {\n return 0;\n }\n\n return traverseAllChildrenImpl(children, '', callback, traverseContext);\n}\n\n/**\n * Generate a key string that identifies a component within a set.\n *\n * @param {*} component A component that could contain a manual key.\n * @param {number} index Index that is used if a manual key is not provided.\n * @return {string}\n */\nfunction getComponentKey(component, index) {\n // Do some typechecking here since we call this blindly. We want to ensure\n // that we don't block potential future ES APIs.\n if (typeof component === 'object' && component !== null && component.key != null) {\n // Explicit key\n return escape(component.key);\n }\n // Implicit key determined by the index in the set\n return index.toString(36);\n}\n\nfunction forEachSingleChild(bookKeeping, child, name) {\n var func = bookKeeping.func,\n context = bookKeeping.context;\n\n func.call(context, child, bookKeeping.count++);\n}\n\n/**\n * Iterates through children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenforeach\n *\n * The provided forEachFunc(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} forEachFunc\n * @param {*} forEachContext Context for forEachContext.\n */\nfunction forEachChildren(children, forEachFunc, forEachContext) {\n if (children == null) {\n return children;\n }\n var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);\n traverseAllChildren(children, forEachSingleChild, traverseContext);\n releaseTraverseContext(traverseContext);\n}\n\nfunction mapSingleChildIntoContext(bookKeeping, child, childKey) {\n var result = bookKeeping.result,\n keyPrefix = bookKeeping.keyPrefix,\n func = bookKeeping.func,\n context = bookKeeping.context;\n\n\n var mappedChild = func.call(context, child, bookKeeping.count++);\n if (Array.isArray(mappedChild)) {\n mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {\n return c;\n });\n } else if (mappedChild != null) {\n if (isValidElement(mappedChild)) {\n mappedChild = cloneAndReplaceKey(mappedChild,\n // Keep both the (mapped) and old keys if they differ, just as\n // traverseAllChildren used to do for objects as children\n keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);\n }\n result.push(mappedChild);\n }\n}\n\nfunction mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {\n var escapedPrefix = '';\n if (prefix != null) {\n escapedPrefix = escapeUserProvidedKey(prefix) + '/';\n }\n var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);\n traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);\n releaseTraverseContext(traverseContext);\n}\n\n/**\n * Maps children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenmap\n *\n * The provided mapFunction(child, key, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} func The map function.\n * @param {*} context Context for mapFunction.\n * @return {object} Object containing the ordered map of results.\n */\nfunction mapChildren(children, func, context) {\n if (children == null) {\n return children;\n }\n var result = [];\n mapIntoWithKeyPrefixInternal(children, result, null, func, context);\n return result;\n}\n\n/**\n * Count the number of children that are typically specified as\n * `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrencount\n *\n * @param {?*} children Children tree container.\n * @return {number} The number of children.\n */\nfunction countChildren(children) {\n return traverseAllChildren(children, function () {\n return null;\n }, null);\n}\n\n/**\n * Flatten a children object (typically specified as `props.children`) and\n * return an array with appropriately re-keyed children.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrentoarray\n */\nfunction toArray(children) {\n var result = [];\n mapIntoWithKeyPrefixInternal(children, result, null, function (child) {\n return child;\n });\n return result;\n}\n\n/**\n * Returns the first child in a collection of children and verifies that there\n * is only one child in the collection.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenonly\n *\n * The current implementation of this function assumes that a single child gets\n * passed without a wrapper, but the purpose of this helper function is to\n * abstract away the particular structure of children.\n *\n * @param {?object} children Child collection structure.\n * @return {ReactElement} The first and only `ReactElement` contained in the\n * structure.\n */\nfunction onlyChild(children) {\n !isValidElement(children) ? invariant(false, 'React.Children.only expected to receive a single React element child.') : void 0;\n return children;\n}\n\nfunction createContext(defaultValue, calculateChangedBits) {\n if (calculateChangedBits === undefined) {\n calculateChangedBits = null;\n } else {\n {\n !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;\n }\n }\n\n var context = {\n $$typeof: REACT_CONTEXT_TYPE,\n _calculateChangedBits: calculateChangedBits,\n // As a workaround to support multiple concurrent renderers, we categorize\n // some renderers as primary and others as secondary. We only expect\n // there to be two concurrent renderers at most: React Native (primary) and\n // Fabric (secondary); React DOM (primary) and React ART (secondary).\n // Secondary renderers store their context values on separate fields.\n _currentValue: defaultValue,\n _currentValue2: defaultValue,\n // Used to track how many concurrent renderers this context currently\n // supports within in a single renderer. Such as parallel server rendering.\n _threadCount: 0,\n // These are circular\n Provider: null,\n Consumer: null\n };\n\n context.Provider = {\n $$typeof: REACT_PROVIDER_TYPE,\n _context: context\n };\n\n var hasWarnedAboutUsingNestedContextConsumers = false;\n var hasWarnedAboutUsingConsumerProvider = false;\n\n {\n // A separate object, but proxies back to the original context object for\n // backwards compatibility. It has a different $$typeof, so we can properly\n // warn for the incorrect usage of Context as a Consumer.\n var Consumer = {\n $$typeof: REACT_CONTEXT_TYPE,\n _context: context,\n _calculateChangedBits: context._calculateChangedBits\n };\n // $FlowFixMe: Flow complains about not setting a value, which is intentional here\n Object.defineProperties(Consumer, {\n Provider: {\n get: function () {\n if (!hasWarnedAboutUsingConsumerProvider) {\n hasWarnedAboutUsingConsumerProvider = true;\n warning$1(false, 'Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');\n }\n return context.Provider;\n },\n set: function (_Provider) {\n context.Provider = _Provider;\n }\n },\n _currentValue: {\n get: function () {\n return context._currentValue;\n },\n set: function (_currentValue) {\n context._currentValue = _currentValue;\n }\n },\n _currentValue2: {\n get: function () {\n return context._currentValue2;\n },\n set: function (_currentValue2) {\n context._currentValue2 = _currentValue2;\n }\n },\n _threadCount: {\n get: function () {\n return context._threadCount;\n },\n set: function (_threadCount) {\n context._threadCount = _threadCount;\n }\n },\n Consumer: {\n get: function () {\n if (!hasWarnedAboutUsingNestedContextConsumers) {\n hasWarnedAboutUsingNestedContextConsumers = true;\n warning$1(false, 'Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');\n }\n return context.Consumer;\n }\n }\n });\n // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty\n context.Consumer = Consumer;\n }\n\n {\n context._currentRenderer = null;\n context._currentRenderer2 = null;\n }\n\n return context;\n}\n\nfunction lazy(ctor) {\n var lazyType = {\n $$typeof: REACT_LAZY_TYPE,\n _ctor: ctor,\n // React uses these fields to store the result.\n _status: -1,\n _result: null\n };\n\n {\n // In production, this would just set it on the object.\n var defaultProps = void 0;\n var propTypes = void 0;\n Object.defineProperties(lazyType, {\n defaultProps: {\n configurable: true,\n get: function () {\n return defaultProps;\n },\n set: function (newDefaultProps) {\n warning$1(false, 'React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n defaultProps = newDefaultProps;\n // Match production behavior more closely:\n Object.defineProperty(lazyType, 'defaultProps', {\n enumerable: true\n });\n }\n },\n propTypes: {\n configurable: true,\n get: function () {\n return propTypes;\n },\n set: function (newPropTypes) {\n warning$1(false, 'React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n propTypes = newPropTypes;\n // Match production behavior more closely:\n Object.defineProperty(lazyType, 'propTypes', {\n enumerable: true\n });\n }\n }\n });\n }\n\n return lazyType;\n}\n\nfunction forwardRef(render) {\n {\n if (render != null && render.$$typeof === REACT_MEMO_TYPE) {\n warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');\n } else if (typeof render !== 'function') {\n warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);\n } else {\n !(\n // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object\n render.length === 0 || render.length === 2) ? warningWithoutStack$1(false, 'forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.') : void 0;\n }\n\n if (render != null) {\n !(render.defaultProps == null && render.propTypes == null) ? warningWithoutStack$1(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0;\n }\n }\n\n return {\n $$typeof: REACT_FORWARD_REF_TYPE,\n render: render\n };\n}\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' ||\n // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);\n}\n\nfunction memo(type, compare) {\n {\n if (!isValidElementType(type)) {\n warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);\n }\n }\n return {\n $$typeof: REACT_MEMO_TYPE,\n type: type,\n compare: compare === undefined ? null : compare\n };\n}\n\nfunction resolveDispatcher() {\n var dispatcher = ReactCurrentDispatcher.current;\n !(dispatcher !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component. (https://fb.me/react-invalid-hook-call)') : void 0;\n return dispatcher;\n}\n\nfunction useContext(Context, unstable_observedBits) {\n var dispatcher = resolveDispatcher();\n {\n !(unstable_observedBits === undefined) ? warning$1(false, 'useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\\n\\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '') : void 0;\n\n // TODO: add a more generic warning for invalid values.\n if (Context._context !== undefined) {\n var realContext = Context._context;\n // Don't deduplicate because this legitimately causes bugs\n // and nobody should be using this in existing code.\n if (realContext.Consumer === Context) {\n warning$1(false, 'Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');\n } else if (realContext.Provider === Context) {\n warning$1(false, 'Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');\n }\n }\n }\n return dispatcher.useContext(Context, unstable_observedBits);\n}\n\nfunction useState(initialState) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useState(initialState);\n}\n\nfunction useReducer(reducer, initialArg, init) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useReducer(reducer, initialArg, init);\n}\n\nfunction useRef(initialValue) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useRef(initialValue);\n}\n\nfunction useEffect(create, inputs) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useEffect(create, inputs);\n}\n\nfunction useLayoutEffect(create, inputs) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useLayoutEffect(create, inputs);\n}\n\nfunction useCallback(callback, inputs) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useCallback(callback, inputs);\n}\n\nfunction useMemo(create, inputs) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useMemo(create, inputs);\n}\n\nfunction useImperativeHandle(ref, create, inputs) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useImperativeHandle(ref, create, inputs);\n}\n\nfunction useDebugValue(value, formatterFn) {\n {\n var dispatcher = resolveDispatcher();\n return dispatcher.useDebugValue(value, formatterFn);\n }\n}\n\n/**\n * ReactElementValidator provides a wrapper around a element factory\n * which validates the props passed to the element. This is intended to be\n * used only in DEV and could be replaced by a static type checker for languages\n * that support it.\n */\n\nvar propTypesMisspellWarningShown = void 0;\n\n{\n propTypesMisspellWarningShown = false;\n}\n\nfunction getDeclarationErrorAddendum() {\n if (ReactCurrentOwner.current) {\n var name = getComponentName(ReactCurrentOwner.current.type);\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n return '';\n}\n\nfunction getSourceInfoErrorAddendum(elementProps) {\n if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {\n var source = elementProps.__source;\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n return '';\n}\n\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n if (parentName) {\n info = '\\n\\nCheck the top-level render call using <' + parentName + '>.';\n }\n }\n return info;\n}\n\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\nfunction validateExplicitKey(element, parentType) {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n element._store.validated = true;\n\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true;\n\n // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n var childOwner = '';\n if (element && element._owner && element._owner !== ReactCurrentOwner.current) {\n // Give the component that originally created this child.\n childOwner = ' It was passed a child from ' + getComponentName(element._owner.type) + '.';\n }\n\n setCurrentlyValidatingElement(element);\n {\n warning$1(false, 'Each child in a list should have a unique \"key\" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);\n }\n setCurrentlyValidatingElement(null);\n}\n\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\nfunction validateChildKeys(node, parentType) {\n if (typeof node !== 'object') {\n return;\n }\n if (Array.isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step = void 0;\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n}\n\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\nfunction validatePropTypes(element) {\n var type = element.type;\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n var name = getComponentName(type);\n var propTypes = void 0;\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE ||\n // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n if (propTypes) {\n setCurrentlyValidatingElement(element);\n checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);\n setCurrentlyValidatingElement(null);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true;\n warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');\n }\n if (typeof type.getDefaultProps === 'function') {\n !type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;\n }\n}\n\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\nfunction validateFragmentProps(fragment) {\n setCurrentlyValidatingElement(fragment);\n\n var keys = Object.keys(fragment.props);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (key !== 'children' && key !== 'key') {\n warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.');\n }\n\n setCurrentlyValidatingElement(null);\n}\n\nfunction createElementWithValidation(type, props, children) {\n var validType = isValidElementType(type);\n\n // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n if (!validType) {\n var info = '';\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(props);\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString = void 0;\n if (type === null) {\n typeString = 'null';\n } else if (Array.isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n warning$1(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = createElement.apply(this, arguments);\n\n // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n if (element == null) {\n return element;\n }\n\n // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n if (validType) {\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], type);\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n}\n\nfunction createFactoryWithValidation(type) {\n var validatedFactory = createElementWithValidation.bind(null, type);\n validatedFactory.type = type;\n // Legacy hook: remove it\n {\n Object.defineProperty(validatedFactory, 'type', {\n enumerable: false,\n get: function () {\n lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');\n Object.defineProperty(this, 'type', {\n value: type\n });\n return type;\n }\n });\n }\n\n return validatedFactory;\n}\n\nfunction cloneElementWithValidation(element, props, children) {\n var newElement = cloneElement.apply(this, arguments);\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], newElement.type);\n }\n validatePropTypes(newElement);\n return newElement;\n}\n\n// Helps identify side effects in begin-phase lifecycle hooks and setState reducers:\n\n\n// In some cases, StrictMode should also double-render lifecycles.\n// This can be confusing for tests though,\n// And it can be bad for performance in production.\n// This feature flag can be used to control the behavior:\n\n\n// To preserve the \"Pause on caught exceptions\" behavior of the debugger, we\n// replay the begin phase of a failed component inside invokeGuardedCallback.\n\n\n// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:\n\n\n// Gather advanced timing metrics for Profiler subtrees.\n\n\n// Trace which interactions trigger each commit.\n\n\n// Only used in www builds.\n // TODO: true? Here it might just be false.\n\n// Only used in www builds.\n\n\n// Only used in www builds.\n\n\n// React Fire: prevent the value and checked attributes from syncing\n// with their related DOM properties\n\n\n// These APIs will no longer be \"unstable\" in the upcoming 16.7 release,\n// Control this behavior with a flag to support 16.6 minor releases in the meanwhile.\nvar enableStableConcurrentModeAPIs = false;\n\nvar React = {\n Children: {\n map: mapChildren,\n forEach: forEachChildren,\n count: countChildren,\n toArray: toArray,\n only: onlyChild\n },\n\n createRef: createRef,\n Component: Component,\n PureComponent: PureComponent,\n\n createContext: createContext,\n forwardRef: forwardRef,\n lazy: lazy,\n memo: memo,\n\n useCallback: useCallback,\n useContext: useContext,\n useEffect: useEffect,\n useImperativeHandle: useImperativeHandle,\n useDebugValue: useDebugValue,\n useLayoutEffect: useLayoutEffect,\n useMemo: useMemo,\n useReducer: useReducer,\n useRef: useRef,\n useState: useState,\n\n Fragment: REACT_FRAGMENT_TYPE,\n StrictMode: REACT_STRICT_MODE_TYPE,\n Suspense: REACT_SUSPENSE_TYPE,\n\n createElement: createElementWithValidation,\n cloneElement: cloneElementWithValidation,\n createFactory: createFactoryWithValidation,\n isValidElement: isValidElement,\n\n version: ReactVersion,\n\n unstable_ConcurrentMode: REACT_CONCURRENT_MODE_TYPE,\n unstable_Profiler: REACT_PROFILER_TYPE,\n\n __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals\n};\n\n// Note: some APIs are added with feature flags.\n// Make sure that stable builds for open source\n// don't modify the React object to avoid deopts.\n// Also let's not expose their names in stable builds.\n\nif (enableStableConcurrentModeAPIs) {\n React.ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\n React.Profiler = REACT_PROFILER_TYPE;\n React.unstable_ConcurrentMode = undefined;\n React.unstable_Profiler = undefined;\n}\n\n\n\nvar React$2 = Object.freeze({\n\tdefault: React\n});\n\nvar React$3 = ( React$2 && React ) || React$2;\n\n// TODO: decide on the top-level export form.\n// This is hacky but makes it work with both Rollup and Jest.\nvar react = React$3.default || React$3;\n\nmodule.exports = react;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","function createThunkMiddleware(extraArgument) {\n return function (_ref) {\n var dispatch = _ref.dispatch,\n getState = _ref.getState;\n return function (next) {\n return function (action) {\n if (typeof action === 'function') {\n return action(dispatch, getState, extraArgument);\n }\n\n return next(action);\n };\n };\n };\n}\n\nvar thunk = createThunkMiddleware();\nthunk.withExtraArgument = createThunkMiddleware;\n\nexport default thunk;","import $$observable from 'symbol-observable';\n\n/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\nvar ActionTypes = {\n INIT: '@@redux/INIT' + Math.random().toString(36).substring(7).split('').join('.'),\n REPLACE: '@@redux/REPLACE' + Math.random().toString(36).substring(7).split('').join('.')\n};\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\n/**\n * @param {any} obj The object to inspect.\n * @returns {boolean} True if the argument appears to be a plain object.\n */\nfunction isPlainObject(obj) {\n if ((typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) !== 'object' || obj === null) return false;\n\n var proto = obj;\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(obj) === proto;\n}\n\n/**\n * Creates a Redux store that holds the state tree.\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\nfunction createStore(reducer, preloadedState, enhancer) {\n var _ref2;\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {\n enhancer = preloadedState;\n preloadedState = undefined;\n }\n\n if (typeof enhancer !== 'undefined') {\n if (typeof enhancer !== 'function') {\n throw new Error('Expected the enhancer to be a function.');\n }\n\n return enhancer(createStore)(reducer, preloadedState);\n }\n\n if (typeof reducer !== 'function') {\n throw new Error('Expected the reducer to be a function.');\n }\n\n var currentReducer = reducer;\n var currentState = preloadedState;\n var currentListeners = [];\n var nextListeners = currentListeners;\n var isDispatching = false;\n\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = currentListeners.slice();\n }\n }\n\n /**\n * Reads the state tree managed by the store.\n *\n * @returns {any} The current state tree of your application.\n */\n function getState() {\n if (isDispatching) {\n throw new Error('You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');\n }\n\n return currentState;\n }\n\n /**\n * Adds a change listener. It will be called any time an action is dispatched,\n * and some part of the state tree may potentially have changed. You may then\n * call `getState()` to read the current state tree inside the callback.\n *\n * You may call `dispatch()` from a change listener, with the following\n * caveats:\n *\n * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n * If you subscribe or unsubscribe while the listeners are being invoked, this\n * will not have any effect on the `dispatch()` that is currently in progress.\n * However, the next `dispatch()` call, whether nested or not, will use a more\n * recent snapshot of the subscription list.\n *\n * 2. The listener should not expect to see all state changes, as the state\n * might have been updated multiple times during a nested `dispatch()` before\n * the listener is called. It is, however, guaranteed that all subscribers\n * registered before the `dispatch()` started will be called with the latest\n * state by the time it exits.\n *\n * @param {Function} listener A callback to be invoked on every dispatch.\n * @returns {Function} A function to remove this change listener.\n */\n function subscribe(listener) {\n if (typeof listener !== 'function') {\n throw new Error('Expected the listener to be a function.');\n }\n\n if (isDispatching) {\n throw new Error('You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api-reference/store#subscribe(listener) for more details.');\n }\n\n var isSubscribed = true;\n\n ensureCanMutateNextListeners();\n nextListeners.push(listener);\n\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n\n if (isDispatching) {\n throw new Error('You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api-reference/store#subscribe(listener) for more details.');\n }\n\n isSubscribed = false;\n\n ensureCanMutateNextListeners();\n var index = nextListeners.indexOf(listener);\n nextListeners.splice(index, 1);\n };\n }\n\n /**\n * Dispatches an action. It is the only way to trigger a state change.\n *\n * The `reducer` function, used to create the store, will be called with the\n * current state tree and the given `action`. Its return value will\n * be considered the **next** state of the tree, and the change listeners\n * will be notified.\n *\n * The base implementation only supports plain object actions. If you want to\n * dispatch a Promise, an Observable, a thunk, or something else, you need to\n * wrap your store creating function into the corresponding middleware. For\n * example, see the documentation for the `redux-thunk` package. Even the\n * middleware will eventually dispatch plain object actions using this method.\n *\n * @param {Object} action A plain object representing “what changedâ€. It is\n * a good idea to keep actions serializable so you can record and replay user\n * sessions, or use the time travelling `redux-devtools`. An action must have\n * a `type` property which may not be `undefined`. It is a good idea to use\n * string constants for action types.\n *\n * @returns {Object} For convenience, the same action object you dispatched.\n *\n * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n * return something else (for example, a Promise you can await).\n */\n function dispatch(action) {\n if (!isPlainObject(action)) {\n throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.');\n }\n\n if (typeof action.type === 'undefined') {\n throw new Error('Actions may not have an undefined \"type\" property. ' + 'Have you misspelled a constant?');\n }\n\n if (isDispatching) {\n throw new Error('Reducers may not dispatch actions.');\n }\n\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n\n var listeners = currentListeners = nextListeners;\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n listener();\n }\n\n return action;\n }\n\n /**\n * Replaces the reducer currently used by the store to calculate the state.\n *\n * You might need this if your app implements code splitting and you want to\n * load some of the reducers dynamically. You might also need this if you\n * implement a hot reloading mechanism for Redux.\n *\n * @param {Function} nextReducer The reducer for the store to use instead.\n * @returns {void}\n */\n function replaceReducer(nextReducer) {\n if (typeof nextReducer !== 'function') {\n throw new Error('Expected the nextReducer to be a function.');\n }\n\n currentReducer = nextReducer;\n dispatch({ type: ActionTypes.REPLACE });\n }\n\n /**\n * Interoperability point for observable/reactive libraries.\n * @returns {observable} A minimal observable of state changes.\n * For more information, see the observable proposal:\n * https://github.com/tc39/proposal-observable\n */\n function observable() {\n var _ref;\n\n var outerSubscribe = subscribe;\n return _ref = {\n /**\n * The minimal observable subscription method.\n * @param {Object} observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns {subscription} An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe: function subscribe(observer) {\n if ((typeof observer === 'undefined' ? 'undefined' : _typeof(observer)) !== 'object' || observer === null) {\n throw new TypeError('Expected the observer to be an object.');\n }\n\n function observeState() {\n if (observer.next) {\n observer.next(getState());\n }\n }\n\n observeState();\n var unsubscribe = outerSubscribe(observeState);\n return { unsubscribe: unsubscribe };\n }\n }, _ref[$$observable] = function () {\n return this;\n }, _ref;\n }\n\n // When a store is created, an \"INIT\" action is dispatched so that every\n // reducer returns their initial state. This effectively populates\n // the initial state tree.\n dispatch({ type: ActionTypes.INIT });\n\n return _ref2 = {\n dispatch: dispatch,\n subscribe: subscribe,\n getState: getState,\n replaceReducer: replaceReducer\n }, _ref2[$$observable] = observable, _ref2;\n}\n\n/**\n * Prints a warning in the console if it exists.\n *\n * @param {String} message The warning message.\n * @returns {void}\n */\nfunction warning(message) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(message);\n }\n /* eslint-enable no-console */\n try {\n // This error was thrown as a convenience so that if you enable\n // \"break on all exceptions\" in your console,\n // it would pause the execution at this line.\n throw new Error(message);\n } catch (e) {} // eslint-disable-line no-empty\n}\n\nfunction getUndefinedStateErrorMessage(key, action) {\n var actionType = action && action.type;\n var actionDescription = actionType && 'action \"' + String(actionType) + '\"' || 'an action';\n\n return 'Given ' + actionDescription + ', 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.';\n}\n\nfunction getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {\n var reducerKeys = Object.keys(reducers);\n var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';\n\n if (reducerKeys.length === 0) {\n return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';\n }\n\n if (!isPlainObject(inputState)) {\n return 'The ' + argumentName + ' has unexpected type of \"' + {}.toString.call(inputState).match(/\\s([a-z|A-Z]+)/)[1] + '\". Expected argument to be an object with the following ' + ('keys: \"' + reducerKeys.join('\", \"') + '\"');\n }\n\n var unexpectedKeys = Object.keys(inputState).filter(function (key) {\n return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];\n });\n\n unexpectedKeys.forEach(function (key) {\n unexpectedKeyCache[key] = true;\n });\n\n if (action && action.type === ActionTypes.REPLACE) return;\n\n if (unexpectedKeys.length > 0) {\n return 'Unexpected ' + (unexpectedKeys.length > 1 ? 'keys' : 'key') + ' ' + ('\"' + unexpectedKeys.join('\", \"') + '\" found in ' + argumentName + '. ') + 'Expected to find one of the known reducer keys instead: ' + ('\"' + reducerKeys.join('\", \"') + '\". Unexpected keys will be ignored.');\n }\n}\n\nfunction assertReducerShape(reducers) {\n Object.keys(reducers).forEach(function (key) {\n var reducer = reducers[key];\n var initialState = reducer(undefined, { type: ActionTypes.INIT });\n\n if (typeof initialState === 'undefined') {\n 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.');\n }\n\n var type = '@@redux/PROBE_UNKNOWN_ACTION_' + Math.random().toString(36).substring(7).split('').join('.');\n if (typeof reducer(undefined, { type: type }) === 'undefined') {\n throw new Error('Reducer \"' + key + '\" returned undefined when probed with a random type. ' + ('Don\\'t try to handle ' + ActionTypes.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.');\n }\n });\n}\n\n/**\n * Turns an object whose values are different reducer functions, into a single\n * reducer function. It will call every child reducer, and gather their results\n * into a single state object, whose keys correspond to the keys of the passed\n * reducer functions.\n *\n * @param {Object} reducers An object whose values correspond to different\n * reducer functions that need to be combined into one. One handy way to obtain\n * it is to use ES6 `import * as reducers` syntax. The reducers may never return\n * undefined for any action. Instead, they should return their initial state\n * if the state passed to them was undefined, and the current state for any\n * unrecognized action.\n *\n * @returns {Function} A reducer function that invokes every reducer inside the\n * passed object, and builds a state object with the same shape.\n */\nfunction combineReducers(reducers) {\n var reducerKeys = Object.keys(reducers);\n var finalReducers = {};\n for (var i = 0; i < reducerKeys.length; i++) {\n var key = reducerKeys[i];\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof reducers[key] === 'undefined') {\n warning('No reducer provided for key \"' + key + '\"');\n }\n }\n\n if (typeof reducers[key] === 'function') {\n finalReducers[key] = reducers[key];\n }\n }\n var finalReducerKeys = Object.keys(finalReducers);\n\n var unexpectedKeyCache = void 0;\n if (process.env.NODE_ENV !== 'production') {\n unexpectedKeyCache = {};\n }\n\n var shapeAssertionError = void 0;\n try {\n assertReducerShape(finalReducers);\n } catch (e) {\n shapeAssertionError = e;\n }\n\n return function combination() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var action = arguments[1];\n\n if (shapeAssertionError) {\n throw shapeAssertionError;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);\n if (warningMessage) {\n warning(warningMessage);\n }\n }\n\n var hasChanged = false;\n var nextState = {};\n for (var _i = 0; _i < finalReducerKeys.length; _i++) {\n var _key = finalReducerKeys[_i];\n var reducer = finalReducers[_key];\n var previousStateForKey = state[_key];\n var nextStateForKey = reducer(previousStateForKey, action);\n if (typeof nextStateForKey === 'undefined') {\n var errorMessage = getUndefinedStateErrorMessage(_key, action);\n throw new Error(errorMessage);\n }\n nextState[_key] = nextStateForKey;\n hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n }\n return hasChanged ? nextState : state;\n };\n}\n\nfunction bindActionCreator(actionCreator, dispatch) {\n return function () {\n return dispatch(actionCreator.apply(this, arguments));\n };\n}\n\n/**\n * Turns an object whose values are action creators, into an object with the\n * same keys, but with every function wrapped into a `dispatch` call so they\n * may be invoked directly. This is just a convenience method, as you can call\n * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.\n *\n * For convenience, you can also pass a single function as the first argument,\n * and get a function in return.\n *\n * @param {Function|Object} actionCreators An object whose values are action\n * creator functions. One handy way to obtain it is to use ES6 `import * as`\n * syntax. You may also pass a single function.\n *\n * @param {Function} dispatch The `dispatch` function available on your Redux\n * store.\n *\n * @returns {Function|Object} The object mimicking the original object, but with\n * every action creator wrapped into the `dispatch` call. If you passed a\n * function as `actionCreators`, the return value will also be a single\n * function.\n */\nfunction bindActionCreators(actionCreators, dispatch) {\n if (typeof actionCreators === 'function') {\n return bindActionCreator(actionCreators, dispatch);\n }\n\n if ((typeof actionCreators === 'undefined' ? 'undefined' : _typeof(actionCreators)) !== 'object' || actionCreators === null) {\n throw new Error('bindActionCreators expected an object or a function, instead received ' + (actionCreators === null ? 'null' : typeof actionCreators === 'undefined' ? 'undefined' : _typeof(actionCreators)) + '. ' + 'Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?');\n }\n\n var keys = Object.keys(actionCreators);\n var boundActionCreators = {};\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var actionCreator = actionCreators[key];\n if (typeof actionCreator === 'function') {\n boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);\n }\n }\n return boundActionCreators;\n}\n\n/**\n * Composes single-argument functions from right to left. The rightmost\n * function can take multiple arguments as it provides the signature for\n * the resulting composite function.\n *\n * @param {...Function} funcs The functions to compose.\n * @returns {Function} A function obtained by composing the argument functions\n * from right to left. For example, compose(f, g, h) is identical to doing\n * (...args) => f(g(h(...args))).\n */\n\nfunction compose() {\n for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n if (funcs.length === 0) {\n return function (arg) {\n return arg;\n };\n }\n\n if (funcs.length === 1) {\n return funcs[0];\n }\n\n return funcs.reduce(function (a, b) {\n return function () {\n return a(b.apply(undefined, arguments));\n };\n });\n}\n\n/**\n * Creates a store enhancer that applies middleware to the dispatch method\n * of the Redux store. This is handy for a variety of tasks, such as expressing\n * asynchronous actions in a concise manner, or logging every action payload.\n *\n * See `redux-thunk` package as an example of the Redux middleware.\n *\n * Because middleware is potentially asynchronous, this should be the first\n * store enhancer in the composition chain.\n *\n * Note that each middleware will be given the `dispatch` and `getState` functions\n * as named arguments.\n *\n * @param {...Function} middlewares The middleware chain to be applied.\n * @returns {Function} A store enhancer applying the middleware.\n */\nfunction applyMiddleware() {\n for (var _len = arguments.length, middlewares = Array(_len), _key = 0; _key < _len; _key++) {\n middlewares[_key] = arguments[_key];\n }\n\n return function (createStore) {\n return function () {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n var store = createStore.apply(undefined, args);\n var _dispatch = function dispatch() {\n throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');\n };\n\n var middlewareAPI = {\n getState: store.getState,\n dispatch: function dispatch() {\n return _dispatch.apply(undefined, arguments);\n }\n };\n var chain = middlewares.map(function (middleware) {\n return middleware(middlewareAPI);\n });\n _dispatch = compose.apply(undefined, chain)(store.dispatch);\n\n return _extends({}, store, {\n dispatch: _dispatch\n });\n };\n };\n}\n\n/*\n * This is a dummy function to check if the function name has been altered by minification.\n * If the function has been minified and NODE_ENV !== 'production', warn the user.\n */\nfunction isCrushed() {}\n\nif (process.env.NODE_ENV !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {\n warning(\"You are currently using minified code outside of NODE_ENV === 'production'. \" + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) ' + 'to ensure you have the correct code for your production build.');\n}\n\nexport { createStore, combineReducers, bindActionCreators, applyMiddleware, compose, ActionTypes as __DO_NOT_USE__ActionTypes };\n","function isAbsolute(pathname) {\n return pathname.charAt(0) === '/';\n}\n\n// About 1.5x faster than the two-arg version of Array#splice()\nfunction spliceOne(list, index) {\n for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {\n list[i] = list[k];\n }\n\n list.pop();\n}\n\n// This implementation is based heavily on node's url.parse\nfunction resolvePathname(to) {\n var from = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n\n var toParts = to && to.split('/') || [];\n var fromParts = from && from.split('/') || [];\n\n var isToAbs = to && isAbsolute(to);\n var isFromAbs = from && isAbsolute(from);\n var mustEndAbs = isToAbs || isFromAbs;\n\n if (to && isAbsolute(to)) {\n // to is absolute\n fromParts = toParts;\n } else if (toParts.length) {\n // to is relative, drop the filename\n fromParts.pop();\n fromParts = fromParts.concat(toParts);\n }\n\n if (!fromParts.length) return '/';\n\n var hasTrailingSlash = void 0;\n if (fromParts.length) {\n var last = fromParts[fromParts.length - 1];\n hasTrailingSlash = last === '.' || last === '..' || last === '';\n } else {\n hasTrailingSlash = false;\n }\n\n var up = 0;\n for (var i = fromParts.length; i >= 0; i--) {\n var part = fromParts[i];\n\n if (part === '.') {\n spliceOne(fromParts, i);\n } else if (part === '..') {\n spliceOne(fromParts, i);\n up++;\n } else if (up) {\n spliceOne(fromParts, i);\n up--;\n }\n }\n\n if (!mustEndAbs) for (; up--; up) {\n fromParts.unshift('..');\n }if (mustEndAbs && fromParts[0] !== '' && (!fromParts[0] || !isAbsolute(fromParts[0]))) fromParts.unshift('');\n\n var result = fromParts.join('/');\n\n if (hasTrailingSlash && result.substr(-1) !== '/') result += '/';\n\n return result;\n}\n\nexport default resolvePathname;","/** @license React v0.13.4\n * scheduler-tracing.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n// Helps identify side effects in begin-phase lifecycle hooks and setState reducers:\n\n\n// In some cases, StrictMode should also double-render lifecycles.\n// This can be confusing for tests though,\n// And it can be bad for performance in production.\n// This feature flag can be used to control the behavior:\n\n\n// To preserve the \"Pause on caught exceptions\" behavior of the debugger, we\n// replay the begin phase of a failed component inside invokeGuardedCallback.\n\n\n// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:\n\n\n// Gather advanced timing metrics for Profiler subtrees.\n\n\n// Trace which interactions trigger each commit.\nvar enableSchedulerTracing = true;\n\n// Only used in www builds.\n // TODO: true? Here it might just be false.\n\n// Only used in www builds.\n\n\n// Only used in www builds.\n\n\n// React Fire: prevent the value and checked attributes from syncing\n// with their related DOM properties\n\n\n// These APIs will no longer be \"unstable\" in the upcoming 16.7 release,\n// Control this behavior with a flag to support 16.6 minor releases in the meanwhile.\n\nvar DEFAULT_THREAD_ID = 0;\n\n// Counters used to generate unique IDs.\nvar interactionIDCounter = 0;\nvar threadIDCounter = 0;\n\n// Set of currently traced interactions.\n// Interactions \"stack\"–\n// Meaning that newly traced interactions are appended to the previously active set.\n// When an interaction goes out of scope, the previous set (if any) is restored.\nexports.__interactionsRef = null;\n\n// Listener(s) to notify when interactions begin and end.\nexports.__subscriberRef = null;\n\nif (enableSchedulerTracing) {\n exports.__interactionsRef = {\n current: new Set()\n };\n exports.__subscriberRef = {\n current: null\n };\n}\n\nfunction unstable_clear(callback) {\n if (!enableSchedulerTracing) {\n return callback();\n }\n\n var prevInteractions = exports.__interactionsRef.current;\n exports.__interactionsRef.current = new Set();\n\n try {\n return callback();\n } finally {\n exports.__interactionsRef.current = prevInteractions;\n }\n}\n\nfunction unstable_getCurrent() {\n if (!enableSchedulerTracing) {\n return null;\n } else {\n return exports.__interactionsRef.current;\n }\n}\n\nfunction unstable_getThreadID() {\n return ++threadIDCounter;\n}\n\nfunction unstable_trace(name, timestamp, callback) {\n var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;\n\n if (!enableSchedulerTracing) {\n return callback();\n }\n\n var interaction = {\n __count: 1,\n id: interactionIDCounter++,\n name: name,\n timestamp: timestamp\n };\n\n var prevInteractions = exports.__interactionsRef.current;\n\n // Traced interactions should stack/accumulate.\n // To do that, clone the current interactions.\n // The previous set will be restored upon completion.\n var interactions = new Set(prevInteractions);\n interactions.add(interaction);\n exports.__interactionsRef.current = interactions;\n\n var subscriber = exports.__subscriberRef.current;\n var returnValue = void 0;\n\n try {\n if (subscriber !== null) {\n subscriber.onInteractionTraced(interaction);\n }\n } finally {\n try {\n if (subscriber !== null) {\n subscriber.onWorkStarted(interactions, threadID);\n }\n } finally {\n try {\n returnValue = callback();\n } finally {\n exports.__interactionsRef.current = prevInteractions;\n\n try {\n if (subscriber !== null) {\n subscriber.onWorkStopped(interactions, threadID);\n }\n } finally {\n interaction.__count--;\n\n // If no async work was scheduled for this interaction,\n // Notify subscribers that it's completed.\n if (subscriber !== null && interaction.__count === 0) {\n subscriber.onInteractionScheduledWorkCompleted(interaction);\n }\n }\n }\n }\n }\n\n return returnValue;\n}\n\nfunction unstable_wrap(callback) {\n var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;\n\n if (!enableSchedulerTracing) {\n return callback;\n }\n\n var wrappedInteractions = exports.__interactionsRef.current;\n\n var subscriber = exports.__subscriberRef.current;\n if (subscriber !== null) {\n subscriber.onWorkScheduled(wrappedInteractions, threadID);\n }\n\n // Update the pending async work count for the current interactions.\n // Update after calling subscribers in case of error.\n wrappedInteractions.forEach(function (interaction) {\n interaction.__count++;\n });\n\n var hasRun = false;\n\n function wrapped() {\n var prevInteractions = exports.__interactionsRef.current;\n exports.__interactionsRef.current = wrappedInteractions;\n\n subscriber = exports.__subscriberRef.current;\n\n try {\n var returnValue = void 0;\n\n try {\n if (subscriber !== null) {\n subscriber.onWorkStarted(wrappedInteractions, threadID);\n }\n } finally {\n try {\n returnValue = callback.apply(undefined, arguments);\n } finally {\n exports.__interactionsRef.current = prevInteractions;\n\n if (subscriber !== null) {\n subscriber.onWorkStopped(wrappedInteractions, threadID);\n }\n }\n }\n\n return returnValue;\n } finally {\n if (!hasRun) {\n // We only expect a wrapped function to be executed once,\n // But in the event that it's executed more than once–\n // Only decrement the outstanding interaction counts once.\n hasRun = true;\n\n // Update pending async counts for all wrapped interactions.\n // If this was the last scheduled async work for any of them,\n // Mark them as completed.\n wrappedInteractions.forEach(function (interaction) {\n interaction.__count--;\n\n if (subscriber !== null && interaction.__count === 0) {\n subscriber.onInteractionScheduledWorkCompleted(interaction);\n }\n });\n }\n }\n }\n\n wrapped.cancel = function cancel() {\n subscriber = exports.__subscriberRef.current;\n\n try {\n if (subscriber !== null) {\n subscriber.onWorkCanceled(wrappedInteractions, threadID);\n }\n } finally {\n // Update pending async counts for all wrapped interactions.\n // If this was the last scheduled async work for any of them,\n // Mark them as completed.\n wrappedInteractions.forEach(function (interaction) {\n interaction.__count--;\n\n if (subscriber && interaction.__count === 0) {\n subscriber.onInteractionScheduledWorkCompleted(interaction);\n }\n });\n }\n };\n\n return wrapped;\n}\n\nvar subscribers = null;\nif (enableSchedulerTracing) {\n subscribers = new Set();\n}\n\nfunction unstable_subscribe(subscriber) {\n if (enableSchedulerTracing) {\n subscribers.add(subscriber);\n\n if (subscribers.size === 1) {\n exports.__subscriberRef.current = {\n onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,\n onInteractionTraced: onInteractionTraced,\n onWorkCanceled: onWorkCanceled,\n onWorkScheduled: onWorkScheduled,\n onWorkStarted: onWorkStarted,\n onWorkStopped: onWorkStopped\n };\n }\n }\n}\n\nfunction unstable_unsubscribe(subscriber) {\n if (enableSchedulerTracing) {\n subscribers.delete(subscriber);\n\n if (subscribers.size === 0) {\n exports.__subscriberRef.current = null;\n }\n }\n}\n\nfunction onInteractionTraced(interaction) {\n var didCatchError = false;\n var caughtError = null;\n\n subscribers.forEach(function (subscriber) {\n try {\n subscriber.onInteractionTraced(interaction);\n } catch (error) {\n if (!didCatchError) {\n didCatchError = true;\n caughtError = error;\n }\n }\n });\n\n if (didCatchError) {\n throw caughtError;\n }\n}\n\nfunction onInteractionScheduledWorkCompleted(interaction) {\n var didCatchError = false;\n var caughtError = null;\n\n subscribers.forEach(function (subscriber) {\n try {\n subscriber.onInteractionScheduledWorkCompleted(interaction);\n } catch (error) {\n if (!didCatchError) {\n didCatchError = true;\n caughtError = error;\n }\n }\n });\n\n if (didCatchError) {\n throw caughtError;\n }\n}\n\nfunction onWorkScheduled(interactions, threadID) {\n var didCatchError = false;\n var caughtError = null;\n\n subscribers.forEach(function (subscriber) {\n try {\n subscriber.onWorkScheduled(interactions, threadID);\n } catch (error) {\n if (!didCatchError) {\n didCatchError = true;\n caughtError = error;\n }\n }\n });\n\n if (didCatchError) {\n throw caughtError;\n }\n}\n\nfunction onWorkStarted(interactions, threadID) {\n var didCatchError = false;\n var caughtError = null;\n\n subscribers.forEach(function (subscriber) {\n try {\n subscriber.onWorkStarted(interactions, threadID);\n } catch (error) {\n if (!didCatchError) {\n didCatchError = true;\n caughtError = error;\n }\n }\n });\n\n if (didCatchError) {\n throw caughtError;\n }\n}\n\nfunction onWorkStopped(interactions, threadID) {\n var didCatchError = false;\n var caughtError = null;\n\n subscribers.forEach(function (subscriber) {\n try {\n subscriber.onWorkStopped(interactions, threadID);\n } catch (error) {\n if (!didCatchError) {\n didCatchError = true;\n caughtError = error;\n }\n }\n });\n\n if (didCatchError) {\n throw caughtError;\n }\n}\n\nfunction onWorkCanceled(interactions, threadID) {\n var didCatchError = false;\n var caughtError = null;\n\n subscribers.forEach(function (subscriber) {\n try {\n subscriber.onWorkCanceled(interactions, threadID);\n } catch (error) {\n if (!didCatchError) {\n didCatchError = true;\n caughtError = error;\n }\n }\n });\n\n if (didCatchError) {\n throw caughtError;\n }\n}\n\nexports.unstable_clear = unstable_clear;\nexports.unstable_getCurrent = unstable_getCurrent;\nexports.unstable_getThreadID = unstable_getThreadID;\nexports.unstable_trace = unstable_trace;\nexports.unstable_wrap = unstable_wrap;\nexports.unstable_subscribe = unstable_subscribe;\nexports.unstable_unsubscribe = unstable_unsubscribe;\n })();\n}\n","/** @license React v0.13.4\n * scheduler.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar enableSchedulerDebugging = false;\n\n/* eslint-disable no-var */\n\n// TODO: Use symbols?\nvar ImmediatePriority = 1;\nvar UserBlockingPriority = 2;\nvar NormalPriority = 3;\nvar LowPriority = 4;\nvar IdlePriority = 5;\n\n// Max 31 bit integer. The max integer size in V8 for 32-bit systems.\n// Math.pow(2, 30) - 1\n// 0b111111111111111111111111111111\nvar maxSigned31BitInt = 1073741823;\n\n// Times out immediately\nvar IMMEDIATE_PRIORITY_TIMEOUT = -1;\n// Eventually times out\nvar USER_BLOCKING_PRIORITY = 250;\nvar NORMAL_PRIORITY_TIMEOUT = 5000;\nvar LOW_PRIORITY_TIMEOUT = 10000;\n// Never times out\nvar IDLE_PRIORITY = maxSigned31BitInt;\n\n// Callbacks are stored as a circular, doubly linked list.\nvar firstCallbackNode = null;\n\nvar currentDidTimeout = false;\n// Pausing the scheduler is useful for debugging.\nvar isSchedulerPaused = false;\n\nvar currentPriorityLevel = NormalPriority;\nvar currentEventStartTime = -1;\nvar currentExpirationTime = -1;\n\n// This is set when a callback is being executed, to prevent re-entrancy.\nvar isExecutingCallback = false;\n\nvar isHostCallbackScheduled = false;\n\nvar hasNativePerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';\n\nfunction ensureHostCallbackIsScheduled() {\n if (isExecutingCallback) {\n // Don't schedule work yet; wait until the next time we yield.\n return;\n }\n // Schedule the host callback using the earliest expiration in the list.\n var expirationTime = firstCallbackNode.expirationTime;\n if (!isHostCallbackScheduled) {\n isHostCallbackScheduled = true;\n } else {\n // Cancel the existing host callback.\n cancelHostCallback();\n }\n requestHostCallback(flushWork, expirationTime);\n}\n\nfunction flushFirstCallback() {\n var flushedNode = firstCallbackNode;\n\n // Remove the node from the list before calling the callback. That way the\n // list is in a consistent state even if the callback throws.\n var next = firstCallbackNode.next;\n if (firstCallbackNode === next) {\n // This is the last callback in the list.\n firstCallbackNode = null;\n next = null;\n } else {\n var lastCallbackNode = firstCallbackNode.previous;\n firstCallbackNode = lastCallbackNode.next = next;\n next.previous = lastCallbackNode;\n }\n\n flushedNode.next = flushedNode.previous = null;\n\n // Now it's safe to call the callback.\n var callback = flushedNode.callback;\n var expirationTime = flushedNode.expirationTime;\n var priorityLevel = flushedNode.priorityLevel;\n var previousPriorityLevel = currentPriorityLevel;\n var previousExpirationTime = currentExpirationTime;\n currentPriorityLevel = priorityLevel;\n currentExpirationTime = expirationTime;\n var continuationCallback;\n try {\n continuationCallback = callback();\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n currentExpirationTime = previousExpirationTime;\n }\n\n // A callback may return a continuation. The continuation should be scheduled\n // with the same priority and expiration as the just-finished callback.\n if (typeof continuationCallback === 'function') {\n var continuationNode = {\n callback: continuationCallback,\n priorityLevel: priorityLevel,\n expirationTime: expirationTime,\n next: null,\n previous: null\n };\n\n // Insert the new callback into the list, sorted by its expiration. This is\n // almost the same as the code in `scheduleCallback`, except the callback\n // is inserted into the list *before* callbacks of equal expiration instead\n // of after.\n if (firstCallbackNode === null) {\n // This is the first callback in the list.\n firstCallbackNode = continuationNode.next = continuationNode.previous = continuationNode;\n } else {\n var nextAfterContinuation = null;\n var node = firstCallbackNode;\n do {\n if (node.expirationTime >= expirationTime) {\n // This callback expires at or after the continuation. We will insert\n // the continuation *before* this callback.\n nextAfterContinuation = node;\n break;\n }\n node = node.next;\n } while (node !== firstCallbackNode);\n\n if (nextAfterContinuation === null) {\n // No equal or lower priority callback was found, which means the new\n // callback is the lowest priority callback in the list.\n nextAfterContinuation = firstCallbackNode;\n } else if (nextAfterContinuation === firstCallbackNode) {\n // The new callback is the highest priority callback in the list.\n firstCallbackNode = continuationNode;\n ensureHostCallbackIsScheduled();\n }\n\n var previous = nextAfterContinuation.previous;\n previous.next = nextAfterContinuation.previous = continuationNode;\n continuationNode.next = nextAfterContinuation;\n continuationNode.previous = previous;\n }\n }\n}\n\nfunction flushImmediateWork() {\n if (\n // Confirm we've exited the outer most event handler\n currentEventStartTime === -1 && firstCallbackNode !== null && firstCallbackNode.priorityLevel === ImmediatePriority) {\n isExecutingCallback = true;\n try {\n do {\n flushFirstCallback();\n } while (\n // Keep flushing until there are no more immediate callbacks\n firstCallbackNode !== null && firstCallbackNode.priorityLevel === ImmediatePriority);\n } finally {\n isExecutingCallback = false;\n if (firstCallbackNode !== null) {\n // There's still work remaining. Request another callback.\n ensureHostCallbackIsScheduled();\n } else {\n isHostCallbackScheduled = false;\n }\n }\n }\n}\n\nfunction flushWork(didTimeout) {\n // Exit right away if we're currently paused\n\n if (enableSchedulerDebugging && isSchedulerPaused) {\n return;\n }\n\n isExecutingCallback = true;\n var previousDidTimeout = currentDidTimeout;\n currentDidTimeout = didTimeout;\n try {\n if (didTimeout) {\n // Flush all the expired callbacks without yielding.\n while (firstCallbackNode !== null && !(enableSchedulerDebugging && isSchedulerPaused)) {\n // TODO Wrap in feature flag\n // Read the current time. Flush all the callbacks that expire at or\n // earlier than that time. Then read the current time again and repeat.\n // This optimizes for as few performance.now calls as possible.\n var currentTime = exports.unstable_now();\n if (firstCallbackNode.expirationTime <= currentTime) {\n do {\n flushFirstCallback();\n } while (firstCallbackNode !== null && firstCallbackNode.expirationTime <= currentTime && !(enableSchedulerDebugging && isSchedulerPaused));\n continue;\n }\n break;\n }\n } else {\n // Keep flushing callbacks until we run out of time in the frame.\n if (firstCallbackNode !== null) {\n do {\n if (enableSchedulerDebugging && isSchedulerPaused) {\n break;\n }\n flushFirstCallback();\n } while (firstCallbackNode !== null && !shouldYieldToHost());\n }\n }\n } finally {\n isExecutingCallback = false;\n currentDidTimeout = previousDidTimeout;\n if (firstCallbackNode !== null) {\n // There's still work remaining. Request another callback.\n ensureHostCallbackIsScheduled();\n } else {\n isHostCallbackScheduled = false;\n }\n // Before exiting, flush all the immediate work that was scheduled.\n flushImmediateWork();\n }\n}\n\nfunction unstable_runWithPriority(priorityLevel, eventHandler) {\n switch (priorityLevel) {\n case ImmediatePriority:\n case UserBlockingPriority:\n case NormalPriority:\n case LowPriority:\n case IdlePriority:\n break;\n default:\n priorityLevel = NormalPriority;\n }\n\n var previousPriorityLevel = currentPriorityLevel;\n var previousEventStartTime = currentEventStartTime;\n currentPriorityLevel = priorityLevel;\n currentEventStartTime = exports.unstable_now();\n\n try {\n return eventHandler();\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n currentEventStartTime = previousEventStartTime;\n\n // Before exiting, flush all the immediate work that was scheduled.\n flushImmediateWork();\n }\n}\n\nfunction unstable_next(eventHandler) {\n var priorityLevel = void 0;\n switch (currentPriorityLevel) {\n case ImmediatePriority:\n case UserBlockingPriority:\n case NormalPriority:\n // Shift down to normal priority\n priorityLevel = NormalPriority;\n break;\n default:\n // Anything lower than normal priority should remain at the current level.\n priorityLevel = currentPriorityLevel;\n break;\n }\n\n var previousPriorityLevel = currentPriorityLevel;\n var previousEventStartTime = currentEventStartTime;\n currentPriorityLevel = priorityLevel;\n currentEventStartTime = exports.unstable_now();\n\n try {\n return eventHandler();\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n currentEventStartTime = previousEventStartTime;\n\n // Before exiting, flush all the immediate work that was scheduled.\n flushImmediateWork();\n }\n}\n\nfunction unstable_wrapCallback(callback) {\n var parentPriorityLevel = currentPriorityLevel;\n return function () {\n // This is a fork of runWithPriority, inlined for performance.\n var previousPriorityLevel = currentPriorityLevel;\n var previousEventStartTime = currentEventStartTime;\n currentPriorityLevel = parentPriorityLevel;\n currentEventStartTime = exports.unstable_now();\n\n try {\n return callback.apply(this, arguments);\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n currentEventStartTime = previousEventStartTime;\n flushImmediateWork();\n }\n };\n}\n\nfunction unstable_scheduleCallback(callback, deprecated_options) {\n var startTime = currentEventStartTime !== -1 ? currentEventStartTime : exports.unstable_now();\n\n var expirationTime;\n if (typeof deprecated_options === 'object' && deprecated_options !== null && typeof deprecated_options.timeout === 'number') {\n // FIXME: Remove this branch once we lift expiration times out of React.\n expirationTime = startTime + deprecated_options.timeout;\n } else {\n switch (currentPriorityLevel) {\n case ImmediatePriority:\n expirationTime = startTime + IMMEDIATE_PRIORITY_TIMEOUT;\n break;\n case UserBlockingPriority:\n expirationTime = startTime + USER_BLOCKING_PRIORITY;\n break;\n case IdlePriority:\n expirationTime = startTime + IDLE_PRIORITY;\n break;\n case LowPriority:\n expirationTime = startTime + LOW_PRIORITY_TIMEOUT;\n break;\n case NormalPriority:\n default:\n expirationTime = startTime + NORMAL_PRIORITY_TIMEOUT;\n }\n }\n\n var newNode = {\n callback: callback,\n priorityLevel: currentPriorityLevel,\n expirationTime: expirationTime,\n next: null,\n previous: null\n };\n\n // Insert the new callback into the list, ordered first by expiration, then\n // by insertion. So the new callback is inserted any other callback with\n // equal expiration.\n if (firstCallbackNode === null) {\n // This is the first callback in the list.\n firstCallbackNode = newNode.next = newNode.previous = newNode;\n ensureHostCallbackIsScheduled();\n } else {\n var next = null;\n var node = firstCallbackNode;\n do {\n if (node.expirationTime > expirationTime) {\n // The new callback expires before this one.\n next = node;\n break;\n }\n node = node.next;\n } while (node !== firstCallbackNode);\n\n if (next === null) {\n // No callback with a later expiration was found, which means the new\n // callback has the latest expiration in the list.\n next = firstCallbackNode;\n } else if (next === firstCallbackNode) {\n // The new callback has the earliest expiration in the entire list.\n firstCallbackNode = newNode;\n ensureHostCallbackIsScheduled();\n }\n\n var previous = next.previous;\n previous.next = next.previous = newNode;\n newNode.next = next;\n newNode.previous = previous;\n }\n\n return newNode;\n}\n\nfunction unstable_pauseExecution() {\n isSchedulerPaused = true;\n}\n\nfunction unstable_continueExecution() {\n isSchedulerPaused = false;\n if (firstCallbackNode !== null) {\n ensureHostCallbackIsScheduled();\n }\n}\n\nfunction unstable_getFirstCallbackNode() {\n return firstCallbackNode;\n}\n\nfunction unstable_cancelCallback(callbackNode) {\n var next = callbackNode.next;\n if (next === null) {\n // Already cancelled.\n return;\n }\n\n if (next === callbackNode) {\n // This is the only scheduled callback. Clear the list.\n firstCallbackNode = null;\n } else {\n // Remove the callback from its position in the list.\n if (callbackNode === firstCallbackNode) {\n firstCallbackNode = next;\n }\n var previous = callbackNode.previous;\n previous.next = next;\n next.previous = previous;\n }\n\n callbackNode.next = callbackNode.previous = null;\n}\n\nfunction unstable_getCurrentPriorityLevel() {\n return currentPriorityLevel;\n}\n\nfunction unstable_shouldYield() {\n return !currentDidTimeout && (firstCallbackNode !== null && firstCallbackNode.expirationTime < currentExpirationTime || shouldYieldToHost());\n}\n\n// The remaining code is essentially a polyfill for requestIdleCallback. It\n// works by scheduling a requestAnimationFrame, storing the time for the start\n// of the frame, then scheduling a postMessage which gets scheduled after paint.\n// Within the postMessage handler do as much work as possible until time + frame\n// rate. By separating the idle call into a separate event tick we ensure that\n// layout, paint and other browser work is counted against the available time.\n// The frame rate is dynamically adjusted.\n\n// We capture a local reference to any global, in case it gets polyfilled after\n// this module is initially evaluated. We want to be using a\n// consistent implementation.\nvar localDate = Date;\n\n// This initialization code may run even on server environments if a component\n// just imports ReactDOM (e.g. for findDOMNode). Some environments might not\n// have setTimeout or clearTimeout. However, we always expect them to be defined\n// on the client. https://github.com/facebook/react/pull/13088\nvar localSetTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;\nvar localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;\n\n// We don't expect either of these to necessarily be defined, but we will error\n// later if they are missing on the client.\nvar localRequestAnimationFrame = typeof requestAnimationFrame === 'function' ? requestAnimationFrame : undefined;\nvar localCancelAnimationFrame = typeof cancelAnimationFrame === 'function' ? cancelAnimationFrame : undefined;\n\n// requestAnimationFrame does not run when the tab is in the background. If\n// we're backgrounded we prefer for that work to happen so that the page\n// continues to load in the background. So we also schedule a 'setTimeout' as\n// a fallback.\n// TODO: Need a better heuristic for backgrounded work.\nvar ANIMATION_FRAME_TIMEOUT = 100;\nvar rAFID;\nvar rAFTimeoutID;\nvar requestAnimationFrameWithTimeout = function (callback) {\n // schedule rAF and also a setTimeout\n rAFID = localRequestAnimationFrame(function (timestamp) {\n // cancel the setTimeout\n localClearTimeout(rAFTimeoutID);\n callback(timestamp);\n });\n rAFTimeoutID = localSetTimeout(function () {\n // cancel the requestAnimationFrame\n localCancelAnimationFrame(rAFID);\n callback(exports.unstable_now());\n }, ANIMATION_FRAME_TIMEOUT);\n};\n\nif (hasNativePerformanceNow) {\n var Performance = performance;\n exports.unstable_now = function () {\n return Performance.now();\n };\n} else {\n exports.unstable_now = function () {\n return localDate.now();\n };\n}\n\nvar requestHostCallback;\nvar cancelHostCallback;\nvar shouldYieldToHost;\n\nvar globalValue = null;\nif (typeof window !== 'undefined') {\n globalValue = window;\n} else if (typeof global !== 'undefined') {\n globalValue = global;\n}\n\nif (globalValue && globalValue._schedMock) {\n // Dynamic injection, only for testing purposes.\n var globalImpl = globalValue._schedMock;\n requestHostCallback = globalImpl[0];\n cancelHostCallback = globalImpl[1];\n shouldYieldToHost = globalImpl[2];\n exports.unstable_now = globalImpl[3];\n} else if (\n// If Scheduler runs in a non-DOM environment, it falls back to a naive\n// implementation using setTimeout.\ntypeof window === 'undefined' ||\n// Check if MessageChannel is supported, too.\ntypeof MessageChannel !== 'function') {\n // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,\n // fallback to a naive implementation.\n var _callback = null;\n var _flushCallback = function (didTimeout) {\n if (_callback !== null) {\n try {\n _callback(didTimeout);\n } finally {\n _callback = null;\n }\n }\n };\n requestHostCallback = function (cb, ms) {\n if (_callback !== null) {\n // Protect against re-entrancy.\n setTimeout(requestHostCallback, 0, cb);\n } else {\n _callback = cb;\n setTimeout(_flushCallback, 0, false);\n }\n };\n cancelHostCallback = function () {\n _callback = null;\n };\n shouldYieldToHost = function () {\n return false;\n };\n} else {\n if (typeof console !== 'undefined') {\n // TODO: Remove fb.me link\n if (typeof localRequestAnimationFrame !== 'function') {\n console.error(\"This browser doesn't support requestAnimationFrame. \" + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');\n }\n if (typeof localCancelAnimationFrame !== 'function') {\n console.error(\"This browser doesn't support cancelAnimationFrame. \" + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');\n }\n }\n\n var scheduledHostCallback = null;\n var isMessageEventScheduled = false;\n var timeoutTime = -1;\n\n var isAnimationFrameScheduled = false;\n\n var isFlushingHostCallback = false;\n\n var frameDeadline = 0;\n // We start out assuming that we run at 30fps but then the heuristic tracking\n // will adjust this value to a faster fps if we get more frequent animation\n // frames.\n var previousFrameTime = 33;\n var activeFrameTime = 33;\n\n shouldYieldToHost = function () {\n return frameDeadline <= exports.unstable_now();\n };\n\n // We use the postMessage trick to defer idle work until after the repaint.\n var channel = new MessageChannel();\n var port = channel.port2;\n channel.port1.onmessage = function (event) {\n isMessageEventScheduled = false;\n\n var prevScheduledCallback = scheduledHostCallback;\n var prevTimeoutTime = timeoutTime;\n scheduledHostCallback = null;\n timeoutTime = -1;\n\n var currentTime = exports.unstable_now();\n\n var didTimeout = false;\n if (frameDeadline - currentTime <= 0) {\n // There's no time left in this idle period. Check if the callback has\n // a timeout and whether it's been exceeded.\n if (prevTimeoutTime !== -1 && prevTimeoutTime <= currentTime) {\n // Exceeded the timeout. Invoke the callback even though there's no\n // time left.\n didTimeout = true;\n } else {\n // No timeout.\n if (!isAnimationFrameScheduled) {\n // Schedule another animation callback so we retry later.\n isAnimationFrameScheduled = true;\n requestAnimationFrameWithTimeout(animationTick);\n }\n // Exit without invoking the callback.\n scheduledHostCallback = prevScheduledCallback;\n timeoutTime = prevTimeoutTime;\n return;\n }\n }\n\n if (prevScheduledCallback !== null) {\n isFlushingHostCallback = true;\n try {\n prevScheduledCallback(didTimeout);\n } finally {\n isFlushingHostCallback = false;\n }\n }\n };\n\n var animationTick = function (rafTime) {\n if (scheduledHostCallback !== null) {\n // Eagerly schedule the next animation callback at the beginning of the\n // frame. If the scheduler queue is not empty at the end of the frame, it\n // will continue flushing inside that callback. If the queue *is* empty,\n // then it will exit immediately. Posting the callback at the start of the\n // frame ensures it's fired within the earliest possible frame. If we\n // waited until the end of the frame to post the callback, we risk the\n // browser skipping a frame and not firing the callback until the frame\n // after that.\n requestAnimationFrameWithTimeout(animationTick);\n } else {\n // No pending work. Exit.\n isAnimationFrameScheduled = false;\n return;\n }\n\n var nextFrameTime = rafTime - frameDeadline + activeFrameTime;\n if (nextFrameTime < activeFrameTime && previousFrameTime < activeFrameTime) {\n if (nextFrameTime < 8) {\n // Defensive coding. We don't support higher frame rates than 120hz.\n // If the calculated frame time gets lower than 8, it is probably a bug.\n nextFrameTime = 8;\n }\n // If one frame goes long, then the next one can be short to catch up.\n // If two frames are short in a row, then that's an indication that we\n // actually have a higher frame rate than what we're currently optimizing.\n // We adjust our heuristic dynamically accordingly. For example, if we're\n // running on 120hz display or 90hz VR display.\n // Take the max of the two in case one of them was an anomaly due to\n // missed frame deadlines.\n activeFrameTime = nextFrameTime < previousFrameTime ? previousFrameTime : nextFrameTime;\n } else {\n previousFrameTime = nextFrameTime;\n }\n frameDeadline = rafTime + activeFrameTime;\n if (!isMessageEventScheduled) {\n isMessageEventScheduled = true;\n port.postMessage(undefined);\n }\n };\n\n requestHostCallback = function (callback, absoluteTimeout) {\n scheduledHostCallback = callback;\n timeoutTime = absoluteTimeout;\n if (isFlushingHostCallback || absoluteTimeout < 0) {\n // Don't wait for the next frame. Continue working ASAP, in a new event.\n port.postMessage(undefined);\n } else if (!isAnimationFrameScheduled) {\n // If rAF didn't already schedule one, we need to schedule a frame.\n // TODO: If this rAF doesn't materialize because the browser throttles, we\n // might want to still have setTimeout trigger rIC as a backup to ensure\n // that we keep performing work.\n isAnimationFrameScheduled = true;\n requestAnimationFrameWithTimeout(animationTick);\n }\n };\n\n cancelHostCallback = function () {\n scheduledHostCallback = null;\n isMessageEventScheduled = false;\n timeoutTime = -1;\n };\n}\n\nexports.unstable_ImmediatePriority = ImmediatePriority;\nexports.unstable_UserBlockingPriority = UserBlockingPriority;\nexports.unstable_NormalPriority = NormalPriority;\nexports.unstable_IdlePriority = IdlePriority;\nexports.unstable_LowPriority = LowPriority;\nexports.unstable_runWithPriority = unstable_runWithPriority;\nexports.unstable_next = unstable_next;\nexports.unstable_scheduleCallback = unstable_scheduleCallback;\nexports.unstable_cancelCallback = unstable_cancelCallback;\nexports.unstable_wrapCallback = unstable_wrapCallback;\nexports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;\nexports.unstable_shouldYield = unstable_shouldYield;\nexports.unstable_continueExecution = unstable_continueExecution;\nexports.unstable_pauseExecution = unstable_pauseExecution;\nexports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler-tracing.profiling.min.js');\n} else {\n module.exports = require('./cjs/scheduler-tracing.development.js');\n}\n","/* global window */\nimport ponyfill from './ponyfill.js';\n\nvar root;\n\nif (typeof self !== 'undefined') {\n root = self;\n} else if (typeof window !== 'undefined') {\n root = window;\n} else if (typeof global !== 'undefined') {\n root = global;\n} else if (typeof module !== 'undefined') {\n root = module;\n} else {\n root = Function('return this')();\n}\n\nvar result = ponyfill(root);\nexport default result;\n","export default function symbolObservablePonyfill(root) {\n\tvar result;\n\tvar Symbol = root.Symbol;\n\n\tif (typeof Symbol === 'function') {\n\t\tif (Symbol.observable) {\n\t\t\tresult = Symbol.observable;\n\t\t} else {\n\t\t\tresult = Symbol('observable');\n\t\t\tSymbol.observable = result;\n\t\t}\n\t} else {\n\t\tresult = '@@observable';\n\t}\n\n\treturn result;\n};\n","var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nfunction valueEqual(a, b) {\n if (a === b) return true;\n\n if (a == null || b == null) return false;\n\n if (Array.isArray(a)) {\n return Array.isArray(b) && a.length === b.length && a.every(function (item, index) {\n return valueEqual(item, b[index]);\n });\n }\n\n var aType = typeof a === 'undefined' ? 'undefined' : _typeof(a);\n var bType = typeof b === 'undefined' ? 'undefined' : _typeof(b);\n\n if (aType !== bType) return false;\n\n if (aType === 'object') {\n var aValue = a.valueOf();\n var bValue = b.valueOf();\n\n if (aValue !== a || bValue !== b) return valueEqual(aValue, bValue);\n\n var aKeys = Object.keys(a);\n var bKeys = Object.keys(b);\n\n if (aKeys.length !== bKeys.length) return false;\n\n return aKeys.every(function (key) {\n return valueEqual(a[key], b[key]);\n });\n }\n\n return false;\n}\n\nexport default valueEqual;","/**\n * Copyright 2014-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n warning = function(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n if (format === undefined) {\n throw new Error(\n '`warning(condition, format, ...args)` requires a warning ' +\n 'message argument'\n );\n }\n\n if (format.length < 10 || (/^[s\\W]*$/).test(format)) {\n throw new Error(\n 'The warning format should be able to uniquely identify this ' +\n 'warning. Please, use a more descriptive format than: ' + format\n );\n }\n\n if (!condition) {\n var argIndex = 0;\n var message = 'Warning: ' +\n format.replace(/%s/g, function() {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch(x) {}\n }\n };\n}\n\nmodule.exports = warning;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","module.exports = function(originalModule) {\n\tif (!originalModule.webpackPolyfill) {\n\t\tvar module = Object.create(originalModule);\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"exports\", {\n\t\t\tenumerable: true\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n","module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n"],"sourceRoot":""}