diff --git a/docs/blueprint-landing.css b/docs/blueprint-landing.css index 19e756e111..7893d1880b 100644 --- a/docs/blueprint-landing.css +++ b/docs/blueprint-landing.css @@ -2785,6 +2785,9 @@ a.pt-button { background: rgba(57, 75, 89, 0.7); } .pt-file-upload.pt-fill { width: 100%; } + .pt-file-upload.pt-large, + .pt-large .pt-file-upload { + height: 40px; } .pt-file-upload-input { outline: none; diff --git a/docs/blueprint-landing.js b/docs/blueprint-landing.js index 08a1e460d4..17f183675f 100644 --- a/docs/blueprint-landing.js +++ b/docs/blueprint-landing.js @@ -353,7 +353,6 @@ AbstractComponent.prototype.validateProps = function (_) { // implement in subclass }; - ; return AbstractComponent; }(React.Component)); exports.AbstractComponent = AbstractComponent; @@ -4984,8 +4983,6 @@ return throttledFunc; } exports.throttleEvent = throttleEvent; - ; - ; /** * Throttle a callback by wrapping it in a `requestAnimationFrame` call. Returns the throttled * function. @@ -5071,8 +5068,8 @@ exports.NUMERIC_INPUT_STEP_SIZE_NULL = ns + " requires stepSize to be defined."; exports.POPOVER_REQUIRES_TARGET = ns + " requires target prop or at least one child element."; exports.POPOVER_MODAL_INTERACTION = ns + " requires interactionKind={PopoverInteractionKind.CLICK}."; - exports.POPOVER_WARN_TOO_MANY_CHILDREN = ns + " supports one or two children; additional children are ignored." - + " First child is the target, second child is the content. You may instead supply these two as props."; + exports.POPOVER_WARN_TOO_MANY_CHILDREN = ns + " supports one or two children; additional children are ignored." + + " First child is the target, second child is the content. You may instead supply these two as props."; exports.POPOVER_WARN_DOUBLE_CONTENT = ns + " with two children ignores content prop; use either prop or children."; exports.POPOVER_WARN_DOUBLE_TARGET = ns + " with children ignores target prop; use either prop or children."; exports.POPOVER_WARN_EMPTY_CONTENT = ns + " Disabling with empty/whitespace content..."; @@ -5087,8 +5084,8 @@ exports.RANGESLIDER_NULL_VALUE = ns + " value prop must be an array of two non-null numbers."; exports.TABS_FIRST_CHILD = ns + " First child of component must be a "; exports.TABS_MISMATCH = ns + " Number of components must equal number of components"; - exports.TABS_WARN_DEPRECATED = deprec + " is deprecated since v1.11.0; consider upgrading to ." - + " https://blueprintjs.com/#components.tabs.js"; + exports.TABS_WARN_DEPRECATED = deprec + " is deprecated since v1.11.0; consider upgrading to ." + + " https://blueprintjs.com/#components.tabs.js"; exports.TOASTER_WARN_INLINE = ns + " Toaster.create() ignores inline prop as it always creates a new element."; exports.TOASTER_WARN_LEFT_RIGHT = ns + " Toaster does not support LEFT or RIGHT positions."; exports.DIALOG_WARN_NO_HEADER_ICON = ns + " iconName is ignored if title is omitted."; @@ -5258,14 +5255,22 @@ })(Position = exports.Position || (exports.Position = {})); function isPositionHorizontal(position) { /* istanbul ignore next */ - return position === Position.TOP || position === Position.TOP_LEFT || position === Position.TOP_RIGHT - || position === Position.BOTTOM || position === Position.BOTTOM_LEFT || position === Position.BOTTOM_RIGHT; + return (position === Position.TOP || + position === Position.TOP_LEFT || + position === Position.TOP_RIGHT || + position === Position.BOTTOM || + position === Position.BOTTOM_LEFT || + position === Position.BOTTOM_RIGHT); } exports.isPositionHorizontal = isPositionHorizontal; function isPositionVertical(position) { /* istanbul ignore next */ - return position === Position.LEFT || position === Position.LEFT_TOP || position === Position.LEFT_BOTTOM - || position === Position.RIGHT || position === Position.RIGHT_TOP || position === Position.RIGHT_BOTTOM; + return (position === Position.LEFT || + position === Position.LEFT_TOP || + position === Position.LEFT_BOTTOM || + position === Position.RIGHT || + position === Position.RIGHT_TOP || + position === Position.RIGHT_BOTTOM); } exports.isPositionVertical = isPositionVertical; @@ -5348,7 +5353,9 @@ // element. thus, we pass a fake HTML bodyElement to Tether, with a no-op `appendChild` function // (the only function the library uses from bodyElement). var fakeHtmlElement = { - appendChild: function () { }, + appendChild: function () { + /* No-op */ + }, }; /** @internal */ function createTetherOptions(element, target, position, tetherOptions) { @@ -6502,6 +6509,7 @@ } Object.defineProperty(exports, "__esModule", { value: true }); if (typeof window !== "undefined" && typeof document !== "undefined") { + // we're in browser // tslint:disable-next-line:no-var-requires __webpack_require__(72); // only import actual dom4 if we're in the browser (not server-compatible) // we'll still need dom4 types for the TypeScript to compile, these are included in package.json @@ -7562,9 +7570,7 @@ var utils_1 = __webpack_require__(60); var popover_1 = __webpack_require__(220); var TETHER_OPTIONS = { - constraints: [ - { attachment: "together", pin: true, to: "window" }, - ], + constraints: [{ attachment: "together", pin: true, to: "window" }], }; var TRANSITION_DURATION = 100; var ContextMenu = (function (_super) { @@ -25179,10 +25185,10 @@ _this.handleMouseEnter = function (e) { // if we're entering the popover, and the mode is set to be HOVER_TARGET_ONLY, we want to manually // trigger the mouse leave event, as hovering over the popover shouldn't count. - if (_this.props.inline - && _this.isElementInPopover(e.target) - && _this.props.interactionKind === PopoverInteractionKind.HOVER_TARGET_ONLY - && !_this.props.openOnTargetFocus) { + if (_this.props.inline && + _this.isElementInPopover(e.target) && + _this.props.interactionKind === PopoverInteractionKind.HOVER_TARGET_ONLY && + !_this.props.openOnTargetFocus) { _this.handleMouseLeave(e); } else if (!_this.props.isDisabled) { @@ -25205,8 +25211,7 @@ _this.handleOverlayClose = function (e) { var eventTarget = e.target; // if click was in target, target event listener will handle things, so don't close - if (!Utils.elementIsOrContains(_this.targetElement, eventTarget) - || e.nativeEvent instanceof KeyboardEvent) { + if (!Utils.elementIsOrContains(_this.targetElement, eventTarget) || e.nativeEvent instanceof KeyboardEvent) { _this.setOpenState(false, e); } }; @@ -25259,10 +25264,10 @@ var targetTabIndex = this.props.openOnTargetFocus && this.isHoverInteractionKind() ? 0 : undefined; var target = React.cloneElement(children.target, // force disable single Tooltip child when popover is open (BLUEPRINT-552) - (isOpen && children.target.type === tooltip_1.Tooltip) + isOpen && children.target.type === tooltip_1.Tooltip ? { isDisabled: true, tabIndex: targetTabIndex } : { tabIndex: targetTabIndex }); - var isContentEmpty = (children.content == null); + var isContentEmpty = children.content == null; if (isContentEmpty && !this.props.isDisabled && isOpen !== false && !Utils.isNodeEnv("production")) { console.warn(Errors.POPOVER_WARN_EMPTY_CONTENT); } @@ -25350,8 +25355,8 @@ // always check popover clicks for dismiss class onClick: this.handlePopoverClick, }; - if ((interactionKind === PopoverInteractionKind.HOVER) - || (inline && interactionKind === PopoverInteractionKind.HOVER_TARGET_ONLY)) { + if (interactionKind === PopoverInteractionKind.HOVER || + (inline && interactionKind === PopoverInteractionKind.HOVER_TARGET_ONLY)) { popoverHandlers.onMouseEnter = this.handleMouseEnter; popoverHandlers.onMouseLeave = this.handleMouseLeave; } @@ -25407,10 +25412,8 @@ var arrow = this.popoverElement.getElementsByClassName(Classes.POPOVER_ARROW)[0]; var centerWidth = (this.state.targetWidth + arrow.clientWidth) / 2; var centerHeight = (this.state.targetHeight + arrow.clientHeight) / 2; - var ignoreWidth = centerWidth > this.popoverElement.clientWidth - && PosUtils.isPositionHorizontal(this.props.position); - var ignoreHeight = centerHeight > this.popoverElement.clientHeight - && PosUtils.isPositionVertical(this.props.position); + var ignoreWidth = centerWidth > this.popoverElement.clientWidth && PosUtils.isPositionHorizontal(this.props.position); + var ignoreHeight = centerHeight > this.popoverElement.clientHeight && PosUtils.isPositionVertical(this.props.position); if (!this.state.ignoreTargetDimensions && (ignoreWidth || ignoreHeight)) { this.setState({ ignoreTargetDimensions: true }); } @@ -25428,7 +25431,7 @@ // NOTE: use findDOMNode(this) directly because this.targetElement may not exist yet var target = react_dom_1.findDOMNode(this).childNodes[0]; // constraints is deprecated but must still be supported through tetherOptions until v2.0 - var options = (constraints == null && !useSmartPositioning) + var options = constraints == null && !useSmartPositioning ? tetherOptions : tslib_1.__assign({}, tetherOptions, { constraints: useSmartPositioning ? [SMART_POSITIONING] : constraints }); var finalTetherOptions = TetherUtils.createTetherOptions(this.popoverElement, target, position, options); @@ -25476,8 +25479,8 @@ return this.popoverElement != null && this.popoverElement.contains(element); }; Popover.prototype.isHoverInteractionKind = function () { - return this.props.interactionKind === PopoverInteractionKind.HOVER - || this.props.interactionKind === PopoverInteractionKind.HOVER_TARGET_ONLY; + return (this.props.interactionKind === PopoverInteractionKind.HOVER || + this.props.interactionKind === PopoverInteractionKind.HOVER_TARGET_ONLY); }; return Popover; }(abstractComponent_1.AbstractComponent)); @@ -27496,7 +27499,7 @@ function Overlay(props, context) { var _this = _super.call(this, props, context) || this; _this.refHandlers = { - container: function (ref) { return _this.containerElement = ref; }, + container: function (ref) { return (_this.containerElement = ref); }, }; _this.handleBackdropMouseDown = function (e) { var _a = _this.props, backdropProps = _a.backdropProps, canOutsideClickClose = _a.canOutsideClickClose, enforceFocus = _a.enforceFocus, onClose = _a.onClose; @@ -27512,8 +27515,7 @@ _this.handleDocumentClick = function (e) { var _a = _this.props, isOpen = _a.isOpen, onClose = _a.onClose; var eventTarget = e.target; - var isClickInOverlay = _this.containerElement != null - && _this.containerElement.contains(eventTarget); + var isClickInOverlay = _this.containerElement != null && _this.containerElement.contains(eventTarget); if (isOpen && _this.props.canOutsideClickClose && !isClickInOverlay) { // casting to any because this is a native event utils_1.safeInvoke(onClose, e); @@ -27528,9 +27530,9 @@ } }; _this.handleDocumentFocus = function (e) { - if (_this.props.enforceFocus - && _this.containerElement != null - && !_this.containerElement.contains(e.target)) { + if (_this.props.enforceFocus && + _this.containerElement != null && + !_this.containerElement.contains(e.target)) { // prevent default focus behavior (sometimes auto-scrolls the page) e.preventDefault(); e.stopImmediatePropagation(); @@ -30098,8 +30100,8 @@ this.maybeRenderSecondaryAction()))); }; Alert.prototype.validateProps = function (props) { - if (props.cancelButtonText != null && props.onCancel == null || - props.cancelButtonText == null && props.onCancel != null) { + if ((props.cancelButtonText != null && props.onCancel == null) || + (props.cancelButtonText == null && props.onCancel != null)) { console.warn(errors_1.ALERT_WARN_CANCEL_PROPS); } }; @@ -30313,13 +30315,15 @@ PureRender ], Icon); exports.Icon = Icon; - ; // NOTE: not using a type alias here so the full union will appear in the interface docs function getSizeClass(size) { switch (size) { - case Icon.SIZE_STANDARD: return common_1.Classes.ICON_STANDARD; - case Icon.SIZE_LARGE: return common_1.Classes.ICON_LARGE; - default: return common_1.Classes.ICON; + case Icon.SIZE_STANDARD: + return common_1.Classes.ICON_STANDARD; + case Icon.SIZE_LARGE: + return common_1.Classes.ICON_LARGE; + default: + return common_1.Classes.ICON; } } var Icon_1; @@ -30374,9 +30378,9 @@ pathLength: PATH_LENGTH, style: style, }); - return this.renderContainer(classes, (React.createElement("svg", { viewBox: classes.indexOf(Classes.SMALL) >= 0 ? "-15 -15 130 130" : "0 0 100 100" }, + return this.renderContainer(classes, React.createElement("svg", { viewBox: classes.indexOf(Classes.SMALL) >= 0 ? "-15 -15 130 130" : "0 0 100 100" }, React.createElement("path", { className: "pt-spinner-track", d: SPINNER_TRACK }), - headElement))); + headElement)); }; // abstract away the container elements so SVGSpinner can do its own thing Spinner.prototype.renderContainer = function (classes, content) { @@ -30620,7 +30624,7 @@ return React.createElement(this.props.component, { className: classNames(Classes.COLLAPSE, this.props.className), style: containerStyle, - }, (React.createElement("div", { className: "pt-collapse-body", ref: this.contentsRefHandler, style: contentsStyle }, showContents ? this.props.children : null))); + }, React.createElement("div", { className: "pt-collapse-body", ref: this.contentsRefHandler, style: contentsStyle }, showContents ? this.props.children : null)); }; Collapse.prototype.componentDidMount = function () { this.forceUpdate(); @@ -30634,10 +30638,12 @@ Collapse.prototype.componentDidUpdate = function () { var _this = this; if (this.state.animationState === AnimationStates.CLOSING_START) { - this.setTimeout(function () { return _this.setState({ - animationState: AnimationStates.CLOSING_END, - height: "0px", - }); }); + this.setTimeout(function () { + return _this.setState({ + animationState: AnimationStates.CLOSING_END, + height: "0px", + }); + }); this.setTimeout(function () { return _this.onDelayedStateChange(); }, this.props.transitionDuration); } }; @@ -30703,7 +30709,7 @@ var childrenLength = React.Children.count(this.props.children); var _a = this.partitionChildren(), visibleChildren = _a[0], collapsedChildren = _a[1]; var visibleItems = visibleChildren.map(function (child, index) { - var absoluteIndex = (collapseFrom === CollapseFrom.START ? childrenLength - 1 - index : index); + var absoluteIndex = collapseFrom === CollapseFrom.START ? childrenLength - 1 - index : index; return (React.createElement("li", { className: _this.props.visibleItemClassName, key: absoluteIndex }, _this.props.renderVisibleItem(child.props, absoluteIndex))); }); if (collapseFrom === CollapseFrom.START) { @@ -30713,7 +30719,7 @@ // construct dropdown menu for collapsed items var collapsedPopover; if (collapsedChildren.length > 0) { - var position = (collapseFrom === CollapseFrom.END ? position_1.Position.BOTTOM_RIGHT : position_1.Position.BOTTOM_LEFT); + var position = collapseFrom === CollapseFrom.END ? position_1.Position.BOTTOM_RIGHT : position_1.Position.BOTTOM_LEFT; collapsedPopover = (React.createElement("li", { className: this.props.visibleItemClassName }, React.createElement(popover_1.Popover, tslib_1.__assign({ content: React.createElement(menu_1.Menu, null, collapsedChildren), position: position }, this.props.dropdownProps), this.props.dropdownTarget))); } @@ -30738,10 +30744,7 @@ childrenArray.reverse(); } var visibleItemCount = this.props.visibleItemCount; - return [ - childrenArray.slice(0, visibleItemCount), - childrenArray.slice(visibleItemCount), - ]; + return [childrenArray.slice(0, visibleItemCount), childrenArray.slice(visibleItemCount)]; }; return CollapsibleList; }(React.Component)); @@ -30828,7 +30831,7 @@ _this.state = { alignLeft: false, }; - _this.liRefHandler = function (r) { return _this.liElement = r; }; + _this.liRefHandler = function (r) { return (_this.liElement = r); }; _this.measureSubmenu = function (el) { if (el != null) { var submenuRect = ReactDOM.findDOMNode(el).getBoundingClientRect(); @@ -30843,9 +30846,9 @@ } var _a = _this.props.submenuViewportMargin.left, left = _a === void 0 ? 0 : _a; var _b = _this.props.submenuViewportMargin.right, right = _b === void 0 ? 0 : _b; - if (typeof document !== "undefined" - && typeof document.documentElement !== "undefined" - && Number(document.documentElement.clientWidth)) { + if (typeof document !== "undefined" && + typeof document.documentElement !== "undefined" && + Number(document.documentElement.clientWidth)) { // we're in a browser context and the clientWidth is available, // use it to set calculate 'right' right = document.documentElement.clientWidth - right; @@ -30853,7 +30856,7 @@ // uses context to prioritize the previous positioning var alignLeft = _this.context.alignLeft || false; if (alignLeft) { - if ((submenuLeft - adjustmentWidth) <= left) { + if (submenuLeft - adjustmentWidth <= left) { alignLeft = false; } } @@ -30906,7 +30909,7 @@ return _this; } MenuItem.prototype.render = function () { - var _a = this.props, children = _a.children, disabled = _a.disabled, label = _a.label, submenu = _a.submenu; + var _a = this.props, children = _a.children, disabled = _a.disabled, label = _a.label, submenu = _a.submenu, popoverProps = _a.popoverProps; var hasSubmenu = children != null || submenu != null; var liClasses = classNames((_b = {}, _b[Classes.MENU_SUBMENU] = hasSubmenu, @@ -30924,12 +30927,12 @@ labelElement, this.props.text)); if (hasSubmenu) { - var measureSubmenu = (this.props.useSmartPositioning) ? this.measureSubmenu : null; + var measureSubmenu = this.props.useSmartPositioning ? this.measureSubmenu : null; var submenuElement = React.createElement(menu_1.Menu, { ref: measureSubmenu }, this.renderChildren()); - var popoverClasses = classNames((_d = {}, + var popoverClasses = classNames(Classes.MINIMAL, Classes.MENU_SUBMENU, popoverProps.popoverClassName, (_d = {}, _d[Classes.ALIGN_LEFT] = this.state.alignLeft, _d)); - content = (React.createElement(popover_1.Popover, { content: submenuElement, isDisabled: disabled, enforceFocus: false, hoverCloseDelay: 0, inline: true, interactionKind: popover_1.PopoverInteractionKind.HOVER, position: this.state.alignLeft ? position_1.Position.LEFT_TOP : position_1.Position.RIGHT_TOP, popoverClassName: classNames(Classes.MINIMAL, Classes.MENU_SUBMENU, popoverClasses), useSmartArrowPositioning: false }, content)); + content = (React.createElement(popover_1.Popover, tslib_1.__assign({ isDisabled: disabled, enforceFocus: false, hoverCloseDelay: 0, inline: true, interactionKind: popover_1.PopoverInteractionKind.HOVER, position: this.state.alignLeft ? position_1.Position.LEFT_TOP : position_1.Position.RIGHT_TOP, useSmartArrowPositioning: false }, popoverProps, { content: submenuElement, popoverClassName: popoverClasses }), content)); } return (React.createElement("li", { className: liClasses, ref: this.liRefHandler }, content)); var _b, _c, _d; @@ -30946,6 +30949,7 @@ }(abstractComponent_1.AbstractComponent)); MenuItem.defaultProps = { disabled: false, + popoverProps: {}, shouldDismissPopover: true, submenuViewportMargin: {}, text: "", @@ -31015,7 +31019,6 @@ }; } exports.ContextMenuTarget = ContextMenuTarget; - ; //# sourceMappingURL=contextMenuTarget.js.map @@ -31117,7 +31120,7 @@ } } }; - var value = (props.value == null) ? props.defaultValue : props.value; + var value = props.value == null ? props.defaultValue : props.value; _this.state = { inputHeight: 0, inputWidth: 0, @@ -31129,8 +31132,8 @@ } EditableText.prototype.render = function () { var _a = this.props, disabled = _a.disabled, multiline = _a.multiline; - var value = (this.props.value == null ? this.state.value : this.props.value); - var hasValue = (value != null && value !== ""); + var value = this.props.value == null ? this.state.value : this.props.value; + var hasValue = value != null && value !== ""; var classes = classNames(Classes.EDITABLE_TEXT, Classes.intentClass(this.props.intent), (_b = {}, _b[Classes.DISABLED] = disabled, _b["pt-editable-editing"] = this.state.isEditing, @@ -31233,7 +31236,7 @@ }); // synchronizes the ::before pseudo-element's height while editing for Chrome 53 if (multiline && this.state.isEditing) { - this.setTimeout(function () { return parentElement_1.style.height = scrollHeight_1 + "px"; }); + this.setTimeout(function () { return (parentElement_1.style.height = scrollHeight_1 + "px"); }); } } }; @@ -31326,7 +31329,7 @@ var userAgent = typeof navigator !== "undefined" ? navigator.userAgent : ""; var browser = { isEdge: !!userAgent.match(/Edge/), - isInternetExplorer: (!!userAgent.match(/Trident/) || !!userAgent.match(/rv:11/)), + isInternetExplorer: !!userAgent.match(/Trident/) || !!userAgent.match(/rv:11/), isWebkit: !!userAgent.match(/AppleWebKit/), }; exports.Browser = { @@ -31482,7 +31485,7 @@ rightElementWidth: 30, }; _this.refHandlers = { - rightElement: function (ref) { return _this.rightElement = ref; }, + rightElement: function (ref) { return (_this.rightElement = ref); }, }; return _this; } @@ -31509,7 +31512,7 @@ if (rightElement == null) { return undefined; } - return React.createElement("span", { className: "pt-input-action", ref: this.refHandlers.rightElement }, rightElement); + return (React.createElement("span", { className: "pt-input-action", ref: this.refHandlers.rightElement }, rightElement)); }; InputGroup.prototype.updateInputWidth = function () { if (this.rightElement != null) { @@ -31694,7 +31697,7 @@ var didMinChange = nextProps.min !== this.props.min; var didMaxChange = nextProps.max !== this.props.max; var didBoundsChange = didMinChange || didMaxChange; - var sanitizedValue = (value !== NumericInput_1.VALUE_EMPTY) + var sanitizedValue = value !== NumericInput_1.VALUE_EMPTY ? this.getSanitizedValue(value, /* delta */ 0, nextProps.min, nextProps.max) : NumericInput_1.VALUE_EMPTY; var stepMaxPrecision = this.getStepMaxPrecision(nextProps); @@ -31732,7 +31735,7 @@ // text field with squared border-radii on the left side, causing it // to look weird. This problem goes away if we simply don't nest within // a control group. - return (React.createElement("div", { className: className }, inputGroup)); + return React.createElement("div", { className: className }, inputGroup); } else { var incrementButton = this.renderButton(NumericInput_1.INCREMENT_KEY, NumericInput_1.INCREMENT_ICON_NAME, this.handleIncrementButtonClick); @@ -31740,13 +31743,11 @@ var buttonGroup = (React.createElement("div", { key: "button-group", className: classNames(common_1.Classes.BUTTON_GROUP, common_1.Classes.VERTICAL, common_1.Classes.FIXED) }, incrementButton, decrementButton)); - var inputElems = (buttonPosition === common_1.Position.LEFT) - ? [buttonGroup, inputGroup] - : [inputGroup, buttonGroup]; + var inputElems = buttonPosition === common_1.Position.LEFT ? [buttonGroup, inputGroup] : [inputGroup, buttonGroup]; var classes = classNames(common_1.Classes.NUMERIC_INPUT, common_1.Classes.CONTROL_GROUP, (_c = {}, _c[common_1.Classes.LARGE] = large, _c), className); - return (React.createElement("div", { className: classes }, inputElems)); + return React.createElement("div", { className: classes }, inputElems); } var _b, _c; }; @@ -31827,13 +31828,13 @@ var nextValue = this.toMaxPrecision(parseFloat(value) + delta); // defaultProps won't work if the user passes in null, so just default // to +/- infinity here instead, as a catch-all. - var adjustedMin = (min != null) ? min : -Infinity; - var adjustedMax = (max != null) ? max : Infinity; + var adjustedMin = min != null ? min : -Infinity; + var adjustedMax = max != null ? max : Infinity; nextValue = common_1.Utils.clamp(nextValue, adjustedMin, adjustedMax); return nextValue.toString(); }; NumericInput.prototype.getValueOrEmptyValue = function (value) { - return (value != null) ? value.toString() : NumericInput_1.VALUE_EMPTY; + return value != null ? value.toString() : NumericInput_1.VALUE_EMPTY; }; NumericInput.prototype.isValueNumeric = function (value) { // checking if a string is numeric in Typescript is a big pain, because @@ -31842,7 +31843,7 @@ // parsed numeric value from the string representation of the value. we // need to cast the value to the `any` type to allow this operation // between dissimilar types. - return value != null && (value - parseFloat(value) + 1) >= 0; + return value != null && value - parseFloat(value) + 1 >= 0; }; NumericInput.prototype.isKeyboardEventDisabledForBasicNumericEntry = function (e) { // unit tests may not include e.key. don't bother disabling those events. @@ -31947,7 +31948,9 @@ var Errors = __webpack_require__(61); var controls_1 = __webpack_require__(256); var counter = 0; - function nextName() { return RadioGroup.displayName + "-" + counter++; } + function nextName() { + return RadioGroup.displayName + "-" + counter++; + } var RadioGroup = (function (_super) { tslib_1.__extends(RadioGroup, _super); function RadioGroup() { @@ -31997,7 +32000,6 @@ }(abstractComponent_1.AbstractComponent)); RadioGroup.displayName = "Blueprint.RadioGroup"; exports.RadioGroup = RadioGroup; - ; function isRadio(child) { return child != null && child.type === controls_1.Radio; } @@ -32110,9 +32112,9 @@ }; Hotkey.prototype.render = function () { var _a = this.props, label = _a.label, spreadableProps = tslib_1.__rest(_a, ["label"]); - return React.createElement("div", { className: "pt-hotkey" }, + return (React.createElement("div", { className: "pt-hotkey" }, React.createElement("div", { className: "pt-hotkey-label" }, label), - React.createElement(keyCombo_1.KeyCombo, tslib_1.__assign({}, spreadableProps))); + React.createElement(keyCombo_1.KeyCombo, tslib_1.__assign({}, spreadableProps)))); }; Hotkey.prototype.validateProps = function (props) { if (props.global !== true && props.group == null) { @@ -32276,7 +32278,7 @@ 219: "[", 220: "\\", 221: "]", - 222: "\'", + 222: "'", }; exports.Modifiers = { 16: "shift", @@ -32310,20 +32312,20 @@ "!": "1", "@": "2", "#": "3", - "$": "4", + $: "4", "%": "5", "^": "6", "&": "7", "*": "8", "(": "9", ")": "0", - "_": "-", + _: "-", "+": "=", "{": "[", "}": "]", "|": "\\", ":": ";", - "\"": "\'", + '"': "'", "<": ",", ">": ".", "?": "/", @@ -32352,7 +32354,10 @@ * unshifted version. For example, `@` is equivalent to `shift+2`. */ exports.parseKeyCombo = function (combo) { - var pieces = combo.replace(/\s/g, "").toLowerCase().split("+"); + var pieces = combo + .replace(/\s/g, "") + .toLowerCase() + .split("+"); var modifiers = 0; var key = null; for (var _i = 0, pieces_1 = pieces; _i < pieces_1.length; _i++) { @@ -32383,7 +32388,7 @@ * for unit tests. */ var normalizeKeyCode = function (e) { - return (e.which === 0 && e.key != null) ? e.key.charCodeAt(0) : e.which; + return e.which === 0 && e.key != null ? e.key.charCodeAt(0) : e.which; }; /** * Converts a keyboard event into a valid combo prop string @@ -32461,20 +32466,14 @@ exports.normalizeKeyCombo = function (combo, platformOverride) { var keys = combo.replace(/\s/g, "").split("+"); return keys.map(function (key) { - var keyName = (exports.Aliases[key] != null) ? exports.Aliases[key] : key; - return (keyName === "meta") - ? (isMac(platformOverride) ? "cmd" : "ctrl") - : keyName; + var keyName = exports.Aliases[key] != null ? exports.Aliases[key] : key; + return keyName === "meta" ? (isMac(platformOverride) ? "cmd" : "ctrl") : keyName; }); }; /* tslint:enable:no-string-literal */ function isMac(platformOverride) { - var platform = platformOverride != null - ? platformOverride - : (typeof navigator !== "undefined" ? navigator.platform : undefined); - return platform == null - ? false - : /Mac|iPod|iPhone|iPad/.test(platform); + var platform = platformOverride != null ? platformOverride : typeof navigator !== "undefined" ? navigator.platform : undefined; + return platform == null ? false : /Mac|iPod|iPhone|iPad/.test(platform); } //# sourceMappingURL=hotkeyParser.js.map @@ -32554,7 +32553,6 @@ // tslint:enable } exports.HotkeysTarget = HotkeysTarget; - ; //# sourceMappingURL=hotkeysTarget.js.map @@ -32774,15 +32772,14 @@ var _this = this; var hotkeys = this.emptyHotkeyQueue(); var elements = hotkeys.map(function (hotkey, index) { - var group = (hotkey.global === true && hotkey.group == null) ? - _this.componentProps.globalHotkeysGroup : hotkey.group; + var group = hotkey.global === true && hotkey.group == null ? _this.componentProps.globalHotkeysGroup : hotkey.group; return React.createElement(hotkey_1.Hotkey, tslib_1.__assign({ key: index }, hotkey, { group: group })); }); return React.createElement(hotkeys_1.Hotkeys, null, elements); }; HotkeysDialog.prototype.emptyHotkeyQueue = function () { // flatten then empty the hotkeys queue - var hotkeys = this.hotkeysQueue.reduce((function (arr, queued) { return arr.concat(queued); }), []); + var hotkeys = this.hotkeysQueue.reduce(function (arr, queued) { return arr.concat(queued); }, []); this.hotkeysQueue.length = 0; return hotkeys; }; @@ -32852,8 +32849,8 @@ } else { // section header with title - return React.createElement("li", { className: classNames(Classes.MENU_HEADER, className) }, - React.createElement("h6", null, title)); + return (React.createElement("li", { className: classNames(Classes.MENU_HEADER, className) }, + React.createElement("h6", null, title))); } }; return MenuDivider; @@ -32923,7 +32920,7 @@ React.createElement(icon_1.Icon, { iconName: visual, iconSize: "inherit" }))); } else { - return (React.createElement("div", { className: Classes.NON_IDEAL_STATE_VISUAL }, visual)); + return React.createElement("div", { className: Classes.NON_IDEAL_STATE_VISUAL }, visual); } }; return NonIdealState; @@ -32963,7 +32960,7 @@ textContent: "", }; _this.refHandlers = { - text: function (overflowElement) { return _this.textRef = overflowElement; }, + text: function (overflowElement) { return (_this.textRef = overflowElement); }, }; return _this; } @@ -33018,7 +33015,7 @@ return _super !== null && _super.apply(this, arguments) || this; } SVGPopover.prototype.render = function () { - return React.createElement(popover_1.Popover, tslib_1.__assign({ rootElementTag: "g" }, this.props), this.props.children); + return (React.createElement(popover_1.Popover, tslib_1.__assign({ rootElementTag: "g" }, this.props), this.props.children)); }; return SVGPopover; }(React.Component)); @@ -33055,7 +33052,7 @@ var _a = this.props, className = _a.className, intent = _a.intent, value = _a.value; var classes = classNames("pt-progress-bar", Classes.intentClass(intent), className); // don't set width if value is null (rely on default CSS value) - var width = (value == null ? null : 100 * utils_1.clamp(value, 0, 1) + "%"); + var width = value == null ? null : 100 * utils_1.clamp(value, 0, 1) + "%"; return (React.createElement("div", { className: classes }, React.createElement("div", { className: "pt-progress-meter", style: { width: width } }))); }; @@ -33092,7 +33089,7 @@ return _super !== null && _super.apply(this, arguments) || this; } SVGTooltip.prototype.render = function () { - return React.createElement(tooltip_1.Tooltip, tslib_1.__assign({ rootElementTag: "g" }, this.props), this.props.children); + return (React.createElement(tooltip_1.Tooltip, tslib_1.__assign({ rootElementTag: "g" }, this.props), this.props.children)); }; return SVGTooltip; }(React.Component)); @@ -33179,19 +33176,23 @@ }; RangeSlider.prototype.handleTrackClick = function (event) { var _this = this; - this.handles.reduce(function (min, handle) { + this.handles + .reduce(function (min, handle) { // find closest handle to the mouse position var value = handle.clientToValue(event.clientX); return _this.nearestHandleForValue(value, min, handle); - }).beginHandleMovement(event); + }) + .beginHandleMovement(event); }; RangeSlider.prototype.handleTrackTouch = function (event) { var _this = this; - this.handles.reduce(function (min, handle) { + this.handles + .reduce(function (min, handle) { // find closest handle to the touch position var value = handle.clientToValue(handle.touchEventClientX(event)); return _this.nearestHandleForValue(value, min, handle); - }).beginHandleTouchMovement(event); + }) + .beginHandleTouchMovement(event); }; RangeSlider.prototype.nearestHandleForValue = function (value, firstHandle, secondHandle) { var firstDistance = Math.abs(value - firstHandle.props.value); @@ -33248,7 +33249,7 @@ var _this = _super.call(this, props) || this; _this.className = Classes.SLIDER; _this.refHandlers = { - track: function (el) { return _this.trackElement = el; }, + track: function (el) { return (_this.trackElement = el); }, }; _this.maybeHandleTrackClick = function (event) { if (_this.canHandleTrackEvent(event)) { @@ -33340,9 +33341,7 @@ CoreSlider.prototype.getLabelPrecision = function (_a) { var labelPrecision = _a.labelPrecision, stepSize = _a.stepSize; // infer default label precision from stepSize because that's how much the handle moves. - return (labelPrecision == null) - ? utils_1.countDecimalPlaces(stepSize) - : labelPrecision; + return labelPrecision == null ? utils_1.countDecimalPlaces(stepSize) : labelPrecision; }; CoreSlider.prototype.updateTickSize = function () { if (this.trackElement != null) { @@ -33390,7 +33389,7 @@ isMoving: false, }; _this.refHandlers = { - handle: function (el) { return _this.handleElement = el; }, + handle: function (el) { return (_this.handleElement = el); }, }; _this.beginHandleMovement = function (event) { document.addEventListener("mousemove", _this.handleHandleMovement); @@ -33454,7 +33453,7 @@ var _a = this.props, className = _a.className, disabled = _a.disabled, label = _a.label, min = _a.min, tickSize = _a.tickSize, value = _a.value; var isMoving = this.state.isMoving; // getBoundingClientRect().height includes border size as opposed to clientHeight - var handleSize = (this.handleElement == null ? 0 : this.handleElement.getBoundingClientRect().height); + var handleSize = this.handleElement == null ? 0 : this.handleElement.getBoundingClientRect().height; return (React.createElement("span", { className: classNames(Classes.SLIDER_HANDLE, (_b = {}, _b[Classes.ACTIVE] = isMoving, _b), className), onKeyDown: disabled ? null : this.handleKeyDown, onKeyUp: disabled ? null : this.handleKeyUp, onMouseDown: disabled ? null : this.beginHandleMovement, onTouchStart: disabled ? null : this.beginHandleTouchMovement, ref: this.refHandlers.handle, style: { left: Math.round((value - min) * tickSize - handleSize / 2) }, tabIndex: 0 }, label == null ? null : React.createElement("span", { className: Classes.SLIDER_LABEL }, label))); var _b; }; @@ -33745,9 +33744,9 @@ _this.handleTabSelectingEvent = function (e) { var tabElement = e.target.closest(TAB_CSS_SELECTOR); // select only if Tab is one of us and is enabled - if (tabElement != null - && _this.tabIds.indexOf(tabElement.id) >= 0 - && tabElement.getAttribute("aria-disabled") !== "true") { + if (tabElement != null && + _this.tabIds.indexOf(tabElement.id) >= 0 && + tabElement.getAttribute("aria-disabled") !== "true") { var index = tabElement.parentElement.queryAll(TAB_CSS_SELECTOR).indexOf(tabElement); _this.setSelectedTabIndex(index); } @@ -34084,7 +34083,7 @@ /* istanbul ignore next */ Tab2.prototype.render = function () { var _a = this.props, className = _a.className, panel = _a.panel; - return React.createElement("div", { className: classNames(Classes.TAB_PANEL, className), role: "tablist" }, panel); + return (React.createElement("div", { className: classNames(Classes.TAB_PANEL, className), role: "tablist" }, panel)); }; return Tab2; }(React.Component)); @@ -34131,7 +34130,7 @@ function Tabs2(props) { var _this = _super.call(this, props) || this; _this.refHandlers = { - tablist: function (tabElement) { return _this.tablistElement = tabElement; }, + tablist: function (tabElement) { return (_this.tablistElement = tabElement); }, }; _this.handleKeyDown = function (e) { var focusedElement = document.activeElement.closest(TAB_SELECTOR); @@ -34140,8 +34139,7 @@ return; } // must rely on DOM state because we have no way of mapping `focusedElement` to a JSX.Element - var enabledTabElements = _this.getTabElements() - .filter(function (el) { return el.getAttribute("aria-disabled") === "false"; }); + var enabledTabElements = _this.getTabElements().filter(function (el) { return el.getAttribute("aria-disabled") === "false"; }); var focusedIndex = enabledTabElements.indexOf(focusedElement); var direction = _this.getKeyCodeDirection(e); if (focusedIndex >= 0 && direction !== undefined) { @@ -34386,9 +34384,7 @@ _b[Classes.TAG_REMOVABLE] = onRemove != null, _b[Classes.ACTIVE] = active, _b), className); - var button = common_1.Utils.isFunction(onRemove) - ? React.createElement("button", { type: "button", className: Classes.TAG_REMOVE, onClick: this.onRemoveClick }) - : undefined; + var button = common_1.Utils.isFunction(onRemove) ? (React.createElement("button", { type: "button", className: Classes.TAG_REMOVE, onClick: this.onRemoveClick })) : (undefined); return (React.createElement("span", tslib_1.__assign({}, props_1.removeNonHTMLProps(this.props), { className: tagClasses }), this.props.children, button)); @@ -34564,7 +34560,7 @@ Toaster.prototype.update = function (key, props) { var options = this.createToastOptions(props, key); this.setState(function (prevState) { return ({ - toasts: prevState.toasts.map(function (t) { return t.key === key ? options : t; }), + toasts: prevState.toasts.map(function (t) { return (t.key === key ? options : t); }), }); }); }; Toaster.prototype.dismiss = function (key, timeoutExpired) { @@ -34706,7 +34702,7 @@ var elementPath = currentPath.concat(i); return (React.createElement(treeNode_1.TreeNode, tslib_1.__assign({}, node, { key: node.id, contentRef: _this.handleContentRef, depth: elementPath.length - 1, onClick: _this.handleNodeClick, onContextMenu: _this.handleNodeContextMenu, onCollapse: _this.handleNodeCollapse, onDoubleClick: _this.handleNodeDoubleClick, onExpand: _this.handleNodeExpand, path: elementPath }), _this.renderNodes(node.childNodes, elementPath))); }); - return (React.createElement("ul", { className: classNames(Classes.TREE_NODE_LIST, className) }, nodeItems)); + return React.createElement("ul", { className: classNames(Classes.TREE_NODE_LIST, className) }, nodeItems); }; Tree.prototype.handlerHelper = function (handlerFromProps, node, e) { if (utils_1.isFunction(handlerFromProps)) { @@ -34856,10 +34852,7 @@ for (var _b = 0, _c = [0, 4, 8, 12]; _b < _c.length; _b++) { var i = _c[_b]; c[i + j] = - m[i] * this.m[j] + - m[i + 1] * this.m[4 + j] + - m[i + 2] * this.m[8 + j] + - m[i + 3] * this.m[12 + j]; + m[i] * this.m[j] + m[i + 1] * this.m[4 + j] + m[i + 2] * this.m[8 + j] + m[i + 3] * this.m[12 + j]; } } Matrix.POOL = this.m; @@ -34970,10 +34963,22 @@ Quaternion.prototype.toMatrix = function () { var t = this; return M([ - 1 - 2 * (t.y * t.y + t.z * t.z), 2 * (t.x * t.y - t.w * t.z), 2 * (t.x * t.z + t.w * t.y), 0, - 2 * (t.x * t.y + t.w * t.z), 1 - 2 * (t.x * t.x + t.z * t.z), 2 * (t.y * t.z - t.w * t.x), 0, - 2 * (t.x * t.z - t.w * t.y), 2 * (t.y * t.z + t.w * t.x), 1 - 2 * (t.x * t.x + t.y * t.y), 0, - 0, 0, 0, 1, + 1 - 2 * (t.y * t.y + t.z * t.z), + 2 * (t.x * t.y - t.w * t.z), + 2 * (t.x * t.z + t.w * t.y), + 0, + 2 * (t.x * t.y + t.w * t.z), + 1 - 2 * (t.x * t.x + t.z * t.z), + 2 * (t.y * t.z - t.w * t.x), + 0, + 2 * (t.x * t.z - t.w * t.y), + 2 * (t.y * t.z + t.w * t.x), + 1 - 2 * (t.x * t.x + t.y * t.y), + 0, + 0, + 0, + 0, + 1, ]); }; return Quaternion; @@ -35076,10 +35081,10 @@ ctx.closePath(); }; Face.BOUNDS = function (points) { - var minX = -1 + Math.floor(points.reduce((function (r, p) { return (p.x < r.x) ? p : r; }), points[0]).x); - var maxX = 1 + Math.ceil(points.reduce((function (r, p) { return (p.x > r.x) ? p : r; }), points[0]).x); - var minY = -1 + Math.floor(points.reduce((function (r, p) { return (p.y < r.y) ? p : r; }), points[0]).y); - var maxY = 1 + Math.ceil(points.reduce((function (r, p) { return (p.y > r.y) ? p : r; }), points[0]).y); + var minX = -1 + Math.floor(points.reduce(function (r, p) { return (p.x < r.x ? p : r); }, points[0]).x); + var maxX = 1 + Math.ceil(points.reduce(function (r, p) { return (p.x > r.x ? p : r); }, points[0]).x); + var minY = -1 + Math.floor(points.reduce(function (r, p) { return (p.y < r.y ? p : r); }, points[0]).y); + var maxY = 1 + Math.ceil(points.reduce(function (r, p) { return (p.y > r.y ? p : r); }, points[0]).y); return [minX, minY, maxX - minX, maxY - minY]; }; Face.prototype.transform = function (m) { @@ -35190,11 +35195,7 @@ return _this; } Corner.CORNER = function () { - return new Corner([ - [exports.P(), exports.P().translate(-1, 0, 0)], - [exports.P(), exports.P().translate(0, 1, 0)], - [exports.P(), exports.P().translate(0, 0, -1)], - ], exports.P()); + return new Corner([[exports.P(), exports.P().translate(-1, 0, 0)], [exports.P(), exports.P().translate(0, 1, 0)], [exports.P(), exports.P().translate(0, 0, -1)]], exports.P()); }; Corner.PATH = function (ctx, segments) { ctx.beginPath(); @@ -35263,7 +35264,9 @@ // This is a modification of a standard isometric projection that maintains // a z-coordinate aligned with the view plane. var shear = [1, 0, 0, 0, 0, Math.sqrt(2 / 3), 1 / Math.sqrt(3), 0, 0, 0, 1, 0, 0, 0, 0, 1]; - return M().roty(-Math.PI / 4).matrix(shear); + return M() + .roty(-Math.PI / 4) + .matrix(shear); })(); exports.SceneModel = SceneModel; /*----------------------------------------------- @@ -35281,13 +35284,13 @@ return function (t) { return callback((t = t - 1) * t * t * t * t + 1); }; }, EASE_IN_OUT: function (callback) { - return function (t) { return callback(((t *= 2) < 1) ? 1 / 2 * t * t * t * t : -1 / 2 * ((t -= 2) * t * t * t - 2)); }; + return function (t) { return callback((t *= 2) < 1 ? 1 / 2 * t * t * t * t : -1 / 2 * ((t -= 2) * t * t * t - 2)); }; }, EASE_IN_EXP: function (e, callback) { - return function (t) { return callback((t == 0) ? 0 : Math.pow(e, 10 * (t - 1))); }; + return function (t) { return callback(t == 0 ? 0 : Math.pow(e, 10 * (t - 1))); }; }, EASE_OUT_EXP: function (e, callback) { - return function (t) { return callback((t == 1) ? 1 : 1 - Math.pow(e, -10 * t)); }; + return function (t) { return callback(t == 1 ? 1 : 1 - Math.pow(e, -10 * t)); }; }, EASE_IN_OUT_EXP: function (e, callback) { return function (t) { @@ -35317,7 +35320,7 @@ this.value = this.target; } Accumulator.prototype.tick = function (elapsed) { - this.value = (this.alpha * this.target) + (1.0 - this.alpha) * this.value; + this.value = this.alpha * this.target + (1.0 - this.alpha) * this.value; if (this.callback != null) { this.callback(this.value); } @@ -35351,7 +35354,7 @@ if (starttime == null) { anim.starttime = starttime = elapsed; } - if ((elapsed - starttime) >= duration) { + if (elapsed - starttime >= duration) { if (callback != null) { callback(1.0); } @@ -35427,10 +35430,10 @@ -------------------------------------------------*/ var CanvasBuffer = (function () { function CanvasBuffer(canvas) { - this.ctx = canvas.getContext('2d'); + this.ctx = canvas.getContext("2d"); } CanvasBuffer.create = function () { - return new CanvasBuffer(document.createElement('canvas')); + return new CanvasBuffer(document.createElement("canvas")); }; CanvasBuffer.prototype.clear = function (color, bounds) { if (bounds == null) { @@ -35452,7 +35455,10 @@ if (bounds == null) { bounds = [0, 0, this.ctx.canvas.width, this.ctx.canvas.height]; } - var args = [].concat([this.ctx.canvas]).concat(bounds).concat(bounds); + var args = [] + .concat([this.ctx.canvas]) + .concat(bounds) + .concat(bounds); ctx.drawImage.apply(ctx, args); }; return CanvasBuffer; @@ -35478,10 +35484,10 @@ return CanvasRenderer; }()); CanvasRenderer.IS_RETINA = function () { - return (window.matchMedia - && (window.matchMedia('only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx), only screen and (min-resolution: 75.6dpcm)').matches - || window.matchMedia('only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min--moz-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2)').matches) - || (window.devicePixelRatio && window.devicePixelRatio >= 2)); + return ((window.matchMedia && + (window.matchMedia("only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx), only screen and (min-resolution: 75.6dpcm)").matches || + window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min--moz-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2)").matches)) || + (window.devicePixelRatio && window.devicePixelRatio >= 2)); }; exports.CanvasRenderer = CanvasRenderer; var BackgroundRenderer = (function (_super) { @@ -35533,14 +35539,14 @@ this.ctx.beginPath(); this.ctx.moveTo(x, 0); this.ctx.lineTo(x, this.height); - this.ctx.strokeStyle = ((x - xstart) % major === 0) ? dark : light; + this.ctx.strokeStyle = (x - xstart) % major === 0 ? dark : light; this.ctx.stroke(); } for (var y = 0; y < this.height; y += BackgroundRenderer.GRID_SIZE) { this.ctx.beginPath(); this.ctx.moveTo(0, y); this.ctx.lineTo(this.width, y); - this.ctx.strokeStyle = (y % major === 0) ? dark : light; + this.ctx.strokeStyle = y % major === 0 ? dark : light; this.ctx.stroke(); } this.ctx.restore(); @@ -35576,7 +35582,12 @@ var shape = object; for (var _i = 0, _a = shape.faces; _i < _a.length; _i++) { var face = _a[_i]; - face.projected = face.points.map(function (p) { return p.copy().transform(transform).round(); }); + face.projected = face.points.map(function (p) { + return p + .copy() + .transform(transform) + .round(); + }); face.projectedCenter = exports.P(); for (var _b = 0, _c = face.projected; _b < _c.length; _b++) { var p = _c[_b]; @@ -35763,14 +35774,17 @@ // renderer var renderer = new SceneRenderer(canvas.getContext("2d"), scene); var backgroundRenderer = new BackgroundRenderer(canvasBackground.getContext("2d")); - var render = function () { return requestAnimationFrame(function () { - backgroundRenderer.render(); - renderer.render(); - }); }; + var render = function () { + return requestAnimationFrame(function () { + backgroundRenderer.render(); + renderer.render(); + }); + }; var animator = new Animator(render); // entrance animation var slideDownAnimation = function (offset, model) { - animator.timeline() + animator + .timeline() .tween(0, function (t) { return model.restore().translate(0, -8, 0); }) .tween(offset + 100) .tween(1000, exports.T.EASE_OUT_EXP(2, exports.T.INTERPOLATE(-8, 0, function (t) { return model.restore().translate(0, t, 0); }))); @@ -35781,7 +35795,8 @@ // sheen animation var sheenAnimation = function (offset, model) { var sheen = model.children[2]; - animator.timeline() + animator + .timeline() .tween(offset) .tween(500, exports.T.EASE_IN(exports.T.INTERPOLATE(0, 100 * renderer.retinaScale, function (t) { for (var _i = 0, _a = sheen.faces; _i < _a.length; _i++) { @@ -35801,7 +35816,8 @@ f.lineDash = null; } }); - animator.timeline() + animator + .timeline() .tween(offset) .tween(500) .tween(2000, exports.T.EASE_OUT(exports.T.INTERPOLATE(0, -350 * renderer.retinaScale, function (t) { @@ -35819,7 +35835,7 @@ }; var throttle = function (wait, func) { var timeout = null; - var reset = function () { return timeout = null; }; + var reset = function () { return (timeout = null); }; return function () { if (timeout == null) { func(); @@ -35836,12 +35852,16 @@ // Update model transformations once per tick animator.ticker(function () { var rotate = Quaternion.xyAlt(accumX.value, -accumY.value).toMatrix(); - rotate = M().translate(1, 1, 1).multiply(rotate).multiply(M().translate(-1, -1, -1)); + rotate = M() + .translate(1, 1, 1) + .multiply(rotate) + .multiply(M().translate(-1, -1, -1)); explodeGroups[0] .restore() .translate(accumExploder[0].value, 0, 0) .transform(rotate); - explodeGroups[1].restore() + explodeGroups[1] + .restore() .translate(0, 0, accumExploder[1].value) .transform(rotate); explodeGroups[2] @@ -35872,9 +35892,9 @@ var explodeBlocks = function () { explosionTimeline .reset() - .after(0, function () { return accumExploder[0].target = 1.5; }) - .after(EXPLOSION_DELAY, function () { return accumExploder[1].target = 0.8; }) - .after(EXPLOSION_DELAY, function () { return accumExploder[2].target = 0.6; }); + .after(0, function () { return (accumExploder[0].target = 1.5); }) + .after(EXPLOSION_DELAY, function () { return (accumExploder[1].target = 0.8); }) + .after(EXPLOSION_DELAY, function () { return (accumExploder[2].target = 0.6); }); }; var unexplodeBlocks = function () { explosionTimeline.reset(); @@ -35917,20 +35937,20 @@ Object.defineProperty(exports, "__esModule", { value: true }); // tslint:disable no-var-requires var HERO_SVGS = { - "alert": __webpack_require__(292), - "buttons": __webpack_require__(293), - "calendar": __webpack_require__(294), - "checkboxes": __webpack_require__(295), + alert: __webpack_require__(292), + buttons: __webpack_require__(293), + calendar: __webpack_require__(294), + checkboxes: __webpack_require__(295), "file-upload": __webpack_require__(296), "input-groups": __webpack_require__(297), - "inputs": __webpack_require__(298), - "labels": __webpack_require__(299), - "radios": __webpack_require__(300), + inputs: __webpack_require__(298), + labels: __webpack_require__(299), + radios: __webpack_require__(300), "select-menus": __webpack_require__(301), - "sliders": __webpack_require__(302), - "switches": __webpack_require__(303), + sliders: __webpack_require__(302), + switches: __webpack_require__(303), "time-selections": __webpack_require__(304), - "toggles": __webpack_require__(305), + toggles: __webpack_require__(305), }; var injectSVG = function (elem, id) { var wrapper = document.createElement("div"); diff --git a/docs/docs/site-docs.css b/docs/docs/site-docs.css index 01e7161742..599827de1d 100644 --- a/docs/docs/site-docs.css +++ b/docs/docs/site-docs.css @@ -3000,6 +3000,9 @@ a.pt-button.pt-disabled { background: rgba(57, 75, 89, 0.7); } .pt-file-upload.pt-fill { width: 100%; } +.pt-file-upload.pt-large, +.pt-large .pt-file-upload { + height: 40px; } .pt-file-upload-input { outline: none; border: none; @@ -6935,6 +6938,8 @@ table.pt-table.pt-interactive tbody tr:hover td { color: rgba(92, 112, 128, 0.5); } .pt-input-ghost:focus { outline: none !important; } +.pt-timezone-picker-popover { + min-width: 370px; } @-webkit-keyframes skeleton-fade-in { 0% { @@ -7259,7 +7264,6 @@ table.pt-table.pt-interactive tbody tr:hover td { flex: 0 0; } .bp-table-column-headers .bp-table-interaction-bar { position: relative; - cursor: s-resize; height: 20px; } .bp-table-column-headers .bp-table-header { min-height: 30px; @@ -7267,6 +7271,7 @@ table.pt-table.pt-interactive tbody tr:hover td { line-height: 30px; } .bp-table-row-headers .bp-table-header { min-width: 30px; + overflow: hidden; line-height: 20px; } .bp-table-column-name-text, .bp-table-row-name-text { @@ -7520,6 +7525,7 @@ table.pt-table.pt-interactive tbody tr:hover td { .bp-table-quadrant-stack { display: -webkit-flex; display: flex; + position: relative; height: 100%; } .bp-table-quadrant { position: absolute; @@ -7568,7 +7574,8 @@ table.pt-table.pt-interactive tbody tr:hover td { overflow-y: hidden; } .bp-table-quadrant-left { bottom: 0; - z-index: 2; } + z-index: 2; + transition: width 100ms cubic-bezier(0.4, 1, 0.75, 0.9); } .bp-table-quadrant-left .bp-table-quadrant-scroll-container { position: absolute; top: 0; @@ -7577,7 +7584,8 @@ table.pt-table.pt-interactive tbody tr:hover td { height: auto; overflow-x: hidden; } .bp-table-quadrant-top-left { - z-index: 3; } + z-index: 3; + transition: width 100ms cubic-bezier(0.4, 1, 0.75, 0.9); } .bp-table-quadrant-top-left .bp-table-quadrant-scroll-container { right: -20px; bottom: -20px; @@ -7641,13 +7649,13 @@ table.pt-table.pt-interactive tbody tr:hover td { background-color: #30404d; color: #f5f8fa; } .bp-table-row-headers { - display: table; -webkit-flex: 0 0 auto; flex: 0 0 auto; position: relative; z-index: 12; background-color: #f5f8fa; - color: #5c7080; } + color: #5c7080; + transition: width 100ms cubic-bezier(0.4, 1, 0.75, 0.9); } .pt-dark .bp-table-row-headers { background-color: #30404d; color: #bfccd6; } diff --git a/docs/docs/site-docs.js b/docs/docs/site-docs.js index dba43ed4fd..929368130c 100644 --- a/docs/docs/site-docs.js +++ b/docs/docs/site-docs.js @@ -52,19 +52,19 @@ var ReactDOM = __webpack_require__(33); var docs_1 = __webpack_require__(172); var blueprintDocs_1 = __webpack_require__(298); - var ReactDocs = __webpack_require__(333); - var reactExamples_1 = __webpack_require__(342); - var docs = __webpack_require__(629); - var releases = __webpack_require__(630) - .map(function (pkg) { + var ReactDocs = __webpack_require__(465); + var reactExamples_1 = __webpack_require__(473); + var docs = __webpack_require__(650); + var releases = __webpack_require__(651).map(function (pkg) { pkg.url = "https://www.npmjs.com/package/" + pkg.name; return pkg; }); - var versions = __webpack_require__(631) - .map(function (version) { return ({ - url: "https://palantir.github.io/blueprint/docs/" + version, - version: version, - }); }); + var versions = __webpack_require__(652).map(function (version) { + return ({ + url: "https://palantir.github.io/blueprint/docs/" + version, + version: version, + }); + }); var reactDocs = new docs_1.ReactDocsTagRenderer(ReactDocs); var reactExample = new docs_1.ReactExampleTagRenderer(reactExamples_1.reactExamples); var tagRenderers = tslib_1.__assign({}, docs_1.createDefaultRenderers(docs), { reactDocs: reactDocs.render, reactExample: reactExample.render }); @@ -22111,7 +22111,7 @@ BaseExample.prototype.actuallyRenderOptions = function () { var options = this.renderOptions(); if (Array.isArray(options)) { - return options.map(function (column, i) { return React.createElement("div", { className: "docs-react-options-column", key: i }, column); }); + return options.map(function (column, i) { return (React.createElement("div", { className: "docs-react-options-column", key: i }, column)); }); } else { return options; @@ -22434,8 +22434,8 @@ function Documentation(props) { var _this = _super.call(this, props) || this; _this.refHandlers = { - content: function (ref) { return _this.contentElement = ref; }, - nav: function (ref) { return _this.navElement = ref; }, + content: function (ref) { return (_this.contentElement = ref); }, + nav: function (ref) { return (_this.navElement = ref); }, }; _this.handleNavigation = function (activeSectionId) { // only update state if this section reference is valid @@ -22529,8 +22529,7 @@ var activeSectionId = this.state.activeSectionId; // only scroll nav menu if active item is not visible in viewport. // using activeSectionId so you can see the page title in nav (may not be visible in document). - var navMenuElement = this.navElement - .query("a[href=\"#" + activeSectionId + "\"]").closest(".docs-menu-item-page"); + var navMenuElement = this.navElement.query("a[href=\"#" + activeSectionId + "\"]").closest(".docs-menu-item-page"); var innerBounds = navMenuElement.getBoundingClientRect(); var outerBounds = this.navElement.getBoundingClientRect(); if (innerBounds.top < outerBounds.top || innerBounds.bottom > outerBounds.bottom) { @@ -22896,7 +22895,6 @@ AbstractComponent.prototype.validateProps = function (_) { // implement in subclass }; - ; return AbstractComponent; }(React.Component)); exports.AbstractComponent = AbstractComponent; @@ -23210,8 +23208,6 @@ return throttledFunc; } exports.throttleEvent = throttleEvent; - ; - ; /** * Throttle a callback by wrapping it in a `requestAnimationFrame` call. Returns the throttled * function. @@ -23296,8 +23292,8 @@ exports.NUMERIC_INPUT_STEP_SIZE_NULL = ns + " requires stepSize to be defined."; exports.POPOVER_REQUIRES_TARGET = ns + " requires target prop or at least one child element."; exports.POPOVER_MODAL_INTERACTION = ns + " requires interactionKind={PopoverInteractionKind.CLICK}."; - exports.POPOVER_WARN_TOO_MANY_CHILDREN = ns + " supports one or two children; additional children are ignored." - + " First child is the target, second child is the content. You may instead supply these two as props."; + exports.POPOVER_WARN_TOO_MANY_CHILDREN = ns + " supports one or two children; additional children are ignored." + + " First child is the target, second child is the content. You may instead supply these two as props."; exports.POPOVER_WARN_DOUBLE_CONTENT = ns + " with two children ignores content prop; use either prop or children."; exports.POPOVER_WARN_DOUBLE_TARGET = ns + " with children ignores target prop; use either prop or children."; exports.POPOVER_WARN_EMPTY_CONTENT = ns + " Disabling with empty/whitespace content..."; @@ -23312,8 +23308,8 @@ exports.RANGESLIDER_NULL_VALUE = ns + " value prop must be an array of two non-null numbers."; exports.TABS_FIRST_CHILD = ns + " First child of component must be a "; exports.TABS_MISMATCH = ns + " Number of components must equal number of components"; - exports.TABS_WARN_DEPRECATED = deprec + " is deprecated since v1.11.0; consider upgrading to ." - + " https://blueprintjs.com/#components.tabs.js"; + exports.TABS_WARN_DEPRECATED = deprec + " is deprecated since v1.11.0; consider upgrading to ." + + " https://blueprintjs.com/#components.tabs.js"; exports.TOASTER_WARN_INLINE = ns + " Toaster.create() ignores inline prop as it always creates a new element."; exports.TOASTER_WARN_LEFT_RIGHT = ns + " Toaster does not support LEFT or RIGHT positions."; exports.DIALOG_WARN_NO_HEADER_ICON = ns + " iconName is ignored if title is omitted."; @@ -23480,14 +23476,22 @@ })(Position = exports.Position || (exports.Position = {})); function isPositionHorizontal(position) { /* istanbul ignore next */ - return position === Position.TOP || position === Position.TOP_LEFT || position === Position.TOP_RIGHT - || position === Position.BOTTOM || position === Position.BOTTOM_LEFT || position === Position.BOTTOM_RIGHT; + return (position === Position.TOP || + position === Position.TOP_LEFT || + position === Position.TOP_RIGHT || + position === Position.BOTTOM || + position === Position.BOTTOM_LEFT || + position === Position.BOTTOM_RIGHT); } exports.isPositionHorizontal = isPositionHorizontal; function isPositionVertical(position) { /* istanbul ignore next */ - return position === Position.LEFT || position === Position.LEFT_TOP || position === Position.LEFT_BOTTOM - || position === Position.RIGHT || position === Position.RIGHT_TOP || position === Position.RIGHT_BOTTOM; + return (position === Position.LEFT || + position === Position.LEFT_TOP || + position === Position.LEFT_BOTTOM || + position === Position.RIGHT || + position === Position.RIGHT_TOP || + position === Position.RIGHT_BOTTOM); } exports.isPositionVertical = isPositionVertical; @@ -23568,7 +23572,9 @@ // element. thus, we pass a fake HTML bodyElement to Tether, with a no-op `appendChild` function // (the only function the library uses from bodyElement). var fakeHtmlElement = { - appendChild: function () { }, + appendChild: function () { + /* No-op */ + }, }; /** @internal */ function createTetherOptions(element, target, position, tetherOptions) { @@ -24717,6 +24723,7 @@ } Object.defineProperty(exports, "__esModule", { value: true }); if (typeof window !== "undefined" && typeof document !== "undefined") { + // we're in browser // tslint:disable-next-line:no-var-requires __webpack_require__(2); // only import actual dom4 if we're in the browser (not server-compatible) // we'll still need dom4 types for the TypeScript to compile, these are included in package.json @@ -24788,9 +24795,7 @@ var utils_1 = __webpack_require__(186); var popover_1 = __webpack_require__(199); var TETHER_OPTIONS = { - constraints: [ - { attachment: "together", pin: true, to: "window" }, - ], + constraints: [{ attachment: "together", pin: true, to: "window" }], }; var TRANSITION_DURATION = 100; var ContextMenu = (function (_super) { @@ -24956,10 +24961,10 @@ _this.handleMouseEnter = function (e) { // if we're entering the popover, and the mode is set to be HOVER_TARGET_ONLY, we want to manually // trigger the mouse leave event, as hovering over the popover shouldn't count. - if (_this.props.inline - && _this.isElementInPopover(e.target) - && _this.props.interactionKind === PopoverInteractionKind.HOVER_TARGET_ONLY - && !_this.props.openOnTargetFocus) { + if (_this.props.inline && + _this.isElementInPopover(e.target) && + _this.props.interactionKind === PopoverInteractionKind.HOVER_TARGET_ONLY && + !_this.props.openOnTargetFocus) { _this.handleMouseLeave(e); } else if (!_this.props.isDisabled) { @@ -24982,8 +24987,7 @@ _this.handleOverlayClose = function (e) { var eventTarget = e.target; // if click was in target, target event listener will handle things, so don't close - if (!Utils.elementIsOrContains(_this.targetElement, eventTarget) - || e.nativeEvent instanceof KeyboardEvent) { + if (!Utils.elementIsOrContains(_this.targetElement, eventTarget) || e.nativeEvent instanceof KeyboardEvent) { _this.setOpenState(false, e); } }; @@ -25036,10 +25040,10 @@ var targetTabIndex = this.props.openOnTargetFocus && this.isHoverInteractionKind() ? 0 : undefined; var target = React.cloneElement(children.target, // force disable single Tooltip child when popover is open (BLUEPRINT-552) - (isOpen && children.target.type === tooltip_1.Tooltip) + isOpen && children.target.type === tooltip_1.Tooltip ? { isDisabled: true, tabIndex: targetTabIndex } : { tabIndex: targetTabIndex }); - var isContentEmpty = (children.content == null); + var isContentEmpty = children.content == null; if (isContentEmpty && !this.props.isDisabled && isOpen !== false && !Utils.isNodeEnv("production")) { console.warn(Errors.POPOVER_WARN_EMPTY_CONTENT); } @@ -25127,8 +25131,8 @@ // always check popover clicks for dismiss class onClick: this.handlePopoverClick, }; - if ((interactionKind === PopoverInteractionKind.HOVER) - || (inline && interactionKind === PopoverInteractionKind.HOVER_TARGET_ONLY)) { + if (interactionKind === PopoverInteractionKind.HOVER || + (inline && interactionKind === PopoverInteractionKind.HOVER_TARGET_ONLY)) { popoverHandlers.onMouseEnter = this.handleMouseEnter; popoverHandlers.onMouseLeave = this.handleMouseLeave; } @@ -25184,10 +25188,8 @@ var arrow = this.popoverElement.getElementsByClassName(Classes.POPOVER_ARROW)[0]; var centerWidth = (this.state.targetWidth + arrow.clientWidth) / 2; var centerHeight = (this.state.targetHeight + arrow.clientHeight) / 2; - var ignoreWidth = centerWidth > this.popoverElement.clientWidth - && PosUtils.isPositionHorizontal(this.props.position); - var ignoreHeight = centerHeight > this.popoverElement.clientHeight - && PosUtils.isPositionVertical(this.props.position); + var ignoreWidth = centerWidth > this.popoverElement.clientWidth && PosUtils.isPositionHorizontal(this.props.position); + var ignoreHeight = centerHeight > this.popoverElement.clientHeight && PosUtils.isPositionVertical(this.props.position); if (!this.state.ignoreTargetDimensions && (ignoreWidth || ignoreHeight)) { this.setState({ ignoreTargetDimensions: true }); } @@ -25205,7 +25207,7 @@ // NOTE: use findDOMNode(this) directly because this.targetElement may not exist yet var target = react_dom_1.findDOMNode(this).childNodes[0]; // constraints is deprecated but must still be supported through tetherOptions until v2.0 - var options = (constraints == null && !useSmartPositioning) + var options = constraints == null && !useSmartPositioning ? tetherOptions : tslib_1.__assign({}, tetherOptions, { constraints: useSmartPositioning ? [SMART_POSITIONING] : constraints }); var finalTetherOptions = TetherUtils.createTetherOptions(this.popoverElement, target, position, options); @@ -25253,8 +25255,8 @@ return this.popoverElement != null && this.popoverElement.contains(element); }; Popover.prototype.isHoverInteractionKind = function () { - return this.props.interactionKind === PopoverInteractionKind.HOVER - || this.props.interactionKind === PopoverInteractionKind.HOVER_TARGET_ONLY; + return (this.props.interactionKind === PopoverInteractionKind.HOVER || + this.props.interactionKind === PopoverInteractionKind.HOVER_TARGET_ONLY); }; return Popover; }(abstractComponent_1.AbstractComponent)); @@ -27458,7 +27460,7 @@ function Overlay(props, context) { var _this = _super.call(this, props, context) || this; _this.refHandlers = { - container: function (ref) { return _this.containerElement = ref; }, + container: function (ref) { return (_this.containerElement = ref); }, }; _this.handleBackdropMouseDown = function (e) { var _a = _this.props, backdropProps = _a.backdropProps, canOutsideClickClose = _a.canOutsideClickClose, enforceFocus = _a.enforceFocus, onClose = _a.onClose; @@ -27474,8 +27476,7 @@ _this.handleDocumentClick = function (e) { var _a = _this.props, isOpen = _a.isOpen, onClose = _a.onClose; var eventTarget = e.target; - var isClickInOverlay = _this.containerElement != null - && _this.containerElement.contains(eventTarget); + var isClickInOverlay = _this.containerElement != null && _this.containerElement.contains(eventTarget); if (isOpen && _this.props.canOutsideClickClose && !isClickInOverlay) { // casting to any because this is a native event utils_1.safeInvoke(onClose, e); @@ -27490,9 +27491,9 @@ } }; _this.handleDocumentFocus = function (e) { - if (_this.props.enforceFocus - && _this.containerElement != null - && !_this.containerElement.contains(e.target)) { + if (_this.props.enforceFocus && + _this.containerElement != null && + !_this.containerElement.contains(e.target)) { // prevent default focus behavior (sometimes auto-scrolls the page) e.preventDefault(); e.stopImmediatePropagation(); @@ -29100,8 +29101,8 @@ this.maybeRenderSecondaryAction()))); }; Alert.prototype.validateProps = function (props) { - if (props.cancelButtonText != null && props.onCancel == null || - props.cancelButtonText == null && props.onCancel != null) { + if ((props.cancelButtonText != null && props.onCancel == null) || + (props.cancelButtonText == null && props.onCancel != null)) { console.warn(errors_1.ALERT_WARN_CANCEL_PROPS); } }; @@ -29312,13 +29313,15 @@ PureRender ], Icon); exports.Icon = Icon; - ; // NOTE: not using a type alias here so the full union will appear in the interface docs function getSizeClass(size) { switch (size) { - case Icon.SIZE_STANDARD: return common_1.Classes.ICON_STANDARD; - case Icon.SIZE_LARGE: return common_1.Classes.ICON_LARGE; - default: return common_1.Classes.ICON; + case Icon.SIZE_STANDARD: + return common_1.Classes.ICON_STANDARD; + case Icon.SIZE_LARGE: + return common_1.Classes.ICON_LARGE; + default: + return common_1.Classes.ICON; } } var Icon_1; @@ -29372,9 +29375,9 @@ pathLength: PATH_LENGTH, style: style, }); - return this.renderContainer(classes, (React.createElement("svg", { viewBox: classes.indexOf(Classes.SMALL) >= 0 ? "-15 -15 130 130" : "0 0 100 100" }, + return this.renderContainer(classes, React.createElement("svg", { viewBox: classes.indexOf(Classes.SMALL) >= 0 ? "-15 -15 130 130" : "0 0 100 100" }, React.createElement("path", { className: "pt-spinner-track", d: SPINNER_TRACK }), - headElement))); + headElement)); }; // abstract away the container elements so SVGSpinner can do its own thing Spinner.prototype.renderContainer = function (classes, content) { @@ -29615,7 +29618,7 @@ return React.createElement(this.props.component, { className: classNames(Classes.COLLAPSE, this.props.className), style: containerStyle, - }, (React.createElement("div", { className: "pt-collapse-body", ref: this.contentsRefHandler, style: contentsStyle }, showContents ? this.props.children : null))); + }, React.createElement("div", { className: "pt-collapse-body", ref: this.contentsRefHandler, style: contentsStyle }, showContents ? this.props.children : null)); }; Collapse.prototype.componentDidMount = function () { this.forceUpdate(); @@ -29629,10 +29632,12 @@ Collapse.prototype.componentDidUpdate = function () { var _this = this; if (this.state.animationState === AnimationStates.CLOSING_START) { - this.setTimeout(function () { return _this.setState({ - animationState: AnimationStates.CLOSING_END, - height: "0px", - }); }); + this.setTimeout(function () { + return _this.setState({ + animationState: AnimationStates.CLOSING_END, + height: "0px", + }); + }); this.setTimeout(function () { return _this.onDelayedStateChange(); }, this.props.transitionDuration); } }; @@ -29697,7 +29702,7 @@ var childrenLength = React.Children.count(this.props.children); var _a = this.partitionChildren(), visibleChildren = _a[0], collapsedChildren = _a[1]; var visibleItems = visibleChildren.map(function (child, index) { - var absoluteIndex = (collapseFrom === CollapseFrom.START ? childrenLength - 1 - index : index); + var absoluteIndex = collapseFrom === CollapseFrom.START ? childrenLength - 1 - index : index; return (React.createElement("li", { className: _this.props.visibleItemClassName, key: absoluteIndex }, _this.props.renderVisibleItem(child.props, absoluteIndex))); }); if (collapseFrom === CollapseFrom.START) { @@ -29707,7 +29712,7 @@ // construct dropdown menu for collapsed items var collapsedPopover; if (collapsedChildren.length > 0) { - var position = (collapseFrom === CollapseFrom.END ? position_1.Position.BOTTOM_RIGHT : position_1.Position.BOTTOM_LEFT); + var position = collapseFrom === CollapseFrom.END ? position_1.Position.BOTTOM_RIGHT : position_1.Position.BOTTOM_LEFT; collapsedPopover = (React.createElement("li", { className: this.props.visibleItemClassName }, React.createElement(popover_1.Popover, tslib_1.__assign({ content: React.createElement(menu_1.Menu, null, collapsedChildren), position: position }, this.props.dropdownProps), this.props.dropdownTarget))); } @@ -29732,10 +29737,7 @@ childrenArray.reverse(); } var visibleItemCount = this.props.visibleItemCount; - return [ - childrenArray.slice(0, visibleItemCount), - childrenArray.slice(visibleItemCount), - ]; + return [childrenArray.slice(0, visibleItemCount), childrenArray.slice(visibleItemCount)]; }; return CollapsibleList; }(React.Component)); @@ -29820,7 +29822,7 @@ _this.state = { alignLeft: false, }; - _this.liRefHandler = function (r) { return _this.liElement = r; }; + _this.liRefHandler = function (r) { return (_this.liElement = r); }; _this.measureSubmenu = function (el) { if (el != null) { var submenuRect = ReactDOM.findDOMNode(el).getBoundingClientRect(); @@ -29835,9 +29837,9 @@ } var _a = _this.props.submenuViewportMargin.left, left = _a === void 0 ? 0 : _a; var _b = _this.props.submenuViewportMargin.right, right = _b === void 0 ? 0 : _b; - if (typeof document !== "undefined" - && typeof document.documentElement !== "undefined" - && Number(document.documentElement.clientWidth)) { + if (typeof document !== "undefined" && + typeof document.documentElement !== "undefined" && + Number(document.documentElement.clientWidth)) { // we're in a browser context and the clientWidth is available, // use it to set calculate 'right' right = document.documentElement.clientWidth - right; @@ -29845,7 +29847,7 @@ // uses context to prioritize the previous positioning var alignLeft = _this.context.alignLeft || false; if (alignLeft) { - if ((submenuLeft - adjustmentWidth) <= left) { + if (submenuLeft - adjustmentWidth <= left) { alignLeft = false; } } @@ -29898,7 +29900,7 @@ return _this; } MenuItem.prototype.render = function () { - var _a = this.props, children = _a.children, disabled = _a.disabled, label = _a.label, submenu = _a.submenu; + var _a = this.props, children = _a.children, disabled = _a.disabled, label = _a.label, submenu = _a.submenu, popoverProps = _a.popoverProps; var hasSubmenu = children != null || submenu != null; var liClasses = classNames((_b = {}, _b[Classes.MENU_SUBMENU] = hasSubmenu, @@ -29916,12 +29918,12 @@ labelElement, this.props.text)); if (hasSubmenu) { - var measureSubmenu = (this.props.useSmartPositioning) ? this.measureSubmenu : null; + var measureSubmenu = this.props.useSmartPositioning ? this.measureSubmenu : null; var submenuElement = React.createElement(menu_1.Menu, { ref: measureSubmenu }, this.renderChildren()); - var popoverClasses = classNames((_d = {}, + var popoverClasses = classNames(Classes.MINIMAL, Classes.MENU_SUBMENU, popoverProps.popoverClassName, (_d = {}, _d[Classes.ALIGN_LEFT] = this.state.alignLeft, _d)); - content = (React.createElement(popover_1.Popover, { content: submenuElement, isDisabled: disabled, enforceFocus: false, hoverCloseDelay: 0, inline: true, interactionKind: popover_1.PopoverInteractionKind.HOVER, position: this.state.alignLeft ? position_1.Position.LEFT_TOP : position_1.Position.RIGHT_TOP, popoverClassName: classNames(Classes.MINIMAL, Classes.MENU_SUBMENU, popoverClasses), useSmartArrowPositioning: false }, content)); + content = (React.createElement(popover_1.Popover, tslib_1.__assign({ isDisabled: disabled, enforceFocus: false, hoverCloseDelay: 0, inline: true, interactionKind: popover_1.PopoverInteractionKind.HOVER, position: this.state.alignLeft ? position_1.Position.LEFT_TOP : position_1.Position.RIGHT_TOP, useSmartArrowPositioning: false }, popoverProps, { content: submenuElement, popoverClassName: popoverClasses }), content)); } return (React.createElement("li", { className: liClasses, ref: this.liRefHandler }, content)); var _b, _c, _d; @@ -29938,6 +29940,7 @@ }(abstractComponent_1.AbstractComponent)); MenuItem.defaultProps = { disabled: false, + popoverProps: {}, shouldDismissPopover: true, submenuViewportMargin: {}, text: "", @@ -30006,7 +30009,6 @@ }; } exports.ContextMenuTarget = ContextMenuTarget; - ; @@ -30107,7 +30109,7 @@ } } }; - var value = (props.value == null) ? props.defaultValue : props.value; + var value = props.value == null ? props.defaultValue : props.value; _this.state = { inputHeight: 0, inputWidth: 0, @@ -30119,8 +30121,8 @@ } EditableText.prototype.render = function () { var _a = this.props, disabled = _a.disabled, multiline = _a.multiline; - var value = (this.props.value == null ? this.state.value : this.props.value); - var hasValue = (value != null && value !== ""); + var value = this.props.value == null ? this.state.value : this.props.value; + var hasValue = value != null && value !== ""; var classes = classNames(Classes.EDITABLE_TEXT, Classes.intentClass(this.props.intent), (_b = {}, _b[Classes.DISABLED] = disabled, _b["pt-editable-editing"] = this.state.isEditing, @@ -30223,7 +30225,7 @@ }); // synchronizes the ::before pseudo-element's height while editing for Chrome 53 if (multiline && this.state.isEditing) { - this.setTimeout(function () { return parentElement_1.style.height = scrollHeight_1 + "px"; }); + this.setTimeout(function () { return (parentElement_1.style.height = scrollHeight_1 + "px"); }); } } }; @@ -30314,7 +30316,7 @@ var userAgent = typeof navigator !== "undefined" ? navigator.userAgent : ""; var browser = { isEdge: !!userAgent.match(/Edge/), - isInternetExplorer: (!!userAgent.match(/Trident/) || !!userAgent.match(/rv:11/)), + isInternetExplorer: !!userAgent.match(/Trident/) || !!userAgent.match(/rv:11/), isWebkit: !!userAgent.match(/AppleWebKit/), }; exports.Browser = { @@ -30468,7 +30470,7 @@ rightElementWidth: 30, }; _this.refHandlers = { - rightElement: function (ref) { return _this.rightElement = ref; }, + rightElement: function (ref) { return (_this.rightElement = ref); }, }; return _this; } @@ -30495,7 +30497,7 @@ if (rightElement == null) { return undefined; } - return React.createElement("span", { className: "pt-input-action", ref: this.refHandlers.rightElement }, rightElement); + return (React.createElement("span", { className: "pt-input-action", ref: this.refHandlers.rightElement }, rightElement)); }; InputGroup.prototype.updateInputWidth = function () { if (this.rightElement != null) { @@ -30679,7 +30681,7 @@ var didMinChange = nextProps.min !== this.props.min; var didMaxChange = nextProps.max !== this.props.max; var didBoundsChange = didMinChange || didMaxChange; - var sanitizedValue = (value !== NumericInput_1.VALUE_EMPTY) + var sanitizedValue = value !== NumericInput_1.VALUE_EMPTY ? this.getSanitizedValue(value, /* delta */ 0, nextProps.min, nextProps.max) : NumericInput_1.VALUE_EMPTY; var stepMaxPrecision = this.getStepMaxPrecision(nextProps); @@ -30717,7 +30719,7 @@ // text field with squared border-radii on the left side, causing it // to look weird. This problem goes away if we simply don't nest within // a control group. - return (React.createElement("div", { className: className }, inputGroup)); + return React.createElement("div", { className: className }, inputGroup); } else { var incrementButton = this.renderButton(NumericInput_1.INCREMENT_KEY, NumericInput_1.INCREMENT_ICON_NAME, this.handleIncrementButtonClick); @@ -30725,13 +30727,11 @@ var buttonGroup = (React.createElement("div", { key: "button-group", className: classNames(common_1.Classes.BUTTON_GROUP, common_1.Classes.VERTICAL, common_1.Classes.FIXED) }, incrementButton, decrementButton)); - var inputElems = (buttonPosition === common_1.Position.LEFT) - ? [buttonGroup, inputGroup] - : [inputGroup, buttonGroup]; + var inputElems = buttonPosition === common_1.Position.LEFT ? [buttonGroup, inputGroup] : [inputGroup, buttonGroup]; var classes = classNames(common_1.Classes.NUMERIC_INPUT, common_1.Classes.CONTROL_GROUP, (_c = {}, _c[common_1.Classes.LARGE] = large, _c), className); - return (React.createElement("div", { className: classes }, inputElems)); + return React.createElement("div", { className: classes }, inputElems); } var _b, _c; }; @@ -30812,13 +30812,13 @@ var nextValue = this.toMaxPrecision(parseFloat(value) + delta); // defaultProps won't work if the user passes in null, so just default // to +/- infinity here instead, as a catch-all. - var adjustedMin = (min != null) ? min : -Infinity; - var adjustedMax = (max != null) ? max : Infinity; + var adjustedMin = min != null ? min : -Infinity; + var adjustedMax = max != null ? max : Infinity; nextValue = common_1.Utils.clamp(nextValue, adjustedMin, adjustedMax); return nextValue.toString(); }; NumericInput.prototype.getValueOrEmptyValue = function (value) { - return (value != null) ? value.toString() : NumericInput_1.VALUE_EMPTY; + return value != null ? value.toString() : NumericInput_1.VALUE_EMPTY; }; NumericInput.prototype.isValueNumeric = function (value) { // checking if a string is numeric in Typescript is a big pain, because @@ -30827,7 +30827,7 @@ // parsed numeric value from the string representation of the value. we // need to cast the value to the `any` type to allow this operation // between dissimilar types. - return value != null && (value - parseFloat(value) + 1) >= 0; + return value != null && value - parseFloat(value) + 1 >= 0; }; NumericInput.prototype.isKeyboardEventDisabledForBasicNumericEntry = function (e) { // unit tests may not include e.key. don't bother disabling those events. @@ -30931,7 +30931,9 @@ var Errors = __webpack_require__(187); var controls_1 = __webpack_require__(241); var counter = 0; - function nextName() { return RadioGroup.displayName + "-" + counter++; } + function nextName() { + return RadioGroup.displayName + "-" + counter++; + } var RadioGroup = (function (_super) { tslib_1.__extends(RadioGroup, _super); function RadioGroup() { @@ -30981,7 +30983,6 @@ }(abstractComponent_1.AbstractComponent)); RadioGroup.displayName = "Blueprint.RadioGroup"; exports.RadioGroup = RadioGroup; - ; function isRadio(child) { return child != null && child.type === controls_1.Radio; } @@ -31092,9 +31093,9 @@ }; Hotkey.prototype.render = function () { var _a = this.props, label = _a.label, spreadableProps = tslib_1.__rest(_a, ["label"]); - return React.createElement("div", { className: "pt-hotkey" }, + return (React.createElement("div", { className: "pt-hotkey" }, React.createElement("div", { className: "pt-hotkey-label" }, label), - React.createElement(keyCombo_1.KeyCombo, tslib_1.__assign({}, spreadableProps))); + React.createElement(keyCombo_1.KeyCombo, tslib_1.__assign({}, spreadableProps)))); }; Hotkey.prototype.validateProps = function (props) { if (props.global !== true && props.group == null) { @@ -31256,7 +31257,7 @@ 219: "[", 220: "\\", 221: "]", - 222: "\'", + 222: "'", }; exports.Modifiers = { 16: "shift", @@ -31290,20 +31291,20 @@ "!": "1", "@": "2", "#": "3", - "$": "4", + $: "4", "%": "5", "^": "6", "&": "7", "*": "8", "(": "9", ")": "0", - "_": "-", + _: "-", "+": "=", "{": "[", "}": "]", "|": "\\", ":": ";", - "\"": "\'", + '"': "'", "<": ",", ">": ".", "?": "/", @@ -31332,7 +31333,10 @@ * unshifted version. For example, `@` is equivalent to `shift+2`. */ exports.parseKeyCombo = function (combo) { - var pieces = combo.replace(/\s/g, "").toLowerCase().split("+"); + var pieces = combo + .replace(/\s/g, "") + .toLowerCase() + .split("+"); var modifiers = 0; var key = null; for (var _i = 0, pieces_1 = pieces; _i < pieces_1.length; _i++) { @@ -31363,7 +31367,7 @@ * for unit tests. */ var normalizeKeyCode = function (e) { - return (e.which === 0 && e.key != null) ? e.key.charCodeAt(0) : e.which; + return e.which === 0 && e.key != null ? e.key.charCodeAt(0) : e.which; }; /** * Converts a keyboard event into a valid combo prop string @@ -31441,20 +31445,14 @@ exports.normalizeKeyCombo = function (combo, platformOverride) { var keys = combo.replace(/\s/g, "").split("+"); return keys.map(function (key) { - var keyName = (exports.Aliases[key] != null) ? exports.Aliases[key] : key; - return (keyName === "meta") - ? (isMac(platformOverride) ? "cmd" : "ctrl") - : keyName; + var keyName = exports.Aliases[key] != null ? exports.Aliases[key] : key; + return keyName === "meta" ? (isMac(platformOverride) ? "cmd" : "ctrl") : keyName; }); }; /* tslint:enable:no-string-literal */ function isMac(platformOverride) { - var platform = platformOverride != null - ? platformOverride - : (typeof navigator !== "undefined" ? navigator.platform : undefined); - return platform == null - ? false - : /Mac|iPod|iPhone|iPad/.test(platform); + var platform = platformOverride != null ? platformOverride : typeof navigator !== "undefined" ? navigator.platform : undefined; + return platform == null ? false : /Mac|iPod|iPhone|iPad/.test(platform); } @@ -31533,7 +31531,6 @@ // tslint:enable } exports.HotkeysTarget = HotkeysTarget; - ; @@ -31751,15 +31748,14 @@ var _this = this; var hotkeys = this.emptyHotkeyQueue(); var elements = hotkeys.map(function (hotkey, index) { - var group = (hotkey.global === true && hotkey.group == null) ? - _this.componentProps.globalHotkeysGroup : hotkey.group; + var group = hotkey.global === true && hotkey.group == null ? _this.componentProps.globalHotkeysGroup : hotkey.group; return React.createElement(hotkey_1.Hotkey, tslib_1.__assign({ key: index }, hotkey, { group: group })); }); return React.createElement(hotkeys_1.Hotkeys, null, elements); }; HotkeysDialog.prototype.emptyHotkeyQueue = function () { // flatten then empty the hotkeys queue - var hotkeys = this.hotkeysQueue.reduce((function (arr, queued) { return arr.concat(queued); }), []); + var hotkeys = this.hotkeysQueue.reduce(function (arr, queued) { return arr.concat(queued); }, []); this.hotkeysQueue.length = 0; return hotkeys; }; @@ -31828,8 +31824,8 @@ } else { // section header with title - return React.createElement("li", { className: classNames(Classes.MENU_HEADER, className) }, - React.createElement("h6", null, title)); + return (React.createElement("li", { className: classNames(Classes.MENU_HEADER, className) }, + React.createElement("h6", null, title))); } }; return MenuDivider; @@ -31898,7 +31894,7 @@ React.createElement(icon_1.Icon, { iconName: visual, iconSize: "inherit" }))); } else { - return (React.createElement("div", { className: Classes.NON_IDEAL_STATE_VISUAL }, visual)); + return React.createElement("div", { className: Classes.NON_IDEAL_STATE_VISUAL }, visual); } }; return NonIdealState; @@ -31937,7 +31933,7 @@ textContent: "", }; _this.refHandlers = { - text: function (overflowElement) { return _this.textRef = overflowElement; }, + text: function (overflowElement) { return (_this.textRef = overflowElement); }, }; return _this; } @@ -31991,7 +31987,7 @@ return _super !== null && _super.apply(this, arguments) || this; } SVGPopover.prototype.render = function () { - return React.createElement(popover_1.Popover, tslib_1.__assign({ rootElementTag: "g" }, this.props), this.props.children); + return (React.createElement(popover_1.Popover, tslib_1.__assign({ rootElementTag: "g" }, this.props), this.props.children)); }; return SVGPopover; }(React.Component)); @@ -32027,7 +32023,7 @@ var _a = this.props, className = _a.className, intent = _a.intent, value = _a.value; var classes = classNames("pt-progress-bar", Classes.intentClass(intent), className); // don't set width if value is null (rely on default CSS value) - var width = (value == null ? null : 100 * utils_1.clamp(value, 0, 1) + "%"); + var width = value == null ? null : 100 * utils_1.clamp(value, 0, 1) + "%"; return (React.createElement("div", { className: classes }, React.createElement("div", { className: "pt-progress-meter", style: { width: width } }))); }; @@ -32063,7 +32059,7 @@ return _super !== null && _super.apply(this, arguments) || this; } SVGTooltip.prototype.render = function () { - return React.createElement(tooltip_1.Tooltip, tslib_1.__assign({ rootElementTag: "g" }, this.props), this.props.children); + return (React.createElement(tooltip_1.Tooltip, tslib_1.__assign({ rootElementTag: "g" }, this.props), this.props.children)); }; return SVGTooltip; }(React.Component)); @@ -32149,19 +32145,23 @@ }; RangeSlider.prototype.handleTrackClick = function (event) { var _this = this; - this.handles.reduce(function (min, handle) { + this.handles + .reduce(function (min, handle) { // find closest handle to the mouse position var value = handle.clientToValue(event.clientX); return _this.nearestHandleForValue(value, min, handle); - }).beginHandleMovement(event); + }) + .beginHandleMovement(event); }; RangeSlider.prototype.handleTrackTouch = function (event) { var _this = this; - this.handles.reduce(function (min, handle) { + this.handles + .reduce(function (min, handle) { // find closest handle to the touch position var value = handle.clientToValue(handle.touchEventClientX(event)); return _this.nearestHandleForValue(value, min, handle); - }).beginHandleTouchMovement(event); + }) + .beginHandleTouchMovement(event); }; RangeSlider.prototype.nearestHandleForValue = function (value, firstHandle, secondHandle) { var firstDistance = Math.abs(value - firstHandle.props.value); @@ -32217,7 +32217,7 @@ var _this = _super.call(this, props) || this; _this.className = Classes.SLIDER; _this.refHandlers = { - track: function (el) { return _this.trackElement = el; }, + track: function (el) { return (_this.trackElement = el); }, }; _this.maybeHandleTrackClick = function (event) { if (_this.canHandleTrackEvent(event)) { @@ -32309,9 +32309,7 @@ CoreSlider.prototype.getLabelPrecision = function (_a) { var labelPrecision = _a.labelPrecision, stepSize = _a.stepSize; // infer default label precision from stepSize because that's how much the handle moves. - return (labelPrecision == null) - ? utils_1.countDecimalPlaces(stepSize) - : labelPrecision; + return labelPrecision == null ? utils_1.countDecimalPlaces(stepSize) : labelPrecision; }; CoreSlider.prototype.updateTickSize = function () { if (this.trackElement != null) { @@ -32358,7 +32356,7 @@ isMoving: false, }; _this.refHandlers = { - handle: function (el) { return _this.handleElement = el; }, + handle: function (el) { return (_this.handleElement = el); }, }; _this.beginHandleMovement = function (event) { document.addEventListener("mousemove", _this.handleHandleMovement); @@ -32422,7 +32420,7 @@ var _a = this.props, className = _a.className, disabled = _a.disabled, label = _a.label, min = _a.min, tickSize = _a.tickSize, value = _a.value; var isMoving = this.state.isMoving; // getBoundingClientRect().height includes border size as opposed to clientHeight - var handleSize = (this.handleElement == null ? 0 : this.handleElement.getBoundingClientRect().height); + var handleSize = this.handleElement == null ? 0 : this.handleElement.getBoundingClientRect().height; return (React.createElement("span", { className: classNames(Classes.SLIDER_HANDLE, (_b = {}, _b[Classes.ACTIVE] = isMoving, _b), className), onKeyDown: disabled ? null : this.handleKeyDown, onKeyUp: disabled ? null : this.handleKeyUp, onMouseDown: disabled ? null : this.beginHandleMovement, onTouchStart: disabled ? null : this.beginHandleTouchMovement, ref: this.refHandlers.handle, style: { left: Math.round((value - min) * tickSize - handleSize / 2) }, tabIndex: 0 }, label == null ? null : React.createElement("span", { className: Classes.SLIDER_LABEL }, label))); var _b; }; @@ -32709,9 +32707,9 @@ _this.handleTabSelectingEvent = function (e) { var tabElement = e.target.closest(TAB_CSS_SELECTOR); // select only if Tab is one of us and is enabled - if (tabElement != null - && _this.tabIds.indexOf(tabElement.id) >= 0 - && tabElement.getAttribute("aria-disabled") !== "true") { + if (tabElement != null && + _this.tabIds.indexOf(tabElement.id) >= 0 && + tabElement.getAttribute("aria-disabled") !== "true") { var index = tabElement.parentElement.queryAll(TAB_CSS_SELECTOR).indexOf(tabElement); _this.setSelectedTabIndex(index); } @@ -33045,7 +33043,7 @@ /* istanbul ignore next */ Tab2.prototype.render = function () { var _a = this.props, className = _a.className, panel = _a.panel; - return React.createElement("div", { className: classNames(Classes.TAB_PANEL, className), role: "tablist" }, panel); + return (React.createElement("div", { className: classNames(Classes.TAB_PANEL, className), role: "tablist" }, panel)); }; return Tab2; }(React.Component)); @@ -33091,7 +33089,7 @@ function Tabs2(props) { var _this = _super.call(this, props) || this; _this.refHandlers = { - tablist: function (tabElement) { return _this.tablistElement = tabElement; }, + tablist: function (tabElement) { return (_this.tablistElement = tabElement); }, }; _this.handleKeyDown = function (e) { var focusedElement = document.activeElement.closest(TAB_SELECTOR); @@ -33100,8 +33098,7 @@ return; } // must rely on DOM state because we have no way of mapping `focusedElement` to a JSX.Element - var enabledTabElements = _this.getTabElements() - .filter(function (el) { return el.getAttribute("aria-disabled") === "false"; }); + var enabledTabElements = _this.getTabElements().filter(function (el) { return el.getAttribute("aria-disabled") === "false"; }); var focusedIndex = enabledTabElements.indexOf(focusedElement); var direction = _this.getKeyCodeDirection(e); if (focusedIndex >= 0 && direction !== undefined) { @@ -33344,9 +33341,7 @@ _b[Classes.TAG_REMOVABLE] = onRemove != null, _b[Classes.ACTIVE] = active, _b), className); - var button = common_1.Utils.isFunction(onRemove) - ? React.createElement("button", { type: "button", className: Classes.TAG_REMOVE, onClick: this.onRemoveClick }) - : undefined; + var button = common_1.Utils.isFunction(onRemove) ? (React.createElement("button", { type: "button", className: Classes.TAG_REMOVE, onClick: this.onRemoveClick })) : (undefined); return (React.createElement("span", tslib_1.__assign({}, props_1.removeNonHTMLProps(this.props), { className: tagClasses }), this.props.children, button)); @@ -33520,7 +33515,7 @@ Toaster.prototype.update = function (key, props) { var options = this.createToastOptions(props, key); this.setState(function (prevState) { return ({ - toasts: prevState.toasts.map(function (t) { return t.key === key ? options : t; }), + toasts: prevState.toasts.map(function (t) { return (t.key === key ? options : t); }), }); }); }; Toaster.prototype.dismiss = function (key, timeoutExpired) { @@ -33661,7 +33656,7 @@ var elementPath = currentPath.concat(i); return (React.createElement(treeNode_1.TreeNode, tslib_1.__assign({}, node, { key: node.id, contentRef: _this.handleContentRef, depth: elementPath.length - 1, onClick: _this.handleNodeClick, onContextMenu: _this.handleNodeContextMenu, onCollapse: _this.handleNodeCollapse, onDoubleClick: _this.handleNodeDoubleClick, onExpand: _this.handleNodeExpand, path: elementPath }), _this.renderNodes(node.childNodes, elementPath))); }); - return (React.createElement("ul", { className: classNames(Classes.TREE_NODE_LIST, className) }, nodeItems)); + return React.createElement("ul", { className: classNames(Classes.TREE_NODE_LIST, className) }, nodeItems); }; Tree.prototype.handlerHelper = function (handlerFromProps, node, e) { if (utils_1.isFunction(handlerFromProps)) { @@ -33864,8 +33859,8 @@ selectedIndex: 0, }; _this.refHandlers = { - input: function (ref) { return _this.inputRef = ref; }, - menu: function (ref) { return _this.menuRef = ref; }, + input: function (ref) { return (_this.inputRef = ref); }, + menu: function (ref) { return (_this.menuRef = ref); }, }; // this guy must be defined before he's used in handleQueryChange // and it just makes sense to be up here with state init @@ -33911,8 +33906,8 @@ React.createElement(core_1.InputGroup, { autoComplete: "off", autoFocus: true, inputRef: this.refHandlers.input, leftIconName: "search", onChange: this.handleQueryChange, onKeyDown: this.handleKeyDown, placeholder: "Search...", type: "search", value: this.state.query }))); }; Navigator.prototype.renderHotkeys = function () { - return React.createElement(core_1.Hotkeys, null, - React.createElement(core_1.Hotkey, { global: true, combo: "shift + s", label: "Focus documentation search box", onKeyDown: this.handleFocusSearch })); + return (React.createElement(core_1.Hotkeys, null, + React.createElement(core_1.Hotkey, { global: true, combo: "shift + s", label: "Focus documentation search box", onKeyDown: this.handleFocusSearch }))); }; Navigator.prototype.componentDidMount = function () { var _this = this; @@ -33969,7 +33964,7 @@ " to reset."), ]; } - return React.createElement("div", { className: core_1.Classes.MENU, ref: this.refHandlers.menu }, items); + return (React.createElement("div", { className: core_1.Classes.MENU, ref: this.refHandlers.menu }, items)); }; Navigator.prototype.selectNext = function (direction) { var _this = this; @@ -35108,9 +35103,7 @@ var isExpanded = isActive || isParentOfRoute(section.route, props.activeSectionId); // active section gets selected styles, expanded section shows its children var classes = classNames({ "docs-nav-expanded": isExpanded }); - var childrenMenu = client_1.isPageNode(section) - ? React.createElement(exports.NavMenu, tslib_1.__assign({}, props, { items: section.children })) - : undefined; + var childrenMenu = client_1.isPageNode(section) ? React.createElement(exports.NavMenu, tslib_1.__assign({}, props, { items: section.children })) : undefined; return (React.createElement(exports.NavMenuItem, { className: classes, key: section.route, item: section, isActive: isActive, onClick: props.onItemClick }, childrenMenu)); }); var classes = classNames("docs-nav-menu", "pt-list-unstyled", props.className); @@ -35140,7 +35133,7 @@ exports.Page = function (_a) { var tagRenderers = _a.tagRenderers, page = _a.page; var pageContents = block_1.renderContentsBlock(page.contents, tagRenderers, page); - return React.createElement("div", { className: "docs-page", "data-page-id": page.reference }, pageContents); + return (React.createElement("div", { className: "docs-page", "data-page-id": page.reference }, pageContents)); }; @@ -35172,8 +35165,8 @@ } catch (ex) { console.error(ex.message); - return React.createElement("h3", null, - React.createElement("code", null, ex.message)); + return (React.createElement("h3", null, + React.createElement("code", null, ex.message))); } }); } @@ -35234,11 +35227,13 @@ // dirty deduplication for overridden/inherited props var props_1 = {}; entry.extends.map(_this.getInheritedProps).forEach(function (inherited) { - inherited.forEach(function (prop) { return props_1[prop.name] = prop; }); + inherited.forEach(function (prop) { return (props_1[prop.name] = prop); }); }); - entry.properties.forEach(function (prop) { return props_1[prop.name] = prop; }); + entry.properties.forEach(function (prop) { return (props_1[prop.name] = prop); }); // return a sorted array of unique props - return Object.keys(props_1).sort().map(function (n) { return props_1[n]; }); + return Object.keys(props_1) + .sort() + .map(function (n) { return props_1[n]; }); } }; this.getInheritedProps = function (name) { @@ -35421,10 +35416,9 @@ var React = __webpack_require__(3); var Heading = function (_a) { var level = _a.level, route = _a.route, value = _a.value; - return ( // use createElement so we can dynamically choose tag based on depth - React.createElement("h" + level, { className: "docs-title" }, React.createElement("a", { className: "docs-anchor", key: "anchor", name: route }), React.createElement("a", { className: "docs-anchor-link", href: "#" + route, key: "link" }, - React.createElement("span", { className: "pt-icon-standard pt-icon-link" })), value)); + return React.createElement("h" + level, { className: "docs-title" }, React.createElement("a", { className: "docs-anchor", key: "anchor", name: route }), React.createElement("a", { className: "docs-anchor-link", href: "#" + route, key: "link" }, + React.createElement("span", { className: "pt-icon-standard pt-icon-link" })), value); }; Heading.displayName = "Docs.Heading"; var HeadingTagRenderer = (function () { @@ -35490,9 +35484,12 @@ var block_1 = __webpack_require__(285); // HACKHACK support `code` blocks until we get real markdown parsing in ts-quick-docs function dirtyMarkdown(text) { - return { __html: text.replace("<", "<") + return { + __html: text + .replace("<", "<") .replace(/```([^`]+)```/g, function (_, code) { return "
" + code + "
"; }) - .replace(/`([^`]+)`/g, function (_, code) { return "" + code + ""; }) }; + .replace(/`([^`]+)`/g, function (_, code) { return "" + code + ""; }), + }; } function propTag(intent, title) { var children = []; @@ -35519,9 +35516,7 @@ tags.push(propTag(core_1.Intent.SUCCESS, "Required")); } if (deprecated) { - var maybeMessage = typeof deprecated === "string" - ? React.createElement("span", { dangerouslySetInnerHTML: dirtyMarkdown(": " + deprecated) }) - : ""; + var maybeMessage = typeof deprecated === "string" ? React.createElement("span", { dangerouslySetInnerHTML: dirtyMarkdown(": " + deprecated) }) : ""; tags.push(propTag(core_1.Intent.DANGER, "Deprecated", maybeMessage)); } if (inheritedFrom != null) { @@ -35530,7 +35525,7 @@ var formattedType = prop.type.replace(/\b(JSX\.)?Element\b/, "JSX.Element"); // TODO: this ignores tags in prop docs, but that's kind of OK cuz they all get processed // into prop.tags by the TS compiler. - var html = documentation.contents.reduce(function (a, b) { return typeof b === "string" ? a + b : a; }, ""); + var html = documentation.contents.reduce(function (a, b) { return (typeof b === "string" ? a + b : a); }, ""); return (React.createElement("tr", { key: name }, React.createElement("td", { className: classes }, React.createElement("code", null, name)), @@ -35592,7 +35587,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var React = __webpack_require__(3); - ; var ReactDocsTagRenderer = (function () { function ReactDocsTagRenderer(docs) { var _this = this; @@ -35633,7 +35627,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var React = __webpack_require__(3); - ; exports.ReactExample = function (props) { return (React.createElement("div", { className: "docs-example-wrapper" }, props.example.render({ id: props.name }), React.createElement("a", { className: "view-example-source", href: props.example.sourceUrl, target: "_blank" }, @@ -35732,7 +35725,7 @@ var tslib_1 = __webpack_require__(1); var core_1 = __webpack_require__(179); var labs_1 = __webpack_require__(300); - var classNames = __webpack_require__(332); + var classNames = __webpack_require__(464); var React = __webpack_require__(3); var NavbarActions = (function (_super) { tslib_1.__extends(NavbarActions, _super); @@ -35751,8 +35744,8 @@ React.createElement(core_1.AnchorButton, { className: "docs-dark-switch", onClick: this.handleDarkSwitchChange, iconName: this.props.useDarkTheme ? "flash" : "moon" }))); }; NavbarActions.prototype.renderHotkeys = function () { - return React.createElement(core_1.Hotkeys, null, - React.createElement(core_1.Hotkey, { global: true, combo: "shift + d", label: "Toggle dark theme", onKeyDown: this.handleDarkSwitchChange })); + return (React.createElement(core_1.Hotkeys, null, + React.createElement(core_1.Hotkey, { global: true, combo: "shift + d", label: "Toggle dark theme", onKeyDown: this.handleDarkSwitchChange }))); }; NavbarActions.prototype.renderReleasesMenu = function () { var menuItems = this.props.releases.map(function (version, index) { return (React.createElement(core_1.MenuItem, { href: version.url, key: index, label: version.version, target: "_blank", text: version.name })); }); @@ -35827,6 +35820,8 @@ exports.SELECT_POPOVER = exports.SELECT + "-popover"; exports.TAG_INPUT = "pt-tag-input"; exports.TAG_INPUT_ICON = exports.TAG_INPUT + "-icon"; + exports.TIMEZONE_PICKER = "pt-timezone-picker"; + exports.TIMEZONE_PICKER_POPOVER = exports.TIMEZONE_PICKER + "-popover"; @@ -35846,13 +35841,14 @@ } Object.defineProperty(exports, "__esModule", { value: true }); __export(__webpack_require__(304)); + __export(__webpack_require__(312)); + __export(__webpack_require__(325)); __export(__webpack_require__(311)); - __export(__webpack_require__(324)); - __export(__webpack_require__(327)); __export(__webpack_require__(328)); - __export(__webpack_require__(329)); __export(__webpack_require__(330)); __export(__webpack_require__(331)); + __export(__webpack_require__(329)); + __export(__webpack_require__(332)); @@ -35873,8 +35869,8 @@ var PureRender = __webpack_require__(307); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); - var _1 = __webpack_require__(303); var Classes = __webpack_require__(302); + var queryList_1 = __webpack_require__(311); var Omnibox = Omnibox_1 = (function (_super) { tslib_1.__extends(Omnibox, _super); function Omnibox() { @@ -35882,17 +35878,15 @@ _this.state = { query: "", }; - _this.TypedQueryList = _1.QueryList.ofType(); + _this.TypedQueryList = queryList_1.QueryList.ofType(); _this.refHandlers = { - queryList: function (ref) { return _this.queryList = ref; }, + queryList: function (ref) { return (_this.queryList = ref); }, }; _this.renderQueryList = function (listProps) { var _a = _this.props, _b = _a.inputProps, inputProps = _b === void 0 ? {} : _b, isOpen = _a.isOpen, _c = _a.overlayProps, overlayProps = _c === void 0 ? {} : _c; var ref = inputProps.ref, htmlInputProps = tslib_1.__rest(inputProps, ["ref"]); var handleKeyDown = listProps.handleKeyDown, handleKeyUp = listProps.handleKeyUp; - var handlers = isOpen && !_this.isQueryEmpty() - ? { onKeyDown: handleKeyDown, onKeyUp: handleKeyUp } - : {}; + var handlers = isOpen && !_this.isQueryEmpty() ? { onKeyDown: handleKeyDown, onKeyUp: handleKeyUp } : {}; return (React.createElement(core_1.Overlay, tslib_1.__assign({ hasBackdrop: true }, overlayProps, { isOpen: isOpen, className: classNames(overlayProps.className, Classes.OMNIBOX_OVERLAY), onClose: _this.handleOverlayClose }), React.createElement("div", tslib_1.__assign({ className: classNames(listProps.className, Classes.OMNIBOX) }, handlers), React.createElement(core_1.InputGroup, tslib_1.__assign({ autoFocus: true, className: core_1.Classes.LARGE, leftIconName: "search", placeholder: "Search...", value: listProps.query }, htmlInputProps, { onChange: _this.handleQueryChange })), @@ -35921,7 +35915,7 @@ Omnibox.prototype.render = function () { // omit props specific to this component, spread the rest. var _a = this.props, initialContent = _a.initialContent, isOpen = _a.isOpen, itemRenderer = _a.itemRenderer, inputProps = _a.inputProps, noResults = _a.noResults, overlayProps = _a.overlayProps, restProps = tslib_1.__rest(_a, ["initialContent", "isOpen", "itemRenderer", "inputProps", "noResults", "overlayProps"]); - return React.createElement(this.TypedQueryList, tslib_1.__assign({}, restProps, { activeItem: this.state.activeItem, onActiveItemChange: this.handleActiveItemChange, onItemSelect: this.handleItemSelect, query: this.state.query, ref: this.refHandlers.queryList, renderer: this.renderQueryList })); + return (React.createElement(this.TypedQueryList, tslib_1.__assign({}, restProps, { activeItem: this.state.activeItem, onActiveItemChange: this.handleActiveItemChange, onItemSelect: this.handleItemSelect, query: this.state.query, ref: this.refHandlers.queryList, renderer: this.renderQueryList }))); }; Omnibox.prototype.componentWillReceiveProps = function (nextProps) { var isOpen = nextProps.isOpen; @@ -35937,12 +35931,14 @@ if (filteredItems.length === 0) { return noResults; } - return filteredItems.map(function (item, index) { return itemRenderer({ - index: index, - item: item, - handleClick: function (e) { return handleItemSelect(item, e); }, - isActive: item === activeItem, - }); }); + return filteredItems.map(function (item, index) { + return itemRenderer({ + index: index, + item: item, + handleClick: function (e) { return handleItemSelect(item, e); }, + isActive: item === activeItem, + }); + }); }; Omnibox.prototype.maybeRenderMenu = function (listProps) { var initialContent = this.props.initialContent; @@ -35954,7 +35950,7 @@ menuChildren = initialContent; } if (menuChildren != null) { - return (React.createElement(core_1.Menu, { ulRef: listProps.itemsParentRef }, menuChildren)); + return React.createElement(core_1.Menu, { ulRef: listProps.itemsParentRef }, menuChildren); } return undefined; }; @@ -36499,6 +36495,163 @@ /***/ }), /* 311 */ +/***/ (function(module, exports, __webpack_require__) { + + /* + * Copyright 2017 Palantir Technologies, Inc. All rights reserved. + * Licensed under the BSD-3 License as modified (the “License”); you may obtain a copy + * of the license at https://github.com/palantir/blueprint/blob/master/LICENSE + * and https://github.com/palantir/blueprint/blob/master/PATENTS + */ + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(305); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var QueryList = (function (_super) { + tslib_1.__extends(QueryList, _super); + function QueryList() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.refHandlers = { + itemsParent: function (ref) { return (_this.itemsParentRef = ref); }, + }; + _this.handleItemSelect = function (item, event) { + core_1.Utils.safeInvoke(_this.props.onActiveItemChange, item); + core_1.Utils.safeInvoke(_this.props.onItemSelect, item, event); + }; + _this.handleKeyDown = function (event) { + switch (event.keyCode) { + case core_1.Keys.ARROW_UP: + event.preventDefault(); + _this.moveActiveIndex(-1); + break; + case core_1.Keys.ARROW_DOWN: + event.preventDefault(); + _this.moveActiveIndex(1); + break; + default: + break; + } + core_1.Utils.safeInvoke(_this.props.onKeyDown, event); + }; + _this.handleKeyUp = function (event) { + var _a = _this.props, activeItem = _a.activeItem, onItemSelect = _a.onItemSelect, onKeyUp = _a.onKeyUp; + // using keyup for enter to play nice with Button's keyboard clicking. + // if we were to process enter on keydown, then Button would click itself on keyup + // and the popvoer would re-open out of our control :(. + if (event.keyCode === core_1.Keys.ENTER) { + event.preventDefault(); + core_1.Utils.safeInvoke(onItemSelect, activeItem, event); + } + core_1.Utils.safeInvoke(onKeyUp, event); + }; + return _this; + } + QueryList.ofType = function () { + return QueryList; + }; + QueryList.prototype.render = function () { + var _a = this.props, renderer = _a.renderer, props = tslib_1.__rest(_a, ["renderer"]); + var filteredItems = this.state.filteredItems; + return renderer(tslib_1.__assign({}, props, { filteredItems: filteredItems, handleItemSelect: this.handleItemSelect, handleKeyDown: this.handleKeyDown, handleKeyUp: this.handleKeyUp, itemsParentRef: this.refHandlers.itemsParent })); + }; + QueryList.prototype.componentWillMount = function () { + this.setState({ filteredItems: getFilteredItems(this.props) }); + }; + QueryList.prototype.componentWillReceiveProps = function (nextProps) { + if (nextProps.items !== this.props.items || + nextProps.itemListPredicate !== this.props.itemListPredicate || + nextProps.itemPredicate !== this.props.itemPredicate || + nextProps.query !== this.props.query) { + this.shouldCheckActiveItemInViewport = true; + this.setState({ filteredItems: getFilteredItems(nextProps) }); + } + }; + QueryList.prototype.componentDidUpdate = function () { + var _this = this; + if (this.shouldCheckActiveItemInViewport) { + // update scroll position immediately before repaint so DOM is accurate + // (latest filteredItems) and to avoid flicker. + requestAnimationFrame(function () { return _this.scrollActiveItemIntoView(); }); + // reset the flag + this.shouldCheckActiveItemInViewport = false; + } + // reset active item (in the same step) if it's no longer valid + // Also don't fire the event if the active item is already undefined and there is nothing to pick + if (this.getActiveIndex() < 0 && + (this.state.filteredItems.length !== 0 || this.props.activeItem !== undefined)) { + core_1.Utils.safeInvoke(this.props.onActiveItemChange, this.state.filteredItems[0]); + } + }; + QueryList.prototype.scrollActiveItemIntoView = function () { + var activeElement = this.getActiveElement(); + if (this.itemsParentRef != null && activeElement != null) { + var activeTop = activeElement.offsetTop, activeHeight = activeElement.offsetHeight; + var _a = this.itemsParentRef, parentOffsetTop = _a.offsetTop, parentScrollTop = _a.scrollTop, parentHeight = _a.clientHeight; + // compute padding on parent element to ensure we always leave space + var _b = this.getItemsParentPadding(), paddingTop = _b.paddingTop, paddingBottom = _b.paddingBottom; + // compute the two edges of the active item for comparison, including parent padding + var activeBottomEdge = activeTop + activeHeight + paddingBottom - parentOffsetTop; + var activeTopEdge = activeTop - paddingTop - parentOffsetTop; + if (activeBottomEdge >= parentScrollTop + parentHeight) { + // offscreen bottom: align bottom of item with bottom of viewport + this.itemsParentRef.scrollTop = activeBottomEdge + activeHeight - parentHeight; + } + else if (activeTopEdge <= parentScrollTop) { + // offscreen top: align top of item with top of viewport + this.itemsParentRef.scrollTop = activeTopEdge - activeHeight; + } + } + }; + QueryList.prototype.getActiveElement = function () { + if (this.itemsParentRef != null) { + return this.itemsParentRef.children.item(this.getActiveIndex()); + } + return undefined; + }; + QueryList.prototype.getActiveIndex = function () { + // NOTE: this operation is O(n) so it should be avoided in render(). safe for events though. + return this.state.filteredItems.indexOf(this.props.activeItem); + }; + QueryList.prototype.getItemsParentPadding = function () { + var _a = getComputedStyle(this.itemsParentRef), paddingTop = _a.paddingTop, paddingBottom = _a.paddingBottom; + return { + paddingBottom: pxToNumber(paddingBottom), + paddingTop: pxToNumber(paddingTop), + }; + }; + QueryList.prototype.moveActiveIndex = function (direction) { + // indicate that the active item may need to be scrolled into view after update. + // this is not possible with mouse hover cuz you can't hover on something off screen. + this.shouldCheckActiveItemInViewport = true; + var filteredItems = this.state.filteredItems; + var maxIndex = Math.max(filteredItems.length - 1, 0); + var nextActiveIndex = core_1.Utils.clamp(this.getActiveIndex() + direction, 0, maxIndex); + core_1.Utils.safeInvoke(this.props.onActiveItemChange, filteredItems[nextActiveIndex]); + }; + return QueryList; + }(React.Component)); + QueryList.displayName = "Blueprint.QueryList"; + exports.QueryList = QueryList; + function pxToNumber(value) { + return parseInt(value.slice(0, -2), 10); + } + function getFilteredItems(_a) { + var items = _a.items, itemPredicate = _a.itemPredicate, itemListPredicate = _a.itemListPredicate, query = _a.query; + if (core_1.Utils.isFunction(itemListPredicate)) { + // note that implementations can reorder the items here + return itemListPredicate(query, items); + } + else if (core_1.Utils.isFunction(itemPredicate)) { + return items.filter(function (item, index) { return itemPredicate(query, item, index); }); + } + return items; + } + + + +/***/ }), +/* 312 */ /***/ (function(module, exports, __webpack_require__) { /* @@ -36513,11 +36666,11 @@ var classNames = __webpack_require__(306); var PureRender = __webpack_require__(307); var React = __webpack_require__(3); - var react_popper_1 = __webpack_require__(312); + var react_popper_1 = __webpack_require__(313); var core_1 = __webpack_require__(179); - var tooltip2_1 = __webpack_require__(324); - var arrow_1 = __webpack_require__(325); - var popperUtils_1 = __webpack_require__(326); + var tooltip2_1 = __webpack_require__(325); + var arrow_1 = __webpack_require__(326); + var popperUtils_1 = __webpack_require__(327); var Popover2 = (function (_super) { tslib_1.__extends(Popover2, _super); function Popover2(props, context) { @@ -36525,8 +36678,8 @@ // a flag that is set to true while we are waiting for the underlying Portal to complete rendering _this.isContentMounting = false; _this.refHandlers = { - popover: function (ref) { return _this.popoverElement = ref; }, - target: function (ref) { return _this.targetElement = ref; }, + popover: function (ref) { return (_this.popoverElement = ref); }, + target: function (ref) { return (_this.targetElement = ref); }, }; _this.handleContentMount = function () { if (_this.isContentMounting) { @@ -36554,10 +36707,10 @@ _this.handleMouseEnter = function (e) { // if we're entering the popover, and the mode is set to be HOVER_TARGET_ONLY, we want to manually // trigger the mouse leave event, as hovering over the popover shouldn't count. - if (_this.props.inline - && _this.isElementInPopover(e.target) - && _this.props.interactionKind === core_1.PopoverInteractionKind.HOVER_TARGET_ONLY - && !_this.props.openOnTargetFocus) { + if (_this.props.inline && + _this.isElementInPopover(e.target) && + _this.props.interactionKind === core_1.PopoverInteractionKind.HOVER_TARGET_ONLY && + !_this.props.openOnTargetFocus) { _this.handleMouseLeave(e); } else if (!_this.props.disabled) { @@ -36580,8 +36733,7 @@ _this.handleOverlayClose = function (e) { var eventTarget = e.target; // if click was in target, target event listener will handle things, so don't close - if (!core_1.Utils.elementIsOrContains(_this.targetElement, eventTarget) - || e.nativeEvent instanceof KeyboardEvent) { + if (!core_1.Utils.elementIsOrContains(_this.targetElement, eventTarget) || e.nativeEvent instanceof KeyboardEvent) { _this.setOpenState(false, e); } }; @@ -36643,7 +36795,7 @@ disabled: isOpen && children.target.type === tooltip2_1.Tooltip2 ? true : children.target.props.disabled, tabIndex: targetTabIndex, }); - var isContentEmpty = (children.content == null); + var isContentEmpty = children.content == null; if (isContentEmpty && !this.props.disabled && isOpen !== false && !core_1.Utils.isNodeEnv("production")) { console.warn("[Blueprint] Disabling with empty/whitespace content..."); } @@ -36694,8 +36846,8 @@ // always check popover clicks for dismiss class onClick: this.handlePopoverClick, }; - if ((interactionKind === core_1.PopoverInteractionKind.HOVER) - || (inline && interactionKind === core_1.PopoverInteractionKind.HOVER_TARGET_ONLY)) { + if (interactionKind === core_1.PopoverInteractionKind.HOVER || + (inline && interactionKind === core_1.PopoverInteractionKind.HOVER_TARGET_ONLY)) { popoverHandlers.onMouseEnter = this.handleMouseEnter; popoverHandlers.onMouseLeave = this.handleMouseLeave; } @@ -36703,8 +36855,9 @@ _b[core_1.Classes.DARK] = this.props.inheritDarkTheme && this.state.hasDarkParent, _b[core_1.Classes.MINIMAL] = this.props.minimal, _b), this.props.popoverClassName); - var isArrowEnabled = !this.props.minimal - && (modifiers.arrow == null || modifiers.arrow.enabled); + var isArrowEnabled = !this.props.minimal && + // omitting `arrow` from `modifiers` uses Popper default, which does show an arrow. + (modifiers.arrow == null || modifiers.arrow.enabled); var allModifiers = tslib_1.__assign({}, modifiers, { arrowOffset: { enabled: isArrowEnabled, fn: popperUtils_1.arrowOffsetModifier, @@ -36756,8 +36909,8 @@ return this.popoverElement != null && this.popoverElement.contains(element); }; Popover2.prototype.isHoverInteractionKind = function () { - return this.props.interactionKind === core_1.PopoverInteractionKind.HOVER - || this.props.interactionKind === core_1.PopoverInteractionKind.HOVER_TARGET_ONLY; + return (this.props.interactionKind === core_1.PopoverInteractionKind.HOVER || + this.props.interactionKind === core_1.PopoverInteractionKind.HOVER_TARGET_ONLY); }; return Popover2; }(core_1.AbstractComponent)); @@ -36803,7 +36956,7 @@ /***/ }), -/* 312 */ +/* 313 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -36813,19 +36966,19 @@ }); exports.Arrow = exports.Popper = exports.Target = exports.Manager = undefined; - var _Manager2 = __webpack_require__(313); + var _Manager2 = __webpack_require__(314); var _Manager3 = _interopRequireDefault(_Manager2); - var _Target2 = __webpack_require__(318); + var _Target2 = __webpack_require__(319); var _Target3 = _interopRequireDefault(_Target2); - var _Popper2 = __webpack_require__(319); + var _Popper2 = __webpack_require__(320); var _Popper3 = _interopRequireDefault(_Popper2); - var _Arrow2 = __webpack_require__(323); + var _Arrow2 = __webpack_require__(324); var _Arrow3 = _interopRequireDefault(_Arrow2); @@ -36837,7 +36990,7 @@ exports.Arrow = _Arrow3.default; /***/ }), -/* 313 */ +/* 314 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -36852,7 +37005,7 @@ var _react2 = _interopRequireDefault(_react); - var _propTypes = __webpack_require__(314); + var _propTypes = __webpack_require__(315); var _propTypes2 = _interopRequireDefault(_propTypes); @@ -36928,7 +37081,7 @@ exports.default = Manager; /***/ }), -/* 314 */ +/* 315 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -36959,12 +37112,12 @@ } else { // By explicitly using `prop-types` you are opting into new production behavior. // http://fb.me/prop-types-in-prod - module.exports = __webpack_require__(315)(); + module.exports = __webpack_require__(316)(); } /***/ }), -/* 315 */ +/* 316 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -36979,8 +37132,8 @@ 'use strict'; var emptyFunction = __webpack_require__(309); - var invariant = __webpack_require__(316); - var ReactPropTypesSecret = __webpack_require__(317); + var invariant = __webpack_require__(317); + var ReactPropTypesSecret = __webpack_require__(318); module.exports = function() { function shim(props, propName, componentName, location, propFullName, secret) { @@ -37029,7 +37182,7 @@ /***/ }), -/* 316 */ +/* 317 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -37089,7 +37242,7 @@ module.exports = invariant; /***/ }), -/* 317 */ +/* 318 */ /***/ (function(module, exports) { /** @@ -37109,7 +37262,7 @@ /***/ }), -/* 318 */ +/* 319 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -37124,7 +37277,7 @@ var _react2 = _interopRequireDefault(_react); - var _propTypes = __webpack_require__(314); + var _propTypes = __webpack_require__(315); var _propTypes2 = _interopRequireDefault(_propTypes); @@ -37177,7 +37330,7 @@ exports.default = Target; /***/ }), -/* 319 */ +/* 320 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -37194,15 +37347,15 @@ var _react2 = _interopRequireDefault(_react); - var _propTypes = __webpack_require__(314); + var _propTypes = __webpack_require__(315); var _propTypes2 = _interopRequireDefault(_propTypes); - var _popper = __webpack_require__(320); + var _popper = __webpack_require__(321); var _popper2 = _interopRequireDefault(_popper); - var _isEqualShallow = __webpack_require__(321); + var _isEqualShallow = __webpack_require__(322); var _isEqualShallow2 = _interopRequireDefault(_isEqualShallow); @@ -37437,7 +37590,7 @@ exports.default = Popper; /***/ }), -/* 320 */ +/* 321 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/**! @@ -39881,7 +40034,7 @@ /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }), -/* 321 */ +/* 322 */ /***/ (function(module, exports, __webpack_require__) { /*! @@ -39893,7 +40046,7 @@ 'use strict'; - var isPrimitive = __webpack_require__(322); + var isPrimitive = __webpack_require__(323); module.exports = function isEqual(a, b) { if (!a && !b) { return true; } @@ -39914,7 +40067,7 @@ /***/ }), -/* 322 */ +/* 323 */ /***/ (function(module, exports) { /*! @@ -39933,7 +40086,7 @@ /***/ }), -/* 323 */ +/* 324 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -39948,7 +40101,7 @@ var _react2 = _interopRequireDefault(_react); - var _propTypes = __webpack_require__(314); + var _propTypes = __webpack_require__(315); var _propTypes2 = _interopRequireDefault(_propTypes); @@ -40007,7 +40160,7 @@ exports.default = Arrow; /***/ }), -/* 324 */ +/* 325 */ /***/ (function(module, exports, __webpack_require__) { /* @@ -40023,7 +40176,7 @@ var PureRender = __webpack_require__(307); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); - var popover2_1 = __webpack_require__(311); + var popover2_1 = __webpack_require__(312); var Tooltip2 = (function (_super) { tslib_1.__extends(Tooltip2, _super); function Tooltip2() { @@ -40053,7 +40206,7 @@ /***/ }), -/* 325 */ +/* 326 */ /***/ (function(module, exports, __webpack_require__) { /* @@ -40065,9 +40218,9 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var React = __webpack_require__(3); - var react_popper_1 = __webpack_require__(312); + var react_popper_1 = __webpack_require__(313); var core_1 = __webpack_require__(179); - var popperUtils_1 = __webpack_require__(326); + var popperUtils_1 = __webpack_require__(327); // these paths come from the Core Kit Sketch file // https://github.com/palantir/blueprint/blob/master/resources/sketch/Core%20Kit.sketch var SVG_SHADOW_PATH = "M8.11 6.302c1.015-.936 1.887-2.922 1.887-4.297v26c0-1.378" + @@ -40078,10 +40231,14 @@ function getArrowAngle(placement) { // can only be top/left/bottom/right - auto is resolved internally switch (popperUtils_1.getPosition(placement)) { - case "top": return -90; - case "left": return 180; - case "bottom": return 90; - default: return 0; + case "top": + return -90; + case "left": + return 180; + case "bottom": + return 90; + default: + return 0; } } exports.getArrowAngle = getArrowAngle; @@ -40097,7 +40254,7 @@ /***/ }), -/* 326 */ +/* 327 */ /***/ (function(module, exports) { /* @@ -40123,10 +40280,14 @@ /** Returns the opposite position. */ function getOppositePosition(side) { switch (side) { - case "top": return "bottom"; - case "left": return "right"; - case "bottom": return "top"; - default: return "left"; + case "top": + return "bottom"; + case "left": + return "right"; + case "bottom": + return "top"; + default: + return "left"; } } exports.getOppositePosition = getOppositePosition; @@ -40134,9 +40295,12 @@ function getAlignment(placement) { var align = placement.split("-")[1]; switch (align) { - case "start": return "left"; - case "end": return "right"; - default: return "center"; + case "start": + return "left"; + case "end": + return "right"; + default: + return "center"; } } exports.getAlignment = getAlignment; @@ -40192,162 +40356,6 @@ -/***/ }), -/* 327 */ -/***/ (function(module, exports, __webpack_require__) { - - /* - * Copyright 2017 Palantir Technologies, Inc. All rights reserved. - * Licensed under the BSD-3 License as modified (the “License”); you may obtain a copy - * of the license at https://github.com/palantir/blueprint/blob/master/LICENSE - * and https://github.com/palantir/blueprint/blob/master/PATENTS - */ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(305); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var QueryList = (function (_super) { - tslib_1.__extends(QueryList, _super); - function QueryList() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.refHandlers = { - itemsParent: function (ref) { return _this.itemsParentRef = ref; }, - }; - _this.handleItemSelect = function (item, event) { - core_1.Utils.safeInvoke(_this.props.onActiveItemChange, item); - core_1.Utils.safeInvoke(_this.props.onItemSelect, item, event); - }; - _this.handleKeyDown = function (event) { - switch (event.keyCode) { - case core_1.Keys.ARROW_UP: - event.preventDefault(); - _this.moveActiveIndex(-1); - break; - case core_1.Keys.ARROW_DOWN: - event.preventDefault(); - _this.moveActiveIndex(1); - break; - default: break; - } - core_1.Utils.safeInvoke(_this.props.onKeyDown, event); - }; - _this.handleKeyUp = function (event) { - var _a = _this.props, activeItem = _a.activeItem, onItemSelect = _a.onItemSelect, onKeyUp = _a.onKeyUp; - // using keyup for enter to play nice with Button's keyboard clicking. - // if we were to process enter on keydown, then Button would click itself on keyup - // and the popvoer would re-open out of our control :(. - if (event.keyCode === core_1.Keys.ENTER) { - event.preventDefault(); - core_1.Utils.safeInvoke(onItemSelect, activeItem, event); - } - core_1.Utils.safeInvoke(onKeyUp, event); - }; - return _this; - } - QueryList.ofType = function () { - return QueryList; - }; - QueryList.prototype.render = function () { - var _a = this.props, renderer = _a.renderer, props = tslib_1.__rest(_a, ["renderer"]); - var filteredItems = this.state.filteredItems; - return renderer(tslib_1.__assign({}, props, { filteredItems: filteredItems, handleItemSelect: this.handleItemSelect, handleKeyDown: this.handleKeyDown, handleKeyUp: this.handleKeyUp, itemsParentRef: this.refHandlers.itemsParent })); - }; - QueryList.prototype.componentWillMount = function () { - this.setState({ filteredItems: getFilteredItems(this.props) }); - }; - QueryList.prototype.componentWillReceiveProps = function (nextProps) { - if (nextProps.items !== this.props.items - || nextProps.itemListPredicate !== this.props.itemListPredicate - || nextProps.itemPredicate !== this.props.itemPredicate - || nextProps.query !== this.props.query) { - this.shouldCheckActiveItemInViewport = true; - this.setState({ filteredItems: getFilteredItems(nextProps) }); - } - }; - QueryList.prototype.componentDidUpdate = function () { - var _this = this; - if (this.shouldCheckActiveItemInViewport) { - // update scroll position immediately before repaint so DOM is accurate - // (latest filteredItems) and to avoid flicker. - requestAnimationFrame(function () { return _this.scrollActiveItemIntoView(); }); - // reset the flag - this.shouldCheckActiveItemInViewport = false; - } - // reset active item (in the same step) if it's no longer valid - // Also don't fire the event if the active item is already undefined and there is nothing to pick - if (this.getActiveIndex() < 0 && - (this.state.filteredItems.length !== 0 || this.props.activeItem !== undefined)) { - core_1.Utils.safeInvoke(this.props.onActiveItemChange, this.state.filteredItems[0]); - } - }; - QueryList.prototype.scrollActiveItemIntoView = function () { - var activeElement = this.getActiveElement(); - if (this.itemsParentRef != null && activeElement != null) { - var activeTop = activeElement.offsetTop, activeHeight = activeElement.offsetHeight; - var _a = this.itemsParentRef, parentOffsetTop = _a.offsetTop, parentScrollTop = _a.scrollTop, parentHeight = _a.clientHeight; - // compute padding on parent element to ensure we always leave space - var _b = this.getItemsParentPadding(), paddingTop = _b.paddingTop, paddingBottom = _b.paddingBottom; - // compute the two edges of the active item for comparison, including parent padding - var activeBottomEdge = activeTop + activeHeight + paddingBottom - parentOffsetTop; - var activeTopEdge = activeTop - paddingTop - parentOffsetTop; - if (activeBottomEdge >= parentScrollTop + parentHeight) { - // offscreen bottom: align bottom of item with bottom of viewport - this.itemsParentRef.scrollTop = activeBottomEdge + activeHeight - parentHeight; - } - else if (activeTopEdge <= parentScrollTop) { - // offscreen top: align top of item with top of viewport - this.itemsParentRef.scrollTop = activeTopEdge - activeHeight; - } - } - }; - QueryList.prototype.getActiveElement = function () { - if (this.itemsParentRef != null) { - return this.itemsParentRef.children.item(this.getActiveIndex()); - } - return undefined; - }; - QueryList.prototype.getActiveIndex = function () { - // NOTE: this operation is O(n) so it should be avoided in render(). safe for events though. - return this.state.filteredItems.indexOf(this.props.activeItem); - }; - QueryList.prototype.getItemsParentPadding = function () { - var _a = getComputedStyle(this.itemsParentRef), paddingTop = _a.paddingTop, paddingBottom = _a.paddingBottom; - return { - paddingBottom: pxToNumber(paddingBottom), - paddingTop: pxToNumber(paddingTop), - }; - }; - QueryList.prototype.moveActiveIndex = function (direction) { - // indicate that the active item may need to be scrolled into view after update. - // this is not possible with mouse hover cuz you can't hover on something off screen. - this.shouldCheckActiveItemInViewport = true; - var filteredItems = this.state.filteredItems; - var maxIndex = Math.max(filteredItems.length - 1, 0); - var nextActiveIndex = core_1.Utils.clamp(this.getActiveIndex() + direction, 0, maxIndex); - core_1.Utils.safeInvoke(this.props.onActiveItemChange, filteredItems[nextActiveIndex]); - }; - return QueryList; - }(React.Component)); - QueryList.displayName = "Blueprint.QueryList"; - exports.QueryList = QueryList; - function pxToNumber(value) { - return parseInt(value.slice(0, -2), 10); - } - function getFilteredItems(_a) { - var items = _a.items, itemPredicate = _a.itemPredicate, itemListPredicate = _a.itemListPredicate, query = _a.query; - if (core_1.Utils.isFunction(itemListPredicate)) { - // note that implementations can reorder the items here - return itemListPredicate(query, items); - } - else if (core_1.Utils.isFunction(itemPredicate)) { - return items.filter(function (item, index) { return itemPredicate(query, item, index); }); - } - return items; - } - - - /***/ }), /* 328 */ /***/ (function(module, exports, __webpack_require__) { @@ -40365,8 +40373,9 @@ var PureRender = __webpack_require__(307); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); - var _1 = __webpack_require__(303); var Classes = __webpack_require__(302); + var queryList_1 = __webpack_require__(311); + var tagInput_1 = __webpack_require__(329); var MultiSelect = MultiSelect_1 = (function (_super) { tslib_1.__extends(MultiSelect, _super); function MultiSelect() { @@ -40375,10 +40384,10 @@ isOpen: false, query: "", }; - _this.TypedQueryList = _1.QueryList.ofType(); + _this.TypedQueryList = queryList_1.QueryList.ofType(); _this.refHandlers = { - input: function (ref) { return _this.input = ref; }, - queryList: function (ref) { return _this.queryList = ref; }, + input: function (ref) { return (_this.input = ref); }, + queryList: function (ref) { return (_this.queryList = ref); }, }; _this.renderQueryList = function (listProps) { var _a = _this.props, _b = _a.tagInputProps, tagInputProps = _b === void 0 ? {} : _b, _c = _a.popoverProps, popoverProps = _c === void 0 ? {} : _c; @@ -40388,7 +40397,7 @@ onChange: _this.handleQueryChange, ref: _this.refHandlers.input, value: query }); return (React.createElement(core_1.Popover, tslib_1.__assign({ autoFocus: false, canEscapeKeyClose: true, enforceFocus: false, isOpen: _this.state.isOpen, position: core_1.Position.BOTTOM_LEFT }, popoverProps, { className: classNames(listProps.className, popoverProps.className), onInteraction: _this.handlePopoverInteraction, popoverClassName: classNames(Classes.MULTISELECT_POPOVER, popoverProps.popoverClassName), popoverDidOpen: _this.handlePopoverDidOpen, popoverWillOpen: _this.handlePopoverWillOpen }), React.createElement("div", { onKeyDown: _this.getTargetKeyDownHandler(handleKeyDown), onKeyUp: _this.state.isOpen ? handleKeyUp : undefined }, - React.createElement(_1.TagInput, tslib_1.__assign({}, tagInputProps, { inputProps: defaultInputProps, className: classNames(Classes.MULTISELECT, tagInputProps.className), values: _this.props.selectedItems.map(_this.props.tagRenderer) }))), + React.createElement(tagInput_1.TagInput, tslib_1.__assign({}, tagInputProps, { inputProps: defaultInputProps, className: classNames(Classes.MULTISELECT, tagInputProps.className), values: _this.props.selectedItems.map(_this.props.tagRenderer) }))), React.createElement("div", { onKeyDown: _this.getTargetKeyDownHandler(handleKeyDown), onKeyUp: handleKeyUp }, React.createElement(core_1.Menu, { ulRef: listProps.itemsParentRef }, _this.renderItems(listProps))))); }; @@ -40414,23 +40423,25 @@ core_1.Utils.safeInvoke(_this.props.onItemSelect, item, e); } }; - _this.handlePopoverInteraction = function (nextOpenState) { return requestAnimationFrame(function () { - // deferring to rAF to get properly updated activeElement - var _a = _this.props, _b = _a.popoverProps, popoverProps = _b === void 0 ? {} : _b, resetOnSelect = _a.resetOnSelect; - if (_this.input != null && _this.input !== document.activeElement) { - // the input is no longer focused so we can close the popover - _this.setState({ - activeItem: resetOnSelect ? _this.props.items[0] : _this.state.activeItem, - isOpen: false, - query: resetOnSelect ? "" : _this.state.query, - }); - } - else if (!_this.props.openOnKeyDown) { - // open the popover when focusing the tag input - _this.setState({ isOpen: true }); - } - core_1.Utils.safeInvoke(popoverProps.onInteraction, nextOpenState); - }); }; + _this.handlePopoverInteraction = function (nextOpenState) { + return requestAnimationFrame(function () { + // deferring to rAF to get properly updated activeElement + var _a = _this.props, _b = _a.popoverProps, popoverProps = _b === void 0 ? {} : _b, resetOnSelect = _a.resetOnSelect; + if (_this.input != null && _this.input !== document.activeElement) { + // the input is no longer focused so we can close the popover + _this.setState({ + activeItem: resetOnSelect ? _this.props.items[0] : _this.state.activeItem, + isOpen: false, + query: resetOnSelect ? "" : _this.state.query, + }); + } + else if (!_this.props.openOnKeyDown) { + // open the popover when focusing the tag input + _this.setState({ isOpen: true }); + } + core_1.Utils.safeInvoke(popoverProps.onInteraction, nextOpenState); + }); + }; _this.handlePopoverWillOpen = function () { var _a = _this.props, _b = _a.popoverProps, popoverProps = _b === void 0 ? {} : _b, resetOnSelect = _a.resetOnSelect; if (resetOnSelect) { @@ -40476,7 +40487,7 @@ MultiSelect.prototype.render = function () { // omit props specific to this component, spread the rest. var _a = this.props, initialContent = _a.initialContent, itemRenderer = _a.itemRenderer, noResults = _a.noResults, openOnKeyDown = _a.openOnKeyDown, popoverProps = _a.popoverProps, resetOnSelect = _a.resetOnSelect, tagInputProps = _a.tagInputProps, restProps = tslib_1.__rest(_a, ["initialContent", "itemRenderer", "noResults", "openOnKeyDown", "popoverProps", "resetOnSelect", "tagInputProps"]); - return React.createElement(this.TypedQueryList, tslib_1.__assign({}, restProps, { activeItem: this.state.activeItem, onActiveItemChange: this.handleActiveItemChange, onItemSelect: this.handleItemSelect, query: this.state.query, ref: this.refHandlers.queryList, renderer: this.renderQueryList })); + return (React.createElement(this.TypedQueryList, tslib_1.__assign({}, restProps, { activeItem: this.state.activeItem, onActiveItemChange: this.handleActiveItemChange, onItemSelect: this.handleItemSelect, query: this.state.query, ref: this.refHandlers.queryList, renderer: this.renderQueryList }))); }; MultiSelect.prototype.renderItems = function (_a) { var activeItem = _a.activeItem, filteredItems = _a.filteredItems, handleItemSelect = _a.handleItemSelect; @@ -40487,12 +40498,14 @@ if (filteredItems.length === 0) { return noResults; } - return filteredItems.map(function (item, index) { return itemRenderer({ - index: index, - item: item, - handleClick: function (e) { return handleItemSelect(item, e); }, - isActive: item === activeItem, - }); }); + return filteredItems.map(function (item, index) { + return itemRenderer({ + index: index, + item: item, + handleClick: function (e) { return handleItemSelect(item, e); }, + isActive: item === activeItem, + }); + }); }; return MultiSelect; }(React.Component)); @@ -40522,16 +40535,211 @@ var PureRender = __webpack_require__(307); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); - var _1 = __webpack_require__(303); var Classes = __webpack_require__(302); + /** special value for absence of active tag */ + var NONE = -1; + var TagInput = (function (_super) { + tslib_1.__extends(TagInput, _super); + function TagInput() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + activeIndex: NONE, + inputValue: "", + isInputFocused: false, + }; + _this.refHandlers = { + input: function (ref) { + _this.inputElement = ref; + // can't use safeInvoke cuz inputProps.ref can be `string | function` + var refHandler = _this.props.inputProps.ref; + if (core_1.Utils.isFunction(refHandler)) { + refHandler(ref); + } + }, + }; + _this.maybeRenderTag = function (tag, index) { + if (!tag) { + return null; + } + var tagProps = _this.props.tagProps; + var props = core_1.Utils.isFunction(tagProps) ? tagProps(tag, index) : tagProps; + return (React.createElement(core_1.Tag, tslib_1.__assign({ active: index === _this.state.activeIndex, "data-tag-index": index, key: tag + "__" + index, onRemove: _this.handleRemoveTag }, props), tag)); + }; + _this.handleContainerClick = function () { + if (_this.inputElement != null) { + _this.inputElement.focus(); + } + }; + _this.handleBlur = function () { + return requestAnimationFrame(function () { + // this event is attached to the container element to capture all blur events from inside. + // we only need to "unfocus" if the blur event is leaving the container. + // defer this check using rAF so activeElement will have updated. + if (_this.inputElement != null && !_this.inputElement.parentElement.contains(document.activeElement)) { + _this.setState({ activeIndex: NONE, isInputFocused: false }); + } + }); + }; + _this.handleInputFocus = function (event) { + _this.setState({ isInputFocused: true }); + core_1.Utils.safeInvoke(_this.props.inputProps.onFocus, event); + }; + _this.handleInputChange = function (event) { + _this.setState({ activeIndex: NONE, inputValue: event.currentTarget.value }); + core_1.Utils.safeInvoke(_this.props.inputProps.onChange, event); + }; + _this.handleInputKeyDown = function (event) { + var _a = event.currentTarget, selectionEnd = _a.selectionEnd, value = _a.value; + if (event.which === core_1.Keys.ENTER && value.length > 0) { + var _b = _this.props, onAdd = _b.onAdd, onChange = _b.onChange, values = _b.values; + // enter key on non-empty string invokes onAdd + var newValues = _this.getValues(value); + var shouldClearInput = core_1.Utils.safeInvoke(onAdd, newValues); + // avoid a potentially expensive computation if this prop is omitted + if (core_1.Utils.isFunction(onChange)) { + shouldClearInput = shouldClearInput || onChange(values.concat(newValues)); + } + // only explicit return false cancels text clearing + if (shouldClearInput !== false) { + _this.setState({ inputValue: "" }); + } + } + else if (selectionEnd === 0 && _this.props.values.length > 0) { + // cursor at beginning of input allows interaction with tags. + // use selectionEnd to verify cursor position and no text selection. + if (event.which === core_1.Keys.ARROW_LEFT || event.which === core_1.Keys.ARROW_RIGHT) { + var nextIndex = _this.getNextActiveIndex(event.which === core_1.Keys.ARROW_RIGHT ? 1 : -1); + if (nextIndex !== _this.state.activeIndex) { + event.preventDefault(); + _this.setState({ activeIndex: nextIndex }); + } + } + else if (event.which === core_1.Keys.BACKSPACE) { + _this.handleBackspaceToRemove(event); + } + } + core_1.Utils.safeInvoke(_this.props.inputProps.onKeyDown, event); + }; + _this.handleRemoveTag = function (event) { + // using data attribute to simplify callback logic -- one handler for all children + var index = +event.currentTarget.parentElement.getAttribute("data-tag-index"); + _this.removeIndexFromValues(index); + }; + return _this; + } + TagInput.prototype.render = function () { + var _a = this.props, className = _a.className, inputProps = _a.inputProps, leftIconName = _a.leftIconName, placeholder = _a.placeholder, values = _a.values; + var classes = classNames(core_1.Classes.INPUT, Classes.TAG_INPUT, (_b = {}, + _b[core_1.Classes.ACTIVE] = this.state.isInputFocused, + _b), className); + var isLarge = classes.indexOf(core_1.Classes.LARGE) > NONE; + // use placeholder prop only if it's defined and values list is empty or contains only falsy values + var isSomeValueDefined = values.some(function (val) { return !!val; }); + var resolvedPlaceholder = placeholder == null || isSomeValueDefined ? inputProps.placeholder : placeholder; + return (React.createElement("div", { className: classes, onBlur: this.handleBlur, onClick: this.handleContainerClick }, + React.createElement(core_1.Icon, { className: Classes.TAG_INPUT_ICON, iconName: leftIconName, iconSize: isLarge ? 20 : 16 }), + values.map(this.maybeRenderTag), + React.createElement("input", tslib_1.__assign({ value: this.state.inputValue }, inputProps, { onFocus: this.handleInputFocus, onChange: this.handleInputChange, onKeyDown: this.handleInputKeyDown, placeholder: resolvedPlaceholder, ref: this.refHandlers.input, className: classNames(Classes.INPUT_GHOST, inputProps.className) })), + this.props.rightElement)); + var _b; + }; + TagInput.prototype.getNextActiveIndex = function (direction) { + var activeIndex = this.state.activeIndex; + if (activeIndex === NONE) { + // nothing active & moving left: select last defined value. otherwise select nothing. + return direction < 0 ? this.findNextIndex(this.props.values.length, -1) : NONE; + } + else { + // otherwise, move in direction and clamp to bounds. + // note that upper bound allows going one beyond last item + // so focus can move off the right end, into the text input. + return this.findNextIndex(activeIndex, direction); + } + }; + TagInput.prototype.findNextIndex = function (startIndex, direction) { + var values = this.props.values; + var index = startIndex + direction; + while (index > 0 && index < values.length && !values[index]) { + index += direction; + } + return core_1.Utils.clamp(index, 0, values.length); + }; + /** + * Splits inputValue on separator prop, + * trims whitespace from each new value, + * and ignores empty values. + */ + TagInput.prototype.getValues = function (inputValue) { + var separator = this.props.separator; + // NOTE: split() typings define two overrides for string and RegExp. + // this does not play well with our union prop type, so we'll just declare it as a valid type. + return (separator === false ? [inputValue] : inputValue.split(separator)) + .map(function (val) { return val.trim(); }) + .filter(function (val) { return val.length > 0; }); + }; + TagInput.prototype.handleBackspaceToRemove = function (event) { + var previousActiveIndex = this.state.activeIndex; + // always move leftward one item (this will focus last item if nothing is focused) + this.setState({ activeIndex: this.getNextActiveIndex(-1) }); + // delete item if there was a previous valid selection (ignore first backspace to focus last item) + if (this.isValidIndex(previousActiveIndex)) { + event.preventDefault(); + this.removeIndexFromValues(previousActiveIndex); + } + }; + /** Remove the item at the given index by invoking `onRemove` and `onChange` accordingly. */ + TagInput.prototype.removeIndexFromValues = function (index) { + var _a = this.props, onChange = _a.onChange, onRemove = _a.onRemove, values = _a.values; + core_1.Utils.safeInvoke(onRemove, values[index], index); + if (core_1.Utils.isFunction(onChange)) { + onChange(values.filter(function (_, i) { return i !== index; })); + } + }; + /** Returns whether the given index represents a valid item in `this.props.values`. */ + TagInput.prototype.isValidIndex = function (index) { + return index !== NONE && index < this.props.values.length; + }; + return TagInput; + }(core_1.AbstractComponent)); + TagInput.displayName = "Blueprint.TagInput"; + TagInput.defaultProps = { + inputProps: {}, + separator: ",", + tagProps: {}, + }; + TagInput = tslib_1.__decorate([ + PureRender + ], TagInput); + exports.TagInput = TagInput; + + + +/***/ }), +/* 330 */ +/***/ (function(module, exports, __webpack_require__) { + + /* + * Copyright 2017 Palantir Technologies, Inc. All rights reserved. + * Licensed under the BSD-3 License as modified (the “License”); you may obtain a copy + * of the license at https://github.com/palantir/blueprint/blob/master/LICENSE + * and https://github.com/palantir/blueprint/blob/master/PATENTS + */ + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(305); + var classNames = __webpack_require__(306); + var PureRender = __webpack_require__(307); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var Classes = __webpack_require__(302); + var queryList_1 = __webpack_require__(311); var Select = Select_1 = (function (_super) { tslib_1.__extends(Select, _super); - function Select() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { isOpen: false, query: "" }; - _this.TypedQueryList = _1.QueryList.ofType(); + function Select(props, context) { + var _this = _super.call(this, props, context) || this; + _this.TypedQueryList = queryList_1.QueryList.ofType(); _this.refHandlers = { - queryList: function (ref) { return _this.list = ref; }, + queryList: function (ref) { return (_this.list = ref); }, }; _this.renderQueryList = function (listProps) { // not using defaultProps cuz they're hard to type with generics (can't use on static members) @@ -40595,11 +40803,20 @@ core_1.Utils.safeInvoke(popoverProps.popoverWillClose); }; _this.handleQueryChange = function (event) { - var _a = _this.props.inputProps, inputProps = _a === void 0 ? {} : _a; - _this.setState({ query: event.currentTarget.value }); + var _a = _this.props, _b = _a.inputProps, inputProps = _b === void 0 ? {} : _b, onQueryChange = _a.onQueryChange; + var query = event.currentTarget.value; + _this.setState({ query: query }); core_1.Utils.safeInvoke(inputProps.onChange, event); + core_1.Utils.safeInvoke(onQueryChange, query); + }; + _this.resetQuery = function () { + var _a = _this.props, items = _a.items, onQueryChange = _a.onQueryChange; + var query = ""; + _this.setState({ activeItem: items[0], query: query }); + core_1.Utils.safeInvoke(onQueryChange, query); }; - _this.resetQuery = function () { return _this.setState({ activeItem: _this.props.items[0], query: "" }); }; + var query = props && props.inputProps && props.inputProps.value !== undefined ? props.inputProps.value : ""; + _this.state = { isOpen: false, query: query }; return _this; } Select.ofType = function () { @@ -40608,7 +40825,13 @@ Select.prototype.render = function () { // omit props specific to this component, spread the rest. var _a = this.props, filterable = _a.filterable, initialContent = _a.initialContent, itemRenderer = _a.itemRenderer, inputProps = _a.inputProps, noResults = _a.noResults, popoverProps = _a.popoverProps, restProps = tslib_1.__rest(_a, ["filterable", "initialContent", "itemRenderer", "inputProps", "noResults", "popoverProps"]); - return React.createElement(this.TypedQueryList, tslib_1.__assign({}, restProps, { activeItem: this.state.activeItem, onActiveItemChange: this.handleActiveItemChange, onItemSelect: this.handleItemSelect, query: this.state.query, ref: this.refHandlers.queryList, renderer: this.renderQueryList })); + return (React.createElement(this.TypedQueryList, tslib_1.__assign({}, restProps, { activeItem: this.state.activeItem, onActiveItemChange: this.handleActiveItemChange, onItemSelect: this.handleItemSelect, query: this.state.query, ref: this.refHandlers.queryList, renderer: this.renderQueryList }))); + }; + Select.prototype.componentWillReceiveProps = function (nextProps) { + var _a = nextProps.inputProps, nextInputProps = _a === void 0 ? {} : _a; + if (nextInputProps.value !== undefined && this.state.query !== nextInputProps.value) { + this.setState({ query: nextInputProps.value }); + } }; Select.prototype.componentDidUpdate = function (_prevProps, prevState) { if (this.state.isOpen && !prevState.isOpen && this.list != null) { @@ -40624,17 +40847,17 @@ if (filteredItems.length === 0) { return noResults; } - return filteredItems.map(function (item, index) { return itemRenderer({ - index: index, - item: item, - handleClick: function (e) { return handleItemSelect(item, e); }, - isActive: item === activeItem, - }); }); + return filteredItems.map(function (item, index) { + return itemRenderer({ + index: index, + item: item, + handleClick: function (e) { return handleItemSelect(item, e); }, + isActive: item === activeItem, + }); + }); }; Select.prototype.maybeRenderInputClearButton = function () { - return !this.isQueryEmpty() - ? React.createElement(core_1.Button, { className: core_1.Classes.MINIMAL, iconName: "cross", onClick: this.resetQuery }) - : undefined; + return !this.isQueryEmpty() ? (React.createElement(core_1.Button, { className: core_1.Classes.MINIMAL, iconName: "cross", onClick: this.resetQuery })) : (undefined); }; return Select; }(React.Component)); @@ -40648,7 +40871,7 @@ /***/ }), -/* 330 */ +/* 331 */ /***/ (function(module, exports, __webpack_require__) { /* @@ -40664,8 +40887,8 @@ var PureRender = __webpack_require__(307); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); - var _1 = __webpack_require__(303); var Classes = __webpack_require__(302); + var queryList_1 = __webpack_require__(311); var Suggest = Suggest_1 = (function (_super) { tslib_1.__extends(Suggest, _super); function Suggest() { @@ -40686,19 +40909,17 @@ openOnKeyDown: false, popoverProps: {}, }; - _this.TypedQueryList = _1.QueryList.ofType(); + _this.TypedQueryList = queryList_1.QueryList.ofType(); _this.refHandlers = { - input: function (ref) { return _this.input = ref; }, - queryList: function (ref) { return _this.queryList = ref; }, + input: function (ref) { return (_this.input = ref); }, + queryList: function (ref) { return (_this.queryList = ref); }, }; _this.renderQueryList = function (listProps) { var _a = _this.props, inputValueRenderer = _a.inputValueRenderer, _b = _a.inputProps, inputProps = _b === void 0 ? _this.DEFAULT_PROPS.inputProps : _b, _c = _a.popoverProps, popoverProps = _c === void 0 ? _this.DEFAULT_PROPS.popoverProps : _c; var _d = _this.state, isTyping = _d.isTyping, selectedItem = _d.selectedItem, query = _d.query; var ref = inputProps.ref, htmlInputProps = tslib_1.__rest(inputProps, ["ref"]); var handleKeyDown = listProps.handleKeyDown, handleKeyUp = listProps.handleKeyUp; - var inputValue = isTyping - ? query - : (selectedItem ? inputValueRenderer(selectedItem) : ""); + var inputValue = isTyping ? query : selectedItem ? inputValueRenderer(selectedItem) : ""; return (React.createElement(core_1.Popover, tslib_1.__assign({ autoFocus: false, enforceFocus: false, isOpen: _this.state.isOpen, position: core_1.Position.BOTTOM_LEFT }, popoverProps, { className: classNames(listProps.className, popoverProps.className), onInteraction: _this.handlePopoverInteraction, popoverClassName: classNames(Classes.SELECT_POPOVER, popoverProps.popoverClassName), popoverDidOpen: _this.handlePopoverDidOpen, popoverWillClose: _this.handlePopoverWillClose }), React.createElement(core_1.InputGroup, tslib_1.__assign({ placeholder: "Search...", value: inputValue }, htmlInputProps, { inputRef: _this.refHandlers.input, onChange: _this.handleQueryChange, onFocus: _this.handleInputFocus, onKeyDown: _this.getTargetKeyDownHandler(handleKeyDown), onKeyUp: _this.getTargetKeyUpHandler(handleKeyUp) })), React.createElement("div", { onKeyDown: handleKeyDown, onKeyUp: handleKeyUp }, @@ -40739,14 +40960,16 @@ }); core_1.Utils.safeInvoke(_this.props.onItemSelect, item, event); }; - _this.handlePopoverInteraction = function (nextOpenState) { return requestAnimationFrame(function () { - var _a = _this.props.popoverProps, popoverProps = _a === void 0 ? {} : _a; - if (_this.input != null && _this.input !== document.activeElement) { - // the input is no longer focused so we can close the popover - _this.setState({ isOpen: false }); - } - core_1.Utils.safeInvoke(popoverProps.onInteraction, nextOpenState); - }); }; + _this.handlePopoverInteraction = function (nextOpenState) { + return requestAnimationFrame(function () { + var _a = _this.props.popoverProps, popoverProps = _a === void 0 ? {} : _a; + if (_this.input != null && _this.input !== document.activeElement) { + // the input is no longer focused so we can close the popover + _this.setState({ isOpen: false }); + } + core_1.Utils.safeInvoke(popoverProps.onInteraction, nextOpenState); + }); + }; _this.handlePopoverDidOpen = function () { var _a = _this.props.popoverProps, popoverProps = _a === void 0 ? {} : _a; // scroll active item into view after popover transition completes and all dimensions are stable. @@ -40786,10 +41009,10 @@ selectedItem: isTyping ? undefined : selectedItem, }); } - else if (openOnKeyDown - && which !== core_1.Keys.BACKSPACE - && which !== core_1.Keys.ARROW_LEFT - && which !== core_1.Keys.ARROW_RIGHT) { + else if (openOnKeyDown && + which !== core_1.Keys.BACKSPACE && + which !== core_1.Keys.ARROW_LEFT && + which !== core_1.Keys.ARROW_RIGHT) { _this.setState({ isOpen: true }); } if (_this.state.isOpen) { @@ -40815,7 +41038,7 @@ Suggest.prototype.render = function () { // omit props specific to this component, spread the rest. var _a = this.props, itemRenderer = _a.itemRenderer, inputProps = _a.inputProps, noResults = _a.noResults, popoverProps = _a.popoverProps, restProps = tslib_1.__rest(_a, ["itemRenderer", "inputProps", "noResults", "popoverProps"]); - return React.createElement(this.TypedQueryList, tslib_1.__assign({}, restProps, { activeItem: this.state.activeItem, onActiveItemChange: this.handleActiveItemChange, onItemSelect: this.handleItemSelect, query: this.state.query, ref: this.refHandlers.queryList, renderer: this.renderQueryList })); + return (React.createElement(this.TypedQueryList, tslib_1.__assign({}, restProps, { activeItem: this.state.activeItem, onActiveItemChange: this.handleActiveItemChange, onItemSelect: this.handleItemSelect, query: this.state.query, ref: this.refHandlers.queryList, renderer: this.renderQueryList }))); }; Suggest.prototype.componentDidUpdate = function (_prevProps, prevState) { if (this.state.isOpen && !prevState.isOpen && this.queryList != null) { @@ -40828,12 +41051,14 @@ if (filteredItems.length === 0) { return noResults; } - return filteredItems.map(function (item, index) { return itemRenderer({ - index: index, - item: item, - handleClick: function (e) { return handleItemSelect(item, e); }, - isActive: item === activeItem, - }); }); + return filteredItems.map(function (item, index) { + return itemRenderer({ + index: index, + item: item, + handleClick: function (e) { return handleItemSelect(item, e); }, + isActive: item === activeItem, + }); + }); }; return Suggest; }(React.Component)); @@ -40847,7 +41072,7 @@ /***/ }), -/* 331 */ +/* 332 */ /***/ (function(module, exports, __webpack_require__) { /* @@ -40864,27250 +41089,29570 @@ var React = __webpack_require__(3); var core_1 = __webpack_require__(179); var Classes = __webpack_require__(302); - /** special value for absence of active tag */ - var NONE = -1; - var TagInput = (function (_super) { - tslib_1.__extends(TagInput, _super); - function TagInput() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - activeIndex: NONE, - inputValue: "", - isInputFocused: false, - }; - _this.refHandlers = { - input: function (ref) { - _this.inputElement = ref; - // can't use safeInvoke cuz inputProps.ref can be `string | function` - var refHandler = _this.props.inputProps.ref; - if (core_1.Utils.isFunction(refHandler)) { - refHandler(ref); - } - }, - }; - _this.maybeRenderTag = function (tag, index) { - if (!tag) { - return null; - } - var tagProps = _this.props.tagProps; - var props = core_1.Utils.isFunction(tagProps) ? tagProps(tag, index) : tagProps; - return (React.createElement(core_1.Tag, tslib_1.__assign({ active: index === _this.state.activeIndex, "data-tag-index": index, key: tag + "__" + index, onRemove: _this.handleRemoveTag }, props), tag)); - }; - _this.handleContainerClick = function () { - if (_this.inputElement != null) { - _this.inputElement.focus(); - } - }; - _this.handleBlur = function () { return requestAnimationFrame(function () { - // this event is attached to the container element to capture all blur events from inside. - // we only need to "unfocus" if the blur event is leaving the container. - // defer this check using rAF so activeElement will have updated. - if (_this.inputElement != null && !_this.inputElement.parentElement.contains(document.activeElement)) { - _this.setState({ activeIndex: NONE, isInputFocused: false }); - } - }); }; - _this.handleInputFocus = function (event) { - _this.setState({ isInputFocused: true }); - core_1.Utils.safeInvoke(_this.props.inputProps.onFocus, event); - }; - _this.handleInputChange = function (event) { - _this.setState({ activeIndex: NONE, inputValue: event.currentTarget.value }); - core_1.Utils.safeInvoke(_this.props.inputProps.onChange, event); + var select_1 = __webpack_require__(330); + var timezoneDisplayFormat_1 = __webpack_require__(333); + exports.TimezoneDisplayFormat = timezoneDisplayFormat_1.TimezoneDisplayFormat; + var timezoneItems_1 = __webpack_require__(456); + var timezoneUtils_1 = __webpack_require__(457); + var TypedSelect = select_1.Select.ofType(); + var TimezonePicker = (function (_super) { + tslib_1.__extends(TimezonePicker, _super); + function TimezonePicker(props, context) { + var _this = _super.call(this, props, context) || this; + _this.filterItems = function (query, items) { + if (query === "") { + return items; + } + var date = _this.state.date; + return timezoneUtils_1.filterWithQueryCandidates(items, query, function (item) { return timezoneUtils_1.getTimezoneQueryCandidates(item.timezone, date); }); + }; + _this.renderItem = function (itemProps) { + var item = itemProps.item, isActive = itemProps.isActive, handleClick = itemProps.handleClick; + var classes = classNames(core_1.Classes.MENU_ITEM, core_1.Classes.intentClass(), (_a = {}, + _a[core_1.Classes.ACTIVE] = isActive, + _a[core_1.Classes.INTENT_PRIMARY] = isActive, + _a)); + return (React.createElement(core_1.MenuItem, { key: item.key, className: classes, iconName: item.iconName, text: item.text, label: item.label, onClick: handleClick, shouldDismissPopover: false })); + var _a; }; - _this.handleInputKeyDown = function (event) { - var _a = event.currentTarget, selectionEnd = _a.selectionEnd, value = _a.value; - if (event.which === core_1.Keys.ENTER && value.length > 0) { - var _b = _this.props, onAdd = _b.onAdd, onChange = _b.onChange, values = _b.values; - // enter key on non-empty string invokes onAdd - var newValues = _this.getValues(value); - var shouldClearInput = core_1.Utils.safeInvoke(onAdd, newValues); - // avoid a potentially expensive computation if this prop is omitted - if (core_1.Utils.isFunction(onChange)) { - shouldClearInput = shouldClearInput || onChange(values.concat(newValues)); - } - // only explicit return false cancels text clearing - if (shouldClearInput !== false) { - _this.setState({ inputValue: "" }); - } - } - else if (selectionEnd === 0 && _this.props.values.length > 0) { - // cursor at beginning of input allows interaction with tags. - // use selectionEnd to verify cursor position and no text selection. - if (event.which === core_1.Keys.ARROW_LEFT || event.which === core_1.Keys.ARROW_RIGHT) { - var nextIndex = _this.getNextActiveIndex(event.which === core_1.Keys.ARROW_RIGHT ? 1 : -1); - if (nextIndex !== _this.state.activeIndex) { - event.preventDefault(); - _this.setState({ activeIndex: nextIndex }); - } - } - else if (event.which === core_1.Keys.BACKSPACE) { - _this.handleBackspaceToRemove(event); - } + _this.handleItemSelect = function (timezone) { + if (_this.props.value === undefined) { + _this.setState({ value: timezone.timezone }); } - core_1.Utils.safeInvoke(_this.props.inputProps.onKeyDown, event); + core_1.Utils.safeInvoke(_this.props.onChange, timezone.timezone); }; - _this.handleRemoveTag = function (event) { - // using data attribute to simplify callback logic -- one handler for all children - var index = +event.currentTarget.parentElement.getAttribute("data-tag-index"); - _this.removeIndexFromValues(index); + _this.handleQueryChange = function (query) { + _this.setState({ query: query }); }; + var value = props.value, _a = props.date, date = _a === void 0 ? new Date() : _a, showLocalTimezone = props.showLocalTimezone, _b = props.inputProps, inputProps = _b === void 0 ? {} : _b; + var query = inputProps.value !== undefined ? inputProps.value : ""; + _this.state = { date: date, value: value, query: query }; + _this.timezoneItems = timezoneItems_1.getTimezoneItems(date); + _this.initialTimezoneItems = timezoneItems_1.getInitialTimezoneItems(date, showLocalTimezone); return _this; } - TagInput.prototype.render = function () { - var _a = this.props, className = _a.className, inputProps = _a.inputProps, leftIconName = _a.leftIconName, placeholder = _a.placeholder, values = _a.values; - var classes = classNames(core_1.Classes.INPUT, Classes.TAG_INPUT, (_b = {}, - _b[core_1.Classes.ACTIVE] = this.state.isInputFocused, - _b), className); - var isLarge = classes.indexOf(core_1.Classes.LARGE) > NONE; - // use placeholder prop only if it's defined and values list is empty or contains only falsy values - var isSomeValueDefined = values.some(function (val) { return !!val; }); - var resolvedPlaceholder = (placeholder == null || isSomeValueDefined) - ? inputProps.placeholder : placeholder; - return (React.createElement("div", { className: classes, onBlur: this.handleBlur, onClick: this.handleContainerClick }, - React.createElement(core_1.Icon, { className: Classes.TAG_INPUT_ICON, iconName: leftIconName, iconSize: isLarge ? 20 : 16 }), - values.map(this.maybeRenderTag), - React.createElement("input", tslib_1.__assign({ value: this.state.inputValue }, inputProps, { onFocus: this.handleInputFocus, onChange: this.handleInputChange, onKeyDown: this.handleInputKeyDown, placeholder: resolvedPlaceholder, ref: this.refHandlers.input, className: classNames(Classes.INPUT_GHOST, inputProps.className) })), - this.props.rightElement)); - var _b; + TimezonePicker.prototype.render = function () { + var _a = this.props, className = _a.className, disabled = _a.disabled, inputProps = _a.inputProps, popoverProps = _a.popoverProps; + var query = this.state.query; + var finalInputProps = tslib_1.__assign({ placeholder: "Search for timezones..." }, inputProps); + var finalPopoverProps = tslib_1.__assign({}, popoverProps, { popoverClassName: classNames(Classes.TIMEZONE_PICKER_POPOVER, popoverProps.popoverClassName) }); + return (React.createElement(TypedSelect, { className: classNames(Classes.TIMEZONE_PICKER, className), items: query ? this.timezoneItems : this.initialTimezoneItems, itemListPredicate: this.filterItems, itemRenderer: this.renderItem, noResults: React.createElement(core_1.MenuItem, { disabled: true, text: "No matching timezones." }), onItemSelect: this.handleItemSelect, resetOnSelect: true, resetOnClose: true, popoverProps: finalPopoverProps, inputProps: finalInputProps, disabled: disabled, onQueryChange: this.handleQueryChange }, this.renderButton())); }; - TagInput.prototype.getNextActiveIndex = function (direction) { - var activeIndex = this.state.activeIndex; - if (activeIndex === NONE) { - // nothing active & moving left: select last defined value. otherwise select nothing. - return direction < 0 ? this.findNextIndex(this.props.values.length, -1) : NONE; + TimezonePicker.prototype.componentWillReceiveProps = function (nextProps) { + var _a = nextProps.date, nextDate = _a === void 0 ? new Date() : _a, _b = nextProps.inputProps, nextInputProps = _b === void 0 ? {} : _b; + var dateChanged = this.state.date.getTime() !== nextDate.getTime(); + if (dateChanged) { + this.timezoneItems = timezoneItems_1.getTimezoneItems(nextDate); } - else { - // otherwise, move in direction and clamp to bounds. - // note that upper bound allows going one beyond last item - // so focus can move off the right end, into the text input. - return this.findNextIndex(activeIndex, direction); + if (dateChanged || this.props.showLocalTimezone !== nextProps.showLocalTimezone) { + this.initialTimezoneItems = timezoneItems_1.getInitialTimezoneItems(nextDate, nextProps.showLocalTimezone); } - }; - TagInput.prototype.findNextIndex = function (startIndex, direction) { - var values = this.props.values; - var index = startIndex + direction; - while (index > 0 && index < values.length && !values[index]) { - index += direction; + var nextState = {}; + if (dateChanged) { + nextState.date = nextDate; } - return core_1.Utils.clamp(index, 0, values.length); - }; - /** - * Splits inputValue on separator prop, - * trims whitespace from each new value, - * and ignores empty values. - */ - TagInput.prototype.getValues = function (inputValue) { - var separator = this.props.separator; - // NOTE: split() typings define two overrides for string and RegExp. - // this does not play well with our union prop type, so we'll just declare it as a valid type. - return (separator === false ? [inputValue] : inputValue.split(separator)) - .map(function (val) { return val.trim(); }) - .filter(function (val) { return val.length > 0; }); - }; - TagInput.prototype.handleBackspaceToRemove = function (event) { - var previousActiveIndex = this.state.activeIndex; - // always move leftward one item (this will focus last item if nothing is focused) - this.setState({ activeIndex: this.getNextActiveIndex(-1) }); - // delete item if there was a previous valid selection (ignore first backspace to focus last item) - if (this.isValidIndex(previousActiveIndex)) { - event.preventDefault(); - this.removeIndexFromValues(previousActiveIndex); + if (this.state.value !== nextProps.value) { + nextState.value = nextProps.value; } - }; - /** Remove the item at the given index by invoking `onRemove` and `onChange` accordingly. */ - TagInput.prototype.removeIndexFromValues = function (index) { - var _a = this.props, onChange = _a.onChange, onRemove = _a.onRemove, values = _a.values; - core_1.Utils.safeInvoke(onRemove, values[index], index); - if (core_1.Utils.isFunction(onChange)) { - onChange(values.filter(function (_, i) { return i !== index; })); + if (nextInputProps.value !== undefined && this.state.query !== nextInputProps.value) { + nextState.query = nextInputProps.value; } + this.setState(nextState); }; - /** Returns whether the given index represents a valid item in `this.props.values`. */ - TagInput.prototype.isValidIndex = function (index) { - return index !== NONE && index < this.props.values.length; + TimezonePicker.prototype.renderButton = function () { + var _a = this.props, disabled = _a.disabled, _b = _a.valueDisplayFormat, valueDisplayFormat = _b === void 0 ? timezoneDisplayFormat_1.TimezoneDisplayFormat.OFFSET : _b, defaultValue = _a.defaultValue, placeholder = _a.placeholder, _c = _a.buttonProps, buttonProps = _c === void 0 ? {} : _c; + var _d = this.state, date = _d.date, value = _d.value; + var finalValue = value ? value : defaultValue; + var displayValue = finalValue ? timezoneDisplayFormat_1.formatTimezone(finalValue, date, valueDisplayFormat) : undefined; + return (React.createElement(core_1.Button, tslib_1.__assign({ rightIconName: "caret-down", disabled: disabled, text: displayValue || placeholder }, buttonProps))); }; - return TagInput; + return TimezonePicker; }(core_1.AbstractComponent)); - TagInput.displayName = "Blueprint.TagInput"; - TagInput.defaultProps = { + TimezonePicker.displayName = "Blueprint.TimezonePicker"; + TimezonePicker.defaultProps = { + disabled: false, inputProps: {}, - separator: ",", - tagProps: {}, + placeholder: "Select timezone...", + popoverProps: {}, + showLocalTimezone: true, }; - TagInput = tslib_1.__decorate([ + TimezonePicker = tslib_1.__decorate([ PureRender - ], TagInput); - exports.TagInput = TagInput; + ], TimezonePicker); + exports.TimezonePicker = TimezonePicker; /***/ }), -/* 332 */ +/* 333 */ /***/ (function(module, exports, __webpack_require__) { - var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! - Copyright (c) 2016 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames - */ - /* global define */ - - (function () { - 'use strict'; - - var hasOwn = {}.hasOwnProperty; - - function classNames () { - var classes = []; - - for (var i = 0; i < arguments.length; i++) { - var arg = arguments[i]; - if (!arg) continue; - - var argType = typeof arg; - - if (argType === 'string' || argType === 'number') { - classes.push(arg); - } else if (Array.isArray(arg)) { - classes.push(classNames.apply(null, arg)); - } else if (argType === 'object') { - for (var key in arg) { - if (hasOwn.call(arg, key) && arg[key]) { - classes.push(key); - } - } - } - } - - return classes.join(' '); - } + /* + * Copyright 2017 Palantir Technologies, Inc. All rights reserved. + * Licensed under the BSD-3 License as modified (the “License”); you may obtain a copy + * of the license at https://github.com/palantir/blueprint/blob/master/LICENSE + * and https://github.com/palantir/blueprint/blob/master/PATENTS + */ + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var moment = __webpack_require__(334); + var timezoneMetadata_1 = __webpack_require__(455); + exports.TimezoneDisplayFormat = { + /** Abbreviation format i.e. "HST" */ + ABBREVIATION: "abbreviation", + /** Composite format i.e. "Pacific/Honolulu (HST) -10:00" */ + COMPOSITE: "composite", + /** Name format i.e. "Pacific/Honolulu" */ + NAME: "name", + /** Offset format i.e. "-10:00" */ + OFFSET: "offset", + }; + function formatTimezone(timezone, date, displayFormat) { + if (!timezone || !moment.tz.zone(timezone)) { + return undefined; + } + var _a = timezoneMetadata_1.getTimezoneMetadata(timezone, date), abbreviation = _a.abbreviation, offsetAsString = _a.offsetAsString; + switch (displayFormat) { + case exports.TimezoneDisplayFormat.ABBREVIATION: + // Fall back to the offset when there is no abbreviation. + return abbreviation !== undefined ? abbreviation : offsetAsString; + case exports.TimezoneDisplayFormat.NAME: + return timezone; + case exports.TimezoneDisplayFormat.OFFSET: + return offsetAsString; + case exports.TimezoneDisplayFormat.COMPOSITE: + return "" + timezone + (abbreviation ? " (" + abbreviation + ")" : "") + " " + offsetAsString; + default: + assertNever(displayFormat); + return undefined; + } + } + exports.formatTimezone = formatTimezone; + function assertNever(x) { + throw new Error("Unexpected value: " + x); + } - if (typeof module !== 'undefined' && module.exports) { - module.exports = classNames; - } else if (true) { - // register as 'classnames', consistent with npm package name - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () { - return classNames; - }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else { - window.classNames = classNames; - } - }()); /***/ }), -/* 333 */ +/* 334 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - function __export(m) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; - } - Object.defineProperty(exports, "__esModule", { value: true }); - __export(__webpack_require__(334)); - __export(__webpack_require__(336)); - __export(__webpack_require__(339)); + var moment = module.exports = __webpack_require__(335); + moment.tz.load(__webpack_require__(454)); /***/ }), -/* 334 */ +/* 335 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var classNames = __webpack_require__(332); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var clickToCopy_1 = __webpack_require__(335); - function expand(color) { - return [color + "1", color + "2", color + "3", color + "4", color + "5"]; - } - function getHexCode(color) { - if (/^#/.test(color)) { - return color.toUpperCase(); - } - else { - return core_1.Colors[color.toUpperCase().replace(/-/g, "_")]; - } - } - function getLuminance(hex) { - var rgb = parseInt(hex.substring(1), 16); - var red = (rgb >> 16) & 0xff; - var green = (rgb >> 8) & 0xff; - var blue = (rgb >> 0) & 0xff; - var luma = 0.2126 * red + 0.7152 * green + 0.0722 * blue; - return luma; - } - var DARK_LUMA_CUTOFF = 111; - var ColorSwatch = function (_a) { - var colorName = _a.colorName, hexCode = _a.hexCode; - var style = { - backgroundColor: hexCode, - color: (getLuminance(hexCode) < DARK_LUMA_CUTOFF ? core_1.Colors.WHITE : core_1.Colors.BLACK), - }; - return (React.createElement(clickToCopy_1.ClickToCopy, { className: "docs-color-swatch", style: style, value: hexCode }, - React.createElement("div", { className: "docs-color-swatch-trigger docs-clipboard-message", "data-message": hexCode }, - React.createElement("span", null, - "@", - colorName)))); - }; - var ColorPalette = function (_a) { - var colors = _a.colors; - return (React.createElement("div", { className: classNames("docs-color-palette", { "docs-color-palette-single": colors.length === 1 }) }, colors.map(function (name, i) { return React.createElement(ColorSwatch, { colorName: name, hexCode: getHexCode(name), key: i }); }))); - }; - exports.ColorBar = function (_a) { - var colors = _a.colors; - var hexString = colors.map(getHexCode).join(", "); - var jsonString = "[" + colors.map(function (c) { return "\"" + getHexCode(c) + "\""; }).join(", ") + "]"; - var swatches = colors.map(function (name, i) { return (React.createElement("div", { className: "docs-color-swatch", key: i, style: { backgroundColor: getHexCode(name) } })); }); - return (React.createElement(clickToCopy_1.ClickToCopy, { value: jsonString }, - React.createElement("div", { className: "docs-color-bar" }, - React.createElement("div", { className: "docs-color-bar-swatches" }, swatches), - React.createElement("pre", { className: "docs-color-bar-hexes docs-clipboard-message pt-text-overflow-ellipsis", "data-hover-message": "Click to copy JSON array of hex colors", "data-message": hexString })))); - }; - function createPaletteBook(palettes, className) { - return function () { return (React.createElement("section", { className: classNames("docs-color-book", className) }, palettes.map(function (palette, index) { return React.createElement(ColorPalette, { colors: palette, key: index }); }))); }; - } - exports.GrayscalePalette = createPaletteBook([ - ["black"], - ["white"], - expand("dark-gray"), - expand("gray"), - expand("light-gray"), - ], "docs-color-book-grayscale"); - exports.CoreColorsPalette = createPaletteBook([ - expand("blue"), - expand("green"), - expand("orange"), - expand("red"), - ]); - exports.ExtendedColorsPalette = createPaletteBook([ - expand("vermilion"), - expand("rose"), - expand("violet"), - expand("indigo"), - expand("cobalt"), - expand("turquoise"), - expand("forest"), - expand("lime"), - expand("gold"), - expand("sepia"), - ]); - - -/***/ }), -/* 335 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(1); - var classNames = __webpack_require__(332); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var ClickToCopy = (function (_super) { - tslib_1.__extends(ClickToCopy, _super); - function ClickToCopy() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - hasCopied: false, - }; - _this.refHandlers = { - input: function (input) { return _this.inputElement = input; }, - }; - _this.handleClickEvent = function (e) { - _this.inputElement.select(); - document.execCommand("copy"); - _this.setState({ hasCopied: true }); - core_1.Utils.safeInvoke(_this.props.onClick, e); - }; - _this.handleKeyDown = docs_1.createKeyEventHandler((_a = { - all: _this.props.onKeyDown - }, - _a[core_1.Keys.SPACE] = _this.handleClickEvent, - _a[core_1.Keys.ENTER] = _this.handleClickEvent, - _a), true); - _this.handleMouseLeave = function (e) { - _this.setState({ hasCopied: false }); - core_1.Utils.safeInvoke(_this.props.onMouseLeave, e); - }; - return _this; - var _a; - } - ClickToCopy.prototype.render = function () { - var _a = this.props, className = _a.className, children = _a.children, copiedClassName = _a.copiedClassName, value = _a.value; - return (React.createElement("div", tslib_1.__assign({}, core_1.removeNonHTMLProps(this.props, ["copiedClassName", "value"], true), { className: classNames("docs-clipboard", className, (_b = {}, _b[copiedClassName] = this.state.hasCopied, _b)), onClick: this.handleClickEvent, onMouseLeave: this.handleMouseLeave }), - React.createElement("input", { onBlur: this.handleMouseLeave, onKeyDown: this.handleKeyDown, readOnly: true, ref: this.refHandlers.input, value: value }), - children)); - var _b; - }; - return ClickToCopy; - }(React.PureComponent)); - ClickToCopy.defaultProps = { - copiedClassName: "docs-clipboard-copied", - value: "", - }; - exports.ClickToCopy = ClickToCopy; + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;//! moment-timezone.js + //! version : 0.5.13 + //! Copyright (c) JS Foundation and other contributors + //! license : MIT + //! github.com/moment/moment-timezone + + (function (root, factory) { + "use strict"; + + /*global define*/ + if (true) { + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(336)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); // AMD + } else if (typeof module === 'object' && module.exports) { + module.exports = factory(require('moment')); // Node + } else { + factory(root.moment); // Browser + } + }(this, function (moment) { + "use strict"; + + // Do not load moment-timezone a second time. + // if (moment.tz !== undefined) { + // logError('Moment Timezone ' + moment.tz.version + ' was already loaded ' + (moment.tz.dataVersion ? 'with data from ' : 'without any data') + moment.tz.dataVersion); + // return moment; + // } + + var VERSION = "0.5.13", + zones = {}, + links = {}, + names = {}, + guesses = {}, + cachedGuess, + + momentVersion = moment.version.split('.'), + major = +momentVersion[0], + minor = +momentVersion[1]; + + // Moment.js version check + if (major < 2 || (major === 2 && minor < 6)) { + logError('Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js ' + moment.version + '. See momentjs.com'); + } + + /************************************ + Unpacking + ************************************/ + + function charCodeToInt(charCode) { + if (charCode > 96) { + return charCode - 87; + } else if (charCode > 64) { + return charCode - 29; + } + return charCode - 48; + } + + function unpackBase60(string) { + var i = 0, + parts = string.split('.'), + whole = parts[0], + fractional = parts[1] || '', + multiplier = 1, + num, + out = 0, + sign = 1; + + // handle negative numbers + if (string.charCodeAt(0) === 45) { + i = 1; + sign = -1; + } + + // handle digits before the decimal + for (i; i < whole.length; i++) { + num = charCodeToInt(whole.charCodeAt(i)); + out = 60 * out + num; + } + + // handle digits after the decimal + for (i = 0; i < fractional.length; i++) { + multiplier = multiplier / 60; + num = charCodeToInt(fractional.charCodeAt(i)); + out += num * multiplier; + } + + return out * sign; + } + + function arrayToInt (array) { + for (var i = 0; i < array.length; i++) { + array[i] = unpackBase60(array[i]); + } + } + + function intToUntil (array, length) { + for (var i = 0; i < length; i++) { + array[i] = Math.round((array[i - 1] || 0) + (array[i] * 60000)); // minutes to milliseconds + } + + array[length - 1] = Infinity; + } + + function mapIndices (source, indices) { + var out = [], i; + + for (i = 0; i < indices.length; i++) { + out[i] = source[indices[i]]; + } + + return out; + } + + function unpack (string) { + var data = string.split('|'), + offsets = data[2].split(' '), + indices = data[3].split(''), + untils = data[4].split(' '); + + arrayToInt(offsets); + arrayToInt(indices); + arrayToInt(untils); + + intToUntil(untils, indices.length); + + return { + name : data[0], + abbrs : mapIndices(data[1].split(' '), indices), + offsets : mapIndices(offsets, indices), + untils : untils, + population : data[5] | 0 + }; + } + + /************************************ + Zone object + ************************************/ + + function Zone (packedString) { + if (packedString) { + this._set(unpack(packedString)); + } + } + + Zone.prototype = { + _set : function (unpacked) { + this.name = unpacked.name; + this.abbrs = unpacked.abbrs; + this.untils = unpacked.untils; + this.offsets = unpacked.offsets; + this.population = unpacked.population; + }, + + _index : function (timestamp) { + var target = +timestamp, + untils = this.untils, + i; + + for (i = 0; i < untils.length; i++) { + if (target < untils[i]) { + return i; + } + } + }, + + parse : function (timestamp) { + var target = +timestamp, + offsets = this.offsets, + untils = this.untils, + max = untils.length - 1, + offset, offsetNext, offsetPrev, i; + + for (i = 0; i < max; i++) { + offset = offsets[i]; + offsetNext = offsets[i + 1]; + offsetPrev = offsets[i ? i - 1 : i]; + + if (offset < offsetNext && tz.moveAmbiguousForward) { + offset = offsetNext; + } else if (offset > offsetPrev && tz.moveInvalidForward) { + offset = offsetPrev; + } + + if (target < untils[i] - (offset * 60000)) { + return offsets[i]; + } + } + + return offsets[max]; + }, + + abbr : function (mom) { + return this.abbrs[this._index(mom)]; + }, + + offset : function (mom) { + return this.offsets[this._index(mom)]; + } + }; + + /************************************ + Current Timezone + ************************************/ + + function OffsetAt(at) { + var timeString = at.toTimeString(); + var abbr = timeString.match(/\([a-z ]+\)/i); + if (abbr && abbr[0]) { + // 17:56:31 GMT-0600 (CST) + // 17:56:31 GMT-0600 (Central Standard Time) + abbr = abbr[0].match(/[A-Z]/g); + abbr = abbr ? abbr.join('') : undefined; + } else { + // 17:56:31 CST + // 17:56:31 GMT+0800 (台北標準時間) + abbr = timeString.match(/[A-Z]{3,5}/g); + abbr = abbr ? abbr[0] : undefined; + } + + if (abbr === 'GMT') { + abbr = undefined; + } + + this.at = +at; + this.abbr = abbr; + this.offset = at.getTimezoneOffset(); + } + + function ZoneScore(zone) { + this.zone = zone; + this.offsetScore = 0; + this.abbrScore = 0; + } + + ZoneScore.prototype.scoreOffsetAt = function (offsetAt) { + this.offsetScore += Math.abs(this.zone.offset(offsetAt.at) - offsetAt.offset); + if (this.zone.abbr(offsetAt.at).replace(/[^A-Z]/g, '') !== offsetAt.abbr) { + this.abbrScore++; + } + }; + + function findChange(low, high) { + var mid, diff; + + while ((diff = ((high.at - low.at) / 12e4 | 0) * 6e4)) { + mid = new OffsetAt(new Date(low.at + diff)); + if (mid.offset === low.offset) { + low = mid; + } else { + high = mid; + } + } + + return low; + } + + function userOffsets() { + var startYear = new Date().getFullYear() - 2, + last = new OffsetAt(new Date(startYear, 0, 1)), + offsets = [last], + change, next, i; + + for (i = 1; i < 48; i++) { + next = new OffsetAt(new Date(startYear, i, 1)); + if (next.offset !== last.offset) { + change = findChange(last, next); + offsets.push(change); + offsets.push(new OffsetAt(new Date(change.at + 6e4))); + } + last = next; + } + + for (i = 0; i < 4; i++) { + offsets.push(new OffsetAt(new Date(startYear + i, 0, 1))); + offsets.push(new OffsetAt(new Date(startYear + i, 6, 1))); + } + + return offsets; + } + + function sortZoneScores (a, b) { + if (a.offsetScore !== b.offsetScore) { + return a.offsetScore - b.offsetScore; + } + if (a.abbrScore !== b.abbrScore) { + return a.abbrScore - b.abbrScore; + } + return b.zone.population - a.zone.population; + } + + function addToGuesses (name, offsets) { + var i, offset; + arrayToInt(offsets); + for (i = 0; i < offsets.length; i++) { + offset = offsets[i]; + guesses[offset] = guesses[offset] || {}; + guesses[offset][name] = true; + } + } + + function guessesForUserOffsets (offsets) { + var offsetsLength = offsets.length, + filteredGuesses = {}, + out = [], + i, j, guessesOffset; + + for (i = 0; i < offsetsLength; i++) { + guessesOffset = guesses[offsets[i].offset] || {}; + for (j in guessesOffset) { + if (guessesOffset.hasOwnProperty(j)) { + filteredGuesses[j] = true; + } + } + } + + for (i in filteredGuesses) { + if (filteredGuesses.hasOwnProperty(i)) { + out.push(names[i]); + } + } + + return out; + } + + function rebuildGuess () { + + // use Intl API when available and returning valid time zone + try { + var intlName = Intl.DateTimeFormat().resolvedOptions().timeZone; + if (intlName){ + var name = names[normalizeName(intlName)]; + if (name) { + return name; + } + logError("Moment Timezone found " + intlName + " from the Intl api, but did not have that data loaded."); + } + } catch (e) { + // Intl unavailable, fall back to manual guessing. + } + + var offsets = userOffsets(), + offsetsLength = offsets.length, + guesses = guessesForUserOffsets(offsets), + zoneScores = [], + zoneScore, i, j; + + for (i = 0; i < guesses.length; i++) { + zoneScore = new ZoneScore(getZone(guesses[i]), offsetsLength); + for (j = 0; j < offsetsLength; j++) { + zoneScore.scoreOffsetAt(offsets[j]); + } + zoneScores.push(zoneScore); + } + + zoneScores.sort(sortZoneScores); + + return zoneScores.length > 0 ? zoneScores[0].zone.name : undefined; + } + + function guess (ignoreCache) { + if (!cachedGuess || ignoreCache) { + cachedGuess = rebuildGuess(); + } + return cachedGuess; + } + + /************************************ + Global Methods + ************************************/ + + function normalizeName (name) { + return (name || '').toLowerCase().replace(/\//g, '_'); + } + + function addZone (packed) { + var i, name, split, normalized; + + if (typeof packed === "string") { + packed = [packed]; + } + + for (i = 0; i < packed.length; i++) { + split = packed[i].split('|'); + name = split[0]; + normalized = normalizeName(name); + zones[normalized] = packed[i]; + names[normalized] = name; + if (split[5]) { + addToGuesses(normalized, split[2].split(' ')); + } + } + } + + function getZone (name, caller) { + name = normalizeName(name); + + var zone = zones[name]; + var link; + + if (zone instanceof Zone) { + return zone; + } + + if (typeof zone === 'string') { + zone = new Zone(zone); + zones[name] = zone; + return zone; + } + + // Pass getZone to prevent recursion more than 1 level deep + if (links[name] && caller !== getZone && (link = getZone(links[name], getZone))) { + zone = zones[name] = new Zone(); + zone._set(link); + zone.name = names[name]; + return zone; + } + + return null; + } + + function getNames () { + var i, out = []; + + for (i in names) { + if (names.hasOwnProperty(i) && (zones[i] || zones[links[i]]) && names[i]) { + out.push(names[i]); + } + } + + return out.sort(); + } + + function addLink (aliases) { + var i, alias, normal0, normal1; + + if (typeof aliases === "string") { + aliases = [aliases]; + } + + for (i = 0; i < aliases.length; i++) { + alias = aliases[i].split('|'); + + normal0 = normalizeName(alias[0]); + normal1 = normalizeName(alias[1]); + + links[normal0] = normal1; + names[normal0] = alias[0]; + + links[normal1] = normal0; + names[normal1] = alias[1]; + } + } + + function loadData (data) { + addZone(data.zones); + addLink(data.links); + tz.dataVersion = data.version; + } + + function zoneExists (name) { + if (!zoneExists.didShowError) { + zoneExists.didShowError = true; + logError("moment.tz.zoneExists('" + name + "') has been deprecated in favor of !moment.tz.zone('" + name + "')"); + } + return !!getZone(name); + } + + function needsOffset (m) { + return !!(m._a && (m._tzm === undefined)); + } + + function logError (message) { + if (typeof console !== 'undefined' && typeof console.error === 'function') { + console.error(message); + } + } + + /************************************ + moment.tz namespace + ************************************/ + + function tz (input) { + var args = Array.prototype.slice.call(arguments, 0, -1), + name = arguments[arguments.length - 1], + zone = getZone(name), + out = moment.utc.apply(null, args); + + if (zone && !moment.isMoment(input) && needsOffset(out)) { + out.add(zone.parse(out), 'minutes'); + } + + out.tz(name); + + return out; + } + + tz.version = VERSION; + tz.dataVersion = ''; + tz._zones = zones; + tz._links = links; + tz._names = names; + tz.add = addZone; + tz.link = addLink; + tz.load = loadData; + tz.zone = getZone; + tz.zoneExists = zoneExists; // deprecated in 0.1.0 + tz.guess = guess; + tz.names = getNames; + tz.Zone = Zone; + tz.unpack = unpack; + tz.unpackBase60 = unpackBase60; + tz.needsOffset = needsOffset; + tz.moveInvalidForward = true; + tz.moveAmbiguousForward = false; + + /************************************ + Interface with Moment.js + ************************************/ + + var fn = moment.fn; + + moment.tz = tz; + + moment.defaultZone = null; + + moment.updateOffset = function (mom, keepTime) { + var zone = moment.defaultZone, + offset; + + if (mom._z === undefined) { + if (zone && needsOffset(mom) && !mom._isUTC) { + mom._d = moment.utc(mom._a)._d; + mom.utc().add(zone.parse(mom), 'minutes'); + } + mom._z = zone; + } + if (mom._z) { + offset = mom._z.offset(mom); + if (Math.abs(offset) < 16) { + offset = offset / 60; + } + if (mom.utcOffset !== undefined) { + mom.utcOffset(-offset, keepTime); + } else { + mom.zone(offset, keepTime); + } + } + }; + + fn.tz = function (name) { + if (name) { + this._z = getZone(name); + if (this._z) { + moment.updateOffset(this); + } else { + logError("Moment Timezone has no data for " + name + ". See http://momentjs.com/timezone/docs/#/data-loading/."); + } + return this; + } + if (this._z) { return this._z.name; } + }; + + function abbrWrap (old) { + return function () { + if (this._z) { return this._z.abbr(this); } + return old.call(this); + }; + } + + function resetZoneWrap (old) { + return function () { + this._z = null; + return old.apply(this, arguments); + }; + } + + fn.zoneName = abbrWrap(fn.zoneName); + fn.zoneAbbr = abbrWrap(fn.zoneAbbr); + fn.utc = resetZoneWrap(fn.utc); + + moment.tz.setDefault = function(name) { + if (major < 2 || (major === 2 && minor < 9)) { + logError('Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js ' + moment.version + '.'); + } + moment.defaultZone = name ? getZone(name) : null; + return moment; + }; + + // Cloning a moment should include the _z property. + var momentProperties = moment.momentProperties; + if (Object.prototype.toString.call(momentProperties) === '[object Array]') { + // moment 2.8.1+ + momentProperties.push('_z'); + momentProperties.push('_a'); + } else if (momentProperties) { + // moment 2.7.0 + momentProperties._z = null; + } + + // INJECT DATA + + return moment; + })); /***/ }), /* 336 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(1); - var chroma = __webpack_require__(337); - var classNames = __webpack_require__(332); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var colorPalettes_1 = __webpack_require__(334); - var MIN_STEPS = 3; - var MAX_STEPS = 20; - var QUALITATIVE = [ - "cobalt3", "forest3", "gold3", "vermilion3", "violet3", - "turquoise3", "rose3", "lime3", "sepia3", "indigo3", - ]; - var SINGLE_HUE = [ - ["#FFB7A5", "#9E2B0E"], - ["#ffb3d0", "#a82255"], - ["#e1bae1", "#5c255c"], - ["#d6ccff", "#5642a6"], - ["#b3cfff", "#1f4b99"], - ["#97f3eb", "#008075"], - ["#b1ecb5", "#1d7324"], - ["#e8f9b6", "#728c23"], - ["#ffe4a0", "#a67908"], - ["#e4cbb2", "#63411e"], - ]; - var SEQUENTIAL = [ - ["#ffc940", "#D9822B", "#9e2b0e"], - ["#ffe39f", "#D9822B", "#9e2b0e"], - ["#ffeec5", "#DB2C6F", "#5c255c"], - ["#ffe39f", "#00B3A4", "#1f4b99"], - ["#cff3d2", "#00B3A4", "#1f4b99"], - ["#ffe39f", "#00B3A4", "#1d7324"], - ["#e8f8b6", "#00B3A4", "#1d7324"], - ["#d1e1ff", "#7157D9", "#1f4b99"], - ["#d1e1ff", "#7157D9", "#5c255c"], - ["#e1bae1", "#DB2C6F", "#5c255c"], - ]; - var DIVERGING = [ - ["#1F4B99", "#00B3A4", "#FFE39F", "#D9822B", "#9E2B0E"], - ["#1F4B99", "#00B3A4", "#FFFFFF", "#D9822B", "#9E2B0E"], - ["#1D7324", "#9BBF30", "#FFE39F", "#00B3A4", "#1F4B99"], - ["#1D7324", "#9BBF30", "#FFFFFF", "#00B3A4", "#1F4B99"], - ]; - var ColorScheme = (function (_super) { - tslib_1.__extends(ColorScheme, _super); - function ColorScheme() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - activePalette: 0, - activeSchema: 0, - steps: _this.props.steps || 5, - }; - _this.handleStepChange = docs_1.handleNumberChange(function (steps) { - _this.setState({ - steps: Math.max(MIN_STEPS, Math.min(MAX_STEPS, steps)), - }); - }); - _this.handleSchemaChange = docs_1.handleNumberChange(function (activeSchema) { return _this.setState({ - activePalette: 0, - activeSchema: activeSchema, - }); }); - _this.handlePaletteChange = function (key) { - _this.setState({ activePalette: key }); - }; - _this.generateColorPalette = function (basePalette, diverging, steps) { - if (steps === void 0) { steps = _this.state.steps; } - if (diverging) { - var leftColors = chroma.bezier(basePalette.slice(0, 3)).scale().mode("lab").correctLightness(true); - var rightColors = chroma.bezier(basePalette.slice(2, 5)).scale().mode("lab").correctLightness(true); - var result = []; - for (var i = 0; i < steps; i++) { - var t = i / (steps - 1); - result.push((t < 0.5) ? leftColors(t * 2).hex() : rightColors(t * 2 - 1).hex()); - } - return result; - } - else { - return chroma.bezier(basePalette).scale().correctLightness(true).colors(steps); - } - }; - return _this; - } - ColorScheme.prototype.render = function () { - var _this = this; - var schema = this.props.schemes[this.state.activeSchema]; - var currentPalettes = schema.palettes.map(function (palette, index) { - return _this.renderPalette(palette, index, schema.diverging); - }); - var generatedColors = this.generateColorPalette(schema.palettes[this.state.activePalette], schema.diverging); - return (React.createElement("div", { className: "docs-color-scheme" }, - this.renderRadioGroup(), - React.createElement("div", { className: "docs-color-book" }, currentPalettes), - React.createElement("label", { className: classNames(core_1.Classes.LABEL, core_1.Classes.INLINE, "docs-color-scheme-label") }, - "Step count", - React.createElement("input", { className: core_1.Classes.INPUT, type: "number", dir: "auto", value: this.state.steps.toString(), onChange: this.handleStepChange, min: MIN_STEPS, max: MAX_STEPS })), - React.createElement(colorPalettes_1.ColorBar, { colors: generatedColors }))); - }; - ColorScheme.prototype.renderRadioGroup = function () { - if (this.props.schemes.length === 1) { - return undefined; - } - var OPTIONS = this.props.schemes.map(function (scheme, index) { - return { - className: core_1.Classes.INLINE, - label: scheme.label, - value: index.toString(), - }; - }); - return (React.createElement(core_1.RadioGroup, { key: "activeSchema", name: "activeSchema", className: "docs-color-scheme-radios", label: "Select a color scheme", options: OPTIONS, onChange: this.handleSchemaChange, selectedValue: this.state.activeSchema.toString() })); - }; - ColorScheme.prototype.renderPalette = function (palette, key, diverging) { - var colors = this.generateColorPalette(palette, diverging, 5); - var swatches = colors.map(function (hex, i) { return (React.createElement("div", { className: "docs-color-swatch", key: i, style: { backgroundColor: hex } })); }); - var classes = classNames("docs-color-palette", { - selected: key === this.state.activePalette, - }); - var clickHandler = this.handlePaletteChange.bind(this, key); - var keyDownHandler = docs_1.createKeyEventHandler((_a = {}, - _a[core_1.Keys.SPACE] = clickHandler, - _a[core_1.Keys.ENTER] = clickHandler, - _a), true); - return (React.createElement("div", { className: classes, key: key, onClick: clickHandler, onKeyDown: keyDownHandler, tabIndex: 0 }, swatches)); - var _a; - }; - ; - return ColorScheme; - }(React.PureComponent)); - exports.ColorScheme = ColorScheme; - exports.QualitativeSchemePalette = function () { return React.createElement(colorPalettes_1.ColorBar, { colors: QUALITATIVE }); }; - exports.SequentialSchemePalette = function () { - var schemes = [ - { label: "Single hue", palettes: SINGLE_HUE }, - { label: "Multi-hue", palettes: SEQUENTIAL }, - ]; - return React.createElement(ColorScheme, { schemes: schemes }); - }; - exports.DivergingSchemePalette = function () { - var schemes = [ - { diverging: true, label: "Diverging", palettes: DIVERGING }, - ]; - return React.createElement(ColorScheme, { schemes: schemes }); - }; - - -/***/ }), -/* 337 */ -/***/ (function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module) { - /** - * @license - * - * chroma.js - JavaScript library for color conversions - * - * Copyright (c) 2011-2017, Gregor Aisch - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * 3. The name Gregor Aisch may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, - * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - */ + /* WEBPACK VAR INJECTION */(function(module) {//! moment.js + //! version : 2.18.1 + //! authors : Tim Wood, Iskren Chernev, Moment.js contributors + //! license : MIT + //! momentjs.com - (function() { - var Color, DEG2RAD, LAB_CONSTANTS, PI, PITHIRD, RAD2DEG, TWOPI, _guess_formats, _guess_formats_sorted, _input, _interpolators, abs, atan2, bezier, blend, blend_f, brewer, burn, chroma, clip_rgb, cmyk2rgb, colors, cos, css2rgb, darken, dodge, each, floor, hcg2rgb, hex2rgb, hsi2rgb, hsl2css, hsl2rgb, hsv2rgb, interpolate, interpolate_hsx, interpolate_lab, interpolate_num, interpolate_rgb, lab2lch, lab2rgb, lab_xyz, lch2lab, lch2rgb, lighten, limit, log, luminance_x, m, max, multiply, normal, num2rgb, overlay, pow, rgb2cmyk, rgb2css, rgb2hcg, rgb2hex, rgb2hsi, rgb2hsl, rgb2hsv, rgb2lab, rgb2lch, rgb2luminance, rgb2num, rgb2temperature, rgb2xyz, rgb_xyz, rnd, root, round, screen, sin, sqrt, temperature2rgb, type, unpack, w3cx11, xyz_lab, xyz_rgb, - slice = [].slice; + ;(function (global, factory) { + true ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + global.moment = factory() + }(this, (function () { 'use strict'; - type = (function() { + var hookCallback; - /* - for browser-safe type checking+ - ported from jQuery's $.type - */ - var classToType, len, name, o, ref; - classToType = {}; - ref = "Boolean Number String Function Array Date RegExp Undefined Null".split(" "); - for (o = 0, len = ref.length; o < len; o++) { - name = ref[o]; - classToType["[object " + name + "]"] = name.toLowerCase(); - } - return function(obj) { - var strType; - strType = Object.prototype.toString.call(obj); - return classToType[strType] || "object"; - }; - })(); + function hooks () { + return hookCallback.apply(null, arguments); + } - limit = function(x, min, max) { - if (min == null) { - min = 0; - } - if (max == null) { - max = 1; - } - if (x < min) { - x = min; - } - if (x > max) { - x = max; - } - return x; - }; + // This is done to register the method called with moment() + // without creating circular dependencies. + function setHookCallback (callback) { + hookCallback = callback; + } - unpack = function(args) { - if (args.length >= 3) { - return [].slice.call(args); - } else { - return args[0]; - } - }; + function isArray(input) { + return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]'; + } - clip_rgb = function(rgb) { - var i, o; - rgb._clipped = false; - rgb._unclipped = rgb.slice(0); - for (i = o = 0; o < 3; i = ++o) { - if (i < 3) { - if (rgb[i] < 0 || rgb[i] > 255) { - rgb._clipped = true; - } - if (rgb[i] < 0) { - rgb[i] = 0; - } - if (rgb[i] > 255) { - rgb[i] = 255; - } - } else if (i === 3) { - if (rgb[i] < 0) { - rgb[i] = 0; - } - if (rgb[i] > 1) { - rgb[i] = 1; - } - } - } - if (!rgb._clipped) { - delete rgb._unclipped; + function isObject(input) { + // IE8 will treat undefined and null as object if it wasn't for + // input != null + return input != null && Object.prototype.toString.call(input) === '[object Object]'; + } + + function isObjectEmpty(obj) { + var k; + for (k in obj) { + // even if its not own property I'd still call it non-empty + return false; } - return rgb; - }; + return true; + } - PI = Math.PI, round = Math.round, cos = Math.cos, floor = Math.floor, pow = Math.pow, log = Math.log, sin = Math.sin, sqrt = Math.sqrt, atan2 = Math.atan2, max = Math.max, abs = Math.abs; + function isUndefined(input) { + return input === void 0; + } - TWOPI = PI * 2; + function isNumber(input) { + return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]'; + } - PITHIRD = PI / 3; + function isDate(input) { + return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]'; + } - DEG2RAD = PI / 180; + function map(arr, fn) { + var res = [], i; + for (i = 0; i < arr.length; ++i) { + res.push(fn(arr[i], i)); + } + return res; + } - RAD2DEG = 180 / PI; + function hasOwnProp(a, b) { + return Object.prototype.hasOwnProperty.call(a, b); + } - chroma = function() { - if (arguments[0] instanceof Color) { - return arguments[0]; + function extend(a, b) { + for (var i in b) { + if (hasOwnProp(b, i)) { + a[i] = b[i]; + } } - return (function(func, args, ctor) { - ctor.prototype = func.prototype; - var child = new ctor, result = func.apply(child, args); - return Object(result) === result ? result : child; - })(Color, arguments, function(){}); - }; - _interpolators = []; + if (hasOwnProp(b, 'toString')) { + a.toString = b.toString; + } - if ((typeof module !== "undefined" && module !== null) && (module.exports != null)) { - module.exports = chroma; - } + if (hasOwnProp(b, 'valueOf')) { + a.valueOf = b.valueOf; + } - if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function() { - return chroma; - }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else { - root = typeof exports !== "undefined" && exports !== null ? exports : this; - root.chroma = chroma; - } + return a; + } - chroma.version = '1.3.4'; + function createUTC (input, format, locale, strict) { + return createLocalOrUTC(input, format, locale, strict, true).utc(); + } - _input = {}; + function defaultParsingFlags() { + // We need to deep clone this object. + return { + empty : false, + unusedTokens : [], + unusedInput : [], + overflow : -2, + charsLeftOver : 0, + nullInput : false, + invalidMonth : null, + invalidFormat : false, + userInvalidated : false, + iso : false, + parsedDateParts : [], + meridiem : null, + rfc2822 : false, + weekdayMismatch : false + }; + } - _guess_formats = []; + function getParsingFlags(m) { + if (m._pf == null) { + m._pf = defaultParsingFlags(); + } + return m._pf; + } - _guess_formats_sorted = false; + var some; + if (Array.prototype.some) { + some = Array.prototype.some; + } else { + some = function (fun) { + var t = Object(this); + var len = t.length >>> 0; - Color = (function() { - function Color() { - var arg, args, chk, len, len1, me, mode, o, w; - me = this; - args = []; - for (o = 0, len = arguments.length; o < len; o++) { - arg = arguments[o]; - if (arg != null) { - args.push(arg); - } - } - mode = args[args.length - 1]; - if (_input[mode] != null) { - me._rgb = clip_rgb(_input[mode](unpack(args.slice(0, -1)))); - } else { - if (!_guess_formats_sorted) { - _guess_formats = _guess_formats.sort(function(a, b) { - return b.p - a.p; - }); - _guess_formats_sorted = true; - } - for (w = 0, len1 = _guess_formats.length; w < len1; w++) { - chk = _guess_formats[w]; - mode = chk.test.apply(chk, args); - if (mode) { - break; - } - } - if (mode) { - me._rgb = clip_rgb(_input[mode].apply(_input, args)); + for (var i = 0; i < len; i++) { + if (i in t && fun.call(this, t[i], i, t)) { + return true; + } } - } - if (me._rgb == null) { - console.warn('unknown format: ' + args); - } - if (me._rgb == null) { - me._rgb = [0, 0, 0]; - } - if (me._rgb.length === 3) { - me._rgb.push(1); - } - } - Color.prototype.toString = function() { - return this.hex(); + return false; }; + } - Color.prototype.clone = function() { - return chroma(me._rgb); - }; + var some$1 = some; - return Color; + function isValid(m) { + if (m._isValid == null) { + var flags = getParsingFlags(m); + var parsedParts = some$1.call(flags.parsedDateParts, function (i) { + return i != null; + }); + var isNowValid = !isNaN(m._d.getTime()) && + flags.overflow < 0 && + !flags.empty && + !flags.invalidMonth && + !flags.invalidWeekday && + !flags.nullInput && + !flags.invalidFormat && + !flags.userInvalidated && + (!flags.meridiem || (flags.meridiem && parsedParts)); - })(); + if (m._strict) { + isNowValid = isNowValid && + flags.charsLeftOver === 0 && + flags.unusedTokens.length === 0 && + flags.bigHour === undefined; + } - chroma._input = _input; + if (Object.isFrozen == null || !Object.isFrozen(m)) { + m._isValid = isNowValid; + } + else { + return isNowValid; + } + } + return m._isValid; + } + function createInvalid (flags) { + var m = createUTC(NaN); + if (flags != null) { + extend(getParsingFlags(m), flags); + } + else { + getParsingFlags(m).userInvalidated = true; + } - /** - ColorBrewer colors for chroma.js - - Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The - Pennsylvania State University. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software distributed - under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR - CONDITIONS OF ANY KIND, either express or implied. See the License for the - specific language governing permissions and limitations under the License. - - @preserve - */ + return m; + } - chroma.brewer = brewer = { - OrRd: ['#fff7ec', '#fee8c8', '#fdd49e', '#fdbb84', '#fc8d59', '#ef6548', '#d7301f', '#b30000', '#7f0000'], - PuBu: ['#fff7fb', '#ece7f2', '#d0d1e6', '#a6bddb', '#74a9cf', '#3690c0', '#0570b0', '#045a8d', '#023858'], - BuPu: ['#f7fcfd', '#e0ecf4', '#bfd3e6', '#9ebcda', '#8c96c6', '#8c6bb1', '#88419d', '#810f7c', '#4d004b'], - Oranges: ['#fff5eb', '#fee6ce', '#fdd0a2', '#fdae6b', '#fd8d3c', '#f16913', '#d94801', '#a63603', '#7f2704'], - BuGn: ['#f7fcfd', '#e5f5f9', '#ccece6', '#99d8c9', '#66c2a4', '#41ae76', '#238b45', '#006d2c', '#00441b'], - YlOrBr: ['#ffffe5', '#fff7bc', '#fee391', '#fec44f', '#fe9929', '#ec7014', '#cc4c02', '#993404', '#662506'], - YlGn: ['#ffffe5', '#f7fcb9', '#d9f0a3', '#addd8e', '#78c679', '#41ab5d', '#238443', '#006837', '#004529'], - Reds: ['#fff5f0', '#fee0d2', '#fcbba1', '#fc9272', '#fb6a4a', '#ef3b2c', '#cb181d', '#a50f15', '#67000d'], - RdPu: ['#fff7f3', '#fde0dd', '#fcc5c0', '#fa9fb5', '#f768a1', '#dd3497', '#ae017e', '#7a0177', '#49006a'], - Greens: ['#f7fcf5', '#e5f5e0', '#c7e9c0', '#a1d99b', '#74c476', '#41ab5d', '#238b45', '#006d2c', '#00441b'], - YlGnBu: ['#ffffd9', '#edf8b1', '#c7e9b4', '#7fcdbb', '#41b6c4', '#1d91c0', '#225ea8', '#253494', '#081d58'], - Purples: ['#fcfbfd', '#efedf5', '#dadaeb', '#bcbddc', '#9e9ac8', '#807dba', '#6a51a3', '#54278f', '#3f007d'], - GnBu: ['#f7fcf0', '#e0f3db', '#ccebc5', '#a8ddb5', '#7bccc4', '#4eb3d3', '#2b8cbe', '#0868ac', '#084081'], - Greys: ['#ffffff', '#f0f0f0', '#d9d9d9', '#bdbdbd', '#969696', '#737373', '#525252', '#252525', '#000000'], - YlOrRd: ['#ffffcc', '#ffeda0', '#fed976', '#feb24c', '#fd8d3c', '#fc4e2a', '#e31a1c', '#bd0026', '#800026'], - PuRd: ['#f7f4f9', '#e7e1ef', '#d4b9da', '#c994c7', '#df65b0', '#e7298a', '#ce1256', '#980043', '#67001f'], - Blues: ['#f7fbff', '#deebf7', '#c6dbef', '#9ecae1', '#6baed6', '#4292c6', '#2171b5', '#08519c', '#08306b'], - PuBuGn: ['#fff7fb', '#ece2f0', '#d0d1e6', '#a6bddb', '#67a9cf', '#3690c0', '#02818a', '#016c59', '#014636'], - Viridis: ['#440154', '#482777', '#3f4a8a', '#31678e', '#26838f', '#1f9d8a', '#6cce5a', '#b6de2b', '#fee825'], - Spectral: ['#9e0142', '#d53e4f', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#e6f598', '#abdda4', '#66c2a5', '#3288bd', '#5e4fa2'], - RdYlGn: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#d9ef8b', '#a6d96a', '#66bd63', '#1a9850', '#006837'], - RdBu: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#f7f7f7', '#d1e5f0', '#92c5de', '#4393c3', '#2166ac', '#053061'], - PiYG: ['#8e0152', '#c51b7d', '#de77ae', '#f1b6da', '#fde0ef', '#f7f7f7', '#e6f5d0', '#b8e186', '#7fbc41', '#4d9221', '#276419'], - PRGn: ['#40004b', '#762a83', '#9970ab', '#c2a5cf', '#e7d4e8', '#f7f7f7', '#d9f0d3', '#a6dba0', '#5aae61', '#1b7837', '#00441b'], - RdYlBu: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee090', '#ffffbf', '#e0f3f8', '#abd9e9', '#74add1', '#4575b4', '#313695'], - BrBG: ['#543005', '#8c510a', '#bf812d', '#dfc27d', '#f6e8c3', '#f5f5f5', '#c7eae5', '#80cdc1', '#35978f', '#01665e', '#003c30'], - RdGy: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#ffffff', '#e0e0e0', '#bababa', '#878787', '#4d4d4d', '#1a1a1a'], - PuOr: ['#7f3b08', '#b35806', '#e08214', '#fdb863', '#fee0b6', '#f7f7f7', '#d8daeb', '#b2abd2', '#8073ac', '#542788', '#2d004b'], - Set2: ['#66c2a5', '#fc8d62', '#8da0cb', '#e78ac3', '#a6d854', '#ffd92f', '#e5c494', '#b3b3b3'], - Accent: ['#7fc97f', '#beaed4', '#fdc086', '#ffff99', '#386cb0', '#f0027f', '#bf5b17', '#666666'], - Set1: ['#e41a1c', '#377eb8', '#4daf4a', '#984ea3', '#ff7f00', '#ffff33', '#a65628', '#f781bf', '#999999'], - Set3: ['#8dd3c7', '#ffffb3', '#bebada', '#fb8072', '#80b1d3', '#fdb462', '#b3de69', '#fccde5', '#d9d9d9', '#bc80bd', '#ccebc5', '#ffed6f'], - Dark2: ['#1b9e77', '#d95f02', '#7570b3', '#e7298a', '#66a61e', '#e6ab02', '#a6761d', '#666666'], - Paired: ['#a6cee3', '#1f78b4', '#b2df8a', '#33a02c', '#fb9a99', '#e31a1c', '#fdbf6f', '#ff7f00', '#cab2d6', '#6a3d9a', '#ffff99', '#b15928'], - Pastel2: ['#b3e2cd', '#fdcdac', '#cbd5e8', '#f4cae4', '#e6f5c9', '#fff2ae', '#f1e2cc', '#cccccc'], - Pastel1: ['#fbb4ae', '#b3cde3', '#ccebc5', '#decbe4', '#fed9a6', '#ffffcc', '#e5d8bd', '#fddaec', '#f2f2f2'] - }; + // Plugins that add properties should also add the key here (null value), + // so we can properly clone ourselves. + var momentProperties = hooks.momentProperties = []; - (function() { - var key, results; - results = []; - for (key in brewer) { - results.push(brewer[key.toLowerCase()] = brewer[key]); - } - return results; - })(); + function copyConfig(to, from) { + var i, prop, val; + if (!isUndefined(from._isAMomentObject)) { + to._isAMomentObject = from._isAMomentObject; + } + if (!isUndefined(from._i)) { + to._i = from._i; + } + if (!isUndefined(from._f)) { + to._f = from._f; + } + if (!isUndefined(from._l)) { + to._l = from._l; + } + if (!isUndefined(from._strict)) { + to._strict = from._strict; + } + if (!isUndefined(from._tzm)) { + to._tzm = from._tzm; + } + if (!isUndefined(from._isUTC)) { + to._isUTC = from._isUTC; + } + if (!isUndefined(from._offset)) { + to._offset = from._offset; + } + if (!isUndefined(from._pf)) { + to._pf = getParsingFlags(from); + } + if (!isUndefined(from._locale)) { + to._locale = from._locale; + } - /** - X11 color names - - http://www.w3.org/TR/css3-color/#svg-color - */ + if (momentProperties.length > 0) { + for (i = 0; i < momentProperties.length; i++) { + prop = momentProperties[i]; + val = from[prop]; + if (!isUndefined(val)) { + to[prop] = val; + } + } + } - w3cx11 = { - aliceblue: '#f0f8ff', - antiquewhite: '#faebd7', - aqua: '#00ffff', - aquamarine: '#7fffd4', - azure: '#f0ffff', - beige: '#f5f5dc', - bisque: '#ffe4c4', - black: '#000000', - blanchedalmond: '#ffebcd', - blue: '#0000ff', - blueviolet: '#8a2be2', - brown: '#a52a2a', - burlywood: '#deb887', - cadetblue: '#5f9ea0', - chartreuse: '#7fff00', - chocolate: '#d2691e', - coral: '#ff7f50', - cornflower: '#6495ed', - cornflowerblue: '#6495ed', - cornsilk: '#fff8dc', - crimson: '#dc143c', - cyan: '#00ffff', - darkblue: '#00008b', - darkcyan: '#008b8b', - darkgoldenrod: '#b8860b', - darkgray: '#a9a9a9', - darkgreen: '#006400', - darkgrey: '#a9a9a9', - darkkhaki: '#bdb76b', - darkmagenta: '#8b008b', - darkolivegreen: '#556b2f', - darkorange: '#ff8c00', - darkorchid: '#9932cc', - darkred: '#8b0000', - darksalmon: '#e9967a', - darkseagreen: '#8fbc8f', - darkslateblue: '#483d8b', - darkslategray: '#2f4f4f', - darkslategrey: '#2f4f4f', - darkturquoise: '#00ced1', - darkviolet: '#9400d3', - deeppink: '#ff1493', - deepskyblue: '#00bfff', - dimgray: '#696969', - dimgrey: '#696969', - dodgerblue: '#1e90ff', - firebrick: '#b22222', - floralwhite: '#fffaf0', - forestgreen: '#228b22', - fuchsia: '#ff00ff', - gainsboro: '#dcdcdc', - ghostwhite: '#f8f8ff', - gold: '#ffd700', - goldenrod: '#daa520', - gray: '#808080', - green: '#008000', - greenyellow: '#adff2f', - grey: '#808080', - honeydew: '#f0fff0', - hotpink: '#ff69b4', - indianred: '#cd5c5c', - indigo: '#4b0082', - ivory: '#fffff0', - khaki: '#f0e68c', - laserlemon: '#ffff54', - lavender: '#e6e6fa', - lavenderblush: '#fff0f5', - lawngreen: '#7cfc00', - lemonchiffon: '#fffacd', - lightblue: '#add8e6', - lightcoral: '#f08080', - lightcyan: '#e0ffff', - lightgoldenrod: '#fafad2', - lightgoldenrodyellow: '#fafad2', - lightgray: '#d3d3d3', - lightgreen: '#90ee90', - lightgrey: '#d3d3d3', - lightpink: '#ffb6c1', - lightsalmon: '#ffa07a', - lightseagreen: '#20b2aa', - lightskyblue: '#87cefa', - lightslategray: '#778899', - lightslategrey: '#778899', - lightsteelblue: '#b0c4de', - lightyellow: '#ffffe0', - lime: '#00ff00', - limegreen: '#32cd32', - linen: '#faf0e6', - magenta: '#ff00ff', - maroon: '#800000', - maroon2: '#7f0000', - maroon3: '#b03060', - mediumaquamarine: '#66cdaa', - mediumblue: '#0000cd', - mediumorchid: '#ba55d3', - mediumpurple: '#9370db', - mediumseagreen: '#3cb371', - mediumslateblue: '#7b68ee', - mediumspringgreen: '#00fa9a', - mediumturquoise: '#48d1cc', - mediumvioletred: '#c71585', - midnightblue: '#191970', - mintcream: '#f5fffa', - mistyrose: '#ffe4e1', - moccasin: '#ffe4b5', - navajowhite: '#ffdead', - navy: '#000080', - oldlace: '#fdf5e6', - olive: '#808000', - olivedrab: '#6b8e23', - orange: '#ffa500', - orangered: '#ff4500', - orchid: '#da70d6', - palegoldenrod: '#eee8aa', - palegreen: '#98fb98', - paleturquoise: '#afeeee', - palevioletred: '#db7093', - papayawhip: '#ffefd5', - peachpuff: '#ffdab9', - peru: '#cd853f', - pink: '#ffc0cb', - plum: '#dda0dd', - powderblue: '#b0e0e6', - purple: '#800080', - purple2: '#7f007f', - purple3: '#a020f0', - rebeccapurple: '#663399', - red: '#ff0000', - rosybrown: '#bc8f8f', - royalblue: '#4169e1', - saddlebrown: '#8b4513', - salmon: '#fa8072', - sandybrown: '#f4a460', - seagreen: '#2e8b57', - seashell: '#fff5ee', - sienna: '#a0522d', - silver: '#c0c0c0', - skyblue: '#87ceeb', - slateblue: '#6a5acd', - slategray: '#708090', - slategrey: '#708090', - snow: '#fffafa', - springgreen: '#00ff7f', - steelblue: '#4682b4', - tan: '#d2b48c', - teal: '#008080', - thistle: '#d8bfd8', - tomato: '#ff6347', - turquoise: '#40e0d0', - violet: '#ee82ee', - wheat: '#f5deb3', - white: '#ffffff', - whitesmoke: '#f5f5f5', - yellow: '#ffff00', - yellowgreen: '#9acd32' - }; + return to; + } - chroma.colors = colors = w3cx11; + var updateInProgress = false; - lab2rgb = function() { - var a, args, b, g, l, r, x, y, z; - args = unpack(arguments); - l = args[0], a = args[1], b = args[2]; - y = (l + 16) / 116; - x = isNaN(a) ? y : y + a / 500; - z = isNaN(b) ? y : y - b / 200; - y = LAB_CONSTANTS.Yn * lab_xyz(y); - x = LAB_CONSTANTS.Xn * lab_xyz(x); - z = LAB_CONSTANTS.Zn * lab_xyz(z); - r = xyz_rgb(3.2404542 * x - 1.5371385 * y - 0.4985314 * z); - g = xyz_rgb(-0.9692660 * x + 1.8760108 * y + 0.0415560 * z); - b = xyz_rgb(0.0556434 * x - 0.2040259 * y + 1.0572252 * z); - return [r, g, b, args.length > 3 ? args[3] : 1]; - }; + // Moment prototype object + function Moment(config) { + copyConfig(this, config); + this._d = new Date(config._d != null ? config._d.getTime() : NaN); + if (!this.isValid()) { + this._d = new Date(NaN); + } + // Prevent infinite loop in case updateOffset creates new moment + // objects. + if (updateInProgress === false) { + updateInProgress = true; + hooks.updateOffset(this); + updateInProgress = false; + } + } - xyz_rgb = function(r) { - return 255 * (r <= 0.00304 ? 12.92 * r : 1.055 * pow(r, 1 / 2.4) - 0.055); - }; + function isMoment (obj) { + return obj instanceof Moment || (obj != null && obj._isAMomentObject != null); + } - lab_xyz = function(t) { - if (t > LAB_CONSTANTS.t1) { - return t * t * t; + function absFloor (number) { + if (number < 0) { + // -0 -> 0 + return Math.ceil(number) || 0; } else { - return LAB_CONSTANTS.t2 * (t - LAB_CONSTANTS.t0); + return Math.floor(number); } - }; - - LAB_CONSTANTS = { - Kn: 18, - Xn: 0.950470, - Yn: 1, - Zn: 1.088830, - t0: 0.137931034, - t1: 0.206896552, - t2: 0.12841855, - t3: 0.008856452 - }; + } - rgb2lab = function() { - var b, g, r, ref, ref1, x, y, z; - ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; - ref1 = rgb2xyz(r, g, b), x = ref1[0], y = ref1[1], z = ref1[2]; - return [116 * y - 16, 500 * (x - y), 200 * (y - z)]; - }; + function toInt(argumentForCoercion) { + var coercedNumber = +argumentForCoercion, + value = 0; - rgb_xyz = function(r) { - if ((r /= 255) <= 0.04045) { - return r / 12.92; - } else { - return pow((r + 0.055) / 1.055, 2.4); + if (coercedNumber !== 0 && isFinite(coercedNumber)) { + value = absFloor(coercedNumber); } - }; - xyz_lab = function(t) { - if (t > LAB_CONSTANTS.t3) { - return pow(t, 1 / 3); - } else { - return t / LAB_CONSTANTS.t2 + LAB_CONSTANTS.t0; - } - }; - - rgb2xyz = function() { - var b, g, r, ref, x, y, z; - ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; - r = rgb_xyz(r); - g = rgb_xyz(g); - b = rgb_xyz(b); - x = xyz_lab((0.4124564 * r + 0.3575761 * g + 0.1804375 * b) / LAB_CONSTANTS.Xn); - y = xyz_lab((0.2126729 * r + 0.7151522 * g + 0.0721750 * b) / LAB_CONSTANTS.Yn); - z = xyz_lab((0.0193339 * r + 0.1191920 * g + 0.9503041 * b) / LAB_CONSTANTS.Zn); - return [x, y, z]; - }; + return value; + } - chroma.lab = function() { - return (function(func, args, ctor) { - ctor.prototype = func.prototype; - var child = new ctor, result = func.apply(child, args); - return Object(result) === result ? result : child; - })(Color, slice.call(arguments).concat(['lab']), function(){}); - }; + // compare two arrays, return the number of differences + function compareArrays(array1, array2, dontConvert) { + var len = Math.min(array1.length, array2.length), + lengthDiff = Math.abs(array1.length - array2.length), + diffs = 0, + i; + for (i = 0; i < len; i++) { + if ((dontConvert && array1[i] !== array2[i]) || + (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) { + diffs++; + } + } + return diffs + lengthDiff; + } - _input.lab = lab2rgb; + function warn(msg) { + if (hooks.suppressDeprecationWarnings === false && + (typeof console !== 'undefined') && console.warn) { + console.warn('Deprecation warning: ' + msg); + } + } - Color.prototype.lab = function() { - return rgb2lab(this._rgb); - }; + function deprecate(msg, fn) { + var firstTime = true; - bezier = function(colors) { - var I, I0, I1, c, lab0, lab1, lab2, lab3, ref, ref1, ref2; - colors = (function() { - var len, o, results; - results = []; - for (o = 0, len = colors.length; o < len; o++) { - c = colors[o]; - results.push(chroma(c)); - } - return results; - })(); - if (colors.length === 2) { - ref = (function() { - var len, o, results; - results = []; - for (o = 0, len = colors.length; o < len; o++) { - c = colors[o]; - results.push(c.lab()); - } - return results; - })(), lab0 = ref[0], lab1 = ref[1]; - I = function(t) { - var i, lab; - lab = (function() { - var o, results; - results = []; - for (i = o = 0; o <= 2; i = ++o) { - results.push(lab0[i] + t * (lab1[i] - lab0[i])); - } - return results; - })(); - return chroma.lab.apply(chroma, lab); - }; - } else if (colors.length === 3) { - ref1 = (function() { - var len, o, results; - results = []; - for (o = 0, len = colors.length; o < len; o++) { - c = colors[o]; - results.push(c.lab()); - } - return results; - })(), lab0 = ref1[0], lab1 = ref1[1], lab2 = ref1[2]; - I = function(t) { - var i, lab; - lab = (function() { - var o, results; - results = []; - for (i = o = 0; o <= 2; i = ++o) { - results.push((1 - t) * (1 - t) * lab0[i] + 2 * (1 - t) * t * lab1[i] + t * t * lab2[i]); - } - return results; - })(); - return chroma.lab.apply(chroma, lab); - }; - } else if (colors.length === 4) { - ref2 = (function() { - var len, o, results; - results = []; - for (o = 0, len = colors.length; o < len; o++) { - c = colors[o]; - results.push(c.lab()); + return extend(function () { + if (hooks.deprecationHandler != null) { + hooks.deprecationHandler(null, msg); } - return results; - })(), lab0 = ref2[0], lab1 = ref2[1], lab2 = ref2[2], lab3 = ref2[3]; - I = function(t) { - var i, lab; - lab = (function() { - var o, results; - results = []; - for (i = o = 0; o <= 2; i = ++o) { - results.push((1 - t) * (1 - t) * (1 - t) * lab0[i] + 3 * (1 - t) * (1 - t) * t * lab1[i] + 3 * (1 - t) * t * t * lab2[i] + t * t * t * lab3[i]); - } - return results; - })(); - return chroma.lab.apply(chroma, lab); - }; - } else if (colors.length === 5) { - I0 = bezier(colors.slice(0, 3)); - I1 = bezier(colors.slice(2, 5)); - I = function(t) { - if (t < 0.5) { - return I0(t * 2); - } else { - return I1((t - 0.5) * 2); + if (firstTime) { + var args = []; + var arg; + for (var i = 0; i < arguments.length; i++) { + arg = ''; + if (typeof arguments[i] === 'object') { + arg += '\n[' + i + '] '; + for (var key in arguments[0]) { + arg += key + ': ' + arguments[0][key] + ', '; + } + arg = arg.slice(0, -2); // Remove trailing comma and space + } else { + arg = arguments[i]; + } + args.push(arg); + } + warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + (new Error()).stack); + firstTime = false; } - }; - } - return I; - }; - - chroma.bezier = function(colors) { - var f; - f = bezier(colors); - f.scale = function() { - return chroma.scale(f); - }; - return f; - }; - + return fn.apply(this, arguments); + }, fn); + } - /* - chroma.js - - Copyright (c) 2011-2013, Gregor Aisch - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * The name Gregor Aisch may not be used to endorse or promote products - derived from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, - EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - @source: https://github.com/gka/chroma.js - */ + var deprecations = {}; - chroma.cubehelix = function(start, rotations, hue, gamma, lightness) { - var dh, dl, f; - if (start == null) { - start = 300; - } - if (rotations == null) { - rotations = -1.5; - } - if (hue == null) { - hue = 1; - } - if (gamma == null) { - gamma = 1; - } - if (lightness == null) { - lightness = [0, 1]; + function deprecateSimple(name, msg) { + if (hooks.deprecationHandler != null) { + hooks.deprecationHandler(name, msg); } - dh = 0; - if (type(lightness) === 'array') { - dl = lightness[1] - lightness[0]; - } else { - dl = 0; - lightness = [lightness, lightness]; + if (!deprecations[name]) { + warn(msg); + deprecations[name] = true; } - f = function(fract) { - var a, amp, b, cos_a, g, h, l, r, sin_a; - a = TWOPI * ((start + 120) / 360 + rotations * fract); - l = pow(lightness[0] + dl * fract, gamma); - h = dh !== 0 ? hue[0] + fract * dh : hue; - amp = h * l * (1 - l) / 2; - cos_a = cos(a); - sin_a = sin(a); - r = l + amp * (-0.14861 * cos_a + 1.78277 * sin_a); - g = l + amp * (-0.29227 * cos_a - 0.90649 * sin_a); - b = l + amp * (+1.97294 * cos_a); - return chroma(clip_rgb([r * 255, g * 255, b * 255])); - }; - f.start = function(s) { - if (s == null) { - return start; - } - start = s; - return f; - }; - f.rotations = function(r) { - if (r == null) { - return rotations; - } - rotations = r; - return f; - }; - f.gamma = function(g) { - if (g == null) { - return gamma; - } - gamma = g; - return f; - }; - f.hue = function(h) { - if (h == null) { - return hue; - } - hue = h; - if (type(hue) === 'array') { - dh = hue[1] - hue[0]; - if (dh === 0) { - hue = hue[1]; - } - } else { - dh = 0; - } - return f; - }; - f.lightness = function(h) { - if (h == null) { - return lightness; - } - if (type(h) === 'array') { - lightness = h; - dl = h[1] - h[0]; - } else { - lightness = [h, h]; - dl = 0; - } - return f; - }; - f.scale = function() { - return chroma.scale(f); - }; - f.hue(hue); - return f; - }; + } - chroma.random = function() { - var code, digits, i, o; - digits = '0123456789abcdef'; - code = '#'; - for (i = o = 0; o < 6; i = ++o) { - code += digits.charAt(floor(Math.random() * 16)); - } - return new Color(code); - }; + hooks.suppressDeprecationWarnings = false; + hooks.deprecationHandler = null; - chroma.average = function(colors, mode) { - var A, alpha, c, cnt, dx, dy, first, i, l, len, o, xyz, xyz2; - if (mode == null) { - mode = 'rgb'; - } - l = colors.length; - colors = colors.map(function(c) { - return chroma(c); - }); - first = colors.splice(0, 1)[0]; - xyz = first.get(mode); - cnt = []; - dx = 0; - dy = 0; - for (i in xyz) { - xyz[i] = xyz[i] || 0; - cnt.push(!isNaN(xyz[i]) ? 1 : 0); - if (mode.charAt(i) === 'h' && !isNaN(xyz[i])) { - A = xyz[i] / 180 * PI; - dx += cos(A); - dy += sin(A); - } - } - alpha = first.alpha(); - for (o = 0, len = colors.length; o < len; o++) { - c = colors[o]; - xyz2 = c.get(mode); - alpha += c.alpha(); - for (i in xyz) { - if (!isNaN(xyz2[i])) { - xyz[i] += xyz2[i]; - cnt[i] += 1; - if (mode.charAt(i) === 'h') { - A = xyz[i] / 180 * PI; - dx += cos(A); - dy += sin(A); - } + function isFunction(input) { + return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]'; + } + + function set (config) { + var prop, i; + for (i in config) { + prop = config[i]; + if (isFunction(prop)) { + this[i] = prop; + } else { + this['_' + i] = prop; } - } } - for (i in xyz) { - xyz[i] = xyz[i] / cnt[i]; - if (mode.charAt(i) === 'h') { - A = atan2(dy / cnt[i], dx / cnt[i]) / PI * 180; - while (A < 0) { - A += 360; + this._config = config; + // Lenient ordinal parsing accepts just a number in addition to + // number + (possibly) stuff coming from _dayOfMonthOrdinalParse. + // TODO: Remove "ordinalParse" fallback in next major release. + this._dayOfMonthOrdinalParseLenient = new RegExp( + (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + + '|' + (/\d{1,2}/).source); + } + + function mergeConfigs(parentConfig, childConfig) { + var res = extend({}, parentConfig), prop; + for (prop in childConfig) { + if (hasOwnProp(childConfig, prop)) { + if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) { + res[prop] = {}; + extend(res[prop], parentConfig[prop]); + extend(res[prop], childConfig[prop]); + } else if (childConfig[prop] != null) { + res[prop] = childConfig[prop]; + } else { + delete res[prop]; + } } - while (A >= 360) { - A -= 360; + } + for (prop in parentConfig) { + if (hasOwnProp(parentConfig, prop) && + !hasOwnProp(childConfig, prop) && + isObject(parentConfig[prop])) { + // make sure changes to properties don't modify parent config + res[prop] = extend({}, res[prop]); } - xyz[i] = A; - } } - return chroma(xyz, mode).alpha(alpha / l); - }; + return res; + } - _input.rgb = function() { - var k, ref, results, v; - ref = unpack(arguments); - results = []; - for (k in ref) { - v = ref[k]; - results.push(v); + function Locale(config) { + if (config != null) { + this.set(config); } - return results; - }; + } - chroma.rgb = function() { - return (function(func, args, ctor) { - ctor.prototype = func.prototype; - var child = new ctor, result = func.apply(child, args); - return Object(result) === result ? result : child; - })(Color, slice.call(arguments).concat(['rgb']), function(){}); - }; + var keys; - Color.prototype.rgb = function(round) { - if (round == null) { - round = true; - } - if (round) { - return this._rgb.map(Math.round).slice(0, 3); - } else { - return this._rgb.slice(0, 3); - } - }; + if (Object.keys) { + keys = Object.keys; + } else { + keys = function (obj) { + var i, res = []; + for (i in obj) { + if (hasOwnProp(obj, i)) { + res.push(i); + } + } + return res; + }; + } - Color.prototype.rgba = function(round) { - if (round == null) { - round = true; - } - if (!round) { - return this._rgb.slice(0); - } - return [Math.round(this._rgb[0]), Math.round(this._rgb[1]), Math.round(this._rgb[2]), this._rgb[3]]; - }; + var keys$1 = keys; - _guess_formats.push({ - p: 3, - test: function(n) { - var a; - a = unpack(arguments); - if (type(a) === 'array' && a.length === 3) { - return 'rgb'; - } - if (a.length === 4 && type(a[3]) === "number" && a[3] >= 0 && a[3] <= 1) { - return 'rgb'; - } + var defaultCalendar = { + sameDay : '[Today at] LT', + nextDay : '[Tomorrow at] LT', + nextWeek : 'dddd [at] LT', + lastDay : '[Yesterday at] LT', + lastWeek : '[Last] dddd [at] LT', + sameElse : 'L' + }; + + function calendar (key, mom, now) { + var output = this._calendar[key] || this._calendar['sameElse']; + return isFunction(output) ? output.call(mom, now) : output; + } + + var defaultLongDateFormat = { + LTS : 'h:mm:ss A', + LT : 'h:mm A', + L : 'MM/DD/YYYY', + LL : 'MMMM D, YYYY', + LLL : 'MMMM D, YYYY h:mm A', + LLLL : 'dddd, MMMM D, YYYY h:mm A' + }; + + function longDateFormat (key) { + var format = this._longDateFormat[key], + formatUpper = this._longDateFormat[key.toUpperCase()]; + + if (format || !formatUpper) { + return format; } - }); - hex2rgb = function(hex) { - var a, b, g, r, rgb, u; - if (hex.match(/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/)) { - if (hex.length === 4 || hex.length === 7) { - hex = hex.substr(1); - } - if (hex.length === 3) { - hex = hex.split(""); - hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2]; - } - u = parseInt(hex, 16); - r = u >> 16; - g = u >> 8 & 0xFF; - b = u & 0xFF; - return [r, g, b, 1]; - } - if (hex.match(/^#?([A-Fa-f0-9]{8})$/)) { - if (hex.length === 9) { - hex = hex.substr(1); - } - u = parseInt(hex, 16); - r = u >> 24 & 0xFF; - g = u >> 16 & 0xFF; - b = u >> 8 & 0xFF; - a = round((u & 0xFF) / 0xFF * 100) / 100; - return [r, g, b, a]; - } - if ((_input.css != null) && (rgb = _input.css(hex))) { - return rgb; - } - throw "unknown color: " + hex; - }; + this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) { + return val.slice(1); + }); - rgb2hex = function(channels, mode) { - var a, b, g, hxa, r, str, u; - if (mode == null) { - mode = 'rgb'; - } - r = channels[0], g = channels[1], b = channels[2], a = channels[3]; - r = Math.round(r); - g = Math.round(g); - b = Math.round(b); - u = r << 16 | g << 8 | b; - str = "000000" + u.toString(16); - str = str.substr(str.length - 6); - hxa = '0' + round(a * 255).toString(16); - hxa = hxa.substr(hxa.length - 2); - return "#" + (function() { - switch (mode.toLowerCase()) { - case 'rgba': - return str + hxa; - case 'argb': - return hxa + str; - default: - return str; - } - })(); - }; + return this._longDateFormat[key]; + } - _input.hex = function(h) { - return hex2rgb(h); - }; + var defaultInvalidDate = 'Invalid date'; - chroma.hex = function() { - return (function(func, args, ctor) { - ctor.prototype = func.prototype; - var child = new ctor, result = func.apply(child, args); - return Object(result) === result ? result : child; - })(Color, slice.call(arguments).concat(['hex']), function(){}); - }; + function invalidDate () { + return this._invalidDate; + } - Color.prototype.hex = function(mode) { - if (mode == null) { - mode = 'rgb'; + var defaultOrdinal = '%d'; + var defaultDayOfMonthOrdinalParse = /\d{1,2}/; + + function ordinal (number) { + return this._ordinal.replace('%d', number); + } + + var defaultRelativeTime = { + future : 'in %s', + past : '%s ago', + s : 'a few seconds', + ss : '%d seconds', + m : 'a minute', + mm : '%d minutes', + h : 'an hour', + hh : '%d hours', + d : 'a day', + dd : '%d days', + M : 'a month', + MM : '%d months', + y : 'a year', + yy : '%d years' + }; + + function relativeTime (number, withoutSuffix, string, isFuture) { + var output = this._relativeTime[string]; + return (isFunction(output)) ? + output(number, withoutSuffix, string, isFuture) : + output.replace(/%d/i, number); + } + + function pastFuture (diff, output) { + var format = this._relativeTime[diff > 0 ? 'future' : 'past']; + return isFunction(format) ? format(output) : format.replace(/%s/i, output); + } + + var aliases = {}; + + function addUnitAlias (unit, shorthand) { + var lowerCase = unit.toLowerCase(); + aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit; + } + + function normalizeUnits(units) { + return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined; + } + + function normalizeObjectUnits(inputObject) { + var normalizedInput = {}, + normalizedProp, + prop; + + for (prop in inputObject) { + if (hasOwnProp(inputObject, prop)) { + normalizedProp = normalizeUnits(prop); + if (normalizedProp) { + normalizedInput[normalizedProp] = inputObject[prop]; + } + } } - return rgb2hex(this._rgb, mode); - }; - _guess_formats.push({ - p: 4, - test: function(n) { - if (arguments.length === 1 && type(n) === "string") { - return 'hex'; - } + return normalizedInput; + } + + var priorities = {}; + + function addUnitPriority(unit, priority) { + priorities[unit] = priority; + } + + function getPrioritizedUnits(unitsObj) { + var units = []; + for (var u in unitsObj) { + units.push({unit: u, priority: priorities[u]}); } - }); + units.sort(function (a, b) { + return a.priority - b.priority; + }); + return units; + } - hsl2rgb = function() { - var args, b, c, g, h, i, l, o, r, ref, s, t1, t2, t3; - args = unpack(arguments); - h = args[0], s = args[1], l = args[2]; - if (s === 0) { - r = g = b = l * 255; - } else { - t3 = [0, 0, 0]; - c = [0, 0, 0]; - t2 = l < 0.5 ? l * (1 + s) : l + s - l * s; - t1 = 2 * l - t2; - h /= 360; - t3[0] = h + 1 / 3; - t3[1] = h; - t3[2] = h - 1 / 3; - for (i = o = 0; o <= 2; i = ++o) { - if (t3[i] < 0) { - t3[i] += 1; - } - if (t3[i] > 1) { - t3[i] -= 1; - } - if (6 * t3[i] < 1) { - c[i] = t1 + (t2 - t1) * 6 * t3[i]; - } else if (2 * t3[i] < 1) { - c[i] = t2; - } else if (3 * t3[i] < 2) { - c[i] = t1 + (t2 - t1) * ((2 / 3) - t3[i]) * 6; + function makeGetSet (unit, keepTime) { + return function (value) { + if (value != null) { + set$1(this, unit, value); + hooks.updateOffset(this, keepTime); + return this; } else { - c[i] = t1; + return get(this, unit); } - } - ref = [round(c[0] * 255), round(c[1] * 255), round(c[2] * 255)], r = ref[0], g = ref[1], b = ref[2]; + }; + } + + function get (mom, unit) { + return mom.isValid() ? + mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN; + } + + function set$1 (mom, unit, value) { + if (mom.isValid()) { + mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value); } - if (args.length > 3) { - return [r, g, b, args[3]]; + } + + // MOMENTS + + function stringGet (units) { + units = normalizeUnits(units); + if (isFunction(this[units])) { + return this[units](); + } + return this; + } + + + function stringSet (units, value) { + if (typeof units === 'object') { + units = normalizeObjectUnits(units); + var prioritized = getPrioritizedUnits(units); + for (var i = 0; i < prioritized.length; i++) { + this[prioritized[i].unit](units[prioritized[i].unit]); + } } else { - return [r, g, b]; + units = normalizeUnits(units); + if (isFunction(this[units])) { + return this[units](value); + } } - }; + return this; + } - rgb2hsl = function(r, g, b) { - var h, l, min, ref, s; - if (r !== void 0 && r.length >= 3) { - ref = r, r = ref[0], g = ref[1], b = ref[2]; + function zeroFill(number, targetLength, forceSign) { + var absNumber = '' + Math.abs(number), + zerosToFill = targetLength - absNumber.length, + sign = number >= 0; + return (sign ? (forceSign ? '+' : '') : '-') + + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber; + } + + var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g; + + var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g; + + var formatFunctions = {}; + + var formatTokenFunctions = {}; + + // token: 'M' + // padded: ['MM', 2] + // ordinal: 'Mo' + // callback: function () { this.month() + 1 } + function addFormatToken (token, padded, ordinal, callback) { + var func = callback; + if (typeof callback === 'string') { + func = function () { + return this[callback](); + }; } - r /= 255; - g /= 255; - b /= 255; - min = Math.min(r, g, b); - max = Math.max(r, g, b); - l = (max + min) / 2; - if (max === min) { - s = 0; - h = Number.NaN; - } else { - s = l < 0.5 ? (max - min) / (max + min) : (max - min) / (2 - max - min); + if (token) { + formatTokenFunctions[token] = func; } - if (r === max) { - h = (g - b) / (max - min); - } else if (g === max) { - h = 2 + (b - r) / (max - min); - } else if (b === max) { - h = 4 + (r - g) / (max - min); + if (padded) { + formatTokenFunctions[padded[0]] = function () { + return zeroFill(func.apply(this, arguments), padded[1], padded[2]); + }; } - h *= 60; - if (h < 0) { - h += 360; + if (ordinal) { + formatTokenFunctions[ordinal] = function () { + return this.localeData().ordinal(func.apply(this, arguments), token); + }; } - return [h, s, l]; - }; - - chroma.hsl = function() { - return (function(func, args, ctor) { - ctor.prototype = func.prototype; - var child = new ctor, result = func.apply(child, args); - return Object(result) === result ? result : child; - })(Color, slice.call(arguments).concat(['hsl']), function(){}); - }; + } - _input.hsl = hsl2rgb; + function removeFormattingTokens(input) { + if (input.match(/\[[\s\S]/)) { + return input.replace(/^\[|\]$/g, ''); + } + return input.replace(/\\/g, ''); + } - Color.prototype.hsl = function() { - return rgb2hsl(this._rgb); - }; + function makeFormatFunction(format) { + var array = format.match(formattingTokens), i, length; - hsv2rgb = function() { - var args, b, f, g, h, i, p, q, r, ref, ref1, ref2, ref3, ref4, ref5, s, t, v; - args = unpack(arguments); - h = args[0], s = args[1], v = args[2]; - v *= 255; - if (s === 0) { - r = g = b = v; - } else { - if (h === 360) { - h = 0; - } - if (h > 360) { - h -= 360; - } - if (h < 0) { - h += 360; - } - h /= 60; - i = floor(h); - f = h - i; - p = v * (1 - s); - q = v * (1 - s * f); - t = v * (1 - s * (1 - f)); - switch (i) { - case 0: - ref = [v, t, p], r = ref[0], g = ref[1], b = ref[2]; - break; - case 1: - ref1 = [q, v, p], r = ref1[0], g = ref1[1], b = ref1[2]; - break; - case 2: - ref2 = [p, v, t], r = ref2[0], g = ref2[1], b = ref2[2]; - break; - case 3: - ref3 = [p, q, v], r = ref3[0], g = ref3[1], b = ref3[2]; - break; - case 4: - ref4 = [t, p, v], r = ref4[0], g = ref4[1], b = ref4[2]; - break; - case 5: - ref5 = [v, p, q], r = ref5[0], g = ref5[1], b = ref5[2]; - } + for (i = 0, length = array.length; i < length; i++) { + if (formatTokenFunctions[array[i]]) { + array[i] = formatTokenFunctions[array[i]]; + } else { + array[i] = removeFormattingTokens(array[i]); + } } - return [r, g, b, args.length > 3 ? args[3] : 1]; - }; - rgb2hsv = function() { - var b, delta, g, h, min, r, ref, s, v; - ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; - min = Math.min(r, g, b); - max = Math.max(r, g, b); - delta = max - min; - v = max / 255.0; - if (max === 0) { - h = Number.NaN; - s = 0; - } else { - s = delta / max; - if (r === max) { - h = (g - b) / delta; - } - if (g === max) { - h = 2 + (b - r) / delta; - } - if (b === max) { - h = 4 + (r - g) / delta; - } - h *= 60; - if (h < 0) { - h += 360; - } + return function (mom) { + var output = '', i; + for (i = 0; i < length; i++) { + output += isFunction(array[i]) ? array[i].call(mom, format) : array[i]; + } + return output; + }; + } + + // format date using native date object + function formatMoment(m, format) { + if (!m.isValid()) { + return m.localeData().invalidDate(); } - return [h, s, v]; - }; - chroma.hsv = function() { - return (function(func, args, ctor) { - ctor.prototype = func.prototype; - var child = new ctor, result = func.apply(child, args); - return Object(result) === result ? result : child; - })(Color, slice.call(arguments).concat(['hsv']), function(){}); - }; + format = expandFormat(format, m.localeData()); + formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format); - _input.hsv = hsv2rgb; + return formatFunctions[format](m); + } - Color.prototype.hsv = function() { - return rgb2hsv(this._rgb); - }; + function expandFormat(format, locale) { + var i = 5; - num2rgb = function(num) { - var b, g, r; - if (type(num) === "number" && num >= 0 && num <= 0xFFFFFF) { - r = num >> 16; - g = (num >> 8) & 0xFF; - b = num & 0xFF; - return [r, g, b, 1]; + function replaceLongDateFormatTokens(input) { + return locale.longDateFormat(input) || input; } - console.warn("unknown num color: " + num); - return [0, 0, 0, 1]; - }; - rgb2num = function() { - var b, g, r, ref; - ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; - return (r << 16) + (g << 8) + b; - }; + localFormattingTokens.lastIndex = 0; + while (i >= 0 && localFormattingTokens.test(format)) { + format = format.replace(localFormattingTokens, replaceLongDateFormatTokens); + localFormattingTokens.lastIndex = 0; + i -= 1; + } - chroma.num = function(num) { - return new Color(num, 'num'); - }; + return format; + } - Color.prototype.num = function(mode) { - if (mode == null) { - mode = 'rgb'; - } - return rgb2num(this._rgb, mode); - }; + var match1 = /\d/; // 0 - 9 + var match2 = /\d\d/; // 00 - 99 + var match3 = /\d{3}/; // 000 - 999 + var match4 = /\d{4}/; // 0000 - 9999 + var match6 = /[+-]?\d{6}/; // -999999 - 999999 + var match1to2 = /\d\d?/; // 0 - 99 + var match3to4 = /\d\d\d\d?/; // 999 - 9999 + var match5to6 = /\d\d\d\d\d\d?/; // 99999 - 999999 + var match1to3 = /\d{1,3}/; // 0 - 999 + var match1to4 = /\d{1,4}/; // 0 - 9999 + var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999 - _input.num = num2rgb; + var matchUnsigned = /\d+/; // 0 - inf + var matchSigned = /[+-]?\d+/; // -inf - inf - _guess_formats.push({ - p: 1, - test: function(n) { - if (arguments.length === 1 && type(n) === "number" && n >= 0 && n <= 0xFFFFFF) { - return 'num'; - } + var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z + var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z + + var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123 + + // any word (or two) characters or numbers including two/three word month in arabic. + // includes scottish gaelic two word and hyphenated months + var matchWord = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i; + + + var regexes = {}; + + function addRegexToken (token, regex, strictRegex) { + regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) { + return (isStrict && strictRegex) ? strictRegex : regex; + }; + } + + function getParseRegexForToken (token, config) { + if (!hasOwnProp(regexes, token)) { + return new RegExp(unescapeFormat(token)); } - }); - hcg2rgb = function() { - var _c, _g, args, b, c, f, g, h, i, p, q, r, ref, ref1, ref2, ref3, ref4, ref5, t, v; - args = unpack(arguments); - h = args[0], c = args[1], _g = args[2]; - c = c / 100; - g = g / 100 * 255; - _c = c * 255; - if (c === 0) { - r = g = b = _g; - } else { - if (h === 360) { - h = 0; - } - if (h > 360) { - h -= 360; - } - if (h < 0) { - h += 360; - } - h /= 60; - i = floor(h); - f = h - i; - p = _g * (1 - c); - q = p + _c * (1 - f); - t = p + _c * f; - v = p + _c; - switch (i) { - case 0: - ref = [v, t, p], r = ref[0], g = ref[1], b = ref[2]; - break; - case 1: - ref1 = [q, v, p], r = ref1[0], g = ref1[1], b = ref1[2]; - break; - case 2: - ref2 = [p, v, t], r = ref2[0], g = ref2[1], b = ref2[2]; - break; - case 3: - ref3 = [p, q, v], r = ref3[0], g = ref3[1], b = ref3[2]; - break; - case 4: - ref4 = [t, p, v], r = ref4[0], g = ref4[1], b = ref4[2]; - break; - case 5: - ref5 = [v, p, q], r = ref5[0], g = ref5[1], b = ref5[2]; - } - } - return [r, g, b, args.length > 3 ? args[3] : 1]; - }; - - rgb2hcg = function() { - var _g, b, c, delta, g, h, min, r, ref; - ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; - min = Math.min(r, g, b); - max = Math.max(r, g, b); - delta = max - min; - c = delta * 100 / 255; - _g = min / (255 - delta) * 100; - if (delta === 0) { - h = Number.NaN; - } else { - if (r === max) { - h = (g - b) / delta; - } - if (g === max) { - h = 2 + (b - r) / delta; - } - if (b === max) { - h = 4 + (r - g) / delta; - } - h *= 60; - if (h < 0) { - h += 360; - } - } - return [h, c, _g]; - }; + return regexes[token](config._strict, config._locale); + } - chroma.hcg = function() { - return (function(func, args, ctor) { - ctor.prototype = func.prototype; - var child = new ctor, result = func.apply(child, args); - return Object(result) === result ? result : child; - })(Color, slice.call(arguments).concat(['hcg']), function(){}); - }; + // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript + function unescapeFormat(s) { + return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) { + return p1 || p2 || p3 || p4; + })); + } - _input.hcg = hcg2rgb; + function regexEscape(s) { + return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); + } - Color.prototype.hcg = function() { - return rgb2hcg(this._rgb); - }; + var tokens = {}; - css2rgb = function(css) { - var aa, ab, hsl, i, m, o, rgb, w; - css = css.toLowerCase(); - if ((chroma.colors != null) && chroma.colors[css]) { - return hex2rgb(chroma.colors[css]); + function addParseToken (token, callback) { + var i, func = callback; + if (typeof token === 'string') { + token = [token]; } - if (m = css.match(/rgb\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*\)/)) { - rgb = m.slice(1, 4); - for (i = o = 0; o <= 2; i = ++o) { - rgb[i] = +rgb[i]; - } - rgb[3] = 1; - } else if (m = css.match(/rgba\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*,\s*([01]|[01]?\.\d+)\)/)) { - rgb = m.slice(1, 5); - for (i = w = 0; w <= 3; i = ++w) { - rgb[i] = +rgb[i]; - } - } else if (m = css.match(/rgb\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/)) { - rgb = m.slice(1, 4); - for (i = aa = 0; aa <= 2; i = ++aa) { - rgb[i] = round(rgb[i] * 2.55); - } - rgb[3] = 1; - } else if (m = css.match(/rgba\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/)) { - rgb = m.slice(1, 5); - for (i = ab = 0; ab <= 2; i = ++ab) { - rgb[i] = round(rgb[i] * 2.55); - } - rgb[3] = +rgb[3]; - } else if (m = css.match(/hsl\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/)) { - hsl = m.slice(1, 4); - hsl[1] *= 0.01; - hsl[2] *= 0.01; - rgb = hsl2rgb(hsl); - rgb[3] = 1; - } else if (m = css.match(/hsla\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/)) { - hsl = m.slice(1, 4); - hsl[1] *= 0.01; - hsl[2] *= 0.01; - rgb = hsl2rgb(hsl); - rgb[3] = +m[4]; + if (isNumber(callback)) { + func = function (input, array) { + array[callback] = toInt(input); + }; } - return rgb; - }; - - rgb2css = function(rgba) { - var mode; - mode = rgba[3] < 1 ? 'rgba' : 'rgb'; - if (mode === 'rgb') { - return mode + '(' + rgba.slice(0, 3).map(round).join(',') + ')'; - } else if (mode === 'rgba') { - return mode + '(' + rgba.slice(0, 3).map(round).join(',') + ',' + rgba[3] + ')'; - } else { - + for (i = 0; i < token.length; i++) { + tokens[token[i]] = func; } - }; + } - rnd = function(a) { - return round(a * 100) / 100; - }; + function addWeekParseToken (token, callback) { + addParseToken(token, function (input, array, config, token) { + config._w = config._w || {}; + callback(input, config._w, config, token); + }); + } - hsl2css = function(hsl, alpha) { - var mode; - mode = alpha < 1 ? 'hsla' : 'hsl'; - hsl[0] = rnd(hsl[0] || 0); - hsl[1] = rnd(hsl[1] * 100) + '%'; - hsl[2] = rnd(hsl[2] * 100) + '%'; - if (mode === 'hsla') { - hsl[3] = alpha; + function addTimeToArrayFromToken(token, input, config) { + if (input != null && hasOwnProp(tokens, token)) { + tokens[token](input, config._a, config, token); } - return mode + '(' + hsl.join(',') + ')'; - }; - - _input.css = function(h) { - return css2rgb(h); - }; - - chroma.css = function() { - return (function(func, args, ctor) { - ctor.prototype = func.prototype; - var child = new ctor, result = func.apply(child, args); - return Object(result) === result ? result : child; - })(Color, slice.call(arguments).concat(['css']), function(){}); - }; + } - Color.prototype.css = function(mode) { - if (mode == null) { - mode = 'rgb'; - } - if (mode.slice(0, 3) === 'rgb') { - return rgb2css(this._rgb); - } else if (mode.slice(0, 3) === 'hsl') { - return hsl2css(this.hsl(), this.alpha()); - } - }; + var YEAR = 0; + var MONTH = 1; + var DATE = 2; + var HOUR = 3; + var MINUTE = 4; + var SECOND = 5; + var MILLISECOND = 6; + var WEEK = 7; + var WEEKDAY = 8; - _input.named = function(name) { - return hex2rgb(w3cx11[name]); - }; + var indexOf; - _guess_formats.push({ - p: 5, - test: function(n) { - if (arguments.length === 1 && (w3cx11[n] != null)) { - return 'named'; - } - } - }); + if (Array.prototype.indexOf) { + indexOf = Array.prototype.indexOf; + } else { + indexOf = function (o) { + // I know + var i; + for (i = 0; i < this.length; ++i) { + if (this[i] === o) { + return i; + } + } + return -1; + }; + } - Color.prototype.name = function(n) { - var h, k; - if (arguments.length) { - if (w3cx11[n]) { - this._rgb = hex2rgb(w3cx11[n]); - } - this._rgb[3] = 1; - this; - } - h = this.hex(); - for (k in w3cx11) { - if (h === w3cx11[k]) { - return k; - } - } - return h; - }; + var indexOf$1 = indexOf; - lch2lab = function() { + function daysInMonth(year, month) { + return new Date(Date.UTC(year, month + 1, 0)).getUTCDate(); + } - /* - Convert from a qualitative parameter h and a quantitative parameter l to a 24-bit pixel. - These formulas were invented by David Dalrymple to obtain maximum contrast without going - out of gamut if the parameters are in the range 0-1. - - A saturation multiplier was added by Gregor Aisch - */ - var c, h, l, ref; - ref = unpack(arguments), l = ref[0], c = ref[1], h = ref[2]; - h = h * DEG2RAD; - return [l, cos(h) * c, sin(h) * c]; - }; + // FORMATTING - lch2rgb = function() { - var L, a, args, b, c, g, h, l, r, ref, ref1; - args = unpack(arguments); - l = args[0], c = args[1], h = args[2]; - ref = lch2lab(l, c, h), L = ref[0], a = ref[1], b = ref[2]; - ref1 = lab2rgb(L, a, b), r = ref1[0], g = ref1[1], b = ref1[2]; - return [r, g, b, args.length > 3 ? args[3] : 1]; - }; + addFormatToken('M', ['MM', 2], 'Mo', function () { + return this.month() + 1; + }); - lab2lch = function() { - var a, b, c, h, l, ref; - ref = unpack(arguments), l = ref[0], a = ref[1], b = ref[2]; - c = sqrt(a * a + b * b); - h = (atan2(b, a) * RAD2DEG + 360) % 360; - if (round(c * 10000) === 0) { - h = Number.NaN; - } - return [l, c, h]; - }; + addFormatToken('MMM', 0, 0, function (format) { + return this.localeData().monthsShort(this, format); + }); - rgb2lch = function() { - var a, b, g, l, r, ref, ref1; - ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; - ref1 = rgb2lab(r, g, b), l = ref1[0], a = ref1[1], b = ref1[2]; - return lab2lch(l, a, b); - }; + addFormatToken('MMMM', 0, 0, function (format) { + return this.localeData().months(this, format); + }); - chroma.lch = function() { - var args; - args = unpack(arguments); - return new Color(args, 'lch'); - }; + // ALIASES - chroma.hcl = function() { - var args; - args = unpack(arguments); - return new Color(args, 'hcl'); - }; + addUnitAlias('month', 'M'); - _input.lch = lch2rgb; + // PRIORITY - _input.hcl = function() { - var c, h, l, ref; - ref = unpack(arguments), h = ref[0], c = ref[1], l = ref[2]; - return lch2rgb([l, c, h]); - }; + addUnitPriority('month', 8); - Color.prototype.lch = function() { - return rgb2lch(this._rgb); - }; + // PARSING - Color.prototype.hcl = function() { - return rgb2lch(this._rgb).reverse(); - }; + addRegexToken('M', match1to2); + addRegexToken('MM', match1to2, match2); + addRegexToken('MMM', function (isStrict, locale) { + return locale.monthsShortRegex(isStrict); + }); + addRegexToken('MMMM', function (isStrict, locale) { + return locale.monthsRegex(isStrict); + }); - rgb2cmyk = function(mode) { - var b, c, f, g, k, m, r, ref, y; - if (mode == null) { - mode = 'rgb'; - } - ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; - r = r / 255; - g = g / 255; - b = b / 255; - k = 1 - Math.max(r, Math.max(g, b)); - f = k < 1 ? 1 / (1 - k) : 0; - c = (1 - r - k) * f; - m = (1 - g - k) * f; - y = (1 - b - k) * f; - return [c, m, y, k]; - }; + addParseToken(['M', 'MM'], function (input, array) { + array[MONTH] = toInt(input) - 1; + }); - cmyk2rgb = function() { - var alpha, args, b, c, g, k, m, r, y; - args = unpack(arguments); - c = args[0], m = args[1], y = args[2], k = args[3]; - alpha = args.length > 4 ? args[4] : 1; - if (k === 1) { - return [0, 0, 0, alpha]; + addParseToken(['MMM', 'MMMM'], function (input, array, config, token) { + var month = config._locale.monthsParse(input, token, config._strict); + // if we didn't find a month name, mark the date as invalid. + if (month != null) { + array[MONTH] = month; + } else { + getParsingFlags(config).invalidMonth = input; } - r = c >= 1 ? 0 : 255 * (1 - c) * (1 - k); - g = m >= 1 ? 0 : 255 * (1 - m) * (1 - k); - b = y >= 1 ? 0 : 255 * (1 - y) * (1 - k); - return [r, g, b, alpha]; - }; - - _input.cmyk = function() { - return cmyk2rgb(unpack(arguments)); - }; - - chroma.cmyk = function() { - return (function(func, args, ctor) { - ctor.prototype = func.prototype; - var child = new ctor, result = func.apply(child, args); - return Object(result) === result ? result : child; - })(Color, slice.call(arguments).concat(['cmyk']), function(){}); - }; + }); - Color.prototype.cmyk = function() { - return rgb2cmyk(this._rgb); - }; + // LOCALES - _input.gl = function() { - var i, k, o, rgb, v; - rgb = (function() { - var ref, results; - ref = unpack(arguments); - results = []; - for (k in ref) { - v = ref[k]; - results.push(v); - } - return results; - }).apply(this, arguments); - for (i = o = 0; o <= 2; i = ++o) { - rgb[i] *= 255; + var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/; + var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'); + function localeMonths (m, format) { + if (!m) { + return isArray(this._months) ? this._months : + this._months['standalone']; } - return rgb; - }; - - chroma.gl = function() { - return (function(func, args, ctor) { - ctor.prototype = func.prototype; - var child = new ctor, result = func.apply(child, args); - return Object(result) === result ? result : child; - })(Color, slice.call(arguments).concat(['gl']), function(){}); - }; + return isArray(this._months) ? this._months[m.month()] : + this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()]; + } - Color.prototype.gl = function() { - var rgb; - rgb = this._rgb; - return [rgb[0] / 255, rgb[1] / 255, rgb[2] / 255, rgb[3]]; - }; + var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'); + function localeMonthsShort (m, format) { + if (!m) { + return isArray(this._monthsShort) ? this._monthsShort : + this._monthsShort['standalone']; + } + return isArray(this._monthsShort) ? this._monthsShort[m.month()] : + this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()]; + } - rgb2luminance = function(r, g, b) { - var ref; - ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; - r = luminance_x(r); - g = luminance_x(g); - b = luminance_x(b); - return 0.2126 * r + 0.7152 * g + 0.0722 * b; - }; + function handleStrictParse(monthName, format, strict) { + var i, ii, mom, llc = monthName.toLocaleLowerCase(); + if (!this._monthsParse) { + // this is not used + this._monthsParse = []; + this._longMonthsParse = []; + this._shortMonthsParse = []; + for (i = 0; i < 12; ++i) { + mom = createUTC([2000, i]); + this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase(); + this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase(); + } + } - luminance_x = function(x) { - x /= 255; - if (x <= 0.03928) { - return x / 12.92; + if (strict) { + if (format === 'MMM') { + ii = indexOf$1.call(this._shortMonthsParse, llc); + return ii !== -1 ? ii : null; + } else { + ii = indexOf$1.call(this._longMonthsParse, llc); + return ii !== -1 ? ii : null; + } } else { - return pow((x + 0.055) / 1.055, 2.4); + if (format === 'MMM') { + ii = indexOf$1.call(this._shortMonthsParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf$1.call(this._longMonthsParse, llc); + return ii !== -1 ? ii : null; + } else { + ii = indexOf$1.call(this._longMonthsParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf$1.call(this._shortMonthsParse, llc); + return ii !== -1 ? ii : null; + } } - }; + } - _interpolators = []; + function localeMonthsParse (monthName, format, strict) { + var i, mom, regex; - interpolate = function(col1, col2, f, m) { - var interpol, len, o, res; - if (f == null) { - f = 0.5; - } - if (m == null) { - m = 'rgb'; + if (this._monthsParseExact) { + return handleStrictParse.call(this, monthName, format, strict); } - /* - interpolates between colors - f = 0 --> me - f = 1 --> col - */ - if (type(col1) !== 'object') { - col1 = chroma(col1); + if (!this._monthsParse) { + this._monthsParse = []; + this._longMonthsParse = []; + this._shortMonthsParse = []; } - if (type(col2) !== 'object') { - col2 = chroma(col2); - } - for (o = 0, len = _interpolators.length; o < len; o++) { - interpol = _interpolators[o]; - if (m === interpol[0]) { - res = interpol[1](col1, col2, f, m); - break; - } - } - if (res == null) { - throw "color mode " + m + " is not supported"; - } - return res.alpha(col1.alpha() + f * (col2.alpha() - col1.alpha())); - }; - - chroma.interpolate = interpolate; - - Color.prototype.interpolate = function(col2, f, m) { - return interpolate(this, col2, f, m); - }; - - chroma.mix = interpolate; - - Color.prototype.mix = Color.prototype.interpolate; - - interpolate_rgb = function(col1, col2, f, m) { - var xyz0, xyz1; - xyz0 = col1._rgb; - xyz1 = col2._rgb; - return new Color(xyz0[0] + f * (xyz1[0] - xyz0[0]), xyz0[1] + f * (xyz1[1] - xyz0[1]), xyz0[2] + f * (xyz1[2] - xyz0[2]), m); - }; - - _interpolators.push(['rgb', interpolate_rgb]); - Color.prototype.luminance = function(lum, mode) { - var cur_lum, eps, max_iter, test; - if (mode == null) { - mode = 'rgb'; - } - if (!arguments.length) { - return rgb2luminance(this._rgb); - } - if (lum === 0) { - this._rgb = [0, 0, 0, this._rgb[3]]; - } else if (lum === 1) { - this._rgb = [255, 255, 255, this._rgb[3]]; - } else { - eps = 1e-7; - max_iter = 20; - test = function(l, h) { - var lm, m; - m = l.interpolate(h, 0.5, mode); - lm = m.luminance(); - if (Math.abs(lum - lm) < eps || !max_iter--) { - return m; + // TODO: add sorting + // Sorting makes sure if one month (or abbr) is a prefix of another + // see sorting in computeMonthsParse + for (i = 0; i < 12; i++) { + // make the regex if we don't have it already + mom = createUTC([2000, i]); + if (strict && !this._longMonthsParse[i]) { + this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i'); + this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i'); } - if (lm > lum) { - return test(l, m); + if (!strict && !this._monthsParse[i]) { + regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, ''); + this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i'); + } + // test the regex + if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) { + return i; + } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) { + return i; + } else if (!strict && this._monthsParse[i].test(monthName)) { + return i; } - return test(m, h); - }; - cur_lum = rgb2luminance(this._rgb); - this._rgb = (cur_lum > lum ? test(chroma('black'), this) : test(this, chroma('white'))).rgba(); - } - return this; - }; - - temperature2rgb = function(kelvin) { - var b, g, r, temp; - temp = kelvin / 100; - if (temp < 66) { - r = 255; - g = -155.25485562709179 - 0.44596950469579133 * (g = temp - 2) + 104.49216199393888 * log(g); - b = temp < 20 ? 0 : -254.76935184120902 + 0.8274096064007395 * (b = temp - 10) + 115.67994401066147 * log(b); - } else { - r = 351.97690566805693 + 0.114206453784165 * (r = temp - 55) - 40.25366309332127 * log(r); - g = 325.4494125711974 + 0.07943456536662342 * (g = temp - 50) - 28.0852963507957 * log(g); - b = 255; - } - return [r, g, b]; - }; - - rgb2temperature = function() { - var b, eps, g, maxTemp, minTemp, r, ref, rgb, temp; - ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; - minTemp = 1000; - maxTemp = 40000; - eps = 0.4; - while (maxTemp - minTemp > eps) { - temp = (maxTemp + minTemp) * 0.5; - rgb = temperature2rgb(temp); - if ((rgb[2] / rgb[0]) >= (b / r)) { - maxTemp = temp; - } else { - minTemp = temp; - } } - return round(temp); - }; - - chroma.temperature = chroma.kelvin = function() { - return (function(func, args, ctor) { - ctor.prototype = func.prototype; - var child = new ctor, result = func.apply(child, args); - return Object(result) === result ? result : child; - })(Color, slice.call(arguments).concat(['temperature']), function(){}); - }; - - _input.temperature = _input.kelvin = _input.K = temperature2rgb; + } - Color.prototype.temperature = function() { - return rgb2temperature(this._rgb); - }; + // MOMENTS - Color.prototype.kelvin = Color.prototype.temperature; + function setMonth (mom, value) { + var dayOfMonth; - chroma.contrast = function(a, b) { - var l1, l2, ref, ref1; - if ((ref = type(a)) === 'string' || ref === 'number') { - a = new Color(a); - } - if ((ref1 = type(b)) === 'string' || ref1 === 'number') { - b = new Color(b); - } - l1 = a.luminance(); - l2 = b.luminance(); - if (l1 > l2) { - return (l1 + 0.05) / (l2 + 0.05); - } else { - return (l2 + 0.05) / (l1 + 0.05); + if (!mom.isValid()) { + // No op + return mom; } - }; - chroma.distance = function(a, b, mode) { - var d, i, l1, l2, ref, ref1, sum_sq; - if (mode == null) { - mode = 'lab'; - } - if ((ref = type(a)) === 'string' || ref === 'number') { - a = new Color(a); - } - if ((ref1 = type(b)) === 'string' || ref1 === 'number') { - b = new Color(b); - } - l1 = a.get(mode); - l2 = b.get(mode); - sum_sq = 0; - for (i in l1) { - d = (l1[i] || 0) - (l2[i] || 0); - sum_sq += d * d; + if (typeof value === 'string') { + if (/^\d+$/.test(value)) { + value = toInt(value); + } else { + value = mom.localeData().monthsParse(value); + // TODO: Another silent failure? + if (!isNumber(value)) { + return mom; + } + } } - return Math.sqrt(sum_sq); - }; - chroma.deltaE = function(a, b, L, C) { - var L1, L2, a1, a2, b1, b2, c1, c2, c4, dH2, delA, delB, delC, delL, f, h1, ref, ref1, ref2, ref3, sc, sh, sl, t, v1, v2, v3; - if (L == null) { - L = 1; - } - if (C == null) { - C = 1; - } - if ((ref = type(a)) === 'string' || ref === 'number') { - a = new Color(a); - } - if ((ref1 = type(b)) === 'string' || ref1 === 'number') { - b = new Color(b); - } - ref2 = a.lab(), L1 = ref2[0], a1 = ref2[1], b1 = ref2[2]; - ref3 = b.lab(), L2 = ref3[0], a2 = ref3[1], b2 = ref3[2]; - c1 = sqrt(a1 * a1 + b1 * b1); - c2 = sqrt(a2 * a2 + b2 * b2); - sl = L1 < 16.0 ? 0.511 : (0.040975 * L1) / (1.0 + 0.01765 * L1); - sc = (0.0638 * c1) / (1.0 + 0.0131 * c1) + 0.638; - h1 = c1 < 0.000001 ? 0.0 : (atan2(b1, a1) * 180.0) / PI; - while (h1 < 0) { - h1 += 360; - } - while (h1 >= 360) { - h1 -= 360; - } - t = (h1 >= 164.0) && (h1 <= 345.0) ? 0.56 + abs(0.2 * cos((PI * (h1 + 168.0)) / 180.0)) : 0.36 + abs(0.4 * cos((PI * (h1 + 35.0)) / 180.0)); - c4 = c1 * c1 * c1 * c1; - f = sqrt(c4 / (c4 + 1900.0)); - sh = sc * (f * t + 1.0 - f); - delL = L1 - L2; - delC = c1 - c2; - delA = a1 - a2; - delB = b1 - b2; - dH2 = delA * delA + delB * delB - delC * delC; - v1 = delL / (L * sl); - v2 = delC / (C * sc); - v3 = sh; - return sqrt(v1 * v1 + v2 * v2 + (dH2 / (v3 * v3))); - }; + dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value)); + mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth); + return mom; + } - Color.prototype.get = function(modechan) { - var channel, i, me, mode, ref, src; - me = this; - ref = modechan.split('.'), mode = ref[0], channel = ref[1]; - src = me[mode](); - if (channel) { - i = mode.indexOf(channel); - if (i > -1) { - return src[i]; - } else { - return console.warn('unknown channel ' + channel + ' in mode ' + mode); - } + function getSetMonth (value) { + if (value != null) { + setMonth(this, value); + hooks.updateOffset(this, true); + return this; } else { - return src; + return get(this, 'Month'); } - }; + } - Color.prototype.set = function(modechan, value) { - var channel, i, me, mode, ref, src; - me = this; - ref = modechan.split('.'), mode = ref[0], channel = ref[1]; - if (channel) { - src = me[mode](); - i = mode.indexOf(channel); - if (i > -1) { - if (type(value) === 'string') { - switch (value.charAt(0)) { - case '+': - src[i] += +value; - break; - case '-': - src[i] += +value; - break; - case '*': - src[i] *= +(value.substr(1)); - break; - case '/': - src[i] /= +(value.substr(1)); - break; - default: - src[i] = +value; - } + function getDaysInMonth () { + return daysInMonth(this.year(), this.month()); + } + + var defaultMonthsShortRegex = matchWord; + function monthsShortRegex (isStrict) { + if (this._monthsParseExact) { + if (!hasOwnProp(this, '_monthsRegex')) { + computeMonthsParse.call(this); + } + if (isStrict) { + return this._monthsShortStrictRegex; } else { - src[i] = value; + return this._monthsShortRegex; } - } else { - console.warn('unknown channel ' + channel + ' in mode ' + mode); - } } else { - src = value; + if (!hasOwnProp(this, '_monthsShortRegex')) { + this._monthsShortRegex = defaultMonthsShortRegex; + } + return this._monthsShortStrictRegex && isStrict ? + this._monthsShortStrictRegex : this._monthsShortRegex; } - return chroma(src, mode).alpha(me.alpha()); - }; - - Color.prototype.clipped = function() { - return this._rgb._clipped || false; - }; + } - Color.prototype.alpha = function(a) { - if (arguments.length) { - return chroma.rgb([this._rgb[0], this._rgb[1], this._rgb[2], a]); + var defaultMonthsRegex = matchWord; + function monthsRegex (isStrict) { + if (this._monthsParseExact) { + if (!hasOwnProp(this, '_monthsRegex')) { + computeMonthsParse.call(this); + } + if (isStrict) { + return this._monthsStrictRegex; + } else { + return this._monthsRegex; + } + } else { + if (!hasOwnProp(this, '_monthsRegex')) { + this._monthsRegex = defaultMonthsRegex; + } + return this._monthsStrictRegex && isStrict ? + this._monthsStrictRegex : this._monthsRegex; } - return this._rgb[3]; - }; + } - Color.prototype.darken = function(amount) { - var lab, me; - if (amount == null) { - amount = 1; + function computeMonthsParse () { + function cmpLenRev(a, b) { + return b.length - a.length; } - me = this; - lab = me.lab(); - lab[0] -= LAB_CONSTANTS.Kn * amount; - return chroma.lab(lab).alpha(me.alpha()); - }; - Color.prototype.brighten = function(amount) { - if (amount == null) { - amount = 1; + var shortPieces = [], longPieces = [], mixedPieces = [], + i, mom; + for (i = 0; i < 12; i++) { + // make the regex if we don't have it already + mom = createUTC([2000, i]); + shortPieces.push(this.monthsShort(mom, '')); + longPieces.push(this.months(mom, '')); + mixedPieces.push(this.months(mom, '')); + mixedPieces.push(this.monthsShort(mom, '')); } - return this.darken(-amount); - }; - - Color.prototype.darker = Color.prototype.darken; - - Color.prototype.brighter = Color.prototype.brighten; - - Color.prototype.saturate = function(amount) { - var lch, me; - if (amount == null) { - amount = 1; + // Sorting makes sure if one month (or abbr) is a prefix of another it + // will match the longer piece. + shortPieces.sort(cmpLenRev); + longPieces.sort(cmpLenRev); + mixedPieces.sort(cmpLenRev); + for (i = 0; i < 12; i++) { + shortPieces[i] = regexEscape(shortPieces[i]); + longPieces[i] = regexEscape(longPieces[i]); } - me = this; - lch = me.lch(); - lch[1] += amount * LAB_CONSTANTS.Kn; - if (lch[1] < 0) { - lch[1] = 0; + for (i = 0; i < 24; i++) { + mixedPieces[i] = regexEscape(mixedPieces[i]); } - return chroma.lch(lch).alpha(me.alpha()); - }; - Color.prototype.desaturate = function(amount) { - if (amount == null) { - amount = 1; - } - return this.saturate(-amount); - }; + this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); + this._monthsShortRegex = this._monthsRegex; + this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i'); + this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i'); + } - Color.prototype.premultiply = function() { - var a, rgb; - rgb = this.rgb(); - a = this.alpha(); - return chroma(rgb[0] * a, rgb[1] * a, rgb[2] * a, a); - }; + // FORMATTING - blend = function(bottom, top, mode) { - if (!blend[mode]) { - throw 'unknown blend mode ' + mode; - } - return blend[mode](bottom, top); - }; + addFormatToken('Y', 0, 0, function () { + var y = this.year(); + return y <= 9999 ? '' + y : '+' + y; + }); - blend_f = function(f) { - return function(bottom, top) { - var c0, c1; - c0 = chroma(top).rgb(); - c1 = chroma(bottom).rgb(); - return chroma(f(c0, c1), 'rgb'); - }; - }; + addFormatToken(0, ['YY', 2], 0, function () { + return this.year() % 100; + }); - each = function(f) { - return function(c0, c1) { - var i, o, out; - out = []; - for (i = o = 0; o <= 3; i = ++o) { - out[i] = f(c0[i], c1[i]); - } - return out; - }; - }; + addFormatToken(0, ['YYYY', 4], 0, 'year'); + addFormatToken(0, ['YYYYY', 5], 0, 'year'); + addFormatToken(0, ['YYYYYY', 6, true], 0, 'year'); - normal = function(a, b) { - return a; - }; + // ALIASES - multiply = function(a, b) { - return a * b / 255; - }; + addUnitAlias('year', 'y'); - darken = function(a, b) { - if (a > b) { - return b; - } else { - return a; - } - }; + // PRIORITIES - lighten = function(a, b) { - if (a > b) { - return a; - } else { - return b; - } - }; + addUnitPriority('year', 1); - screen = function(a, b) { - return 255 * (1 - (1 - a / 255) * (1 - b / 255)); - }; + // PARSING - overlay = function(a, b) { - if (b < 128) { - return 2 * a * b / 255; - } else { - return 255 * (1 - 2 * (1 - a / 255) * (1 - b / 255)); - } - }; + addRegexToken('Y', matchSigned); + addRegexToken('YY', match1to2, match2); + addRegexToken('YYYY', match1to4, match4); + addRegexToken('YYYYY', match1to6, match6); + addRegexToken('YYYYYY', match1to6, match6); - burn = function(a, b) { - return 255 * (1 - (1 - b / 255) / (a / 255)); - }; + addParseToken(['YYYYY', 'YYYYYY'], YEAR); + addParseToken('YYYY', function (input, array) { + array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input); + }); + addParseToken('YY', function (input, array) { + array[YEAR] = hooks.parseTwoDigitYear(input); + }); + addParseToken('Y', function (input, array) { + array[YEAR] = parseInt(input, 10); + }); - dodge = function(a, b) { - if (a === 255) { - return 255; - } - a = 255 * (b / 255) / (1 - a / 255); - if (a > 255) { - return 255; - } else { - return a; - } - }; + // HELPERS - blend.normal = blend_f(each(normal)); + function daysInYear(year) { + return isLeapYear(year) ? 366 : 365; + } - blend.multiply = blend_f(each(multiply)); + function isLeapYear(year) { + return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0; + } - blend.screen = blend_f(each(screen)); + // HOOKS - blend.overlay = blend_f(each(overlay)); + hooks.parseTwoDigitYear = function (input) { + return toInt(input) + (toInt(input) > 68 ? 1900 : 2000); + }; - blend.darken = blend_f(each(darken)); + // MOMENTS - blend.lighten = blend_f(each(lighten)); + var getSetYear = makeGetSet('FullYear', true); - blend.dodge = blend_f(each(dodge)); + function getIsLeapYear () { + return isLeapYear(this.year()); + } - blend.burn = blend_f(each(burn)); + function createDate (y, m, d, h, M, s, ms) { + // can't just apply() to create a date: + // https://stackoverflow.com/q/181348 + var date = new Date(y, m, d, h, M, s, ms); - chroma.blend = blend; + // the date constructor remaps years 0-99 to 1900-1999 + if (y < 100 && y >= 0 && isFinite(date.getFullYear())) { + date.setFullYear(y); + } + return date; + } - chroma.analyze = function(data) { - var len, o, r, val; - r = { - min: Number.MAX_VALUE, - max: Number.MAX_VALUE * -1, - sum: 0, - values: [], - count: 0 - }; - for (o = 0, len = data.length; o < len; o++) { - val = data[o]; - if ((val != null) && !isNaN(val)) { - r.values.push(val); - r.sum += val; - if (val < r.min) { - r.min = val; - } - if (val > r.max) { - r.max = val; - } - r.count += 1; - } + function createUTCDate (y) { + var date = new Date(Date.UTC.apply(null, arguments)); + + // the Date.UTC function remaps years 0-99 to 1900-1999 + if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) { + date.setUTCFullYear(y); } - r.domain = [r.min, r.max]; - r.limits = function(mode, num) { - return chroma.limits(r, mode, num); + return date; + } + + // start-of-first-week - start-of-year + function firstWeekOffset(year, dow, doy) { + var // first-week day -- which january is always in the first week (4 for iso, 1 for other) + fwd = 7 + dow - doy, + // first-week day local weekday -- which local weekday is fwd + fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7; + + return -fwdlw + fwd - 1; + } + + // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday + function dayOfYearFromWeeks(year, week, weekday, dow, doy) { + var localWeekday = (7 + weekday - dow) % 7, + weekOffset = firstWeekOffset(year, dow, doy), + dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, + resYear, resDayOfYear; + + if (dayOfYear <= 0) { + resYear = year - 1; + resDayOfYear = daysInYear(resYear) + dayOfYear; + } else if (dayOfYear > daysInYear(year)) { + resYear = year + 1; + resDayOfYear = dayOfYear - daysInYear(year); + } else { + resYear = year; + resDayOfYear = dayOfYear; + } + + return { + year: resYear, + dayOfYear: resDayOfYear }; - return r; - }; + } - chroma.scale = function(colors, positions) { - var _classes, _colorCache, _colors, _correctLightness, _domain, _fixed, _max, _min, _mode, _nacol, _out, _padding, _pos, _spread, _useCache, classifyValue, f, getClass, getColor, resetCache, setColors, tmap; - _mode = 'rgb'; - _nacol = chroma('#ccc'); - _spread = 0; - _fixed = false; - _domain = [0, 1]; - _pos = []; - _padding = [0, 0]; - _classes = false; - _colors = []; - _out = false; - _min = 0; - _max = 1; - _correctLightness = false; - _colorCache = {}; - _useCache = true; - setColors = function(colors) { - var c, col, o, ref, ref1, w; - if (colors == null) { - colors = ['#fff', '#000']; - } - if ((colors != null) && type(colors) === 'string' && (chroma.brewer != null)) { - colors = chroma.brewer[colors] || chroma.brewer[colors.toLowerCase()] || colors; - } - if (type(colors) === 'array') { - colors = colors.slice(0); - for (c = o = 0, ref = colors.length - 1; 0 <= ref ? o <= ref : o >= ref; c = 0 <= ref ? ++o : --o) { - col = colors[c]; - if (type(col) === "string") { - colors[c] = chroma(col); - } - } - _pos.length = 0; - for (c = w = 0, ref1 = colors.length - 1; 0 <= ref1 ? w <= ref1 : w >= ref1; c = 0 <= ref1 ? ++w : --w) { - _pos.push(c / (colors.length - 1)); - } - } - resetCache(); - return _colors = colors; + function weekOfYear(mom, dow, doy) { + var weekOffset = firstWeekOffset(mom.year(), dow, doy), + week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, + resWeek, resYear; + + if (week < 1) { + resYear = mom.year() - 1; + resWeek = week + weeksInYear(resYear, dow, doy); + } else if (week > weeksInYear(mom.year(), dow, doy)) { + resWeek = week - weeksInYear(mom.year(), dow, doy); + resYear = mom.year() + 1; + } else { + resYear = mom.year(); + resWeek = week; + } + + return { + week: resWeek, + year: resYear }; - getClass = function(value) { - var i, n; - if (_classes != null) { - n = _classes.length - 1; - i = 0; - while (i < n && value >= _classes[i]) { - i++; + } + + function weeksInYear(year, dow, doy) { + var weekOffset = firstWeekOffset(year, dow, doy), + weekOffsetNext = firstWeekOffset(year + 1, dow, doy); + return (daysInYear(year) - weekOffset + weekOffsetNext) / 7; + } + + // FORMATTING + + addFormatToken('w', ['ww', 2], 'wo', 'week'); + addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek'); + + // ALIASES + + addUnitAlias('week', 'w'); + addUnitAlias('isoWeek', 'W'); + + // PRIORITIES + + addUnitPriority('week', 5); + addUnitPriority('isoWeek', 5); + + // PARSING + + addRegexToken('w', match1to2); + addRegexToken('ww', match1to2, match2); + addRegexToken('W', match1to2); + addRegexToken('WW', match1to2, match2); + + addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) { + week[token.substr(0, 1)] = toInt(input); + }); + + // HELPERS + + // LOCALES + + function localeWeek (mom) { + return weekOfYear(mom, this._week.dow, this._week.doy).week; + } + + var defaultLocaleWeek = { + dow : 0, // Sunday is the first day of the week. + doy : 6 // The week that contains Jan 1st is the first week of the year. + }; + + function localeFirstDayOfWeek () { + return this._week.dow; + } + + function localeFirstDayOfYear () { + return this._week.doy; + } + + // MOMENTS + + function getSetWeek (input) { + var week = this.localeData().week(this); + return input == null ? week : this.add((input - week) * 7, 'd'); + } + + function getSetISOWeek (input) { + var week = weekOfYear(this, 1, 4).week; + return input == null ? week : this.add((input - week) * 7, 'd'); + } + + // FORMATTING + + addFormatToken('d', 0, 'do', 'day'); + + addFormatToken('dd', 0, 0, function (format) { + return this.localeData().weekdaysMin(this, format); + }); + + addFormatToken('ddd', 0, 0, function (format) { + return this.localeData().weekdaysShort(this, format); + }); + + addFormatToken('dddd', 0, 0, function (format) { + return this.localeData().weekdays(this, format); + }); + + addFormatToken('e', 0, 0, 'weekday'); + addFormatToken('E', 0, 0, 'isoWeekday'); + + // ALIASES + + addUnitAlias('day', 'd'); + addUnitAlias('weekday', 'e'); + addUnitAlias('isoWeekday', 'E'); + + // PRIORITY + addUnitPriority('day', 11); + addUnitPriority('weekday', 11); + addUnitPriority('isoWeekday', 11); + + // PARSING + + addRegexToken('d', match1to2); + addRegexToken('e', match1to2); + addRegexToken('E', match1to2); + addRegexToken('dd', function (isStrict, locale) { + return locale.weekdaysMinRegex(isStrict); + }); + addRegexToken('ddd', function (isStrict, locale) { + return locale.weekdaysShortRegex(isStrict); + }); + addRegexToken('dddd', function (isStrict, locale) { + return locale.weekdaysRegex(isStrict); + }); + + addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) { + var weekday = config._locale.weekdaysParse(input, token, config._strict); + // if we didn't get a weekday name, mark the date as invalid + if (weekday != null) { + week.d = weekday; + } else { + getParsingFlags(config).invalidWeekday = input; + } + }); + + addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) { + week[token] = toInt(input); + }); + + // HELPERS + + function parseWeekday(input, locale) { + if (typeof input !== 'string') { + return input; + } + + if (!isNaN(input)) { + return parseInt(input, 10); + } + + input = locale.weekdaysParse(input); + if (typeof input === 'number') { + return input; + } + + return null; + } + + function parseIsoWeekday(input, locale) { + if (typeof input === 'string') { + return locale.weekdaysParse(input) % 7 || 7; + } + return isNaN(input) ? null : input; + } + + // LOCALES + + var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'); + function localeWeekdays (m, format) { + if (!m) { + return isArray(this._weekdays) ? this._weekdays : + this._weekdays['standalone']; + } + return isArray(this._weekdays) ? this._weekdays[m.day()] : + this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()]; + } + + var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'); + function localeWeekdaysShort (m) { + return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort; + } + + var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'); + function localeWeekdaysMin (m) { + return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin; + } + + function handleStrictParse$1(weekdayName, format, strict) { + var i, ii, mom, llc = weekdayName.toLocaleLowerCase(); + if (!this._weekdaysParse) { + this._weekdaysParse = []; + this._shortWeekdaysParse = []; + this._minWeekdaysParse = []; + + for (i = 0; i < 7; ++i) { + mom = createUTC([2000, 1]).day(i); + this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase(); + this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase(); + this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase(); } - return i - 1; - } - return 0; - }; - tmap = function(t) { - return t; - }; - classifyValue = function(value) { - var i, maxc, minc, n, val; - val = value; - if (_classes.length > 2) { - n = _classes.length - 1; - i = getClass(value); - minc = _classes[0] + (_classes[1] - _classes[0]) * (0 + _spread * 0.5); - maxc = _classes[n - 1] + (_classes[n] - _classes[n - 1]) * (1 - _spread * 0.5); - val = _min + ((_classes[i] + (_classes[i + 1] - _classes[i]) * 0.5 - minc) / (maxc - minc)) * (_max - _min); - } - return val; - }; - getColor = function(val, bypassMap) { - var c, col, i, k, o, p, ref, t; - if (bypassMap == null) { - bypassMap = false; - } - if (isNaN(val)) { - return _nacol; - } - if (!bypassMap) { - if (_classes && _classes.length > 2) { - c = getClass(val); - t = c / (_classes.length - 2); - t = _padding[0] + (t * (1 - _padding[0] - _padding[1])); - } else if (_max !== _min) { - t = (val - _min) / (_max - _min); - t = _padding[0] + (t * (1 - _padding[0] - _padding[1])); - t = Math.min(1, Math.max(0, t)); + } + + if (strict) { + if (format === 'dddd') { + ii = indexOf$1.call(this._weekdaysParse, llc); + return ii !== -1 ? ii : null; + } else if (format === 'ddd') { + ii = indexOf$1.call(this._shortWeekdaysParse, llc); + return ii !== -1 ? ii : null; } else { - t = 1; + ii = indexOf$1.call(this._minWeekdaysParse, llc); + return ii !== -1 ? ii : null; } - } else { - t = val; - } - if (!bypassMap) { - t = tmap(t); - } - k = Math.floor(t * 10000); - if (_useCache && _colorCache[k]) { - col = _colorCache[k]; - } else { - if (type(_colors) === 'array') { - for (i = o = 0, ref = _pos.length - 1; 0 <= ref ? o <= ref : o >= ref; i = 0 <= ref ? ++o : --o) { - p = _pos[i]; - if (t <= p) { - col = _colors[i]; - break; + } else { + if (format === 'dddd') { + ii = indexOf$1.call(this._weekdaysParse, llc); + if (ii !== -1) { + return ii; } - if (t >= p && i === _pos.length - 1) { - col = _colors[i]; - break; + ii = indexOf$1.call(this._shortWeekdaysParse, llc); + if (ii !== -1) { + return ii; } - if (t > p && t < _pos[i + 1]) { - t = (t - p) / (_pos[i + 1] - p); - col = chroma.interpolate(_colors[i], _colors[i + 1], t, _mode); - break; + ii = indexOf$1.call(this._minWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } else if (format === 'ddd') { + ii = indexOf$1.call(this._shortWeekdaysParse, llc); + if (ii !== -1) { + return ii; } - } - } else if (type(_colors) === 'function') { - col = _colors(t); + ii = indexOf$1.call(this._weekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf$1.call(this._minWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } else { + ii = indexOf$1.call(this._minWeekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf$1.call(this._weekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf$1.call(this._shortWeekdaysParse, llc); + return ii !== -1 ? ii : null; } - if (_useCache) { - _colorCache[k] = col; + } + } + + function localeWeekdaysParse (weekdayName, format, strict) { + var i, mom, regex; + + if (this._weekdaysParseExact) { + return handleStrictParse$1.call(this, weekdayName, format, strict); + } + + if (!this._weekdaysParse) { + this._weekdaysParse = []; + this._minWeekdaysParse = []; + this._shortWeekdaysParse = []; + this._fullWeekdaysParse = []; + } + + for (i = 0; i < 7; i++) { + // make the regex if we don't have it already + + mom = createUTC([2000, 1]).day(i); + if (strict && !this._fullWeekdaysParse[i]) { + this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\.?') + '$', 'i'); + this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\.?') + '$', 'i'); + this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\.?') + '$', 'i'); } - } - return col; - }; - resetCache = function() { - return _colorCache = {}; - }; - setColors(colors); - f = function(v) { - var c; - c = chroma(getColor(v)); - if (_out && c[_out]) { - return c[_out](); - } else { - return c; - } - }; - f.classes = function(classes) { - var d; - if (classes != null) { - if (type(classes) === 'array') { - _classes = classes; - _domain = [classes[0], classes[classes.length - 1]]; - } else { - d = chroma.analyze(_domain); - if (classes === 0) { - _classes = [d.min, d.max]; - } else { - _classes = chroma.limits(d, 'e', classes); - } + if (!this._weekdaysParse[i]) { + regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, ''); + this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i'); } - return f; - } - return _classes; - }; - f.domain = function(domain) { - var c, d, k, len, o, ref, w; - if (!arguments.length) { - return _domain; - } - _min = domain[0]; - _max = domain[domain.length - 1]; - _pos = []; - k = _colors.length; - if (domain.length === k && _min !== _max) { - for (o = 0, len = domain.length; o < len; o++) { - d = domain[o]; - _pos.push((d - _min) / (_max - _min)); - } - } else { - for (c = w = 0, ref = k - 1; 0 <= ref ? w <= ref : w >= ref; c = 0 <= ref ? ++w : --w) { - _pos.push(c / (k - 1)); - } - } - _domain = [_min, _max]; - return f; - }; - f.mode = function(_m) { - if (!arguments.length) { - return _mode; - } - _mode = _m; - resetCache(); - return f; - }; - f.range = function(colors, _pos) { - setColors(colors, _pos); - return f; - }; - f.out = function(_o) { - _out = _o; - return f; - }; - f.spread = function(val) { - if (!arguments.length) { - return _spread; - } - _spread = val; - return f; - }; - f.correctLightness = function(v) { - if (v == null) { - v = true; - } - _correctLightness = v; - resetCache(); - if (_correctLightness) { - tmap = function(t) { - var L0, L1, L_actual, L_diff, L_ideal, max_iter, pol, t0, t1; - L0 = getColor(0, true).lab()[0]; - L1 = getColor(1, true).lab()[0]; - pol = L0 > L1; - L_actual = getColor(t, true).lab()[0]; - L_ideal = L0 + (L1 - L0) * t; - L_diff = L_actual - L_ideal; - t0 = 0; - t1 = 1; - max_iter = 20; - while (Math.abs(L_diff) > 1e-2 && max_iter-- > 0) { - (function() { - if (pol) { - L_diff *= -1; - } - if (L_diff < 0) { - t0 = t; - t += (t1 - t) * 0.5; - } else { - t1 = t; - t += (t0 - t) * 0.5; - } - L_actual = getColor(t, true).lab()[0]; - return L_diff = L_actual - L_ideal; - })(); - } - return t; - }; - } else { - tmap = function(t) { - return t; - }; - } - return f; - }; - f.padding = function(p) { - if (p != null) { - if (type(p) === 'number') { - p = [p, p]; - } - _padding = p; - return f; - } else { - return _padding; - } - }; - f.colors = function(numColors, out) { - var dd, dm, i, o, ref, result, results, samples, w; - if (arguments.length < 2) { - out = 'hex'; - } - result = []; - if (arguments.length === 0) { - result = _colors.slice(0); - } else if (numColors === 1) { - result = [f(0.5)]; - } else if (numColors > 1) { - dm = _domain[0]; - dd = _domain[1] - dm; - result = (function() { - results = []; - for (var o = 0; 0 <= numColors ? o < numColors : o > numColors; 0 <= numColors ? o++ : o--){ results.push(o); } - return results; - }).apply(this).map(function(i) { - return f(dm + i / (numColors - 1) * dd); - }); - } else { - colors = []; - samples = []; - if (_classes && _classes.length > 2) { - for (i = w = 1, ref = _classes.length; 1 <= ref ? w < ref : w > ref; i = 1 <= ref ? ++w : --w) { - samples.push((_classes[i - 1] + _classes[i]) * 0.5); - } - } else { - samples = _domain; + // test the regex + if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) { + return i; + } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) { + return i; + } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) { + return i; + } else if (!strict && this._weekdaysParse[i].test(weekdayName)) { + return i; } - result = samples.map(function(v) { - return f(v); - }); - } - if (chroma[out]) { - result = result.map(function(c) { - return c[out](); - }); - } - return result; - }; - f.cache = function(c) { - if (c != null) { - return _useCache = c; - } else { - return _useCache; - } - }; - return f; - }; - - if (chroma.scales == null) { - chroma.scales = {}; - } - - chroma.scales.cool = function() { - return chroma.scale([chroma.hsl(180, 1, .9), chroma.hsl(250, .7, .4)]); - }; + } + } - chroma.scales.hot = function() { - return chroma.scale(['#000', '#f00', '#ff0', '#fff'], [0, .25, .75, 1]).mode('rgb'); - }; + // MOMENTS - chroma.analyze = function(data, key, filter) { - var add, k, len, o, r, val, visit; - r = { - min: Number.MAX_VALUE, - max: Number.MAX_VALUE * -1, - sum: 0, - values: [], - count: 0 - }; - if (filter == null) { - filter = function() { - return true; - }; + function getSetDayOfWeek (input) { + if (!this.isValid()) { + return input != null ? this : NaN; } - add = function(val) { - if ((val != null) && !isNaN(val)) { - r.values.push(val); - r.sum += val; - if (val < r.min) { - r.min = val; - } - if (val > r.max) { - r.max = val; - } - r.count += 1; - } - }; - visit = function(val, k) { - if (filter(val, k)) { - if ((key != null) && type(key) === 'function') { - return add(key(val)); - } else if ((key != null) && type(key) === 'string' || type(key) === 'number') { - return add(val[key]); - } else { - return add(val); - } - } - }; - if (type(data) === 'array') { - for (o = 0, len = data.length; o < len; o++) { - val = data[o]; - visit(val); - } + var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); + if (input != null) { + input = parseWeekday(input, this.localeData()); + return this.add(input - day, 'd'); } else { - for (k in data) { - val = data[k]; - visit(val, k); - } + return day; } - r.domain = [r.min, r.max]; - r.limits = function(mode, num) { - return chroma.limits(r, mode, num); - }; - return r; - }; + } - chroma.limits = function(data, mode, num) { - var aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, assignments, best, centroids, cluster, clusterSizes, dist, i, j, kClusters, limits, max_log, min, min_log, mindist, n, nb_iters, newCentroids, o, p, pb, pr, ref, ref1, ref10, ref11, ref12, ref13, ref14, ref2, ref3, ref4, ref5, ref6, ref7, ref8, ref9, repeat, sum, tmpKMeansBreaks, v, value, values, w; - if (mode == null) { - mode = 'equal'; - } - if (num == null) { - num = 7; - } - if (type(data) === 'array') { - data = chroma.analyze(data); + function getSetLocaleDayOfWeek (input) { + if (!this.isValid()) { + return input != null ? this : NaN; } - min = data.min; - max = data.max; - sum = data.sum; - values = data.values.sort(function(a, b) { - return a - b; - }); - if (num === 1) { - return [min, max]; + var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; + return input == null ? weekday : this.add(input - weekday, 'd'); + } + + function getSetISODayOfWeek (input) { + if (!this.isValid()) { + return input != null ? this : NaN; } - limits = []; - if (mode.substr(0, 1) === 'c') { - limits.push(min); - limits.push(max); + + // behaves the same as moment#day except + // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6) + // as a setter, sunday should belong to the previous week. + + if (input != null) { + var weekday = parseIsoWeekday(input, this.localeData()); + return this.day(this.day() % 7 ? weekday : weekday - 7); + } else { + return this.day() || 7; } - if (mode.substr(0, 1) === 'e') { - limits.push(min); - for (i = o = 1, ref = num - 1; 1 <= ref ? o <= ref : o >= ref; i = 1 <= ref ? ++o : --o) { - limits.push(min + (i / num) * (max - min)); - } - limits.push(max); - } else if (mode.substr(0, 1) === 'l') { - if (min <= 0) { - throw 'Logarithmic scales are only possible for values > 0'; - } - min_log = Math.LOG10E * log(min); - max_log = Math.LOG10E * log(max); - limits.push(min); - for (i = w = 1, ref1 = num - 1; 1 <= ref1 ? w <= ref1 : w >= ref1; i = 1 <= ref1 ? ++w : --w) { - limits.push(pow(10, min_log + (i / num) * (max_log - min_log))); - } - limits.push(max); - } else if (mode.substr(0, 1) === 'q') { - limits.push(min); - for (i = aa = 1, ref2 = num - 1; 1 <= ref2 ? aa <= ref2 : aa >= ref2; i = 1 <= ref2 ? ++aa : --aa) { - p = (values.length - 1) * i / num; - pb = floor(p); - if (pb === p) { - limits.push(values[pb]); - } else { - pr = p - pb; - limits.push(values[pb] * (1 - pr) + values[pb + 1] * pr); - } - } - limits.push(max); - } else if (mode.substr(0, 1) === 'k') { + } - /* - implementation based on - http://code.google.com/p/figue/source/browse/trunk/figue.js#336 - simplified for 1-d input values - */ - n = values.length; - assignments = new Array(n); - clusterSizes = new Array(num); - repeat = true; - nb_iters = 0; - centroids = null; - centroids = []; - centroids.push(min); - for (i = ab = 1, ref3 = num - 1; 1 <= ref3 ? ab <= ref3 : ab >= ref3; i = 1 <= ref3 ? ++ab : --ab) { - centroids.push(min + (i / num) * (max - min)); - } - centroids.push(max); - while (repeat) { - for (j = ac = 0, ref4 = num - 1; 0 <= ref4 ? ac <= ref4 : ac >= ref4; j = 0 <= ref4 ? ++ac : --ac) { - clusterSizes[j] = 0; + var defaultWeekdaysRegex = matchWord; + function weekdaysRegex (isStrict) { + if (this._weekdaysParseExact) { + if (!hasOwnProp(this, '_weekdaysRegex')) { + computeWeekdaysParse.call(this); } - for (i = ad = 0, ref5 = n - 1; 0 <= ref5 ? ad <= ref5 : ad >= ref5; i = 0 <= ref5 ? ++ad : --ad) { - value = values[i]; - mindist = Number.MAX_VALUE; - for (j = ae = 0, ref6 = num - 1; 0 <= ref6 ? ae <= ref6 : ae >= ref6; j = 0 <= ref6 ? ++ae : --ae) { - dist = abs(centroids[j] - value); - if (dist < mindist) { - mindist = dist; - best = j; - } - } - clusterSizes[best]++; - assignments[i] = best; + if (isStrict) { + return this._weekdaysStrictRegex; + } else { + return this._weekdaysRegex; } - newCentroids = new Array(num); - for (j = af = 0, ref7 = num - 1; 0 <= ref7 ? af <= ref7 : af >= ref7; j = 0 <= ref7 ? ++af : --af) { - newCentroids[j] = null; + } else { + if (!hasOwnProp(this, '_weekdaysRegex')) { + this._weekdaysRegex = defaultWeekdaysRegex; } - for (i = ag = 0, ref8 = n - 1; 0 <= ref8 ? ag <= ref8 : ag >= ref8; i = 0 <= ref8 ? ++ag : --ag) { - cluster = assignments[i]; - if (newCentroids[cluster] === null) { - newCentroids[cluster] = values[i]; - } else { - newCentroids[cluster] += values[i]; - } + return this._weekdaysStrictRegex && isStrict ? + this._weekdaysStrictRegex : this._weekdaysRegex; + } + } + + var defaultWeekdaysShortRegex = matchWord; + function weekdaysShortRegex (isStrict) { + if (this._weekdaysParseExact) { + if (!hasOwnProp(this, '_weekdaysRegex')) { + computeWeekdaysParse.call(this); } - for (j = ah = 0, ref9 = num - 1; 0 <= ref9 ? ah <= ref9 : ah >= ref9; j = 0 <= ref9 ? ++ah : --ah) { - newCentroids[j] *= 1 / clusterSizes[j]; + if (isStrict) { + return this._weekdaysShortStrictRegex; + } else { + return this._weekdaysShortRegex; } - repeat = false; - for (j = ai = 0, ref10 = num - 1; 0 <= ref10 ? ai <= ref10 : ai >= ref10; j = 0 <= ref10 ? ++ai : --ai) { - if (newCentroids[j] !== centroids[i]) { - repeat = true; - break; - } + } else { + if (!hasOwnProp(this, '_weekdaysShortRegex')) { + this._weekdaysShortRegex = defaultWeekdaysShortRegex; } - centroids = newCentroids; - nb_iters++; - if (nb_iters > 200) { - repeat = false; + return this._weekdaysShortStrictRegex && isStrict ? + this._weekdaysShortStrictRegex : this._weekdaysShortRegex; + } + } + + var defaultWeekdaysMinRegex = matchWord; + function weekdaysMinRegex (isStrict) { + if (this._weekdaysParseExact) { + if (!hasOwnProp(this, '_weekdaysRegex')) { + computeWeekdaysParse.call(this); } - } - kClusters = {}; - for (j = aj = 0, ref11 = num - 1; 0 <= ref11 ? aj <= ref11 : aj >= ref11; j = 0 <= ref11 ? ++aj : --aj) { - kClusters[j] = []; - } - for (i = ak = 0, ref12 = n - 1; 0 <= ref12 ? ak <= ref12 : ak >= ref12; i = 0 <= ref12 ? ++ak : --ak) { - cluster = assignments[i]; - kClusters[cluster].push(values[i]); - } - tmpKMeansBreaks = []; - for (j = al = 0, ref13 = num - 1; 0 <= ref13 ? al <= ref13 : al >= ref13; j = 0 <= ref13 ? ++al : --al) { - tmpKMeansBreaks.push(kClusters[j][0]); - tmpKMeansBreaks.push(kClusters[j][kClusters[j].length - 1]); - } - tmpKMeansBreaks = tmpKMeansBreaks.sort(function(a, b) { - return a - b; - }); - limits.push(tmpKMeansBreaks[0]); - for (i = am = 1, ref14 = tmpKMeansBreaks.length - 1; am <= ref14; i = am += 2) { - v = tmpKMeansBreaks[i]; - if (!isNaN(v) && limits.indexOf(v) === -1) { - limits.push(v); + if (isStrict) { + return this._weekdaysMinStrictRegex; + } else { + return this._weekdaysMinRegex; } - } + } else { + if (!hasOwnProp(this, '_weekdaysMinRegex')) { + this._weekdaysMinRegex = defaultWeekdaysMinRegex; + } + return this._weekdaysMinStrictRegex && isStrict ? + this._weekdaysMinStrictRegex : this._weekdaysMinRegex; } - return limits; - }; + } - hsi2rgb = function(h, s, i) { - /* - borrowed from here: - http://hummer.stanford.edu/museinfo/doc/examples/humdrum/keyscape2/hsi2rgb.cpp - */ - var args, b, g, r; - args = unpack(arguments); - h = args[0], s = args[1], i = args[2]; - if (isNaN(h)) { - h = 0; - } - h /= 360; - if (h < 1 / 3) { - b = (1 - s) / 3; - r = (1 + s * cos(TWOPI * h) / cos(PITHIRD - TWOPI * h)) / 3; - g = 1 - (b + r); - } else if (h < 2 / 3) { - h -= 1 / 3; - r = (1 - s) / 3; - g = (1 + s * cos(TWOPI * h) / cos(PITHIRD - TWOPI * h)) / 3; - b = 1 - (r + g); - } else { - h -= 2 / 3; - g = (1 - s) / 3; - b = (1 + s * cos(TWOPI * h) / cos(PITHIRD - TWOPI * h)) / 3; - r = 1 - (g + b); + function computeWeekdaysParse () { + function cmpLenRev(a, b) { + return b.length - a.length; } - r = limit(i * r * 3); - g = limit(i * g * 3); - b = limit(i * b * 3); - return [r * 255, g * 255, b * 255, args.length > 3 ? args[3] : 1]; - }; - rgb2hsi = function() { - - /* - borrowed from here: - http://hummer.stanford.edu/museinfo/doc/examples/humdrum/keyscape2/rgb2hsi.cpp - */ - var b, g, h, i, min, r, ref, s; - ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; - TWOPI = Math.PI * 2; - r /= 255; - g /= 255; - b /= 255; - min = Math.min(r, g, b); - i = (r + g + b) / 3; - s = 1 - min / i; - if (s === 0) { - h = 0; - } else { - h = ((r - g) + (r - b)) / 2; - h /= Math.sqrt((r - g) * (r - g) + (r - b) * (g - b)); - h = Math.acos(h); - if (b > g) { - h = TWOPI - h; - } - h /= TWOPI; + var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [], + i, mom, minp, shortp, longp; + for (i = 0; i < 7; i++) { + // make the regex if we don't have it already + mom = createUTC([2000, 1]).day(i); + minp = this.weekdaysMin(mom, ''); + shortp = this.weekdaysShort(mom, ''); + longp = this.weekdays(mom, ''); + minPieces.push(minp); + shortPieces.push(shortp); + longPieces.push(longp); + mixedPieces.push(minp); + mixedPieces.push(shortp); + mixedPieces.push(longp); + } + // Sorting makes sure if one weekday (or abbr) is a prefix of another it + // will match the longer piece. + minPieces.sort(cmpLenRev); + shortPieces.sort(cmpLenRev); + longPieces.sort(cmpLenRev); + mixedPieces.sort(cmpLenRev); + for (i = 0; i < 7; i++) { + shortPieces[i] = regexEscape(shortPieces[i]); + longPieces[i] = regexEscape(longPieces[i]); + mixedPieces[i] = regexEscape(mixedPieces[i]); } - return [h * 360, s, i]; - }; - chroma.hsi = function() { - return (function(func, args, ctor) { - ctor.prototype = func.prototype; - var child = new ctor, result = func.apply(child, args); - return Object(result) === result ? result : child; - })(Color, slice.call(arguments).concat(['hsi']), function(){}); - }; + this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); + this._weekdaysShortRegex = this._weekdaysRegex; + this._weekdaysMinRegex = this._weekdaysRegex; - _input.hsi = hsi2rgb; + this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i'); + this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i'); + this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i'); + } - Color.prototype.hsi = function() { - return rgb2hsi(this._rgb); - }; + // FORMATTING - interpolate_hsx = function(col1, col2, f, m) { - var dh, hue, hue0, hue1, lbv, lbv0, lbv1, res, sat, sat0, sat1, xyz0, xyz1; - if (m === 'hsl') { - xyz0 = col1.hsl(); - xyz1 = col2.hsl(); - } else if (m === 'hsv') { - xyz0 = col1.hsv(); - xyz1 = col2.hsv(); - } else if (m === 'hcg') { - xyz0 = col1.hcg(); - xyz1 = col2.hcg(); - } else if (m === 'hsi') { - xyz0 = col1.hsi(); - xyz1 = col2.hsi(); - } else if (m === 'lch' || m === 'hcl') { - m = 'hcl'; - xyz0 = col1.hcl(); - xyz1 = col2.hcl(); - } - if (m.substr(0, 1) === 'h') { - hue0 = xyz0[0], sat0 = xyz0[1], lbv0 = xyz0[2]; - hue1 = xyz1[0], sat1 = xyz1[1], lbv1 = xyz1[2]; - } - if (!isNaN(hue0) && !isNaN(hue1)) { - if (hue1 > hue0 && hue1 - hue0 > 180) { - dh = hue1 - (hue0 + 360); - } else if (hue1 < hue0 && hue0 - hue1 > 180) { - dh = hue1 + 360 - hue0; - } else { - dh = hue1 - hue0; - } - hue = hue0 + f * dh; - } else if (!isNaN(hue0)) { - hue = hue0; - if ((lbv1 === 1 || lbv1 === 0) && m !== 'hsv') { - sat = sat0; - } - } else if (!isNaN(hue1)) { - hue = hue1; - if ((lbv0 === 1 || lbv0 === 0) && m !== 'hsv') { - sat = sat1; - } + function hFormat() { + return this.hours() % 12 || 12; + } + + function kFormat() { + return this.hours() || 24; + } + + addFormatToken('H', ['HH', 2], 0, 'hour'); + addFormatToken('h', ['hh', 2], 0, hFormat); + addFormatToken('k', ['kk', 2], 0, kFormat); + + addFormatToken('hmm', 0, 0, function () { + return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2); + }); + + addFormatToken('hmmss', 0, 0, function () { + return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) + + zeroFill(this.seconds(), 2); + }); + + addFormatToken('Hmm', 0, 0, function () { + return '' + this.hours() + zeroFill(this.minutes(), 2); + }); + + addFormatToken('Hmmss', 0, 0, function () { + return '' + this.hours() + zeroFill(this.minutes(), 2) + + zeroFill(this.seconds(), 2); + }); + + function meridiem (token, lowercase) { + addFormatToken(token, 0, 0, function () { + return this.localeData().meridiem(this.hours(), this.minutes(), lowercase); + }); + } + + meridiem('a', true); + meridiem('A', false); + + // ALIASES + + addUnitAlias('hour', 'h'); + + // PRIORITY + addUnitPriority('hour', 13); + + // PARSING + + function matchMeridiem (isStrict, locale) { + return locale._meridiemParse; + } + + addRegexToken('a', matchMeridiem); + addRegexToken('A', matchMeridiem); + addRegexToken('H', match1to2); + addRegexToken('h', match1to2); + addRegexToken('k', match1to2); + addRegexToken('HH', match1to2, match2); + addRegexToken('hh', match1to2, match2); + addRegexToken('kk', match1to2, match2); + + addRegexToken('hmm', match3to4); + addRegexToken('hmmss', match5to6); + addRegexToken('Hmm', match3to4); + addRegexToken('Hmmss', match5to6); + + addParseToken(['H', 'HH'], HOUR); + addParseToken(['k', 'kk'], function (input, array, config) { + var kInput = toInt(input); + array[HOUR] = kInput === 24 ? 0 : kInput; + }); + addParseToken(['a', 'A'], function (input, array, config) { + config._isPm = config._locale.isPM(input); + config._meridiem = input; + }); + addParseToken(['h', 'hh'], function (input, array, config) { + array[HOUR] = toInt(input); + getParsingFlags(config).bigHour = true; + }); + addParseToken('hmm', function (input, array, config) { + var pos = input.length - 2; + array[HOUR] = toInt(input.substr(0, pos)); + array[MINUTE] = toInt(input.substr(pos)); + getParsingFlags(config).bigHour = true; + }); + addParseToken('hmmss', function (input, array, config) { + var pos1 = input.length - 4; + var pos2 = input.length - 2; + array[HOUR] = toInt(input.substr(0, pos1)); + array[MINUTE] = toInt(input.substr(pos1, 2)); + array[SECOND] = toInt(input.substr(pos2)); + getParsingFlags(config).bigHour = true; + }); + addParseToken('Hmm', function (input, array, config) { + var pos = input.length - 2; + array[HOUR] = toInt(input.substr(0, pos)); + array[MINUTE] = toInt(input.substr(pos)); + }); + addParseToken('Hmmss', function (input, array, config) { + var pos1 = input.length - 4; + var pos2 = input.length - 2; + array[HOUR] = toInt(input.substr(0, pos1)); + array[MINUTE] = toInt(input.substr(pos1, 2)); + array[SECOND] = toInt(input.substr(pos2)); + }); + + // LOCALES + + function localeIsPM (input) { + // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays + // Using charAt should be more compatible. + return ((input + '').toLowerCase().charAt(0) === 'p'); + } + + var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i; + function localeMeridiem (hours, minutes, isLower) { + if (hours > 11) { + return isLower ? 'pm' : 'PM'; } else { - hue = Number.NaN; - } - if (sat == null) { - sat = sat0 + f * (sat1 - sat0); + return isLower ? 'am' : 'AM'; } - lbv = lbv0 + f * (lbv1 - lbv0); - return res = chroma[m](hue, sat, lbv); - }; + } - _interpolators = _interpolators.concat((function() { - var len, o, ref, results; - ref = ['hsv', 'hsl', 'hsi', 'hcl', 'lch', 'hcg']; - results = []; - for (o = 0, len = ref.length; o < len; o++) { - m = ref[o]; - results.push([m, interpolate_hsx]); - } - return results; - })()); - interpolate_num = function(col1, col2, f, m) { - var n1, n2; - n1 = col1.num(); - n2 = col2.num(); - return chroma.num(n1 + (n2 - n1) * f, 'num'); - }; + // MOMENTS - _interpolators.push(['num', interpolate_num]); + // Setting the hour should keep the time, because the user explicitly + // specified which hour he wants. So trying to maintain the same hour (in + // a new timezone) makes sense. Adding/subtracting hours does not follow + // this rule. + var getSetHour = makeGetSet('Hours', true); - interpolate_lab = function(col1, col2, f, m) { - var res, xyz0, xyz1; - xyz0 = col1.lab(); - xyz1 = col2.lab(); - return res = new Color(xyz0[0] + f * (xyz1[0] - xyz0[0]), xyz0[1] + f * (xyz1[1] - xyz0[1]), xyz0[2] + f * (xyz1[2] - xyz0[2]), m); - }; + // months + // week + // weekdays + // meridiem + var baseConfig = { + calendar: defaultCalendar, + longDateFormat: defaultLongDateFormat, + invalidDate: defaultInvalidDate, + ordinal: defaultOrdinal, + dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse, + relativeTime: defaultRelativeTime, - _interpolators.push(['lab', interpolate_lab]); + months: defaultLocaleMonths, + monthsShort: defaultLocaleMonthsShort, - }).call(this); + week: defaultLocaleWeek, - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(338)(module))) - -/***/ }), -/* 338 */ -/***/ (function(module, exports) { - - module.exports = function(module) { - if(!module.webpackPolyfill) { - module.deprecate = function() {}; - module.paths = []; - // module.parent = undefined by default - module.children = []; - module.webpackPolyfill = 1; - } - return module; - } - - -/***/ }), -/* 339 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(1); - var React = __webpack_require__(3); - var docs_1 = __webpack_require__(172); - var docsIcon_1 = __webpack_require__(340); - var ICONS_PER_ROW = 5; - var Icons = (function (_super) { - tslib_1.__extends(Icons, _super); - function Icons(props, context) { - var _this = _super.call(this, props, context) || this; - _this.state = { - filter: "", - }; - _this.handleFilterChange = function (e) { - var filter = e.target.value; - _this.setState({ filter: filter }); - }; - _this.iconGroups = props.icons.reduce(function (groups, icon) { - if (groups[icon.group] == null) { - groups[icon.group] = []; + weekdays: defaultLocaleWeekdays, + weekdaysMin: defaultLocaleWeekdaysMin, + weekdaysShort: defaultLocaleWeekdaysShort, + + meridiemParse: defaultLocaleMeridiemParse + }; + + // internal storage for locale config files + var locales = {}; + var localeFamilies = {}; + var globalLocale; + + function normalizeLocale(key) { + return key ? key.toLowerCase().replace('_', '-') : key; + } + + // pick the locale from the array + // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each + // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root + function chooseLocale(names) { + var i = 0, j, next, locale, split; + + while (i < names.length) { + split = normalizeLocale(names[i]).split('-'); + j = split.length; + next = normalizeLocale(names[i + 1]); + next = next ? next.split('-') : null; + while (j > 0) { + locale = loadLocale(split.slice(0, j).join('-')); + if (locale) { + return locale; } - groups[icon.group].push(icon); - return groups; - }, {}); - for (var _i = 0, _a = Object.keys(_this.iconGroups); _i < _a.length; _i++) { - var group = _a[_i]; - _this.iconGroups[group].sort(function (a, b) { return a.name.localeCompare(b.name); }); + if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) { + //the next array item is better than a shallower substring of this one + break; + } + j--; } - return _this; + i++; } - Icons.prototype.render = function () { - var groupElements = Object.keys(this.iconGroups) - .sort() - .map(this.maybeRenderIconGroup, this) - .filter(function (group) { return group != null; }); - return (React.createElement("div", { className: "docs-icons" }, - React.createElement("div", { className: "pt-input-group pt-large pt-fill" }, - React.createElement("span", { className: "pt-icon pt-icon-search" }), - React.createElement("input", { className: "pt-input pt-fill", dir: "auto", onChange: this.handleFilterChange, placeholder: "Search for icons...", type: "search", value: this.state.filter })), - groupElements.length > 0 ? groupElements : this.renderZeroState())); - }; - Icons.prototype.maybeRenderIconGroup = function (groupName, index) { - var _this = this; - var icons = this.iconGroups[groupName]; - var _a = this.props, iconFilter = _a.iconFilter, iconRenderer = _a.iconRenderer; - var iconElements = icons.filter(function (icon) { return iconFilter(_this.state.filter, icon); }).map(iconRenderer); - if (iconElements.length > 0) { - var padIndex = icons.length; - while (iconElements.length % ICONS_PER_ROW > 0) { - iconElements.push(React.createElement("div", { className: "docs-placeholder", key: padIndex++ })); + return null; + } + + function loadLocale(name) { + var oldLocale = null; + // TODO: Find a better way to register and load all the locales in Node + if (!locales[name] && (typeof module !== 'undefined') && + module && module.exports) { + try { + oldLocale = globalLocale._abbr; + __webpack_require__(338)("./" + name); + // because defineLocale currently also sets the global locale, we + // want to undo that for lazy loaded locales + getSetGlobalLocale(oldLocale); + } catch (e) { } + } + return locales[name]; + } + + // This function will load locale and then set the global locale. If + // no arguments are passed in, it will simply return the current global + // locale key. + function getSetGlobalLocale (key, values) { + var data; + if (key) { + if (isUndefined(values)) { + data = getLocale(key); + } + else { + data = defineLocale(key, values); + } + + if (data) { + // moment.duration._locale = moment._locale = data; + globalLocale = data; + } + } + + return globalLocale._abbr; + } + + function defineLocale (name, config) { + if (config !== null) { + var parentConfig = baseConfig; + config.abbr = name; + if (locales[name] != null) { + deprecateSimple('defineLocaleOverride', + 'use moment.updateLocale(localeName, config) to change ' + + 'an existing locale. moment.defineLocale(localeName, ' + + 'config) should only be used for creating a new locale ' + + 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'); + parentConfig = locales[name]._config; + } else if (config.parentLocale != null) { + if (locales[config.parentLocale] != null) { + parentConfig = locales[config.parentLocale]._config; + } else { + if (!localeFamilies[config.parentLocale]) { + localeFamilies[config.parentLocale] = []; + } + localeFamilies[config.parentLocale].push({ + name: name, + config: config + }); + return null; } - return (React.createElement("div", { className: "docs-icon-group", key: index }, - React.createElement("h3", null, groupName), - iconElements)); } - return undefined; - }; - Icons.prototype.renderZeroState = function () { - return React.createElement("div", { className: "pt-running-text pt-text-muted icons-zero-state" }, "No icons found."); - }; - return Icons; - }(React.PureComponent)); - Icons.defaultProps = { - iconFilter: isIconFiltered, - iconRenderer: renderIcon, - icons: __webpack_require__(341), - }; - exports.Icons = Icons; - function isIconFiltered(query, icon) { - return docs_1.smartSearch(query, icon.name, icon.className, icon.tags, icon.group); + locales[name] = new Locale(mergeConfigs(parentConfig, config)); + + if (localeFamilies[name]) { + localeFamilies[name].forEach(function (x) { + defineLocale(x.name, x.config); + }); + } + + // backwards compat for now: also set the locale + // make sure we set the locale AFTER all child locales have been + // created, so we won't end up with the child locale set. + getSetGlobalLocale(name); + + + return locales[name]; + } else { + // useful for testing + delete locales[name]; + return null; + } } - function renderIcon(icon, index) { - return React.createElement(docsIcon_1.DocsIcon, tslib_1.__assign({}, icon, { key: index })); + + function updateLocale(name, config) { + if (config != null) { + var locale, parentConfig = baseConfig; + // MERGE + if (locales[name] != null) { + parentConfig = locales[name]._config; + } + config = mergeConfigs(parentConfig, config); + locale = new Locale(config); + locale.parentLocale = locales[name]; + locales[name] = locale; + + // backwards compat for now: also set the locale + getSetGlobalLocale(name); + } else { + // pass null for config to unupdate, useful for tests + if (locales[name] != null) { + if (locales[name].parentLocale != null) { + locales[name] = locales[name].parentLocale; + } else if (locales[name] != null) { + delete locales[name]; + } + } + } + return locales[name]; } - - -/***/ }), -/* 340 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(1); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var clickToCopy_1 = __webpack_require__(335); - var GITHUB_PATH = "https://github.com/palantir/blueprint/blob/master/resources/icons"; - var DocsIcon = (function (_super) { - tslib_1.__extends(DocsIcon, _super); - function DocsIcon() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.handleClick16 = function () { return window.open(GITHUB_PATH + "/16px/" + _this.props.className + ".svg"); }; - _this.handleClick20 = function () { return window.open(GITHUB_PATH + "/20px/" + _this.props.className + ".svg"); }; - return _this; + + // returns locale data + function getLocale (key) { + var locale; + + if (key && key._locale && key._locale._abbr) { + key = key._locale._abbr; } - DocsIcon.prototype.render = function () { - var _a = this.props, className = _a.className, name = _a.name, tags = _a.tags; - return (React.createElement(clickToCopy_1.ClickToCopy, { className: "docs-icon", "data-tags": tags, value: className }, - React.createElement(core_1.Icon, { iconName: className, iconSize: core_1.Icon.SIZE_LARGE }), - React.createElement("span", { className: "docs-icon-detail" }, - React.createElement("div", { className: "docs-icon-name" }, name), - React.createElement("div", { className: "docs-icon-class-name pt-monospace-text" }, className), - React.createElement("div", { className: "docs-clipboard-message pt-text-muted", "data-hover-message": "Click to copy" })))); - }; - DocsIcon.prototype.renderContextMenu = function () { - var className = this.props.className; - return (React.createElement(core_1.Menu, null, - React.createElement(core_1.MenuItem, { className: "docs-icon-16", iconName: className, text: "Download 16px SVG", onClick: this.handleClick16 }), - React.createElement(core_1.MenuItem, { className: "docs-icon-20", iconName: className, text: "Download 20px SVG", onClick: this.handleClick20 }))); - }; - return DocsIcon; - }(React.PureComponent)); - DocsIcon = tslib_1.__decorate([ - core_1.ContextMenuTarget - ], DocsIcon); - exports.DocsIcon = DocsIcon; - - -/***/ }), -/* 341 */ -/***/ (function(module, exports) { - - module.exports = [ - { - "name": "Blank", - "className": "pt-icon-blank", - "tags": "empty, placeholder", - "group": "miscellaneous", - "content": "\\e900" - }, - { - "name": "Style", - "className": "pt-icon-style", - "tags": "visual style, editor", - "group": "editor", - "content": "\\e601" - }, - { - "name": "Align: left", - "className": "pt-icon-align-left", - "tags": "text flow, alignment, justification, range, flush left", - "group": "editor", - "content": "\\e602" - }, - { - "name": "Align: center", - "className": "pt-icon-align-center", - "tags": "text flow, alignment, justification, range, centered", - "group": "editor", - "content": "\\e603" - }, - { - "name": "Align: right", - "className": "pt-icon-align-right", - "tags": "text flow, alignment, justification, range, flush right", - "group": "editor", - "content": "\\e604" - }, - { - "name": "Align: justify", - "className": "pt-icon-align-justify", - "tags": "text flow, alignment, justification, range, justified", - "group": "editor", - "content": "\\e605" - }, - { - "name": "Bold", - "className": "pt-icon-bold", - "tags": "typography, text, font style, weight, bold", - "group": "editor", - "content": "\\e606" - }, - { - "name": "Italic", - "className": "pt-icon-italic", - "tags": "typography, text, font style, italic, cursive", - "group": "editor", - "content": "\\e607" - }, - { - "name": "Underline", - "className": "pt-icon-underline", - "tags": "typography, text, font style, underline, underscore", - "group": "editor", - "content": "\\2381" - }, - { - "name": "Search around", - "className": "pt-icon-search-around", - "tags": "search, exploration, information, area, graph", - "group": "action", - "content": "\\e608" - }, - { - "name": "Remove from graph", - "className": "pt-icon-graph-remove", - "tags": "circle, remove, delete, clear, graph", - "group": "action", - "content": "\\e609" - }, - { - "name": "Group objects", - "className": "pt-icon-group-objects", - "tags": "group, alignment, organization, arrangement, classification, objects", - "group": "action", - "content": "\\e60a" - }, - { - "name": "Merge into links", - "className": "pt-icon-merge-links", - "tags": "merge, combine, consolidate, jointment, links", - "group": "action", - "content": "\\e60b" - }, - { - "name": "Layout", - "className": "pt-icon-layout", - "tags": "layout, presentation, arrangement, graph", - "group": "data", - "content": "\\e60c" - }, - { - "name": "Layout: auto", - "className": "pt-icon-layout-auto", - "tags": "layout, presentation, arrangement, auto, graph, grid", - "group": "data", - "content": "\\e60d" - }, - { - "name": "Layout: circle", - "className": "pt-icon-layout-circle", - "tags": "layout, presentation, arrangement, circle, graph, grid", - "group": "data", - "content": "\\e60e" - }, - { - "name": "Layout: hierarchy", - "className": "pt-icon-layout-hierarchy", - "tags": "layout, presentation, arrangement, hierarchy, order, graph, grid", - "group": "data", - "content": "\\e60f" - }, - { - "name": "Layout: grid", - "className": "pt-icon-layout-grid", - "tags": "layout, presentation, arrangement, grid, graph, grid", - "group": "data", - "content": "\\e610" - }, - { - "name": "Layout: group by", - "className": "pt-icon-layout-group-by", - "tags": "layout, presentation, arrangement, group by, graph, grid", - "group": "data", - "content": "\\e611" - }, - { - "name": "Layout: skew grid", - "className": "pt-icon-layout-skew-grid", - "tags": "layout, presentation, arrangement, skew, graph, grid", - "group": "data", - "content": "\\e612" - }, - { - "name": "Geosearch", - "className": "pt-icon-geosearch", - "tags": "search, exploration, topography, geography, location, area, magnifying glass, globe", - "group": "action", - "content": "\\e613" - }, - { - "name": "Heatmap", - "className": "pt-icon-heatmap", - "tags": "hierarchy, matrix, heat map", - "group": "data", - "content": "\\e614" - }, - { - "name": "Drive time", - "className": "pt-icon-drive-time", - "tags": "car, automobile, vehicle, van, drive, ride, distance, navigation, directions", - "group": "interface", - "content": "\\e615" - }, - { - "name": "Select", - "className": "pt-icon-select", - "tags": "selection, arrow, cursor, area, range", - "group": "action", - "content": "\\e616" - }, - { - "name": "Predictive analysis", - "className": "pt-icon-predictive-analysis", - "tags": "analysis, investigation, search, study, test, brain", - "group": "action", - "content": "\\e617" - }, - { - "name": "Layers", - "className": "pt-icon-layers", - "tags": "layers, levels, stack, cards", - "group": "interface", - "content": "\\e618" - }, - { - "name": "Locate", - "className": "pt-icon-locate", - "tags": "target, location, destination, mark, map, area", - "group": "action", - "content": "\\e619" - }, - { - "name": "Bookmark", - "className": "pt-icon-bookmark", - "tags": "bookmark, marker, holder, section, identifier, favorites", - "group": "action", - "content": "\\e61a" - }, - { - "name": "Citation", - "className": "pt-icon-citation", - "tags": "quotation, citation, marks, excerpt", - "group": "editor", - "content": "\\e61b" - }, - { - "name": "Tag", - "className": "pt-icon-tag", - "tags": "tag, label, badge, identification", - "group": "action", - "content": "\\e61c" - }, - { - "name": "Clipboard", - "className": "pt-icon-clipboard", - "tags": "clipboard, notepad, notebook, copy, paste, transfer, storage", - "group": "action", - "content": "\\e61d" - }, - { - "name": "Selection", - "className": "pt-icon-selection", - "tags": "selection, collection, circle, ring", - "group": "action", - "content": "\\29bf" - }, - { - "name": "Events", - "className": "pt-icon-timeline-events", - "tags": "calendar, timeframe, agenda, diary, day, week, month", - "group": "interface", - "content": "\\e61e" - }, - { - "name": "Line chart", - "className": "pt-icon-timeline-line-chart", - "tags": "graph, line, chart", - "group": "data", - "content": "\\e61f" - }, - { - "name": "Bar chart", - "className": "pt-icon-timeline-bar-chart", - "tags": "graph, bar, chart", - "group": "data", - "content": "\\e620" - }, - { - "name": "Applications", - "className": "pt-icon-applications", - "tags": "application, browser, windows, platforms", - "group": "interface", - "content": "\\e621" - }, - { - "name": "Projects", - "className": "pt-icon-projects", - "tags": "drawer, sections", - "group": "interface", - "content": "\\e622" - }, - { - "name": "Changes", - "className": "pt-icon-changes", - "tags": "arrows, direction, switch", - "group": "action", - "content": "\\e623" - }, - { - "name": "Notifications", - "className": "pt-icon-notifications", - "tags": "notifications, bell, alarm, notice, warning", - "group": "interface", - "content": "\\e624" - }, - { - "name": "Lock", - "className": "pt-icon-lock", - "tags": "lock, engage, connect, join, close", - "group": "action", - "content": "\\e625" - }, - { - "name": "Unlock", - "className": "pt-icon-unlock", - "tags": "unlock, disengage, disconnect, separate, open", - "group": "action", - "content": "\\e626" - }, - { - "name": "User", - "className": "pt-icon-user", - "tags": "person, human, male, female, character, customer, individual", - "group": "interface", - "content": "\\e627" - }, - { - "name": "Search template", - "className": "pt-icon-search-template", - "tags": "search, text, magnifying glass", - "group": "action", - "content": "\\e628" - }, - { - "name": "Inbox", - "className": "pt-icon-inbox", - "tags": "folder, mail, file, message", - "group": "file", - "content": "\\e629" - }, - { - "name": "More", - "className": "pt-icon-more", - "tags": "dots, three, extra, new, options", - "group": "interface", - "content": "\\e62a" - }, - { - "name": "Help", - "className": "pt-icon-help", - "tags": "question mark, aid, advice, circle", - "group": "action", - "content": "\\003F" - }, - { - "name": "Calendar", - "className": "pt-icon-calendar", - "tags": "calendar, timeframe, agenda, diary, day, week, month", - "group": "interface", - "content": "\\e62b" - }, - { - "name": "Media", - "className": "pt-icon-media", - "tags": "audio, video, media, picture, image, drawing, illustration", - "group": "media", - "content": "\\e62c" - }, - { - "name": "Link", - "className": "pt-icon-link", - "tags": "link, connection, network", - "group": "interface", - "content": "\\e62d" - }, - { - "name": "Share", - "className": "pt-icon-share", - "tags": "share, square, arrow", - "group": "action", - "content": "\\e62e" - }, - { - "name": "Download", - "className": "pt-icon-download", - "tags": "circle, arrow, down, downloading", - "group": "action", - "content": "\\e62f" - }, - { - "name": "Document", - "className": "pt-icon-document", - "tags": "document, paper, page, file", - "group": "file", - "content": "\\e630" - }, - { - "name": "Properties", - "className": "pt-icon-properties", - "tags": "lines, dots, three, list", - "group": "interface", - "content": "\\e631" - }, - { - "name": "Import", - "className": "pt-icon-import", - "tags": "arrow, down, importing,", - "group": "action", - "content": "\\e632" - }, - { - "name": "Export", - "className": "pt-icon-export", - "tags": "arrow, up, exporting", - "group": "action", - "content": "\\e633" - }, - { - "name": "Minimize", - "className": "pt-icon-minimize", - "tags": "arrows, decrease, smaller", - "group": "action", - "content": "\\e634" - }, - { - "name": "Maximize", - "className": "pt-icon-maximize", - "tags": "arrows, increase, bigger", - "group": "action", - "content": "\\e635" - }, - { - "name": "Tick", - "className": "pt-icon-tick", - "tags": "mark, sign, ok, approved, success", - "group": "action", - "content": "\\2713" - }, - { - "name": "Cross", - "className": "pt-icon-cross", - "tags": "cross mark, fail, delete, no, close, remove", - "group": "action", - "content": "\\2717" - }, - { - "name": "Plus", - "className": "pt-icon-plus", - "tags": "sign, add, maximize, zoom in", - "group": "action", - "content": "\\002b" - }, - { - "name": "Minus", - "className": "pt-icon-minus", - "tags": "sign, remove, minimize, zoom out", - "group": "action", - "content": "\\2212" - }, - { - "name": "Arrow: left", - "className": "pt-icon-arrow-left", - "tags": "arrow, direction, left", - "group": "interface", - "content": "\\2190" - }, - { - "name": "Arrow: right", - "className": "pt-icon-arrow-right", - "tags": "arrow, direction, right", - "group": "interface", - "content": "\\2192" - }, - { - "name": "Exchange", - "className": "pt-icon-exchange", - "tags": "arrows, direction, exchange, network, swap, transfer, transaction", - "group": "action", - "content": "\\e636" - }, - { - "name": "Comparison", - "className": "pt-icon-comparison", - "tags": "comparison, analogy, layout, contrast", - "group": "action", - "content": "\\e637" - }, - { - "name": "List", - "className": "pt-icon-list", - "tags": "agenda, four lines, table", - "group": "table", - "content": "\\2630" - }, - { - "name": "Filter", - "className": "pt-icon-filter", - "tags": "filtering, funnel, tube, pipe", - "group": "action", - "content": "\\e638" - }, - { - "name": "Confirm", - "className": "pt-icon-confirm", - "tags": "circle, tick, confirmation, acceptance, approval, authorization", - "group": "action", - "content": "\\e639" - }, - { - "name": "Fork", - "className": "pt-icon-fork", - "tags": "divide, split, break, arrows, direction", - "group": "action", - "content": "\\e63a" - }, - { - "name": "Trash", - "className": "pt-icon-trash", - "tags": "bin, rubbish, junk, remove, delete", - "group": "action", - "content": "\\e63b" - }, - { - "name": "Person", - "className": "pt-icon-person", - "tags": "person, human, male, female, character, customer, individual", - "group": "interface", - "content": "\\e63c" - }, - { - "name": "People", - "className": "pt-icon-people", - "tags": "people, humans, males, females, characters, customers, individuals", - "group": "interface", - "content": "\\e63d" - }, - { - "name": "Add", - "className": "pt-icon-add", - "tags": "circle, plus, symbol, join", - "group": "action", - "content": "\\e63e" - }, - { - "name": "Remove", - "className": "pt-icon-remove", - "tags": "circle, minus, symbol, remove", - "group": "action", - "content": "\\e63f" - }, - { - "name": "Geolocation", - "className": "pt-icon-geolocation", - "tags": "geography, location, position, map, direction", - "group": "interface", - "content": "\\e640" - }, - { - "name": "Zoom in", - "className": "pt-icon-zoom-in", - "tags": "search, magnifying glass, plus", - "group": "action", - "content": "\\e641" - }, - { - "name": "Zoom out", - "className": "pt-icon-zoom-out", - "tags": "search, magnifying glass, minus", - "group": "action", - "content": "\\e642" - }, - { - "name": "Refresh", - "className": "pt-icon-refresh", - "tags": "circle, arrows, rotation", - "group": "action", - "content": "\\e643" - }, - { - "name": "Delete", - "className": "pt-icon-delete", - "tags": "circle, remove, cross", - "group": "action", - "content": "\\e644" - }, - { - "name": "Cog", - "className": "pt-icon-cog", - "tags": "settings, circle,", - "group": "interface", - "content": "\\e645" - }, - { - "name": "Flag", - "className": "pt-icon-flag", - "tags": "map, position, country, nationality", - "group": "interface", - "content": "\\2691" - }, - { - "name": "Pin", - "className": "pt-icon-pin", - "tags": "map, position, safety pin, attach", - "group": "action", - "content": "\\e646" - }, - { - "name": "Warning", - "className": "pt-icon-warning-sign", - "tags": "notification, warning, triangle, exclamation mark, sign", - "group": "interface", - "content": "\\e647" - }, - { - "name": "Error", - "className": "pt-icon-error", - "tags": "notification, failure, circle, exclamation mark, sign", - "group": "interface", - "content": "\\e648" - }, - { - "name": "Info", - "className": "pt-icon-info-sign", - "tags": "notification, information, circle, message, sign", - "group": "interface", - "content": "\\2139" - }, - { - "name": "Credit card", - "className": "pt-icon-credit-card", - "tags": "payment, bank, transaction", - "group": "action", - "content": "\\e649" - }, - { - "name": "Edit", - "className": "pt-icon-edit", - "tags": "annotate, pen, modify", - "group": "action", - "content": "\\270E" - }, - { - "name": "History", - "className": "pt-icon-history", - "tags": "past, reverse, circle, arrow", - "group": "action", - "content": "\\e64a" - }, - { - "name": "Search", - "className": "pt-icon-search", - "tags": "inspection, exploration, magnifying glass", - "group": "action", - "content": "\\e64b" - }, - { - "name": "Logout", - "className": "pt-icon-log-out", - "tags": "arrow, leave", - "group": "action", - "content": "\\e64c" - }, - { - "name": "Star: filled", - "className": "pt-icon-star", - "tags": "shape, pin, mark, pro", - "group": "interface", - "content": "\\2605" - }, - { - "name": "Star: empty", - "className": "pt-icon-star-empty", - "tags": "shape, unpin, mark", - "group": "interface", - "content": "\\2606" - }, - { - "name": "Sort: alphabetical", - "className": "pt-icon-sort-alphabetical", - "tags": "ascending, array, arrange", - "group": "action", - "content": "\\e64d" - }, - { - "name": "Sort: numerical", - "className": "pt-icon-sort-numerical", - "tags": "ascending, array, arrange", - "group": "action", - "content": "\\e64e" - }, - { - "name": "Sort", - "className": "pt-icon-sort", - "tags": "ascending, array, arrange", - "group": "action", - "content": "\\e64f" - }, - { - "name": "Folder: opened", - "className": "pt-icon-folder-open", - "tags": "file, portfolio, case", - "group": "file", - "content": "\\e651" - }, - { - "name": "Folder: closed", - "className": "pt-icon-folder-close", - "tags": "file, portfolio, case", - "group": "file", - "content": "\\e652" - }, - { - "name": "Folder: shared", - "className": "pt-icon-folder-shared", - "tags": "file, portfolio, case", - "group": "file", - "content": "\\e653" - }, - { - "name": "Caret: up", - "className": "pt-icon-caret-up", - "tags": "direction, order, up", - "group": "interface", - "content": "\\2303" - }, - { - "name": "Caret: right", - "className": "pt-icon-caret-right", - "tags": "direction, order, right", - "group": "interface", - "content": "\\232A" - }, - { - "name": "Caret: down", - "className": "pt-icon-caret-down", - "tags": "direction, order, down", - "group": "interface", - "content": "\\2304" - }, - { - "name": "Caret: left", - "className": "pt-icon-caret-left", - "tags": "direction, order, left", - "group": "interface", - "content": "\\2329" - }, - { - "name": "Menu: opened", - "className": "pt-icon-menu-open", - "tags": "show, navigation", - "group": "interface", - "content": "\\e654" - }, - { - "name": "Menu: closed", - "className": "pt-icon-menu-closed", - "tags": "hide, navigation", - "group": "interface", - "content": "\\e655" - }, - { - "name": "Feed", - "className": "pt-icon-feed", - "tags": "rss, feed", - "group": "interface", - "content": "\\e656" - }, - { - "name": "Two columns", - "className": "pt-icon-two-columns", - "tags": "layout, columns, switch, change, two", - "group": "action", - "content": "\\e657" - }, - { - "name": "One column", - "className": "pt-icon-one-column", - "tags": "layout, columns, switch, change, one", - "group": "action", - "content": "\\e658" - }, - { - "name": "Dot", - "className": "pt-icon-dot", - "tags": "point, circle, small", - "group": "miscellaneous", - "content": "\\2022" - }, - { - "name": "Property", - "className": "pt-icon-property", - "tags": "list, order", - "group": "interface", - "content": "\\e65a" - }, - { - "name": "Time", - "className": "pt-icon-time", - "tags": "clock, day, hours, minutes, seconds", - "group": "interface", - "content": "\\23F2" - }, - { - "name": "Disable", - "className": "pt-icon-disable", - "tags": "off, circle, remove", - "group": "action", - "content": "\\e600" - }, - { - "name": "Unpin", - "className": "pt-icon-unpin", - "tags": "map, position, safety pin, detach", - "group": "action", - "content": "\\e650" - }, - { - "name": "Flows", - "className": "pt-icon-flows", - "tags": "arrows, direction, links", - "group": "data", - "content": "\\e659" - }, - { - "name": "New text box", - "className": "pt-icon-new-text-box", - "tags": "text box, edit, new, create", - "group": "action", - "content": "\\e65b" - }, - { - "name": "New link", - "className": "pt-icon-new-link", - "tags": "create, add, plus, links", - "group": "action", - "content": "\\e65c" - }, - { - "name": "New object", - "className": "pt-icon-new-object", - "tags": "create, add, plus, objects, circle", - "group": "action", - "content": "\\e65d" - }, - { - "name": "Path search", - "className": "pt-icon-path-search", - "tags": "map, magnifying glass, position, location", - "group": "action", - "content": "\\e65e" - }, - { - "name": "Automatic updates", - "className": "pt-icon-automatic-updates", - "tags": "circle, arrows, tick, amends, updates", - "group": "action", - "content": "\\e65f" - }, - { - "name": "Page layout", - "className": "pt-icon-page-layout", - "tags": "browser, table, design, columns", - "group": "table", - "content": "\\e660" - }, - { - "name": "Code", - "className": "pt-icon-code", - "tags": "code, markup, language, tag", - "group": "action", - "content": "\\e661" - }, - { - "name": "Map", - "className": "pt-icon-map", - "tags": "map, location, position, geography, world", - "group": "interface", - "content": "\\e662" - }, - { - "name": "Search text", - "className": "pt-icon-search-text", - "tags": "magnifying glass, exploration", - "group": "action", - "content": "\\e663" - }, - { - "name": "Envelope", - "className": "pt-icon-envelope", - "tags": "post, mail, send, email", - "group": "interface", - "content": "\\2709" - }, - { - "name": "Paperclip", - "className": "pt-icon-paperclip", - "tags": "attachments, add", - "group": "action", - "content": "\\e664" - }, - { - "name": "Label", - "className": "pt-icon-label", - "tags": "text, tag, ticket", - "group": "interface", - "content": "\\e665" - }, - { - "name": "Globe", - "className": "pt-icon-globe", - "tags": "planet, earth, map, location, geography, world", - "group": "miscellaneous", - "content": "\\e666" - }, - { - "name": "Home", - "className": "pt-icon-home", - "tags": "house, building, destination", - "group": "miscellaneous", - "content": "\\2302" - }, - { - "name": "Table", - "className": "pt-icon-th", - "tags": "index, rows, columns, agenda, list, spreadsheet", - "group": "table", - "content": "\\e667" - }, - { - "name": "Table: list", - "className": "pt-icon-th-list", - "tags": "index, rows, list, order, series", - "group": "table", - "content": "\\e668" - }, - { - "name": "Table: derived", - "className": "pt-icon-th-derived", - "tags": "get, obtain, take, acquire, index, rows, columns, list", - "group": "table", - "content": "\\e669" - }, - { - "name": "Radial", - "className": "pt-icon-circle", - "tags": "circle, empty, area, radius, selection", - "group": "action", - "content": "\\e66a" - }, - { - "name": "Draw", - "className": "pt-icon-draw", - "tags": "selection, area, highlight, sketch", - "group": "action", - "content": "\\e66b" - }, - { - "name": "Insert", - "className": "pt-icon-insert", - "tags": "square, plus, add, embed, include, inject", - "group": "action", - "content": "\\e66c" - }, - { - "name": "Helper management", - "className": "pt-icon-helper-management", - "tags": "square, widget", - "group": "interface", - "content": "\\e66d" - }, - { - "name": "Send to", - "className": "pt-icon-send-to", - "tags": "circle, export, arrow", - "group": "action", - "content": "\\e66e" - }, - { - "name": "Eye", - "className": "pt-icon-eye-open", - "tags": "show, visible, clear, view, vision", - "group": "interface", - "content": "\\e66f" - }, - { - "name": "Folder: shared open", - "className": "pt-icon-folder-shared-open", - "tags": "file, portfolio, case", - "group": "file", - "content": "\\e670" - }, - { - "name": "Social media", - "className": "pt-icon-social-media", - "tags": "circle, rotate, share", - "group": "action", - "content": "\\e671" - }, - { - "name": "Arrow: up", - "className": "pt-icon-arrow-up", - "tags": "direction, north", - "group": "interface", - "content": "\\2191 " - }, - { - "name": "Arrow: down", - "className": "pt-icon-arrow-down", - "tags": "direction, south", - "group": "interface", - "content": "\\2193 " - }, - { - "name": "Arrows: horizontal", - "className": "pt-icon-arrows-horizontal", - "tags": "direction, level", - "group": "interface", - "content": "\\2194 " - }, - { - "name": "Arrows: vertical", - "className": "pt-icon-arrows-vertical", - "tags": "direction, level", - "group": "interface", - "content": "\\2195 " - }, - { - "name": "Resolve", - "className": "pt-icon-resolve", - "tags": "circles, divide, split", - "group": "action", - "content": "\\e672" - }, - { - "name": "Graph", - "className": "pt-icon-graph", - "tags": "graph, diagram", - "group": "data", - "content": "\\e673" - }, - { - "name": "Briefcase", - "className": "pt-icon-briefcase", - "tags": "suitcase, business, case, baggage,", - "group": "miscellaneous", - "content": "\\e674" - }, - { - "name": "Dollar", - "className": "pt-icon-dollar", - "tags": "currency, money", - "group": "miscellaneous", - "content": "\\0024" - }, - { - "name": "Ninja", - "className": "pt-icon-ninja", - "tags": "star, fighter, symbol", - "group": "miscellaneous", - "content": "\\e675" - }, - { - "name": "Delta", - "className": "pt-icon-delta", - "tags": "alt j, symbol", - "group": "miscellaneous", - "content": "\\0394" - }, - { - "name": "Barcode", - "className": "pt-icon-barcode", - "tags": "product, scan,", - "group": "miscellaneous", - "content": "\\e676" - }, - { - "name": "Torch", - "className": "pt-icon-torch", - "tags": "light, flashlight, tool", - "group": "miscellaneous", - "content": "\\e677" - }, - { - "name": "Widget", - "className": "pt-icon-widget", - "tags": "square, corners", - "group": "interface", - "content": "\\e678" - }, - { - "name": "Unresolve", - "className": "pt-icon-unresolve", - "tags": "split, divide, disconnect, separate", - "group": "action", - "content": "\\e679" - }, - { - "name": "Offline", - "className": "pt-icon-offline", - "tags": "circle, lightning, disconnected, down", - "group": "interface", - "content": "\\e67a" - }, - { - "name": "Zoom to fit", - "className": "pt-icon-zoom-to-fit", - "tags": "fit, scale, resize, adjust", - "group": "action", - "content": "\\e67b" - }, - { - "name": "Add to artifact", - "className": "pt-icon-add-to-artifact", - "tags": "list, plus", - "group": "action", - "content": "\\e67c" - }, - { - "name": "Map marker", - "className": "pt-icon-map-marker", - "tags": "pin, map, location, position, geography, world", - "group": "interface", - "content": "\\e67d" - }, - { - "name": "Chart", - "className": "pt-icon-chart", - "tags": "arrow, increase, up, line, bar, graph", - "group": "data", - "content": "\\e67e" - }, - { - "name": "Control", - "className": "pt-icon-control", - "tags": "squares, layout", - "group": "interface", - "content": "\\e67f" - }, - { - "name": "Multi select", - "className": "pt-icon-multi-select", - "tags": "layers, selection", - "group": "interface", - "content": "\\e680" - }, - { - "name": "Direction: left", - "className": "pt-icon-direction-left", - "tags": "pointer, west", - "group": "interface", - "content": "\\e681" - }, - { - "name": "Direction: right", - "className": "pt-icon-direction-right", - "tags": "pointer, east", - "group": "interface", - "content": "\\e682" - }, - { - "name": "Database", - "className": "pt-icon-database", - "tags": "stack, storage", - "group": "data", - "content": "\\e683" - }, - { - "name": "Pie chart", - "className": "pt-icon-pie-chart", - "tags": "circle, part, section", - "group": "data", - "content": "\\e684" - }, - { - "name": "Full circle", - "className": "pt-icon-full-circle", - "tags": "dot, point", - "group": "miscellaneous", - "content": "\\e685" - }, - { - "name": "Square", - "className": "pt-icon-square", - "tags": "empty, outline", - "group": "miscellaneous", - "content": "\\e686" - }, - { - "name": "Print", - "className": "pt-icon-print", - "tags": "printer, paper", - "group": "action", - "content": "\\2399" - }, - { - "name": "Presentation", - "className": "pt-icon-presentation", - "tags": "display, presentation", - "group": "interface", - "content": "\\e687" - }, - { - "name": "Ungroup objects", - "className": "pt-icon-ungroup-objects", - "tags": "split, divide, disconnect, separate", - "group": "action", - "content": "\\e688" - }, - { - "name": "Chat", - "className": "pt-icon-chat", - "tags": "speech, conversation, communication, talk", - "group": "action", - "content": "\\e689" - }, - { - "name": "Comment", - "className": "pt-icon-comment", - "tags": "statement, discussion, opinion, view", - "group": "action", - "content": "\\e68a" - }, - { - "name": "Circle arrow: right", - "className": "pt-icon-circle-arrow-right", - "tags": "direction, east", - "group": "interface", - "content": "\\e68b" - }, - { - "name": "Circle arrow: left", - "className": "pt-icon-circle-arrow-left", - "tags": "direction, west", - "group": "interface", - "content": "\\e68c" - }, - { - "name": "Circle arrow: up", - "className": "pt-icon-circle-arrow-up", - "tags": "direction, north", - "group": "interface", - "content": "\\e68d" - }, - { - "name": "Circle arrow: down", - "className": "pt-icon-circle-arrow-down", - "tags": "direction, south", - "group": "interface", - "content": "\\e68e" - }, - { - "name": "Upload", - "className": "pt-icon-upload", - "tags": "arrow, circle, up, transfer", - "group": "action", - "content": "\\e68f" - }, - { - "name": "Asterisk", - "className": "pt-icon-asterisk", - "tags": "note, symbol, starred, marked", - "group": "miscellaneous", - "content": "\\002a" - }, - { - "name": "Cloud", - "className": "pt-icon-cloud", - "tags": "file, storage, weather", - "group": "file", - "content": "\\2601" - }, - { - "name": "Cloud: download", - "className": "pt-icon-cloud-download", - "tags": "file, storage, transfer", - "group": "file", - "content": "\\e690" - }, - { - "name": "Cloud: upload", - "className": "pt-icon-cloud-upload", - "tags": "file, storage, transfer", - "group": "file", - "content": "\\e691" - }, - { - "name": "Repeat", - "className": "pt-icon-repeat", - "tags": "circle, arrow", - "group": "action", - "content": "\\e692" - }, - { - "name": "Move", - "className": "pt-icon-move", - "tags": "arrows, directions, position, location", - "group": "action", - "content": "\\e693" - }, - { - "name": "Chevron: left", - "className": "pt-icon-chevron-left", - "tags": "arrow, direction", - "group": "interface", - "content": "\\e694" - }, - { - "name": "Chevron: right", - "className": "pt-icon-chevron-right", - "tags": "arrow, direction", - "group": "interface", - "content": "\\e695" - }, - { - "name": "Chevron: up", - "className": "pt-icon-chevron-up", - "tags": "arrow, direction", - "group": "interface", - "content": "\\e696" - }, - { - "name": "Chevron: down", - "className": "pt-icon-chevron-down", - "tags": "arrow, direction", - "group": "interface", - "content": "\\e697" - }, - { - "name": "Random", - "className": "pt-icon-random", - "tags": "arrows, aim", - "group": "interface", - "content": "\\e698" - }, - { - "name": "Fullscreen", - "className": "pt-icon-fullscreen", - "tags": "size, arrows, increase, proportion, width, height", - "group": "media", - "content": "\\e699" - }, - { - "name": "Login", - "className": "pt-icon-log-in", - "tags": "arrow, sign in", - "group": "action", - "content": "\\e69a" - }, - { - "name": "Heart", - "className": "pt-icon-heart", - "tags": "love, like, organ, human, feelings", - "group": "miscellaneous", - "content": "\\2665" - }, - { - "name": "Office", - "className": "pt-icon-office", - "tags": "building, business, location, street", - "group": "miscellaneous", - "content": "\\e69b" - }, - { - "name": "Duplicate", - "className": "pt-icon-duplicate", - "tags": "copy, square, two", - "group": "action", - "content": "\\e69c" - }, - { - "name": "Ban circle", - "className": "pt-icon-ban-circle", - "tags": "circle, refusal", - "group": "action", - "content": "\\e69d" - }, - { - "name": "Camera", - "className": "pt-icon-camera", - "tags": "photograph, picture, video", - "group": "media", - "content": "\\e69e" - }, - { - "name": "Mobile video", - "className": "pt-icon-mobile-video", - "tags": "film, broadcast, television", - "group": "media", - "content": "\\e69f" - }, - { - "name": "Video", - "className": "pt-icon-video", - "tags": "film, broadcast, television", - "group": "media", - "content": "\\e6a0" - }, - { - "name": "Film", - "className": "pt-icon-film", - "tags": "movie, cinema, theatre", - "group": "media", - "content": "\\e6a1" - }, - { - "name": "Settings", - "className": "pt-icon-settings", - "tags": "controls, knobs", - "group": "media", - "content": "\\e6a2" - }, - { - "name": "Volume: off", - "className": "pt-icon-volume-off", - "tags": "audio, video, speaker, music, sound, low", - "group": "media", - "content": "\\e6a3" - }, - { - "name": "Volume: down", - "className": "pt-icon-volume-down", - "tags": "audio, video, speaker, music, sound", - "group": "media", - "content": "\\e6a4" - }, - { - "name": "Volume: up", - "className": "pt-icon-volume-up", - "tags": "audio, video, speaker, music, sound, high", - "group": "media", - "content": "\\e6a5" - }, - { - "name": "Music", - "className": "pt-icon-music", - "tags": "audio, video, note, sound", - "group": "media", - "content": "\\e6a6" - }, - { - "name": "Step backward", - "className": "pt-icon-step-backward", - "tags": "player, media, controls, digital, analogue, film, audio, video", - "group": "media", - "content": "\\e6a7" - }, - { - "name": "Fast backward", - "className": "pt-icon-fast-backward", - "tags": "player, media, controls, digital, analogue, film, audio, video", - "group": "media", - "content": "\\e6a8" - }, - { - "name": "Pause", - "className": "pt-icon-pause", - "tags": "player, media, controls, digital, analogue, film, audio, video", - "group": "media", - "content": "\\e6a9" - }, - { - "name": "Stop", - "className": "pt-icon-stop", - "tags": "player, media, controls, digital, analogue, film, audio, video", - "group": "media", - "content": "\\e6aa" - }, - { - "name": "Play", - "className": "pt-icon-play", - "tags": "player, media, controls, digital, analogue, film, audio, video", - "group": "media", - "content": "\\e6ab" - }, - { - "name": "Fast forward", - "className": "pt-icon-fast-forward", - "tags": "player, media, controls, digital, analogue, film, audio, video", - "group": "media", - "content": "\\e6ac" - }, - { - "name": "Step forward", - "className": "pt-icon-step-forward", - "tags": "player, media, controls, digital, analogue, film, audio, video", - "group": "media", - "content": "\\e6ad" - }, - { - "name": "Eject", - "className": "pt-icon-eject", - "tags": "player, media, controls, digital, analogue, film, audio, video", - "group": "media", - "content": "\\23cf" - }, - { - "name": "Record", - "className": "pt-icon-record", - "tags": "player, media, controls, digital, analogue, film, audio, video", - "group": "media", - "content": "\\e6ae" - }, - { - "name": "Desktop", - "className": "pt-icon-desktop", - "tags": "screen, monitor, display", - "group": "media", - "content": "\\e6af" - }, - { - "name": "Phone", - "className": "pt-icon-phone", - "tags": "telephone, call, ring", - "group": "media", - "content": "\\260e" - }, - { - "name": "Lightbulb", - "className": "pt-icon-lightbulb", - "tags": "idea, glow, lamp", - "group": "miscellaneous", - "content": "\\e6b0" - }, - { - "name": "Glass", - "className": "pt-icon-glass", - "tags": "glassware, drink", - "group": "miscellaneous", - "content": "\\e6b1" - }, - { - "name": "Tint", - "className": "pt-icon-tint", - "tags": "drop, color, coloration, hue", - "group": "media", - "content": "\\e6b2" - }, - { - "name": "Flash", - "className": "pt-icon-flash", - "tags": "light, contrast, photograph, picture", - "group": "media", - "content": "\\e6b3" - }, - { - "name": "Font", - "className": "pt-icon-font", - "tags": "scale, typography, size", - "group": "editor", - "content": "\\e6b4" - }, - { - "name": "Header", - "className": "pt-icon-header", - "tags": "typography, section, layout", - "group": "editor", - "content": "\\e6b5" - }, - { - "name": "Saved", - "className": "pt-icon-saved", - "tags": "document, check mark, tick", - "group": "file", - "content": "\\e6b6" - }, - { - "name": "Floppy disk", - "className": "pt-icon-floppy-disk", - "tags": "save", - "group": "interface", - "content": "\\e6b7" - }, - { - "name": "Book", - "className": "pt-icon-book", - "tags": "pages, album, brochure, manual", - "group": "miscellaneous", - "content": "\\e6b8" - }, - { - "name": "Hand: right", - "className": "pt-icon-hand-right", - "tags": "gesture, direction", - "group": "interface", - "content": "\\e6b9" - }, - { - "name": "Hand: up", - "className": "pt-icon-hand-up", - "tags": "gesture, direction", - "group": "interface", - "content": "\\e6ba" - }, - { - "name": "Hand: down", - "className": "pt-icon-hand-down", - "tags": "gesture, direction", - "group": "interface", - "content": "\\e6bb" - }, - { - "name": "Hand: left", - "className": "pt-icon-hand-left", - "tags": "gesture, direction", - "group": "interface", - "content": "\\e6bc" - }, - { - "name": "Thumbs: up", - "className": "pt-icon-thumbs-up", - "tags": "hand, like, ok", - "group": "interface", - "content": "\\e6bd" - }, - { - "name": "Thumbs: down", - "className": "pt-icon-thumbs-down", - "tags": "hand, dislike, bad", - "group": "interface", - "content": "\\e6be" - }, - { - "name": "Box", - "className": "pt-icon-box", - "tags": "folder, carton, pack", - "group": "file", - "content": "\\e6bf" - }, - { - "name": "Compressed", - "className": "pt-icon-compressed", - "tags": "folder, carton, pack, shrink, wrap, shorten", - "group": "file", - "content": "\\e6c0" - }, - { - "name": "Shopping cart", - "className": "pt-icon-shopping-cart", - "tags": "trolley, mall, online, store, business", - "group": "miscellaneous", - "content": "\\e6c1" - }, - { - "name": "Shop", - "className": "pt-icon-shop", - "tags": "store, business, shopping", - "group": "miscellaneous", - "content": "\\e6c2" - }, - { - "name": "Layout: linear", - "className": "pt-icon-layout-linear", - "tags": "dots, connection, line", - "group": "data", - "content": "\\e6c3" - }, - { - "name": "Undo", - "className": "pt-icon-undo", - "tags": "back, cancel, reverse, revoke,", - "group": "action", - "content": "\\238c" - }, - { - "name": "Redo", - "className": "pt-icon-redo", - "tags": "forward, push", - "group": "action", - "content": "\\e6c4" - }, - { - "name": "Code block", - "className": "pt-icon-code-block", - "tags": "code, markup, language, tag", - "group": "file", - "content": "\\e6c5" - }, - { - "name": "Double caret: vertical", - "className": "pt-icon-double-caret-vertical", - "tags": "sort, arrow, list", - "group": "interface", - "content": "\\e6c6" - }, - { - "name": "Double caret: horizontal", - "className": "pt-icon-double-caret-horizontal", - "tags": "sort, arrow, list", - "group": "interface", - "content": "\\e6c7" - }, - { - "name": "Sort: alphabetical descending", - "className": "pt-icon-sort-alphabetical-desc", - "tags": "order, list, array, arrange", - "group": "action", - "content": "\\e6c8" - }, - { - "name": "Sort: numerical descending", - "className": "pt-icon-sort-numerical-desc", - "tags": "order, list, array, arrange", - "group": "action", - "content": "\\e6c9" - }, - { - "name": "Take action", - "className": "pt-icon-take-action", - "tags": "case, court, deal, gavel", - "group": "action", - "content": "\\e6ca" - }, - { - "name": "Contrast", - "className": "pt-icon-contrast", - "tags": "color, brightness", - "group": "media", - "content": "\\e6cb" - }, - { - "name": "Eye: off", - "className": "pt-icon-eye-off", - "tags": "visibility, hide", - "group": "interface", - "content": "\\e6cc" - }, - { - "name": "Area chart", - "className": "pt-icon-timeline-area-chart", - "tags": "graph, line, diagram", - "group": "data", - "content": "\\e6cd" - }, - { - "name": "Doughnut chart", - "className": "pt-icon-doughnut-chart", - "tags": "circle, section, part, graph", - "group": "data", - "content": "\\e6ce" - }, - { - "name": "Layer", - "className": "pt-icon-layer", - "tags": "zone, level", - "group": "interface", - "content": "\\e6cf" - }, - { - "name": "Grid", - "className": "pt-icon-grid", - "tags": "layout, arrangement", - "group": "data", - "content": "\\e6d0" - }, - { - "name": "Polygon filter", - "className": "pt-icon-polygon-filter", - "tags": "shape, form", - "group": "data", - "content": "\\e6d1" - }, - { - "name": "Add to folder", - "className": "pt-icon-add-to-folder", - "tags": "file, portfolio, case, import", - "group": "file", - "content": "\\e6d2" - }, - { - "name": "Layout: balloon", - "className": "pt-icon-layout-balloon", - "tags": "layout, presentation, arrangement, graph", - "group": "data", - "content": "\\e6d3" - }, - { - "name": "Layout: sorted clusters", - "className": "pt-icon-layout-sorted-clusters", - "tags": "layout, presentation, arrangement, graph", - "group": "data", - "content": "\\e6d4" - }, - { - "name": "Sort: ascending", - "className": "pt-icon-sort-asc", - "tags": "order, list, array, arrange", - "group": "action", - "content": "\\e6d5" - }, - { - "name": "Sort: descending", - "className": "pt-icon-sort-desc", - "tags": "order, list, array, arrange", - "group": "action", - "content": "\\e6d6" - }, - { - "name": "Small cross", - "className": "pt-icon-small-cross", - "tags": "cross mark, fail, delete, no, close, remove", - "group": "action", - "content": "\\e6d7" - }, - { - "name": "Small tick", - "className": "pt-icon-small-tick", - "tags": "mark, sign, ok, approved, success", - "group": "action", - "content": "\\e6d8" - }, - { - "name": "Power", - "className": "pt-icon-power", - "tags": "button, on, off", - "group": "media", - "content": "\\e6d9" - }, - { - "name": "Column layout", - "className": "pt-icon-column-layout", - "tags": "layout, arrangement", - "group": "table", - "content": "\\e6da" - }, - { - "name": "Arrow: top left", - "className": "pt-icon-arrow-top-left", - "tags": "direction, north west", - "group": "interface", - "content": "\\2196" - }, - { - "name": "Arrow: top right", - "className": "pt-icon-arrow-top-right", - "tags": "direction, north east", - "group": "interface", - "content": "\\2197" - }, - { - "name": "Arrow: bottom right", - "className": "pt-icon-arrow-bottom-right", - "tags": "direction, south east", - "group": "interface", - "content": "\\2198" - }, - { - "name": "Arrow: bottom left", - "className": "pt-icon-arrow-bottom-left", - "tags": "direction, south west", - "group": "interface", - "content": "\\2199" - }, - { - "name": "Mugshot", - "className": "pt-icon-mugshot", - "tags": "person, photograph, picture,", - "group": "interface", - "content": "\\e6db" - }, - { - "name": "Headset", - "className": "pt-icon-headset", - "tags": "headphones, call, communication", - "group": "media", - "content": "\\e6dc" - }, - { - "name": "Text highlight", - "className": "pt-icon-text-highlight", - "tags": "selector, content", - "group": "editor", - "content": "\\e6dd" - }, - { - "name": "Hand", - "className": "pt-icon-hand", - "tags": "gesture, fingers", - "group": "interface", - "content": "\\e6de" - }, - { - "name": "Chevron: backward", - "className": "pt-icon-chevron-backward", - "tags": "skip, direction", - "group": "interface", - "content": "\\e6df" - }, - { - "name": "Chevron: forward", - "className": "pt-icon-chevron-forward", - "tags": "skip, direction", - "group": "interface", - "content": "\\e6e0" - }, - { - "name": "Rotate: document", - "className": "pt-icon-rotate-document", - "tags": "turn, anti clockwise", - "group": "editor", - "content": "\\e6e1" - }, - { - "name": "Rotate: page", - "className": "pt-icon-rotate-page", - "tags": "turn, anti clockwise", - "group": "editor", - "content": "\\e6e2" - }, - { - "name": "Badge", - "className": "pt-icon-badge", - "tags": "emblem, symbol, identification, insignia, marker", - "group": "miscellaneous", - "content": "\\e6e3" - }, - { - "name": "Grid view", - "className": "pt-icon-grid-view", - "tags": "layout, arrangement", - "group": "editor", - "content": "\\e6e4" - }, - { - "name": "Function", - "className": "pt-icon-function", - "tags": "math, calculation", - "group": "table", - "content": "\\e6e5" - }, - { - "name": "Waterfall chart", - "className": "pt-icon-waterfall-chart", - "tags": "graph, diagram", - "group": "data", - "content": "\\e6e6" - }, - { - "name": "Stacked chart", - "className": "pt-icon-stacked-chart", - "tags": "bar chart", - "group": "data", - "content": "\\e6e7" - }, - { - "name": "Pulse", - "className": "pt-icon-pulse", - "tags": "medical, life, heartbeat, hospital", - "group": "miscellaneous", - "content": "\\e6e8" - }, - { - "name": "New person", - "className": "pt-icon-new-person", - "tags": "person, human, male, female, character, customer, individual, add", - "group": "interface", - "content": "\\e6e9" - }, - { - "name": "Exclude row", - "className": "pt-icon-exclude-row", - "tags": "delete, remove, table", - "group": "table", - "content": "\\e6ea" - }, - { - "name": "Pivot table", - "className": "pt-icon-pivot-table", - "tags": "rotate, axis", - "group": "table", - "content": "\\e6eb" - }, - { - "name": "Segmented control", - "className": "pt-icon-segmented-control", - "tags": "button, switch, option", - "group": "interface", - "content": "\\e6ec" - }, - { - "name": "Highlight", - "className": "pt-icon-highlight", - "tags": "select, text", - "group": "action", - "content": "\\e6ed" - }, - { - "name": "Filter: list", - "className": "pt-icon-filter-list", - "tags": "filtering, funnel, tube, pipe", - "group": "action", - "content": "\\e6ee" - }, - { - "name": "Cut", - "className": "pt-icon-cut", - "tags": "scissors", - "group": "action", - "content": "\\e6ef" - }, - { - "name": "Annotation", - "className": "pt-icon-annotation", - "tags": "note, comment, edit,", - "group": "editor", - "content": "\\e6f0" - }, - { - "name": "Pivot", - "className": "pt-icon-pivot", - "tags": "rotate, axis", - "group": "action", - "content": "\\e6f1" - }, - { - "name": "Ring", - "className": "pt-icon-ring", - "tags": "empty, circle, selection", - "group": "miscellaneous", - "content": "\\e6f2" - }, - { - "name": "Heat grid", - "className": "pt-icon-heat-grid", - "tags": "chart", - "group": "data", - "content": "\\e6f3" - }, - { - "name": "Gantt chart", - "className": "pt-icon-gantt-chart", - "tags": "bar chart, schedule, project", - "group": "data", - "content": "\\e6f4" - }, - { - "name": "Variable", - "className": "pt-icon-variable", - "tags": "math, calculation", - "group": "table", - "content": "\\e6f5" - }, - { - "name": "Manual", - "className": "pt-icon-manual", - "tags": "guide, instruction", - "group": "interface", - "content": "\\e6f6" - }, - { - "name": "Add row: top", - "className": "pt-icon-add-row-top", - "tags": "table, attach, join", - "group": "table", - "content": "\\e6f7" - }, - { - "name": "Add row: bottom", - "className": "pt-icon-add-row-bottom", - "tags": "table, attach, join", - "group": "table", - "content": "\\e6f8" - }, - { - "name": "Add column: left", - "className": "pt-icon-add-column-left", - "tags": "table, attach, join", - "group": "table", - "content": "\\e6f9" - }, - { - "name": "Add column: right", - "className": "pt-icon-add-column-right", - "tags": "table, attach, join", - "group": "table", - "content": "\\e6fa" - }, - { - "name": "Remove row: top", - "className": "pt-icon-remove-row-top", - "tags": "table, detach, delete", - "group": "table", - "content": "\\e6fb" - }, - { - "name": "Remove row: bottom", - "className": "pt-icon-remove-row-bottom", - "tags": "table, detach, delete", - "group": "table", - "content": "\\e6fc" - }, - { - "name": "Remove column: left", - "className": "pt-icon-remove-column-left", - "tags": "table, detach, delete", - "group": "table", - "content": "\\e6fd" - }, - { - "name": "Remove column: right", - "className": "pt-icon-remove-column-right", - "tags": "table, detach, delete", - "group": "table", - "content": "\\e6fe" - }, - { - "name": "Double chevron: left", - "className": "pt-icon-double-chevron-left", - "tags": "arrows, multiple, direction", - "group": "interface", - "content": "\\e6ff" - }, - { - "name": "Double chevron: right", - "className": "pt-icon-double-chevron-right", - "tags": "arrows, multiple, direction", - "group": "interface", - "content": "\\e701" - }, - { - "name": "Double chevron: up", - "className": "pt-icon-double-chevron-up", - "tags": "arrows, multiple, direction", - "group": "interface", - "content": "\\e702" - }, - { - "name": "Double chevron: down", - "className": "pt-icon-double-chevron-down", - "tags": "arrows, multiple, direction", - "group": "interface", - "content": "\\e703" - }, - { - "name": "Key: control", - "className": "pt-icon-key-control", - "tags": "interface, shortcuts, buttons", - "group": "media", - "content": "\\e704" - }, - { - "name": "Key: command", - "className": "pt-icon-key-command", - "tags": "interface, shortcuts, buttons", - "group": "media", - "content": "\\e705" - }, - { - "name": "Key: shift", - "className": "pt-icon-key-shift", - "tags": "interface, shortcuts, buttons", - "group": "media", - "content": "\\e706" - }, - { - "name": "Key: backspace", - "className": "pt-icon-key-backspace", - "tags": "interface, shortcuts, buttons", - "group": "media", - "content": "\\e707" - }, - { - "name": "Key: delete", - "className": "pt-icon-key-delete", - "tags": "interface, shortcuts, buttons", - "group": "media", - "content": "\\e708" - }, - { - "name": "Key: escape", - "className": "pt-icon-key-escape", - "tags": "interface, shortcuts, buttons", - "group": "media", - "content": "\\e709" - }, - { - "name": "Key: enter", - "className": "pt-icon-key-enter", - "tags": "interface, shortcuts, buttons", - "group": "media", - "content": "\\e70a" - }, - { - "name": "Calculator", - "className": "pt-icon-calculator", - "tags": "math, device, value, numbers, total", - "group": "miscellaneous", - "content": "\\e70b" - }, - { - "name": "Horizontal bar chart", - "className": "pt-icon-horizontal-bar-chart", - "tags": "graph, diagram", - "group": "data", - "content": "\\e70c" - }, - { - "name": "Small plus", - "className": "pt-icon-small-plus", - "tags": "sign, add, maximize, zoom in", - "group": "action", - "content": "\\e70d" - }, - { - "name": "Small minus", - "className": "pt-icon-small-minus", - "tags": "sign, remove, minimize, zoom out", - "group": "action", - "content": "\\e70e" - }, - { - "name": "Step chart", - "className": "pt-icon-step-chart", - "tags": "graph, diagram", - "group": "data", - "content": "\\e70f" - }, - { - "name": "Euro", - "className": "pt-icon-euro", - "tags": "currency, money", - "group": "miscellaneous", - "content": "\\20ac" - }, - { - "name": "Drag handle: vertical", - "className": "pt-icon-drag-handle-vertical", - "tags": "move, pull", - "group": "action", - "content": "\\e715" - }, - { - "name": "Drag handle: horizontal", - "className": "pt-icon-drag-handle-horizontal", - "tags": "move, pull", - "group": "action", - "content": "\\e716" - }, - { - "name": "Mobile phone", - "className": "pt-icon-mobile-phone", - "tags": "cellular, device, call", - "group": "media", - "content": "\\e717" - }, - { - "name": "Sim card", - "className": "pt-icon-sim-card", - "tags": "phone, cellular", - "group": "media", - "content": "\\e718" - }, - { - "name": "Trending: up", - "className": "pt-icon-trending-up", - "tags": "growth, incline, progress", - "group": "data", - "content": "\\e719" - }, - { - "name": "Trending: down", - "className": "pt-icon-trending-down", - "tags": "decrease, decline, loss", - "group": "data", - "content": "\\e71a" - }, - { - "name": "Curved range chart", - "className": "pt-icon-curved-range-chart", - "tags": "graph, diagram", - "group": "data", - "content": "\\e71b" - }, - { - "name": "Vertical bar chart: descending", - "className": "pt-icon-vertical-bar-chart-desc", - "tags": "graph, bar, histogram", - "group": "data", - "content": "\\e71c" - }, - { - "name": "Horizontal bar chart: descending", - "className": "pt-icon-horizontal-bar-chart-desc", - "tags": "graph, bar, histogram", - "group": "data", - "content": "\\e71d" - }, - { - "name": "Document: open", - "className": "pt-icon-document-open", - "tags": "paper, access", - "group": "file", - "content": "\\e71e" - }, - { - "name": "Document: share", - "className": "pt-icon-document-share", - "tags": "paper, send", - "group": "file", - "content": "\\e71f" - }, - { - "name": "Distribution: horizontal", - "className": "pt-icon-horizontal-distribution", - "tags": "alignment, layout, position", - "group": "editor", - "content": "\\e720" - }, - { - "name": "Distribution: vertical", - "className": "pt-icon-vertical-distribution", - "tags": "alignment, layout, position", - "group": "editor", - "content": "\\e721" - }, - { - "name": "Alignment: left", - "className": "pt-icon-alignment-left", - "tags": "layout, position", - "group": "editor", - "content": "\\e722" - }, - { - "name": "Alignment: vertical center", - "className": "pt-icon-alignment-vertical-center", - "tags": "layout, position", - "group": "editor", - "content": "\\e723" - }, - { - "name": "Alignment: right", - "className": "pt-icon-alignment-right", - "tags": "layout, position", - "group": "editor", - "content": "\\e724" - }, - { - "name": "Alignment: top", - "className": "pt-icon-alignment-top", - "tags": "layout, position", - "group": "editor", - "content": "\\e725" - }, - { - "name": "Alignment: horizontal center", - "className": "pt-icon-alignment-horizontal-center", - "tags": "layout, position", - "group": "editor", - "content": "\\e726" - }, - { - "name": "Alignment: bottom", - "className": "pt-icon-alignment-bottom", - "tags": "layout, position", - "group": "editor", - "content": "\\e727" - }, - { - "name": "Git: pull", - "className": "pt-icon-git-pull", - "tags": "github, repository, code, command", - "group": "action", - "content": "\\e728" - }, - { - "name": "Git: merge", - "className": "pt-icon-git-merge", - "tags": "github, repository, code, command", - "group": "action", - "content": "\\e729" - }, - { - "name": "Git: branch", - "className": "pt-icon-git-branch", - "tags": "github, repository, code, command", - "group": "action", - "content": "\\e72a" - }, - { - "name": "Git: commit", - "className": "pt-icon-git-commit", - "tags": "github, repository, code, command", - "group": "action", - "content": "\\e72b" - }, - { - "name": "Git: push", - "className": "pt-icon-git-push", - "tags": "github, repository, code, command", - "group": "action", - "content": "\\e72c" - }, - { - "name": "Build", - "className": "pt-icon-build", - "tags": "hammer, tool", - "group": "action", - "content": "\\e72d" - }, - { - "name": "Symbol: circle", - "className": "pt-icon-symbol-circle", - "tags": "shape, figure", - "group": "interface", - "content": "\\e72e" - }, - { - "name": "Symbol: square", - "className": "pt-icon-symbol-square", - "tags": "shape, figure", - "group": "interface", - "content": "\\e72f" - }, - { - "name": "Symbol: diamond", - "className": "pt-icon-symbol-diamond", - "tags": "shape, figure", - "group": "interface", - "content": "\\e730" - }, - { - "name": "Symbol: cross", - "className": "pt-icon-symbol-cross", - "tags": "shape, figure", - "group": "interface", - "content": "\\e731" - }, - { - "name": "Symbol: triangle up", - "className": "pt-icon-symbol-triangle-up", - "tags": "shape, figure", - "group": "interface", - "content": "\\e732" - }, - { - "name": "Symbol: triangle down", - "className": "pt-icon-symbol-triangle-down", - "tags": "shape, figure", - "group": "interface", - "content": "\\e733" - }, - { - "name": "Wrench", - "className": "pt-icon-wrench", - "tags": "tool, repair", - "group": "miscellaneous", - "content": "\\e734" - }, - { - "name": "Application", - "className": "pt-icon-application", - "tags": "application, browser, windows, platform", - "group": "interface", - "content": "\\e735" - }, - { - "name": "Send to graph", - "className": "pt-icon-send-to-graph", - "tags": "transfer, move", - "group": "action", - "content": "\\e736" - }, - { - "name": "Send to map", - "className": "pt-icon-send-to-map", - "tags": "transfer, move", - "group": "action", - "content": "\\e737" - }, - { - "name": "Join table", - "className": "pt-icon-join-table", - "tags": "combine, attach, connect, link, unite", - "group": "table", - "content": "\\e738" - }, - { - "name": "Derive column", - "className": "pt-icon-derive-column", - "tags": "table, obtain, get, take, develop", - "group": "action", - "content": "\\e739" - }, - { - "name": "Rotate image: left", - "className": "pt-icon-image-rotate-left", - "tags": "picture, turn, alternate", - "group": "media", - "content": "\\e73a" - }, - { - "name": "Rotate image: right", - "className": "pt-icon-image-rotate-right", - "tags": "picture, turn, alternate", - "group": "media", - "content": "\\e73b" - }, - { - "name": "Known vehicle", - "className": "pt-icon-known-vehicle", - "tags": "car, automobile, vehicle, van, drive, ride, distance, navigation, directions", - "group": "interface", - "content": "\\e73c" - }, - { - "name": "Unknown vehicle", - "className": "pt-icon-unknown-vehicle", - "tags": "car, automobile, vehicle, van, drive, ride, distance, navigation, directions", - "group": "interface", - "content": "\\e73d" - }, - { - "name": "Scatter plot", - "className": "pt-icon-scatter-plot", - "tags": "graph, diagram", - "group": "data", - "content": "\\e73e" - }, - { - "name": "Oil field", - "className": "pt-icon-oil-field", - "tags": "fuel, petroleum, gas, well, drilling, pump", - "group": "interface", - "content": "\\e73f" - }, - { - "name": "Rig", - "className": "pt-icon-rig", - "tags": "fuel, petroleum, gas, well, drilling", - "group": "interface", - "content": "\\e740" - }, - { - "name": "New map", - "className": "pt-icon-map-create", - "tags": "map, location, position, geography, world", - "group": "interface", - "content": "\\e741" - }, - { - "name": "Key: option", - "className": "pt-icon-key-option", - "tags": "interface, shortcuts, buttons", - "group": "media", - "content": "\\e742" - }, - { - "name": "List: detail view", - "className": "pt-icon-list-detail-view", - "tags": "agenda, four lines, table", - "group": "table", - "content": "\\e743" - }, - { - "name": "Swap: vertical", - "className": "pt-icon-swap-vertical", - "tags": "direction, position, opposite, inverse", - "group": "interface", - "content": "\\e744" - }, - { - "name": "Swap: horizontal", - "className": "pt-icon-swap-horizontal", - "tags": "direction, position, opposite, inverse", - "group": "interface", - "content": "\\e745" - }, - { - "name": "Numbered list", - "className": "pt-icon-numbered-list", - "tags": "order, list, array, arrange", - "group": "action", - "content": "\\e746" - }, - { - "name": "New grid item", - "className": "pt-icon-new-grid-item", - "tags": "layout, arrangement, add", - "group": "editor", - "content": "\\e747" - }, - { - "name": "Git: repo", - "className": "pt-icon-git-repo", - "tags": "github, repository, code, command", - "group": "action", - "content": "\\e748" - }, - { - "name": "Git: new branch", - "className": "pt-icon-git-new-branch", - "tags": "github, repository, code, command", - "group": "action", - "content": "\\e749" - }, - { - "name": "Manually entered data", - "className": "pt-icon-manually-entered-data", - "tags": "input, human", - "group": "editor", - "content": "\\e74a" - }, - { - "name": "Airplane", - "className": "pt-icon-airplane", - "tags": "flight, jet, travel, trip, transport, take-off", - "group": "interface", - "content": "\\e74b" - }, - { - "name": "Merge columns", - "className": "pt-icon-merge-columns", - "tags": "layout, change, two, combine, unite", - "group": "table", - "content": "\\e74f" - }, - { - "name": "Split columns", - "className": "pt-icon-split-columns", - "tags": "layout, change, two, break, divide", - "group": "table", - "content": "\\e750" - }, - { - "name": "Dashboard", - "className": "pt-icon-dashboard", - "tags": "panel, control, gauge, instrument, meter", - "group": "interface", - "content": "\\e751" - }, - { - "name": "Publish function", - "className": "pt-icon-publish-function", - "tags": "math, calculation, share", - "group": "table", - "content": "\\e752" - }, - { - "name": "Path", - "className": "pt-icon-path", - "tags": "hierarchy, trail, steps", - "group": "interface", - "content": "\\e753" - }, - { - "name": "Moon", - "className": "pt-icon-moon", - "tags": "night, sky, dark", - "group": "miscellaneous", - "content": "\\e754" - }, - { - "name": "Remove column", - "className": "pt-icon-remove-column", - "tags": "table, detach, delete", - "group": "table", - "content": "\\e755" - }, - { - "name": "Numerical", - "className": "pt-icon-numerical", - "tags": "numbers, order, sort, arrange, array", - "group": "action", - "content": "\\e756" - }, - { - "name": "Key: tab", - "className": "pt-icon-key-tab", - "tags": "interface, shortcuts, buttons", - "group": "media", - "content": "\\e757" - }, - { - "name": "Regression chart", - "className": "pt-icon-regression-chart", - "tags": "graph, line, chart", - "group": "data", - "content": "\\e758" - }, - { - "name": "Translate", - "className": "pt-icon-translate", - "tags": "language, convert", - "group": "action", - "content": "\\e759" - }, - { - "name": "Eye: on", - "className": "pt-icon-eye-on", - "tags": "visibility, show", - "group": "interface", - "content": "\\e75a" - }, - { - "name": "Vertical bar chart: ascending", - "className": "pt-icon-vertical-bar-chart-asc", - "tags": "graph, bar, histogram", - "group": "data", - "content": "\\e75b" - }, - { - "name": "Horizontal bar chart: ascending", - "className": "pt-icon-horizontal-bar-chart-asc", - "tags": "graph, bar, histogram", - "group": "data", - "content": "\\e75c" - }, - { - "name": "Grouped bar chart", - "className": "pt-icon-grouped-bar-chart", - "tags": "graph, bar, chart", - "group": "data", - "content": "\\e75d" - }, - { - "name": "Full stacked chart", - "className": "pt-icon-full-stacked-chart", - "tags": "graph, bar, chart", - "group": "data", - "content": "\\e75e" - }, - { - "name": "Endorsed", - "className": "pt-icon-endorsed", - "tags": "tick, mark, sign, ok, approved, success", - "group": "action", - "content": "\\e75f" - }, - { - "name": "Follower", - "className": "pt-icon-follower", - "tags": "person, human, male, female, character, customer, individual, social", - "group": "interface", - "content": "\\e760" - }, - { - "name": "Following", - "className": "pt-icon-following", - "tags": "person, human, male, female, character, customer, individual, social", - "group": "interface", - "content": "\\e761" - }, - { - "name": "Menu", - "className": "pt-icon-menu", - "tags": "navigation, lines, list", - "group": "interface", - "content": "\\e762" - }, - { - "name": "Collapse all", - "className": "pt-icon-collapse-all", - "tags": "arrows, chevron, reduce", - "group": "interface", - "content": "\\e763" - }, - { - "name": "Expand all", - "className": "pt-icon-expand-all", - "tags": "arrows, chevron, enlarge", - "group": "interface", - "content": "\\e764" - }, - { - "name": "Intersection", - "className": "pt-icon-intersection", - "tags": "circles, combine, cross", - "group": "action", - "content": "\\e765" - }, - { - "name": "Blocked person", - "className": "pt-icon-blocked-person", - "tags": "person, human, male, female, character, customer, individual, social, banned, prohibited", - "group": "interface", - "content": "\\e768" - }, - { - "name": "Slash", - "className": "pt-icon-slash", - "tags": "divide, separate", - "group": "action", - "content": "\\e769" - }, - { - "name": "Percentage", - "className": "pt-icon-percentage", - "tags": "modulo, modulus", - "group": "action", - "content": "\\e76a" - }, - { - "name": "Satellite", - "className": "pt-icon-satellite", - "tags": "communication, space", - "group": "miscellaneous", - "content": "\\e76b" - }, - { - "name": "Paragraph", - "className": "pt-icon-paragraph", - "tags": "text, chapter, division, part", - "group": "editor", - "content": "\\e76c" - }, - { - "name": "Bank account", - "className": "pt-icon-bank-account", - "tags": "money, finance, funds", - "group": "miscellaneous", - "content": "\\e76f" - }, - { - "name": "Cell tower", - "className": "pt-icon-cell-tower", - "tags": "signal, communication, radio, mast", - "group": "miscellaneous", - "content": "\\e770" - }, - { - "name": "ID number", - "className": "pt-icon-id-number", - "tags": "identification, person, document", - "group": "miscellaneous", - "content": "\\e771" - }, - { - "name": "IP address", - "className": "pt-icon-ip-address", - "tags": "internet, protocol, number, id, network", - "group": "miscellaneous", - "content": "\\e772" - }, - { - "name": "Eraser", - "className": "pt-icon-eraser", - "tags": "delete, remove", - "group": "editor", - "content": "\\e773" - }, - { - "name": "Issue", - "className": "pt-icon-issue", - "tags": "circle, notification, failure, circle, exclamation mark, sign, problem", - "group": "interface", - "content": "\\e774" - }, - { - "name": "Issue: new", - "className": "pt-icon-issue-new", - "tags": "circle, notification, failure, circle, exclamation mark, sign, problem", - "group": "interface", - "content": "\\e775" - }, - { - "name": "Issue: closed", - "className": "pt-icon-issue-closed", - "tags": "circle, notification, failure, circle, exclamation mark, sign, problem", - "group": "interface", - "content": "\\e776" - }, - { - "name": "Panel: stats", - "className": "pt-icon-panel-stats", - "tags": "sidebar, layout, list", - "group": "table", - "content": "\\e777" - }, - { - "name": "Panel: table", - "className": "pt-icon-panel-table", - "tags": "sidebar, layout, spreadsheet", - "group": "table", - "content": "\\e778" - }, - { - "name": "Tick circle", - "className": "pt-icon-tick-circle", - "tags": "mark, sign, ok, approved, success", - "group": "action", - "content": "\\e779" - }, - { - "name": "Prescription", - "className": "pt-icon-prescription", - "tags": "instruction, direction, medicine, drug, medication, mixture", - "group": "miscellaneous", - "content": "\\e78a" - }, - { - "name": "Prescription: new", - "className": "pt-icon-new-prescription", - "tags": "instruction, direction, medicine, drug, medication, mixture", - "group": "miscellaneous", - "content": "\\e78b" - }, - { - "name": "Filter: keep", - "className": "pt-icon-filter-keep", - "tags": "filtering, funnel, tube, pipe, retain, stay", - "group": "action", - "content": "\\e78c" - }, - { - "name": "Filter: remove", - "className": "pt-icon-filter-remove", - "tags": "filtering, funnel, tube, pipe, delete, detach, discard, dismiss", - "group": "action", - "content": "\\e78d" - }, - { - "name": "Key", - "className": "pt-icon-key", - "tags": "lock, unlock, open, security, password, access", - "group": "interface", - "content": "\\e78e" - }, - { - "name": "Feed: subscribed", - "className": "pt-icon-feed-subscribed", - "tags": "rss, feed, tick, check", - "group": "interface", - "content": "\\e78f" - }, - { - "name": "Widget: button", - "className": "pt-icon-widget-button", - "tags": "element, click, press", - "group": "interface", - "content": "\\e790" - }, - { - "name": "Widget: header", - "className": "pt-icon-widget-header", - "tags": "element, layout, top", - "group": "interface", - "content": "\\e791" - }, - { - "name": "Widget: footer", - "className": "pt-icon-widget-footer", - "tags": "element, layout, bottom", - "group": "interface", - "content": "\\e792" - }, - { - "name": "Header: one", - "className": "pt-icon-header-one", - "tags": "paragraph styling, formatting", - "group": "editor", - "content": "\\e793" - }, - { - "name": "Header: two", - "className": "pt-icon-header-two", - "tags": "paragraph styling, formatting", - "group": "editor", - "content": "\\e794" - } - ]; - -/***/ }), -/* 342 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(1); - var React = __webpack_require__(3); - var CoreExamples = __webpack_require__(343); - var DateExamples = __webpack_require__(378); - var LabsExamples = __webpack_require__(541); - var TableExamples = __webpack_require__(564); - var blueprintDocs_1 = __webpack_require__(298); - var SRC_HREF_BASE = "https://github.com/palantir/blueprint/blob/master/packages"; - exports.reactExamples = {}; - function addPackageExamples(packageName, packageExamples) { - var _loop_1 = function (exampleName) { - var example = packageExamples[exampleName]; - var fileName = exampleName.charAt(0).toLowerCase() + exampleName.slice(1) + ".tsx"; - exports.reactExamples[exampleName] = { - render: function (props) { return React.createElement(example, tslib_1.__assign({}, props, { themeName: blueprintDocs_1.getTheme() })); }, - sourceUrl: [SRC_HREF_BASE, packageName, "examples", fileName].join("/"), - }; - }; - for (var _i = 0, _a = Object.keys(packageExamples); _i < _a.length; _i++) { - var exampleName = _a[_i]; - _loop_1(exampleName); - } - } - addPackageExamples("core", CoreExamples); - addPackageExamples("datetime", DateExamples); - addPackageExamples("labs", LabsExamples); - addPackageExamples("table", TableExamples); - - -/***/ }), -/* 343 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - function __export(m) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; - } - Object.defineProperty(exports, "__esModule", { value: true }); - __export(__webpack_require__(344)); - __export(__webpack_require__(345)); - __export(__webpack_require__(349)); - __export(__webpack_require__(350)); - __export(__webpack_require__(351)); - __export(__webpack_require__(352)); - __export(__webpack_require__(354)); - __export(__webpack_require__(355)); - __export(__webpack_require__(356)); - __export(__webpack_require__(357)); - __export(__webpack_require__(358)); - __export(__webpack_require__(359)); - __export(__webpack_require__(360)); - __export(__webpack_require__(361)); - __export(__webpack_require__(362)); - __export(__webpack_require__(363)); - __export(__webpack_require__(353)); - __export(__webpack_require__(364)); - __export(__webpack_require__(365)); - __export(__webpack_require__(366)); - __export(__webpack_require__(367)); - __export(__webpack_require__(368)); - __export(__webpack_require__(370)); - __export(__webpack_require__(371)); - __export(__webpack_require__(372)); - __export(__webpack_require__(373)); - __export(__webpack_require__(374)); - __export(__webpack_require__(375)); - __export(__webpack_require__(376)); - __export(__webpack_require__(377)); - - -/***/ }), -/* 344 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var AlertExample = (function (_super) { - tslib_1.__extends(AlertExample, _super); - function AlertExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - isOpen: false, - isOpenError: false, - }; - _this.message = (React.createElement("div", null, - React.createElement("strong", null, "filename"), - " was moved to Trash")); - _this.handleOpenError = function () { return _this.setState({ isOpenError: true }); }; - _this.handleCloseError = function () { return _this.setState({ isOpenError: false }); }; - _this.handleOpen = function () { return _this.setState({ isOpen: true }); }; - _this.handleMoveClose = function () { - _this.setState({ isOpen: false }); - _this.toaster.show({ - className: _this.props.themeName, - message: _this.message, - }); - }; - _this.handleClose = function () { return _this.setState({ isOpen: false }); }; - return _this; - } - AlertExample.prototype.componentWillMount = function () { - this.toaster = core_1.Toaster.create(); - }; - AlertExample.prototype.renderExample = function () { - return (React.createElement("div", null, - React.createElement(core_1.Button, { onClick: this.handleOpenError, text: "Open file error alert" }), - React.createElement(core_1.Alert, { className: this.props.themeName, isOpen: this.state.isOpenError, confirmButtonText: "Okay", onConfirm: this.handleCloseError }, - React.createElement("p", null, "Couldn't create the file because the containing folder doesn't exist anymore. You will be redirected to your user folder.")), - React.createElement(core_1.Button, { onClick: this.handleOpen, text: "Open file deletion alert" }), - React.createElement(core_1.Alert, { className: this.props.themeName, intent: core_1.Intent.PRIMARY, isOpen: this.state.isOpen, confirmButtonText: "Move to Trash", cancelButtonText: "Cancel", onConfirm: this.handleMoveClose, onCancel: this.handleClose }, - React.createElement("p", null, - "Are you sure you want to move ", - React.createElement("b", null, "filename"), - " to Trash? You will be able to restore it later, but it will become private to you.")))); - }; - return AlertExample; - }(docs_1.BaseExample)); - exports.AlertExample = AlertExample; - - -/***/ }), -/* 345 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var classNames = __webpack_require__(200); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var intentSelect_1 = __webpack_require__(346); - var ButtonsExample = (function (_super) { - tslib_1.__extends(ButtonsExample, _super); - function ButtonsExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - active: false, - disabled: false, - large: false, - loading: false, - minimal: false, - wiggling: false, - }; - _this.handleActiveChange = docs_1.handleBooleanChange(function (active) { return _this.setState({ active: active }); }); - _this.handleDisabledChange = docs_1.handleBooleanChange(function (disabled) { return _this.setState({ disabled: disabled }); }); - _this.handleLargeChange = docs_1.handleBooleanChange(function (large) { return _this.setState({ large: large }); }); - _this.handleLoadingChange = docs_1.handleBooleanChange(function (loading) { return _this.setState({ loading: loading }); }); - _this.handleMinimalChange = docs_1.handleBooleanChange(function (minimal) { return _this.setState({ minimal: minimal }); }); - _this.handleIntentChange = docs_1.handleNumberChange(function (intent) { return _this.setState({ intent: intent }); }); - _this.beginWiggling = function () { - clearTimeout(_this.wiggleTimeoutId); - _this.setState({ wiggling: true }); - _this.wiggleTimeoutId = setTimeout(function () { return _this.setState({ wiggling: false }); }, 300); - }; - return _this; - } - ButtonsExample.prototype.componentWillUnmount = function () { - clearTimeout(this.wiggleTimeoutId); - }; - ButtonsExample.prototype.renderExample = function () { - var classes = classNames((_a = {}, - _a[core_1.Classes.LARGE] = this.state.large, - _a[core_1.Classes.MINIMAL] = this.state.minimal, - _a)); - return (React.createElement("div", { className: "docs-react-example-row" }, - React.createElement("div", { className: "docs-react-example-column" }, - React.createElement("code", null, "Button"), - React.createElement("br", null), - React.createElement("br", null), - React.createElement(core_1.Button, { className: classNames(classes, { "docs-wiggle": this.state.wiggling }), disabled: this.state.disabled, active: this.state.active, iconName: "refresh", intent: this.state.intent, loading: this.state.loading, onClick: this.beginWiggling, text: "Click to wiggle" })), - React.createElement("div", { className: "docs-react-example-column" }, - React.createElement("code", null, "AnchorButton"), - React.createElement("br", null), - React.createElement("br", null), - React.createElement(core_1.AnchorButton, { className: classes, disabled: this.state.disabled, active: this.state.active, href: "./", iconName: "duplicate", intent: this.state.intent, loading: this.state.loading, rightIconName: "share", target: "_blank", text: "Duplicate this page" })))); - var _a; - }; - ButtonsExample.prototype.renderOptions = function () { - return [ - [ - React.createElement("label", { className: core_1.Classes.LABEL, key: "label" }, "Modifiers"), - React.createElement(core_1.Switch, { checked: this.state.active, key: "active", label: "Active", onChange: this.handleActiveChange }), - React.createElement(core_1.Switch, { checked: this.state.disabled, key: "disabled", label: "Disabled", onChange: this.handleDisabledChange }), - React.createElement(core_1.Switch, { checked: this.state.large, key: "large", label: "Large", onChange: this.handleLargeChange }), - React.createElement(core_1.Switch, { checked: this.state.loading, key: "loading", label: "Loading", onChange: this.handleLoadingChange }), - React.createElement(core_1.Switch, { checked: this.state.minimal, key: "minimal", label: "Minimal", onChange: this.handleMinimalChange }), - ], [ - React.createElement(intentSelect_1.IntentSelect, { intent: this.state.intent, key: "intent", onChange: this.handleIntentChange }), - ], - ]; - }; - return ButtonsExample; - }(docs_1.BaseExample)); - exports.ButtonsExample = ButtonsExample; - - -/***/ }), -/* 346 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var Classes = __webpack_require__(347); - var intent_1 = __webpack_require__(348); - var React = __webpack_require__(3); - var INTENTS = [ - { label: "None", value: intent_1.Intent.NONE }, - { label: "Primary", value: intent_1.Intent.PRIMARY }, - { label: "Success", value: intent_1.Intent.SUCCESS }, - { label: "Warning", value: intent_1.Intent.WARNING }, - { label: "Danger", value: intent_1.Intent.DANGER }, - ]; - exports.IntentSelect = function (props) { return (React.createElement("label", { className: Classes.LABEL }, - "Intent", - React.createElement("div", { className: Classes.SELECT }, - React.createElement("select", { value: props.intent, onChange: props.onChange }, INTENTS.map(function (opt, i) { return React.createElement("option", { key: i, value: opt.value }, opt.label); }))))); }; - - -/***/ }), -/* 347 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var intent_1 = __webpack_require__(348); - exports.DARK = "pt-dark"; - exports.ACTIVE = "pt-active"; - exports.MINIMAL = "pt-minimal"; - exports.DISABLED = "pt-disabled"; - exports.SMALL = "pt-small"; - exports.LARGE = "pt-large"; - exports.LOADING = "pt-loading"; - exports.INTERACTIVE = "pt-interactive"; - exports.ALIGN_LEFT = "pt-align-left"; - exports.ALIGN_RIGHT = "pt-align-right"; - exports.INLINE = "pt-inline"; - exports.FILL = "pt-fill"; - exports.FIXED = "pt-fixed"; - exports.FIXED_TOP = "pt-fixed-top"; - exports.VERTICAL = "pt-vertical"; - exports.ROUND = "pt-round"; - exports.TEXT_MUTED = "pt-text-muted"; - exports.TEXT_OVERFLOW_ELLIPSIS = "pt-text-overflow-ellipsis"; - exports.UI_TEXT_LARGE = "pt-ui-text-large"; - exports.ALERT = "pt-alert"; - exports.ALERT_BODY = "pt-alert-body"; - exports.ALERT_CONTENTS = "pt-alert-contents"; - exports.ALERT_FOOTER = "pt-alert-footer"; - exports.BREADCRUMB = "pt-breadcrumb"; - exports.BREADCRUMB_CURRENT = "pt-breadcrumb-current"; - exports.BREADCRUMBS = "pt-breadcrumbs"; - exports.BREADCRUMBS_COLLAPSED = "pt-breadcrumbs-collapsed"; - exports.BUTTON = "pt-button"; - exports.BUTTON_GROUP = "pt-button-group"; - exports.CALLOUT = "pt-callout"; - exports.CARD = "pt-card"; - exports.COLLAPSE = "pt-collapse"; - exports.COLLAPSIBLE_LIST = "pt-collapse-list"; - exports.CONTEXT_MENU = "pt-context-menu"; - exports.CONTEXT_MENU_POPOVER_TARGET = "pt-context-menu-popover-target"; - exports.CONTROL = "pt-control"; - exports.CONTROL_GROUP = "pt-control-group"; - exports.CONTROL_INDICATOR = "pt-control-indicator"; - exports.DIALOG = "pt-dialog"; - exports.DIALOG_CONTAINER = "pt-dialog-container"; - exports.DIALOG_BODY = "pt-dialog-body"; - exports.DIALOG_CLOSE_BUTTON = "pt-dialog-close-button"; - exports.DIALOG_FOOTER = "pt-dialog-footer"; - exports.DIALOG_FOOTER_ACTIONS = "pt-dialog-footer-actions"; - exports.DIALOG_HEADER = "pt-dialog-header"; - exports.EDITABLE_TEXT = "pt-editable-text"; - exports.ELEVATION_0 = "pt-elevation-0"; - exports.ELEVATION_1 = "pt-elevation-1"; - exports.ELEVATION_2 = "pt-elevation-2"; - exports.ELEVATION_3 = "pt-elevation-3"; - exports.ELEVATION_4 = "pt-elevation-4"; - exports.INPUT = "pt-input"; - exports.INPUT_GROUP = "pt-input-group"; - exports.CHECKBOX = "pt-checkbox"; - exports.RADIO = "pt-radio"; - exports.SWITCH = "pt-switch"; - exports.FILE_UPLOAD = "pt-file-upload"; - exports.FILE_UPLOAD_INPUT = "pt-file-upload-input"; - exports.INTENT_PRIMARY = "pt-intent-primary"; - exports.INTENT_SUCCESS = "pt-intent-success"; - exports.INTENT_WARNING = "pt-intent-warning"; - exports.INTENT_DANGER = "pt-intent-danger"; - exports.LABEL = "pt-label"; - exports.FORM_GROUP = "pt-form-group"; - exports.FORM_CONTENT = "pt-form-content"; - exports.FORM_HELPER_TEXT = "pt-form-helper-text"; - exports.MENU = "pt-menu"; - exports.MENU_ITEM = "pt-menu-item"; - exports.MENU_ITEM_LABEL = "pt-menu-item-label"; - exports.MENU_SUBMENU = "pt-submenu"; - exports.MENU_DIVIDER = "pt-menu-divider"; - exports.MENU_HEADER = "pt-menu-header"; - exports.NAVBAR = "pt-navbar"; - exports.NAVBAR_GROUP = "pt-navbar-group"; - exports.NAVBAR_HEADING = "pt-navbar-heading"; - exports.NAVBAR_DIVIDER = "pt-navbar-divider"; - exports.NON_IDEAL_STATE = "pt-non-ideal-state"; - exports.NON_IDEAL_STATE_ACTION = "pt-non-ideal-state-action"; - exports.NON_IDEAL_STATE_DESCRIPTION = "pt-non-ideal-state-description"; - exports.NON_IDEAL_STATE_ICON = "pt-non-ideal-state-icon"; - exports.NON_IDEAL_STATE_TITLE = "pt-non-ideal-state-title"; - exports.NON_IDEAL_STATE_VISUAL = "pt-non-ideal-state-visual"; - exports.NUMERIC_INPUT = "pt-numeric-input"; - exports.OVERLAY = "pt-overlay"; - exports.OVERLAY_BACKDROP = "pt-overlay-backdrop"; - exports.OVERLAY_CONTENT = "pt-overlay-content"; - exports.OVERLAY_INLINE = "pt-overlay-inline"; - exports.OVERLAY_OPEN = "pt-overlay-open"; - exports.OVERLAY_SCROLL_CONTAINER = "pt-overlay-scroll-container"; - exports.POPOVER = "pt-popover"; - exports.POPOVER_ARROW = "pt-popover-arrow"; - exports.POPOVER_BACKDROP = "pt-popover-backdrop"; - exports.POPOVER_CONTENT = "pt-popover-content"; - exports.POPOVER_DISMISS = "pt-popover-dismiss"; - exports.POPOVER_DISMISS_OVERRIDE = "pt-popover-dismiss-override"; - exports.POPOVER_OPEN = "pt-popover-open"; - exports.POPOVER_TARGET = "pt-popover-target"; - exports.TRANSITION_CONTAINER = "pt-transition-container"; - exports.PROGRESS_BAR = "pt-progress-bar"; - exports.PROGRESS_METER = "pt-progress-meter"; - exports.PROGRESS_NO_STRIPES = "pt-no-stripes"; - exports.PROGRESS_NO_ANIMATION = "pt-no-animation"; - exports.PORTAL = "pt-portal"; - exports.SELECT = "pt-select"; - exports.SKELETON = "pt-skeleton"; - exports.SLIDER = "pt-slider"; - exports.SLIDER_HANDLE = exports.SLIDER + "-handle"; - exports.SLIDER_LABEL = exports.SLIDER + "-label"; - exports.RANGE_SLIDER = "pt-range-slider"; - exports.SPINNER = "pt-spinner"; - exports.SVG_SPINNER = "pt-svg-spinner"; - exports.TAB = "pt-tab"; - exports.TAB_LIST = "pt-tab-list"; - exports.TAB_PANEL = "pt-tab-panel"; - exports.TABS = "pt-tabs"; - exports.TABLE = "pt-table"; - exports.TABLE_CONDENSED = "pt-condensed"; - exports.TABLE_STRIPED = "pt-striped"; - exports.TABLE_BORDERED = "pt-bordered"; - exports.TAG = "pt-tag"; - exports.TAG_REMOVABLE = "pt-tag-removable"; - exports.TAG_REMOVE = "pt-tag-remove"; - exports.TOAST = "pt-toast"; - exports.TOAST_CONTAINER = "pt-toast-container"; - exports.TOAST_MESSAGE = "pt-toast-message"; - exports.TOOLTIP = "pt-tooltip"; - exports.TREE = "pt-tree"; - exports.TREE_NODE = "pt-tree-node"; - exports.TREE_NODE_CARET = "pt-tree-node-caret"; - exports.TREE_NODE_CARET_CLOSED = "pt-tree-node-caret-closed"; - exports.TREE_NODE_CARET_NONE = "pt-tree-node-caret-none"; - exports.TREE_NODE_CARET_OPEN = "pt-tree-node-caret-open"; - exports.TREE_NODE_CONTENT = "pt-tree-node-content"; - exports.TREE_NODE_EXPANDED = "pt-tree-node-expanded"; - exports.TREE_NODE_ICON = "pt-tree-node-icon"; - exports.TREE_NODE_LABEL = "pt-tree-node-label"; - exports.TREE_NODE_LIST = "pt-tree-node-list"; - exports.TREE_NODE_SECONDARY_LABEL = "pt-tree-node-secondary-label"; - exports.TREE_NODE_SELECTED = "pt-tree-node-selected"; - exports.TREE_ROOT = "pt-tree-root"; - exports.ICON = "pt-icon"; - exports.ICON_STANDARD = "pt-icon-standard"; - exports.ICON_LARGE = "pt-icon-large"; - function iconClass(iconName) { - if (iconName == null) { - return undefined; - } - return iconName.indexOf("pt-icon-") === 0 ? iconName : "pt-icon-" + iconName; - } - exports.iconClass = iconClass; - function intentClass(intent) { - if (intent === void 0) { intent = intent_1.Intent.NONE; } - if (intent === intent_1.Intent.NONE || intent_1.Intent[intent] == null) { - return undefined; - } - return "pt-intent-" + intent_1.Intent[intent].toLowerCase(); - } - exports.intentClass = intentClass; - - -/***/ }), -/* 348 */ -/***/ (function(module, exports) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var Intent; - (function (Intent) { - Intent[Intent["NONE"] = -1] = "NONE"; - Intent[Intent["PRIMARY"] = 0] = "PRIMARY"; - Intent[Intent["SUCCESS"] = 1] = "SUCCESS"; - Intent[Intent["WARNING"] = 2] = "WARNING"; - Intent[Intent["DANGER"] = 3] = "DANGER"; - })(Intent = exports.Intent || (exports.Intent = {})); - - -/***/ }), -/* 349 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var CollapseExample = (function (_super) { - tslib_1.__extends(CollapseExample, _super); - function CollapseExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - isOpen: false, - }; - _this.handleClick = function () { - _this.setState({ isOpen: !_this.state.isOpen }); - }; - return _this; - } - CollapseExample.prototype.renderExample = function () { - return (React.createElement("div", null, - React.createElement(core_1.Button, { onClick: this.handleClick }, - this.state.isOpen ? "Hide" : "Show", - " build logs"), - React.createElement(core_1.Collapse, { isOpen: this.state.isOpen }, - React.createElement("pre", null, - "[11:53:30] Finished 'typescript-bundle-blueprint' after 769 ms", - React.createElement("br", null), - "[11:53:30] Starting 'typescript-typings-blueprint'...", - React.createElement("br", null), - "[11:53:30] Finished 'typescript-typings-blueprint' after 198 ms", - React.createElement("br", null), - "[11:53:30] write ./blueprint.css", - React.createElement("br", null), - "[11:53:30] Finished 'sass-compile-blueprint' after 2.84 s")))); - }; - return CollapseExample; - }(docs_1.BaseExample)); - exports.CollapseExample = CollapseExample; - - -/***/ }), -/* 350 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var classNames = __webpack_require__(200); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var COLLAPSE_FROM_RADIOS = [ - { className: core_1.Classes.INLINE, label: "Start", value: core_1.CollapseFrom.START.toString() }, - { className: core_1.Classes.INLINE, label: "End", value: core_1.CollapseFrom.END.toString() }, - ]; - var CollapsibleListExample = (function (_super) { - tslib_1.__extends(CollapsibleListExample, _super); - function CollapsibleListExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - collapseFrom: core_1.CollapseFrom.START, - visibleItemCount: 3, - }; - _this.handleChangeCollapse = docs_1.handleNumberChange(function (collapseFrom) { return _this.setState({ collapseFrom: collapseFrom }); }); - _this.handleChangeCount = function (visibleItemCount) { return _this.setState({ visibleItemCount: visibleItemCount }); }; - return _this; - } - CollapsibleListExample.prototype.renderExample = function () { - return (React.createElement(core_1.CollapsibleList, tslib_1.__assign({}, this.state, { className: core_1.Classes.BREADCRUMBS, dropdownTarget: React.createElement("span", { className: core_1.Classes.BREADCRUMBS_COLLAPSED }), renderVisibleItem: this.renderBreadcrumb }), - React.createElement(core_1.MenuItem, { iconName: "folder-close", text: "All files", href: "#" }), - React.createElement(core_1.MenuItem, { iconName: "folder-close", text: "Users", href: "#" }), - React.createElement(core_1.MenuItem, { iconName: "folder-close", text: "Jane Person", href: "#" }), - React.createElement(core_1.MenuItem, { iconName: "folder-close", text: "My documents", href: "#" }), - React.createElement(core_1.MenuItem, { iconName: "folder-close", text: "Classy dayjob", href: "#" }), - React.createElement(core_1.MenuItem, { iconName: "document", text: "How to crush it" }))); - }; - CollapsibleListExample.prototype.renderOptions = function () { - return [ - [ - React.createElement("label", { className: core_1.Classes.LABEL, key: "visible-label" }, "Visible items"), - React.createElement(core_1.Slider, { key: "visible", max: 6, onChange: this.handleChangeCount, showTrackFill: false, value: this.state.visibleItemCount }), - ], [ - React.createElement(core_1.RadioGroup, { key: "collapseFrom", name: "collapseFrom", label: "Collapse from", onChange: this.handleChangeCollapse, options: COLLAPSE_FROM_RADIOS, selectedValue: this.state.collapseFrom.toString() }), - ], - ]; - }; - CollapsibleListExample.prototype.renderBreadcrumb = function (props) { - if (props.href != null) { - return React.createElement("a", { className: core_1.Classes.BREADCRUMB }, props.text); - } - else { - return React.createElement("span", { className: classNames(core_1.Classes.BREADCRUMB, core_1.Classes.BREADCRUMB_CURRENT) }, props.text); - } - }; - return CollapsibleListExample; - }(docs_1.BaseExample)); - exports.CollapsibleListExample = CollapsibleListExample; - - -/***/ }), -/* 351 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var CheckboxExample = (function (_super) { - tslib_1.__extends(CheckboxExample, _super); - function CheckboxExample() { - return _super !== null && _super.apply(this, arguments) || this; - } - CheckboxExample.prototype.renderExample = function () { - return (React.createElement("div", null, - React.createElement("label", { className: core_1.Classes.LABEL }, "Assign responsibility"), - React.createElement(core_1.Checkbox, { label: "Gilad Gray", defaultIndeterminate: true }), - React.createElement(core_1.Checkbox, { label: "Jason Killian" }), - React.createElement(core_1.Checkbox, { label: "Antoine Llorca" }))); - }; - return CheckboxExample; - }(docs_1.BaseExample)); - exports.CheckboxExample = CheckboxExample; - var SwitchExample = (function (_super) { - tslib_1.__extends(SwitchExample, _super); - function SwitchExample() { - return _super !== null && _super.apply(this, arguments) || this; - } - SwitchExample.prototype.renderExample = function () { - return (React.createElement("div", null, - React.createElement("label", { className: core_1.Classes.LABEL }, "Privacy setting"), - React.createElement(core_1.Switch, { labelElement: React.createElement("strong", null, "Enabled") }), - React.createElement(core_1.Switch, { labelElement: React.createElement("em", null, "Public") }), - React.createElement(core_1.Switch, { labelElement: React.createElement("u", null, "Cooperative"), defaultChecked: true }), - React.createElement("small", null, - "This example uses ", - React.createElement("code", null, "labelElement"), - " to demonstrate JSX labels."))); - }; - return SwitchExample; - }(docs_1.BaseExample)); - exports.SwitchExample = SwitchExample; - var RadioExample = (function (_super) { - tslib_1.__extends(RadioExample, _super); - function RadioExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = {}; - _this.handleRadioChange = docs_1.handleStringChange(function (radioValue) { return _this.setState({ radioValue: radioValue }); }); - return _this; - } - RadioExample.prototype.renderExample = function () { - return (React.createElement(core_1.RadioGroup, { label: "Determine lunch", name: "group", onChange: this.handleRadioChange, selectedValue: this.state.radioValue }, - React.createElement(core_1.Radio, { label: "Soup", value: "one" }), - React.createElement(core_1.Radio, { label: "Salad", value: "two" }), - React.createElement(core_1.Radio, { label: "Sandwich", value: "three" }))); - }; - return RadioExample; - }(docs_1.BaseExample)); - exports.RadioExample = RadioExample; - - -/***/ }), -/* 352 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var overlayExample_1 = __webpack_require__(353); - var DialogExample = (function (_super) { - tslib_1.__extends(DialogExample, _super); - function DialogExample() { - return _super !== null && _super.apply(this, arguments) || this; - } - DialogExample.prototype.renderExample = function () { - return (React.createElement("div", { className: "docs-dialog-example" }, - React.createElement(core_1.Button, { onClick: this.handleOpen }, "Show dialog"), - React.createElement(core_1.Dialog, tslib_1.__assign({ className: this.props.themeName, iconName: "inbox", onClose: this.handleClose, title: "Dialog header" }, this.state), - React.createElement("div", { className: core_1.Classes.DIALOG_BODY }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sagittis odio neque, eget aliquam eros consectetur in. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nulla consequat justo in enim aliquam, eget convallis nibh gravida. Nunc quis consectetur enim. Curabitur tincidunt vestibulum pulvinar. Suspendisse vel libero justo. Ut feugiat pharetra commodo. Morbi ullamcorper enim nec dolor aliquam, eu maximus turpis elementum. Morbi tristique laoreet ipsum. Nulla sit amet nisl posuere, sollicitudin ex eget, faucibus neque. Cras malesuada nisl vel lectus vehicula fringilla. Fusce vel facilisis tellus. Integer porta mollis nibh, nec viverra magna cursus non. Nulla consectetur dui nec fringilla dignissim. Praesent in tempus odio. Donec sollicitudin sit amet eros eu sollicitudin. Etiam convallis ex felis, nec pharetra felis sagittis ut. Suspendisse aliquam purus sed sollicitudin aliquet. Duis sollicitudin risus sed orci elementum dignissim. Phasellus sed erat fermentum, laoreet mi posuere, mollis quam. Ut vestibulum dictum lorem, vel faucibus libero varius id. Donec iaculis efficitur nisl. Aliquam a lectus ac massa suscipit commodo."), - React.createElement("div", { className: core_1.Classes.DIALOG_FOOTER }, - React.createElement("div", { className: core_1.Classes.DIALOG_FOOTER_ACTIONS }, - React.createElement(core_1.Button, null, "Secondary"), - React.createElement(core_1.Tooltip, { content: "This button is hooked up to close the dialog.", inline: true }, - React.createElement(core_1.Button, { className: "pt-intent-primary", onClick: this.handleClose }, "Primary"))))))); - }; - DialogExample.prototype.renderOptions = function () { - var options = _super.prototype.renderOptions.call(this); - options[1].splice(2, 1); - return options; - }; - return DialogExample; - }(overlayExample_1.OverlayExample)); - exports.DialogExample = DialogExample; - - -/***/ }), -/* 353 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var classNames = __webpack_require__(200); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var OVERLAY_EXAMPLE_CLASS = "docs-overlay-example-transition"; - var OverlayExample = (function (_super) { - tslib_1.__extends(OverlayExample, _super); - function OverlayExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - autoFocus: true, - canEscapeKeyClose: true, - canOutsideClickClose: true, - enforceFocus: true, - hasBackdrop: true, - inline: false, - isOpen: false, - }; - _this.refHandlers = { - button: function (ref) { return _this.button = ref; }, - }; - _this.handleAutoFocusChange = docs_1.handleBooleanChange(function (autoFocus) { return _this.setState({ autoFocus: autoFocus }); }); - _this.handleBackdropChange = docs_1.handleBooleanChange(function (hasBackdrop) { return _this.setState({ hasBackdrop: hasBackdrop }); }); - _this.handleEnforceFocusChange = docs_1.handleBooleanChange(function (enforceFocus) { return _this.setState({ enforceFocus: enforceFocus }); }); - _this.handleEscapeKeyChange = docs_1.handleBooleanChange(function (canEscapeKeyClose) { return _this.setState({ canEscapeKeyClose: canEscapeKeyClose }); }); - _this.handleInlineChange = docs_1.handleBooleanChange(function (inline) { return _this.setState({ inline: inline }); }); - _this.handleOutsideClickChange = docs_1.handleBooleanChange(function (val) { return _this.setState({ canOutsideClickClose: val }); }); - _this.handleOpen = function () { return _this.setState({ isOpen: true }); }; - _this.handleClose = function () { return _this.setState({ isOpen: false }); }; - _this.focusButton = function () { return _this.button.focus(); }; - return _this; - } - OverlayExample.prototype.renderExample = function () { - var classes = classNames(core_1.Classes.CARD, core_1.Classes.ELEVATION_4, OVERLAY_EXAMPLE_CLASS, this.props.themeName); - return (React.createElement("div", { className: "docs-dialog-example" }, - React.createElement("button", { className: "pt-button", onClick: this.handleOpen, ref: this.refHandlers.button }, "Show overlay"), - React.createElement(core_1.Overlay, tslib_1.__assign({ onClose: this.handleClose, className: core_1.Classes.OVERLAY_SCROLL_CONTAINER }, this.state), - React.createElement("div", { className: classes }, - React.createElement("h3", null, "I'm an Overlay!"), - React.createElement("p", null, "This is a simple container with some inline styles to position it on the screen. Its CSS transitions are customized for this example only to demonstrate how easily custom transitions can be implemented."), - React.createElement("p", null, - "Click the right button below to transfer focus to the \"Show overlay\" trigger button outside of this overlay. If persistent focus is enabled, focus will be constrained to the overlay. Use the ", - React.createElement("code", null, "tab"), - " key to move to the next focusable element to illustrate this effect."), - React.createElement("br", null), - React.createElement(core_1.Button, { intent: core_1.Intent.DANGER, onClick: this.handleClose }, "Close"), - React.createElement(core_1.Button, { onClick: this.focusButton, style: { float: "right" } }, "Focus button"))))); - }; - OverlayExample.prototype.renderOptions = function () { - var _a = this.state, hasBackdrop = _a.hasBackdrop, inline = _a.inline; - return [ - [ - React.createElement(core_1.Switch, { checked: this.state.autoFocus, key: "autoFocus", label: "Auto focus", onChange: this.handleAutoFocusChange }), - React.createElement(core_1.Switch, { checked: this.state.enforceFocus, key: "enforceFocus", label: "Enforce focus", onChange: this.handleEnforceFocusChange }), - React.createElement(core_1.Switch, { checked: inline, key: "inline", label: "Render inline", onChange: this.handleInlineChange }), - ], [ - React.createElement(core_1.Switch, { checked: this.state.canOutsideClickClose, key: "click", label: "Click outside to close", onChange: this.handleOutsideClickChange }), - React.createElement(core_1.Switch, { checked: this.state.canEscapeKeyClose, key: "escape", label: "Escape key to close", onChange: this.handleEscapeKeyChange }), - React.createElement(core_1.Switch, { checked: hasBackdrop, key: "backdrop", label: "Has backdrop", onChange: this.handleBackdropChange }), - ], - ]; - }; - return OverlayExample; - }(docs_1.BaseExample)); - exports.OverlayExample = OverlayExample; - - -/***/ }), -/* 354 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var classNames = __webpack_require__(200); - var PureRender = __webpack_require__(201); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var GraphNode = (function (_super) { - tslib_1.__extends(GraphNode, _super); - function GraphNode() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { isContextMenuOpen: false }; - _this.showContextMenu = function (e) { - e.preventDefault(); - core_1.ContextMenu.show(React.createElement(core_1.Menu, null, - React.createElement(core_1.MenuItem, { iconName: "search-around", text: "Search around..." }), - React.createElement(core_1.MenuItem, { iconName: "search", text: "Object viewer" }), - React.createElement(core_1.MenuItem, { iconName: "graph-remove", text: "Remove" }), - React.createElement(core_1.MenuItem, { iconName: "group-objects", text: "Group" }), - React.createElement(core_1.MenuDivider, null), - React.createElement(core_1.MenuItem, { disabled: true, text: "Clicked on node" })), { left: e.clientX, top: e.clientY }, function () { return _this.setState({ isContextMenuOpen: false }); }); - _this.setState({ isContextMenuOpen: true }); - }; - return _this; - } - GraphNode.prototype.render = function () { - var classes = classNames("context-menu-node", { "context-menu-open": this.state.isContextMenuOpen }); - return React.createElement("div", { className: classes, onContextMenu: this.showContextMenu }); - }; - return GraphNode; - }(React.Component)); - GraphNode = tslib_1.__decorate([ - PureRender - ], GraphNode); - var ContextMenuExample = (function (_super) { - tslib_1.__extends(ContextMenuExample, _super); - function ContextMenuExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.className = "docs-context-menu-example"; - return _this; - } - ContextMenuExample.prototype.renderContextMenu = function (e) { - return React.createElement(core_1.Menu, null, - React.createElement(core_1.MenuItem, { iconName: "select", text: "Select all" }), - React.createElement(core_1.MenuItem, { iconName: "insert", text: "Insert..." }, - React.createElement(core_1.MenuItem, { iconName: "new-object", text: "Object" }), - React.createElement(core_1.MenuItem, { iconName: "new-text-box", text: "Text box" }), - React.createElement(core_1.MenuItem, { iconName: "star", text: "Astral body" })), - React.createElement(core_1.MenuItem, { iconName: "layout", text: "Layout..." }, - React.createElement(core_1.MenuItem, { iconName: "layout-auto", text: "Auto" }), - React.createElement(core_1.MenuItem, { iconName: "layout-circle", text: "Circle" }), - React.createElement(core_1.MenuItem, { iconName: "layout-grid", text: "Grid" })), - React.createElement(core_1.MenuDivider, null), - React.createElement(core_1.MenuItem, { disabled: true, text: "Clicked at (" + e.clientX + ", " + e.clientY + ")" })); - }; - ContextMenuExample.prototype.renderExample = function () { - return React.createElement(GraphNode, null); - }; - ContextMenuExample.prototype.renderOptions = function () { - return React.createElement("span", null, "Right-click on node or background."); - }; - return ContextMenuExample; - }(docs_1.BaseExample)); - ContextMenuExample = tslib_1.__decorate([ - core_1.ContextMenuTarget - ], ContextMenuExample); - exports.ContextMenuExample = ContextMenuExample; - - -/***/ }), -/* 355 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var DropdownMenuExample = (function (_super) { - tslib_1.__extends(DropdownMenuExample, _super); - function DropdownMenuExample() { - return _super !== null && _super.apply(this, arguments) || this; - } - DropdownMenuExample.prototype.renderExample = function () { - var compassMenu = (React.createElement(core_1.Menu, null, - React.createElement(core_1.MenuItem, { iconName: "graph", text: "Graph" }), - React.createElement(core_1.MenuItem, { iconName: "map", text: "Map" }), - React.createElement(core_1.MenuItem, { iconName: "th", text: "Table", shouldDismissPopover: false }), - React.createElement(core_1.MenuItem, { iconName: "zoom-to-fit", text: "Nucleus", disabled: true }), - React.createElement(core_1.MenuDivider, null), - React.createElement(core_1.MenuItem, { iconName: "cog", text: "Settings..." }, - React.createElement(core_1.MenuItem, { iconName: "add", text: "Add new application", disabled: true }), - React.createElement(core_1.MenuItem, { iconName: "remove", text: "Remove application" })))); - return (React.createElement(core_1.Popover, { content: compassMenu, position: core_1.Position.RIGHT_BOTTOM }, - React.createElement("button", { className: "pt-button pt-icon-share", type: "button" }, "Open in..."))); - }; - return DropdownMenuExample; - }(docs_1.BaseExample)); - exports.DropdownMenuExample = DropdownMenuExample; - - -/***/ }), -/* 356 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var classNames = __webpack_require__(200); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var intentSelect_1 = __webpack_require__(346); - var INPUT_ID = "EditableTextExample-max-length"; - var EditableTextExample = (function (_super) { - tslib_1.__extends(EditableTextExample, _super); - function EditableTextExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - confirmOnEnterKey: false, - report: "", - selectAllOnFocus: false, - }; - _this.handleIntentChange = docs_1.handleNumberChange(function (intent) { return _this.setState({ intent: intent }); }); - _this.toggleSelectAll = docs_1.handleBooleanChange(function (selectAllOnFocus) { return _this.setState({ selectAllOnFocus: selectAllOnFocus }); }); - _this.toggleSwap = docs_1.handleBooleanChange(function (confirmOnEnterKey) { return _this.setState({ confirmOnEnterKey: confirmOnEnterKey }); }); - _this.handleReportChange = function (report) { return _this.setState({ report: report }); }; - _this.handleMaxLengthChange = function (maxLength) { - if (maxLength === 0) { - _this.setState({ maxLength: undefined }); - } - else { - var report = _this.state.report.slice(0, maxLength); - _this.setState({ maxLength: maxLength, report: report }); - } - }; - return _this; - } - EditableTextExample.prototype.renderExample = function () { - return React.createElement("div", { className: "docs-editable-text-example" }, - React.createElement("h1", null, - React.createElement(core_1.EditableText, { intent: this.state.intent, maxLength: this.state.maxLength, placeholder: "Edit title...", selectAllOnFocus: this.state.selectAllOnFocus })), - React.createElement(core_1.EditableText, { intent: this.state.intent, maxLength: this.state.maxLength, maxLines: 12, minLines: 3, multiline: true, placeholder: "Edit report... (controlled)", selectAllOnFocus: this.state.selectAllOnFocus, confirmOnEnterKey: this.state.confirmOnEnterKey, value: this.state.report, onChange: this.handleReportChange })); - }; - EditableTextExample.prototype.renderOptions = function () { - return [ - [ - React.createElement(intentSelect_1.IntentSelect, { intent: this.state.intent, key: "intent", onChange: this.handleIntentChange }), - React.createElement("div", { className: core_1.Classes.FORM_GROUP, key: "maxlength" }, - React.createElement("label", { className: core_1.Classes.LABEL, htmlFor: INPUT_ID }, "Max length"), - React.createElement(core_1.NumericInput, { id: INPUT_ID, className: classNames(core_1.Classes.FORM_CONTENT, core_1.Classes.FILL), min: 0, max: 300, onValueChange: this.handleMaxLengthChange, placeholder: "Unlimited", value: this.state.maxLength || "" })), - ], [ - React.createElement(core_1.Switch, { checked: this.state.selectAllOnFocus, label: "Select all on focus", key: "focus", onChange: this.toggleSelectAll }), - React.createElement(core_1.Switch, { checked: this.state.confirmOnEnterKey, label: "Swap keypress for confirm and newline (multiline only)", key: "swap", onChange: this.toggleSwap }), - ], - ]; - }; - return EditableTextExample; - }(docs_1.BaseExample)); - exports.EditableTextExample = EditableTextExample; - - -/***/ }), -/* 357 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var FocusExample = (function (_super) { - tslib_1.__extends(FocusExample, _super); - function FocusExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - isFocusActive: true, - }; - _this.toggleFocus = docs_1.handleBooleanChange(function (enabled) { - if (enabled) { - core_1.FocusStyleManager.onlyShowFocusOnTabs(); - } - else { - core_1.FocusStyleManager.alwaysShowFocus(); - } - _this.setState({ isFocusActive: core_1.FocusStyleManager.isActive() }); - }); - return _this; - } - FocusExample.prototype.renderExample = function () { - return (React.createElement("div", null, - React.createElement(core_1.InputGroup, { leftIconName: "star", placeholder: "Test me for focus" }), - React.createElement("br", null), - React.createElement(core_1.Button, { className: "pt-fill", text: "Test me for focus" }))); - }; - FocusExample.prototype.renderOptions = function () { - return [ - [ - React.createElement(core_1.Switch, { checked: this.state.isFocusActive, label: "Only show focus on tab", key: "focus", onChange: this.toggleFocus }), - ], - ]; - }; - return FocusExample; - }(docs_1.BaseExample)); - exports.FocusExample = FocusExample; - - -/***/ }), -/* 358 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var classNames = __webpack_require__(200); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var Oscillator = (function () { - function Oscillator(context, freq) { - this.context = context; - this.oscillator = this.context.createOscillator(); - this.oscillator.type = "sine"; - this.oscillator.frequency.value = freq; - this.oscillator.start(0); - } - return Oscillator; - }()); - var Envelope = (function () { - function Envelope(context) { - this.context = context; - this.attackLevel = 0.8; - this.attackTime = 0.1; - this.sustainLevel = 0.3; - this.sustainTime = 0.1; - this.releaseTime = 0.4; - this.gain = this.context.createGain(); - this.amplitude = this.gain.gain; - this.amplitude.value = 0; - } - Envelope.prototype.on = function () { - var now = this.context.currentTime; - this.amplitude.cancelScheduledValues(now); - this.amplitude.setValueAtTime(this.amplitude.value, now); - this.amplitude.linearRampToValueAtTime(this.attackLevel, now + this.attackTime); - this.amplitude.exponentialRampToValueAtTime(this.sustainLevel, now + this.attackTime + this.sustainTime); - }; - Envelope.prototype.off = function () { - var now = this.context.currentTime; - this.amplitude.exponentialRampToValueAtTime(0.01, now + this.releaseTime); - this.amplitude.linearRampToValueAtTime(0, now + this.releaseTime + 0.01); - }; - return Envelope; - }()); - var Scale = { - "A3": 220.00, - "A#3": 233.08, - "B3": 246.94, - "C4": 261.63, - "C#4": 277.18, - "D4": 293.66, - "D#4": 311.13, - "E4": 329.63, - "F4": 349.23, - "F#4": 369.99, - "G4": 392.00, - "G#4": 415.30, - "A4": 440.00, - "A#4": 466.16, - "B4": 493.88, - "C5": 523.25, - "C#5": 554.37, - "D5": 587.33, - "D#5": 622.25, - "E5": 659.25, - "F5": 698.46, - "F#5": 739.99, - "G5": 783.99, - "G#5": 830.61, - "A5": 880.00, - "A#5": 932.33, - "B5": 987.77, - }; - var PianoKey = (function (_super) { - tslib_1.__extends(PianoKey, _super); - function PianoKey(props) { - var _this = _super.call(this, props) || this; - var _a = _this.props, context = _a.context, note = _a.note; - _this.oscillator = new Oscillator(context, Scale[note]); - _this.envelope = new Envelope(context); - _this.oscillator.oscillator.connect(_this.envelope.gain); - _this.envelope.gain.connect(context.destination); - return _this; - } - PianoKey.prototype.componentWillReceiveProps = function (nextProps) { - if (this.props.pressed === false && nextProps.pressed === true) { - this.envelope.on(); - } - else if (this.props.pressed === true && nextProps.pressed === false) { - this.envelope.off(); - } - }; - PianoKey.prototype.render = function () { - var _a = this.props, hotkey = _a.hotkey, note = _a.note, pressed = _a.pressed; - var classes = classNames("piano-key", { - "piano-key-pressed": pressed, - "piano-key-sharp": /\#/.test(note), - }); - var elevation = classNames(pressed ? "pt-elevation-0" : "pt-elevation-2"); - return React.createElement("div", { className: classes }, - React.createElement("div", { className: elevation }, - React.createElement("div", { className: "piano-key-text" }, - React.createElement("span", { className: "piano-key-note" }, note), - React.createElement("br", null), - React.createElement("kbd", { className: "piano-key-hotkey" }, hotkey)))); - }; - return PianoKey; - }(React.Component)); - var AUDIO_CONTEXT = (window["AudioContext"] != null) ? new AudioContext() : null; - var HotkeyPiano = (function (_super) { - tslib_1.__extends(HotkeyPiano, _super); - function HotkeyPiano() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - keys: Array.apply(null, Array(24)).map(function () { return false; }), - }; - _this.handleSetPianoRef = function (ref) { - _this.pianoRef = ref; - }; - _this.focusPiano = function () { - if (_this.pianoRef != null) { - _this.pianoRef.focus(); - } - }; - _this.setKey = function (index, keyState) { - return function () { - var keys = _this.state.keys.slice(); - keys[index] = keyState; - _this.setState({ keys: keys }); - }; - }; - return _this; - } - HotkeyPiano.prototype.renderHotkeys = function () { - return React.createElement(core_1.Hotkeys, { tabIndex: null }, - React.createElement(core_1.Hotkey, { global: true, label: "Focus the piano", combo: "shift + P", onKeyDown: this.focusPiano }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a C5", combo: "Q", onKeyDown: this.setKey(0, true), onKeyUp: this.setKey(0, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a C#5", combo: "2", onKeyDown: this.setKey(1, true), onKeyUp: this.setKey(1, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a D5", combo: "W", onKeyDown: this.setKey(2, true), onKeyUp: this.setKey(2, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a D#5", combo: "3", onKeyDown: this.setKey(3, true), onKeyUp: this.setKey(3, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a E5", combo: "E", onKeyDown: this.setKey(4, true), onKeyUp: this.setKey(4, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a F5", combo: "R", onKeyDown: this.setKey(5, true), onKeyUp: this.setKey(5, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a F#5", combo: "5", onKeyDown: this.setKey(6, true), onKeyUp: this.setKey(6, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a G5", combo: "T", onKeyDown: this.setKey(7, true), onKeyUp: this.setKey(7, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a G#5", combo: "6", onKeyDown: this.setKey(8, true), onKeyUp: this.setKey(8, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a A5", combo: "Y", onKeyDown: this.setKey(9, true), onKeyUp: this.setKey(9, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a A#5", combo: "7", onKeyDown: this.setKey(10, true), onKeyUp: this.setKey(10, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a B5", combo: "U", onKeyDown: this.setKey(11, true), onKeyUp: this.setKey(11, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a C4", combo: "Z", onKeyDown: this.setKey(12, true), onKeyUp: this.setKey(12, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a C#4", combo: "S", onKeyDown: this.setKey(13, true), onKeyUp: this.setKey(13, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a D4", combo: "X", onKeyDown: this.setKey(14, true), onKeyUp: this.setKey(14, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a D#4", combo: "D", onKeyDown: this.setKey(15, true), onKeyUp: this.setKey(15, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a E4", combo: "C", onKeyDown: this.setKey(16, true), onKeyUp: this.setKey(16, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a F4", combo: "V", onKeyDown: this.setKey(17, true), onKeyUp: this.setKey(17, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a F#4", combo: "G", onKeyDown: this.setKey(18, true), onKeyUp: this.setKey(18, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a G4", combo: "B", onKeyDown: this.setKey(19, true), onKeyUp: this.setKey(19, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a G#4", combo: "H", onKeyDown: this.setKey(20, true), onKeyUp: this.setKey(20, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a A4", combo: "N", onKeyDown: this.setKey(21, true), onKeyUp: this.setKey(21, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a A#4", combo: "J", onKeyDown: this.setKey(22, true), onKeyUp: this.setKey(22, false) }), - React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a B4", combo: "M", onKeyDown: this.setKey(23, true), onKeyUp: this.setKey(23, false) })); - }; - HotkeyPiano.prototype.renderExample = function () { - var keys = this.state.keys; - if (AUDIO_CONTEXT == null) { - return React.createElement("div", { tabIndex: 0, className: "piano-example", ref: this.handleSetPianoRef }, "Oops! This browser does not support the WebAudio API needed for this example."); - } - return React.createElement("div", { tabIndex: 0, className: "piano-example", ref: this.handleSetPianoRef }, - React.createElement("div", null, - React.createElement(PianoKey, { note: "C5", hotkey: "Q", pressed: keys[0], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "C#5", hotkey: "2", pressed: keys[1], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "D5", hotkey: "W", pressed: keys[2], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "D#5", hotkey: "3", pressed: keys[3], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "E5", hotkey: "E", pressed: keys[4], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "F5", hotkey: "R", pressed: keys[5], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "F#5", hotkey: "5", pressed: keys[6], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "G5", hotkey: "T", pressed: keys[7], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "G#5", hotkey: "6", pressed: keys[8], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "A5", hotkey: "Y", pressed: keys[9], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "A#5", hotkey: "7", pressed: keys[10], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "B5", hotkey: "U", pressed: keys[11], context: AUDIO_CONTEXT })), - React.createElement("div", null, - React.createElement(PianoKey, { note: "C4", hotkey: "Z", pressed: keys[12], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "C#4", hotkey: "S", pressed: keys[13], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "D4", hotkey: "X", pressed: keys[14], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "D#4", hotkey: "D", pressed: keys[15], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "E4", hotkey: "C", pressed: keys[16], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "F4", hotkey: "V", pressed: keys[17], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "F#4", hotkey: "G", pressed: keys[18], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "G4", hotkey: "B", pressed: keys[19], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "G#4", hotkey: "H", pressed: keys[20], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "A4", hotkey: "N", pressed: keys[21], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "A#4", hotkey: "J", pressed: keys[22], context: AUDIO_CONTEXT }), - React.createElement(PianoKey, { note: "B4", hotkey: "M", pressed: keys[23], context: AUDIO_CONTEXT }))); - }; - return HotkeyPiano; - }(docs_1.BaseExample)); - HotkeyPiano = tslib_1.__decorate([ - core_1.HotkeysTarget - ], HotkeyPiano); - exports.HotkeyPiano = HotkeyPiano; - - -/***/ }), -/* 359 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var HotkeyTester = (function (_super) { - tslib_1.__extends(HotkeyTester, _super); - function HotkeyTester() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { combo: null }; - _this.handleKeyDown = function (e) { - e.preventDefault(); - e.stopPropagation(); - var combo = core_1.getKeyComboString(e.nativeEvent); - _this.setState({ combo: combo }); - }; - return _this; - } - HotkeyTester.prototype.renderExample = function () { - return React.createElement("div", { className: "hotkey-tester-example", onKeyDown: this.handleKeyDown, tabIndex: 0 }, this.renderKeyCombo()); - }; - HotkeyTester.prototype.renderKeyCombo = function () { - var combo = this.state.combo; - if (combo == null) { - return "Click here then press a key combo"; - } - else { - return React.createElement("div", null, - React.createElement(core_1.KeyCombo, { combo: combo }), - " or ", - React.createElement("code", null, combo)); - } - }; - return HotkeyTester; - }(docs_1.BaseExample)); - exports.HotkeyTester = HotkeyTester; - - -/***/ }), -/* 360 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var MenuExample = (function (_super) { - tslib_1.__extends(MenuExample, _super); - function MenuExample() { - return _super !== null && _super.apply(this, arguments) || this; - } - MenuExample.prototype.renderExample = function () { - return (React.createElement("div", null, - React.createElement(core_1.Menu, { className: "docs-inline-example " + core_1.Classes.ELEVATION_1 }, - React.createElement(core_1.MenuItem, { iconName: "new-text-box", text: "New text box" }), - React.createElement(core_1.MenuItem, { iconName: "new-object", text: "New object" }), - React.createElement(core_1.MenuItem, { iconName: "new-link", text: "New link" }), - React.createElement(core_1.MenuDivider, null), - React.createElement(core_1.MenuItem, { iconName: "cog", label: React.createElement("span", { className: "pt-icon-standard pt-icon-share" }), text: "Settings..." })), - React.createElement(core_1.Menu, { className: "docs-inline-example " + core_1.Classes.ELEVATION_1 }, - React.createElement(core_1.MenuDivider, { title: "Edit" }), - React.createElement(core_1.MenuItem, { iconName: "cut", text: "Cut", label: "⌘X" }), - React.createElement(core_1.MenuItem, { iconName: "duplicate", text: "Copy", label: "⌘C" }), - React.createElement(core_1.MenuItem, { iconName: "clipboard", text: "Paste", label: "⌘V", disabled: true }), - React.createElement(core_1.MenuDivider, { title: "Text" }), - React.createElement(core_1.MenuItem, { disabled: true, iconName: "align-left", text: "Alignment" }, - React.createElement(core_1.MenuItem, { iconName: "align-left", text: "Left" }), - React.createElement(core_1.MenuItem, { iconName: "align-center", text: "Center" }), - React.createElement(core_1.MenuItem, { iconName: "align-right", text: "Right" }), - React.createElement(core_1.MenuItem, { iconName: "align-justify", text: "Justify" })), - React.createElement(core_1.MenuItem, { iconName: "style", text: "Style" }, - React.createElement(core_1.MenuItem, { iconName: "bold", text: "Bold" }), - React.createElement(core_1.MenuItem, { iconName: "italic", text: "Italic" }), - React.createElement(core_1.MenuItem, { iconName: "underline", text: "Underline" })), - React.createElement(core_1.MenuItem, { iconName: "asterisk", text: "Miscellaneous", submenuViewportMargin: { left: 240 } }, - React.createElement(core_1.MenuItem, { iconName: "badge", text: "Badge" }), - React.createElement(core_1.MenuItem, { iconName: "book", text: "Book" }), - React.createElement(core_1.MenuItem, { iconName: "more", text: "More" }, - React.createElement(core_1.MenuItem, { iconName: "briefcase", text: "Briefcase" }), - React.createElement(core_1.MenuItem, { iconName: "calculator", text: "Calculator" }), - React.createElement(core_1.MenuItem, { iconName: "dollar", text: "Dollar" }), - React.createElement(core_1.MenuItem, { iconName: "dot", text: "Shapes" }, - React.createElement(core_1.MenuItem, { iconName: "full-circle", text: "Full circle" }), - React.createElement(core_1.MenuItem, { iconName: "heart", text: "Heart" }), - React.createElement(core_1.MenuItem, { iconName: "ring", text: "Ring" }), - React.createElement(core_1.MenuItem, { iconName: "square", text: "Square" }))))))); - }; - return MenuExample; - }(docs_1.BaseExample)); - exports.MenuExample = MenuExample; - - -/***/ }), -/* 361 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var classNames = __webpack_require__(200); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var intentSelect_1 = __webpack_require__(346); - var MIN_VALUES = [ - { label: "None", value: null }, - { label: "-10", value: -10 }, - { label: "0", value: 0 }, - { label: "10", value: 10 }, - ]; - var MAX_VALUES = [ - { label: "None", value: null }, - { label: "20", value: 20 }, - { label: "50", value: 50 }, - { label: "100", value: 100 }, - ]; - var BUTTON_POSITIONS = [ - { label: "None", value: null }, - { label: "Left", value: core_1.Position.LEFT }, - { label: "Right", value: core_1.Position.RIGHT }, - ]; - var NumericInputBasicExample = (function (_super) { - tslib_1.__extends(NumericInputBasicExample, _super); - function NumericInputBasicExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - buttonPositionIndex: 2, - intent: core_1.Intent.NONE, - majorStepSizeIndex: 1, - maxValueIndex: 0, - minValueIndex: 0, - minorStepSizeIndex: 1, - numericCharsOnly: true, - selectAllOnFocus: false, - selectAllOnIncrement: false, - showDisabled: false, - showFullWidth: false, - showLargeSize: false, - showLeftIcon: false, - showReadOnly: false, - stepSizeIndex: 0, - value: "", - }; - _this.handleMaxValueChange = docs_1.handleNumberChange(function (maxValueIndex) { return _this.setState({ maxValueIndex: maxValueIndex }); }); - _this.handleMinValueChange = docs_1.handleNumberChange(function (minValueIndex) { return _this.setState({ minValueIndex: minValueIndex }); }); - _this.handleIntentChange = docs_1.handleNumberChange(function (intent) { return _this.setState({ intent: intent }); }); - _this.handleButtonPositionChange = docs_1.handleNumberChange(function (buttonPositionIndex) { - _this.setState({ buttonPositionIndex: buttonPositionIndex }); - }); - _this.toggleDisabled = docs_1.handleBooleanChange(function (showDisabled) { return _this.setState({ showDisabled: showDisabled }); }); - _this.toggleLeftIcon = docs_1.handleBooleanChange(function (showLeftIcon) { return _this.setState({ showLeftIcon: showLeftIcon }); }); - _this.toggleReadOnly = docs_1.handleBooleanChange(function (showReadOnly) { return _this.setState({ showReadOnly: showReadOnly }); }); - _this.toggleFullWidth = docs_1.handleBooleanChange(function (showFullWidth) { return _this.setState({ showFullWidth: showFullWidth }); }); - _this.toggleLargeSize = docs_1.handleBooleanChange(function (showLargeSize) { return _this.setState({ showLargeSize: showLargeSize }); }); - _this.toggleNumericCharsOnly = docs_1.handleBooleanChange(function (numericCharsOnly) { return _this.setState({ numericCharsOnly: numericCharsOnly }); }); - _this.toggleSelectAllOnFocus = docs_1.handleBooleanChange(function (selectAllOnFocus) { return _this.setState({ selectAllOnFocus: selectAllOnFocus }); }); - _this.toggleSelectAllOnIncrement = docs_1.handleBooleanChange(function (selectAllOnIncrement) { - _this.setState({ selectAllOnIncrement: selectAllOnIncrement }); - }); - _this.handleValueChange = function (_valueAsNumber, valueAsString) { - _this.setState({ value: valueAsString }); - }; - return _this; - } - NumericInputBasicExample.prototype.renderOptions = function () { - var _a = this.state, buttonPositionIndex = _a.buttonPositionIndex, intent = _a.intent, maxValueIndex = _a.maxValueIndex, minValueIndex = _a.minValueIndex, numericCharsOnly = _a.numericCharsOnly, selectAllOnFocus = _a.selectAllOnFocus, selectAllOnIncrement = _a.selectAllOnIncrement, showDisabled = _a.showDisabled, showFullWidth = _a.showFullWidth, showLargeSize = _a.showLargeSize, showReadOnly = _a.showReadOnly, showLeftIcon = _a.showLeftIcon; - return [ - [ - React.createElement("label", { className: core_1.Classes.LABEL, key: "modifierslabel" }, "Modifiers"), - this.renderSwitch("Numeric characters only", numericCharsOnly, this.toggleNumericCharsOnly), - this.renderSwitch("Select all on focus", selectAllOnFocus, this.toggleSelectAllOnFocus), - this.renderSwitch("Select all on increment", selectAllOnIncrement, this.toggleSelectAllOnIncrement), - this.renderSwitch("Disabled", showDisabled, this.toggleDisabled), - this.renderSwitch("Read-only", showReadOnly, this.toggleReadOnly), - this.renderSwitch("Left icon", showLeftIcon, this.toggleLeftIcon), - this.renderSwitch("Full width", showFullWidth, this.toggleFullWidth), - this.renderSwitch("Large", showLargeSize, this.toggleLargeSize), - ], [ - this.renderSelectMenu("Minimum value", minValueIndex, MIN_VALUES, this.handleMinValueChange), - this.renderSelectMenu("Maximum value", maxValueIndex, MAX_VALUES, this.handleMaxValueChange), - ], [ - this.renderSelectMenu("Button position", buttonPositionIndex, BUTTON_POSITIONS, this.handleButtonPositionChange), - React.createElement(intentSelect_1.IntentSelect, { intent: intent, key: "intent", onChange: this.handleIntentChange }), - ], - ]; - }; - NumericInputBasicExample.prototype.renderExample = function () { - return (React.createElement(core_1.NumericInput, { allowNumericCharactersOnly: this.state.numericCharsOnly, buttonPosition: BUTTON_POSITIONS[this.state.buttonPositionIndex].value, className: classNames((_a = {}, _a[core_1.Classes.FILL] = this.state.showFullWidth, _a)), intent: this.state.intent, large: this.state.showLargeSize, min: MIN_VALUES[this.state.minValueIndex].value, max: MAX_VALUES[this.state.maxValueIndex].value, disabled: this.state.showDisabled, readOnly: this.state.showReadOnly, leftIconName: this.state.showLeftIcon ? "dollar" : null, placeholder: "Enter a number...", selectAllOnFocus: this.state.selectAllOnFocus, selectAllOnIncrement: this.state.selectAllOnIncrement, onValueChange: this.handleValueChange, value: this.state.value })); - var _a; - }; - NumericInputBasicExample.prototype.renderSwitch = function (label, checked, onChange) { - return (React.createElement(core_1.Switch, { checked: checked, label: label, key: label, onChange: onChange })); - }; - NumericInputBasicExample.prototype.renderSelectMenu = function (label, selectedValue, options, onChange) { - return (React.createElement("label", { className: core_1.Classes.LABEL, key: label }, - label, - React.createElement("div", { className: core_1.Classes.SELECT }, - React.createElement("select", { value: selectedValue, onChange: onChange }, this.renderSelectMenuOptions(options))))); - }; - NumericInputBasicExample.prototype.renderSelectMenuOptions = function (options) { - return options.map(function (option, index) { - return React.createElement("option", { key: index, value: index }, option.label); - }); - }; - return NumericInputBasicExample; - }(docs_1.BaseExample)); - exports.NumericInputBasicExample = NumericInputBasicExample; - - -/***/ }), -/* 362 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var NumberAbbreviation = { - BILLION: "b", - MILLION: "m", - THOUSAND: "k", - }; - var NUMBER_ABBREVIATION_REGEX = /((\.\d+)|(\d+(\.\d+)?))(k|m|b)\b/gi; - var SCIENTIFIC_NOTATION_REGEX = /((\.\d+)|(\d+(\.\d+)?))(e\d+)\b/gi; - var NumericInputExtendedExample = (function (_super) { - tslib_1.__extends(NumericInputExtendedExample, _super); - function NumericInputExtendedExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - value: "", - }; - _this.handleBlur = function (e) { - _this.handleConfirm(e.target.value); - }; - _this.handleKeyDown = function (e) { - if (e.keyCode === core_1.Keys.ENTER) { - _this.handleConfirm(e.target.value); - } - }; - _this.handleValueChange = function (_valueAsNumber, valueAsString) { - _this.setState({ value: valueAsString }); - }; - _this.handleConfirm = function (value) { - var result = value; - result = _this.expandScientificNotationTerms(result); - result = _this.expandNumberAbbreviationTerms(result); - result = _this.evaluateSimpleMathExpression(result); - result = _this.nanStringToEmptyString(result); - _this.setState({ value: result }); - _this.forceUpdate(); - }; - _this.expandScientificNotationTerms = function (value) { - if (!value) { - return value; - } - return value.replace(SCIENTIFIC_NOTATION_REGEX, _this.expandScientificNotationNumber); - }; - _this.expandNumberAbbreviationTerms = function (value) { - if (!value) { - return value; - } - return value.replace(NUMBER_ABBREVIATION_REGEX, _this.expandAbbreviatedNumber); - }; - _this.evaluateSimpleMathExpression = function (value) { - if (!value) { - return value; - } - var terms = value.split(/[+\-]/); - var trimmedTerms = terms.map(function (term) { return term.trim(); }); - var numericTerms = trimmedTerms.map(function (term) { return +term; }); - var illegalTerms = numericTerms.filter(function (term) { return isNaN(term); }); - if (illegalTerms.length > 0) { - return ""; - } - var total = 0; - var matches = value.match(/[+\-]*\s*(\.\d+|\d+(\.\d+)?)/gi) || []; - for (var _i = 0, matches_1 = matches; _i < matches_1.length; _i++) { - var match = matches_1[_i]; - var compactedMatch = match.replace(/\s/g, ""); - total += parseFloat(compactedMatch); - } - var roundedTotal = _this.roundValue(total); - return roundedTotal.toString(); - }; - _this.nanStringToEmptyString = function (value) { - return (value === "NaN") ? "" : value; - }; - _this.expandAbbreviatedNumber = function (value) { - if (!value) { - return value; - } - var number = +(value.substring(0, value.length - 1)); - var lastChar = value.charAt(value.length - 1).toLowerCase(); - var result; - if (lastChar === NumberAbbreviation.THOUSAND) { - result = number * 1e3; - } - else if (lastChar === NumberAbbreviation.MILLION) { - result = number * 1e6; + + if (!key) { + return globalLocale; + } + + if (!isArray(key)) { + //short-circuit everything else + locale = loadLocale(key); + if (locale) { + return locale; + } + key = [key]; + } + + return chooseLocale(key); + } + + function listLocales() { + return keys$1(locales); + } + + function checkOverflow (m) { + var overflow; + var a = m._a; + + if (a && getParsingFlags(m).overflow === -2) { + overflow = + a[MONTH] < 0 || a[MONTH] > 11 ? MONTH : + a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE : + a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR : + a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE : + a[SECOND] < 0 || a[SECOND] > 59 ? SECOND : + a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND : + -1; + + if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) { + overflow = DATE; + } + if (getParsingFlags(m)._overflowWeeks && overflow === -1) { + overflow = WEEK; + } + if (getParsingFlags(m)._overflowWeekday && overflow === -1) { + overflow = WEEKDAY; + } + + getParsingFlags(m).overflow = overflow; + } + + return m; + } + + // iso 8601 regex + // 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) + 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)?)?$/; + 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)?)?$/; + + var tzRegex = /Z|[+-]\d\d(?::?\d\d)?/; + + var isoDates = [ + ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], + ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], + ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], + ['GGGG-[W]WW', /\d{4}-W\d\d/, false], + ['YYYY-DDD', /\d{4}-\d{3}/], + ['YYYY-MM', /\d{4}-\d\d/, false], + ['YYYYYYMMDD', /[+-]\d{10}/], + ['YYYYMMDD', /\d{8}/], + // YYYYMM is NOT allowed by the standard + ['GGGG[W]WWE', /\d{4}W\d{3}/], + ['GGGG[W]WW', /\d{4}W\d{2}/, false], + ['YYYYDDD', /\d{7}/] + ]; + + // iso time formats and regexes + var isoTimes = [ + ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], + ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], + ['HH:mm:ss', /\d\d:\d\d:\d\d/], + ['HH:mm', /\d\d:\d\d/], + ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], + ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], + ['HHmmss', /\d\d\d\d\d\d/], + ['HHmm', /\d\d\d\d/], + ['HH', /\d\d/] + ]; + + var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i; + + // date from iso format + function configFromISO(config) { + var i, l, + string = config._i, + match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), + allowTime, dateFormat, timeFormat, tzFormat; + + if (match) { + getParsingFlags(config).iso = true; + + for (i = 0, l = isoDates.length; i < l; i++) { + if (isoDates[i][1].exec(match[1])) { + dateFormat = isoDates[i][0]; + allowTime = isoDates[i][2] !== false; + break; } - else if (lastChar === NumberAbbreviation.BILLION) { - result = number * 1e9; + } + if (dateFormat == null) { + config._isValid = false; + return; + } + if (match[3]) { + for (i = 0, l = isoTimes.length; i < l; i++) { + if (isoTimes[i][1].exec(match[3])) { + // match[2] should be 'T' or space + timeFormat = (match[2] || ' ') + isoTimes[i][0]; + break; + } } - var isValid = result != null && !isNaN(result); - if (isValid) { - result = _this.roundValue(result); + if (timeFormat == null) { + config._isValid = false; + return; } - return (isValid) ? result.toString() : ""; - }; - _this.expandScientificNotationNumber = function (value) { - if (!value) { - return value; + } + if (!allowTime && timeFormat != null) { + config._isValid = false; + return; + } + if (match[4]) { + if (tzRegex.exec(match[4])) { + tzFormat = 'Z'; + } else { + config._isValid = false; + return; } - return (+value).toString(); - }; - _this.roundValue = function (value, precision) { - if (precision === void 0) { precision = 1; } - return Math.round(value * (Math.pow(10, precision))) / (Math.pow(10, precision)); - }; - return _this; + } + config._f = dateFormat + (timeFormat || '') + (tzFormat || ''); + configFromStringAndFormat(config); + } else { + config._isValid = false; } - NumericInputExtendedExample.prototype.renderExample = function () { - var value = this.state.value; - return (React.createElement("div", null, - React.createElement(core_1.NumericInput, { allowNumericCharactersOnly: false, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, onValueChange: this.handleValueChange, placeholder: "Enter a number or expression...", value: value }))); + } + + // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3 + var basicRfcRegex = /^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/; + + // date and time from ref 2822 format + function configFromRFC2822(config) { + var string, match, dayFormat, + dateFormat, timeFormat, tzFormat; + var timezones = { + ' GMT': ' +0000', + ' EDT': ' -0400', + ' EST': ' -0500', + ' CDT': ' -0500', + ' CST': ' -0600', + ' MDT': ' -0600', + ' MST': ' -0700', + ' PDT': ' -0700', + ' PST': ' -0800' }; - return NumericInputExtendedExample; - }(docs_1.BaseExample)); - exports.NumericInputExtendedExample = NumericInputExtendedExample; - - -/***/ }), -/* 363 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var NonIdealStateExample = (function (_super) { - tslib_1.__extends(NonIdealStateExample, _super); - function NonIdealStateExample() { - return _super !== null && _super.apply(this, arguments) || this; + var military = 'YXWVUTSRQPONZABCDEFGHIKLM'; + var timezone, timezoneIndex; + + string = config._i + .replace(/\([^\)]*\)|[\n\t]/g, ' ') // Remove comments and folding whitespace + .replace(/(\s\s+)/g, ' ') // Replace multiple-spaces with a single space + .replace(/^\s|\s$/g, ''); // Remove leading and trailing spaces + match = basicRfcRegex.exec(string); + + if (match) { + dayFormat = match[1] ? 'ddd' + ((match[1].length === 5) ? ', ' : ' ') : ''; + dateFormat = 'D MMM ' + ((match[2].length > 10) ? 'YYYY ' : 'YY '); + timeFormat = 'HH:mm' + (match[4] ? ':ss' : ''); + + // TODO: Replace the vanilla JS Date object with an indepentent day-of-week check. + if (match[1]) { // day of week given + var momentDate = new Date(match[2]); + var momentDay = ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'][momentDate.getDay()]; + + if (match[1].substr(0,3) !== momentDay) { + getParsingFlags(config).weekdayMismatch = true; + config._isValid = false; + return; + } + } + + switch (match[5].length) { + case 2: // military + if (timezoneIndex === 0) { + timezone = ' +0000'; + } else { + timezoneIndex = military.indexOf(match[5][1].toUpperCase()) - 12; + timezone = ((timezoneIndex < 0) ? ' -' : ' +') + + (('' + timezoneIndex).replace(/^-?/, '0')).match(/..$/)[0] + '00'; + } + break; + case 4: // Zone + timezone = timezones[match[5]]; + break; + default: // UT or +/-9999 + timezone = timezones[' GMT']; + } + match[5] = timezone; + config._i = match.splice(1).join(''); + tzFormat = ' ZZ'; + config._f = dayFormat + dateFormat + timeFormat + tzFormat; + configFromStringAndFormat(config); + getParsingFlags(config).rfc2822 = true; + } else { + config._isValid = false; } - NonIdealStateExample.prototype.renderExample = function () { - var description = React.createElement("span", null, - "Your search didn't match any files.", - React.createElement("br", null), - "Try searching for something else."); - return (React.createElement(core_1.NonIdealState, { visual: "search", title: "No search results", description: description, action: React.createElement(core_1.InputGroup, { className: "pt-round", leftIconName: "search", placeholder: "Search..." }) })); - }; - return NonIdealStateExample; - }(docs_1.BaseExample)); - exports.NonIdealStateExample = NonIdealStateExample; - - -/***/ }), -/* 364 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var classNames = __webpack_require__(200); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var INTERACTION_KINDS = [ - { label: "Click", value: core_1.PopoverInteractionKind.CLICK.toString() }, - { label: "Click (target only)", value: core_1.PopoverInteractionKind.CLICK_TARGET_ONLY.toString() }, - { label: "Hover", value: core_1.PopoverInteractionKind.HOVER.toString() }, - { label: "Hover (target only)", value: core_1.PopoverInteractionKind.HOVER_TARGET_ONLY.toString() }, - ]; - var CONSTRAINTS = [ - { - label: "None", - value: "[]", - }, - { - label: "Smart positioning", - value: JSON.stringify([ - { - attachment: "together", - to: "scrollParent", - }, - ]), - }, - { - label: "Pin to window", - value: JSON.stringify([ - { - attachment: "together", - pin: true, - to: "window", - }, - ]), - }, - ]; - var PopoverExample = (function (_super) { - tslib_1.__extends(PopoverExample, _super); - function PopoverExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - canEscapeKeyClose: true, - exampleIndex: 0, - inheritDarkTheme: true, - inline: false, - interactionKind: core_1.PopoverInteractionKind.CLICK, - isModal: false, - position: core_1.Position.RIGHT, - sliderValue: 5, - tetherConstraints: [], - useSmartArrowPositioning: true, - }; - _this.className = "docs-popover-example"; - _this.handleConstraintChange = docs_1.handleStringChange(function (constraints) { - _this.setState({ tetherConstraints: JSON.parse(constraints) }); - }); - _this.handleExampleIndexChange = docs_1.handleNumberChange(function (exampleIndex) { return _this.setState({ exampleIndex: exampleIndex }); }); - _this.handleInteractionChange = docs_1.handleNumberChange(function (interactionKind) { - var isModal = _this.state.isModal && interactionKind === core_1.PopoverInteractionKind.CLICK; - _this.setState({ interactionKind: interactionKind, isModal: isModal }); - }); - _this.handlePositionChange = docs_1.handleNumberChange(function (position) { return _this.setState({ position: position }); }); - _this.toggleArrows = docs_1.handleBooleanChange(function (useSmartArrowPositioning) { - _this.setState({ useSmartArrowPositioning: useSmartArrowPositioning }); - }); - _this.toggleEscapeKey = docs_1.handleBooleanChange(function (canEscapeKeyClose) { return _this.setState({ canEscapeKeyClose: canEscapeKeyClose }); }); - _this.toggleInheritDarkTheme = docs_1.handleBooleanChange(function (inheritDarkTheme) { return _this.setState({ inheritDarkTheme: inheritDarkTheme }); }); - _this.toggleInline = docs_1.handleBooleanChange(function (inline) { - if (inline) { - _this.setState({ - inline: inline, - inheritDarkTheme: false, - isModal: false, - tetherConstraints: [], - }); + } + + // date from iso format or fallback + function configFromString(config) { + var matched = aspNetJsonRegex.exec(config._i); + + if (matched !== null) { + config._d = new Date(+matched[1]); + return; + } + + configFromISO(config); + if (config._isValid === false) { + delete config._isValid; + } else { + return; + } + + configFromRFC2822(config); + if (config._isValid === false) { + delete config._isValid; + } else { + return; + } + + // Final attempt, use Input Fallback + hooks.createFromInputFallback(config); + } + + hooks.createFromInputFallback = deprecate( + 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' + + 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' + + 'discouraged and will be removed in an upcoming major release. Please refer to ' + + 'http://momentjs.com/guides/#/warnings/js-date/ for more info.', + function (config) { + config._d = new Date(config._i + (config._useUTC ? ' UTC' : '')); + } + ); + + // Pick the first defined of two or three arguments. + function defaults(a, b, c) { + if (a != null) { + return a; + } + if (b != null) { + return b; + } + return c; + } + + function currentDateArray(config) { + // hooks is actually the exported moment object + var nowValue = new Date(hooks.now()); + if (config._useUTC) { + return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()]; + } + return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()]; + } + + // convert an array to a date. + // the array should mirror the parameters below + // note: all values past the year are optional and will default to the lowest possible value. + // [year, month, day , hour, minute, second, millisecond] + function configFromArray (config) { + var i, date, input = [], currentDate, yearToUse; + + if (config._d) { + return; + } + + currentDate = currentDateArray(config); + + //compute day of the year from weeks and weekdays + if (config._w && config._a[DATE] == null && config._a[MONTH] == null) { + dayOfYearFromWeekInfo(config); + } + + //if the day of the year is set, figure out what it is + if (config._dayOfYear != null) { + yearToUse = defaults(config._a[YEAR], currentDate[YEAR]); + + if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) { + getParsingFlags(config)._overflowDayOfYear = true; + } + + date = createUTCDate(yearToUse, 0, config._dayOfYear); + config._a[MONTH] = date.getUTCMonth(); + config._a[DATE] = date.getUTCDate(); + } + + // Default to current date. + // * if no year, month, day of month are given, default to today + // * if day of month is given, default month and year + // * if month is given, default only year + // * if year is given, don't default anything + for (i = 0; i < 3 && config._a[i] == null; ++i) { + config._a[i] = input[i] = currentDate[i]; + } + + // Zero out whatever was not defaulted, including time + for (; i < 7; i++) { + config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i]; + } + + // Check for 24:00:00.000 + if (config._a[HOUR] === 24 && + config._a[MINUTE] === 0 && + config._a[SECOND] === 0 && + config._a[MILLISECOND] === 0) { + config._nextDay = true; + config._a[HOUR] = 0; + } + + config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input); + // Apply timezone offset from input. The actual utcOffset can be changed + // with parseZone. + if (config._tzm != null) { + config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); + } + + if (config._nextDay) { + config._a[HOUR] = 24; + } + } + + function dayOfYearFromWeekInfo(config) { + var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow; + + w = config._w; + if (w.GG != null || w.W != null || w.E != null) { + dow = 1; + doy = 4; + + // TODO: We need to take the current isoWeekYear, but that depends on + // how we interpret now (local, utc, fixed offset). So create + // a now version of current config (take local/utc/offset flags, and + // create now). + weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year); + week = defaults(w.W, 1); + weekday = defaults(w.E, 1); + if (weekday < 1 || weekday > 7) { + weekdayOverflow = true; + } + } else { + dow = config._locale._week.dow; + doy = config._locale._week.doy; + + var curWeek = weekOfYear(createLocal(), dow, doy); + + weekYear = defaults(w.gg, config._a[YEAR], curWeek.year); + + // Default to current week. + week = defaults(w.w, curWeek.week); + + if (w.d != null) { + // weekday -- low day numbers are considered next week + weekday = w.d; + if (weekday < 0 || weekday > 6) { + weekdayOverflow = true; + } + } else if (w.e != null) { + // local weekday -- counting starts from begining of week + weekday = w.e + dow; + if (w.e < 0 || w.e > 6) { + weekdayOverflow = true; + } + } else { + // default to begining of week + weekday = dow; + } + } + if (week < 1 || week > weeksInYear(weekYear, dow, doy)) { + getParsingFlags(config)._overflowWeeks = true; + } else if (weekdayOverflow != null) { + getParsingFlags(config)._overflowWeekday = true; + } else { + temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy); + config._a[YEAR] = temp.year; + config._dayOfYear = temp.dayOfYear; + } + } + + // constant that refers to the ISO standard + hooks.ISO_8601 = function () {}; + + // constant that refers to the RFC 2822 form + hooks.RFC_2822 = function () {}; + + // date from string and format string + function configFromStringAndFormat(config) { + // TODO: Move this to another part of the creation flow to prevent circular deps + if (config._f === hooks.ISO_8601) { + configFromISO(config); + return; + } + if (config._f === hooks.RFC_2822) { + configFromRFC2822(config); + return; + } + config._a = []; + getParsingFlags(config).empty = true; + + // This array is used to make a Date, either with `new Date` or `Date.UTC` + var string = '' + config._i, + i, parsedInput, tokens, token, skipped, + stringLength = string.length, + totalParsedInputLength = 0; + + tokens = expandFormat(config._f, config._locale).match(formattingTokens) || []; + + for (i = 0; i < tokens.length; i++) { + token = tokens[i]; + parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0]; + // console.log('token', token, 'parsedInput', parsedInput, + // 'regex', getParseRegexForToken(token, config)); + if (parsedInput) { + skipped = string.substr(0, string.indexOf(parsedInput)); + if (skipped.length > 0) { + getParsingFlags(config).unusedInput.push(skipped); + } + string = string.slice(string.indexOf(parsedInput) + parsedInput.length); + totalParsedInputLength += parsedInput.length; + } + // don't parse if it's not a known token + if (formatTokenFunctions[token]) { + if (parsedInput) { + getParsingFlags(config).empty = false; } else { - _this.setState({ inline: inline }); + getParsingFlags(config).unusedTokens.push(token); } - }); - _this.toggleModal = docs_1.handleBooleanChange(function (isModal) { return _this.setState({ isModal: isModal }); }); - _this.handleSliderChange = function (value) { return _this.setState({ sliderValue: value }); }; - return _this; + addTimeToArrayFromToken(token, parsedInput, config); + } + else if (config._strict && !parsedInput) { + getParsingFlags(config).unusedTokens.push(token); + } } - PopoverExample.prototype.renderExample = function () { - var constraints = this.state.tetherConstraints; - var popoverClassName = classNames({ - "pt-popover-content-sizing": this.state.exampleIndex <= 2, + + // add remaining unparsed input length to the string + getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength; + if (string.length > 0) { + getParsingFlags(config).unusedInput.push(string); + } + + // clear _12h flag if hour is <= 12 + if (config._a[HOUR] <= 12 && + getParsingFlags(config).bigHour === true && + config._a[HOUR] > 0) { + getParsingFlags(config).bigHour = undefined; + } + + getParsingFlags(config).parsedDateParts = config._a.slice(0); + getParsingFlags(config).meridiem = config._meridiem; + // handle meridiem + config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem); + + configFromArray(config); + checkOverflow(config); + } + + + function meridiemFixWrap (locale, hour, meridiem) { + var isPm; + + if (meridiem == null) { + // nothing to do + return hour; + } + if (locale.meridiemHour != null) { + return locale.meridiemHour(hour, meridiem); + } else if (locale.isPM != null) { + // Fallback + isPm = locale.isPM(meridiem); + if (isPm && hour < 12) { + hour += 12; + } + if (!isPm && hour === 12) { + hour = 0; + } + return hour; + } else { + // this is not supposed to happen + return hour; + } + } + + // date from string and array of format strings + function configFromStringAndArray(config) { + var tempConfig, + bestMoment, + + scoreToBeat, + i, + currentScore; + + if (config._f.length === 0) { + getParsingFlags(config).invalidFormat = true; + config._d = new Date(NaN); + return; + } + + for (i = 0; i < config._f.length; i++) { + currentScore = 0; + tempConfig = copyConfig({}, config); + if (config._useUTC != null) { + tempConfig._useUTC = config._useUTC; + } + tempConfig._f = config._f[i]; + configFromStringAndFormat(tempConfig); + + if (!isValid(tempConfig)) { + continue; + } + + // if there is any input that was not parsed add a penalty for that format + currentScore += getParsingFlags(tempConfig).charsLeftOver; + + //or tokens + currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10; + + getParsingFlags(tempConfig).score = currentScore; + + if (scoreToBeat == null || currentScore < scoreToBeat) { + scoreToBeat = currentScore; + bestMoment = tempConfig; + } + } + + extend(config, bestMoment || tempConfig); + } + + function configFromObject(config) { + if (config._d) { + return; + } + + var i = normalizeObjectUnits(config._i); + config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) { + return obj && parseInt(obj, 10); + }); + + configFromArray(config); + } + + function createFromConfig (config) { + var res = new Moment(checkOverflow(prepareConfig(config))); + if (res._nextDay) { + // Adding is smart enough around DST + res.add(1, 'd'); + res._nextDay = undefined; + } + + return res; + } + + function prepareConfig (config) { + var input = config._i, + format = config._f; + + config._locale = config._locale || getLocale(config._l); + + if (input === null || (format === undefined && input === '')) { + return createInvalid({nullInput: true}); + } + + if (typeof input === 'string') { + config._i = input = config._locale.preparse(input); + } + + if (isMoment(input)) { + return new Moment(checkOverflow(input)); + } else if (isDate(input)) { + config._d = input; + } else if (isArray(format)) { + configFromStringAndArray(config); + } else if (format) { + configFromStringAndFormat(config); + } else { + configFromInput(config); + } + + if (!isValid(config)) { + config._d = null; + } + + return config; + } + + function configFromInput(config) { + var input = config._i; + if (isUndefined(input)) { + config._d = new Date(hooks.now()); + } else if (isDate(input)) { + config._d = new Date(input.valueOf()); + } else if (typeof input === 'string') { + configFromString(config); + } else if (isArray(input)) { + config._a = map(input.slice(0), function (obj) { + return parseInt(obj, 10); }); - return (React.createElement(core_1.Popover, tslib_1.__assign({ content: this.getContents(this.state.exampleIndex), popoverClassName: popoverClassName, tetherOptions: { constraints: constraints } }, this.state), - React.createElement("button", { className: "pt-button pt-intent-primary" }, "Popover target"))); - }; - PopoverExample.prototype.renderOptions = function () { - var isModalDisabled = this.state.inline - || this.state.interactionKind !== core_1.PopoverInteractionKind.CLICK; - var inheritDarkThemeDisabled = this.state.inline; - return [ - [ - React.createElement("label", { className: core_1.Classes.LABEL, key: "example" }, - "Example content", - React.createElement("div", { className: core_1.Classes.SELECT }, - React.createElement("select", { value: this.state.exampleIndex, onChange: this.handleExampleIndexChange }, - React.createElement("option", { value: "0" }, "Text"), - React.createElement("option", { value: "1" }, "Input"), - React.createElement("option", { value: "2" }, "Slider"), - React.createElement("option", { value: "3" }, "Menu"), - React.createElement("option", { value: "4" }, "Popover Example"), - React.createElement("option", { value: "5" }, "Empty")))), - React.createElement(core_1.Switch, { checked: this.state.isModal, disabled: isModalDisabled, key: "modal", label: "Modal (requires Click interaction kind)", onChange: this.toggleModal }), - React.createElement("br", { key: "break" }), - React.createElement(core_1.RadioGroup, { key: "interaction", label: "Interaction kind", selectedValue: this.state.interactionKind.toString(), options: INTERACTION_KINDS, onChange: this.handleInteractionChange }), - ], [ - React.createElement("label", { className: core_1.Classes.LABEL, key: "position" }, - "Popover position", - React.createElement("div", { className: core_1.Classes.SELECT }, - React.createElement("select", { value: this.state.position, onChange: this.handlePositionChange }, - React.createElement("option", { value: core_1.Position.TOP.toString() }, "Top"), - React.createElement("option", { value: core_1.Position.TOP_RIGHT.toString() }, "Top right"), - React.createElement("option", { value: core_1.Position.RIGHT_TOP.toString() }, "Right top"), - React.createElement("option", { value: core_1.Position.RIGHT.toString() }, "Right"), - React.createElement("option", { value: core_1.Position.RIGHT_BOTTOM.toString() }, "Right bottom"), - React.createElement("option", { value: core_1.Position.BOTTOM_RIGHT.toString() }, "Bottom right"), - React.createElement("option", { value: core_1.Position.BOTTOM.toString() }, "Bottom"), - React.createElement("option", { value: core_1.Position.BOTTOM_LEFT.toString() }, "Bottom left"), - React.createElement("option", { value: core_1.Position.LEFT_BOTTOM.toString() }, "Left bottom"), - React.createElement("option", { value: core_1.Position.LEFT.toString() }, "Left"), - React.createElement("option", { value: core_1.Position.LEFT_TOP.toString() }, "Left top"), - React.createElement("option", { value: core_1.Position.TOP_LEFT.toString() }, "Top left")))), - React.createElement(core_1.Switch, { checked: this.state.useSmartArrowPositioning, label: "Smart arrow positioning", key: "smartarrow", onChange: this.toggleArrows }), - React.createElement(core_1.Switch, { checked: this.state.canEscapeKeyClose, label: "Can escape key close", key: "escape", onChange: this.toggleEscapeKey }), - React.createElement(core_1.Switch, { checked: this.state.inline, label: "Inline", key: "inline", onChange: this.toggleInline }), - React.createElement(core_1.Switch, { checked: this.state.inheritDarkTheme, disabled: inheritDarkThemeDisabled, label: "Should inherit dark theme", key: "shouldinheritdarktheme", onChange: this.toggleInheritDarkTheme }), - React.createElement("br", { key: "break" }), - React.createElement(core_1.RadioGroup, { disabled: this.state.inline, key: "constraints", label: "Constraints", onChange: this.handleConstraintChange, options: CONSTRAINTS, selectedValue: JSON.stringify(this.state.tetherConstraints) }), - ], - ]; - }; - PopoverExample.prototype.getContents = function (index) { - return [ - React.createElement("div", null, - React.createElement("h5", null, "Popover title"), - React.createElement("p", null, "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."), - React.createElement("button", { className: classNames(core_1.Classes.BUTTON, core_1.Classes.POPOVER_DISMISS) }, "Dismiss")), - React.createElement("div", null, - React.createElement("label", { className: core_1.Classes.LABEL }, - "Enter some text", - React.createElement("input", { autoFocus: true, className: core_1.Classes.INPUT, type: "text" }))), - React.createElement(core_1.Slider, { min: 0, max: 10, onChange: this.handleSliderChange, value: this.state.sliderValue }), - React.createElement(core_1.Menu, null, - React.createElement(core_1.MenuDivider, { title: "Edit" }), - React.createElement(core_1.MenuItem, { iconName: "cut", text: "Cut", label: "⌘X" }), - React.createElement(core_1.MenuItem, { iconName: "duplicate", text: "Copy", label: "⌘C" }), - React.createElement(core_1.MenuItem, { iconName: "clipboard", text: "Paste", label: "⌘V", disabled: true }), - React.createElement(core_1.MenuDivider, { title: "Text" }), - React.createElement(core_1.MenuItem, { iconName: "align-left", text: "Alignment" }, - React.createElement(core_1.MenuItem, { iconName: "align-left", text: "Left" }), - React.createElement(core_1.MenuItem, { iconName: "align-center", text: "Center" }), - React.createElement(core_1.MenuItem, { iconName: "align-right", text: "Right" }), - React.createElement(core_1.MenuItem, { iconName: "align-justify", text: "Justify" })), - React.createElement(core_1.MenuItem, { iconName: "style", text: "Style" }, - React.createElement(core_1.MenuItem, { iconName: "bold", text: "Bold" }), - React.createElement(core_1.MenuItem, { iconName: "italic", text: "Italic" }), - React.createElement(core_1.MenuItem, { iconName: "underline", text: "Underline" }))), - React.createElement(PopoverExample, tslib_1.__assign({}, this.props)), - ][index]; - }; - return PopoverExample; - }(docs_1.BaseExample)); - exports.PopoverExample = PopoverExample; - - -/***/ }), -/* 365 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var intentSelect_1 = __webpack_require__(346); - var ProgressExample = (function (_super) { - tslib_1.__extends(ProgressExample, _super); - function ProgressExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - hasValue: false, - value: 0.7, - }; - _this.className = "docs-progress-example"; - _this.handleIndeterminateChange = docs_1.handleBooleanChange(function (hasValue) { return _this.setState({ hasValue: hasValue }); }); - _this.handleModifierChange = docs_1.handleNumberChange(function (intent) { return _this.setState({ intent: intent }); }); - _this.renderLabel = function (value) { return value.toFixed(1); }; - _this.handleValueChange = function (value) { return _this.setState({ value: value }); }; - return _this; + configFromArray(config); + } else if (isObject(input)) { + configFromObject(config); + } else if (isNumber(input)) { + // from milliseconds + config._d = new Date(input); + } else { + hooks.createFromInputFallback(config); } - ProgressExample.prototype.renderExample = function () { - var _a = this.state, hasValue = _a.hasValue, intent = _a.intent, value = _a.value; - return React.createElement(core_1.ProgressBar, { intent: intent, value: hasValue ? value : null }); - }; - ProgressExample.prototype.renderOptions = function () { - return [ - [ - React.createElement(core_1.Switch, { checked: this.state.hasValue, key: "has-value", label: "Known Value", onChange: this.handleIndeterminateChange }), - React.createElement(core_1.Slider, { disabled: !this.state.hasValue, key: "value", labelStepSize: 1, min: 0, max: 1, onChange: this.handleValueChange, renderLabel: this.renderLabel, stepSize: 0.1, showTrackFill: false, value: this.state.value }), - React.createElement(intentSelect_1.IntentSelect, { intent: this.state.intent, key: "intent", onChange: this.handleModifierChange }), - ], - ]; - }; - return ProgressExample; - }(docs_1.BaseExample)); - exports.ProgressExample = ProgressExample; - - -/***/ }), -/* 366 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var RangeSliderExample = (function (_super) { - tslib_1.__extends(RangeSliderExample, _super); - function RangeSliderExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - range: [36, 72], - }; - _this.handleValueChange = function (range) { return _this.setState({ range: range }); }; - return _this; + } + + function createLocalOrUTC (input, format, locale, strict, isUTC) { + var c = {}; + + if (locale === true || locale === false) { + strict = locale; + locale = undefined; } - RangeSliderExample.prototype.renderExample = function () { - return (React.createElement("div", { style: { width: "100%" } }, - React.createElement(core_1.RangeSlider, { min: 0, max: 100, stepSize: 2, labelStepSize: 20, onChange: this.handleValueChange, value: this.state.range }))); - }; - return RangeSliderExample; - }(docs_1.BaseExample)); - exports.RangeSliderExample = RangeSliderExample; - - -/***/ }), -/* 367 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var SliderExample = (function (_super) { - tslib_1.__extends(SliderExample, _super); - function SliderExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - value1: 0, - value2: 2.5, - value3: 30, - }; - return _this; + + if ((isObject(input) && isObjectEmpty(input)) || + (isArray(input) && input.length === 0)) { + input = undefined; + } + // object construction must be done this way. + // https://github.com/moment/moment/issues/1423 + c._isAMomentObject = true; + c._useUTC = c._isUTC = isUTC; + c._l = locale; + c._i = input; + c._f = format; + c._strict = strict; + + return createFromConfig(c); + } + + function createLocal (input, format, locale, strict) { + return createLocalOrUTC(input, format, locale, strict, false); + } + + var prototypeMin = deprecate( + 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', + function () { + var other = createLocal.apply(null, arguments); + if (this.isValid() && other.isValid()) { + return other < this ? this : other; + } else { + return createInvalid(); + } + } + ); + + var prototypeMax = deprecate( + 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', + function () { + var other = createLocal.apply(null, arguments); + if (this.isValid() && other.isValid()) { + return other > this ? this : other; + } else { + return createInvalid(); + } + } + ); + + // Pick a moment m from moments so that m[fn](other) is true for all + // other. This relies on the function fn to be transitive. + // + // moments should either be an array of moment objects or an array, whose + // first element is an array of moment objects. + function pickBy(fn, moments) { + var res, i; + if (moments.length === 1 && isArray(moments[0])) { + moments = moments[0]; + } + if (!moments.length) { + return createLocal(); + } + res = moments[0]; + for (i = 1; i < moments.length; ++i) { + if (!moments[i].isValid() || moments[i][fn](res)) { + res = moments[i]; + } + } + return res; + } + + // TODO: Use [].sort instead? + function min () { + var args = [].slice.call(arguments, 0); + + return pickBy('isBefore', args); + } + + function max () { + var args = [].slice.call(arguments, 0); + + return pickBy('isAfter', args); + } + + var now = function () { + return Date.now ? Date.now() : +(new Date()); + }; + + var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond']; + + function isDurationValid(m) { + for (var key in m) { + if (!(ordering.indexOf(key) !== -1 && (m[key] == null || !isNaN(m[key])))) { + return false; + } } - SliderExample.prototype.renderExample = function () { - return (React.createElement("div", { style: { width: "100%" } }, - React.createElement(core_1.Slider, { min: 0, max: 10, stepSize: 0.1, labelStepSize: 10, onChange: this.getChangeHandler("value2"), value: this.state.value2 }), - React.createElement(core_1.Slider, { min: 0, max: 0.7, stepSize: 0.01, labelStepSize: 0.14, onChange: this.getChangeHandler("value1"), renderLabel: this.renderLabel1, value: this.state.value1 }), - React.createElement(core_1.Slider, { min: -12, max: 48, stepSize: 6, labelStepSize: 10, onChange: this.getChangeHandler("value3"), renderLabel: this.renderLabel3, showTrackFill: false, value: this.state.value3 }))); - }; - SliderExample.prototype.getChangeHandler = function (key) { - var _this = this; - return function (value) { - return _this.setState((_a = {}, _a[key] = value, _a)); - var _a; - }; - }; - SliderExample.prototype.renderLabel1 = function (val) { - return Math.round(val * 100) + "%"; - }; - SliderExample.prototype.renderLabel3 = function (val) { - return val === 0 ? "\u00A3" + val : "\u00A3" + val + ",000"; - }; - return SliderExample; - }(docs_1.BaseExample)); - exports.SliderExample = SliderExample; - - -/***/ }), -/* 368 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var classNames = __webpack_require__(200); - var React = __webpack_require__(3); - var docs_1 = __webpack_require__(172); - var Classes = __webpack_require__(347); - var text_1 = __webpack_require__(369); - var TextExample = (function (_super) { - tslib_1.__extends(TextExample, _super); - function TextExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - textContent: "You can change the text in the input below. Hover to see full text. " + - "If the text is long enough, then the content will overflow. This is done by setting " + - "ellipsize to true.", - }; - _this.onInputChange = docs_1.handleStringChange(function (textContent) { return _this.setState({ textContent: textContent }); }); - return _this; + + var unitHasDecimal = false; + for (var i = 0; i < ordering.length; ++i) { + if (m[ordering[i]]) { + if (unitHasDecimal) { + return false; // only allow non-integers for smallest unit + } + if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) { + unitHasDecimal = true; + } + } } - TextExample.prototype.renderExample = function () { - return (React.createElement("div", { style: { width: "100%" } }, - React.createElement(text_1.Text, { ellipsize: true }, - this.state.textContent, - "\u00A0"), - React.createElement("textarea", { className: classNames(Classes.INPUT, Classes.FILL), onChange: this.onInputChange, style: { marginTop: 20 }, value: this.state.textContent }))); - }; - return TextExample; - }(docs_1.BaseExample)); - exports.TextExample = TextExample; - - -/***/ }), -/* 369 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var classNames = __webpack_require__(200); - var PureRender = __webpack_require__(201); - var React = __webpack_require__(3); - var Classes = __webpack_require__(347); - var Text = (function (_super) { - tslib_1.__extends(Text, _super); - function Text() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - isContentOverflowing: false, - textContent: "", - }; - _this.refHandlers = { - text: function (overflowElement) { return _this.textRef = overflowElement; }, - }; - return _this; + + return true; + } + + function isValid$1() { + return this._isValid; + } + + function createInvalid$1() { + return createDuration(NaN); + } + + function Duration (duration) { + var normalizedInput = normalizeObjectUnits(duration), + years = normalizedInput.year || 0, + quarters = normalizedInput.quarter || 0, + months = normalizedInput.month || 0, + weeks = normalizedInput.week || 0, + days = normalizedInput.day || 0, + hours = normalizedInput.hour || 0, + minutes = normalizedInput.minute || 0, + seconds = normalizedInput.second || 0, + milliseconds = normalizedInput.millisecond || 0; + + this._isValid = isDurationValid(normalizedInput); + + // representation for dateAddRemove + this._milliseconds = +milliseconds + + seconds * 1e3 + // 1000 + minutes * 6e4 + // 1000 * 60 + hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978 + // Because of dateAddRemove treats 24 hours as different from a + // day when working around DST, we need to store them separately + this._days = +days + + weeks * 7; + // It is impossible translate months into days without knowing + // which months you are are talking about, so we have to store + // it separately. + this._months = +months + + quarters * 3 + + years * 12; + + this._data = {}; + + this._locale = getLocale(); + + this._bubble(); + } + + function isDuration (obj) { + return obj instanceof Duration; + } + + function absRound (number) { + if (number < 0) { + return Math.round(-1 * number) * -1; + } else { + return Math.round(number); } - Text.prototype.componentDidMount = function () { - this.update(); - }; - Text.prototype.componentDidUpdate = function () { - this.update(); - }; - Text.prototype.render = function () { - var classes = classNames((_a = {}, - _a[Classes.TEXT_OVERFLOW_ELLIPSIS] = this.props.ellipsize, - _a), this.props.className); - return (React.createElement("div", { className: classes, ref: this.refHandlers.text, title: this.state.isContentOverflowing ? this.state.textContent : undefined }, this.props.children)); - var _a; - }; - Text.prototype.update = function () { - var newState = { - isContentOverflowing: this.props.ellipsize && this.textRef.scrollWidth > this.textRef.clientWidth, - textContent: this.textRef.textContent, - }; - this.setState(newState); - }; - return Text; - }(React.Component)); - Text = tslib_1.__decorate([ - PureRender - ], Text); - exports.Text = Text; - - -/***/ }), -/* 370 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var progressExample_1 = __webpack_require__(365); - var SIZES = [ - { label: "Default", value: "" }, - { label: "Small", value: core_1.Classes.SMALL }, - { label: "Large", value: core_1.Classes.LARGE }, - ]; - var SpinnerExample = (function (_super) { - tslib_1.__extends(SpinnerExample, _super); - function SpinnerExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.handleSizeChange = docs_1.handleStringChange(function (className) { return _this.setState({ className: className }); }); - return _this; + } + + // FORMATTING + + function offset (token, separator) { + addFormatToken(token, 0, 0, function () { + var offset = this.utcOffset(); + var sign = '+'; + if (offset < 0) { + offset = -offset; + sign = '-'; + } + return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2); + }); + } + + offset('Z', ':'); + offset('ZZ', ''); + + // PARSING + + addRegexToken('Z', matchShortOffset); + addRegexToken('ZZ', matchShortOffset); + addParseToken(['Z', 'ZZ'], function (input, array, config) { + config._useUTC = true; + config._tzm = offsetFromString(matchShortOffset, input); + }); + + // HELPERS + + // timezone chunker + // '+10:00' > ['10', '00'] + // '-1530' > ['-15', '30'] + var chunkOffset = /([\+\-]|\d\d)/gi; + + function offsetFromString(matcher, string) { + var matches = (string || '').match(matcher); + + if (matches === null) { + return null; } - SpinnerExample.prototype.renderExample = function () { - var _a = this.state, className = _a.className, hasValue = _a.hasValue, intent = _a.intent, value = _a.value; - return React.createElement(core_1.Spinner, { className: className, intent: intent, value: hasValue ? value : null }); - }; - SpinnerExample.prototype.renderOptions = function () { - var options = _super.prototype.renderOptions.call(this); - options[0].push(React.createElement("label", { className: core_1.Classes.LABEL, key: "size" }, - "Size (via ", - React.createElement("code", null, "className"), - ")", - React.createElement("div", { className: core_1.Classes.SELECT }, - React.createElement("select", { value: this.state.className, onChange: this.handleSizeChange }, SIZES.map(function (opt, i) { return React.createElement("option", tslib_1.__assign({ key: i }, opt), opt.label); }))))); - return options; - }; - return SpinnerExample; - }(progressExample_1.ProgressExample)); - exports.SpinnerExample = SpinnerExample; - - -/***/ }), -/* 371 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var TabsExample = (function (_super) { - tslib_1.__extends(TabsExample, _super); - function TabsExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - isVertical: false, - }; - _this.toggleIsVertical = docs_1.handleBooleanChange(function (isVertical) { return _this.setState({ isVertical: isVertical }); }); - return _this; + + var chunk = matches[matches.length - 1] || []; + var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0]; + var minutes = +(parts[1] * 60) + toInt(parts[2]); + + return minutes === 0 ? + 0 : + parts[0] === '+' ? minutes : -minutes; + } + + // Return a moment from input, that is local/utc/zone equivalent to model. + function cloneWithOffset(input, model) { + var res, diff; + if (model._isUTC) { + res = model.clone(); + diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf(); + // Use low-level api, because this fn is low-level api. + res._d.setTime(res._d.valueOf() + diff); + hooks.updateOffset(res, false); + return res; + } else { + return createLocal(input).local(); } - TabsExample.prototype.renderExample = function () { - return (React.createElement(core_1.Tabs, { className: this.state.isVertical ? "pt-vertical" : null, key: this.state.isVertical ? "vertical" : "horizontal" }, - React.createElement(core_1.TabList, null, - React.createElement(core_1.Tab, null, "React"), - React.createElement(core_1.Tab, null, "Angular"), - React.createElement(core_1.Tab, null, "Ember"), - React.createElement(core_1.Tab, { isDisabled: true }, "Backbone")), - React.createElement(core_1.TabPanel, null, - React.createElement("h3", null, "Example panel: React"), - React.createElement("p", { className: "pt-running-text" }, "Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.")), - React.createElement(core_1.TabPanel, null, - React.createElement("h3", null, "Example panel: Angular"), - React.createElement("p", { className: "pt-running-text" }, "HTML is great for declaring static documents, but it falters when we try to use it for declaring dynamic views in web-applications. AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop.")), - React.createElement(core_1.TabPanel, null, - React.createElement("h3", null, "Example panel: Ember"), - React.createElement("p", { className: "pt-running-text" }, "Ember.js is an open-source JavaScript application framework, based on the model-view-controller (MVC) pattern. It allows developers to create scalable single-page web applications by incorporating common idioms and best practices into the framework. What is your favorite JS framework?"), - React.createElement("input", { className: "pt-input", type: "text" })), - React.createElement(core_1.TabPanel, null, - React.createElement("h3", null, "Backbone")))); - }; - TabsExample.prototype.renderOptions = function () { - return [ - [ - React.createElement(core_1.Switch, { checked: this.state.isVertical, label: "Use vertical tabs", key: "Vertical", onChange: this.toggleIsVertical }), - ], - ]; - }; - return TabsExample; - }(docs_1.BaseExample)); - exports.TabsExample = TabsExample; - - -/***/ }), -/* 372 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var classNames = __webpack_require__(200); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var Tabs2Example = (function (_super) { - tslib_1.__extends(Tabs2Example, _super); - function Tabs2Example() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - activePanelOnly: false, - animate: true, - navbarTabId: "Home", - vertical: false, - }; - _this.toggleActiveOnly = docs_1.handleBooleanChange(function (activePanelOnly) { return _this.setState({ activePanelOnly: activePanelOnly }); }); - _this.toggleAnimate = docs_1.handleBooleanChange(function (animate) { return _this.setState({ animate: animate }); }); - _this.toggleVertical = docs_1.handleBooleanChange(function (vertical) { return _this.setState({ vertical: vertical }); }); - _this.handleNavbarTabChange = function (navbarTabId) { return _this.setState({ navbarTabId: navbarTabId }); }; - _this.handleTabChange = function (activeTabId) { return _this.setState({ activeTabId: activeTabId }); }; - return _this; + } + + function getDateOffset (m) { + // On Firefox.24 Date#getTimezoneOffset returns a floating point. + // https://github.com/moment/moment/pull/1871 + return -Math.round(m._d.getTimezoneOffset() / 15) * 15; + } + + // HOOKS + + // This function will be called whenever a moment is mutated. + // It is intended to keep the offset in sync with the timezone. + hooks.updateOffset = function () {}; + + // MOMENTS + + // keepLocalTime = true means only change the timezone, without + // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]--> + // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset + // +0200, so we adjust the time as needed, to be valid. + // + // Keeping the time actually adds/subtracts (one hour) + // from the actual represented time. That is why we call updateOffset + // a second time. In case it wants us to change the offset again + // _changeInProgress == true case, then we have to adjust, because + // there is no such time in the given timezone. + function getSetOffset (input, keepLocalTime, keepMinutes) { + var offset = this._offset || 0, + localAdjust; + if (!this.isValid()) { + return input != null ? this : NaN; } - Tabs2Example.prototype.renderExample = function () { - return (React.createElement("div", { className: "docs-tabs2-example" }, - React.createElement("div", { className: core_1.Classes.NAVBAR }, - React.createElement("div", { className: classNames(core_1.Classes.NAVBAR_GROUP, core_1.Classes.ALIGN_LEFT) }, - React.createElement("div", { className: core_1.Classes.NAVBAR_HEADING }, "Tabs Example")), - React.createElement("div", { className: classNames(core_1.Classes.NAVBAR_GROUP, core_1.Classes.ALIGN_LEFT) }, - React.createElement(core_1.Tabs2, { animate: this.state.animate, className: core_1.Classes.LARGE, id: "navbar", onChange: this.handleNavbarTabChange, selectedTabId: this.state.navbarTabId }, - React.createElement(core_1.Tab2, { id: "Home", title: "Home" }), - React.createElement(core_1.Tab2, { id: "Files", title: "Files" }), - React.createElement(core_1.Tab2, { id: "Builds", title: "Builds" })))), - React.createElement("h1", { style: { marginTop: 30, marginBottom: 30 } }, this.state.navbarTabId), - React.createElement(core_1.Tabs2, { animate: this.state.animate, id: "Tabs2Example", key: this.state.vertical ? "vertical" : "horizontal", onChange: this.handleTabChange, renderActiveTabPanelOnly: this.state.activePanelOnly, vertical: this.state.vertical }, - React.createElement(core_1.Tab2, { id: "rx", title: "React", panel: React.createElement(ReactPanel, null) }), - React.createElement(core_1.Tab2, { id: "ng", title: "Angular", panel: React.createElement(AngularPanel, null) }), - React.createElement(core_1.Tab2, { id: "mb", title: "Ember", panel: React.createElement(EmberPanel, null) }), - React.createElement(core_1.Tab2, { id: "bb", disabled: true, title: "Backbone", panel: React.createElement(BackbonePanel, null) }), - React.createElement(core_1.Tabs2.Expander, null), - React.createElement("input", { className: "pt-input", type: "text", placeholder: "Search..." })))); - }; - Tabs2Example.prototype.renderOptions = function () { - return [ - [ - React.createElement(core_1.Switch, { checked: this.state.animate, label: "Animate indicator", key: "animate", onChange: this.toggleAnimate }), - React.createElement(core_1.Switch, { checked: this.state.vertical, label: "Use vertical tabs", key: "vertical", onChange: this.toggleVertical }), - React.createElement(core_1.Switch, { checked: this.state.activePanelOnly, label: "Render active tab panel only", key: "active", onChange: this.toggleActiveOnly }), - ], - ]; - }; - return Tabs2Example; - }(docs_1.BaseExample)); - exports.Tabs2Example = Tabs2Example; - var ReactPanel = function () { return (React.createElement("div", null, - React.createElement("h3", null, "Example panel: React"), - React.createElement("p", { className: "pt-running-text" }, "Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project."))); }; - var AngularPanel = function () { return (React.createElement("div", null, - React.createElement("h3", null, "Example panel: Angular"), - React.createElement("p", { className: "pt-running-text" }, "HTML is great for declaring static documents, but it falters when we try to use it for declaring dynamic views in web-applications. AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop."))); }; - var EmberPanel = function () { return (React.createElement("div", null, - React.createElement("h3", null, "Example panel: Ember"), - React.createElement("p", { className: "pt-running-text" }, "Ember.js is an open-source JavaScript application framework, based on the model-view-controller (MVC) pattern. It allows developers to create scalable single-page web applications by incorporating common idioms and best practices into the framework. What is your favorite JS framework?"), - React.createElement("input", { className: "pt-input", type: "text" }))); }; - var BackbonePanel = function () { return (React.createElement("div", null, - React.createElement("h3", null, "Backbone"))); }; - - -/***/ }), -/* 373 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var classNames = __webpack_require__(200); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var InputGroupExample = (function (_super) { - tslib_1.__extends(InputGroupExample, _super); - function InputGroupExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - filterValue: "", - large: false, - showPassword: false, - tagValue: "", - }; - _this.handleDisabledChange = docs_1.handleBooleanChange(function (disabled) { return _this.setState({ disabled: disabled }); }); - _this.handleLargeChange = docs_1.handleBooleanChange(function (large) { return _this.setState({ large: large }); }); - _this.handleFilterChange = docs_1.handleStringChange(function (filterValue) { return _this.setState({ filterValue: filterValue }); }); - _this.handleTagChange = docs_1.handleStringChange(function (tagValue) { return _this.setState({ tagValue: tagValue }); }); - _this.handleLockClick = function () { return _this.setState({ showPassword: !_this.state.showPassword }); }; - return _this; + if (input != null) { + if (typeof input === 'string') { + input = offsetFromString(matchShortOffset, input); + if (input === null) { + return this; + } + } else if (Math.abs(input) < 16 && !keepMinutes) { + input = input * 60; + } + if (!this._isUTC && keepLocalTime) { + localAdjust = getDateOffset(this); + } + this._offset = input; + this._isUTC = true; + if (localAdjust != null) { + this.add(localAdjust, 'm'); + } + if (offset !== input) { + if (!keepLocalTime || this._changeInProgress) { + addSubtract(this, createDuration(input - offset, 'm'), 1, false); + } else if (!this._changeInProgress) { + this._changeInProgress = true; + hooks.updateOffset(this, true); + this._changeInProgress = null; + } + } + return this; + } else { + return this._isUTC ? offset : getDateOffset(this); + } + } + + function getSetZone (input, keepLocalTime) { + if (input != null) { + if (typeof input !== 'string') { + input = -input; + } + + this.utcOffset(input, keepLocalTime); + + return this; + } else { + return -this.utcOffset(); } - InputGroupExample.prototype.renderExample = function () { - var _a = this.state, disabled = _a.disabled, filterValue = _a.filterValue, showPassword = _a.showPassword, tagValue = _a.tagValue; - var largeClassName = classNames((_b = {}, _b[core_1.Classes.LARGE] = this.state.large, _b)); - var maybeSpinner = filterValue ? React.createElement(core_1.Spinner, { className: core_1.Classes.SMALL }) : undefined; - var lockButton = (React.createElement(core_1.Tooltip, { content: (showPassword ? "Hide" : "Show") + " Password", isDisabled: disabled }, - React.createElement(core_1.Button, { className: core_1.Classes.MINIMAL, intent: core_1.Intent.WARNING, disabled: disabled, iconName: showPassword ? "unlock" : "lock", onClick: this.handleLockClick }))); - var permissionsMenu = (React.createElement(core_1.Popover, { content: React.createElement(core_1.Menu, null, - React.createElement(core_1.MenuItem, { text: "can edit" }), - React.createElement(core_1.MenuItem, { text: "can view" })), isDisabled: disabled, position: core_1.Position.BOTTOM_RIGHT }, - React.createElement(core_1.Button, { className: core_1.Classes.MINIMAL, disabled: disabled, rightIconName: "caret-down" }, "can edit"))); - var resultsTag = (React.createElement(core_1.Tag, { className: core_1.Classes.MINIMAL }, Math.floor(10000 / Math.max(1, Math.pow(tagValue.length, 2))))); - return (React.createElement("div", { className: "docs-input-group-example docs-flex-row" }, - React.createElement("div", { className: "docs-flex-column" }, - React.createElement(core_1.InputGroup, { className: largeClassName, disabled: disabled, leftIconName: "filter", onChange: this.handleFilterChange, placeholder: "Filter histogram...", rightElement: maybeSpinner, value: filterValue }), - React.createElement(core_1.InputGroup, { className: largeClassName, disabled: disabled, placeholder: "Enter your password...", rightElement: lockButton, type: showPassword ? "text" : "password" })), - React.createElement("div", { className: "docs-flex-column" }, - React.createElement(core_1.InputGroup, { className: largeClassName, disabled: disabled, leftIconName: "tag", onChange: this.handleTagChange, placeholder: "Find tags", rightElement: resultsTag, value: tagValue }), - React.createElement(core_1.InputGroup, { className: largeClassName, disabled: disabled, placeholder: "Add people or groups...", rightElement: permissionsMenu })))); - var _b; - }; - InputGroupExample.prototype.renderOptions = function () { - var _a = this.state, disabled = _a.disabled, large = _a.large; - return [ - [ - React.createElement(core_1.Switch, { key: "disabled", label: "Disabled", onChange: this.handleDisabledChange, checked: disabled }), - React.createElement(core_1.Switch, { key: "large", label: "Large", onChange: this.handleLargeChange, checked: large }), - ], - ]; - }; - return InputGroupExample; - }(docs_1.BaseExample)); - exports.InputGroupExample = InputGroupExample; - - -/***/ }), -/* 374 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var TagExample = (function (_super) { - tslib_1.__extends(TagExample, _super); - function TagExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - showTag: true, - }; - _this.className = "docs-tag-example"; - _this.deleteTag = function () { return _this.setState({ showTag: false }); }; - return _this; + } + + function setOffsetToUTC (keepLocalTime) { + return this.utcOffset(0, keepLocalTime); + } + + function setOffsetToLocal (keepLocalTime) { + if (this._isUTC) { + this.utcOffset(0, keepLocalTime); + this._isUTC = false; + + if (keepLocalTime) { + this.subtract(getDateOffset(this), 'm'); + } } - TagExample.prototype.renderExample = function () { - return (React.createElement("div", null, - React.createElement(core_1.Tag, { className: core_1.Classes.MINIMAL, intent: core_1.Intent.PRIMARY }, "@jkillian"), - React.createElement(core_1.Tag, { className: core_1.Classes.MINIMAL, intent: core_1.Intent.PRIMARY }, "@adahiya"), - React.createElement(core_1.Tag, { className: core_1.Classes.MINIMAL, intent: core_1.Intent.PRIMARY }, "@ggray"), - React.createElement(core_1.Tag, { className: core_1.Classes.MINIMAL, intent: core_1.Intent.PRIMARY }, "@allorca"), - React.createElement(core_1.Tag, { className: core_1.Classes.MINIMAL, intent: core_1.Intent.PRIMARY }, "@bdwyer"), - React.createElement(core_1.Tag, { className: core_1.Classes.MINIMAL, intent: core_1.Intent.PRIMARY }, "@piotrk"), - this.maybeRenderTag())); - }; - TagExample.prototype.maybeRenderTag = function () { - if (this.state.showTag) { - return React.createElement(core_1.Tag, { className: core_1.Classes.MINIMAL, intent: core_1.Intent.PRIMARY, onRemove: this.deleteTag }, "@dlipowicz"); + return this; + } + + function setOffsetToParsedOffset () { + if (this._tzm != null) { + this.utcOffset(this._tzm, false, true); + } else if (typeof this._i === 'string') { + var tZone = offsetFromString(matchOffset, this._i); + if (tZone != null) { + this.utcOffset(tZone); } else { - return undefined; + this.utcOffset(0, true); } - }; - return TagExample; - }(docs_1.BaseExample)); - exports.TagExample = TagExample; - - -/***/ }), -/* 375 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var classNames = __webpack_require__(200); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var ToastExample = (function (_super) { - tslib_1.__extends(ToastExample, _super); - function ToastExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - autoFocus: false, - canEscapeKeyClear: true, - position: core_1.Position.TOP, - }; - _this.TOAST_BUILDERS = [{ - action: { - href: "https://www.google.com/search?q=toast&source=lnms&tbm=isch", - target: "_blank", - text: "Yum", - }, - button: "Procure toast", - intent: core_1.Intent.PRIMARY, - message: React.createElement("span", null, - "One toast created. ", - React.createElement("em", null, "Toasty.")), - }, { - action: { - onClick: function () { return _this.addToast({ - iconName: "ban-circle", - intent: core_1.Intent.DANGER, - message: "You cannot undo the past.", - }); }, - text: "Undo", - }, - button: "Move files", - iconName: "tick", - intent: core_1.Intent.SUCCESS, - message: "Moved 6 files.", - }, { - action: { - onClick: function () { return _this.addToast(_this.TOAST_BUILDERS[2]); }, - text: "Retry", - }, - button: "Delete root", - iconName: "warning-sign", - intent: core_1.Intent.DANGER, - message: "You do not have permissions to perform this action. \ - Please contact your system administrator to request the appropriate access rights.", - }, { - action: { - onClick: function () { return _this.addToast({ message: "Isn't parting just the sweetest sorrow?" }); }, - text: "Adieu", - }, - button: "Log out", - iconName: "hand", - intent: core_1.Intent.WARNING, - message: "Goodbye, old friend.", - }]; - _this.refHandlers = { - toaster: function (ref) { return _this.toaster = ref; }, - }; - _this.handlePositionChange = docs_1.handleNumberChange(function (position) { return _this.setState({ position: position }); }); - _this.toggleAutoFocus = docs_1.handleBooleanChange(function (autoFocus) { return _this.setState({ autoFocus: autoFocus }); }); - _this.toggleEscapeKey = docs_1.handleBooleanChange(function (canEscapeKeyClear) { return _this.setState({ canEscapeKeyClear: canEscapeKeyClear }); }); - _this.handleProgressToast = function () { - var progress = 0; - var key = _this.toaster.show(_this.renderProgress(0)); - var interval = setInterval(function () { - if (_this.toaster == null || progress > 100) { - clearInterval(interval); - } - else { - progress += 10 + Math.random() * 20; - _this.toaster.update(key, _this.renderProgress(progress)); - } - }, 1000); - }; - return _this; } - ToastExample.prototype.renderExample = function () { - return (React.createElement("div", null, - this.TOAST_BUILDERS.map(this.renderToastDemo, this), - React.createElement(core_1.Button, { onClick: this.handleProgressToast, text: "Upload file" }), - React.createElement(core_1.Toaster, tslib_1.__assign({}, this.state, { ref: this.refHandlers.toaster })))); - }; - ToastExample.prototype.renderOptions = function () { - return [ - [ - React.createElement("label", { className: core_1.Classes.LABEL, key: "position" }, - "Toast position", - React.createElement("div", { className: core_1.Classes.SELECT }, - React.createElement("select", { value: this.state.position.toString(), onChange: this.handlePositionChange }, - React.createElement("option", { value: core_1.Position.TOP_LEFT.toString() }, "Top left"), - React.createElement("option", { value: core_1.Position.TOP.toString() }, "Top center"), - React.createElement("option", { value: core_1.Position.TOP_RIGHT.toString() }, "Top right"), - React.createElement("option", { value: core_1.Position.BOTTOM_LEFT.toString() }, "Bottom left"), - React.createElement("option", { value: core_1.Position.BOTTOM.toString() }, "Bottom center"), - React.createElement("option", { value: core_1.Position.BOTTOM_RIGHT.toString() }, "Bottom right")))), - React.createElement(core_1.Switch, { checked: this.state.autoFocus, label: "Auto focus", key: "autofocus", onChange: this.toggleAutoFocus }), - React.createElement(core_1.Switch, { checked: this.state.canEscapeKeyClear, label: "Can escape key clear", key: "escapekey", onChange: this.toggleEscapeKey }), - ], - ]; - }; - ToastExample.prototype.renderToastDemo = function (toast, index) { - var _this = this; - return React.createElement(core_1.Button, { intent: toast.intent, key: index, text: toast.button, onClick: function () { return _this.addToast(toast); } }); - }; - ToastExample.prototype.renderProgress = function (amount) { - return { - className: this.props.themeName, - iconName: "cloud-upload", - message: (React.createElement(core_1.ProgressBar, { className: classNames("docs-toast-progress", { "pt-no-stripes": amount >= 100 }), intent: amount < 100 ? core_1.Intent.PRIMARY : core_1.Intent.SUCCESS, value: amount / 100 })), - timeout: amount < 100 ? 0 : 2000, - }; - }; - ToastExample.prototype.addToast = function (toast) { - toast.className = this.props.themeName; - toast.timeout = 5000; - this.toaster.show(toast); - }; - return ToastExample; - }(docs_1.BaseExample)); - exports.ToastExample = ToastExample; - - -/***/ }), -/* 376 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var TooltipExample = (function (_super) { - tslib_1.__extends(TooltipExample, _super); - function TooltipExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - isOpen: false, - }; - _this.toggleControlledTooltip = function () { - _this.setState({ isOpen: !_this.state.isOpen }); - }; - return _this; + return this; + } + + function hasAlignedHourOffset (input) { + if (!this.isValid()) { + return false; } - TooltipExample.prototype.renderExample = function () { - var lotsOfText = (React.createElement("span", null, "In facilisis scelerisque dui vel dignissim. Sed nunc orci, ultricies congue vehicula quis, facilisis a orci.")); - return (React.createElement("div", null, - React.createElement("p", null, - "Inline text can have\u00A0", - React.createElement(core_1.Tooltip, { className: "pt-tooltip-indicator", content: React.createElement("em", null, - "This tooltip contains an ", - React.createElement("strong", null, "em"), - " tag.") }, "a tooltip.")), - React.createElement("p", null, - React.createElement(core_1.Tooltip, { content: lotsOfText }, "Or, hover anywhere over this whole line.")), - React.createElement("p", null, - "This line's tooltip\u00A0", - React.createElement(core_1.Tooltip, { className: "pt-tooltip-indicator", content: React.createElement("span", null, "disabled"), isDisabled: true }, "is disabled.")), - React.createElement("p", null, - "This line's tooltip\u00A0", - React.createElement(core_1.Tooltip, { className: "pt-tooltip-indicator", content: React.createElement("span", null, "BRRAAAIINS"), isOpen: this.state.isOpen }, "is controlled by external state."), - React.createElement(core_1.Switch, { checked: this.state.isOpen, label: "Open", onChange: this.toggleControlledTooltip, style: { display: "inline-block", marginBottom: 0, marginLeft: 20 } })), - React.createElement("div", null, - React.createElement(core_1.Tooltip, { className: "pt-tooltip-indicator", content: "Intent.PRIMARY", inline: true, intent: core_1.Intent.PRIMARY, position: core_1.Position.LEFT }, "Available"), - "\u00A0", - React.createElement(core_1.Tooltip, { className: "pt-tooltip-indicator", content: "Intent.SUCCESS", inline: true, intent: core_1.Intent.SUCCESS, position: core_1.Position.TOP }, "in the full"), - "\u00A0", - React.createElement(core_1.Tooltip, { className: "pt-tooltip-indicator", content: "Intent.WARNING", inline: true, intent: core_1.Intent.WARNING, position: core_1.Position.BOTTOM }, "range of"), - "\u00A0", - React.createElement(core_1.Tooltip, { className: "pt-tooltip-indicator", content: "Intent.DANGER", inline: true, intent: core_1.Intent.DANGER, position: core_1.Position.RIGHT }, "visual intents!")), - React.createElement("br", null), - React.createElement(core_1.Popover, { content: React.createElement("h1", null, "Popover!"), popoverClassName: "pt-popover-content-sizing", position: core_1.Position.RIGHT }, - React.createElement(core_1.Tooltip, { content: React.createElement("span", null, "This button also has a popover!"), inline: true, position: core_1.Position.RIGHT }, - React.createElement("button", { className: "pt-button pt-intent-success" }, "Hover and click me"))))); - }; - return TooltipExample; - }(docs_1.BaseExample)); - exports.TooltipExample = TooltipExample; - - -/***/ }), -/* 377 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(185); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var TreeExample = (function (_super) { - tslib_1.__extends(TreeExample, _super); - function TreeExample() { - var _this = _super.call(this) || this; - _this.handleNodeClick = function (nodeData, _nodePath, e) { - var originallySelected = nodeData.isSelected; - if (!e.shiftKey) { - _this.forEachNode(_this.state.nodes, function (n) { return n.isSelected = false; }); - } - nodeData.isSelected = originallySelected == null ? true : !originallySelected; - _this.setState(_this.state); - }; - _this.handleNodeCollapse = function (nodeData) { - nodeData.isExpanded = false; - _this.setState(_this.state); + input = input ? createLocal(input).utcOffset() : 0; + + return (this.utcOffset() - input) % 60 === 0; + } + + function isDaylightSavingTime () { + return ( + this.utcOffset() > this.clone().month(0).utcOffset() || + this.utcOffset() > this.clone().month(5).utcOffset() + ); + } + + function isDaylightSavingTimeShifted () { + if (!isUndefined(this._isDSTShifted)) { + return this._isDSTShifted; + } + + var c = {}; + + copyConfig(c, this); + c = prepareConfig(c); + + if (c._a) { + var other = c._isUTC ? createUTC(c._a) : createLocal(c._a); + this._isDSTShifted = this.isValid() && + compareArrays(c._a, other.toArray()) > 0; + } else { + this._isDSTShifted = false; + } + + return this._isDSTShifted; + } + + function isLocal () { + return this.isValid() ? !this._isUTC : false; + } + + function isUtcOffset () { + return this.isValid() ? this._isUTC : false; + } + + function isUtc () { + return this.isValid() ? this._isUTC && this._offset === 0 : false; + } + + // ASP.NET json date format regex + var aspNetRegex = /^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/; + + // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html + // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere + // and further modified to allow for strings containing both week and day + 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)?)?$/; + + function createDuration (input, key) { + var duration = input, + // matching against regexp is expensive, do it on demand + match = null, + sign, + ret, + diffRes; + + if (isDuration(input)) { + duration = { + ms : input._milliseconds, + d : input._days, + M : input._months }; - _this.handleNodeExpand = function (nodeData) { - nodeData.isExpanded = true; - _this.setState(_this.state); + } else if (isNumber(input)) { + duration = {}; + if (key) { + duration[key] = input; + } else { + duration.milliseconds = input; + } + } else if (!!(match = aspNetRegex.exec(input))) { + sign = (match[1] === '-') ? -1 : 1; + duration = { + y : 0, + d : toInt(match[DATE]) * sign, + h : toInt(match[HOUR]) * sign, + m : toInt(match[MINUTE]) * sign, + s : toInt(match[SECOND]) * sign, + ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match }; - var tooltipLabel = React.createElement(core_1.Tooltip, { content: "An eye!" }, - React.createElement("span", { className: "pt-icon-standard pt-icon-eye-open" })); - var longLabel = "Organic meditation gluten-free, sriracha VHS drinking vinegar beard man."; - _this.state = { - nodes: [ - { - hasCaret: true, - iconName: "folder-close", - label: "Folder 0", - }, - { - iconName: "folder-close", - isExpanded: true, - label: React.createElement(core_1.Tooltip, { content: "I'm a folder <3" }, "Folder 1"), - childNodes: [ - { iconName: "document", label: "Item 0", secondaryLabel: tooltipLabel }, - { iconName: "pt-icon-tag", label: longLabel }, - { - hasCaret: true, - iconName: "pt-icon-folder-close", - label: React.createElement(core_1.Tooltip, { content: "foo" }, "Folder 2"), - childNodes: [ - { label: "No-Icon Item" }, - { iconName: "pt-icon-tag", label: "Item 1" }, - { - hasCaret: true, iconName: "pt-icon-folder-close", label: "Folder 3", - childNodes: [ - { iconName: "document", label: "Item 0" }, - { iconName: "pt-icon-tag", label: "Item 1" }, - ], - }, - ], - }, - ], - }, - ], + } else if (!!(match = isoRegex.exec(input))) { + sign = (match[1] === '-') ? -1 : 1; + duration = { + y : parseIso(match[2], sign), + M : parseIso(match[3], sign), + w : parseIso(match[4], sign), + d : parseIso(match[5], sign), + h : parseIso(match[6], sign), + m : parseIso(match[7], sign), + s : parseIso(match[8], sign) }; - var i = 0; - _this.forEachNode(_this.state.nodes, function (n) { return n.id = i++; }); - return _this; + } else if (duration == null) {// checks for null or undefined + duration = {}; + } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) { + diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to)); + + duration = {}; + duration.ms = diffRes.milliseconds; + duration.M = diffRes.months; } - TreeExample.prototype.shouldComponentUpdate = function () { - return true; - }; - TreeExample.prototype.renderExample = function () { - return (React.createElement(core_1.Tree, { contents: this.state.nodes, onNodeClick: this.handleNodeClick, onNodeCollapse: this.handleNodeCollapse, onNodeExpand: this.handleNodeExpand, className: core_1.Classes.ELEVATION_0 })); - }; - TreeExample.prototype.forEachNode = function (nodes, callback) { - if (nodes == null) { - return; - } - for (var _i = 0, nodes_1 = nodes; _i < nodes_1.length; _i++) { - var node = nodes_1[_i]; - callback(node); - this.forEachNode(node.childNodes, callback); + + ret = new Duration(duration); + + if (isDuration(input) && hasOwnProp(input, '_locale')) { + ret._locale = input._locale; + } + + return ret; + } + + createDuration.fn = Duration.prototype; + createDuration.invalid = createInvalid$1; + + function parseIso (inp, sign) { + // We'd normally use ~~inp for this, but unfortunately it also + // converts floats to ints. + // inp may be undefined, so careful calling replace on it. + var res = inp && parseFloat(inp.replace(',', '.')); + // apply sign while we're at it + return (isNaN(res) ? 0 : res) * sign; + } + + function positiveMomentsDifference(base, other) { + var res = {milliseconds: 0, months: 0}; + + res.months = other.month() - base.month() + + (other.year() - base.year()) * 12; + if (base.clone().add(res.months, 'M').isAfter(other)) { + --res.months; + } + + res.milliseconds = +other - +(base.clone().add(res.months, 'M')); + + return res; + } + + function momentsDifference(base, other) { + var res; + if (!(base.isValid() && other.isValid())) { + return {milliseconds: 0, months: 0}; + } + + other = cloneWithOffset(other, base); + if (base.isBefore(other)) { + res = positiveMomentsDifference(base, other); + } else { + res = positiveMomentsDifference(other, base); + res.milliseconds = -res.milliseconds; + res.months = -res.months; + } + + return res; + } + + // TODO: remove 'name' arg after deprecation is removed + function createAdder(direction, name) { + return function (val, period) { + var dur, tmp; + //invert the arguments, but complain about it + if (period !== null && !isNaN(+period)) { + deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' + + 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'); + tmp = val; val = period; period = tmp; } + + val = typeof val === 'string' ? +val : val; + dur = createDuration(val, period); + addSubtract(this, dur, direction); + return this; }; - return TreeExample; - }(docs_1.BaseExample)); - exports.TreeExample = TreeExample; - - -/***/ }), -/* 378 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - function __export(m) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } - Object.defineProperty(exports, "__esModule", { value: true }); - __export(__webpack_require__(379)); - __export(__webpack_require__(536)); - __export(__webpack_require__(537)); - __export(__webpack_require__(538)); - __export(__webpack_require__(539)); - __export(__webpack_require__(540)); - - -/***/ }), -/* 379 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(380); - var core_1 = __webpack_require__(179); - var docs_1 = __webpack_require__(172); - var React = __webpack_require__(3); - var src_1 = __webpack_require__(381); - var formatSelect_1 = __webpack_require__(534); - var precisionSelect_1 = __webpack_require__(535); - var DateInputExample = (function (_super) { - tslib_1.__extends(DateInputExample, _super); - function DateInputExample() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - closeOnSelection: true, - disabled: false, - format: formatSelect_1.FORMATS[0], - openOnFocus: true, - }; - _this.toggleFocus = docs_1.handleBooleanChange(function (openOnFocus) { return _this.setState({ openOnFocus: openOnFocus }); }); - _this.toggleSelection = docs_1.handleBooleanChange(function (closeOnSelection) { return _this.setState({ closeOnSelection: closeOnSelection }); }); - _this.toggleDisabled = docs_1.handleBooleanChange(function (disabled) { return _this.setState({ disabled: disabled }); }); - _this.toggleFormat = docs_1.handleStringChange(function (format) { return _this.setState({ format: format }); }); - _this.toggleTimePrecision = docs_1.handleNumberChange(function (timePrecision) { - return _this.setState({ - timePrecision: timePrecision < 0 ? undefined : timePrecision, - }); - }); - return _this; + + function addSubtract (mom, duration, isAdding, updateOffset) { + var milliseconds = duration._milliseconds, + days = absRound(duration._days), + months = absRound(duration._months); + + if (!mom.isValid()) { + // No op + return; } - DateInputExample.prototype.renderExample = function () { - return (React.createElement(src_1.DateInput, tslib_1.__assign({}, this.state, { defaultValue: new Date() }))); - }; - DateInputExample.prototype.renderOptions = function () { - return [ - [ - React.createElement(core_1.Switch, { checked: this.state.openOnFocus, label: "Open on input focus", key: "Focus", onChange: this.toggleFocus }), - React.createElement(core_1.Switch, { checked: this.state.closeOnSelection, label: "Close on selection", key: "Selection", onChange: this.toggleSelection }), - React.createElement(core_1.Switch, { checked: this.state.disabled, label: "Disabled", key: "Disabled", onChange: this.toggleDisabled }), - React.createElement(precisionSelect_1.PrecisionSelect, { label: "Time Precision", key: "precision", allowEmpty: true, value: this.state.timePrecision, onChange: this.toggleTimePrecision }), - ], [ - React.createElement(formatSelect_1.FormatSelect, { key: "Format", onChange: this.toggleFormat, selectedValue: this.state.format }), - ], - ]; - }; - return DateInputExample; - }(docs_1.BaseExample)); - exports.DateInputExample = DateInputExample; - - -/***/ }), -/* 380 */ -/***/ (function(module, exports, __webpack_require__) { - - var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(global) {/*! ***************************************************************************** - Copyright (c) Microsoft Corporation. All rights reserved. - Licensed under the Apache License, Version 2.0 (the "License"); you may not use - this file except in compliance with the License. You may obtain a copy of the - License at http://www.apache.org/licenses/LICENSE-2.0 - - THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED - WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, - MERCHANTABLITY OR NON-INFRINGEMENT. - - See the Apache Version 2.0 License for specific language governing permissions - and limitations under the License. - ***************************************************************************** */ - /* global global, define, System, Reflect, Promise */ - var __extends; - var __assign; - var __rest; - var __decorate; - var __param; - var __metadata; - var __awaiter; - var __generator; - var __exportStar; - var __values; - var __read; - var __spread; - var __await; - var __asyncGenerator; - var __asyncDelegator; - var __asyncValues; - (function (factory) { - var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; - if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports], __WEBPACK_AMD_DEFINE_RESULT__ = function (exports) { factory(createExporter(root, createExporter(exports))); }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } - else if (typeof module === "object" && typeof module.exports === "object") { - factory(createExporter(root, createExporter(module.exports))); - } - else { - factory(createExporter(root)); - } - function createExporter(exports, previous) { - return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; - } - }) - (function (exporter) { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - - __extends = function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - - __assign = Object.assign || function (t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - - __rest = function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) - t[p[i]] = s[p[i]]; - return t; - }; - - __decorate = function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - - __param = function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - - __metadata = function (metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); - }; - - __awaiter = function (thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - - __generator = function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [0, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - }; - - __exportStar = function (m, exports) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; - }; - - __values = function (o) { - var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0; - if (m) return m.call(o); - return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - }; - - __read = function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - }; - - __spread = function () { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; - }; - - __await = function (v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); - }; - - __asyncGenerator = function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - }; - - __asyncDelegator = function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; } - }; - - __asyncValues = function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator]; - return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator](); - }; - - exporter("__extends", __extends); - exporter("__assign", __assign); - exporter("__rest", __rest); - exporter("__decorate", __decorate); - exporter("__param", __param); - exporter("__metadata", __metadata); - exporter("__awaiter", __awaiter); - exporter("__generator", __generator); - exporter("__exportStar", __exportStar); - exporter("__values", __values); - exporter("__read", __read); - exporter("__spread", __spread); - exporter("__await", __await); - exporter("__asyncGenerator", __asyncGenerator); - exporter("__asyncDelegator", __asyncDelegator); - exporter("__asyncValues", __asyncValues); - }); - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) - -/***/ }), -/* 381 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var classes = __webpack_require__(382); - var react_day_picker_1 = __webpack_require__(383); - exports.IDatePickerLocaleUtils = react_day_picker_1.LocaleUtils; - exports.Classes = classes; - var dateUtils_1 = __webpack_require__(403); - exports.DateRangeBoundary = dateUtils_1.DateRangeBoundary; - var dateInput_1 = __webpack_require__(521); - exports.DateInput = dateInput_1.DateInput; - var datePicker_1 = __webpack_require__(524); - exports.DatePicker = datePicker_1.DatePicker; - exports.DatePickerFactory = datePicker_1.DatePickerFactory; - var dateTimePicker_1 = __webpack_require__(528); - exports.DateTimePicker = dateTimePicker_1.DateTimePicker; - var dateRangeInput_1 = __webpack_require__(530); - exports.DateRangeInput = dateRangeInput_1.DateRangeInput; - var dateRangePicker_1 = __webpack_require__(531); - exports.DateRangePicker = dateRangePicker_1.DateRangePicker; - exports.DateRangePickerFactory = dateRangePicker_1.DateRangePickerFactory; - var timePicker_1 = __webpack_require__(529); - exports.TimePicker = timePicker_1.TimePicker; - exports.TimePickerFactory = timePicker_1.TimePickerFactory; - exports.TimePickerPrecision = timePicker_1.TimePickerPrecision; - - -/***/ }), -/* 382 */ -/***/ (function(module, exports) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DATEPICKER = "pt-datepicker"; - exports.DATEPICKER_CAPTION = "pt-datepicker-caption"; - exports.DATEPICKER_CAPTION_CARET = "pt-datepicker-caption-caret"; - exports.DATEPICKER_CAPTION_SELECT = "pt-datepicker-caption-select"; - exports.DATEPICKER_DAY = "DayPicker-Day"; - exports.DATEPICKER_DAY_DISABLED = "DayPicker-Day--disabled"; - exports.DATEPICKER_DAY_OUTSIDE = "DayPicker-Day--outside"; - exports.DATEPICKER_DAY_SELECTED = "DayPicker-Day--selected"; - exports.DATEPICKER_FOOTER = "pt-datepicker-footer"; - exports.DATEPICKER_MONTH_SELECT = "pt-datepicker-month-select"; - exports.DATEPICKER_YEAR_SELECT = "pt-datepicker-year-select"; - exports.DATERANGEPICKER = "pt-daterangepicker"; - exports.DATERANGEPICKER_CONTIGUOUS = "pt-daterangepicker-contiguous"; - exports.DATERANGEPICKER_SINGLE_MONTH = "pt-daterangepicker-single-month"; - exports.DATERANGEPICKER_DAY_SELECTED_RANGE = "DayPicker-Day--selected-range"; - exports.DATERANGEPICKER_DAY_HOVERED_RANGE = "DayPicker-Day--hovered-range"; - exports.DATERANGEPICKER_SHORTCUTS = "pt-daterangepicker-shortcuts"; - exports.DATETIMEPICKER = "pt-datetimepicker"; - exports.TIMEPICKER = "pt-timepicker"; - exports.TIMEPICKER_ARROW_BUTTON = "pt-timepicker-arrow-button"; - exports.TIMEPICKER_ARROW_ROW = "pt-timepicker-arrow-row"; - exports.TIMEPICKER_DIVIDER_TEXT = "pt-timepicker-divider-text"; - exports.TIMEPICKER_HOUR = "pt-timepicker-hour"; - exports.TIMEPICKER_INPUT = "pt-timepicker-input"; - exports.TIMEPICKER_INPUT_ROW = "pt-timepicker-input-row"; - exports.TIMEPICKER_MILLISECOND = "pt-timepicker-millisecond"; - exports.TIMEPICKER_MINUTE = "pt-timepicker-minute"; - exports.TIMEPICKER_SECOND = "pt-timepicker-second"; - - -/***/ }), -/* 383 */ -/***/ (function(module, exports, __webpack_require__) { - - /* eslint-disable no-var */ - /* eslint-env node */ - var DayPicker = __webpack_require__(384); - var DateUtils = __webpack_require__(397); - var LocaleUtils = __webpack_require__(398); - var ModifiersUtils = __webpack_require__(401); - var Weekday = __webpack_require__(400); - var Navbar = __webpack_require__(392); - var PropTypes = __webpack_require__(386); + updateOffset = updateOffset == null ? true : updateOffset; + + if (milliseconds) { + mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding); + } + if (days) { + set$1(mom, 'Date', get(mom, 'Date') + days * isAdding); + } + if (months) { + setMonth(mom, get(mom, 'Month') + months * isAdding); + } + if (updateOffset) { + hooks.updateOffset(mom, days || months); + } + } + + var add = createAdder(1, 'add'); + var subtract = createAdder(-1, 'subtract'); + + function getCalendarFormat(myMoment, now) { + var diff = myMoment.diff(now, 'days', true); + return diff < -6 ? 'sameElse' : + diff < -1 ? 'lastWeek' : + diff < 0 ? 'lastDay' : + diff < 1 ? 'sameDay' : + diff < 2 ? 'nextDay' : + diff < 7 ? 'nextWeek' : 'sameElse'; + } + + function calendar$1 (time, formats) { + // We want to compare the start of today, vs this. + // Getting start-of-today depends on whether we're local/utc/offset or not. + var now = time || createLocal(), + sod = cloneWithOffset(now, this).startOf('day'), + format = hooks.calendarFormat(this, sod) || 'sameElse'; + + var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]); + + return this.format(output || this.localeData().calendar(format, this, createLocal(now))); + } + + function clone () { + return new Moment(this); + } + + function isAfter (input, units) { + var localInput = isMoment(input) ? input : createLocal(input); + if (!(this.isValid() && localInput.isValid())) { + return false; + } + units = normalizeUnits(!isUndefined(units) ? units : 'millisecond'); + if (units === 'millisecond') { + return this.valueOf() > localInput.valueOf(); + } else { + return localInput.valueOf() < this.clone().startOf(units).valueOf(); + } + } + + function isBefore (input, units) { + var localInput = isMoment(input) ? input : createLocal(input); + if (!(this.isValid() && localInput.isValid())) { + return false; + } + units = normalizeUnits(!isUndefined(units) ? units : 'millisecond'); + if (units === 'millisecond') { + return this.valueOf() < localInput.valueOf(); + } else { + return this.clone().endOf(units).valueOf() < localInput.valueOf(); + } + } + + function isBetween (from, to, units, inclusivity) { + inclusivity = inclusivity || '()'; + return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) && + (inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units)); + } + + function isSame (input, units) { + var localInput = isMoment(input) ? input : createLocal(input), + inputMs; + if (!(this.isValid() && localInput.isValid())) { + return false; + } + units = normalizeUnits(units || 'millisecond'); + if (units === 'millisecond') { + return this.valueOf() === localInput.valueOf(); + } else { + inputMs = localInput.valueOf(); + return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf(); + } + } + + function isSameOrAfter (input, units) { + return this.isSame(input, units) || this.isAfter(input,units); + } + + function isSameOrBefore (input, units) { + return this.isSame(input, units) || this.isBefore(input,units); + } + + function diff (input, units, asFloat) { + var that, + zoneDelta, + delta, output; + + if (!this.isValid()) { + return NaN; + } + + that = cloneWithOffset(input, this); + + if (!that.isValid()) { + return NaN; + } + + zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4; + + units = normalizeUnits(units); + + if (units === 'year' || units === 'month' || units === 'quarter') { + output = monthDiff(this, that); + if (units === 'quarter') { + output = output / 3; + } else if (units === 'year') { + output = output / 12; + } + } else { + delta = this - that; + output = units === 'second' ? delta / 1e3 : // 1000 + units === 'minute' ? delta / 6e4 : // 1000 * 60 + units === 'hour' ? delta / 36e5 : // 1000 * 60 * 60 + units === 'day' ? (delta - zoneDelta) / 864e5 : // 1000 * 60 * 60 * 24, negate dst + units === 'week' ? (delta - zoneDelta) / 6048e5 : // 1000 * 60 * 60 * 24 * 7, negate dst + delta; + } + return asFloat ? output : absFloor(output); + } + + function monthDiff (a, b) { + // difference in months + var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()), + // b is in (anchor - 1 month, anchor + 1 month) + anchor = a.clone().add(wholeMonthDiff, 'months'), + anchor2, adjust; + + if (b - anchor < 0) { + anchor2 = a.clone().add(wholeMonthDiff - 1, 'months'); + // linear across the month + adjust = (b - anchor) / (anchor - anchor2); + } else { + anchor2 = a.clone().add(wholeMonthDiff + 1, 'months'); + // linear across the month + adjust = (b - anchor) / (anchor2 - anchor); + } - module.exports = DayPicker.default || DayPicker; - module.exports.DateUtils = DateUtils.default || DateUtils; - module.exports.LocaleUtils = LocaleUtils.default || LocaleUtils; - module.exports.ModifiersUtils = ModifiersUtils.default || ModifiersUtils; - module.exports.WeekdayPropTypes = Weekday.WeekdayPropTypes; - module.exports.NavbarPropTypes = Navbar.NavbarPropTypes; - module.exports.PropTypes = PropTypes; - - -/***/ }), -/* 384 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + //check for negative zero, return zero if negative zero + return -(wholeMonthDiff + adjust) || 0; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'; + hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]'; - 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; }; + function toString () { + return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); + } - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + function toISOString() { + if (!this.isValid()) { + return null; + } + var m = this.clone().utc(); + if (m.year() < 0 || m.year() > 9999) { + return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); + } + if (isFunction(Date.prototype.toISOString)) { + // native implementation is ~50x faster, use it when we can + return this.toDate().toISOString(); + } + return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); + } - var _react = __webpack_require__(3); + /** + * Return a human readable representation of a moment that can + * also be evaluated to get a new moment which is the same + * + * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects + */ + function inspect () { + if (!this.isValid()) { + return 'moment.invalid(/* ' + this._i + ' */)'; + } + var func = 'moment'; + var zone = ''; + if (!this.isLocal()) { + func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone'; + zone = 'Z'; + } + var prefix = '[' + func + '("]'; + var year = (0 <= this.year() && this.year() <= 9999) ? 'YYYY' : 'YYYYYY'; + var datetime = '-MM-DD[T]HH:mm:ss.SSS'; + var suffix = zone + '[")]'; - var _react2 = _interopRequireDefault(_react); + return this.format(prefix + year + datetime + suffix); + } - var _Caption = __webpack_require__(385); + function format (inputString) { + if (!inputString) { + inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat; + } + var output = formatMoment(this, inputString); + return this.localeData().postformat(output); + } - var _Caption2 = _interopRequireDefault(_Caption); + function from (time, withoutSuffix) { + if (this.isValid() && + ((isMoment(time) && time.isValid()) || + createLocal(time).isValid())) { + return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix); + } else { + return this.localeData().invalidDate(); + } + } - var _Navbar = __webpack_require__(392); + function fromNow (withoutSuffix) { + return this.from(createLocal(), withoutSuffix); + } - var _Navbar2 = _interopRequireDefault(_Navbar); + function to (time, withoutSuffix) { + if (this.isValid() && + ((isMoment(time) && time.isValid()) || + createLocal(time).isValid())) { + return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix); + } else { + return this.localeData().invalidDate(); + } + } - var _Month = __webpack_require__(394); + function toNow (withoutSuffix) { + return this.to(createLocal(), withoutSuffix); + } - var _Month2 = _interopRequireDefault(_Month); + // If passed a locale key, it will set the locale for this + // instance. Otherwise, it will return the locale configuration + // variables for this instance. + function locale (key) { + var newLocaleData; - var _Day = __webpack_require__(399); + if (key === undefined) { + return this._locale._abbr; + } else { + newLocaleData = getLocale(key); + if (newLocaleData != null) { + this._locale = newLocaleData; + } + return this; + } + } - var _Day2 = _interopRequireDefault(_Day); + var lang = deprecate( + 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', + function (key) { + if (key === undefined) { + return this.localeData(); + } else { + return this.locale(key); + } + } + ); - var _Weekday = __webpack_require__(400); + function localeData () { + return this._locale; + } - var _Weekday2 = _interopRequireDefault(_Weekday); + function startOf (units) { + units = normalizeUnits(units); + // the following switch intentionally omits break keywords + // to utilize falling through the cases. + switch (units) { + case 'year': + this.month(0); + /* falls through */ + case 'quarter': + case 'month': + this.date(1); + /* falls through */ + case 'week': + case 'isoWeek': + case 'day': + case 'date': + this.hours(0); + /* falls through */ + case 'hour': + this.minutes(0); + /* falls through */ + case 'minute': + this.seconds(0); + /* falls through */ + case 'second': + this.milliseconds(0); + } - var _Helpers = __webpack_require__(396); + // weeks are a special case + if (units === 'week') { + this.weekday(0); + } + if (units === 'isoWeek') { + this.isoWeekday(1); + } - var Helpers = _interopRequireWildcard(_Helpers); + // quarters are also special + if (units === 'quarter') { + this.month(Math.floor(this.month() / 3) * 3); + } - var _DateUtils = __webpack_require__(397); + return this; + } - var DateUtils = _interopRequireWildcard(_DateUtils); + function endOf (units) { + units = normalizeUnits(units); + if (units === undefined || units === 'millisecond') { + return this; + } - var _LocaleUtils = __webpack_require__(398); + // 'date' is an alias for 'day', so it should be considered as such. + if (units === 'date') { + units = 'day'; + } - var LocaleUtils = _interopRequireWildcard(_LocaleUtils); + return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms'); + } - var _ModifiersUtils = __webpack_require__(401); + function valueOf () { + return this._d.valueOf() - ((this._offset || 0) * 60000); + } - var ModifiersUtils = _interopRequireWildcard(_ModifiersUtils); + function unix () { + return Math.floor(this.valueOf() / 1000); + } - var _classNames = __webpack_require__(393); + function toDate () { + return new Date(this.valueOf()); + } - var _classNames2 = _interopRequireDefault(_classNames); + function toArray () { + var m = this; + return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()]; + } - var _keys = __webpack_require__(402); + function toObject () { + var m = this; + return { + years: m.year(), + months: m.month(), + date: m.date(), + hours: m.hours(), + minutes: m.minutes(), + seconds: m.seconds(), + milliseconds: m.milliseconds() + }; + } - var _keys2 = _interopRequireDefault(_keys); + function toJSON () { + // new Date(NaN).toJSON() === null + return this.isValid() ? this.toISOString() : null; + } - var _PropTypes = __webpack_require__(386); + function isValid$2 () { + return isValid(this); + } - var _PropTypes2 = _interopRequireDefault(_PropTypes); + function parsingFlags () { + return extend({}, getParsingFlags(this)); + } - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } + function invalidAt () { + return getParsingFlags(this).overflow; + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + function creationData() { + return { + input: this._i, + format: this._f, + locale: this._locale, + isUTC: this._isUTC, + strict: this._strict + }; + } - 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; } + // FORMATTING - function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } + addFormatToken(0, ['gg', 2], 0, function () { + return this.weekYear() % 100; + }); - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + addFormatToken(0, ['GG', 2], 0, function () { + return this.isoWeekYear() % 100; + }); - function _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; } + function addWeekYearFormatToken (token, getter) { + addFormatToken(0, [token, token.length], 0, getter); + } - function _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; } + addWeekYearFormatToken('gggg', 'weekYear'); + addWeekYearFormatToken('ggggg', 'weekYear'); + addWeekYearFormatToken('GGGG', 'isoWeekYear'); + addWeekYearFormatToken('GGGGG', 'isoWeekYear'); - var DayPicker = function (_Component) { - _inherits(DayPicker, _Component); + // ALIASES - function DayPicker(props) { - _classCallCheck(this, DayPicker); + addUnitAlias('weekYear', 'gg'); + addUnitAlias('isoWeekYear', 'GG'); - /* istanbul ignore next */ - // for the ignore above see: https://github.com/gotwarlost/istanbul/issues/690 + // PRIORITY - var _this = _possibleConstructorReturn(this, (DayPicker.__proto__ || Object.getPrototypeOf(DayPicker)).call(this, props)); + addUnitPriority('weekYear', 1); + addUnitPriority('isoWeekYear', 1); - _initialiseProps.call(_this); - _this.renderDayInMonth = _this.renderDayInMonth.bind(_this); - _this.showNextMonth = _this.showNextMonth.bind(_this); - _this.showPreviousMonth = _this.showPreviousMonth.bind(_this); + // PARSING - _this.handleKeyDown = _this.handleKeyDown.bind(_this); - _this.handleDayClick = _this.handleDayClick.bind(_this); - _this.handleDayKeyDown = _this.handleDayKeyDown.bind(_this); + addRegexToken('G', matchSigned); + addRegexToken('g', matchSigned); + addRegexToken('GG', match1to2, match2); + addRegexToken('gg', match1to2, match2); + addRegexToken('GGGG', match1to4, match4); + addRegexToken('gggg', match1to4, match4); + addRegexToken('GGGGG', match1to6, match6); + addRegexToken('ggggg', match1to6, match6); - _this.state = _this.getStateFromProps(props); - return _this; - } + addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) { + week[token.substr(0, 2)] = toInt(input); + }); - _createClass(DayPicker, [{ - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps) { - if (this.props.month !== nextProps.month) { - this.setState(this.getStateFromProps(nextProps)); - } - } - }, { - key: 'getDayNodes', - value: function getDayNodes() { - var outsideClassName = void 0; - if (this.props.classNames === _classNames2.default) { - // When using CSS modules prefix the modifier as required by the BEM syntax - outsideClassName = this.props.classNames.day + '--' + this.props.classNames.outside; - } else { - outsideClassName = '' + this.props.classNames.outside; - } - var dayQuery = this.props.classNames.day.replace(/ /g, '.'); - var outsideDayQuery = outsideClassName.replace(/ /g, '.'); - var selector = '.' + dayQuery + ':not(.' + outsideDayQuery + ')'; - return this.dayPicker.querySelectorAll(selector); - } - }, { - key: 'getNextNavigableMonth', - value: function getNextNavigableMonth() { - return DateUtils.addMonths(this.state.currentMonth, this.props.numberOfMonths); - } - }, { - key: 'getPreviousNavigableMonth', - value: function getPreviousNavigableMonth() { - return DateUtils.addMonths(this.state.currentMonth, -1); - } - }, { - key: 'allowPreviousMonth', - value: function allowPreviousMonth() { - var previousMonth = DateUtils.addMonths(this.state.currentMonth, -1); - return this.allowMonth(previousMonth); - } - }, { - key: 'allowNextMonth', - value: function allowNextMonth() { - var nextMonth = DateUtils.addMonths(this.state.currentMonth, this.props.numberOfMonths); - return this.allowMonth(nextMonth); - } - }, { - key: 'allowMonth', - value: function allowMonth(d) { - var _props = this.props, - fromMonth = _props.fromMonth, - toMonth = _props.toMonth, - canChangeMonth = _props.canChangeMonth; + addWeekParseToken(['gg', 'GG'], function (input, week, config, token) { + week[token] = hooks.parseTwoDigitYear(input); + }); - if (!canChangeMonth || fromMonth && Helpers.getMonthsDiff(fromMonth, d) < 0 || toMonth && Helpers.getMonthsDiff(toMonth, d) > 0) { - return false; - } - return true; - } - }, { - key: 'allowYearChange', - value: function allowYearChange() { - return this.props.canChangeMonth; - } - }, { - key: 'showMonth', - value: function showMonth(d, callback) { - var _this2 = this; + // MOMENTS - if (!this.allowMonth(d)) { - return; - } - this.setState({ currentMonth: Helpers.startOfMonth(d) }, function () { - if (callback) { - callback(); - } - if (_this2.props.onMonthChange) { - _this2.props.onMonthChange(_this2.state.currentMonth); + function getSetWeekYear (input) { + return getSetWeekYearHelper.call(this, + input, + this.week(), + this.weekday(), + this.localeData()._week.dow, + this.localeData()._week.doy); + } + + function getSetISOWeekYear (input) { + return getSetWeekYearHelper.call(this, + input, this.isoWeek(), this.isoWeekday(), 1, 4); + } + + function getISOWeeksInYear () { + return weeksInYear(this.year(), 1, 4); + } + + function getWeeksInYear () { + var weekInfo = this.localeData()._week; + return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); + } + + function getSetWeekYearHelper(input, week, weekday, dow, doy) { + var weeksTarget; + if (input == null) { + return weekOfYear(this, dow, doy).year; + } else { + weeksTarget = weeksInYear(input, dow, doy); + if (week > weeksTarget) { + week = weeksTarget; } - }); - } - }, { - key: 'showNextMonth', - value: function showNextMonth(callback) { - if (!this.allowNextMonth()) { - return; - } - var deltaMonths = this.props.pagedNavigation ? this.props.numberOfMonths : 1; - var nextMonth = DateUtils.addMonths(this.state.currentMonth, deltaMonths); - this.showMonth(nextMonth, callback); - } - }, { - key: 'showPreviousMonth', - value: function showPreviousMonth(callback) { - if (!this.allowPreviousMonth()) { - return; - } - var deltaMonths = this.props.pagedNavigation ? this.props.numberOfMonths : 1; - var previousMonth = DateUtils.addMonths(this.state.currentMonth, -deltaMonths); - this.showMonth(previousMonth, callback); - } - }, { - key: 'showNextYear', - value: function showNextYear() { - if (!this.allowYearChange()) { - return; - } - var nextMonth = DateUtils.addMonths(this.state.currentMonth, 12); - this.showMonth(nextMonth); - } - }, { - key: 'showPreviousYear', - value: function showPreviousYear() { - if (!this.allowYearChange()) { - return; - } - var nextMonth = DateUtils.addMonths(this.state.currentMonth, -12); - this.showMonth(nextMonth); - } - }, { - key: 'focusFirstDayOfMonth', - value: function focusFirstDayOfMonth() { - this.getDayNodes()[0].focus(); - } - }, { - key: 'focusLastDayOfMonth', - value: function focusLastDayOfMonth() { - var dayNodes = this.getDayNodes(); - dayNodes[dayNodes.length - 1].focus(); + return setWeekAll.call(this, input, week, weekday, dow, doy); } - }, { - key: 'focusPreviousDay', - value: function focusPreviousDay(dayNode) { - var _this3 = this; + } - var dayNodes = this.getDayNodes(); - var dayNodeIndex = [].concat(_toConsumableArray(dayNodes)).indexOf(dayNode); + function setWeekAll(weekYear, week, weekday, dow, doy) { + var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), + date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear); - if (dayNodeIndex === 0) { - this.showPreviousMonth(function () { - return _this3.focusLastDayOfMonth(); - }); - } else { - dayNodes[dayNodeIndex - 1].focus(); - } - } - }, { - key: 'focusNextDay', - value: function focusNextDay(dayNode) { - var _this4 = this; + this.year(date.getUTCFullYear()); + this.month(date.getUTCMonth()); + this.date(date.getUTCDate()); + return this; + } - var dayNodes = this.getDayNodes(); - var dayNodeIndex = [].concat(_toConsumableArray(dayNodes)).indexOf(dayNode); + // FORMATTING - if (dayNodeIndex === dayNodes.length - 1) { - this.showNextMonth(function () { - return _this4.focusFirstDayOfMonth(); - }); - } else { - dayNodes[dayNodeIndex + 1].focus(); - } - } - }, { - key: 'focusNextWeek', - value: function focusNextWeek(dayNode) { - var _this5 = this; + addFormatToken('Q', 0, 'Qo', 'quarter'); + + // ALIASES + + addUnitAlias('quarter', 'Q'); + + // PRIORITY + + addUnitPriority('quarter', 7); + + // PARSING - var dayNodes = this.getDayNodes(); - var dayNodeIndex = [].concat(_toConsumableArray(dayNodes)).indexOf(dayNode); - var isInLastWeekOfMonth = dayNodeIndex > dayNodes.length - 8; + addRegexToken('Q', match1); + addParseToken('Q', function (input, array) { + array[MONTH] = (toInt(input) - 1) * 3; + }); - if (isInLastWeekOfMonth) { - this.showNextMonth(function () { - var daysAfterIndex = dayNodes.length - dayNodeIndex; - var nextMonthDayNodeIndex = 7 - daysAfterIndex; - _this5.getDayNodes()[nextMonthDayNodeIndex].focus(); - }); - } else { - dayNodes[dayNodeIndex + 7].focus(); - } - } - }, { - key: 'focusPreviousWeek', - value: function focusPreviousWeek(dayNode) { - var _this6 = this; + // MOMENTS - var dayNodes = this.getDayNodes(); - var dayNodeIndex = [].concat(_toConsumableArray(dayNodes)).indexOf(dayNode); - var isInFirstWeekOfMonth = dayNodeIndex <= 6; + function getSetQuarter (input) { + return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3); + } - if (isInFirstWeekOfMonth) { - this.showPreviousMonth(function () { - var previousMonthDayNodes = _this6.getDayNodes(); - var startOfLastWeekOfMonth = previousMonthDayNodes.length - 7; - var previousMonthDayNodeIndex = startOfLastWeekOfMonth + dayNodeIndex; - previousMonthDayNodes[previousMonthDayNodeIndex].focus(); - }); - } else { - dayNodes[dayNodeIndex - 7].focus(); - } - } + // FORMATTING - // Event handlers + addFormatToken('D', ['DD', 2], 'Do', 'date'); - }, { - key: 'handleKeyDown', - value: function handleKeyDown(e) { - e.persist(); + // ALIASES - switch (e.keyCode) { - case _keys2.default.LEFT: - this.showPreviousMonth(); - break; - case _keys2.default.RIGHT: - this.showNextMonth(); - break; - case _keys2.default.UP: - this.showPreviousYear(); - break; - case _keys2.default.DOWN: - this.showNextYear(); - break; - default: - break; - } + addUnitAlias('date', 'D'); - if (this.props.onKeyDown) { - this.props.onKeyDown(e); - } - } - }, { - key: 'handleDayKeyDown', - value: function handleDayKeyDown(day, modifiers, e) { - e.persist(); - switch (e.keyCode) { - case _keys2.default.LEFT: - Helpers.cancelEvent(e); - this.focusPreviousDay(e.target); - break; - case _keys2.default.RIGHT: - Helpers.cancelEvent(e); - this.focusNextDay(e.target); - break; - case _keys2.default.UP: - Helpers.cancelEvent(e); - this.focusPreviousWeek(e.target); - break; - case _keys2.default.DOWN: - Helpers.cancelEvent(e); - this.focusNextWeek(e.target); - break; - case _keys2.default.ENTER: - case _keys2.default.SPACE: - Helpers.cancelEvent(e); - if (this.props.onDayClick) { - this.handleDayClick(day, modifiers, e); - } - break; - default: - break; - } - if (this.props.onDayKeyDown) { - this.props.onDayKeyDown(day, modifiers, e); - } - } - }, { - key: 'handleDayClick', - value: function handleDayClick(day, modifiers, e) { - e.persist(); - if (modifiers.outside) { - this.handleOutsideDayClick(day); - } - this.props.onDayClick(day, modifiers, e); - } - }, { - key: 'handleOutsideDayClick', - value: function handleOutsideDayClick(day) { - var currentMonth = this.state.currentMonth; - var numberOfMonths = this.props.numberOfMonths; + // PRIOROITY + addUnitPriority('date', 9); - var diffInMonths = Helpers.getMonthsDiff(currentMonth, day); - if (diffInMonths > 0 && diffInMonths >= numberOfMonths) { - this.showNextMonth(); - } else if (diffInMonths < 0) { - this.showPreviousMonth(); - } - } - }, { - key: 'renderNavbar', - value: function renderNavbar() { - var _props2 = this.props, - labels = _props2.labels, - locale = _props2.locale, - localeUtils = _props2.localeUtils, - canChangeMonth = _props2.canChangeMonth, - navbarElement = _props2.navbarElement, - attributes = _objectWithoutProperties(_props2, ['labels', 'locale', 'localeUtils', 'canChangeMonth', 'navbarElement']); + // PARSING - if (!canChangeMonth) return null; + addRegexToken('D', match1to2); + addRegexToken('DD', match1to2, match2); + addRegexToken('Do', function (isStrict, locale) { + // TODO: Remove "ordinalParse" fallback in next major release. + return isStrict ? + (locale._dayOfMonthOrdinalParse || locale._ordinalParse) : + locale._dayOfMonthOrdinalParseLenient; + }); - var props = { - classNames: this.props.classNames, - className: this.props.classNames.navBar, - nextMonth: this.getNextNavigableMonth(), - previousMonth: this.getPreviousNavigableMonth(), - showPreviousButton: this.allowPreviousMonth(), - showNextButton: this.allowNextMonth(), - onNextClick: this.showNextMonth, - onPreviousClick: this.showPreviousMonth, - dir: attributes.dir, - labels: labels, - locale: locale, - localeUtils: localeUtils - }; - return _react2.default.isValidElement(navbarElement) ? _react2.default.cloneElement(navbarElement, props) : _react2.default.createElement(navbarElement, props); - } - }, { - key: 'renderDayInMonth', - value: function renderDayInMonth(day, month) { - var propModifiers = Helpers.getModifiersFromProps(this.props); - var dayModifiers = ModifiersUtils.getModifiersForDay(day, propModifiers); - if (DateUtils.isSameDay(day, new Date()) && !Object.prototype.hasOwnProperty.call(propModifiers, this.props.classNames.today)) { - dayModifiers.push(this.props.classNames.today); - } - if (day.getMonth() !== month.getMonth()) { - dayModifiers.push(this.props.classNames.outside); - } + addParseToken(['D', 'DD'], DATE); + addParseToken('Do', function (input, array) { + array[DATE] = toInt(input.match(match1to2)[0], 10); + }); - var isOutside = day.getMonth() !== month.getMonth(); - var tabIndex = null; - if (this.props.onDayClick && !isOutside) { - tabIndex = -1; - // Focus on the first day of the month - if (day.getDate() === 1) { - tabIndex = this.props.tabIndex; - } - } - var key = '' + day.getFullYear() + day.getMonth() + day.getDate(); - var modifiers = {}; - dayModifiers.forEach(function (modifier) { - modifiers[modifier] = true; - }); + // MOMENTS - return _react2.default.createElement( - _Day2.default, - { - key: '' + (isOutside ? 'outside-' : '') + key, - classNames: this.props.classNames, - day: day, - modifiers: modifiers, - modifiersStyles: this.props.modifiersStyles, - empty: isOutside && !this.props.enableOutsideDays && !this.props.fixedWeeks, - tabIndex: tabIndex, - ariaLabel: this.props.localeUtils.formatDay(day, this.props.locale), - ariaDisabled: isOutside || dayModifiers.indexOf('disabled') > -1, - ariaSelected: dayModifiers.indexOf('selected') > -1, - onMouseEnter: this.props.onDayMouseEnter, - onMouseLeave: this.props.onDayMouseLeave, - onKeyDown: this.handleDayKeyDown, - onTouchStart: this.props.onDayTouchStart, - onTouchEnd: this.props.onDayTouchEnd, - onFocus: this.props.onDayFocus, - onClick: this.props.onDayClick ? this.handleDayClick : undefined - }, - this.props.renderDay(day, modifiers) - ); - } - }, { - key: 'renderMonths', - value: function renderMonths() { - var months = []; - var firstDayOfWeek = Helpers.getFirstDayOfWeekFromProps(this.props); + var getSetDayOfMonth = makeGetSet('Date', true); - for (var i = 0; i < this.props.numberOfMonths; i += 1) { - var month = DateUtils.addMonths(this.state.currentMonth, i); + // FORMATTING - months.push(_react2.default.createElement( - _Month2.default, - { - key: i, - classNames: this.props.classNames, - month: month, - months: this.props.months, - weekdayElement: this.props.weekdayElement, - captionElement: this.props.captionElement, - fixedWeeks: this.props.fixedWeeks, - weekdaysShort: this.props.weekdaysShort, - weekdaysLong: this.props.weekdaysLong, - locale: this.props.locale, - localeUtils: this.props.localeUtils, - firstDayOfWeek: firstDayOfWeek, - footer: this.props.todayButton && this.renderTodayButton(), - showWeekNumbers: this.props.showWeekNumbers, - onCaptionClick: this.props.onCaptionClick, - onWeekClick: this.props.onWeekClick - }, - this.renderDayInMonth - )); - } + addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'); - if (this.props.reverseMonths) { - months.reverse(); - } - return months; - } - }, { - key: 'renderTodayButton', - value: function renderTodayButton() { - return _react2.default.createElement( - 'button', - { - tabIndex: 0, - className: this.props.classNames.todayButton, - 'aria-label': this.props.todayButton, - onClick: this.handleTodayButtonClick - }, - this.props.todayButton - ); - } - }, { - key: 'render', - value: function render() { - var _this7 = this; + // ALIASES - var className = this.props.classNames.container; + addUnitAlias('dayOfYear', 'DDD'); - if (!this.props.onDayClick) { - className = className + ' ' + this.props.classNames.interactionDisabled; - } - if (this.props.className) { - className = className + ' ' + this.props.className; - } + // PRIORITY + addUnitPriority('dayOfYear', 4); - return _react2.default.createElement( - 'div', - _extends({}, this.props.containerProps, { - className: className, - ref: function ref(el) { - _this7.dayPicker = el; - }, - role: 'application', - lang: this.props.locale, - tabIndex: this.props.canChangeMonth && this.props.tabIndex, - onKeyDown: this.handleKeyDown, - onFocus: this.props.onFocus, - onBlur: this.props.onBlur - }), - this.renderNavbar(), - this.renderMonths() - ); - } - }]); + // PARSING - return DayPicker; - }(_react.Component); + addRegexToken('DDD', match1to3); + addRegexToken('DDDD', match3); + addParseToken(['DDD', 'DDDD'], function (input, array, config) { + config._dayOfYear = toInt(input); + }); - DayPicker.VERSION = '5.5.3'; - DayPicker.propTypes = { - // Rendering months - initialMonth: _PropTypes2.default.instanceOf(Date), - month: _PropTypes2.default.instanceOf(Date), - numberOfMonths: _PropTypes2.default.number, - fromMonth: _PropTypes2.default.instanceOf(Date), - toMonth: _PropTypes2.default.instanceOf(Date), - canChangeMonth: _PropTypes2.default.bool, - reverseMonths: _PropTypes2.default.bool, - pagedNavigation: _PropTypes2.default.bool, - todayButton: _PropTypes2.default.string, - showWeekNumbers: _PropTypes2.default.bool, + // HELPERS - // Modifiers - selectedDays: _PropTypes2.default.oneOfType([_PropTypes.ModifierPropType, _PropTypes2.default.arrayOf(_PropTypes.ModifierPropType)]), - disabledDays: _PropTypes2.default.oneOfType([_PropTypes.ModifierPropType, _PropTypes2.default.arrayOf(_PropTypes.ModifierPropType)]), + // MOMENTS - modifiers: _PropTypes2.default.object, - modifiersStyles: _PropTypes2.default.object, + function getSetDayOfYear (input) { + var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1; + return input == null ? dayOfYear : this.add((input - dayOfYear), 'd'); + } - // Localization - dir: _PropTypes2.default.string, - firstDayOfWeek: _PropTypes2.default.oneOf([0, 1, 2, 3, 4, 5, 6]), - labels: _PropTypes2.default.shape({ - nextMonth: _PropTypes2.default.string.isRequired, - previousMonth: _PropTypes2.default.string.isRequired - }).isRequired, - locale: _PropTypes2.default.string, - localeUtils: _PropTypes2.default.localeUtils, - months: _PropTypes2.default.arrayOf(_PropTypes2.default.string), - weekdaysLong: _PropTypes2.default.arrayOf(_PropTypes2.default.string), - weekdaysShort: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + // FORMATTING - // Customization - enableOutsideDays: _PropTypes2.default.bool, - fixedWeeks: _PropTypes2.default.bool, + addFormatToken('m', ['mm', 2], 0, 'minute'); - // CSS and HTML - classNames: _PropTypes2.default.shape({ - body: _PropTypes2.default.string, - container: _PropTypes2.default.string, - day: _PropTypes2.default.string.isRequired, - disabled: _PropTypes2.default.string.isRequired, - footer: _PropTypes2.default.string, - interactionDisabled: _PropTypes2.default.string, - month: _PropTypes2.default.string, - navBar: _PropTypes2.default.string, - outside: _PropTypes2.default.string.isRequired, - selected: _PropTypes2.default.string.isRequired, - today: _PropTypes2.default.string.isRequired, - todayButton: _PropTypes2.default.string, - week: _PropTypes2.default.string - }), - className: _PropTypes2.default.string, - containerProps: _PropTypes2.default.object, - tabIndex: _PropTypes2.default.number, + // ALIASES - // Custom elements - renderDay: _PropTypes2.default.func, - weekdayElement: _PropTypes2.default.oneOfType([_PropTypes2.default.element, _PropTypes2.default.func, _PropTypes2.default.instanceOf(_react.Component)]), - navbarElement: _PropTypes2.default.oneOfType([_PropTypes2.default.element, _PropTypes2.default.func, _PropTypes2.default.instanceOf(_react.Component)]), - captionElement: _PropTypes2.default.oneOfType([_PropTypes2.default.element, _PropTypes2.default.func, _PropTypes2.default.instanceOf(_react.Component)]), + addUnitAlias('minute', 'm'); - // Events - onBlur: _PropTypes2.default.func, - onFocus: _PropTypes2.default.func, - onKeyDown: _PropTypes2.default.func, - onDayClick: _PropTypes2.default.func, - onDayKeyDown: _PropTypes2.default.func, - onDayMouseEnter: _PropTypes2.default.func, - onDayMouseLeave: _PropTypes2.default.func, - onDayTouchStart: _PropTypes2.default.func, - onDayTouchEnd: _PropTypes2.default.func, - onDayFocus: _PropTypes2.default.func, - onMonthChange: _PropTypes2.default.func, - onCaptionClick: _PropTypes2.default.func, - onWeekClick: _PropTypes2.default.func - }; - DayPicker.defaultProps = { - classNames: _classNames2.default, - tabIndex: 0, - initialMonth: new Date(), - numberOfMonths: 1, - labels: { - previousMonth: 'Previous Month', - nextMonth: 'Next Month' - }, - locale: 'en', - localeUtils: LocaleUtils, - enableOutsideDays: false, - fixedWeeks: false, - canChangeMonth: true, - reverseMonths: false, - pagedNavigation: false, - showWeekNumbers: false, - renderDay: function renderDay(day) { - return day.getDate(); - }, - weekdayElement: _react2.default.createElement(_Weekday2.default, null), - navbarElement: _react2.default.createElement(_Navbar2.default, { classNames: _classNames2.default }), - captionElement: _react2.default.createElement(_Caption2.default, { classNames: _classNames2.default }) - }; + // PRIORITY - var _initialiseProps = function _initialiseProps() { - var _this8 = this; + addUnitPriority('minute', 14); - this.getStateFromProps = function (props) { - var initialMonth = Helpers.startOfMonth(props.month || props.initialMonth); - var currentMonth = initialMonth; + // PARSING - if (props.pagedNavigation && props.numberOfMonths > 1 && props.fromMonth) { - var diffInMonths = Helpers.getMonthsDiff(props.fromMonth, currentMonth); - currentMonth = DateUtils.addMonths(props.fromMonth, Math.floor(diffInMonths / props.numberOfMonths) * props.numberOfMonths); - } - return { currentMonth: currentMonth }; - }; + addRegexToken('m', match1to2); + addRegexToken('mm', match1to2, match2); + addParseToken(['m', 'mm'], MINUTE); - this.dayPicker = null; + // MOMENTS - this.handleTodayButtonClick = function (e) { - _this8.showMonth(new Date()); - e.target.blur(); - }; - }; + var getSetMinute = makeGetSet('Minutes', false); - exports.default = DayPicker; - - -/***/ }), -/* 385 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + // FORMATTING - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = Caption; + addFormatToken('s', ['ss', 2], 0, 'second'); - var _react = __webpack_require__(3); + // ALIASES - var _react2 = _interopRequireDefault(_react); + addUnitAlias('second', 's'); - var _PropTypes = __webpack_require__(386); + // PRIORITY - var _PropTypes2 = _interopRequireDefault(_PropTypes); + addUnitPriority('second', 15); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + // PARSING - function Caption(_ref) { - var classNames = _ref.classNames, - date = _ref.date, - months = _ref.months, - locale = _ref.locale, - localeUtils = _ref.localeUtils, - onClick = _ref.onClick; + addRegexToken('s', match1to2); + addRegexToken('ss', match1to2, match2); + addParseToken(['s', 'ss'], SECOND); - return _react2.default.createElement( - 'div', - { className: classNames.caption, onClick: onClick, role: 'heading' }, - months ? months[date.getMonth()] + ' ' + date.getFullYear() : localeUtils.formatMonthTitle(date, locale) - ); - } + // MOMENTS - Caption.propTypes = { - date: _PropTypes2.default.instanceOf(Date), - months: _PropTypes2.default.arrayOf(_PropTypes2.default.string), - locale: _PropTypes2.default.string, - localeUtils: _PropTypes2.default.localeUtils, - onClick: _PropTypes2.default.func, - classNames: _PropTypes2.default.shape({ - caption: _PropTypes2.default.string.isRequired - }).isRequired - }; - - -/***/ }), -/* 386 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + var getSetSecond = makeGetSet('Seconds', false); - Object.defineProperty(exports, "__esModule", { - value: true + // FORMATTING + + addFormatToken('S', 0, 0, function () { + return ~~(this.millisecond() / 100); + }); + + addFormatToken(0, ['SS', 2], 0, function () { + return ~~(this.millisecond() / 10); + }); + + addFormatToken(0, ['SSS', 3], 0, 'millisecond'); + addFormatToken(0, ['SSSS', 4], 0, function () { + return this.millisecond() * 10; + }); + addFormatToken(0, ['SSSSS', 5], 0, function () { + return this.millisecond() * 100; + }); + addFormatToken(0, ['SSSSSS', 6], 0, function () { + return this.millisecond() * 1000; + }); + addFormatToken(0, ['SSSSSSS', 7], 0, function () { + return this.millisecond() * 10000; + }); + addFormatToken(0, ['SSSSSSSS', 8], 0, function () { + return this.millisecond() * 100000; + }); + addFormatToken(0, ['SSSSSSSSS', 9], 0, function () { + return this.millisecond() * 1000000; }); - exports.ModifierPropType = undefined; - 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; }; - var _propTypes = __webpack_require__(387); + // ALIASES - var _propTypes2 = _interopRequireDefault(_propTypes); + addUnitAlias('millisecond', 'ms'); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + // PRIORITY - var PrimitiveTypes = _extends({ - localeUtils: _propTypes2.default.shape({ - formatMonthTitle: _propTypes2.default.func, - formatWeekdayShort: _propTypes2.default.func, - formatWeekdayLong: _propTypes2.default.func, - getFirstDayOfWeek: _propTypes2.default.func - }), - range: _propTypes2.default.shape({ - from: _propTypes2.default.instanceOf(Date), - to: _propTypes2.default.instanceOf(Date) - }), - after: _propTypes2.default.shape({ - after: _propTypes2.default.instanceOf(Date) - }), - before: _propTypes2.default.shape({ - before: _propTypes2.default.instanceOf(Date) - }) - }, _propTypes2.default); + addUnitPriority('millisecond', 16); - var ModifierPropType = exports.ModifierPropType = _propTypes2.default.oneOfType([PrimitiveTypes.after, PrimitiveTypes.before, PrimitiveTypes.range, _propTypes2.default.func, _propTypes2.default.array]); + // PARSING - exports.default = PrimitiveTypes; - - -/***/ }), -/* 387 */ -/***/ (function(module, exports, __webpack_require__) { - - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ + addRegexToken('S', match1to3, match1); + addRegexToken('SS', match1to3, match2); + addRegexToken('SSS', match1to3, match3); - if (false) { - var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' && - Symbol.for && - Symbol.for('react.element')) || - 0xeac7; + var token; + for (token = 'SSSS'; token.length <= 9; token += 'S') { + addRegexToken(token, matchUnsigned); + } - var isValidElement = function(object) { - return typeof object === 'object' && - object !== null && - object.$$typeof === REACT_ELEMENT_TYPE; - }; + function parseMs(input, array) { + array[MILLISECOND] = toInt(('0.' + input) * 1000); + } - // By explicitly using `prop-types` you are opting into new development behavior. - // http://fb.me/prop-types-in-prod - var throwOnDirectAccess = true; - module.exports = require('./factoryWithTypeCheckers')(isValidElement, throwOnDirectAccess); - } else { - // By explicitly using `prop-types` you are opting into new production behavior. - // http://fb.me/prop-types-in-prod - module.exports = __webpack_require__(388)(); + for (token = 'S'; token.length <= 9; token += 'S') { + addParseToken(token, parseMs); } - - -/***/ }), -/* 388 */ -/***/ (function(module, exports, __webpack_require__) { - - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ + // MOMENTS - 'use strict'; + var getSetMillisecond = makeGetSet('Milliseconds', false); - var emptyFunction = __webpack_require__(389); - var invariant = __webpack_require__(390); - var ReactPropTypesSecret = __webpack_require__(391); + // FORMATTING - module.exports = function() { - function shim(props, propName, componentName, location, propFullName, secret) { - if (secret === ReactPropTypesSecret) { - // It is still safe when called from React. - return; - } - invariant( - false, - 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + - 'Use PropTypes.checkPropTypes() to call them. ' + - 'Read more at http://fb.me/use-check-prop-types' - ); - }; - shim.isRequired = shim; - function getShim() { - return shim; - }; - // Important! - // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. - var ReactPropTypes = { - array: shim, - bool: shim, - func: shim, - number: shim, - object: shim, - string: shim, - symbol: shim, + addFormatToken('z', 0, 0, 'zoneAbbr'); + addFormatToken('zz', 0, 0, 'zoneName'); - any: shim, - arrayOf: getShim, - element: shim, - instanceOf: getShim, - node: shim, - objectOf: getShim, - oneOf: getShim, - oneOfType: getShim, - shape: getShim - }; + // MOMENTS - ReactPropTypes.checkPropTypes = emptyFunction; - ReactPropTypes.PropTypes = ReactPropTypes; + function getZoneAbbr () { + return this._isUTC ? 'UTC' : ''; + } - return ReactPropTypes; - }; - - -/***/ }), -/* 389 */ -/***/ (function(module, exports) { - - "use strict"; + function getZoneName () { + return this._isUTC ? 'Coordinated Universal Time' : ''; + } - /** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */ + var proto = Moment.prototype; - function makeEmptyFunction(arg) { - return function () { - return arg; - }; - } + proto.add = add; + proto.calendar = calendar$1; + proto.clone = clone; + proto.diff = diff; + proto.endOf = endOf; + proto.format = format; + proto.from = from; + proto.fromNow = fromNow; + proto.to = to; + proto.toNow = toNow; + proto.get = stringGet; + proto.invalidAt = invalidAt; + proto.isAfter = isAfter; + proto.isBefore = isBefore; + proto.isBetween = isBetween; + proto.isSame = isSame; + proto.isSameOrAfter = isSameOrAfter; + proto.isSameOrBefore = isSameOrBefore; + proto.isValid = isValid$2; + proto.lang = lang; + proto.locale = locale; + proto.localeData = localeData; + proto.max = prototypeMax; + proto.min = prototypeMin; + proto.parsingFlags = parsingFlags; + proto.set = stringSet; + proto.startOf = startOf; + proto.subtract = subtract; + proto.toArray = toArray; + proto.toObject = toObject; + proto.toDate = toDate; + proto.toISOString = toISOString; + proto.inspect = inspect; + proto.toJSON = toJSON; + proto.toString = toString; + proto.unix = unix; + proto.valueOf = valueOf; + proto.creationData = creationData; - /** - * This function accepts and discards inputs; it has no side effects. This is - * primarily useful idiomatically for overridable function endpoints which - * always need to be callable, since JS lacks a null-call idiom ala Cocoa. - */ - var emptyFunction = function emptyFunction() {}; + // Year + proto.year = getSetYear; + proto.isLeapYear = getIsLeapYear; - emptyFunction.thatReturns = makeEmptyFunction; - emptyFunction.thatReturnsFalse = makeEmptyFunction(false); - emptyFunction.thatReturnsTrue = makeEmptyFunction(true); - emptyFunction.thatReturnsNull = makeEmptyFunction(null); - emptyFunction.thatReturnsThis = function () { - return this; - }; - emptyFunction.thatReturnsArgument = function (arg) { - return arg; - }; + // Week Year + proto.weekYear = getSetWeekYear; + proto.isoWeekYear = getSetISOWeekYear; - module.exports = emptyFunction; - -/***/ }), -/* 390 */ -/***/ (function(module, exports, __webpack_require__) { - - /** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ + // Quarter + proto.quarter = proto.quarters = getSetQuarter; - 'use strict'; + // Month + proto.month = getSetMonth; + proto.daysInMonth = getDaysInMonth; - /** - * Use invariant() to assert state which your program assumes to be true. - * - * Provide sprintf-style format (only %s is supported) and arguments - * to provide information about what broke and what you were - * expecting. - * - * The invariant message will be stripped in production, but the invariant - * will remain to ensure logic does not differ in production. - */ + // Week + proto.week = proto.weeks = getSetWeek; + proto.isoWeek = proto.isoWeeks = getSetISOWeek; + proto.weeksInYear = getWeeksInYear; + proto.isoWeeksInYear = getISOWeeksInYear; - var validateFormat = function validateFormat(format) {}; + // Day + proto.date = getSetDayOfMonth; + proto.day = proto.days = getSetDayOfWeek; + proto.weekday = getSetLocaleDayOfWeek; + proto.isoWeekday = getSetISODayOfWeek; + proto.dayOfYear = getSetDayOfYear; - if (false) { - validateFormat = function validateFormat(format) { - if (format === undefined) { - throw new Error('invariant requires an error message argument'); - } - }; - } + // Hour + proto.hour = proto.hours = getSetHour; - function invariant(condition, format, a, b, c, d, e, f) { - validateFormat(format); + // Minute + proto.minute = proto.minutes = getSetMinute; - if (!condition) { - var error; - if (format === undefined) { - error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); - } else { - var args = [a, b, c, d, e, f]; - var argIndex = 0; - error = new Error(format.replace(/%s/g, function () { - return args[argIndex++]; - })); - error.name = 'Invariant Violation'; - } + // Second + proto.second = proto.seconds = getSetSecond; - error.framesToPop = 1; // we don't care about invariant's own frame - throw error; - } - } + // Millisecond + proto.millisecond = proto.milliseconds = getSetMillisecond; - module.exports = invariant; - -/***/ }), -/* 391 */ -/***/ (function(module, exports) { - - /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ + // Offset + proto.utcOffset = getSetOffset; + proto.utc = setOffsetToUTC; + proto.local = setOffsetToLocal; + proto.parseZone = setOffsetToParsedOffset; + proto.hasAlignedHourOffset = hasAlignedHourOffset; + proto.isDST = isDaylightSavingTime; + proto.isLocal = isLocal; + proto.isUtcOffset = isUtcOffset; + proto.isUtc = isUtc; + proto.isUTC = isUtc; - 'use strict'; + // Timezone + proto.zoneAbbr = getZoneAbbr; + proto.zoneName = getZoneName; - var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + // Deprecations + proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth); + proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth); + proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear); + proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone); + proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted); - module.exports = ReactPropTypesSecret; - - -/***/ }), -/* 392 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + function createUnix (input) { + return createLocal(input * 1000); + } - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.NavbarPropTypes = undefined; - exports.default = Navbar; + function createInZone () { + return createLocal.apply(null, arguments).parseZone(); + } - var _react = __webpack_require__(3); + function preParsePostFormat (string) { + return string; + } - var _react2 = _interopRequireDefault(_react); + var proto$1 = Locale.prototype; - var _PropTypes = __webpack_require__(386); + proto$1.calendar = calendar; + proto$1.longDateFormat = longDateFormat; + proto$1.invalidDate = invalidDate; + proto$1.ordinal = ordinal; + proto$1.preparse = preParsePostFormat; + proto$1.postformat = preParsePostFormat; + proto$1.relativeTime = relativeTime; + proto$1.pastFuture = pastFuture; + proto$1.set = set; - var _PropTypes2 = _interopRequireDefault(_PropTypes); + // Month + proto$1.months = localeMonths; + proto$1.monthsShort = localeMonthsShort; + proto$1.monthsParse = localeMonthsParse; + proto$1.monthsRegex = monthsRegex; + proto$1.monthsShortRegex = monthsShortRegex; - var _classNames = __webpack_require__(393); + // Week + proto$1.week = localeWeek; + proto$1.firstDayOfYear = localeFirstDayOfYear; + proto$1.firstDayOfWeek = localeFirstDayOfWeek; - var _classNames2 = _interopRequireDefault(_classNames); + // Day of Week + proto$1.weekdays = localeWeekdays; + proto$1.weekdaysMin = localeWeekdaysMin; + proto$1.weekdaysShort = localeWeekdaysShort; + proto$1.weekdaysParse = localeWeekdaysParse; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + proto$1.weekdaysRegex = weekdaysRegex; + proto$1.weekdaysShortRegex = weekdaysShortRegex; + proto$1.weekdaysMinRegex = weekdaysMinRegex; - function Navbar(_ref) { - var classNames = _ref.classNames, - className = _ref.className, - showPreviousButton = _ref.showPreviousButton, - showNextButton = _ref.showNextButton, - onPreviousClick = _ref.onPreviousClick, - onNextClick = _ref.onNextClick, - labels = _ref.labels, - dir = _ref.dir; + // Hours + proto$1.isPM = localeIsPM; + proto$1.meridiem = localeMeridiem; - var previousClickHandler = dir === 'rtl' ? onNextClick : onPreviousClick; - var nextClickHandler = dir === 'rtl' ? onPreviousClick : onNextClick; + function get$1 (format, index, field, setter) { + var locale = getLocale(); + var utc = createUTC().set(setter, index); + return locale[field](utc, format); + } - var previousButton = showPreviousButton && _react2.default.createElement('span', { - role: 'button', - 'aria-label': labels.previousMonth, - key: 'previous', - className: classNames.navButtonPrev, - onClick: function onClick() { - return previousClickHandler(); + function listMonthsImpl (format, index, field) { + if (isNumber(format)) { + index = format; + format = undefined; } - }); - var nextButton = showNextButton && _react2.default.createElement('span', { - role: 'button', - 'aria-label': labels.nextMonth, - key: 'right', - className: classNames.navButtonNext, - onClick: function onClick() { - return nextClickHandler(); + format = format || ''; + + if (index != null) { + return get$1(format, index, field, 'month'); } - }); - return _react2.default.createElement( - 'div', - { className: className || classNames.navBar }, - dir === 'rtl' ? [nextButton, previousButton] : [previousButton, nextButton] - ); + var i; + var out = []; + for (i = 0; i < 12; i++) { + out[i] = get$1(format, i, field, 'month'); + } + return out; } - var NavbarPropTypes = exports.NavbarPropTypes = { - classNames: _PropTypes2.default.shape({ - navBar: _PropTypes2.default.string.isRequired, - navButtonPrev: _PropTypes2.default.string.isRequired, - navButtonNext: _PropTypes2.default.string.isRequired - }), - className: _PropTypes2.default.string, - showPreviousButton: _PropTypes2.default.bool, - showNextButton: _PropTypes2.default.bool, - onPreviousClick: _PropTypes2.default.func, - onNextClick: _PropTypes2.default.func, - dir: _PropTypes2.default.string, - labels: _PropTypes2.default.shape({ - previousMonth: _PropTypes2.default.string.isRequired, - nextMonth: _PropTypes2.default.string.isRequired - }) - }; - - Navbar.propTypes = NavbarPropTypes; + // () + // (5) + // (fmt, 5) + // (fmt) + // (true) + // (true, 5) + // (true, fmt, 5) + // (true, fmt) + function listWeekdaysImpl (localeSorted, format, index, field) { + if (typeof localeSorted === 'boolean') { + if (isNumber(format)) { + index = format; + format = undefined; + } - Navbar.defaultProps = { - classNames: _classNames2.default, - dir: 'ltr', - labels: { - previousMonth: 'Previous Month', - nextMonth: 'Next Month' - }, - showPreviousButton: true, - showNextButton: true - }; - - -/***/ }), -/* 393 */ -/***/ (function(module, exports) { - - 'use strict'; + format = format || ''; + } else { + format = localeSorted; + index = format; + localeSorted = false; - Object.defineProperty(exports, "__esModule", { - value: true - }); - // Proxy object to map classnames when css modules are not used + if (isNumber(format)) { + index = format; + format = undefined; + } - exports.default = { - container: 'DayPicker', - interactionDisabled: 'DayPicker--interactionDisabled', - month: 'DayPicker-Month', - navBar: 'DayPicker-NavBar', - navButtonPrev: 'DayPicker-NavButton DayPicker-NavButton--prev', - navButtonNext: 'DayPicker-NavButton DayPicker-NavButton--next', - caption: 'DayPicker-Caption', - weekdays: 'DayPicker-Weekdays', - weekdaysRow: 'DayPicker-WeekdaysRow', - weekday: 'DayPicker-Weekday', - body: 'DayPicker-Body', - week: 'DayPicker-Week', - weekNumber: 'DayPicker-WeekNumber', - day: 'DayPicker-Day', - footer: 'DayPicker-Footer', - todayButton: 'DayPicker-TodayButton', + format = format || ''; + } - // default modifiers - today: 'today', - selected: 'selected', - disabled: 'disabled', - outside: 'outside' - }; - - -/***/ }), -/* 394 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + var locale = getLocale(), + shift = localeSorted ? locale._week.dow : 0; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = Month; + if (index != null) { + return get$1(format, (index + shift) % 7, field, 'day'); + } - var _react = __webpack_require__(3); + var i; + var out = []; + for (i = 0; i < 7; i++) { + out[i] = get$1(format, (i + shift) % 7, field, 'day'); + } + return out; + } - var _react2 = _interopRequireDefault(_react); + function listMonths (format, index) { + return listMonthsImpl(format, index, 'months'); + } - var _PropTypes = __webpack_require__(386); + function listMonthsShort (format, index) { + return listMonthsImpl(format, index, 'monthsShort'); + } - var _PropTypes2 = _interopRequireDefault(_PropTypes); + function listWeekdays (localeSorted, format, index) { + return listWeekdaysImpl(localeSorted, format, index, 'weekdays'); + } - var _Weekdays = __webpack_require__(395); + function listWeekdaysShort (localeSorted, format, index) { + return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort'); + } - var _Weekdays2 = _interopRequireDefault(_Weekdays); + function listWeekdaysMin (localeSorted, format, index) { + return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin'); + } - var _Helpers = __webpack_require__(396); + getSetGlobalLocale('en', { + dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, + ordinal : function (number) { + var b = number % 10, + output = (toInt(number % 100 / 10) === 1) ? 'th' : + (b === 1) ? 'st' : + (b === 2) ? 'nd' : + (b === 3) ? 'rd' : 'th'; + return number + output; + } + }); - var _DateUtils = __webpack_require__(397); + // Side effect imports + hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale); + hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var mathAbs = Math.abs; - function Month(_ref) { - var classNames = _ref.classNames, - month = _ref.month, - months = _ref.months, - fixedWeeks = _ref.fixedWeeks, - captionElement = _ref.captionElement, - weekdayElement = _ref.weekdayElement, - locale = _ref.locale, - localeUtils = _ref.localeUtils, - weekdaysLong = _ref.weekdaysLong, - weekdaysShort = _ref.weekdaysShort, - firstDayOfWeek = _ref.firstDayOfWeek, - onCaptionClick = _ref.onCaptionClick, - children = _ref.children, - footer = _ref.footer, - showWeekNumbers = _ref.showWeekNumbers, - onWeekClick = _ref.onWeekClick; + function abs () { + var data = this._data; - var captionProps = { - date: month, - classNames: classNames, - months: months, - localeUtils: localeUtils, - locale: locale, - onClick: onCaptionClick ? function (e) { - return onCaptionClick(month, e); - } : undefined - }; - var caption = _react2.default.isValidElement(captionElement) ? _react2.default.cloneElement(captionElement, captionProps) : _react2.default.createElement(captionElement, captionProps); + this._milliseconds = mathAbs(this._milliseconds); + this._days = mathAbs(this._days); + this._months = mathAbs(this._months); - var weeks = (0, _Helpers.getWeekArray)(month, firstDayOfWeek, fixedWeeks); + data.milliseconds = mathAbs(data.milliseconds); + data.seconds = mathAbs(data.seconds); + data.minutes = mathAbs(data.minutes); + data.hours = mathAbs(data.hours); + data.months = mathAbs(data.months); + data.years = mathAbs(data.years); - return _react2.default.createElement( - 'div', - { className: classNames.month, role: 'grid' }, - caption, - _react2.default.createElement(_Weekdays2.default, { - classNames: classNames, - weekdaysShort: weekdaysShort, - weekdaysLong: weekdaysLong, - firstDayOfWeek: firstDayOfWeek, - showWeekNumbers: showWeekNumbers, - locale: locale, - localeUtils: localeUtils, - weekdayElement: weekdayElement - }), - _react2.default.createElement( - 'div', - { className: classNames.body, role: 'rowgroup' }, - weeks.map(function (week) { - var weekNumber = void 0; - if (showWeekNumbers) { - weekNumber = (0, _DateUtils.getWeekNumber)(week[0]); - } - return _react2.default.createElement( - 'div', - { key: week[0].getTime(), className: classNames.week, role: 'row' }, - showWeekNumbers && _react2.default.createElement( - 'div', - { - className: classNames.weekNumber, - tabIndex: 0, - role: 'gridcell', - onClick: function onClick(e) { - return onWeekClick(weekNumber, week, e); - } - }, - weekNumber - ), - week.map(function (day) { - return children(day, month); - }) - ); - }) - ), - footer && _react2.default.createElement( - 'div', - { className: classNames.footer }, - footer - ) - ); + return this; } - Month.propTypes = { - classNames: _PropTypes2.default.shape({ - month: _PropTypes2.default.string.isRequired, - body: _PropTypes2.default.string.isRequired, - week: _PropTypes2.default.string.isRequired - }).isRequired, + function addSubtract$1 (duration, input, value, direction) { + var other = createDuration(input, value); - month: _PropTypes2.default.instanceOf(Date).isRequired, - months: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + duration._milliseconds += direction * other._milliseconds; + duration._days += direction * other._days; + duration._months += direction * other._months; - fixedWeeks: _PropTypes2.default.bool, - captionElement: _PropTypes2.default.oneOfType([_PropTypes2.default.element, _PropTypes2.default.func, _PropTypes2.default.instanceOf(_react2.default.Component)]).isRequired, - weekdayElement: _PropTypes2.default.oneOfType([_PropTypes2.default.element, _PropTypes2.default.func, _PropTypes2.default.instanceOf(_react2.default.Component)]), + return duration._bubble(); + } - footer: _PropTypes2.default.node, - showWeekNumbers: _PropTypes2.default.bool, - onWeekClick: _PropTypes2.default.func, + // supports only 2.0-style add(1, 's') or add(duration) + function add$1 (input, value) { + return addSubtract$1(this, input, value, 1); + } - locale: _PropTypes2.default.string.isRequired, - localeUtils: _PropTypes2.default.localeUtils.isRequired, - weekdaysLong: _PropTypes2.default.arrayOf(_PropTypes2.default.string), - weekdaysShort: _PropTypes2.default.arrayOf(_PropTypes2.default.string), - firstDayOfWeek: _PropTypes2.default.number.isRequired, + // supports only 2.0-style subtract(1, 's') or subtract(duration) + function subtract$1 (input, value) { + return addSubtract$1(this, input, value, -1); + } - onCaptionClick: _PropTypes2.default.func, + function absCeil (number) { + if (number < 0) { + return Math.floor(number); + } else { + return Math.ceil(number); + } + } - children: _PropTypes2.default.func.isRequired - }; - - -/***/ }), -/* 395 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + function bubble () { + var milliseconds = this._milliseconds; + var days = this._days; + var months = this._months; + var data = this._data; + var seconds, minutes, hours, years, monthsFromDays; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = Weekdays; + // if we have a mix of positive and negative values, bubble down first + // check: https://github.com/moment/moment/issues/2166 + if (!((milliseconds >= 0 && days >= 0 && months >= 0) || + (milliseconds <= 0 && days <= 0 && months <= 0))) { + milliseconds += absCeil(monthsToDays(months) + days) * 864e5; + days = 0; + months = 0; + } - var _react = __webpack_require__(3); + // The following code bubbles up values, see the tests for + // examples of what that means. + data.milliseconds = milliseconds % 1000; - var _react2 = _interopRequireDefault(_react); + seconds = absFloor(milliseconds / 1000); + data.seconds = seconds % 60; - var _PropTypes = __webpack_require__(386); + minutes = absFloor(seconds / 60); + data.minutes = minutes % 60; - var _PropTypes2 = _interopRequireDefault(_PropTypes); + hours = absFloor(minutes / 60); + data.hours = hours % 24; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + days += absFloor(hours / 24); - function Weekdays(_ref) { - var classNames = _ref.classNames, - firstDayOfWeek = _ref.firstDayOfWeek, - showWeekNumbers = _ref.showWeekNumbers, - weekdaysLong = _ref.weekdaysLong, - weekdaysShort = _ref.weekdaysShort, - locale = _ref.locale, - localeUtils = _ref.localeUtils, - weekdayElement = _ref.weekdayElement; + // convert days to months + monthsFromDays = absFloor(daysToMonths(days)); + months += monthsFromDays; + days -= absCeil(monthsToDays(monthsFromDays)); - var days = []; - for (var i = 0; i < 7; i += 1) { - var weekday = (i + firstDayOfWeek) % 7; - var elementProps = { - key: i, - className: classNames.weekday, - weekday: weekday, - weekdaysLong: weekdaysLong, - weekdaysShort: weekdaysShort, - localeUtils: localeUtils, - locale: locale - }; - var element = _react2.default.isValidElement(weekdayElement) ? _react2.default.cloneElement(weekdayElement, elementProps) : _react2.default.createElement(weekdayElement, elementProps); - days.push(element); - } + // 12 months -> 1 year + years = absFloor(months / 12); + months %= 12; - return _react2.default.createElement( - 'div', - { className: classNames.weekdays, role: 'rowgroup' }, - _react2.default.createElement( - 'div', - { className: classNames.weekdaysRow, role: 'row' }, - showWeekNumbers && _react2.default.createElement('div', { className: classNames.weekday }), - days - ) - ); - } + data.days = days; + data.months = months; + data.years = years; - Weekdays.propTypes = { - classNames: _PropTypes2.default.shape({ - weekday: _PropTypes2.default.string.isRequired, - weekdays: _PropTypes2.default.string.isRequired, - weekdaysRow: _PropTypes2.default.string.isRequired - }).isRequired, + return this; + } - firstDayOfWeek: _PropTypes2.default.number.isRequired, - weekdaysLong: _PropTypes2.default.arrayOf(_PropTypes2.default.string), - weekdaysShort: _PropTypes2.default.arrayOf(_PropTypes2.default.string), - showWeekNumbers: _PropTypes2.default.bool, - locale: _PropTypes2.default.string.isRequired, - localeUtils: _PropTypes2.default.localeUtils.isRequired, - weekdayElement: _PropTypes2.default.oneOfType([_PropTypes2.default.element, _PropTypes2.default.func, _PropTypes2.default.instanceOf(_react2.default.Component)]) - }; - - -/***/ }), -/* 396 */ -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; + function daysToMonths (days) { + // 400 years have 146097 days (taking into account leap year rules) + // 400 years have 12 months === 4800 + return days * 4800 / 146097; + } - Object.defineProperty(exports, "__esModule", { - value: true - }); + function monthsToDays (months) { + // the reverse of daysToMonths + return months * 146097 / 4800; + } - 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; }; + function as (units) { + if (!this.isValid()) { + return NaN; + } + var days; + var months; + var milliseconds = this._milliseconds; - exports.cancelEvent = cancelEvent; - exports.getFirstDayOfMonth = getFirstDayOfMonth; - exports.getDaysInMonth = getDaysInMonth; - exports.getModifiersFromProps = getModifiersFromProps; - exports.getFirstDayOfWeekFromProps = getFirstDayOfWeekFromProps; - exports.isRangeOfDates = isRangeOfDates; - exports.getMonthsDiff = getMonthsDiff; - exports.getWeekArray = getWeekArray; - exports.startOfMonth = startOfMonth; + units = normalizeUnits(units); - var _DateUtils = __webpack_require__(397); + if (units === 'month' || units === 'year') { + days = this._days + milliseconds / 864e5; + months = this._months + daysToMonths(days); + return units === 'month' ? months : months / 12; + } else { + // handle milliseconds separately because of floating point math errors (issue #1867) + days = this._days + Math.round(monthsToDays(this._months)); + switch (units) { + case 'week' : return days / 7 + milliseconds / 6048e5; + case 'day' : return days + milliseconds / 864e5; + case 'hour' : return days * 24 + milliseconds / 36e5; + case 'minute' : return days * 1440 + milliseconds / 6e4; + case 'second' : return days * 86400 + milliseconds / 1000; + // Math.floor prevents floating point math errors here + case 'millisecond': return Math.floor(days * 864e5) + milliseconds; + default: throw new Error('Unknown unit ' + units); + } + } + } - var _LocaleUtils = __webpack_require__(398); + // TODO: Use this.as('ms')? + function valueOf$1 () { + if (!this.isValid()) { + return NaN; + } + return ( + this._milliseconds + + this._days * 864e5 + + (this._months % 12) * 2592e6 + + toInt(this._months / 12) * 31536e6 + ); + } - function cancelEvent(e) { - e.preventDefault(); - e.stopPropagation(); + function makeAs (alias) { + return function () { + return this.as(alias); + }; } - function getFirstDayOfMonth(d) { - return new Date(d.getFullYear(), d.getMonth(), 1, 12); + var asMilliseconds = makeAs('ms'); + var asSeconds = makeAs('s'); + var asMinutes = makeAs('m'); + var asHours = makeAs('h'); + var asDays = makeAs('d'); + var asWeeks = makeAs('w'); + var asMonths = makeAs('M'); + var asYears = makeAs('y'); + + function get$2 (units) { + units = normalizeUnits(units); + return this.isValid() ? this[units + 's']() : NaN; } - function getDaysInMonth(d) { - var resultDate = getFirstDayOfMonth(d); + function makeGetter(name) { + return function () { + return this.isValid() ? this._data[name] : NaN; + }; + } - resultDate.setMonth(resultDate.getMonth() + 1); - resultDate.setDate(resultDate.getDate() - 1); + var milliseconds = makeGetter('milliseconds'); + var seconds = makeGetter('seconds'); + var minutes = makeGetter('minutes'); + var hours = makeGetter('hours'); + var days = makeGetter('days'); + var months = makeGetter('months'); + var years = makeGetter('years'); - return resultDate.getDate(); + function weeks () { + return absFloor(this.days() / 7); } - function getModifiersFromProps(props) { - var modifiers = _extends({}, props.modifiers); - if (props.selectedDays) { - modifiers[props.classNames.selected] = props.selectedDays; - } - if (props.disabledDays) { - modifiers[props.classNames.disabled] = props.disabledDays; - } - return modifiers; + var round = Math.round; + var thresholds = { + ss: 44, // a few seconds to seconds + s : 45, // seconds to minute + m : 45, // minutes to hour + h : 22, // hours to day + d : 26, // days to month + M : 11 // months to year + }; + + // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize + function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) { + return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture); } - function getFirstDayOfWeekFromProps(props) { - var firstDayOfWeek = props.firstDayOfWeek, - _props$locale = props.locale, - locale = _props$locale === undefined ? 'en' : _props$locale, - _props$localeUtils = props.localeUtils, - localeUtils = _props$localeUtils === undefined ? {} : _props$localeUtils; + function relativeTime$1 (posNegDuration, withoutSuffix, locale) { + var duration = createDuration(posNegDuration).abs(); + var seconds = round(duration.as('s')); + var minutes = round(duration.as('m')); + var hours = round(duration.as('h')); + var days = round(duration.as('d')); + var months = round(duration.as('M')); + var years = round(duration.as('y')); - if (!isNaN(firstDayOfWeek)) { - return firstDayOfWeek; - } - if (localeUtils.getFirstDayOfWeek) { - return localeUtils.getFirstDayOfWeek(locale); - } - return 0; + var a = seconds <= thresholds.ss && ['s', seconds] || + seconds < thresholds.s && ['ss', seconds] || + minutes <= 1 && ['m'] || + minutes < thresholds.m && ['mm', minutes] || + hours <= 1 && ['h'] || + hours < thresholds.h && ['hh', hours] || + days <= 1 && ['d'] || + days < thresholds.d && ['dd', days] || + months <= 1 && ['M'] || + months < thresholds.M && ['MM', months] || + years <= 1 && ['y'] || ['yy', years]; + + a[2] = withoutSuffix; + a[3] = +posNegDuration > 0; + a[4] = locale; + return substituteTimeAgo.apply(null, a); } - function isRangeOfDates(value) { - return !!(value && value.from && value.to); + // This function allows you to set the rounding function for relative time strings + function getSetRelativeTimeRounding (roundingFunction) { + if (roundingFunction === undefined) { + return round; + } + if (typeof(roundingFunction) === 'function') { + round = roundingFunction; + return true; + } + return false; + } + + // This function allows you to set a threshold for relative time strings + function getSetRelativeTimeThreshold (threshold, limit) { + if (thresholds[threshold] === undefined) { + return false; + } + if (limit === undefined) { + return thresholds[threshold]; + } + thresholds[threshold] = limit; + if (threshold === 's') { + thresholds.ss = limit - 1; + } + return true; } - function getMonthsDiff(d1, d2) { - return d2.getMonth() - d1.getMonth() + 12 * (d2.getFullYear() - d1.getFullYear()); - } + function humanize (withSuffix) { + if (!this.isValid()) { + return this.localeData().invalidDate(); + } - function getWeekArray(d) { - var firstDayOfWeek = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0, _LocaleUtils.getFirstDayOfWeek)(); - var fixedWeeks = arguments[2]; + var locale = this.localeData(); + var output = relativeTime$1(this, !withSuffix, locale); - var daysInMonth = getDaysInMonth(d); - var dayArray = []; + if (withSuffix) { + output = locale.pastFuture(+this, output); + } - var week = []; - var weekArray = []; + return locale.postformat(output); + } - for (var i = 1; i <= daysInMonth; i += 1) { - dayArray.push(new Date(d.getFullYear(), d.getMonth(), i, 12)); - } + var abs$1 = Math.abs; - dayArray.forEach(function (day) { - if (week.length > 0 && day.getDay() === firstDayOfWeek) { - weekArray.push(week); - week = []; - } - week.push(day); - if (dayArray.indexOf(day) === dayArray.length - 1) { - weekArray.push(week); + function toISOString$1() { + // for ISO strings we do not use the normal bubbling rules: + // * milliseconds bubble up until they become hours + // * days do not bubble at all + // * months bubble up until they become years + // This is because there is no context-free conversion between hours and days + // (think of clock changes) + // and also not between days and months (28-31 days per month) + if (!this.isValid()) { + return this.localeData().invalidDate(); } - }); - // unshift days to start the first week - var firstWeek = weekArray[0]; - for (var _i = 7 - firstWeek.length; _i > 0; _i -= 1) { - var outsideDate = (0, _DateUtils.clone)(firstWeek[0]); - outsideDate.setDate(firstWeek[0].getDate() - 1); - firstWeek.unshift(outsideDate); - } + var seconds = abs$1(this._milliseconds) / 1000; + var days = abs$1(this._days); + var months = abs$1(this._months); + var minutes, hours, years; - // push days until the end of the last week - var lastWeek = weekArray[weekArray.length - 1]; - for (var _i2 = lastWeek.length; _i2 < 7; _i2 += 1) { - var _outsideDate = (0, _DateUtils.clone)(lastWeek[lastWeek.length - 1]); - _outsideDate.setDate(lastWeek[lastWeek.length - 1].getDate() + 1); - lastWeek.push(_outsideDate); - } + // 3600 seconds -> 60 minutes -> 1 hour + minutes = absFloor(seconds / 60); + hours = absFloor(minutes / 60); + seconds %= 60; + minutes %= 60; - // add extra weeks to reach 6 weeks - if (fixedWeeks && weekArray.length < 6) { - var lastExtraWeek = void 0; + // 12 months -> 1 year + years = absFloor(months / 12); + months %= 12; - for (var _i3 = weekArray.length; _i3 < 6; _i3 += 1) { - lastExtraWeek = weekArray[weekArray.length - 1]; - var lastDay = lastExtraWeek[lastExtraWeek.length - 1]; - var extraWeek = []; - for (var j = 0; j < 7; j += 1) { - var _outsideDate2 = (0, _DateUtils.clone)(lastDay); - _outsideDate2.setDate(lastDay.getDate() + j + 1); - extraWeek.push(_outsideDate2); - } + // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js + var Y = years; + var M = months; + var D = days; + var h = hours; + var m = minutes; + var s = seconds; + var total = this.asSeconds(); - weekArray.push(extraWeek); + if (!total) { + // this is the same as C#'s (Noda) and python (isodate)... + // but not other JS (goog.date) + return 'P0D'; } - } - return weekArray; + return (total < 0 ? '-' : '') + + 'P' + + (Y ? Y + 'Y' : '') + + (M ? M + 'M' : '') + + (D ? D + 'D' : '') + + ((h || m || s) ? 'T' : '') + + (h ? h + 'H' : '') + + (m ? m + 'M' : '') + + (s ? s + 'S' : ''); } - function startOfMonth(d) { - var newDate = (0, _DateUtils.clone)(d); - newDate.setDate(1); - newDate.setHours(12, 0, 0, 0); // always set noon to avoid time zone issues - return newDate; - } - - -/***/ }), -/* 397 */ -/***/ (function(module, exports) { - - "use strict"; + var proto$2 = Duration.prototype; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.clone = clone; - exports.addMonths = addMonths; - exports.isSameDay = isSameDay; - exports.isDayBefore = isDayBefore; - exports.isDayAfter = isDayAfter; - exports.isPastDay = isPastDay; - exports.isFutureDay = isFutureDay; - exports.isDayBetween = isDayBetween; - exports.addDayToRange = addDayToRange; - exports.isDayInRange = isDayInRange; - exports.getWeekNumber = getWeekNumber; - /** - * Clone a date object. - * - * @export - * @param {Date} d The date to clone - * @return {Date} The cloned date - */ - function clone(d) { - return new Date(d.getTime()); - } + proto$2.isValid = isValid$1; + proto$2.abs = abs; + proto$2.add = add$1; + proto$2.subtract = subtract$1; + proto$2.as = as; + proto$2.asMilliseconds = asMilliseconds; + proto$2.asSeconds = asSeconds; + proto$2.asMinutes = asMinutes; + proto$2.asHours = asHours; + proto$2.asDays = asDays; + proto$2.asWeeks = asWeeks; + proto$2.asMonths = asMonths; + proto$2.asYears = asYears; + proto$2.valueOf = valueOf$1; + proto$2._bubble = bubble; + proto$2.get = get$2; + proto$2.milliseconds = milliseconds; + proto$2.seconds = seconds; + proto$2.minutes = minutes; + proto$2.hours = hours; + proto$2.days = days; + proto$2.weeks = weeks; + proto$2.months = months; + proto$2.years = years; + proto$2.humanize = humanize; + proto$2.toISOString = toISOString$1; + proto$2.toString = toISOString$1; + proto$2.toJSON = toISOString$1; + proto$2.locale = locale; + proto$2.localeData = localeData; - /** - * Return `d` as a new date with `n` months added. - * - * @export - * @param {[type]} d - * @param {[type]} n - */ - function addMonths(d, n) { - var newDate = clone(d); - newDate.setMonth(d.getMonth() + n); - return newDate; - } + // Deprecations + proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1); + proto$2.lang = lang; - /** - * Return `true` if two dates are the same day, ignoring the time. - * - * @export - * @param {Date} d1 - * @param {Date} d2 - * @return {Boolean} - */ - function isSameDay(d1, d2) { - if (!d1 || !d2) { - return false; - } - return d1.getDate() === d2.getDate() && d1.getMonth() === d2.getMonth() && d1.getFullYear() === d2.getFullYear(); - } + // Side effect imports - /** - * Returns `true` if the first day is before the second day. - * - * @export - * @param {Date} d1 - * @param {Date} d2 - * @returns {Boolean} - */ - function isDayBefore(d1, d2) { - var day1 = clone(d1).setHours(0, 0, 0, 0); - var day2 = clone(d2).setHours(0, 0, 0, 0); - return day1 < day2; - } + // FORMATTING - /** - * Returns `true` if the first day is after the second day. - * - * @export - * @param {Date} d1 - * @param {Date} d2 - * @returns {Boolean} - */ - function isDayAfter(d1, d2) { - var day1 = clone(d1).setHours(0, 0, 0, 0); - var day2 = clone(d2).setHours(0, 0, 0, 0); - return day1 > day2; - } + addFormatToken('X', 0, 0, 'unix'); + addFormatToken('x', 0, 0, 'valueOf'); - /** - * Return `true` if a day is in the past, e.g. yesterday or any day - * before yesterday. - * - * @export - * @param {Date} d - * @return {Boolean} - */ - function isPastDay(d) { - var today = new Date(); - today.setHours(0, 0, 0, 0); - return isDayBefore(d, today); - } + // PARSING - /** - * Return `true` if a day is in the future, e.g. tomorrow or any day - * after tomorrow. - * - * @export - * @param {Date} d - * @return {Boolean} - */ - function isFutureDay(d) { - var tomorrow = new Date(new Date().getTime() + 24 * 60 * 60 * 1000); - tomorrow.setHours(0, 0, 0, 0); - return d >= tomorrow; - } + addRegexToken('x', matchSigned); + addRegexToken('X', matchTimestamp); + addParseToken('X', function (input, array, config) { + config._d = new Date(parseFloat(input, 10) * 1000); + }); + addParseToken('x', function (input, array, config) { + config._d = new Date(toInt(input)); + }); - /** - * Return `true` if day `d` is between days `d1` and `d2`, - * without including them. - * - * @export - * @param {Date} d - * @param {Date} d1 - * @param {Date} d2 - * @return {Boolean} - */ - function isDayBetween(d, d1, d2) { - var date = clone(d); - date.setHours(0, 0, 0, 0); - return isDayAfter(date, d1) && isDayBefore(date, d2) || isDayAfter(date, d2) && isDayBefore(date, d1); - } + // Side effect imports - /** - * Add a day to a range and return a new range. A range is an object with - * `from` and `to` days. - * - * @export - * @param {Date} day - * @param {Object} range - * @return {Object} Returns a new range object - */ - function addDayToRange(day) { - var range = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { from: null, to: null }; - var from = range.from, - to = range.to; - if (!from) { - from = day; - } else if (from && to && isSameDay(from, to) && isSameDay(day, from)) { - from = null; - to = null; - } else if (to && isDayBefore(day, from)) { - from = day; - } else if (to && isSameDay(day, to)) { - from = day; - to = day; - } else { - to = day; - if (isDayBefore(to, from)) { - to = from; - from = day; - } - } + hooks.version = '2.18.1'; - return { from: from, to: to }; - } + setHookCallback(createLocal); - /** - * Return `true` if a day is included in a range of days. - * - * @export - * @param {Date} day - * @param {Object} range - * @return {Boolean} - */ - function isDayInRange(day, range) { - var from = range.from, - to = range.to; + hooks.fn = proto; + hooks.min = min; + hooks.max = max; + hooks.now = now; + hooks.utc = createUTC; + hooks.unix = createUnix; + hooks.months = listMonths; + hooks.isDate = isDate; + hooks.locale = getSetGlobalLocale; + hooks.invalid = createInvalid; + hooks.duration = createDuration; + hooks.isMoment = isMoment; + hooks.weekdays = listWeekdays; + hooks.parseZone = createInZone; + hooks.localeData = getLocale; + hooks.isDuration = isDuration; + hooks.monthsShort = listMonthsShort; + hooks.weekdaysMin = listWeekdaysMin; + hooks.defineLocale = defineLocale; + hooks.updateLocale = updateLocale; + hooks.locales = listLocales; + hooks.weekdaysShort = listWeekdaysShort; + hooks.normalizeUnits = normalizeUnits; + hooks.relativeTimeRounding = getSetRelativeTimeRounding; + hooks.relativeTimeThreshold = getSetRelativeTimeThreshold; + hooks.calendarFormat = getCalendarFormat; + hooks.prototype = proto; - return from && isSameDay(day, from) || to && isSameDay(day, to) || from && to && isDayBetween(day, from, to); - } + return hooks; - /** - * Return the year's week number (as per ISO, i.e. with the week starting from monday) - * for the given day. - * - * @export - * @param {Date} day - * @returns {Number} - */ - function getWeekNumber(day) { - var date = clone(day); - date.setHours(0, 0, 0); - date.setDate(date.getDate() + 4 - (date.getDay() || 7)); - return Math.ceil(((date - new Date(date.getFullYear(), 0, 1)) / 8.64e7 + 1) / 7); - } + }))); - exports.default = { - addDayToRange: addDayToRange, - addMonths: addMonths, - clone: clone, - getWeekNumber: getWeekNumber, - isDayAfter: isDayAfter, - isDayBefore: isDayBefore, - isDayBetween: isDayBetween, - isDayInRange: isDayInRange, - isFutureDay: isFutureDay, - isPastDay: isPastDay, - isSameDay: isSameDay + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(337)(module))) + +/***/ }), +/* 337 */ +/***/ (function(module, exports) { + + module.exports = function(module) { + if(!module.webpackPolyfill) { + module.deprecate = function() {}; + module.paths = []; + // module.parent = undefined by default + module.children = []; + module.webpackPolyfill = 1; + } + return module; + } + + +/***/ }), +/* 338 */ +/***/ (function(module, exports, __webpack_require__) { + + var map = { + "./af": 339, + "./af.js": 339, + "./ar": 340, + "./ar-dz": 341, + "./ar-dz.js": 341, + "./ar-kw": 342, + "./ar-kw.js": 342, + "./ar-ly": 343, + "./ar-ly.js": 343, + "./ar-ma": 344, + "./ar-ma.js": 344, + "./ar-sa": 345, + "./ar-sa.js": 345, + "./ar-tn": 346, + "./ar-tn.js": 346, + "./ar.js": 340, + "./az": 347, + "./az.js": 347, + "./be": 348, + "./be.js": 348, + "./bg": 349, + "./bg.js": 349, + "./bn": 350, + "./bn.js": 350, + "./bo": 351, + "./bo.js": 351, + "./br": 352, + "./br.js": 352, + "./bs": 353, + "./bs.js": 353, + "./ca": 354, + "./ca.js": 354, + "./cs": 355, + "./cs.js": 355, + "./cv": 356, + "./cv.js": 356, + "./cy": 357, + "./cy.js": 357, + "./da": 358, + "./da.js": 358, + "./de": 359, + "./de-at": 360, + "./de-at.js": 360, + "./de-ch": 361, + "./de-ch.js": 361, + "./de.js": 359, + "./dv": 362, + "./dv.js": 362, + "./el": 363, + "./el.js": 363, + "./en-au": 364, + "./en-au.js": 364, + "./en-ca": 365, + "./en-ca.js": 365, + "./en-gb": 366, + "./en-gb.js": 366, + "./en-ie": 367, + "./en-ie.js": 367, + "./en-nz": 368, + "./en-nz.js": 368, + "./eo": 369, + "./eo.js": 369, + "./es": 370, + "./es-do": 371, + "./es-do.js": 371, + "./es.js": 370, + "./et": 372, + "./et.js": 372, + "./eu": 373, + "./eu.js": 373, + "./fa": 374, + "./fa.js": 374, + "./fi": 375, + "./fi.js": 375, + "./fo": 376, + "./fo.js": 376, + "./fr": 377, + "./fr-ca": 378, + "./fr-ca.js": 378, + "./fr-ch": 379, + "./fr-ch.js": 379, + "./fr.js": 377, + "./fy": 380, + "./fy.js": 380, + "./gd": 381, + "./gd.js": 381, + "./gl": 382, + "./gl.js": 382, + "./gom-latn": 383, + "./gom-latn.js": 383, + "./he": 384, + "./he.js": 384, + "./hi": 385, + "./hi.js": 385, + "./hr": 386, + "./hr.js": 386, + "./hu": 387, + "./hu.js": 387, + "./hy-am": 388, + "./hy-am.js": 388, + "./id": 389, + "./id.js": 389, + "./is": 390, + "./is.js": 390, + "./it": 391, + "./it.js": 391, + "./ja": 392, + "./ja.js": 392, + "./jv": 393, + "./jv.js": 393, + "./ka": 394, + "./ka.js": 394, + "./kk": 395, + "./kk.js": 395, + "./km": 396, + "./km.js": 396, + "./kn": 397, + "./kn.js": 397, + "./ko": 398, + "./ko.js": 398, + "./ky": 399, + "./ky.js": 399, + "./lb": 400, + "./lb.js": 400, + "./lo": 401, + "./lo.js": 401, + "./lt": 402, + "./lt.js": 402, + "./lv": 403, + "./lv.js": 403, + "./me": 404, + "./me.js": 404, + "./mi": 405, + "./mi.js": 405, + "./mk": 406, + "./mk.js": 406, + "./ml": 407, + "./ml.js": 407, + "./mr": 408, + "./mr.js": 408, + "./ms": 409, + "./ms-my": 410, + "./ms-my.js": 410, + "./ms.js": 409, + "./my": 411, + "./my.js": 411, + "./nb": 412, + "./nb.js": 412, + "./ne": 413, + "./ne.js": 413, + "./nl": 414, + "./nl-be": 415, + "./nl-be.js": 415, + "./nl.js": 414, + "./nn": 416, + "./nn.js": 416, + "./pa-in": 417, + "./pa-in.js": 417, + "./pl": 418, + "./pl.js": 418, + "./pt": 419, + "./pt-br": 420, + "./pt-br.js": 420, + "./pt.js": 419, + "./ro": 421, + "./ro.js": 421, + "./ru": 422, + "./ru.js": 422, + "./sd": 423, + "./sd.js": 423, + "./se": 424, + "./se.js": 424, + "./si": 425, + "./si.js": 425, + "./sk": 426, + "./sk.js": 426, + "./sl": 427, + "./sl.js": 427, + "./sq": 428, + "./sq.js": 428, + "./sr": 429, + "./sr-cyrl": 430, + "./sr-cyrl.js": 430, + "./sr.js": 429, + "./ss": 431, + "./ss.js": 431, + "./sv": 432, + "./sv.js": 432, + "./sw": 433, + "./sw.js": 433, + "./ta": 434, + "./ta.js": 434, + "./te": 435, + "./te.js": 435, + "./tet": 436, + "./tet.js": 436, + "./th": 437, + "./th.js": 437, + "./tl-ph": 438, + "./tl-ph.js": 438, + "./tlh": 439, + "./tlh.js": 439, + "./tr": 440, + "./tr.js": 440, + "./tzl": 441, + "./tzl.js": 441, + "./tzm": 442, + "./tzm-latn": 443, + "./tzm-latn.js": 443, + "./tzm.js": 442, + "./uk": 444, + "./uk.js": 444, + "./ur": 445, + "./ur.js": 445, + "./uz": 446, + "./uz-latn": 447, + "./uz-latn.js": 447, + "./uz.js": 446, + "./vi": 448, + "./vi.js": 448, + "./x-pseudo": 449, + "./x-pseudo.js": 449, + "./yo": 450, + "./yo.js": 450, + "./zh-cn": 451, + "./zh-cn.js": 451, + "./zh-hk": 452, + "./zh-hk.js": 452, + "./zh-tw": 453, + "./zh-tw.js": 453 + }; + function webpackContext(req) { + return __webpack_require__(webpackContextResolve(req)); + }; + function webpackContextResolve(req) { + return map[req] || (function() { throw new Error("Cannot find module '" + req + "'.") }()); + }; + webpackContext.keys = function webpackContextKeys() { + return Object.keys(map); }; + webpackContext.resolve = webpackContextResolve; + module.exports = webpackContext; + webpackContext.id = 338; /***/ }), -/* 398 */ -/***/ (function(module, exports) { +/* 339 */ +/***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.formatDay = formatDay; - exports.formatMonthTitle = formatMonthTitle; - exports.formatWeekdayShort = formatWeekdayShort; - exports.formatWeekdayLong = formatWeekdayLong; - exports.getFirstDayOfWeek = getFirstDayOfWeek; - exports.getMonths = getMonths; - var WEEKDAYS_LONG = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; - - var WEEKDAYS_SHORT = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']; - - var MONTHS = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; - - function formatDay(day) { - return day.toDateString(); - } - - function formatMonthTitle(d) { - return MONTHS[d.getMonth()] + ' ' + d.getFullYear(); - } + //! moment.js locale configuration + //! locale : Afrikaans [af] + //! author : Werner Mollentze : https://github.com/wernerm - function formatWeekdayShort(i) { - return WEEKDAYS_SHORT[i]; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function formatWeekdayLong(i) { - return WEEKDAYS_LONG[i]; - } - function getFirstDayOfWeek() { - return 0; - } + var af = moment.defineLocale('af', { + months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'), + monthsShort : 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'), + weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'), + weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), + weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), + meridiemParse: /vm|nm/i, + isPM : function (input) { + return /^nm$/i.test(input); + }, + meridiem : function (hours, minutes, isLower) { + if (hours < 12) { + return isLower ? 'vm' : 'VM'; + } else { + return isLower ? 'nm' : 'NM'; + } + }, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd, D MMMM YYYY HH:mm' + }, + calendar : { + sameDay : '[Vandag om] LT', + nextDay : '[Môre om] LT', + nextWeek : 'dddd [om] LT', + lastDay : '[Gister om] LT', + lastWeek : '[Laas] dddd [om] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'oor %s', + past : '%s gelede', + s : '\'n paar sekondes', + m : '\'n minuut', + mm : '%d minute', + h : '\'n uur', + hh : '%d ure', + d : '\'n dag', + dd : '%d dae', + M : '\'n maand', + MM : '%d maande', + y : '\'n jaar', + yy : '%d jaar' + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal : function (number) { + return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter + }, + week : { + dow : 1, // Maandag is die eerste dag van die week. + doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar. + } + }); - function getMonths() { - return MONTHS; - } + return af; - exports.default = { - formatDay: formatDay, - formatMonthTitle: formatMonthTitle, - formatWeekdayShort: formatWeekdayShort, - formatWeekdayLong: formatWeekdayLong, - getFirstDayOfWeek: getFirstDayOfWeek, - getMonths: getMonths - }; + }))); /***/ }), -/* 399 */ +/* 340 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = Day; - - var _react = __webpack_require__(3); - - var _react2 = _interopRequireDefault(_react); - - var _classNames = __webpack_require__(393); - - var _classNames2 = _interopRequireDefault(_classNames); + //! moment.js locale configuration + //! locale : Arabic [ar] + //! author : Abdel Said: https://github.com/abdelsaid + //! author : Ahmed Elkhatib + //! author : forabi https://github.com/forabi - var _PropTypes = __webpack_require__(386); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _PropTypes2 = _interopRequireDefault(_PropTypes); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + var symbolMap = { + '1': '١', + '2': '٢', + '3': '٣', + '4': '٤', + '5': '٥', + '6': '٦', + '7': '٧', + '8': '٨', + '9': '٩', + '0': '٠' + }; + var numberMap = { + '١': '1', + '٢': '2', + '٣': '3', + '٤': '4', + '٥': '5', + '٦': '6', + '٧': '7', + '٨': '8', + '٩': '9', + '٠': '0' + }; + var pluralForm = function (n) { + return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5; + }; + var plurals = { + s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'], + m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'], + h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'], + d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'], + M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'], + y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام'] + }; + var pluralize = function (u) { + return function (number, withoutSuffix, string, isFuture) { + var f = pluralForm(number), + str = plurals[u][pluralForm(number)]; + if (f === 2) { + str = str[withoutSuffix ? 0 : 1]; + } + return str.replace(/%d/i, number); + }; + }; + var months = [ + 'كانون الثاني يناير', + 'شباط فبراير', + 'آذار مارس', + 'نيسان أبريل', + 'أيار مايو', + 'حزيران يونيو', + 'تموز يوليو', + 'آب أغسطس', + 'أيلول سبتمبر', + 'تشرين الأول أكتوبر', + 'تشرين الثاني نوفمبر', + 'كانون الأول ديسمبر' + ]; - function handleEvent(handler, day, modifiers) { - if (!handler) { - return undefined; - } - return function (e) { - e.persist(); - handler(day, modifiers, e); - }; - } /* eslint-disable jsx-a11y/no-static-element-interactions, react/forbid-prop-types */ + var ar = moment.defineLocale('ar', { + months : months, + monthsShort : months, + weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'D/\u200FM/\u200FYYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd D MMMM YYYY HH:mm' + }, + meridiemParse: /ص|م/, + isPM : function (input) { + return 'م' === input; + }, + meridiem : function (hour, minute, isLower) { + if (hour < 12) { + return 'ص'; + } else { + return 'م'; + } + }, + calendar : { + sameDay: '[اليوم عند الساعة] LT', + nextDay: '[غدًا عند الساعة] LT', + nextWeek: 'dddd [عند الساعة] LT', + lastDay: '[أمس عند الساعة] LT', + lastWeek: 'dddd [عند الساعة] LT', + sameElse: 'L' + }, + relativeTime : { + future : 'بعد %s', + past : 'منذ %s', + s : pluralize('s'), + m : pluralize('m'), + mm : pluralize('m'), + h : pluralize('h'), + hh : pluralize('h'), + d : pluralize('d'), + dd : pluralize('d'), + M : pluralize('M'), + MM : pluralize('M'), + y : pluralize('y'), + yy : pluralize('y') + }, + preparse: function (string) { + return string.replace(/\u200f/g, '').replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { + return numberMap[match]; + }).replace(/،/g, ','); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }).replace(/,/g, '،'); + }, + week : { + dow : 6, // Saturday is the first day of the week. + doy : 12 // The week that contains Jan 1st is the first week of the year. + } + }); - function Day(_ref) { - var classNames = _ref.classNames, - modifiersStyles = _ref.modifiersStyles, - day = _ref.day, - tabIndex = _ref.tabIndex, - empty = _ref.empty, - modifiers = _ref.modifiers, - onMouseEnter = _ref.onMouseEnter, - onMouseLeave = _ref.onMouseLeave, - onClick = _ref.onClick, - onKeyDown = _ref.onKeyDown, - onTouchStart = _ref.onTouchStart, - onTouchEnd = _ref.onTouchEnd, - onFocus = _ref.onFocus, - ariaLabel = _ref.ariaLabel, - ariaDisabled = _ref.ariaDisabled, - ariaSelected = _ref.ariaSelected, - children = _ref.children; + return ar; - var className = classNames.day; - if (classNames !== _classNames2.default) { - // When using CSS modules prefix the modifier as required by the BEM syntax - className += ' ' + Object.keys(modifiers).join(' '); - } else { - className += Object.keys(modifiers).map(function (modifier) { - return ' ' + className + '--' + modifier; - }).join(''); - } + }))); + + +/***/ }), +/* 341 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Arabic (Algeria) [ar-dz] + //! author : Noureddine LOUAHEDJ : https://github.com/noureddineme - var style = void 0; - if (modifiersStyles) { - Object.keys(modifiers).filter(function (modifier) { - return !!modifiersStyles[modifier]; - }).forEach(function (modifier) { - style = Object.assign({}, style, modifiersStyles[modifier]); - }); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (empty) { - return _react2.default.createElement('div', { role: 'gridcell', 'aria-disabled': true, className: className, style: style }); - } - return _react2.default.createElement( - 'div', - { - className: className, - tabIndex: tabIndex || 0, - style: style, - role: 'gridcell', - 'aria-label': ariaLabel, - 'aria-disabled': ariaDisabled.toString(), - 'aria-selected': ariaSelected.toString(), - onClick: handleEvent(onClick, day, modifiers), - onKeyDown: handleEvent(onKeyDown, day, modifiers), - onMouseEnter: handleEvent(onMouseEnter, day, modifiers), - onMouseLeave: handleEvent(onMouseLeave, day, modifiers), - onTouchEnd: handleEvent(onTouchEnd, day, modifiers), - onTouchStart: handleEvent(onTouchStart, day, modifiers), - onFocus: handleEvent(onFocus, day, modifiers) + var arDz = moment.defineLocale('ar-dz', { + months : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), + monthsShort : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), + weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort : 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin : 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd D MMMM YYYY HH:mm' }, - children - ); - } - - Day.propTypes = { - classNames: _PropTypes2.default.shape({ - day: _PropTypes2.default.string.isRequired - }).isRequired, - - day: _PropTypes2.default.instanceOf(Date).isRequired, - children: _PropTypes2.default.node.isRequired, + calendar : { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L' + }, + relativeTime : { + future : 'في %s', + past : 'منذ %s', + s : 'ثوان', + m : 'دقيقة', + mm : '%d دقائق', + h : 'ساعة', + hh : '%d ساعات', + d : 'يوم', + dd : '%d أيام', + M : 'شهر', + MM : '%d أشهر', + y : 'سنة', + yy : '%d سنوات' + }, + week : { + dow : 0, // Sunday is the first day of the week. + doy : 4 // The week that contains Jan 1st is the first week of the year. + } + }); - ariaDisabled: _PropTypes2.default.bool, - ariaLabel: _PropTypes2.default.string, - ariaSelected: _PropTypes2.default.bool, - empty: _PropTypes2.default.bool, - modifiers: _PropTypes2.default.object, - modifiersStyles: _PropTypes2.default.object, - onClick: _PropTypes2.default.func, - onKeyDown: _PropTypes2.default.func, - onMouseEnter: _PropTypes2.default.func, - onMouseLeave: _PropTypes2.default.func, - onTouchEnd: _PropTypes2.default.func, - onTouchStart: _PropTypes2.default.func, - onFocus: _PropTypes2.default.func, - tabIndex: _PropTypes2.default.number - }; + return arDz; - Day.defaultProps = { - modifiers: {}, - empty: false - }; + }))); /***/ }), -/* 400 */ +/* 342 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.WeekdayPropTypes = undefined; - exports.default = Weekday; + //! moment.js locale configuration + //! locale : Arabic (Kuwait) [ar-kw] + //! author : Nusret Parlak: https://github.com/nusretparlak - var _react = __webpack_require__(3); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _react2 = _interopRequireDefault(_react); - var _PropTypes = __webpack_require__(386); + var arKw = moment.defineLocale('ar-kw', { + months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), + monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), + weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd D MMMM YYYY HH:mm' + }, + calendar : { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L' + }, + relativeTime : { + future : 'في %s', + past : 'منذ %s', + s : 'ثوان', + m : 'دقيقة', + mm : '%d دقائق', + h : 'ساعة', + hh : '%d ساعات', + d : 'يوم', + dd : '%d أيام', + M : 'شهر', + MM : '%d أشهر', + y : 'سنة', + yy : '%d سنوات' + }, + week : { + dow : 0, // Sunday is the first day of the week. + doy : 12 // The week that contains Jan 1st is the first week of the year. + } + }); - var _PropTypes2 = _interopRequireDefault(_PropTypes); + return arKw; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + }))); + + +/***/ }), +/* 343 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Arabic (Lybia) [ar-ly] + //! author : Ali Hmer: https://github.com/kikoanis - function Weekday(_ref) { - var weekday = _ref.weekday, - className = _ref.className, - weekdaysLong = _ref.weekdaysLong, - weekdaysShort = _ref.weekdaysShort, - localeUtils = _ref.localeUtils, - locale = _ref.locale; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var title = void 0; - if (weekdaysLong) { - title = weekdaysLong[weekday]; - } else { - title = localeUtils.formatWeekdayLong(weekday, locale); - } - var content = void 0; - if (weekdaysShort) { - content = weekdaysShort[weekday]; - } else { - content = localeUtils.formatWeekdayShort(weekday, locale); - } - return _react2.default.createElement( - 'div', - { className: className, role: 'columnheader' }, - _react2.default.createElement( - 'abbr', - { title: title }, - content - ) - ); - } + var symbolMap = { + '1': '1', + '2': '2', + '3': '3', + '4': '4', + '5': '5', + '6': '6', + '7': '7', + '8': '8', + '9': '9', + '0': '0' + }; + var pluralForm = function (n) { + return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5; + }; + var plurals = { + s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'], + m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'], + h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'], + d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'], + M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'], + y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام'] + }; + var pluralize = function (u) { + return function (number, withoutSuffix, string, isFuture) { + var f = pluralForm(number), + str = plurals[u][pluralForm(number)]; + if (f === 2) { + str = str[withoutSuffix ? 0 : 1]; + } + return str.replace(/%d/i, number); + }; + }; + var months = [ + 'يناير', + 'فبراير', + 'مارس', + 'أبريل', + 'مايو', + 'يونيو', + 'يوليو', + 'أغسطس', + 'سبتمبر', + 'أكتوبر', + 'نوفمبر', + 'ديسمبر' + ]; - var WeekdayPropTypes = exports.WeekdayPropTypes = { - weekday: _PropTypes2.default.number, - className: _PropTypes2.default.string, - locale: _PropTypes2.default.string, - localeUtils: _PropTypes2.default.localeUtils, + var arLy = moment.defineLocale('ar-ly', { + months : months, + monthsShort : months, + weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'D/\u200FM/\u200FYYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd D MMMM YYYY HH:mm' + }, + meridiemParse: /ص|م/, + isPM : function (input) { + return 'م' === input; + }, + meridiem : function (hour, minute, isLower) { + if (hour < 12) { + return 'ص'; + } else { + return 'م'; + } + }, + calendar : { + sameDay: '[اليوم عند الساعة] LT', + nextDay: '[غدًا عند الساعة] LT', + nextWeek: 'dddd [عند الساعة] LT', + lastDay: '[أمس عند الساعة] LT', + lastWeek: 'dddd [عند الساعة] LT', + sameElse: 'L' + }, + relativeTime : { + future : 'بعد %s', + past : 'منذ %s', + s : pluralize('s'), + m : pluralize('m'), + mm : pluralize('m'), + h : pluralize('h'), + hh : pluralize('h'), + d : pluralize('d'), + dd : pluralize('d'), + M : pluralize('M'), + MM : pluralize('M'), + y : pluralize('y'), + yy : pluralize('y') + }, + preparse: function (string) { + return string.replace(/\u200f/g, '').replace(/،/g, ','); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }).replace(/,/g, '،'); + }, + week : { + dow : 6, // Saturday is the first day of the week. + doy : 12 // The week that contains Jan 1st is the first week of the year. + } + }); - weekdaysLong: _PropTypes2.default.arrayOf(_PropTypes2.default.string), - weekdaysShort: _PropTypes2.default.arrayOf(_PropTypes2.default.string) - }; + return arLy; - Weekday.propTypes = WeekdayPropTypes; + }))); /***/ }), -/* 401 */ +/* 344 */ /***/ (function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.dayMatchesModifier = dayMatchesModifier; - exports.getModifiersForDay = getModifiersForDay; + //! moment.js locale configuration + //! locale : Arabic (Morocco) [ar-ma] + //! author : ElFadili Yassine : https://github.com/ElFadiliY + //! author : Abdel Said : https://github.com/abdelsaid - var _DateUtils = __webpack_require__(397); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var _Helpers = __webpack_require__(396); - /** - * Return `true` if a date matches the specified modifier. - * - * @export - * @param {Date} day - * @param {Any} modifier - * @return {Boolean} - */ - function dayMatchesModifier(day, modifier) { - if (!modifier) { - return false; - } - var arr = Array.isArray(modifier) ? modifier : [modifier]; - return arr.some(function (mod) { - if (!mod) { - return false; - } - if (mod instanceof Date) { - return (0, _DateUtils.isSameDay)(day, mod); - } - if ((0, _Helpers.isRangeOfDates)(mod)) { - return (0, _DateUtils.isDayInRange)(day, mod); - } - if (mod.after) { - return (0, _DateUtils.isDayAfter)(day, mod.after); - } - if (mod.before) { - return (0, _DateUtils.isDayBefore)(day, mod.before); - } - if (mod.daysOfWeek) { - return mod.daysOfWeek.some(function (dayOfWeek) { - return day.getDay() === dayOfWeek; - }); - } - if (typeof mod === 'function') { - return mod(day); + var arMa = moment.defineLocale('ar-ma', { + months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), + monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), + weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd D MMMM YYYY HH:mm' + }, + calendar : { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L' + }, + relativeTime : { + future : 'في %s', + past : 'منذ %s', + s : 'ثوان', + m : 'دقيقة', + mm : '%d دقائق', + h : 'ساعة', + hh : '%d ساعات', + d : 'يوم', + dd : '%d أيام', + M : 'شهر', + MM : '%d أشهر', + y : 'سنة', + yy : '%d سنوات' + }, + week : { + dow : 6, // Saturday is the first day of the week. + doy : 12 // The week that contains Jan 1st is the first week of the year. } - return false; - }); - } - - /** - * Return the modifiers matching the given day for the given - * object of modifiers. - * - * @export - * @param {Date} day - * @param {Object} [modifiersObj={}] - * @return {Array} - */ - function getModifiersForDay(day) { - var modifiersObj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + }); - return Object.keys(modifiersObj).reduce(function (modifiers, modifierName) { - var value = modifiersObj[modifierName]; - if (dayMatchesModifier(day, value)) { - modifiers.push(modifierName); - } - return modifiers; - }, []); - } + return arMa; - exports.default = { dayMatchesModifier: dayMatchesModifier, getModifiersForDay: getModifiersForDay }; + }))); /***/ }), -/* 402 */ -/***/ (function(module, exports) { +/* 345 */ +/***/ (function(module, exports, __webpack_require__) { - "use strict"; + //! moment.js locale configuration + //! locale : Arabic (Saudi Arabia) [ar-sa] + //! author : Suhail Alkowaileet : https://github.com/xsoh - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = { - LEFT: 37, - UP: 38, - RIGHT: 39, - DOWN: 40, - ENTER: 13, - SPACE: 32, - ESC: 27 + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + + + var symbolMap = { + '1': '١', + '2': '٢', + '3': '٣', + '4': '٤', + '5': '٥', + '6': '٦', + '7': '٧', + '8': '٨', + '9': '٩', + '0': '٠' + }; + var numberMap = { + '١': '1', + '٢': '2', + '٣': '3', + '٤': '4', + '٥': '5', + '٦': '6', + '٧': '7', + '٨': '8', + '٩': '9', + '٠': '0' }; + + var arSa = moment.defineLocale('ar-sa', { + months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), + monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), + weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd D MMMM YYYY HH:mm' + }, + meridiemParse: /ص|م/, + isPM : function (input) { + return 'م' === input; + }, + meridiem : function (hour, minute, isLower) { + if (hour < 12) { + return 'ص'; + } else { + return 'م'; + } + }, + calendar : { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L' + }, + relativeTime : { + future : 'في %s', + past : 'منذ %s', + s : 'ثوان', + m : 'دقيقة', + mm : '%d دقائق', + h : 'ساعة', + hh : '%d ساعات', + d : 'يوم', + dd : '%d أيام', + M : 'شهر', + MM : '%d أشهر', + y : 'سنة', + yy : '%d سنوات' + }, + preparse: function (string) { + return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { + return numberMap[match]; + }).replace(/،/g, ','); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }).replace(/,/g, '،'); + }, + week : { + dow : 0, // Sunday is the first day of the week. + doy : 6 // The week that contains Jan 1st is the first week of the year. + } + }); + + return arSa; + + }))); /***/ }), -/* 403 */ +/* 346 */ /***/ (function(module, exports, __webpack_require__) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var moment = __webpack_require__(404); - var DateRangeBoundary; - (function (DateRangeBoundary) { - DateRangeBoundary[DateRangeBoundary["START"] = 0] = "START"; - DateRangeBoundary[DateRangeBoundary["END"] = 1] = "END"; - })(DateRangeBoundary = exports.DateRangeBoundary || (exports.DateRangeBoundary = {})); - ; - function areEqual(date1, date2) { - if (date1 == null && date2 == null) { - return true; - } - else if (date1 == null || date2 == null) { - return false; - } - else { - return date1.getTime() === date2.getTime(); - } - } - exports.areEqual = areEqual; - function areRangesEqual(dateRange1, dateRange2) { - if (dateRange1 == null && dateRange2 == null) { - return true; - } - else if (dateRange1 == null || dateRange2 == null) { - return false; - } - else { - var start1 = dateRange1[0], end1 = dateRange1[1]; - var start2 = dateRange2[0], end2 = dateRange2[1]; - var areStartsEqual = (start1 == null && start2 == null) || areSameDay(start1, start2); - var areEndsEqual = (end1 == null && end2 == null) || areSameDay(end1, end2); - return areStartsEqual && areEndsEqual; - } - } - exports.areRangesEqual = areRangesEqual; - function areSameDay(date1, date2) { - return date1 != null - && date2 != null - && date1.getDate() === date2.getDate() - && date1.getMonth() === date2.getMonth() - && date1.getFullYear() === date2.getFullYear(); - } - exports.areSameDay = areSameDay; - function areSameMonth(date1, date2) { - return date1 != null - && date2 != null - && date1.getMonth() === date2.getMonth() - && date1.getFullYear() === date2.getFullYear(); - } - exports.areSameMonth = areSameMonth; - function areSameTime(date1, date2) { - return date1 != null - && date2 != null - && date1.getHours() === date2.getHours() - && date1.getMinutes() === date2.getMinutes() - && date1.getSeconds() === date2.getSeconds() - && date1.getMilliseconds() === date2.getMilliseconds(); - } - exports.areSameTime = areSameTime; - function clone(d) { - return new Date(d.getTime()); - } - exports.clone = clone; - function isDayInRange(date, dateRange, exclusive) { - if (exclusive === void 0) { exclusive = false; } - if (date == null) { - return false; - } - var day = clone(date); - var start = clone(dateRange[0]); - var end = clone(dateRange[1]); - day.setHours(0, 0, 0, 0); - start.setHours(0, 0, 0, 0); - end.setHours(0, 0, 0, 0); - return start <= day && day <= end - && (!exclusive - || !areSameDay(start, day) && !areSameDay(day, end)); - } - exports.isDayInRange = isDayInRange; - function isDayRangeInRange(innerRange, outerRange) { - return (innerRange[0] == null || isDayInRange(innerRange[0], outerRange)) - && (innerRange[1] == null || isDayInRange(innerRange[1], outerRange)); - } - exports.isDayRangeInRange = isDayRangeInRange; - function isMonthInRange(date, dateRange) { - if (date == null) { - return false; - } - var day = clone(date); - var start = clone(dateRange[0]); - var end = clone(dateRange[1]); - day.setDate(1); - start.setDate(1); - end.setDate(1); - day.setHours(0, 0, 0, 0); - start.setHours(0, 0, 0, 0); - end.setHours(0, 0, 0, 0); - return start <= day && day <= end; - } - exports.isMonthInRange = isMonthInRange; - exports.isTimeEqualOrGreaterThan = function (time, timeToCompare) { return time.getTime() >= timeToCompare.getTime(); }; - exports.isTimeEqualOrSmallerThan = function (time, timeToCompare) { return time.getTime() <= timeToCompare.getTime(); }; - function isTimeInRange(date, minDate, maxDate) { - var time = getDateOnlyWithTime(date); - var minTime = getDateOnlyWithTime(minDate); - var maxTime = getDateOnlyWithTime(maxDate); - var isTimeGreaterThanMinTime = exports.isTimeEqualOrGreaterThan(time, minTime); - var isTimeSmallerThanMaxTime = exports.isTimeEqualOrSmallerThan(time, maxTime); - if (exports.isTimeEqualOrSmallerThan(maxTime, minTime)) { - return isTimeGreaterThanMinTime || isTimeSmallerThanMaxTime; - } - return isTimeGreaterThanMinTime && isTimeSmallerThanMaxTime; - } - exports.isTimeInRange = isTimeInRange; - function getTimeInRange(time, minTime, maxTime) { - if (areSameTime(minTime, maxTime)) { - return maxTime; - } - else if (isTimeInRange(time, minTime, maxTime)) { - return time; - } - else if (isTimeSameOrAfter(time, maxTime)) { - return maxTime; - } - return minTime; - } - exports.getTimeInRange = getTimeInRange; - function isTimeSameOrAfter(date, dateToCompare) { - var time = getDateOnlyWithTime(date); - var timeToCompare = getDateOnlyWithTime(dateToCompare); - return exports.isTimeEqualOrGreaterThan(time, timeToCompare); - } - exports.isTimeSameOrAfter = isTimeSameOrAfter; - function getDateBetween(dateRange) { - var start = dateRange[0].getTime(); - var end = dateRange[1].getTime(); - var middle = start + (end - start) * 0.5; - return new Date(middle); - } - exports.getDateBetween = getDateBetween; - function getDateTime(date, time) { - if (date === null) { - return null; - } - else if (time === null) { - return new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0, 0); - } - else { - return new Date(date.getFullYear(), date.getMonth(), date.getDate(), time.getHours(), time.getMinutes(), time.getSeconds(), time.getMilliseconds()); - } - } - exports.getDateTime = getDateTime; - function getDateOnlyWithTime(date) { - return new Date(0, 0, 0, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()); - } - exports.getDateOnlyWithTime = getDateOnlyWithTime; - function isMomentNull(momentDate) { - return momentDate.parsingFlags().nullInput; - } - exports.isMomentNull = isMomentNull; - function isMomentValidAndInRange(momentDate, minDate, maxDate) { - return momentDate.isValid() && isMomentInRange(momentDate, minDate, maxDate); - } - exports.isMomentValidAndInRange = isMomentValidAndInRange; - function isMomentInRange(momentDate, minDate, maxDate) { - return momentDate.isBetween(minDate, maxDate, "day", "[]"); - } - exports.isMomentInRange = isMomentInRange; - function fromDateToMoment(date) { - if (date == null) { - return moment(null); - } - else if (typeof date === "string") { - return moment(date); - } - else { - return moment([ - date.getFullYear(), - date.getMonth(), - date.getDate(), - date.getHours(), - date.getMinutes(), - date.getSeconds(), - date.getMilliseconds(), - ]); - } - } - exports.fromDateToMoment = fromDateToMoment; - function fromMomentToDate(momentDate) { - if (momentDate == null) { - return undefined; - } - else { - return new Date(momentDate.year(), momentDate.month(), momentDate.date(), momentDate.hours(), momentDate.minutes(), momentDate.seconds(), momentDate.milliseconds()); + //! moment.js locale configuration + //! locale : Arabic (Tunisia) [ar-tn] + //! author : Nader Toukabri : https://github.com/naderio + + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + + + var arTn = moment.defineLocale('ar-tn', { + months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), + monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact : true, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات' + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4 // The week that contains Jan 4th is the first week of the year. } - } - exports.fromMomentToDate = fromMomentToDate; - function fromDateRangeToMomentDateRange(dateRange) { - if (dateRange == null) { - return undefined; + }); + + return arTn; + + }))); + + +/***/ }), +/* 347 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Azerbaijani [az] + //! author : topchiyev : https://github.com/topchiyev + + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + + + var suffixes = { + 1: '-inci', + 5: '-inci', + 8: '-inci', + 70: '-inci', + 80: '-inci', + 2: '-nci', + 7: '-nci', + 20: '-nci', + 50: '-nci', + 3: '-üncü', + 4: '-üncü', + 100: '-üncü', + 6: '-ncı', + 9: '-uncu', + 10: '-uncu', + 30: '-uncu', + 60: '-ıncı', + 90: '-ıncı' + }; + + var az = moment.defineLocale('az', { + months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'), + monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'), + weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'), + weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'), + weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd, D MMMM YYYY HH:mm' + }, + calendar : { + sameDay : '[bugün saat] LT', + nextDay : '[sabah saat] LT', + nextWeek : '[gələn həftə] dddd [saat] LT', + lastDay : '[dünən] LT', + lastWeek : '[keçən həftə] dddd [saat] LT', + sameElse : 'L' + }, + relativeTime : { + future : '%s sonra', + past : '%s əvvəl', + s : 'birneçə saniyyə', + m : 'bir dəqiqə', + mm : '%d dəqiqə', + h : 'bir saat', + hh : '%d saat', + d : 'bir gün', + dd : '%d gün', + M : 'bir ay', + MM : '%d ay', + y : 'bir il', + yy : '%d il' + }, + meridiemParse: /gecə|səhər|gündüz|axşam/, + isPM : function (input) { + return /^(gündüz|axşam)$/.test(input); + }, + meridiem : function (hour, minute, isLower) { + if (hour < 4) { + return 'gecə'; + } else if (hour < 12) { + return 'səhər'; + } else if (hour < 17) { + return 'gündüz'; + } else { + return 'axşam'; + } + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/, + ordinal : function (number) { + if (number === 0) { // special case for zero + return number + '-ıncı'; + } + var a = number % 10, + b = number % 100 - a, + c = number >= 100 ? 100 : null; + return number + (suffixes[a] || suffixes[b] || suffixes[c]); + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. } - return [ - fromDateToMoment(dateRange[0]), - fromDateToMoment(dateRange[1]), - ]; + }); + + return az; + + }))); + + +/***/ }), +/* 348 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Belarusian [be] + //! author : Dmitry Demidov : https://github.com/demidov91 + //! author: Praleska: http://praleska.pro/ + //! Author : Menelion Elensúle : https://github.com/Oire + + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + + + function plural(word, num) { + var forms = word.split('_'); + return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); } - exports.fromDateRangeToMomentDateRange = fromDateRangeToMomentDateRange; - function fromMomentDateRangeToDateRange(momentDateRange) { - if (momentDateRange == null) { - return undefined; + function relativeTimeWithPlural(number, withoutSuffix, key) { + var format = { + 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін', + 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін', + 'dd': 'дзень_дні_дзён', + 'MM': 'месяц_месяцы_месяцаў', + 'yy': 'год_гады_гадоў' + }; + if (key === 'm') { + return withoutSuffix ? 'хвіліна' : 'хвіліну'; } - return [ - fromMomentToDate(momentDateRange[0]), - fromMomentToDate(momentDateRange[1]), - ]; - } - exports.fromMomentDateRangeToDateRange = fromMomentDateRangeToDateRange; - function getDatePreviousMonth(date) { - if (date.getMonth() === 0) { - return new Date(date.getFullYear() - 1, 11); + else if (key === 'h') { + return withoutSuffix ? 'гадзіна' : 'гадзіну'; } else { - return new Date(date.getFullYear(), date.getMonth() - 1); + return number + ' ' + plural(format[key], +number); } } - exports.getDatePreviousMonth = getDatePreviousMonth; - function getDateNextMonth(date) { - if (date.getMonth() === 11) { - return new Date(date.getFullYear() + 1, 0); - } - else { - return new Date(date.getFullYear(), date.getMonth() + 1); + + var be = moment.defineLocale('be', { + months : { + format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'), + standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_') + }, + monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'), + weekdays : { + format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'), + standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'), + isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/ + }, + weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'), + weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D MMMM YYYY г.', + LLL : 'D MMMM YYYY г., HH:mm', + LLLL : 'dddd, D MMMM YYYY г., HH:mm' + }, + calendar : { + sameDay: '[Сёння ў] LT', + nextDay: '[Заўтра ў] LT', + lastDay: '[Учора ў] LT', + nextWeek: function () { + return '[У] dddd [ў] LT'; + }, + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + case 5: + case 6: + return '[У мінулую] dddd [ў] LT'; + case 1: + case 2: + case 4: + return '[У мінулы] dddd [ў] LT'; + } + }, + sameElse: 'L' + }, + relativeTime : { + future : 'праз %s', + past : '%s таму', + s : 'некалькі секунд', + m : relativeTimeWithPlural, + mm : relativeTimeWithPlural, + h : relativeTimeWithPlural, + hh : relativeTimeWithPlural, + d : 'дзень', + dd : relativeTimeWithPlural, + M : 'месяц', + MM : relativeTimeWithPlural, + y : 'год', + yy : relativeTimeWithPlural + }, + meridiemParse: /ночы|раніцы|дня|вечара/, + isPM : function (input) { + return /^(дня|вечара)$/.test(input); + }, + meridiem : function (hour, minute, isLower) { + if (hour < 4) { + return 'ночы'; + } else if (hour < 12) { + return 'раніцы'; + } else if (hour < 17) { + return 'дня'; + } else { + return 'вечара'; + } + }, + dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/, + ordinal: function (number, period) { + switch (period) { + case 'M': + case 'd': + case 'DDD': + case 'w': + case 'W': + return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы'; + case 'D': + return number + '-га'; + default: + return number; + } + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. } - } - exports.getDateNextMonth = getDateNextMonth; - function toLocalizedDateString(momentDate, format, locale) { - var adjustedMomentDate = (locale != null) ? momentDate.locale(locale) : momentDate; - return adjustedMomentDate.format(format); - } - exports.toLocalizedDateString = toLocalizedDateString; + }); + + return be; + + }))); /***/ }), -/* 404 */ +/* 349 */ /***/ (function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(module) {//! moment.js - //! version : 2.18.1 - //! authors : Tim Wood, Iskren Chernev, Moment.js contributors - //! license : MIT - //! momentjs.com + //! moment.js locale configuration + //! locale : Bulgarian [bg] + //! author : Krasen Borisov : https://github.com/kraz ;(function (global, factory) { - true ? module.exports = factory() : - typeof define === 'function' && define.amd ? define(factory) : - global.moment = factory() - }(this, (function () { 'use strict'; + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var hookCallback; - function hooks () { - return hookCallback.apply(null, arguments); - } + var bg = moment.defineLocale('bg', { + months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'), + monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'), + weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'), + weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'), + weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'), + longDateFormat : { + LT : 'H:mm', + LTS : 'H:mm:ss', + L : 'D.MM.YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY H:mm', + LLLL : 'dddd, D MMMM YYYY H:mm' + }, + calendar : { + sameDay : '[Днес в] LT', + nextDay : '[Утре в] LT', + nextWeek : 'dddd [в] LT', + lastDay : '[Вчера в] LT', + lastWeek : function () { + switch (this.day()) { + case 0: + case 3: + case 6: + return '[В изминалата] dddd [в] LT'; + case 1: + case 2: + case 4: + case 5: + return '[В изминалия] dddd [в] LT'; + } + }, + sameElse : 'L' + }, + relativeTime : { + future : 'след %s', + past : 'преди %s', + s : 'няколко секунди', + m : 'минута', + mm : '%d минути', + h : 'час', + hh : '%d часа', + d : 'ден', + dd : '%d дни', + M : 'месец', + MM : '%d месеца', + y : 'година', + yy : '%d години' + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, + ordinal : function (number) { + var lastDigit = number % 10, + last2Digits = number % 100; + if (number === 0) { + return number + '-ев'; + } else if (last2Digits === 0) { + return number + '-ен'; + } else if (last2Digits > 10 && last2Digits < 20) { + return number + '-ти'; + } else if (lastDigit === 1) { + return number + '-ви'; + } else if (lastDigit === 2) { + return number + '-ри'; + } else if (lastDigit === 7 || lastDigit === 8) { + return number + '-ми'; + } else { + return number + '-ти'; + } + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } + }); - // This is done to register the method called with moment() - // without creating circular dependencies. - function setHookCallback (callback) { - hookCallback = callback; - } + return bg; - function isArray(input) { - return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]'; - } + }))); + + +/***/ }), +/* 350 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Bengali [bn] + //! author : Kaushik Gandhi : https://github.com/kaushikgandhi - function isObject(input) { - // IE8 will treat undefined and null as object if it wasn't for - // input != null - return input != null && Object.prototype.toString.call(input) === '[object Object]'; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function isObjectEmpty(obj) { - var k; - for (k in obj) { - // even if its not own property I'd still call it non-empty - return false; + + var symbolMap = { + '1': '১', + '2': '২', + '3': '৩', + '4': '৪', + '5': '৫', + '6': '৬', + '7': '৭', + '8': '৮', + '9': '৯', + '0': '০' + }; + var numberMap = { + '১': '1', + '২': '2', + '৩': '3', + '৪': '4', + '৫': '5', + '৬': '6', + '৭': '7', + '৮': '8', + '৯': '9', + '০': '0' + }; + + var bn = moment.defineLocale('bn', { + months : 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'), + monthsShort : 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'), + weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'), + weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'), + weekdaysMin : 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'), + longDateFormat : { + LT : 'A h:mm সময়', + LTS : 'A h:mm:ss সময়', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY, A h:mm সময়', + LLLL : 'dddd, D MMMM YYYY, A h:mm সময়' + }, + calendar : { + sameDay : '[আজ] LT', + nextDay : '[আগামীকাল] LT', + nextWeek : 'dddd, LT', + lastDay : '[গতকাল] LT', + lastWeek : '[গত] dddd, LT', + sameElse : 'L' + }, + relativeTime : { + future : '%s পরে', + past : '%s আগে', + s : 'কয়েক সেকেন্ড', + m : 'এক মিনিট', + mm : '%d মিনিট', + h : 'এক ঘন্টা', + hh : '%d ঘন্টা', + d : 'এক দিন', + dd : '%d দিন', + M : 'এক মাস', + MM : '%d মাস', + y : 'এক বছর', + yy : '%d বছর' + }, + preparse: function (string) { + return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/, + meridiemHour : function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if ((meridiem === 'রাত' && hour >= 4) || + (meridiem === 'দুপুর' && hour < 5) || + meridiem === 'বিকাল') { + return hour + 12; + } else { + return hour; + } + }, + meridiem : function (hour, minute, isLower) { + if (hour < 4) { + return 'রাত'; + } else if (hour < 10) { + return 'সকাল'; + } else if (hour < 17) { + return 'দুপুর'; + } else if (hour < 20) { + return 'বিকাল'; + } else { + return 'রাত'; + } + }, + week : { + dow : 0, // Sunday is the first day of the week. + doy : 6 // The week that contains Jan 1st is the first week of the year. } - return true; - } + }); - function isUndefined(input) { - return input === void 0; - } + return bn; - function isNumber(input) { - return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]'; - } + }))); + + +/***/ }), +/* 351 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Tibetan [bo] + //! author : Thupten N. Chakrishar : https://github.com/vajradog - function isDate(input) { - return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]'; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function map(arr, fn) { - var res = [], i; - for (i = 0; i < arr.length; ++i) { - res.push(fn(arr[i], i)); - } - return res; - } - function hasOwnProp(a, b) { - return Object.prototype.hasOwnProperty.call(a, b); - } + var symbolMap = { + '1': '༡', + '2': '༢', + '3': '༣', + '4': '༤', + '5': '༥', + '6': '༦', + '7': '༧', + '8': '༨', + '9': '༩', + '0': '༠' + }; + var numberMap = { + '༡': '1', + '༢': '2', + '༣': '3', + '༤': '4', + '༥': '5', + '༦': '6', + '༧': '7', + '༨': '8', + '༩': '9', + '༠': '0' + }; - function extend(a, b) { - for (var i in b) { - if (hasOwnProp(b, i)) { - a[i] = b[i]; + var bo = moment.defineLocale('bo', { + months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'), + monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'), + weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'), + weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'), + weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'), + longDateFormat : { + LT : 'A h:mm', + LTS : 'A h:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY, A h:mm', + LLLL : 'dddd, D MMMM YYYY, A h:mm' + }, + calendar : { + sameDay : '[དི་རིང] LT', + nextDay : '[སང་ཉིན] LT', + nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT', + lastDay : '[ཁ་སང] LT', + lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT', + sameElse : 'L' + }, + relativeTime : { + future : '%s ལ་', + past : '%s སྔན་ལ', + s : 'ལམ་སང', + m : 'སྐར་མ་གཅིག', + mm : '%d སྐར་མ', + h : 'ཆུ་ཚོད་གཅིག', + hh : '%d ཆུ་ཚོད', + d : 'ཉིན་གཅིག', + dd : '%d ཉིན་', + M : 'ཟླ་བ་གཅིག', + MM : '%d ཟླ་བ', + y : 'ལོ་གཅིག', + yy : '%d ལོ' + }, + preparse: function (string) { + return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/, + meridiemHour : function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if ((meridiem === 'མཚན་མོ' && hour >= 4) || + (meridiem === 'ཉིན་གུང' && hour < 5) || + meridiem === 'དགོང་དག') { + return hour + 12; + } else { + return hour; + } + }, + meridiem : function (hour, minute, isLower) { + if (hour < 4) { + return 'མཚན་མོ'; + } else if (hour < 10) { + return 'ཞོགས་ཀས'; + } else if (hour < 17) { + return 'ཉིན་གུང'; + } else if (hour < 20) { + return 'དགོང་དག'; + } else { + return 'མཚན་མོ'; } + }, + week : { + dow : 0, // Sunday is the first day of the week. + doy : 6 // The week that contains Jan 1st is the first week of the year. } + }); - if (hasOwnProp(b, 'toString')) { - a.toString = b.toString; - } + return bo; - if (hasOwnProp(b, 'valueOf')) { - a.valueOf = b.valueOf; - } + }))); + + +/***/ }), +/* 352 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Breton [br] + //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou - return a; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function createUTC (input, format, locale, strict) { - return createLocalOrUTC(input, format, locale, strict, true).utc(); - } - function defaultParsingFlags() { - // We need to deep clone this object. - return { - empty : false, - unusedTokens : [], - unusedInput : [], - overflow : -2, - charsLeftOver : 0, - nullInput : false, - invalidMonth : null, - invalidFormat : false, - userInvalidated : false, - iso : false, - parsedDateParts : [], - meridiem : null, - rfc2822 : false, - weekdayMismatch : false + function relativeTimeWithMutation(number, withoutSuffix, key) { + var format = { + 'mm': 'munutenn', + 'MM': 'miz', + 'dd': 'devezh' }; + return number + ' ' + mutation(format[key], number); } - - function getParsingFlags(m) { - if (m._pf == null) { - m._pf = defaultParsingFlags(); + function specialMutationForYears(number) { + switch (lastNumber(number)) { + case 1: + case 3: + case 4: + case 5: + case 9: + return number + ' bloaz'; + default: + return number + ' vloaz'; } - return m._pf; } - - var some; - if (Array.prototype.some) { - some = Array.prototype.some; - } else { - some = function (fun) { - var t = Object(this); - var len = t.length >>> 0; - - for (var i = 0; i < len; i++) { - if (i in t && fun.call(this, t[i], i, t)) { - return true; - } - } - - return false; - }; + function lastNumber(number) { + if (number > 9) { + return lastNumber(number % 10); + } + return number; } - - var some$1 = some; - - function isValid(m) { - if (m._isValid == null) { - var flags = getParsingFlags(m); - var parsedParts = some$1.call(flags.parsedDateParts, function (i) { - return i != null; - }); - var isNowValid = !isNaN(m._d.getTime()) && - flags.overflow < 0 && - !flags.empty && - !flags.invalidMonth && - !flags.invalidWeekday && - !flags.nullInput && - !flags.invalidFormat && - !flags.userInvalidated && - (!flags.meridiem || (flags.meridiem && parsedParts)); - - if (m._strict) { - isNowValid = isNowValid && - flags.charsLeftOver === 0 && - flags.unusedTokens.length === 0 && - flags.bigHour === undefined; - } - - if (Object.isFrozen == null || !Object.isFrozen(m)) { - m._isValid = isNowValid; - } - else { - return isNowValid; - } + function mutation(text, number) { + if (number === 2) { + return softMutation(text); } - return m._isValid; + return text; } - - function createInvalid (flags) { - var m = createUTC(NaN); - if (flags != null) { - extend(getParsingFlags(m), flags); + function softMutation(text) { + var mutationTable = { + 'm': 'v', + 'b': 'v', + 'd': 'z' + }; + if (mutationTable[text.charAt(0)] === undefined) { + return text; } - else { - getParsingFlags(m).userInvalidated = true; + return mutationTable[text.charAt(0)] + text.substring(1); + } + + var br = moment.defineLocale('br', { + months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'), + monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'), + weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'), + weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'), + weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'h[e]mm A', + LTS : 'h[e]mm:ss A', + L : 'DD/MM/YYYY', + LL : 'D [a viz] MMMM YYYY', + LLL : 'D [a viz] MMMM YYYY h[e]mm A', + LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A' + }, + calendar : { + sameDay : '[Hiziv da] LT', + nextDay : '[Warc\'hoazh da] LT', + nextWeek : 'dddd [da] LT', + lastDay : '[Dec\'h da] LT', + lastWeek : 'dddd [paset da] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'a-benn %s', + past : '%s \'zo', + s : 'un nebeud segondennoù', + m : 'ur vunutenn', + mm : relativeTimeWithMutation, + h : 'un eur', + hh : '%d eur', + d : 'un devezh', + dd : relativeTimeWithMutation, + M : 'ur miz', + MM : relativeTimeWithMutation, + y : 'ur bloaz', + yy : specialMutationForYears + }, + dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/, + ordinal : function (number) { + var output = (number === 1) ? 'añ' : 'vet'; + return number + output; + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } + }); - return m; - } + return br; - // Plugins that add properties should also add the key here (null value), - // so we can properly clone ourselves. - var momentProperties = hooks.momentProperties = []; + }))); + + +/***/ }), +/* 353 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Bosnian [bs] + //! author : Nedim Cholich : https://github.com/frontyard + //! based on (hr) translation by Bojan Marković - function copyConfig(to, from) { - var i, prop, val; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (!isUndefined(from._isAMomentObject)) { - to._isAMomentObject = from._isAMomentObject; - } - if (!isUndefined(from._i)) { - to._i = from._i; - } - if (!isUndefined(from._f)) { - to._f = from._f; - } - if (!isUndefined(from._l)) { - to._l = from._l; - } - if (!isUndefined(from._strict)) { - to._strict = from._strict; - } - if (!isUndefined(from._tzm)) { - to._tzm = from._tzm; - } - if (!isUndefined(from._isUTC)) { - to._isUTC = from._isUTC; - } - if (!isUndefined(from._offset)) { - to._offset = from._offset; - } - if (!isUndefined(from._pf)) { - to._pf = getParsingFlags(from); - } - if (!isUndefined(from._locale)) { - to._locale = from._locale; - } - if (momentProperties.length > 0) { - for (i = 0; i < momentProperties.length; i++) { - prop = momentProperties[i]; - val = from[prop]; - if (!isUndefined(val)) { - to[prop] = val; + function translate(number, withoutSuffix, key) { + var result = number + ' '; + switch (key) { + case 'm': + return withoutSuffix ? 'jedna minuta' : 'jedne minute'; + case 'mm': + if (number === 1) { + result += 'minuta'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'minute'; + } else { + result += 'minuta'; } - } + return result; + case 'h': + return withoutSuffix ? 'jedan sat' : 'jednog sata'; + case 'hh': + if (number === 1) { + result += 'sat'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'sata'; + } else { + result += 'sati'; + } + return result; + case 'dd': + if (number === 1) { + result += 'dan'; + } else { + result += 'dana'; + } + return result; + case 'MM': + if (number === 1) { + result += 'mjesec'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'mjeseca'; + } else { + result += 'mjeseci'; + } + return result; + case 'yy': + if (number === 1) { + result += 'godina'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'godine'; + } else { + result += 'godina'; + } + return result; } - - return to; } - var updateInProgress = false; - - // Moment prototype object - function Moment(config) { - copyConfig(this, config); - this._d = new Date(config._d != null ? config._d.getTime() : NaN); - if (!this.isValid()) { - this._d = new Date(NaN); - } - // Prevent infinite loop in case updateOffset creates new moment - // objects. - if (updateInProgress === false) { - updateInProgress = true; - hooks.updateOffset(this); - updateInProgress = false; + var bs = moment.defineLocale('bs', { + months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'), + monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'), + monthsParseExact: true, + weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'), + weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), + weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'H:mm', + LTS : 'H:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D. MMMM YYYY', + LLL : 'D. MMMM YYYY H:mm', + LLLL : 'dddd, D. MMMM YYYY H:mm' + }, + calendar : { + sameDay : '[danas u] LT', + nextDay : '[sutra u] LT', + nextWeek : function () { + switch (this.day()) { + case 0: + return '[u] [nedjelju] [u] LT'; + case 3: + return '[u] [srijedu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; + } + }, + lastDay : '[jučer u] LT', + lastWeek : function () { + switch (this.day()) { + case 0: + case 3: + return '[prošlu] dddd [u] LT'; + case 6: + return '[prošle] [subote] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[prošli] dddd [u] LT'; + } + }, + sameElse : 'L' + }, + relativeTime : { + future : 'za %s', + past : 'prije %s', + s : 'par sekundi', + m : translate, + mm : translate, + h : translate, + hh : translate, + d : 'dan', + dd : translate, + M : 'mjesec', + MM : translate, + y : 'godinu', + yy : translate + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. } - } - - function isMoment (obj) { - return obj instanceof Moment || (obj != null && obj._isAMomentObject != null); - } + }); - function absFloor (number) { - if (number < 0) { - // -0 -> 0 - return Math.ceil(number) || 0; - } else { - return Math.floor(number); - } - } + return bs; - function toInt(argumentForCoercion) { - var coercedNumber = +argumentForCoercion, - value = 0; + }))); + + +/***/ }), +/* 354 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Catalan [ca] + //! author : Juan G. Hurtado : https://github.com/juanghurtado - if (coercedNumber !== 0 && isFinite(coercedNumber)) { - value = absFloor(coercedNumber); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return value; - } - // compare two arrays, return the number of differences - function compareArrays(array1, array2, dontConvert) { - var len = Math.min(array1.length, array2.length), - lengthDiff = Math.abs(array1.length - array2.length), - diffs = 0, - i; - for (i = 0; i < len; i++) { - if ((dontConvert && array1[i] !== array2[i]) || - (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) { - diffs++; + var ca = moment.defineLocale('ca', { + months : { + standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'), + format: 'de gener_de febrer_de març_d\'abril_de maig_de juny_de juliol_d\'agost_de setembre_d\'octubre_de novembre_de desembre'.split('_'), + isFormat: /D[oD]?(\s)+MMMM/ + }, + monthsShort : 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'), + monthsParseExact : true, + weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'), + weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'), + weekdaysMin : 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'H:mm', + LTS : 'H:mm:ss', + L : 'DD/MM/YYYY', + LL : '[el] D MMMM [de] YYYY', + ll : 'D MMM YYYY', + LLL : '[el] D MMMM [de] YYYY [a les] H:mm', + lll : 'D MMM YYYY, H:mm', + LLLL : '[el] dddd D MMMM [de] YYYY [a les] H:mm', + llll : 'ddd D MMM YYYY, H:mm' + }, + calendar : { + sameDay : function () { + return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; + }, + nextDay : function () { + return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; + }, + nextWeek : function () { + return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; + }, + lastDay : function () { + return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; + }, + lastWeek : function () { + return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; + }, + sameElse : 'L' + }, + relativeTime : { + future : 'd\'aquí %s', + past : 'fa %s', + s : 'uns segons', + m : 'un minut', + mm : '%d minuts', + h : 'una hora', + hh : '%d hores', + d : 'un dia', + dd : '%d dies', + M : 'un mes', + MM : '%d mesos', + y : 'un any', + yy : '%d anys' + }, + dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, + ordinal : function (number, period) { + var output = (number === 1) ? 'r' : + (number === 2) ? 'n' : + (number === 3) ? 'r' : + (number === 4) ? 't' : 'è'; + if (period === 'w' || period === 'W') { + output = 'a'; } + return number + output; + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } - return diffs + lengthDiff; - } - - function warn(msg) { - if (hooks.suppressDeprecationWarnings === false && - (typeof console !== 'undefined') && console.warn) { - console.warn('Deprecation warning: ' + msg); - } - } - - function deprecate(msg, fn) { - var firstTime = true; - - return extend(function () { - if (hooks.deprecationHandler != null) { - hooks.deprecationHandler(null, msg); - } - if (firstTime) { - var args = []; - var arg; - for (var i = 0; i < arguments.length; i++) { - arg = ''; - if (typeof arguments[i] === 'object') { - arg += '\n[' + i + '] '; - for (var key in arguments[0]) { - arg += key + ': ' + arguments[0][key] + ', '; - } - arg = arg.slice(0, -2); // Remove trailing comma and space - } else { - arg = arguments[i]; - } - args.push(arg); - } - warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + (new Error()).stack); - firstTime = false; - } - return fn.apply(this, arguments); - }, fn); - } + }); - var deprecations = {}; + return ca; - function deprecateSimple(name, msg) { - if (hooks.deprecationHandler != null) { - hooks.deprecationHandler(name, msg); - } - if (!deprecations[name]) { - warn(msg); - deprecations[name] = true; - } - } + }))); + + +/***/ }), +/* 355 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Czech [cs] + //! author : petrbela : https://github.com/petrbela - hooks.suppressDeprecationWarnings = false; - hooks.deprecationHandler = null; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function isFunction(input) { - return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]'; - } - function set (config) { - var prop, i; - for (i in config) { - prop = config[i]; - if (isFunction(prop)) { - this[i] = prop; - } else { - this['_' + i] = prop; - } - } - this._config = config; - // Lenient ordinal parsing accepts just a number in addition to - // number + (possibly) stuff coming from _dayOfMonthOrdinalParse. - // TODO: Remove "ordinalParse" fallback in next major release. - this._dayOfMonthOrdinalParseLenient = new RegExp( - (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + - '|' + (/\d{1,2}/).source); + var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'); + var monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'); + function plural(n) { + return (n > 1) && (n < 5) && (~~(n / 10) !== 1); } - - function mergeConfigs(parentConfig, childConfig) { - var res = extend({}, parentConfig), prop; - for (prop in childConfig) { - if (hasOwnProp(childConfig, prop)) { - if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) { - res[prop] = {}; - extend(res[prop], parentConfig[prop]); - extend(res[prop], childConfig[prop]); - } else if (childConfig[prop] != null) { - res[prop] = childConfig[prop]; + function translate(number, withoutSuffix, key, isFuture) { + var result = number + ' '; + switch (key) { + case 's': // a few seconds / in a few seconds / a few seconds ago + return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami'; + case 'm': // a minute / in a minute / a minute ago + return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou'); + case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'minuty' : 'minut'); } else { - delete res[prop]; + return result + 'minutami'; } - } - } - for (prop in parentConfig) { - if (hasOwnProp(parentConfig, prop) && - !hasOwnProp(childConfig, prop) && - isObject(parentConfig[prop])) { - // make sure changes to properties don't modify parent config - res[prop] = extend({}, res[prop]); - } - } - return res; - } - - function Locale(config) { - if (config != null) { - this.set(config); + break; + case 'h': // an hour / in an hour / an hour ago + return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou'); + case 'hh': // 9 hours / in 9 hours / 9 hours ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'hodiny' : 'hodin'); + } else { + return result + 'hodinami'; + } + break; + case 'd': // a day / in a day / a day ago + return (withoutSuffix || isFuture) ? 'den' : 'dnem'; + case 'dd': // 9 days / in 9 days / 9 days ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'dny' : 'dní'); + } else { + return result + 'dny'; + } + break; + case 'M': // a month / in a month / a month ago + return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem'; + case 'MM': // 9 months / in 9 months / 9 months ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'měsíce' : 'měsíců'); + } else { + return result + 'měsíci'; + } + break; + case 'y': // a year / in a year / a year ago + return (withoutSuffix || isFuture) ? 'rok' : 'rokem'; + case 'yy': // 9 years / in 9 years / 9 years ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'roky' : 'let'); + } else { + return result + 'lety'; + } + break; } } - var keys; - - if (Object.keys) { - keys = Object.keys; - } else { - keys = function (obj) { - var i, res = []; - for (i in obj) { - if (hasOwnProp(obj, i)) { - res.push(i); - } + var cs = moment.defineLocale('cs', { + months : months, + monthsShort : monthsShort, + monthsParse : (function (months, monthsShort) { + var i, _monthsParse = []; + for (i = 0; i < 12; i++) { + // use custom parser to solve problem with July (červenec) + _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i'); } - return res; - }; - } - - var keys$1 = keys; - - var defaultCalendar = { - sameDay : '[Today at] LT', - nextDay : '[Tomorrow at] LT', - nextWeek : 'dddd [at] LT', - lastDay : '[Yesterday at] LT', - lastWeek : '[Last] dddd [at] LT', - sameElse : 'L' - }; - - function calendar (key, mom, now) { - var output = this._calendar[key] || this._calendar['sameElse']; - return isFunction(output) ? output.call(mom, now) : output; - } - - var defaultLongDateFormat = { - LTS : 'h:mm:ss A', - LT : 'h:mm A', - L : 'MM/DD/YYYY', - LL : 'MMMM D, YYYY', - LLL : 'MMMM D, YYYY h:mm A', - LLLL : 'dddd, MMMM D, YYYY h:mm A' - }; - - function longDateFormat (key) { - var format = this._longDateFormat[key], - formatUpper = this._longDateFormat[key.toUpperCase()]; - - if (format || !formatUpper) { - return format; + return _monthsParse; + }(months, monthsShort)), + shortMonthsParse : (function (monthsShort) { + var i, _shortMonthsParse = []; + for (i = 0; i < 12; i++) { + _shortMonthsParse[i] = new RegExp('^' + monthsShort[i] + '$', 'i'); + } + return _shortMonthsParse; + }(monthsShort)), + longMonthsParse : (function (months) { + var i, _longMonthsParse = []; + for (i = 0; i < 12; i++) { + _longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i'); + } + return _longMonthsParse; + }(months)), + weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'), + weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'), + weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'), + longDateFormat : { + LT: 'H:mm', + LTS : 'H:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D. MMMM YYYY', + LLL : 'D. MMMM YYYY H:mm', + LLLL : 'dddd D. MMMM YYYY H:mm', + l : 'D. M. YYYY' + }, + calendar : { + sameDay: '[dnes v] LT', + nextDay: '[zítra v] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[v neděli v] LT'; + case 1: + case 2: + return '[v] dddd [v] LT'; + case 3: + return '[ve středu v] LT'; + case 4: + return '[ve čtvrtek v] LT'; + case 5: + return '[v pátek v] LT'; + case 6: + return '[v sobotu v] LT'; + } + }, + lastDay: '[včera v] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[minulou neděli v] LT'; + case 1: + case 2: + return '[minulé] dddd [v] LT'; + case 3: + return '[minulou středu v] LT'; + case 4: + case 5: + return '[minulý] dddd [v] LT'; + case 6: + return '[minulou sobotu v] LT'; + } + }, + sameElse: 'L' + }, + relativeTime : { + future : 'za %s', + past : 'před %s', + s : translate, + m : translate, + mm : translate, + h : translate, + hh : translate, + d : translate, + dd : translate, + M : translate, + MM : translate, + y : translate, + yy : translate + }, + dayOfMonthOrdinalParse : /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } + }); - this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) { - return val.slice(1); - }); - - return this._longDateFormat[key]; - } - - var defaultInvalidDate = 'Invalid date'; - - function invalidDate () { - return this._invalidDate; - } - - var defaultOrdinal = '%d'; - var defaultDayOfMonthOrdinalParse = /\d{1,2}/; + return cs; - function ordinal (number) { - return this._ordinal.replace('%d', number); - } + }))); + + +/***/ }), +/* 356 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Chuvash [cv] + //! author : Anatoly Mironov : https://github.com/mirontoli - var defaultRelativeTime = { - future : 'in %s', - past : '%s ago', - s : 'a few seconds', - ss : '%d seconds', - m : 'a minute', - mm : '%d minutes', - h : 'an hour', - hh : '%d hours', - d : 'a day', - dd : '%d days', - M : 'a month', - MM : '%d months', - y : 'a year', - yy : '%d years' - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function relativeTime (number, withoutSuffix, string, isFuture) { - var output = this._relativeTime[string]; - return (isFunction(output)) ? - output(number, withoutSuffix, string, isFuture) : - output.replace(/%d/i, number); - } - function pastFuture (diff, output) { - var format = this._relativeTime[diff > 0 ? 'future' : 'past']; - return isFunction(format) ? format(output) : format.replace(/%s/i, output); - } + var cv = moment.defineLocale('cv', { + months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'), + monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'), + weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'), + weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'), + weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD-MM-YYYY', + LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]', + LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', + LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm' + }, + calendar : { + sameDay: '[Паян] LT [сехетре]', + nextDay: '[Ыран] LT [сехетре]', + lastDay: '[Ӗнер] LT [сехетре]', + nextWeek: '[Ҫитес] dddd LT [сехетре]', + lastWeek: '[Иртнӗ] dddd LT [сехетре]', + sameElse: 'L' + }, + relativeTime : { + future : function (output) { + var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран'; + return output + affix; + }, + past : '%s каялла', + s : 'пӗр-ик ҫеккунт', + m : 'пӗр минут', + mm : '%d минут', + h : 'пӗр сехет', + hh : '%d сехет', + d : 'пӗр кун', + dd : '%d кун', + M : 'пӗр уйӑх', + MM : '%d уйӑх', + y : 'пӗр ҫул', + yy : '%d ҫул' + }, + dayOfMonthOrdinalParse: /\d{1,2}-мӗш/, + ordinal : '%d-мӗш', + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } + }); - var aliases = {}; + return cv; - function addUnitAlias (unit, shorthand) { - var lowerCase = unit.toLowerCase(); - aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit; - } + }))); + + +/***/ }), +/* 357 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Welsh [cy] + //! author : Robert Allen : https://github.com/robgallen + //! author : https://github.com/ryangreaves - function normalizeUnits(units) { - return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function normalizeObjectUnits(inputObject) { - var normalizedInput = {}, - normalizedProp, - prop; - for (prop in inputObject) { - if (hasOwnProp(inputObject, prop)) { - normalizedProp = normalizeUnits(prop); - if (normalizedProp) { - normalizedInput[normalizedProp] = inputObject[prop]; + var cy = moment.defineLocale('cy', { + months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'), + monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'), + weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'), + weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), + weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), + weekdaysParseExact : true, + // time formats are the same as en-gb + longDateFormat: { + LT: 'HH:mm', + LTS : 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Heddiw am] LT', + nextDay: '[Yfory am] LT', + nextWeek: 'dddd [am] LT', + lastDay: '[Ddoe am] LT', + lastWeek: 'dddd [diwethaf am] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'mewn %s', + past: '%s yn ôl', + s: 'ychydig eiliadau', + m: 'munud', + mm: '%d munud', + h: 'awr', + hh: '%d awr', + d: 'diwrnod', + dd: '%d diwrnod', + M: 'mis', + MM: '%d mis', + y: 'blwyddyn', + yy: '%d flynedd' + }, + dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, + // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh + ordinal: function (number) { + var b = number, + output = '', + lookup = [ + '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed + 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed + ]; + if (b > 20) { + if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) { + output = 'fed'; // not 30ain, 70ain or 90ain + } else { + output = 'ain'; } + } else if (b > 0) { + output = lookup[b]; } + return number + output; + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } + }); - return normalizedInput; - } + return cy; - var priorities = {}; + }))); + + +/***/ }), +/* 358 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Danish [da] + //! author : Ulrik Nielsen : https://github.com/mrbase - function addUnitPriority(unit, priority) { - priorities[unit] = priority; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function getPrioritizedUnits(unitsObj) { - var units = []; - for (var u in unitsObj) { - units.push({unit: u, priority: priorities[u]}); + + var da = moment.defineLocale('da', { + months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'), + monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), + weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), + weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'), + weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D. MMMM YYYY', + LLL : 'D. MMMM YYYY HH:mm', + LLLL : 'dddd [d.] D. MMMM YYYY [kl.] HH:mm' + }, + calendar : { + sameDay : '[i dag kl.] LT', + nextDay : '[i morgen kl.] LT', + nextWeek : 'på dddd [kl.] LT', + lastDay : '[i går kl.] LT', + lastWeek : '[i] dddd[s kl.] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'om %s', + past : '%s siden', + s : 'få sekunder', + m : 'et minut', + mm : '%d minutter', + h : 'en time', + hh : '%d timer', + d : 'en dag', + dd : '%d dage', + M : 'en måned', + MM : '%d måneder', + y : 'et år', + yy : '%d år' + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } - units.sort(function (a, b) { - return a.priority - b.priority; - }); - return units; - } + }); - function makeGetSet (unit, keepTime) { - return function (value) { - if (value != null) { - set$1(this, unit, value); - hooks.updateOffset(this, keepTime); - return this; - } else { - return get(this, unit); - } - }; - } + return da; - function get (mom, unit) { - return mom.isValid() ? - mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN; - } + }))); + + +/***/ }), +/* 359 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : German [de] + //! author : lluchs : https://github.com/lluchs + //! author: Menelion Elensúle: https://github.com/Oire + //! author : Mikolaj Dadela : https://github.com/mik01aj - function set$1 (mom, unit, value) { - if (mom.isValid()) { - mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value); - } - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // MOMENTS - function stringGet (units) { - units = normalizeUnits(units); - if (isFunction(this[units])) { - return this[units](); - } - return this; + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + 'm': ['eine Minute', 'einer Minute'], + 'h': ['eine Stunde', 'einer Stunde'], + 'd': ['ein Tag', 'einem Tag'], + 'dd': [number + ' Tage', number + ' Tagen'], + 'M': ['ein Monat', 'einem Monat'], + 'MM': [number + ' Monate', number + ' Monaten'], + 'y': ['ein Jahr', 'einem Jahr'], + 'yy': [number + ' Jahre', number + ' Jahren'] + }; + return withoutSuffix ? format[key][0] : format[key][1]; } - - function stringSet (units, value) { - if (typeof units === 'object') { - units = normalizeObjectUnits(units); - var prioritized = getPrioritizedUnits(units); - for (var i = 0; i < prioritized.length; i++) { - this[prioritized[i].unit](units[prioritized[i].unit]); - } - } else { - units = normalizeUnits(units); - if (isFunction(this[units])) { - return this[units](value); - } + var de = moment.defineLocale('de', { + months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), + monthsShort : 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'), + monthsParseExact : true, + weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), + weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), + weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D. MMMM YYYY', + LLL : 'D. MMMM YYYY HH:mm', + LLLL : 'dddd, D. MMMM YYYY HH:mm' + }, + calendar : { + sameDay: '[heute um] LT [Uhr]', + sameElse: 'L', + nextDay: '[morgen um] LT [Uhr]', + nextWeek: 'dddd [um] LT [Uhr]', + lastDay: '[gestern um] LT [Uhr]', + lastWeek: '[letzten] dddd [um] LT [Uhr]' + }, + relativeTime : { + future : 'in %s', + past : 'vor %s', + s : 'ein paar Sekunden', + m : processRelativeTime, + mm : '%d Minuten', + h : processRelativeTime, + hh : '%d Stunden', + d : processRelativeTime, + dd : processRelativeTime, + M : processRelativeTime, + MM : processRelativeTime, + y : processRelativeTime, + yy : processRelativeTime + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } - return this; - } - - function zeroFill(number, targetLength, forceSign) { - var absNumber = '' + Math.abs(number), - zerosToFill = targetLength - absNumber.length, - sign = number >= 0; - return (sign ? (forceSign ? '+' : '') : '-') + - Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber; - } + }); - var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g; + return de; - var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g; + }))); + + +/***/ }), +/* 360 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : German (Austria) [de-at] + //! author : lluchs : https://github.com/lluchs + //! author: Menelion Elensúle: https://github.com/Oire + //! author : Martin Groller : https://github.com/MadMG + //! author : Mikolaj Dadela : https://github.com/mik01aj - var formatFunctions = {}; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var formatTokenFunctions = {}; - // token: 'M' - // padded: ['MM', 2] - // ordinal: 'Mo' - // callback: function () { this.month() + 1 } - function addFormatToken (token, padded, ordinal, callback) { - var func = callback; - if (typeof callback === 'string') { - func = function () { - return this[callback](); - }; - } - if (token) { - formatTokenFunctions[token] = func; - } - if (padded) { - formatTokenFunctions[padded[0]] = function () { - return zeroFill(func.apply(this, arguments), padded[1], padded[2]); - }; - } - if (ordinal) { - formatTokenFunctions[ordinal] = function () { - return this.localeData().ordinal(func.apply(this, arguments), token); - }; - } + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + 'm': ['eine Minute', 'einer Minute'], + 'h': ['eine Stunde', 'einer Stunde'], + 'd': ['ein Tag', 'einem Tag'], + 'dd': [number + ' Tage', number + ' Tagen'], + 'M': ['ein Monat', 'einem Monat'], + 'MM': [number + ' Monate', number + ' Monaten'], + 'y': ['ein Jahr', 'einem Jahr'], + 'yy': [number + ' Jahre', number + ' Jahren'] + }; + return withoutSuffix ? format[key][0] : format[key][1]; } - function removeFormattingTokens(input) { - if (input.match(/\[[\s\S]/)) { - return input.replace(/^\[|\]$/g, ''); + var deAt = moment.defineLocale('de-at', { + months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), + monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'), + monthsParseExact : true, + weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), + weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), + weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D. MMMM YYYY', + LLL : 'D. MMMM YYYY HH:mm', + LLLL : 'dddd, D. MMMM YYYY HH:mm' + }, + calendar : { + sameDay: '[heute um] LT [Uhr]', + sameElse: 'L', + nextDay: '[morgen um] LT [Uhr]', + nextWeek: 'dddd [um] LT [Uhr]', + lastDay: '[gestern um] LT [Uhr]', + lastWeek: '[letzten] dddd [um] LT [Uhr]' + }, + relativeTime : { + future : 'in %s', + past : 'vor %s', + s : 'ein paar Sekunden', + m : processRelativeTime, + mm : '%d Minuten', + h : processRelativeTime, + hh : '%d Stunden', + d : processRelativeTime, + dd : processRelativeTime, + M : processRelativeTime, + MM : processRelativeTime, + y : processRelativeTime, + yy : processRelativeTime + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } - return input.replace(/\\/g, ''); - } + }); - function makeFormatFunction(format) { - var array = format.match(formattingTokens), i, length; + return deAt; - for (i = 0, length = array.length; i < length; i++) { - if (formatTokenFunctions[array[i]]) { - array[i] = formatTokenFunctions[array[i]]; - } else { - array[i] = removeFormattingTokens(array[i]); - } - } + }))); + + +/***/ }), +/* 361 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : German (Switzerland) [de-ch] + //! author : sschueller : https://github.com/sschueller - return function (mom) { - var output = '', i; - for (i = 0; i < length; i++) { - output += isFunction(array[i]) ? array[i].call(mom, format) : array[i]; - } - return output; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + + + // based on: https://www.bk.admin.ch/dokumentation/sprachen/04915/05016/index.html?lang=de# + + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + 'm': ['eine Minute', 'einer Minute'], + 'h': ['eine Stunde', 'einer Stunde'], + 'd': ['ein Tag', 'einem Tag'], + 'dd': [number + ' Tage', number + ' Tagen'], + 'M': ['ein Monat', 'einem Monat'], + 'MM': [number + ' Monate', number + ' Monaten'], + 'y': ['ein Jahr', 'einem Jahr'], + 'yy': [number + ' Jahre', number + ' Jahren'] }; + return withoutSuffix ? format[key][0] : format[key][1]; } - // format date using native date object - function formatMoment(m, format) { - if (!m.isValid()) { - return m.localeData().invalidDate(); + var deCh = moment.defineLocale('de-ch', { + months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), + monthsShort : 'Jan._Febr._März_April_Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.'.split('_'), + monthsParseExact : true, + weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), + weekdaysShort : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L : 'DD.MM.YYYY', + LL : 'D. MMMM YYYY', + LLL : 'D. MMMM YYYY HH.mm', + LLLL : 'dddd, D. MMMM YYYY HH.mm' + }, + calendar : { + sameDay: '[heute um] LT [Uhr]', + sameElse: 'L', + nextDay: '[morgen um] LT [Uhr]', + nextWeek: 'dddd [um] LT [Uhr]', + lastDay: '[gestern um] LT [Uhr]', + lastWeek: '[letzten] dddd [um] LT [Uhr]' + }, + relativeTime : { + future : 'in %s', + past : 'vor %s', + s : 'ein paar Sekunden', + m : processRelativeTime, + mm : '%d Minuten', + h : processRelativeTime, + hh : '%d Stunden', + d : processRelativeTime, + dd : processRelativeTime, + M : processRelativeTime, + MM : processRelativeTime, + y : processRelativeTime, + yy : processRelativeTime + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } + }); - format = expandFormat(format, m.localeData()); - formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format); - - return formatFunctions[format](m); - } - - function expandFormat(format, locale) { - var i = 5; - - function replaceLongDateFormatTokens(input) { - return locale.longDateFormat(input) || input; - } + return deCh; - localFormattingTokens.lastIndex = 0; - while (i >= 0 && localFormattingTokens.test(format)) { - format = format.replace(localFormattingTokens, replaceLongDateFormatTokens); - localFormattingTokens.lastIndex = 0; - i -= 1; - } + }))); + + +/***/ }), +/* 362 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Maldivian [dv] + //! author : Jawish Hameed : https://github.com/jawish - return format; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var match1 = /\d/; // 0 - 9 - var match2 = /\d\d/; // 00 - 99 - var match3 = /\d{3}/; // 000 - 999 - var match4 = /\d{4}/; // 0000 - 9999 - var match6 = /[+-]?\d{6}/; // -999999 - 999999 - var match1to2 = /\d\d?/; // 0 - 99 - var match3to4 = /\d\d\d\d?/; // 999 - 9999 - var match5to6 = /\d\d\d\d\d\d?/; // 99999 - 999999 - var match1to3 = /\d{1,3}/; // 0 - 999 - var match1to4 = /\d{1,4}/; // 0 - 9999 - var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999 - var matchUnsigned = /\d+/; // 0 - inf - var matchSigned = /[+-]?\d+/; // -inf - inf + var months = [ + 'ޖެނުއަރީ', + 'ފެބްރުއަރީ', + 'މާރިޗު', + 'އޭޕްރީލު', + 'މޭ', + 'ޖޫން', + 'ޖުލައި', + 'އޯގަސްޓު', + 'ސެޕްޓެމްބަރު', + 'އޮކްޓޯބަރު', + 'ނޮވެމްބަރު', + 'ޑިސެމްބަރު' + ]; + var weekdays = [ + 'އާދިއްތަ', + 'ހޯމަ', + 'އަންގާރަ', + 'ބުދަ', + 'ބުރާސްފަތި', + 'ހުކުރު', + 'ހޮނިހިރު' + ]; - var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z - var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z + var dv = moment.defineLocale('dv', { + months : months, + monthsShort : months, + weekdays : weekdays, + weekdaysShort : weekdays, + weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'), + longDateFormat : { - var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123 + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'D/M/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd D MMMM YYYY HH:mm' + }, + meridiemParse: /މކ|މފ/, + isPM : function (input) { + return 'މފ' === input; + }, + meridiem : function (hour, minute, isLower) { + if (hour < 12) { + return 'މކ'; + } else { + return 'މފ'; + } + }, + calendar : { + sameDay : '[މިއަދު] LT', + nextDay : '[މާދަމާ] LT', + nextWeek : 'dddd LT', + lastDay : '[އިއްޔެ] LT', + lastWeek : '[ފާއިތުވި] dddd LT', + sameElse : 'L' + }, + relativeTime : { + future : 'ތެރޭގައި %s', + past : 'ކުރިން %s', + s : 'ސިކުންތުކޮޅެއް', + m : 'މިނިޓެއް', + mm : 'މިނިޓު %d', + h : 'ގަޑިއިރެއް', + hh : 'ގަޑިއިރު %d', + d : 'ދުވަހެއް', + dd : 'ދުވަސް %d', + M : 'މަހެއް', + MM : 'މަސް %d', + y : 'އަހަރެއް', + yy : 'އަހަރު %d' + }, + preparse: function (string) { + return string.replace(/،/g, ','); + }, + postformat: function (string) { + return string.replace(/,/g, '،'); + }, + week : { + dow : 7, // Sunday is the first day of the week. + doy : 12 // The week that contains Jan 1st is the first week of the year. + } + }); - // any word (or two) characters or numbers including two/three word month in arabic. - // includes scottish gaelic two word and hyphenated months - var matchWord = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i; + return dv; + }))); + + +/***/ }), +/* 363 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Greek [el] + //! author : Aggelos Karalias : https://github.com/mehiel - var regexes = {}; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function addRegexToken (token, regex, strictRegex) { - regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) { - return (isStrict && strictRegex) ? strictRegex : regex; - }; + function isFunction(input) { + return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]'; } - function getParseRegexForToken (token, config) { - if (!hasOwnProp(regexes, token)) { - return new RegExp(unescapeFormat(token)); + + var el = moment.defineLocale('el', { + monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'), + monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'), + months : function (momentToFormat, format) { + if (!momentToFormat) { + return this._monthsNominativeEl; + } else if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM' + return this._monthsGenitiveEl[momentToFormat.month()]; + } else { + return this._monthsNominativeEl[momentToFormat.month()]; + } + }, + monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'), + weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'), + weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'), + weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'), + meridiem : function (hours, minutes, isLower) { + if (hours > 11) { + return isLower ? 'μμ' : 'ΜΜ'; + } else { + return isLower ? 'πμ' : 'ΠΜ'; + } + }, + isPM : function (input) { + return ((input + '').toLowerCase()[0] === 'μ'); + }, + meridiemParse : /[ΠΜ]\.?Μ?\.?/i, + longDateFormat : { + LT : 'h:mm A', + LTS : 'h:mm:ss A', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY h:mm A', + LLLL : 'dddd, D MMMM YYYY h:mm A' + }, + calendarEl : { + sameDay : '[Σήμερα {}] LT', + nextDay : '[Αύριο {}] LT', + nextWeek : 'dddd [{}] LT', + lastDay : '[Χθες {}] LT', + lastWeek : function () { + switch (this.day()) { + case 6: + return '[το προηγούμενο] dddd [{}] LT'; + default: + return '[την προηγούμενη] dddd [{}] LT'; + } + }, + sameElse : 'L' + }, + calendar : function (key, mom) { + var output = this._calendarEl[key], + hours = mom && mom.hours(); + if (isFunction(output)) { + output = output.apply(mom); + } + return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις')); + }, + relativeTime : { + future : 'σε %s', + past : '%s πριν', + s : 'λίγα δευτερόλεπτα', + m : 'ένα λεπτό', + mm : '%d λεπτά', + h : 'μία ώρα', + hh : '%d ώρες', + d : 'μία μέρα', + dd : '%d μέρες', + M : 'ένας μήνας', + MM : '%d μήνες', + y : 'ένας χρόνος', + yy : '%d χρόνια' + }, + dayOfMonthOrdinalParse: /\d{1,2}η/, + ordinal: '%dη', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4st is the first week of the year. } + }); - return regexes[token](config._strict, config._locale); - } + return el; - // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript - function unescapeFormat(s) { - return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) { - return p1 || p2 || p3 || p4; - })); - } + }))); + + +/***/ }), +/* 364 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : English (Australia) [en-au] + //! author : Jared Morse : https://github.com/jarcoal - function regexEscape(s) { - return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var tokens = {}; - function addParseToken (token, callback) { - var i, func = callback; - if (typeof token === 'string') { - token = [token]; - } - if (isNumber(callback)) { - func = function (input, array) { - array[callback] = toInt(input); - }; - } - for (i = 0; i < token.length; i++) { - tokens[token[i]] = func; + var enAu = moment.defineLocale('en-au', { + months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), + monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), + weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat : { + LT : 'h:mm A', + LTS : 'h:mm:ss A', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY h:mm A', + LLLL : 'dddd, D MMMM YYYY h:mm A' + }, + calendar : { + sameDay : '[Today at] LT', + nextDay : '[Tomorrow at] LT', + nextWeek : 'dddd [at] LT', + lastDay : '[Yesterday at] LT', + lastWeek : '[Last] dddd [at] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'in %s', + past : '%s ago', + s : 'a few seconds', + m : 'a minute', + mm : '%d minutes', + h : 'an hour', + hh : '%d hours', + d : 'a day', + dd : '%d days', + M : 'a month', + MM : '%d months', + y : 'a year', + yy : '%d years' + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal : function (number) { + var b = number % 10, + output = (~~(number % 100 / 10) === 1) ? 'th' : + (b === 1) ? 'st' : + (b === 2) ? 'nd' : + (b === 3) ? 'rd' : 'th'; + return number + output; + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } - } - - function addWeekParseToken (token, callback) { - addParseToken(token, function (input, array, config, token) { - config._w = config._w || {}; - callback(input, config._w, config, token); - }); - } + }); - function addTimeToArrayFromToken(token, input, config) { - if (input != null && hasOwnProp(tokens, token)) { - tokens[token](input, config._a, config, token); - } - } + return enAu; - var YEAR = 0; - var MONTH = 1; - var DATE = 2; - var HOUR = 3; - var MINUTE = 4; - var SECOND = 5; - var MILLISECOND = 6; - var WEEK = 7; - var WEEKDAY = 8; + }))); + + +/***/ }), +/* 365 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : English (Canada) [en-ca] + //! author : Jonathan Abourbih : https://github.com/jonbca - var indexOf; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (Array.prototype.indexOf) { - indexOf = Array.prototype.indexOf; - } else { - indexOf = function (o) { - // I know - var i; - for (i = 0; i < this.length; ++i) { - if (this[i] === o) { - return i; - } - } - return -1; - }; - } - var indexOf$1 = indexOf; + var enCa = moment.defineLocale('en-ca', { + months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), + monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), + weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat : { + LT : 'h:mm A', + LTS : 'h:mm:ss A', + L : 'YYYY-MM-DD', + LL : 'MMMM D, YYYY', + LLL : 'MMMM D, YYYY h:mm A', + LLLL : 'dddd, MMMM D, YYYY h:mm A' + }, + calendar : { + sameDay : '[Today at] LT', + nextDay : '[Tomorrow at] LT', + nextWeek : 'dddd [at] LT', + lastDay : '[Yesterday at] LT', + lastWeek : '[Last] dddd [at] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'in %s', + past : '%s ago', + s : 'a few seconds', + m : 'a minute', + mm : '%d minutes', + h : 'an hour', + hh : '%d hours', + d : 'a day', + dd : '%d days', + M : 'a month', + MM : '%d months', + y : 'a year', + yy : '%d years' + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal : function (number) { + var b = number % 10, + output = (~~(number % 100 / 10) === 1) ? 'th' : + (b === 1) ? 'st' : + (b === 2) ? 'nd' : + (b === 3) ? 'rd' : 'th'; + return number + output; + } + }); - function daysInMonth(year, month) { - return new Date(Date.UTC(year, month + 1, 0)).getUTCDate(); - } + return enCa; - // FORMATTING + }))); + + +/***/ }), +/* 366 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : English (United Kingdom) [en-gb] + //! author : Chris Gedrim : https://github.com/chrisgedrim - addFormatToken('M', ['MM', 2], 'Mo', function () { - return this.month() + 1; - }); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - addFormatToken('MMM', 0, 0, function (format) { - return this.localeData().monthsShort(this, format); - }); - addFormatToken('MMMM', 0, 0, function (format) { - return this.localeData().months(this, format); + var enGb = moment.defineLocale('en-gb', { + months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), + monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), + weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd, D MMMM YYYY HH:mm' + }, + calendar : { + sameDay : '[Today at] LT', + nextDay : '[Tomorrow at] LT', + nextWeek : 'dddd [at] LT', + lastDay : '[Yesterday at] LT', + lastWeek : '[Last] dddd [at] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'in %s', + past : '%s ago', + s : 'a few seconds', + m : 'a minute', + mm : '%d minutes', + h : 'an hour', + hh : '%d hours', + d : 'a day', + dd : '%d days', + M : 'a month', + MM : '%d months', + y : 'a year', + yy : '%d years' + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal : function (number) { + var b = number % 10, + output = (~~(number % 100 / 10) === 1) ? 'th' : + (b === 1) ? 'st' : + (b === 2) ? 'nd' : + (b === 3) ? 'rd' : 'th'; + return number + output; + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + } }); - // ALIASES - - addUnitAlias('month', 'M'); - - // PRIORITY - - addUnitPriority('month', 8); + return enGb; - // PARSING + }))); + + +/***/ }), +/* 367 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : English (Ireland) [en-ie] + //! author : Chris Cartlidge : https://github.com/chriscartlidge - addRegexToken('M', match1to2); - addRegexToken('MM', match1to2, match2); - addRegexToken('MMM', function (isStrict, locale) { - return locale.monthsShortRegex(isStrict); - }); - addRegexToken('MMMM', function (isStrict, locale) { - return locale.monthsRegex(isStrict); - }); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - addParseToken(['M', 'MM'], function (input, array) { - array[MONTH] = toInt(input) - 1; - }); - addParseToken(['MMM', 'MMMM'], function (input, array, config, token) { - var month = config._locale.monthsParse(input, token, config._strict); - // if we didn't find a month name, mark the date as invalid. - if (month != null) { - array[MONTH] = month; - } else { - getParsingFlags(config).invalidMonth = input; + var enIe = moment.defineLocale('en-ie', { + months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), + monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), + weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD-MM-YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd D MMMM YYYY HH:mm' + }, + calendar : { + sameDay : '[Today at] LT', + nextDay : '[Tomorrow at] LT', + nextWeek : 'dddd [at] LT', + lastDay : '[Yesterday at] LT', + lastWeek : '[Last] dddd [at] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'in %s', + past : '%s ago', + s : 'a few seconds', + m : 'a minute', + mm : '%d minutes', + h : 'an hour', + hh : '%d hours', + d : 'a day', + dd : '%d days', + M : 'a month', + MM : '%d months', + y : 'a year', + yy : '%d years' + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal : function (number) { + var b = number % 10, + output = (~~(number % 100 / 10) === 1) ? 'th' : + (b === 1) ? 'st' : + (b === 2) ? 'nd' : + (b === 3) ? 'rd' : 'th'; + return number + output; + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } }); - // LOCALES - - var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/; - var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'); - function localeMonths (m, format) { - if (!m) { - return isArray(this._months) ? this._months : - this._months['standalone']; - } - return isArray(this._months) ? this._months[m.month()] : - this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()]; - } - - var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'); - function localeMonthsShort (m, format) { - if (!m) { - return isArray(this._monthsShort) ? this._monthsShort : - this._monthsShort['standalone']; - } - return isArray(this._monthsShort) ? this._monthsShort[m.month()] : - this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()]; - } - - function handleStrictParse(monthName, format, strict) { - var i, ii, mom, llc = monthName.toLocaleLowerCase(); - if (!this._monthsParse) { - // this is not used - this._monthsParse = []; - this._longMonthsParse = []; - this._shortMonthsParse = []; - for (i = 0; i < 12; ++i) { - mom = createUTC([2000, i]); - this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase(); - this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase(); - } - } + return enIe; - if (strict) { - if (format === 'MMM') { - ii = indexOf$1.call(this._shortMonthsParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf$1.call(this._longMonthsParse, llc); - return ii !== -1 ? ii : null; - } - } else { - if (format === 'MMM') { - ii = indexOf$1.call(this._shortMonthsParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf$1.call(this._longMonthsParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf$1.call(this._longMonthsParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf$1.call(this._shortMonthsParse, llc); - return ii !== -1 ? ii : null; - } - } - } + }))); + + +/***/ }), +/* 368 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : English (New Zealand) [en-nz] + //! author : Luke McGregor : https://github.com/lukemcgregor - function localeMonthsParse (monthName, format, strict) { - var i, mom, regex; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (this._monthsParseExact) { - return handleStrictParse.call(this, monthName, format, strict); - } - if (!this._monthsParse) { - this._monthsParse = []; - this._longMonthsParse = []; - this._shortMonthsParse = []; + var enNz = moment.defineLocale('en-nz', { + months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), + monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), + weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), + weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat : { + LT : 'h:mm A', + LTS : 'h:mm:ss A', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY h:mm A', + LLLL : 'dddd, D MMMM YYYY h:mm A' + }, + calendar : { + sameDay : '[Today at] LT', + nextDay : '[Tomorrow at] LT', + nextWeek : 'dddd [at] LT', + lastDay : '[Yesterday at] LT', + lastWeek : '[Last] dddd [at] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'in %s', + past : '%s ago', + s : 'a few seconds', + m : 'a minute', + mm : '%d minutes', + h : 'an hour', + hh : '%d hours', + d : 'a day', + dd : '%d days', + M : 'a month', + MM : '%d months', + y : 'a year', + yy : '%d years' + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal : function (number) { + var b = number % 10, + output = (~~(number % 100 / 10) === 1) ? 'th' : + (b === 1) ? 'st' : + (b === 2) ? 'nd' : + (b === 3) ? 'rd' : 'th'; + return number + output; + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } + }); - // TODO: add sorting - // Sorting makes sure if one month (or abbr) is a prefix of another - // see sorting in computeMonthsParse - for (i = 0; i < 12; i++) { - // make the regex if we don't have it already - mom = createUTC([2000, i]); - if (strict && !this._longMonthsParse[i]) { - this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i'); - this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i'); - } - if (!strict && !this._monthsParse[i]) { - regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, ''); - this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i'); - } - // test the regex - if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) { - return i; - } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) { - return i; - } else if (!strict && this._monthsParse[i].test(monthName)) { - return i; - } - } - } + return enNz; - // MOMENTS + }))); + + +/***/ }), +/* 369 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Esperanto [eo] + //! author : Colin Dean : https://github.com/colindean + //! author : Mia Nordentoft Imperatori : https://github.com/miestasmia + //! comment : miestasmia corrected the translation by colindean - function setMonth (mom, value) { - var dayOfMonth; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (!mom.isValid()) { - // No op - return mom; - } - if (typeof value === 'string') { - if (/^\d+$/.test(value)) { - value = toInt(value); + var eo = moment.defineLocale('eo', { + months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'), + monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'), + weekdays : 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'), + weekdaysShort : 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'), + weekdaysMin : 'di_lu_ma_me_ĵa_ve_sa'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'YYYY-MM-DD', + LL : 'D[-a de] MMMM, YYYY', + LLL : 'D[-a de] MMMM, YYYY HH:mm', + LLLL : 'dddd, [la] D[-a de] MMMM, YYYY HH:mm' + }, + meridiemParse: /[ap]\.t\.m/i, + isPM: function (input) { + return input.charAt(0).toLowerCase() === 'p'; + }, + meridiem : function (hours, minutes, isLower) { + if (hours > 11) { + return isLower ? 'p.t.m.' : 'P.T.M.'; } else { - value = mom.localeData().monthsParse(value); - // TODO: Another silent failure? - if (!isNumber(value)) { - return mom; - } + return isLower ? 'a.t.m.' : 'A.T.M.'; } + }, + calendar : { + sameDay : '[Hodiaŭ je] LT', + nextDay : '[Morgaŭ je] LT', + nextWeek : 'dddd [je] LT', + lastDay : '[Hieraŭ je] LT', + lastWeek : '[pasinta] dddd [je] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'post %s', + past : 'antaŭ %s', + s : 'sekundoj', + m : 'minuto', + mm : '%d minutoj', + h : 'horo', + hh : '%d horoj', + d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo + dd : '%d tagoj', + M : 'monato', + MM : '%d monatoj', + y : 'jaro', + yy : '%d jaroj' + }, + dayOfMonthOrdinalParse: /\d{1,2}a/, + ordinal : '%da', + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. } + }); - dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value)); - mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth); - return mom; - } + return eo; - function getSetMonth (value) { - if (value != null) { - setMonth(this, value); - hooks.updateOffset(this, true); - return this; - } else { - return get(this, 'Month'); - } - } + }))); + + +/***/ }), +/* 370 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Spanish [es] + //! author : Julio Napurí : https://github.com/julionc - function getDaysInMonth () { - return daysInMonth(this.year(), this.month()); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var defaultMonthsShortRegex = matchWord; - function monthsShortRegex (isStrict) { - if (this._monthsParseExact) { - if (!hasOwnProp(this, '_monthsRegex')) { - computeMonthsParse.call(this); - } - if (isStrict) { - return this._monthsShortStrictRegex; - } else { - return this._monthsShortRegex; - } - } else { - if (!hasOwnProp(this, '_monthsShortRegex')) { - this._monthsShortRegex = defaultMonthsShortRegex; - } - return this._monthsShortStrictRegex && isStrict ? - this._monthsShortStrictRegex : this._monthsShortRegex; - } - } - var defaultMonthsRegex = matchWord; - function monthsRegex (isStrict) { - if (this._monthsParseExact) { - if (!hasOwnProp(this, '_monthsRegex')) { - computeMonthsParse.call(this); - } - if (isStrict) { - return this._monthsStrictRegex; + var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'); + var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'); + + var es = moment.defineLocale('es', { + months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), + monthsShort : function (m, format) { + if (!m) { + return monthsShortDot; + } else if (/-MMM-/.test(format)) { + return monthsShort[m.month()]; } else { - return this._monthsRegex; - } - } else { - if (!hasOwnProp(this, '_monthsRegex')) { - this._monthsRegex = defaultMonthsRegex; + return monthsShortDot[m.month()]; } - return this._monthsStrictRegex && isStrict ? - this._monthsStrictRegex : this._monthsRegex; - } - } - - function computeMonthsParse () { - function cmpLenRev(a, b) { - return b.length - a.length; - } - - var shortPieces = [], longPieces = [], mixedPieces = [], - i, mom; - for (i = 0; i < 12; i++) { - // make the regex if we don't have it already - mom = createUTC([2000, i]); - shortPieces.push(this.monthsShort(mom, '')); - longPieces.push(this.months(mom, '')); - mixedPieces.push(this.months(mom, '')); - mixedPieces.push(this.monthsShort(mom, '')); - } - // Sorting makes sure if one month (or abbr) is a prefix of another it - // will match the longer piece. - shortPieces.sort(cmpLenRev); - longPieces.sort(cmpLenRev); - mixedPieces.sort(cmpLenRev); - for (i = 0; i < 12; i++) { - shortPieces[i] = regexEscape(shortPieces[i]); - longPieces[i] = regexEscape(longPieces[i]); - } - for (i = 0; i < 24; i++) { - mixedPieces[i] = regexEscape(mixedPieces[i]); + }, + monthsParseExact : true, + weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), + weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), + weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'H:mm', + LTS : 'H:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D [de] MMMM [de] YYYY', + LLL : 'D [de] MMMM [de] YYYY H:mm', + LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm' + }, + calendar : { + sameDay : function () { + return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; + }, + nextDay : function () { + return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; + }, + nextWeek : function () { + return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; + }, + lastDay : function () { + return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; + }, + lastWeek : function () { + return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; + }, + sameElse : 'L' + }, + relativeTime : { + future : 'en %s', + past : 'hace %s', + s : 'unos segundos', + m : 'un minuto', + mm : '%d minutos', + h : 'una hora', + hh : '%d horas', + d : 'un día', + dd : '%d días', + M : 'un mes', + MM : '%d meses', + y : 'un año', + yy : '%d años' + }, + dayOfMonthOrdinalParse : /\d{1,2}º/, + ordinal : '%dº', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } + }); - this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); - this._monthsShortRegex = this._monthsRegex; - this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i'); - this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i'); - } + return es; - // FORMATTING + }))); + + +/***/ }), +/* 371 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Spanish (Dominican Republic) [es-do] - addFormatToken('Y', 0, 0, function () { - var y = this.year(); - return y <= 9999 ? '' + y : '+' + y; - }); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - addFormatToken(0, ['YY', 2], 0, function () { - return this.year() % 100; - }); - addFormatToken(0, ['YYYY', 4], 0, 'year'); - addFormatToken(0, ['YYYYY', 5], 0, 'year'); - addFormatToken(0, ['YYYYYY', 6, true], 0, 'year'); + var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'); + var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'); - // ALIASES + var esDo = moment.defineLocale('es-do', { + months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), + monthsShort : function (m, format) { + if (!m) { + return monthsShortDot; + } else if (/-MMM-/.test(format)) { + return monthsShort[m.month()]; + } else { + return monthsShortDot[m.month()]; + } + }, + monthsParseExact : true, + weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), + weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), + weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'h:mm A', + LTS : 'h:mm:ss A', + L : 'DD/MM/YYYY', + LL : 'D [de] MMMM [de] YYYY', + LLL : 'D [de] MMMM [de] YYYY h:mm A', + LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A' + }, + calendar : { + sameDay : function () { + return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; + }, + nextDay : function () { + return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; + }, + nextWeek : function () { + return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; + }, + lastDay : function () { + return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; + }, + lastWeek : function () { + return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; + }, + sameElse : 'L' + }, + relativeTime : { + future : 'en %s', + past : 'hace %s', + s : 'unos segundos', + m : 'un minuto', + mm : '%d minutos', + h : 'una hora', + hh : '%d horas', + d : 'un día', + dd : '%d días', + M : 'un mes', + MM : '%d meses', + y : 'un año', + yy : '%d años' + }, + dayOfMonthOrdinalParse : /\d{1,2}º/, + ordinal : '%dº', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + } + }); - addUnitAlias('year', 'y'); + return esDo; - // PRIORITIES + }))); + + +/***/ }), +/* 372 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Estonian [et] + //! author : Henry Kehlmann : https://github.com/madhenry + //! improvements : Illimar Tambek : https://github.com/ragulka - addUnitPriority('year', 1); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // PARSING - addRegexToken('Y', matchSigned); - addRegexToken('YY', match1to2, match2); - addRegexToken('YYYY', match1to4, match4); - addRegexToken('YYYYY', match1to6, match6); - addRegexToken('YYYYYY', match1to6, match6); + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'], + 'm' : ['ühe minuti', 'üks minut'], + 'mm': [number + ' minuti', number + ' minutit'], + 'h' : ['ühe tunni', 'tund aega', 'üks tund'], + 'hh': [number + ' tunni', number + ' tundi'], + 'd' : ['ühe päeva', 'üks päev'], + 'M' : ['kuu aja', 'kuu aega', 'üks kuu'], + 'MM': [number + ' kuu', number + ' kuud'], + 'y' : ['ühe aasta', 'aasta', 'üks aasta'], + 'yy': [number + ' aasta', number + ' aastat'] + }; + if (withoutSuffix) { + return format[key][2] ? format[key][2] : format[key][1]; + } + return isFuture ? format[key][0] : format[key][1]; + } - addParseToken(['YYYYY', 'YYYYYY'], YEAR); - addParseToken('YYYY', function (input, array) { - array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input); - }); - addParseToken('YY', function (input, array) { - array[YEAR] = hooks.parseTwoDigitYear(input); - }); - addParseToken('Y', function (input, array) { - array[YEAR] = parseInt(input, 10); + var et = moment.defineLocale('et', { + months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'), + monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'), + weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'), + weekdaysShort : 'P_E_T_K_N_R_L'.split('_'), + weekdaysMin : 'P_E_T_K_N_R_L'.split('_'), + longDateFormat : { + LT : 'H:mm', + LTS : 'H:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D. MMMM YYYY', + LLL : 'D. MMMM YYYY H:mm', + LLLL : 'dddd, D. MMMM YYYY H:mm' + }, + calendar : { + sameDay : '[Täna,] LT', + nextDay : '[Homme,] LT', + nextWeek : '[Järgmine] dddd LT', + lastDay : '[Eile,] LT', + lastWeek : '[Eelmine] dddd LT', + sameElse : 'L' + }, + relativeTime : { + future : '%s pärast', + past : '%s tagasi', + s : processRelativeTime, + m : processRelativeTime, + mm : processRelativeTime, + h : processRelativeTime, + hh : processRelativeTime, + d : processRelativeTime, + dd : '%d päeva', + M : processRelativeTime, + MM : processRelativeTime, + y : processRelativeTime, + yy : processRelativeTime + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + } }); - // HELPERS - - function daysInYear(year) { - return isLeapYear(year) ? 366 : 365; - } + return et; - function isLeapYear(year) { - return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0; - } + }))); + + +/***/ }), +/* 373 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Basque [eu] + //! author : Eneko Illarramendi : https://github.com/eillarra - // HOOKS + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - hooks.parseTwoDigitYear = function (input) { - return toInt(input) + (toInt(input) > 68 ? 1900 : 2000); - }; - // MOMENTS + var eu = moment.defineLocale('eu', { + months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'), + monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'), + monthsParseExact : true, + weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'), + weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'), + weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'YYYY-MM-DD', + LL : 'YYYY[ko] MMMM[ren] D[a]', + LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm', + LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm', + l : 'YYYY-M-D', + ll : 'YYYY[ko] MMM D[a]', + lll : 'YYYY[ko] MMM D[a] HH:mm', + llll : 'ddd, YYYY[ko] MMM D[a] HH:mm' + }, + calendar : { + sameDay : '[gaur] LT[etan]', + nextDay : '[bihar] LT[etan]', + nextWeek : 'dddd LT[etan]', + lastDay : '[atzo] LT[etan]', + lastWeek : '[aurreko] dddd LT[etan]', + sameElse : 'L' + }, + relativeTime : { + future : '%s barru', + past : 'duela %s', + s : 'segundo batzuk', + m : 'minutu bat', + mm : '%d minutu', + h : 'ordu bat', + hh : '%d ordu', + d : 'egun bat', + dd : '%d egun', + M : 'hilabete bat', + MM : '%d hilabete', + y : 'urte bat', + yy : '%d urte' + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } + }); - var getSetYear = makeGetSet('FullYear', true); + return eu; - function getIsLeapYear () { - return isLeapYear(this.year()); - } + }))); + + +/***/ }), +/* 374 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Persian [fa] + //! author : Ebrahim Byagowi : https://github.com/ebraminio - function createDate (y, m, d, h, M, s, ms) { - // can't just apply() to create a date: - // https://stackoverflow.com/q/181348 - var date = new Date(y, m, d, h, M, s, ms); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // the date constructor remaps years 0-99 to 1900-1999 - if (y < 100 && y >= 0 && isFinite(date.getFullYear())) { - date.setFullYear(y); - } - return date; - } - function createUTCDate (y) { - var date = new Date(Date.UTC.apply(null, arguments)); + var symbolMap = { + '1': '۱', + '2': '۲', + '3': '۳', + '4': '۴', + '5': '۵', + '6': '۶', + '7': '۷', + '8': '۸', + '9': '۹', + '0': '۰' + }; + var numberMap = { + '۱': '1', + '۲': '2', + '۳': '3', + '۴': '4', + '۵': '5', + '۶': '6', + '۷': '7', + '۸': '8', + '۹': '9', + '۰': '0' + }; - // the Date.UTC function remaps years 0-99 to 1900-1999 - if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) { - date.setUTCFullYear(y); + var fa = moment.defineLocale('fa', { + months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), + monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), + weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'), + weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'), + weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd, D MMMM YYYY HH:mm' + }, + meridiemParse: /قبل از ظهر|بعد از ظهر/, + isPM: function (input) { + return /بعد از ظهر/.test(input); + }, + meridiem : function (hour, minute, isLower) { + if (hour < 12) { + return 'قبل از ظهر'; + } else { + return 'بعد از ظهر'; + } + }, + calendar : { + sameDay : '[امروز ساعت] LT', + nextDay : '[فردا ساعت] LT', + nextWeek : 'dddd [ساعت] LT', + lastDay : '[دیروز ساعت] LT', + lastWeek : 'dddd [پیش] [ساعت] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'در %s', + past : '%s پیش', + s : 'چند ثانیه', + m : 'یک دقیقه', + mm : '%d دقیقه', + h : 'یک ساعت', + hh : '%d ساعت', + d : 'یک روز', + dd : '%d روز', + M : 'یک ماه', + MM : '%d ماه', + y : 'یک سال', + yy : '%d سال' + }, + preparse: function (string) { + return string.replace(/[۰-۹]/g, function (match) { + return numberMap[match]; + }).replace(/،/g, ','); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }).replace(/,/g, '،'); + }, + dayOfMonthOrdinalParse: /\d{1,2}م/, + ordinal : '%dم', + week : { + dow : 6, // Saturday is the first day of the week. + doy : 12 // The week that contains Jan 1st is the first week of the year. } - return date; - } + }); - // start-of-first-week - start-of-year - function firstWeekOffset(year, dow, doy) { - var // first-week day -- which january is always in the first week (4 for iso, 1 for other) - fwd = 7 + dow - doy, - // first-week day local weekday -- which local weekday is fwd - fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7; + return fa; - return -fwdlw + fwd - 1; - } + }))); + + +/***/ }), +/* 375 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Finnish [fi] + //! author : Tarmo Aidantausta : https://github.com/bleadof - // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday - function dayOfYearFromWeeks(year, week, weekday, dow, doy) { - var localWeekday = (7 + weekday - dow) % 7, - weekOffset = firstWeekOffset(year, dow, doy), - dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, - resYear, resDayOfYear; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (dayOfYear <= 0) { - resYear = year - 1; - resDayOfYear = daysInYear(resYear) + dayOfYear; - } else if (dayOfYear > daysInYear(year)) { - resYear = year + 1; - resDayOfYear = dayOfYear - daysInYear(year); - } else { - resYear = year; - resDayOfYear = dayOfYear; - } - return { - year: resYear, - dayOfYear: resDayOfYear - }; + var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '); + var numbersFuture = [ + 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden', + numbersPast[7], numbersPast[8], numbersPast[9] + ]; + function translate(number, withoutSuffix, key, isFuture) { + var result = ''; + switch (key) { + case 's': + return isFuture ? 'muutaman sekunnin' : 'muutama sekunti'; + case 'm': + return isFuture ? 'minuutin' : 'minuutti'; + case 'mm': + result = isFuture ? 'minuutin' : 'minuuttia'; + break; + case 'h': + return isFuture ? 'tunnin' : 'tunti'; + case 'hh': + result = isFuture ? 'tunnin' : 'tuntia'; + break; + case 'd': + return isFuture ? 'päivän' : 'päivä'; + case 'dd': + result = isFuture ? 'päivän' : 'päivää'; + break; + case 'M': + return isFuture ? 'kuukauden' : 'kuukausi'; + case 'MM': + result = isFuture ? 'kuukauden' : 'kuukautta'; + break; + case 'y': + return isFuture ? 'vuoden' : 'vuosi'; + case 'yy': + result = isFuture ? 'vuoden' : 'vuotta'; + break; + } + result = verbalNumber(number, isFuture) + ' ' + result; + return result; + } + function verbalNumber(number, isFuture) { + return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number; } - function weekOfYear(mom, dow, doy) { - var weekOffset = firstWeekOffset(mom.year(), dow, doy), - week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, - resWeek, resYear; - - if (week < 1) { - resYear = mom.year() - 1; - resWeek = week + weeksInYear(resYear, dow, doy); - } else if (week > weeksInYear(mom.year(), dow, doy)) { - resWeek = week - weeksInYear(mom.year(), dow, doy); - resYear = mom.year() + 1; - } else { - resYear = mom.year(); - resWeek = week; + var fi = moment.defineLocale('fi', { + months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'), + monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'), + weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'), + weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'), + weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'), + longDateFormat : { + LT : 'HH.mm', + LTS : 'HH.mm.ss', + L : 'DD.MM.YYYY', + LL : 'Do MMMM[ta] YYYY', + LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm', + LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm', + l : 'D.M.YYYY', + ll : 'Do MMM YYYY', + lll : 'Do MMM YYYY, [klo] HH.mm', + llll : 'ddd, Do MMM YYYY, [klo] HH.mm' + }, + calendar : { + sameDay : '[tänään] [klo] LT', + nextDay : '[huomenna] [klo] LT', + nextWeek : 'dddd [klo] LT', + lastDay : '[eilen] [klo] LT', + lastWeek : '[viime] dddd[na] [klo] LT', + sameElse : 'L' + }, + relativeTime : { + future : '%s päästä', + past : '%s sitten', + s : translate, + m : translate, + mm : translate, + h : translate, + hh : translate, + d : translate, + dd : translate, + M : translate, + MM : translate, + y : translate, + yy : translate + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } + }); - return { - week: resWeek, - year: resYear - }; - } - - function weeksInYear(year, dow, doy) { - var weekOffset = firstWeekOffset(year, dow, doy), - weekOffsetNext = firstWeekOffset(year + 1, dow, doy); - return (daysInYear(year) - weekOffset + weekOffsetNext) / 7; - } - - // FORMATTING - - addFormatToken('w', ['ww', 2], 'wo', 'week'); - addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek'); - - // ALIASES - - addUnitAlias('week', 'w'); - addUnitAlias('isoWeek', 'W'); - - // PRIORITIES + return fi; - addUnitPriority('week', 5); - addUnitPriority('isoWeek', 5); + }))); + + +/***/ }), +/* 376 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Faroese [fo] + //! author : Ragnar Johannesen : https://github.com/ragnar123 - // PARSING + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - addRegexToken('w', match1to2); - addRegexToken('ww', match1to2, match2); - addRegexToken('W', match1to2); - addRegexToken('WW', match1to2, match2); - addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) { - week[token.substr(0, 1)] = toInt(input); + var fo = moment.defineLocale('fo', { + months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'), + monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), + weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'), + weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'), + weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd D. MMMM, YYYY HH:mm' + }, + calendar : { + sameDay : '[Í dag kl.] LT', + nextDay : '[Í morgin kl.] LT', + nextWeek : 'dddd [kl.] LT', + lastDay : '[Í gjár kl.] LT', + lastWeek : '[síðstu] dddd [kl] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'um %s', + past : '%s síðani', + s : 'fá sekund', + m : 'ein minutt', + mm : '%d minuttir', + h : 'ein tími', + hh : '%d tímar', + d : 'ein dagur', + dd : '%d dagar', + M : 'ein mánaði', + MM : '%d mánaðir', + y : 'eitt ár', + yy : '%d ár' + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + } }); - // HELPERS - - // LOCALES + return fo; - function localeWeek (mom) { - return weekOfYear(mom, this._week.dow, this._week.doy).week; - } + }))); + + +/***/ }), +/* 377 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : French [fr] + //! author : John Fischer : https://github.com/jfroffice - var defaultLocaleWeek = { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. - }; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function localeFirstDayOfWeek () { - return this._week.dow; - } - function localeFirstDayOfYear () { - return this._week.doy; - } + var fr = moment.defineLocale('fr', { + months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'), + monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), + monthsParseExact : true, + weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), + weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), + weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd D MMMM YYYY HH:mm' + }, + calendar : { + sameDay : '[Aujourd’hui à] LT', + nextDay : '[Demain à] LT', + nextWeek : 'dddd [à] LT', + lastDay : '[Hier à] LT', + lastWeek : 'dddd [dernier à] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'dans %s', + past : 'il y a %s', + s : 'quelques secondes', + m : 'une minute', + mm : '%d minutes', + h : 'une heure', + hh : '%d heures', + d : 'un jour', + dd : '%d jours', + M : 'un mois', + MM : '%d mois', + y : 'un an', + yy : '%d ans' + }, + dayOfMonthOrdinalParse: /\d{1,2}(er|)/, + ordinal : function (number, period) { + switch (period) { + // TODO: Return 'e' when day of month > 1. Move this case inside + // block for masculine words below. + // See https://github.com/moment/moment/issues/3375 + case 'D': + return number + (number === 1 ? 'er' : ''); - // MOMENTS + // Words with masculine grammatical gender: mois, trimestre, jour + default: + case 'M': + case 'Q': + case 'DDD': + case 'd': + return number + (number === 1 ? 'er' : 'e'); - function getSetWeek (input) { - var week = this.localeData().week(this); - return input == null ? week : this.add((input - week) * 7, 'd'); - } + // Words with feminine grammatical gender: semaine + case 'w': + case 'W': + return number + (number === 1 ? 're' : 'e'); + } + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + } + }); - function getSetISOWeek (input) { - var week = weekOfYear(this, 1, 4).week; - return input == null ? week : this.add((input - week) * 7, 'd'); - } + return fr; - // FORMATTING + }))); + + +/***/ }), +/* 378 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : French (Canada) [fr-ca] + //! author : Jonathan Abourbih : https://github.com/jonbca - addFormatToken('d', 0, 'do', 'day'); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - addFormatToken('dd', 0, 0, function (format) { - return this.localeData().weekdaysMin(this, format); - }); - addFormatToken('ddd', 0, 0, function (format) { - return this.localeData().weekdaysShort(this, format); - }); + var frCa = moment.defineLocale('fr-ca', { + months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'), + monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), + monthsParseExact : true, + weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), + weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), + weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'YYYY-MM-DD', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd D MMMM YYYY HH:mm' + }, + calendar : { + sameDay : '[Aujourd’hui à] LT', + nextDay : '[Demain à] LT', + nextWeek : 'dddd [à] LT', + lastDay : '[Hier à] LT', + lastWeek : 'dddd [dernier à] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'dans %s', + past : 'il y a %s', + s : 'quelques secondes', + m : 'une minute', + mm : '%d minutes', + h : 'une heure', + hh : '%d heures', + d : 'un jour', + dd : '%d jours', + M : 'un mois', + MM : '%d mois', + y : 'un an', + yy : '%d ans' + }, + dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, + ordinal : function (number, period) { + switch (period) { + // Words with masculine grammatical gender: mois, trimestre, jour + default: + case 'M': + case 'Q': + case 'D': + case 'DDD': + case 'd': + return number + (number === 1 ? 'er' : 'e'); - addFormatToken('dddd', 0, 0, function (format) { - return this.localeData().weekdays(this, format); + // Words with feminine grammatical gender: semaine + case 'w': + case 'W': + return number + (number === 1 ? 're' : 'e'); + } + } }); - addFormatToken('e', 0, 0, 'weekday'); - addFormatToken('E', 0, 0, 'isoWeekday'); - - // ALIASES + return frCa; - addUnitAlias('day', 'd'); - addUnitAlias('weekday', 'e'); - addUnitAlias('isoWeekday', 'E'); + }))); + + +/***/ }), +/* 379 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : French (Switzerland) [fr-ch] + //! author : Gaspard Bucher : https://github.com/gaspard - // PRIORITY - addUnitPriority('day', 11); - addUnitPriority('weekday', 11); - addUnitPriority('isoWeekday', 11); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // PARSING - addRegexToken('d', match1to2); - addRegexToken('e', match1to2); - addRegexToken('E', match1to2); - addRegexToken('dd', function (isStrict, locale) { - return locale.weekdaysMinRegex(isStrict); - }); - addRegexToken('ddd', function (isStrict, locale) { - return locale.weekdaysShortRegex(isStrict); - }); - addRegexToken('dddd', function (isStrict, locale) { - return locale.weekdaysRegex(isStrict); - }); + var frCh = moment.defineLocale('fr-ch', { + months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'), + monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), + monthsParseExact : true, + weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), + weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), + weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd D MMMM YYYY HH:mm' + }, + calendar : { + sameDay : '[Aujourd’hui à] LT', + nextDay : '[Demain à] LT', + nextWeek : 'dddd [à] LT', + lastDay : '[Hier à] LT', + lastWeek : 'dddd [dernier à] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'dans %s', + past : 'il y a %s', + s : 'quelques secondes', + m : 'une minute', + mm : '%d minutes', + h : 'une heure', + hh : '%d heures', + d : 'un jour', + dd : '%d jours', + M : 'un mois', + MM : '%d mois', + y : 'un an', + yy : '%d ans' + }, + dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, + ordinal : function (number, period) { + switch (period) { + // Words with masculine grammatical gender: mois, trimestre, jour + default: + case 'M': + case 'Q': + case 'D': + case 'DDD': + case 'd': + return number + (number === 1 ? 'er' : 'e'); - addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) { - var weekday = config._locale.weekdaysParse(input, token, config._strict); - // if we didn't get a weekday name, mark the date as invalid - if (weekday != null) { - week.d = weekday; - } else { - getParsingFlags(config).invalidWeekday = input; + // Words with feminine grammatical gender: semaine + case 'w': + case 'W': + return number + (number === 1 ? 're' : 'e'); + } + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } }); - addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) { - week[token] = toInt(input); - }); - - // HELPERS + return frCh; - function parseWeekday(input, locale) { - if (typeof input !== 'string') { - return input; - } + }))); + + +/***/ }), +/* 380 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Frisian [fy] + //! author : Robin van der Vliet : https://github.com/robin0van0der0v - if (!isNaN(input)) { - return parseInt(input, 10); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - input = locale.weekdaysParse(input); - if (typeof input === 'number') { - return input; - } - return null; - } + var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'); + var monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'); - function parseIsoWeekday(input, locale) { - if (typeof input === 'string') { - return locale.weekdaysParse(input) % 7 || 7; + var fy = moment.defineLocale('fy', { + months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'), + monthsShort : function (m, format) { + if (!m) { + return monthsShortWithDots; + } else if (/-MMM-/.test(format)) { + return monthsShortWithoutDots[m.month()]; + } else { + return monthsShortWithDots[m.month()]; + } + }, + monthsParseExact : true, + weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'), + weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'), + weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD-MM-YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd D MMMM YYYY HH:mm' + }, + calendar : { + sameDay: '[hjoed om] LT', + nextDay: '[moarn om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[juster om] LT', + lastWeek: '[ôfrûne] dddd [om] LT', + sameElse: 'L' + }, + relativeTime : { + future : 'oer %s', + past : '%s lyn', + s : 'in pear sekonden', + m : 'ien minút', + mm : '%d minuten', + h : 'ien oere', + hh : '%d oeren', + d : 'ien dei', + dd : '%d dagen', + M : 'ien moanne', + MM : '%d moannen', + y : 'ien jier', + yy : '%d jierren' + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal : function (number) { + return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } - return isNaN(input) ? null : input; - } + }); - // LOCALES + return fy; - var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'); - function localeWeekdays (m, format) { - if (!m) { - return isArray(this._weekdays) ? this._weekdays : - this._weekdays['standalone']; - } - return isArray(this._weekdays) ? this._weekdays[m.day()] : - this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()]; - } + }))); + + +/***/ }), +/* 381 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Scottish Gaelic [gd] + //! author : Jon Ashdown : https://github.com/jonashdown - var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'); - function localeWeekdaysShort (m) { - return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'); - function localeWeekdaysMin (m) { - return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin; - } - function handleStrictParse$1(weekdayName, format, strict) { - var i, ii, mom, llc = weekdayName.toLocaleLowerCase(); - if (!this._weekdaysParse) { - this._weekdaysParse = []; - this._shortWeekdaysParse = []; - this._minWeekdaysParse = []; + var months = [ + 'Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd' + ]; - for (i = 0; i < 7; ++i) { - mom = createUTC([2000, 1]).day(i); - this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase(); - this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase(); - this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase(); - } - } + var monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh']; - if (strict) { - if (format === 'dddd') { - ii = indexOf$1.call(this._weekdaysParse, llc); - return ii !== -1 ? ii : null; - } else if (format === 'ddd') { - ii = indexOf$1.call(this._shortWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf$1.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } - } else { - if (format === 'dddd') { - ii = indexOf$1.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf$1.call(this._shortWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf$1.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else if (format === 'ddd') { - ii = indexOf$1.call(this._shortWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf$1.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf$1.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf$1.call(this._minWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf$1.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf$1.call(this._shortWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } - } - } + var weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne']; - function localeWeekdaysParse (weekdayName, format, strict) { - var i, mom, regex; + var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis']; - if (this._weekdaysParseExact) { - return handleStrictParse$1.call(this, weekdayName, format, strict); - } + var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa']; - if (!this._weekdaysParse) { - this._weekdaysParse = []; - this._minWeekdaysParse = []; - this._shortWeekdaysParse = []; - this._fullWeekdaysParse = []; + var gd = moment.defineLocale('gd', { + months : months, + monthsShort : monthsShort, + monthsParseExact : true, + weekdays : weekdays, + weekdaysShort : weekdaysShort, + weekdaysMin : weekdaysMin, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd, D MMMM YYYY HH:mm' + }, + calendar : { + sameDay : '[An-diugh aig] LT', + nextDay : '[A-màireach aig] LT', + nextWeek : 'dddd [aig] LT', + lastDay : '[An-dè aig] LT', + lastWeek : 'dddd [seo chaidh] [aig] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'ann an %s', + past : 'bho chionn %s', + s : 'beagan diogan', + m : 'mionaid', + mm : '%d mionaidean', + h : 'uair', + hh : '%d uairean', + d : 'latha', + dd : '%d latha', + M : 'mìos', + MM : '%d mìosan', + y : 'bliadhna', + yy : '%d bliadhna' + }, + dayOfMonthOrdinalParse : /\d{1,2}(d|na|mh)/, + ordinal : function (number) { + var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh'; + return number + output; + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } + }); - for (i = 0; i < 7; i++) { - // make the regex if we don't have it already + return gd; - mom = createUTC([2000, 1]).day(i); - if (strict && !this._fullWeekdaysParse[i]) { - this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\.?') + '$', 'i'); - this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\.?') + '$', 'i'); - this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\.?') + '$', 'i'); - } - if (!this._weekdaysParse[i]) { - regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, ''); - this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i'); - } - // test the regex - if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) { - return i; - } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) { - return i; - } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) { - return i; - } else if (!strict && this._weekdaysParse[i].test(weekdayName)) { - return i; - } - } - } + }))); + + +/***/ }), +/* 382 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Galician [gl] + //! author : Juan G. Hurtado : https://github.com/juanghurtado - // MOMENTS + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function getSetDayOfWeek (input) { - if (!this.isValid()) { - return input != null ? this : NaN; - } - var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); - if (input != null) { - input = parseWeekday(input, this.localeData()); - return this.add(input - day, 'd'); - } else { - return day; - } - } - function getSetLocaleDayOfWeek (input) { - if (!this.isValid()) { - return input != null ? this : NaN; + var gl = moment.defineLocale('gl', { + months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'), + monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'), + monthsParseExact: true, + weekdays : 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'), + weekdaysShort : 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'), + weekdaysMin : 'do_lu_ma_mé_xo_ve_sá'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'H:mm', + LTS : 'H:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D [de] MMMM [de] YYYY', + LLL : 'D [de] MMMM [de] YYYY H:mm', + LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm' + }, + calendar : { + sameDay : function () { + return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; + }, + nextDay : function () { + return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; + }, + nextWeek : function () { + return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; + }, + lastDay : function () { + return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT'; + }, + lastWeek : function () { + return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; + }, + sameElse : 'L' + }, + relativeTime : { + future : function (str) { + if (str.indexOf('un') === 0) { + return 'n' + str; + } + return 'en ' + str; + }, + past : 'hai %s', + s : 'uns segundos', + m : 'un minuto', + mm : '%d minutos', + h : 'unha hora', + hh : '%d horas', + d : 'un día', + dd : '%d días', + M : 'un mes', + MM : '%d meses', + y : 'un ano', + yy : '%d anos' + }, + dayOfMonthOrdinalParse : /\d{1,2}º/, + ordinal : '%dº', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } - var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; - return input == null ? weekday : this.add(input - weekday, 'd'); - } + }); - function getSetISODayOfWeek (input) { - if (!this.isValid()) { - return input != null ? this : NaN; - } + return gl; - // behaves the same as moment#day except - // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6) - // as a setter, sunday should belong to the previous week. + }))); + + +/***/ }), +/* 383 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Konkani Latin script [gom-latn] + //! author : The Discoverer : https://github.com/WikiDiscoverer - if (input != null) { - var weekday = parseIsoWeekday(input, this.localeData()); - return this.day(this.day() % 7 ? weekday : weekday - 7); - } else { - return this.day() || 7; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + + + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + 's': ['thodde secondanim', 'thodde second'], + 'm': ['eka mintan', 'ek minute'], + 'mm': [number + ' mintanim', number + ' mintam'], + 'h': ['eka horan', 'ek hor'], + 'hh': [number + ' horanim', number + ' hor'], + 'd': ['eka disan', 'ek dis'], + 'dd': [number + ' disanim', number + ' dis'], + 'M': ['eka mhoinean', 'ek mhoino'], + 'MM': [number + ' mhoineanim', number + ' mhoine'], + 'y': ['eka vorsan', 'ek voros'], + 'yy': [number + ' vorsanim', number + ' vorsam'] + }; + return withoutSuffix ? format[key][0] : format[key][1]; } - var defaultWeekdaysRegex = matchWord; - function weekdaysRegex (isStrict) { - if (this._weekdaysParseExact) { - if (!hasOwnProp(this, '_weekdaysRegex')) { - computeWeekdaysParse.call(this); - } - if (isStrict) { - return this._weekdaysStrictRegex; - } else { - return this._weekdaysRegex; + var gomLatn = moment.defineLocale('gom-latn', { + months : 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'), + monthsShort : 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'), + monthsParseExact : true, + weekdays : 'Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son\'var'.split('_'), + weekdaysShort : 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'), + weekdaysMin : 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'A h:mm [vazta]', + LTS : 'A h:mm:ss [vazta]', + L : 'DD-MM-YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY A h:mm [vazta]', + LLLL : 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]', + llll: 'ddd, D MMM YYYY, A h:mm [vazta]' + }, + calendar : { + sameDay: '[Aiz] LT', + nextDay: '[Faleam] LT', + nextWeek: '[Ieta to] dddd[,] LT', + lastDay: '[Kal] LT', + lastWeek: '[Fatlo] dddd[,] LT', + sameElse: 'L' + }, + relativeTime : { + future : '%s', + past : '%s adim', + s : processRelativeTime, + m : processRelativeTime, + mm : processRelativeTime, + h : processRelativeTime, + hh : processRelativeTime, + d : processRelativeTime, + dd : processRelativeTime, + M : processRelativeTime, + MM : processRelativeTime, + y : processRelativeTime, + yy : processRelativeTime + }, + dayOfMonthOrdinalParse : /\d{1,2}(er)/, + ordinal : function (number, period) { + switch (period) { + // the ordinal 'er' only applies to day of the month + case 'D': + return number + 'er'; + default: + case 'M': + case 'Q': + case 'DDD': + case 'd': + case 'w': + case 'W': + return number; } - } else { - if (!hasOwnProp(this, '_weekdaysRegex')) { - this._weekdaysRegex = defaultWeekdaysRegex; + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + }, + meridiemParse: /rati|sokalli|donparam|sanje/, + meridiemHour : function (hour, meridiem) { + if (hour === 12) { + hour = 0; } - return this._weekdaysStrictRegex && isStrict ? - this._weekdaysStrictRegex : this._weekdaysRegex; - } - } - - var defaultWeekdaysShortRegex = matchWord; - function weekdaysShortRegex (isStrict) { - if (this._weekdaysParseExact) { - if (!hasOwnProp(this, '_weekdaysRegex')) { - computeWeekdaysParse.call(this); + if (meridiem === 'rati') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'sokalli') { + return hour; + } else if (meridiem === 'donparam') { + return hour > 12 ? hour : hour + 12; + } else if (meridiem === 'sanje') { + return hour + 12; } - if (isStrict) { - return this._weekdaysShortStrictRegex; + }, + meridiem : function (hour, minute, isLower) { + if (hour < 4) { + return 'rati'; + } else if (hour < 12) { + return 'sokalli'; + } else if (hour < 16) { + return 'donparam'; + } else if (hour < 20) { + return 'sanje'; } else { - return this._weekdaysShortRegex; - } - } else { - if (!hasOwnProp(this, '_weekdaysShortRegex')) { - this._weekdaysShortRegex = defaultWeekdaysShortRegex; + return 'rati'; } - return this._weekdaysShortStrictRegex && isStrict ? - this._weekdaysShortStrictRegex : this._weekdaysShortRegex; } - } + }); - var defaultWeekdaysMinRegex = matchWord; - function weekdaysMinRegex (isStrict) { - if (this._weekdaysParseExact) { - if (!hasOwnProp(this, '_weekdaysRegex')) { - computeWeekdaysParse.call(this); + return gomLatn; + + }))); + + +/***/ }), +/* 384 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Hebrew [he] + //! author : Tomer Cohen : https://github.com/tomer + //! author : Moshe Simantov : https://github.com/DevelopmentIL + //! author : Tal Ater : https://github.com/TalAter + + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + + + var he = moment.defineLocale('he', { + months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'), + monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'), + weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'), + weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'), + weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D [ב]MMMM YYYY', + LLL : 'D [ב]MMMM YYYY HH:mm', + LLLL : 'dddd, D [ב]MMMM YYYY HH:mm', + l : 'D/M/YYYY', + ll : 'D MMM YYYY', + lll : 'D MMM YYYY HH:mm', + llll : 'ddd, D MMM YYYY HH:mm' + }, + calendar : { + sameDay : '[היום ב־]LT', + nextDay : '[מחר ב־]LT', + nextWeek : 'dddd [בשעה] LT', + lastDay : '[אתמול ב־]LT', + lastWeek : '[ביום] dddd [האחרון בשעה] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'בעוד %s', + past : 'לפני %s', + s : 'מספר שניות', + m : 'דקה', + mm : '%d דקות', + h : 'שעה', + hh : function (number) { + if (number === 2) { + return 'שעתיים'; + } + return number + ' שעות'; + }, + d : 'יום', + dd : function (number) { + if (number === 2) { + return 'יומיים'; + } + return number + ' ימים'; + }, + M : 'חודש', + MM : function (number) { + if (number === 2) { + return 'חודשיים'; + } + return number + ' חודשים'; + }, + y : 'שנה', + yy : function (number) { + if (number === 2) { + return 'שנתיים'; + } else if (number % 10 === 0 && number !== 10) { + return number + ' שנה'; + } + return number + ' שנים'; } - if (isStrict) { - return this._weekdaysMinStrictRegex; + }, + meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i, + isPM : function (input) { + return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input); + }, + meridiem : function (hour, minute, isLower) { + if (hour < 5) { + return 'לפנות בוקר'; + } else if (hour < 10) { + return 'בבוקר'; + } else if (hour < 12) { + return isLower ? 'לפנה"צ' : 'לפני הצהריים'; + } else if (hour < 18) { + return isLower ? 'אחה"צ' : 'אחרי הצהריים'; } else { - return this._weekdaysMinRegex; - } - } else { - if (!hasOwnProp(this, '_weekdaysMinRegex')) { - this._weekdaysMinRegex = defaultWeekdaysMinRegex; + return 'בערב'; } - return this._weekdaysMinStrictRegex && isStrict ? - this._weekdaysMinStrictRegex : this._weekdaysMinRegex; - } - } - - - function computeWeekdaysParse () { - function cmpLenRev(a, b) { - return b.length - a.length; - } - - var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [], - i, mom, minp, shortp, longp; - for (i = 0; i < 7; i++) { - // make the regex if we don't have it already - mom = createUTC([2000, 1]).day(i); - minp = this.weekdaysMin(mom, ''); - shortp = this.weekdaysShort(mom, ''); - longp = this.weekdays(mom, ''); - minPieces.push(minp); - shortPieces.push(shortp); - longPieces.push(longp); - mixedPieces.push(minp); - mixedPieces.push(shortp); - mixedPieces.push(longp); - } - // Sorting makes sure if one weekday (or abbr) is a prefix of another it - // will match the longer piece. - minPieces.sort(cmpLenRev); - shortPieces.sort(cmpLenRev); - longPieces.sort(cmpLenRev); - mixedPieces.sort(cmpLenRev); - for (i = 0; i < 7; i++) { - shortPieces[i] = regexEscape(shortPieces[i]); - longPieces[i] = regexEscape(longPieces[i]); - mixedPieces[i] = regexEscape(mixedPieces[i]); } + }); - this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); - this._weekdaysShortRegex = this._weekdaysRegex; - this._weekdaysMinRegex = this._weekdaysRegex; - - this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i'); - this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i'); - this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i'); - } - - // FORMATTING - - function hFormat() { - return this.hours() % 12 || 12; - } - - function kFormat() { - return this.hours() || 24; - } + return he; - addFormatToken('H', ['HH', 2], 0, 'hour'); - addFormatToken('h', ['hh', 2], 0, hFormat); - addFormatToken('k', ['kk', 2], 0, kFormat); + }))); + + +/***/ }), +/* 385 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Hindi [hi] + //! author : Mayank Singhal : https://github.com/mayanksinghal - addFormatToken('hmm', 0, 0, function () { - return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2); - }); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - addFormatToken('hmmss', 0, 0, function () { - return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) + - zeroFill(this.seconds(), 2); - }); - addFormatToken('Hmm', 0, 0, function () { - return '' + this.hours() + zeroFill(this.minutes(), 2); - }); + var symbolMap = { + '1': '१', + '2': '२', + '3': '३', + '4': '४', + '5': '५', + '6': '६', + '7': '७', + '8': '८', + '9': '९', + '0': '०' + }; + var numberMap = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0' + }; - addFormatToken('Hmmss', 0, 0, function () { - return '' + this.hours() + zeroFill(this.minutes(), 2) + - zeroFill(this.seconds(), 2); + var hi = moment.defineLocale('hi', { + months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'), + monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'), + monthsParseExact: true, + weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), + weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'), + weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'), + longDateFormat : { + LT : 'A h:mm बजे', + LTS : 'A h:mm:ss बजे', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY, A h:mm बजे', + LLLL : 'dddd, D MMMM YYYY, A h:mm बजे' + }, + calendar : { + sameDay : '[आज] LT', + nextDay : '[कल] LT', + nextWeek : 'dddd, LT', + lastDay : '[कल] LT', + lastWeek : '[पिछले] dddd, LT', + sameElse : 'L' + }, + relativeTime : { + future : '%s में', + past : '%s पहले', + s : 'कुछ ही क्षण', + m : 'एक मिनट', + mm : '%d मिनट', + h : 'एक घंटा', + hh : '%d घंटे', + d : 'एक दिन', + dd : '%d दिन', + M : 'एक महीने', + MM : '%d महीने', + y : 'एक वर्ष', + yy : '%d वर्ष' + }, + preparse: function (string) { + return string.replace(/[१२३४५६७८९०]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + // Hindi notation for meridiems are quite fuzzy in practice. While there exists + // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi. + meridiemParse: /रात|सुबह|दोपहर|शाम/, + meridiemHour : function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'रात') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'सुबह') { + return hour; + } else if (meridiem === 'दोपहर') { + return hour >= 10 ? hour : hour + 12; + } else if (meridiem === 'शाम') { + return hour + 12; + } + }, + meridiem : function (hour, minute, isLower) { + if (hour < 4) { + return 'रात'; + } else if (hour < 10) { + return 'सुबह'; + } else if (hour < 17) { + return 'दोपहर'; + } else if (hour < 20) { + return 'शाम'; + } else { + return 'रात'; + } + }, + week : { + dow : 0, // Sunday is the first day of the week. + doy : 6 // The week that contains Jan 1st is the first week of the year. + } }); - function meridiem (token, lowercase) { - addFormatToken(token, 0, 0, function () { - return this.localeData().meridiem(this.hours(), this.minutes(), lowercase); - }); - } - - meridiem('a', true); - meridiem('A', false); - - // ALIASES + return hi; - addUnitAlias('hour', 'h'); + }))); + + +/***/ }), +/* 386 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Croatian [hr] + //! author : Bojan Marković : https://github.com/bmarkovic - // PRIORITY - addUnitPriority('hour', 13); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // PARSING - function matchMeridiem (isStrict, locale) { - return locale._meridiemParse; + function translate(number, withoutSuffix, key) { + var result = number + ' '; + switch (key) { + case 'm': + return withoutSuffix ? 'jedna minuta' : 'jedne minute'; + case 'mm': + if (number === 1) { + result += 'minuta'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'minute'; + } else { + result += 'minuta'; + } + return result; + case 'h': + return withoutSuffix ? 'jedan sat' : 'jednog sata'; + case 'hh': + if (number === 1) { + result += 'sat'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'sata'; + } else { + result += 'sati'; + } + return result; + case 'dd': + if (number === 1) { + result += 'dan'; + } else { + result += 'dana'; + } + return result; + case 'MM': + if (number === 1) { + result += 'mjesec'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'mjeseca'; + } else { + result += 'mjeseci'; + } + return result; + case 'yy': + if (number === 1) { + result += 'godina'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'godine'; + } else { + result += 'godina'; + } + return result; + } } - addRegexToken('a', matchMeridiem); - addRegexToken('A', matchMeridiem); - addRegexToken('H', match1to2); - addRegexToken('h', match1to2); - addRegexToken('k', match1to2); - addRegexToken('HH', match1to2, match2); - addRegexToken('hh', match1to2, match2); - addRegexToken('kk', match1to2, match2); + var hr = moment.defineLocale('hr', { + months : { + format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'), + standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_') + }, + monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'), + monthsParseExact: true, + weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'), + weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), + weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'H:mm', + LTS : 'H:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D. MMMM YYYY', + LLL : 'D. MMMM YYYY H:mm', + LLLL : 'dddd, D. MMMM YYYY H:mm' + }, + calendar : { + sameDay : '[danas u] LT', + nextDay : '[sutra u] LT', + nextWeek : function () { + switch (this.day()) { + case 0: + return '[u] [nedjelju] [u] LT'; + case 3: + return '[u] [srijedu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; + } + }, + lastDay : '[jučer u] LT', + lastWeek : function () { + switch (this.day()) { + case 0: + case 3: + return '[prošlu] dddd [u] LT'; + case 6: + return '[prošle] [subote] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[prošli] dddd [u] LT'; + } + }, + sameElse : 'L' + }, + relativeTime : { + future : 'za %s', + past : 'prije %s', + s : 'par sekundi', + m : translate, + mm : translate, + h : translate, + hh : translate, + d : 'dan', + dd : translate, + M : 'mjesec', + MM : translate, + y : 'godinu', + yy : translate + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } + }); - addRegexToken('hmm', match3to4); - addRegexToken('hmmss', match5to6); - addRegexToken('Hmm', match3to4); - addRegexToken('Hmmss', match5to6); + return hr; - addParseToken(['H', 'HH'], HOUR); - addParseToken(['k', 'kk'], function (input, array, config) { - var kInput = toInt(input); - array[HOUR] = kInput === 24 ? 0 : kInput; - }); - addParseToken(['a', 'A'], function (input, array, config) { - config._isPm = config._locale.isPM(input); - config._meridiem = input; - }); - addParseToken(['h', 'hh'], function (input, array, config) { - array[HOUR] = toInt(input); - getParsingFlags(config).bigHour = true; - }); - addParseToken('hmm', function (input, array, config) { - var pos = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos)); - array[MINUTE] = toInt(input.substr(pos)); - getParsingFlags(config).bigHour = true; - }); - addParseToken('hmmss', function (input, array, config) { - var pos1 = input.length - 4; - var pos2 = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos1)); - array[MINUTE] = toInt(input.substr(pos1, 2)); - array[SECOND] = toInt(input.substr(pos2)); - getParsingFlags(config).bigHour = true; - }); - addParseToken('Hmm', function (input, array, config) { - var pos = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos)); - array[MINUTE] = toInt(input.substr(pos)); - }); - addParseToken('Hmmss', function (input, array, config) { - var pos1 = input.length - 4; - var pos2 = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos1)); - array[MINUTE] = toInt(input.substr(pos1, 2)); - array[SECOND] = toInt(input.substr(pos2)); - }); + }))); + + +/***/ }), +/* 387 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Hungarian [hu] + //! author : Adam Brunner : https://github.com/adambrunner - // LOCALES + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function localeIsPM (input) { - // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays - // Using charAt should be more compatible. - return ((input + '').toLowerCase().charAt(0) === 'p'); - } - var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i; - function localeMeridiem (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'pm' : 'PM'; - } else { - return isLower ? 'am' : 'AM'; + var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' '); + function translate(number, withoutSuffix, key, isFuture) { + var num = number, + suffix; + switch (key) { + case 's': + return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce'; + case 'm': + return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce'); + case 'mm': + return num + (isFuture || withoutSuffix ? ' perc' : ' perce'); + case 'h': + return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája'); + case 'hh': + return num + (isFuture || withoutSuffix ? ' óra' : ' órája'); + case 'd': + return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja'); + case 'dd': + return num + (isFuture || withoutSuffix ? ' nap' : ' napja'); + case 'M': + return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); + case 'MM': + return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); + case 'y': + return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve'); + case 'yy': + return num + (isFuture || withoutSuffix ? ' év' : ' éve'); } + return ''; } - - - // MOMENTS - - // Setting the hour should keep the time, because the user explicitly - // specified which hour he wants. So trying to maintain the same hour (in - // a new timezone) makes sense. Adding/subtracting hours does not follow - // this rule. - var getSetHour = makeGetSet('Hours', true); - - // months - // week - // weekdays - // meridiem - var baseConfig = { - calendar: defaultCalendar, - longDateFormat: defaultLongDateFormat, - invalidDate: defaultInvalidDate, - ordinal: defaultOrdinal, - dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse, - relativeTime: defaultRelativeTime, - - months: defaultLocaleMonths, - monthsShort: defaultLocaleMonthsShort, - - week: defaultLocaleWeek, - - weekdays: defaultLocaleWeekdays, - weekdaysMin: defaultLocaleWeekdaysMin, - weekdaysShort: defaultLocaleWeekdaysShort, - - meridiemParse: defaultLocaleMeridiemParse - }; - - // internal storage for locale config files - var locales = {}; - var localeFamilies = {}; - var globalLocale; - - function normalizeLocale(key) { - return key ? key.toLowerCase().replace('_', '-') : key; + function week(isFuture) { + return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]'; } - // pick the locale from the array - // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each - // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root - function chooseLocale(names) { - var i = 0, j, next, locale, split; - - while (i < names.length) { - split = normalizeLocale(names[i]).split('-'); - j = split.length; - next = normalizeLocale(names[i + 1]); - next = next ? next.split('-') : null; - while (j > 0) { - locale = loadLocale(split.slice(0, j).join('-')); - if (locale) { - return locale; - } - if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) { - //the next array item is better than a shallower substring of this one - break; - } - j--; + var hu = moment.defineLocale('hu', { + months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'), + monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'), + weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'), + weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), + weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'), + longDateFormat : { + LT : 'H:mm', + LTS : 'H:mm:ss', + L : 'YYYY.MM.DD.', + LL : 'YYYY. MMMM D.', + LLL : 'YYYY. MMMM D. H:mm', + LLLL : 'YYYY. MMMM D., dddd H:mm' + }, + meridiemParse: /de|du/i, + isPM: function (input) { + return input.charAt(1).toLowerCase() === 'u'; + }, + meridiem : function (hours, minutes, isLower) { + if (hours < 12) { + return isLower === true ? 'de' : 'DE'; + } else { + return isLower === true ? 'du' : 'DU'; } - i++; + }, + calendar : { + sameDay : '[ma] LT[-kor]', + nextDay : '[holnap] LT[-kor]', + nextWeek : function () { + return week.call(this, true); + }, + lastDay : '[tegnap] LT[-kor]', + lastWeek : function () { + return week.call(this, false); + }, + sameElse : 'L' + }, + relativeTime : { + future : '%s múlva', + past : '%s', + s : translate, + m : translate, + mm : translate, + h : translate, + hh : translate, + d : translate, + dd : translate, + M : translate, + MM : translate, + y : translate, + yy : translate + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } - return null; - } + }); - function loadLocale(name) { - var oldLocale = null; - // TODO: Find a better way to register and load all the locales in Node - if (!locales[name] && (typeof module !== 'undefined') && - module && module.exports) { - try { - oldLocale = globalLocale._abbr; - __webpack_require__(405)("./" + name); - // because defineLocale currently also sets the global locale, we - // want to undo that for lazy loaded locales - getSetGlobalLocale(oldLocale); - } catch (e) { } - } - return locales[name]; - } + return hu; - // This function will load locale and then set the global locale. If - // no arguments are passed in, it will simply return the current global - // locale key. - function getSetGlobalLocale (key, values) { - var data; - if (key) { - if (isUndefined(values)) { - data = getLocale(key); - } - else { - data = defineLocale(key, values); - } + }))); + + +/***/ }), +/* 388 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Armenian [hy-am] + //! author : Armendarabyan : https://github.com/armendarabyan - if (data) { - // moment.duration._locale = moment._locale = data; - globalLocale = data; - } - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return globalLocale._abbr; - } - function defineLocale (name, config) { - if (config !== null) { - var parentConfig = baseConfig; - config.abbr = name; - if (locales[name] != null) { - deprecateSimple('defineLocaleOverride', - 'use moment.updateLocale(localeName, config) to change ' + - 'an existing locale. moment.defineLocale(localeName, ' + - 'config) should only be used for creating a new locale ' + - 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'); - parentConfig = locales[name]._config; - } else if (config.parentLocale != null) { - if (locales[config.parentLocale] != null) { - parentConfig = locales[config.parentLocale]._config; - } else { - if (!localeFamilies[config.parentLocale]) { - localeFamilies[config.parentLocale] = []; + var hyAm = moment.defineLocale('hy-am', { + months : { + format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'), + standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_') + }, + monthsShort : 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'), + weekdays : 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'), + weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), + weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D MMMM YYYY թ.', + LLL : 'D MMMM YYYY թ., HH:mm', + LLLL : 'dddd, D MMMM YYYY թ., HH:mm' + }, + calendar : { + sameDay: '[այսօր] LT', + nextDay: '[վաղը] LT', + lastDay: '[երեկ] LT', + nextWeek: function () { + return 'dddd [օրը ժամը] LT'; + }, + lastWeek: function () { + return '[անցած] dddd [օրը ժամը] LT'; + }, + sameElse: 'L' + }, + relativeTime : { + future : '%s հետո', + past : '%s առաջ', + s : 'մի քանի վայրկյան', + m : 'րոպե', + mm : '%d րոպե', + h : 'ժամ', + hh : '%d ժամ', + d : 'օր', + dd : '%d օր', + M : 'ամիս', + MM : '%d ամիս', + y : 'տարի', + yy : '%d տարի' + }, + meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/, + isPM: function (input) { + return /^(ցերեկվա|երեկոյան)$/.test(input); + }, + meridiem : function (hour) { + if (hour < 4) { + return 'գիշերվա'; + } else if (hour < 12) { + return 'առավոտվա'; + } else if (hour < 17) { + return 'ցերեկվա'; + } else { + return 'երեկոյան'; + } + }, + dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/, + ordinal: function (number, period) { + switch (period) { + case 'DDD': + case 'w': + case 'W': + case 'DDDo': + if (number === 1) { + return number + '-ին'; } - localeFamilies[config.parentLocale].push({ - name: name, - config: config - }); - return null; - } + return number + '-րդ'; + default: + return number; } - locales[name] = new Locale(mergeConfigs(parentConfig, config)); + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } + }); - if (localeFamilies[name]) { - localeFamilies[name].forEach(function (x) { - defineLocale(x.name, x.config); - }); - } + return hyAm; - // backwards compat for now: also set the locale - // make sure we set the locale AFTER all child locales have been - // created, so we won't end up with the child locale set. - getSetGlobalLocale(name); + }))); + + +/***/ }), +/* 389 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Indonesian [id] + //! author : Mohammad Satrio Utomo : https://github.com/tyok + //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return locales[name]; - } else { - // useful for testing - delete locales[name]; - return null; - } - } - function updateLocale(name, config) { - if (config != null) { - var locale, parentConfig = baseConfig; - // MERGE - if (locales[name] != null) { - parentConfig = locales[name]._config; + var id = moment.defineLocale('id', { + months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'), + monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'), + weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), + weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), + weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), + longDateFormat : { + LT : 'HH.mm', + LTS : 'HH.mm.ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY [pukul] HH.mm', + LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' + }, + meridiemParse: /pagi|siang|sore|malam/, + meridiemHour : function (hour, meridiem) { + if (hour === 12) { + hour = 0; } - config = mergeConfigs(parentConfig, config); - locale = new Locale(config); - locale.parentLocale = locales[name]; - locales[name] = locale; - - // backwards compat for now: also set the locale - getSetGlobalLocale(name); - } else { - // pass null for config to unupdate, useful for tests - if (locales[name] != null) { - if (locales[name].parentLocale != null) { - locales[name] = locales[name].parentLocale; - } else if (locales[name] != null) { - delete locales[name]; - } + if (meridiem === 'pagi') { + return hour; + } else if (meridiem === 'siang') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === 'sore' || meridiem === 'malam') { + return hour + 12; + } + }, + meridiem : function (hours, minutes, isLower) { + if (hours < 11) { + return 'pagi'; + } else if (hours < 15) { + return 'siang'; + } else if (hours < 19) { + return 'sore'; + } else { + return 'malam'; } + }, + calendar : { + sameDay : '[Hari ini pukul] LT', + nextDay : '[Besok pukul] LT', + nextWeek : 'dddd [pukul] LT', + lastDay : '[Kemarin pukul] LT', + lastWeek : 'dddd [lalu pukul] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'dalam %s', + past : '%s yang lalu', + s : 'beberapa detik', + m : 'semenit', + mm : '%d menit', + h : 'sejam', + hh : '%d jam', + d : 'sehari', + dd : '%d hari', + M : 'sebulan', + MM : '%d bulan', + y : 'setahun', + yy : '%d tahun' + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. } - return locales[name]; - } + }); - // returns locale data - function getLocale (key) { - var locale; + return id; - if (key && key._locale && key._locale._abbr) { - key = key._locale._abbr; - } + }))); + + +/***/ }), +/* 390 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Icelandic [is] + //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik - if (!key) { - return globalLocale; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (!isArray(key)) { - //short-circuit everything else - locale = loadLocale(key); - if (locale) { - return locale; - } - key = [key]; - } - return chooseLocale(key); + function plural(n) { + if (n % 100 === 11) { + return true; + } else if (n % 10 === 1) { + return false; + } + return true; } - - function listLocales() { - return keys$1(locales); + function translate(number, withoutSuffix, key, isFuture) { + var result = number + ' '; + switch (key) { + case 's': + return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum'; + case 'm': + return withoutSuffix ? 'mínúta' : 'mínútu'; + case 'mm': + if (plural(number)) { + return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum'); + } else if (withoutSuffix) { + return result + 'mínúta'; + } + return result + 'mínútu'; + case 'hh': + if (plural(number)) { + return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum'); + } + return result + 'klukkustund'; + case 'd': + if (withoutSuffix) { + return 'dagur'; + } + return isFuture ? 'dag' : 'degi'; + case 'dd': + if (plural(number)) { + if (withoutSuffix) { + return result + 'dagar'; + } + return result + (isFuture ? 'daga' : 'dögum'); + } else if (withoutSuffix) { + return result + 'dagur'; + } + return result + (isFuture ? 'dag' : 'degi'); + case 'M': + if (withoutSuffix) { + return 'mánuður'; + } + return isFuture ? 'mánuð' : 'mánuði'; + case 'MM': + if (plural(number)) { + if (withoutSuffix) { + return result + 'mánuðir'; + } + return result + (isFuture ? 'mánuði' : 'mánuðum'); + } else if (withoutSuffix) { + return result + 'mánuður'; + } + return result + (isFuture ? 'mánuð' : 'mánuði'); + case 'y': + return withoutSuffix || isFuture ? 'ár' : 'ári'; + case 'yy': + if (plural(number)) { + return result + (withoutSuffix || isFuture ? 'ár' : 'árum'); + } + return result + (withoutSuffix || isFuture ? 'ár' : 'ári'); + } } - function checkOverflow (m) { - var overflow; - var a = m._a; - - if (a && getParsingFlags(m).overflow === -2) { - overflow = - a[MONTH] < 0 || a[MONTH] > 11 ? MONTH : - a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE : - a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR : - a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE : - a[SECOND] < 0 || a[SECOND] > 59 ? SECOND : - a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND : - -1; - - if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) { - overflow = DATE; - } - if (getParsingFlags(m)._overflowWeeks && overflow === -1) { - overflow = WEEK; - } - if (getParsingFlags(m)._overflowWeekday && overflow === -1) { - overflow = WEEKDAY; - } - - getParsingFlags(m).overflow = overflow; + var is = moment.defineLocale('is', { + months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'), + monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'), + weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'), + weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'), + weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'), + longDateFormat : { + LT : 'H:mm', + LTS : 'H:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D. MMMM YYYY', + LLL : 'D. MMMM YYYY [kl.] H:mm', + LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm' + }, + calendar : { + sameDay : '[í dag kl.] LT', + nextDay : '[á morgun kl.] LT', + nextWeek : 'dddd [kl.] LT', + lastDay : '[í gær kl.] LT', + lastWeek : '[síðasta] dddd [kl.] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'eftir %s', + past : 'fyrir %s síðan', + s : translate, + m : translate, + mm : translate, + h : 'klukkustund', + hh : translate, + d : translate, + dd : translate, + M : translate, + MM : translate, + y : translate, + yy : translate + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } + }); - return m; - } - - // iso 8601 regex - // 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) - 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)?)?$/; - 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)?)?$/; - - var tzRegex = /Z|[+-]\d\d(?::?\d\d)?/; - - var isoDates = [ - ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], - ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], - ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], - ['GGGG-[W]WW', /\d{4}-W\d\d/, false], - ['YYYY-DDD', /\d{4}-\d{3}/], - ['YYYY-MM', /\d{4}-\d\d/, false], - ['YYYYYYMMDD', /[+-]\d{10}/], - ['YYYYMMDD', /\d{8}/], - // YYYYMM is NOT allowed by the standard - ['GGGG[W]WWE', /\d{4}W\d{3}/], - ['GGGG[W]WW', /\d{4}W\d{2}/, false], - ['YYYYDDD', /\d{7}/] - ]; - - // iso time formats and regexes - var isoTimes = [ - ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], - ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], - ['HH:mm:ss', /\d\d:\d\d:\d\d/], - ['HH:mm', /\d\d:\d\d/], - ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], - ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], - ['HHmmss', /\d\d\d\d\d\d/], - ['HHmm', /\d\d\d\d/], - ['HH', /\d\d/] - ]; + return is; - var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i; + }))); + + +/***/ }), +/* 391 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Italian [it] + //! author : Lorenzo : https://github.com/aliem + //! author: Mattia Larentis: https://github.com/nostalgiaz - // date from iso format - function configFromISO(config) { - var i, l, - string = config._i, - match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), - allowTime, dateFormat, timeFormat, tzFormat; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (match) { - getParsingFlags(config).iso = true; - for (i = 0, l = isoDates.length; i < l; i++) { - if (isoDates[i][1].exec(match[1])) { - dateFormat = isoDates[i][0]; - allowTime = isoDates[i][2] !== false; - break; - } - } - if (dateFormat == null) { - config._isValid = false; - return; - } - if (match[3]) { - for (i = 0, l = isoTimes.length; i < l; i++) { - if (isoTimes[i][1].exec(match[3])) { - // match[2] should be 'T' or space - timeFormat = (match[2] || ' ') + isoTimes[i][0]; - break; - } - } - if (timeFormat == null) { - config._isValid = false; - return; - } - } - if (!allowTime && timeFormat != null) { - config._isValid = false; - return; - } - if (match[4]) { - if (tzRegex.exec(match[4])) { - tzFormat = 'Z'; - } else { - config._isValid = false; - return; + var it = moment.defineLocale('it', { + months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'), + monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), + weekdays : 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'), + weekdaysShort : 'dom_lun_mar_mer_gio_ven_sab'.split('_'), + weekdaysMin : 'do_lu_ma_me_gi_ve_sa'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd, D MMMM YYYY HH:mm' + }, + calendar : { + sameDay: '[Oggi alle] LT', + nextDay: '[Domani alle] LT', + nextWeek: 'dddd [alle] LT', + lastDay: '[Ieri alle] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[la scorsa] dddd [alle] LT'; + default: + return '[lo scorso] dddd [alle] LT'; } - } - config._f = dateFormat + (timeFormat || '') + (tzFormat || ''); - configFromStringAndFormat(config); - } else { - config._isValid = false; + }, + sameElse: 'L' + }, + relativeTime : { + future : function (s) { + return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s; + }, + past : '%s fa', + s : 'alcuni secondi', + m : 'un minuto', + mm : '%d minuti', + h : 'un\'ora', + hh : '%d ore', + d : 'un giorno', + dd : '%d giorni', + M : 'un mese', + MM : '%d mesi', + y : 'un anno', + yy : '%d anni' + }, + dayOfMonthOrdinalParse : /\d{1,2}º/, + ordinal: '%dº', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } - } - - // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3 - var basicRfcRegex = /^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/; + }); - // date and time from ref 2822 format - function configFromRFC2822(config) { - var string, match, dayFormat, - dateFormat, timeFormat, tzFormat; - var timezones = { - ' GMT': ' +0000', - ' EDT': ' -0400', - ' EST': ' -0500', - ' CDT': ' -0500', - ' CST': ' -0600', - ' MDT': ' -0600', - ' MST': ' -0700', - ' PDT': ' -0700', - ' PST': ' -0800' - }; - var military = 'YXWVUTSRQPONZABCDEFGHIKLM'; - var timezone, timezoneIndex; + return it; - string = config._i - .replace(/\([^\)]*\)|[\n\t]/g, ' ') // Remove comments and folding whitespace - .replace(/(\s\s+)/g, ' ') // Replace multiple-spaces with a single space - .replace(/^\s|\s$/g, ''); // Remove leading and trailing spaces - match = basicRfcRegex.exec(string); + }))); + + +/***/ }), +/* 392 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Japanese [ja] + //! author : LI Long : https://github.com/baryon - if (match) { - dayFormat = match[1] ? 'ddd' + ((match[1].length === 5) ? ', ' : ' ') : ''; - dateFormat = 'D MMM ' + ((match[2].length > 10) ? 'YYYY ' : 'YY '); - timeFormat = 'HH:mm' + (match[4] ? ':ss' : ''); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // TODO: Replace the vanilla JS Date object with an indepentent day-of-week check. - if (match[1]) { // day of week given - var momentDate = new Date(match[2]); - var momentDay = ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'][momentDate.getDay()]; - if (match[1].substr(0,3) !== momentDay) { - getParsingFlags(config).weekdayMismatch = true; - config._isValid = false; - return; - } + var ja = moment.defineLocale('ja', { + months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), + monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), + weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'), + weekdaysShort : '日_月_火_水_木_金_土'.split('_'), + weekdaysMin : '日_月_火_水_木_金_土'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'YYYY/MM/DD', + LL : 'YYYY年M月D日', + LLL : 'YYYY年M月D日 HH:mm', + LLLL : 'YYYY年M月D日 HH:mm dddd', + l : 'YYYY/MM/DD', + ll : 'YYYY年M月D日', + lll : 'YYYY年M月D日 HH:mm', + llll : 'YYYY年M月D日 HH:mm dddd' + }, + meridiemParse: /午前|午後/i, + isPM : function (input) { + return input === '午後'; + }, + meridiem : function (hour, minute, isLower) { + if (hour < 12) { + return '午前'; + } else { + return '午後'; } - - switch (match[5].length) { - case 2: // military - if (timezoneIndex === 0) { - timezone = ' +0000'; - } else { - timezoneIndex = military.indexOf(match[5][1].toUpperCase()) - 12; - timezone = ((timezoneIndex < 0) ? ' -' : ' +') + - (('' + timezoneIndex).replace(/^-?/, '0')).match(/..$/)[0] + '00'; - } - break; - case 4: // Zone - timezone = timezones[match[5]]; - break; - default: // UT or +/-9999 - timezone = timezones[' GMT']; + }, + calendar : { + sameDay : '[今日] LT', + nextDay : '[明日] LT', + nextWeek : '[来週]dddd LT', + lastDay : '[昨日] LT', + lastWeek : '[前週]dddd LT', + sameElse : 'L' + }, + dayOfMonthOrdinalParse : /\d{1,2}日/, + ordinal : function (number, period) { + switch (period) { + case 'd': + case 'D': + case 'DDD': + return number + '日'; + default: + return number; } - match[5] = timezone; - config._i = match.splice(1).join(''); - tzFormat = ' ZZ'; - config._f = dayFormat + dateFormat + timeFormat + tzFormat; - configFromStringAndFormat(config); - getParsingFlags(config).rfc2822 = true; - } else { - config._isValid = false; + }, + relativeTime : { + future : '%s後', + past : '%s前', + s : '数秒', + m : '1分', + mm : '%d分', + h : '1時間', + hh : '%d時間', + d : '1日', + dd : '%d日', + M : '1ヶ月', + MM : '%dヶ月', + y : '1年', + yy : '%d年' } - } - - // date from iso format or fallback - function configFromString(config) { - var matched = aspNetJsonRegex.exec(config._i); + }); - if (matched !== null) { - config._d = new Date(+matched[1]); - return; - } + return ja; - configFromISO(config); - if (config._isValid === false) { - delete config._isValid; - } else { - return; - } + }))); + + +/***/ }), +/* 393 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Javanese [jv] + //! author : Rony Lantip : https://github.com/lantip + //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa - configFromRFC2822(config); - if (config._isValid === false) { - delete config._isValid; - } else { - return; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // Final attempt, use Input Fallback - hooks.createFromInputFallback(config); - } - hooks.createFromInputFallback = deprecate( - 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' + - 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' + - 'discouraged and will be removed in an upcoming major release. Please refer to ' + - 'http://momentjs.com/guides/#/warnings/js-date/ for more info.', - function (config) { - config._d = new Date(config._i + (config._useUTC ? ' UTC' : '')); + var jv = moment.defineLocale('jv', { + months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'), + monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'), + weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'), + weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'), + weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'), + longDateFormat : { + LT : 'HH.mm', + LTS : 'HH.mm.ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY [pukul] HH.mm', + LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' + }, + meridiemParse: /enjing|siyang|sonten|ndalu/, + meridiemHour : function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'enjing') { + return hour; + } else if (meridiem === 'siyang') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === 'sonten' || meridiem === 'ndalu') { + return hour + 12; + } + }, + meridiem : function (hours, minutes, isLower) { + if (hours < 11) { + return 'enjing'; + } else if (hours < 15) { + return 'siyang'; + } else if (hours < 19) { + return 'sonten'; + } else { + return 'ndalu'; + } + }, + calendar : { + sameDay : '[Dinten puniko pukul] LT', + nextDay : '[Mbenjang pukul] LT', + nextWeek : 'dddd [pukul] LT', + lastDay : '[Kala wingi pukul] LT', + lastWeek : 'dddd [kepengker pukul] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'wonten ing %s', + past : '%s ingkang kepengker', + s : 'sawetawis detik', + m : 'setunggal menit', + mm : '%d menit', + h : 'setunggal jam', + hh : '%d jam', + d : 'sedinten', + dd : '%d dinten', + M : 'sewulan', + MM : '%d wulan', + y : 'setaun', + yy : '%d taun' + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. } - ); + }); - // Pick the first defined of two or three arguments. - function defaults(a, b, c) { - if (a != null) { - return a; - } - if (b != null) { - return b; - } - return c; - } + return jv; - function currentDateArray(config) { - // hooks is actually the exported moment object - var nowValue = new Date(hooks.now()); - if (config._useUTC) { - return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()]; - } - return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()]; - } + }))); + + +/***/ }), +/* 394 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Georgian [ka] + //! author : Irakli Janiashvili : https://github.com/irakli-janiashvili - // convert an array to a date. - // the array should mirror the parameters below - // note: all values past the year are optional and will default to the lowest possible value. - // [year, month, day , hour, minute, second, millisecond] - function configFromArray (config) { - var i, date, input = [], currentDate, yearToUse; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (config._d) { - return; + + var ka = moment.defineLocale('ka', { + months : { + standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'), + format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_') + }, + monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'), + weekdays : { + standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'), + format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'), + isFormat: /(წინა|შემდეგ)/ + }, + weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'), + weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'), + longDateFormat : { + LT : 'h:mm A', + LTS : 'h:mm:ss A', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY h:mm A', + LLLL : 'dddd, D MMMM YYYY h:mm A' + }, + calendar : { + sameDay : '[დღეს] LT[-ზე]', + nextDay : '[ხვალ] LT[-ზე]', + lastDay : '[გუშინ] LT[-ზე]', + nextWeek : '[შემდეგ] dddd LT[-ზე]', + lastWeek : '[წინა] dddd LT-ზე', + sameElse : 'L' + }, + relativeTime : { + future : function (s) { + return (/(წამი|წუთი|საათი|წელი)/).test(s) ? + s.replace(/ი$/, 'ში') : + s + 'ში'; + }, + past : function (s) { + if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) { + return s.replace(/(ი|ე)$/, 'ის უკან'); + } + if ((/წელი/).test(s)) { + return s.replace(/წელი$/, 'წლის უკან'); + } + }, + s : 'რამდენიმე წამი', + m : 'წუთი', + mm : '%d წუთი', + h : 'საათი', + hh : '%d საათი', + d : 'დღე', + dd : '%d დღე', + M : 'თვე', + MM : '%d თვე', + y : 'წელი', + yy : '%d წელი' + }, + dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/, + ordinal : function (number) { + if (number === 0) { + return number; + } + if (number === 1) { + return number + '-ლი'; + } + if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) { + return 'მე-' + number; + } + return number + '-ე'; + }, + week : { + dow : 1, + doy : 7 } + }); - currentDate = currentDateArray(config); + return ka; - //compute day of the year from weeks and weekdays - if (config._w && config._a[DATE] == null && config._a[MONTH] == null) { - dayOfYearFromWeekInfo(config); - } + }))); + + +/***/ }), +/* 395 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Kazakh [kk] + //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan - //if the day of the year is set, figure out what it is - if (config._dayOfYear != null) { - yearToUse = defaults(config._a[YEAR], currentDate[YEAR]); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) { - getParsingFlags(config)._overflowDayOfYear = true; - } - date = createUTCDate(yearToUse, 0, config._dayOfYear); - config._a[MONTH] = date.getUTCMonth(); - config._a[DATE] = date.getUTCDate(); - } + var suffixes = { + 0: '-ші', + 1: '-ші', + 2: '-ші', + 3: '-ші', + 4: '-ші', + 5: '-ші', + 6: '-шы', + 7: '-ші', + 8: '-ші', + 9: '-шы', + 10: '-шы', + 20: '-шы', + 30: '-шы', + 40: '-шы', + 50: '-ші', + 60: '-шы', + 70: '-ші', + 80: '-ші', + 90: '-шы', + 100: '-ші' + }; - // Default to current date. - // * if no year, month, day of month are given, default to today - // * if day of month is given, default month and year - // * if month is given, default only year - // * if year is given, don't default anything - for (i = 0; i < 3 && config._a[i] == null; ++i) { - config._a[i] = input[i] = currentDate[i]; + var kk = moment.defineLocale('kk', { + months : 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'), + monthsShort : 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'), + weekdays : 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'), + weekdaysShort : 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'), + weekdaysMin : 'жк_дй_сй_ср_бй_жм_сн'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd, D MMMM YYYY HH:mm' + }, + calendar : { + sameDay : '[Бүгін сағат] LT', + nextDay : '[Ертең сағат] LT', + nextWeek : 'dddd [сағат] LT', + lastDay : '[Кеше сағат] LT', + lastWeek : '[Өткен аптаның] dddd [сағат] LT', + sameElse : 'L' + }, + relativeTime : { + future : '%s ішінде', + past : '%s бұрын', + s : 'бірнеше секунд', + m : 'бір минут', + mm : '%d минут', + h : 'бір сағат', + hh : '%d сағат', + d : 'бір күн', + dd : '%d күн', + M : 'бір ай', + MM : '%d ай', + y : 'бір жыл', + yy : '%d жыл' + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/, + ordinal : function (number) { + var a = number % 10, + b = number >= 100 ? 100 : null; + return number + (suffixes[number] || suffixes[a] || suffixes[b]); + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. } + }); - // Zero out whatever was not defaulted, including time - for (; i < 7; i++) { - config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i]; - } + return kk; - // Check for 24:00:00.000 - if (config._a[HOUR] === 24 && - config._a[MINUTE] === 0 && - config._a[SECOND] === 0 && - config._a[MILLISECOND] === 0) { - config._nextDay = true; - config._a[HOUR] = 0; - } + }))); + + +/***/ }), +/* 396 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Cambodian [km] + //! author : Kruy Vanna : https://github.com/kruyvanna - config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input); - // Apply timezone offset from input. The actual utcOffset can be changed - // with parseZone. - if (config._tzm != null) { - config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (config._nextDay) { - config._a[HOUR] = 24; - } - } - function dayOfYearFromWeekInfo(config) { - var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow; + var km = moment.defineLocale('km', { + months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'), + monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'), + weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), + weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), + weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS : 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[ថ្ងៃនេះ ម៉ោង] LT', + nextDay: '[ស្អែក ម៉ោង] LT', + nextWeek: 'dddd [ម៉ោង] LT', + lastDay: '[ម្សិលមិញ ម៉ោង] LT', + lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT', + sameElse: 'L' + }, + relativeTime: { + future: '%sទៀត', + past: '%sមុន', + s: 'ប៉ុន្មានវិនាទី', + m: 'មួយនាទី', + mm: '%d នាទី', + h: 'មួយម៉ោង', + hh: '%d ម៉ោង', + d: 'មួយថ្ងៃ', + dd: '%d ថ្ងៃ', + M: 'មួយខែ', + MM: '%d ខែ', + y: 'មួយឆ្នាំ', + yy: '%d ឆ្នាំ' + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4 // The week that contains Jan 4th is the first week of the year. + } + }); - w = config._w; - if (w.GG != null || w.W != null || w.E != null) { - dow = 1; - doy = 4; + return km; - // TODO: We need to take the current isoWeekYear, but that depends on - // how we interpret now (local, utc, fixed offset). So create - // a now version of current config (take local/utc/offset flags, and - // create now). - weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year); - week = defaults(w.W, 1); - weekday = defaults(w.E, 1); - if (weekday < 1 || weekday > 7) { - weekdayOverflow = true; - } - } else { - dow = config._locale._week.dow; - doy = config._locale._week.doy; + }))); + + +/***/ }), +/* 397 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Kannada [kn] + //! author : Rajeev Naik : https://github.com/rajeevnaikte - var curWeek = weekOfYear(createLocal(), dow, doy); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - weekYear = defaults(w.gg, config._a[YEAR], curWeek.year); - // Default to current week. - week = defaults(w.w, curWeek.week); + var symbolMap = { + '1': '೧', + '2': '೨', + '3': '೩', + '4': '೪', + '5': '೫', + '6': '೬', + '7': '೭', + '8': '೮', + '9': '೯', + '0': '೦' + }; + var numberMap = { + '೧': '1', + '೨': '2', + '೩': '3', + '೪': '4', + '೫': '5', + '೬': '6', + '೭': '7', + '೮': '8', + '೯': '9', + '೦': '0' + }; - if (w.d != null) { - // weekday -- low day numbers are considered next week - weekday = w.d; - if (weekday < 0 || weekday > 6) { - weekdayOverflow = true; - } - } else if (w.e != null) { - // local weekday -- counting starts from begining of week - weekday = w.e + dow; - if (w.e < 0 || w.e > 6) { - weekdayOverflow = true; - } + var kn = moment.defineLocale('kn', { + months : 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'), + monthsShort : 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬ_ಅಕ್ಟೋಬ_ನವೆಂಬ_ಡಿಸೆಂಬ'.split('_'), + monthsParseExact: true, + weekdays : 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'), + weekdaysShort : 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'), + weekdaysMin : 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'), + longDateFormat : { + LT : 'A h:mm', + LTS : 'A h:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY, A h:mm', + LLLL : 'dddd, D MMMM YYYY, A h:mm' + }, + calendar : { + sameDay : '[ಇಂದು] LT', + nextDay : '[ನಾಳೆ] LT', + nextWeek : 'dddd, LT', + lastDay : '[ನಿನ್ನೆ] LT', + lastWeek : '[ಕೊನೆಯ] dddd, LT', + sameElse : 'L' + }, + relativeTime : { + future : '%s ನಂತರ', + past : '%s ಹಿಂದೆ', + s : 'ಕೆಲವು ಕ್ಷಣಗಳು', + m : 'ಒಂದು ನಿಮಿಷ', + mm : '%d ನಿಮಿಷ', + h : 'ಒಂದು ಗಂಟೆ', + hh : '%d ಗಂಟೆ', + d : 'ಒಂದು ದಿನ', + dd : '%d ದಿನ', + M : 'ಒಂದು ತಿಂಗಳು', + MM : '%d ತಿಂಗಳು', + y : 'ಒಂದು ವರ್ಷ', + yy : '%d ವರ್ಷ' + }, + preparse: function (string) { + return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/, + meridiemHour : function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'ರಾತ್ರಿ') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') { + return hour; + } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') { + return hour >= 10 ? hour : hour + 12; + } else if (meridiem === 'ಸಂಜೆ') { + return hour + 12; + } + }, + meridiem : function (hour, minute, isLower) { + if (hour < 4) { + return 'ರಾತ್ರಿ'; + } else if (hour < 10) { + return 'ಬೆಳಿಗ್ಗೆ'; + } else if (hour < 17) { + return 'ಮಧ್ಯಾಹ್ನ'; + } else if (hour < 20) { + return 'ಸಂಜೆ'; } else { - // default to begining of week - weekday = dow; + return 'ರಾತ್ರಿ'; } + }, + dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/, + ordinal : function (number) { + return number + 'ನೇ'; + }, + week : { + dow : 0, // Sunday is the first day of the week. + doy : 6 // The week that contains Jan 1st is the first week of the year. } - if (week < 1 || week > weeksInYear(weekYear, dow, doy)) { - getParsingFlags(config)._overflowWeeks = true; - } else if (weekdayOverflow != null) { - getParsingFlags(config)._overflowWeekday = true; - } else { - temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy); - config._a[YEAR] = temp.year; - config._dayOfYear = temp.dayOfYear; - } - } + }); - // constant that refers to the ISO standard - hooks.ISO_8601 = function () {}; + return kn; - // constant that refers to the RFC 2822 form - hooks.RFC_2822 = function () {}; + }))); + + +/***/ }), +/* 398 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Korean [ko] + //! author : Kyungwook, Park : https://github.com/kyungw00k + //! author : Jeeeyul Lee - // date from string and format string - function configFromStringAndFormat(config) { - // TODO: Move this to another part of the creation flow to prevent circular deps - if (config._f === hooks.ISO_8601) { - configFromISO(config); - return; - } - if (config._f === hooks.RFC_2822) { - configFromRFC2822(config); - return; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + + + var ko = moment.defineLocale('ko', { + months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), + monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), + weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'), + weekdaysShort : '일_월_화_수_목_금_토'.split('_'), + weekdaysMin : '일_월_화_수_목_금_토'.split('_'), + longDateFormat : { + LT : 'A h:mm', + LTS : 'A h:mm:ss', + L : 'YYYY.MM.DD', + LL : 'YYYY년 MMMM D일', + LLL : 'YYYY년 MMMM D일 A h:mm', + LLLL : 'YYYY년 MMMM D일 dddd A h:mm', + l : 'YYYY.MM.DD', + ll : 'YYYY년 MMMM D일', + lll : 'YYYY년 MMMM D일 A h:mm', + llll : 'YYYY년 MMMM D일 dddd A h:mm' + }, + calendar : { + sameDay : '오늘 LT', + nextDay : '내일 LT', + nextWeek : 'dddd LT', + lastDay : '어제 LT', + lastWeek : '지난주 dddd LT', + sameElse : 'L' + }, + relativeTime : { + future : '%s 후', + past : '%s 전', + s : '몇 초', + ss : '%d초', + m : '1분', + mm : '%d분', + h : '한 시간', + hh : '%d시간', + d : '하루', + dd : '%d일', + M : '한 달', + MM : '%d달', + y : '일 년', + yy : '%d년' + }, + dayOfMonthOrdinalParse : /\d{1,2}일/, + ordinal : '%d일', + meridiemParse : /오전|오후/, + isPM : function (token) { + return token === '오후'; + }, + meridiem : function (hour, minute, isUpper) { + return hour < 12 ? '오전' : '오후'; } - config._a = []; - getParsingFlags(config).empty = true; + }); - // This array is used to make a Date, either with `new Date` or `Date.UTC` - var string = '' + config._i, - i, parsedInput, tokens, token, skipped, - stringLength = string.length, - totalParsedInputLength = 0; + return ko; - tokens = expandFormat(config._f, config._locale).match(formattingTokens) || []; + }))); + + +/***/ }), +/* 399 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Kyrgyz [ky] + //! author : Chyngyz Arystan uulu : https://github.com/chyngyz - for (i = 0; i < tokens.length; i++) { - token = tokens[i]; - parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0]; - // console.log('token', token, 'parsedInput', parsedInput, - // 'regex', getParseRegexForToken(token, config)); - if (parsedInput) { - skipped = string.substr(0, string.indexOf(parsedInput)); - if (skipped.length > 0) { - getParsingFlags(config).unusedInput.push(skipped); - } - string = string.slice(string.indexOf(parsedInput) + parsedInput.length); - totalParsedInputLength += parsedInput.length; - } - // don't parse if it's not a known token - if (formatTokenFunctions[token]) { - if (parsedInput) { - getParsingFlags(config).empty = false; - } - else { - getParsingFlags(config).unusedTokens.push(token); - } - addTimeToArrayFromToken(token, parsedInput, config); - } - else if (config._strict && !parsedInput) { - getParsingFlags(config).unusedTokens.push(token); - } - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // add remaining unparsed input length to the string - getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength; - if (string.length > 0) { - getParsingFlags(config).unusedInput.push(string); - } - // clear _12h flag if hour is <= 12 - if (config._a[HOUR] <= 12 && - getParsingFlags(config).bigHour === true && - config._a[HOUR] > 0) { - getParsingFlags(config).bigHour = undefined; + + var suffixes = { + 0: '-чү', + 1: '-чи', + 2: '-чи', + 3: '-чү', + 4: '-чү', + 5: '-чи', + 6: '-чы', + 7: '-чи', + 8: '-чи', + 9: '-чу', + 10: '-чу', + 20: '-чы', + 30: '-чу', + 40: '-чы', + 50: '-чү', + 60: '-чы', + 70: '-чи', + 80: '-чи', + 90: '-чу', + 100: '-чү' + }; + + var ky = moment.defineLocale('ky', { + months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'), + monthsShort : 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'), + weekdays : 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'), + weekdaysShort : 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'), + weekdaysMin : 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd, D MMMM YYYY HH:mm' + }, + calendar : { + sameDay : '[Бүгүн саат] LT', + nextDay : '[Эртең саат] LT', + nextWeek : 'dddd [саат] LT', + lastDay : '[Кече саат] LT', + lastWeek : '[Өткен аптанын] dddd [күнү] [саат] LT', + sameElse : 'L' + }, + relativeTime : { + future : '%s ичинде', + past : '%s мурун', + s : 'бирнече секунд', + m : 'бир мүнөт', + mm : '%d мүнөт', + h : 'бир саат', + hh : '%d саат', + d : 'бир күн', + dd : '%d күн', + M : 'бир ай', + MM : '%d ай', + y : 'бир жыл', + yy : '%d жыл' + }, + dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/, + ordinal : function (number) { + var a = number % 10, + b = number >= 100 ? 100 : null; + return number + (suffixes[number] || suffixes[a] || suffixes[b]); + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. } + }); - getParsingFlags(config).parsedDateParts = config._a.slice(0); - getParsingFlags(config).meridiem = config._meridiem; - // handle meridiem - config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem); + return ky; - configFromArray(config); - checkOverflow(config); - } + }))); + + +/***/ }), +/* 400 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Luxembourgish [lb] + //! author : mweimerskirch : https://github.com/mweimerskirch + //! author : David Raison : https://github.com/kwisatz + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function meridiemFixWrap (locale, hour, meridiem) { - var isPm; - if (meridiem == null) { - // nothing to do - return hour; + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + 'm': ['eng Minutt', 'enger Minutt'], + 'h': ['eng Stonn', 'enger Stonn'], + 'd': ['een Dag', 'engem Dag'], + 'M': ['ee Mount', 'engem Mount'], + 'y': ['ee Joer', 'engem Joer'] + }; + return withoutSuffix ? format[key][0] : format[key][1]; + } + function processFutureTime(string) { + var number = string.substr(0, string.indexOf(' ')); + if (eifelerRegelAppliesToNumber(number)) { + return 'a ' + string; } - if (locale.meridiemHour != null) { - return locale.meridiemHour(hour, meridiem); - } else if (locale.isPM != null) { - // Fallback - isPm = locale.isPM(meridiem); - if (isPm && hour < 12) { - hour += 12; - } - if (!isPm && hour === 12) { - hour = 0; - } - return hour; - } else { - // this is not supposed to happen - return hour; + return 'an ' + string; + } + function processPastTime(string) { + var number = string.substr(0, string.indexOf(' ')); + if (eifelerRegelAppliesToNumber(number)) { + return 'viru ' + string; } + return 'virun ' + string; } - - // date from string and array of format strings - function configFromStringAndArray(config) { - var tempConfig, - bestMoment, - - scoreToBeat, - i, - currentScore; - - if (config._f.length === 0) { - getParsingFlags(config).invalidFormat = true; - config._d = new Date(NaN); - return; + /** + * Returns true if the word before the given number loses the '-n' ending. + * e.g. 'an 10 Deeg' but 'a 5 Deeg' + * + * @param number {integer} + * @returns {boolean} + */ + function eifelerRegelAppliesToNumber(number) { + number = parseInt(number, 10); + if (isNaN(number)) { + return false; } - - for (i = 0; i < config._f.length; i++) { - currentScore = 0; - tempConfig = copyConfig({}, config); - if (config._useUTC != null) { - tempConfig._useUTC = config._useUTC; + if (number < 0) { + // Negative Number --> always true + return true; + } else if (number < 10) { + // Only 1 digit + if (4 <= number && number <= 7) { + return true; } - tempConfig._f = config._f[i]; - configFromStringAndFormat(tempConfig); - - if (!isValid(tempConfig)) { - continue; + return false; + } else if (number < 100) { + // 2 digits + var lastDigit = number % 10, firstDigit = number / 10; + if (lastDigit === 0) { + return eifelerRegelAppliesToNumber(firstDigit); } - - // if there is any input that was not parsed add a penalty for that format - currentScore += getParsingFlags(tempConfig).charsLeftOver; - - //or tokens - currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10; - - getParsingFlags(tempConfig).score = currentScore; - - if (scoreToBeat == null || currentScore < scoreToBeat) { - scoreToBeat = currentScore; - bestMoment = tempConfig; + return eifelerRegelAppliesToNumber(lastDigit); + } else if (number < 10000) { + // 3 or 4 digits --> recursively check first digit + while (number >= 10) { + number = number / 10; } + return eifelerRegelAppliesToNumber(number); + } else { + // Anything larger than 4 digits: recursively check first n-3 digits + number = number / 1000; + return eifelerRegelAppliesToNumber(number); } - - extend(config, bestMoment || tempConfig); } - function configFromObject(config) { - if (config._d) { - return; + var lb = moment.defineLocale('lb', { + months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), + monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'), + monthsParseExact : true, + weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'), + weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'), + weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'), + weekdaysParseExact : true, + longDateFormat: { + LT: 'H:mm [Auer]', + LTS: 'H:mm:ss [Auer]', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm [Auer]', + LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]' + }, + calendar: { + sameDay: '[Haut um] LT', + sameElse: 'L', + nextDay: '[Muer um] LT', + nextWeek: 'dddd [um] LT', + lastDay: '[Gëschter um] LT', + lastWeek: function () { + // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule + switch (this.day()) { + case 2: + case 4: + return '[Leschten] dddd [um] LT'; + default: + return '[Leschte] dddd [um] LT'; + } + } + }, + relativeTime : { + future : processFutureTime, + past : processPastTime, + s : 'e puer Sekonnen', + m : processRelativeTime, + mm : '%d Minutten', + h : processRelativeTime, + hh : '%d Stonnen', + d : processRelativeTime, + dd : '%d Deeg', + M : processRelativeTime, + MM : '%d Méint', + y : processRelativeTime, + yy : '%d Joer' + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { + dow: 1, // Monday is the first day of the week. + doy: 4 // The week that contains Jan 4th is the first week of the year. } + }); - var i = normalizeObjectUnits(config._i); - config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) { - return obj && parseInt(obj, 10); - }); - - configFromArray(config); - } - - function createFromConfig (config) { - var res = new Moment(checkOverflow(prepareConfig(config))); - if (res._nextDay) { - // Adding is smart enough around DST - res.add(1, 'd'); - res._nextDay = undefined; - } + return lb; - return res; - } + }))); + + +/***/ }), +/* 401 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Lao [lo] + //! author : Ryan Hart : https://github.com/ryanhart2 - function prepareConfig (config) { - var input = config._i, - format = config._f; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - config._locale = config._locale || getLocale(config._l); - if (input === null || (format === undefined && input === '')) { - return createInvalid({nullInput: true}); + var lo = moment.defineLocale('lo', { + months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'), + monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'), + weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), + weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), + weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'ວັນdddd D MMMM YYYY HH:mm' + }, + meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/, + isPM: function (input) { + return input === 'ຕອນແລງ'; + }, + meridiem : function (hour, minute, isLower) { + if (hour < 12) { + return 'ຕອນເຊົ້າ'; + } else { + return 'ຕອນແລງ'; + } + }, + calendar : { + sameDay : '[ມື້ນີ້ເວລາ] LT', + nextDay : '[ມື້ອື່ນເວລາ] LT', + nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT', + lastDay : '[ມື້ວານນີ້ເວລາ] LT', + lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'ອີກ %s', + past : '%sຜ່ານມາ', + s : 'ບໍ່ເທົ່າໃດວິນາທີ', + m : '1 ນາທີ', + mm : '%d ນາທີ', + h : '1 ຊົ່ວໂມງ', + hh : '%d ຊົ່ວໂມງ', + d : '1 ມື້', + dd : '%d ມື້', + M : '1 ເດືອນ', + MM : '%d ເດືອນ', + y : '1 ປີ', + yy : '%d ປີ' + }, + dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/, + ordinal : function (number) { + return 'ທີ່' + number; } + }); - if (typeof input === 'string') { - config._i = input = config._locale.preparse(input); - } + return lo; - if (isMoment(input)) { - return new Moment(checkOverflow(input)); - } else if (isDate(input)) { - config._d = input; - } else if (isArray(format)) { - configFromStringAndArray(config); - } else if (format) { - configFromStringAndFormat(config); - } else { - configFromInput(config); - } + }))); + + +/***/ }), +/* 402 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Lithuanian [lt] + //! author : Mindaugas Mozūras : https://github.com/mmozuras - if (!isValid(config)) { - config._d = null; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return config; - } - function configFromInput(config) { - var input = config._i; - if (isUndefined(input)) { - config._d = new Date(hooks.now()); - } else if (isDate(input)) { - config._d = new Date(input.valueOf()); - } else if (typeof input === 'string') { - configFromString(config); - } else if (isArray(input)) { - config._a = map(input.slice(0), function (obj) { - return parseInt(obj, 10); - }); - configFromArray(config); - } else if (isObject(input)) { - configFromObject(config); - } else if (isNumber(input)) { - // from milliseconds - config._d = new Date(input); + var units = { + 'm' : 'minutė_minutės_minutę', + 'mm': 'minutės_minučių_minutes', + 'h' : 'valanda_valandos_valandą', + 'hh': 'valandos_valandų_valandas', + 'd' : 'diena_dienos_dieną', + 'dd': 'dienos_dienų_dienas', + 'M' : 'mėnuo_mėnesio_mėnesį', + 'MM': 'mėnesiai_mėnesių_mėnesius', + 'y' : 'metai_metų_metus', + 'yy': 'metai_metų_metus' + }; + function translateSeconds(number, withoutSuffix, key, isFuture) { + if (withoutSuffix) { + return 'kelios sekundės'; } else { - hooks.createFromInputFallback(config); + return isFuture ? 'kelių sekundžių' : 'kelias sekundes'; } } - - function createLocalOrUTC (input, format, locale, strict, isUTC) { - var c = {}; - - if (locale === true || locale === false) { - strict = locale; - locale = undefined; - } - - if ((isObject(input) && isObjectEmpty(input)) || - (isArray(input) && input.length === 0)) { - input = undefined; - } - // object construction must be done this way. - // https://github.com/moment/moment/issues/1423 - c._isAMomentObject = true; - c._useUTC = c._isUTC = isUTC; - c._l = locale; - c._i = input; - c._f = format; - c._strict = strict; - - return createFromConfig(c); + function translateSingular(number, withoutSuffix, key, isFuture) { + return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]); } - - function createLocal (input, format, locale, strict) { - return createLocalOrUTC(input, format, locale, strict, false); + function special(number) { + return number % 10 === 0 || (number > 10 && number < 20); } - - var prototypeMin = deprecate( - 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', - function () { - var other = createLocal.apply(null, arguments); - if (this.isValid() && other.isValid()) { - return other < this ? this : other; - } else { - return createInvalid(); - } - } - ); - - var prototypeMax = deprecate( - 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', - function () { - var other = createLocal.apply(null, arguments); - if (this.isValid() && other.isValid()) { - return other > this ? this : other; + function forms(key) { + return units[key].split('_'); + } + function translate(number, withoutSuffix, key, isFuture) { + var result = number + ' '; + if (number === 1) { + return result + translateSingular(number, withoutSuffix, key[0], isFuture); + } else if (withoutSuffix) { + return result + (special(number) ? forms(key)[1] : forms(key)[0]); + } else { + if (isFuture) { + return result + forms(key)[1]; } else { - return createInvalid(); + return result + (special(number) ? forms(key)[1] : forms(key)[2]); } } - ); - - // Pick a moment m from moments so that m[fn](other) is true for all - // other. This relies on the function fn to be transitive. - // - // moments should either be an array of moment objects or an array, whose - // first element is an array of moment objects. - function pickBy(fn, moments) { - var res, i; - if (moments.length === 1 && isArray(moments[0])) { - moments = moments[0]; - } - if (!moments.length) { - return createLocal(); - } - res = moments[0]; - for (i = 1; i < moments.length; ++i) { - if (!moments[i].isValid() || moments[i][fn](res)) { - res = moments[i]; - } + } + var lt = moment.defineLocale('lt', { + months : { + format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'), + standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'), + isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/ + }, + monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'), + weekdays : { + format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'), + standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'), + isFormat: /dddd HH:mm/ + }, + weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'), + weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'YYYY-MM-DD', + LL : 'YYYY [m.] MMMM D [d.]', + LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]', + LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]', + l : 'YYYY-MM-DD', + ll : 'YYYY [m.] MMMM D [d.]', + lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]', + llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]' + }, + calendar : { + sameDay : '[Šiandien] LT', + nextDay : '[Rytoj] LT', + nextWeek : 'dddd LT', + lastDay : '[Vakar] LT', + lastWeek : '[Praėjusį] dddd LT', + sameElse : 'L' + }, + relativeTime : { + future : 'po %s', + past : 'prieš %s', + s : translateSeconds, + m : translateSingular, + mm : translate, + h : translateSingular, + hh : translate, + d : translateSingular, + dd : translate, + M : translateSingular, + MM : translate, + y : translateSingular, + yy : translate + }, + dayOfMonthOrdinalParse: /\d{1,2}-oji/, + ordinal : function (number) { + return number + '-oji'; + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } - return res; - } + }); - // TODO: Use [].sort instead? - function min () { - var args = [].slice.call(arguments, 0); + return lt; - return pickBy('isBefore', args); - } + }))); + + +/***/ }), +/* 403 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Latvian [lv] + //! author : Kristaps Karlsons : https://github.com/skakri + //! author : Jānis Elmeris : https://github.com/JanisE - function max () { - var args = [].slice.call(arguments, 0); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return pickBy('isAfter', args); - } - var now = function () { - return Date.now ? Date.now() : +(new Date()); + var units = { + 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'), + 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'), + 'h': 'stundas_stundām_stunda_stundas'.split('_'), + 'hh': 'stundas_stundām_stunda_stundas'.split('_'), + 'd': 'dienas_dienām_diena_dienas'.split('_'), + 'dd': 'dienas_dienām_diena_dienas'.split('_'), + 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), + 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), + 'y': 'gada_gadiem_gads_gadi'.split('_'), + 'yy': 'gada_gadiem_gads_gadi'.split('_') }; - - var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond']; - - function isDurationValid(m) { - for (var key in m) { - if (!(ordering.indexOf(key) !== -1 && (m[key] == null || !isNaN(m[key])))) { - return false; - } - } - - var unitHasDecimal = false; - for (var i = 0; i < ordering.length; ++i) { - if (m[ordering[i]]) { - if (unitHasDecimal) { - return false; // only allow non-integers for smallest unit - } - if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) { - unitHasDecimal = true; - } - } + /** + * @param withoutSuffix boolean true = a length of time; false = before/after a period of time. + */ + function format(forms, number, withoutSuffix) { + if (withoutSuffix) { + // E.g. "21 minūte", "3 minūtes". + return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3]; + } else { + // E.g. "21 minūtes" as in "pēc 21 minūtes". + // E.g. "3 minūtēm" as in "pēc 3 minūtēm". + return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1]; } - - return true; } - - function isValid$1() { - return this._isValid; + function relativeTimeWithPlural(number, withoutSuffix, key) { + return number + ' ' + format(units[key], number, withoutSuffix); } - - function createInvalid$1() { - return createDuration(NaN); + function relativeTimeWithSingular(number, withoutSuffix, key) { + return format(units[key], number, withoutSuffix); + } + function relativeSeconds(number, withoutSuffix) { + return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm'; } - function Duration (duration) { - var normalizedInput = normalizeObjectUnits(duration), - years = normalizedInput.year || 0, - quarters = normalizedInput.quarter || 0, - months = normalizedInput.month || 0, - weeks = normalizedInput.week || 0, - days = normalizedInput.day || 0, - hours = normalizedInput.hour || 0, - minutes = normalizedInput.minute || 0, - seconds = normalizedInput.second || 0, - milliseconds = normalizedInput.millisecond || 0; + var lv = moment.defineLocale('lv', { + months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'), + monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'), + weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'), + weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'), + weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD.MM.YYYY.', + LL : 'YYYY. [gada] D. MMMM', + LLL : 'YYYY. [gada] D. MMMM, HH:mm', + LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm' + }, + calendar : { + sameDay : '[Šodien pulksten] LT', + nextDay : '[Rīt pulksten] LT', + nextWeek : 'dddd [pulksten] LT', + lastDay : '[Vakar pulksten] LT', + lastWeek : '[Pagājušā] dddd [pulksten] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'pēc %s', + past : 'pirms %s', + s : relativeSeconds, + m : relativeTimeWithSingular, + mm : relativeTimeWithPlural, + h : relativeTimeWithSingular, + hh : relativeTimeWithPlural, + d : relativeTimeWithSingular, + dd : relativeTimeWithPlural, + M : relativeTimeWithSingular, + MM : relativeTimeWithPlural, + y : relativeTimeWithSingular, + yy : relativeTimeWithPlural + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + } + }); - this._isValid = isDurationValid(normalizedInput); + return lv; - // representation for dateAddRemove - this._milliseconds = +milliseconds + - seconds * 1e3 + // 1000 - minutes * 6e4 + // 1000 * 60 - hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978 - // Because of dateAddRemove treats 24 hours as different from a - // day when working around DST, we need to store them separately - this._days = +days + - weeks * 7; - // It is impossible translate months into days without knowing - // which months you are are talking about, so we have to store - // it separately. - this._months = +months + - quarters * 3 + - years * 12; + }))); + + +/***/ }), +/* 404 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Montenegrin [me] + //! author : Miodrag Nikač : https://github.com/miodragnikac - this._data = {}; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - this._locale = getLocale(); - this._bubble(); - } + var translator = { + words: { //Different grammatical cases + m: ['jedan minut', 'jednog minuta'], + mm: ['minut', 'minuta', 'minuta'], + h: ['jedan sat', 'jednog sata'], + hh: ['sat', 'sata', 'sati'], + dd: ['dan', 'dana', 'dana'], + MM: ['mjesec', 'mjeseca', 'mjeseci'], + yy: ['godina', 'godine', 'godina'] + }, + correctGrammaticalCase: function (number, wordKey) { + return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]); + }, + translate: function (number, withoutSuffix, key) { + var wordKey = translator.words[key]; + if (key.length === 1) { + return withoutSuffix ? wordKey[0] : wordKey[1]; + } else { + return number + ' ' + translator.correctGrammaticalCase(number, wordKey); + } + } + }; - function isDuration (obj) { - return obj instanceof Duration; - } + var me = moment.defineLocale('me', { + months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'), + monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'), + monthsParseExact : true, + weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'), + weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact : true, + longDateFormat: { + LT: 'H:mm', + LTS : 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm' + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sjutra u] LT', - function absRound (number) { - if (number < 0) { - return Math.round(-1 * number) * -1; - } else { - return Math.round(number); + nextWeek: function () { + switch (this.day()) { + case 0: + return '[u] [nedjelju] [u] LT'; + case 3: + return '[u] [srijedu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; + } + }, + lastDay : '[juče u] LT', + lastWeek : function () { + var lastWeekDays = [ + '[prošle] [nedjelje] [u] LT', + '[prošlog] [ponedjeljka] [u] LT', + '[prošlog] [utorka] [u] LT', + '[prošle] [srijede] [u] LT', + '[prošlog] [četvrtka] [u] LT', + '[prošlog] [petka] [u] LT', + '[prošle] [subote] [u] LT' + ]; + return lastWeekDays[this.day()]; + }, + sameElse : 'L' + }, + relativeTime : { + future : 'za %s', + past : 'prije %s', + s : 'nekoliko sekundi', + m : translator.translate, + mm : translator.translate, + h : translator.translate, + hh : translator.translate, + d : 'dan', + dd : translator.translate, + M : 'mjesec', + MM : translator.translate, + y : 'godinu', + yy : translator.translate + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. } - } + }); - // FORMATTING + return me; - function offset (token, separator) { - addFormatToken(token, 0, 0, function () { - var offset = this.utcOffset(); - var sign = '+'; - if (offset < 0) { - offset = -offset; - sign = '-'; - } - return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2); - }); - } + }))); + + +/***/ }), +/* 405 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Maori [mi] + //! author : John Corrigan : https://github.com/johnideal - offset('Z', ':'); - offset('ZZ', ''); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // PARSING - addRegexToken('Z', matchShortOffset); - addRegexToken('ZZ', matchShortOffset); - addParseToken(['Z', 'ZZ'], function (input, array, config) { - config._useUTC = true; - config._tzm = offsetFromString(matchShortOffset, input); + var mi = moment.defineLocale('mi', { + months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'), + monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'), + monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, + monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, + monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, + monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i, + weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'), + weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), + weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [i] HH:mm', + LLLL: 'dddd, D MMMM YYYY [i] HH:mm' + }, + calendar: { + sameDay: '[i teie mahana, i] LT', + nextDay: '[apopo i] LT', + nextWeek: 'dddd [i] LT', + lastDay: '[inanahi i] LT', + lastWeek: 'dddd [whakamutunga i] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'i roto i %s', + past: '%s i mua', + s: 'te hēkona ruarua', + m: 'he meneti', + mm: '%d meneti', + h: 'te haora', + hh: '%d haora', + d: 'he ra', + dd: '%d ra', + M: 'he marama', + MM: '%d marama', + y: 'he tau', + yy: '%d tau' + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + } }); - // HELPERS - - // timezone chunker - // '+10:00' > ['10', '00'] - // '-1530' > ['-15', '30'] - var chunkOffset = /([\+\-]|\d\d)/gi; - - function offsetFromString(matcher, string) { - var matches = (string || '').match(matcher); + return mi; - if (matches === null) { - return null; - } + }))); + + +/***/ }), +/* 406 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Macedonian [mk] + //! author : Borislav Mickov : https://github.com/B0k0 - var chunk = matches[matches.length - 1] || []; - var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0]; - var minutes = +(parts[1] * 60) + toInt(parts[2]); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return minutes === 0 ? - 0 : - parts[0] === '+' ? minutes : -minutes; - } - // Return a moment from input, that is local/utc/zone equivalent to model. - function cloneWithOffset(input, model) { - var res, diff; - if (model._isUTC) { - res = model.clone(); - diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf(); - // Use low-level api, because this fn is low-level api. - res._d.setTime(res._d.valueOf() + diff); - hooks.updateOffset(res, false); - return res; - } else { - return createLocal(input).local(); + var mk = moment.defineLocale('mk', { + months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'), + monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'), + weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'), + weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'), + weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'), + longDateFormat : { + LT : 'H:mm', + LTS : 'H:mm:ss', + L : 'D.MM.YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY H:mm', + LLLL : 'dddd, D MMMM YYYY H:mm' + }, + calendar : { + sameDay : '[Денес во] LT', + nextDay : '[Утре во] LT', + nextWeek : '[Во] dddd [во] LT', + lastDay : '[Вчера во] LT', + lastWeek : function () { + switch (this.day()) { + case 0: + case 3: + case 6: + return '[Изминатата] dddd [во] LT'; + case 1: + case 2: + case 4: + case 5: + return '[Изминатиот] dddd [во] LT'; + } + }, + sameElse : 'L' + }, + relativeTime : { + future : 'после %s', + past : 'пред %s', + s : 'неколку секунди', + m : 'минута', + mm : '%d минути', + h : 'час', + hh : '%d часа', + d : 'ден', + dd : '%d дена', + M : 'месец', + MM : '%d месеци', + y : 'година', + yy : '%d години' + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, + ordinal : function (number) { + var lastDigit = number % 10, + last2Digits = number % 100; + if (number === 0) { + return number + '-ев'; + } else if (last2Digits === 0) { + return number + '-ен'; + } else if (last2Digits > 10 && last2Digits < 20) { + return number + '-ти'; + } else if (lastDigit === 1) { + return number + '-ви'; + } else if (lastDigit === 2) { + return number + '-ри'; + } else if (lastDigit === 7 || lastDigit === 8) { + return number + '-ми'; + } else { + return number + '-ти'; + } + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. } - } + }); - function getDateOffset (m) { - // On Firefox.24 Date#getTimezoneOffset returns a floating point. - // https://github.com/moment/moment/pull/1871 - return -Math.round(m._d.getTimezoneOffset() / 15) * 15; - } + return mk; - // HOOKS + }))); + + +/***/ }), +/* 407 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Malayalam [ml] + //! author : Floyd Pink : https://github.com/floydpink - // This function will be called whenever a moment is mutated. - // It is intended to keep the offset in sync with the timezone. - hooks.updateOffset = function () {}; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // MOMENTS - // keepLocalTime = true means only change the timezone, without - // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]--> - // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset - // +0200, so we adjust the time as needed, to be valid. - // - // Keeping the time actually adds/subtracts (one hour) - // from the actual represented time. That is why we call updateOffset - // a second time. In case it wants us to change the offset again - // _changeInProgress == true case, then we have to adjust, because - // there is no such time in the given timezone. - function getSetOffset (input, keepLocalTime, keepMinutes) { - var offset = this._offset || 0, - localAdjust; - if (!this.isValid()) { - return input != null ? this : NaN; - } - if (input != null) { - if (typeof input === 'string') { - input = offsetFromString(matchShortOffset, input); - if (input === null) { - return this; - } - } else if (Math.abs(input) < 16 && !keepMinutes) { - input = input * 60; - } - if (!this._isUTC && keepLocalTime) { - localAdjust = getDateOffset(this); + var ml = moment.defineLocale('ml', { + months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'), + monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'), + monthsParseExact : true, + weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'), + weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'), + weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'), + longDateFormat : { + LT : 'A h:mm -നു', + LTS : 'A h:mm:ss -നു', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY, A h:mm -നു', + LLLL : 'dddd, D MMMM YYYY, A h:mm -നു' + }, + calendar : { + sameDay : '[ഇന്ന്] LT', + nextDay : '[നാളെ] LT', + nextWeek : 'dddd, LT', + lastDay : '[ഇന്നലെ] LT', + lastWeek : '[കഴിഞ്ഞ] dddd, LT', + sameElse : 'L' + }, + relativeTime : { + future : '%s കഴിഞ്ഞ്', + past : '%s മുൻപ്', + s : 'അൽപ നിമിഷങ്ങൾ', + m : 'ഒരു മിനിറ്റ്', + mm : '%d മിനിറ്റ്', + h : 'ഒരു മണിക്കൂർ', + hh : '%d മണിക്കൂർ', + d : 'ഒരു ദിവസം', + dd : '%d ദിവസം', + M : 'ഒരു മാസം', + MM : '%d മാസം', + y : 'ഒരു വർഷം', + yy : '%d വർഷം' + }, + meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i, + meridiemHour : function (hour, meridiem) { + if (hour === 12) { + hour = 0; } - this._offset = input; - this._isUTC = true; - if (localAdjust != null) { - this.add(localAdjust, 'm'); + if ((meridiem === 'രാത്രി' && hour >= 4) || + meridiem === 'ഉച്ച കഴിഞ്ഞ്' || + meridiem === 'വൈകുന്നേരം') { + return hour + 12; + } else { + return hour; } - if (offset !== input) { - if (!keepLocalTime || this._changeInProgress) { - addSubtract(this, createDuration(input - offset, 'm'), 1, false); - } else if (!this._changeInProgress) { - this._changeInProgress = true; - hooks.updateOffset(this, true); - this._changeInProgress = null; - } + }, + meridiem : function (hour, minute, isLower) { + if (hour < 4) { + return 'രാത്രി'; + } else if (hour < 12) { + return 'രാവിലെ'; + } else if (hour < 17) { + return 'ഉച്ച കഴിഞ്ഞ്'; + } else if (hour < 20) { + return 'വൈകുന്നേരം'; + } else { + return 'രാത്രി'; } - return this; - } else { - return this._isUTC ? offset : getDateOffset(this); } - } + }); - function getSetZone (input, keepLocalTime) { - if (input != null) { - if (typeof input !== 'string') { - input = -input; - } + return ml; - this.utcOffset(input, keepLocalTime); + }))); + + +/***/ }), +/* 408 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Marathi [mr] + //! author : Harshad Kale : https://github.com/kalehv + //! author : Vivek Athalye : https://github.com/vnathalye - return this; - } else { - return -this.utcOffset(); - } - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function setOffsetToUTC (keepLocalTime) { - return this.utcOffset(0, keepLocalTime); - } - function setOffsetToLocal (keepLocalTime) { - if (this._isUTC) { - this.utcOffset(0, keepLocalTime); - this._isUTC = false; + var symbolMap = { + '1': '१', + '2': '२', + '3': '३', + '4': '४', + '5': '५', + '6': '६', + '7': '७', + '8': '८', + '9': '९', + '0': '०' + }; + var numberMap = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0' + }; - if (keepLocalTime) { - this.subtract(getDateOffset(this), 'm'); + function relativeTimeMr(number, withoutSuffix, string, isFuture) + { + var output = ''; + if (withoutSuffix) { + switch (string) { + case 's': output = 'काही सेकंद'; break; + case 'm': output = 'एक मिनिट'; break; + case 'mm': output = '%d मिनिटे'; break; + case 'h': output = 'एक तास'; break; + case 'hh': output = '%d तास'; break; + case 'd': output = 'एक दिवस'; break; + case 'dd': output = '%d दिवस'; break; + case 'M': output = 'एक महिना'; break; + case 'MM': output = '%d महिने'; break; + case 'y': output = 'एक वर्ष'; break; + case 'yy': output = '%d वर्षे'; break; } } - return this; - } - - function setOffsetToParsedOffset () { - if (this._tzm != null) { - this.utcOffset(this._tzm, false, true); - } else if (typeof this._i === 'string') { - var tZone = offsetFromString(matchOffset, this._i); - if (tZone != null) { - this.utcOffset(tZone); - } - else { - this.utcOffset(0, true); + else { + switch (string) { + case 's': output = 'काही सेकंदां'; break; + case 'm': output = 'एका मिनिटा'; break; + case 'mm': output = '%d मिनिटां'; break; + case 'h': output = 'एका तासा'; break; + case 'hh': output = '%d तासां'; break; + case 'd': output = 'एका दिवसा'; break; + case 'dd': output = '%d दिवसां'; break; + case 'M': output = 'एका महिन्या'; break; + case 'MM': output = '%d महिन्यां'; break; + case 'y': output = 'एका वर्षा'; break; + case 'yy': output = '%d वर्षां'; break; } } - return this; - } - - function hasAlignedHourOffset (input) { - if (!this.isValid()) { - return false; - } - input = input ? createLocal(input).utcOffset() : 0; - - return (this.utcOffset() - input) % 60 === 0; - } - - function isDaylightSavingTime () { - return ( - this.utcOffset() > this.clone().month(0).utcOffset() || - this.utcOffset() > this.clone().month(5).utcOffset() - ); + return output.replace(/%d/i, number); } - function isDaylightSavingTimeShifted () { - if (!isUndefined(this._isDSTShifted)) { - return this._isDSTShifted; - } - - var c = {}; - - copyConfig(c, this); - c = prepareConfig(c); - - if (c._a) { - var other = c._isUTC ? createUTC(c._a) : createLocal(c._a); - this._isDSTShifted = this.isValid() && - compareArrays(c._a, other.toArray()) > 0; - } else { - this._isDSTShifted = false; + var mr = moment.defineLocale('mr', { + months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'), + monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'), + monthsParseExact : true, + weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), + weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'), + weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'), + longDateFormat : { + LT : 'A h:mm वाजता', + LTS : 'A h:mm:ss वाजता', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY, A h:mm वाजता', + LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता' + }, + calendar : { + sameDay : '[आज] LT', + nextDay : '[उद्या] LT', + nextWeek : 'dddd, LT', + lastDay : '[काल] LT', + lastWeek: '[मागील] dddd, LT', + sameElse : 'L' + }, + relativeTime : { + future: '%sमध्ये', + past: '%sपूर्वी', + s: relativeTimeMr, + m: relativeTimeMr, + mm: relativeTimeMr, + h: relativeTimeMr, + hh: relativeTimeMr, + d: relativeTimeMr, + dd: relativeTimeMr, + M: relativeTimeMr, + MM: relativeTimeMr, + y: relativeTimeMr, + yy: relativeTimeMr + }, + preparse: function (string) { + return string.replace(/[१२३४५६७८९०]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/, + meridiemHour : function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'रात्री') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'सकाळी') { + return hour; + } else if (meridiem === 'दुपारी') { + return hour >= 10 ? hour : hour + 12; + } else if (meridiem === 'सायंकाळी') { + return hour + 12; + } + }, + meridiem: function (hour, minute, isLower) { + if (hour < 4) { + return 'रात्री'; + } else if (hour < 10) { + return 'सकाळी'; + } else if (hour < 17) { + return 'दुपारी'; + } else if (hour < 20) { + return 'सायंकाळी'; + } else { + return 'रात्री'; + } + }, + week : { + dow : 0, // Sunday is the first day of the week. + doy : 6 // The week that contains Jan 1st is the first week of the year. } + }); - return this._isDSTShifted; - } - - function isLocal () { - return this.isValid() ? !this._isUTC : false; - } - - function isUtcOffset () { - return this.isValid() ? this._isUTC : false; - } - - function isUtc () { - return this.isValid() ? this._isUTC && this._offset === 0 : false; - } + return mr; - // ASP.NET json date format regex - var aspNetRegex = /^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/; + }))); + + +/***/ }), +/* 409 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Malay [ms] + //! author : Weldan Jamili : https://github.com/weldan - // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html - // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere - // and further modified to allow for strings containing both week and day - 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)?)?$/; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function createDuration (input, key) { - var duration = input, - // matching against regexp is expensive, do it on demand - match = null, - sign, - ret, - diffRes; - if (isDuration(input)) { - duration = { - ms : input._milliseconds, - d : input._days, - M : input._months - }; - } else if (isNumber(input)) { - duration = {}; - if (key) { - duration[key] = input; + var ms = moment.defineLocale('ms', { + months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'), + monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), + weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), + weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), + weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), + longDateFormat : { + LT : 'HH.mm', + LTS : 'HH.mm.ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY [pukul] HH.mm', + LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' + }, + meridiemParse: /pagi|tengahari|petang|malam/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'pagi') { + return hour; + } else if (meridiem === 'tengahari') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === 'petang' || meridiem === 'malam') { + return hour + 12; + } + }, + meridiem : function (hours, minutes, isLower) { + if (hours < 11) { + return 'pagi'; + } else if (hours < 15) { + return 'tengahari'; + } else if (hours < 19) { + return 'petang'; } else { - duration.milliseconds = input; + return 'malam'; } - } else if (!!(match = aspNetRegex.exec(input))) { - sign = (match[1] === '-') ? -1 : 1; - duration = { - y : 0, - d : toInt(match[DATE]) * sign, - h : toInt(match[HOUR]) * sign, - m : toInt(match[MINUTE]) * sign, - s : toInt(match[SECOND]) * sign, - ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match - }; - } else if (!!(match = isoRegex.exec(input))) { - sign = (match[1] === '-') ? -1 : 1; - duration = { - y : parseIso(match[2], sign), - M : parseIso(match[3], sign), - w : parseIso(match[4], sign), - d : parseIso(match[5], sign), - h : parseIso(match[6], sign), - m : parseIso(match[7], sign), - s : parseIso(match[8], sign) - }; - } else if (duration == null) {// checks for null or undefined - duration = {}; - } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) { - diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to)); - - duration = {}; - duration.ms = diffRes.milliseconds; - duration.M = diffRes.months; - } - - ret = new Duration(duration); - - if (isDuration(input) && hasOwnProp(input, '_locale')) { - ret._locale = input._locale; + }, + calendar : { + sameDay : '[Hari ini pukul] LT', + nextDay : '[Esok pukul] LT', + nextWeek : 'dddd [pukul] LT', + lastDay : '[Kelmarin pukul] LT', + lastWeek : 'dddd [lepas pukul] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'dalam %s', + past : '%s yang lepas', + s : 'beberapa saat', + m : 'seminit', + mm : '%d minit', + h : 'sejam', + hh : '%d jam', + d : 'sehari', + dd : '%d hari', + M : 'sebulan', + MM : '%d bulan', + y : 'setahun', + yy : '%d tahun' + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. } + }); - return ret; - } + return ms; - createDuration.fn = Duration.prototype; - createDuration.invalid = createInvalid$1; + }))); + + +/***/ }), +/* 410 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Malay [ms-my] + //! note : DEPRECATED, the correct one is [ms] + //! author : Weldan Jamili : https://github.com/weldan - function parseIso (inp, sign) { - // We'd normally use ~~inp for this, but unfortunately it also - // converts floats to ints. - // inp may be undefined, so careful calling replace on it. - var res = inp && parseFloat(inp.replace(',', '.')); - // apply sign while we're at it - return (isNaN(res) ? 0 : res) * sign; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function positiveMomentsDifference(base, other) { - var res = {milliseconds: 0, months: 0}; - res.months = other.month() - base.month() + - (other.year() - base.year()) * 12; - if (base.clone().add(res.months, 'M').isAfter(other)) { - --res.months; + var msMy = moment.defineLocale('ms-my', { + months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'), + monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), + weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), + weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), + weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), + longDateFormat : { + LT : 'HH.mm', + LTS : 'HH.mm.ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY [pukul] HH.mm', + LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' + }, + meridiemParse: /pagi|tengahari|petang|malam/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'pagi') { + return hour; + } else if (meridiem === 'tengahari') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === 'petang' || meridiem === 'malam') { + return hour + 12; + } + }, + meridiem : function (hours, minutes, isLower) { + if (hours < 11) { + return 'pagi'; + } else if (hours < 15) { + return 'tengahari'; + } else if (hours < 19) { + return 'petang'; + } else { + return 'malam'; + } + }, + calendar : { + sameDay : '[Hari ini pukul] LT', + nextDay : '[Esok pukul] LT', + nextWeek : 'dddd [pukul] LT', + lastDay : '[Kelmarin pukul] LT', + lastWeek : 'dddd [lepas pukul] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'dalam %s', + past : '%s yang lepas', + s : 'beberapa saat', + m : 'seminit', + mm : '%d minit', + h : 'sejam', + hh : '%d jam', + d : 'sehari', + dd : '%d hari', + M : 'sebulan', + MM : '%d bulan', + y : 'setahun', + yy : '%d tahun' + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. } + }); - res.milliseconds = +other - +(base.clone().add(res.months, 'M')); + return msMy; - return res; - } + }))); + + +/***/ }), +/* 411 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Burmese [my] + //! author : Squar team, mysquar.com + //! author : David Rossellat : https://github.com/gholadr + //! author : Tin Aung Lin : https://github.com/thanyawzinmin - function momentsDifference(base, other) { - var res; - if (!(base.isValid() && other.isValid())) { - return {milliseconds: 0, months: 0}; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - other = cloneWithOffset(other, base); - if (base.isBefore(other)) { - res = positiveMomentsDifference(base, other); - } else { - res = positiveMomentsDifference(other, base); - res.milliseconds = -res.milliseconds; - res.months = -res.months; - } - return res; - } + var symbolMap = { + '1': '၁', + '2': '၂', + '3': '၃', + '4': '၄', + '5': '၅', + '6': '၆', + '7': '၇', + '8': '၈', + '9': '၉', + '0': '၀' + }; + var numberMap = { + '၁': '1', + '၂': '2', + '၃': '3', + '၄': '4', + '၅': '5', + '၆': '6', + '၇': '7', + '၈': '8', + '၉': '9', + '၀': '0' + }; - // TODO: remove 'name' arg after deprecation is removed - function createAdder(direction, name) { - return function (val, period) { - var dur, tmp; - //invert the arguments, but complain about it - if (period !== null && !isNaN(+period)) { - deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' + - 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'); - tmp = val; val = period; period = tmp; - } + var my = moment.defineLocale('my', { + months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'), + monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'), + weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'), + weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), + weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), - val = typeof val === 'string' ? +val : val; - dur = createDuration(val, period); - addSubtract(this, dur, direction); - return this; - }; - } + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[ယနေ.] LT [မှာ]', + nextDay: '[မနက်ဖြန်] LT [မှာ]', + nextWeek: 'dddd LT [မှာ]', + lastDay: '[မနေ.က] LT [မှာ]', + lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]', + sameElse: 'L' + }, + relativeTime: { + future: 'လာမည့် %s မှာ', + past: 'လွန်ခဲ့သော %s က', + s: 'စက္ကန်.အနည်းငယ်', + m: 'တစ်မိနစ်', + mm: '%d မိနစ်', + h: 'တစ်နာရီ', + hh: '%d နာရီ', + d: 'တစ်ရက်', + dd: '%d ရက်', + M: 'တစ်လ', + MM: '%d လ', + y: 'တစ်နှစ်', + yy: '%d နှစ်' + }, + preparse: function (string) { + return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + week: { + dow: 1, // Monday is the first day of the week. + doy: 4 // The week that contains Jan 1st is the first week of the year. + } + }); - function addSubtract (mom, duration, isAdding, updateOffset) { - var milliseconds = duration._milliseconds, - days = absRound(duration._days), - months = absRound(duration._months); + return my; - if (!mom.isValid()) { - // No op - return; - } + }))); + + +/***/ }), +/* 412 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Norwegian Bokmål [nb] + //! authors : Espen Hovlandsdal : https://github.com/rexxars + //! Sigurd Gartmann : https://github.com/sigurdga - updateOffset = updateOffset == null ? true : updateOffset; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (milliseconds) { - mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding); - } - if (days) { - set$1(mom, 'Date', get(mom, 'Date') + days * isAdding); - } - if (months) { - setMonth(mom, get(mom, 'Month') + months * isAdding); - } - if (updateOffset) { - hooks.updateOffset(mom, days || months); - } - } - var add = createAdder(1, 'add'); - var subtract = createAdder(-1, 'subtract'); + var nb = moment.defineLocale('nb', { + months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'), + monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'), + monthsParseExact : true, + weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), + weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'), + weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D. MMMM YYYY', + LLL : 'D. MMMM YYYY [kl.] HH:mm', + LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm' + }, + calendar : { + sameDay: '[i dag kl.] LT', + nextDay: '[i morgen kl.] LT', + nextWeek: 'dddd [kl.] LT', + lastDay: '[i går kl.] LT', + lastWeek: '[forrige] dddd [kl.] LT', + sameElse: 'L' + }, + relativeTime : { + future : 'om %s', + past : '%s siden', + s : 'noen sekunder', + m : 'ett minutt', + mm : '%d minutter', + h : 'en time', + hh : '%d timer', + d : 'en dag', + dd : '%d dager', + M : 'en måned', + MM : '%d måneder', + y : 'ett år', + yy : '%d år' + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + } + }); - function getCalendarFormat(myMoment, now) { - var diff = myMoment.diff(now, 'days', true); - return diff < -6 ? 'sameElse' : - diff < -1 ? 'lastWeek' : - diff < 0 ? 'lastDay' : - diff < 1 ? 'sameDay' : - diff < 2 ? 'nextDay' : - diff < 7 ? 'nextWeek' : 'sameElse'; - } + return nb; - function calendar$1 (time, formats) { - // We want to compare the start of today, vs this. - // Getting start-of-today depends on whether we're local/utc/offset or not. - var now = time || createLocal(), - sod = cloneWithOffset(now, this).startOf('day'), - format = hooks.calendarFormat(this, sod) || 'sameElse'; + }))); + + +/***/ }), +/* 413 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Nepalese [ne] + //! author : suvash : https://github.com/suvash - var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return this.format(output || this.localeData().calendar(format, this, createLocal(now))); - } - function clone () { - return new Moment(this); - } + var symbolMap = { + '1': '१', + '2': '२', + '3': '३', + '4': '४', + '5': '५', + '6': '६', + '7': '७', + '8': '८', + '9': '९', + '0': '०' + }; + var numberMap = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0' + }; - function isAfter (input, units) { - var localInput = isMoment(input) ? input : createLocal(input); - if (!(this.isValid() && localInput.isValid())) { - return false; - } - units = normalizeUnits(!isUndefined(units) ? units : 'millisecond'); - if (units === 'millisecond') { - return this.valueOf() > localInput.valueOf(); - } else { - return localInput.valueOf() < this.clone().startOf(units).valueOf(); + var ne = moment.defineLocale('ne', { + months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'), + monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'), + monthsParseExact : true, + weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'), + weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'), + weekdaysMin : 'आ._सो._मं._बु._बि._शु._श.'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'Aको h:mm बजे', + LTS : 'Aको h:mm:ss बजे', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY, Aको h:mm बजे', + LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे' + }, + preparse: function (string) { + return string.replace(/[१२३४५६७८९०]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + meridiemParse: /राति|बिहान|दिउँसो|साँझ/, + meridiemHour : function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'राति') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'बिहान') { + return hour; + } else if (meridiem === 'दिउँसो') { + return hour >= 10 ? hour : hour + 12; + } else if (meridiem === 'साँझ') { + return hour + 12; + } + }, + meridiem : function (hour, minute, isLower) { + if (hour < 3) { + return 'राति'; + } else if (hour < 12) { + return 'बिहान'; + } else if (hour < 16) { + return 'दिउँसो'; + } else if (hour < 20) { + return 'साँझ'; + } else { + return 'राति'; + } + }, + calendar : { + sameDay : '[आज] LT', + nextDay : '[भोलि] LT', + nextWeek : '[आउँदो] dddd[,] LT', + lastDay : '[हिजो] LT', + lastWeek : '[गएको] dddd[,] LT', + sameElse : 'L' + }, + relativeTime : { + future : '%sमा', + past : '%s अगाडि', + s : 'केही क्षण', + m : 'एक मिनेट', + mm : '%d मिनेट', + h : 'एक घण्टा', + hh : '%d घण्टा', + d : 'एक दिन', + dd : '%d दिन', + M : 'एक महिना', + MM : '%d महिना', + y : 'एक बर्ष', + yy : '%d बर्ष' + }, + week : { + dow : 0, // Sunday is the first day of the week. + doy : 6 // The week that contains Jan 1st is the first week of the year. } - } + }); - function isBefore (input, units) { - var localInput = isMoment(input) ? input : createLocal(input); - if (!(this.isValid() && localInput.isValid())) { - return false; - } - units = normalizeUnits(!isUndefined(units) ? units : 'millisecond'); - if (units === 'millisecond') { - return this.valueOf() < localInput.valueOf(); - } else { - return this.clone().endOf(units).valueOf() < localInput.valueOf(); - } - } + return ne; - function isBetween (from, to, units, inclusivity) { - inclusivity = inclusivity || '()'; - return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) && - (inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units)); - } + }))); + + +/***/ }), +/* 414 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Dutch [nl] + //! author : Joris Röling : https://github.com/jorisroling + //! author : Jacob Middag : https://github.com/middagj - function isSame (input, units) { - var localInput = isMoment(input) ? input : createLocal(input), - inputMs; - if (!(this.isValid() && localInput.isValid())) { - return false; - } - units = normalizeUnits(units || 'millisecond'); - if (units === 'millisecond') { - return this.valueOf() === localInput.valueOf(); - } else { - inputMs = localInput.valueOf(); - return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf(); - } - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function isSameOrAfter (input, units) { - return this.isSame(input, units) || this.isAfter(input,units); - } - function isSameOrBefore (input, units) { - return this.isSame(input, units) || this.isBefore(input,units); - } + var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'); + var monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'); - function diff (input, units, asFloat) { - var that, - zoneDelta, - delta, output; + var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i]; + var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; - if (!this.isValid()) { - return NaN; - } + var nl = moment.defineLocale('nl', { + months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'), + monthsShort : function (m, format) { + if (!m) { + return monthsShortWithDots; + } else if (/-MMM-/.test(format)) { + return monthsShortWithoutDots[m.month()]; + } else { + return monthsShortWithDots[m.month()]; + } + }, - that = cloneWithOffset(input, this); + monthsRegex: monthsRegex, + monthsShortRegex: monthsRegex, + monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i, + monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, - if (!that.isValid()) { - return NaN; + monthsParse : monthsParse, + longMonthsParse : monthsParse, + shortMonthsParse : monthsParse, + + weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'), + weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'), + weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD-MM-YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd D MMMM YYYY HH:mm' + }, + calendar : { + sameDay: '[vandaag om] LT', + nextDay: '[morgen om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[gisteren om] LT', + lastWeek: '[afgelopen] dddd [om] LT', + sameElse: 'L' + }, + relativeTime : { + future : 'over %s', + past : '%s geleden', + s : 'een paar seconden', + m : 'één minuut', + mm : '%d minuten', + h : 'één uur', + hh : '%d uur', + d : 'één dag', + dd : '%d dagen', + M : 'één maand', + MM : '%d maanden', + y : 'één jaar', + yy : '%d jaar' + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal : function (number) { + return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } + }); - zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4; + return nl; - units = normalizeUnits(units); + }))); + + +/***/ }), +/* 415 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Dutch (Belgium) [nl-be] + //! author : Joris Röling : https://github.com/jorisroling + //! author : Jacob Middag : https://github.com/middagj - if (units === 'year' || units === 'month' || units === 'quarter') { - output = monthDiff(this, that); - if (units === 'quarter') { - output = output / 3; - } else if (units === 'year') { - output = output / 12; - } - } else { - delta = this - that; - output = units === 'second' ? delta / 1e3 : // 1000 - units === 'minute' ? delta / 6e4 : // 1000 * 60 - units === 'hour' ? delta / 36e5 : // 1000 * 60 * 60 - units === 'day' ? (delta - zoneDelta) / 864e5 : // 1000 * 60 * 60 * 24, negate dst - units === 'week' ? (delta - zoneDelta) / 6048e5 : // 1000 * 60 * 60 * 24 * 7, negate dst - delta; - } - return asFloat ? output : absFloor(output); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function monthDiff (a, b) { - // difference in months - var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()), - // b is in (anchor - 1 month, anchor + 1 month) - anchor = a.clone().add(wholeMonthDiff, 'months'), - anchor2, adjust; - if (b - anchor < 0) { - anchor2 = a.clone().add(wholeMonthDiff - 1, 'months'); - // linear across the month - adjust = (b - anchor) / (anchor - anchor2); - } else { - anchor2 = a.clone().add(wholeMonthDiff + 1, 'months'); - // linear across the month - adjust = (b - anchor) / (anchor2 - anchor); - } + var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'); + var monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'); - //check for negative zero, return zero if negative zero - return -(wholeMonthDiff + adjust) || 0; - } + var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i]; + var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; - hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'; - hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]'; + var nlBe = moment.defineLocale('nl-be', { + months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'), + monthsShort : function (m, format) { + if (!m) { + return monthsShortWithDots; + } else if (/-MMM-/.test(format)) { + return monthsShortWithoutDots[m.month()]; + } else { + return monthsShortWithDots[m.month()]; + } + }, - function toString () { - return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); - } + monthsRegex: monthsRegex, + monthsShortRegex: monthsRegex, + monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i, + monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, - function toISOString() { - if (!this.isValid()) { - return null; - } - var m = this.clone().utc(); - if (m.year() < 0 || m.year() > 9999) { - return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); - } - if (isFunction(Date.prototype.toISOString)) { - // native implementation is ~50x faster, use it when we can - return this.toDate().toISOString(); - } - return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); - } + monthsParse : monthsParse, + longMonthsParse : monthsParse, + shortMonthsParse : monthsParse, - /** - * Return a human readable representation of a moment that can - * also be evaluated to get a new moment which is the same - * - * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects - */ - function inspect () { - if (!this.isValid()) { - return 'moment.invalid(/* ' + this._i + ' */)'; - } - var func = 'moment'; - var zone = ''; - if (!this.isLocal()) { - func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone'; - zone = 'Z'; + weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'), + weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'), + weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd D MMMM YYYY HH:mm' + }, + calendar : { + sameDay: '[vandaag om] LT', + nextDay: '[morgen om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[gisteren om] LT', + lastWeek: '[afgelopen] dddd [om] LT', + sameElse: 'L' + }, + relativeTime : { + future : 'over %s', + past : '%s geleden', + s : 'een paar seconden', + m : 'één minuut', + mm : '%d minuten', + h : 'één uur', + hh : '%d uur', + d : 'één dag', + dd : '%d dagen', + M : 'één maand', + MM : '%d maanden', + y : 'één jaar', + yy : '%d jaar' + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal : function (number) { + return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } - var prefix = '[' + func + '("]'; - var year = (0 <= this.year() && this.year() <= 9999) ? 'YYYY' : 'YYYYYY'; - var datetime = '-MM-DD[T]HH:mm:ss.SSS'; - var suffix = zone + '[")]'; + }); - return this.format(prefix + year + datetime + suffix); - } + return nlBe; - function format (inputString) { - if (!inputString) { - inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat; - } - var output = formatMoment(this, inputString); - return this.localeData().postformat(output); - } + }))); + + +/***/ }), +/* 416 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Nynorsk [nn] + //! author : https://github.com/mechuwind - function from (time, withoutSuffix) { - if (this.isValid() && - ((isMoment(time) && time.isValid()) || - createLocal(time).isValid())) { - return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix); - } else { - return this.localeData().invalidDate(); - } - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function fromNow (withoutSuffix) { - return this.from(createLocal(), withoutSuffix); - } - function to (time, withoutSuffix) { - if (this.isValid() && - ((isMoment(time) && time.isValid()) || - createLocal(time).isValid())) { - return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix); - } else { - return this.localeData().invalidDate(); + var nn = moment.defineLocale('nn', { + months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'), + monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), + weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'), + weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'), + weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D. MMMM YYYY', + LLL : 'D. MMMM YYYY [kl.] H:mm', + LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm' + }, + calendar : { + sameDay: '[I dag klokka] LT', + nextDay: '[I morgon klokka] LT', + nextWeek: 'dddd [klokka] LT', + lastDay: '[I går klokka] LT', + lastWeek: '[Føregåande] dddd [klokka] LT', + sameElse: 'L' + }, + relativeTime : { + future : 'om %s', + past : '%s sidan', + s : 'nokre sekund', + m : 'eit minutt', + mm : '%d minutt', + h : 'ein time', + hh : '%d timar', + d : 'ein dag', + dd : '%d dagar', + M : 'ein månad', + MM : '%d månader', + y : 'eit år', + yy : '%d år' + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } - } + }); - function toNow (withoutSuffix) { - return this.to(createLocal(), withoutSuffix); - } + return nn; - // If passed a locale key, it will set the locale for this - // instance. Otherwise, it will return the locale configuration - // variables for this instance. - function locale (key) { - var newLocaleData; + }))); + + +/***/ }), +/* 417 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Punjabi (India) [pa-in] + //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit - if (key === undefined) { - return this._locale._abbr; - } else { - newLocaleData = getLocale(key); - if (newLocaleData != null) { - this._locale = newLocaleData; - } - return this; - } - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var lang = deprecate( - 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', - function (key) { - if (key === undefined) { - return this.localeData(); + + var symbolMap = { + '1': '੧', + '2': '੨', + '3': '੩', + '4': '੪', + '5': '੫', + '6': '੬', + '7': '੭', + '8': '੮', + '9': '੯', + '0': '੦' + }; + var numberMap = { + '੧': '1', + '੨': '2', + '੩': '3', + '੪': '4', + '੫': '5', + '੬': '6', + '੭': '7', + '੮': '8', + '੯': '9', + '੦': '0' + }; + + var paIn = moment.defineLocale('pa-in', { + // There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi. + months : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'), + monthsShort : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'), + weekdays : 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'), + weekdaysShort : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), + weekdaysMin : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), + longDateFormat : { + LT : 'A h:mm ਵਜੇ', + LTS : 'A h:mm:ss ਵਜੇ', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY, A h:mm ਵਜੇ', + LLLL : 'dddd, D MMMM YYYY, A h:mm ਵਜੇ' + }, + calendar : { + sameDay : '[ਅਜ] LT', + nextDay : '[ਕਲ] LT', + nextWeek : 'dddd, LT', + lastDay : '[ਕਲ] LT', + lastWeek : '[ਪਿਛਲੇ] dddd, LT', + sameElse : 'L' + }, + relativeTime : { + future : '%s ਵਿੱਚ', + past : '%s ਪਿਛਲੇ', + s : 'ਕੁਝ ਸਕਿੰਟ', + m : 'ਇਕ ਮਿੰਟ', + mm : '%d ਮਿੰਟ', + h : 'ਇੱਕ ਘੰਟਾ', + hh : '%d ਘੰਟੇ', + d : 'ਇੱਕ ਦਿਨ', + dd : '%d ਦਿਨ', + M : 'ਇੱਕ ਮਹੀਨਾ', + MM : '%d ਮਹੀਨੇ', + y : 'ਇੱਕ ਸਾਲ', + yy : '%d ਸਾਲ' + }, + preparse: function (string) { + return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + // Punjabi notation for meridiems are quite fuzzy in practice. While there exists + // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi. + meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/, + meridiemHour : function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'ਰਾਤ') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'ਸਵੇਰ') { + return hour; + } else if (meridiem === 'ਦੁਪਹਿਰ') { + return hour >= 10 ? hour : hour + 12; + } else if (meridiem === 'ਸ਼ਾਮ') { + return hour + 12; + } + }, + meridiem : function (hour, minute, isLower) { + if (hour < 4) { + return 'ਰਾਤ'; + } else if (hour < 10) { + return 'ਸਵੇਰ'; + } else if (hour < 17) { + return 'ਦੁਪਹਿਰ'; + } else if (hour < 20) { + return 'ਸ਼ਾਮ'; } else { - return this.locale(key); + return 'ਰਾਤ'; } + }, + week : { + dow : 0, // Sunday is the first day of the week. + doy : 6 // The week that contains Jan 1st is the first week of the year. } - ); + }); - function localeData () { - return this._locale; - } + return paIn; - function startOf (units) { - units = normalizeUnits(units); - // the following switch intentionally omits break keywords - // to utilize falling through the cases. - switch (units) { - case 'year': - this.month(0); - /* falls through */ - case 'quarter': - case 'month': - this.date(1); - /* falls through */ - case 'week': - case 'isoWeek': - case 'day': - case 'date': - this.hours(0); - /* falls through */ - case 'hour': - this.minutes(0); - /* falls through */ - case 'minute': - this.seconds(0); - /* falls through */ - case 'second': - this.milliseconds(0); - } + }))); + + +/***/ }), +/* 418 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Polish [pl] + //! author : Rafal Hirsz : https://github.com/evoL - // weeks are a special case - if (units === 'week') { - this.weekday(0); - } - if (units === 'isoWeek') { - this.isoWeekday(1); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // quarters are also special - if (units === 'quarter') { - this.month(Math.floor(this.month() / 3) * 3); - } - return this; + var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'); + var monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_'); + function plural(n) { + return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1); } - - function endOf (units) { - units = normalizeUnits(units); - if (units === undefined || units === 'millisecond') { - return this; + function translate(number, withoutSuffix, key) { + var result = number + ' '; + switch (key) { + case 'm': + return withoutSuffix ? 'minuta' : 'minutę'; + case 'mm': + return result + (plural(number) ? 'minuty' : 'minut'); + case 'h': + return withoutSuffix ? 'godzina' : 'godzinę'; + case 'hh': + return result + (plural(number) ? 'godziny' : 'godzin'); + case 'MM': + return result + (plural(number) ? 'miesiące' : 'miesięcy'); + case 'yy': + return result + (plural(number) ? 'lata' : 'lat'); } + } - // 'date' is an alias for 'day', so it should be considered as such. - if (units === 'date') { - units = 'day'; + var pl = moment.defineLocale('pl', { + months : function (momentToFormat, format) { + if (!momentToFormat) { + return monthsNominative; + } else if (format === '') { + // Hack: if format empty we know this is used to generate + // RegExp by moment. Give then back both valid forms of months + // in RegExp ready format. + return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')'; + } else if (/D MMMM/.test(format)) { + return monthsSubjective[momentToFormat.month()]; + } else { + return monthsNominative[momentToFormat.month()]; + } + }, + monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'), + weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'), + weekdaysShort : 'ndz_pon_wt_śr_czw_pt_sob'.split('_'), + weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd, D MMMM YYYY HH:mm' + }, + calendar : { + sameDay: '[Dziś o] LT', + nextDay: '[Jutro o] LT', + nextWeek: '[W] dddd [o] LT', + lastDay: '[Wczoraj o] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[W zeszłą niedzielę o] LT'; + case 3: + return '[W zeszłą środę o] LT'; + case 6: + return '[W zeszłą sobotę o] LT'; + default: + return '[W zeszły] dddd [o] LT'; + } + }, + sameElse: 'L' + }, + relativeTime : { + future : 'za %s', + past : '%s temu', + s : 'kilka sekund', + m : translate, + mm : translate, + h : translate, + hh : translate, + d : '1 dzień', + dd : '%d dni', + M : 'miesiąc', + MM : translate, + y : 'rok', + yy : translate + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } + }); - return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms'); - } + return pl; - function valueOf () { - return this._d.valueOf() - ((this._offset || 0) * 60000); - } + }))); + + +/***/ }), +/* 419 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Portuguese [pt] + //! author : Jefferson : https://github.com/jalex79 - function unix () { - return Math.floor(this.valueOf() / 1000); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function toDate () { - return new Date(this.valueOf()); - } - function toArray () { - var m = this; - return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()]; - } + var pt = moment.defineLocale('pt', { + months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'), + monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'), + weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'), + weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), + weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D [de] MMMM [de] YYYY', + LLL : 'D [de] MMMM [de] YYYY HH:mm', + LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm' + }, + calendar : { + sameDay: '[Hoje às] LT', + nextDay: '[Amanhã às] LT', + nextWeek: 'dddd [às] LT', + lastDay: '[Ontem às] LT', + lastWeek: function () { + return (this.day() === 0 || this.day() === 6) ? + '[Último] dddd [às] LT' : // Saturday + Sunday + '[Última] dddd [às] LT'; // Monday - Friday + }, + sameElse: 'L' + }, + relativeTime : { + future : 'em %s', + past : 'há %s', + s : 'segundos', + m : 'um minuto', + mm : '%d minutos', + h : 'uma hora', + hh : '%d horas', + d : 'um dia', + dd : '%d dias', + M : 'um mês', + MM : '%d meses', + y : 'um ano', + yy : '%d anos' + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal : '%dº', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + } + }); - function toObject () { - var m = this; - return { - years: m.year(), - months: m.month(), - date: m.date(), - hours: m.hours(), - minutes: m.minutes(), - seconds: m.seconds(), - milliseconds: m.milliseconds() - }; - } + return pt; - function toJSON () { - // new Date(NaN).toJSON() === null - return this.isValid() ? this.toISOString() : null; - } + }))); + + +/***/ }), +/* 420 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Portuguese (Brazil) [pt-br] + //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira - function isValid$2 () { - return isValid(this); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function parsingFlags () { - return extend({}, getParsingFlags(this)); - } - function invalidAt () { - return getParsingFlags(this).overflow; - } + var ptBr = moment.defineLocale('pt-br', { + months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'), + monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'), + weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'), + weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), + weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D [de] MMMM [de] YYYY', + LLL : 'D [de] MMMM [de] YYYY [às] HH:mm', + LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm' + }, + calendar : { + sameDay: '[Hoje às] LT', + nextDay: '[Amanhã às] LT', + nextWeek: 'dddd [às] LT', + lastDay: '[Ontem às] LT', + lastWeek: function () { + return (this.day() === 0 || this.day() === 6) ? + '[Último] dddd [às] LT' : // Saturday + Sunday + '[Última] dddd [às] LT'; // Monday - Friday + }, + sameElse: 'L' + }, + relativeTime : { + future : 'em %s', + past : '%s atrás', + s : 'poucos segundos', + m : 'um minuto', + mm : '%d minutos', + h : 'uma hora', + hh : '%d horas', + d : 'um dia', + dd : '%d dias', + M : 'um mês', + MM : '%d meses', + y : 'um ano', + yy : '%d anos' + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal : '%dº' + }); - function creationData() { - return { - input: this._i, - format: this._f, - locale: this._locale, - isUTC: this._isUTC, - strict: this._strict - }; - } + return ptBr; - // FORMATTING + }))); + + +/***/ }), +/* 421 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Romanian [ro] + //! author : Vlad Gurdiga : https://github.com/gurdiga + //! author : Valentin Agachi : https://github.com/avaly - addFormatToken(0, ['gg', 2], 0, function () { - return this.weekYear() % 100; - }); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - addFormatToken(0, ['GG', 2], 0, function () { - return this.isoWeekYear() % 100; - }); - function addWeekYearFormatToken (token, getter) { - addFormatToken(0, [token, token.length], 0, getter); + function relativeTimeWithPlural(number, withoutSuffix, key) { + var format = { + 'mm': 'minute', + 'hh': 'ore', + 'dd': 'zile', + 'MM': 'luni', + 'yy': 'ani' + }, + separator = ' '; + if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) { + separator = ' de '; + } + return number + separator + format[key]; } - addWeekYearFormatToken('gggg', 'weekYear'); - addWeekYearFormatToken('ggggg', 'weekYear'); - addWeekYearFormatToken('GGGG', 'isoWeekYear'); - addWeekYearFormatToken('GGGGG', 'isoWeekYear'); + var ro = moment.defineLocale('ro', { + months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'), + monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'), + monthsParseExact: true, + weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'), + weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'), + weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'), + longDateFormat : { + LT : 'H:mm', + LTS : 'H:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY H:mm', + LLLL : 'dddd, D MMMM YYYY H:mm' + }, + calendar : { + sameDay: '[azi la] LT', + nextDay: '[mâine la] LT', + nextWeek: 'dddd [la] LT', + lastDay: '[ieri la] LT', + lastWeek: '[fosta] dddd [la] LT', + sameElse: 'L' + }, + relativeTime : { + future : 'peste %s', + past : '%s în urmă', + s : 'câteva secunde', + m : 'un minut', + mm : relativeTimeWithPlural, + h : 'o oră', + hh : relativeTimeWithPlural, + d : 'o zi', + dd : relativeTimeWithPlural, + M : 'o lună', + MM : relativeTimeWithPlural, + y : 'un an', + yy : relativeTimeWithPlural + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } + }); - // ALIASES + return ro; - addUnitAlias('weekYear', 'gg'); - addUnitAlias('isoWeekYear', 'GG'); + }))); + + +/***/ }), +/* 422 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Russian [ru] + //! author : Viktorminator : https://github.com/Viktorminator + //! Author : Menelion Elensúle : https://github.com/Oire + //! author : Коренберг Марк : https://github.com/socketpair - // PRIORITY + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - addUnitPriority('weekYear', 1); - addUnitPriority('isoWeekYear', 1); + function plural(word, num) { + var forms = word.split('_'); + return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); + } + function relativeTimeWithPlural(number, withoutSuffix, key) { + var format = { + 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут', + 'hh': 'час_часа_часов', + 'dd': 'день_дня_дней', + 'MM': 'месяц_месяца_месяцев', + 'yy': 'год_года_лет' + }; + if (key === 'm') { + return withoutSuffix ? 'минута' : 'минуту'; + } + else { + return number + ' ' + plural(format[key], +number); + } + } + var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i]; - // PARSING + // http://new.gramota.ru/spravka/rules/139-prop : § 103 + // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637 + // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753 + var ru = moment.defineLocale('ru', { + months : { + format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'), + standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_') + }, + monthsShort : { + // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ? + format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'), + standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_') + }, + weekdays : { + standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'), + format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'), + isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/ + }, + weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'), + weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'), + monthsParse : monthsParse, + longMonthsParse : monthsParse, + shortMonthsParse : monthsParse, - addRegexToken('G', matchSigned); - addRegexToken('g', matchSigned); - addRegexToken('GG', match1to2, match2); - addRegexToken('gg', match1to2, match2); - addRegexToken('GGGG', match1to4, match4); - addRegexToken('gggg', match1to4, match4); - addRegexToken('GGGGG', match1to6, match6); - addRegexToken('ggggg', match1to6, match6); + // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки + monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, - addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) { - week[token.substr(0, 2)] = toInt(input); - }); + // копия предыдущего + monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, - addWeekParseToken(['gg', 'GG'], function (input, week, config, token) { - week[token] = hooks.parseTwoDigitYear(input); + // полные названия с падежами + monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i, + + // Выражение, которое соотвествует только сокращённым формам + monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D MMMM YYYY г.', + LLL : 'D MMMM YYYY г., HH:mm', + LLLL : 'dddd, D MMMM YYYY г., HH:mm' + }, + calendar : { + sameDay: '[Сегодня в] LT', + nextDay: '[Завтра в] LT', + lastDay: '[Вчера в] LT', + nextWeek: function (now) { + if (now.week() !== this.week()) { + switch (this.day()) { + case 0: + return '[В следующее] dddd [в] LT'; + case 1: + case 2: + case 4: + return '[В следующий] dddd [в] LT'; + case 3: + case 5: + case 6: + return '[В следующую] dddd [в] LT'; + } + } else { + if (this.day() === 2) { + return '[Во] dddd [в] LT'; + } else { + return '[В] dddd [в] LT'; + } + } + }, + lastWeek: function (now) { + if (now.week() !== this.week()) { + switch (this.day()) { + case 0: + return '[В прошлое] dddd [в] LT'; + case 1: + case 2: + case 4: + return '[В прошлый] dddd [в] LT'; + case 3: + case 5: + case 6: + return '[В прошлую] dddd [в] LT'; + } + } else { + if (this.day() === 2) { + return '[Во] dddd [в] LT'; + } else { + return '[В] dddd [в] LT'; + } + } + }, + sameElse: 'L' + }, + relativeTime : { + future : 'через %s', + past : '%s назад', + s : 'несколько секунд', + m : relativeTimeWithPlural, + mm : relativeTimeWithPlural, + h : 'час', + hh : relativeTimeWithPlural, + d : 'день', + dd : relativeTimeWithPlural, + M : 'месяц', + MM : relativeTimeWithPlural, + y : 'год', + yy : relativeTimeWithPlural + }, + meridiemParse: /ночи|утра|дня|вечера/i, + isPM : function (input) { + return /^(дня|вечера)$/.test(input); + }, + meridiem : function (hour, minute, isLower) { + if (hour < 4) { + return 'ночи'; + } else if (hour < 12) { + return 'утра'; + } else if (hour < 17) { + return 'дня'; + } else { + return 'вечера'; + } + }, + dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/, + ordinal: function (number, period) { + switch (period) { + case 'M': + case 'd': + case 'DDD': + return number + '-й'; + case 'D': + return number + '-го'; + case 'w': + case 'W': + return number + '-я'; + default: + return number; + } + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } }); - // MOMENTS + return ru; - function getSetWeekYear (input) { - return getSetWeekYearHelper.call(this, - input, - this.week(), - this.weekday(), - this.localeData()._week.dow, - this.localeData()._week.doy); - } + }))); + + +/***/ }), +/* 423 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Sindhi [sd] + //! author : Narain Sagar : https://github.com/narainsagar - function getSetISOWeekYear (input) { - return getSetWeekYearHelper.call(this, - input, this.isoWeek(), this.isoWeekday(), 1, 4); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function getISOWeeksInYear () { - return weeksInYear(this.year(), 1, 4); - } - function getWeeksInYear () { - var weekInfo = this.localeData()._week; - return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); - } + var months = [ + 'جنوري', + 'فيبروري', + 'مارچ', + 'اپريل', + 'مئي', + 'جون', + 'جولاءِ', + 'آگسٽ', + 'سيپٽمبر', + 'آڪٽوبر', + 'نومبر', + 'ڊسمبر' + ]; + var days = [ + 'آچر', + 'سومر', + 'اڱارو', + 'اربع', + 'خميس', + 'جمع', + 'ڇنڇر' + ]; - function getSetWeekYearHelper(input, week, weekday, dow, doy) { - var weeksTarget; - if (input == null) { - return weekOfYear(this, dow, doy).year; - } else { - weeksTarget = weeksInYear(input, dow, doy); - if (week > weeksTarget) { - week = weeksTarget; + var sd = moment.defineLocale('sd', { + months : months, + monthsShort : months, + weekdays : days, + weekdaysShort : days, + weekdaysMin : days, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd، D MMMM YYYY HH:mm' + }, + meridiemParse: /صبح|شام/, + isPM : function (input) { + return 'شام' === input; + }, + meridiem : function (hour, minute, isLower) { + if (hour < 12) { + return 'صبح'; } - return setWeekAll.call(this, input, week, weekday, dow, doy); + return 'شام'; + }, + calendar : { + sameDay : '[اڄ] LT', + nextDay : '[سڀاڻي] LT', + nextWeek : 'dddd [اڳين هفتي تي] LT', + lastDay : '[ڪالهه] LT', + lastWeek : '[گزريل هفتي] dddd [تي] LT', + sameElse : 'L' + }, + relativeTime : { + future : '%s پوء', + past : '%s اڳ', + s : 'چند سيڪنڊ', + m : 'هڪ منٽ', + mm : '%d منٽ', + h : 'هڪ ڪلاڪ', + hh : '%d ڪلاڪ', + d : 'هڪ ڏينهن', + dd : '%d ڏينهن', + M : 'هڪ مهينو', + MM : '%d مهينا', + y : 'هڪ سال', + yy : '%d سال' + }, + preparse: function (string) { + return string.replace(/،/g, ','); + }, + postformat: function (string) { + return string.replace(/,/g, '،'); + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } - } - - function setWeekAll(weekYear, week, weekday, dow, doy) { - var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), - date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear); - - this.year(date.getUTCFullYear()); - this.month(date.getUTCMonth()); - this.date(date.getUTCDate()); - return this; - } - - // FORMATTING - - addFormatToken('Q', 0, 'Qo', 'quarter'); + }); - // ALIASES + return sd; - addUnitAlias('quarter', 'Q'); + }))); + + +/***/ }), +/* 424 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Northern Sami [se] + //! authors : Bård Rolstad Henriksen : https://github.com/karamell - // PRIORITY + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - addUnitPriority('quarter', 7); - // PARSING - addRegexToken('Q', match1); - addParseToken('Q', function (input, array) { - array[MONTH] = (toInt(input) - 1) * 3; + var se = moment.defineLocale('se', { + months : 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'), + monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'), + weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'), + weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'), + weekdaysMin : 's_v_m_g_d_b_L'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD.MM.YYYY', + LL : 'MMMM D. [b.] YYYY', + LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm', + LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm' + }, + calendar : { + sameDay: '[otne ti] LT', + nextDay: '[ihttin ti] LT', + nextWeek: 'dddd [ti] LT', + lastDay: '[ikte ti] LT', + lastWeek: '[ovddit] dddd [ti] LT', + sameElse: 'L' + }, + relativeTime : { + future : '%s geažes', + past : 'maŋit %s', + s : 'moadde sekunddat', + m : 'okta minuhta', + mm : '%d minuhtat', + h : 'okta diimmu', + hh : '%d diimmut', + d : 'okta beaivi', + dd : '%d beaivvit', + M : 'okta mánnu', + MM : '%d mánut', + y : 'okta jahki', + yy : '%d jagit' + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + } }); - // MOMENTS - - function getSetQuarter (input) { - return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3); - } - - // FORMATTING - - addFormatToken('D', ['DD', 2], 'Do', 'date'); - - // ALIASES - - addUnitAlias('date', 'D'); + return se; - // PRIOROITY - addUnitPriority('date', 9); + }))); + + +/***/ }), +/* 425 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Sinhalese [si] + //! author : Sampath Sitinamaluwa : https://github.com/sampathsris - // PARSING + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - addRegexToken('D', match1to2); - addRegexToken('DD', match1to2, match2); - addRegexToken('Do', function (isStrict, locale) { - // TODO: Remove "ordinalParse" fallback in next major release. - return isStrict ? - (locale._dayOfMonthOrdinalParse || locale._ordinalParse) : - locale._dayOfMonthOrdinalParseLenient; - }); - addParseToken(['D', 'DD'], DATE); - addParseToken('Do', function (input, array) { - array[DATE] = toInt(input.match(match1to2)[0], 10); + /*jshint -W100*/ + var si = moment.defineLocale('si', { + months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'), + monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'), + weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'), + weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'), + weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'a h:mm', + LTS : 'a h:mm:ss', + L : 'YYYY/MM/DD', + LL : 'YYYY MMMM D', + LLL : 'YYYY MMMM D, a h:mm', + LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss' + }, + calendar : { + sameDay : '[අද] LT[ට]', + nextDay : '[හෙට] LT[ට]', + nextWeek : 'dddd LT[ට]', + lastDay : '[ඊයේ] LT[ට]', + lastWeek : '[පසුගිය] dddd LT[ට]', + sameElse : 'L' + }, + relativeTime : { + future : '%sකින්', + past : '%sකට පෙර', + s : 'තත්පර කිහිපය', + m : 'මිනිත්තුව', + mm : 'මිනිත්තු %d', + h : 'පැය', + hh : 'පැය %d', + d : 'දිනය', + dd : 'දින %d', + M : 'මාසය', + MM : 'මාස %d', + y : 'වසර', + yy : 'වසර %d' + }, + dayOfMonthOrdinalParse: /\d{1,2} වැනි/, + ordinal : function (number) { + return number + ' වැනි'; + }, + meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./, + isPM : function (input) { + return input === 'ප.ව.' || input === 'පස් වරු'; + }, + meridiem : function (hours, minutes, isLower) { + if (hours > 11) { + return isLower ? 'ප.ව.' : 'පස් වරු'; + } else { + return isLower ? 'පෙ.ව.' : 'පෙර වරු'; + } + } }); - // MOMENTS - - var getSetDayOfMonth = makeGetSet('Date', true); - - // FORMATTING - - addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'); + return si; - // ALIASES + }))); + + +/***/ }), +/* 426 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Slovak [sk] + //! author : Martin Minka : https://github.com/k2s + //! based on work of petrbela : https://github.com/petrbela - addUnitAlias('dayOfYear', 'DDD'); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // PRIORITY - addUnitPriority('dayOfYear', 4); - // PARSING + var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'); + var monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_'); + function plural(n) { + return (n > 1) && (n < 5); + } + function translate(number, withoutSuffix, key, isFuture) { + var result = number + ' '; + switch (key) { + case 's': // a few seconds / in a few seconds / a few seconds ago + return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami'; + case 'm': // a minute / in a minute / a minute ago + return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou'); + case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'minúty' : 'minút'); + } else { + return result + 'minútami'; + } + break; + case 'h': // an hour / in an hour / an hour ago + return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou'); + case 'hh': // 9 hours / in 9 hours / 9 hours ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'hodiny' : 'hodín'); + } else { + return result + 'hodinami'; + } + break; + case 'd': // a day / in a day / a day ago + return (withoutSuffix || isFuture) ? 'deň' : 'dňom'; + case 'dd': // 9 days / in 9 days / 9 days ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'dni' : 'dní'); + } else { + return result + 'dňami'; + } + break; + case 'M': // a month / in a month / a month ago + return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom'; + case 'MM': // 9 months / in 9 months / 9 months ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'mesiace' : 'mesiacov'); + } else { + return result + 'mesiacmi'; + } + break; + case 'y': // a year / in a year / a year ago + return (withoutSuffix || isFuture) ? 'rok' : 'rokom'; + case 'yy': // 9 years / in 9 years / 9 years ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'roky' : 'rokov'); + } else { + return result + 'rokmi'; + } + break; + } + } - addRegexToken('DDD', match1to3); - addRegexToken('DDDD', match3); - addParseToken(['DDD', 'DDDD'], function (input, array, config) { - config._dayOfYear = toInt(input); + var sk = moment.defineLocale('sk', { + months : months, + monthsShort : monthsShort, + weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'), + weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'), + weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'), + longDateFormat : { + LT: 'H:mm', + LTS : 'H:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D. MMMM YYYY', + LLL : 'D. MMMM YYYY H:mm', + LLLL : 'dddd D. MMMM YYYY H:mm' + }, + calendar : { + sameDay: '[dnes o] LT', + nextDay: '[zajtra o] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[v nedeľu o] LT'; + case 1: + case 2: + return '[v] dddd [o] LT'; + case 3: + return '[v stredu o] LT'; + case 4: + return '[vo štvrtok o] LT'; + case 5: + return '[v piatok o] LT'; + case 6: + return '[v sobotu o] LT'; + } + }, + lastDay: '[včera o] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[minulú nedeľu o] LT'; + case 1: + case 2: + return '[minulý] dddd [o] LT'; + case 3: + return '[minulú stredu o] LT'; + case 4: + case 5: + return '[minulý] dddd [o] LT'; + case 6: + return '[minulú sobotu o] LT'; + } + }, + sameElse: 'L' + }, + relativeTime : { + future : 'za %s', + past : 'pred %s', + s : translate, + m : translate, + mm : translate, + h : translate, + hh : translate, + d : translate, + dd : translate, + M : translate, + MM : translate, + y : translate, + yy : translate + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + } }); - // HELPERS - - // MOMENTS - - function getSetDayOfYear (input) { - var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1; - return input == null ? dayOfYear : this.add((input - dayOfYear), 'd'); - } - - // FORMATTING - - addFormatToken('m', ['mm', 2], 0, 'minute'); - - // ALIASES - - addUnitAlias('minute', 'm'); - - // PRIORITY - - addUnitPriority('minute', 14); - - // PARSING - - addRegexToken('m', match1to2); - addRegexToken('mm', match1to2, match2); - addParseToken(['m', 'mm'], MINUTE); - - // MOMENTS - - var getSetMinute = makeGetSet('Minutes', false); - - // FORMATTING - - addFormatToken('s', ['ss', 2], 0, 'second'); - - // ALIASES - - addUnitAlias('second', 's'); - - // PRIORITY - - addUnitPriority('second', 15); - - // PARSING - - addRegexToken('s', match1to2); - addRegexToken('ss', match1to2, match2); - addParseToken(['s', 'ss'], SECOND); + return sk; - // MOMENTS + }))); + + +/***/ }), +/* 427 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Slovenian [sl] + //! author : Robert Sedovšek : https://github.com/sedovsek - var getSetSecond = makeGetSet('Seconds', false); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // FORMATTING - addFormatToken('S', 0, 0, function () { - return ~~(this.millisecond() / 100); - }); + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var result = number + ' '; + switch (key) { + case 's': + return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami'; + case 'm': + return withoutSuffix ? 'ena minuta' : 'eno minuto'; + case 'mm': + if (number === 1) { + result += withoutSuffix ? 'minuta' : 'minuto'; + } else if (number === 2) { + result += withoutSuffix || isFuture ? 'minuti' : 'minutama'; + } else if (number < 5) { + result += withoutSuffix || isFuture ? 'minute' : 'minutami'; + } else { + result += withoutSuffix || isFuture ? 'minut' : 'minutami'; + } + return result; + case 'h': + return withoutSuffix ? 'ena ura' : 'eno uro'; + case 'hh': + if (number === 1) { + result += withoutSuffix ? 'ura' : 'uro'; + } else if (number === 2) { + result += withoutSuffix || isFuture ? 'uri' : 'urama'; + } else if (number < 5) { + result += withoutSuffix || isFuture ? 'ure' : 'urami'; + } else { + result += withoutSuffix || isFuture ? 'ur' : 'urami'; + } + return result; + case 'd': + return withoutSuffix || isFuture ? 'en dan' : 'enim dnem'; + case 'dd': + if (number === 1) { + result += withoutSuffix || isFuture ? 'dan' : 'dnem'; + } else if (number === 2) { + result += withoutSuffix || isFuture ? 'dni' : 'dnevoma'; + } else { + result += withoutSuffix || isFuture ? 'dni' : 'dnevi'; + } + return result; + case 'M': + return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem'; + case 'MM': + if (number === 1) { + result += withoutSuffix || isFuture ? 'mesec' : 'mesecem'; + } else if (number === 2) { + result += withoutSuffix || isFuture ? 'meseca' : 'mesecema'; + } else if (number < 5) { + result += withoutSuffix || isFuture ? 'mesece' : 'meseci'; + } else { + result += withoutSuffix || isFuture ? 'mesecev' : 'meseci'; + } + return result; + case 'y': + return withoutSuffix || isFuture ? 'eno leto' : 'enim letom'; + case 'yy': + if (number === 1) { + result += withoutSuffix || isFuture ? 'leto' : 'letom'; + } else if (number === 2) { + result += withoutSuffix || isFuture ? 'leti' : 'letoma'; + } else if (number < 5) { + result += withoutSuffix || isFuture ? 'leta' : 'leti'; + } else { + result += withoutSuffix || isFuture ? 'let' : 'leti'; + } + return result; + } + } - addFormatToken(0, ['SS', 2], 0, function () { - return ~~(this.millisecond() / 10); - }); + var sl = moment.defineLocale('sl', { + months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'), + monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'), + monthsParseExact: true, + weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'), + weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'), + weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'H:mm', + LTS : 'H:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D. MMMM YYYY', + LLL : 'D. MMMM YYYY H:mm', + LLLL : 'dddd, D. MMMM YYYY H:mm' + }, + calendar : { + sameDay : '[danes ob] LT', + nextDay : '[jutri ob] LT', - addFormatToken(0, ['SSS', 3], 0, 'millisecond'); - addFormatToken(0, ['SSSS', 4], 0, function () { - return this.millisecond() * 10; - }); - addFormatToken(0, ['SSSSS', 5], 0, function () { - return this.millisecond() * 100; - }); - addFormatToken(0, ['SSSSSS', 6], 0, function () { - return this.millisecond() * 1000; - }); - addFormatToken(0, ['SSSSSSS', 7], 0, function () { - return this.millisecond() * 10000; - }); - addFormatToken(0, ['SSSSSSSS', 8], 0, function () { - return this.millisecond() * 100000; - }); - addFormatToken(0, ['SSSSSSSSS', 9], 0, function () { - return this.millisecond() * 1000000; + nextWeek : function () { + switch (this.day()) { + case 0: + return '[v] [nedeljo] [ob] LT'; + case 3: + return '[v] [sredo] [ob] LT'; + case 6: + return '[v] [soboto] [ob] LT'; + case 1: + case 2: + case 4: + case 5: + return '[v] dddd [ob] LT'; + } + }, + lastDay : '[včeraj ob] LT', + lastWeek : function () { + switch (this.day()) { + case 0: + return '[prejšnjo] [nedeljo] [ob] LT'; + case 3: + return '[prejšnjo] [sredo] [ob] LT'; + case 6: + return '[prejšnjo] [soboto] [ob] LT'; + case 1: + case 2: + case 4: + case 5: + return '[prejšnji] dddd [ob] LT'; + } + }, + sameElse : 'L' + }, + relativeTime : { + future : 'čez %s', + past : 'pred %s', + s : processRelativeTime, + m : processRelativeTime, + mm : processRelativeTime, + h : processRelativeTime, + hh : processRelativeTime, + d : processRelativeTime, + dd : processRelativeTime, + M : processRelativeTime, + MM : processRelativeTime, + y : processRelativeTime, + yy : processRelativeTime + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } }); + return sl; - // ALIASES - - addUnitAlias('millisecond', 'ms'); - - // PRIORITY - - addUnitPriority('millisecond', 16); - - // PARSING + }))); + + +/***/ }), +/* 428 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Albanian [sq] + //! author : Flakërim Ismani : https://github.com/flakerimi + //! author : Menelion Elensúle : https://github.com/Oire + //! author : Oerd Cukalla : https://github.com/oerd - addRegexToken('S', match1to3, match1); - addRegexToken('SS', match1to3, match2); - addRegexToken('SSS', match1to3, match3); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - var token; - for (token = 'SSSS'; token.length <= 9; token += 'S') { - addRegexToken(token, matchUnsigned); - } - function parseMs(input, array) { - array[MILLISECOND] = toInt(('0.' + input) * 1000); - } + var sq = moment.defineLocale('sq', { + months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'), + monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'), + weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'), + weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'), + weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'), + weekdaysParseExact : true, + meridiemParse: /PD|MD/, + isPM: function (input) { + return input.charAt(0) === 'M'; + }, + meridiem : function (hours, minutes, isLower) { + return hours < 12 ? 'PD' : 'MD'; + }, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd, D MMMM YYYY HH:mm' + }, + calendar : { + sameDay : '[Sot në] LT', + nextDay : '[Nesër në] LT', + nextWeek : 'dddd [në] LT', + lastDay : '[Dje në] LT', + lastWeek : 'dddd [e kaluar në] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'në %s', + past : '%s më parë', + s : 'disa sekonda', + m : 'një minutë', + mm : '%d minuta', + h : 'një orë', + hh : '%d orë', + d : 'një ditë', + dd : '%d ditë', + M : 'një muaj', + MM : '%d muaj', + y : 'një vit', + yy : '%d vite' + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + } + }); - for (token = 'S'; token.length <= 9; token += 'S') { - addParseToken(token, parseMs); - } - // MOMENTS + return sq; - var getSetMillisecond = makeGetSet('Milliseconds', false); + }))); + + +/***/ }), +/* 429 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Serbian [sr] + //! author : Milan Janačković : https://github.com/milan-j - // FORMATTING + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - addFormatToken('z', 0, 0, 'zoneAbbr'); - addFormatToken('zz', 0, 0, 'zoneName'); - // MOMENTS + var translator = { + words: { //Different grammatical cases + m: ['jedan minut', 'jedne minute'], + mm: ['minut', 'minute', 'minuta'], + h: ['jedan sat', 'jednog sata'], + hh: ['sat', 'sata', 'sati'], + dd: ['dan', 'dana', 'dana'], + MM: ['mesec', 'meseca', 'meseci'], + yy: ['godina', 'godine', 'godina'] + }, + correctGrammaticalCase: function (number, wordKey) { + return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]); + }, + translate: function (number, withoutSuffix, key) { + var wordKey = translator.words[key]; + if (key.length === 1) { + return withoutSuffix ? wordKey[0] : wordKey[1]; + } else { + return number + ' ' + translator.correctGrammaticalCase(number, wordKey); + } + } + }; - function getZoneAbbr () { - return this._isUTC ? 'UTC' : ''; - } + var sr = moment.defineLocale('sr', { + months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'), + monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'), + monthsParseExact: true, + weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'), + weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact : true, + longDateFormat: { + LT: 'H:mm', + LTS : 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm' + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sutra u] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[u] [nedelju] [u] LT'; + case 3: + return '[u] [sredu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; + } + }, + lastDay : '[juče u] LT', + lastWeek : function () { + var lastWeekDays = [ + '[prošle] [nedelje] [u] LT', + '[prošlog] [ponedeljka] [u] LT', + '[prošlog] [utorka] [u] LT', + '[prošle] [srede] [u] LT', + '[prošlog] [četvrtka] [u] LT', + '[prošlog] [petka] [u] LT', + '[prošle] [subote] [u] LT' + ]; + return lastWeekDays[this.day()]; + }, + sameElse : 'L' + }, + relativeTime : { + future : 'za %s', + past : 'pre %s', + s : 'nekoliko sekundi', + m : translator.translate, + mm : translator.translate, + h : translator.translate, + hh : translator.translate, + d : 'dan', + dd : translator.translate, + M : 'mesec', + MM : translator.translate, + y : 'godinu', + yy : translator.translate + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } + }); - function getZoneName () { - return this._isUTC ? 'Coordinated Universal Time' : ''; - } + return sr; - var proto = Moment.prototype; + }))); + + +/***/ }), +/* 430 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Serbian Cyrillic [sr-cyrl] + //! author : Milan Janačković : https://github.com/milan-j - proto.add = add; - proto.calendar = calendar$1; - proto.clone = clone; - proto.diff = diff; - proto.endOf = endOf; - proto.format = format; - proto.from = from; - proto.fromNow = fromNow; - proto.to = to; - proto.toNow = toNow; - proto.get = stringGet; - proto.invalidAt = invalidAt; - proto.isAfter = isAfter; - proto.isBefore = isBefore; - proto.isBetween = isBetween; - proto.isSame = isSame; - proto.isSameOrAfter = isSameOrAfter; - proto.isSameOrBefore = isSameOrBefore; - proto.isValid = isValid$2; - proto.lang = lang; - proto.locale = locale; - proto.localeData = localeData; - proto.max = prototypeMax; - proto.min = prototypeMin; - proto.parsingFlags = parsingFlags; - proto.set = stringSet; - proto.startOf = startOf; - proto.subtract = subtract; - proto.toArray = toArray; - proto.toObject = toObject; - proto.toDate = toDate; - proto.toISOString = toISOString; - proto.inspect = inspect; - proto.toJSON = toJSON; - proto.toString = toString; - proto.unix = unix; - proto.valueOf = valueOf; - proto.creationData = creationData; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // Year - proto.year = getSetYear; - proto.isLeapYear = getIsLeapYear; - // Week Year - proto.weekYear = getSetWeekYear; - proto.isoWeekYear = getSetISOWeekYear; + var translator = { + words: { //Different grammatical cases + m: ['један минут', 'једне минуте'], + mm: ['минут', 'минуте', 'минута'], + h: ['један сат', 'једног сата'], + hh: ['сат', 'сата', 'сати'], + dd: ['дан', 'дана', 'дана'], + MM: ['месец', 'месеца', 'месеци'], + yy: ['година', 'године', 'година'] + }, + correctGrammaticalCase: function (number, wordKey) { + return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]); + }, + translate: function (number, withoutSuffix, key) { + var wordKey = translator.words[key]; + if (key.length === 1) { + return withoutSuffix ? wordKey[0] : wordKey[1]; + } else { + return number + ' ' + translator.correctGrammaticalCase(number, wordKey); + } + } + }; - // Quarter - proto.quarter = proto.quarters = getSetQuarter; + var srCyrl = moment.defineLocale('sr-cyrl', { + months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'), + monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'), + monthsParseExact: true, + weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'), + weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'), + weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'), + weekdaysParseExact : true, + longDateFormat: { + LT: 'H:mm', + LTS : 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm' + }, + calendar: { + sameDay: '[данас у] LT', + nextDay: '[сутра у] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[у] [недељу] [у] LT'; + case 3: + return '[у] [среду] [у] LT'; + case 6: + return '[у] [суботу] [у] LT'; + case 1: + case 2: + case 4: + case 5: + return '[у] dddd [у] LT'; + } + }, + lastDay : '[јуче у] LT', + lastWeek : function () { + var lastWeekDays = [ + '[прошле] [недеље] [у] LT', + '[прошлог] [понедељка] [у] LT', + '[прошлог] [уторка] [у] LT', + '[прошле] [среде] [у] LT', + '[прошлог] [четвртка] [у] LT', + '[прошлог] [петка] [у] LT', + '[прошле] [суботе] [у] LT' + ]; + return lastWeekDays[this.day()]; + }, + sameElse : 'L' + }, + relativeTime : { + future : 'за %s', + past : 'пре %s', + s : 'неколико секунди', + m : translator.translate, + mm : translator.translate, + h : translator.translate, + hh : translator.translate, + d : 'дан', + dd : translator.translate, + M : 'месец', + MM : translator.translate, + y : 'годину', + yy : translator.translate + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } + }); - // Month - proto.month = getSetMonth; - proto.daysInMonth = getDaysInMonth; + return srCyrl; - // Week - proto.week = proto.weeks = getSetWeek; - proto.isoWeek = proto.isoWeeks = getSetISOWeek; - proto.weeksInYear = getWeeksInYear; - proto.isoWeeksInYear = getISOWeeksInYear; + }))); + + +/***/ }), +/* 431 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : siSwati [ss] + //! author : Nicolai Davies : https://github.com/nicolaidavies - // Day - proto.date = getSetDayOfMonth; - proto.day = proto.days = getSetDayOfWeek; - proto.weekday = getSetLocaleDayOfWeek; - proto.isoWeekday = getSetISODayOfWeek; - proto.dayOfYear = getSetDayOfYear; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // Hour - proto.hour = proto.hours = getSetHour; - // Minute - proto.minute = proto.minutes = getSetMinute; - // Second - proto.second = proto.seconds = getSetSecond; + var ss = moment.defineLocale('ss', { + months : "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'), + monthsShort : 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'), + weekdays : 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'), + weekdaysShort : 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'), + weekdaysMin : 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'h:mm A', + LTS : 'h:mm:ss A', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY h:mm A', + LLLL : 'dddd, D MMMM YYYY h:mm A' + }, + calendar : { + sameDay : '[Namuhla nga] LT', + nextDay : '[Kusasa nga] LT', + nextWeek : 'dddd [nga] LT', + lastDay : '[Itolo nga] LT', + lastWeek : 'dddd [leliphelile] [nga] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'nga %s', + past : 'wenteka nga %s', + s : 'emizuzwana lomcane', + m : 'umzuzu', + mm : '%d emizuzu', + h : 'lihora', + hh : '%d emahora', + d : 'lilanga', + dd : '%d emalanga', + M : 'inyanga', + MM : '%d tinyanga', + y : 'umnyaka', + yy : '%d iminyaka' + }, + meridiemParse: /ekuseni|emini|entsambama|ebusuku/, + meridiem : function (hours, minutes, isLower) { + if (hours < 11) { + return 'ekuseni'; + } else if (hours < 15) { + return 'emini'; + } else if (hours < 19) { + return 'entsambama'; + } else { + return 'ebusuku'; + } + }, + meridiemHour : function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'ekuseni') { + return hour; + } else if (meridiem === 'emini') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') { + if (hour === 0) { + return 0; + } + return hour + 12; + } + }, + dayOfMonthOrdinalParse: /\d{1,2}/, + ordinal : '%d', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + } + }); - // Millisecond - proto.millisecond = proto.milliseconds = getSetMillisecond; + return ss; - // Offset - proto.utcOffset = getSetOffset; - proto.utc = setOffsetToUTC; - proto.local = setOffsetToLocal; - proto.parseZone = setOffsetToParsedOffset; - proto.hasAlignedHourOffset = hasAlignedHourOffset; - proto.isDST = isDaylightSavingTime; - proto.isLocal = isLocal; - proto.isUtcOffset = isUtcOffset; - proto.isUtc = isUtc; - proto.isUTC = isUtc; + }))); + + +/***/ }), +/* 432 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Swedish [sv] + //! author : Jens Alm : https://github.com/ulmus - // Timezone - proto.zoneAbbr = getZoneAbbr; - proto.zoneName = getZoneName; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // Deprecations - proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth); - proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth); - proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear); - proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone); - proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted); - function createUnix (input) { - return createLocal(input * 1000); - } + var sv = moment.defineLocale('sv', { + months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'), + monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), + weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'), + weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'), + weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'YYYY-MM-DD', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY [kl.] HH:mm', + LLLL : 'dddd D MMMM YYYY [kl.] HH:mm', + lll : 'D MMM YYYY HH:mm', + llll : 'ddd D MMM YYYY HH:mm' + }, + calendar : { + sameDay: '[Idag] LT', + nextDay: '[Imorgon] LT', + lastDay: '[Igår] LT', + nextWeek: '[På] dddd LT', + lastWeek: '[I] dddd[s] LT', + sameElse: 'L' + }, + relativeTime : { + future : 'om %s', + past : 'för %s sedan', + s : 'några sekunder', + m : 'en minut', + mm : '%d minuter', + h : 'en timme', + hh : '%d timmar', + d : 'en dag', + dd : '%d dagar', + M : 'en månad', + MM : '%d månader', + y : 'ett år', + yy : '%d år' + }, + dayOfMonthOrdinalParse: /\d{1,2}(e|a)/, + ordinal : function (number) { + var b = number % 10, + output = (~~(number % 100 / 10) === 1) ? 'e' : + (b === 1) ? 'a' : + (b === 2) ? 'a' : + (b === 3) ? 'e' : 'e'; + return number + output; + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + } + }); - function createInZone () { - return createLocal.apply(null, arguments).parseZone(); - } + return sv; - function preParsePostFormat (string) { - return string; - } + }))); + + +/***/ }), +/* 433 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Swahili [sw] + //! author : Fahad Kassim : https://github.com/fadsel - var proto$1 = Locale.prototype; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - proto$1.calendar = calendar; - proto$1.longDateFormat = longDateFormat; - proto$1.invalidDate = invalidDate; - proto$1.ordinal = ordinal; - proto$1.preparse = preParsePostFormat; - proto$1.postformat = preParsePostFormat; - proto$1.relativeTime = relativeTime; - proto$1.pastFuture = pastFuture; - proto$1.set = set; - // Month - proto$1.months = localeMonths; - proto$1.monthsShort = localeMonthsShort; - proto$1.monthsParse = localeMonthsParse; - proto$1.monthsRegex = monthsRegex; - proto$1.monthsShortRegex = monthsShortRegex; + var sw = moment.defineLocale('sw', { + months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'), + monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'), + weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'), + weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'), + weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd, D MMMM YYYY HH:mm' + }, + calendar : { + sameDay : '[leo saa] LT', + nextDay : '[kesho saa] LT', + nextWeek : '[wiki ijayo] dddd [saat] LT', + lastDay : '[jana] LT', + lastWeek : '[wiki iliyopita] dddd [saat] LT', + sameElse : 'L' + }, + relativeTime : { + future : '%s baadaye', + past : 'tokea %s', + s : 'hivi punde', + m : 'dakika moja', + mm : 'dakika %d', + h : 'saa limoja', + hh : 'masaa %d', + d : 'siku moja', + dd : 'masiku %d', + M : 'mwezi mmoja', + MM : 'miezi %d', + y : 'mwaka mmoja', + yy : 'miaka %d' + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } + }); - // Week - proto$1.week = localeWeek; - proto$1.firstDayOfYear = localeFirstDayOfYear; - proto$1.firstDayOfWeek = localeFirstDayOfWeek; + return sw; - // Day of Week - proto$1.weekdays = localeWeekdays; - proto$1.weekdaysMin = localeWeekdaysMin; - proto$1.weekdaysShort = localeWeekdaysShort; - proto$1.weekdaysParse = localeWeekdaysParse; + }))); + + +/***/ }), +/* 434 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Tamil [ta] + //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404 - proto$1.weekdaysRegex = weekdaysRegex; - proto$1.weekdaysShortRegex = weekdaysShortRegex; - proto$1.weekdaysMinRegex = weekdaysMinRegex; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // Hours - proto$1.isPM = localeIsPM; - proto$1.meridiem = localeMeridiem; - function get$1 (format, index, field, setter) { - var locale = getLocale(); - var utc = createUTC().set(setter, index); - return locale[field](utc, format); - } + var symbolMap = { + '1': '௧', + '2': '௨', + '3': '௩', + '4': '௪', + '5': '௫', + '6': '௬', + '7': '௭', + '8': '௮', + '9': '௯', + '0': '௦' + }; + var numberMap = { + '௧': '1', + '௨': '2', + '௩': '3', + '௪': '4', + '௫': '5', + '௬': '6', + '௭': '7', + '௮': '8', + '௯': '9', + '௦': '0' + }; - function listMonthsImpl (format, index, field) { - if (isNumber(format)) { - index = format; - format = undefined; + var ta = moment.defineLocale('ta', { + months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'), + monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'), + weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'), + weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'), + weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY, HH:mm', + LLLL : 'dddd, D MMMM YYYY, HH:mm' + }, + calendar : { + sameDay : '[இன்று] LT', + nextDay : '[நாளை] LT', + nextWeek : 'dddd, LT', + lastDay : '[நேற்று] LT', + lastWeek : '[கடந்த வாரம்] dddd, LT', + sameElse : 'L' + }, + relativeTime : { + future : '%s இல்', + past : '%s முன்', + s : 'ஒரு சில விநாடிகள்', + m : 'ஒரு நிமிடம்', + mm : '%d நிமிடங்கள்', + h : 'ஒரு மணி நேரம்', + hh : '%d மணி நேரம்', + d : 'ஒரு நாள்', + dd : '%d நாட்கள்', + M : 'ஒரு மாதம்', + MM : '%d மாதங்கள்', + y : 'ஒரு வருடம்', + yy : '%d ஆண்டுகள்' + }, + dayOfMonthOrdinalParse: /\d{1,2}வது/, + ordinal : function (number) { + return number + 'வது'; + }, + preparse: function (string) { + return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + // refer http://ta.wikipedia.org/s/1er1 + meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/, + meridiem : function (hour, minute, isLower) { + if (hour < 2) { + return ' யாமம்'; + } else if (hour < 6) { + return ' வைகறை'; // வைகறை + } else if (hour < 10) { + return ' காலை'; // காலை + } else if (hour < 14) { + return ' நண்பகல்'; // நண்பகல் + } else if (hour < 18) { + return ' எற்பாடு'; // எற்பாடு + } else if (hour < 22) { + return ' மாலை'; // மாலை + } else { + return ' யாமம்'; + } + }, + meridiemHour : function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === 'யாமம்') { + return hour < 2 ? hour : hour + 12; + } else if (meridiem === 'வைகறை' || meridiem === 'காலை') { + return hour; + } else if (meridiem === 'நண்பகல்') { + return hour >= 10 ? hour : hour + 12; + } else { + return hour + 12; + } + }, + week : { + dow : 0, // Sunday is the first day of the week. + doy : 6 // The week that contains Jan 1st is the first week of the year. } + }); - format = format || ''; - - if (index != null) { - return get$1(format, index, field, 'month'); - } + return ta; - var i; - var out = []; - for (i = 0; i < 12; i++) { - out[i] = get$1(format, i, field, 'month'); - } - return out; - } + }))); + + +/***/ }), +/* 435 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Telugu [te] + //! author : Krishna Chaitanya Thota : https://github.com/kcthota - // () - // (5) - // (fmt, 5) - // (fmt) - // (true) - // (true, 5) - // (true, fmt, 5) - // (true, fmt) - function listWeekdaysImpl (localeSorted, format, index, field) { - if (typeof localeSorted === 'boolean') { - if (isNumber(format)) { - index = format; - format = undefined; - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - format = format || ''; - } else { - format = localeSorted; - index = format; - localeSorted = false; - if (isNumber(format)) { - index = format; - format = undefined; + var te = moment.defineLocale('te', { + months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'), + monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'), + monthsParseExact : true, + weekdays : 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'), + weekdaysShort : 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'), + weekdaysMin : 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'), + longDateFormat : { + LT : 'A h:mm', + LTS : 'A h:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY, A h:mm', + LLLL : 'dddd, D MMMM YYYY, A h:mm' + }, + calendar : { + sameDay : '[నేడు] LT', + nextDay : '[రేపు] LT', + nextWeek : 'dddd, LT', + lastDay : '[నిన్న] LT', + lastWeek : '[గత] dddd, LT', + sameElse : 'L' + }, + relativeTime : { + future : '%s లో', + past : '%s క్రితం', + s : 'కొన్ని క్షణాలు', + m : 'ఒక నిమిషం', + mm : '%d నిమిషాలు', + h : 'ఒక గంట', + hh : '%d గంటలు', + d : 'ఒక రోజు', + dd : '%d రోజులు', + M : 'ఒక నెల', + MM : '%d నెలలు', + y : 'ఒక సంవత్సరం', + yy : '%d సంవత్సరాలు' + }, + dayOfMonthOrdinalParse : /\d{1,2}వ/, + ordinal : '%dవ', + meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/, + meridiemHour : function (hour, meridiem) { + if (hour === 12) { + hour = 0; } - - format = format || ''; - } - - var locale = getLocale(), - shift = localeSorted ? locale._week.dow : 0; - - if (index != null) { - return get$1(format, (index + shift) % 7, field, 'day'); - } - - var i; - var out = []; - for (i = 0; i < 7; i++) { - out[i] = get$1(format, (i + shift) % 7, field, 'day'); + if (meridiem === 'రాత్రి') { + return hour < 4 ? hour : hour + 12; + } else if (meridiem === 'ఉదయం') { + return hour; + } else if (meridiem === 'మధ్యాహ్నం') { + return hour >= 10 ? hour : hour + 12; + } else if (meridiem === 'సాయంత్రం') { + return hour + 12; + } + }, + meridiem : function (hour, minute, isLower) { + if (hour < 4) { + return 'రాత్రి'; + } else if (hour < 10) { + return 'ఉదయం'; + } else if (hour < 17) { + return 'మధ్యాహ్నం'; + } else if (hour < 20) { + return 'సాయంత్రం'; + } else { + return 'రాత్రి'; + } + }, + week : { + dow : 0, // Sunday is the first day of the week. + doy : 6 // The week that contains Jan 1st is the first week of the year. } - return out; - } - - function listMonths (format, index) { - return listMonthsImpl(format, index, 'months'); - } + }); - function listMonthsShort (format, index) { - return listMonthsImpl(format, index, 'monthsShort'); - } + return te; - function listWeekdays (localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdays'); - } + }))); + + +/***/ }), +/* 436 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Tetun Dili (East Timor) [tet] + //! author : Joshua Brooks : https://github.com/joshbrooks + //! author : Onorio De J. Afonso : https://github.com/marobo - function listWeekdaysShort (localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort'); - } + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function listWeekdaysMin (localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin'); - } - getSetGlobalLocale('en', { - dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, + var tet = moment.defineLocale('tet', { + months : 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru'.split('_'), + monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez'.split('_'), + weekdays : 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu'.split('_'), + weekdaysShort : 'Dom_Seg_Ters_Kua_Kint_Sext_Sab'.split('_'), + weekdaysMin : 'Do_Seg_Te_Ku_Ki_Sex_Sa'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd, D MMMM YYYY HH:mm' + }, + calendar : { + sameDay: '[Ohin iha] LT', + nextDay: '[Aban iha] LT', + nextWeek: 'dddd [iha] LT', + lastDay: '[Horiseik iha] LT', + lastWeek: 'dddd [semana kotuk] [iha] LT', + sameElse: 'L' + }, + relativeTime : { + future : 'iha %s', + past : '%s liuba', + s : 'minutu balun', + m : 'minutu ida', + mm : 'minutus %d', + h : 'horas ida', + hh : 'horas %d', + d : 'loron ida', + dd : 'loron %d', + M : 'fulan ida', + MM : 'fulan %d', + y : 'tinan ida', + yy : 'tinan %d' + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, ordinal : function (number) { var b = number % 10, - output = (toInt(number % 100 / 10) === 1) ? 'th' : + output = (~~(number % 100 / 10) === 1) ? 'th' : (b === 1) ? 'st' : (b === 2) ? 'nd' : (b === 3) ? 'rd' : 'th'; return number + output; + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } }); - // Side effect imports - hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale); - hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale); + return tet; - var mathAbs = Math.abs; + }))); + + +/***/ }), +/* 437 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Thai [th] + //! author : Kridsada Thanabulpong : https://github.com/sirn - function abs () { - var data = this._data; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - this._milliseconds = mathAbs(this._milliseconds); - this._days = mathAbs(this._days); - this._months = mathAbs(this._months); - data.milliseconds = mathAbs(data.milliseconds); - data.seconds = mathAbs(data.seconds); - data.minutes = mathAbs(data.minutes); - data.hours = mathAbs(data.hours); - data.months = mathAbs(data.months); - data.years = mathAbs(data.years); + var th = moment.defineLocale('th', { + months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'), + monthsShort : 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'), + monthsParseExact: true, + weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), + weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference + weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), + weekdaysParseExact : true, + longDateFormat : { + LT : 'H:mm', + LTS : 'H:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY เวลา H:mm', + LLLL : 'วันddddที่ D MMMM YYYY เวลา H:mm' + }, + meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/, + isPM: function (input) { + return input === 'หลังเที่ยง'; + }, + meridiem : function (hour, minute, isLower) { + if (hour < 12) { + return 'ก่อนเที่ยง'; + } else { + return 'หลังเที่ยง'; + } + }, + calendar : { + sameDay : '[วันนี้ เวลา] LT', + nextDay : '[พรุ่งนี้ เวลา] LT', + nextWeek : 'dddd[หน้า เวลา] LT', + lastDay : '[เมื่อวานนี้ เวลา] LT', + lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'อีก %s', + past : '%sที่แล้ว', + s : 'ไม่กี่วินาที', + m : '1 นาที', + mm : '%d นาที', + h : '1 ชั่วโมง', + hh : '%d ชั่วโมง', + d : '1 วัน', + dd : '%d วัน', + M : '1 เดือน', + MM : '%d เดือน', + y : '1 ปี', + yy : '%d ปี' + } + }); - return this; - } + return th; - function addSubtract$1 (duration, input, value, direction) { - var other = createDuration(input, value); + }))); + + +/***/ }), +/* 438 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Tagalog (Philippines) [tl-ph] + //! author : Dan Hagman : https://github.com/hagmandan - duration._milliseconds += direction * other._milliseconds; - duration._days += direction * other._days; - duration._months += direction * other._months; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - return duration._bubble(); - } - // supports only 2.0-style add(1, 's') or add(duration) - function add$1 (input, value) { - return addSubtract$1(this, input, value, 1); + var tlPh = moment.defineLocale('tl-ph', { + months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'), + monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), + weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'), + weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), + weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'MM/D/YYYY', + LL : 'MMMM D, YYYY', + LLL : 'MMMM D, YYYY HH:mm', + LLLL : 'dddd, MMMM DD, YYYY HH:mm' + }, + calendar : { + sameDay: 'LT [ngayong araw]', + nextDay: '[Bukas ng] LT', + nextWeek: 'LT [sa susunod na] dddd', + lastDay: 'LT [kahapon]', + lastWeek: 'LT [noong nakaraang] dddd', + sameElse: 'L' + }, + relativeTime : { + future : 'sa loob ng %s', + past : '%s ang nakalipas', + s : 'ilang segundo', + m : 'isang minuto', + mm : '%d minuto', + h : 'isang oras', + hh : '%d oras', + d : 'isang araw', + dd : '%d araw', + M : 'isang buwan', + MM : '%d buwan', + y : 'isang taon', + yy : '%d taon' + }, + dayOfMonthOrdinalParse: /\d{1,2}/, + ordinal : function (number) { + return number; + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + } + }); + + return tlPh; + + }))); + + +/***/ }), +/* 439 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Klingon [tlh] + //! author : Dominika Kruk : https://github.com/amaranthrose + + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + + + var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_'); + + function translateFuture(output) { + var time = output; + time = (output.indexOf('jaj') !== -1) ? + time.slice(0, -3) + 'leS' : + (output.indexOf('jar') !== -1) ? + time.slice(0, -3) + 'waQ' : + (output.indexOf('DIS') !== -1) ? + time.slice(0, -3) + 'nem' : + time + ' pIq'; + return time; } - // supports only 2.0-style subtract(1, 's') or subtract(duration) - function subtract$1 (input, value) { - return addSubtract$1(this, input, value, -1); + function translatePast(output) { + var time = output; + time = (output.indexOf('jaj') !== -1) ? + time.slice(0, -3) + 'Hu’' : + (output.indexOf('jar') !== -1) ? + time.slice(0, -3) + 'wen' : + (output.indexOf('DIS') !== -1) ? + time.slice(0, -3) + 'ben' : + time + ' ret'; + return time; } - function absCeil (number) { - if (number < 0) { - return Math.floor(number); - } else { - return Math.ceil(number); + function translate(number, withoutSuffix, string, isFuture) { + var numberNoun = numberAsNoun(number); + switch (string) { + case 'mm': + return numberNoun + ' tup'; + case 'hh': + return numberNoun + ' rep'; + case 'dd': + return numberNoun + ' jaj'; + case 'MM': + return numberNoun + ' jar'; + case 'yy': + return numberNoun + ' DIS'; } } - function bubble () { - var milliseconds = this._milliseconds; - var days = this._days; - var months = this._months; - var data = this._data; - var seconds, minutes, hours, years, monthsFromDays; + function numberAsNoun(number) { + var hundred = Math.floor((number % 1000) / 100), + ten = Math.floor((number % 100) / 10), + one = number % 10, + word = ''; + if (hundred > 0) { + word += numbersNouns[hundred] + 'vatlh'; + } + if (ten > 0) { + word += ((word !== '') ? ' ' : '') + numbersNouns[ten] + 'maH'; + } + if (one > 0) { + word += ((word !== '') ? ' ' : '') + numbersNouns[one]; + } + return (word === '') ? 'pagh' : word; + } - // if we have a mix of positive and negative values, bubble down first - // check: https://github.com/moment/moment/issues/2166 - if (!((milliseconds >= 0 && days >= 0 && months >= 0) || - (milliseconds <= 0 && days <= 0 && months <= 0))) { - milliseconds += absCeil(monthsToDays(months) + days) * 864e5; - days = 0; - months = 0; + var tlh = moment.defineLocale('tlh', { + months : 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split('_'), + monthsShort : 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split('_'), + monthsParseExact : true, + weekdays : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), + weekdaysShort : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), + weekdaysMin : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd, D MMMM YYYY HH:mm' + }, + calendar : { + sameDay: '[DaHjaj] LT', + nextDay: '[wa’leS] LT', + nextWeek: 'LLL', + lastDay: '[wa’Hu’] LT', + lastWeek: 'LLL', + sameElse: 'L' + }, + relativeTime : { + future : translateFuture, + past : translatePast, + s : 'puS lup', + m : 'wa’ tup', + mm : translate, + h : 'wa’ rep', + hh : translate, + d : 'wa’ jaj', + dd : translate, + M : 'wa’ jar', + MM : translate, + y : 'wa’ DIS', + yy : translate + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } + }); - // The following code bubbles up values, see the tests for - // examples of what that means. - data.milliseconds = milliseconds % 1000; - - seconds = absFloor(milliseconds / 1000); - data.seconds = seconds % 60; - - minutes = absFloor(seconds / 60); - data.minutes = minutes % 60; - - hours = absFloor(minutes / 60); - data.hours = hours % 24; + return tlh; - days += absFloor(hours / 24); + }))); + + +/***/ }), +/* 440 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Turkish [tr] + //! authors : Erhan Gundogan : https://github.com/erhangundogan, + //! Burak Yiğit Kaya: https://github.com/BYK - // convert days to months - monthsFromDays = absFloor(daysToMonths(days)); - months += monthsFromDays; - days -= absCeil(monthsToDays(monthsFromDays)); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - // 12 months -> 1 year - years = absFloor(months / 12); - months %= 12; - data.days = days; - data.months = months; - data.years = years; + var suffixes = { + 1: '\'inci', + 5: '\'inci', + 8: '\'inci', + 70: '\'inci', + 80: '\'inci', + 2: '\'nci', + 7: '\'nci', + 20: '\'nci', + 50: '\'nci', + 3: '\'üncü', + 4: '\'üncü', + 100: '\'üncü', + 6: '\'ncı', + 9: '\'uncu', + 10: '\'uncu', + 30: '\'uncu', + 60: '\'ıncı', + 90: '\'ıncı' + }; - return this; - } + var tr = moment.defineLocale('tr', { + months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'), + monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'), + weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'), + weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), + weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd, D MMMM YYYY HH:mm' + }, + calendar : { + sameDay : '[bugün saat] LT', + nextDay : '[yarın saat] LT', + nextWeek : '[haftaya] dddd [saat] LT', + lastDay : '[dün] LT', + lastWeek : '[geçen hafta] dddd [saat] LT', + sameElse : 'L' + }, + relativeTime : { + future : '%s sonra', + past : '%s önce', + s : 'birkaç saniye', + m : 'bir dakika', + mm : '%d dakika', + h : 'bir saat', + hh : '%d saat', + d : 'bir gün', + dd : '%d gün', + M : 'bir ay', + MM : '%d ay', + y : 'bir yıl', + yy : '%d yıl' + }, + dayOfMonthOrdinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/, + ordinal : function (number) { + if (number === 0) { // special case for zero + return number + '\'ıncı'; + } + var a = number % 10, + b = number % 100 - a, + c = number >= 100 ? 100 : null; + return number + (suffixes[a] || suffixes[b] || suffixes[c]); + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } + }); - function daysToMonths (days) { - // 400 years have 146097 days (taking into account leap year rules) - // 400 years have 12 months === 4800 - return days * 4800 / 146097; - } + return tr; - function monthsToDays (months) { - // the reverse of daysToMonths - return months * 146097 / 4800; - } + }))); + + +/***/ }), +/* 441 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Talossan [tzl] + //! author : Robin van der Vliet : https://github.com/robin0van0der0v + //! author : Iustì Canun - function as (units) { - if (!this.isValid()) { - return NaN; - } - var days; - var months; - var milliseconds = this._milliseconds; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - units = normalizeUnits(units); - if (units === 'month' || units === 'year') { - days = this._days + milliseconds / 864e5; - months = this._months + daysToMonths(days); - return units === 'month' ? months : months / 12; - } else { - // handle milliseconds separately because of floating point math errors (issue #1867) - days = this._days + Math.round(monthsToDays(this._months)); - switch (units) { - case 'week' : return days / 7 + milliseconds / 6048e5; - case 'day' : return days + milliseconds / 864e5; - case 'hour' : return days * 24 + milliseconds / 36e5; - case 'minute' : return days * 1440 + milliseconds / 6e4; - case 'second' : return days * 86400 + milliseconds / 1000; - // Math.floor prevents floating point math errors here - case 'millisecond': return Math.floor(days * 864e5) + milliseconds; - default: throw new Error('Unknown unit ' + units); + // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals. + // This is currently too difficult (maybe even impossible) to add. + var tzl = moment.defineLocale('tzl', { + months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'), + monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'), + weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'), + weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'), + weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'), + longDateFormat : { + LT : 'HH.mm', + LTS : 'HH.mm.ss', + L : 'DD.MM.YYYY', + LL : 'D. MMMM [dallas] YYYY', + LLL : 'D. MMMM [dallas] YYYY HH.mm', + LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm' + }, + meridiemParse: /d\'o|d\'a/i, + isPM : function (input) { + return 'd\'o' === input.toLowerCase(); + }, + meridiem : function (hours, minutes, isLower) { + if (hours > 11) { + return isLower ? 'd\'o' : 'D\'O'; + } else { + return isLower ? 'd\'a' : 'D\'A'; } + }, + calendar : { + sameDay : '[oxhi à] LT', + nextDay : '[demà à] LT', + nextWeek : 'dddd [à] LT', + lastDay : '[ieiri à] LT', + lastWeek : '[sür el] dddd [lasteu à] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'osprei %s', + past : 'ja%s', + s : processRelativeTime, + m : processRelativeTime, + mm : processRelativeTime, + h : processRelativeTime, + hh : processRelativeTime, + d : processRelativeTime, + dd : processRelativeTime, + M : processRelativeTime, + MM : processRelativeTime, + y : processRelativeTime, + yy : processRelativeTime + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } - } - - // TODO: Use this.as('ms')? - function valueOf$1 () { - if (!this.isValid()) { - return NaN; - } - return ( - this._milliseconds + - this._days * 864e5 + - (this._months % 12) * 2592e6 + - toInt(this._months / 12) * 31536e6 - ); - } + }); - function makeAs (alias) { - return function () { - return this.as(alias); + function processRelativeTime(number, withoutSuffix, key, isFuture) { + var format = { + 's': ['viensas secunds', '\'iensas secunds'], + 'm': ['\'n míut', '\'iens míut'], + 'mm': [number + ' míuts', '' + number + ' míuts'], + 'h': ['\'n þora', '\'iensa þora'], + 'hh': [number + ' þoras', '' + number + ' þoras'], + 'd': ['\'n ziua', '\'iensa ziua'], + 'dd': [number + ' ziuas', '' + number + ' ziuas'], + 'M': ['\'n mes', '\'iens mes'], + 'MM': [number + ' mesen', '' + number + ' mesen'], + 'y': ['\'n ar', '\'iens ar'], + 'yy': [number + ' ars', '' + number + ' ars'] }; + return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]); } - var asMilliseconds = makeAs('ms'); - var asSeconds = makeAs('s'); - var asMinutes = makeAs('m'); - var asHours = makeAs('h'); - var asDays = makeAs('d'); - var asWeeks = makeAs('w'); - var asMonths = makeAs('M'); - var asYears = makeAs('y'); - - function get$2 (units) { - units = normalizeUnits(units); - return this.isValid() ? this[units + 's']() : NaN; - } + return tzl; - function makeGetter(name) { - return function () { - return this.isValid() ? this._data[name] : NaN; - }; - } + }))); + + +/***/ }), +/* 442 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Central Atlas Tamazight [tzm] + //! author : Abdel Said : https://github.com/abdelsaid - var milliseconds = makeGetter('milliseconds'); - var seconds = makeGetter('seconds'); - var minutes = makeGetter('minutes'); - var hours = makeGetter('hours'); - var days = makeGetter('days'); - var months = makeGetter('months'); - var years = makeGetter('years'); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - function weeks () { - return absFloor(this.days() / 7); - } - var round = Math.round; - var thresholds = { - ss: 44, // a few seconds to seconds - s : 45, // seconds to minute - m : 45, // minutes to hour - h : 22, // hours to day - d : 26, // days to month - M : 11 // months to year - }; + var tzm = moment.defineLocale('tzm', { + months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'), + monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'), + weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), + weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), + weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS: 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd D MMMM YYYY HH:mm' + }, + calendar : { + sameDay: '[ⴰⵙⴷⵅ ⴴ] LT', + nextDay: '[ⴰⵙⴽⴰ ⴴ] LT', + nextWeek: 'dddd [ⴴ] LT', + lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT', + lastWeek: 'dddd [ⴴ] LT', + sameElse: 'L' + }, + relativeTime : { + future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s', + past : 'ⵢⴰⵏ %s', + s : 'ⵉⵎⵉⴽ', + m : 'ⵎⵉⵏⵓⴺ', + mm : '%d ⵎⵉⵏⵓⴺ', + h : 'ⵙⴰⵄⴰ', + hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ', + d : 'ⴰⵙⵙ', + dd : '%d oⵙⵙⴰⵏ', + M : 'ⴰⵢoⵓⵔ', + MM : '%d ⵉⵢⵢⵉⵔⵏ', + y : 'ⴰⵙⴳⴰⵙ', + yy : '%d ⵉⵙⴳⴰⵙⵏ' + }, + week : { + dow : 6, // Saturday is the first day of the week. + doy : 12 // The week that contains Jan 1st is the first week of the year. + } + }); - // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize - function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) { - return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture); - } + return tzm; - function relativeTime$1 (posNegDuration, withoutSuffix, locale) { - var duration = createDuration(posNegDuration).abs(); - var seconds = round(duration.as('s')); - var minutes = round(duration.as('m')); - var hours = round(duration.as('h')); - var days = round(duration.as('d')); - var months = round(duration.as('M')); - var years = round(duration.as('y')); + }))); + + +/***/ }), +/* 443 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Central Atlas Tamazight Latin [tzm-latn] + //! author : Abdel Said : https://github.com/abdelsaid - var a = seconds <= thresholds.ss && ['s', seconds] || - seconds < thresholds.s && ['ss', seconds] || - minutes <= 1 && ['m'] || - minutes < thresholds.m && ['mm', minutes] || - hours <= 1 && ['h'] || - hours < thresholds.h && ['hh', hours] || - days <= 1 && ['d'] || - days < thresholds.d && ['dd', days] || - months <= 1 && ['M'] || - months < thresholds.M && ['MM', months] || - years <= 1 && ['y'] || ['yy', years]; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - a[2] = withoutSuffix; - a[3] = +posNegDuration > 0; - a[4] = locale; - return substituteTimeAgo.apply(null, a); - } - // This function allows you to set the rounding function for relative time strings - function getSetRelativeTimeRounding (roundingFunction) { - if (roundingFunction === undefined) { - return round; - } - if (typeof(roundingFunction) === 'function') { - round = roundingFunction; - return true; + var tzmLatn = moment.defineLocale('tzm-latn', { + months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'), + monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'), + weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), + weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), + weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd D MMMM YYYY HH:mm' + }, + calendar : { + sameDay: '[asdkh g] LT', + nextDay: '[aska g] LT', + nextWeek: 'dddd [g] LT', + lastDay: '[assant g] LT', + lastWeek: 'dddd [g] LT', + sameElse: 'L' + }, + relativeTime : { + future : 'dadkh s yan %s', + past : 'yan %s', + s : 'imik', + m : 'minuḍ', + mm : '%d minuḍ', + h : 'saɛa', + hh : '%d tassaɛin', + d : 'ass', + dd : '%d ossan', + M : 'ayowr', + MM : '%d iyyirn', + y : 'asgas', + yy : '%d isgasn' + }, + week : { + dow : 6, // Saturday is the first day of the week. + doy : 12 // The week that contains Jan 1st is the first week of the year. } - return false; - } + }); - // This function allows you to set a threshold for relative time strings - function getSetRelativeTimeThreshold (threshold, limit) { - if (thresholds[threshold] === undefined) { - return false; - } - if (limit === undefined) { - return thresholds[threshold]; - } - thresholds[threshold] = limit; - if (threshold === 's') { - thresholds.ss = limit - 1; - } - return true; - } + return tzmLatn; - function humanize (withSuffix) { - if (!this.isValid()) { - return this.localeData().invalidDate(); - } + }))); + + +/***/ }), +/* 444 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Ukrainian [uk] + //! author : zemlanin : https://github.com/zemlanin + //! Author : Menelion Elensúle : https://github.com/Oire - var locale = this.localeData(); - var output = relativeTime$1(this, !withSuffix, locale); + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - if (withSuffix) { - output = locale.pastFuture(+this, output); - } - return locale.postformat(output); + function plural(word, num) { + var forms = word.split('_'); + return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); } - - var abs$1 = Math.abs; - - function toISOString$1() { - // for ISO strings we do not use the normal bubbling rules: - // * milliseconds bubble up until they become hours - // * days do not bubble at all - // * months bubble up until they become years - // This is because there is no context-free conversion between hours and days - // (think of clock changes) - // and also not between days and months (28-31 days per month) - if (!this.isValid()) { - return this.localeData().invalidDate(); + function relativeTimeWithPlural(number, withoutSuffix, key) { + var format = { + 'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин', + 'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин', + 'dd': 'день_дні_днів', + 'MM': 'місяць_місяці_місяців', + 'yy': 'рік_роки_років' + }; + if (key === 'm') { + return withoutSuffix ? 'хвилина' : 'хвилину'; + } + else if (key === 'h') { + return withoutSuffix ? 'година' : 'годину'; + } + else { + return number + ' ' + plural(format[key], +number); } + } + function weekdaysCaseReplace(m, format) { + var weekdays = { + 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'), + 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'), + 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_') + }; - var seconds = abs$1(this._milliseconds) / 1000; - var days = abs$1(this._days); - var months = abs$1(this._months); - var minutes, hours, years; - - // 3600 seconds -> 60 minutes -> 1 hour - minutes = absFloor(seconds / 60); - hours = absFloor(minutes / 60); - seconds %= 60; - minutes %= 60; - - // 12 months -> 1 year - years = absFloor(months / 12); - months %= 12; - - - // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js - var Y = years; - var M = months; - var D = days; - var h = hours; - var m = minutes; - var s = seconds; - var total = this.asSeconds(); - - if (!total) { - // this is the same as C#'s (Noda) and python (isodate)... - // but not other JS (goog.date) - return 'P0D'; + if (!m) { + return weekdays['nominative']; } - return (total < 0 ? '-' : '') + - 'P' + - (Y ? Y + 'Y' : '') + - (M ? M + 'M' : '') + - (D ? D + 'D' : '') + - ((h || m || s) ? 'T' : '') + - (h ? h + 'H' : '') + - (m ? m + 'M' : '') + - (s ? s + 'S' : ''); + var nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ? + 'accusative' : + ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ? + 'genitive' : + 'nominative'); + return weekdays[nounCase][m.day()]; + } + function processHoursFunction(str) { + return function () { + return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT'; + }; } - var proto$2 = Duration.prototype; - - proto$2.isValid = isValid$1; - proto$2.abs = abs; - proto$2.add = add$1; - proto$2.subtract = subtract$1; - proto$2.as = as; - proto$2.asMilliseconds = asMilliseconds; - proto$2.asSeconds = asSeconds; - proto$2.asMinutes = asMinutes; - proto$2.asHours = asHours; - proto$2.asDays = asDays; - proto$2.asWeeks = asWeeks; - proto$2.asMonths = asMonths; - proto$2.asYears = asYears; - proto$2.valueOf = valueOf$1; - proto$2._bubble = bubble; - proto$2.get = get$2; - proto$2.milliseconds = milliseconds; - proto$2.seconds = seconds; - proto$2.minutes = minutes; - proto$2.hours = hours; - proto$2.days = days; - proto$2.weeks = weeks; - proto$2.months = months; - proto$2.years = years; - proto$2.humanize = humanize; - proto$2.toISOString = toISOString$1; - proto$2.toString = toISOString$1; - proto$2.toJSON = toISOString$1; - proto$2.locale = locale; - proto$2.localeData = localeData; + var uk = moment.defineLocale('uk', { + months : { + 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'), + 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_') + }, + monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'), + weekdays : weekdaysCaseReplace, + weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'), + weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD.MM.YYYY', + LL : 'D MMMM YYYY р.', + LLL : 'D MMMM YYYY р., HH:mm', + LLLL : 'dddd, D MMMM YYYY р., HH:mm' + }, + calendar : { + sameDay: processHoursFunction('[Сьогодні '), + nextDay: processHoursFunction('[Завтра '), + lastDay: processHoursFunction('[Вчора '), + nextWeek: processHoursFunction('[У] dddd ['), + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + case 5: + case 6: + return processHoursFunction('[Минулої] dddd [').call(this); + case 1: + case 2: + case 4: + return processHoursFunction('[Минулого] dddd [').call(this); + } + }, + sameElse: 'L' + }, + relativeTime : { + future : 'за %s', + past : '%s тому', + s : 'декілька секунд', + m : relativeTimeWithPlural, + mm : relativeTimeWithPlural, + h : 'годину', + hh : relativeTimeWithPlural, + d : 'день', + dd : relativeTimeWithPlural, + M : 'місяць', + MM : relativeTimeWithPlural, + y : 'рік', + yy : relativeTimeWithPlural + }, + // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason + meridiemParse: /ночі|ранку|дня|вечора/, + isPM: function (input) { + return /^(дня|вечора)$/.test(input); + }, + meridiem : function (hour, minute, isLower) { + if (hour < 4) { + return 'ночі'; + } else if (hour < 12) { + return 'ранку'; + } else if (hour < 17) { + return 'дня'; + } else { + return 'вечора'; + } + }, + dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/, + ordinal: function (number, period) { + switch (period) { + case 'M': + case 'd': + case 'DDD': + case 'w': + case 'W': + return number + '-й'; + case 'D': + return number + '-го'; + default: + return number; + } + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } + }); - // Deprecations - proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1); - proto$2.lang = lang; + return uk; - // Side effect imports + }))); + + +/***/ }), +/* 445 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Urdu [ur] + //! author : Sawood Alam : https://github.com/ibnesayeed + //! author : Zack : https://github.com/ZackVision - // FORMATTING + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - addFormatToken('X', 0, 0, 'unix'); - addFormatToken('x', 0, 0, 'valueOf'); - // PARSING + var months = [ + 'جنوری', + 'فروری', + 'مارچ', + 'اپریل', + 'مئی', + 'جون', + 'جولائی', + 'اگست', + 'ستمبر', + 'اکتوبر', + 'نومبر', + 'دسمبر' + ]; + var days = [ + 'اتوار', + 'پیر', + 'منگل', + 'بدھ', + 'جمعرات', + 'جمعہ', + 'ہفتہ' + ]; - addRegexToken('x', matchSigned); - addRegexToken('X', matchTimestamp); - addParseToken('X', function (input, array, config) { - config._d = new Date(parseFloat(input, 10) * 1000); - }); - addParseToken('x', function (input, array, config) { - config._d = new Date(toInt(input)); + var ur = moment.defineLocale('ur', { + months : months, + monthsShort : months, + weekdays : days, + weekdaysShort : days, + weekdaysMin : days, + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'dddd، D MMMM YYYY HH:mm' + }, + meridiemParse: /صبح|شام/, + isPM : function (input) { + return 'شام' === input; + }, + meridiem : function (hour, minute, isLower) { + if (hour < 12) { + return 'صبح'; + } + return 'شام'; + }, + calendar : { + sameDay : '[آج بوقت] LT', + nextDay : '[کل بوقت] LT', + nextWeek : 'dddd [بوقت] LT', + lastDay : '[گذشتہ روز بوقت] LT', + lastWeek : '[گذشتہ] dddd [بوقت] LT', + sameElse : 'L' + }, + relativeTime : { + future : '%s بعد', + past : '%s قبل', + s : 'چند سیکنڈ', + m : 'ایک منٹ', + mm : '%d منٹ', + h : 'ایک گھنٹہ', + hh : '%d گھنٹے', + d : 'ایک دن', + dd : '%d دن', + M : 'ایک ماہ', + MM : '%d ماہ', + y : 'ایک سال', + yy : '%d سال' + }, + preparse: function (string) { + return string.replace(/،/g, ','); + }, + postformat: function (string) { + return string.replace(/,/g, '،'); + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + } }); - // Side effect imports + return ur; + }))); + + +/***/ }), +/* 446 */ +/***/ (function(module, exports, __webpack_require__) { + + //! moment.js locale configuration + //! locale : Uzbek [uz] + //! author : Sardor Muminov : https://github.com/muminoff - hooks.version = '2.18.1'; + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; - setHookCallback(createLocal); - hooks.fn = proto; - hooks.min = min; - hooks.max = max; - hooks.now = now; - hooks.utc = createUTC; - hooks.unix = createUnix; - hooks.months = listMonths; - hooks.isDate = isDate; - hooks.locale = getSetGlobalLocale; - hooks.invalid = createInvalid; - hooks.duration = createDuration; - hooks.isMoment = isMoment; - hooks.weekdays = listWeekdays; - hooks.parseZone = createInZone; - hooks.localeData = getLocale; - hooks.isDuration = isDuration; - hooks.monthsShort = listMonthsShort; - hooks.weekdaysMin = listWeekdaysMin; - hooks.defineLocale = defineLocale; - hooks.updateLocale = updateLocale; - hooks.locales = listLocales; - hooks.weekdaysShort = listWeekdaysShort; - hooks.normalizeUnits = normalizeUnits; - hooks.relativeTimeRounding = getSetRelativeTimeRounding; - hooks.relativeTimeThreshold = getSetRelativeTimeThreshold; - hooks.calendarFormat = getCalendarFormat; - hooks.prototype = proto; + var uz = moment.defineLocale('uz', { + months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'), + monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'), + weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'), + weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'), + weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'D MMMM YYYY, dddd HH:mm' + }, + calendar : { + sameDay : '[Бугун соат] LT [да]', + nextDay : '[Эртага] LT [да]', + nextWeek : 'dddd [куни соат] LT [да]', + lastDay : '[Кеча соат] LT [да]', + lastWeek : '[Утган] dddd [куни соат] LT [да]', + sameElse : 'L' + }, + relativeTime : { + future : 'Якин %s ичида', + past : 'Бир неча %s олдин', + s : 'фурсат', + m : 'бир дакика', + mm : '%d дакика', + h : 'бир соат', + hh : '%d соат', + d : 'бир кун', + dd : '%d кун', + M : 'бир ой', + MM : '%d ой', + y : 'бир йил', + yy : '%d йил' + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 4th is the first week of the year. + } + }); - return hooks; + return uz; }))); - - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(338)(module))) + /***/ }), -/* 405 */ +/* 447 */ /***/ (function(module, exports, __webpack_require__) { - var map = { - "./af": 406, - "./af.js": 406, - "./ar": 407, - "./ar-dz": 408, - "./ar-dz.js": 408, - "./ar-kw": 409, - "./ar-kw.js": 409, - "./ar-ly": 410, - "./ar-ly.js": 410, - "./ar-ma": 411, - "./ar-ma.js": 411, - "./ar-sa": 412, - "./ar-sa.js": 412, - "./ar-tn": 413, - "./ar-tn.js": 413, - "./ar.js": 407, - "./az": 414, - "./az.js": 414, - "./be": 415, - "./be.js": 415, - "./bg": 416, - "./bg.js": 416, - "./bn": 417, - "./bn.js": 417, - "./bo": 418, - "./bo.js": 418, - "./br": 419, - "./br.js": 419, - "./bs": 420, - "./bs.js": 420, - "./ca": 421, - "./ca.js": 421, - "./cs": 422, - "./cs.js": 422, - "./cv": 423, - "./cv.js": 423, - "./cy": 424, - "./cy.js": 424, - "./da": 425, - "./da.js": 425, - "./de": 426, - "./de-at": 427, - "./de-at.js": 427, - "./de-ch": 428, - "./de-ch.js": 428, - "./de.js": 426, - "./dv": 429, - "./dv.js": 429, - "./el": 430, - "./el.js": 430, - "./en-au": 431, - "./en-au.js": 431, - "./en-ca": 432, - "./en-ca.js": 432, - "./en-gb": 433, - "./en-gb.js": 433, - "./en-ie": 434, - "./en-ie.js": 434, - "./en-nz": 435, - "./en-nz.js": 435, - "./eo": 436, - "./eo.js": 436, - "./es": 437, - "./es-do": 438, - "./es-do.js": 438, - "./es.js": 437, - "./et": 439, - "./et.js": 439, - "./eu": 440, - "./eu.js": 440, - "./fa": 441, - "./fa.js": 441, - "./fi": 442, - "./fi.js": 442, - "./fo": 443, - "./fo.js": 443, - "./fr": 444, - "./fr-ca": 445, - "./fr-ca.js": 445, - "./fr-ch": 446, - "./fr-ch.js": 446, - "./fr.js": 444, - "./fy": 447, - "./fy.js": 447, - "./gd": 448, - "./gd.js": 448, - "./gl": 449, - "./gl.js": 449, - "./gom-latn": 450, - "./gom-latn.js": 450, - "./he": 451, - "./he.js": 451, - "./hi": 452, - "./hi.js": 452, - "./hr": 453, - "./hr.js": 453, - "./hu": 454, - "./hu.js": 454, - "./hy-am": 455, - "./hy-am.js": 455, - "./id": 456, - "./id.js": 456, - "./is": 457, - "./is.js": 457, - "./it": 458, - "./it.js": 458, - "./ja": 459, - "./ja.js": 459, - "./jv": 460, - "./jv.js": 460, - "./ka": 461, - "./ka.js": 461, - "./kk": 462, - "./kk.js": 462, - "./km": 463, - "./km.js": 463, - "./kn": 464, - "./kn.js": 464, - "./ko": 465, - "./ko.js": 465, - "./ky": 466, - "./ky.js": 466, - "./lb": 467, - "./lb.js": 467, - "./lo": 468, - "./lo.js": 468, - "./lt": 469, - "./lt.js": 469, - "./lv": 470, - "./lv.js": 470, - "./me": 471, - "./me.js": 471, - "./mi": 472, - "./mi.js": 472, - "./mk": 473, - "./mk.js": 473, - "./ml": 474, - "./ml.js": 474, - "./mr": 475, - "./mr.js": 475, - "./ms": 476, - "./ms-my": 477, - "./ms-my.js": 477, - "./ms.js": 476, - "./my": 478, - "./my.js": 478, - "./nb": 479, - "./nb.js": 479, - "./ne": 480, - "./ne.js": 480, - "./nl": 481, - "./nl-be": 482, - "./nl-be.js": 482, - "./nl.js": 481, - "./nn": 483, - "./nn.js": 483, - "./pa-in": 484, - "./pa-in.js": 484, - "./pl": 485, - "./pl.js": 485, - "./pt": 486, - "./pt-br": 487, - "./pt-br.js": 487, - "./pt.js": 486, - "./ro": 488, - "./ro.js": 488, - "./ru": 489, - "./ru.js": 489, - "./sd": 490, - "./sd.js": 490, - "./se": 491, - "./se.js": 491, - "./si": 492, - "./si.js": 492, - "./sk": 493, - "./sk.js": 493, - "./sl": 494, - "./sl.js": 494, - "./sq": 495, - "./sq.js": 495, - "./sr": 496, - "./sr-cyrl": 497, - "./sr-cyrl.js": 497, - "./sr.js": 496, - "./ss": 498, - "./ss.js": 498, - "./sv": 499, - "./sv.js": 499, - "./sw": 500, - "./sw.js": 500, - "./ta": 501, - "./ta.js": 501, - "./te": 502, - "./te.js": 502, - "./tet": 503, - "./tet.js": 503, - "./th": 504, - "./th.js": 504, - "./tl-ph": 505, - "./tl-ph.js": 505, - "./tlh": 506, - "./tlh.js": 506, - "./tr": 507, - "./tr.js": 507, - "./tzl": 508, - "./tzl.js": 508, - "./tzm": 509, - "./tzm-latn": 510, - "./tzm-latn.js": 510, - "./tzm.js": 509, - "./uk": 511, - "./uk.js": 511, - "./ur": 512, - "./ur.js": 512, - "./uz": 513, - "./uz-latn": 514, - "./uz-latn.js": 514, - "./uz.js": 513, - "./vi": 515, - "./vi.js": 515, - "./x-pseudo": 516, - "./x-pseudo.js": 516, - "./yo": 517, - "./yo.js": 517, - "./zh-cn": 518, - "./zh-cn.js": 518, - "./zh-hk": 519, - "./zh-hk.js": 519, - "./zh-tw": 520, - "./zh-tw.js": 520 - }; - function webpackContext(req) { - return __webpack_require__(webpackContextResolve(req)); - }; - function webpackContextResolve(req) { - return map[req] || (function() { throw new Error("Cannot find module '" + req + "'.") }()); - }; - webpackContext.keys = function webpackContextKeys() { - return Object.keys(map); - }; - webpackContext.resolve = webpackContextResolve; - module.exports = webpackContext; - webpackContext.id = 405; + //! moment.js locale configuration + //! locale : Uzbek Latin [uz-latn] + //! author : Rasulbek Mirzayev : github.com/Rasulbeeek + + ;(function (global, factory) { + true ? factory(__webpack_require__(336)) : + typeof define === 'function' && define.amd ? define(['../moment'], factory) : + factory(global.moment) + }(this, (function (moment) { 'use strict'; + + + var uzLatn = moment.defineLocale('uz-latn', { + months : 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'), + monthsShort : 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'), + weekdays : 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'), + weekdaysShort : 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'), + weekdaysMin : 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'), + longDateFormat : { + LT : 'HH:mm', + LTS : 'HH:mm:ss', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY HH:mm', + LLLL : 'D MMMM YYYY, dddd HH:mm' + }, + calendar : { + sameDay : '[Bugun soat] LT [da]', + nextDay : '[Ertaga] LT [da]', + nextWeek : 'dddd [kuni soat] LT [da]', + lastDay : '[Kecha soat] LT [da]', + lastWeek : '[O\'tgan] dddd [kuni soat] LT [da]', + sameElse : 'L' + }, + relativeTime : { + future : 'Yaqin %s ichida', + past : 'Bir necha %s oldin', + s : 'soniya', + m : 'bir daqiqa', + mm : '%d daqiqa', + h : 'bir soat', + hh : '%d soat', + d : 'bir kun', + dd : '%d kun', + M : 'bir oy', + MM : '%d oy', + y : 'bir yil', + yy : '%d yil' + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } + }); + + return uzLatn; + + }))); /***/ }), -/* 406 */ +/* 448 */ /***/ (function(module, exports, __webpack_require__) { //! moment.js locale configuration - //! locale : Afrikaans [af] - //! author : Werner Mollentze : https://github.com/wernerm + //! locale : Vietnamese [vi] + //! author : Bang Nguyen : https://github.com/bangnk ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : + true ? factory(__webpack_require__(336)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; - var af = moment.defineLocale('af', { - months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'), - monthsShort : 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'), - weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'), - weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), - weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), - meridiemParse: /vm|nm/i, + var vi = moment.defineLocale('vi', { + months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'), + monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'), + monthsParseExact : true, + weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'), + weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'), + weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'), + weekdaysParseExact : true, + meridiemParse: /sa|ch/i, isPM : function (input) { - return /^nm$/i.test(input); + return /^ch$/i.test(input); }, meridiem : function (hours, minutes, isLower) { if (hours < 12) { - return isLower ? 'vm' : 'VM'; + return isLower ? 'sa' : 'SA'; } else { - return isLower ? 'nm' : 'NM'; + return isLower ? 'ch' : 'CH'; } }, longDateFormat : { LT : 'HH:mm', LTS : 'HH:mm:ss', L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[Vandag om] LT', - nextDay : '[Môre om] LT', - nextWeek : 'dddd [om] LT', - lastDay : '[Gister om] LT', - lastWeek : '[Laas] dddd [om] LT', - sameElse : 'L' + LL : 'D MMMM [năm] YYYY', + LLL : 'D MMMM [năm] YYYY HH:mm', + LLLL : 'dddd, D MMMM [năm] YYYY HH:mm', + l : 'DD/M/YYYY', + ll : 'D MMM YYYY', + lll : 'D MMM YYYY HH:mm', + llll : 'ddd, D MMM YYYY HH:mm' }, - relativeTime : { - future : 'oor %s', - past : '%s gelede', - s : '\'n paar sekondes', - m : '\'n minuut', - mm : '%d minute', - h : '\'n uur', - hh : '%d ure', - d : '\'n dag', - dd : '%d dae', - M : '\'n maand', - MM : '%d maande', - y : '\'n jaar', - yy : '%d jaar' + calendar : { + sameDay: '[Hôm nay lúc] LT', + nextDay: '[Ngày mai lúc] LT', + nextWeek: 'dddd [tuần tới lúc] LT', + lastDay: '[Hôm qua lúc] LT', + lastWeek: 'dddd [tuần rồi lúc] LT', + sameElse: 'L' }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + relativeTime : { + future : '%s tới', + past : '%s trước', + s : 'vài giây', + m : 'một phút', + mm : '%d phút', + h : 'một giờ', + hh : '%d giờ', + d : 'một ngày', + dd : '%d ngày', + M : 'một tháng', + MM : '%d tháng', + y : 'một năm', + yy : '%d năm' + }, + dayOfMonthOrdinalParse: /\d{1,2}/, ordinal : function (number) { - return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter + return number; }, week : { - dow : 1, // Maandag is die eerste dag van die week. - doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar. + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } }); - return af; + return vi; }))); /***/ }), -/* 407 */ +/* 449 */ /***/ (function(module, exports, __webpack_require__) { //! moment.js locale configuration - //! locale : Arabic [ar] - //! author : Abdel Said: https://github.com/abdelsaid - //! author : Ahmed Elkhatib - //! author : forabi https://github.com/forabi + //! locale : Pseudo [x-pseudo] + //! author : Andrew Hood : https://github.com/andrewhood125 ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : + true ? factory(__webpack_require__(336)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; - var symbolMap = { - '1': '١', - '2': '٢', - '3': '٣', - '4': '٤', - '5': '٥', - '6': '٦', - '7': '٧', - '8': '٨', - '9': '٩', - '0': '٠' - }; - var numberMap = { - '١': '1', - '٢': '2', - '٣': '3', - '٤': '4', - '٥': '5', - '٦': '6', - '٧': '7', - '٨': '8', - '٩': '9', - '٠': '0' - }; - var pluralForm = function (n) { - return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5; - }; - var plurals = { - s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'], - m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'], - h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'], - d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'], - M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'], - y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام'] - }; - var pluralize = function (u) { - return function (number, withoutSuffix, string, isFuture) { - var f = pluralForm(number), - str = plurals[u][pluralForm(number)]; - if (f === 2) { - str = str[withoutSuffix ? 0 : 1]; - } - return str.replace(/%d/i, number); - }; - }; - var months = [ - 'كانون الثاني يناير', - 'شباط فبراير', - 'آذار مارس', - 'نيسان أبريل', - 'أيار مايو', - 'حزيران يونيو', - 'تموز يوليو', - 'آب أغسطس', - 'أيلول سبتمبر', - 'تشرين الأول أكتوبر', - 'تشرين الثاني نوفمبر', - 'كانون الأول ديسمبر' - ]; - - var ar = moment.defineLocale('ar', { - months : months, - monthsShort : months, - weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), + var xPseudo = moment.defineLocale('x-pseudo', { + months : 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'), + monthsShort : 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'), + monthsParseExact : true, + weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'), + weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'), + weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'), weekdaysParseExact : true, longDateFormat : { LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'D/\u200FM/\u200FYYYY', + L : 'DD/MM/YYYY', LL : 'D MMMM YYYY', LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - meridiemParse: /ص|م/, - isPM : function (input) { - return 'م' === input; - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return 'ص'; - } else { - return 'م'; - } + LLLL : 'dddd, D MMMM YYYY HH:mm' }, calendar : { - sameDay: '[اليوم عند الساعة] LT', - nextDay: '[غدًا عند الساعة] LT', - nextWeek: 'dddd [عند الساعة] LT', - lastDay: '[أمس عند الساعة] LT', - lastWeek: 'dddd [عند الساعة] LT', - sameElse: 'L' + sameDay : '[T~ódá~ý át] LT', + nextDay : '[T~ómó~rró~w át] LT', + nextWeek : 'dddd [át] LT', + lastDay : '[Ý~ést~érdá~ý át] LT', + lastWeek : '[L~ást] dddd [át] LT', + sameElse : 'L' }, relativeTime : { - future : 'بعد %s', - past : 'منذ %s', - s : pluralize('s'), - m : pluralize('m'), - mm : pluralize('m'), - h : pluralize('h'), - hh : pluralize('h'), - d : pluralize('d'), - dd : pluralize('d'), - M : pluralize('M'), - MM : pluralize('M'), - y : pluralize('y'), - yy : pluralize('y') - }, - preparse: function (string) { - return string.replace(/\u200f/g, '').replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { - return numberMap[match]; - }).replace(/،/g, ','); + future : 'í~ñ %s', + past : '%s á~gó', + s : 'á ~féw ~sécó~ñds', + m : 'á ~míñ~úté', + mm : '%d m~íñú~tés', + h : 'á~ñ hó~úr', + hh : '%d h~óúrs', + d : 'á ~dáý', + dd : '%d d~áýs', + M : 'á ~móñ~th', + MM : '%d m~óñt~hs', + y : 'á ~ýéár', + yy : '%d ý~éárs' }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }).replace(/,/g, '،'); + dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, + ordinal : function (number) { + var b = number % 10, + output = (~~(number % 100 / 10) === 1) ? 'th' : + (b === 1) ? 'st' : + (b === 2) ? 'nd' : + (b === 3) ? 'rd' : 'th'; + return number + output; }, week : { - dow : 6, // Saturday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } }); - return ar; + return xPseudo; }))); /***/ }), -/* 408 */ +/* 450 */ /***/ (function(module, exports, __webpack_require__) { //! moment.js locale configuration - //! locale : Arabic (Algeria) [ar-dz] - //! author : Noureddine LOUAHEDJ : https://github.com/noureddineme + //! locale : Yoruba Nigeria [yo] + //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : + true ? factory(__webpack_require__(336)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; - var arDz = moment.defineLocale('ar-dz', { - months : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), - monthsShort : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), - weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort : 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin : 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'), - weekdaysParseExact : true, + var yo = moment.defineLocale('yo', { + months : 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'), + monthsShort : 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'), + weekdays : 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'), + weekdaysShort : 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'), + weekdaysMin : 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'), longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', + LT : 'h:mm A', + LTS : 'h:mm:ss A', L : 'DD/MM/YYYY', LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' + LLL : 'D MMMM YYYY h:mm A', + LLLL : 'dddd, D MMMM YYYY h:mm A' }, calendar : { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' + sameDay : '[Ònì ni] LT', + nextDay : '[Ọ̀la ni] LT', + nextWeek : 'dddd [Ọsẹ̀ tón\'bọ] [ni] LT', + lastDay : '[Àna ni] LT', + lastWeek : 'dddd [Ọsẹ̀ tólọ́] [ni] LT', + sameElse : 'L' }, relativeTime : { - future : 'في %s', - past : 'منذ %s', - s : 'ثوان', - m : 'دقيقة', - mm : '%d دقائق', - h : 'ساعة', - hh : '%d ساعات', - d : 'يوم', - dd : '%d أيام', - M : 'شهر', - MM : '%d أشهر', - y : 'سنة', - yy : '%d سنوات' + future : 'ní %s', + past : '%s kọjá', + s : 'ìsẹjú aayá die', + m : 'ìsẹjú kan', + mm : 'ìsẹjú %d', + h : 'wákati kan', + hh : 'wákati %d', + d : 'ọjọ́ kan', + dd : 'ọjọ́ %d', + M : 'osù kan', + MM : 'osù %d', + y : 'ọdún kan', + yy : 'ọdún %d' }, + dayOfMonthOrdinalParse : /ọjọ́\s\d{1,2}/, + ordinal : 'ọjọ́ %d', week : { - dow : 0, // Sunday is the first day of the week. - doy : 4 // The week that contains Jan 1st is the first week of the year. + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } }); - return arDz; + return yo; }))); /***/ }), -/* 409 */ +/* 451 */ /***/ (function(module, exports, __webpack_require__) { //! moment.js locale configuration - //! locale : Arabic (Kuwait) [ar-kw] - //! author : Nusret Parlak: https://github.com/nusretparlak + //! locale : Chinese (China) [zh-cn] + //! author : suupic : https://github.com/suupic + //! author : Zeno Zeng : https://github.com/zenozeng ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : + true ? factory(__webpack_require__(336)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; - var arKw = moment.defineLocale('ar-kw', { - months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), - monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), - weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact : true, + var zhCn = moment.defineLocale('zh-cn', { + months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), + monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), + weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), + weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'), + weekdaysMin : '日_一_二_三_四_五_六'.split('_'), longDateFormat : { LT : 'HH:mm', LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' + L : 'YYYY年MMMD日', + LL : 'YYYY年MMMD日', + LLL : 'YYYY年MMMD日Ah点mm分', + LLLL : 'YYYY年MMMD日ddddAh点mm分', + l : 'YYYY年MMMD日', + ll : 'YYYY年MMMD日', + lll : 'YYYY年MMMD日 HH:mm', + llll : 'YYYY年MMMD日dddd HH:mm' + }, + meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, + meridiemHour: function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === '凌晨' || meridiem === '早上' || + meridiem === '上午') { + return hour; + } else if (meridiem === '下午' || meridiem === '晚上') { + return hour + 12; + } else { + // '中午' + return hour >= 11 ? hour : hour + 12; + } + }, + meridiem : function (hour, minute, isLower) { + var hm = hour * 100 + minute; + if (hm < 600) { + return '凌晨'; + } else if (hm < 900) { + return '早上'; + } else if (hm < 1130) { + return '上午'; + } else if (hm < 1230) { + return '中午'; + } else if (hm < 1800) { + return '下午'; + } else { + return '晚上'; + } }, calendar : { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' + sameDay : '[今天]LT', + nextDay : '[明天]LT', + nextWeek : '[下]ddddLT', + lastDay : '[昨天]LT', + lastWeek : '[上]ddddLT', + sameElse : 'L' + }, + dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/, + ordinal : function (number, period) { + switch (period) { + case 'd': + case 'D': + case 'DDD': + return number + '日'; + case 'M': + return number + '月'; + case 'w': + case 'W': + return number + '周'; + default: + return number; + } }, relativeTime : { - future : 'في %s', - past : 'منذ %s', - s : 'ثوان', - m : 'دقيقة', - mm : '%d دقائق', - h : 'ساعة', - hh : '%d ساعات', - d : 'يوم', - dd : '%d أيام', - M : 'شهر', - MM : '%d أشهر', - y : 'سنة', - yy : '%d سنوات' + future : '%s内', + past : '%s前', + s : '几秒', + m : '1 分钟', + mm : '%d 分钟', + h : '1 小时', + hh : '%d 小时', + d : '1 天', + dd : '%d 天', + M : '1 个月', + MM : '%d 个月', + y : '1 年', + yy : '%d 年' }, week : { - dow : 0, // Sunday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. + // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效 + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. } }); - return arKw; + return zhCn; }))); /***/ }), -/* 410 */ +/* 452 */ /***/ (function(module, exports, __webpack_require__) { //! moment.js locale configuration - //! locale : Arabic (Lybia) [ar-ly] - //! author : Ali Hmer: https://github.com/kikoanis + //! locale : Chinese (Hong Kong) [zh-hk] + //! author : Ben : https://github.com/ben-lin + //! author : Chris Lam : https://github.com/hehachris + //! author : Konstantin : https://github.com/skfd ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : + true ? factory(__webpack_require__(336)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; - var symbolMap = { - '1': '1', - '2': '2', - '3': '3', - '4': '4', - '5': '5', - '6': '6', - '7': '7', - '8': '8', - '9': '9', - '0': '0' - }; - var pluralForm = function (n) { - return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5; - }; - var plurals = { - s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'], - m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'], - h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'], - d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'], - M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'], - y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام'] - }; - var pluralize = function (u) { - return function (number, withoutSuffix, string, isFuture) { - var f = pluralForm(number), - str = plurals[u][pluralForm(number)]; - if (f === 2) { - str = str[withoutSuffix ? 0 : 1]; - } - return str.replace(/%d/i, number); - }; - }; - var months = [ - 'يناير', - 'فبراير', - 'مارس', - 'أبريل', - 'مايو', - 'يونيو', - 'يوليو', - 'أغسطس', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر' - ]; - - var arLy = moment.defineLocale('ar-ly', { - months : months, - monthsShort : months, - weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact : true, + var zhHk = moment.defineLocale('zh-hk', { + months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), + monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), + weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), + weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'), + weekdaysMin : '日_一_二_三_四_五_六'.split('_'), longDateFormat : { LT : 'HH:mm', LTS : 'HH:mm:ss', - L : 'D/\u200FM/\u200FYYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - meridiemParse: /ص|م/, - isPM : function (input) { - return 'م' === input; + L : 'YYYY年MMMD日', + LL : 'YYYY年MMMD日', + LLL : 'YYYY年MMMD日 HH:mm', + LLLL : 'YYYY年MMMD日dddd HH:mm', + l : 'YYYY年MMMD日', + ll : 'YYYY年MMMD日', + lll : 'YYYY年MMMD日 HH:mm', + llll : 'YYYY年MMMD日dddd HH:mm' }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return 'ص'; - } else { - return 'م'; + meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, + meridiemHour : function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { + return hour; + } else if (meridiem === '中午') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === '下午' || meridiem === '晚上') { + return hour + 12; } }, - calendar : { - sameDay: '[اليوم عند الساعة] LT', - nextDay: '[غدًا عند الساعة] LT', - nextWeek: 'dddd [عند الساعة] LT', - lastDay: '[أمس عند الساعة] LT', - lastWeek: 'dddd [عند الساعة] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'بعد %s', - past : 'منذ %s', - s : pluralize('s'), - m : pluralize('m'), - mm : pluralize('m'), - h : pluralize('h'), - hh : pluralize('h'), - d : pluralize('d'), - dd : pluralize('d'), - M : pluralize('M'), - MM : pluralize('M'), - y : pluralize('y'), - yy : pluralize('y') + meridiem : function (hour, minute, isLower) { + var hm = hour * 100 + minute; + if (hm < 600) { + return '凌晨'; + } else if (hm < 900) { + return '早上'; + } else if (hm < 1130) { + return '上午'; + } else if (hm < 1230) { + return '中午'; + } else if (hm < 1800) { + return '下午'; + } else { + return '晚上'; + } }, - preparse: function (string) { - return string.replace(/\u200f/g, '').replace(/،/g, ','); + calendar : { + sameDay : '[今天]LT', + nextDay : '[明天]LT', + nextWeek : '[下]ddddLT', + lastDay : '[昨天]LT', + lastWeek : '[上]ddddLT', + sameElse : 'L' }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }).replace(/,/g, '،'); + dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, + ordinal : function (number, period) { + switch (period) { + case 'd' : + case 'D' : + case 'DDD' : + return number + '日'; + case 'M' : + return number + '月'; + case 'w' : + case 'W' : + return number + '週'; + default : + return number; + } }, - week : { - dow : 6, // Saturday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. + relativeTime : { + future : '%s內', + past : '%s前', + s : '幾秒', + m : '1 分鐘', + mm : '%d 分鐘', + h : '1 小時', + hh : '%d 小時', + d : '1 天', + dd : '%d 天', + M : '1 個月', + MM : '%d 個月', + y : '1 年', + yy : '%d 年' } }); - return arLy; + return zhHk; }))); /***/ }), -/* 411 */ +/* 453 */ /***/ (function(module, exports, __webpack_require__) { //! moment.js locale configuration - //! locale : Arabic (Morocco) [ar-ma] - //! author : ElFadili Yassine : https://github.com/ElFadiliY - //! author : Abdel Said : https://github.com/abdelsaid + //! locale : Chinese (Taiwan) [zh-tw] + //! author : Ben : https://github.com/ben-lin + //! author : Chris Lam : https://github.com/hehachris ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : + true ? factory(__webpack_require__(336)) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; - var arMa = moment.defineLocale('ar-ma', { - months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), - monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), - weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact : true, + var zhTw = moment.defineLocale('zh-tw', { + months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), + monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), + weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), + weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'), + weekdaysMin : '日_一_二_三_四_五_六'.split('_'), longDateFormat : { LT : 'HH:mm', LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' + L : 'YYYY年MMMD日', + LL : 'YYYY年MMMD日', + LLL : 'YYYY年MMMD日 HH:mm', + LLLL : 'YYYY年MMMD日dddd HH:mm', + l : 'YYYY年MMMD日', + ll : 'YYYY年MMMD日', + lll : 'YYYY年MMMD日 HH:mm', + llll : 'YYYY年MMMD日dddd HH:mm' + }, + meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, + meridiemHour : function (hour, meridiem) { + if (hour === 12) { + hour = 0; + } + if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { + return hour; + } else if (meridiem === '中午') { + return hour >= 11 ? hour : hour + 12; + } else if (meridiem === '下午' || meridiem === '晚上') { + return hour + 12; + } + }, + meridiem : function (hour, minute, isLower) { + var hm = hour * 100 + minute; + if (hm < 600) { + return '凌晨'; + } else if (hm < 900) { + return '早上'; + } else if (hm < 1130) { + return '上午'; + } else if (hm < 1230) { + return '中午'; + } else if (hm < 1800) { + return '下午'; + } else { + return '晚上'; + } }, calendar : { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' + sameDay : '[今天]LT', + nextDay : '[明天]LT', + nextWeek : '[下]ddddLT', + lastDay : '[昨天]LT', + lastWeek : '[上]ddddLT', + sameElse : 'L' }, - relativeTime : { - future : 'في %s', - past : 'منذ %s', - s : 'ثوان', - m : 'دقيقة', - mm : '%d دقائق', - h : 'ساعة', - hh : '%d ساعات', - d : 'يوم', - dd : '%d أيام', - M : 'شهر', - MM : '%d أشهر', - y : 'سنة', - yy : '%d سنوات' + dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, + ordinal : function (number, period) { + switch (period) { + case 'd' : + case 'D' : + case 'DDD' : + return number + '日'; + case 'M' : + return number + '月'; + case 'w' : + case 'W' : + return number + '週'; + default : + return number; + } }, - week : { - dow : 6, // Saturday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. + relativeTime : { + future : '%s內', + past : '%s前', + s : '幾秒', + m : '1 分鐘', + mm : '%d 分鐘', + h : '1 小時', + hh : '%d 小時', + d : '1 天', + dd : '%d 天', + M : '1 個月', + MM : '%d 個月', + y : '1 年', + yy : '%d 年' } }); - return arMa; + return zhTw; }))); /***/ }), -/* 412 */ +/* 454 */ +/***/ (function(module, exports) { + + module.exports = { + "version": "2017b", + "zones": [ + "Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5", + "Africa/Accra|LMT GMT +0020|.Q 0 -k|012121212121212121212121212121212121212121212121|-26BbX.8 6tzX.8 MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE|41e5", + "Africa/Nairobi|LMT EAT +0230 +0245|-2r.g -30 -2u -2J|01231|-1F3Cr.g 3Dzr.g okMu MFXJ|47e5", + "Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5", + "Africa/Lagos|LMT WAT|-d.A -10|01|-22y0d.A|17e6", + "Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldWV.E 2xonV.E|39e4", + "Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5", + "Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6", + "Africa/Casablanca|LMT WET WEST CET|u.k 0 -10 -10|0121212121212121213121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 Rc0 11A0 e00 e00 U00 11A0 8o0 e00 11A0 11A0 5A0 e00 17c0 1fA0 1a00 1a00 1fA0 17c0 1io0 14o0 1lc0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1lc0 14o0 1fA0|32e5", + "Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3", + "Africa/El_Aaiun|LMT -01 WET WEST|Q.M 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 Rc0 11A0 e00 e00 U00 11A0 8o0 e00 11A0 11A0 5A0 e00 17c0 1fA0 1a00 1a00 1fA0 17c0 1io0 14o0 1lc0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1lc0 14o0 1fA0|20e4", + "Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5", + "Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|01212121212121212121212121212121213|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0|51e5", + "Africa/Monrovia|MMT MMT GMT|H.8 I.u 0|012|-23Lzg.Q 28G01.m|11e5", + "Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5", + "Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5", + "Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5", + "Africa/Windhoek|+0130 SAST SAST CAT WAT WAST|-1u -20 -30 -20 -10 -20|012134545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2GJdu 1Ajdu 1cL0 1SqL0 9NA0 11D0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0|32e4", + "America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326", + "America/Anchorage|AST AWT APT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4", + "America/Port_of_Spain|LMT AST|46.4 40|01|-2kNvR.U|43e3", + "America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4", + "America/Argentina/Buenos_Aires|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0", + "America/Argentina/Catamarca|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0", + "America/Argentina/Cordoba|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0", + "America/Argentina/Jujuy|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0", + "America/Argentina/La_Rioja|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0", + "America/Argentina/Mendoza|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232312121321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0", + "America/Argentina/Rio_Gallegos|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0", + "America/Argentina/Salta|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0", + "America/Argentina/San_Juan|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0", + "America/Argentina/San_Luis|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121212321212|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0", + "America/Argentina/Tucuman|CMT -04 -03 -02|4g.M 40 30 20|0121212121212121212121212121212121212121212323232313232123232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0", + "America/Argentina/Ushuaia|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0", + "America/Curacao|LMT -0430 AST|4z.L 4u 40|012|-2kV7o.d 28KLS.d|15e4", + "America/Asuncion|AMT -04 -03|3O.E 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5", + "America/Atikokan|CST CDT CWT CPT EST|60 50 50 50 50|0101234|-25TQ0 1in0 Rnb0 3je0 8x30 iw0|28e2", + "America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5", + "America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3", + "America/Barbados|LMT BMT AST ADT|3W.t 3W.t 40 30|01232323232|-1Q0I1.v jsM0 1ODC1.v IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4", + "America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5", + "America/Belize|LMT CST -0530 CDT|5Q.M 60 5u 50|01212121212121212121212121212121212121212121212121213131|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1f0Mu qn0 lxB0 mn0|57e3", + "America/Blanc-Sablon|AST ADT AWT APT|40 30 30 30|010230|-25TS0 1in0 UGp0 8x50 iu0|11e2", + "America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2", + "America/Bogota|BMT -05 -04|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5", + "America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4", + "America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2", + "America/Campo_Grande|LMT -04 -03|3C.s 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10 Lz0 1C10 On0 1zd0 Rb0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0|77e4", + "America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4", + "America/Caracas|CMT -0430 -04|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5", + "America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3", + "America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5", + "America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5", + "America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4", + "America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5", + "America/Creston|MST PST|70 80|010|-29DR0 43B0|53e2", + "America/Cuiaba|LMT -04 -03|3I.k 40 30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10 Lz0 1C10 On0 1zd0 Rb0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0|54e4", + "America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8", + "America/Dawson|YST YDT YWT YPT YDDT PST PDT|90 80 80 80 70 80 70|0101023040565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|13e2", + "America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3", + "America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5", + "America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|01234252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 Jy10 SL0 dnB0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5", + "America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|01212121212121341212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 LFB0 1cL0 3Cp0 1cL0 66N0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5", + "America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3", + "America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5", + "America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5", + "America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2", + "America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0", + "America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5", + "America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3", + "America/Godthab|LMT -03 -02|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3", + "America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2", + "America/Grand_Turk|KMT EST EDT AST|57.b 50 40 40|0121212121212121212121212121212121212121212121212121212121212121212121212123|-2l1uQ.N 2HHBQ.N 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2", + "America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5", + "America/Guayaquil|QMT -05 -04|5e 50 40|0121|-1yVSK 2uILK rz0|27e5", + "America/Guyana|LMT -0345 -03 -04|3Q.E 3J 30 40|0123|-2dvU7.k 2r6LQ.k Bxbf|80e4", + "America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4", + "America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5", + "America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4", + "America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0", + "America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0", + "America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0", + "America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0", + "America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0", + "America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0", + "America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0", + "America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2", + "America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2", + "America/Jamaica|KMT EST EDT|57.b 50 40|0121212121212121212121|-2l1uQ.N 2uM1Q.N 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4", + "America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3", + "America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 Bb0 10N0 2bB0 8in0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0", + "America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0", + "America/La_Paz|CMT BOST -04|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5", + "America/Lima|LMT -05 -04|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6", + "America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6", + "America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4", + "America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5", + "America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5", + "America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4", + "America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4", + "America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4", + "America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2", + "America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5", + "America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|0120303030303030303030303030303030454545454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2", + "America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6", + "America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2", + "America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3", + "America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5", + "America/Montevideo|MMT -0330 -03 -02 -0230|3I.I 3u 30 20 2u|012121212121212121212121213232323232324242423243232323232323232323232323232323232323232|-20UIf.g 8jzJ.g 1cLu 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1qMu WLu 1qMu 11zu 1o0u 11zu NAu 11bu 2iMu zWu Dq10 19X0 pd0 jz0 cm10 19X0 1fB0 1on0 11d0 1oL0 1nB0 1fzu 1aou 1fzu 1aou 1fzu 3nAu Jb0 3MN0 1SLu 4jzu 2PB0 Lb0 3Dd0 1pb0 ixd0 An0 1MN0 An0 1wp0 On0 1wp0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5", + "America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5", + "America/Nassau|LMT EST EDT|59.u 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2kNuO.u 26XdO.u 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|24e4", + "America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6", + "America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2", + "America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2", + "America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2", + "America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0", + "America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0", + "America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0", + "America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3", + "America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2", + "America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4", + "America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5", + "America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5", + "America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4", + "America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4", + "America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5", + "America/Punta_Arenas|SMT -05 -04 -03|4G.K 50 40 30|0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0", + "America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842", + "America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2", + "America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5", + "America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4", + "America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229", + "America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4", + "America/Santiago|SMT -05 -04 -03|4G.K 50 40 30|010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0|62e5", + "America/Santo_Domingo|SDMT EST EDT -0430 AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5", + "America/Sao_Paulo|LMT -03 -02|36.s 30 20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10 Lz0 1C10 On0 1zd0 Rb0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0|20e6", + "America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452", + "America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2", + "America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4", + "America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3", + "America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5", + "America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656", + "America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4", + "America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5", + "America/Whitehorse|YST YDT YWT YPT YDDT PST PDT|90 80 80 80 70 80 70|0101023040565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3", + "America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4", + "America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642", + "America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3", + "Antarctica/Casey|-00 +08 +11|0 -80 -b0|0121212|-2q00 1DjS0 T90 40P0 KL0 blz0|10", + "Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70", + "Antarctica/DumontDUrville|-00 +10|0 -a0|0101|-U0o0 cfq0 bFm0|80", + "Antarctica/Macquarie|AEST AEDT -00 +11|-a0 -b0 0 -b0|0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101013|-29E80 19X0 4SL0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0|1", + "Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60", + "Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5", + "Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40", + "Antarctica/Rothera|-00 -03|0 30|01|gOo0|130", + "Antarctica/Syowa|-00 +03|0 -30|01|-vs00|20", + "Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40", + "Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25", + "Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4", + "Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5", + "Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5", + "Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|25e5", + "Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3", + "Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4", + "Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4", + "Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4", + "Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0", + "Asia/Baghdad|BMT +03 +04|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5", + "Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4", + "Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5", + "Asia/Bangkok|BMT +07|-6G.4 -70|01|-218SG.4|15e6", + "Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0", + "Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5", + "Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4", + "Asia/Brunei|LMT +0730 +08|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4", + "Asia/Kolkata|HMT +0630 IST|-5R.k -6u -5u|01212|-18LFR.k 1unn.k HB0 7zX0|15e6", + "Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4", + "Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3", + "Asia/Shanghai|CST CDT|-80 -90|01010101010101010|-1c1I0 LX0 16p0 1jz0 1Myp0 Rb0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6", + "Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5", + "Asia/Dhaka|HMT +0630 +0530 +06 +07|-5R.k -6u -5u -60 -70|0121343|-18LFR.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6", + "Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5", + "Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4", + "Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5", + "Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4", + "Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212123|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0", + "Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101012323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 npB0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nz0 1220 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0|18e5", + "Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|01010101010101010101010101010101232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 npB0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nz0 1220 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0|25e4", + "Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5", + "Asia/Hong_Kong|LMT HKT HKST JST|-7A.G -80 -90 -90|0121312121212121212121212121212121212121212121212121212121212121212121|-2CFHA.G 1sEP6.G 1cL0 ylu 93X0 1qQu 1tX0 Rd0 1In0 NB0 1cL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1kL0 14N0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5", + "Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3", + "Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4", + "Europe/Istanbul|IMT EET EEST +04 +03|-1U.U -20 -30 -40 -30|012121212121212121212121212121212121212121212121212121234343434342121212121212121212121212121212121212121212121212121212121212124|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSp0 CL0 mN0 1Vz0 1gN0 1pz0 5Rd0 1fz0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1jB0 18L0 1ip0 17z0 qdd0 xX0 3S10 Tz0 dA10 11z0 1o10 11z0 1qN0 11z0 1ze0 11B0 WM0 1qO0 WI0 1nX0 1rB0 10L0 11B0 1in0 17d0 1in0 2pX0 19E0 1fU0 16Q0 1iI0 16Q0 1iI0 1Vd0 pb0 3Kp0 14o0 1de0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6", + "Asia/Jakarta|BMT +0720 +0730 +09 +08 WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6", + "Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4", + "Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|01212121212132121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyMk.E 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 3LB0 Em0 or0 1cn0 1dB0 16n0 10O0 1ja0 1tC0 14o0 1cM0 1a00 11A0 1Na0 An0 1MP0 AJ0 1Kp0 LC0 1oo0 Wl0 EQN0 Db0 1fB0 Rb0 npB0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4", + "Asia/Kabul|+04 +0430|-40 -4u|01|-10Qs0|46e5", + "Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4", + "Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6", + "Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5", + "Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5", + "Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2", + "Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5", + "Asia/Kuala_Lumpur|SMT +07 +0720 +0730 +09 +08|-6T.p -70 -7k -7u -90 -80|0123435|-2Bg6T.p 17anT.p l5XE 17bO 8Fyu 1so1u|71e5", + "Asia/Kuching|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|13e4", + "Asia/Macau|LMT CST CDT|-7y.k -80 -90|012121212121212121212121212121212121212121|-2le7y.k 1XO34.k 1wn0 Rd0 1wn0 R9u 1wqu U10 1tz0 TVu 1tz0 17gu 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cJu 1cL0 1cN0 1fz0 1cN0 1cOu 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cJu 1cL0 1cN0 1fz0 1cN0 1cL0|57e4", + "Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3", + "Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5", + "Asia/Manila|+08 +09|-80 -90|010101010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6", + "Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4", + "Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4", + "Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5", + "Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5", + "Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4", + "Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4", + "Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|01231|-2um8n 97XR 1lTzu 2Onc0|29e5", + "Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|0123232323232323232323232323232323232323232323|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|73e4", + "Asia/Rangoon|RMT +0630 +09|-6o.E -6u -90|0121|-21Jio.E SmnS.E 7j9u|48e5", + "Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4", + "Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4", + "Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -9u -a0|0123141414141414135353|-2um8r.Q 97XV.Q 1m1zu kKo0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6", + "Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2", + "Asia/Taipei|CST JST CDT|-80 -90 -90|01020202020202020202020202020202020202020|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5", + "Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5", + "Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5", + "Asia/Tehran|LMT TMT +0330 +04 +05 +0430|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6", + "Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3", + "Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJH0 QL0 1lB0 13X0 1zB0 NX0 1zB0 NX0|38e6", + "Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5", + "Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5", + "Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2", + "Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4", + "Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4", + "Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5", + "Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5", + "Atlantic/Azores|HMT -02 -01 +00 WET|1S.w 20 10 0 0|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2ldW5.s aPX5.s Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4", + "Atlantic/Bermuda|LMT AST ADT|4j.i 40 30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1BnRE.G 1LTbE.G 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3", + "Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4", + "Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2xomp.U 1qOMp.U 7zX0 1djf0|50e4", + "Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3", + "Atlantic/Madeira|FMT -01 +00 +01 WET WEST|17.A 10 0 -10 0 -10|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldWQ.o aPWQ.o Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4", + "Atlantic/Reykjavik|LMT -01 +00 GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4", + "Atlantic/South_Georgia|-02|20|0||30", + "Atlantic/Stanley|SMT -04 -03 -02|3P.o 40 30 20|012121212121212323212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2", + "Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5", + "Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5", + "Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5", + "Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3", + "Australia/Currie|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|746", + "Australia/Darwin|ACST ACDT|-9u -au|010101010|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0|12e4", + "Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293kI xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368", + "Australia/Hobart|AEST AEDT|-a0 -b0|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 VfB0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4", + "Australia/Lord_Howe|AEST +1030 +1130 +11|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347", + "Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10", + "Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5", + "Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293jX xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5", + "CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00", + "CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0", + "Pacific/Easter|EMT -07 -06 -05|7h.s 70 60 50|012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0|30e2", + "EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00", + "EST|EST|50|0|", + "EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0", + "Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g5X0 14p0 1wn0 17d0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5", + "Etc/GMT+0|GMT|0|0|", + "Etc/GMT+1|-01|10|0|", + "Etc/GMT+10|-10|a0|0|", + "Etc/GMT+11|-11|b0|0|", + "Etc/GMT+12|-12|c0|0|", + "Etc/GMT+3|-03|30|0|", + "Etc/GMT+4|-04|40|0|", + "Etc/GMT+5|-05|50|0|", + "Etc/GMT+6|-06|60|0|", + "Etc/GMT+7|-07|70|0|", + "Etc/GMT+8|-08|80|0|", + "Etc/GMT+9|-09|90|0|", + "Etc/GMT-1|+01|-10|0|", + "Pacific/Port_Moresby|+10|-a0|0||25e4", + "Pacific/Pohnpei|+11|-b0|0||34e3", + "Pacific/Tarawa|+12|-c0|0||29e3", + "Etc/GMT-13|+13|-d0|0|", + "Etc/GMT-14|+14|-e0|0|", + "Etc/GMT-2|+02|-20|0|", + "Etc/GMT-3|+03|-30|0|", + "Etc/GMT-4|+04|-40|0|", + "Etc/GMT-5|+05|-50|0|", + "Etc/GMT-6|+06|-60|0|", + "Indian/Christmas|+07|-70|0||21e2", + "Etc/GMT-8|+08|-80|0|", + "Pacific/Palau|+09|-90|0||21e3", + "Etc/UCT|UCT|0|0|", + "Etc/UTC|UTC|0|0|", + "Europe/Amsterdam|AMT NST +0120 +0020 CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5", + "Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3", + "Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0", + "Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5", + "Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6", + "Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5", + "Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5", + "Europe/Prague|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 16M0 1lc0 1tA0 17A0 11c0 1io0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5", + "Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5", + "Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5", + "Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1ip0 17b0 1op0 1tb0 Q2m0 3Ne0 WM0 1fA0 1cM0 1cM0 1oJ0 1dc0 1030 1fA0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1iM0 1fA0 8Ha0 Rb0 1wN0 Rb0 1BB0 Lz0 1C20 LB0 SNX0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5", + "Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4", + "Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4", + "Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5", + "Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3", + "Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5", + "Europe/Kaliningrad|CET CEST CET CEST MSK MSD EEST EET +03|-10 -20 -20 -30 -30 -40 -30 -20 -30|0101010101010232454545454545454546767676767676767676767676767676767676767676787|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 Am0 Lb0 1en0 op0 1pNz0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4", + "Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5", + "Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4", + "Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ldXn.f aPWn.f Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5", + "Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4", + "Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|010101010101010101210343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-25Td0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5", + "Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4", + "Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5", + "Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3", + "Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6", + "Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco8.l cNb8.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6", + "Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4", + "Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5", + "Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5", + "Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810", + "Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4", + "Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5", + "Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5", + "Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4", + "Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4", + "Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0", + "Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4", + "Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1a00 1cM0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5", + "Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4", + "Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|01232323232323232121212121212121212121212121212121212121212121|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5", + "Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5", + "Europe/Zaporozhye|+0220 EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4", + "HST|HST|a0|0|", + "Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2", + "Indian/Cocos|+0630|-6u|0||596", + "Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130", + "Indian/Mahe|LMT +04|-3F.M -40|01|-2yO3F.M|79e3", + "Indian/Maldives|MMT +05|-4S -50|01|-olgS|35e4", + "Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4", + "Indian/Reunion|LMT +04|-3F.Q -40|01|-2mDDF.Q|84e4", + "Pacific/Kwajalein|+11 -12 +12|-b0 c0 -c0|012|-AX0 W9X0|14e3", + "MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00", + "MST|MST|70|0|", + "MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0", + "Pacific/Chatham|+1215 +1245 +1345|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600", + "PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0", + "Pacific/Apia|LMT -1130 -11 -10 +14 +13|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545454545454545454545454545454545454|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|37e3", + "Pacific/Bougainville|+10 +09 +11|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4", + "Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|0121212121212121212121|-2l9nd.g 2Szcd.g 1cL0 1oN0 10L0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3", + "Pacific/Enderbury|-12 -11 +13|c0 b0 -d0|012|nIc0 B8n0|1", + "Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483", + "Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|0121212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1SM0 uM0 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1SM0 uM0|88e4", + "Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3", + "Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125", + "Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4", + "Pacific/Guam|GST ChST|-a0 -a0|01|1fpq0|17e4", + "Pacific/Honolulu|HST HDT HST|au 9u a0|010102|-1thLu 8x0 lef0 8Pz0 46p0|37e4", + "Pacific/Kiritimati|-1040 -10 +14|aE a0 -e0|012|nIaE B8nk|51e2", + "Pacific/Kosrae|+11 +12|-b0 -c0|010|-AX0 1bdz0|66e2", + "Pacific/Majuro|+11 +12|-b0 -c0|01|-AX0|28e3", + "Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2", + "Pacific/Pago_Pago|LMT SST|bm.M b0|01|-2nDMB.c|37e2", + "Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E PvzB.E 5RCu 1ouJu|10e3", + "Pacific/Niue|-1120 -1130 -11|bk bu b0|012|-KfME 17y0a|12e2", + "Pacific/Norfolk|+1112 +1130 +1230 +11|-bc -bu -cu -b0|01213|-Kgbc W01G On0 1COp0|25e4", + "Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3", + "Pacific/Pitcairn|-0830 -08|8u 80|01|18Vku|56", + "Pacific/Rarotonga|-1030 -0930 -10|au 9u a0|012121212121212121212121212|lyWu IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3", + "Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4", + "Pacific/Tongatapu|+1220 +13 +14|-ck -d0 -e0|0121212121212121212121212121212121212121212121212121|-1aB0k 2n5dk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1SM0 uM0 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1SM0 uM0|75e3", + "WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00" + ], + "links": [ + "Africa/Abidjan|Africa/Bamako", + "Africa/Abidjan|Africa/Banjul", + "Africa/Abidjan|Africa/Conakry", + "Africa/Abidjan|Africa/Dakar", + "Africa/Abidjan|Africa/Freetown", + "Africa/Abidjan|Africa/Lome", + "Africa/Abidjan|Africa/Nouakchott", + "Africa/Abidjan|Africa/Ouagadougou", + "Africa/Abidjan|Africa/Sao_Tome", + "Africa/Abidjan|Africa/Timbuktu", + "Africa/Abidjan|Atlantic/St_Helena", + "Africa/Cairo|Egypt", + "Africa/Johannesburg|Africa/Maseru", + "Africa/Johannesburg|Africa/Mbabane", + "Africa/Khartoum|Africa/Juba", + "Africa/Lagos|Africa/Bangui", + "Africa/Lagos|Africa/Brazzaville", + "Africa/Lagos|Africa/Douala", + "Africa/Lagos|Africa/Kinshasa", + "Africa/Lagos|Africa/Libreville", + "Africa/Lagos|Africa/Luanda", + "Africa/Lagos|Africa/Malabo", + "Africa/Lagos|Africa/Niamey", + "Africa/Lagos|Africa/Porto-Novo", + "Africa/Maputo|Africa/Blantyre", + "Africa/Maputo|Africa/Bujumbura", + "Africa/Maputo|Africa/Gaborone", + "Africa/Maputo|Africa/Harare", + "Africa/Maputo|Africa/Kigali", + "Africa/Maputo|Africa/Lubumbashi", + "Africa/Maputo|Africa/Lusaka", + "Africa/Nairobi|Africa/Addis_Ababa", + "Africa/Nairobi|Africa/Asmara", + "Africa/Nairobi|Africa/Asmera", + "Africa/Nairobi|Africa/Dar_es_Salaam", + "Africa/Nairobi|Africa/Djibouti", + "Africa/Nairobi|Africa/Kampala", + "Africa/Nairobi|Africa/Mogadishu", + "Africa/Nairobi|Indian/Antananarivo", + "Africa/Nairobi|Indian/Comoro", + "Africa/Nairobi|Indian/Mayotte", + "Africa/Tripoli|Libya", + "America/Adak|America/Atka", + "America/Adak|US/Aleutian", + "America/Anchorage|US/Alaska", + "America/Argentina/Buenos_Aires|America/Buenos_Aires", + "America/Argentina/Catamarca|America/Argentina/ComodRivadavia", + "America/Argentina/Catamarca|America/Catamarca", + "America/Argentina/Cordoba|America/Cordoba", + "America/Argentina/Cordoba|America/Rosario", + "America/Argentina/Jujuy|America/Jujuy", + "America/Argentina/Mendoza|America/Mendoza", + "America/Atikokan|America/Coral_Harbour", + "America/Chicago|US/Central", + "America/Curacao|America/Aruba", + "America/Curacao|America/Kralendijk", + "America/Curacao|America/Lower_Princes", + "America/Denver|America/Shiprock", + "America/Denver|Navajo", + "America/Denver|US/Mountain", + "America/Detroit|US/Michigan", + "America/Edmonton|Canada/Mountain", + "America/Fort_Wayne|America/Indiana/Indianapolis", + "America/Fort_Wayne|America/Indianapolis", + "America/Fort_Wayne|US/East-Indiana", + "America/Halifax|Canada/Atlantic", + "America/Havana|Cuba", + "America/Indiana/Knox|America/Knox_IN", + "America/Indiana/Knox|US/Indiana-Starke", + "America/Jamaica|Jamaica", + "America/Kentucky/Louisville|America/Louisville", + "America/Los_Angeles|US/Pacific", + "America/Los_Angeles|US/Pacific-New", + "America/Manaus|Brazil/West", + "America/Mazatlan|Mexico/BajaSur", + "America/Mexico_City|Mexico/General", + "America/New_York|US/Eastern", + "America/Noronha|Brazil/DeNoronha", + "America/Panama|America/Cayman", + "America/Phoenix|US/Arizona", + "America/Port_of_Spain|America/Anguilla", + "America/Port_of_Spain|America/Antigua", + "America/Port_of_Spain|America/Dominica", + "America/Port_of_Spain|America/Grenada", + "America/Port_of_Spain|America/Guadeloupe", + "America/Port_of_Spain|America/Marigot", + "America/Port_of_Spain|America/Montserrat", + "America/Port_of_Spain|America/St_Barthelemy", + "America/Port_of_Spain|America/St_Kitts", + "America/Port_of_Spain|America/St_Lucia", + "America/Port_of_Spain|America/St_Thomas", + "America/Port_of_Spain|America/St_Vincent", + "America/Port_of_Spain|America/Tortola", + "America/Port_of_Spain|America/Virgin", + "America/Regina|Canada/East-Saskatchewan", + "America/Regina|Canada/Saskatchewan", + "America/Rio_Branco|America/Porto_Acre", + "America/Rio_Branco|Brazil/Acre", + "America/Santiago|Chile/Continental", + "America/Sao_Paulo|Brazil/East", + "America/St_Johns|Canada/Newfoundland", + "America/Tijuana|America/Ensenada", + "America/Tijuana|America/Santa_Isabel", + "America/Tijuana|Mexico/BajaNorte", + "America/Toronto|America/Montreal", + "America/Toronto|Canada/Eastern", + "America/Vancouver|Canada/Pacific", + "America/Whitehorse|Canada/Yukon", + "America/Winnipeg|Canada/Central", + "Asia/Ashgabat|Asia/Ashkhabad", + "Asia/Bangkok|Asia/Phnom_Penh", + "Asia/Bangkok|Asia/Vientiane", + "Asia/Dhaka|Asia/Dacca", + "Asia/Dubai|Asia/Muscat", + "Asia/Ho_Chi_Minh|Asia/Saigon", + "Asia/Hong_Kong|Hongkong", + "Asia/Jerusalem|Asia/Tel_Aviv", + "Asia/Jerusalem|Israel", + "Asia/Kathmandu|Asia/Katmandu", + "Asia/Kolkata|Asia/Calcutta", + "Asia/Kuala_Lumpur|Asia/Singapore", + "Asia/Kuala_Lumpur|Singapore", + "Asia/Macau|Asia/Macao", + "Asia/Makassar|Asia/Ujung_Pandang", + "Asia/Nicosia|Europe/Nicosia", + "Asia/Qatar|Asia/Bahrain", + "Asia/Rangoon|Asia/Yangon", + "Asia/Riyadh|Asia/Aden", + "Asia/Riyadh|Asia/Kuwait", + "Asia/Seoul|ROK", + "Asia/Shanghai|Asia/Chongqing", + "Asia/Shanghai|Asia/Chungking", + "Asia/Shanghai|Asia/Harbin", + "Asia/Shanghai|PRC", + "Asia/Taipei|ROC", + "Asia/Tehran|Iran", + "Asia/Thimphu|Asia/Thimbu", + "Asia/Tokyo|Japan", + "Asia/Ulaanbaatar|Asia/Ulan_Bator", + "Asia/Urumqi|Asia/Kashgar", + "Atlantic/Faroe|Atlantic/Faeroe", + "Atlantic/Reykjavik|Iceland", + "Atlantic/South_Georgia|Etc/GMT+2", + "Australia/Adelaide|Australia/South", + "Australia/Brisbane|Australia/Queensland", + "Australia/Broken_Hill|Australia/Yancowinna", + "Australia/Darwin|Australia/North", + "Australia/Hobart|Australia/Tasmania", + "Australia/Lord_Howe|Australia/LHI", + "Australia/Melbourne|Australia/Victoria", + "Australia/Perth|Australia/West", + "Australia/Sydney|Australia/ACT", + "Australia/Sydney|Australia/Canberra", + "Australia/Sydney|Australia/NSW", + "Etc/GMT+0|Etc/GMT", + "Etc/GMT+0|Etc/GMT-0", + "Etc/GMT+0|Etc/GMT0", + "Etc/GMT+0|Etc/Greenwich", + "Etc/GMT+0|GMT", + "Etc/GMT+0|GMT+0", + "Etc/GMT+0|GMT-0", + "Etc/GMT+0|GMT0", + "Etc/GMT+0|Greenwich", + "Etc/UCT|UCT", + "Etc/UTC|Etc/Universal", + "Etc/UTC|Etc/Zulu", + "Etc/UTC|UTC", + "Etc/UTC|Universal", + "Etc/UTC|Zulu", + "Europe/Belgrade|Europe/Ljubljana", + "Europe/Belgrade|Europe/Podgorica", + "Europe/Belgrade|Europe/Sarajevo", + "Europe/Belgrade|Europe/Skopje", + "Europe/Belgrade|Europe/Zagreb", + "Europe/Chisinau|Europe/Tiraspol", + "Europe/Dublin|Eire", + "Europe/Helsinki|Europe/Mariehamn", + "Europe/Istanbul|Asia/Istanbul", + "Europe/Istanbul|Turkey", + "Europe/Lisbon|Portugal", + "Europe/London|Europe/Belfast", + "Europe/London|Europe/Guernsey", + "Europe/London|Europe/Isle_of_Man", + "Europe/London|Europe/Jersey", + "Europe/London|GB", + "Europe/London|GB-Eire", + "Europe/Moscow|W-SU", + "Europe/Oslo|Arctic/Longyearbyen", + "Europe/Oslo|Atlantic/Jan_Mayen", + "Europe/Prague|Europe/Bratislava", + "Europe/Rome|Europe/San_Marino", + "Europe/Rome|Europe/Vatican", + "Europe/Warsaw|Poland", + "Europe/Zurich|Europe/Busingen", + "Europe/Zurich|Europe/Vaduz", + "Indian/Christmas|Etc/GMT-7", + "Pacific/Auckland|Antarctica/McMurdo", + "Pacific/Auckland|Antarctica/South_Pole", + "Pacific/Auckland|NZ", + "Pacific/Chatham|NZ-CHAT", + "Pacific/Easter|Chile/EasterIsland", + "Pacific/Guam|Pacific/Saipan", + "Pacific/Honolulu|Pacific/Johnston", + "Pacific/Honolulu|US/Hawaii", + "Pacific/Kwajalein|Kwajalein", + "Pacific/Pago_Pago|Pacific/Midway", + "Pacific/Pago_Pago|Pacific/Samoa", + "Pacific/Pago_Pago|US/Samoa", + "Pacific/Palau|Etc/GMT-9", + "Pacific/Pohnpei|Etc/GMT-11", + "Pacific/Pohnpei|Pacific/Ponape", + "Pacific/Port_Moresby|Etc/GMT-10", + "Pacific/Port_Moresby|Pacific/Chuuk", + "Pacific/Port_Moresby|Pacific/Truk", + "Pacific/Port_Moresby|Pacific/Yap", + "Pacific/Tarawa|Etc/GMT-12", + "Pacific/Tarawa|Pacific/Funafuti", + "Pacific/Tarawa|Pacific/Wake", + "Pacific/Tarawa|Pacific/Wallis" + ] + }; + +/***/ }), +/* 455 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Arabic (Saudi Arabia) [ar-sa] - //! author : Suhail Alkowaileet : https://github.com/xsoh + /* + * Copyright 2017 Palantir Technologies, Inc. All rights reserved. + * Licensed under the BSD-3 License as modified (the “License”); you may obtain a copy + * of the license at https://github.com/palantir/blueprint/blob/master/LICENSE + * and https://github.com/palantir/blueprint/blob/master/PATENTS + */ + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var moment = __webpack_require__(334); + function getTimezoneMetadata(timezone, date) { + var timestamp = date.getTime(); + var zone = moment.tz.zone(timezone); + var zonedDate = moment.tz(timestamp, timezone); + var offset = zonedDate.utcOffset(); + var offsetAsString = zonedDate.format("Z"); + var abbreviation = getAbbreviation(timezone, timestamp); + return { + timezone: timezone, + abbreviation: abbreviation, + offset: offset, + offsetAsString: offsetAsString, + population: zone.population, + }; + } + exports.getTimezoneMetadata = getTimezoneMetadata; + /** + * Get the abbreviation for a timezone. + * We need this utility because moment-timezone's `abbr` will not always give the abbreviated time zone name, + * since it falls back to the time offsets for each region. + * https://momentjs.com/timezone/docs/#/using-timezones/formatting/ + */ + function getAbbreviation(timezone, timestamp) { + var zone = moment.tz.zone(timezone); + if (zone) { + var abbreviation = zone.abbr(timestamp); + // Only include abbreviations that are not just a repeat of the offset + if (abbreviation.length > 0 && abbreviation[0] !== "-" && abbreviation[0] !== "+") { + return abbreviation; + } + } + return undefined; + } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + + +/***/ }), +/* 456 */ +/***/ (function(module, exports, __webpack_require__) { + + /* + * Copyright 2017 Palantir Technologies, Inc. All rights reserved. + * Licensed under the BSD-3 License as modified (the “License”); you may obtain a copy + * of the license at https://github.com/palantir/blueprint/blob/master/LICENSE + * and https://github.com/palantir/blueprint/blob/master/PATENTS + */ + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var moment = __webpack_require__(334); + var timezoneMetadata_1 = __webpack_require__(455); + var timezoneUtils_1 = __webpack_require__(457); + /** + * Get a list of all timezone items. + * @param date the date to use when determining timezone offsets + */ + function getTimezoneItems(date) { + return moment.tz.names().map(function (timezone) { return toTimezoneItem(timezone, date); }); + } + exports.getTimezoneItems = getTimezoneItems; + /** + * Get a list of timezone items where there is one timezone per offset + * and optionally the local timezone as the first item. + * The most populous timezone for each offset is chosen. + * @param date the date to use when determining timezone offsets + * @param includeLocalTimezone whether to include the local timezone + */ + function getInitialTimezoneItems(date, includeLocalTimezone) { + var populous = getPopulousTimezoneItems(date); + var local = getLocalTimezoneItem(date); + return includeLocalTimezone && local !== undefined ? [local].concat(populous) : populous; + } + exports.getInitialTimezoneItems = getInitialTimezoneItems; + /** + * Get the timezone item for the user's local timezone. + * @param date the date to use when determining timezone offsets + */ + function getLocalTimezoneItem(date) { + var timezone = timezoneUtils_1.getLocalTimezone(); + if (timezone !== undefined) { + var timestamp = date.getTime(); + var zonedDate = moment.tz(timestamp, timezone); + var offsetAsString = zonedDate.format("Z"); + return { + iconName: "locate", + key: timezone + "-local", + label: offsetAsString, + text: "Current timezone", + timezone: timezone, + }; + } + else { + return undefined; + } + } + exports.getLocalTimezoneItem = getLocalTimezoneItem; + /** + * Get one timezone item per offset, using the most populous region when there is more + * than one region for the offset. + * @param date the date to use when determining timezone offsets + */ + function getPopulousTimezoneItems(date) { + // Filter out noisy timezones. See https://github.com/moment/moment-timezone/issues/227 + var timezones = moment.tz.names().filter(function (timezone) { return /\//.test(timezone) && !/Etc\//.test(timezone); }); + var timezoneToMetadata = {}; + for (var _i = 0, timezones_1 = timezones; _i < timezones_1.length; _i++) { + var timezone = timezones_1[_i]; + timezoneToMetadata[timezone] = timezoneMetadata_1.getTimezoneMetadata(timezone, date); + } + // Order by offset ascending, population descending, timezone name ascending + timezones.sort(function (timezone1, timezone2) { + var _a = timezoneToMetadata[timezone1], offset1 = _a.offset, population1 = _a.population; + var _b = timezoneToMetadata[timezone2], offset2 = _b.offset, population2 = _b.population; + if (offset1 === offset2) { + if (population1 === population2) { + // Fall back to sorting alphabetically + return timezone1 < timezone2 ? -1 : 1; + } + // Descending order of population + return population2 - population1; + } + // Ascending order of offset + return offset1 - offset2; + }); + // Choose the most populous locations for each offset + var initialTimezones = []; + var prevOffset; + for (var _a = 0, timezones_2 = timezones; _a < timezones_2.length; _a++) { + var timezone = timezones_2[_a]; + var curOffset = timezoneToMetadata[timezone].offset; + if (prevOffset === undefined || prevOffset !== curOffset) { + initialTimezones.push(toTimezoneItem(timezone, date)); + prevOffset = curOffset; + } + } + return initialTimezones; + } + function toTimezoneItem(timezone, date) { + var _a = timezoneMetadata_1.getTimezoneMetadata(timezone, date), abbreviation = _a.abbreviation, offsetAsString = _a.offsetAsString; + return { + key: timezone, + label: offsetAsString, + text: timezone + (abbreviation ? " (" + abbreviation + ")" : ""), + timezone: timezone, + }; + } + + +/***/ }), +/* 457 */ +/***/ (function(module, exports, __webpack_require__) { + + /* + * Copyright 2017 Palantir Technologies, Inc. All rights reserved. + * Licensed under the BSD-3 License as modified (the “License”); you may obtain a copy + * of the license at https://github.com/palantir/blueprint/blob/master/LICENSE + * and https://github.com/palantir/blueprint/blob/master/PATENTS + */ + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var fuzzaldrin_plus_1 = __webpack_require__(458); + var moment = __webpack_require__(334); + var timezoneMetadata_1 = __webpack_require__(455); + /** + * Get the user's local timezone. + * Note that we are not guaranteed to get the correct timezone in all browsers, + * so this is a best guess. + * https://momentjs.com/timezone/docs/#/using-timezones/guessing-user-timezone/ + * https://github.com/moment/moment-timezone/blob/develop/moment-timezone.js#L328-L361 + */ + function getLocalTimezone() { + return moment.tz.guess(); + } + exports.getLocalTimezone = getLocalTimezone; + /** + * Get a list of strings that represent the given timezone for querying purposes. + * @param timezone the timezone to get the query candidates for + * @param date the date to use when determining timezone offsets + * @returns a list of queryable strings + */ + function getTimezoneQueryCandidates(timezone, date) { + var _a = timezoneMetadata_1.getTimezoneMetadata(timezone, date), abbreviation = _a.abbreviation, offsetAsString = _a.offsetAsString; + return [timezone, abbreviation, offsetAsString].filter(function (candidate) { return candidate !== undefined; }); + } + exports.getTimezoneQueryCandidates = getTimezoneQueryCandidates; + /** + * Sort and filter the given items by matching them against the given query. + * Each item is converted into a list of strings, using the `getItemQueryCandidates` parameter. + * These query candidates are concatenated to form a composite string to query against. + * Uses fuzzaldrin-plus for sorting and filtering. https://github.com/jeancroy/fuzz-aldrin-plus + * @param items the array of items to query + * @param query the string query to match each item against + * @param getItemQueryCandidates a function that converts an item into a list of query candidate strings + */ + function filterWithQueryCandidates(items, query, getItemQueryCandidates) { + return fuzzaldrin_plus_1.filter(items.map(function (item, itemIndex) { return ({ + key: itemIndex, + value: getItemQueryCandidates(item).join("/"), + }); }), query, { key: "value" }).map(function (_a) { + var key = _a.key; + return items[key]; + }); + } + exports.filterWithQueryCandidates = filterWithQueryCandidates; - var symbolMap = { - '1': '١', - '2': '٢', - '3': '٣', - '4': '٤', - '5': '٥', - '6': '٦', - '7': '٧', - '8': '٨', - '9': '٩', - '0': '٠' - }; - var numberMap = { - '١': '1', - '٢': '2', - '٣': '3', - '٤': '4', - '٥': '5', - '٦': '6', - '٧': '7', - '٨': '8', - '٩': '9', - '٠': '0' - }; + + +/***/ }), +/* 458 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {(function() { + var Query, defaultPathSeparator, filter, matcher, parseOptions, pathScorer, preparedQueryCache, scorer; - var arSa = moment.defineLocale('ar-sa', { - months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), - monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), - weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' + filter = __webpack_require__(459); + + matcher = __webpack_require__(463); + + scorer = __webpack_require__(460); + + pathScorer = __webpack_require__(461); + + Query = __webpack_require__(462); + + preparedQueryCache = null; + + defaultPathSeparator = (typeof process !== "undefined" && process !== null ? process.platform : void 0) === "win32" ? '\\' : '/'; + + module.exports = { + filter: function(candidates, query, options) { + if (options == null) { + options = {}; + } + if (!((query != null ? query.length : void 0) && (candidates != null ? candidates.length : void 0))) { + return []; + } + options = parseOptions(options, query); + return filter(candidates, query, options); }, - meridiemParse: /ص|م/, - isPM : function (input) { - return 'م' === input; + score: function(string, query, options) { + if (options == null) { + options = {}; + } + if (!((string != null ? string.length : void 0) && (query != null ? query.length : void 0))) { + return 0; + } + options = parseOptions(options, query); + if (options.usePathScoring) { + return pathScorer.score(string, query, options); + } else { + return scorer.score(string, query, options); + } }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return 'ص'; - } else { - return 'م'; + match: function(string, query, options) { + var _i, _ref, _results; + if (options == null) { + options = {}; + } + if (!string) { + return []; + } + if (!query) { + return []; + } + if (string === query) { + return (function() { + _results = []; + for (var _i = 0, _ref = string.length; 0 <= _ref ? _i < _ref : _i > _ref; 0 <= _ref ? _i++ : _i--){ _results.push(_i); } + return _results; + }).apply(this); + } + options = parseOptions(options, query); + return matcher.match(string, query, options); + }, + wrap: function(string, query, options) { + if (options == null) { + options = {}; + } + if (!string) { + return []; + } + if (!query) { + return []; + } + options = parseOptions(options, query); + return matcher.wrap(string, query, options); + }, + prepareQuery: function(query, options) { + if (options == null) { + options = {}; + } + options = parseOptions(options, query); + return options.preparedQuery; + } + }; + + parseOptions = function(options, query) { + if (options.allowErrors == null) { + options.allowErrors = false; + } + if (options.usePathScoring == null) { + options.usePathScoring = true; + } + if (options.useExtensionBonus == null) { + options.useExtensionBonus = false; + } + if (options.pathSeparator == null) { + options.pathSeparator = defaultPathSeparator; + } + if (options.optCharRegEx == null) { + options.optCharRegEx = null; + } + if (options.wrap == null) { + options.wrap = null; + } + if (options.preparedQuery == null) { + options.preparedQuery = preparedQueryCache && preparedQueryCache.query === query ? preparedQueryCache : (preparedQueryCache = new Query(query, options)); + } + return options; + }; + + }).call(this); + + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(115))) + +/***/ }), +/* 459 */ +/***/ (function(module, exports, __webpack_require__) { + + (function() { + var Query, pathScorer, pluckCandidates, scorer, sortCandidates; + + scorer = __webpack_require__(460); + + pathScorer = __webpack_require__(461); + + Query = __webpack_require__(462); + + pluckCandidates = function(a) { + return a.candidate; + }; + + sortCandidates = function(a, b) { + return b.score - a.score; + }; + + module.exports = function(candidates, query, options) { + var bKey, candidate, key, maxInners, maxResults, score, scoreProvider, scoredCandidates, spotLeft, string, usePathScoring, _i, _len; + scoredCandidates = []; + key = options.key, maxResults = options.maxResults, maxInners = options.maxInners, usePathScoring = options.usePathScoring; + spotLeft = (maxInners != null) && maxInners > 0 ? maxInners : candidates.length + 1; + bKey = key != null; + scoreProvider = usePathScoring ? pathScorer : scorer; + for (_i = 0, _len = candidates.length; _i < _len; _i++) { + candidate = candidates[_i]; + string = bKey ? candidate[key] : candidate; + if (!string) { + continue; + } + score = scoreProvider.score(string, query, options); + if (score > 0) { + scoredCandidates.push({ + candidate: candidate, + score: score + }); + if (!--spotLeft) { + break; + } + } + } + scoredCandidates.sort(sortCandidates); + candidates = scoredCandidates.map(pluckCandidates); + if (maxResults != null) { + candidates = candidates.slice(0, maxResults); + } + return candidates; + }; + + }).call(this); + + +/***/ }), +/* 460 */ +/***/ (function(module, exports) { + + (function() { + var AcronymResult, computeScore, emptyAcronymResult, isAcronymFullWord, isMatch, isSeparator, isWordEnd, isWordStart, miss_coeff, pos_bonus, scoreAcronyms, scoreCharacter, scoreConsecutives, scoreExact, scoreExactMatch, scorePattern, scorePosition, scoreSize, tau_size, wm; + + wm = 150; + + pos_bonus = 20; + + tau_size = 85; + + miss_coeff = 0.75; + + exports.score = function(string, query, options) { + var allowErrors, preparedQuery, score, string_lw; + preparedQuery = options.preparedQuery, allowErrors = options.allowErrors; + if (!(allowErrors || isMatch(string, preparedQuery.core_lw, preparedQuery.core_up))) { + return 0; + } + string_lw = string.toLowerCase(); + score = computeScore(string, string_lw, preparedQuery); + return Math.ceil(score); + }; + + exports.isMatch = isMatch = function(subject, query_lw, query_up) { + var i, j, m, n, qj_lw, qj_up, si; + m = subject.length; + n = query_lw.length; + if (!m || n > m) { + return false; + } + i = -1; + j = -1; + while (++j < n) { + qj_lw = query_lw.charCodeAt(j); + qj_up = query_up.charCodeAt(j); + while (++i < m) { + si = subject.charCodeAt(i); + if (si === qj_lw || si === qj_up) { + break; + } + } + if (i === m) { + return false; + } + } + return true; + }; + + exports.computeScore = computeScore = function(subject, subject_lw, preparedQuery) { + var acro, acro_score, align, csc_diag, csc_row, csc_score, csc_should_rebuild, i, j, m, miss_budget, miss_left, n, pos, query, query_lw, record_miss, score, score_diag, score_row, score_up, si_lw, start, sz; + query = preparedQuery.query; + query_lw = preparedQuery.query_lw; + m = subject.length; + n = query.length; + acro = scoreAcronyms(subject, subject_lw, query, query_lw); + acro_score = acro.score; + if (acro.count === n) { + return scoreExact(n, m, acro_score, acro.pos); + } + pos = subject_lw.indexOf(query_lw); + if (pos > -1) { + return scoreExactMatch(subject, subject_lw, query, query_lw, pos, n, m); + } + score_row = new Array(n); + csc_row = new Array(n); + sz = scoreSize(n, m); + miss_budget = Math.ceil(miss_coeff * n) + 5; + miss_left = miss_budget; + csc_should_rebuild = true; + j = -1; + while (++j < n) { + score_row[j] = 0; + csc_row[j] = 0; + } + i = -1; + while (++i < m) { + si_lw = subject_lw[i]; + if (!si_lw.charCodeAt(0) in preparedQuery.charCodes) { + if (csc_should_rebuild) { + j = -1; + while (++j < n) { + csc_row[j] = 0; + } + csc_should_rebuild = false; + } + continue; + } + score = 0; + score_diag = 0; + csc_diag = 0; + record_miss = true; + csc_should_rebuild = true; + j = -1; + while (++j < n) { + score_up = score_row[j]; + if (score_up > score) { + score = score_up; + } + csc_score = 0; + if (query_lw[j] === si_lw) { + start = isWordStart(i, subject, subject_lw); + csc_score = csc_diag > 0 ? csc_diag : scoreConsecutives(subject, subject_lw, query, query_lw, i, j, start); + align = score_diag + scoreCharacter(i, j, start, acro_score, csc_score); + if (align > score) { + score = align; + miss_left = miss_budget; + } else { + if (record_miss && --miss_left <= 0) { + return Math.max(score, score_row[n - 1]) * sz; + } + record_miss = false; + } } - }, - calendar : { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'في %s', - past : 'منذ %s', - s : 'ثوان', - m : 'دقيقة', - mm : '%d دقائق', - h : 'ساعة', - hh : '%d ساعات', - d : 'يوم', - dd : '%d أيام', - M : 'شهر', - MM : '%d أشهر', - y : 'سنة', - yy : '%d سنوات' - }, - preparse: function (string) { - return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { - return numberMap[match]; - }).replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }).replace(/,/g, '،'); - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. + score_diag = score_up; + csc_diag = csc_row[j]; + csc_row[j] = csc_score; + score_row[j] = score; + } } - }); + score = score_row[n - 1]; + return score * sz; + }; - return arSa; + exports.isWordStart = isWordStart = function(pos, subject, subject_lw) { + var curr_s, prev_s; + if (pos === 0) { + return true; + } + curr_s = subject[pos]; + prev_s = subject[pos - 1]; + return isSeparator(prev_s) || (curr_s !== subject_lw[pos] && prev_s === subject_lw[pos - 1]); + }; - }))); - - -/***/ }), -/* 413 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Arabic (Tunisia) [ar-tn] - //! author : Nader Toukabri : https://github.com/naderio + exports.isWordEnd = isWordEnd = function(pos, subject, subject_lw, len) { + var curr_s, next_s; + if (pos === len - 1) { + return true; + } + curr_s = subject[pos]; + next_s = subject[pos + 1]; + return isSeparator(next_s) || (curr_s === subject_lw[pos] && next_s !== subject_lw[pos + 1]); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + isSeparator = function(c) { + return c === ' ' || c === '.' || c === '-' || c === '_' || c === '/' || c === '\\'; + }; + scorePosition = function(pos) { + var sc; + if (pos < pos_bonus) { + sc = pos_bonus - pos; + return 100 + sc * sc; + } else { + return Math.max(100 + pos_bonus - pos, 0); + } + }; - var arTn = moment.defineLocale('ar-tn', { - months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), - monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact : true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات' - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4 // The week that contains Jan 4th is the first week of the year. + exports.scoreSize = scoreSize = function(n, m) { + return tau_size / (tau_size + Math.abs(m - n)); + }; + + scoreExact = function(n, m, quality, pos) { + return 2 * n * (wm * quality + scorePosition(pos)) * scoreSize(n, m); + }; + + exports.scorePattern = scorePattern = function(count, len, sameCase, start, end) { + var bonus, sz; + sz = count; + bonus = 6; + if (sameCase === count) { + bonus += 2; } - }); + if (start) { + bonus += 3; + } + if (end) { + bonus += 1; + } + if (count === len) { + if (start) { + if (sameCase === len) { + sz += 2; + } else { + sz += 1; + } + } + if (end) { + bonus += 1; + } + } + return sameCase + sz * (sz + bonus); + }; - return arTn; + exports.scoreCharacter = scoreCharacter = function(i, j, start, acro_score, csc_score) { + var posBonus; + posBonus = scorePosition(i); + if (start) { + return posBonus + wm * ((acro_score > csc_score ? acro_score : csc_score) + 10); + } + return posBonus + wm * csc_score; + }; - }))); - - -/***/ }), -/* 414 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Azerbaijani [az] - //! author : topchiyev : https://github.com/topchiyev + exports.scoreConsecutives = scoreConsecutives = function(subject, subject_lw, query, query_lw, i, j, startOfWord) { + var k, m, mi, n, nj, sameCase, sz; + m = subject.length; + n = query.length; + mi = m - i; + nj = n - j; + k = mi < nj ? mi : nj; + sameCase = 0; + sz = 0; + if (query[j] === subject[i]) { + sameCase++; + } + while (++sz < k && query_lw[++j] === subject_lw[++i]) { + if (query[j] === subject[i]) { + sameCase++; + } + } + if (sz === 1) { + return 1 + 2 * sameCase; + } + return scorePattern(sz, n, sameCase, startOfWord, isWordEnd(i, subject, subject_lw, m)); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + exports.scoreExactMatch = scoreExactMatch = function(subject, subject_lw, query, query_lw, pos, n, m) { + var end, i, pos2, sameCase, start; + start = isWordStart(pos, subject, subject_lw); + if (!start) { + pos2 = subject_lw.indexOf(query_lw, pos + 1); + if (pos2 > -1) { + start = isWordStart(pos2, subject, subject_lw); + if (start) { + pos = pos2; + } + } + } + i = -1; + sameCase = 0; + while (++i < n) { + if (query[pos + i] === subject[i]) { + sameCase++; + } + } + end = isWordEnd(pos + n - 1, subject, subject_lw, m); + return scoreExact(n, m, scorePattern(n, n, sameCase, start, end), pos); + }; + AcronymResult = (function() { + function AcronymResult(score, pos, count) { + this.score = score; + this.pos = pos; + this.count = count; + } - var suffixes = { - 1: '-inci', - 5: '-inci', - 8: '-inci', - 70: '-inci', - 80: '-inci', - 2: '-nci', - 7: '-nci', - 20: '-nci', - 50: '-nci', - 3: '-üncü', - 4: '-üncü', - 100: '-üncü', - 6: '-ncı', - 9: '-uncu', - 10: '-uncu', - 30: '-uncu', - 60: '-ıncı', - 90: '-ıncı' - }; + return AcronymResult; - var az = moment.defineLocale('az', { - months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'), - monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'), - weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'), - weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'), - weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[bugün saat] LT', - nextDay : '[sabah saat] LT', - nextWeek : '[gələn həftə] dddd [saat] LT', - lastDay : '[dünən] LT', - lastWeek : '[keçən həftə] dddd [saat] LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s sonra', - past : '%s əvvəl', - s : 'birneçə saniyyə', - m : 'bir dəqiqə', - mm : '%d dəqiqə', - h : 'bir saat', - hh : '%d saat', - d : 'bir gün', - dd : '%d gün', - M : 'bir ay', - MM : '%d ay', - y : 'bir il', - yy : '%d il' - }, - meridiemParse: /gecə|səhər|gündüz|axşam/, - isPM : function (input) { - return /^(gündüz|axşam)$/.test(input); - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'gecə'; - } else if (hour < 12) { - return 'səhər'; - } else if (hour < 17) { - return 'gündüz'; + })(); + + emptyAcronymResult = new AcronymResult(0, 0.1, 0); + + exports.scoreAcronyms = scoreAcronyms = function(subject, subject_lw, query, query_lw) { + var count, fullWord, i, j, m, n, qj_lw, sameCase, score, sepCount, sumPos; + m = subject.length; + n = query.length; + if (!(m > 1 && n > 1)) { + return emptyAcronymResult; + } + count = 0; + sepCount = 0; + sumPos = 0; + sameCase = 0; + i = -1; + j = -1; + while (++j < n) { + qj_lw = query_lw[j]; + if (isSeparator(qj_lw)) { + i = subject_lw.indexOf(qj_lw, i + 1); + if (i > -1) { + sepCount++; + continue; } else { - return 'axşam'; + break; } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/, - ordinal : function (number) { - if (number === 0) { // special case for zero - return number + '-ıncı'; + } + while (++i < m) { + if (qj_lw === subject_lw[i] && isWordStart(i, subject, subject_lw)) { + if (query[j] === subject[i]) { + sameCase++; + } + sumPos += i; + count++; + break; } - var a = number % 10, - b = number % 100 - a, - c = number >= 100 ? 100 : null; - return number + (suffixes[a] || suffixes[b] || suffixes[c]); - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + } + if (i === m) { + break; + } } - }); + if (count < 2) { + return emptyAcronymResult; + } + fullWord = count === n ? isAcronymFullWord(subject, subject_lw, query, count) : false; + score = scorePattern(count, n, sameCase, true, fullWord); + return new AcronymResult(score, sumPos / count, count + sepCount); + }; - return az; + isAcronymFullWord = function(subject, subject_lw, query, nbAcronymInQuery) { + var count, i, m, n; + m = subject.length; + n = query.length; + count = 0; + if (m > 12 * n) { + return false; + } + i = -1; + while (++i < m) { + if (isWordStart(i, subject, subject_lw) && ++count > nbAcronymInQuery) { + return false; + } + } + return true; + }; - }))); + }).call(this); /***/ }), -/* 415 */ +/* 461 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Belarusian [be] - //! author : Dmitry Demidov : https://github.com/demidov91 - //! author: Praleska: http://praleska.pro/ - //! Author : Menelion Elensúle : https://github.com/Oire + (function() { + var computeScore, countDir, file_coeff, getExtension, getExtensionScore, isMatch, scorePath, scoreSize, tau_depth, _ref; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + _ref = __webpack_require__(460), isMatch = _ref.isMatch, computeScore = _ref.computeScore, scoreSize = _ref.scoreSize; + + tau_depth = 13; + file_coeff = 1.2; - function plural(word, num) { - var forms = word.split('_'); - return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); - } - function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін', - 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін', - 'dd': 'дзень_дні_дзён', - 'MM': 'месяц_месяцы_месяцаў', - 'yy': 'год_гады_гадоў' - }; - if (key === 'm') { - return withoutSuffix ? 'хвіліна' : 'хвіліну'; + exports.score = function(string, query, options) { + var allowErrors, preparedQuery, score, string_lw; + preparedQuery = options.preparedQuery, allowErrors = options.allowErrors; + if (!(allowErrors || isMatch(string, preparedQuery.core_lw, preparedQuery.core_up))) { + return 0; } - else if (key === 'h') { - return withoutSuffix ? 'гадзіна' : 'гадзіну'; + string_lw = string.toLowerCase(); + score = computeScore(string, string_lw, preparedQuery); + score = scorePath(string, string_lw, score, options); + return Math.ceil(score); + }; + + scorePath = function(subject, subject_lw, fullPathScore, options) { + var alpha, basePathScore, basePos, depth, end, extAdjust, fileLength, pathSeparator, preparedQuery, useExtensionBonus; + if (fullPathScore === 0) { + return 0; } - else { - return number + ' ' + plural(format[key], +number); + preparedQuery = options.preparedQuery, useExtensionBonus = options.useExtensionBonus, pathSeparator = options.pathSeparator; + end = subject.length - 1; + while (subject[end] === pathSeparator) { + end--; } - } + basePos = subject.lastIndexOf(pathSeparator, end); + fileLength = end - basePos; + extAdjust = 1.0; + if (useExtensionBonus) { + extAdjust += getExtensionScore(subject_lw, preparedQuery.ext, basePos, end, 2); + fullPathScore *= extAdjust; + } + if (basePos === -1) { + return fullPathScore; + } + depth = preparedQuery.depth; + while (basePos > -1 && depth-- > 0) { + basePos = subject.lastIndexOf(pathSeparator, basePos - 1); + } + basePathScore = basePos === -1 ? fullPathScore : extAdjust * computeScore(subject.slice(basePos + 1, end + 1), subject_lw.slice(basePos + 1, end + 1), preparedQuery); + alpha = 0.5 * tau_depth / (tau_depth + countDir(subject, end + 1, pathSeparator)); + return alpha * basePathScore + (1 - alpha) * fullPathScore * scoreSize(0, file_coeff * fileLength); + }; - var be = moment.defineLocale('be', { - months : { - format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'), - standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_') - }, - monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'), - weekdays : { - format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'), - standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'), - isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/ - }, - weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'), - weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY г.', - LLL : 'D MMMM YYYY г., HH:mm', - LLLL : 'dddd, D MMMM YYYY г., HH:mm' - }, - calendar : { - sameDay: '[Сёння ў] LT', - nextDay: '[Заўтра ў] LT', - lastDay: '[Учора ў] LT', - nextWeek: function () { - return '[У] dddd [ў] LT'; - }, - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - case 5: - case 6: - return '[У мінулую] dddd [ў] LT'; - case 1: - case 2: - case 4: - return '[У мінулы] dddd [ў] LT'; - } - }, - sameElse: 'L' - }, - relativeTime : { - future : 'праз %s', - past : '%s таму', - s : 'некалькі секунд', - m : relativeTimeWithPlural, - mm : relativeTimeWithPlural, - h : relativeTimeWithPlural, - hh : relativeTimeWithPlural, - d : 'дзень', - dd : relativeTimeWithPlural, - M : 'месяц', - MM : relativeTimeWithPlural, - y : 'год', - yy : relativeTimeWithPlural - }, - meridiemParse: /ночы|раніцы|дня|вечара/, - isPM : function (input) { - return /^(дня|вечара)$/.test(input); - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'ночы'; - } else if (hour < 12) { - return 'раніцы'; - } else if (hour < 17) { - return 'дня'; - } else { - return 'вечара'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/, - ordinal: function (number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - case 'w': - case 'W': - return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы'; - case 'D': - return number + '-га'; - default: - return number; + exports.countDir = countDir = function(path, end, pathSeparator) { + var count, i; + if (end < 1) { + return 0; + } + count = 0; + i = -1; + while (++i < end && path[i] === pathSeparator) { + continue; + } + while (++i < end) { + if (path[i] === pathSeparator) { + count++; + while (++i < end && path[i] === pathSeparator) { + continue; } - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + } } - }); + return count; + }; - return be; + exports.getExtension = getExtension = function(str) { + var pos; + pos = str.lastIndexOf("."); + if (pos < 0) { + return ""; + } else { + return str.substr(pos + 1); + } + }; - }))); + getExtensionScore = function(candidate, ext, startPos, endPos, maxDepth) { + var m, matched, n, pos; + if (!ext.length) { + return 0; + } + pos = candidate.lastIndexOf(".", endPos); + if (!(pos > startPos)) { + return 0; + } + n = ext.length; + m = endPos - pos; + if (m < n) { + n = m; + m = ext.length; + } + pos++; + matched = -1; + while (++matched < n) { + if (candidate[pos + matched] !== ext[matched]) { + break; + } + } + if (matched === 0 && maxDepth > 0) { + return 0.9 * getExtensionScore(candidate, ext, startPos, pos - 2, maxDepth - 1); + } + return matched / m; + }; + + }).call(this); /***/ }), -/* 416 */ +/* 462 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Bulgarian [bg] - //! author : Krasen Borisov : https://github.com/kraz + (function() { + var Query, coreChars, countDir, getCharCodes, getExtension, opt_char_re, truncatedUpperCase, _ref; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + _ref = __webpack_require__(461), countDir = _ref.countDir, getExtension = _ref.getExtension; + module.exports = Query = (function() { + function Query(query, _arg) { + var optCharRegEx, pathSeparator, _ref1; + _ref1 = _arg != null ? _arg : {}, optCharRegEx = _ref1.optCharRegEx, pathSeparator = _ref1.pathSeparator; + if (!(query && query.length)) { + return null; + } + this.query = query; + this.query_lw = query.toLowerCase(); + this.core = coreChars(query, optCharRegEx); + this.core_lw = this.core.toLowerCase(); + this.core_up = truncatedUpperCase(this.core); + this.depth = countDir(query, query.length, pathSeparator); + this.ext = getExtension(this.query_lw); + this.charCodes = getCharCodes(this.query_lw); + } - var bg = moment.defineLocale('bg', { - months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'), - monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'), - weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'), - weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'), - weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'D.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY H:mm', - LLLL : 'dddd, D MMMM YYYY H:mm' - }, - calendar : { - sameDay : '[Днес в] LT', - nextDay : '[Утре в] LT', - nextWeek : 'dddd [в] LT', - lastDay : '[Вчера в] LT', - lastWeek : function () { - switch (this.day()) { - case 0: - case 3: - case 6: - return '[В изминалата] dddd [в] LT'; - case 1: - case 2: - case 4: - case 5: - return '[В изминалия] dddd [в] LT'; - } - }, - sameElse : 'L' - }, - relativeTime : { - future : 'след %s', - past : 'преди %s', - s : 'няколко секунди', - m : 'минута', - mm : '%d минути', - h : 'час', - hh : '%d часа', - d : 'ден', - dd : '%d дни', - M : 'месец', - MM : '%d месеца', - y : 'година', - yy : '%d години' - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, - ordinal : function (number) { - var lastDigit = number % 10, - last2Digits = number % 100; - if (number === 0) { - return number + '-ев'; - } else if (last2Digits === 0) { - return number + '-ен'; - } else if (last2Digits > 10 && last2Digits < 20) { - return number + '-ти'; - } else if (lastDigit === 1) { - return number + '-ви'; - } else if (lastDigit === 2) { - return number + '-ри'; - } else if (lastDigit === 7 || lastDigit === 8) { - return number + '-ми'; - } else { - return number + '-ти'; - } - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + return Query; + + })(); + + opt_char_re = /[ _\-:\/\\]/g; + + coreChars = function(query, optCharRegEx) { + if (optCharRegEx == null) { + optCharRegEx = opt_char_re; } - }); + return query.replace(optCharRegEx, ''); + }; - return bg; + truncatedUpperCase = function(str) { + var char, upper, _i, _len; + upper = ""; + for (_i = 0, _len = str.length; _i < _len; _i++) { + char = str[_i]; + upper += char.toUpperCase()[0]; + } + return upper; + }; - }))); + getCharCodes = function(str) { + var charCodes, i, len; + len = str.length; + i = -1; + charCodes = []; + while (++i < len) { + charCodes[str.charCodeAt(i)] = true; + } + return charCodes; + }; + + }).call(this); /***/ }), -/* 417 */ +/* 463 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Bengali [bn] - //! author : Kaushik Gandhi : https://github.com/kaushikgandhi + (function() { + var basenameMatch, computeMatch, isMatch, isWordStart, match, mergeMatches, scoreAcronyms, scoreCharacter, scoreConsecutives, _ref; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + _ref = __webpack_require__(460), isMatch = _ref.isMatch, isWordStart = _ref.isWordStart, scoreConsecutives = _ref.scoreConsecutives, scoreCharacter = _ref.scoreCharacter, scoreAcronyms = _ref.scoreAcronyms; + exports.match = match = function(string, query, options) { + var allowErrors, baseMatches, matches, pathSeparator, preparedQuery, string_lw; + allowErrors = options.allowErrors, preparedQuery = options.preparedQuery, pathSeparator = options.pathSeparator; + if (!(allowErrors || isMatch(string, preparedQuery.core_lw, preparedQuery.core_up))) { + return []; + } + string_lw = string.toLowerCase(); + matches = computeMatch(string, string_lw, preparedQuery); + if (matches.length === 0) { + return matches; + } + if (string.indexOf(pathSeparator) > -1) { + baseMatches = basenameMatch(string, string_lw, preparedQuery, pathSeparator); + matches = mergeMatches(matches, baseMatches); + } + return matches; + }; - var symbolMap = { - '1': '১', - '2': '২', - '3': '৩', - '4': '৪', - '5': '৫', - '6': '৬', - '7': '৭', - '8': '৮', - '9': '৯', - '0': '০' - }; - var numberMap = { - '১': '1', - '২': '2', - '৩': '3', - '৪': '4', - '৫': '5', - '৬': '6', - '৭': '7', - '৮': '8', - '৯': '9', - '০': '0' - }; + exports.wrap = function(string, query, options) { + var matchIndex, matchPos, matchPositions, output, strPos, tagClass, tagClose, tagOpen, _ref1; + if ((options.wrap != null)) { + _ref1 = options.wrap, tagClass = _ref1.tagClass, tagOpen = _ref1.tagOpen, tagClose = _ref1.tagClose; + } + if (tagClass == null) { + tagClass = 'highlight'; + } + if (tagOpen == null) { + tagOpen = ''; + } + if (tagClose == null) { + tagClose = ''; + } + if (string === query) { + return tagOpen + string + tagClose; + } + matchPositions = match(string, query, options); + if (matchPositions.length === 0) { + return string; + } + output = ''; + matchIndex = -1; + strPos = 0; + while (++matchIndex < matchPositions.length) { + matchPos = matchPositions[matchIndex]; + if (matchPos > strPos) { + output += string.substring(strPos, matchPos); + strPos = matchPos; + } + while (++matchIndex < matchPositions.length) { + if (matchPositions[matchIndex] === matchPos + 1) { + matchPos++; + } else { + matchIndex--; + break; + } + } + matchPos++; + if (matchPos > strPos) { + output += tagOpen; + output += string.substring(strPos, matchPos); + output += tagClose; + strPos = matchPos; + } + } + if (strPos <= string.length - 1) { + output += string.substring(strPos); + } + return output; + }; - var bn = moment.defineLocale('bn', { - months : 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'), - monthsShort : 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'), - weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'), - weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'), - weekdaysMin : 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'), - longDateFormat : { - LT : 'A h:mm সময়', - LTS : 'A h:mm:ss সময়', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, A h:mm সময়', - LLLL : 'dddd, D MMMM YYYY, A h:mm সময়' - }, - calendar : { - sameDay : '[আজ] LT', - nextDay : '[আগামীকাল] LT', - nextWeek : 'dddd, LT', - lastDay : '[গতকাল] LT', - lastWeek : '[গত] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s পরে', - past : '%s আগে', - s : 'কয়েক সেকেন্ড', - m : 'এক মিনিট', - mm : '%d মিনিট', - h : 'এক ঘন্টা', - hh : '%d ঘন্টা', - d : 'এক দিন', - dd : '%d দিন', - M : 'এক মাস', - MM : '%d মাস', - y : 'এক বছর', - yy : '%d বছর' - }, - preparse: function (string) { - return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; + basenameMatch = function(subject, subject_lw, preparedQuery, pathSeparator) { + var basePos, depth, end; + end = subject.length - 1; + while (subject[end] === pathSeparator) { + end--; + } + basePos = subject.lastIndexOf(pathSeparator, end); + if (basePos === -1) { + return []; + } + depth = preparedQuery.depth; + while (depth-- > 0) { + basePos = subject.lastIndexOf(pathSeparator, basePos - 1); + if (basePos === -1) { + return []; + } + } + basePos++; + end++; + return computeMatch(subject.slice(basePos, end), subject_lw.slice(basePos, end), preparedQuery, basePos); + }; + + mergeMatches = function(a, b) { + var ai, bj, i, j, m, n, out; + m = a.length; + n = b.length; + if (n === 0) { + return a.slice(); + } + if (m === 0) { + return b.slice(); + } + i = -1; + j = 0; + bj = b[j]; + out = []; + while (++i < m) { + ai = a[i]; + while (bj <= ai && ++j < n) { + if (bj < ai) { + out.push(bj); } - if ((meridiem === 'রাত' && hour >= 4) || - (meridiem === 'দুপুর' && hour < 5) || - meridiem === 'বিকাল') { - return hour + 12; + bj = b[j]; + } + out.push(ai); + } + while (j < n) { + out.push(b[j++]); + } + return out; + }; + + computeMatch = function(subject, subject_lw, preparedQuery, offset) { + var DIAGONAL, LEFT, STOP, UP, acro_score, align, backtrack, csc_diag, csc_row, csc_score, i, j, m, matches, move, n, pos, query, query_lw, score, score_diag, score_row, score_up, si_lw, start, trace; + if (offset == null) { + offset = 0; + } + query = preparedQuery.query; + query_lw = preparedQuery.query_lw; + m = subject.length; + n = query.length; + acro_score = scoreAcronyms(subject, subject_lw, query, query_lw).score; + score_row = new Array(n); + csc_row = new Array(n); + STOP = 0; + UP = 1; + LEFT = 2; + DIAGONAL = 3; + trace = new Array(m * n); + pos = -1; + j = -1; + while (++j < n) { + score_row[j] = 0; + csc_row[j] = 0; + } + i = -1; + while (++i < m) { + score = 0; + score_up = 0; + csc_diag = 0; + si_lw = subject_lw[i]; + j = -1; + while (++j < n) { + csc_score = 0; + align = 0; + score_diag = score_up; + if (query_lw[j] === si_lw) { + start = isWordStart(i, subject, subject_lw); + csc_score = csc_diag > 0 ? csc_diag : scoreConsecutives(subject, subject_lw, query, query_lw, i, j, start); + align = score_diag + scoreCharacter(i, j, start, acro_score, csc_score); + } + score_up = score_row[j]; + csc_diag = csc_row[j]; + if (score > score_up) { + move = LEFT; } else { - return hour; + score = score_up; + move = UP; } - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'রাত'; - } else if (hour < 10) { - return 'সকাল'; - } else if (hour < 17) { - return 'দুপুর'; - } else if (hour < 20) { - return 'বিকাল'; + if (align > score) { + score = align; + move = DIAGONAL; } else { - return 'রাত'; + csc_score = 0; } - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. + score_row[j] = score; + csc_row[j] = csc_score; + trace[++pos] = score > 0 ? move : STOP; + } } - }); + i = m - 1; + j = n - 1; + pos = i * n + j; + backtrack = true; + matches = []; + while (backtrack && i >= 0 && j >= 0) { + switch (trace[pos]) { + case UP: + i--; + pos -= n; + break; + case LEFT: + j--; + pos--; + break; + case DIAGONAL: + matches.push(i + offset); + j--; + i--; + pos -= n + 1; + break; + default: + backtrack = false; + } + } + matches.reverse(); + return matches; + }; - return bn; + }).call(this); + + +/***/ }), +/* 464 */ +/***/ (function(module, exports, __webpack_require__) { + + var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! + Copyright (c) 2016 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames + */ + /* global define */ - }))); + (function () { + 'use strict'; + + var hasOwn = {}.hasOwnProperty; + + function classNames () { + var classes = []; + + for (var i = 0; i < arguments.length; i++) { + var arg = arguments[i]; + if (!arg) continue; + + var argType = typeof arg; + + if (argType === 'string' || argType === 'number') { + classes.push(arg); + } else if (Array.isArray(arg)) { + classes.push(classNames.apply(null, arg)); + } else if (argType === 'object') { + for (var key in arg) { + if (hasOwn.call(arg, key) && arg[key]) { + classes.push(key); + } + } + } + } + + return classes.join(' '); + } + + if (typeof module !== 'undefined' && module.exports) { + module.exports = classNames; + } else if (true) { + // register as 'classnames', consistent with npm package name + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () { + return classNames; + }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else { + window.classNames = classNames; + } + }()); + + +/***/ }), +/* 465 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; + function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; + } + Object.defineProperty(exports, "__esModule", { value: true }); + __export(__webpack_require__(466)); + __export(__webpack_require__(468)); + __export(__webpack_require__(470)); + + +/***/ }), +/* 466 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var classNames = __webpack_require__(464); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var clickToCopy_1 = __webpack_require__(467); + function expand(color) { + return [color + "1", color + "2", color + "3", color + "4", color + "5"]; + } + function getHexCode(color) { + if (/^#/.test(color)) { + return color.toUpperCase(); + } + else { + return core_1.Colors[color.toUpperCase().replace(/-/g, "_")]; + } + } + function getLuminance(hex) { + var rgb = parseInt(hex.substring(1), 16); + var red = (rgb >> 16) & 0xff; + var green = (rgb >> 8) & 0xff; + var blue = (rgb >> 0) & 0xff; + var luma = 0.2126 * red + 0.7152 * green + 0.0722 * blue; + return luma; + } + var DARK_LUMA_CUTOFF = 111; + var ColorSwatch = function (_a) { + var colorName = _a.colorName, hexCode = _a.hexCode; + var style = { + backgroundColor: hexCode, + color: getLuminance(hexCode) < DARK_LUMA_CUTOFF ? core_1.Colors.WHITE : core_1.Colors.BLACK, + }; + return (React.createElement(clickToCopy_1.ClickToCopy, { className: "docs-color-swatch", style: style, value: hexCode }, + React.createElement("div", { className: "docs-color-swatch-trigger docs-clipboard-message", "data-message": hexCode }, + React.createElement("span", null, + "@", + colorName)))); + }; + var ColorPalette = function (_a) { + var colors = _a.colors; + return (React.createElement("div", { className: classNames("docs-color-palette", { "docs-color-palette-single": colors.length === 1 }) }, colors.map(function (name, i) { return React.createElement(ColorSwatch, { colorName: name, hexCode: getHexCode(name), key: i }); }))); + }; + exports.ColorBar = function (_a) { + var colors = _a.colors; + var hexString = colors.map(getHexCode).join(", "); + var jsonString = "[" + colors.map(function (c) { return "\"" + getHexCode(c) + "\""; }).join(", ") + "]"; + var swatches = colors.map(function (name, i) { return (React.createElement("div", { className: "docs-color-swatch", key: i, style: { backgroundColor: getHexCode(name) } })); }); + return (React.createElement(clickToCopy_1.ClickToCopy, { value: jsonString }, + React.createElement("div", { className: "docs-color-bar" }, + React.createElement("div", { className: "docs-color-bar-swatches" }, swatches), + React.createElement("pre", { className: "docs-color-bar-hexes docs-clipboard-message pt-text-overflow-ellipsis", "data-hover-message": "Click to copy JSON array of hex colors", "data-message": hexString })))); + }; + function createPaletteBook(palettes, className) { + return function () { return (React.createElement("section", { className: classNames("docs-color-book", className) }, palettes.map(function (palette, index) { return React.createElement(ColorPalette, { colors: palette, key: index }); }))); }; + } + exports.GrayscalePalette = createPaletteBook([["black"], ["white"], expand("dark-gray"), expand("gray"), expand("light-gray")], "docs-color-book-grayscale"); + exports.CoreColorsPalette = createPaletteBook([expand("blue"), expand("green"), expand("orange"), expand("red")]); + exports.ExtendedColorsPalette = createPaletteBook([ + expand("vermilion"), + expand("rose"), + expand("violet"), + expand("indigo"), + expand("cobalt"), + expand("turquoise"), + expand("forest"), + expand("lime"), + expand("gold"), + expand("sepia"), + ]); /***/ }), -/* 418 */ +/* 467 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Tibetan [bo] - //! author : Thupten N. Chakrishar : https://github.com/vajradog - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var symbolMap = { - '1': '༡', - '2': '༢', - '3': '༣', - '4': '༤', - '5': '༥', - '6': '༦', - '7': '༧', - '8': '༨', - '9': '༩', - '0': '༠' - }; - var numberMap = { - '༡': '1', - '༢': '2', - '༣': '3', - '༤': '4', - '༥': '5', - '༦': '6', - '༧': '7', - '༨': '8', - '༩': '9', - '༠': '0' + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(1); + var classNames = __webpack_require__(464); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var ClickToCopy = (function (_super) { + tslib_1.__extends(ClickToCopy, _super); + function ClickToCopy() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + hasCopied: false, + }; + _this.refHandlers = { + input: function (input) { return (_this.inputElement = input); }, + }; + _this.handleClickEvent = function (e) { + _this.inputElement.select(); + document.execCommand("copy"); + _this.setState({ hasCopied: true }); + core_1.Utils.safeInvoke(_this.props.onClick, e); + }; + _this.handleKeyDown = docs_1.createKeyEventHandler((_a = { + all: _this.props.onKeyDown + }, + _a[core_1.Keys.SPACE] = _this.handleClickEvent, + _a[core_1.Keys.ENTER] = _this.handleClickEvent, + _a), true); + _this.handleMouseLeave = function (e) { + _this.setState({ hasCopied: false }); + core_1.Utils.safeInvoke(_this.props.onMouseLeave, e); + }; + return _this; + var _a; + } + ClickToCopy.prototype.render = function () { + var _a = this.props, className = _a.className, children = _a.children, copiedClassName = _a.copiedClassName, value = _a.value; + return (React.createElement("div", tslib_1.__assign({}, core_1.removeNonHTMLProps(this.props, ["copiedClassName", "value"], true), { className: classNames("docs-clipboard", className, (_b = {}, _b[copiedClassName] = this.state.hasCopied, _b)), onClick: this.handleClickEvent, onMouseLeave: this.handleMouseLeave }), + React.createElement("input", { onBlur: this.handleMouseLeave, onKeyDown: this.handleKeyDown, readOnly: true, ref: this.refHandlers.input, value: value }), + children)); + var _b; + }; + return ClickToCopy; + }(React.PureComponent)); + ClickToCopy.defaultProps = { + copiedClassName: "docs-clipboard-copied", + value: "", }; - - var bo = moment.defineLocale('bo', { - months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'), - monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'), - weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'), - weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'), - weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'), - longDateFormat : { - LT : 'A h:mm', - LTS : 'A h:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, A h:mm', - LLLL : 'dddd, D MMMM YYYY, A h:mm' - }, - calendar : { - sameDay : '[དི་རིང] LT', - nextDay : '[སང་ཉིན] LT', - nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT', - lastDay : '[ཁ་སང] LT', - lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s ལ་', - past : '%s སྔན་ལ', - s : 'ལམ་སང', - m : 'སྐར་མ་གཅིག', - mm : '%d སྐར་མ', - h : 'ཆུ་ཚོད་གཅིག', - hh : '%d ཆུ་ཚོད', - d : 'ཉིན་གཅིག', - dd : '%d ཉིན་', - M : 'ཟླ་བ་གཅིག', - MM : '%d ཟླ་བ', - y : 'ལོ་གཅིག', - yy : '%d ལོ' - }, - preparse: function (string) { - return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) { - return numberMap[match]; + exports.ClickToCopy = ClickToCopy; + + +/***/ }), +/* 468 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(1); + var chroma = __webpack_require__(469); + var classNames = __webpack_require__(464); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var colorPalettes_1 = __webpack_require__(466); + var MIN_STEPS = 3; + var MAX_STEPS = 20; + var QUALITATIVE = [ + "cobalt3", + "forest3", + "gold3", + "vermilion3", + "violet3", + "turquoise3", + "rose3", + "lime3", + "sepia3", + "indigo3", + ]; + var SINGLE_HUE = [ + ["#FFB7A5", "#9E2B0E"], + ["#ffb3d0", "#a82255"], + ["#e1bae1", "#5c255c"], + ["#d6ccff", "#5642a6"], + ["#b3cfff", "#1f4b99"], + ["#97f3eb", "#008075"], + ["#b1ecb5", "#1d7324"], + ["#e8f9b6", "#728c23"], + ["#ffe4a0", "#a67908"], + ["#e4cbb2", "#63411e"], + ]; + var SEQUENTIAL = [ + ["#ffc940", "#D9822B", "#9e2b0e"], + ["#ffe39f", "#D9822B", "#9e2b0e"], + ["#ffeec5", "#DB2C6F", "#5c255c"], + ["#ffe39f", "#00B3A4", "#1f4b99"], + ["#cff3d2", "#00B3A4", "#1f4b99"], + ["#ffe39f", "#00B3A4", "#1d7324"], + ["#e8f8b6", "#00B3A4", "#1d7324"], + ["#d1e1ff", "#7157D9", "#1f4b99"], + ["#d1e1ff", "#7157D9", "#5c255c"], + ["#e1bae1", "#DB2C6F", "#5c255c"], + ]; + var DIVERGING = [ + ["#1F4B99", "#00B3A4", "#FFE39F", "#D9822B", "#9E2B0E"], + ["#1F4B99", "#00B3A4", "#FFFFFF", "#D9822B", "#9E2B0E"], + ["#1D7324", "#9BBF30", "#FFE39F", "#00B3A4", "#1F4B99"], + ["#1D7324", "#9BBF30", "#FFFFFF", "#00B3A4", "#1F4B99"], + ]; + var ColorScheme = (function (_super) { + tslib_1.__extends(ColorScheme, _super); + function ColorScheme() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + activePalette: 0, + activeSchema: 0, + steps: _this.props.steps || 5, + }; + _this.handleStepChange = docs_1.handleNumberChange(function (steps) { + _this.setState({ + steps: Math.max(MIN_STEPS, Math.min(MAX_STEPS, steps)), + }); }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; + _this.handleSchemaChange = docs_1.handleNumberChange(function (activeSchema) { + return _this.setState({ + activePalette: 0, + activeSchema: activeSchema, + }); }); - }, - meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if ((meridiem === 'མཚན་མོ' && hour >= 4) || - (meridiem === 'ཉིན་གུང' && hour < 5) || - meridiem === 'དགོང་དག') { - return hour + 12; - } else { - return hour; - } - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'མཚན་མོ'; - } else if (hour < 10) { - return 'ཞོགས་ཀས'; - } else if (hour < 17) { - return 'ཉིན་གུང'; - } else if (hour < 20) { - return 'དགོང་དག'; - } else { - return 'མཚན་མོ'; - } - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. + _this.handlePaletteChange = function (key) { + _this.setState({ activePalette: key }); + }; + _this.generateColorPalette = function (basePalette, diverging, steps) { + if (steps === void 0) { steps = _this.state.steps; } + if (diverging) { + var leftColors = chroma + .bezier(basePalette.slice(0, 3)) + .scale() + .mode("lab") + .correctLightness(true); + var rightColors = chroma + .bezier(basePalette.slice(2, 5)) + .scale() + .mode("lab") + .correctLightness(true); + var result = []; + for (var i = 0; i < steps; i++) { + var t = i / (steps - 1); + result.push(t < 0.5 ? leftColors(t * 2).hex() : rightColors(t * 2 - 1).hex()); + } + return result; + } + else { + return chroma + .bezier(basePalette) + .scale() + .correctLightness(true) + .colors(steps); + } + }; + return _this; } - }); - - return bo; - - }))); + ColorScheme.prototype.render = function () { + var _this = this; + var schema = this.props.schemes[this.state.activeSchema]; + var currentPalettes = schema.palettes.map(function (palette, index) { + return _this.renderPalette(palette, index, schema.diverging); + }); + var generatedColors = this.generateColorPalette(schema.palettes[this.state.activePalette], schema.diverging); + return (React.createElement("div", { className: "docs-color-scheme" }, + this.renderRadioGroup(), + React.createElement("div", { className: "docs-color-book" }, currentPalettes), + React.createElement("label", { className: classNames(core_1.Classes.LABEL, core_1.Classes.INLINE, "docs-color-scheme-label") }, + "Step count", + React.createElement("input", { className: core_1.Classes.INPUT, type: "number", dir: "auto", value: this.state.steps.toString(), onChange: this.handleStepChange, min: MIN_STEPS, max: MAX_STEPS })), + React.createElement(colorPalettes_1.ColorBar, { colors: generatedColors }))); + }; + ColorScheme.prototype.renderRadioGroup = function () { + if (this.props.schemes.length === 1) { + return undefined; + } + var OPTIONS = this.props.schemes.map(function (scheme, index) { + return { + className: core_1.Classes.INLINE, + label: scheme.label, + value: index.toString(), + }; + }); + return (React.createElement(core_1.RadioGroup, { key: "activeSchema", name: "activeSchema", className: "docs-color-scheme-radios", label: "Select a color scheme", options: OPTIONS, onChange: this.handleSchemaChange, selectedValue: this.state.activeSchema.toString() })); + }; + ColorScheme.prototype.renderPalette = function (palette, key, diverging) { + var colors = this.generateColorPalette(palette, diverging, 5); + var swatches = colors.map(function (hex, i) { return (React.createElement("div", { className: "docs-color-swatch", key: i, style: { backgroundColor: hex } })); }); + var classes = classNames("docs-color-palette", { + selected: key === this.state.activePalette, + }); + var clickHandler = this.handlePaletteChange.bind(this, key); + var keyDownHandler = docs_1.createKeyEventHandler((_a = {}, + _a[core_1.Keys.SPACE] = clickHandler, + _a[core_1.Keys.ENTER] = clickHandler, + _a), true); + return (React.createElement("div", { className: classes, key: key, onClick: clickHandler, onKeyDown: keyDownHandler, tabIndex: 0 }, swatches)); + var _a; + }; + return ColorScheme; + }(React.PureComponent)); + exports.ColorScheme = ColorScheme; + exports.QualitativeSchemePalette = function () { return React.createElement(colorPalettes_1.ColorBar, { colors: QUALITATIVE }); }; + exports.SequentialSchemePalette = function () { + var schemes = [{ label: "Single hue", palettes: SINGLE_HUE }, { label: "Multi-hue", palettes: SEQUENTIAL }]; + return React.createElement(ColorScheme, { schemes: schemes }); + }; + exports.DivergingSchemePalette = function () { + var schemes = [{ diverging: true, label: "Diverging", palettes: DIVERGING }]; + return React.createElement(ColorScheme, { schemes: schemes }); + }; /***/ }), -/* 419 */ +/* 469 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Breton [br] - //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou + var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module) { + /** + * @license + * + * chroma.js - JavaScript library for color conversions + * + * Copyright (c) 2011-2017, Gregor Aisch + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * 3. The name Gregor Aisch may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + (function() { + var Color, DEG2RAD, LAB_CONSTANTS, PI, PITHIRD, RAD2DEG, TWOPI, _guess_formats, _guess_formats_sorted, _input, _interpolators, abs, atan2, bezier, blend, blend_f, brewer, burn, chroma, clip_rgb, cmyk2rgb, colors, cos, css2rgb, darken, dodge, each, floor, hcg2rgb, hex2rgb, hsi2rgb, hsl2css, hsl2rgb, hsv2rgb, interpolate, interpolate_hsx, interpolate_lab, interpolate_num, interpolate_rgb, lab2lch, lab2rgb, lab_xyz, lch2lab, lch2rgb, lighten, limit, log, luminance_x, m, max, multiply, normal, num2rgb, overlay, pow, rgb2cmyk, rgb2css, rgb2hcg, rgb2hex, rgb2hsi, rgb2hsl, rgb2hsv, rgb2lab, rgb2lch, rgb2luminance, rgb2num, rgb2temperature, rgb2xyz, rgb_xyz, rnd, root, round, screen, sin, sqrt, temperature2rgb, type, unpack, w3cx11, xyz_lab, xyz_rgb, + slice = [].slice; + type = (function() { - function relativeTimeWithMutation(number, withoutSuffix, key) { - var format = { - 'mm': 'munutenn', - 'MM': 'miz', - 'dd': 'devezh' + /* + for browser-safe type checking+ + ported from jQuery's $.type + */ + var classToType, len, name, o, ref; + classToType = {}; + ref = "Boolean Number String Function Array Date RegExp Undefined Null".split(" "); + for (o = 0, len = ref.length; o < len; o++) { + name = ref[o]; + classToType["[object " + name + "]"] = name.toLowerCase(); + } + return function(obj) { + var strType; + strType = Object.prototype.toString.call(obj); + return classToType[strType] || "object"; }; - return number + ' ' + mutation(format[key], number); - } - function specialMutationForYears(number) { - switch (lastNumber(number)) { - case 1: - case 3: - case 4: - case 5: - case 9: - return number + ' bloaz'; - default: - return number + ' vloaz'; + })(); + + limit = function(x, min, max) { + if (min == null) { + min = 0; } - } - function lastNumber(number) { - if (number > 9) { - return lastNumber(number % 10); + if (max == null) { + max = 1; } - return number; - } - function mutation(text, number) { - if (number === 2) { - return softMutation(text); + if (x < min) { + x = min; } - return text; - } - function softMutation(text) { - var mutationTable = { - 'm': 'v', - 'b': 'v', - 'd': 'z' - }; - if (mutationTable[text.charAt(0)] === undefined) { - return text; + if (x > max) { + x = max; } - return mutationTable[text.charAt(0)] + text.substring(1); - } + return x; + }; - var br = moment.defineLocale('br', { - months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'), - monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'), - weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'), - weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'), - weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'h[e]mm A', - LTS : 'h[e]mm:ss A', - L : 'DD/MM/YYYY', - LL : 'D [a viz] MMMM YYYY', - LLL : 'D [a viz] MMMM YYYY h[e]mm A', - LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A' - }, - calendar : { - sameDay : '[Hiziv da] LT', - nextDay : '[Warc\'hoazh da] LT', - nextWeek : 'dddd [da] LT', - lastDay : '[Dec\'h da] LT', - lastWeek : 'dddd [paset da] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'a-benn %s', - past : '%s \'zo', - s : 'un nebeud segondennoù', - m : 'ur vunutenn', - mm : relativeTimeWithMutation, - h : 'un eur', - hh : '%d eur', - d : 'un devezh', - dd : relativeTimeWithMutation, - M : 'ur miz', - MM : relativeTimeWithMutation, - y : 'ur bloaz', - yy : specialMutationForYears - }, - dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/, - ordinal : function (number) { - var output = (number === 1) ? 'añ' : 'vet'; - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + unpack = function(args) { + if (args.length >= 3) { + return [].slice.call(args); + } else { + return args[0]; + } + }; + + clip_rgb = function(rgb) { + var i, o; + rgb._clipped = false; + rgb._unclipped = rgb.slice(0); + for (i = o = 0; o < 3; i = ++o) { + if (i < 3) { + if (rgb[i] < 0 || rgb[i] > 255) { + rgb._clipped = true; + } + if (rgb[i] < 0) { + rgb[i] = 0; + } + if (rgb[i] > 255) { + rgb[i] = 255; + } + } else if (i === 3) { + if (rgb[i] < 0) { + rgb[i] = 0; + } + if (rgb[i] > 1) { + rgb[i] = 1; + } + } + } + if (!rgb._clipped) { + delete rgb._unclipped; + } + return rgb; + }; + + PI = Math.PI, round = Math.round, cos = Math.cos, floor = Math.floor, pow = Math.pow, log = Math.log, sin = Math.sin, sqrt = Math.sqrt, atan2 = Math.atan2, max = Math.max, abs = Math.abs; + + TWOPI = PI * 2; + + PITHIRD = PI / 3; + + DEG2RAD = PI / 180; + + RAD2DEG = 180 / PI; + + chroma = function() { + if (arguments[0] instanceof Color) { + return arguments[0]; } - }); + return (function(func, args, ctor) { + ctor.prototype = func.prototype; + var child = new ctor, result = func.apply(child, args); + return Object(result) === result ? result : child; + })(Color, arguments, function(){}); + }; - return br; + _interpolators = []; - }))); - - -/***/ }), -/* 420 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Bosnian [bs] - //! author : Nedim Cholich : https://github.com/frontyard - //! based on (hr) translation by Bojan Marković + if ((typeof module !== "undefined" && module !== null) && (module.exports != null)) { + module.exports = chroma; + } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (true) { + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function() { + return chroma; + }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else { + root = typeof exports !== "undefined" && exports !== null ? exports : this; + root.chroma = chroma; + } + chroma.version = '1.3.4'; - function translate(number, withoutSuffix, key) { - var result = number + ' '; - switch (key) { - case 'm': - return withoutSuffix ? 'jedna minuta' : 'jedne minute'; - case 'mm': - if (number === 1) { - result += 'minuta'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'minute'; - } else { - result += 'minuta'; - } - return result; - case 'h': - return withoutSuffix ? 'jedan sat' : 'jednog sata'; - case 'hh': - if (number === 1) { - result += 'sat'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'sata'; - } else { - result += 'sati'; - } - return result; - case 'dd': - if (number === 1) { - result += 'dan'; - } else { - result += 'dana'; - } - return result; - case 'MM': - if (number === 1) { - result += 'mjesec'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'mjeseca'; - } else { - result += 'mjeseci'; - } - return result; - case 'yy': - if (number === 1) { - result += 'godina'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'godine'; - } else { - result += 'godina'; - } - return result; - } - } + _input = {}; - var bs = moment.defineLocale('bs', { - months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'), - monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'), - monthsParseExact: true, - weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'), - weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY H:mm', - LLLL : 'dddd, D. MMMM YYYY H:mm' - }, - calendar : { - sameDay : '[danas u] LT', - nextDay : '[sutra u] LT', - nextWeek : function () { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay : '[jučer u] LT', - lastWeek : function () { - switch (this.day()) { - case 0: - case 3: - return '[prošlu] dddd [u] LT'; - case 6: - return '[prošle] [subote] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prošli] dddd [u] LT'; - } - }, - sameElse : 'L' - }, - relativeTime : { - future : 'za %s', - past : 'prije %s', - s : 'par sekundi', - m : translate, - mm : translate, - h : translate, - hh : translate, - d : 'dan', - dd : translate, - M : 'mjesec', - MM : translate, - y : 'godinu', - yy : translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + _guess_formats = []; + + _guess_formats_sorted = false; + + Color = (function() { + function Color() { + var arg, args, chk, len, len1, me, mode, o, w; + me = this; + args = []; + for (o = 0, len = arguments.length; o < len; o++) { + arg = arguments[o]; + if (arg != null) { + args.push(arg); + } + } + mode = args[args.length - 1]; + if (_input[mode] != null) { + me._rgb = clip_rgb(_input[mode](unpack(args.slice(0, -1)))); + } else { + if (!_guess_formats_sorted) { + _guess_formats = _guess_formats.sort(function(a, b) { + return b.p - a.p; + }); + _guess_formats_sorted = true; + } + for (w = 0, len1 = _guess_formats.length; w < len1; w++) { + chk = _guess_formats[w]; + mode = chk.test.apply(chk, args); + if (mode) { + break; + } + } + if (mode) { + me._rgb = clip_rgb(_input[mode].apply(_input, args)); + } + } + if (me._rgb == null) { + console.warn('unknown format: ' + args); + } + if (me._rgb == null) { + me._rgb = [0, 0, 0]; + } + if (me._rgb.length === 3) { + me._rgb.push(1); + } } - }); - return bs; + Color.prototype.toString = function() { + return this.hex(); + }; - }))); - - -/***/ }), -/* 421 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Catalan [ca] - //! author : Juan G. Hurtado : https://github.com/juanghurtado + Color.prototype.clone = function() { + return chroma(me._rgb); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + return Color; + })(); - var ca = moment.defineLocale('ca', { - months : { - standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'), - format: 'de gener_de febrer_de març_d\'abril_de maig_de juny_de juliol_d\'agost_de setembre_d\'octubre_de novembre_de desembre'.split('_'), - isFormat: /D[oD]?(\s)+MMMM/ - }, - monthsShort : 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'), - monthsParseExact : true, - weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'), - weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'), - weekdaysMin : 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD/MM/YYYY', - LL : '[el] D MMMM [de] YYYY', - ll : 'D MMM YYYY', - LLL : '[el] D MMMM [de] YYYY [a les] H:mm', - lll : 'D MMM YYYY, H:mm', - LLLL : '[el] dddd D MMMM [de] YYYY [a les] H:mm', - llll : 'ddd D MMM YYYY, H:mm' - }, - calendar : { - sameDay : function () { - return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; - }, - nextDay : function () { - return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; - }, - nextWeek : function () { - return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; - }, - lastDay : function () { - return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; - }, - lastWeek : function () { - return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; - }, - sameElse : 'L' - }, - relativeTime : { - future : 'd\'aquí %s', - past : 'fa %s', - s : 'uns segons', - m : 'un minut', - mm : '%d minuts', - h : 'una hora', - hh : '%d hores', - d : 'un dia', - dd : '%d dies', - M : 'un mes', - MM : '%d mesos', - y : 'un any', - yy : '%d anys' - }, - dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, - ordinal : function (number, period) { - var output = (number === 1) ? 'r' : - (number === 2) ? 'n' : - (number === 3) ? 'r' : - (number === 4) ? 't' : 'è'; - if (period === 'w' || period === 'W') { - output = 'a'; - } - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + chroma._input = _input; + + + /** + ColorBrewer colors for chroma.js + + Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The + Pennsylvania State University. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software distributed + under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for the + specific language governing permissions and limitations under the License. + + @preserve + */ + + chroma.brewer = brewer = { + OrRd: ['#fff7ec', '#fee8c8', '#fdd49e', '#fdbb84', '#fc8d59', '#ef6548', '#d7301f', '#b30000', '#7f0000'], + PuBu: ['#fff7fb', '#ece7f2', '#d0d1e6', '#a6bddb', '#74a9cf', '#3690c0', '#0570b0', '#045a8d', '#023858'], + BuPu: ['#f7fcfd', '#e0ecf4', '#bfd3e6', '#9ebcda', '#8c96c6', '#8c6bb1', '#88419d', '#810f7c', '#4d004b'], + Oranges: ['#fff5eb', '#fee6ce', '#fdd0a2', '#fdae6b', '#fd8d3c', '#f16913', '#d94801', '#a63603', '#7f2704'], + BuGn: ['#f7fcfd', '#e5f5f9', '#ccece6', '#99d8c9', '#66c2a4', '#41ae76', '#238b45', '#006d2c', '#00441b'], + YlOrBr: ['#ffffe5', '#fff7bc', '#fee391', '#fec44f', '#fe9929', '#ec7014', '#cc4c02', '#993404', '#662506'], + YlGn: ['#ffffe5', '#f7fcb9', '#d9f0a3', '#addd8e', '#78c679', '#41ab5d', '#238443', '#006837', '#004529'], + Reds: ['#fff5f0', '#fee0d2', '#fcbba1', '#fc9272', '#fb6a4a', '#ef3b2c', '#cb181d', '#a50f15', '#67000d'], + RdPu: ['#fff7f3', '#fde0dd', '#fcc5c0', '#fa9fb5', '#f768a1', '#dd3497', '#ae017e', '#7a0177', '#49006a'], + Greens: ['#f7fcf5', '#e5f5e0', '#c7e9c0', '#a1d99b', '#74c476', '#41ab5d', '#238b45', '#006d2c', '#00441b'], + YlGnBu: ['#ffffd9', '#edf8b1', '#c7e9b4', '#7fcdbb', '#41b6c4', '#1d91c0', '#225ea8', '#253494', '#081d58'], + Purples: ['#fcfbfd', '#efedf5', '#dadaeb', '#bcbddc', '#9e9ac8', '#807dba', '#6a51a3', '#54278f', '#3f007d'], + GnBu: ['#f7fcf0', '#e0f3db', '#ccebc5', '#a8ddb5', '#7bccc4', '#4eb3d3', '#2b8cbe', '#0868ac', '#084081'], + Greys: ['#ffffff', '#f0f0f0', '#d9d9d9', '#bdbdbd', '#969696', '#737373', '#525252', '#252525', '#000000'], + YlOrRd: ['#ffffcc', '#ffeda0', '#fed976', '#feb24c', '#fd8d3c', '#fc4e2a', '#e31a1c', '#bd0026', '#800026'], + PuRd: ['#f7f4f9', '#e7e1ef', '#d4b9da', '#c994c7', '#df65b0', '#e7298a', '#ce1256', '#980043', '#67001f'], + Blues: ['#f7fbff', '#deebf7', '#c6dbef', '#9ecae1', '#6baed6', '#4292c6', '#2171b5', '#08519c', '#08306b'], + PuBuGn: ['#fff7fb', '#ece2f0', '#d0d1e6', '#a6bddb', '#67a9cf', '#3690c0', '#02818a', '#016c59', '#014636'], + Viridis: ['#440154', '#482777', '#3f4a8a', '#31678e', '#26838f', '#1f9d8a', '#6cce5a', '#b6de2b', '#fee825'], + Spectral: ['#9e0142', '#d53e4f', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#e6f598', '#abdda4', '#66c2a5', '#3288bd', '#5e4fa2'], + RdYlGn: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#d9ef8b', '#a6d96a', '#66bd63', '#1a9850', '#006837'], + RdBu: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#f7f7f7', '#d1e5f0', '#92c5de', '#4393c3', '#2166ac', '#053061'], + PiYG: ['#8e0152', '#c51b7d', '#de77ae', '#f1b6da', '#fde0ef', '#f7f7f7', '#e6f5d0', '#b8e186', '#7fbc41', '#4d9221', '#276419'], + PRGn: ['#40004b', '#762a83', '#9970ab', '#c2a5cf', '#e7d4e8', '#f7f7f7', '#d9f0d3', '#a6dba0', '#5aae61', '#1b7837', '#00441b'], + RdYlBu: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee090', '#ffffbf', '#e0f3f8', '#abd9e9', '#74add1', '#4575b4', '#313695'], + BrBG: ['#543005', '#8c510a', '#bf812d', '#dfc27d', '#f6e8c3', '#f5f5f5', '#c7eae5', '#80cdc1', '#35978f', '#01665e', '#003c30'], + RdGy: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#ffffff', '#e0e0e0', '#bababa', '#878787', '#4d4d4d', '#1a1a1a'], + PuOr: ['#7f3b08', '#b35806', '#e08214', '#fdb863', '#fee0b6', '#f7f7f7', '#d8daeb', '#b2abd2', '#8073ac', '#542788', '#2d004b'], + Set2: ['#66c2a5', '#fc8d62', '#8da0cb', '#e78ac3', '#a6d854', '#ffd92f', '#e5c494', '#b3b3b3'], + Accent: ['#7fc97f', '#beaed4', '#fdc086', '#ffff99', '#386cb0', '#f0027f', '#bf5b17', '#666666'], + Set1: ['#e41a1c', '#377eb8', '#4daf4a', '#984ea3', '#ff7f00', '#ffff33', '#a65628', '#f781bf', '#999999'], + Set3: ['#8dd3c7', '#ffffb3', '#bebada', '#fb8072', '#80b1d3', '#fdb462', '#b3de69', '#fccde5', '#d9d9d9', '#bc80bd', '#ccebc5', '#ffed6f'], + Dark2: ['#1b9e77', '#d95f02', '#7570b3', '#e7298a', '#66a61e', '#e6ab02', '#a6761d', '#666666'], + Paired: ['#a6cee3', '#1f78b4', '#b2df8a', '#33a02c', '#fb9a99', '#e31a1c', '#fdbf6f', '#ff7f00', '#cab2d6', '#6a3d9a', '#ffff99', '#b15928'], + Pastel2: ['#b3e2cd', '#fdcdac', '#cbd5e8', '#f4cae4', '#e6f5c9', '#fff2ae', '#f1e2cc', '#cccccc'], + Pastel1: ['#fbb4ae', '#b3cde3', '#ccebc5', '#decbe4', '#fed9a6', '#ffffcc', '#e5d8bd', '#fddaec', '#f2f2f2'] + }; + + (function() { + var key, results; + results = []; + for (key in brewer) { + results.push(brewer[key.toLowerCase()] = brewer[key]); } - }); + return results; + })(); - return ca; - }))); - - -/***/ }), -/* 422 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Czech [cs] - //! author : petrbela : https://github.com/petrbela + /** + X11 color names + + http://www.w3.org/TR/css3-color/#svg-color + */ + + w3cx11 = { + aliceblue: '#f0f8ff', + antiquewhite: '#faebd7', + aqua: '#00ffff', + aquamarine: '#7fffd4', + azure: '#f0ffff', + beige: '#f5f5dc', + bisque: '#ffe4c4', + black: '#000000', + blanchedalmond: '#ffebcd', + blue: '#0000ff', + blueviolet: '#8a2be2', + brown: '#a52a2a', + burlywood: '#deb887', + cadetblue: '#5f9ea0', + chartreuse: '#7fff00', + chocolate: '#d2691e', + coral: '#ff7f50', + cornflower: '#6495ed', + cornflowerblue: '#6495ed', + cornsilk: '#fff8dc', + crimson: '#dc143c', + cyan: '#00ffff', + darkblue: '#00008b', + darkcyan: '#008b8b', + darkgoldenrod: '#b8860b', + darkgray: '#a9a9a9', + darkgreen: '#006400', + darkgrey: '#a9a9a9', + darkkhaki: '#bdb76b', + darkmagenta: '#8b008b', + darkolivegreen: '#556b2f', + darkorange: '#ff8c00', + darkorchid: '#9932cc', + darkred: '#8b0000', + darksalmon: '#e9967a', + darkseagreen: '#8fbc8f', + darkslateblue: '#483d8b', + darkslategray: '#2f4f4f', + darkslategrey: '#2f4f4f', + darkturquoise: '#00ced1', + darkviolet: '#9400d3', + deeppink: '#ff1493', + deepskyblue: '#00bfff', + dimgray: '#696969', + dimgrey: '#696969', + dodgerblue: '#1e90ff', + firebrick: '#b22222', + floralwhite: '#fffaf0', + forestgreen: '#228b22', + fuchsia: '#ff00ff', + gainsboro: '#dcdcdc', + ghostwhite: '#f8f8ff', + gold: '#ffd700', + goldenrod: '#daa520', + gray: '#808080', + green: '#008000', + greenyellow: '#adff2f', + grey: '#808080', + honeydew: '#f0fff0', + hotpink: '#ff69b4', + indianred: '#cd5c5c', + indigo: '#4b0082', + ivory: '#fffff0', + khaki: '#f0e68c', + laserlemon: '#ffff54', + lavender: '#e6e6fa', + lavenderblush: '#fff0f5', + lawngreen: '#7cfc00', + lemonchiffon: '#fffacd', + lightblue: '#add8e6', + lightcoral: '#f08080', + lightcyan: '#e0ffff', + lightgoldenrod: '#fafad2', + lightgoldenrodyellow: '#fafad2', + lightgray: '#d3d3d3', + lightgreen: '#90ee90', + lightgrey: '#d3d3d3', + lightpink: '#ffb6c1', + lightsalmon: '#ffa07a', + lightseagreen: '#20b2aa', + lightskyblue: '#87cefa', + lightslategray: '#778899', + lightslategrey: '#778899', + lightsteelblue: '#b0c4de', + lightyellow: '#ffffe0', + lime: '#00ff00', + limegreen: '#32cd32', + linen: '#faf0e6', + magenta: '#ff00ff', + maroon: '#800000', + maroon2: '#7f0000', + maroon3: '#b03060', + mediumaquamarine: '#66cdaa', + mediumblue: '#0000cd', + mediumorchid: '#ba55d3', + mediumpurple: '#9370db', + mediumseagreen: '#3cb371', + mediumslateblue: '#7b68ee', + mediumspringgreen: '#00fa9a', + mediumturquoise: '#48d1cc', + mediumvioletred: '#c71585', + midnightblue: '#191970', + mintcream: '#f5fffa', + mistyrose: '#ffe4e1', + moccasin: '#ffe4b5', + navajowhite: '#ffdead', + navy: '#000080', + oldlace: '#fdf5e6', + olive: '#808000', + olivedrab: '#6b8e23', + orange: '#ffa500', + orangered: '#ff4500', + orchid: '#da70d6', + palegoldenrod: '#eee8aa', + palegreen: '#98fb98', + paleturquoise: '#afeeee', + palevioletred: '#db7093', + papayawhip: '#ffefd5', + peachpuff: '#ffdab9', + peru: '#cd853f', + pink: '#ffc0cb', + plum: '#dda0dd', + powderblue: '#b0e0e6', + purple: '#800080', + purple2: '#7f007f', + purple3: '#a020f0', + rebeccapurple: '#663399', + red: '#ff0000', + rosybrown: '#bc8f8f', + royalblue: '#4169e1', + saddlebrown: '#8b4513', + salmon: '#fa8072', + sandybrown: '#f4a460', + seagreen: '#2e8b57', + seashell: '#fff5ee', + sienna: '#a0522d', + silver: '#c0c0c0', + skyblue: '#87ceeb', + slateblue: '#6a5acd', + slategray: '#708090', + slategrey: '#708090', + snow: '#fffafa', + springgreen: '#00ff7f', + steelblue: '#4682b4', + tan: '#d2b48c', + teal: '#008080', + thistle: '#d8bfd8', + tomato: '#ff6347', + turquoise: '#40e0d0', + violet: '#ee82ee', + wheat: '#f5deb3', + white: '#ffffff', + whitesmoke: '#f5f5f5', + yellow: '#ffff00', + yellowgreen: '#9acd32' + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + chroma.colors = colors = w3cx11; + lab2rgb = function() { + var a, args, b, g, l, r, x, y, z; + args = unpack(arguments); + l = args[0], a = args[1], b = args[2]; + y = (l + 16) / 116; + x = isNaN(a) ? y : y + a / 500; + z = isNaN(b) ? y : y - b / 200; + y = LAB_CONSTANTS.Yn * lab_xyz(y); + x = LAB_CONSTANTS.Xn * lab_xyz(x); + z = LAB_CONSTANTS.Zn * lab_xyz(z); + r = xyz_rgb(3.2404542 * x - 1.5371385 * y - 0.4985314 * z); + g = xyz_rgb(-0.9692660 * x + 1.8760108 * y + 0.0415560 * z); + b = xyz_rgb(0.0556434 * x - 0.2040259 * y + 1.0572252 * z); + return [r, g, b, args.length > 3 ? args[3] : 1]; + }; - var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'); - var monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'); - function plural(n) { - return (n > 1) && (n < 5) && (~~(n / 10) !== 1); - } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': // a few seconds / in a few seconds / a few seconds ago - return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami'; - case 'm': // a minute / in a minute / a minute ago - return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou'); - case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'minuty' : 'minut'); - } else { - return result + 'minutami'; - } - break; - case 'h': // an hour / in an hour / an hour ago - return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou'); - case 'hh': // 9 hours / in 9 hours / 9 hours ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'hodiny' : 'hodin'); - } else { - return result + 'hodinami'; - } - break; - case 'd': // a day / in a day / a day ago - return (withoutSuffix || isFuture) ? 'den' : 'dnem'; - case 'dd': // 9 days / in 9 days / 9 days ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'dny' : 'dní'); - } else { - return result + 'dny'; - } - break; - case 'M': // a month / in a month / a month ago - return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem'; - case 'MM': // 9 months / in 9 months / 9 months ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'měsíce' : 'měsíců'); - } else { - return result + 'měsíci'; - } - break; - case 'y': // a year / in a year / a year ago - return (withoutSuffix || isFuture) ? 'rok' : 'rokem'; - case 'yy': // 9 years / in 9 years / 9 years ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'roky' : 'let'); - } else { - return result + 'lety'; - } - break; - } - } + xyz_rgb = function(r) { + return 255 * (r <= 0.00304 ? 12.92 * r : 1.055 * pow(r, 1 / 2.4) - 0.055); + }; - var cs = moment.defineLocale('cs', { - months : months, - monthsShort : monthsShort, - monthsParse : (function (months, monthsShort) { - var i, _monthsParse = []; - for (i = 0; i < 12; i++) { - // use custom parser to solve problem with July (červenec) - _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i'); - } - return _monthsParse; - }(months, monthsShort)), - shortMonthsParse : (function (monthsShort) { - var i, _shortMonthsParse = []; - for (i = 0; i < 12; i++) { - _shortMonthsParse[i] = new RegExp('^' + monthsShort[i] + '$', 'i'); - } - return _shortMonthsParse; - }(monthsShort)), - longMonthsParse : (function (months) { - var i, _longMonthsParse = []; - for (i = 0; i < 12; i++) { - _longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i'); - } - return _longMonthsParse; - }(months)), - weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'), - weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'), - weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'), - longDateFormat : { - LT: 'H:mm', - LTS : 'H:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY H:mm', - LLLL : 'dddd D. MMMM YYYY H:mm', - l : 'D. M. YYYY' - }, - calendar : { - sameDay: '[dnes v] LT', - nextDay: '[zítra v] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[v neděli v] LT'; - case 1: - case 2: - return '[v] dddd [v] LT'; - case 3: - return '[ve středu v] LT'; - case 4: - return '[ve čtvrtek v] LT'; - case 5: - return '[v pátek v] LT'; - case 6: - return '[v sobotu v] LT'; - } - }, - lastDay: '[včera v] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[minulou neděli v] LT'; - case 1: - case 2: - return '[minulé] dddd [v] LT'; - case 3: - return '[minulou středu v] LT'; - case 4: - case 5: - return '[minulý] dddd [v] LT'; - case 6: - return '[minulou sobotu v] LT'; - } - }, - sameElse: 'L' - }, - relativeTime : { - future : 'za %s', - past : 'před %s', - s : translate, - m : translate, - mm : translate, - h : translate, - hh : translate, - d : translate, - dd : translate, - M : translate, - MM : translate, - y : translate, - yy : translate - }, - dayOfMonthOrdinalParse : /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + lab_xyz = function(t) { + if (t > LAB_CONSTANTS.t1) { + return t * t * t; + } else { + return LAB_CONSTANTS.t2 * (t - LAB_CONSTANTS.t0); } - }); - - return cs; + }; - }))); - - -/***/ }), -/* 423 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Chuvash [cv] - //! author : Anatoly Mironov : https://github.com/mirontoli + LAB_CONSTANTS = { + Kn: 18, + Xn: 0.950470, + Yn: 1, + Zn: 1.088830, + t0: 0.137931034, + t1: 0.206896552, + t2: 0.12841855, + t3: 0.008856452 + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + rgb2lab = function() { + var b, g, r, ref, ref1, x, y, z; + ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; + ref1 = rgb2xyz(r, g, b), x = ref1[0], y = ref1[1], z = ref1[2]; + return [116 * y - 16, 500 * (x - y), 200 * (y - z)]; + }; + rgb_xyz = function(r) { + if ((r /= 255) <= 0.04045) { + return r / 12.92; + } else { + return pow((r + 0.055) / 1.055, 2.4); + } + }; - var cv = moment.defineLocale('cv', { - months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'), - monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'), - weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'), - weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'), - weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD-MM-YYYY', - LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]', - LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', - LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm' - }, - calendar : { - sameDay: '[Паян] LT [сехетре]', - nextDay: '[Ыран] LT [сехетре]', - lastDay: '[Ӗнер] LT [сехетре]', - nextWeek: '[Ҫитес] dddd LT [сехетре]', - lastWeek: '[Иртнӗ] dddd LT [сехетре]', - sameElse: 'L' - }, - relativeTime : { - future : function (output) { - var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран'; - return output + affix; - }, - past : '%s каялла', - s : 'пӗр-ик ҫеккунт', - m : 'пӗр минут', - mm : '%d минут', - h : 'пӗр сехет', - hh : '%d сехет', - d : 'пӗр кун', - dd : '%d кун', - M : 'пӗр уйӑх', - MM : '%d уйӑх', - y : 'пӗр ҫул', - yy : '%d ҫул' - }, - dayOfMonthOrdinalParse: /\d{1,2}-мӗш/, - ordinal : '%d-мӗш', - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + xyz_lab = function(t) { + if (t > LAB_CONSTANTS.t3) { + return pow(t, 1 / 3); + } else { + return t / LAB_CONSTANTS.t2 + LAB_CONSTANTS.t0; } - }); + }; - return cv; + rgb2xyz = function() { + var b, g, r, ref, x, y, z; + ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; + r = rgb_xyz(r); + g = rgb_xyz(g); + b = rgb_xyz(b); + x = xyz_lab((0.4124564 * r + 0.3575761 * g + 0.1804375 * b) / LAB_CONSTANTS.Xn); + y = xyz_lab((0.2126729 * r + 0.7151522 * g + 0.0721750 * b) / LAB_CONSTANTS.Yn); + z = xyz_lab((0.0193339 * r + 0.1191920 * g + 0.9503041 * b) / LAB_CONSTANTS.Zn); + return [x, y, z]; + }; - }))); - - -/***/ }), -/* 424 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Welsh [cy] - //! author : Robert Allen : https://github.com/robgallen - //! author : https://github.com/ryangreaves + chroma.lab = function() { + return (function(func, args, ctor) { + ctor.prototype = func.prototype; + var child = new ctor, result = func.apply(child, args); + return Object(result) === result ? result : child; + })(Color, slice.call(arguments).concat(['lab']), function(){}); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + _input.lab = lab2rgb; + Color.prototype.lab = function() { + return rgb2lab(this._rgb); + }; - var cy = moment.defineLocale('cy', { - months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'), - monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'), - weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'), - weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), - weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), - weekdaysParseExact : true, - // time formats are the same as en-gb - longDateFormat: { - LT: 'HH:mm', - LTS : 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Heddiw am] LT', - nextDay: '[Yfory am] LT', - nextWeek: 'dddd [am] LT', - lastDay: '[Ddoe am] LT', - lastWeek: 'dddd [diwethaf am] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'mewn %s', - past: '%s yn ôl', - s: 'ychydig eiliadau', - m: 'munud', - mm: '%d munud', - h: 'awr', - hh: '%d awr', - d: 'diwrnod', - dd: '%d diwrnod', - M: 'mis', - MM: '%d mis', - y: 'blwyddyn', - yy: '%d flynedd' - }, - dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, - // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh - ordinal: function (number) { - var b = number, - output = '', - lookup = [ - '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed - 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed - ]; - if (b > 20) { - if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) { - output = 'fed'; // not 30ain, 70ain or 90ain - } else { - output = 'ain'; - } - } else if (b > 0) { - output = lookup[b]; + bezier = function(colors) { + var I, I0, I1, c, lab0, lab1, lab2, lab3, ref, ref1, ref2; + colors = (function() { + var len, o, results; + results = []; + for (o = 0, len = colors.length; o < len; o++) { + c = colors[o]; + results.push(chroma(c)); + } + return results; + })(); + if (colors.length === 2) { + ref = (function() { + var len, o, results; + results = []; + for (o = 0, len = colors.length; o < len; o++) { + c = colors[o]; + results.push(c.lab()); } - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + return results; + })(), lab0 = ref[0], lab1 = ref[1]; + I = function(t) { + var i, lab; + lab = (function() { + var o, results; + results = []; + for (i = o = 0; o <= 2; i = ++o) { + results.push(lab0[i] + t * (lab1[i] - lab0[i])); + } + return results; + })(); + return chroma.lab.apply(chroma, lab); + }; + } else if (colors.length === 3) { + ref1 = (function() { + var len, o, results; + results = []; + for (o = 0, len = colors.length; o < len; o++) { + c = colors[o]; + results.push(c.lab()); + } + return results; + })(), lab0 = ref1[0], lab1 = ref1[1], lab2 = ref1[2]; + I = function(t) { + var i, lab; + lab = (function() { + var o, results; + results = []; + for (i = o = 0; o <= 2; i = ++o) { + results.push((1 - t) * (1 - t) * lab0[i] + 2 * (1 - t) * t * lab1[i] + t * t * lab2[i]); + } + return results; + })(); + return chroma.lab.apply(chroma, lab); + }; + } else if (colors.length === 4) { + ref2 = (function() { + var len, o, results; + results = []; + for (o = 0, len = colors.length; o < len; o++) { + c = colors[o]; + results.push(c.lab()); + } + return results; + })(), lab0 = ref2[0], lab1 = ref2[1], lab2 = ref2[2], lab3 = ref2[3]; + I = function(t) { + var i, lab; + lab = (function() { + var o, results; + results = []; + for (i = o = 0; o <= 2; i = ++o) { + results.push((1 - t) * (1 - t) * (1 - t) * lab0[i] + 3 * (1 - t) * (1 - t) * t * lab1[i] + 3 * (1 - t) * t * t * lab2[i] + t * t * t * lab3[i]); + } + return results; + })(); + return chroma.lab.apply(chroma, lab); + }; + } else if (colors.length === 5) { + I0 = bezier(colors.slice(0, 3)); + I1 = bezier(colors.slice(2, 5)); + I = function(t) { + if (t < 0.5) { + return I0(t * 2); + } else { + return I1((t - 0.5) * 2); + } + }; } - }); - - return cy; + return I; + }; - }))); - - -/***/ }), -/* 425 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Danish [da] - //! author : Ulrik Nielsen : https://github.com/mrbase + chroma.bezier = function(colors) { + var f; + f = bezier(colors); + f.scale = function() { + return chroma.scale(f); + }; + return f; + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + /* + chroma.js + + Copyright (c) 2011-2013, Gregor Aisch + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + * The name Gregor Aisch may not be used to endorse or promote products + derived from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + @source: https://github.com/gka/chroma.js + */ - var da = moment.defineLocale('da', { - months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'), - monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), - weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), - weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'), - weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY HH:mm', - LLLL : 'dddd [d.] D. MMMM YYYY [kl.] HH:mm' - }, - calendar : { - sameDay : '[i dag kl.] LT', - nextDay : '[i morgen kl.] LT', - nextWeek : 'på dddd [kl.] LT', - lastDay : '[i går kl.] LT', - lastWeek : '[i] dddd[s kl.] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'om %s', - past : '%s siden', - s : 'få sekunder', - m : 'et minut', - mm : '%d minutter', - h : 'en time', - hh : '%d timer', - d : 'en dag', - dd : '%d dage', - M : 'en måned', - MM : '%d måneder', - y : 'et år', - yy : '%d år' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + chroma.cubehelix = function(start, rotations, hue, gamma, lightness) { + var dh, dl, f; + if (start == null) { + start = 300; } - }); + if (rotations == null) { + rotations = -1.5; + } + if (hue == null) { + hue = 1; + } + if (gamma == null) { + gamma = 1; + } + if (lightness == null) { + lightness = [0, 1]; + } + dh = 0; + if (type(lightness) === 'array') { + dl = lightness[1] - lightness[0]; + } else { + dl = 0; + lightness = [lightness, lightness]; + } + f = function(fract) { + var a, amp, b, cos_a, g, h, l, r, sin_a; + a = TWOPI * ((start + 120) / 360 + rotations * fract); + l = pow(lightness[0] + dl * fract, gamma); + h = dh !== 0 ? hue[0] + fract * dh : hue; + amp = h * l * (1 - l) / 2; + cos_a = cos(a); + sin_a = sin(a); + r = l + amp * (-0.14861 * cos_a + 1.78277 * sin_a); + g = l + amp * (-0.29227 * cos_a - 0.90649 * sin_a); + b = l + amp * (+1.97294 * cos_a); + return chroma(clip_rgb([r * 255, g * 255, b * 255])); + }; + f.start = function(s) { + if (s == null) { + return start; + } + start = s; + return f; + }; + f.rotations = function(r) { + if (r == null) { + return rotations; + } + rotations = r; + return f; + }; + f.gamma = function(g) { + if (g == null) { + return gamma; + } + gamma = g; + return f; + }; + f.hue = function(h) { + if (h == null) { + return hue; + } + hue = h; + if (type(hue) === 'array') { + dh = hue[1] - hue[0]; + if (dh === 0) { + hue = hue[1]; + } + } else { + dh = 0; + } + return f; + }; + f.lightness = function(h) { + if (h == null) { + return lightness; + } + if (type(h) === 'array') { + lightness = h; + dl = h[1] - h[0]; + } else { + lightness = [h, h]; + dl = 0; + } + return f; + }; + f.scale = function() { + return chroma.scale(f); + }; + f.hue(hue); + return f; + }; - return da; + chroma.random = function() { + var code, digits, i, o; + digits = '0123456789abcdef'; + code = '#'; + for (i = o = 0; o < 6; i = ++o) { + code += digits.charAt(floor(Math.random() * 16)); + } + return new Color(code); + }; - }))); - - -/***/ }), -/* 426 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : German [de] - //! author : lluchs : https://github.com/lluchs - //! author: Menelion Elensúle: https://github.com/Oire - //! author : Mikolaj Dadela : https://github.com/mik01aj + chroma.average = function(colors, mode) { + var A, alpha, c, cnt, dx, dy, first, i, l, len, o, xyz, xyz2; + if (mode == null) { + mode = 'rgb'; + } + l = colors.length; + colors = colors.map(function(c) { + return chroma(c); + }); + first = colors.splice(0, 1)[0]; + xyz = first.get(mode); + cnt = []; + dx = 0; + dy = 0; + for (i in xyz) { + xyz[i] = xyz[i] || 0; + cnt.push(!isNaN(xyz[i]) ? 1 : 0); + if (mode.charAt(i) === 'h' && !isNaN(xyz[i])) { + A = xyz[i] / 180 * PI; + dx += cos(A); + dy += sin(A); + } + } + alpha = first.alpha(); + for (o = 0, len = colors.length; o < len; o++) { + c = colors[o]; + xyz2 = c.get(mode); + alpha += c.alpha(); + for (i in xyz) { + if (!isNaN(xyz2[i])) { + xyz[i] += xyz2[i]; + cnt[i] += 1; + if (mode.charAt(i) === 'h') { + A = xyz[i] / 180 * PI; + dx += cos(A); + dy += sin(A); + } + } + } + } + for (i in xyz) { + xyz[i] = xyz[i] / cnt[i]; + if (mode.charAt(i) === 'h') { + A = atan2(dy / cnt[i], dx / cnt[i]) / PI * 180; + while (A < 0) { + A += 360; + } + while (A >= 360) { + A -= 360; + } + xyz[i] = A; + } + } + return chroma(xyz, mode).alpha(alpha / l); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + _input.rgb = function() { + var k, ref, results, v; + ref = unpack(arguments); + results = []; + for (k in ref) { + v = ref[k]; + results.push(v); + } + return results; + }; + chroma.rgb = function() { + return (function(func, args, ctor) { + ctor.prototype = func.prototype; + var child = new ctor, result = func.apply(child, args); + return Object(result) === result ? result : child; + })(Color, slice.call(arguments).concat(['rgb']), function(){}); + }; - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - 'm': ['eine Minute', 'einer Minute'], - 'h': ['eine Stunde', 'einer Stunde'], - 'd': ['ein Tag', 'einem Tag'], - 'dd': [number + ' Tage', number + ' Tagen'], - 'M': ['ein Monat', 'einem Monat'], - 'MM': [number + ' Monate', number + ' Monaten'], - 'y': ['ein Jahr', 'einem Jahr'], - 'yy': [number + ' Jahre', number + ' Jahren'] - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } + Color.prototype.rgb = function(round) { + if (round == null) { + round = true; + } + if (round) { + return this._rgb.map(Math.round).slice(0, 3); + } else { + return this._rgb.slice(0, 3); + } + }; - var de = moment.defineLocale('de', { - months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), - monthsShort : 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'), - monthsParseExact : true, - weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), - weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), - weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY HH:mm', - LLLL : 'dddd, D. MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]' - }, - relativeTime : { - future : 'in %s', - past : 'vor %s', - s : 'ein paar Sekunden', - m : processRelativeTime, - mm : '%d Minuten', - h : processRelativeTime, - hh : '%d Stunden', - d : processRelativeTime, - dd : processRelativeTime, - M : processRelativeTime, - MM : processRelativeTime, - y : processRelativeTime, - yy : processRelativeTime - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + Color.prototype.rgba = function(round) { + if (round == null) { + round = true; } - }); + if (!round) { + return this._rgb.slice(0); + } + return [Math.round(this._rgb[0]), Math.round(this._rgb[1]), Math.round(this._rgb[2]), this._rgb[3]]; + }; - return de; + _guess_formats.push({ + p: 3, + test: function(n) { + var a; + a = unpack(arguments); + if (type(a) === 'array' && a.length === 3) { + return 'rgb'; + } + if (a.length === 4 && type(a[3]) === "number" && a[3] >= 0 && a[3] <= 1) { + return 'rgb'; + } + } + }); - }))); - - -/***/ }), -/* 427 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : German (Austria) [de-at] - //! author : lluchs : https://github.com/lluchs - //! author: Menelion Elensúle: https://github.com/Oire - //! author : Martin Groller : https://github.com/MadMG - //! author : Mikolaj Dadela : https://github.com/mik01aj + hex2rgb = function(hex) { + var a, b, g, r, rgb, u; + if (hex.match(/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/)) { + if (hex.length === 4 || hex.length === 7) { + hex = hex.substr(1); + } + if (hex.length === 3) { + hex = hex.split(""); + hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2]; + } + u = parseInt(hex, 16); + r = u >> 16; + g = u >> 8 & 0xFF; + b = u & 0xFF; + return [r, g, b, 1]; + } + if (hex.match(/^#?([A-Fa-f0-9]{8})$/)) { + if (hex.length === 9) { + hex = hex.substr(1); + } + u = parseInt(hex, 16); + r = u >> 24 & 0xFF; + g = u >> 16 & 0xFF; + b = u >> 8 & 0xFF; + a = round((u & 0xFF) / 0xFF * 100) / 100; + return [r, g, b, a]; + } + if ((_input.css != null) && (rgb = _input.css(hex))) { + return rgb; + } + throw "unknown color: " + hex; + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + rgb2hex = function(channels, mode) { + var a, b, g, hxa, r, str, u; + if (mode == null) { + mode = 'rgb'; + } + r = channels[0], g = channels[1], b = channels[2], a = channels[3]; + r = Math.round(r); + g = Math.round(g); + b = Math.round(b); + u = r << 16 | g << 8 | b; + str = "000000" + u.toString(16); + str = str.substr(str.length - 6); + hxa = '0' + round(a * 255).toString(16); + hxa = hxa.substr(hxa.length - 2); + return "#" + (function() { + switch (mode.toLowerCase()) { + case 'rgba': + return str + hxa; + case 'argb': + return hxa + str; + default: + return str; + } + })(); + }; + _input.hex = function(h) { + return hex2rgb(h); + }; - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - 'm': ['eine Minute', 'einer Minute'], - 'h': ['eine Stunde', 'einer Stunde'], - 'd': ['ein Tag', 'einem Tag'], - 'dd': [number + ' Tage', number + ' Tagen'], - 'M': ['ein Monat', 'einem Monat'], - 'MM': [number + ' Monate', number + ' Monaten'], - 'y': ['ein Jahr', 'einem Jahr'], - 'yy': [number + ' Jahre', number + ' Jahren'] - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } + chroma.hex = function() { + return (function(func, args, ctor) { + ctor.prototype = func.prototype; + var child = new ctor, result = func.apply(child, args); + return Object(result) === result ? result : child; + })(Color, slice.call(arguments).concat(['hex']), function(){}); + }; - var deAt = moment.defineLocale('de-at', { - months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), - monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'), - monthsParseExact : true, - weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), - weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), - weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY HH:mm', - LLLL : 'dddd, D. MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]' - }, - relativeTime : { - future : 'in %s', - past : 'vor %s', - s : 'ein paar Sekunden', - m : processRelativeTime, - mm : '%d Minuten', - h : processRelativeTime, - hh : '%d Stunden', - d : processRelativeTime, - dd : processRelativeTime, - M : processRelativeTime, - MM : processRelativeTime, - y : processRelativeTime, - yy : processRelativeTime - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + Color.prototype.hex = function(mode) { + if (mode == null) { + mode = 'rgb'; + } + return rgb2hex(this._rgb, mode); + }; + + _guess_formats.push({ + p: 4, + test: function(n) { + if (arguments.length === 1 && type(n) === "string") { + return 'hex'; + } } - }); - - return deAt; + }); - }))); - - -/***/ }), -/* 428 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : German (Switzerland) [de-ch] - //! author : sschueller : https://github.com/sschueller + hsl2rgb = function() { + var args, b, c, g, h, i, l, o, r, ref, s, t1, t2, t3; + args = unpack(arguments); + h = args[0], s = args[1], l = args[2]; + if (s === 0) { + r = g = b = l * 255; + } else { + t3 = [0, 0, 0]; + c = [0, 0, 0]; + t2 = l < 0.5 ? l * (1 + s) : l + s - l * s; + t1 = 2 * l - t2; + h /= 360; + t3[0] = h + 1 / 3; + t3[1] = h; + t3[2] = h - 1 / 3; + for (i = o = 0; o <= 2; i = ++o) { + if (t3[i] < 0) { + t3[i] += 1; + } + if (t3[i] > 1) { + t3[i] -= 1; + } + if (6 * t3[i] < 1) { + c[i] = t1 + (t2 - t1) * 6 * t3[i]; + } else if (2 * t3[i] < 1) { + c[i] = t2; + } else if (3 * t3[i] < 2) { + c[i] = t1 + (t2 - t1) * ((2 / 3) - t3[i]) * 6; + } else { + c[i] = t1; + } + } + ref = [round(c[0] * 255), round(c[1] * 255), round(c[2] * 255)], r = ref[0], g = ref[1], b = ref[2]; + } + if (args.length > 3) { + return [r, g, b, args[3]]; + } else { + return [r, g, b]; + } + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + rgb2hsl = function(r, g, b) { + var h, l, min, ref, s; + if (r !== void 0 && r.length >= 3) { + ref = r, r = ref[0], g = ref[1], b = ref[2]; + } + r /= 255; + g /= 255; + b /= 255; + min = Math.min(r, g, b); + max = Math.max(r, g, b); + l = (max + min) / 2; + if (max === min) { + s = 0; + h = Number.NaN; + } else { + s = l < 0.5 ? (max - min) / (max + min) : (max - min) / (2 - max - min); + } + if (r === max) { + h = (g - b) / (max - min); + } else if (g === max) { + h = 2 + (b - r) / (max - min); + } else if (b === max) { + h = 4 + (r - g) / (max - min); + } + h *= 60; + if (h < 0) { + h += 360; + } + return [h, s, l]; + }; + chroma.hsl = function() { + return (function(func, args, ctor) { + ctor.prototype = func.prototype; + var child = new ctor, result = func.apply(child, args); + return Object(result) === result ? result : child; + })(Color, slice.call(arguments).concat(['hsl']), function(){}); + }; - // based on: https://www.bk.admin.ch/dokumentation/sprachen/04915/05016/index.html?lang=de# + _input.hsl = hsl2rgb; - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - 'm': ['eine Minute', 'einer Minute'], - 'h': ['eine Stunde', 'einer Stunde'], - 'd': ['ein Tag', 'einem Tag'], - 'dd': [number + ' Tage', number + ' Tagen'], - 'M': ['ein Monat', 'einem Monat'], - 'MM': [number + ' Monate', number + ' Monaten'], - 'y': ['ein Jahr', 'einem Jahr'], - 'yy': [number + ' Jahre', number + ' Jahren'] - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } + Color.prototype.hsl = function() { + return rgb2hsl(this._rgb); + }; - var deCh = moment.defineLocale('de-ch', { - months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), - monthsShort : 'Jan._Febr._März_April_Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.'.split('_'), - monthsParseExact : true, - weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), - weekdaysShort : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY HH.mm', - LLLL : 'dddd, D. MMMM YYYY HH.mm' - }, - calendar : { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]' - }, - relativeTime : { - future : 'in %s', - past : 'vor %s', - s : 'ein paar Sekunden', - m : processRelativeTime, - mm : '%d Minuten', - h : processRelativeTime, - hh : '%d Stunden', - d : processRelativeTime, - dd : processRelativeTime, - M : processRelativeTime, - MM : processRelativeTime, - y : processRelativeTime, - yy : processRelativeTime - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + hsv2rgb = function() { + var args, b, f, g, h, i, p, q, r, ref, ref1, ref2, ref3, ref4, ref5, s, t, v; + args = unpack(arguments); + h = args[0], s = args[1], v = args[2]; + v *= 255; + if (s === 0) { + r = g = b = v; + } else { + if (h === 360) { + h = 0; + } + if (h > 360) { + h -= 360; + } + if (h < 0) { + h += 360; + } + h /= 60; + i = floor(h); + f = h - i; + p = v * (1 - s); + q = v * (1 - s * f); + t = v * (1 - s * (1 - f)); + switch (i) { + case 0: + ref = [v, t, p], r = ref[0], g = ref[1], b = ref[2]; + break; + case 1: + ref1 = [q, v, p], r = ref1[0], g = ref1[1], b = ref1[2]; + break; + case 2: + ref2 = [p, v, t], r = ref2[0], g = ref2[1], b = ref2[2]; + break; + case 3: + ref3 = [p, q, v], r = ref3[0], g = ref3[1], b = ref3[2]; + break; + case 4: + ref4 = [t, p, v], r = ref4[0], g = ref4[1], b = ref4[2]; + break; + case 5: + ref5 = [v, p, q], r = ref5[0], g = ref5[1], b = ref5[2]; + } } - }); - - return deCh; - - }))); - - -/***/ }), -/* 429 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Maldivian [dv] - //! author : Jawish Hameed : https://github.com/jawish + return [r, g, b, args.length > 3 ? args[3] : 1]; + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + rgb2hsv = function() { + var b, delta, g, h, min, r, ref, s, v; + ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; + min = Math.min(r, g, b); + max = Math.max(r, g, b); + delta = max - min; + v = max / 255.0; + if (max === 0) { + h = Number.NaN; + s = 0; + } else { + s = delta / max; + if (r === max) { + h = (g - b) / delta; + } + if (g === max) { + h = 2 + (b - r) / delta; + } + if (b === max) { + h = 4 + (r - g) / delta; + } + h *= 60; + if (h < 0) { + h += 360; + } + } + return [h, s, v]; + }; + chroma.hsv = function() { + return (function(func, args, ctor) { + ctor.prototype = func.prototype; + var child = new ctor, result = func.apply(child, args); + return Object(result) === result ? result : child; + })(Color, slice.call(arguments).concat(['hsv']), function(){}); + }; - var months = [ - 'ޖެނުއަރީ', - 'ފެބްރުއަރީ', - 'މާރިޗު', - 'އޭޕްރީލު', - 'މޭ', - 'ޖޫން', - 'ޖުލައި', - 'އޯގަސްޓު', - 'ސެޕްޓެމްބަރު', - 'އޮކްޓޯބަރު', - 'ނޮވެމްބަރު', - 'ޑިސެމްބަރު' - ]; - var weekdays = [ - 'އާދިއްތަ', - 'ހޯމަ', - 'އަންގާރަ', - 'ބުދަ', - 'ބުރާސްފަތި', - 'ހުކުރު', - 'ހޮނިހިރު' - ]; + _input.hsv = hsv2rgb; - var dv = moment.defineLocale('dv', { - months : months, - monthsShort : months, - weekdays : weekdays, - weekdaysShort : weekdays, - weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'), - longDateFormat : { + Color.prototype.hsv = function() { + return rgb2hsv(this._rgb); + }; - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'D/M/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - meridiemParse: /މކ|މފ/, - isPM : function (input) { - return 'މފ' === input; - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return 'މކ'; - } else { - return 'މފ'; - } - }, - calendar : { - sameDay : '[މިއަދު] LT', - nextDay : '[މާދަމާ] LT', - nextWeek : 'dddd LT', - lastDay : '[އިއްޔެ] LT', - lastWeek : '[ފާއިތުވި] dddd LT', - sameElse : 'L' - }, - relativeTime : { - future : 'ތެރޭގައި %s', - past : 'ކުރިން %s', - s : 'ސިކުންތުކޮޅެއް', - m : 'މިނިޓެއް', - mm : 'މިނިޓު %d', - h : 'ގަޑިއިރެއް', - hh : 'ގަޑިއިރު %d', - d : 'ދުވަހެއް', - dd : 'ދުވަސް %d', - M : 'މަހެއް', - MM : 'މަސް %d', - y : 'އަހަރެއް', - yy : 'އަހަރު %d' - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week : { - dow : 7, // Sunday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. + num2rgb = function(num) { + var b, g, r; + if (type(num) === "number" && num >= 0 && num <= 0xFFFFFF) { + r = num >> 16; + g = (num >> 8) & 0xFF; + b = num & 0xFF; + return [r, g, b, 1]; } - }); + console.warn("unknown num color: " + num); + return [0, 0, 0, 1]; + }; - return dv; + rgb2num = function() { + var b, g, r, ref; + ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; + return (r << 16) + (g << 8) + b; + }; - }))); - - -/***/ }), -/* 430 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Greek [el] - //! author : Aggelos Karalias : https://github.com/mehiel + chroma.num = function(num) { + return new Color(num, 'num'); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Color.prototype.num = function(mode) { + if (mode == null) { + mode = 'rgb'; + } + return rgb2num(this._rgb, mode); + }; - function isFunction(input) { - return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]'; - } + _input.num = num2rgb; + _guess_formats.push({ + p: 1, + test: function(n) { + if (arguments.length === 1 && type(n) === "number" && n >= 0 && n <= 0xFFFFFF) { + return 'num'; + } + } + }); - var el = moment.defineLocale('el', { - monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'), - monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'), - months : function (momentToFormat, format) { - if (!momentToFormat) { - return this._monthsNominativeEl; - } else if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM' - return this._monthsGenitiveEl[momentToFormat.month()]; - } else { - return this._monthsNominativeEl[momentToFormat.month()]; - } - }, - monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'), - weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'), - weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'), - weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'), - meridiem : function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'μμ' : 'ΜΜ'; - } else { - return isLower ? 'πμ' : 'ΠΜ'; - } - }, - isPM : function (input) { - return ((input + '').toLowerCase()[0] === 'μ'); - }, - meridiemParse : /[ΠΜ]\.?Μ?\.?/i, - longDateFormat : { - LT : 'h:mm A', - LTS : 'h:mm:ss A', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY h:mm A', - LLLL : 'dddd, D MMMM YYYY h:mm A' - }, - calendarEl : { - sameDay : '[Σήμερα {}] LT', - nextDay : '[Αύριο {}] LT', - nextWeek : 'dddd [{}] LT', - lastDay : '[Χθες {}] LT', - lastWeek : function () { - switch (this.day()) { - case 6: - return '[το προηγούμενο] dddd [{}] LT'; - default: - return '[την προηγούμενη] dddd [{}] LT'; - } - }, - sameElse : 'L' - }, - calendar : function (key, mom) { - var output = this._calendarEl[key], - hours = mom && mom.hours(); - if (isFunction(output)) { - output = output.apply(mom); - } - return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις')); - }, - relativeTime : { - future : 'σε %s', - past : '%s πριν', - s : 'λίγα δευτερόλεπτα', - m : 'ένα λεπτό', - mm : '%d λεπτά', - h : 'μία ώρα', - hh : '%d ώρες', - d : 'μία μέρα', - dd : '%d μέρες', - M : 'ένας μήνας', - MM : '%d μήνες', - y : 'ένας χρόνος', - yy : '%d χρόνια' - }, - dayOfMonthOrdinalParse: /\d{1,2}η/, - ordinal: '%dη', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4st is the first week of the year. + hcg2rgb = function() { + var _c, _g, args, b, c, f, g, h, i, p, q, r, ref, ref1, ref2, ref3, ref4, ref5, t, v; + args = unpack(arguments); + h = args[0], c = args[1], _g = args[2]; + c = c / 100; + g = g / 100 * 255; + _c = c * 255; + if (c === 0) { + r = g = b = _g; + } else { + if (h === 360) { + h = 0; + } + if (h > 360) { + h -= 360; + } + if (h < 0) { + h += 360; + } + h /= 60; + i = floor(h); + f = h - i; + p = _g * (1 - c); + q = p + _c * (1 - f); + t = p + _c * f; + v = p + _c; + switch (i) { + case 0: + ref = [v, t, p], r = ref[0], g = ref[1], b = ref[2]; + break; + case 1: + ref1 = [q, v, p], r = ref1[0], g = ref1[1], b = ref1[2]; + break; + case 2: + ref2 = [p, v, t], r = ref2[0], g = ref2[1], b = ref2[2]; + break; + case 3: + ref3 = [p, q, v], r = ref3[0], g = ref3[1], b = ref3[2]; + break; + case 4: + ref4 = [t, p, v], r = ref4[0], g = ref4[1], b = ref4[2]; + break; + case 5: + ref5 = [v, p, q], r = ref5[0], g = ref5[1], b = ref5[2]; + } } - }); - - return el; - - }))); - - -/***/ }), -/* 431 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : English (Australia) [en-au] - //! author : Jared Morse : https://github.com/jarcoal - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - + return [r, g, b, args.length > 3 ? args[3] : 1]; + }; - var enAu = moment.defineLocale('en-au', { - months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), - monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), - weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat : { - LT : 'h:mm A', - LTS : 'h:mm:ss A', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY h:mm A', - LLLL : 'dddd, D MMMM YYYY h:mm A' - }, - calendar : { - sameDay : '[Today at] LT', - nextDay : '[Tomorrow at] LT', - nextWeek : 'dddd [at] LT', - lastDay : '[Yesterday at] LT', - lastWeek : '[Last] dddd [at] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'in %s', - past : '%s ago', - s : 'a few seconds', - m : 'a minute', - mm : '%d minutes', - h : 'an hour', - hh : '%d hours', - d : 'a day', - dd : '%d days', - M : 'a month', - MM : '%d months', - y : 'a year', - yy : '%d years' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal : function (number) { - var b = number % 10, - output = (~~(number % 100 / 10) === 1) ? 'th' : - (b === 1) ? 'st' : - (b === 2) ? 'nd' : - (b === 3) ? 'rd' : 'th'; - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + rgb2hcg = function() { + var _g, b, c, delta, g, h, min, r, ref; + ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; + min = Math.min(r, g, b); + max = Math.max(r, g, b); + delta = max - min; + c = delta * 100 / 255; + _g = min / (255 - delta) * 100; + if (delta === 0) { + h = Number.NaN; + } else { + if (r === max) { + h = (g - b) / delta; + } + if (g === max) { + h = 2 + (b - r) / delta; + } + if (b === max) { + h = 4 + (r - g) / delta; + } + h *= 60; + if (h < 0) { + h += 360; + } } - }); - - return enAu; + return [h, c, _g]; + }; - }))); - - -/***/ }), -/* 432 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : English (Canada) [en-ca] - //! author : Jonathan Abourbih : https://github.com/jonbca + chroma.hcg = function() { + return (function(func, args, ctor) { + ctor.prototype = func.prototype; + var child = new ctor, result = func.apply(child, args); + return Object(result) === result ? result : child; + })(Color, slice.call(arguments).concat(['hcg']), function(){}); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + _input.hcg = hcg2rgb; + Color.prototype.hcg = function() { + return rgb2hcg(this._rgb); + }; - var enCa = moment.defineLocale('en-ca', { - months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), - monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), - weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat : { - LT : 'h:mm A', - LTS : 'h:mm:ss A', - L : 'YYYY-MM-DD', - LL : 'MMMM D, YYYY', - LLL : 'MMMM D, YYYY h:mm A', - LLLL : 'dddd, MMMM D, YYYY h:mm A' - }, - calendar : { - sameDay : '[Today at] LT', - nextDay : '[Tomorrow at] LT', - nextWeek : 'dddd [at] LT', - lastDay : '[Yesterday at] LT', - lastWeek : '[Last] dddd [at] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'in %s', - past : '%s ago', - s : 'a few seconds', - m : 'a minute', - mm : '%d minutes', - h : 'an hour', - hh : '%d hours', - d : 'a day', - dd : '%d days', - M : 'a month', - MM : '%d months', - y : 'a year', - yy : '%d years' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal : function (number) { - var b = number % 10, - output = (~~(number % 100 / 10) === 1) ? 'th' : - (b === 1) ? 'st' : - (b === 2) ? 'nd' : - (b === 3) ? 'rd' : 'th'; - return number + output; + css2rgb = function(css) { + var aa, ab, hsl, i, m, o, rgb, w; + css = css.toLowerCase(); + if ((chroma.colors != null) && chroma.colors[css]) { + return hex2rgb(chroma.colors[css]); } - }); - - return enCa; + if (m = css.match(/rgb\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*\)/)) { + rgb = m.slice(1, 4); + for (i = o = 0; o <= 2; i = ++o) { + rgb[i] = +rgb[i]; + } + rgb[3] = 1; + } else if (m = css.match(/rgba\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*,\s*([01]|[01]?\.\d+)\)/)) { + rgb = m.slice(1, 5); + for (i = w = 0; w <= 3; i = ++w) { + rgb[i] = +rgb[i]; + } + } else if (m = css.match(/rgb\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/)) { + rgb = m.slice(1, 4); + for (i = aa = 0; aa <= 2; i = ++aa) { + rgb[i] = round(rgb[i] * 2.55); + } + rgb[3] = 1; + } else if (m = css.match(/rgba\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/)) { + rgb = m.slice(1, 5); + for (i = ab = 0; ab <= 2; i = ++ab) { + rgb[i] = round(rgb[i] * 2.55); + } + rgb[3] = +rgb[3]; + } else if (m = css.match(/hsl\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/)) { + hsl = m.slice(1, 4); + hsl[1] *= 0.01; + hsl[2] *= 0.01; + rgb = hsl2rgb(hsl); + rgb[3] = 1; + } else if (m = css.match(/hsla\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/)) { + hsl = m.slice(1, 4); + hsl[1] *= 0.01; + hsl[2] *= 0.01; + rgb = hsl2rgb(hsl); + rgb[3] = +m[4]; + } + return rgb; + }; - }))); - - -/***/ }), -/* 433 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : English (United Kingdom) [en-gb] - //! author : Chris Gedrim : https://github.com/chrisgedrim + rgb2css = function(rgba) { + var mode; + mode = rgba[3] < 1 ? 'rgba' : 'rgb'; + if (mode === 'rgb') { + return mode + '(' + rgba.slice(0, 3).map(round).join(',') + ')'; + } else if (mode === 'rgba') { + return mode + '(' + rgba.slice(0, 3).map(round).join(',') + ',' + rgba[3] + ')'; + } else { - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + } + }; + rnd = function(a) { + return round(a * 100) / 100; + }; - var enGb = moment.defineLocale('en-gb', { - months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), - monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), - weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[Today at] LT', - nextDay : '[Tomorrow at] LT', - nextWeek : 'dddd [at] LT', - lastDay : '[Yesterday at] LT', - lastWeek : '[Last] dddd [at] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'in %s', - past : '%s ago', - s : 'a few seconds', - m : 'a minute', - mm : '%d minutes', - h : 'an hour', - hh : '%d hours', - d : 'a day', - dd : '%d days', - M : 'a month', - MM : '%d months', - y : 'a year', - yy : '%d years' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal : function (number) { - var b = number % 10, - output = (~~(number % 100 / 10) === 1) ? 'th' : - (b === 1) ? 'st' : - (b === 2) ? 'nd' : - (b === 3) ? 'rd' : 'th'; - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + hsl2css = function(hsl, alpha) { + var mode; + mode = alpha < 1 ? 'hsla' : 'hsl'; + hsl[0] = rnd(hsl[0] || 0); + hsl[1] = rnd(hsl[1] * 100) + '%'; + hsl[2] = rnd(hsl[2] * 100) + '%'; + if (mode === 'hsla') { + hsl[3] = alpha; } - }); + return mode + '(' + hsl.join(',') + ')'; + }; - return enGb; + _input.css = function(h) { + return css2rgb(h); + }; - }))); - - -/***/ }), -/* 434 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : English (Ireland) [en-ie] - //! author : Chris Cartlidge : https://github.com/chriscartlidge + chroma.css = function() { + return (function(func, args, ctor) { + ctor.prototype = func.prototype; + var child = new ctor, result = func.apply(child, args); + return Object(result) === result ? result : child; + })(Color, slice.call(arguments).concat(['css']), function(){}); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Color.prototype.css = function(mode) { + if (mode == null) { + mode = 'rgb'; + } + if (mode.slice(0, 3) === 'rgb') { + return rgb2css(this._rgb); + } else if (mode.slice(0, 3) === 'hsl') { + return hsl2css(this.hsl(), this.alpha()); + } + }; + _input.named = function(name) { + return hex2rgb(w3cx11[name]); + }; - var enIe = moment.defineLocale('en-ie', { - months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), - monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), - weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD-MM-YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[Today at] LT', - nextDay : '[Tomorrow at] LT', - nextWeek : 'dddd [at] LT', - lastDay : '[Yesterday at] LT', - lastWeek : '[Last] dddd [at] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'in %s', - past : '%s ago', - s : 'a few seconds', - m : 'a minute', - mm : '%d minutes', - h : 'an hour', - hh : '%d hours', - d : 'a day', - dd : '%d days', - M : 'a month', - MM : '%d months', - y : 'a year', - yy : '%d years' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal : function (number) { - var b = number % 10, - output = (~~(number % 100 / 10) === 1) ? 'th' : - (b === 1) ? 'st' : - (b === 2) ? 'nd' : - (b === 3) ? 'rd' : 'th'; - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + _guess_formats.push({ + p: 5, + test: function(n) { + if (arguments.length === 1 && (w3cx11[n] != null)) { + return 'named'; + } } - }); + }); - return enIe; + Color.prototype.name = function(n) { + var h, k; + if (arguments.length) { + if (w3cx11[n]) { + this._rgb = hex2rgb(w3cx11[n]); + } + this._rgb[3] = 1; + this; + } + h = this.hex(); + for (k in w3cx11) { + if (h === w3cx11[k]) { + return k; + } + } + return h; + }; - }))); - - -/***/ }), -/* 435 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : English (New Zealand) [en-nz] - //! author : Luke McGregor : https://github.com/lukemcgregor + lch2lab = function() { - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + /* + Convert from a qualitative parameter h and a quantitative parameter l to a 24-bit pixel. + These formulas were invented by David Dalrymple to obtain maximum contrast without going + out of gamut if the parameters are in the range 0-1. + + A saturation multiplier was added by Gregor Aisch + */ + var c, h, l, ref; + ref = unpack(arguments), l = ref[0], c = ref[1], h = ref[2]; + h = h * DEG2RAD; + return [l, cos(h) * c, sin(h) * c]; + }; + lch2rgb = function() { + var L, a, args, b, c, g, h, l, r, ref, ref1; + args = unpack(arguments); + l = args[0], c = args[1], h = args[2]; + ref = lch2lab(l, c, h), L = ref[0], a = ref[1], b = ref[2]; + ref1 = lab2rgb(L, a, b), r = ref1[0], g = ref1[1], b = ref1[2]; + return [r, g, b, args.length > 3 ? args[3] : 1]; + }; - var enNz = moment.defineLocale('en-nz', { - months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), - monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), - weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat : { - LT : 'h:mm A', - LTS : 'h:mm:ss A', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY h:mm A', - LLLL : 'dddd, D MMMM YYYY h:mm A' - }, - calendar : { - sameDay : '[Today at] LT', - nextDay : '[Tomorrow at] LT', - nextWeek : 'dddd [at] LT', - lastDay : '[Yesterday at] LT', - lastWeek : '[Last] dddd [at] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'in %s', - past : '%s ago', - s : 'a few seconds', - m : 'a minute', - mm : '%d minutes', - h : 'an hour', - hh : '%d hours', - d : 'a day', - dd : '%d days', - M : 'a month', - MM : '%d months', - y : 'a year', - yy : '%d years' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal : function (number) { - var b = number % 10, - output = (~~(number % 100 / 10) === 1) ? 'th' : - (b === 1) ? 'st' : - (b === 2) ? 'nd' : - (b === 3) ? 'rd' : 'th'; - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + lab2lch = function() { + var a, b, c, h, l, ref; + ref = unpack(arguments), l = ref[0], a = ref[1], b = ref[2]; + c = sqrt(a * a + b * b); + h = (atan2(b, a) * RAD2DEG + 360) % 360; + if (round(c * 10000) === 0) { + h = Number.NaN; } - }); + return [l, c, h]; + }; - return enNz; + rgb2lch = function() { + var a, b, g, l, r, ref, ref1; + ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; + ref1 = rgb2lab(r, g, b), l = ref1[0], a = ref1[1], b = ref1[2]; + return lab2lch(l, a, b); + }; - }))); - - -/***/ }), -/* 436 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Esperanto [eo] - //! author : Colin Dean : https://github.com/colindean - //! author : Mia Nordentoft Imperatori : https://github.com/miestasmia - //! comment : miestasmia corrected the translation by colindean + chroma.lch = function() { + var args; + args = unpack(arguments); + return new Color(args, 'lch'); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + chroma.hcl = function() { + var args; + args = unpack(arguments); + return new Color(args, 'hcl'); + }; + _input.lch = lch2rgb; - var eo = moment.defineLocale('eo', { - months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'), - monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'), - weekdays : 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'), - weekdaysShort : 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'), - weekdaysMin : 'di_lu_ma_me_ĵa_ve_sa'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'YYYY-MM-DD', - LL : 'D[-a de] MMMM, YYYY', - LLL : 'D[-a de] MMMM, YYYY HH:mm', - LLLL : 'dddd, [la] D[-a de] MMMM, YYYY HH:mm' - }, - meridiemParse: /[ap]\.t\.m/i, - isPM: function (input) { - return input.charAt(0).toLowerCase() === 'p'; - }, - meridiem : function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'p.t.m.' : 'P.T.M.'; - } else { - return isLower ? 'a.t.m.' : 'A.T.M.'; - } - }, - calendar : { - sameDay : '[Hodiaŭ je] LT', - nextDay : '[Morgaŭ je] LT', - nextWeek : 'dddd [je] LT', - lastDay : '[Hieraŭ je] LT', - lastWeek : '[pasinta] dddd [je] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'post %s', - past : 'antaŭ %s', - s : 'sekundoj', - m : 'minuto', - mm : '%d minutoj', - h : 'horo', - hh : '%d horoj', - d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo - dd : '%d tagoj', - M : 'monato', - MM : '%d monatoj', - y : 'jaro', - yy : '%d jaroj' - }, - dayOfMonthOrdinalParse: /\d{1,2}a/, - ordinal : '%da', - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } - }); + _input.hcl = function() { + var c, h, l, ref; + ref = unpack(arguments), h = ref[0], c = ref[1], l = ref[2]; + return lch2rgb([l, c, h]); + }; - return eo; + Color.prototype.lch = function() { + return rgb2lch(this._rgb); + }; - }))); - - -/***/ }), -/* 437 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Spanish [es] - //! author : Julio Napurí : https://github.com/julionc + Color.prototype.hcl = function() { + return rgb2lch(this._rgb).reverse(); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + rgb2cmyk = function(mode) { + var b, c, f, g, k, m, r, ref, y; + if (mode == null) { + mode = 'rgb'; + } + ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; + r = r / 255; + g = g / 255; + b = b / 255; + k = 1 - Math.max(r, Math.max(g, b)); + f = k < 1 ? 1 / (1 - k) : 0; + c = (1 - r - k) * f; + m = (1 - g - k) * f; + y = (1 - b - k) * f; + return [c, m, y, k]; + }; + cmyk2rgb = function() { + var alpha, args, b, c, g, k, m, r, y; + args = unpack(arguments); + c = args[0], m = args[1], y = args[2], k = args[3]; + alpha = args.length > 4 ? args[4] : 1; + if (k === 1) { + return [0, 0, 0, alpha]; + } + r = c >= 1 ? 0 : 255 * (1 - c) * (1 - k); + g = m >= 1 ? 0 : 255 * (1 - m) * (1 - k); + b = y >= 1 ? 0 : 255 * (1 - y) * (1 - k); + return [r, g, b, alpha]; + }; - var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'); - var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'); + _input.cmyk = function() { + return cmyk2rgb(unpack(arguments)); + }; - var es = moment.defineLocale('es', { - months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), - monthsShort : function (m, format) { - if (!m) { - return monthsShortDot; - } else if (/-MMM-/.test(format)) { - return monthsShort[m.month()]; - } else { - return monthsShortDot[m.month()]; - } - }, - monthsParseExact : true, - weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), - weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D [de] MMMM [de] YYYY', - LLL : 'D [de] MMMM [de] YYYY H:mm', - LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm' - }, - calendar : { - sameDay : function () { - return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - nextDay : function () { - return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - nextWeek : function () { - return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - lastDay : function () { - return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - lastWeek : function () { - return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - sameElse : 'L' - }, - relativeTime : { - future : 'en %s', - past : 'hace %s', - s : 'unos segundos', - m : 'un minuto', - mm : '%d minutos', - h : 'una hora', - hh : '%d horas', - d : 'un día', - dd : '%d días', - M : 'un mes', - MM : '%d meses', - y : 'un año', - yy : '%d años' - }, - dayOfMonthOrdinalParse : /\d{1,2}º/, - ordinal : '%dº', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + chroma.cmyk = function() { + return (function(func, args, ctor) { + ctor.prototype = func.prototype; + var child = new ctor, result = func.apply(child, args); + return Object(result) === result ? result : child; + })(Color, slice.call(arguments).concat(['cmyk']), function(){}); + }; + + Color.prototype.cmyk = function() { + return rgb2cmyk(this._rgb); + }; + + _input.gl = function() { + var i, k, o, rgb, v; + rgb = (function() { + var ref, results; + ref = unpack(arguments); + results = []; + for (k in ref) { + v = ref[k]; + results.push(v); + } + return results; + }).apply(this, arguments); + for (i = o = 0; o <= 2; i = ++o) { + rgb[i] *= 255; } - }); + return rgb; + }; - return es; + chroma.gl = function() { + return (function(func, args, ctor) { + ctor.prototype = func.prototype; + var child = new ctor, result = func.apply(child, args); + return Object(result) === result ? result : child; + })(Color, slice.call(arguments).concat(['gl']), function(){}); + }; - }))); - - -/***/ }), -/* 438 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Spanish (Dominican Republic) [es-do] + Color.prototype.gl = function() { + var rgb; + rgb = this._rgb; + return [rgb[0] / 255, rgb[1] / 255, rgb[2] / 255, rgb[3]]; + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + rgb2luminance = function(r, g, b) { + var ref; + ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; + r = luminance_x(r); + g = luminance_x(g); + b = luminance_x(b); + return 0.2126 * r + 0.7152 * g + 0.0722 * b; + }; + luminance_x = function(x) { + x /= 255; + if (x <= 0.03928) { + return x / 12.92; + } else { + return pow((x + 0.055) / 1.055, 2.4); + } + }; - var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'); - var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'); + _interpolators = []; - var esDo = moment.defineLocale('es-do', { - months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), - monthsShort : function (m, format) { - if (!m) { - return monthsShortDot; - } else if (/-MMM-/.test(format)) { - return monthsShort[m.month()]; - } else { - return monthsShortDot[m.month()]; - } - }, - monthsParseExact : true, - weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), - weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'h:mm A', - LTS : 'h:mm:ss A', - L : 'DD/MM/YYYY', - LL : 'D [de] MMMM [de] YYYY', - LLL : 'D [de] MMMM [de] YYYY h:mm A', - LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A' - }, - calendar : { - sameDay : function () { - return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - nextDay : function () { - return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - nextWeek : function () { - return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - lastDay : function () { - return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - lastWeek : function () { - return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; - }, - sameElse : 'L' - }, - relativeTime : { - future : 'en %s', - past : 'hace %s', - s : 'unos segundos', - m : 'un minuto', - mm : '%d minutos', - h : 'una hora', - hh : '%d horas', - d : 'un día', - dd : '%d días', - M : 'un mes', - MM : '%d meses', - y : 'un año', - yy : '%d años' - }, - dayOfMonthOrdinalParse : /\d{1,2}º/, - ordinal : '%dº', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + interpolate = function(col1, col2, f, m) { + var interpol, len, o, res; + if (f == null) { + f = 0.5; + } + if (m == null) { + m = 'rgb'; } - }); - return esDo; + /* + interpolates between colors + f = 0 --> me + f = 1 --> col + */ + if (type(col1) !== 'object') { + col1 = chroma(col1); + } + if (type(col2) !== 'object') { + col2 = chroma(col2); + } + for (o = 0, len = _interpolators.length; o < len; o++) { + interpol = _interpolators[o]; + if (m === interpol[0]) { + res = interpol[1](col1, col2, f, m); + break; + } + } + if (res == null) { + throw "color mode " + m + " is not supported"; + } + return res.alpha(col1.alpha() + f * (col2.alpha() - col1.alpha())); + }; - }))); - - -/***/ }), -/* 439 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Estonian [et] - //! author : Henry Kehlmann : https://github.com/madhenry - //! improvements : Illimar Tambek : https://github.com/ragulka + chroma.interpolate = interpolate; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Color.prototype.interpolate = function(col2, f, m) { + return interpolate(this, col2, f, m); + }; + chroma.mix = interpolate; - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'], - 'm' : ['ühe minuti', 'üks minut'], - 'mm': [number + ' minuti', number + ' minutit'], - 'h' : ['ühe tunni', 'tund aega', 'üks tund'], - 'hh': [number + ' tunni', number + ' tundi'], - 'd' : ['ühe päeva', 'üks päev'], - 'M' : ['kuu aja', 'kuu aega', 'üks kuu'], - 'MM': [number + ' kuu', number + ' kuud'], - 'y' : ['ühe aasta', 'aasta', 'üks aasta'], - 'yy': [number + ' aasta', number + ' aastat'] - }; - if (withoutSuffix) { - return format[key][2] ? format[key][2] : format[key][1]; + Color.prototype.mix = Color.prototype.interpolate; + + interpolate_rgb = function(col1, col2, f, m) { + var xyz0, xyz1; + xyz0 = col1._rgb; + xyz1 = col2._rgb; + return new Color(xyz0[0] + f * (xyz1[0] - xyz0[0]), xyz0[1] + f * (xyz1[1] - xyz0[1]), xyz0[2] + f * (xyz1[2] - xyz0[2]), m); + }; + + _interpolators.push(['rgb', interpolate_rgb]); + + Color.prototype.luminance = function(lum, mode) { + var cur_lum, eps, max_iter, test; + if (mode == null) { + mode = 'rgb'; } - return isFuture ? format[key][0] : format[key][1]; - } + if (!arguments.length) { + return rgb2luminance(this._rgb); + } + if (lum === 0) { + this._rgb = [0, 0, 0, this._rgb[3]]; + } else if (lum === 1) { + this._rgb = [255, 255, 255, this._rgb[3]]; + } else { + eps = 1e-7; + max_iter = 20; + test = function(l, h) { + var lm, m; + m = l.interpolate(h, 0.5, mode); + lm = m.luminance(); + if (Math.abs(lum - lm) < eps || !max_iter--) { + return m; + } + if (lm > lum) { + return test(l, m); + } + return test(m, h); + }; + cur_lum = rgb2luminance(this._rgb); + this._rgb = (cur_lum > lum ? test(chroma('black'), this) : test(this, chroma('white'))).rgba(); + } + return this; + }; - var et = moment.defineLocale('et', { - months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'), - monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'), - weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'), - weekdaysShort : 'P_E_T_K_N_R_L'.split('_'), - weekdaysMin : 'P_E_T_K_N_R_L'.split('_'), - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY H:mm', - LLLL : 'dddd, D. MMMM YYYY H:mm' - }, - calendar : { - sameDay : '[Täna,] LT', - nextDay : '[Homme,] LT', - nextWeek : '[Järgmine] dddd LT', - lastDay : '[Eile,] LT', - lastWeek : '[Eelmine] dddd LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s pärast', - past : '%s tagasi', - s : processRelativeTime, - m : processRelativeTime, - mm : processRelativeTime, - h : processRelativeTime, - hh : processRelativeTime, - d : processRelativeTime, - dd : '%d päeva', - M : processRelativeTime, - MM : processRelativeTime, - y : processRelativeTime, - yy : processRelativeTime - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + temperature2rgb = function(kelvin) { + var b, g, r, temp; + temp = kelvin / 100; + if (temp < 66) { + r = 255; + g = -155.25485562709179 - 0.44596950469579133 * (g = temp - 2) + 104.49216199393888 * log(g); + b = temp < 20 ? 0 : -254.76935184120902 + 0.8274096064007395 * (b = temp - 10) + 115.67994401066147 * log(b); + } else { + r = 351.97690566805693 + 0.114206453784165 * (r = temp - 55) - 40.25366309332127 * log(r); + g = 325.4494125711974 + 0.07943456536662342 * (g = temp - 50) - 28.0852963507957 * log(g); + b = 255; } - }); - - return et; + return [r, g, b]; + }; - }))); - - -/***/ }), -/* 440 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Basque [eu] - //! author : Eneko Illarramendi : https://github.com/eillarra + rgb2temperature = function() { + var b, eps, g, maxTemp, minTemp, r, ref, rgb, temp; + ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; + minTemp = 1000; + maxTemp = 40000; + eps = 0.4; + while (maxTemp - minTemp > eps) { + temp = (maxTemp + minTemp) * 0.5; + rgb = temperature2rgb(temp); + if ((rgb[2] / rgb[0]) >= (b / r)) { + maxTemp = temp; + } else { + minTemp = temp; + } + } + return round(temp); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + chroma.temperature = chroma.kelvin = function() { + return (function(func, args, ctor) { + ctor.prototype = func.prototype; + var child = new ctor, result = func.apply(child, args); + return Object(result) === result ? result : child; + })(Color, slice.call(arguments).concat(['temperature']), function(){}); + }; + _input.temperature = _input.kelvin = _input.K = temperature2rgb; - var eu = moment.defineLocale('eu', { - months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'), - monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'), - monthsParseExact : true, - weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'), - weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'), - weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'YYYY-MM-DD', - LL : 'YYYY[ko] MMMM[ren] D[a]', - LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm', - LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm', - l : 'YYYY-M-D', - ll : 'YYYY[ko] MMM D[a]', - lll : 'YYYY[ko] MMM D[a] HH:mm', - llll : 'ddd, YYYY[ko] MMM D[a] HH:mm' - }, - calendar : { - sameDay : '[gaur] LT[etan]', - nextDay : '[bihar] LT[etan]', - nextWeek : 'dddd LT[etan]', - lastDay : '[atzo] LT[etan]', - lastWeek : '[aurreko] dddd LT[etan]', - sameElse : 'L' - }, - relativeTime : { - future : '%s barru', - past : 'duela %s', - s : 'segundo batzuk', - m : 'minutu bat', - mm : '%d minutu', - h : 'ordu bat', - hh : '%d ordu', - d : 'egun bat', - dd : '%d egun', - M : 'hilabete bat', - MM : '%d hilabete', - y : 'urte bat', - yy : '%d urte' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } - }); + Color.prototype.temperature = function() { + return rgb2temperature(this._rgb); + }; - return eu; + Color.prototype.kelvin = Color.prototype.temperature; - }))); - - -/***/ }), -/* 441 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Persian [fa] - //! author : Ebrahim Byagowi : https://github.com/ebraminio + chroma.contrast = function(a, b) { + var l1, l2, ref, ref1; + if ((ref = type(a)) === 'string' || ref === 'number') { + a = new Color(a); + } + if ((ref1 = type(b)) === 'string' || ref1 === 'number') { + b = new Color(b); + } + l1 = a.luminance(); + l2 = b.luminance(); + if (l1 > l2) { + return (l1 + 0.05) / (l2 + 0.05); + } else { + return (l2 + 0.05) / (l1 + 0.05); + } + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + chroma.distance = function(a, b, mode) { + var d, i, l1, l2, ref, ref1, sum_sq; + if (mode == null) { + mode = 'lab'; + } + if ((ref = type(a)) === 'string' || ref === 'number') { + a = new Color(a); + } + if ((ref1 = type(b)) === 'string' || ref1 === 'number') { + b = new Color(b); + } + l1 = a.get(mode); + l2 = b.get(mode); + sum_sq = 0; + for (i in l1) { + d = (l1[i] || 0) - (l2[i] || 0); + sum_sq += d * d; + } + return Math.sqrt(sum_sq); + }; + chroma.deltaE = function(a, b, L, C) { + var L1, L2, a1, a2, b1, b2, c1, c2, c4, dH2, delA, delB, delC, delL, f, h1, ref, ref1, ref2, ref3, sc, sh, sl, t, v1, v2, v3; + if (L == null) { + L = 1; + } + if (C == null) { + C = 1; + } + if ((ref = type(a)) === 'string' || ref === 'number') { + a = new Color(a); + } + if ((ref1 = type(b)) === 'string' || ref1 === 'number') { + b = new Color(b); + } + ref2 = a.lab(), L1 = ref2[0], a1 = ref2[1], b1 = ref2[2]; + ref3 = b.lab(), L2 = ref3[0], a2 = ref3[1], b2 = ref3[2]; + c1 = sqrt(a1 * a1 + b1 * b1); + c2 = sqrt(a2 * a2 + b2 * b2); + sl = L1 < 16.0 ? 0.511 : (0.040975 * L1) / (1.0 + 0.01765 * L1); + sc = (0.0638 * c1) / (1.0 + 0.0131 * c1) + 0.638; + h1 = c1 < 0.000001 ? 0.0 : (atan2(b1, a1) * 180.0) / PI; + while (h1 < 0) { + h1 += 360; + } + while (h1 >= 360) { + h1 -= 360; + } + t = (h1 >= 164.0) && (h1 <= 345.0) ? 0.56 + abs(0.2 * cos((PI * (h1 + 168.0)) / 180.0)) : 0.36 + abs(0.4 * cos((PI * (h1 + 35.0)) / 180.0)); + c4 = c1 * c1 * c1 * c1; + f = sqrt(c4 / (c4 + 1900.0)); + sh = sc * (f * t + 1.0 - f); + delL = L1 - L2; + delC = c1 - c2; + delA = a1 - a2; + delB = b1 - b2; + dH2 = delA * delA + delB * delB - delC * delC; + v1 = delL / (L * sl); + v2 = delC / (C * sc); + v3 = sh; + return sqrt(v1 * v1 + v2 * v2 + (dH2 / (v3 * v3))); + }; - var symbolMap = { - '1': '۱', - '2': '۲', - '3': '۳', - '4': '۴', - '5': '۵', - '6': '۶', - '7': '۷', - '8': '۸', - '9': '۹', - '0': '۰' - }; - var numberMap = { - '۱': '1', - '۲': '2', - '۳': '3', - '۴': '4', - '۵': '5', - '۶': '6', - '۷': '7', - '۸': '8', - '۹': '9', - '۰': '0' - }; + Color.prototype.get = function(modechan) { + var channel, i, me, mode, ref, src; + me = this; + ref = modechan.split('.'), mode = ref[0], channel = ref[1]; + src = me[mode](); + if (channel) { + i = mode.indexOf(channel); + if (i > -1) { + return src[i]; + } else { + return console.warn('unknown channel ' + channel + ' in mode ' + mode); + } + } else { + return src; + } + }; - var fa = moment.defineLocale('fa', { - months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), - monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), - weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'), - weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'), - weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - meridiemParse: /قبل از ظهر|بعد از ظهر/, - isPM: function (input) { - return /بعد از ظهر/.test(input); - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return 'قبل از ظهر'; + Color.prototype.set = function(modechan, value) { + var channel, i, me, mode, ref, src; + me = this; + ref = modechan.split('.'), mode = ref[0], channel = ref[1]; + if (channel) { + src = me[mode](); + i = mode.indexOf(channel); + if (i > -1) { + if (type(value) === 'string') { + switch (value.charAt(0)) { + case '+': + src[i] += +value; + break; + case '-': + src[i] += +value; + break; + case '*': + src[i] *= +(value.substr(1)); + break; + case '/': + src[i] /= +(value.substr(1)); + break; + default: + src[i] = +value; + } } else { - return 'بعد از ظهر'; + src[i] = value; } - }, - calendar : { - sameDay : '[امروز ساعت] LT', - nextDay : '[فردا ساعت] LT', - nextWeek : 'dddd [ساعت] LT', - lastDay : '[دیروز ساعت] LT', - lastWeek : 'dddd [پیش] [ساعت] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'در %s', - past : '%s پیش', - s : 'چند ثانیه', - m : 'یک دقیقه', - mm : '%d دقیقه', - h : 'یک ساعت', - hh : '%d ساعت', - d : 'یک روز', - dd : '%d روز', - M : 'یک ماه', - MM : '%d ماه', - y : 'یک سال', - yy : '%d سال' - }, - preparse: function (string) { - return string.replace(/[۰-۹]/g, function (match) { - return numberMap[match]; - }).replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }).replace(/,/g, '،'); - }, - dayOfMonthOrdinalParse: /\d{1,2}م/, - ordinal : '%dم', - week : { - dow : 6, // Saturday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. + } else { + console.warn('unknown channel ' + channel + ' in mode ' + mode); + } + } else { + src = value; } - }); + return chroma(src, mode).alpha(me.alpha()); + }; - return fa; + Color.prototype.clipped = function() { + return this._rgb._clipped || false; + }; - }))); - - -/***/ }), -/* 442 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Finnish [fi] - //! author : Tarmo Aidantausta : https://github.com/bleadof + Color.prototype.alpha = function(a) { + if (arguments.length) { + return chroma.rgb([this._rgb[0], this._rgb[1], this._rgb[2], a]); + } + return this._rgb[3]; + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Color.prototype.darken = function(amount) { + var lab, me; + if (amount == null) { + amount = 1; + } + me = this; + lab = me.lab(); + lab[0] -= LAB_CONSTANTS.Kn * amount; + return chroma.lab(lab).alpha(me.alpha()); + }; + Color.prototype.brighten = function(amount) { + if (amount == null) { + amount = 1; + } + return this.darken(-amount); + }; - var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '); - var numbersFuture = [ - 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden', - numbersPast[7], numbersPast[8], numbersPast[9] - ]; - function translate(number, withoutSuffix, key, isFuture) { - var result = ''; - switch (key) { - case 's': - return isFuture ? 'muutaman sekunnin' : 'muutama sekunti'; - case 'm': - return isFuture ? 'minuutin' : 'minuutti'; - case 'mm': - result = isFuture ? 'minuutin' : 'minuuttia'; - break; - case 'h': - return isFuture ? 'tunnin' : 'tunti'; - case 'hh': - result = isFuture ? 'tunnin' : 'tuntia'; - break; - case 'd': - return isFuture ? 'päivän' : 'päivä'; - case 'dd': - result = isFuture ? 'päivän' : 'päivää'; - break; - case 'M': - return isFuture ? 'kuukauden' : 'kuukausi'; - case 'MM': - result = isFuture ? 'kuukauden' : 'kuukautta'; - break; - case 'y': - return isFuture ? 'vuoden' : 'vuosi'; - case 'yy': - result = isFuture ? 'vuoden' : 'vuotta'; - break; + Color.prototype.darker = Color.prototype.darken; + + Color.prototype.brighter = Color.prototype.brighten; + + Color.prototype.saturate = function(amount) { + var lch, me; + if (amount == null) { + amount = 1; } - result = verbalNumber(number, isFuture) + ' ' + result; - return result; - } - function verbalNumber(number, isFuture) { - return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number; - } + me = this; + lch = me.lch(); + lch[1] += amount * LAB_CONSTANTS.Kn; + if (lch[1] < 0) { + lch[1] = 0; + } + return chroma.lch(lch).alpha(me.alpha()); + }; - var fi = moment.defineLocale('fi', { - months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'), - monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'), - weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'), - weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'), - weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'), - longDateFormat : { - LT : 'HH.mm', - LTS : 'HH.mm.ss', - L : 'DD.MM.YYYY', - LL : 'Do MMMM[ta] YYYY', - LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm', - LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm', - l : 'D.M.YYYY', - ll : 'Do MMM YYYY', - lll : 'Do MMM YYYY, [klo] HH.mm', - llll : 'ddd, Do MMM YYYY, [klo] HH.mm' - }, - calendar : { - sameDay : '[tänään] [klo] LT', - nextDay : '[huomenna] [klo] LT', - nextWeek : 'dddd [klo] LT', - lastDay : '[eilen] [klo] LT', - lastWeek : '[viime] dddd[na] [klo] LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s päästä', - past : '%s sitten', - s : translate, - m : translate, - mm : translate, - h : translate, - hh : translate, - d : translate, - dd : translate, - M : translate, - MM : translate, - y : translate, - yy : translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + Color.prototype.desaturate = function(amount) { + if (amount == null) { + amount = 1; } - }); + return this.saturate(-amount); + }; + + Color.prototype.premultiply = function() { + var a, rgb; + rgb = this.rgb(); + a = this.alpha(); + return chroma(rgb[0] * a, rgb[1] * a, rgb[2] * a, a); + }; + + blend = function(bottom, top, mode) { + if (!blend[mode]) { + throw 'unknown blend mode ' + mode; + } + return blend[mode](bottom, top); + }; + + blend_f = function(f) { + return function(bottom, top) { + var c0, c1; + c0 = chroma(top).rgb(); + c1 = chroma(bottom).rgb(); + return chroma(f(c0, c1), 'rgb'); + }; + }; + + each = function(f) { + return function(c0, c1) { + var i, o, out; + out = []; + for (i = o = 0; o <= 3; i = ++o) { + out[i] = f(c0[i], c1[i]); + } + return out; + }; + }; + + normal = function(a, b) { + return a; + }; - return fi; + multiply = function(a, b) { + return a * b / 255; + }; - }))); - - -/***/ }), -/* 443 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Faroese [fo] - //! author : Ragnar Johannesen : https://github.com/ragnar123 + darken = function(a, b) { + if (a > b) { + return b; + } else { + return a; + } + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + lighten = function(a, b) { + if (a > b) { + return a; + } else { + return b; + } + }; + screen = function(a, b) { + return 255 * (1 - (1 - a / 255) * (1 - b / 255)); + }; - var fo = moment.defineLocale('fo', { - months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'), - monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), - weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'), - weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'), - weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D. MMMM, YYYY HH:mm' - }, - calendar : { - sameDay : '[Í dag kl.] LT', - nextDay : '[Í morgin kl.] LT', - nextWeek : 'dddd [kl.] LT', - lastDay : '[Í gjár kl.] LT', - lastWeek : '[síðstu] dddd [kl] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'um %s', - past : '%s síðani', - s : 'fá sekund', - m : 'ein minutt', - mm : '%d minuttir', - h : 'ein tími', - hh : '%d tímar', - d : 'ein dagur', - dd : '%d dagar', - M : 'ein mánaði', - MM : '%d mánaðir', - y : 'eitt ár', - yy : '%d ár' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + overlay = function(a, b) { + if (b < 128) { + return 2 * a * b / 255; + } else { + return 255 * (1 - 2 * (1 - a / 255) * (1 - b / 255)); } - }); + }; - return fo; + burn = function(a, b) { + return 255 * (1 - (1 - b / 255) / (a / 255)); + }; - }))); - - -/***/ }), -/* 444 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : French [fr] - //! author : John Fischer : https://github.com/jfroffice + dodge = function(a, b) { + if (a === 255) { + return 255; + } + a = 255 * (b / 255) / (1 - a / 255); + if (a > 255) { + return 255; + } else { + return a; + } + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + blend.normal = blend_f(each(normal)); + blend.multiply = blend_f(each(multiply)); - var fr = moment.defineLocale('fr', { - months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'), - monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), - monthsParseExact : true, - weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), - weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[Aujourd’hui à] LT', - nextDay : '[Demain à] LT', - nextWeek : 'dddd [à] LT', - lastDay : '[Hier à] LT', - lastWeek : 'dddd [dernier à] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'dans %s', - past : 'il y a %s', - s : 'quelques secondes', - m : 'une minute', - mm : '%d minutes', - h : 'une heure', - hh : '%d heures', - d : 'un jour', - dd : '%d jours', - M : 'un mois', - MM : '%d mois', - y : 'un an', - yy : '%d ans' - }, - dayOfMonthOrdinalParse: /\d{1,2}(er|)/, - ordinal : function (number, period) { - switch (period) { - // TODO: Return 'e' when day of month > 1. Move this case inside - // block for masculine words below. - // See https://github.com/moment/moment/issues/3375 - case 'D': - return number + (number === 1 ? 'er' : ''); + blend.screen = blend_f(each(screen)); - // Words with masculine grammatical gender: mois, trimestre, jour - default: - case 'M': - case 'Q': - case 'DDD': - case 'd': - return number + (number === 1 ? 'er' : 'e'); + blend.overlay = blend_f(each(overlay)); - // Words with feminine grammatical gender: semaine - case 'w': - case 'W': - return number + (number === 1 ? 're' : 'e'); - } - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } - }); + blend.darken = blend_f(each(darken)); - return fr; + blend.lighten = blend_f(each(lighten)); - }))); - - -/***/ }), -/* 445 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : French (Canada) [fr-ca] - //! author : Jonathan Abourbih : https://github.com/jonbca + blend.dodge = blend_f(each(dodge)); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + blend.burn = blend_f(each(burn)); + chroma.blend = blend; - var frCa = moment.defineLocale('fr-ca', { - months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'), - monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), - monthsParseExact : true, - weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), - weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'YYYY-MM-DD', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[Aujourd’hui à] LT', - nextDay : '[Demain à] LT', - nextWeek : 'dddd [à] LT', - lastDay : '[Hier à] LT', - lastWeek : 'dddd [dernier à] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'dans %s', - past : 'il y a %s', - s : 'quelques secondes', - m : 'une minute', - mm : '%d minutes', - h : 'une heure', - hh : '%d heures', - d : 'un jour', - dd : '%d jours', - M : 'un mois', - MM : '%d mois', - y : 'un an', - yy : '%d ans' - }, - dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, - ordinal : function (number, period) { - switch (period) { - // Words with masculine grammatical gender: mois, trimestre, jour - default: - case 'M': - case 'Q': - case 'D': - case 'DDD': - case 'd': - return number + (number === 1 ? 'er' : 'e'); + chroma.analyze = function(data) { + var len, o, r, val; + r = { + min: Number.MAX_VALUE, + max: Number.MAX_VALUE * -1, + sum: 0, + values: [], + count: 0 + }; + for (o = 0, len = data.length; o < len; o++) { + val = data[o]; + if ((val != null) && !isNaN(val)) { + r.values.push(val); + r.sum += val; + if (val < r.min) { + r.min = val; + } + if (val > r.max) { + r.max = val; + } + r.count += 1; + } + } + r.domain = [r.min, r.max]; + r.limits = function(mode, num) { + return chroma.limits(r, mode, num); + }; + return r; + }; - // Words with feminine grammatical gender: semaine - case 'w': - case 'W': - return number + (number === 1 ? 're' : 'e'); + chroma.scale = function(colors, positions) { + var _classes, _colorCache, _colors, _correctLightness, _domain, _fixed, _max, _min, _mode, _nacol, _out, _padding, _pos, _spread, _useCache, classifyValue, f, getClass, getColor, resetCache, setColors, tmap; + _mode = 'rgb'; + _nacol = chroma('#ccc'); + _spread = 0; + _fixed = false; + _domain = [0, 1]; + _pos = []; + _padding = [0, 0]; + _classes = false; + _colors = []; + _out = false; + _min = 0; + _max = 1; + _correctLightness = false; + _colorCache = {}; + _useCache = true; + setColors = function(colors) { + var c, col, o, ref, ref1, w; + if (colors == null) { + colors = ['#fff', '#000']; + } + if ((colors != null) && type(colors) === 'string' && (chroma.brewer != null)) { + colors = chroma.brewer[colors] || chroma.brewer[colors.toLowerCase()] || colors; + } + if (type(colors) === 'array') { + colors = colors.slice(0); + for (c = o = 0, ref = colors.length - 1; 0 <= ref ? o <= ref : o >= ref; c = 0 <= ref ? ++o : --o) { + col = colors[c]; + if (type(col) === "string") { + colors[c] = chroma(col); + } + } + _pos.length = 0; + for (c = w = 0, ref1 = colors.length - 1; 0 <= ref1 ? w <= ref1 : w >= ref1; c = 0 <= ref1 ? ++w : --w) { + _pos.push(c / (colors.length - 1)); + } + } + resetCache(); + return _colors = colors; + }; + getClass = function(value) { + var i, n; + if (_classes != null) { + n = _classes.length - 1; + i = 0; + while (i < n && value >= _classes[i]) { + i++; + } + return i - 1; + } + return 0; + }; + tmap = function(t) { + return t; + }; + classifyValue = function(value) { + var i, maxc, minc, n, val; + val = value; + if (_classes.length > 2) { + n = _classes.length - 1; + i = getClass(value); + minc = _classes[0] + (_classes[1] - _classes[0]) * (0 + _spread * 0.5); + maxc = _classes[n - 1] + (_classes[n] - _classes[n - 1]) * (1 - _spread * 0.5); + val = _min + ((_classes[i] + (_classes[i + 1] - _classes[i]) * 0.5 - minc) / (maxc - minc)) * (_max - _min); + } + return val; + }; + getColor = function(val, bypassMap) { + var c, col, i, k, o, p, ref, t; + if (bypassMap == null) { + bypassMap = false; + } + if (isNaN(val)) { + return _nacol; + } + if (!bypassMap) { + if (_classes && _classes.length > 2) { + c = getClass(val); + t = c / (_classes.length - 2); + t = _padding[0] + (t * (1 - _padding[0] - _padding[1])); + } else if (_max !== _min) { + t = (val - _min) / (_max - _min); + t = _padding[0] + (t * (1 - _padding[0] - _padding[1])); + t = Math.min(1, Math.max(0, t)); + } else { + t = 1; + } + } else { + t = val; + } + if (!bypassMap) { + t = tmap(t); + } + k = Math.floor(t * 10000); + if (_useCache && _colorCache[k]) { + col = _colorCache[k]; + } else { + if (type(_colors) === 'array') { + for (i = o = 0, ref = _pos.length - 1; 0 <= ref ? o <= ref : o >= ref; i = 0 <= ref ? ++o : --o) { + p = _pos[i]; + if (t <= p) { + col = _colors[i]; + break; + } + if (t >= p && i === _pos.length - 1) { + col = _colors[i]; + break; + } + if (t > p && t < _pos[i + 1]) { + t = (t - p) / (_pos[i + 1] - p); + col = chroma.interpolate(_colors[i], _colors[i + 1], t, _mode); + break; + } + } + } else if (type(_colors) === 'function') { + col = _colors(t); + } + if (_useCache) { + _colorCache[k] = col; + } + } + return col; + }; + resetCache = function() { + return _colorCache = {}; + }; + setColors(colors); + f = function(v) { + var c; + c = chroma(getColor(v)); + if (_out && c[_out]) { + return c[_out](); + } else { + return c; + } + }; + f.classes = function(classes) { + var d; + if (classes != null) { + if (type(classes) === 'array') { + _classes = classes; + _domain = [classes[0], classes[classes.length - 1]]; + } else { + d = chroma.analyze(_domain); + if (classes === 0) { + _classes = [d.min, d.max]; + } else { + _classes = chroma.limits(d, 'e', classes); + } + } + return f; + } + return _classes; + }; + f.domain = function(domain) { + var c, d, k, len, o, ref, w; + if (!arguments.length) { + return _domain; + } + _min = domain[0]; + _max = domain[domain.length - 1]; + _pos = []; + k = _colors.length; + if (domain.length === k && _min !== _max) { + for (o = 0, len = domain.length; o < len; o++) { + d = domain[o]; + _pos.push((d - _min) / (_max - _min)); + } + } else { + for (c = w = 0, ref = k - 1; 0 <= ref ? w <= ref : w >= ref; c = 0 <= ref ? ++w : --w) { + _pos.push(c / (k - 1)); + } + } + _domain = [_min, _max]; + return f; + }; + f.mode = function(_m) { + if (!arguments.length) { + return _mode; + } + _mode = _m; + resetCache(); + return f; + }; + f.range = function(colors, _pos) { + setColors(colors, _pos); + return f; + }; + f.out = function(_o) { + _out = _o; + return f; + }; + f.spread = function(val) { + if (!arguments.length) { + return _spread; + } + _spread = val; + return f; + }; + f.correctLightness = function(v) { + if (v == null) { + v = true; + } + _correctLightness = v; + resetCache(); + if (_correctLightness) { + tmap = function(t) { + var L0, L1, L_actual, L_diff, L_ideal, max_iter, pol, t0, t1; + L0 = getColor(0, true).lab()[0]; + L1 = getColor(1, true).lab()[0]; + pol = L0 > L1; + L_actual = getColor(t, true).lab()[0]; + L_ideal = L0 + (L1 - L0) * t; + L_diff = L_actual - L_ideal; + t0 = 0; + t1 = 1; + max_iter = 20; + while (Math.abs(L_diff) > 1e-2 && max_iter-- > 0) { + (function() { + if (pol) { + L_diff *= -1; + } + if (L_diff < 0) { + t0 = t; + t += (t1 - t) * 0.5; + } else { + t1 = t; + t += (t0 - t) * 0.5; + } + L_actual = getColor(t, true).lab()[0]; + return L_diff = L_actual - L_ideal; + })(); + } + return t; + }; + } else { + tmap = function(t) { + return t; + }; + } + return f; + }; + f.padding = function(p) { + if (p != null) { + if (type(p) === 'number') { + p = [p, p]; } - } - }); - - return frCa; - - }))); - - -/***/ }), -/* 446 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : French (Switzerland) [fr-ch] - //! author : Gaspard Bucher : https://github.com/gaspard - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var frCh = moment.defineLocale('fr-ch', { - months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'), - monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), - monthsParseExact : true, - weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), - weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[Aujourd’hui à] LT', - nextDay : '[Demain à] LT', - nextWeek : 'dddd [à] LT', - lastDay : '[Hier à] LT', - lastWeek : 'dddd [dernier à] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'dans %s', - past : 'il y a %s', - s : 'quelques secondes', - m : 'une minute', - mm : '%d minutes', - h : 'une heure', - hh : '%d heures', - d : 'un jour', - dd : '%d jours', - M : 'un mois', - MM : '%d mois', - y : 'un an', - yy : '%d ans' - }, - dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, - ordinal : function (number, period) { - switch (period) { - // Words with masculine grammatical gender: mois, trimestre, jour - default: - case 'M': - case 'Q': - case 'D': - case 'DDD': - case 'd': - return number + (number === 1 ? 'er' : 'e'); - - // Words with feminine grammatical gender: semaine - case 'w': - case 'W': - return number + (number === 1 ? 're' : 'e'); + _padding = p; + return f; + } else { + return _padding; + } + }; + f.colors = function(numColors, out) { + var dd, dm, i, o, ref, result, results, samples, w; + if (arguments.length < 2) { + out = 'hex'; + } + result = []; + if (arguments.length === 0) { + result = _colors.slice(0); + } else if (numColors === 1) { + result = [f(0.5)]; + } else if (numColors > 1) { + dm = _domain[0]; + dd = _domain[1] - dm; + result = (function() { + results = []; + for (var o = 0; 0 <= numColors ? o < numColors : o > numColors; 0 <= numColors ? o++ : o--){ results.push(o); } + return results; + }).apply(this).map(function(i) { + return f(dm + i / (numColors - 1) * dd); + }); + } else { + colors = []; + samples = []; + if (_classes && _classes.length > 2) { + for (i = w = 1, ref = _classes.length; 1 <= ref ? w < ref : w > ref; i = 1 <= ref ? ++w : --w) { + samples.push((_classes[i - 1] + _classes[i]) * 0.5); + } + } else { + samples = _domain; } - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } - }); - - return frCh; - - }))); - - -/***/ }), -/* 447 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Frisian [fy] - //! author : Robin van der Vliet : https://github.com/robin0van0der0v + result = samples.map(function(v) { + return f(v); + }); + } + if (chroma[out]) { + result = result.map(function(c) { + return c[out](); + }); + } + return result; + }; + f.cache = function(c) { + if (c != null) { + return _useCache = c; + } else { + return _useCache; + } + }; + return f; + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (chroma.scales == null) { + chroma.scales = {}; + } + chroma.scales.cool = function() { + return chroma.scale([chroma.hsl(180, 1, .9), chroma.hsl(250, .7, .4)]); + }; - var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'); - var monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'); + chroma.scales.hot = function() { + return chroma.scale(['#000', '#f00', '#ff0', '#fff'], [0, .25, .75, 1]).mode('rgb'); + }; - var fy = moment.defineLocale('fy', { - months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'), - monthsShort : function (m, format) { - if (!m) { - return monthsShortWithDots; - } else if (/-MMM-/.test(format)) { - return monthsShortWithoutDots[m.month()]; + chroma.analyze = function(data, key, filter) { + var add, k, len, o, r, val, visit; + r = { + min: Number.MAX_VALUE, + max: Number.MAX_VALUE * -1, + sum: 0, + values: [], + count: 0 + }; + if (filter == null) { + filter = function() { + return true; + }; + } + add = function(val) { + if ((val != null) && !isNaN(val)) { + r.values.push(val); + r.sum += val; + if (val < r.min) { + r.min = val; + } + if (val > r.max) { + r.max = val; + } + r.count += 1; + } + }; + visit = function(val, k) { + if (filter(val, k)) { + if ((key != null) && type(key) === 'function') { + return add(key(val)); + } else if ((key != null) && type(key) === 'string' || type(key) === 'number') { + return add(val[key]); } else { - return monthsShortWithDots[m.month()]; + return add(val); } - }, - monthsParseExact : true, - weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'), - weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'), - weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD-MM-YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[hjoed om] LT', - nextDay: '[moarn om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[juster om] LT', - lastWeek: '[ôfrûne] dddd [om] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'oer %s', - past : '%s lyn', - s : 'in pear sekonden', - m : 'ien minút', - mm : '%d minuten', - h : 'ien oere', - hh : '%d oeren', - d : 'ien dei', - dd : '%d dagen', - M : 'ien moanne', - MM : '%d moannen', - y : 'ien jier', - yy : '%d jierren' - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal : function (number) { - return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + } + }; + if (type(data) === 'array') { + for (o = 0, len = data.length; o < len; o++) { + val = data[o]; + visit(val); + } + } else { + for (k in data) { + val = data[k]; + visit(val, k); + } } - }); + r.domain = [r.min, r.max]; + r.limits = function(mode, num) { + return chroma.limits(r, mode, num); + }; + return r; + }; - return fy; + chroma.limits = function(data, mode, num) { + var aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, assignments, best, centroids, cluster, clusterSizes, dist, i, j, kClusters, limits, max_log, min, min_log, mindist, n, nb_iters, newCentroids, o, p, pb, pr, ref, ref1, ref10, ref11, ref12, ref13, ref14, ref2, ref3, ref4, ref5, ref6, ref7, ref8, ref9, repeat, sum, tmpKMeansBreaks, v, value, values, w; + if (mode == null) { + mode = 'equal'; + } + if (num == null) { + num = 7; + } + if (type(data) === 'array') { + data = chroma.analyze(data); + } + min = data.min; + max = data.max; + sum = data.sum; + values = data.values.sort(function(a, b) { + return a - b; + }); + if (num === 1) { + return [min, max]; + } + limits = []; + if (mode.substr(0, 1) === 'c') { + limits.push(min); + limits.push(max); + } + if (mode.substr(0, 1) === 'e') { + limits.push(min); + for (i = o = 1, ref = num - 1; 1 <= ref ? o <= ref : o >= ref; i = 1 <= ref ? ++o : --o) { + limits.push(min + (i / num) * (max - min)); + } + limits.push(max); + } else if (mode.substr(0, 1) === 'l') { + if (min <= 0) { + throw 'Logarithmic scales are only possible for values > 0'; + } + min_log = Math.LOG10E * log(min); + max_log = Math.LOG10E * log(max); + limits.push(min); + for (i = w = 1, ref1 = num - 1; 1 <= ref1 ? w <= ref1 : w >= ref1; i = 1 <= ref1 ? ++w : --w) { + limits.push(pow(10, min_log + (i / num) * (max_log - min_log))); + } + limits.push(max); + } else if (mode.substr(0, 1) === 'q') { + limits.push(min); + for (i = aa = 1, ref2 = num - 1; 1 <= ref2 ? aa <= ref2 : aa >= ref2; i = 1 <= ref2 ? ++aa : --aa) { + p = (values.length - 1) * i / num; + pb = floor(p); + if (pb === p) { + limits.push(values[pb]); + } else { + pr = p - pb; + limits.push(values[pb] * (1 - pr) + values[pb + 1] * pr); + } + } + limits.push(max); + } else if (mode.substr(0, 1) === 'k') { - }))); - - -/***/ }), -/* 448 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Scottish Gaelic [gd] - //! author : Jon Ashdown : https://github.com/jonashdown + /* + implementation based on + http://code.google.com/p/figue/source/browse/trunk/figue.js#336 + simplified for 1-d input values + */ + n = values.length; + assignments = new Array(n); + clusterSizes = new Array(num); + repeat = true; + nb_iters = 0; + centroids = null; + centroids = []; + centroids.push(min); + for (i = ab = 1, ref3 = num - 1; 1 <= ref3 ? ab <= ref3 : ab >= ref3; i = 1 <= ref3 ? ++ab : --ab) { + centroids.push(min + (i / num) * (max - min)); + } + centroids.push(max); + while (repeat) { + for (j = ac = 0, ref4 = num - 1; 0 <= ref4 ? ac <= ref4 : ac >= ref4; j = 0 <= ref4 ? ++ac : --ac) { + clusterSizes[j] = 0; + } + for (i = ad = 0, ref5 = n - 1; 0 <= ref5 ? ad <= ref5 : ad >= ref5; i = 0 <= ref5 ? ++ad : --ad) { + value = values[i]; + mindist = Number.MAX_VALUE; + for (j = ae = 0, ref6 = num - 1; 0 <= ref6 ? ae <= ref6 : ae >= ref6; j = 0 <= ref6 ? ++ae : --ae) { + dist = abs(centroids[j] - value); + if (dist < mindist) { + mindist = dist; + best = j; + } + } + clusterSizes[best]++; + assignments[i] = best; + } + newCentroids = new Array(num); + for (j = af = 0, ref7 = num - 1; 0 <= ref7 ? af <= ref7 : af >= ref7; j = 0 <= ref7 ? ++af : --af) { + newCentroids[j] = null; + } + for (i = ag = 0, ref8 = n - 1; 0 <= ref8 ? ag <= ref8 : ag >= ref8; i = 0 <= ref8 ? ++ag : --ag) { + cluster = assignments[i]; + if (newCentroids[cluster] === null) { + newCentroids[cluster] = values[i]; + } else { + newCentroids[cluster] += values[i]; + } + } + for (j = ah = 0, ref9 = num - 1; 0 <= ref9 ? ah <= ref9 : ah >= ref9; j = 0 <= ref9 ? ++ah : --ah) { + newCentroids[j] *= 1 / clusterSizes[j]; + } + repeat = false; + for (j = ai = 0, ref10 = num - 1; 0 <= ref10 ? ai <= ref10 : ai >= ref10; j = 0 <= ref10 ? ++ai : --ai) { + if (newCentroids[j] !== centroids[i]) { + repeat = true; + break; + } + } + centroids = newCentroids; + nb_iters++; + if (nb_iters > 200) { + repeat = false; + } + } + kClusters = {}; + for (j = aj = 0, ref11 = num - 1; 0 <= ref11 ? aj <= ref11 : aj >= ref11; j = 0 <= ref11 ? ++aj : --aj) { + kClusters[j] = []; + } + for (i = ak = 0, ref12 = n - 1; 0 <= ref12 ? ak <= ref12 : ak >= ref12; i = 0 <= ref12 ? ++ak : --ak) { + cluster = assignments[i]; + kClusters[cluster].push(values[i]); + } + tmpKMeansBreaks = []; + for (j = al = 0, ref13 = num - 1; 0 <= ref13 ? al <= ref13 : al >= ref13; j = 0 <= ref13 ? ++al : --al) { + tmpKMeansBreaks.push(kClusters[j][0]); + tmpKMeansBreaks.push(kClusters[j][kClusters[j].length - 1]); + } + tmpKMeansBreaks = tmpKMeansBreaks.sort(function(a, b) { + return a - b; + }); + limits.push(tmpKMeansBreaks[0]); + for (i = am = 1, ref14 = tmpKMeansBreaks.length - 1; am <= ref14; i = am += 2) { + v = tmpKMeansBreaks[i]; + if (!isNaN(v) && limits.indexOf(v) === -1) { + limits.push(v); + } + } + } + return limits; + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + hsi2rgb = function(h, s, i) { + /* + borrowed from here: + http://hummer.stanford.edu/museinfo/doc/examples/humdrum/keyscape2/hsi2rgb.cpp + */ + var args, b, g, r; + args = unpack(arguments); + h = args[0], s = args[1], i = args[2]; + if (isNaN(h)) { + h = 0; + } + h /= 360; + if (h < 1 / 3) { + b = (1 - s) / 3; + r = (1 + s * cos(TWOPI * h) / cos(PITHIRD - TWOPI * h)) / 3; + g = 1 - (b + r); + } else if (h < 2 / 3) { + h -= 1 / 3; + r = (1 - s) / 3; + g = (1 + s * cos(TWOPI * h) / cos(PITHIRD - TWOPI * h)) / 3; + b = 1 - (r + g); + } else { + h -= 2 / 3; + g = (1 - s) / 3; + b = (1 + s * cos(TWOPI * h) / cos(PITHIRD - TWOPI * h)) / 3; + r = 1 - (g + b); + } + r = limit(i * r * 3); + g = limit(i * g * 3); + b = limit(i * b * 3); + return [r * 255, g * 255, b * 255, args.length > 3 ? args[3] : 1]; + }; - var months = [ - 'Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd' - ]; + rgb2hsi = function() { - var monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh']; + /* + borrowed from here: + http://hummer.stanford.edu/museinfo/doc/examples/humdrum/keyscape2/rgb2hsi.cpp + */ + var b, g, h, i, min, r, ref, s; + ref = unpack(arguments), r = ref[0], g = ref[1], b = ref[2]; + TWOPI = Math.PI * 2; + r /= 255; + g /= 255; + b /= 255; + min = Math.min(r, g, b); + i = (r + g + b) / 3; + s = 1 - min / i; + if (s === 0) { + h = 0; + } else { + h = ((r - g) + (r - b)) / 2; + h /= Math.sqrt((r - g) * (r - g) + (r - b) * (g - b)); + h = Math.acos(h); + if (b > g) { + h = TWOPI - h; + } + h /= TWOPI; + } + return [h * 360, s, i]; + }; - var weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne']; + chroma.hsi = function() { + return (function(func, args, ctor) { + ctor.prototype = func.prototype; + var child = new ctor, result = func.apply(child, args); + return Object(result) === result ? result : child; + })(Color, slice.call(arguments).concat(['hsi']), function(){}); + }; - var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis']; + _input.hsi = hsi2rgb; - var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa']; + Color.prototype.hsi = function() { + return rgb2hsi(this._rgb); + }; - var gd = moment.defineLocale('gd', { - months : months, - monthsShort : monthsShort, - monthsParseExact : true, - weekdays : weekdays, - weekdaysShort : weekdaysShort, - weekdaysMin : weekdaysMin, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[An-diugh aig] LT', - nextDay : '[A-màireach aig] LT', - nextWeek : 'dddd [aig] LT', - lastDay : '[An-dè aig] LT', - lastWeek : 'dddd [seo chaidh] [aig] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'ann an %s', - past : 'bho chionn %s', - s : 'beagan diogan', - m : 'mionaid', - mm : '%d mionaidean', - h : 'uair', - hh : '%d uairean', - d : 'latha', - dd : '%d latha', - M : 'mìos', - MM : '%d mìosan', - y : 'bliadhna', - yy : '%d bliadhna' - }, - dayOfMonthOrdinalParse : /\d{1,2}(d|na|mh)/, - ordinal : function (number) { - var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh'; - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + interpolate_hsx = function(col1, col2, f, m) { + var dh, hue, hue0, hue1, lbv, lbv0, lbv1, res, sat, sat0, sat1, xyz0, xyz1; + if (m === 'hsl') { + xyz0 = col1.hsl(); + xyz1 = col2.hsl(); + } else if (m === 'hsv') { + xyz0 = col1.hsv(); + xyz1 = col2.hsv(); + } else if (m === 'hcg') { + xyz0 = col1.hcg(); + xyz1 = col2.hcg(); + } else if (m === 'hsi') { + xyz0 = col1.hsi(); + xyz1 = col2.hsi(); + } else if (m === 'lch' || m === 'hcl') { + m = 'hcl'; + xyz0 = col1.hcl(); + xyz1 = col2.hcl(); } - }); + if (m.substr(0, 1) === 'h') { + hue0 = xyz0[0], sat0 = xyz0[1], lbv0 = xyz0[2]; + hue1 = xyz1[0], sat1 = xyz1[1], lbv1 = xyz1[2]; + } + if (!isNaN(hue0) && !isNaN(hue1)) { + if (hue1 > hue0 && hue1 - hue0 > 180) { + dh = hue1 - (hue0 + 360); + } else if (hue1 < hue0 && hue0 - hue1 > 180) { + dh = hue1 + 360 - hue0; + } else { + dh = hue1 - hue0; + } + hue = hue0 + f * dh; + } else if (!isNaN(hue0)) { + hue = hue0; + if ((lbv1 === 1 || lbv1 === 0) && m !== 'hsv') { + sat = sat0; + } + } else if (!isNaN(hue1)) { + hue = hue1; + if ((lbv0 === 1 || lbv0 === 0) && m !== 'hsv') { + sat = sat1; + } + } else { + hue = Number.NaN; + } + if (sat == null) { + sat = sat0 + f * (sat1 - sat0); + } + lbv = lbv0 + f * (lbv1 - lbv0); + return res = chroma[m](hue, sat, lbv); + }; - return gd; + _interpolators = _interpolators.concat((function() { + var len, o, ref, results; + ref = ['hsv', 'hsl', 'hsi', 'hcl', 'lch', 'hcg']; + results = []; + for (o = 0, len = ref.length; o < len; o++) { + m = ref[o]; + results.push([m, interpolate_hsx]); + } + return results; + })()); - }))); - - -/***/ }), -/* 449 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Galician [gl] - //! author : Juan G. Hurtado : https://github.com/juanghurtado + interpolate_num = function(col1, col2, f, m) { + var n1, n2; + n1 = col1.num(); + n2 = col2.num(); + return chroma.num(n1 + (n2 - n1) * f, 'num'); + }; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + _interpolators.push(['num', interpolate_num]); + interpolate_lab = function(col1, col2, f, m) { + var res, xyz0, xyz1; + xyz0 = col1.lab(); + xyz1 = col2.lab(); + return res = new Color(xyz0[0] + f * (xyz1[0] - xyz0[0]), xyz0[1] + f * (xyz1[1] - xyz0[1]), xyz0[2] + f * (xyz1[2] - xyz0[2]), m); + }; - var gl = moment.defineLocale('gl', { - months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'), - monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'), - monthsParseExact: true, - weekdays : 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'), - weekdaysShort : 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'), - weekdaysMin : 'do_lu_ma_mé_xo_ve_sá'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D [de] MMMM [de] YYYY', - LLL : 'D [de] MMMM [de] YYYY H:mm', - LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm' - }, - calendar : { - sameDay : function () { - return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; - }, - nextDay : function () { - return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; - }, - nextWeek : function () { - return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; - }, - lastDay : function () { - return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT'; - }, - lastWeek : function () { - return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; - }, - sameElse : 'L' - }, - relativeTime : { - future : function (str) { - if (str.indexOf('un') === 0) { - return 'n' + str; - } - return 'en ' + str; - }, - past : 'hai %s', - s : 'uns segundos', - m : 'un minuto', - mm : '%d minutos', - h : 'unha hora', - hh : '%d horas', - d : 'un día', - dd : '%d días', - M : 'un mes', - MM : '%d meses', - y : 'un ano', - yy : '%d anos' - }, - dayOfMonthOrdinalParse : /\d{1,2}º/, - ordinal : '%dº', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } - }); + _interpolators.push(['lab', interpolate_lab]); - return gl; + }).call(this); - }))); - + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(337)(module))) /***/ }), -/* 450 */ +/* 470 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Konkani Latin script [gom-latn] - //! author : The Discoverer : https://github.com/WikiDiscoverer - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - 's': ['thodde secondanim', 'thodde second'], - 'm': ['eka mintan', 'ek minute'], - 'mm': [number + ' mintanim', number + ' mintam'], - 'h': ['eka horan', 'ek hor'], - 'hh': [number + ' horanim', number + ' hor'], - 'd': ['eka disan', 'ek dis'], - 'dd': [number + ' disanim', number + ' dis'], - 'M': ['eka mhoinean', 'ek mhoino'], - 'MM': [number + ' mhoineanim', number + ' mhoine'], - 'y': ['eka vorsan', 'ek voros'], - 'yy': [number + ' vorsanim', number + ' vorsam'] - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } - - var gomLatn = moment.defineLocale('gom-latn', { - months : 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'), - monthsShort : 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'), - monthsParseExact : true, - weekdays : 'Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son\'var'.split('_'), - weekdaysShort : 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'), - weekdaysMin : 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'A h:mm [vazta]', - LTS : 'A h:mm:ss [vazta]', - L : 'DD-MM-YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY A h:mm [vazta]', - LLLL : 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]', - llll: 'ddd, D MMM YYYY, A h:mm [vazta]' - }, - calendar : { - sameDay: '[Aiz] LT', - nextDay: '[Faleam] LT', - nextWeek: '[Ieta to] dddd[,] LT', - lastDay: '[Kal] LT', - lastWeek: '[Fatlo] dddd[,] LT', - sameElse: 'L' - }, - relativeTime : { - future : '%s', - past : '%s adim', - s : processRelativeTime, - m : processRelativeTime, - mm : processRelativeTime, - h : processRelativeTime, - hh : processRelativeTime, - d : processRelativeTime, - dd : processRelativeTime, - M : processRelativeTime, - MM : processRelativeTime, - y : processRelativeTime, - yy : processRelativeTime - }, - dayOfMonthOrdinalParse : /\d{1,2}(er)/, - ordinal : function (number, period) { - switch (period) { - // the ordinal 'er' only applies to day of the month - case 'D': - return number + 'er'; - default: - case 'M': - case 'Q': - case 'DDD': - case 'd': - case 'w': - case 'W': - return number; - } - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - }, - meridiemParse: /rati|sokalli|donparam|sanje/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'rati') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'sokalli') { - return hour; - } else if (meridiem === 'donparam') { - return hour > 12 ? hour : hour + 12; - } else if (meridiem === 'sanje') { - return hour + 12; - } - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'rati'; - } else if (hour < 12) { - return 'sokalli'; - } else if (hour < 16) { - return 'donparam'; - } else if (hour < 20) { - return 'sanje'; - } else { - return 'rati'; + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(1); + var React = __webpack_require__(3); + var docs_1 = __webpack_require__(172); + var docsIcon_1 = __webpack_require__(471); + var ICONS_PER_ROW = 5; + var Icons = (function (_super) { + tslib_1.__extends(Icons, _super); + function Icons(props, context) { + var _this = _super.call(this, props, context) || this; + _this.state = { + filter: "", + }; + _this.handleFilterChange = function (e) { + var filter = e.target.value; + _this.setState({ filter: filter }); + }; + _this.iconGroups = props.icons.reduce(function (groups, icon) { + if (groups[icon.group] == null) { + groups[icon.group] = []; + } + groups[icon.group].push(icon); + return groups; + }, {}); + for (var _i = 0, _a = Object.keys(_this.iconGroups); _i < _a.length; _i++) { + var group = _a[_i]; + _this.iconGroups[group].sort(function (a, b) { return a.name.localeCompare(b.name); }); } + return _this; } - }); - - return gomLatn; - - }))); + Icons.prototype.render = function () { + var groupElements = Object.keys(this.iconGroups) + .sort() + .map(this.maybeRenderIconGroup, this) + .filter(function (group) { return group != null; }); + return (React.createElement("div", { className: "docs-icons" }, + React.createElement("div", { className: "pt-input-group pt-large pt-fill" }, + React.createElement("span", { className: "pt-icon pt-icon-search" }), + React.createElement("input", { className: "pt-input pt-fill", dir: "auto", onChange: this.handleFilterChange, placeholder: "Search for icons...", type: "search", value: this.state.filter })), + groupElements.length > 0 ? groupElements : this.renderZeroState())); + }; + Icons.prototype.maybeRenderIconGroup = function (groupName, index) { + var _this = this; + var icons = this.iconGroups[groupName]; + var _a = this.props, iconFilter = _a.iconFilter, iconRenderer = _a.iconRenderer; + var iconElements = icons.filter(function (icon) { return iconFilter(_this.state.filter, icon); }).map(iconRenderer); + if (iconElements.length > 0) { + var padIndex = icons.length; + while (iconElements.length % ICONS_PER_ROW > 0) { + iconElements.push(React.createElement("div", { className: "docs-placeholder", key: padIndex++ })); + } + return (React.createElement("div", { className: "docs-icon-group", key: index }, + React.createElement("h3", null, groupName), + iconElements)); + } + return undefined; + }; + Icons.prototype.renderZeroState = function () { + return React.createElement("div", { className: "pt-running-text pt-text-muted icons-zero-state" }, "No icons found."); + }; + return Icons; + }(React.PureComponent)); + Icons.defaultProps = { + iconFilter: isIconFiltered, + iconRenderer: renderIcon, + icons: __webpack_require__(472), + }; + exports.Icons = Icons; + function isIconFiltered(query, icon) { + return docs_1.smartSearch(query, icon.name, icon.className, icon.tags, icon.group); + } + function renderIcon(icon, index) { + return React.createElement(docsIcon_1.DocsIcon, tslib_1.__assign({}, icon, { key: index })); + } /***/ }), -/* 451 */ +/* 471 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Hebrew [he] - //! author : Tomer Cohen : https://github.com/tomer - //! author : Moshe Simantov : https://github.com/DevelopmentIL - //! author : Tal Ater : https://github.com/TalAter - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var he = moment.defineLocale('he', { - months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'), - monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'), - weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'), - weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'), - weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D [ב]MMMM YYYY', - LLL : 'D [ב]MMMM YYYY HH:mm', - LLLL : 'dddd, D [ב]MMMM YYYY HH:mm', - l : 'D/M/YYYY', - ll : 'D MMM YYYY', - lll : 'D MMM YYYY HH:mm', - llll : 'ddd, D MMM YYYY HH:mm' - }, - calendar : { - sameDay : '[היום ב־]LT', - nextDay : '[מחר ב־]LT', - nextWeek : 'dddd [בשעה] LT', - lastDay : '[אתמול ב־]LT', - lastWeek : '[ביום] dddd [האחרון בשעה] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'בעוד %s', - past : 'לפני %s', - s : 'מספר שניות', - m : 'דקה', - mm : '%d דקות', - h : 'שעה', - hh : function (number) { - if (number === 2) { - return 'שעתיים'; - } - return number + ' שעות'; - }, - d : 'יום', - dd : function (number) { - if (number === 2) { - return 'יומיים'; - } - return number + ' ימים'; - }, - M : 'חודש', - MM : function (number) { - if (number === 2) { - return 'חודשיים'; - } - return number + ' חודשים'; - }, - y : 'שנה', - yy : function (number) { - if (number === 2) { - return 'שנתיים'; - } else if (number % 10 === 0 && number !== 10) { - return number + ' שנה'; - } - return number + ' שנים'; - } - }, - meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i, - isPM : function (input) { - return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input); - }, - meridiem : function (hour, minute, isLower) { - if (hour < 5) { - return 'לפנות בוקר'; - } else if (hour < 10) { - return 'בבוקר'; - } else if (hour < 12) { - return isLower ? 'לפנה"צ' : 'לפני הצהריים'; - } else if (hour < 18) { - return isLower ? 'אחה"צ' : 'אחרי הצהריים'; - } else { - return 'בערב'; - } + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(1); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var clickToCopy_1 = __webpack_require__(467); + var GITHUB_PATH = "https://github.com/palantir/blueprint/blob/master/resources/icons"; + var DocsIcon = (function (_super) { + tslib_1.__extends(DocsIcon, _super); + function DocsIcon() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.handleClick16 = function () { return window.open(GITHUB_PATH + "/16px/" + _this.props.className + ".svg"); }; + _this.handleClick20 = function () { return window.open(GITHUB_PATH + "/20px/" + _this.props.className + ".svg"); }; + return _this; } - }); - - return he; - - }))); + DocsIcon.prototype.render = function () { + var _a = this.props, className = _a.className, name = _a.name, tags = _a.tags; + return (React.createElement(clickToCopy_1.ClickToCopy, { className: "docs-icon", "data-tags": tags, value: className }, + React.createElement(core_1.Icon, { iconName: className, iconSize: core_1.Icon.SIZE_LARGE }), + React.createElement("span", { className: "docs-icon-detail" }, + React.createElement("div", { className: "docs-icon-name" }, name), + React.createElement("div", { className: "docs-icon-class-name pt-monospace-text" }, className), + React.createElement("div", { className: "docs-clipboard-message pt-text-muted", "data-hover-message": "Click to copy" })))); + }; + DocsIcon.prototype.renderContextMenu = function () { + var className = this.props.className; + return (React.createElement(core_1.Menu, null, + React.createElement(core_1.MenuItem, { className: "docs-icon-16", iconName: className, text: "Download 16px SVG", onClick: this.handleClick16 }), + React.createElement(core_1.MenuItem, { className: "docs-icon-20", iconName: className, text: "Download 20px SVG", onClick: this.handleClick20 }))); + }; + return DocsIcon; + }(React.PureComponent)); + DocsIcon = tslib_1.__decorate([ + core_1.ContextMenuTarget + ], DocsIcon); + exports.DocsIcon = DocsIcon; /***/ }), -/* 452 */ -/***/ (function(module, exports, __webpack_require__) { +/* 472 */ +/***/ (function(module, exports) { - //! moment.js locale configuration - //! locale : Hindi [hi] - //! author : Mayank Singhal : https://github.com/mayanksinghal - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var symbolMap = { - '1': '१', - '2': '२', - '3': '३', - '4': '४', - '5': '५', - '6': '६', - '7': '७', - '8': '८', - '9': '९', - '0': '०' - }; - var numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0' - }; - - var hi = moment.defineLocale('hi', { - months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'), - monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'), - monthsParseExact: true, - weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), - weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'), - weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'), - longDateFormat : { - LT : 'A h:mm बजे', - LTS : 'A h:mm:ss बजे', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, A h:mm बजे', - LLLL : 'dddd, D MMMM YYYY, A h:mm बजे' - }, - calendar : { - sameDay : '[आज] LT', - nextDay : '[कल] LT', - nextWeek : 'dddd, LT', - lastDay : '[कल] LT', - lastWeek : '[पिछले] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s में', - past : '%s पहले', - s : 'कुछ ही क्षण', - m : 'एक मिनट', - mm : '%d मिनट', - h : 'एक घंटा', - hh : '%d घंटे', - d : 'एक दिन', - dd : '%d दिन', - M : 'एक महीने', - MM : '%d महीने', - y : 'एक वर्ष', - yy : '%d वर्ष' - }, - preparse: function (string) { - return string.replace(/[१२३४५६७८९०]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // Hindi notation for meridiems are quite fuzzy in practice. While there exists - // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi. - meridiemParse: /रात|सुबह|दोपहर|शाम/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'रात') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'सुबह') { - return hour; - } else if (meridiem === 'दोपहर') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'शाम') { - return hour + 12; - } - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'रात'; - } else if (hour < 10) { - return 'सुबह'; - } else if (hour < 17) { - return 'दोपहर'; - } else if (hour < 20) { - return 'शाम'; - } else { - return 'रात'; - } - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. + module.exports = [ + { + "name": "Blank", + "className": "pt-icon-blank", + "tags": "empty, placeholder", + "group": "miscellaneous", + "content": "\\e900" + }, + { + "name": "Style", + "className": "pt-icon-style", + "tags": "visual style, editor", + "group": "editor", + "content": "\\e601" + }, + { + "name": "Align: left", + "className": "pt-icon-align-left", + "tags": "text flow, alignment, justification, range, flush left", + "group": "editor", + "content": "\\e602" + }, + { + "name": "Align: center", + "className": "pt-icon-align-center", + "tags": "text flow, alignment, justification, range, centered", + "group": "editor", + "content": "\\e603" + }, + { + "name": "Align: right", + "className": "pt-icon-align-right", + "tags": "text flow, alignment, justification, range, flush right", + "group": "editor", + "content": "\\e604" + }, + { + "name": "Align: justify", + "className": "pt-icon-align-justify", + "tags": "text flow, alignment, justification, range, justified", + "group": "editor", + "content": "\\e605" + }, + { + "name": "Bold", + "className": "pt-icon-bold", + "tags": "typography, text, font style, weight, bold", + "group": "editor", + "content": "\\e606" + }, + { + "name": "Italic", + "className": "pt-icon-italic", + "tags": "typography, text, font style, italic, cursive", + "group": "editor", + "content": "\\e607" + }, + { + "name": "Underline", + "className": "pt-icon-underline", + "tags": "typography, text, font style, underline, underscore", + "group": "editor", + "content": "\\2381" + }, + { + "name": "Search around", + "className": "pt-icon-search-around", + "tags": "search, exploration, information, area, graph", + "group": "action", + "content": "\\e608" + }, + { + "name": "Remove from graph", + "className": "pt-icon-graph-remove", + "tags": "circle, remove, delete, clear, graph", + "group": "action", + "content": "\\e609" + }, + { + "name": "Group objects", + "className": "pt-icon-group-objects", + "tags": "group, alignment, organization, arrangement, classification, objects", + "group": "action", + "content": "\\e60a" + }, + { + "name": "Merge into links", + "className": "pt-icon-merge-links", + "tags": "merge, combine, consolidate, jointment, links", + "group": "action", + "content": "\\e60b" + }, + { + "name": "Layout", + "className": "pt-icon-layout", + "tags": "layout, presentation, arrangement, graph", + "group": "data", + "content": "\\e60c" + }, + { + "name": "Layout: auto", + "className": "pt-icon-layout-auto", + "tags": "layout, presentation, arrangement, auto, graph, grid", + "group": "data", + "content": "\\e60d" + }, + { + "name": "Layout: circle", + "className": "pt-icon-layout-circle", + "tags": "layout, presentation, arrangement, circle, graph, grid", + "group": "data", + "content": "\\e60e" + }, + { + "name": "Layout: hierarchy", + "className": "pt-icon-layout-hierarchy", + "tags": "layout, presentation, arrangement, hierarchy, order, graph, grid", + "group": "data", + "content": "\\e60f" + }, + { + "name": "Layout: grid", + "className": "pt-icon-layout-grid", + "tags": "layout, presentation, arrangement, grid, graph, grid", + "group": "data", + "content": "\\e610" + }, + { + "name": "Layout: group by", + "className": "pt-icon-layout-group-by", + "tags": "layout, presentation, arrangement, group by, graph, grid", + "group": "data", + "content": "\\e611" + }, + { + "name": "Layout: skew grid", + "className": "pt-icon-layout-skew-grid", + "tags": "layout, presentation, arrangement, skew, graph, grid", + "group": "data", + "content": "\\e612" + }, + { + "name": "Geosearch", + "className": "pt-icon-geosearch", + "tags": "search, exploration, topography, geography, location, area, magnifying glass, globe", + "group": "action", + "content": "\\e613" + }, + { + "name": "Heatmap", + "className": "pt-icon-heatmap", + "tags": "hierarchy, matrix, heat map", + "group": "data", + "content": "\\e614" + }, + { + "name": "Drive time", + "className": "pt-icon-drive-time", + "tags": "car, automobile, vehicle, van, drive, ride, distance, navigation, directions", + "group": "interface", + "content": "\\e615" + }, + { + "name": "Select", + "className": "pt-icon-select", + "tags": "selection, arrow, cursor, area, range", + "group": "action", + "content": "\\e616" + }, + { + "name": "Predictive analysis", + "className": "pt-icon-predictive-analysis", + "tags": "analysis, investigation, search, study, test, brain", + "group": "action", + "content": "\\e617" + }, + { + "name": "Layers", + "className": "pt-icon-layers", + "tags": "layers, levels, stack, cards", + "group": "interface", + "content": "\\e618" + }, + { + "name": "Locate", + "className": "pt-icon-locate", + "tags": "target, location, destination, mark, map, area", + "group": "action", + "content": "\\e619" + }, + { + "name": "Bookmark", + "className": "pt-icon-bookmark", + "tags": "bookmark, marker, holder, section, identifier, favorites", + "group": "action", + "content": "\\e61a" + }, + { + "name": "Citation", + "className": "pt-icon-citation", + "tags": "quotation, citation, marks, excerpt", + "group": "editor", + "content": "\\e61b" + }, + { + "name": "Tag", + "className": "pt-icon-tag", + "tags": "tag, label, badge, identification", + "group": "action", + "content": "\\e61c" + }, + { + "name": "Clipboard", + "className": "pt-icon-clipboard", + "tags": "clipboard, notepad, notebook, copy, paste, transfer, storage", + "group": "action", + "content": "\\e61d" + }, + { + "name": "Selection", + "className": "pt-icon-selection", + "tags": "selection, collection, circle, ring", + "group": "action", + "content": "\\29bf" + }, + { + "name": "Events", + "className": "pt-icon-timeline-events", + "tags": "calendar, timeframe, agenda, diary, day, week, month", + "group": "interface", + "content": "\\e61e" + }, + { + "name": "Line chart", + "className": "pt-icon-timeline-line-chart", + "tags": "graph, line, chart", + "group": "data", + "content": "\\e61f" + }, + { + "name": "Bar chart", + "className": "pt-icon-timeline-bar-chart", + "tags": "graph, bar, chart", + "group": "data", + "content": "\\e620" + }, + { + "name": "Applications", + "className": "pt-icon-applications", + "tags": "application, browser, windows, platforms", + "group": "interface", + "content": "\\e621" + }, + { + "name": "Projects", + "className": "pt-icon-projects", + "tags": "drawer, sections", + "group": "interface", + "content": "\\e622" + }, + { + "name": "Changes", + "className": "pt-icon-changes", + "tags": "arrows, direction, switch", + "group": "action", + "content": "\\e623" + }, + { + "name": "Notifications", + "className": "pt-icon-notifications", + "tags": "notifications, bell, alarm, notice, warning", + "group": "interface", + "content": "\\e624" + }, + { + "name": "Lock", + "className": "pt-icon-lock", + "tags": "lock, engage, connect, join, close", + "group": "action", + "content": "\\e625" + }, + { + "name": "Unlock", + "className": "pt-icon-unlock", + "tags": "unlock, disengage, disconnect, separate, open", + "group": "action", + "content": "\\e626" + }, + { + "name": "User", + "className": "pt-icon-user", + "tags": "person, human, male, female, character, customer, individual", + "group": "interface", + "content": "\\e627" + }, + { + "name": "Search template", + "className": "pt-icon-search-template", + "tags": "search, text, magnifying glass", + "group": "action", + "content": "\\e628" + }, + { + "name": "Inbox", + "className": "pt-icon-inbox", + "tags": "folder, mail, file, message", + "group": "file", + "content": "\\e629" + }, + { + "name": "More", + "className": "pt-icon-more", + "tags": "dots, three, extra, new, options", + "group": "interface", + "content": "\\e62a" + }, + { + "name": "Help", + "className": "pt-icon-help", + "tags": "question mark, aid, advice, circle", + "group": "action", + "content": "\\003F" + }, + { + "name": "Calendar", + "className": "pt-icon-calendar", + "tags": "calendar, timeframe, agenda, diary, day, week, month", + "group": "interface", + "content": "\\e62b" + }, + { + "name": "Media", + "className": "pt-icon-media", + "tags": "audio, video, media, picture, image, drawing, illustration", + "group": "media", + "content": "\\e62c" + }, + { + "name": "Link", + "className": "pt-icon-link", + "tags": "link, connection, network", + "group": "interface", + "content": "\\e62d" + }, + { + "name": "Share", + "className": "pt-icon-share", + "tags": "share, square, arrow", + "group": "action", + "content": "\\e62e" + }, + { + "name": "Download", + "className": "pt-icon-download", + "tags": "circle, arrow, down, downloading", + "group": "action", + "content": "\\e62f" + }, + { + "name": "Document", + "className": "pt-icon-document", + "tags": "document, paper, page, file", + "group": "file", + "content": "\\e630" + }, + { + "name": "Properties", + "className": "pt-icon-properties", + "tags": "lines, dots, three, list", + "group": "interface", + "content": "\\e631" + }, + { + "name": "Import", + "className": "pt-icon-import", + "tags": "arrow, down, importing,", + "group": "action", + "content": "\\e632" + }, + { + "name": "Export", + "className": "pt-icon-export", + "tags": "arrow, up, exporting", + "group": "action", + "content": "\\e633" + }, + { + "name": "Minimize", + "className": "pt-icon-minimize", + "tags": "arrows, decrease, smaller", + "group": "action", + "content": "\\e634" + }, + { + "name": "Maximize", + "className": "pt-icon-maximize", + "tags": "arrows, increase, bigger", + "group": "action", + "content": "\\e635" + }, + { + "name": "Tick", + "className": "pt-icon-tick", + "tags": "mark, sign, ok, approved, success", + "group": "action", + "content": "\\2713" + }, + { + "name": "Cross", + "className": "pt-icon-cross", + "tags": "cross mark, fail, delete, no, close, remove", + "group": "action", + "content": "\\2717" + }, + { + "name": "Plus", + "className": "pt-icon-plus", + "tags": "sign, add, maximize, zoom in", + "group": "action", + "content": "\\002b" + }, + { + "name": "Minus", + "className": "pt-icon-minus", + "tags": "sign, remove, minimize, zoom out", + "group": "action", + "content": "\\2212" + }, + { + "name": "Arrow: left", + "className": "pt-icon-arrow-left", + "tags": "arrow, direction, left", + "group": "interface", + "content": "\\2190" + }, + { + "name": "Arrow: right", + "className": "pt-icon-arrow-right", + "tags": "arrow, direction, right", + "group": "interface", + "content": "\\2192" + }, + { + "name": "Exchange", + "className": "pt-icon-exchange", + "tags": "arrows, direction, exchange, network, swap, transfer, transaction", + "group": "action", + "content": "\\e636" + }, + { + "name": "Comparison", + "className": "pt-icon-comparison", + "tags": "comparison, analogy, layout, contrast", + "group": "action", + "content": "\\e637" + }, + { + "name": "List", + "className": "pt-icon-list", + "tags": "agenda, four lines, table", + "group": "table", + "content": "\\2630" + }, + { + "name": "Filter", + "className": "pt-icon-filter", + "tags": "filtering, funnel, tube, pipe", + "group": "action", + "content": "\\e638" + }, + { + "name": "Confirm", + "className": "pt-icon-confirm", + "tags": "circle, tick, confirmation, acceptance, approval, authorization", + "group": "action", + "content": "\\e639" + }, + { + "name": "Fork", + "className": "pt-icon-fork", + "tags": "divide, split, break, arrows, direction", + "group": "action", + "content": "\\e63a" + }, + { + "name": "Trash", + "className": "pt-icon-trash", + "tags": "bin, rubbish, junk, remove, delete", + "group": "action", + "content": "\\e63b" + }, + { + "name": "Person", + "className": "pt-icon-person", + "tags": "person, human, male, female, character, customer, individual", + "group": "interface", + "content": "\\e63c" + }, + { + "name": "People", + "className": "pt-icon-people", + "tags": "people, humans, males, females, characters, customers, individuals", + "group": "interface", + "content": "\\e63d" + }, + { + "name": "Add", + "className": "pt-icon-add", + "tags": "circle, plus, symbol, join", + "group": "action", + "content": "\\e63e" + }, + { + "name": "Remove", + "className": "pt-icon-remove", + "tags": "circle, minus, symbol, remove", + "group": "action", + "content": "\\e63f" + }, + { + "name": "Geolocation", + "className": "pt-icon-geolocation", + "tags": "geography, location, position, map, direction", + "group": "interface", + "content": "\\e640" + }, + { + "name": "Zoom in", + "className": "pt-icon-zoom-in", + "tags": "search, magnifying glass, plus", + "group": "action", + "content": "\\e641" + }, + { + "name": "Zoom out", + "className": "pt-icon-zoom-out", + "tags": "search, magnifying glass, minus", + "group": "action", + "content": "\\e642" + }, + { + "name": "Refresh", + "className": "pt-icon-refresh", + "tags": "circle, arrows, rotation", + "group": "action", + "content": "\\e643" + }, + { + "name": "Delete", + "className": "pt-icon-delete", + "tags": "circle, remove, cross", + "group": "action", + "content": "\\e644" + }, + { + "name": "Cog", + "className": "pt-icon-cog", + "tags": "settings, circle,", + "group": "interface", + "content": "\\e645" + }, + { + "name": "Flag", + "className": "pt-icon-flag", + "tags": "map, position, country, nationality", + "group": "interface", + "content": "\\2691" + }, + { + "name": "Pin", + "className": "pt-icon-pin", + "tags": "map, position, safety pin, attach", + "group": "action", + "content": "\\e646" + }, + { + "name": "Warning", + "className": "pt-icon-warning-sign", + "tags": "notification, warning, triangle, exclamation mark, sign", + "group": "interface", + "content": "\\e647" + }, + { + "name": "Error", + "className": "pt-icon-error", + "tags": "notification, failure, circle, exclamation mark, sign", + "group": "interface", + "content": "\\e648" + }, + { + "name": "Info", + "className": "pt-icon-info-sign", + "tags": "notification, information, circle, message, sign", + "group": "interface", + "content": "\\2139" + }, + { + "name": "Credit card", + "className": "pt-icon-credit-card", + "tags": "payment, bank, transaction", + "group": "action", + "content": "\\e649" + }, + { + "name": "Edit", + "className": "pt-icon-edit", + "tags": "annotate, pen, modify", + "group": "action", + "content": "\\270E" + }, + { + "name": "History", + "className": "pt-icon-history", + "tags": "past, reverse, circle, arrow", + "group": "action", + "content": "\\e64a" + }, + { + "name": "Search", + "className": "pt-icon-search", + "tags": "inspection, exploration, magnifying glass", + "group": "action", + "content": "\\e64b" + }, + { + "name": "Logout", + "className": "pt-icon-log-out", + "tags": "arrow, leave", + "group": "action", + "content": "\\e64c" + }, + { + "name": "Star: filled", + "className": "pt-icon-star", + "tags": "shape, pin, mark, pro", + "group": "interface", + "content": "\\2605" + }, + { + "name": "Star: empty", + "className": "pt-icon-star-empty", + "tags": "shape, unpin, mark", + "group": "interface", + "content": "\\2606" + }, + { + "name": "Sort: alphabetical", + "className": "pt-icon-sort-alphabetical", + "tags": "ascending, array, arrange", + "group": "action", + "content": "\\e64d" + }, + { + "name": "Sort: numerical", + "className": "pt-icon-sort-numerical", + "tags": "ascending, array, arrange", + "group": "action", + "content": "\\e64e" + }, + { + "name": "Sort", + "className": "pt-icon-sort", + "tags": "ascending, array, arrange", + "group": "action", + "content": "\\e64f" + }, + { + "name": "Folder: opened", + "className": "pt-icon-folder-open", + "tags": "file, portfolio, case", + "group": "file", + "content": "\\e651" + }, + { + "name": "Folder: closed", + "className": "pt-icon-folder-close", + "tags": "file, portfolio, case", + "group": "file", + "content": "\\e652" + }, + { + "name": "Folder: shared", + "className": "pt-icon-folder-shared", + "tags": "file, portfolio, case", + "group": "file", + "content": "\\e653" + }, + { + "name": "Caret: up", + "className": "pt-icon-caret-up", + "tags": "direction, order, up", + "group": "interface", + "content": "\\2303" + }, + { + "name": "Caret: right", + "className": "pt-icon-caret-right", + "tags": "direction, order, right", + "group": "interface", + "content": "\\232A" + }, + { + "name": "Caret: down", + "className": "pt-icon-caret-down", + "tags": "direction, order, down", + "group": "interface", + "content": "\\2304" + }, + { + "name": "Caret: left", + "className": "pt-icon-caret-left", + "tags": "direction, order, left", + "group": "interface", + "content": "\\2329" + }, + { + "name": "Menu: opened", + "className": "pt-icon-menu-open", + "tags": "show, navigation", + "group": "interface", + "content": "\\e654" + }, + { + "name": "Menu: closed", + "className": "pt-icon-menu-closed", + "tags": "hide, navigation", + "group": "interface", + "content": "\\e655" + }, + { + "name": "Feed", + "className": "pt-icon-feed", + "tags": "rss, feed", + "group": "interface", + "content": "\\e656" + }, + { + "name": "Two columns", + "className": "pt-icon-two-columns", + "tags": "layout, columns, switch, change, two", + "group": "action", + "content": "\\e657" + }, + { + "name": "One column", + "className": "pt-icon-one-column", + "tags": "layout, columns, switch, change, one", + "group": "action", + "content": "\\e658" + }, + { + "name": "Dot", + "className": "pt-icon-dot", + "tags": "point, circle, small", + "group": "miscellaneous", + "content": "\\2022" + }, + { + "name": "Property", + "className": "pt-icon-property", + "tags": "list, order", + "group": "interface", + "content": "\\e65a" + }, + { + "name": "Time", + "className": "pt-icon-time", + "tags": "clock, day, hours, minutes, seconds", + "group": "interface", + "content": "\\23F2" + }, + { + "name": "Disable", + "className": "pt-icon-disable", + "tags": "off, circle, remove", + "group": "action", + "content": "\\e600" + }, + { + "name": "Unpin", + "className": "pt-icon-unpin", + "tags": "map, position, safety pin, detach", + "group": "action", + "content": "\\e650" + }, + { + "name": "Flows", + "className": "pt-icon-flows", + "tags": "arrows, direction, links", + "group": "data", + "content": "\\e659" + }, + { + "name": "New text box", + "className": "pt-icon-new-text-box", + "tags": "text box, edit, new, create", + "group": "action", + "content": "\\e65b" + }, + { + "name": "New link", + "className": "pt-icon-new-link", + "tags": "create, add, plus, links", + "group": "action", + "content": "\\e65c" + }, + { + "name": "New object", + "className": "pt-icon-new-object", + "tags": "create, add, plus, objects, circle", + "group": "action", + "content": "\\e65d" + }, + { + "name": "Path search", + "className": "pt-icon-path-search", + "tags": "map, magnifying glass, position, location", + "group": "action", + "content": "\\e65e" + }, + { + "name": "Automatic updates", + "className": "pt-icon-automatic-updates", + "tags": "circle, arrows, tick, amends, updates", + "group": "action", + "content": "\\e65f" + }, + { + "name": "Page layout", + "className": "pt-icon-page-layout", + "tags": "browser, table, design, columns", + "group": "table", + "content": "\\e660" + }, + { + "name": "Code", + "className": "pt-icon-code", + "tags": "code, markup, language, tag", + "group": "action", + "content": "\\e661" + }, + { + "name": "Map", + "className": "pt-icon-map", + "tags": "map, location, position, geography, world", + "group": "interface", + "content": "\\e662" + }, + { + "name": "Search text", + "className": "pt-icon-search-text", + "tags": "magnifying glass, exploration", + "group": "action", + "content": "\\e663" + }, + { + "name": "Envelope", + "className": "pt-icon-envelope", + "tags": "post, mail, send, email", + "group": "interface", + "content": "\\2709" + }, + { + "name": "Paperclip", + "className": "pt-icon-paperclip", + "tags": "attachments, add", + "group": "action", + "content": "\\e664" + }, + { + "name": "Label", + "className": "pt-icon-label", + "tags": "text, tag, ticket", + "group": "interface", + "content": "\\e665" + }, + { + "name": "Globe", + "className": "pt-icon-globe", + "tags": "planet, earth, map, location, geography, world", + "group": "miscellaneous", + "content": "\\e666" + }, + { + "name": "Home", + "className": "pt-icon-home", + "tags": "house, building, destination", + "group": "miscellaneous", + "content": "\\2302" + }, + { + "name": "Table", + "className": "pt-icon-th", + "tags": "index, rows, columns, agenda, list, spreadsheet", + "group": "table", + "content": "\\e667" + }, + { + "name": "Table: list", + "className": "pt-icon-th-list", + "tags": "index, rows, list, order, series", + "group": "table", + "content": "\\e668" + }, + { + "name": "Table: derived", + "className": "pt-icon-th-derived", + "tags": "get, obtain, take, acquire, index, rows, columns, list", + "group": "table", + "content": "\\e669" + }, + { + "name": "Radial", + "className": "pt-icon-circle", + "tags": "circle, empty, area, radius, selection", + "group": "action", + "content": "\\e66a" + }, + { + "name": "Draw", + "className": "pt-icon-draw", + "tags": "selection, area, highlight, sketch", + "group": "action", + "content": "\\e66b" + }, + { + "name": "Insert", + "className": "pt-icon-insert", + "tags": "square, plus, add, embed, include, inject", + "group": "action", + "content": "\\e66c" + }, + { + "name": "Helper management", + "className": "pt-icon-helper-management", + "tags": "square, widget", + "group": "interface", + "content": "\\e66d" + }, + { + "name": "Send to", + "className": "pt-icon-send-to", + "tags": "circle, export, arrow", + "group": "action", + "content": "\\e66e" + }, + { + "name": "Eye", + "className": "pt-icon-eye-open", + "tags": "show, visible, clear, view, vision", + "group": "interface", + "content": "\\e66f" + }, + { + "name": "Folder: shared open", + "className": "pt-icon-folder-shared-open", + "tags": "file, portfolio, case", + "group": "file", + "content": "\\e670" + }, + { + "name": "Social media", + "className": "pt-icon-social-media", + "tags": "circle, rotate, share", + "group": "action", + "content": "\\e671" + }, + { + "name": "Arrow: up", + "className": "pt-icon-arrow-up", + "tags": "direction, north", + "group": "interface", + "content": "\\2191 " + }, + { + "name": "Arrow: down", + "className": "pt-icon-arrow-down", + "tags": "direction, south", + "group": "interface", + "content": "\\2193 " + }, + { + "name": "Arrows: horizontal", + "className": "pt-icon-arrows-horizontal", + "tags": "direction, level", + "group": "interface", + "content": "\\2194 " + }, + { + "name": "Arrows: vertical", + "className": "pt-icon-arrows-vertical", + "tags": "direction, level", + "group": "interface", + "content": "\\2195 " + }, + { + "name": "Resolve", + "className": "pt-icon-resolve", + "tags": "circles, divide, split", + "group": "action", + "content": "\\e672" + }, + { + "name": "Graph", + "className": "pt-icon-graph", + "tags": "graph, diagram", + "group": "data", + "content": "\\e673" + }, + { + "name": "Briefcase", + "className": "pt-icon-briefcase", + "tags": "suitcase, business, case, baggage,", + "group": "miscellaneous", + "content": "\\e674" + }, + { + "name": "Dollar", + "className": "pt-icon-dollar", + "tags": "currency, money", + "group": "miscellaneous", + "content": "\\0024" + }, + { + "name": "Ninja", + "className": "pt-icon-ninja", + "tags": "star, fighter, symbol", + "group": "miscellaneous", + "content": "\\e675" + }, + { + "name": "Delta", + "className": "pt-icon-delta", + "tags": "alt j, symbol", + "group": "miscellaneous", + "content": "\\0394" + }, + { + "name": "Barcode", + "className": "pt-icon-barcode", + "tags": "product, scan,", + "group": "miscellaneous", + "content": "\\e676" + }, + { + "name": "Torch", + "className": "pt-icon-torch", + "tags": "light, flashlight, tool", + "group": "miscellaneous", + "content": "\\e677" + }, + { + "name": "Widget", + "className": "pt-icon-widget", + "tags": "square, corners", + "group": "interface", + "content": "\\e678" + }, + { + "name": "Unresolve", + "className": "pt-icon-unresolve", + "tags": "split, divide, disconnect, separate", + "group": "action", + "content": "\\e679" + }, + { + "name": "Offline", + "className": "pt-icon-offline", + "tags": "circle, lightning, disconnected, down", + "group": "interface", + "content": "\\e67a" + }, + { + "name": "Zoom to fit", + "className": "pt-icon-zoom-to-fit", + "tags": "fit, scale, resize, adjust", + "group": "action", + "content": "\\e67b" + }, + { + "name": "Add to artifact", + "className": "pt-icon-add-to-artifact", + "tags": "list, plus", + "group": "action", + "content": "\\e67c" + }, + { + "name": "Map marker", + "className": "pt-icon-map-marker", + "tags": "pin, map, location, position, geography, world", + "group": "interface", + "content": "\\e67d" + }, + { + "name": "Chart", + "className": "pt-icon-chart", + "tags": "arrow, increase, up, line, bar, graph", + "group": "data", + "content": "\\e67e" + }, + { + "name": "Control", + "className": "pt-icon-control", + "tags": "squares, layout", + "group": "interface", + "content": "\\e67f" + }, + { + "name": "Multi select", + "className": "pt-icon-multi-select", + "tags": "layers, selection", + "group": "interface", + "content": "\\e680" + }, + { + "name": "Direction: left", + "className": "pt-icon-direction-left", + "tags": "pointer, west", + "group": "interface", + "content": "\\e681" + }, + { + "name": "Direction: right", + "className": "pt-icon-direction-right", + "tags": "pointer, east", + "group": "interface", + "content": "\\e682" + }, + { + "name": "Database", + "className": "pt-icon-database", + "tags": "stack, storage", + "group": "data", + "content": "\\e683" + }, + { + "name": "Pie chart", + "className": "pt-icon-pie-chart", + "tags": "circle, part, section", + "group": "data", + "content": "\\e684" + }, + { + "name": "Full circle", + "className": "pt-icon-full-circle", + "tags": "dot, point", + "group": "miscellaneous", + "content": "\\e685" + }, + { + "name": "Square", + "className": "pt-icon-square", + "tags": "empty, outline", + "group": "miscellaneous", + "content": "\\e686" + }, + { + "name": "Print", + "className": "pt-icon-print", + "tags": "printer, paper", + "group": "action", + "content": "\\2399" + }, + { + "name": "Presentation", + "className": "pt-icon-presentation", + "tags": "display, presentation", + "group": "interface", + "content": "\\e687" + }, + { + "name": "Ungroup objects", + "className": "pt-icon-ungroup-objects", + "tags": "split, divide, disconnect, separate", + "group": "action", + "content": "\\e688" + }, + { + "name": "Chat", + "className": "pt-icon-chat", + "tags": "speech, conversation, communication, talk", + "group": "action", + "content": "\\e689" + }, + { + "name": "Comment", + "className": "pt-icon-comment", + "tags": "statement, discussion, opinion, view", + "group": "action", + "content": "\\e68a" + }, + { + "name": "Circle arrow: right", + "className": "pt-icon-circle-arrow-right", + "tags": "direction, east", + "group": "interface", + "content": "\\e68b" + }, + { + "name": "Circle arrow: left", + "className": "pt-icon-circle-arrow-left", + "tags": "direction, west", + "group": "interface", + "content": "\\e68c" + }, + { + "name": "Circle arrow: up", + "className": "pt-icon-circle-arrow-up", + "tags": "direction, north", + "group": "interface", + "content": "\\e68d" + }, + { + "name": "Circle arrow: down", + "className": "pt-icon-circle-arrow-down", + "tags": "direction, south", + "group": "interface", + "content": "\\e68e" + }, + { + "name": "Upload", + "className": "pt-icon-upload", + "tags": "arrow, circle, up, transfer", + "group": "action", + "content": "\\e68f" + }, + { + "name": "Asterisk", + "className": "pt-icon-asterisk", + "tags": "note, symbol, starred, marked", + "group": "miscellaneous", + "content": "\\002a" + }, + { + "name": "Cloud", + "className": "pt-icon-cloud", + "tags": "file, storage, weather", + "group": "file", + "content": "\\2601" + }, + { + "name": "Cloud: download", + "className": "pt-icon-cloud-download", + "tags": "file, storage, transfer", + "group": "file", + "content": "\\e690" + }, + { + "name": "Cloud: upload", + "className": "pt-icon-cloud-upload", + "tags": "file, storage, transfer", + "group": "file", + "content": "\\e691" + }, + { + "name": "Repeat", + "className": "pt-icon-repeat", + "tags": "circle, arrow", + "group": "action", + "content": "\\e692" + }, + { + "name": "Move", + "className": "pt-icon-move", + "tags": "arrows, directions, position, location", + "group": "action", + "content": "\\e693" + }, + { + "name": "Chevron: left", + "className": "pt-icon-chevron-left", + "tags": "arrow, direction", + "group": "interface", + "content": "\\e694" + }, + { + "name": "Chevron: right", + "className": "pt-icon-chevron-right", + "tags": "arrow, direction", + "group": "interface", + "content": "\\e695" + }, + { + "name": "Chevron: up", + "className": "pt-icon-chevron-up", + "tags": "arrow, direction", + "group": "interface", + "content": "\\e696" + }, + { + "name": "Chevron: down", + "className": "pt-icon-chevron-down", + "tags": "arrow, direction", + "group": "interface", + "content": "\\e697" + }, + { + "name": "Random", + "className": "pt-icon-random", + "tags": "arrows, aim", + "group": "interface", + "content": "\\e698" + }, + { + "name": "Fullscreen", + "className": "pt-icon-fullscreen", + "tags": "size, arrows, increase, proportion, width, height", + "group": "media", + "content": "\\e699" + }, + { + "name": "Login", + "className": "pt-icon-log-in", + "tags": "arrow, sign in", + "group": "action", + "content": "\\e69a" + }, + { + "name": "Heart", + "className": "pt-icon-heart", + "tags": "love, like, organ, human, feelings", + "group": "miscellaneous", + "content": "\\2665" + }, + { + "name": "Office", + "className": "pt-icon-office", + "tags": "building, business, location, street", + "group": "miscellaneous", + "content": "\\e69b" + }, + { + "name": "Duplicate", + "className": "pt-icon-duplicate", + "tags": "copy, square, two", + "group": "action", + "content": "\\e69c" + }, + { + "name": "Ban circle", + "className": "pt-icon-ban-circle", + "tags": "circle, refusal", + "group": "action", + "content": "\\e69d" + }, + { + "name": "Camera", + "className": "pt-icon-camera", + "tags": "photograph, picture, video", + "group": "media", + "content": "\\e69e" + }, + { + "name": "Mobile video", + "className": "pt-icon-mobile-video", + "tags": "film, broadcast, television", + "group": "media", + "content": "\\e69f" + }, + { + "name": "Video", + "className": "pt-icon-video", + "tags": "film, broadcast, television", + "group": "media", + "content": "\\e6a0" + }, + { + "name": "Film", + "className": "pt-icon-film", + "tags": "movie, cinema, theatre", + "group": "media", + "content": "\\e6a1" + }, + { + "name": "Settings", + "className": "pt-icon-settings", + "tags": "controls, knobs", + "group": "media", + "content": "\\e6a2" + }, + { + "name": "Volume: off", + "className": "pt-icon-volume-off", + "tags": "audio, video, speaker, music, sound, low", + "group": "media", + "content": "\\e6a3" + }, + { + "name": "Volume: down", + "className": "pt-icon-volume-down", + "tags": "audio, video, speaker, music, sound", + "group": "media", + "content": "\\e6a4" + }, + { + "name": "Volume: up", + "className": "pt-icon-volume-up", + "tags": "audio, video, speaker, music, sound, high", + "group": "media", + "content": "\\e6a5" + }, + { + "name": "Music", + "className": "pt-icon-music", + "tags": "audio, video, note, sound", + "group": "media", + "content": "\\e6a6" + }, + { + "name": "Step backward", + "className": "pt-icon-step-backward", + "tags": "player, media, controls, digital, analogue, film, audio, video", + "group": "media", + "content": "\\e6a7" + }, + { + "name": "Fast backward", + "className": "pt-icon-fast-backward", + "tags": "player, media, controls, digital, analogue, film, audio, video", + "group": "media", + "content": "\\e6a8" + }, + { + "name": "Pause", + "className": "pt-icon-pause", + "tags": "player, media, controls, digital, analogue, film, audio, video", + "group": "media", + "content": "\\e6a9" + }, + { + "name": "Stop", + "className": "pt-icon-stop", + "tags": "player, media, controls, digital, analogue, film, audio, video", + "group": "media", + "content": "\\e6aa" + }, + { + "name": "Play", + "className": "pt-icon-play", + "tags": "player, media, controls, digital, analogue, film, audio, video", + "group": "media", + "content": "\\e6ab" + }, + { + "name": "Fast forward", + "className": "pt-icon-fast-forward", + "tags": "player, media, controls, digital, analogue, film, audio, video", + "group": "media", + "content": "\\e6ac" + }, + { + "name": "Step forward", + "className": "pt-icon-step-forward", + "tags": "player, media, controls, digital, analogue, film, audio, video", + "group": "media", + "content": "\\e6ad" + }, + { + "name": "Eject", + "className": "pt-icon-eject", + "tags": "player, media, controls, digital, analogue, film, audio, video", + "group": "media", + "content": "\\23cf" + }, + { + "name": "Record", + "className": "pt-icon-record", + "tags": "player, media, controls, digital, analogue, film, audio, video", + "group": "media", + "content": "\\e6ae" + }, + { + "name": "Desktop", + "className": "pt-icon-desktop", + "tags": "screen, monitor, display", + "group": "media", + "content": "\\e6af" + }, + { + "name": "Phone", + "className": "pt-icon-phone", + "tags": "telephone, call, ring", + "group": "media", + "content": "\\260e" + }, + { + "name": "Lightbulb", + "className": "pt-icon-lightbulb", + "tags": "idea, glow, lamp", + "group": "miscellaneous", + "content": "\\e6b0" + }, + { + "name": "Glass", + "className": "pt-icon-glass", + "tags": "glassware, drink", + "group": "miscellaneous", + "content": "\\e6b1" + }, + { + "name": "Tint", + "className": "pt-icon-tint", + "tags": "drop, color, coloration, hue", + "group": "media", + "content": "\\e6b2" + }, + { + "name": "Flash", + "className": "pt-icon-flash", + "tags": "light, contrast, photograph, picture", + "group": "media", + "content": "\\e6b3" + }, + { + "name": "Font", + "className": "pt-icon-font", + "tags": "scale, typography, size", + "group": "editor", + "content": "\\e6b4" + }, + { + "name": "Header", + "className": "pt-icon-header", + "tags": "typography, section, layout", + "group": "editor", + "content": "\\e6b5" + }, + { + "name": "Saved", + "className": "pt-icon-saved", + "tags": "document, check mark, tick", + "group": "file", + "content": "\\e6b6" + }, + { + "name": "Floppy disk", + "className": "pt-icon-floppy-disk", + "tags": "save", + "group": "interface", + "content": "\\e6b7" + }, + { + "name": "Book", + "className": "pt-icon-book", + "tags": "pages, album, brochure, manual", + "group": "miscellaneous", + "content": "\\e6b8" + }, + { + "name": "Hand: right", + "className": "pt-icon-hand-right", + "tags": "gesture, direction", + "group": "interface", + "content": "\\e6b9" + }, + { + "name": "Hand: up", + "className": "pt-icon-hand-up", + "tags": "gesture, direction", + "group": "interface", + "content": "\\e6ba" + }, + { + "name": "Hand: down", + "className": "pt-icon-hand-down", + "tags": "gesture, direction", + "group": "interface", + "content": "\\e6bb" + }, + { + "name": "Hand: left", + "className": "pt-icon-hand-left", + "tags": "gesture, direction", + "group": "interface", + "content": "\\e6bc" + }, + { + "name": "Thumbs: up", + "className": "pt-icon-thumbs-up", + "tags": "hand, like, ok", + "group": "interface", + "content": "\\e6bd" + }, + { + "name": "Thumbs: down", + "className": "pt-icon-thumbs-down", + "tags": "hand, dislike, bad", + "group": "interface", + "content": "\\e6be" + }, + { + "name": "Box", + "className": "pt-icon-box", + "tags": "folder, carton, pack", + "group": "file", + "content": "\\e6bf" + }, + { + "name": "Compressed", + "className": "pt-icon-compressed", + "tags": "folder, carton, pack, shrink, wrap, shorten", + "group": "file", + "content": "\\e6c0" + }, + { + "name": "Shopping cart", + "className": "pt-icon-shopping-cart", + "tags": "trolley, mall, online, store, business", + "group": "miscellaneous", + "content": "\\e6c1" + }, + { + "name": "Shop", + "className": "pt-icon-shop", + "tags": "store, business, shopping", + "group": "miscellaneous", + "content": "\\e6c2" + }, + { + "name": "Layout: linear", + "className": "pt-icon-layout-linear", + "tags": "dots, connection, line", + "group": "data", + "content": "\\e6c3" + }, + { + "name": "Undo", + "className": "pt-icon-undo", + "tags": "back, cancel, reverse, revoke,", + "group": "action", + "content": "\\238c" + }, + { + "name": "Redo", + "className": "pt-icon-redo", + "tags": "forward, push", + "group": "action", + "content": "\\e6c4" + }, + { + "name": "Code block", + "className": "pt-icon-code-block", + "tags": "code, markup, language, tag", + "group": "file", + "content": "\\e6c5" + }, + { + "name": "Double caret: vertical", + "className": "pt-icon-double-caret-vertical", + "tags": "sort, arrow, list", + "group": "interface", + "content": "\\e6c6" + }, + { + "name": "Double caret: horizontal", + "className": "pt-icon-double-caret-horizontal", + "tags": "sort, arrow, list", + "group": "interface", + "content": "\\e6c7" + }, + { + "name": "Sort: alphabetical descending", + "className": "pt-icon-sort-alphabetical-desc", + "tags": "order, list, array, arrange", + "group": "action", + "content": "\\e6c8" + }, + { + "name": "Sort: numerical descending", + "className": "pt-icon-sort-numerical-desc", + "tags": "order, list, array, arrange", + "group": "action", + "content": "\\e6c9" + }, + { + "name": "Take action", + "className": "pt-icon-take-action", + "tags": "case, court, deal, gavel", + "group": "action", + "content": "\\e6ca" + }, + { + "name": "Contrast", + "className": "pt-icon-contrast", + "tags": "color, brightness", + "group": "media", + "content": "\\e6cb" + }, + { + "name": "Eye: off", + "className": "pt-icon-eye-off", + "tags": "visibility, hide", + "group": "interface", + "content": "\\e6cc" + }, + { + "name": "Area chart", + "className": "pt-icon-timeline-area-chart", + "tags": "graph, line, diagram", + "group": "data", + "content": "\\e6cd" + }, + { + "name": "Doughnut chart", + "className": "pt-icon-doughnut-chart", + "tags": "circle, section, part, graph", + "group": "data", + "content": "\\e6ce" + }, + { + "name": "Layer", + "className": "pt-icon-layer", + "tags": "zone, level", + "group": "interface", + "content": "\\e6cf" + }, + { + "name": "Grid", + "className": "pt-icon-grid", + "tags": "layout, arrangement", + "group": "data", + "content": "\\e6d0" + }, + { + "name": "Polygon filter", + "className": "pt-icon-polygon-filter", + "tags": "shape, form", + "group": "data", + "content": "\\e6d1" + }, + { + "name": "Add to folder", + "className": "pt-icon-add-to-folder", + "tags": "file, portfolio, case, import", + "group": "file", + "content": "\\e6d2" + }, + { + "name": "Layout: balloon", + "className": "pt-icon-layout-balloon", + "tags": "layout, presentation, arrangement, graph", + "group": "data", + "content": "\\e6d3" + }, + { + "name": "Layout: sorted clusters", + "className": "pt-icon-layout-sorted-clusters", + "tags": "layout, presentation, arrangement, graph", + "group": "data", + "content": "\\e6d4" + }, + { + "name": "Sort: ascending", + "className": "pt-icon-sort-asc", + "tags": "order, list, array, arrange", + "group": "action", + "content": "\\e6d5" + }, + { + "name": "Sort: descending", + "className": "pt-icon-sort-desc", + "tags": "order, list, array, arrange", + "group": "action", + "content": "\\e6d6" + }, + { + "name": "Small cross", + "className": "pt-icon-small-cross", + "tags": "cross mark, fail, delete, no, close, remove", + "group": "action", + "content": "\\e6d7" + }, + { + "name": "Small tick", + "className": "pt-icon-small-tick", + "tags": "mark, sign, ok, approved, success", + "group": "action", + "content": "\\e6d8" + }, + { + "name": "Power", + "className": "pt-icon-power", + "tags": "button, on, off", + "group": "media", + "content": "\\e6d9" + }, + { + "name": "Column layout", + "className": "pt-icon-column-layout", + "tags": "layout, arrangement", + "group": "table", + "content": "\\e6da" + }, + { + "name": "Arrow: top left", + "className": "pt-icon-arrow-top-left", + "tags": "direction, north west", + "group": "interface", + "content": "\\2196" + }, + { + "name": "Arrow: top right", + "className": "pt-icon-arrow-top-right", + "tags": "direction, north east", + "group": "interface", + "content": "\\2197" + }, + { + "name": "Arrow: bottom right", + "className": "pt-icon-arrow-bottom-right", + "tags": "direction, south east", + "group": "interface", + "content": "\\2198" + }, + { + "name": "Arrow: bottom left", + "className": "pt-icon-arrow-bottom-left", + "tags": "direction, south west", + "group": "interface", + "content": "\\2199" + }, + { + "name": "Mugshot", + "className": "pt-icon-mugshot", + "tags": "person, photograph, picture,", + "group": "interface", + "content": "\\e6db" + }, + { + "name": "Headset", + "className": "pt-icon-headset", + "tags": "headphones, call, communication", + "group": "media", + "content": "\\e6dc" + }, + { + "name": "Text highlight", + "className": "pt-icon-text-highlight", + "tags": "selector, content", + "group": "editor", + "content": "\\e6dd" + }, + { + "name": "Hand", + "className": "pt-icon-hand", + "tags": "gesture, fingers", + "group": "interface", + "content": "\\e6de" + }, + { + "name": "Chevron: backward", + "className": "pt-icon-chevron-backward", + "tags": "skip, direction", + "group": "interface", + "content": "\\e6df" + }, + { + "name": "Chevron: forward", + "className": "pt-icon-chevron-forward", + "tags": "skip, direction", + "group": "interface", + "content": "\\e6e0" + }, + { + "name": "Rotate: document", + "className": "pt-icon-rotate-document", + "tags": "turn, anti clockwise", + "group": "editor", + "content": "\\e6e1" + }, + { + "name": "Rotate: page", + "className": "pt-icon-rotate-page", + "tags": "turn, anti clockwise", + "group": "editor", + "content": "\\e6e2" + }, + { + "name": "Badge", + "className": "pt-icon-badge", + "tags": "emblem, symbol, identification, insignia, marker", + "group": "miscellaneous", + "content": "\\e6e3" + }, + { + "name": "Grid view", + "className": "pt-icon-grid-view", + "tags": "layout, arrangement", + "group": "editor", + "content": "\\e6e4" + }, + { + "name": "Function", + "className": "pt-icon-function", + "tags": "math, calculation", + "group": "table", + "content": "\\e6e5" + }, + { + "name": "Waterfall chart", + "className": "pt-icon-waterfall-chart", + "tags": "graph, diagram", + "group": "data", + "content": "\\e6e6" + }, + { + "name": "Stacked chart", + "className": "pt-icon-stacked-chart", + "tags": "bar chart", + "group": "data", + "content": "\\e6e7" + }, + { + "name": "Pulse", + "className": "pt-icon-pulse", + "tags": "medical, life, heartbeat, hospital", + "group": "miscellaneous", + "content": "\\e6e8" + }, + { + "name": "New person", + "className": "pt-icon-new-person", + "tags": "person, human, male, female, character, customer, individual, add", + "group": "interface", + "content": "\\e6e9" + }, + { + "name": "Exclude row", + "className": "pt-icon-exclude-row", + "tags": "delete, remove, table", + "group": "table", + "content": "\\e6ea" + }, + { + "name": "Pivot table", + "className": "pt-icon-pivot-table", + "tags": "rotate, axis", + "group": "table", + "content": "\\e6eb" + }, + { + "name": "Segmented control", + "className": "pt-icon-segmented-control", + "tags": "button, switch, option", + "group": "interface", + "content": "\\e6ec" + }, + { + "name": "Highlight", + "className": "pt-icon-highlight", + "tags": "select, text", + "group": "action", + "content": "\\e6ed" + }, + { + "name": "Filter: list", + "className": "pt-icon-filter-list", + "tags": "filtering, funnel, tube, pipe", + "group": "action", + "content": "\\e6ee" + }, + { + "name": "Cut", + "className": "pt-icon-cut", + "tags": "scissors", + "group": "action", + "content": "\\e6ef" + }, + { + "name": "Annotation", + "className": "pt-icon-annotation", + "tags": "note, comment, edit,", + "group": "editor", + "content": "\\e6f0" + }, + { + "name": "Pivot", + "className": "pt-icon-pivot", + "tags": "rotate, axis", + "group": "action", + "content": "\\e6f1" + }, + { + "name": "Ring", + "className": "pt-icon-ring", + "tags": "empty, circle, selection", + "group": "miscellaneous", + "content": "\\e6f2" + }, + { + "name": "Heat grid", + "className": "pt-icon-heat-grid", + "tags": "chart", + "group": "data", + "content": "\\e6f3" + }, + { + "name": "Gantt chart", + "className": "pt-icon-gantt-chart", + "tags": "bar chart, schedule, project", + "group": "data", + "content": "\\e6f4" + }, + { + "name": "Variable", + "className": "pt-icon-variable", + "tags": "math, calculation", + "group": "table", + "content": "\\e6f5" + }, + { + "name": "Manual", + "className": "pt-icon-manual", + "tags": "guide, instruction", + "group": "interface", + "content": "\\e6f6" + }, + { + "name": "Add row: top", + "className": "pt-icon-add-row-top", + "tags": "table, attach, join", + "group": "table", + "content": "\\e6f7" + }, + { + "name": "Add row: bottom", + "className": "pt-icon-add-row-bottom", + "tags": "table, attach, join", + "group": "table", + "content": "\\e6f8" + }, + { + "name": "Add column: left", + "className": "pt-icon-add-column-left", + "tags": "table, attach, join", + "group": "table", + "content": "\\e6f9" + }, + { + "name": "Add column: right", + "className": "pt-icon-add-column-right", + "tags": "table, attach, join", + "group": "table", + "content": "\\e6fa" + }, + { + "name": "Remove row: top", + "className": "pt-icon-remove-row-top", + "tags": "table, detach, delete", + "group": "table", + "content": "\\e6fb" + }, + { + "name": "Remove row: bottom", + "className": "pt-icon-remove-row-bottom", + "tags": "table, detach, delete", + "group": "table", + "content": "\\e6fc" + }, + { + "name": "Remove column: left", + "className": "pt-icon-remove-column-left", + "tags": "table, detach, delete", + "group": "table", + "content": "\\e6fd" + }, + { + "name": "Remove column: right", + "className": "pt-icon-remove-column-right", + "tags": "table, detach, delete", + "group": "table", + "content": "\\e6fe" + }, + { + "name": "Double chevron: left", + "className": "pt-icon-double-chevron-left", + "tags": "arrows, multiple, direction", + "group": "interface", + "content": "\\e6ff" + }, + { + "name": "Double chevron: right", + "className": "pt-icon-double-chevron-right", + "tags": "arrows, multiple, direction", + "group": "interface", + "content": "\\e701" + }, + { + "name": "Double chevron: up", + "className": "pt-icon-double-chevron-up", + "tags": "arrows, multiple, direction", + "group": "interface", + "content": "\\e702" + }, + { + "name": "Double chevron: down", + "className": "pt-icon-double-chevron-down", + "tags": "arrows, multiple, direction", + "group": "interface", + "content": "\\e703" + }, + { + "name": "Key: control", + "className": "pt-icon-key-control", + "tags": "interface, shortcuts, buttons", + "group": "media", + "content": "\\e704" + }, + { + "name": "Key: command", + "className": "pt-icon-key-command", + "tags": "interface, shortcuts, buttons", + "group": "media", + "content": "\\e705" + }, + { + "name": "Key: shift", + "className": "pt-icon-key-shift", + "tags": "interface, shortcuts, buttons", + "group": "media", + "content": "\\e706" + }, + { + "name": "Key: backspace", + "className": "pt-icon-key-backspace", + "tags": "interface, shortcuts, buttons", + "group": "media", + "content": "\\e707" + }, + { + "name": "Key: delete", + "className": "pt-icon-key-delete", + "tags": "interface, shortcuts, buttons", + "group": "media", + "content": "\\e708" + }, + { + "name": "Key: escape", + "className": "pt-icon-key-escape", + "tags": "interface, shortcuts, buttons", + "group": "media", + "content": "\\e709" + }, + { + "name": "Key: enter", + "className": "pt-icon-key-enter", + "tags": "interface, shortcuts, buttons", + "group": "media", + "content": "\\e70a" + }, + { + "name": "Calculator", + "className": "pt-icon-calculator", + "tags": "math, device, value, numbers, total", + "group": "miscellaneous", + "content": "\\e70b" + }, + { + "name": "Horizontal bar chart", + "className": "pt-icon-horizontal-bar-chart", + "tags": "graph, diagram", + "group": "data", + "content": "\\e70c" + }, + { + "name": "Small plus", + "className": "pt-icon-small-plus", + "tags": "sign, add, maximize, zoom in", + "group": "action", + "content": "\\e70d" + }, + { + "name": "Small minus", + "className": "pt-icon-small-minus", + "tags": "sign, remove, minimize, zoom out", + "group": "action", + "content": "\\e70e" + }, + { + "name": "Step chart", + "className": "pt-icon-step-chart", + "tags": "graph, diagram", + "group": "data", + "content": "\\e70f" + }, + { + "name": "Euro", + "className": "pt-icon-euro", + "tags": "currency, money", + "group": "miscellaneous", + "content": "\\20ac" + }, + { + "name": "Drag handle: vertical", + "className": "pt-icon-drag-handle-vertical", + "tags": "move, pull", + "group": "action", + "content": "\\e715" + }, + { + "name": "Drag handle: horizontal", + "className": "pt-icon-drag-handle-horizontal", + "tags": "move, pull", + "group": "action", + "content": "\\e716" + }, + { + "name": "Mobile phone", + "className": "pt-icon-mobile-phone", + "tags": "cellular, device, call", + "group": "media", + "content": "\\e717" + }, + { + "name": "Sim card", + "className": "pt-icon-sim-card", + "tags": "phone, cellular", + "group": "media", + "content": "\\e718" + }, + { + "name": "Trending: up", + "className": "pt-icon-trending-up", + "tags": "growth, incline, progress", + "group": "data", + "content": "\\e719" + }, + { + "name": "Trending: down", + "className": "pt-icon-trending-down", + "tags": "decrease, decline, loss", + "group": "data", + "content": "\\e71a" + }, + { + "name": "Curved range chart", + "className": "pt-icon-curved-range-chart", + "tags": "graph, diagram", + "group": "data", + "content": "\\e71b" + }, + { + "name": "Vertical bar chart: descending", + "className": "pt-icon-vertical-bar-chart-desc", + "tags": "graph, bar, histogram", + "group": "data", + "content": "\\e71c" + }, + { + "name": "Horizontal bar chart: descending", + "className": "pt-icon-horizontal-bar-chart-desc", + "tags": "graph, bar, histogram", + "group": "data", + "content": "\\e71d" + }, + { + "name": "Document: open", + "className": "pt-icon-document-open", + "tags": "paper, access", + "group": "file", + "content": "\\e71e" + }, + { + "name": "Document: share", + "className": "pt-icon-document-share", + "tags": "paper, send", + "group": "file", + "content": "\\e71f" + }, + { + "name": "Distribution: horizontal", + "className": "pt-icon-horizontal-distribution", + "tags": "alignment, layout, position", + "group": "editor", + "content": "\\e720" + }, + { + "name": "Distribution: vertical", + "className": "pt-icon-vertical-distribution", + "tags": "alignment, layout, position", + "group": "editor", + "content": "\\e721" + }, + { + "name": "Alignment: left", + "className": "pt-icon-alignment-left", + "tags": "layout, position", + "group": "editor", + "content": "\\e722" + }, + { + "name": "Alignment: vertical center", + "className": "pt-icon-alignment-vertical-center", + "tags": "layout, position", + "group": "editor", + "content": "\\e723" + }, + { + "name": "Alignment: right", + "className": "pt-icon-alignment-right", + "tags": "layout, position", + "group": "editor", + "content": "\\e724" + }, + { + "name": "Alignment: top", + "className": "pt-icon-alignment-top", + "tags": "layout, position", + "group": "editor", + "content": "\\e725" + }, + { + "name": "Alignment: horizontal center", + "className": "pt-icon-alignment-horizontal-center", + "tags": "layout, position", + "group": "editor", + "content": "\\e726" + }, + { + "name": "Alignment: bottom", + "className": "pt-icon-alignment-bottom", + "tags": "layout, position", + "group": "editor", + "content": "\\e727" + }, + { + "name": "Git: pull", + "className": "pt-icon-git-pull", + "tags": "github, repository, code, command", + "group": "action", + "content": "\\e728" + }, + { + "name": "Git: merge", + "className": "pt-icon-git-merge", + "tags": "github, repository, code, command", + "group": "action", + "content": "\\e729" + }, + { + "name": "Git: branch", + "className": "pt-icon-git-branch", + "tags": "github, repository, code, command", + "group": "action", + "content": "\\e72a" + }, + { + "name": "Git: commit", + "className": "pt-icon-git-commit", + "tags": "github, repository, code, command", + "group": "action", + "content": "\\e72b" + }, + { + "name": "Git: push", + "className": "pt-icon-git-push", + "tags": "github, repository, code, command", + "group": "action", + "content": "\\e72c" + }, + { + "name": "Build", + "className": "pt-icon-build", + "tags": "hammer, tool", + "group": "action", + "content": "\\e72d" + }, + { + "name": "Symbol: circle", + "className": "pt-icon-symbol-circle", + "tags": "shape, figure", + "group": "interface", + "content": "\\e72e" + }, + { + "name": "Symbol: square", + "className": "pt-icon-symbol-square", + "tags": "shape, figure", + "group": "interface", + "content": "\\e72f" + }, + { + "name": "Symbol: diamond", + "className": "pt-icon-symbol-diamond", + "tags": "shape, figure", + "group": "interface", + "content": "\\e730" + }, + { + "name": "Symbol: cross", + "className": "pt-icon-symbol-cross", + "tags": "shape, figure", + "group": "interface", + "content": "\\e731" + }, + { + "name": "Symbol: triangle up", + "className": "pt-icon-symbol-triangle-up", + "tags": "shape, figure", + "group": "interface", + "content": "\\e732" + }, + { + "name": "Symbol: triangle down", + "className": "pt-icon-symbol-triangle-down", + "tags": "shape, figure", + "group": "interface", + "content": "\\e733" + }, + { + "name": "Wrench", + "className": "pt-icon-wrench", + "tags": "tool, repair", + "group": "miscellaneous", + "content": "\\e734" + }, + { + "name": "Application", + "className": "pt-icon-application", + "tags": "application, browser, windows, platform", + "group": "interface", + "content": "\\e735" + }, + { + "name": "Send to graph", + "className": "pt-icon-send-to-graph", + "tags": "transfer, move", + "group": "action", + "content": "\\e736" + }, + { + "name": "Send to map", + "className": "pt-icon-send-to-map", + "tags": "transfer, move", + "group": "action", + "content": "\\e737" + }, + { + "name": "Join table", + "className": "pt-icon-join-table", + "tags": "combine, attach, connect, link, unite", + "group": "table", + "content": "\\e738" + }, + { + "name": "Derive column", + "className": "pt-icon-derive-column", + "tags": "table, obtain, get, take, develop", + "group": "action", + "content": "\\e739" + }, + { + "name": "Rotate image: left", + "className": "pt-icon-image-rotate-left", + "tags": "picture, turn, alternate", + "group": "media", + "content": "\\e73a" + }, + { + "name": "Rotate image: right", + "className": "pt-icon-image-rotate-right", + "tags": "picture, turn, alternate", + "group": "media", + "content": "\\e73b" + }, + { + "name": "Known vehicle", + "className": "pt-icon-known-vehicle", + "tags": "car, automobile, vehicle, van, drive, ride, distance, navigation, directions", + "group": "interface", + "content": "\\e73c" + }, + { + "name": "Unknown vehicle", + "className": "pt-icon-unknown-vehicle", + "tags": "car, automobile, vehicle, van, drive, ride, distance, navigation, directions", + "group": "interface", + "content": "\\e73d" + }, + { + "name": "Scatter plot", + "className": "pt-icon-scatter-plot", + "tags": "graph, diagram", + "group": "data", + "content": "\\e73e" + }, + { + "name": "Oil field", + "className": "pt-icon-oil-field", + "tags": "fuel, petroleum, gas, well, drilling, pump", + "group": "interface", + "content": "\\e73f" + }, + { + "name": "Rig", + "className": "pt-icon-rig", + "tags": "fuel, petroleum, gas, well, drilling", + "group": "interface", + "content": "\\e740" + }, + { + "name": "New map", + "className": "pt-icon-map-create", + "tags": "map, location, position, geography, world", + "group": "interface", + "content": "\\e741" + }, + { + "name": "Key: option", + "className": "pt-icon-key-option", + "tags": "interface, shortcuts, buttons", + "group": "media", + "content": "\\e742" + }, + { + "name": "List: detail view", + "className": "pt-icon-list-detail-view", + "tags": "agenda, four lines, table", + "group": "table", + "content": "\\e743" + }, + { + "name": "Swap: vertical", + "className": "pt-icon-swap-vertical", + "tags": "direction, position, opposite, inverse", + "group": "interface", + "content": "\\e744" + }, + { + "name": "Swap: horizontal", + "className": "pt-icon-swap-horizontal", + "tags": "direction, position, opposite, inverse", + "group": "interface", + "content": "\\e745" + }, + { + "name": "Numbered list", + "className": "pt-icon-numbered-list", + "tags": "order, list, array, arrange", + "group": "action", + "content": "\\e746" + }, + { + "name": "New grid item", + "className": "pt-icon-new-grid-item", + "tags": "layout, arrangement, add", + "group": "editor", + "content": "\\e747" + }, + { + "name": "Git: repo", + "className": "pt-icon-git-repo", + "tags": "github, repository, code, command", + "group": "action", + "content": "\\e748" + }, + { + "name": "Git: new branch", + "className": "pt-icon-git-new-branch", + "tags": "github, repository, code, command", + "group": "action", + "content": "\\e749" + }, + { + "name": "Manually entered data", + "className": "pt-icon-manually-entered-data", + "tags": "input, human", + "group": "editor", + "content": "\\e74a" + }, + { + "name": "Airplane", + "className": "pt-icon-airplane", + "tags": "flight, jet, travel, trip, transport, take-off", + "group": "interface", + "content": "\\e74b" + }, + { + "name": "Merge columns", + "className": "pt-icon-merge-columns", + "tags": "layout, change, two, combine, unite", + "group": "table", + "content": "\\e74f" + }, + { + "name": "Split columns", + "className": "pt-icon-split-columns", + "tags": "layout, change, two, break, divide", + "group": "table", + "content": "\\e750" + }, + { + "name": "Dashboard", + "className": "pt-icon-dashboard", + "tags": "panel, control, gauge, instrument, meter", + "group": "interface", + "content": "\\e751" + }, + { + "name": "Publish function", + "className": "pt-icon-publish-function", + "tags": "math, calculation, share", + "group": "table", + "content": "\\e752" + }, + { + "name": "Path", + "className": "pt-icon-path", + "tags": "hierarchy, trail, steps", + "group": "interface", + "content": "\\e753" + }, + { + "name": "Moon", + "className": "pt-icon-moon", + "tags": "night, sky, dark", + "group": "miscellaneous", + "content": "\\e754" + }, + { + "name": "Remove column", + "className": "pt-icon-remove-column", + "tags": "table, detach, delete", + "group": "table", + "content": "\\e755" + }, + { + "name": "Numerical", + "className": "pt-icon-numerical", + "tags": "numbers, order, sort, arrange, array", + "group": "action", + "content": "\\e756" + }, + { + "name": "Key: tab", + "className": "pt-icon-key-tab", + "tags": "interface, shortcuts, buttons", + "group": "media", + "content": "\\e757" + }, + { + "name": "Regression chart", + "className": "pt-icon-regression-chart", + "tags": "graph, line, chart", + "group": "data", + "content": "\\e758" + }, + { + "name": "Translate", + "className": "pt-icon-translate", + "tags": "language, convert", + "group": "action", + "content": "\\e759" + }, + { + "name": "Eye: on", + "className": "pt-icon-eye-on", + "tags": "visibility, show", + "group": "interface", + "content": "\\e75a" + }, + { + "name": "Vertical bar chart: ascending", + "className": "pt-icon-vertical-bar-chart-asc", + "tags": "graph, bar, histogram", + "group": "data", + "content": "\\e75b" + }, + { + "name": "Horizontal bar chart: ascending", + "className": "pt-icon-horizontal-bar-chart-asc", + "tags": "graph, bar, histogram", + "group": "data", + "content": "\\e75c" + }, + { + "name": "Grouped bar chart", + "className": "pt-icon-grouped-bar-chart", + "tags": "graph, bar, chart", + "group": "data", + "content": "\\e75d" + }, + { + "name": "Full stacked chart", + "className": "pt-icon-full-stacked-chart", + "tags": "graph, bar, chart", + "group": "data", + "content": "\\e75e" + }, + { + "name": "Endorsed", + "className": "pt-icon-endorsed", + "tags": "tick, mark, sign, ok, approved, success", + "group": "action", + "content": "\\e75f" + }, + { + "name": "Follower", + "className": "pt-icon-follower", + "tags": "person, human, male, female, character, customer, individual, social", + "group": "interface", + "content": "\\e760" + }, + { + "name": "Following", + "className": "pt-icon-following", + "tags": "person, human, male, female, character, customer, individual, social", + "group": "interface", + "content": "\\e761" + }, + { + "name": "Menu", + "className": "pt-icon-menu", + "tags": "navigation, lines, list", + "group": "interface", + "content": "\\e762" + }, + { + "name": "Collapse all", + "className": "pt-icon-collapse-all", + "tags": "arrows, chevron, reduce", + "group": "interface", + "content": "\\e763" + }, + { + "name": "Expand all", + "className": "pt-icon-expand-all", + "tags": "arrows, chevron, enlarge", + "group": "interface", + "content": "\\e764" + }, + { + "name": "Intersection", + "className": "pt-icon-intersection", + "tags": "circles, combine, cross", + "group": "action", + "content": "\\e765" + }, + { + "name": "Blocked person", + "className": "pt-icon-blocked-person", + "tags": "person, human, male, female, character, customer, individual, social, banned, prohibited", + "group": "interface", + "content": "\\e768" + }, + { + "name": "Slash", + "className": "pt-icon-slash", + "tags": "divide, separate", + "group": "action", + "content": "\\e769" + }, + { + "name": "Percentage", + "className": "pt-icon-percentage", + "tags": "modulo, modulus", + "group": "action", + "content": "\\e76a" + }, + { + "name": "Satellite", + "className": "pt-icon-satellite", + "tags": "communication, space", + "group": "miscellaneous", + "content": "\\e76b" + }, + { + "name": "Paragraph", + "className": "pt-icon-paragraph", + "tags": "text, chapter, division, part", + "group": "editor", + "content": "\\e76c" + }, + { + "name": "Bank account", + "className": "pt-icon-bank-account", + "tags": "money, finance, funds", + "group": "miscellaneous", + "content": "\\e76f" + }, + { + "name": "Cell tower", + "className": "pt-icon-cell-tower", + "tags": "signal, communication, radio, mast", + "group": "miscellaneous", + "content": "\\e770" + }, + { + "name": "ID number", + "className": "pt-icon-id-number", + "tags": "identification, person, document", + "group": "miscellaneous", + "content": "\\e771" + }, + { + "name": "IP address", + "className": "pt-icon-ip-address", + "tags": "internet, protocol, number, id, network", + "group": "miscellaneous", + "content": "\\e772" + }, + { + "name": "Eraser", + "className": "pt-icon-eraser", + "tags": "delete, remove", + "group": "editor", + "content": "\\e773" + }, + { + "name": "Issue", + "className": "pt-icon-issue", + "tags": "circle, notification, failure, circle, exclamation mark, sign, problem", + "group": "interface", + "content": "\\e774" + }, + { + "name": "Issue: new", + "className": "pt-icon-issue-new", + "tags": "circle, notification, failure, circle, exclamation mark, sign, problem", + "group": "interface", + "content": "\\e775" + }, + { + "name": "Issue: closed", + "className": "pt-icon-issue-closed", + "tags": "circle, notification, failure, circle, exclamation mark, sign, problem", + "group": "interface", + "content": "\\e776" + }, + { + "name": "Panel: stats", + "className": "pt-icon-panel-stats", + "tags": "sidebar, layout, list", + "group": "table", + "content": "\\e777" + }, + { + "name": "Panel: table", + "className": "pt-icon-panel-table", + "tags": "sidebar, layout, spreadsheet", + "group": "table", + "content": "\\e778" + }, + { + "name": "Tick circle", + "className": "pt-icon-tick-circle", + "tags": "mark, sign, ok, approved, success", + "group": "action", + "content": "\\e779" + }, + { + "name": "Prescription", + "className": "pt-icon-prescription", + "tags": "instruction, direction, medicine, drug, medication, mixture", + "group": "miscellaneous", + "content": "\\e78a" + }, + { + "name": "Prescription: new", + "className": "pt-icon-new-prescription", + "tags": "instruction, direction, medicine, drug, medication, mixture", + "group": "miscellaneous", + "content": "\\e78b" + }, + { + "name": "Filter: keep", + "className": "pt-icon-filter-keep", + "tags": "filtering, funnel, tube, pipe, retain, stay", + "group": "action", + "content": "\\e78c" + }, + { + "name": "Filter: remove", + "className": "pt-icon-filter-remove", + "tags": "filtering, funnel, tube, pipe, delete, detach, discard, dismiss", + "group": "action", + "content": "\\e78d" + }, + { + "name": "Key", + "className": "pt-icon-key", + "tags": "lock, unlock, open, security, password, access", + "group": "interface", + "content": "\\e78e" + }, + { + "name": "Feed: subscribed", + "className": "pt-icon-feed-subscribed", + "tags": "rss, feed, tick, check", + "group": "interface", + "content": "\\e78f" + }, + { + "name": "Widget: button", + "className": "pt-icon-widget-button", + "tags": "element, click, press", + "group": "interface", + "content": "\\e790" + }, + { + "name": "Widget: header", + "className": "pt-icon-widget-header", + "tags": "element, layout, top", + "group": "interface", + "content": "\\e791" + }, + { + "name": "Widget: footer", + "className": "pt-icon-widget-footer", + "tags": "element, layout, bottom", + "group": "interface", + "content": "\\e792" + }, + { + "name": "Header: one", + "className": "pt-icon-header-one", + "tags": "paragraph styling, formatting", + "group": "editor", + "content": "\\e793" + }, + { + "name": "Header: two", + "className": "pt-icon-header-two", + "tags": "paragraph styling, formatting", + "group": "editor", + "content": "\\e794" + } + ]; + +/***/ }), +/* 473 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(1); + var React = __webpack_require__(3); + var CoreExamples = __webpack_require__(474); + var DateExamples = __webpack_require__(509); + var LabsExamples = __webpack_require__(555); + var TableExamples = __webpack_require__(584); + var blueprintDocs_1 = __webpack_require__(298); + var SRC_HREF_BASE = "https://github.com/palantir/blueprint/blob/master/packages"; + exports.reactExamples = {}; + function addPackageExamples(packageName, packageExamples) { + var _loop_1 = function (exampleName) { + var example = packageExamples[exampleName]; + var fileName = exampleName.charAt(0).toLowerCase() + exampleName.slice(1) + ".tsx"; + exports.reactExamples[exampleName] = { + render: function (props) { return React.createElement(example, tslib_1.__assign({}, props, { themeName: blueprintDocs_1.getTheme() })); }, + sourceUrl: [SRC_HREF_BASE, packageName, "examples", fileName].join("/"), + }; + }; + for (var _i = 0, _a = Object.keys(packageExamples); _i < _a.length; _i++) { + var exampleName = _a[_i]; + _loop_1(exampleName); } - }); - - return hi; - - }))); + } + addPackageExamples("core", CoreExamples); + addPackageExamples("datetime", DateExamples); + addPackageExamples("labs", LabsExamples); + addPackageExamples("table", TableExamples); /***/ }), -/* 453 */ +/* 474 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Croatian [hr] - //! author : Bojan Marković : https://github.com/bmarkovic - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - function translate(number, withoutSuffix, key) { - var result = number + ' '; - switch (key) { - case 'm': - return withoutSuffix ? 'jedna minuta' : 'jedne minute'; - case 'mm': - if (number === 1) { - result += 'minuta'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'minute'; - } else { - result += 'minuta'; - } - return result; - case 'h': - return withoutSuffix ? 'jedan sat' : 'jednog sata'; - case 'hh': - if (number === 1) { - result += 'sat'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'sata'; - } else { - result += 'sati'; - } - return result; - case 'dd': - if (number === 1) { - result += 'dan'; - } else { - result += 'dana'; - } - return result; - case 'MM': - if (number === 1) { - result += 'mjesec'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'mjeseca'; - } else { - result += 'mjeseci'; - } - return result; - case 'yy': - if (number === 1) { - result += 'godina'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'godine'; - } else { - result += 'godina'; - } - return result; - } + "use strict"; + function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } - - var hr = moment.defineLocale('hr', { - months : { - format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'), - standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_') - }, - monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'), - monthsParseExact: true, - weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'), - weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY H:mm', - LLLL : 'dddd, D. MMMM YYYY H:mm' - }, - calendar : { - sameDay : '[danas u] LT', - nextDay : '[sutra u] LT', - nextWeek : function () { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay : '[jučer u] LT', - lastWeek : function () { - switch (this.day()) { - case 0: - case 3: - return '[prošlu] dddd [u] LT'; - case 6: - return '[prošle] [subote] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prošli] dddd [u] LT'; - } - }, - sameElse : 'L' - }, - relativeTime : { - future : 'za %s', - past : 'prije %s', - s : 'par sekundi', - m : translate, - mm : translate, - h : translate, - hh : translate, - d : 'dan', - dd : translate, - M : 'mjesec', - MM : translate, - y : 'godinu', - yy : translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + Object.defineProperty(exports, "__esModule", { value: true }); + __export(__webpack_require__(475)); + __export(__webpack_require__(476)); + __export(__webpack_require__(480)); + __export(__webpack_require__(481)); + __export(__webpack_require__(482)); + __export(__webpack_require__(483)); + __export(__webpack_require__(485)); + __export(__webpack_require__(486)); + __export(__webpack_require__(487)); + __export(__webpack_require__(488)); + __export(__webpack_require__(489)); + __export(__webpack_require__(490)); + __export(__webpack_require__(491)); + __export(__webpack_require__(492)); + __export(__webpack_require__(493)); + __export(__webpack_require__(494)); + __export(__webpack_require__(484)); + __export(__webpack_require__(495)); + __export(__webpack_require__(496)); + __export(__webpack_require__(497)); + __export(__webpack_require__(498)); + __export(__webpack_require__(499)); + __export(__webpack_require__(501)); + __export(__webpack_require__(502)); + __export(__webpack_require__(503)); + __export(__webpack_require__(504)); + __export(__webpack_require__(505)); + __export(__webpack_require__(506)); + __export(__webpack_require__(507)); + __export(__webpack_require__(508)); + + +/***/ }), +/* 475 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var AlertExample = (function (_super) { + tslib_1.__extends(AlertExample, _super); + function AlertExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + isOpen: false, + isOpenError: false, + }; + _this.message = (React.createElement("div", null, + React.createElement("strong", null, "filename"), + " was moved to Trash")); + _this.handleOpenError = function () { return _this.setState({ isOpenError: true }); }; + _this.handleCloseError = function () { return _this.setState({ isOpenError: false }); }; + _this.handleOpen = function () { return _this.setState({ isOpen: true }); }; + _this.handleMoveClose = function () { + _this.setState({ isOpen: false }); + _this.toaster.show({ + className: _this.props.themeName, + message: _this.message, + }); + }; + _this.handleClose = function () { return _this.setState({ isOpen: false }); }; + return _this; } - }); - - return hr; - - }))); + AlertExample.prototype.componentWillMount = function () { + this.toaster = core_1.Toaster.create(); + }; + AlertExample.prototype.renderExample = function () { + return (React.createElement("div", null, + React.createElement(core_1.Button, { onClick: this.handleOpenError, text: "Open file error alert" }), + React.createElement(core_1.Alert, { className: this.props.themeName, isOpen: this.state.isOpenError, confirmButtonText: "Okay", onConfirm: this.handleCloseError }, + React.createElement("p", null, "Couldn't create the file because the containing folder doesn't exist anymore. You will be redirected to your user folder.")), + React.createElement(core_1.Button, { onClick: this.handleOpen, text: "Open file deletion alert" }), + React.createElement(core_1.Alert, { className: this.props.themeName, intent: core_1.Intent.PRIMARY, isOpen: this.state.isOpen, confirmButtonText: "Move to Trash", cancelButtonText: "Cancel", onConfirm: this.handleMoveClose, onCancel: this.handleClose }, + React.createElement("p", null, + "Are you sure you want to move ", + React.createElement("b", null, "filename"), + " to Trash? You will be able to restore it later, but it will become private to you.")))); + }; + return AlertExample; + }(docs_1.BaseExample)); + exports.AlertExample = AlertExample; /***/ }), -/* 454 */ +/* 476 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Hungarian [hu] - //! author : Adam Brunner : https://github.com/adambrunner - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' '); - function translate(number, withoutSuffix, key, isFuture) { - var num = number, - suffix; - switch (key) { - case 's': - return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce'; - case 'm': - return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce'); - case 'mm': - return num + (isFuture || withoutSuffix ? ' perc' : ' perce'); - case 'h': - return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája'); - case 'hh': - return num + (isFuture || withoutSuffix ? ' óra' : ' órája'); - case 'd': - return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja'); - case 'dd': - return num + (isFuture || withoutSuffix ? ' nap' : ' napja'); - case 'M': - return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); - case 'MM': - return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); - case 'y': - return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve'); - case 'yy': - return num + (isFuture || withoutSuffix ? ' év' : ' éve'); + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var classNames = __webpack_require__(200); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var intentSelect_1 = __webpack_require__(477); + var ButtonsExample = (function (_super) { + tslib_1.__extends(ButtonsExample, _super); + function ButtonsExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + active: false, + disabled: false, + large: false, + loading: false, + minimal: false, + wiggling: false, + }; + _this.handleActiveChange = docs_1.handleBooleanChange(function (active) { return _this.setState({ active: active }); }); + _this.handleDisabledChange = docs_1.handleBooleanChange(function (disabled) { return _this.setState({ disabled: disabled }); }); + _this.handleLargeChange = docs_1.handleBooleanChange(function (large) { return _this.setState({ large: large }); }); + _this.handleLoadingChange = docs_1.handleBooleanChange(function (loading) { return _this.setState({ loading: loading }); }); + _this.handleMinimalChange = docs_1.handleBooleanChange(function (minimal) { return _this.setState({ minimal: minimal }); }); + _this.handleIntentChange = docs_1.handleNumberChange(function (intent) { return _this.setState({ intent: intent }); }); + _this.beginWiggling = function () { + clearTimeout(_this.wiggleTimeoutId); + _this.setState({ wiggling: true }); + _this.wiggleTimeoutId = setTimeout(function () { return _this.setState({ wiggling: false }); }, 300); + }; + return _this; + } + ButtonsExample.prototype.componentWillUnmount = function () { + clearTimeout(this.wiggleTimeoutId); + }; + ButtonsExample.prototype.renderExample = function () { + var classes = classNames((_a = {}, + _a[core_1.Classes.LARGE] = this.state.large, + _a[core_1.Classes.MINIMAL] = this.state.minimal, + _a)); + return (React.createElement("div", { className: "docs-react-example-row" }, + React.createElement("div", { className: "docs-react-example-column" }, + React.createElement("code", null, "Button"), + React.createElement("br", null), + React.createElement("br", null), + React.createElement(core_1.Button, { className: classNames(classes, { "docs-wiggle": this.state.wiggling }), disabled: this.state.disabled, active: this.state.active, iconName: "refresh", intent: this.state.intent, loading: this.state.loading, onClick: this.beginWiggling, text: "Click to wiggle" })), + React.createElement("div", { className: "docs-react-example-column" }, + React.createElement("code", null, "AnchorButton"), + React.createElement("br", null), + React.createElement("br", null), + React.createElement(core_1.AnchorButton, { className: classes, disabled: this.state.disabled, active: this.state.active, href: "./", iconName: "duplicate", intent: this.state.intent, loading: this.state.loading, rightIconName: "share", target: "_blank", text: "Duplicate this page" })))); + var _a; + }; + ButtonsExample.prototype.renderOptions = function () { + return [ + [ + React.createElement("label", { className: core_1.Classes.LABEL, key: "label" }, "Modifiers"), + React.createElement(core_1.Switch, { checked: this.state.active, key: "active", label: "Active", onChange: this.handleActiveChange }), + React.createElement(core_1.Switch, { checked: this.state.disabled, key: "disabled", label: "Disabled", onChange: this.handleDisabledChange }), + React.createElement(core_1.Switch, { checked: this.state.large, key: "large", label: "Large", onChange: this.handleLargeChange }), + React.createElement(core_1.Switch, { checked: this.state.loading, key: "loading", label: "Loading", onChange: this.handleLoadingChange }), + React.createElement(core_1.Switch, { checked: this.state.minimal, key: "minimal", label: "Minimal", onChange: this.handleMinimalChange }), + ], + [React.createElement(intentSelect_1.IntentSelect, { intent: this.state.intent, key: "intent", onChange: this.handleIntentChange })], + ]; + }; + return ButtonsExample; + }(docs_1.BaseExample)); + exports.ButtonsExample = ButtonsExample; + + +/***/ }), +/* 477 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var Classes = __webpack_require__(478); + var intent_1 = __webpack_require__(479); + var React = __webpack_require__(3); + var INTENTS = [ + { label: "None", value: intent_1.Intent.NONE }, + { label: "Primary", value: intent_1.Intent.PRIMARY }, + { label: "Success", value: intent_1.Intent.SUCCESS }, + { label: "Warning", value: intent_1.Intent.WARNING }, + { label: "Danger", value: intent_1.Intent.DANGER }, + ]; + exports.IntentSelect = function (props) { return (React.createElement("label", { className: Classes.LABEL }, + "Intent", + React.createElement("div", { className: Classes.SELECT }, + React.createElement("select", { value: props.intent, onChange: props.onChange }, INTENTS.map(function (opt, i) { return (React.createElement("option", { key: i, value: opt.value }, opt.label)); }))))); }; + + +/***/ }), +/* 478 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var intent_1 = __webpack_require__(479); + exports.DARK = "pt-dark"; + exports.ACTIVE = "pt-active"; + exports.MINIMAL = "pt-minimal"; + exports.DISABLED = "pt-disabled"; + exports.SMALL = "pt-small"; + exports.LARGE = "pt-large"; + exports.LOADING = "pt-loading"; + exports.INTERACTIVE = "pt-interactive"; + exports.ALIGN_LEFT = "pt-align-left"; + exports.ALIGN_RIGHT = "pt-align-right"; + exports.INLINE = "pt-inline"; + exports.FILL = "pt-fill"; + exports.FIXED = "pt-fixed"; + exports.FIXED_TOP = "pt-fixed-top"; + exports.VERTICAL = "pt-vertical"; + exports.ROUND = "pt-round"; + exports.TEXT_MUTED = "pt-text-muted"; + exports.TEXT_OVERFLOW_ELLIPSIS = "pt-text-overflow-ellipsis"; + exports.UI_TEXT_LARGE = "pt-ui-text-large"; + exports.ALERT = "pt-alert"; + exports.ALERT_BODY = "pt-alert-body"; + exports.ALERT_CONTENTS = "pt-alert-contents"; + exports.ALERT_FOOTER = "pt-alert-footer"; + exports.BREADCRUMB = "pt-breadcrumb"; + exports.BREADCRUMB_CURRENT = "pt-breadcrumb-current"; + exports.BREADCRUMBS = "pt-breadcrumbs"; + exports.BREADCRUMBS_COLLAPSED = "pt-breadcrumbs-collapsed"; + exports.BUTTON = "pt-button"; + exports.BUTTON_GROUP = "pt-button-group"; + exports.CALLOUT = "pt-callout"; + exports.CARD = "pt-card"; + exports.COLLAPSE = "pt-collapse"; + exports.COLLAPSIBLE_LIST = "pt-collapse-list"; + exports.CONTEXT_MENU = "pt-context-menu"; + exports.CONTEXT_MENU_POPOVER_TARGET = "pt-context-menu-popover-target"; + exports.CONTROL = "pt-control"; + exports.CONTROL_GROUP = "pt-control-group"; + exports.CONTROL_INDICATOR = "pt-control-indicator"; + exports.DIALOG = "pt-dialog"; + exports.DIALOG_CONTAINER = "pt-dialog-container"; + exports.DIALOG_BODY = "pt-dialog-body"; + exports.DIALOG_CLOSE_BUTTON = "pt-dialog-close-button"; + exports.DIALOG_FOOTER = "pt-dialog-footer"; + exports.DIALOG_FOOTER_ACTIONS = "pt-dialog-footer-actions"; + exports.DIALOG_HEADER = "pt-dialog-header"; + exports.EDITABLE_TEXT = "pt-editable-text"; + exports.ELEVATION_0 = "pt-elevation-0"; + exports.ELEVATION_1 = "pt-elevation-1"; + exports.ELEVATION_2 = "pt-elevation-2"; + exports.ELEVATION_3 = "pt-elevation-3"; + exports.ELEVATION_4 = "pt-elevation-4"; + exports.INPUT = "pt-input"; + exports.INPUT_GROUP = "pt-input-group"; + exports.CHECKBOX = "pt-checkbox"; + exports.RADIO = "pt-radio"; + exports.SWITCH = "pt-switch"; + exports.FILE_UPLOAD = "pt-file-upload"; + exports.FILE_UPLOAD_INPUT = "pt-file-upload-input"; + exports.INTENT_PRIMARY = "pt-intent-primary"; + exports.INTENT_SUCCESS = "pt-intent-success"; + exports.INTENT_WARNING = "pt-intent-warning"; + exports.INTENT_DANGER = "pt-intent-danger"; + exports.LABEL = "pt-label"; + exports.FORM_GROUP = "pt-form-group"; + exports.FORM_CONTENT = "pt-form-content"; + exports.FORM_HELPER_TEXT = "pt-form-helper-text"; + exports.MENU = "pt-menu"; + exports.MENU_ITEM = "pt-menu-item"; + exports.MENU_ITEM_LABEL = "pt-menu-item-label"; + exports.MENU_SUBMENU = "pt-submenu"; + exports.MENU_DIVIDER = "pt-menu-divider"; + exports.MENU_HEADER = "pt-menu-header"; + exports.NAVBAR = "pt-navbar"; + exports.NAVBAR_GROUP = "pt-navbar-group"; + exports.NAVBAR_HEADING = "pt-navbar-heading"; + exports.NAVBAR_DIVIDER = "pt-navbar-divider"; + exports.NON_IDEAL_STATE = "pt-non-ideal-state"; + exports.NON_IDEAL_STATE_ACTION = "pt-non-ideal-state-action"; + exports.NON_IDEAL_STATE_DESCRIPTION = "pt-non-ideal-state-description"; + exports.NON_IDEAL_STATE_ICON = "pt-non-ideal-state-icon"; + exports.NON_IDEAL_STATE_TITLE = "pt-non-ideal-state-title"; + exports.NON_IDEAL_STATE_VISUAL = "pt-non-ideal-state-visual"; + exports.NUMERIC_INPUT = "pt-numeric-input"; + exports.OVERLAY = "pt-overlay"; + exports.OVERLAY_BACKDROP = "pt-overlay-backdrop"; + exports.OVERLAY_CONTENT = "pt-overlay-content"; + exports.OVERLAY_INLINE = "pt-overlay-inline"; + exports.OVERLAY_OPEN = "pt-overlay-open"; + exports.OVERLAY_SCROLL_CONTAINER = "pt-overlay-scroll-container"; + exports.POPOVER = "pt-popover"; + exports.POPOVER_ARROW = "pt-popover-arrow"; + exports.POPOVER_BACKDROP = "pt-popover-backdrop"; + exports.POPOVER_CONTENT = "pt-popover-content"; + exports.POPOVER_DISMISS = "pt-popover-dismiss"; + exports.POPOVER_DISMISS_OVERRIDE = "pt-popover-dismiss-override"; + exports.POPOVER_OPEN = "pt-popover-open"; + exports.POPOVER_TARGET = "pt-popover-target"; + exports.TRANSITION_CONTAINER = "pt-transition-container"; + exports.PROGRESS_BAR = "pt-progress-bar"; + exports.PROGRESS_METER = "pt-progress-meter"; + exports.PROGRESS_NO_STRIPES = "pt-no-stripes"; + exports.PROGRESS_NO_ANIMATION = "pt-no-animation"; + exports.PORTAL = "pt-portal"; + exports.SELECT = "pt-select"; + exports.SKELETON = "pt-skeleton"; + exports.SLIDER = "pt-slider"; + exports.SLIDER_HANDLE = exports.SLIDER + "-handle"; + exports.SLIDER_LABEL = exports.SLIDER + "-label"; + exports.RANGE_SLIDER = "pt-range-slider"; + exports.SPINNER = "pt-spinner"; + exports.SVG_SPINNER = "pt-svg-spinner"; + exports.TAB = "pt-tab"; + exports.TAB_LIST = "pt-tab-list"; + exports.TAB_PANEL = "pt-tab-panel"; + exports.TABS = "pt-tabs"; + exports.TABLE = "pt-table"; + exports.TABLE_CONDENSED = "pt-condensed"; + exports.TABLE_STRIPED = "pt-striped"; + exports.TABLE_BORDERED = "pt-bordered"; + exports.TAG = "pt-tag"; + exports.TAG_REMOVABLE = "pt-tag-removable"; + exports.TAG_REMOVE = "pt-tag-remove"; + exports.TOAST = "pt-toast"; + exports.TOAST_CONTAINER = "pt-toast-container"; + exports.TOAST_MESSAGE = "pt-toast-message"; + exports.TOOLTIP = "pt-tooltip"; + exports.TREE = "pt-tree"; + exports.TREE_NODE = "pt-tree-node"; + exports.TREE_NODE_CARET = "pt-tree-node-caret"; + exports.TREE_NODE_CARET_CLOSED = "pt-tree-node-caret-closed"; + exports.TREE_NODE_CARET_NONE = "pt-tree-node-caret-none"; + exports.TREE_NODE_CARET_OPEN = "pt-tree-node-caret-open"; + exports.TREE_NODE_CONTENT = "pt-tree-node-content"; + exports.TREE_NODE_EXPANDED = "pt-tree-node-expanded"; + exports.TREE_NODE_ICON = "pt-tree-node-icon"; + exports.TREE_NODE_LABEL = "pt-tree-node-label"; + exports.TREE_NODE_LIST = "pt-tree-node-list"; + exports.TREE_NODE_SECONDARY_LABEL = "pt-tree-node-secondary-label"; + exports.TREE_NODE_SELECTED = "pt-tree-node-selected"; + exports.TREE_ROOT = "pt-tree-root"; + exports.ICON = "pt-icon"; + exports.ICON_STANDARD = "pt-icon-standard"; + exports.ICON_LARGE = "pt-icon-large"; + function iconClass(iconName) { + if (iconName == null) { + return undefined; } - return ''; - } - function week(isFuture) { - return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]'; + return iconName.indexOf("pt-icon-") === 0 ? iconName : "pt-icon-" + iconName; } - - var hu = moment.defineLocale('hu', { - months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'), - monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'), - weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'), - weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), - weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'), - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'YYYY.MM.DD.', - LL : 'YYYY. MMMM D.', - LLL : 'YYYY. MMMM D. H:mm', - LLLL : 'YYYY. MMMM D., dddd H:mm' - }, - meridiemParse: /de|du/i, - isPM: function (input) { - return input.charAt(1).toLowerCase() === 'u'; - }, - meridiem : function (hours, minutes, isLower) { - if (hours < 12) { - return isLower === true ? 'de' : 'DE'; - } else { - return isLower === true ? 'du' : 'DU'; - } - }, - calendar : { - sameDay : '[ma] LT[-kor]', - nextDay : '[holnap] LT[-kor]', - nextWeek : function () { - return week.call(this, true); - }, - lastDay : '[tegnap] LT[-kor]', - lastWeek : function () { - return week.call(this, false); - }, - sameElse : 'L' - }, - relativeTime : { - future : '%s múlva', - past : '%s', - s : translate, - m : translate, - mm : translate, - h : translate, - hh : translate, - d : translate, - dd : translate, - M : translate, - MM : translate, - y : translate, - yy : translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + exports.iconClass = iconClass; + function intentClass(intent) { + if (intent === void 0) { intent = intent_1.Intent.NONE; } + if (intent === intent_1.Intent.NONE || intent_1.Intent[intent] == null) { + return undefined; } - }); - - return hu; - - }))); + return "pt-intent-" + intent_1.Intent[intent].toLowerCase(); + } + exports.intentClass = intentClass; /***/ }), -/* 455 */ +/* 479 */ +/***/ (function(module, exports) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var Intent; + (function (Intent) { + Intent[Intent["NONE"] = -1] = "NONE"; + Intent[Intent["PRIMARY"] = 0] = "PRIMARY"; + Intent[Intent["SUCCESS"] = 1] = "SUCCESS"; + Intent[Intent["WARNING"] = 2] = "WARNING"; + Intent[Intent["DANGER"] = 3] = "DANGER"; + })(Intent = exports.Intent || (exports.Intent = {})); + + +/***/ }), +/* 480 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Armenian [hy-am] - //! author : Armendarabyan : https://github.com/armendarabyan - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var hyAm = moment.defineLocale('hy-am', { - months : { - format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'), - standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_') - }, - monthsShort : 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'), - weekdays : 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'), - weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), - weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY թ.', - LLL : 'D MMMM YYYY թ., HH:mm', - LLLL : 'dddd, D MMMM YYYY թ., HH:mm' - }, - calendar : { - sameDay: '[այսօր] LT', - nextDay: '[վաղը] LT', - lastDay: '[երեկ] LT', - nextWeek: function () { - return 'dddd [օրը ժամը] LT'; - }, - lastWeek: function () { - return '[անցած] dddd [օրը ժամը] LT'; - }, - sameElse: 'L' - }, - relativeTime : { - future : '%s հետո', - past : '%s առաջ', - s : 'մի քանի վայրկյան', - m : 'րոպե', - mm : '%d րոպե', - h : 'ժամ', - hh : '%d ժամ', - d : 'օր', - dd : '%d օր', - M : 'ամիս', - MM : '%d ամիս', - y : 'տարի', - yy : '%d տարի' - }, - meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/, - isPM: function (input) { - return /^(ցերեկվա|երեկոյան)$/.test(input); - }, - meridiem : function (hour) { - if (hour < 4) { - return 'գիշերվա'; - } else if (hour < 12) { - return 'առավոտվա'; - } else if (hour < 17) { - return 'ցերեկվա'; - } else { - return 'երեկոյան'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/, - ordinal: function (number, period) { - switch (period) { - case 'DDD': - case 'w': - case 'W': - case 'DDDo': - if (number === 1) { - return number + '-ին'; - } - return number + '-րդ'; - default: - return number; - } - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var CollapseExample = (function (_super) { + tslib_1.__extends(CollapseExample, _super); + function CollapseExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + isOpen: false, + }; + _this.handleClick = function () { + _this.setState({ isOpen: !_this.state.isOpen }); + }; + return _this; } - }); - - return hyAm; - - }))); + CollapseExample.prototype.renderExample = function () { + return (React.createElement("div", null, + React.createElement(core_1.Button, { onClick: this.handleClick }, + this.state.isOpen ? "Hide" : "Show", + " build logs"), + React.createElement(core_1.Collapse, { isOpen: this.state.isOpen }, + React.createElement("pre", null, + "[11:53:30] Finished 'typescript-bundle-blueprint' after 769 ms", + React.createElement("br", null), + "[11:53:30] Starting 'typescript-typings-blueprint'...", + React.createElement("br", null), + "[11:53:30] Finished 'typescript-typings-blueprint' after 198 ms", + React.createElement("br", null), + "[11:53:30] write ./blueprint.css", + React.createElement("br", null), + "[11:53:30] Finished 'sass-compile-blueprint' after 2.84 s")))); + }; + return CollapseExample; + }(docs_1.BaseExample)); + exports.CollapseExample = CollapseExample; /***/ }), -/* 456 */ +/* 481 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Indonesian [id] - //! author : Mohammad Satrio Utomo : https://github.com/tyok - //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var id = moment.defineLocale('id', { - months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'), - monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'), - weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), - weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), - weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat : { - LT : 'HH.mm', - LTS : 'HH.mm.ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY [pukul] HH.mm', - LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' - }, - meridiemParse: /pagi|siang|sore|malam/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'pagi') { - return hour; - } else if (meridiem === 'siang') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'sore' || meridiem === 'malam') { - return hour + 12; + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var classNames = __webpack_require__(200); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var COLLAPSE_FROM_RADIOS = [ + { className: core_1.Classes.INLINE, label: "Start", value: core_1.CollapseFrom.START.toString() }, + { className: core_1.Classes.INLINE, label: "End", value: core_1.CollapseFrom.END.toString() }, + ]; + var CollapsibleListExample = (function (_super) { + tslib_1.__extends(CollapsibleListExample, _super); + function CollapsibleListExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + collapseFrom: core_1.CollapseFrom.START, + visibleItemCount: 3, + }; + _this.handleChangeCollapse = docs_1.handleNumberChange(function (collapseFrom) { return _this.setState({ collapseFrom: collapseFrom }); }); + _this.handleChangeCount = function (visibleItemCount) { return _this.setState({ visibleItemCount: visibleItemCount }); }; + return _this; + } + CollapsibleListExample.prototype.renderExample = function () { + return (React.createElement(core_1.CollapsibleList, tslib_1.__assign({}, this.state, { className: core_1.Classes.BREADCRUMBS, dropdownTarget: React.createElement("span", { className: core_1.Classes.BREADCRUMBS_COLLAPSED }), renderVisibleItem: this.renderBreadcrumb }), + React.createElement(core_1.MenuItem, { iconName: "folder-close", text: "All files", href: "#" }), + React.createElement(core_1.MenuItem, { iconName: "folder-close", text: "Users", href: "#" }), + React.createElement(core_1.MenuItem, { iconName: "folder-close", text: "Jane Person", href: "#" }), + React.createElement(core_1.MenuItem, { iconName: "folder-close", text: "My documents", href: "#" }), + React.createElement(core_1.MenuItem, { iconName: "folder-close", text: "Classy dayjob", href: "#" }), + React.createElement(core_1.MenuItem, { iconName: "document", text: "How to crush it" }))); + }; + CollapsibleListExample.prototype.renderOptions = function () { + return [ + [ + React.createElement("label", { className: core_1.Classes.LABEL, key: "visible-label" }, "Visible items"), + React.createElement(core_1.Slider, { key: "visible", max: 6, onChange: this.handleChangeCount, showTrackFill: false, value: this.state.visibleItemCount }), + ], + [ + React.createElement(core_1.RadioGroup, { key: "collapseFrom", name: "collapseFrom", label: "Collapse from", onChange: this.handleChangeCollapse, options: COLLAPSE_FROM_RADIOS, selectedValue: this.state.collapseFrom.toString() }), + ], + ]; + }; + CollapsibleListExample.prototype.renderBreadcrumb = function (props) { + if (props.href != null) { + return React.createElement("a", { className: core_1.Classes.BREADCRUMB }, props.text); } - }, - meridiem : function (hours, minutes, isLower) { - if (hours < 11) { - return 'pagi'; - } else if (hours < 15) { - return 'siang'; - } else if (hours < 19) { - return 'sore'; - } else { - return 'malam'; + else { + return React.createElement("span", { className: classNames(core_1.Classes.BREADCRUMB, core_1.Classes.BREADCRUMB_CURRENT) }, props.text); } - }, - calendar : { - sameDay : '[Hari ini pukul] LT', - nextDay : '[Besok pukul] LT', - nextWeek : 'dddd [pukul] LT', - lastDay : '[Kemarin pukul] LT', - lastWeek : 'dddd [lalu pukul] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'dalam %s', - past : '%s yang lalu', - s : 'beberapa detik', - m : 'semenit', - mm : '%d menit', - h : 'sejam', - hh : '%d jam', - d : 'sehari', - dd : '%d hari', - M : 'sebulan', - MM : '%d bulan', - y : 'setahun', - yy : '%d tahun' - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } - }); - - return id; - - }))); + }; + return CollapsibleListExample; + }(docs_1.BaseExample)); + exports.CollapsibleListExample = CollapsibleListExample; /***/ }), -/* 457 */ +/* 482 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Icelandic [is] - //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - function plural(n) { - if (n % 100 === 11) { - return true; - } else if (n % 10 === 1) { - return false; + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var CheckboxExample = (function (_super) { + tslib_1.__extends(CheckboxExample, _super); + function CheckboxExample() { + return _super !== null && _super.apply(this, arguments) || this; } - return true; - } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': - return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum'; - case 'm': - return withoutSuffix ? 'mínúta' : 'mínútu'; - case 'mm': - if (plural(number)) { - return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum'); - } else if (withoutSuffix) { - return result + 'mínúta'; - } - return result + 'mínútu'; - case 'hh': - if (plural(number)) { - return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum'); - } - return result + 'klukkustund'; - case 'd': - if (withoutSuffix) { - return 'dagur'; - } - return isFuture ? 'dag' : 'degi'; - case 'dd': - if (plural(number)) { - if (withoutSuffix) { - return result + 'dagar'; - } - return result + (isFuture ? 'daga' : 'dögum'); - } else if (withoutSuffix) { - return result + 'dagur'; - } - return result + (isFuture ? 'dag' : 'degi'); - case 'M': - if (withoutSuffix) { - return 'mánuður'; - } - return isFuture ? 'mánuð' : 'mánuði'; - case 'MM': - if (plural(number)) { - if (withoutSuffix) { - return result + 'mánuðir'; - } - return result + (isFuture ? 'mánuði' : 'mánuðum'); - } else if (withoutSuffix) { - return result + 'mánuður'; - } - return result + (isFuture ? 'mánuð' : 'mánuði'); - case 'y': - return withoutSuffix || isFuture ? 'ár' : 'ári'; - case 'yy': - if (plural(number)) { - return result + (withoutSuffix || isFuture ? 'ár' : 'árum'); - } - return result + (withoutSuffix || isFuture ? 'ár' : 'ári'); + CheckboxExample.prototype.renderExample = function () { + return (React.createElement("div", null, + React.createElement("label", { className: core_1.Classes.LABEL }, "Assign responsibility"), + React.createElement(core_1.Checkbox, { label: "Gilad Gray", defaultIndeterminate: true }), + React.createElement(core_1.Checkbox, { label: "Jason Killian" }), + React.createElement(core_1.Checkbox, { label: "Antoine Llorca" }))); + }; + return CheckboxExample; + }(docs_1.BaseExample)); + exports.CheckboxExample = CheckboxExample; + var SwitchExample = (function (_super) { + tslib_1.__extends(SwitchExample, _super); + function SwitchExample() { + return _super !== null && _super.apply(this, arguments) || this; } - } - - var is = moment.defineLocale('is', { - months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'), - monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'), - weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'), - weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'), - weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'), - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY [kl.] H:mm', - LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm' - }, - calendar : { - sameDay : '[í dag kl.] LT', - nextDay : '[á morgun kl.] LT', - nextWeek : 'dddd [kl.] LT', - lastDay : '[í gær kl.] LT', - lastWeek : '[síðasta] dddd [kl.] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'eftir %s', - past : 'fyrir %s síðan', - s : translate, - m : translate, - mm : translate, - h : 'klukkustund', - hh : translate, - d : translate, - dd : translate, - M : translate, - MM : translate, - y : translate, - yy : translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + SwitchExample.prototype.renderExample = function () { + return (React.createElement("div", null, + React.createElement("label", { className: core_1.Classes.LABEL }, "Privacy setting"), + React.createElement(core_1.Switch, { labelElement: React.createElement("strong", null, "Enabled") }), + React.createElement(core_1.Switch, { labelElement: React.createElement("em", null, "Public") }), + React.createElement(core_1.Switch, { labelElement: React.createElement("u", null, "Cooperative"), defaultChecked: true }), + React.createElement("small", null, + "This example uses ", + React.createElement("code", null, "labelElement"), + " to demonstrate JSX labels."))); + }; + return SwitchExample; + }(docs_1.BaseExample)); + exports.SwitchExample = SwitchExample; + var RadioExample = (function (_super) { + tslib_1.__extends(RadioExample, _super); + function RadioExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = {}; + _this.handleRadioChange = docs_1.handleStringChange(function (radioValue) { return _this.setState({ radioValue: radioValue }); }); + return _this; } - }); - - return is; - - }))); + RadioExample.prototype.renderExample = function () { + return (React.createElement(core_1.RadioGroup, { label: "Determine lunch", name: "group", onChange: this.handleRadioChange, selectedValue: this.state.radioValue }, + React.createElement(core_1.Radio, { label: "Soup", value: "one" }), + React.createElement(core_1.Radio, { label: "Salad", value: "two" }), + React.createElement(core_1.Radio, { label: "Sandwich", value: "three" }))); + }; + return RadioExample; + }(docs_1.BaseExample)); + exports.RadioExample = RadioExample; /***/ }), -/* 458 */ +/* 483 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Italian [it] - //! author : Lorenzo : https://github.com/aliem - //! author: Mattia Larentis: https://github.com/nostalgiaz - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var it = moment.defineLocale('it', { - months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'), - monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), - weekdays : 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'), - weekdaysShort : 'dom_lun_mar_mer_gio_ven_sab'.split('_'), - weekdaysMin : 'do_lu_ma_me_gi_ve_sa'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[Oggi alle] LT', - nextDay: '[Domani alle] LT', - nextWeek: 'dddd [alle] LT', - lastDay: '[Ieri alle] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[la scorsa] dddd [alle] LT'; - default: - return '[lo scorso] dddd [alle] LT'; - } - }, - sameElse: 'L' - }, - relativeTime : { - future : function (s) { - return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s; - }, - past : '%s fa', - s : 'alcuni secondi', - m : 'un minuto', - mm : '%d minuti', - h : 'un\'ora', - hh : '%d ore', - d : 'un giorno', - dd : '%d giorni', - M : 'un mese', - MM : '%d mesi', - y : 'un anno', - yy : '%d anni' - }, - dayOfMonthOrdinalParse : /\d{1,2}º/, - ordinal: '%dº', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var overlayExample_1 = __webpack_require__(484); + var DialogExample = (function (_super) { + tslib_1.__extends(DialogExample, _super); + function DialogExample() { + return _super !== null && _super.apply(this, arguments) || this; } - }); - - return it; - - }))); + DialogExample.prototype.renderExample = function () { + return (React.createElement("div", { className: "docs-dialog-example" }, + React.createElement(core_1.Button, { onClick: this.handleOpen }, "Show dialog"), + React.createElement(core_1.Dialog, tslib_1.__assign({ className: this.props.themeName, iconName: "inbox", onClose: this.handleClose, title: "Dialog header" }, this.state), + React.createElement("div", { className: core_1.Classes.DIALOG_BODY }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sagittis odio neque, eget aliquam eros consectetur in. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nulla consequat justo in enim aliquam, eget convallis nibh gravida. Nunc quis consectetur enim. Curabitur tincidunt vestibulum pulvinar. Suspendisse vel libero justo. Ut feugiat pharetra commodo. Morbi ullamcorper enim nec dolor aliquam, eu maximus turpis elementum. Morbi tristique laoreet ipsum. Nulla sit amet nisl posuere, sollicitudin ex eget, faucibus neque. Cras malesuada nisl vel lectus vehicula fringilla. Fusce vel facilisis tellus. Integer porta mollis nibh, nec viverra magna cursus non. Nulla consectetur dui nec fringilla dignissim. Praesent in tempus odio. Donec sollicitudin sit amet eros eu sollicitudin. Etiam convallis ex felis, nec pharetra felis sagittis ut. Suspendisse aliquam purus sed sollicitudin aliquet. Duis sollicitudin risus sed orci elementum dignissim. Phasellus sed erat fermentum, laoreet mi posuere, mollis quam. Ut vestibulum dictum lorem, vel faucibus libero varius id. Donec iaculis efficitur nisl. Aliquam a lectus ac massa suscipit commodo."), + React.createElement("div", { className: core_1.Classes.DIALOG_FOOTER }, + React.createElement("div", { className: core_1.Classes.DIALOG_FOOTER_ACTIONS }, + React.createElement(core_1.Button, null, "Secondary"), + React.createElement(core_1.Tooltip, { content: "This button is hooked up to close the dialog.", inline: true }, + React.createElement(core_1.Button, { className: "pt-intent-primary", onClick: this.handleClose }, "Primary"))))))); + }; + DialogExample.prototype.renderOptions = function () { + var options = _super.prototype.renderOptions.call(this); + options[1].splice(2, 1); + return options; + }; + return DialogExample; + }(overlayExample_1.OverlayExample)); + exports.DialogExample = DialogExample; /***/ }), -/* 459 */ +/* 484 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Japanese [ja] - //! author : LI Long : https://github.com/baryon - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var ja = moment.defineLocale('ja', { - months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'), - weekdaysShort : '日_月_火_水_木_金_土'.split('_'), - weekdaysMin : '日_月_火_水_木_金_土'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'YYYY/MM/DD', - LL : 'YYYY年M月D日', - LLL : 'YYYY年M月D日 HH:mm', - LLLL : 'YYYY年M月D日 HH:mm dddd', - l : 'YYYY/MM/DD', - ll : 'YYYY年M月D日', - lll : 'YYYY年M月D日 HH:mm', - llll : 'YYYY年M月D日 HH:mm dddd' - }, - meridiemParse: /午前|午後/i, - isPM : function (input) { - return input === '午後'; - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return '午前'; - } else { - return '午後'; - } - }, - calendar : { - sameDay : '[今日] LT', - nextDay : '[明日] LT', - nextWeek : '[来週]dddd LT', - lastDay : '[昨日] LT', - lastWeek : '[前週]dddd LT', - sameElse : 'L' - }, - dayOfMonthOrdinalParse : /\d{1,2}日/, - ordinal : function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - default: - return number; - } - }, - relativeTime : { - future : '%s後', - past : '%s前', - s : '数秒', - m : '1分', - mm : '%d分', - h : '1時間', - hh : '%d時間', - d : '1日', - dd : '%d日', - M : '1ヶ月', - MM : '%dヶ月', - y : '1年', - yy : '%d年' + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var classNames = __webpack_require__(200); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var OVERLAY_EXAMPLE_CLASS = "docs-overlay-example-transition"; + var OverlayExample = (function (_super) { + tslib_1.__extends(OverlayExample, _super); + function OverlayExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + autoFocus: true, + canEscapeKeyClose: true, + canOutsideClickClose: true, + enforceFocus: true, + hasBackdrop: true, + inline: false, + isOpen: false, + }; + _this.refHandlers = { + button: function (ref) { return (_this.button = ref); }, + }; + _this.handleAutoFocusChange = docs_1.handleBooleanChange(function (autoFocus) { return _this.setState({ autoFocus: autoFocus }); }); + _this.handleBackdropChange = docs_1.handleBooleanChange(function (hasBackdrop) { return _this.setState({ hasBackdrop: hasBackdrop }); }); + _this.handleEnforceFocusChange = docs_1.handleBooleanChange(function (enforceFocus) { return _this.setState({ enforceFocus: enforceFocus }); }); + _this.handleEscapeKeyChange = docs_1.handleBooleanChange(function (canEscapeKeyClose) { return _this.setState({ canEscapeKeyClose: canEscapeKeyClose }); }); + _this.handleInlineChange = docs_1.handleBooleanChange(function (inline) { return _this.setState({ inline: inline }); }); + _this.handleOutsideClickChange = docs_1.handleBooleanChange(function (val) { return _this.setState({ canOutsideClickClose: val }); }); + _this.handleOpen = function () { return _this.setState({ isOpen: true }); }; + _this.handleClose = function () { return _this.setState({ isOpen: false }); }; + _this.focusButton = function () { return _this.button.focus(); }; + return _this; } - }); - - return ja; - - }))); + OverlayExample.prototype.renderExample = function () { + var classes = classNames(core_1.Classes.CARD, core_1.Classes.ELEVATION_4, OVERLAY_EXAMPLE_CLASS, this.props.themeName); + return (React.createElement("div", { className: "docs-dialog-example" }, + React.createElement("button", { className: "pt-button", onClick: this.handleOpen, ref: this.refHandlers.button }, "Show overlay"), + React.createElement(core_1.Overlay, tslib_1.__assign({ onClose: this.handleClose, className: core_1.Classes.OVERLAY_SCROLL_CONTAINER }, this.state), + React.createElement("div", { className: classes }, + React.createElement("h3", null, "I'm an Overlay!"), + React.createElement("p", null, "This is a simple container with some inline styles to position it on the screen. Its CSS transitions are customized for this example only to demonstrate how easily custom transitions can be implemented."), + React.createElement("p", null, + "Click the right button below to transfer focus to the \"Show overlay\" trigger button outside of this overlay. If persistent focus is enabled, focus will be constrained to the overlay. Use the ", + React.createElement("code", null, "tab"), + " key to move to the next focusable element to illustrate this effect."), + React.createElement("br", null), + React.createElement(core_1.Button, { intent: core_1.Intent.DANGER, onClick: this.handleClose }, "Close"), + React.createElement(core_1.Button, { onClick: this.focusButton, style: { float: "right" } }, "Focus button"))))); + }; + OverlayExample.prototype.renderOptions = function () { + var _a = this.state, hasBackdrop = _a.hasBackdrop, inline = _a.inline; + return [ + [ + React.createElement(core_1.Switch, { checked: this.state.autoFocus, key: "autoFocus", label: "Auto focus", onChange: this.handleAutoFocusChange }), + React.createElement(core_1.Switch, { checked: this.state.enforceFocus, key: "enforceFocus", label: "Enforce focus", onChange: this.handleEnforceFocusChange }), + React.createElement(core_1.Switch, { checked: inline, key: "inline", label: "Render inline", onChange: this.handleInlineChange }), + ], + [ + React.createElement(core_1.Switch, { checked: this.state.canOutsideClickClose, key: "click", label: "Click outside to close", onChange: this.handleOutsideClickChange }), + React.createElement(core_1.Switch, { checked: this.state.canEscapeKeyClose, key: "escape", label: "Escape key to close", onChange: this.handleEscapeKeyChange }), + React.createElement(core_1.Switch, { checked: hasBackdrop, key: "backdrop", label: "Has backdrop", onChange: this.handleBackdropChange }), + ], + ]; + }; + return OverlayExample; + }(docs_1.BaseExample)); + exports.OverlayExample = OverlayExample; /***/ }), -/* 460 */ +/* 485 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Javanese [jv] - //! author : Rony Lantip : https://github.com/lantip - //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var jv = moment.defineLocale('jv', { - months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'), - monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'), - weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'), - weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'), - weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'), - longDateFormat : { - LT : 'HH.mm', - LTS : 'HH.mm.ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY [pukul] HH.mm', - LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' - }, - meridiemParse: /enjing|siyang|sonten|ndalu/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'enjing') { - return hour; - } else if (meridiem === 'siyang') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'sonten' || meridiem === 'ndalu') { - return hour + 12; - } - }, - meridiem : function (hours, minutes, isLower) { - if (hours < 11) { - return 'enjing'; - } else if (hours < 15) { - return 'siyang'; - } else if (hours < 19) { - return 'sonten'; - } else { - return 'ndalu'; - } - }, - calendar : { - sameDay : '[Dinten puniko pukul] LT', - nextDay : '[Mbenjang pukul] LT', - nextWeek : 'dddd [pukul] LT', - lastDay : '[Kala wingi pukul] LT', - lastWeek : 'dddd [kepengker pukul] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'wonten ing %s', - past : '%s ingkang kepengker', - s : 'sawetawis detik', - m : 'setunggal menit', - mm : '%d menit', - h : 'setunggal jam', - hh : '%d jam', - d : 'sedinten', - dd : '%d dinten', - M : 'sewulan', - MM : '%d wulan', - y : 'setaun', - yy : '%d taun' - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var classNames = __webpack_require__(200); + var PureRender = __webpack_require__(201); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var GraphNode = (function (_super) { + tslib_1.__extends(GraphNode, _super); + function GraphNode() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { isContextMenuOpen: false }; + _this.showContextMenu = function (e) { + e.preventDefault(); + core_1.ContextMenu.show(React.createElement(core_1.Menu, null, + React.createElement(core_1.MenuItem, { iconName: "search-around", text: "Search around..." }), + React.createElement(core_1.MenuItem, { iconName: "search", text: "Object viewer" }), + React.createElement(core_1.MenuItem, { iconName: "graph-remove", text: "Remove" }), + React.createElement(core_1.MenuItem, { iconName: "group-objects", text: "Group" }), + React.createElement(core_1.MenuDivider, null), + React.createElement(core_1.MenuItem, { disabled: true, text: "Clicked on node" })), { left: e.clientX, top: e.clientY }, function () { return _this.setState({ isContextMenuOpen: false }); }); + _this.setState({ isContextMenuOpen: true }); + }; + return _this; } - }); - - return jv; - - }))); + GraphNode.prototype.render = function () { + var classes = classNames("context-menu-node", { "context-menu-open": this.state.isContextMenuOpen }); + return React.createElement("div", { className: classes, onContextMenu: this.showContextMenu }); + }; + return GraphNode; + }(React.Component)); + GraphNode = tslib_1.__decorate([ + PureRender + ], GraphNode); + var ContextMenuExample = (function (_super) { + tslib_1.__extends(ContextMenuExample, _super); + function ContextMenuExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.className = "docs-context-menu-example"; + return _this; + } + ContextMenuExample.prototype.renderContextMenu = function (e) { + return (React.createElement(core_1.Menu, null, + React.createElement(core_1.MenuItem, { iconName: "select", text: "Select all" }), + React.createElement(core_1.MenuItem, { iconName: "insert", text: "Insert..." }, + React.createElement(core_1.MenuItem, { iconName: "new-object", text: "Object" }), + React.createElement(core_1.MenuItem, { iconName: "new-text-box", text: "Text box" }), + React.createElement(core_1.MenuItem, { iconName: "star", text: "Astral body" })), + React.createElement(core_1.MenuItem, { iconName: "layout", text: "Layout..." }, + React.createElement(core_1.MenuItem, { iconName: "layout-auto", text: "Auto" }), + React.createElement(core_1.MenuItem, { iconName: "layout-circle", text: "Circle" }), + React.createElement(core_1.MenuItem, { iconName: "layout-grid", text: "Grid" })), + React.createElement(core_1.MenuDivider, null), + React.createElement(core_1.MenuItem, { disabled: true, text: "Clicked at (" + e.clientX + ", " + e.clientY + ")" }))); + }; + ContextMenuExample.prototype.renderExample = function () { + return React.createElement(GraphNode, null); + }; + ContextMenuExample.prototype.renderOptions = function () { + return React.createElement("span", null, "Right-click on node or background."); + }; + return ContextMenuExample; + }(docs_1.BaseExample)); + ContextMenuExample = tslib_1.__decorate([ + core_1.ContextMenuTarget + ], ContextMenuExample); + exports.ContextMenuExample = ContextMenuExample; /***/ }), -/* 461 */ +/* 486 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Georgian [ka] - //! author : Irakli Janiashvili : https://github.com/irakli-janiashvili - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var ka = moment.defineLocale('ka', { - months : { - standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'), - format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_') - }, - monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'), - weekdays : { - standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'), - format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'), - isFormat: /(წინა|შემდეგ)/ - }, - weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'), - weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'), - longDateFormat : { - LT : 'h:mm A', - LTS : 'h:mm:ss A', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY h:mm A', - LLLL : 'dddd, D MMMM YYYY h:mm A' - }, - calendar : { - sameDay : '[დღეს] LT[-ზე]', - nextDay : '[ხვალ] LT[-ზე]', - lastDay : '[გუშინ] LT[-ზე]', - nextWeek : '[შემდეგ] dddd LT[-ზე]', - lastWeek : '[წინა] dddd LT-ზე', - sameElse : 'L' - }, - relativeTime : { - future : function (s) { - return (/(წამი|წუთი|საათი|წელი)/).test(s) ? - s.replace(/ი$/, 'ში') : - s + 'ში'; - }, - past : function (s) { - if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) { - return s.replace(/(ი|ე)$/, 'ის უკან'); - } - if ((/წელი/).test(s)) { - return s.replace(/წელი$/, 'წლის უკან'); - } - }, - s : 'რამდენიმე წამი', - m : 'წუთი', - mm : '%d წუთი', - h : 'საათი', - hh : '%d საათი', - d : 'დღე', - dd : '%d დღე', - M : 'თვე', - MM : '%d თვე', - y : 'წელი', - yy : '%d წელი' - }, - dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/, - ordinal : function (number) { - if (number === 0) { - return number; - } - if (number === 1) { - return number + '-ლი'; - } - if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) { - return 'მე-' + number; - } - return number + '-ე'; - }, - week : { - dow : 1, - doy : 7 + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var DropdownMenuExample = (function (_super) { + tslib_1.__extends(DropdownMenuExample, _super); + function DropdownMenuExample() { + return _super !== null && _super.apply(this, arguments) || this; } - }); - - return ka; - - }))); + DropdownMenuExample.prototype.renderExample = function () { + var compassMenu = (React.createElement(core_1.Menu, null, + React.createElement(core_1.MenuItem, { iconName: "graph", text: "Graph" }), + React.createElement(core_1.MenuItem, { iconName: "map", text: "Map" }), + React.createElement(core_1.MenuItem, { iconName: "th", text: "Table", shouldDismissPopover: false }), + React.createElement(core_1.MenuItem, { iconName: "zoom-to-fit", text: "Nucleus", disabled: true }), + React.createElement(core_1.MenuDivider, null), + React.createElement(core_1.MenuItem, { iconName: "cog", text: "Settings..." }, + React.createElement(core_1.MenuItem, { iconName: "add", text: "Add new application", disabled: true }), + React.createElement(core_1.MenuItem, { iconName: "remove", text: "Remove application" })))); + return (React.createElement(core_1.Popover, { content: compassMenu, position: core_1.Position.RIGHT_BOTTOM }, + React.createElement("button", { className: "pt-button pt-icon-share", type: "button" }, "Open in..."))); + }; + return DropdownMenuExample; + }(docs_1.BaseExample)); + exports.DropdownMenuExample = DropdownMenuExample; /***/ }), -/* 462 */ +/* 487 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Kazakh [kk] - //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var suffixes = { - 0: '-ші', - 1: '-ші', - 2: '-ші', - 3: '-ші', - 4: '-ші', - 5: '-ші', - 6: '-шы', - 7: '-ші', - 8: '-ші', - 9: '-шы', - 10: '-шы', - 20: '-шы', - 30: '-шы', - 40: '-шы', - 50: '-ші', - 60: '-шы', - 70: '-ші', - 80: '-ші', - 90: '-шы', - 100: '-ші' - }; - - var kk = moment.defineLocale('kk', { - months : 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'), - monthsShort : 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'), - weekdays : 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'), - weekdaysShort : 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'), - weekdaysMin : 'жк_дй_сй_ср_бй_жм_сн'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[Бүгін сағат] LT', - nextDay : '[Ертең сағат] LT', - nextWeek : 'dddd [сағат] LT', - lastDay : '[Кеше сағат] LT', - lastWeek : '[Өткен аптаның] dddd [сағат] LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s ішінде', - past : '%s бұрын', - s : 'бірнеше секунд', - m : 'бір минут', - mm : '%d минут', - h : 'бір сағат', - hh : '%d сағат', - d : 'бір күн', - dd : '%d күн', - M : 'бір ай', - MM : '%d ай', - y : 'бір жыл', - yy : '%d жыл' - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/, - ordinal : function (number) { - var a = number % 10, - b = number >= 100 ? 100 : null; - return number + (suffixes[number] || suffixes[a] || suffixes[b]); - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var classNames = __webpack_require__(200); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var intentSelect_1 = __webpack_require__(477); + var INPUT_ID = "EditableTextExample-max-length"; + var EditableTextExample = (function (_super) { + tslib_1.__extends(EditableTextExample, _super); + function EditableTextExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + confirmOnEnterKey: false, + report: "", + selectAllOnFocus: false, + }; + _this.handleIntentChange = docs_1.handleNumberChange(function (intent) { return _this.setState({ intent: intent }); }); + _this.toggleSelectAll = docs_1.handleBooleanChange(function (selectAllOnFocus) { return _this.setState({ selectAllOnFocus: selectAllOnFocus }); }); + _this.toggleSwap = docs_1.handleBooleanChange(function (confirmOnEnterKey) { return _this.setState({ confirmOnEnterKey: confirmOnEnterKey }); }); + _this.handleReportChange = function (report) { return _this.setState({ report: report }); }; + _this.handleMaxLengthChange = function (maxLength) { + if (maxLength === 0) { + _this.setState({ maxLength: undefined }); + } + else { + var report = _this.state.report.slice(0, maxLength); + _this.setState({ maxLength: maxLength, report: report }); + } + }; + return _this; } - }); - - return kk; - - }))); + EditableTextExample.prototype.renderExample = function () { + return (React.createElement("div", { className: "docs-editable-text-example" }, + React.createElement("h1", null, + React.createElement(core_1.EditableText, { intent: this.state.intent, maxLength: this.state.maxLength, placeholder: "Edit title...", selectAllOnFocus: this.state.selectAllOnFocus })), + React.createElement(core_1.EditableText, { intent: this.state.intent, maxLength: this.state.maxLength, maxLines: 12, minLines: 3, multiline: true, placeholder: "Edit report... (controlled)", selectAllOnFocus: this.state.selectAllOnFocus, confirmOnEnterKey: this.state.confirmOnEnterKey, value: this.state.report, onChange: this.handleReportChange }))); + }; + EditableTextExample.prototype.renderOptions = function () { + return [ + [ + React.createElement(intentSelect_1.IntentSelect, { intent: this.state.intent, key: "intent", onChange: this.handleIntentChange }), + React.createElement("div", { className: core_1.Classes.FORM_GROUP, key: "maxlength" }, + React.createElement("label", { className: core_1.Classes.LABEL, htmlFor: INPUT_ID }, "Max length"), + React.createElement(core_1.NumericInput, { id: INPUT_ID, className: classNames(core_1.Classes.FORM_CONTENT, core_1.Classes.FILL), min: 0, max: 300, onValueChange: this.handleMaxLengthChange, placeholder: "Unlimited", value: this.state.maxLength || "" })), + ], + [ + React.createElement(core_1.Switch, { checked: this.state.selectAllOnFocus, label: "Select all on focus", key: "focus", onChange: this.toggleSelectAll }), + React.createElement(core_1.Switch, { checked: this.state.confirmOnEnterKey, label: "Swap keypress for confirm and newline (multiline only)", key: "swap", onChange: this.toggleSwap }), + ], + ]; + }; + return EditableTextExample; + }(docs_1.BaseExample)); + exports.EditableTextExample = EditableTextExample; /***/ }), -/* 463 */ +/* 488 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Cambodian [km] - //! author : Kruy Vanna : https://github.com/kruyvanna - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var km = moment.defineLocale('km', { - months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'), - monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'), - weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), - weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), - weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS : 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[ថ្ងៃនេះ ម៉ោង] LT', - nextDay: '[ស្អែក ម៉ោង] LT', - nextWeek: 'dddd [ម៉ោង] LT', - lastDay: '[ម្សិលមិញ ម៉ោង] LT', - lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%sទៀត', - past: '%sមុន', - s: 'ប៉ុន្មានវិនាទី', - m: 'មួយនាទី', - mm: '%d នាទី', - h: 'មួយម៉ោង', - hh: '%d ម៉ោង', - d: 'មួយថ្ងៃ', - dd: '%d ថ្ងៃ', - M: 'មួយខែ', - MM: '%d ខែ', - y: 'មួយឆ្នាំ', - yy: '%d ឆ្នាំ' - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4 // The week that contains Jan 4th is the first week of the year. + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var FocusExample = (function (_super) { + tslib_1.__extends(FocusExample, _super); + function FocusExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + isFocusActive: true, + }; + _this.toggleFocus = docs_1.handleBooleanChange(function (enabled) { + if (enabled) { + core_1.FocusStyleManager.onlyShowFocusOnTabs(); + } + else { + core_1.FocusStyleManager.alwaysShowFocus(); + } + _this.setState({ isFocusActive: core_1.FocusStyleManager.isActive() }); + }); + return _this; } - }); - - return km; - - }))); + FocusExample.prototype.renderExample = function () { + return (React.createElement("div", null, + React.createElement(core_1.InputGroup, { leftIconName: "star", placeholder: "Test me for focus" }), + React.createElement("br", null), + React.createElement(core_1.Button, { className: "pt-fill", text: "Test me for focus" }))); + }; + FocusExample.prototype.renderOptions = function () { + return [ + [ + React.createElement(core_1.Switch, { checked: this.state.isFocusActive, label: "Only show focus on tab", key: "focus", onChange: this.toggleFocus }), + ], + ]; + }; + return FocusExample; + }(docs_1.BaseExample)); + exports.FocusExample = FocusExample; /***/ }), -/* 464 */ +/* 489 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Kannada [kn] - //! author : Rajeev Naik : https://github.com/rajeevnaikte - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var symbolMap = { - '1': '೧', - '2': '೨', - '3': '೩', - '4': '೪', - '5': '೫', - '6': '೬', - '7': '೭', - '8': '೮', - '9': '೯', - '0': '೦' - }; - var numberMap = { - '೧': '1', - '೨': '2', - '೩': '3', - '೪': '4', - '೫': '5', - '೬': '6', - '೭': '7', - '೮': '8', - '೯': '9', - '೦': '0' + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var classNames = __webpack_require__(200); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var Oscillator = (function () { + function Oscillator(context, freq) { + this.context = context; + this.oscillator = this.context.createOscillator(); + this.oscillator.type = "sine"; + this.oscillator.frequency.value = freq; + this.oscillator.start(0); + } + return Oscillator; + }()); + var Envelope = (function () { + function Envelope(context) { + this.context = context; + this.attackLevel = 0.8; + this.attackTime = 0.1; + this.sustainLevel = 0.3; + this.sustainTime = 0.1; + this.releaseTime = 0.4; + this.gain = this.context.createGain(); + this.amplitude = this.gain.gain; + this.amplitude.value = 0; + } + Envelope.prototype.on = function () { + var now = this.context.currentTime; + this.amplitude.cancelScheduledValues(now); + this.amplitude.setValueAtTime(this.amplitude.value, now); + this.amplitude.linearRampToValueAtTime(this.attackLevel, now + this.attackTime); + this.amplitude.exponentialRampToValueAtTime(this.sustainLevel, now + this.attackTime + this.sustainTime); + }; + Envelope.prototype.off = function () { + var now = this.context.currentTime; + this.amplitude.exponentialRampToValueAtTime(0.01, now + this.releaseTime); + this.amplitude.linearRampToValueAtTime(0, now + this.releaseTime + 0.01); + }; + return Envelope; + }()); + var Scale = { + A3: 220.0, + "A#3": 233.08, + B3: 246.94, + C4: 261.63, + "C#4": 277.18, + D4: 293.66, + "D#4": 311.13, + E4: 329.63, + F4: 349.23, + "F#4": 369.99, + G4: 392.0, + "G#4": 415.3, + A4: 440.0, + "A#4": 466.16, + B4: 493.88, + C5: 523.25, + "C#5": 554.37, + D5: 587.33, + "D#5": 622.25, + E5: 659.25, + F5: 698.46, + "F#5": 739.99, + G5: 783.99, + "G#5": 830.61, + A5: 880.0, + "A#5": 932.33, + B5: 987.77, }; - - var kn = moment.defineLocale('kn', { - months : 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'), - monthsShort : 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬ_ಅಕ್ಟೋಬ_ನವೆಂಬ_ಡಿಸೆಂಬ'.split('_'), - monthsParseExact: true, - weekdays : 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'), - weekdaysShort : 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'), - weekdaysMin : 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'), - longDateFormat : { - LT : 'A h:mm', - LTS : 'A h:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, A h:mm', - LLLL : 'dddd, D MMMM YYYY, A h:mm' - }, - calendar : { - sameDay : '[ಇಂದು] LT', - nextDay : '[ನಾಳೆ] LT', - nextWeek : 'dddd, LT', - lastDay : '[ನಿನ್ನೆ] LT', - lastWeek : '[ಕೊನೆಯ] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s ನಂತರ', - past : '%s ಹಿಂದೆ', - s : 'ಕೆಲವು ಕ್ಷಣಗಳು', - m : 'ಒಂದು ನಿಮಿಷ', - mm : '%d ನಿಮಿಷ', - h : 'ಒಂದು ಗಂಟೆ', - hh : '%d ಗಂಟೆ', - d : 'ಒಂದು ದಿನ', - dd : '%d ದಿನ', - M : 'ಒಂದು ತಿಂಗಳು', - MM : '%d ತಿಂಗಳು', - y : 'ಒಂದು ವರ್ಷ', - yy : '%d ವರ್ಷ' - }, - preparse: function (string) { - return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'ರಾತ್ರಿ') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') { - return hour; - } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'ಸಂಜೆ') { - return hour + 12; + var PianoKey = (function (_super) { + tslib_1.__extends(PianoKey, _super); + function PianoKey(props) { + var _this = _super.call(this, props) || this; + var _a = _this.props, context = _a.context, note = _a.note; + _this.oscillator = new Oscillator(context, Scale[note]); + _this.envelope = new Envelope(context); + _this.oscillator.oscillator.connect(_this.envelope.gain); + _this.envelope.gain.connect(context.destination); + return _this; + } + PianoKey.prototype.componentWillReceiveProps = function (nextProps) { + if (this.props.pressed === false && nextProps.pressed === true) { + this.envelope.on(); } - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'ರಾತ್ರಿ'; - } else if (hour < 10) { - return 'ಬೆಳಿಗ್ಗೆ'; - } else if (hour < 17) { - return 'ಮಧ್ಯಾಹ್ನ'; - } else if (hour < 20) { - return 'ಸಂಜೆ'; - } else { - return 'ರಾತ್ರಿ'; + else if (this.props.pressed === true && nextProps.pressed === false) { + this.envelope.off(); } - }, - dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/, - ordinal : function (number) { - return number + 'ನೇ'; - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. + }; + PianoKey.prototype.render = function () { + var _a = this.props, hotkey = _a.hotkey, note = _a.note, pressed = _a.pressed; + var classes = classNames("piano-key", { + "piano-key-pressed": pressed, + "piano-key-sharp": /\#/.test(note), + }); + var elevation = classNames(pressed ? "pt-elevation-0" : "pt-elevation-2"); + return (React.createElement("div", { className: classes }, + React.createElement("div", { className: elevation }, + React.createElement("div", { className: "piano-key-text" }, + React.createElement("span", { className: "piano-key-note" }, note), + React.createElement("br", null), + React.createElement("kbd", { className: "piano-key-hotkey" }, hotkey))))); + }; + return PianoKey; + }(React.Component)); + var AUDIO_CONTEXT = window["AudioContext"] != null ? new AudioContext() : null; + var HotkeyPiano = (function (_super) { + tslib_1.__extends(HotkeyPiano, _super); + function HotkeyPiano() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + keys: Array.apply(null, Array(24)).map(function () { return false; }), + }; + _this.handleSetPianoRef = function (ref) { + _this.pianoRef = ref; + }; + _this.focusPiano = function () { + if (_this.pianoRef != null) { + _this.pianoRef.focus(); + } + }; + _this.setKey = function (index, keyState) { + return function () { + var keys = _this.state.keys.slice(); + keys[index] = keyState; + _this.setState({ keys: keys }); + }; + }; + return _this; } - }); - - return kn; - - }))); + HotkeyPiano.prototype.renderHotkeys = function () { + return (React.createElement(core_1.Hotkeys, { tabIndex: null }, + React.createElement(core_1.Hotkey, { global: true, label: "Focus the piano", combo: "shift + P", onKeyDown: this.focusPiano }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a C5", combo: "Q", onKeyDown: this.setKey(0, true), onKeyUp: this.setKey(0, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a C#5", combo: "2", onKeyDown: this.setKey(1, true), onKeyUp: this.setKey(1, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a D5", combo: "W", onKeyDown: this.setKey(2, true), onKeyUp: this.setKey(2, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a D#5", combo: "3", onKeyDown: this.setKey(3, true), onKeyUp: this.setKey(3, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a E5", combo: "E", onKeyDown: this.setKey(4, true), onKeyUp: this.setKey(4, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a F5", combo: "R", onKeyDown: this.setKey(5, true), onKeyUp: this.setKey(5, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a F#5", combo: "5", onKeyDown: this.setKey(6, true), onKeyUp: this.setKey(6, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a G5", combo: "T", onKeyDown: this.setKey(7, true), onKeyUp: this.setKey(7, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a G#5", combo: "6", onKeyDown: this.setKey(8, true), onKeyUp: this.setKey(8, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a A5", combo: "Y", onKeyDown: this.setKey(9, true), onKeyUp: this.setKey(9, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a A#5", combo: "7", onKeyDown: this.setKey(10, true), onKeyUp: this.setKey(10, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a B5", combo: "U", onKeyDown: this.setKey(11, true), onKeyUp: this.setKey(11, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a C4", combo: "Z", onKeyDown: this.setKey(12, true), onKeyUp: this.setKey(12, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a C#4", combo: "S", onKeyDown: this.setKey(13, true), onKeyUp: this.setKey(13, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a D4", combo: "X", onKeyDown: this.setKey(14, true), onKeyUp: this.setKey(14, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a D#4", combo: "D", onKeyDown: this.setKey(15, true), onKeyUp: this.setKey(15, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a E4", combo: "C", onKeyDown: this.setKey(16, true), onKeyUp: this.setKey(16, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a F4", combo: "V", onKeyDown: this.setKey(17, true), onKeyUp: this.setKey(17, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a F#4", combo: "G", onKeyDown: this.setKey(18, true), onKeyUp: this.setKey(18, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a G4", combo: "B", onKeyDown: this.setKey(19, true), onKeyUp: this.setKey(19, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a G#4", combo: "H", onKeyDown: this.setKey(20, true), onKeyUp: this.setKey(20, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a A4", combo: "N", onKeyDown: this.setKey(21, true), onKeyUp: this.setKey(21, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a A#4", combo: "J", onKeyDown: this.setKey(22, true), onKeyUp: this.setKey(22, false) }), + React.createElement(core_1.Hotkey, { group: "Piano", label: "Play a B4", combo: "M", onKeyDown: this.setKey(23, true), onKeyUp: this.setKey(23, false) }))); + }; + HotkeyPiano.prototype.renderExample = function () { + var keys = this.state.keys; + if (AUDIO_CONTEXT == null) { + return (React.createElement("div", { tabIndex: 0, className: "piano-example", ref: this.handleSetPianoRef }, "Oops! This browser does not support the WebAudio API needed for this example.")); + } + return (React.createElement("div", { tabIndex: 0, className: "piano-example", ref: this.handleSetPianoRef }, + React.createElement("div", null, + React.createElement(PianoKey, { note: "C5", hotkey: "Q", pressed: keys[0], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "C#5", hotkey: "2", pressed: keys[1], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "D5", hotkey: "W", pressed: keys[2], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "D#5", hotkey: "3", pressed: keys[3], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "E5", hotkey: "E", pressed: keys[4], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "F5", hotkey: "R", pressed: keys[5], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "F#5", hotkey: "5", pressed: keys[6], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "G5", hotkey: "T", pressed: keys[7], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "G#5", hotkey: "6", pressed: keys[8], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "A5", hotkey: "Y", pressed: keys[9], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "A#5", hotkey: "7", pressed: keys[10], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "B5", hotkey: "U", pressed: keys[11], context: AUDIO_CONTEXT })), + React.createElement("div", null, + React.createElement(PianoKey, { note: "C4", hotkey: "Z", pressed: keys[12], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "C#4", hotkey: "S", pressed: keys[13], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "D4", hotkey: "X", pressed: keys[14], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "D#4", hotkey: "D", pressed: keys[15], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "E4", hotkey: "C", pressed: keys[16], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "F4", hotkey: "V", pressed: keys[17], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "F#4", hotkey: "G", pressed: keys[18], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "G4", hotkey: "B", pressed: keys[19], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "G#4", hotkey: "H", pressed: keys[20], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "A4", hotkey: "N", pressed: keys[21], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "A#4", hotkey: "J", pressed: keys[22], context: AUDIO_CONTEXT }), + React.createElement(PianoKey, { note: "B4", hotkey: "M", pressed: keys[23], context: AUDIO_CONTEXT })))); + }; + return HotkeyPiano; + }(docs_1.BaseExample)); + HotkeyPiano = tslib_1.__decorate([ + core_1.HotkeysTarget + ], HotkeyPiano); + exports.HotkeyPiano = HotkeyPiano; /***/ }), -/* 465 */ +/* 490 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Korean [ko] - //! author : Kyungwook, Park : https://github.com/kyungw00k - //! author : Jeeeyul Lee - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var ko = moment.defineLocale('ko', { - months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), - monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), - weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'), - weekdaysShort : '일_월_화_수_목_금_토'.split('_'), - weekdaysMin : '일_월_화_수_목_금_토'.split('_'), - longDateFormat : { - LT : 'A h:mm', - LTS : 'A h:mm:ss', - L : 'YYYY.MM.DD', - LL : 'YYYY년 MMMM D일', - LLL : 'YYYY년 MMMM D일 A h:mm', - LLLL : 'YYYY년 MMMM D일 dddd A h:mm', - l : 'YYYY.MM.DD', - ll : 'YYYY년 MMMM D일', - lll : 'YYYY년 MMMM D일 A h:mm', - llll : 'YYYY년 MMMM D일 dddd A h:mm' - }, - calendar : { - sameDay : '오늘 LT', - nextDay : '내일 LT', - nextWeek : 'dddd LT', - lastDay : '어제 LT', - lastWeek : '지난주 dddd LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s 후', - past : '%s 전', - s : '몇 초', - ss : '%d초', - m : '1분', - mm : '%d분', - h : '한 시간', - hh : '%d시간', - d : '하루', - dd : '%d일', - M : '한 달', - MM : '%d달', - y : '일 년', - yy : '%d년' - }, - dayOfMonthOrdinalParse : /\d{1,2}일/, - ordinal : '%d일', - meridiemParse : /오전|오후/, - isPM : function (token) { - return token === '오후'; - }, - meridiem : function (hour, minute, isUpper) { - return hour < 12 ? '오전' : '오후'; + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var HotkeyTester = (function (_super) { + tslib_1.__extends(HotkeyTester, _super); + function HotkeyTester() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { combo: null }; + _this.handleKeyDown = function (e) { + e.preventDefault(); + e.stopPropagation(); + var combo = core_1.getKeyComboString(e.nativeEvent); + _this.setState({ combo: combo }); + }; + return _this; } - }); - - return ko; - - }))); + HotkeyTester.prototype.renderExample = function () { + return (React.createElement("div", { className: "hotkey-tester-example", onKeyDown: this.handleKeyDown, tabIndex: 0 }, this.renderKeyCombo())); + }; + HotkeyTester.prototype.renderKeyCombo = function () { + var combo = this.state.combo; + if (combo == null) { + return "Click here then press a key combo"; + } + else { + return (React.createElement("div", null, + React.createElement(core_1.KeyCombo, { combo: combo }), + " or ", + React.createElement("code", null, combo))); + } + }; + return HotkeyTester; + }(docs_1.BaseExample)); + exports.HotkeyTester = HotkeyTester; /***/ }), -/* 466 */ +/* 491 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Kyrgyz [ky] - //! author : Chyngyz Arystan uulu : https://github.com/chyngyz - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - - var suffixes = { - 0: '-чү', - 1: '-чи', - 2: '-чи', - 3: '-чү', - 4: '-чү', - 5: '-чи', - 6: '-чы', - 7: '-чи', - 8: '-чи', - 9: '-чу', - 10: '-чу', - 20: '-чы', - 30: '-чу', - 40: '-чы', - 50: '-чү', - 60: '-чы', - 70: '-чи', - 80: '-чи', - 90: '-чу', - 100: '-чү' - }; - - var ky = moment.defineLocale('ky', { - months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'), - monthsShort : 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'), - weekdays : 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'), - weekdaysShort : 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'), - weekdaysMin : 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[Бүгүн саат] LT', - nextDay : '[Эртең саат] LT', - nextWeek : 'dddd [саат] LT', - lastDay : '[Кече саат] LT', - lastWeek : '[Өткен аптанын] dddd [күнү] [саат] LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s ичинде', - past : '%s мурун', - s : 'бирнече секунд', - m : 'бир мүнөт', - mm : '%d мүнөт', - h : 'бир саат', - hh : '%d саат', - d : 'бир күн', - dd : '%d күн', - M : 'бир ай', - MM : '%d ай', - y : 'бир жыл', - yy : '%d жыл' - }, - dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/, - ordinal : function (number) { - var a = number % 10, - b = number >= 100 ? 100 : null; - return number + (suffixes[number] || suffixes[a] || suffixes[b]); - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var MenuExample = (function (_super) { + tslib_1.__extends(MenuExample, _super); + function MenuExample() { + return _super !== null && _super.apply(this, arguments) || this; } - }); - - return ky; - - }))); + MenuExample.prototype.renderExample = function () { + return (React.createElement("div", null, + React.createElement(core_1.Menu, { className: "docs-inline-example " + core_1.Classes.ELEVATION_1 }, + React.createElement(core_1.MenuItem, { iconName: "new-text-box", text: "New text box" }), + React.createElement(core_1.MenuItem, { iconName: "new-object", text: "New object" }), + React.createElement(core_1.MenuItem, { iconName: "new-link", text: "New link" }), + React.createElement(core_1.MenuDivider, null), + React.createElement(core_1.MenuItem, { iconName: "cog", label: React.createElement("span", { className: "pt-icon-standard pt-icon-share" }), text: "Settings..." })), + React.createElement(core_1.Menu, { className: "docs-inline-example " + core_1.Classes.ELEVATION_1 }, + React.createElement(core_1.MenuDivider, { title: "Edit" }), + React.createElement(core_1.MenuItem, { iconName: "cut", text: "Cut", label: "⌘X" }), + React.createElement(core_1.MenuItem, { iconName: "duplicate", text: "Copy", label: "⌘C" }), + React.createElement(core_1.MenuItem, { iconName: "clipboard", text: "Paste", label: "⌘V", disabled: true }), + React.createElement(core_1.MenuDivider, { title: "Text" }), + React.createElement(core_1.MenuItem, { disabled: true, iconName: "align-left", text: "Alignment" }, + React.createElement(core_1.MenuItem, { iconName: "align-left", text: "Left" }), + React.createElement(core_1.MenuItem, { iconName: "align-center", text: "Center" }), + React.createElement(core_1.MenuItem, { iconName: "align-right", text: "Right" }), + React.createElement(core_1.MenuItem, { iconName: "align-justify", text: "Justify" })), + React.createElement(core_1.MenuItem, { iconName: "style", text: "Style" }, + React.createElement(core_1.MenuItem, { iconName: "bold", text: "Bold" }), + React.createElement(core_1.MenuItem, { iconName: "italic", text: "Italic" }), + React.createElement(core_1.MenuItem, { iconName: "underline", text: "Underline" })), + React.createElement(core_1.MenuItem, { iconName: "asterisk", text: "Miscellaneous", submenuViewportMargin: { left: 240 } }, + React.createElement(core_1.MenuItem, { iconName: "badge", text: "Badge" }), + React.createElement(core_1.MenuItem, { iconName: "book", text: "Book" }), + React.createElement(core_1.MenuItem, { iconName: "more", text: "More" }, + React.createElement(core_1.MenuItem, { iconName: "briefcase", text: "Briefcase" }), + React.createElement(core_1.MenuItem, { iconName: "calculator", text: "Calculator" }), + React.createElement(core_1.MenuItem, { iconName: "dollar", text: "Dollar" }), + React.createElement(core_1.MenuItem, { iconName: "dot", text: "Shapes" }, + React.createElement(core_1.MenuItem, { iconName: "full-circle", text: "Full circle" }), + React.createElement(core_1.MenuItem, { iconName: "heart", text: "Heart" }), + React.createElement(core_1.MenuItem, { iconName: "ring", text: "Ring" }), + React.createElement(core_1.MenuItem, { iconName: "square", text: "Square" }))))))); + }; + return MenuExample; + }(docs_1.BaseExample)); + exports.MenuExample = MenuExample; /***/ }), -/* 467 */ +/* 492 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Luxembourgish [lb] - //! author : mweimerskirch : https://github.com/mweimerskirch - //! author : David Raison : https://github.com/kwisatz - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - 'm': ['eng Minutt', 'enger Minutt'], - 'h': ['eng Stonn', 'enger Stonn'], - 'd': ['een Dag', 'engem Dag'], - 'M': ['ee Mount', 'engem Mount'], - 'y': ['ee Joer', 'engem Joer'] - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } - function processFutureTime(string) { - var number = string.substr(0, string.indexOf(' ')); - if (eifelerRegelAppliesToNumber(number)) { - return 'a ' + string; - } - return 'an ' + string; - } - function processPastTime(string) { - var number = string.substr(0, string.indexOf(' ')); - if (eifelerRegelAppliesToNumber(number)) { - return 'viru ' + string; - } - return 'virun ' + string; - } - /** - * Returns true if the word before the given number loses the '-n' ending. - * e.g. 'an 10 Deeg' but 'a 5 Deeg' - * - * @param number {integer} - * @returns {boolean} - */ - function eifelerRegelAppliesToNumber(number) { - number = parseInt(number, 10); - if (isNaN(number)) { - return false; - } - if (number < 0) { - // Negative Number --> always true - return true; - } else if (number < 10) { - // Only 1 digit - if (4 <= number && number <= 7) { - return true; - } - return false; - } else if (number < 100) { - // 2 digits - var lastDigit = number % 10, firstDigit = number / 10; - if (lastDigit === 0) { - return eifelerRegelAppliesToNumber(firstDigit); - } - return eifelerRegelAppliesToNumber(lastDigit); - } else if (number < 10000) { - // 3 or 4 digits --> recursively check first digit - while (number >= 10) { - number = number / 10; - } - return eifelerRegelAppliesToNumber(number); - } else { - // Anything larger than 4 digits: recursively check first n-3 digits - number = number / 1000; - return eifelerRegelAppliesToNumber(number); - } - } - - var lb = moment.defineLocale('lb', { - months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), - monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'), - monthsParseExact : true, - weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'), - weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'), - weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'), - weekdaysParseExact : true, - longDateFormat: { - LT: 'H:mm [Auer]', - LTS: 'H:mm:ss [Auer]', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm [Auer]', - LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]' - }, - calendar: { - sameDay: '[Haut um] LT', - sameElse: 'L', - nextDay: '[Muer um] LT', - nextWeek: 'dddd [um] LT', - lastDay: '[Gëschter um] LT', - lastWeek: function () { - // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule - switch (this.day()) { - case 2: - case 4: - return '[Leschten] dddd [um] LT'; - default: - return '[Leschte] dddd [um] LT'; - } - } - }, - relativeTime : { - future : processFutureTime, - past : processPastTime, - s : 'e puer Sekonnen', - m : processRelativeTime, - mm : '%d Minutten', - h : processRelativeTime, - hh : '%d Stonnen', - d : processRelativeTime, - dd : '%d Deeg', - M : processRelativeTime, - MM : '%d Méint', - y : processRelativeTime, - yy : '%d Joer' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4 // The week that contains Jan 4th is the first week of the year. + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var classNames = __webpack_require__(200); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var intentSelect_1 = __webpack_require__(477); + var MIN_VALUES = [ + { label: "None", value: null }, + { label: "-10", value: -10 }, + { label: "0", value: 0 }, + { label: "10", value: 10 }, + ]; + var MAX_VALUES = [ + { label: "None", value: null }, + { label: "20", value: 20 }, + { label: "50", value: 50 }, + { label: "100", value: 100 }, + ]; + var BUTTON_POSITIONS = [ + { label: "None", value: null }, + { label: "Left", value: core_1.Position.LEFT }, + { label: "Right", value: core_1.Position.RIGHT }, + ]; + var NumericInputBasicExample = (function (_super) { + tslib_1.__extends(NumericInputBasicExample, _super); + function NumericInputBasicExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + buttonPositionIndex: 2, + intent: core_1.Intent.NONE, + majorStepSizeIndex: 1, + maxValueIndex: 0, + minValueIndex: 0, + minorStepSizeIndex: 1, + numericCharsOnly: true, + selectAllOnFocus: false, + selectAllOnIncrement: false, + showDisabled: false, + showFullWidth: false, + showLargeSize: false, + showLeftIcon: false, + showReadOnly: false, + stepSizeIndex: 0, + value: "", + }; + _this.handleMaxValueChange = docs_1.handleNumberChange(function (maxValueIndex) { return _this.setState({ maxValueIndex: maxValueIndex }); }); + _this.handleMinValueChange = docs_1.handleNumberChange(function (minValueIndex) { return _this.setState({ minValueIndex: minValueIndex }); }); + _this.handleIntentChange = docs_1.handleNumberChange(function (intent) { return _this.setState({ intent: intent }); }); + _this.handleButtonPositionChange = docs_1.handleNumberChange(function (buttonPositionIndex) { + _this.setState({ buttonPositionIndex: buttonPositionIndex }); + }); + _this.toggleDisabled = docs_1.handleBooleanChange(function (showDisabled) { return _this.setState({ showDisabled: showDisabled }); }); + _this.toggleLeftIcon = docs_1.handleBooleanChange(function (showLeftIcon) { return _this.setState({ showLeftIcon: showLeftIcon }); }); + _this.toggleReadOnly = docs_1.handleBooleanChange(function (showReadOnly) { return _this.setState({ showReadOnly: showReadOnly }); }); + _this.toggleFullWidth = docs_1.handleBooleanChange(function (showFullWidth) { return _this.setState({ showFullWidth: showFullWidth }); }); + _this.toggleLargeSize = docs_1.handleBooleanChange(function (showLargeSize) { return _this.setState({ showLargeSize: showLargeSize }); }); + _this.toggleNumericCharsOnly = docs_1.handleBooleanChange(function (numericCharsOnly) { return _this.setState({ numericCharsOnly: numericCharsOnly }); }); + _this.toggleSelectAllOnFocus = docs_1.handleBooleanChange(function (selectAllOnFocus) { return _this.setState({ selectAllOnFocus: selectAllOnFocus }); }); + _this.toggleSelectAllOnIncrement = docs_1.handleBooleanChange(function (selectAllOnIncrement) { + _this.setState({ selectAllOnIncrement: selectAllOnIncrement }); + }); + _this.handleValueChange = function (_valueAsNumber, valueAsString) { + _this.setState({ value: valueAsString }); + }; + return _this; } - }); - - return lb; - - }))); + NumericInputBasicExample.prototype.renderOptions = function () { + var _a = this.state, buttonPositionIndex = _a.buttonPositionIndex, intent = _a.intent, maxValueIndex = _a.maxValueIndex, minValueIndex = _a.minValueIndex, numericCharsOnly = _a.numericCharsOnly, selectAllOnFocus = _a.selectAllOnFocus, selectAllOnIncrement = _a.selectAllOnIncrement, showDisabled = _a.showDisabled, showFullWidth = _a.showFullWidth, showLargeSize = _a.showLargeSize, showReadOnly = _a.showReadOnly, showLeftIcon = _a.showLeftIcon; + return [ + [ + React.createElement("label", { className: core_1.Classes.LABEL, key: "modifierslabel" }, "Modifiers"), + this.renderSwitch("Numeric characters only", numericCharsOnly, this.toggleNumericCharsOnly), + this.renderSwitch("Select all on focus", selectAllOnFocus, this.toggleSelectAllOnFocus), + this.renderSwitch("Select all on increment", selectAllOnIncrement, this.toggleSelectAllOnIncrement), + this.renderSwitch("Disabled", showDisabled, this.toggleDisabled), + this.renderSwitch("Read-only", showReadOnly, this.toggleReadOnly), + this.renderSwitch("Left icon", showLeftIcon, this.toggleLeftIcon), + this.renderSwitch("Full width", showFullWidth, this.toggleFullWidth), + this.renderSwitch("Large", showLargeSize, this.toggleLargeSize), + ], + [ + this.renderSelectMenu("Minimum value", minValueIndex, MIN_VALUES, this.handleMinValueChange), + this.renderSelectMenu("Maximum value", maxValueIndex, MAX_VALUES, this.handleMaxValueChange), + ], + [ + this.renderSelectMenu("Button position", buttonPositionIndex, BUTTON_POSITIONS, this.handleButtonPositionChange), + React.createElement(intentSelect_1.IntentSelect, { intent: intent, key: "intent", onChange: this.handleIntentChange }), + ], + ]; + }; + NumericInputBasicExample.prototype.renderExample = function () { + return (React.createElement(core_1.NumericInput, { allowNumericCharactersOnly: this.state.numericCharsOnly, buttonPosition: BUTTON_POSITIONS[this.state.buttonPositionIndex].value, className: classNames((_a = {}, _a[core_1.Classes.FILL] = this.state.showFullWidth, _a)), intent: this.state.intent, large: this.state.showLargeSize, min: MIN_VALUES[this.state.minValueIndex].value, max: MAX_VALUES[this.state.maxValueIndex].value, disabled: this.state.showDisabled, readOnly: this.state.showReadOnly, leftIconName: this.state.showLeftIcon ? "dollar" : null, placeholder: "Enter a number...", selectAllOnFocus: this.state.selectAllOnFocus, selectAllOnIncrement: this.state.selectAllOnIncrement, onValueChange: this.handleValueChange, value: this.state.value })); + var _a; + }; + NumericInputBasicExample.prototype.renderSwitch = function (label, checked, onChange) { + return React.createElement(core_1.Switch, { checked: checked, label: label, key: label, onChange: onChange }); + }; + NumericInputBasicExample.prototype.renderSelectMenu = function (label, selectedValue, options, onChange) { + return (React.createElement("label", { className: core_1.Classes.LABEL, key: label }, + label, + React.createElement("div", { className: core_1.Classes.SELECT }, + React.createElement("select", { value: selectedValue, onChange: onChange }, this.renderSelectMenuOptions(options))))); + }; + NumericInputBasicExample.prototype.renderSelectMenuOptions = function (options) { + return options.map(function (option, index) { + return (React.createElement("option", { key: index, value: index }, option.label)); + }); + }; + return NumericInputBasicExample; + }(docs_1.BaseExample)); + exports.NumericInputBasicExample = NumericInputBasicExample; /***/ }), -/* 468 */ +/* 493 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Lao [lo] - //! author : Ryan Hart : https://github.com/ryanhart2 - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var lo = moment.defineLocale('lo', { - months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'), - monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'), - weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), - weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), - weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'ວັນdddd D MMMM YYYY HH:mm' - }, - meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/, - isPM: function (input) { - return input === 'ຕອນແລງ'; - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return 'ຕອນເຊົ້າ'; - } else { - return 'ຕອນແລງ'; - } - }, - calendar : { - sameDay : '[ມື້ນີ້ເວລາ] LT', - nextDay : '[ມື້ອື່ນເວລາ] LT', - nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT', - lastDay : '[ມື້ວານນີ້ເວລາ] LT', - lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'ອີກ %s', - past : '%sຜ່ານມາ', - s : 'ບໍ່ເທົ່າໃດວິນາທີ', - m : '1 ນາທີ', - mm : '%d ນາທີ', - h : '1 ຊົ່ວໂມງ', - hh : '%d ຊົ່ວໂມງ', - d : '1 ມື້', - dd : '%d ມື້', - M : '1 ເດືອນ', - MM : '%d ເດືອນ', - y : '1 ປີ', - yy : '%d ປີ' - }, - dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/, - ordinal : function (number) { - return 'ທີ່' + number; + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var NumberAbbreviation = { + BILLION: "b", + MILLION: "m", + THOUSAND: "k", + }; + var NUMBER_ABBREVIATION_REGEX = /((\.\d+)|(\d+(\.\d+)?))(k|m|b)\b/gi; + var SCIENTIFIC_NOTATION_REGEX = /((\.\d+)|(\d+(\.\d+)?))(e\d+)\b/gi; + var NumericInputExtendedExample = (function (_super) { + tslib_1.__extends(NumericInputExtendedExample, _super); + function NumericInputExtendedExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + value: "", + }; + _this.handleBlur = function (e) { + _this.handleConfirm(e.target.value); + }; + _this.handleKeyDown = function (e) { + if (e.keyCode === core_1.Keys.ENTER) { + _this.handleConfirm(e.target.value); + } + }; + _this.handleValueChange = function (_valueAsNumber, valueAsString) { + _this.setState({ value: valueAsString }); + }; + _this.handleConfirm = function (value) { + var result = value; + result = _this.expandScientificNotationTerms(result); + result = _this.expandNumberAbbreviationTerms(result); + result = _this.evaluateSimpleMathExpression(result); + result = _this.nanStringToEmptyString(result); + _this.setState({ value: result }); + _this.forceUpdate(); + }; + _this.expandScientificNotationTerms = function (value) { + if (!value) { + return value; + } + return value.replace(SCIENTIFIC_NOTATION_REGEX, _this.expandScientificNotationNumber); + }; + _this.expandNumberAbbreviationTerms = function (value) { + if (!value) { + return value; + } + return value.replace(NUMBER_ABBREVIATION_REGEX, _this.expandAbbreviatedNumber); + }; + _this.evaluateSimpleMathExpression = function (value) { + if (!value) { + return value; + } + var terms = value.split(/[+\-]/); + var trimmedTerms = terms.map(function (term) { return term.trim(); }); + var numericTerms = trimmedTerms.map(function (term) { return +term; }); + var illegalTerms = numericTerms.filter(function (term) { return isNaN(term); }); + if (illegalTerms.length > 0) { + return ""; + } + var total = 0; + var matches = value.match(/[+\-]*\s*(\.\d+|\d+(\.\d+)?)/gi) || []; + for (var _i = 0, matches_1 = matches; _i < matches_1.length; _i++) { + var match = matches_1[_i]; + var compactedMatch = match.replace(/\s/g, ""); + total += parseFloat(compactedMatch); + } + var roundedTotal = _this.roundValue(total); + return roundedTotal.toString(); + }; + _this.nanStringToEmptyString = function (value) { + return value === "NaN" ? "" : value; + }; + _this.expandAbbreviatedNumber = function (value) { + if (!value) { + return value; + } + var number = +value.substring(0, value.length - 1); + var lastChar = value.charAt(value.length - 1).toLowerCase(); + var result; + if (lastChar === NumberAbbreviation.THOUSAND) { + result = number * 1e3; + } + else if (lastChar === NumberAbbreviation.MILLION) { + result = number * 1e6; + } + else if (lastChar === NumberAbbreviation.BILLION) { + result = number * 1e9; + } + var isValid = result != null && !isNaN(result); + if (isValid) { + result = _this.roundValue(result); + } + return isValid ? result.toString() : ""; + }; + _this.expandScientificNotationNumber = function (value) { + if (!value) { + return value; + } + return (+value).toString(); + }; + _this.roundValue = function (value, precision) { + if (precision === void 0) { precision = 1; } + return Math.round(value * Math.pow(10, precision)) / Math.pow(10, precision); + }; + return _this; } - }); - - return lo; - - }))); + NumericInputExtendedExample.prototype.renderExample = function () { + var value = this.state.value; + return (React.createElement("div", null, + React.createElement(core_1.NumericInput, { allowNumericCharactersOnly: false, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, onValueChange: this.handleValueChange, placeholder: "Enter a number or expression...", value: value }))); + }; + return NumericInputExtendedExample; + }(docs_1.BaseExample)); + exports.NumericInputExtendedExample = NumericInputExtendedExample; /***/ }), -/* 469 */ +/* 494 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Lithuanian [lt] - //! author : Mindaugas Mozūras : https://github.com/mmozuras - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var units = { - 'm' : 'minutė_minutės_minutę', - 'mm': 'minutės_minučių_minutes', - 'h' : 'valanda_valandos_valandą', - 'hh': 'valandos_valandų_valandas', - 'd' : 'diena_dienos_dieną', - 'dd': 'dienos_dienų_dienas', - 'M' : 'mėnuo_mėnesio_mėnesį', - 'MM': 'mėnesiai_mėnesių_mėnesius', - 'y' : 'metai_metų_metus', - 'yy': 'metai_metų_metus' - }; - function translateSeconds(number, withoutSuffix, key, isFuture) { - if (withoutSuffix) { - return 'kelios sekundės'; - } else { - return isFuture ? 'kelių sekundžių' : 'kelias sekundes'; - } - } - function translateSingular(number, withoutSuffix, key, isFuture) { - return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]); - } - function special(number) { - return number % 10 === 0 || (number > 10 && number < 20); - } - function forms(key) { - return units[key].split('_'); - } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - if (number === 1) { - return result + translateSingular(number, withoutSuffix, key[0], isFuture); - } else if (withoutSuffix) { - return result + (special(number) ? forms(key)[1] : forms(key)[0]); - } else { - if (isFuture) { - return result + forms(key)[1]; - } else { - return result + (special(number) ? forms(key)[1] : forms(key)[2]); - } - } - } - var lt = moment.defineLocale('lt', { - months : { - format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'), - standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'), - isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/ - }, - monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'), - weekdays : { - format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'), - standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'), - isFormat: /dddd HH:mm/ - }, - weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'), - weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'YYYY-MM-DD', - LL : 'YYYY [m.] MMMM D [d.]', - LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]', - LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]', - l : 'YYYY-MM-DD', - ll : 'YYYY [m.] MMMM D [d.]', - lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]', - llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]' - }, - calendar : { - sameDay : '[Šiandien] LT', - nextDay : '[Rytoj] LT', - nextWeek : 'dddd LT', - lastDay : '[Vakar] LT', - lastWeek : '[Praėjusį] dddd LT', - sameElse : 'L' - }, - relativeTime : { - future : 'po %s', - past : 'prieš %s', - s : translateSeconds, - m : translateSingular, - mm : translate, - h : translateSingular, - hh : translate, - d : translateSingular, - dd : translate, - M : translateSingular, - MM : translate, - y : translateSingular, - yy : translate - }, - dayOfMonthOrdinalParse: /\d{1,2}-oji/, - ordinal : function (number) { - return number + '-oji'; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var NonIdealStateExample = (function (_super) { + tslib_1.__extends(NonIdealStateExample, _super); + function NonIdealStateExample() { + return _super !== null && _super.apply(this, arguments) || this; } - }); - - return lt; - - }))); + NonIdealStateExample.prototype.renderExample = function () { + var description = (React.createElement("span", null, + "Your search didn't match any files.", + React.createElement("br", null), + "Try searching for something else.")); + return (React.createElement(core_1.NonIdealState, { visual: "search", title: "No search results", description: description, action: React.createElement(core_1.InputGroup, { className: "pt-round", leftIconName: "search", placeholder: "Search..." }) })); + }; + return NonIdealStateExample; + }(docs_1.BaseExample)); + exports.NonIdealStateExample = NonIdealStateExample; /***/ }), -/* 470 */ +/* 495 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Latvian [lv] - //! author : Kristaps Karlsons : https://github.com/skakri - //! author : Jānis Elmeris : https://github.com/JanisE - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var units = { - 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'), - 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'), - 'h': 'stundas_stundām_stunda_stundas'.split('_'), - 'hh': 'stundas_stundām_stunda_stundas'.split('_'), - 'd': 'dienas_dienām_diena_dienas'.split('_'), - 'dd': 'dienas_dienām_diena_dienas'.split('_'), - 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), - 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), - 'y': 'gada_gadiem_gads_gadi'.split('_'), - 'yy': 'gada_gadiem_gads_gadi'.split('_') - }; - /** - * @param withoutSuffix boolean true = a length of time; false = before/after a period of time. - */ - function format(forms, number, withoutSuffix) { - if (withoutSuffix) { - // E.g. "21 minūte", "3 minūtes". - return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3]; - } else { - // E.g. "21 minūtes" as in "pēc 21 minūtes". - // E.g. "3 minūtēm" as in "pēc 3 minūtēm". - return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1]; - } - } - function relativeTimeWithPlural(number, withoutSuffix, key) { - return number + ' ' + format(units[key], number, withoutSuffix); - } - function relativeTimeWithSingular(number, withoutSuffix, key) { - return format(units[key], number, withoutSuffix); - } - function relativeSeconds(number, withoutSuffix) { - return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm'; - } - - var lv = moment.defineLocale('lv', { - months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'), - monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'), - weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'), - weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'), - weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY.', - LL : 'YYYY. [gada] D. MMMM', - LLL : 'YYYY. [gada] D. MMMM, HH:mm', - LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm' + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var classNames = __webpack_require__(200); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var INTERACTION_KINDS = [ + { label: "Click", value: core_1.PopoverInteractionKind.CLICK.toString() }, + { label: "Click (target only)", value: core_1.PopoverInteractionKind.CLICK_TARGET_ONLY.toString() }, + { label: "Hover", value: core_1.PopoverInteractionKind.HOVER.toString() }, + { label: "Hover (target only)", value: core_1.PopoverInteractionKind.HOVER_TARGET_ONLY.toString() }, + ]; + var CONSTRAINTS = [ + { + label: "None", + value: "[]", }, - calendar : { - sameDay : '[Šodien pulksten] LT', - nextDay : '[Rīt pulksten] LT', - nextWeek : 'dddd [pulksten] LT', - lastDay : '[Vakar pulksten] LT', - lastWeek : '[Pagājušā] dddd [pulksten] LT', - sameElse : 'L' + { + label: "Smart positioning", + value: JSON.stringify([ + { + attachment: "together", + to: "scrollParent", + }, + ]), }, - relativeTime : { - future : 'pēc %s', - past : 'pirms %s', - s : relativeSeconds, - m : relativeTimeWithSingular, - mm : relativeTimeWithPlural, - h : relativeTimeWithSingular, - hh : relativeTimeWithPlural, - d : relativeTimeWithSingular, - dd : relativeTimeWithPlural, - M : relativeTimeWithSingular, - MM : relativeTimeWithPlural, - y : relativeTimeWithSingular, - yy : relativeTimeWithPlural + { + label: "Pin to window", + value: JSON.stringify([ + { + attachment: "together", + pin: true, + to: "window", + }, + ]), }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + ]; + var PopoverExample = (function (_super) { + tslib_1.__extends(PopoverExample, _super); + function PopoverExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + canEscapeKeyClose: true, + exampleIndex: 0, + inheritDarkTheme: true, + inline: false, + interactionKind: core_1.PopoverInteractionKind.CLICK, + isModal: false, + position: core_1.Position.RIGHT, + sliderValue: 5, + tetherConstraints: [], + useSmartArrowPositioning: true, + }; + _this.className = "docs-popover-example"; + _this.handleConstraintChange = docs_1.handleStringChange(function (constraints) { + _this.setState({ tetherConstraints: JSON.parse(constraints) }); + }); + _this.handleExampleIndexChange = docs_1.handleNumberChange(function (exampleIndex) { return _this.setState({ exampleIndex: exampleIndex }); }); + _this.handleInteractionChange = docs_1.handleNumberChange(function (interactionKind) { + var isModal = _this.state.isModal && interactionKind === core_1.PopoverInteractionKind.CLICK; + _this.setState({ interactionKind: interactionKind, isModal: isModal }); + }); + _this.handlePositionChange = docs_1.handleNumberChange(function (position) { return _this.setState({ position: position }); }); + _this.toggleArrows = docs_1.handleBooleanChange(function (useSmartArrowPositioning) { + _this.setState({ useSmartArrowPositioning: useSmartArrowPositioning }); + }); + _this.toggleEscapeKey = docs_1.handleBooleanChange(function (canEscapeKeyClose) { return _this.setState({ canEscapeKeyClose: canEscapeKeyClose }); }); + _this.toggleInheritDarkTheme = docs_1.handleBooleanChange(function (inheritDarkTheme) { return _this.setState({ inheritDarkTheme: inheritDarkTheme }); }); + _this.toggleInline = docs_1.handleBooleanChange(function (inline) { + if (inline) { + _this.setState({ + inline: inline, + inheritDarkTheme: false, + isModal: false, + tetherConstraints: [], + }); + } + else { + _this.setState({ inline: inline }); + } + }); + _this.toggleModal = docs_1.handleBooleanChange(function (isModal) { return _this.setState({ isModal: isModal }); }); + _this.handleSliderChange = function (value) { return _this.setState({ sliderValue: value }); }; + return _this; } - }); - - return lv; - - }))); + PopoverExample.prototype.renderExample = function () { + var constraints = this.state.tetherConstraints; + var popoverClassName = classNames({ + "pt-popover-content-sizing": this.state.exampleIndex <= 2, + }); + return (React.createElement(core_1.Popover, tslib_1.__assign({ content: this.getContents(this.state.exampleIndex), popoverClassName: popoverClassName, tetherOptions: { constraints: constraints } }, this.state), + React.createElement("button", { className: "pt-button pt-intent-primary" }, "Popover target"))); + }; + PopoverExample.prototype.renderOptions = function () { + var isModalDisabled = this.state.inline || this.state.interactionKind !== core_1.PopoverInteractionKind.CLICK; + var inheritDarkThemeDisabled = this.state.inline; + return [ + [ + React.createElement("label", { className: core_1.Classes.LABEL, key: "example" }, + "Example content", + React.createElement("div", { className: core_1.Classes.SELECT }, + React.createElement("select", { value: this.state.exampleIndex, onChange: this.handleExampleIndexChange }, + React.createElement("option", { value: "0" }, "Text"), + React.createElement("option", { value: "1" }, "Input"), + React.createElement("option", { value: "2" }, "Slider"), + React.createElement("option", { value: "3" }, "Menu"), + React.createElement("option", { value: "4" }, "Popover Example"), + React.createElement("option", { value: "5" }, "Empty")))), + React.createElement(core_1.Switch, { checked: this.state.isModal, disabled: isModalDisabled, key: "modal", label: "Modal (requires Click interaction kind)", onChange: this.toggleModal }), + React.createElement("br", { key: "break" }), + React.createElement(core_1.RadioGroup, { key: "interaction", label: "Interaction kind", selectedValue: this.state.interactionKind.toString(), options: INTERACTION_KINDS, onChange: this.handleInteractionChange }), + ], + [ + React.createElement("label", { className: core_1.Classes.LABEL, key: "position" }, + "Popover position", + React.createElement("div", { className: core_1.Classes.SELECT }, + React.createElement("select", { value: this.state.position, onChange: this.handlePositionChange }, + React.createElement("option", { value: core_1.Position.TOP.toString() }, "Top"), + React.createElement("option", { value: core_1.Position.TOP_RIGHT.toString() }, "Top right"), + React.createElement("option", { value: core_1.Position.RIGHT_TOP.toString() }, "Right top"), + React.createElement("option", { value: core_1.Position.RIGHT.toString() }, "Right"), + React.createElement("option", { value: core_1.Position.RIGHT_BOTTOM.toString() }, "Right bottom"), + React.createElement("option", { value: core_1.Position.BOTTOM_RIGHT.toString() }, "Bottom right"), + React.createElement("option", { value: core_1.Position.BOTTOM.toString() }, "Bottom"), + React.createElement("option", { value: core_1.Position.BOTTOM_LEFT.toString() }, "Bottom left"), + React.createElement("option", { value: core_1.Position.LEFT_BOTTOM.toString() }, "Left bottom"), + React.createElement("option", { value: core_1.Position.LEFT.toString() }, "Left"), + React.createElement("option", { value: core_1.Position.LEFT_TOP.toString() }, "Left top"), + React.createElement("option", { value: core_1.Position.TOP_LEFT.toString() }, "Top left")))), + React.createElement(core_1.Switch, { checked: this.state.useSmartArrowPositioning, label: "Smart arrow positioning", key: "smartarrow", onChange: this.toggleArrows }), + React.createElement(core_1.Switch, { checked: this.state.canEscapeKeyClose, label: "Can escape key close", key: "escape", onChange: this.toggleEscapeKey }), + React.createElement(core_1.Switch, { checked: this.state.inline, label: "Inline", key: "inline", onChange: this.toggleInline }), + React.createElement(core_1.Switch, { checked: this.state.inheritDarkTheme, disabled: inheritDarkThemeDisabled, label: "Should inherit dark theme", key: "shouldinheritdarktheme", onChange: this.toggleInheritDarkTheme }), + React.createElement("br", { key: "break" }), + React.createElement(core_1.RadioGroup, { disabled: this.state.inline, key: "constraints", label: "Constraints", onChange: this.handleConstraintChange, options: CONSTRAINTS, selectedValue: JSON.stringify(this.state.tetherConstraints) }), + ], + ]; + }; + PopoverExample.prototype.getContents = function (index) { + return [ + React.createElement("div", null, + React.createElement("h5", null, "Popover title"), + React.createElement("p", null, "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."), + React.createElement("button", { className: classNames(core_1.Classes.BUTTON, core_1.Classes.POPOVER_DISMISS) }, "Dismiss")), + React.createElement("div", null, + React.createElement("label", { className: core_1.Classes.LABEL }, + "Enter some text", + React.createElement("input", { autoFocus: true, className: core_1.Classes.INPUT, type: "text" }))), + React.createElement(core_1.Slider, { min: 0, max: 10, onChange: this.handleSliderChange, value: this.state.sliderValue }), + React.createElement(core_1.Menu, null, + React.createElement(core_1.MenuDivider, { title: "Edit" }), + React.createElement(core_1.MenuItem, { iconName: "cut", text: "Cut", label: "⌘X" }), + React.createElement(core_1.MenuItem, { iconName: "duplicate", text: "Copy", label: "⌘C" }), + React.createElement(core_1.MenuItem, { iconName: "clipboard", text: "Paste", label: "⌘V", disabled: true }), + React.createElement(core_1.MenuDivider, { title: "Text" }), + React.createElement(core_1.MenuItem, { iconName: "align-left", text: "Alignment" }, + React.createElement(core_1.MenuItem, { iconName: "align-left", text: "Left" }), + React.createElement(core_1.MenuItem, { iconName: "align-center", text: "Center" }), + React.createElement(core_1.MenuItem, { iconName: "align-right", text: "Right" }), + React.createElement(core_1.MenuItem, { iconName: "align-justify", text: "Justify" })), + React.createElement(core_1.MenuItem, { iconName: "style", text: "Style" }, + React.createElement(core_1.MenuItem, { iconName: "bold", text: "Bold" }), + React.createElement(core_1.MenuItem, { iconName: "italic", text: "Italic" }), + React.createElement(core_1.MenuItem, { iconName: "underline", text: "Underline" }))), + React.createElement(PopoverExample, tslib_1.__assign({}, this.props)), + ][index]; + }; + return PopoverExample; + }(docs_1.BaseExample)); + exports.PopoverExample = PopoverExample; /***/ }), -/* 471 */ +/* 496 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Montenegrin [me] - //! author : Miodrag Nikač : https://github.com/miodragnikac - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var translator = { - words: { //Different grammatical cases - m: ['jedan minut', 'jednog minuta'], - mm: ['minut', 'minuta', 'minuta'], - h: ['jedan sat', 'jednog sata'], - hh: ['sat', 'sata', 'sati'], - dd: ['dan', 'dana', 'dana'], - MM: ['mjesec', 'mjeseca', 'mjeseci'], - yy: ['godina', 'godine', 'godina'] - }, - correctGrammaticalCase: function (number, wordKey) { - return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]); - }, - translate: function (number, withoutSuffix, key) { - var wordKey = translator.words[key]; - if (key.length === 1) { - return withoutSuffix ? wordKey[0] : wordKey[1]; - } else { - return number + ' ' + translator.correctGrammaticalCase(number, wordKey); - } - } - }; - - var me = moment.defineLocale('me', { - months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'), - monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'), - monthsParseExact : true, - weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'), - weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact : true, - longDateFormat: { - LT: 'H:mm', - LTS : 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sjutra u] LT', - - nextWeek: function () { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay : '[juče u] LT', - lastWeek : function () { - var lastWeekDays = [ - '[prošle] [nedjelje] [u] LT', - '[prošlog] [ponedjeljka] [u] LT', - '[prošlog] [utorka] [u] LT', - '[prošle] [srijede] [u] LT', - '[prošlog] [četvrtka] [u] LT', - '[prošlog] [petka] [u] LT', - '[prošle] [subote] [u] LT' - ]; - return lastWeekDays[this.day()]; - }, - sameElse : 'L' - }, - relativeTime : { - future : 'za %s', - past : 'prije %s', - s : 'nekoliko sekundi', - m : translator.translate, - mm : translator.translate, - h : translator.translate, - hh : translator.translate, - d : 'dan', - dd : translator.translate, - M : 'mjesec', - MM : translator.translate, - y : 'godinu', - yy : translator.translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var intentSelect_1 = __webpack_require__(477); + var ProgressExample = (function (_super) { + tslib_1.__extends(ProgressExample, _super); + function ProgressExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + hasValue: false, + value: 0.7, + }; + _this.className = "docs-progress-example"; + _this.handleIndeterminateChange = docs_1.handleBooleanChange(function (hasValue) { return _this.setState({ hasValue: hasValue }); }); + _this.handleModifierChange = docs_1.handleNumberChange(function (intent) { return _this.setState({ intent: intent }); }); + _this.renderLabel = function (value) { return value.toFixed(1); }; + _this.handleValueChange = function (value) { return _this.setState({ value: value }); }; + return _this; } - }); - - return me; - - }))); + ProgressExample.prototype.renderExample = function () { + var _a = this.state, hasValue = _a.hasValue, intent = _a.intent, value = _a.value; + return React.createElement(core_1.ProgressBar, { intent: intent, value: hasValue ? value : null }); + }; + ProgressExample.prototype.renderOptions = function () { + return [ + [ + React.createElement(core_1.Switch, { checked: this.state.hasValue, key: "has-value", label: "Known Value", onChange: this.handleIndeterminateChange }), + React.createElement(core_1.Slider, { disabled: !this.state.hasValue, key: "value", labelStepSize: 1, min: 0, max: 1, onChange: this.handleValueChange, renderLabel: this.renderLabel, stepSize: 0.1, showTrackFill: false, value: this.state.value }), + React.createElement(intentSelect_1.IntentSelect, { intent: this.state.intent, key: "intent", onChange: this.handleModifierChange }), + ], + ]; + }; + return ProgressExample; + }(docs_1.BaseExample)); + exports.ProgressExample = ProgressExample; /***/ }), -/* 472 */ +/* 497 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Maori [mi] - //! author : John Corrigan : https://github.com/johnideal - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var mi = moment.defineLocale('mi', { - months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'), - monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'), - monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i, - weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'), - weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), - weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [i] HH:mm', - LLLL: 'dddd, D MMMM YYYY [i] HH:mm' - }, - calendar: { - sameDay: '[i teie mahana, i] LT', - nextDay: '[apopo i] LT', - nextWeek: 'dddd [i] LT', - lastDay: '[inanahi i] LT', - lastWeek: 'dddd [whakamutunga i] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'i roto i %s', - past: '%s i mua', - s: 'te hēkona ruarua', - m: 'he meneti', - mm: '%d meneti', - h: 'te haora', - hh: '%d haora', - d: 'he ra', - dd: '%d ra', - M: 'he marama', - MM: '%d marama', - y: 'he tau', - yy: '%d tau' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var RangeSliderExample = (function (_super) { + tslib_1.__extends(RangeSliderExample, _super); + function RangeSliderExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + range: [36, 72], + }; + _this.handleValueChange = function (range) { return _this.setState({ range: range }); }; + return _this; } - }); - - return mi; - - }))); + RangeSliderExample.prototype.renderExample = function () { + return (React.createElement("div", { style: { width: "100%" } }, + React.createElement(core_1.RangeSlider, { min: 0, max: 100, stepSize: 2, labelStepSize: 20, onChange: this.handleValueChange, value: this.state.range }))); + }; + return RangeSliderExample; + }(docs_1.BaseExample)); + exports.RangeSliderExample = RangeSliderExample; /***/ }), -/* 473 */ +/* 498 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Macedonian [mk] - //! author : Borislav Mickov : https://github.com/B0k0 - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var mk = moment.defineLocale('mk', { - months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'), - monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'), - weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'), - weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'), - weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'), - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'D.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY H:mm', - LLLL : 'dddd, D MMMM YYYY H:mm' - }, - calendar : { - sameDay : '[Денес во] LT', - nextDay : '[Утре во] LT', - nextWeek : '[Во] dddd [во] LT', - lastDay : '[Вчера во] LT', - lastWeek : function () { - switch (this.day()) { - case 0: - case 3: - case 6: - return '[Изминатата] dddd [во] LT'; - case 1: - case 2: - case 4: - case 5: - return '[Изминатиот] dddd [во] LT'; - } - }, - sameElse : 'L' - }, - relativeTime : { - future : 'после %s', - past : 'пред %s', - s : 'неколку секунди', - m : 'минута', - mm : '%d минути', - h : 'час', - hh : '%d часа', - d : 'ден', - dd : '%d дена', - M : 'месец', - MM : '%d месеци', - y : 'година', - yy : '%d години' - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, - ordinal : function (number) { - var lastDigit = number % 10, - last2Digits = number % 100; - if (number === 0) { - return number + '-ев'; - } else if (last2Digits === 0) { - return number + '-ен'; - } else if (last2Digits > 10 && last2Digits < 20) { - return number + '-ти'; - } else if (lastDigit === 1) { - return number + '-ви'; - } else if (lastDigit === 2) { - return number + '-ри'; - } else if (lastDigit === 7 || lastDigit === 8) { - return number + '-ми'; - } else { - return number + '-ти'; - } - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var SliderExample = (function (_super) { + tslib_1.__extends(SliderExample, _super); + function SliderExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + value1: 0, + value2: 2.5, + value3: 30, + }; + return _this; } - }); - - return mk; - - }))); + SliderExample.prototype.renderExample = function () { + return (React.createElement("div", { style: { width: "100%" } }, + React.createElement(core_1.Slider, { min: 0, max: 10, stepSize: 0.1, labelStepSize: 10, onChange: this.getChangeHandler("value2"), value: this.state.value2 }), + React.createElement(core_1.Slider, { min: 0, max: 0.7, stepSize: 0.01, labelStepSize: 0.14, onChange: this.getChangeHandler("value1"), renderLabel: this.renderLabel1, value: this.state.value1 }), + React.createElement(core_1.Slider, { min: -12, max: 48, stepSize: 6, labelStepSize: 10, onChange: this.getChangeHandler("value3"), renderLabel: this.renderLabel3, showTrackFill: false, value: this.state.value3 }))); + }; + SliderExample.prototype.getChangeHandler = function (key) { + var _this = this; + return function (value) { + return _this.setState((_a = {}, _a[key] = value, _a)); + var _a; + }; + }; + SliderExample.prototype.renderLabel1 = function (val) { + return Math.round(val * 100) + "%"; + }; + SliderExample.prototype.renderLabel3 = function (val) { + return val === 0 ? "\u00A3" + val : "\u00A3" + val + ",000"; + }; + return SliderExample; + }(docs_1.BaseExample)); + exports.SliderExample = SliderExample; /***/ }), -/* 474 */ +/* 499 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Malayalam [ml] - //! author : Floyd Pink : https://github.com/floydpink - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var ml = moment.defineLocale('ml', { - months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'), - monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'), - monthsParseExact : true, - weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'), - weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'), - weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'), - longDateFormat : { - LT : 'A h:mm -നു', - LTS : 'A h:mm:ss -നു', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, A h:mm -നു', - LLLL : 'dddd, D MMMM YYYY, A h:mm -നു' - }, - calendar : { - sameDay : '[ഇന്ന്] LT', - nextDay : '[നാളെ] LT', - nextWeek : 'dddd, LT', - lastDay : '[ഇന്നലെ] LT', - lastWeek : '[കഴിഞ്ഞ] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s കഴിഞ്ഞ്', - past : '%s മുൻപ്', - s : 'അൽപ നിമിഷങ്ങൾ', - m : 'ഒരു മിനിറ്റ്', - mm : '%d മിനിറ്റ്', - h : 'ഒരു മണിക്കൂർ', - hh : '%d മണിക്കൂർ', - d : 'ഒരു ദിവസം', - dd : '%d ദിവസം', - M : 'ഒരു മാസം', - MM : '%d മാസം', - y : 'ഒരു വർഷം', - yy : '%d വർഷം' - }, - meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if ((meridiem === 'രാത്രി' && hour >= 4) || - meridiem === 'ഉച്ച കഴിഞ്ഞ്' || - meridiem === 'വൈകുന്നേരം') { - return hour + 12; - } else { - return hour; - } - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'രാത്രി'; - } else if (hour < 12) { - return 'രാവിലെ'; - } else if (hour < 17) { - return 'ഉച്ച കഴിഞ്ഞ്'; - } else if (hour < 20) { - return 'വൈകുന്നേരം'; - } else { - return 'രാത്രി'; - } + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var classNames = __webpack_require__(200); + var React = __webpack_require__(3); + var docs_1 = __webpack_require__(172); + var Classes = __webpack_require__(478); + var text_1 = __webpack_require__(500); + var TextExample = (function (_super) { + tslib_1.__extends(TextExample, _super); + function TextExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + textContent: "You can change the text in the input below. Hover to see full text. " + + "If the text is long enough, then the content will overflow. This is done by setting " + + "ellipsize to true.", + }; + _this.onInputChange = docs_1.handleStringChange(function (textContent) { return _this.setState({ textContent: textContent }); }); + return _this; } - }); - - return ml; - - }))); + TextExample.prototype.renderExample = function () { + return (React.createElement("div", { style: { width: "100%" } }, + React.createElement(text_1.Text, { ellipsize: true }, + this.state.textContent, + "\u00A0"), + React.createElement("textarea", { className: classNames(Classes.INPUT, Classes.FILL), onChange: this.onInputChange, style: { marginTop: 20 }, value: this.state.textContent }))); + }; + return TextExample; + }(docs_1.BaseExample)); + exports.TextExample = TextExample; /***/ }), -/* 475 */ +/* 500 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Marathi [mr] - //! author : Harshad Kale : https://github.com/kalehv - //! author : Vivek Athalye : https://github.com/vnathalye - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var symbolMap = { - '1': '१', - '2': '२', - '3': '३', - '4': '४', - '5': '५', - '6': '६', - '7': '७', - '8': '८', - '9': '९', - '0': '०' - }; - var numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0' - }; - - function relativeTimeMr(number, withoutSuffix, string, isFuture) - { - var output = ''; - if (withoutSuffix) { - switch (string) { - case 's': output = 'काही सेकंद'; break; - case 'm': output = 'एक मिनिट'; break; - case 'mm': output = '%d मिनिटे'; break; - case 'h': output = 'एक तास'; break; - case 'hh': output = '%d तास'; break; - case 'd': output = 'एक दिवस'; break; - case 'dd': output = '%d दिवस'; break; - case 'M': output = 'एक महिना'; break; - case 'MM': output = '%d महिने'; break; - case 'y': output = 'एक वर्ष'; break; - case 'yy': output = '%d वर्षे'; break; - } - } - else { - switch (string) { - case 's': output = 'काही सेकंदां'; break; - case 'm': output = 'एका मिनिटा'; break; - case 'mm': output = '%d मिनिटां'; break; - case 'h': output = 'एका तासा'; break; - case 'hh': output = '%d तासां'; break; - case 'd': output = 'एका दिवसा'; break; - case 'dd': output = '%d दिवसां'; break; - case 'M': output = 'एका महिन्या'; break; - case 'MM': output = '%d महिन्यां'; break; - case 'y': output = 'एका वर्षा'; break; - case 'yy': output = '%d वर्षां'; break; - } + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var classNames = __webpack_require__(200); + var PureRender = __webpack_require__(201); + var React = __webpack_require__(3); + var Classes = __webpack_require__(478); + var Text = (function (_super) { + tslib_1.__extends(Text, _super); + function Text() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + isContentOverflowing: false, + textContent: "", + }; + _this.refHandlers = { + text: function (overflowElement) { return (_this.textRef = overflowElement); }, + }; + return _this; } - return output.replace(/%d/i, number); - } - - var mr = moment.defineLocale('mr', { - months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'), - monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'), - monthsParseExact : true, - weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), - weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'), - weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'), - longDateFormat : { - LT : 'A h:mm वाजता', - LTS : 'A h:mm:ss वाजता', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, A h:mm वाजता', - LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता' - }, - calendar : { - sameDay : '[आज] LT', - nextDay : '[उद्या] LT', - nextWeek : 'dddd, LT', - lastDay : '[काल] LT', - lastWeek: '[मागील] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future: '%sमध्ये', - past: '%sपूर्वी', - s: relativeTimeMr, - m: relativeTimeMr, - mm: relativeTimeMr, - h: relativeTimeMr, - hh: relativeTimeMr, - d: relativeTimeMr, - dd: relativeTimeMr, - M: relativeTimeMr, - MM: relativeTimeMr, - y: relativeTimeMr, - yy: relativeTimeMr - }, - preparse: function (string) { - return string.replace(/[१२३४५६७८९०]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'रात्री') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'सकाळी') { - return hour; - } else if (meridiem === 'दुपारी') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'सायंकाळी') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'रात्री'; - } else if (hour < 10) { - return 'सकाळी'; - } else if (hour < 17) { - return 'दुपारी'; - } else if (hour < 20) { - return 'सायंकाळी'; - } else { - return 'रात्री'; - } - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. + Text.prototype.componentDidMount = function () { + this.update(); + }; + Text.prototype.componentDidUpdate = function () { + this.update(); + }; + Text.prototype.render = function () { + var classes = classNames((_a = {}, + _a[Classes.TEXT_OVERFLOW_ELLIPSIS] = this.props.ellipsize, + _a), this.props.className); + return (React.createElement("div", { className: classes, ref: this.refHandlers.text, title: this.state.isContentOverflowing ? this.state.textContent : undefined }, this.props.children)); + var _a; + }; + Text.prototype.update = function () { + var newState = { + isContentOverflowing: this.props.ellipsize && this.textRef.scrollWidth > this.textRef.clientWidth, + textContent: this.textRef.textContent, + }; + this.setState(newState); + }; + return Text; + }(React.Component)); + Text = tslib_1.__decorate([ + PureRender + ], Text); + exports.Text = Text; + + +/***/ }), +/* 501 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var progressExample_1 = __webpack_require__(496); + var SIZES = [ + { label: "Default", value: "" }, + { label: "Small", value: core_1.Classes.SMALL }, + { label: "Large", value: core_1.Classes.LARGE }, + ]; + var SpinnerExample = (function (_super) { + tslib_1.__extends(SpinnerExample, _super); + function SpinnerExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.handleSizeChange = docs_1.handleStringChange(function (className) { return _this.setState({ className: className }); }); + return _this; } - }); - - return mr; - - }))); + SpinnerExample.prototype.renderExample = function () { + var _a = this.state, className = _a.className, hasValue = _a.hasValue, intent = _a.intent, value = _a.value; + return React.createElement(core_1.Spinner, { className: className, intent: intent, value: hasValue ? value : null }); + }; + SpinnerExample.prototype.renderOptions = function () { + var options = _super.prototype.renderOptions.call(this); + options[0].push(React.createElement("label", { className: core_1.Classes.LABEL, key: "size" }, + "Size (via ", + React.createElement("code", null, "className"), + ")", + React.createElement("div", { className: core_1.Classes.SELECT }, + React.createElement("select", { value: this.state.className, onChange: this.handleSizeChange }, SIZES.map(function (opt, i) { return (React.createElement("option", tslib_1.__assign({ key: i }, opt), opt.label)); }))))); + return options; + }; + return SpinnerExample; + }(progressExample_1.ProgressExample)); + exports.SpinnerExample = SpinnerExample; /***/ }), -/* 476 */ +/* 502 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Malay [ms] - //! author : Weldan Jamili : https://github.com/weldan - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var ms = moment.defineLocale('ms', { - months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'), - monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), - weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), - weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), - weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat : { - LT : 'HH.mm', - LTS : 'HH.mm.ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY [pukul] HH.mm', - LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' - }, - meridiemParse: /pagi|tengahari|petang|malam/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'pagi') { - return hour; - } else if (meridiem === 'tengahari') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'petang' || meridiem === 'malam') { - return hour + 12; - } - }, - meridiem : function (hours, minutes, isLower) { - if (hours < 11) { - return 'pagi'; - } else if (hours < 15) { - return 'tengahari'; - } else if (hours < 19) { - return 'petang'; - } else { - return 'malam'; - } - }, - calendar : { - sameDay : '[Hari ini pukul] LT', - nextDay : '[Esok pukul] LT', - nextWeek : 'dddd [pukul] LT', - lastDay : '[Kelmarin pukul] LT', - lastWeek : 'dddd [lepas pukul] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'dalam %s', - past : '%s yang lepas', - s : 'beberapa saat', - m : 'seminit', - mm : '%d minit', - h : 'sejam', - hh : '%d jam', - d : 'sehari', - dd : '%d hari', - M : 'sebulan', - MM : '%d bulan', - y : 'setahun', - yy : '%d tahun' - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var TabsExample = (function (_super) { + tslib_1.__extends(TabsExample, _super); + function TabsExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + isVertical: false, + }; + _this.toggleIsVertical = docs_1.handleBooleanChange(function (isVertical) { return _this.setState({ isVertical: isVertical }); }); + return _this; } - }); - - return ms; - - }))); + TabsExample.prototype.renderExample = function () { + return (React.createElement(core_1.Tabs, { className: this.state.isVertical ? "pt-vertical" : null, key: this.state.isVertical ? "vertical" : "horizontal" }, + React.createElement(core_1.TabList, null, + React.createElement(core_1.Tab, null, "React"), + React.createElement(core_1.Tab, null, "Angular"), + React.createElement(core_1.Tab, null, "Ember"), + React.createElement(core_1.Tab, { isDisabled: true }, "Backbone")), + React.createElement(core_1.TabPanel, null, + React.createElement("h3", null, "Example panel: React"), + React.createElement("p", { className: "pt-running-text" }, "Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.")), + React.createElement(core_1.TabPanel, null, + React.createElement("h3", null, "Example panel: Angular"), + React.createElement("p", { className: "pt-running-text" }, "HTML is great for declaring static documents, but it falters when we try to use it for declaring dynamic views in web-applications. AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop.")), + React.createElement(core_1.TabPanel, null, + React.createElement("h3", null, "Example panel: Ember"), + React.createElement("p", { className: "pt-running-text" }, "Ember.js is an open-source JavaScript application framework, based on the model-view-controller (MVC) pattern. It allows developers to create scalable single-page web applications by incorporating common idioms and best practices into the framework. What is your favorite JS framework?"), + React.createElement("input", { className: "pt-input", type: "text" })), + React.createElement(core_1.TabPanel, null, + React.createElement("h3", null, "Backbone")))); + }; + TabsExample.prototype.renderOptions = function () { + return [ + [ + React.createElement(core_1.Switch, { checked: this.state.isVertical, label: "Use vertical tabs", key: "Vertical", onChange: this.toggleIsVertical }), + ], + ]; + }; + return TabsExample; + }(docs_1.BaseExample)); + exports.TabsExample = TabsExample; /***/ }), -/* 477 */ +/* 503 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Malay [ms-my] - //! note : DEPRECATED, the correct one is [ms] - //! author : Weldan Jamili : https://github.com/weldan - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var msMy = moment.defineLocale('ms-my', { - months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'), - monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), - weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), - weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), - weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat : { - LT : 'HH.mm', - LTS : 'HH.mm.ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY [pukul] HH.mm', - LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' - }, - meridiemParse: /pagi|tengahari|petang|malam/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'pagi') { - return hour; - } else if (meridiem === 'tengahari') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'petang' || meridiem === 'malam') { - return hour + 12; - } - }, - meridiem : function (hours, minutes, isLower) { - if (hours < 11) { - return 'pagi'; - } else if (hours < 15) { - return 'tengahari'; - } else if (hours < 19) { - return 'petang'; - } else { - return 'malam'; - } - }, - calendar : { - sameDay : '[Hari ini pukul] LT', - nextDay : '[Esok pukul] LT', - nextWeek : 'dddd [pukul] LT', - lastDay : '[Kelmarin pukul] LT', - lastWeek : 'dddd [lepas pukul] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'dalam %s', - past : '%s yang lepas', - s : 'beberapa saat', - m : 'seminit', - mm : '%d minit', - h : 'sejam', - hh : '%d jam', - d : 'sehari', - dd : '%d hari', - M : 'sebulan', - MM : '%d bulan', - y : 'setahun', - yy : '%d tahun' - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var classNames = __webpack_require__(200); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var Tabs2Example = (function (_super) { + tslib_1.__extends(Tabs2Example, _super); + function Tabs2Example() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + activePanelOnly: false, + animate: true, + navbarTabId: "Home", + vertical: false, + }; + _this.toggleActiveOnly = docs_1.handleBooleanChange(function (activePanelOnly) { return _this.setState({ activePanelOnly: activePanelOnly }); }); + _this.toggleAnimate = docs_1.handleBooleanChange(function (animate) { return _this.setState({ animate: animate }); }); + _this.toggleVertical = docs_1.handleBooleanChange(function (vertical) { return _this.setState({ vertical: vertical }); }); + _this.handleNavbarTabChange = function (navbarTabId) { return _this.setState({ navbarTabId: navbarTabId }); }; + _this.handleTabChange = function (activeTabId) { return _this.setState({ activeTabId: activeTabId }); }; + return _this; } - }); - - return msMy; - - }))); + Tabs2Example.prototype.renderExample = function () { + return (React.createElement("div", { className: "docs-tabs2-example" }, + React.createElement("div", { className: core_1.Classes.NAVBAR }, + React.createElement("div", { className: classNames(core_1.Classes.NAVBAR_GROUP, core_1.Classes.ALIGN_LEFT) }, + React.createElement("div", { className: core_1.Classes.NAVBAR_HEADING }, "Tabs Example")), + React.createElement("div", { className: classNames(core_1.Classes.NAVBAR_GROUP, core_1.Classes.ALIGN_LEFT) }, + React.createElement(core_1.Tabs2, { animate: this.state.animate, className: core_1.Classes.LARGE, id: "navbar", onChange: this.handleNavbarTabChange, selectedTabId: this.state.navbarTabId }, + React.createElement(core_1.Tab2, { id: "Home", title: "Home" }), + React.createElement(core_1.Tab2, { id: "Files", title: "Files" }), + React.createElement(core_1.Tab2, { id: "Builds", title: "Builds" })))), + React.createElement("h1", { style: { marginTop: 30, marginBottom: 30 } }, this.state.navbarTabId), + React.createElement(core_1.Tabs2, { animate: this.state.animate, id: "Tabs2Example", key: this.state.vertical ? "vertical" : "horizontal", onChange: this.handleTabChange, renderActiveTabPanelOnly: this.state.activePanelOnly, vertical: this.state.vertical }, + React.createElement(core_1.Tab2, { id: "rx", title: "React", panel: React.createElement(ReactPanel, null) }), + React.createElement(core_1.Tab2, { id: "ng", title: "Angular", panel: React.createElement(AngularPanel, null) }), + React.createElement(core_1.Tab2, { id: "mb", title: "Ember", panel: React.createElement(EmberPanel, null) }), + React.createElement(core_1.Tab2, { id: "bb", disabled: true, title: "Backbone", panel: React.createElement(BackbonePanel, null) }), + React.createElement(core_1.Tabs2.Expander, null), + React.createElement("input", { className: "pt-input", type: "text", placeholder: "Search..." })))); + }; + Tabs2Example.prototype.renderOptions = function () { + return [ + [ + React.createElement(core_1.Switch, { checked: this.state.animate, label: "Animate indicator", key: "animate", onChange: this.toggleAnimate }), + React.createElement(core_1.Switch, { checked: this.state.vertical, label: "Use vertical tabs", key: "vertical", onChange: this.toggleVertical }), + React.createElement(core_1.Switch, { checked: this.state.activePanelOnly, label: "Render active tab panel only", key: "active", onChange: this.toggleActiveOnly }), + ], + ]; + }; + return Tabs2Example; + }(docs_1.BaseExample)); + exports.Tabs2Example = Tabs2Example; + var ReactPanel = function () { return (React.createElement("div", null, + React.createElement("h3", null, "Example panel: React"), + React.createElement("p", { className: "pt-running-text" }, "Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project."))); }; + var AngularPanel = function () { return (React.createElement("div", null, + React.createElement("h3", null, "Example panel: Angular"), + React.createElement("p", { className: "pt-running-text" }, "HTML is great for declaring static documents, but it falters when we try to use it for declaring dynamic views in web-applications. AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop."))); }; + var EmberPanel = function () { return (React.createElement("div", null, + React.createElement("h3", null, "Example panel: Ember"), + React.createElement("p", { className: "pt-running-text" }, "Ember.js is an open-source JavaScript application framework, based on the model-view-controller (MVC) pattern. It allows developers to create scalable single-page web applications by incorporating common idioms and best practices into the framework. What is your favorite JS framework?"), + React.createElement("input", { className: "pt-input", type: "text" }))); }; + var BackbonePanel = function () { return (React.createElement("div", null, + React.createElement("h3", null, "Backbone"))); }; /***/ }), -/* 478 */ +/* 504 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Burmese [my] - //! author : Squar team, mysquar.com - //! author : David Rossellat : https://github.com/gholadr - //! author : Tin Aung Lin : https://github.com/thanyawzinmin - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var symbolMap = { - '1': '၁', - '2': '၂', - '3': '၃', - '4': '၄', - '5': '၅', - '6': '၆', - '7': '၇', - '8': '၈', - '9': '၉', - '0': '၀' - }; - var numberMap = { - '၁': '1', - '၂': '2', - '၃': '3', - '၄': '4', - '၅': '5', - '၆': '6', - '၇': '7', - '၈': '8', - '၉': '9', - '၀': '0' - }; - - var my = moment.defineLocale('my', { - months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'), - monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'), - weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'), - weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), - weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), - - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[ယနေ.] LT [မှာ]', - nextDay: '[မနက်ဖြန်] LT [မှာ]', - nextWeek: 'dddd LT [မှာ]', - lastDay: '[မနေ.က] LT [မှာ]', - lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]', - sameElse: 'L' - }, - relativeTime: { - future: 'လာမည့် %s မှာ', - past: 'လွန်ခဲ့သော %s က', - s: 'စက္ကန်.အနည်းငယ်', - m: 'တစ်မိနစ်', - mm: '%d မိနစ်', - h: 'တစ်နာရီ', - hh: '%d နာရီ', - d: 'တစ်ရက်', - dd: '%d ရက်', - M: 'တစ်လ', - MM: '%d လ', - y: 'တစ်နှစ်', - yy: '%d နှစ်' - }, - preparse: function (string) { - return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4 // The week that contains Jan 1st is the first week of the year. + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var classNames = __webpack_require__(200); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var InputGroupExample = (function (_super) { + tslib_1.__extends(InputGroupExample, _super); + function InputGroupExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + filterValue: "", + large: false, + showPassword: false, + tagValue: "", + }; + _this.handleDisabledChange = docs_1.handleBooleanChange(function (disabled) { return _this.setState({ disabled: disabled }); }); + _this.handleLargeChange = docs_1.handleBooleanChange(function (large) { return _this.setState({ large: large }); }); + _this.handleFilterChange = docs_1.handleStringChange(function (filterValue) { return _this.setState({ filterValue: filterValue }); }); + _this.handleTagChange = docs_1.handleStringChange(function (tagValue) { return _this.setState({ tagValue: tagValue }); }); + _this.handleLockClick = function () { return _this.setState({ showPassword: !_this.state.showPassword }); }; + return _this; } - }); - - return my; - - }))); + InputGroupExample.prototype.renderExample = function () { + var _a = this.state, disabled = _a.disabled, filterValue = _a.filterValue, showPassword = _a.showPassword, tagValue = _a.tagValue; + var largeClassName = classNames((_b = {}, _b[core_1.Classes.LARGE] = this.state.large, _b)); + var maybeSpinner = filterValue ? React.createElement(core_1.Spinner, { className: core_1.Classes.SMALL }) : undefined; + var lockButton = (React.createElement(core_1.Tooltip, { content: (showPassword ? "Hide" : "Show") + " Password", isDisabled: disabled }, + React.createElement(core_1.Button, { className: core_1.Classes.MINIMAL, intent: core_1.Intent.WARNING, disabled: disabled, iconName: showPassword ? "unlock" : "lock", onClick: this.handleLockClick }))); + var permissionsMenu = (React.createElement(core_1.Popover, { content: React.createElement(core_1.Menu, null, + React.createElement(core_1.MenuItem, { text: "can edit" }), + React.createElement(core_1.MenuItem, { text: "can view" })), isDisabled: disabled, position: core_1.Position.BOTTOM_RIGHT }, + React.createElement(core_1.Button, { className: core_1.Classes.MINIMAL, disabled: disabled, rightIconName: "caret-down" }, "can edit"))); + var resultsTag = (React.createElement(core_1.Tag, { className: core_1.Classes.MINIMAL }, Math.floor(10000 / Math.max(1, Math.pow(tagValue.length, 2))))); + return (React.createElement("div", { className: "docs-input-group-example docs-flex-row" }, + React.createElement("div", { className: "docs-flex-column" }, + React.createElement(core_1.InputGroup, { className: largeClassName, disabled: disabled, leftIconName: "filter", onChange: this.handleFilterChange, placeholder: "Filter histogram...", rightElement: maybeSpinner, value: filterValue }), + React.createElement(core_1.InputGroup, { className: largeClassName, disabled: disabled, placeholder: "Enter your password...", rightElement: lockButton, type: showPassword ? "text" : "password" })), + React.createElement("div", { className: "docs-flex-column" }, + React.createElement(core_1.InputGroup, { className: largeClassName, disabled: disabled, leftIconName: "tag", onChange: this.handleTagChange, placeholder: "Find tags", rightElement: resultsTag, value: tagValue }), + React.createElement(core_1.InputGroup, { className: largeClassName, disabled: disabled, placeholder: "Add people or groups...", rightElement: permissionsMenu })))); + var _b; + }; + InputGroupExample.prototype.renderOptions = function () { + var _a = this.state, disabled = _a.disabled, large = _a.large; + return [ + [ + React.createElement(core_1.Switch, { key: "disabled", label: "Disabled", onChange: this.handleDisabledChange, checked: disabled }), + React.createElement(core_1.Switch, { key: "large", label: "Large", onChange: this.handleLargeChange, checked: large }), + ], + ]; + }; + return InputGroupExample; + }(docs_1.BaseExample)); + exports.InputGroupExample = InputGroupExample; /***/ }), -/* 479 */ +/* 505 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Norwegian Bokmål [nb] - //! authors : Espen Hovlandsdal : https://github.com/rexxars - //! Sigurd Gartmann : https://github.com/sigurdga - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var nb = moment.defineLocale('nb', { - months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'), - monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'), - monthsParseExact : true, - weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), - weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'), - weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY [kl.] HH:mm', - LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm' - }, - calendar : { - sameDay: '[i dag kl.] LT', - nextDay: '[i morgen kl.] LT', - nextWeek: 'dddd [kl.] LT', - lastDay: '[i går kl.] LT', - lastWeek: '[forrige] dddd [kl.] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'om %s', - past : '%s siden', - s : 'noen sekunder', - m : 'ett minutt', - mm : '%d minutter', - h : 'en time', - hh : '%d timer', - d : 'en dag', - dd : '%d dager', - M : 'en måned', - MM : '%d måneder', - y : 'ett år', - yy : '%d år' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var TagExample = (function (_super) { + tslib_1.__extends(TagExample, _super); + function TagExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + showTag: true, + }; + _this.className = "docs-tag-example"; + _this.deleteTag = function () { return _this.setState({ showTag: false }); }; + return _this; } - }); - - return nb; - - }))); + TagExample.prototype.renderExample = function () { + return (React.createElement("div", null, + React.createElement(core_1.Tag, { className: core_1.Classes.MINIMAL, intent: core_1.Intent.PRIMARY }, "@jkillian"), + React.createElement(core_1.Tag, { className: core_1.Classes.MINIMAL, intent: core_1.Intent.PRIMARY }, "@adahiya"), + React.createElement(core_1.Tag, { className: core_1.Classes.MINIMAL, intent: core_1.Intent.PRIMARY }, "@ggray"), + React.createElement(core_1.Tag, { className: core_1.Classes.MINIMAL, intent: core_1.Intent.PRIMARY }, "@allorca"), + React.createElement(core_1.Tag, { className: core_1.Classes.MINIMAL, intent: core_1.Intent.PRIMARY }, "@bdwyer"), + React.createElement(core_1.Tag, { className: core_1.Classes.MINIMAL, intent: core_1.Intent.PRIMARY }, "@piotrk"), + this.maybeRenderTag())); + }; + TagExample.prototype.maybeRenderTag = function () { + if (this.state.showTag) { + return (React.createElement(core_1.Tag, { className: core_1.Classes.MINIMAL, intent: core_1.Intent.PRIMARY, onRemove: this.deleteTag }, "@dlipowicz")); + } + else { + return undefined; + } + }; + return TagExample; + }(docs_1.BaseExample)); + exports.TagExample = TagExample; /***/ }), -/* 480 */ +/* 506 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Nepalese [ne] - //! author : suvash : https://github.com/suvash - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var symbolMap = { - '1': '१', - '2': '२', - '3': '३', - '4': '४', - '5': '५', - '6': '६', - '7': '७', - '8': '८', - '9': '९', - '0': '०' - }; - var numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0' - }; - - var ne = moment.defineLocale('ne', { - months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'), - monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'), - monthsParseExact : true, - weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'), - weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'), - weekdaysMin : 'आ._सो._मं._बु._बि._शु._श.'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'Aको h:mm बजे', - LTS : 'Aको h:mm:ss बजे', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, Aको h:mm बजे', - LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे' - }, - preparse: function (string) { - return string.replace(/[१२३४५६७८९०]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /राति|बिहान|दिउँसो|साँझ/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'राति') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'बिहान') { - return hour; - } else if (meridiem === 'दिउँसो') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'साँझ') { - return hour + 12; - } - }, - meridiem : function (hour, minute, isLower) { - if (hour < 3) { - return 'राति'; - } else if (hour < 12) { - return 'बिहान'; - } else if (hour < 16) { - return 'दिउँसो'; - } else if (hour < 20) { - return 'साँझ'; - } else { - return 'राति'; - } - }, - calendar : { - sameDay : '[आज] LT', - nextDay : '[भोलि] LT', - nextWeek : '[आउँदो] dddd[,] LT', - lastDay : '[हिजो] LT', - lastWeek : '[गएको] dddd[,] LT', - sameElse : 'L' - }, - relativeTime : { - future : '%sमा', - past : '%s अगाडि', - s : 'केही क्षण', - m : 'एक मिनेट', - mm : '%d मिनेट', - h : 'एक घण्टा', - hh : '%d घण्टा', - d : 'एक दिन', - dd : '%d दिन', - M : 'एक महिना', - MM : '%d महिना', - y : 'एक बर्ष', - yy : '%d बर्ष' - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var classNames = __webpack_require__(200); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var ToastExample = (function (_super) { + tslib_1.__extends(ToastExample, _super); + function ToastExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + autoFocus: false, + canEscapeKeyClear: true, + position: core_1.Position.TOP, + }; + _this.TOAST_BUILDERS = [ + { + action: { + href: "https://www.google.com/search?q=toast&source=lnms&tbm=isch", + target: "_blank", + text: "Yum", + }, + button: "Procure toast", + intent: core_1.Intent.PRIMARY, + message: (React.createElement("span", null, + "One toast created. ", + React.createElement("em", null, "Toasty."))), + }, + { + action: { + onClick: function () { + return _this.addToast({ + iconName: "ban-circle", + intent: core_1.Intent.DANGER, + message: "You cannot undo the past.", + }); + }, + text: "Undo", + }, + button: "Move files", + iconName: "tick", + intent: core_1.Intent.SUCCESS, + message: "Moved 6 files.", + }, + { + action: { + onClick: function () { return _this.addToast(_this.TOAST_BUILDERS[2]); }, + text: "Retry", + }, + button: "Delete root", + iconName: "warning-sign", + intent: core_1.Intent.DANGER, + message: "You do not have permissions to perform this action. \ + Please contact your system administrator to request the appropriate access rights.", + }, + { + action: { + onClick: function () { return _this.addToast({ message: "Isn't parting just the sweetest sorrow?" }); }, + text: "Adieu", + }, + button: "Log out", + iconName: "hand", + intent: core_1.Intent.WARNING, + message: "Goodbye, old friend.", + }, + ]; + _this.refHandlers = { + toaster: function (ref) { return (_this.toaster = ref); }, + }; + _this.handlePositionChange = docs_1.handleNumberChange(function (position) { return _this.setState({ position: position }); }); + _this.toggleAutoFocus = docs_1.handleBooleanChange(function (autoFocus) { return _this.setState({ autoFocus: autoFocus }); }); + _this.toggleEscapeKey = docs_1.handleBooleanChange(function (canEscapeKeyClear) { return _this.setState({ canEscapeKeyClear: canEscapeKeyClear }); }); + _this.handleProgressToast = function () { + var progress = 0; + var key = _this.toaster.show(_this.renderProgress(0)); + var interval = setInterval(function () { + if (_this.toaster == null || progress > 100) { + clearInterval(interval); + } + else { + progress += 10 + Math.random() * 20; + _this.toaster.update(key, _this.renderProgress(progress)); + } + }, 1000); + }; + return _this; } - }); - - return ne; - - }))); + ToastExample.prototype.renderExample = function () { + return (React.createElement("div", null, + this.TOAST_BUILDERS.map(this.renderToastDemo, this), + React.createElement(core_1.Button, { onClick: this.handleProgressToast, text: "Upload file" }), + React.createElement(core_1.Toaster, tslib_1.__assign({}, this.state, { ref: this.refHandlers.toaster })))); + }; + ToastExample.prototype.renderOptions = function () { + return [ + [ + React.createElement("label", { className: core_1.Classes.LABEL, key: "position" }, + "Toast position", + React.createElement("div", { className: core_1.Classes.SELECT }, + React.createElement("select", { value: this.state.position.toString(), onChange: this.handlePositionChange }, + React.createElement("option", { value: core_1.Position.TOP_LEFT.toString() }, "Top left"), + React.createElement("option", { value: core_1.Position.TOP.toString() }, "Top center"), + React.createElement("option", { value: core_1.Position.TOP_RIGHT.toString() }, "Top right"), + React.createElement("option", { value: core_1.Position.BOTTOM_LEFT.toString() }, "Bottom left"), + React.createElement("option", { value: core_1.Position.BOTTOM.toString() }, "Bottom center"), + React.createElement("option", { value: core_1.Position.BOTTOM_RIGHT.toString() }, "Bottom right")))), + React.createElement(core_1.Switch, { checked: this.state.autoFocus, label: "Auto focus", key: "autofocus", onChange: this.toggleAutoFocus }), + React.createElement(core_1.Switch, { checked: this.state.canEscapeKeyClear, label: "Can escape key clear", key: "escapekey", onChange: this.toggleEscapeKey }), + ], + ]; + }; + ToastExample.prototype.renderToastDemo = function (toast, index) { + var _this = this; + return React.createElement(core_1.Button, { intent: toast.intent, key: index, text: toast.button, onClick: function () { return _this.addToast(toast); } }); + }; + ToastExample.prototype.renderProgress = function (amount) { + return { + className: this.props.themeName, + iconName: "cloud-upload", + message: (React.createElement(core_1.ProgressBar, { className: classNames("docs-toast-progress", { "pt-no-stripes": amount >= 100 }), intent: amount < 100 ? core_1.Intent.PRIMARY : core_1.Intent.SUCCESS, value: amount / 100 })), + timeout: amount < 100 ? 0 : 2000, + }; + }; + ToastExample.prototype.addToast = function (toast) { + toast.className = this.props.themeName; + toast.timeout = 5000; + this.toaster.show(toast); + }; + return ToastExample; + }(docs_1.BaseExample)); + exports.ToastExample = ToastExample; /***/ }), -/* 481 */ +/* 507 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Dutch [nl] - //! author : Joris Röling : https://github.com/jorisroling - //! author : Jacob Middag : https://github.com/middagj - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'); - var monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'); - - var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i]; - var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; - - var nl = moment.defineLocale('nl', { - months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'), - monthsShort : function (m, format) { - if (!m) { - return monthsShortWithDots; - } else if (/-MMM-/.test(format)) { - return monthsShortWithoutDots[m.month()]; - } else { - return monthsShortWithDots[m.month()]; - } - }, - - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i, - monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, - - monthsParse : monthsParse, - longMonthsParse : monthsParse, - shortMonthsParse : monthsParse, - - weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'), - weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'), - weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD-MM-YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[vandaag om] LT', - nextDay: '[morgen om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[gisteren om] LT', - lastWeek: '[afgelopen] dddd [om] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'over %s', - past : '%s geleden', - s : 'een paar seconden', - m : 'één minuut', - mm : '%d minuten', - h : 'één uur', - hh : '%d uur', - d : 'één dag', - dd : '%d dagen', - M : 'één maand', - MM : '%d maanden', - y : 'één jaar', - yy : '%d jaar' - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal : function (number) { - return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var TooltipExample = (function (_super) { + tslib_1.__extends(TooltipExample, _super); + function TooltipExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + isOpen: false, + }; + _this.toggleControlledTooltip = function () { + _this.setState({ isOpen: !_this.state.isOpen }); + }; + return _this; } - }); - - return nl; - - }))); + TooltipExample.prototype.renderExample = function () { + var lotsOfText = (React.createElement("span", null, "In facilisis scelerisque dui vel dignissim. Sed nunc orci, ultricies congue vehicula quis, facilisis a orci.")); + return (React.createElement("div", null, + React.createElement("p", null, + "Inline text can have\u00A0", + React.createElement(core_1.Tooltip, { className: "pt-tooltip-indicator", content: React.createElement("em", null, + "This tooltip contains an ", + React.createElement("strong", null, "em"), + " tag.") }, "a tooltip.")), + React.createElement("p", null, + React.createElement(core_1.Tooltip, { content: lotsOfText }, "Or, hover anywhere over this whole line.")), + React.createElement("p", null, + "This line's tooltip\u00A0", + React.createElement(core_1.Tooltip, { className: "pt-tooltip-indicator", content: React.createElement("span", null, "disabled"), isDisabled: true }, "is disabled.")), + React.createElement("p", null, + "This line's tooltip\u00A0", + React.createElement(core_1.Tooltip, { className: "pt-tooltip-indicator", content: React.createElement("span", null, "BRRAAAIINS"), isOpen: this.state.isOpen }, "is controlled by external state."), + React.createElement(core_1.Switch, { checked: this.state.isOpen, label: "Open", onChange: this.toggleControlledTooltip, style: { display: "inline-block", marginBottom: 0, marginLeft: 20 } })), + React.createElement("div", null, + React.createElement(core_1.Tooltip, { className: "pt-tooltip-indicator", content: "Intent.PRIMARY", inline: true, intent: core_1.Intent.PRIMARY, position: core_1.Position.LEFT }, "Available"), + "\u00A0", + React.createElement(core_1.Tooltip, { className: "pt-tooltip-indicator", content: "Intent.SUCCESS", inline: true, intent: core_1.Intent.SUCCESS, position: core_1.Position.TOP }, "in the full"), + "\u00A0", + React.createElement(core_1.Tooltip, { className: "pt-tooltip-indicator", content: "Intent.WARNING", inline: true, intent: core_1.Intent.WARNING, position: core_1.Position.BOTTOM }, "range of"), + "\u00A0", + React.createElement(core_1.Tooltip, { className: "pt-tooltip-indicator", content: "Intent.DANGER", inline: true, intent: core_1.Intent.DANGER, position: core_1.Position.RIGHT }, "visual intents!")), + React.createElement("br", null), + React.createElement(core_1.Popover, { content: React.createElement("h1", null, "Popover!"), popoverClassName: "pt-popover-content-sizing", position: core_1.Position.RIGHT }, + React.createElement(core_1.Tooltip, { content: React.createElement("span", null, "This button also has a popover!"), inline: true, position: core_1.Position.RIGHT }, + React.createElement("button", { className: "pt-button pt-intent-success" }, "Hover and click me"))))); + }; + return TooltipExample; + }(docs_1.BaseExample)); + exports.TooltipExample = TooltipExample; /***/ }), -/* 482 */ +/* 508 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Dutch (Belgium) [nl-be] - //! author : Joris Röling : https://github.com/jorisroling - //! author : Jacob Middag : https://github.com/middagj - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'); - var monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'); - - var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i]; - var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; - - var nlBe = moment.defineLocale('nl-be', { - months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'), - monthsShort : function (m, format) { - if (!m) { - return monthsShortWithDots; - } else if (/-MMM-/.test(format)) { - return monthsShortWithoutDots[m.month()]; - } else { - return monthsShortWithDots[m.month()]; - } - }, - - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i, - monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, - - monthsParse : monthsParse, - longMonthsParse : monthsParse, - shortMonthsParse : monthsParse, - - weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'), - weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'), - weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[vandaag om] LT', - nextDay: '[morgen om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[gisteren om] LT', - lastWeek: '[afgelopen] dddd [om] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'over %s', - past : '%s geleden', - s : 'een paar seconden', - m : 'één minuut', - mm : '%d minuten', - h : 'één uur', - hh : '%d uur', - d : 'één dag', - dd : '%d dagen', - M : 'één maand', - MM : '%d maanden', - y : 'één jaar', - yy : '%d jaar' - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal : function (number) { - return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(185); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var TreeExample = (function (_super) { + tslib_1.__extends(TreeExample, _super); + function TreeExample() { + var _this = _super.call(this) || this; + _this.handleNodeClick = function (nodeData, _nodePath, e) { + var originallySelected = nodeData.isSelected; + if (!e.shiftKey) { + _this.forEachNode(_this.state.nodes, function (n) { return (n.isSelected = false); }); + } + nodeData.isSelected = originallySelected == null ? true : !originallySelected; + _this.setState(_this.state); + }; + _this.handleNodeCollapse = function (nodeData) { + nodeData.isExpanded = false; + _this.setState(_this.state); + }; + _this.handleNodeExpand = function (nodeData) { + nodeData.isExpanded = true; + _this.setState(_this.state); + }; + var tooltipLabel = (React.createElement(core_1.Tooltip, { content: "An eye!" }, + React.createElement("span", { className: "pt-icon-standard pt-icon-eye-open" }))); + var longLabel = "Organic meditation gluten-free, sriracha VHS drinking vinegar beard man."; + _this.state = { + nodes: [ + { + hasCaret: true, + iconName: "folder-close", + label: "Folder 0", + }, + { + iconName: "folder-close", + isExpanded: true, + label: React.createElement(core_1.Tooltip, { content: "I'm a folder <3" }, "Folder 1"), + childNodes: [ + { iconName: "document", label: "Item 0", secondaryLabel: tooltipLabel }, + { iconName: "pt-icon-tag", label: longLabel }, + { + hasCaret: true, + iconName: "pt-icon-folder-close", + label: React.createElement(core_1.Tooltip, { content: "foo" }, "Folder 2"), + childNodes: [ + { label: "No-Icon Item" }, + { iconName: "pt-icon-tag", label: "Item 1" }, + { + hasCaret: true, + iconName: "pt-icon-folder-close", + label: "Folder 3", + childNodes: [ + { iconName: "document", label: "Item 0" }, + { iconName: "pt-icon-tag", label: "Item 1" }, + ], + }, + ], + }, + ], + }, + ], + }; + var i = 0; + _this.forEachNode(_this.state.nodes, function (n) { return (n.id = i++); }); + return _this; } - }); - - return nlBe; - - }))); + TreeExample.prototype.shouldComponentUpdate = function () { + return true; + }; + TreeExample.prototype.renderExample = function () { + return (React.createElement(core_1.Tree, { contents: this.state.nodes, onNodeClick: this.handleNodeClick, onNodeCollapse: this.handleNodeCollapse, onNodeExpand: this.handleNodeExpand, className: core_1.Classes.ELEVATION_0 })); + }; + TreeExample.prototype.forEachNode = function (nodes, callback) { + if (nodes == null) { + return; + } + for (var _i = 0, nodes_1 = nodes; _i < nodes_1.length; _i++) { + var node = nodes_1[_i]; + callback(node); + this.forEachNode(node.childNodes, callback); + } + }; + return TreeExample; + }(docs_1.BaseExample)); + exports.TreeExample = TreeExample; /***/ }), -/* 483 */ +/* 509 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Nynorsk [nn] - //! author : https://github.com/mechuwind - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var nn = moment.defineLocale('nn', { - months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'), - monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), - weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'), - weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'), - weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY [kl.] H:mm', - LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm' - }, - calendar : { - sameDay: '[I dag klokka] LT', - nextDay: '[I morgon klokka] LT', - nextWeek: 'dddd [klokka] LT', - lastDay: '[I går klokka] LT', - lastWeek: '[Føregåande] dddd [klokka] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'om %s', - past : '%s sidan', - s : 'nokre sekund', - m : 'eit minutt', - mm : '%d minutt', - h : 'ein time', - hh : '%d timar', - d : 'ein dag', - dd : '%d dagar', - M : 'ein månad', - MM : '%d månader', - y : 'eit år', - yy : '%d år' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } - }); - - return nn; - - }))); + "use strict"; + function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; + } + Object.defineProperty(exports, "__esModule", { value: true }); + __export(__webpack_require__(510)); + __export(__webpack_require__(550)); + __export(__webpack_require__(551)); + __export(__webpack_require__(552)); + __export(__webpack_require__(553)); + __export(__webpack_require__(554)); /***/ }), -/* 484 */ +/* 510 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Punjabi (India) [pa-in] - //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var symbolMap = { - '1': '੧', - '2': '੨', - '3': '੩', - '4': '੪', - '5': '੫', - '6': '੬', - '7': '੭', - '8': '੮', - '9': '੯', - '0': '੦' - }; - var numberMap = { - '੧': '1', - '੨': '2', - '੩': '3', - '੪': '4', - '੫': '5', - '੬': '6', - '੭': '7', - '੮': '8', - '੯': '9', - '੦': '0' - }; - - var paIn = moment.defineLocale('pa-in', { - // There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi. - months : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'), - monthsShort : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'), - weekdays : 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'), - weekdaysShort : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), - weekdaysMin : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), - longDateFormat : { - LT : 'A h:mm ਵਜੇ', - LTS : 'A h:mm:ss ਵਜੇ', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, A h:mm ਵਜੇ', - LLLL : 'dddd, D MMMM YYYY, A h:mm ਵਜੇ' - }, - calendar : { - sameDay : '[ਅਜ] LT', - nextDay : '[ਕਲ] LT', - nextWeek : 'dddd, LT', - lastDay : '[ਕਲ] LT', - lastWeek : '[ਪਿਛਲੇ] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s ਵਿੱਚ', - past : '%s ਪਿਛਲੇ', - s : 'ਕੁਝ ਸਕਿੰਟ', - m : 'ਇਕ ਮਿੰਟ', - mm : '%d ਮਿੰਟ', - h : 'ਇੱਕ ਘੰਟਾ', - hh : '%d ਘੰਟੇ', - d : 'ਇੱਕ ਦਿਨ', - dd : '%d ਦਿਨ', - M : 'ਇੱਕ ਮਹੀਨਾ', - MM : '%d ਮਹੀਨੇ', - y : 'ਇੱਕ ਸਾਲ', - yy : '%d ਸਾਲ' - }, - preparse: function (string) { - return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // Punjabi notation for meridiems are quite fuzzy in practice. While there exists - // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi. - meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'ਰਾਤ') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'ਸਵੇਰ') { - return hour; - } else if (meridiem === 'ਦੁਪਹਿਰ') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'ਸ਼ਾਮ') { - return hour + 12; - } - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'ਰਾਤ'; - } else if (hour < 10) { - return 'ਸਵੇਰ'; - } else if (hour < 17) { - return 'ਦੁਪਹਿਰ'; - } else if (hour < 20) { - return 'ਸ਼ਾਮ'; - } else { - return 'ਰਾਤ'; - } - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(511); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var React = __webpack_require__(3); + var src_1 = __webpack_require__(512); + var formatSelect_1 = __webpack_require__(548); + var precisionSelect_1 = __webpack_require__(549); + var DateInputExample = (function (_super) { + tslib_1.__extends(DateInputExample, _super); + function DateInputExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + closeOnSelection: true, + disabled: false, + format: formatSelect_1.FORMATS[0], + openOnFocus: true, + }; + _this.toggleFocus = docs_1.handleBooleanChange(function (openOnFocus) { return _this.setState({ openOnFocus: openOnFocus }); }); + _this.toggleSelection = docs_1.handleBooleanChange(function (closeOnSelection) { return _this.setState({ closeOnSelection: closeOnSelection }); }); + _this.toggleDisabled = docs_1.handleBooleanChange(function (disabled) { return _this.setState({ disabled: disabled }); }); + _this.toggleFormat = docs_1.handleStringChange(function (format) { return _this.setState({ format: format }); }); + _this.toggleTimePrecision = docs_1.handleNumberChange(function (timePrecision) { + return _this.setState({ + timePrecision: timePrecision < 0 ? undefined : timePrecision, + }); + }); + return _this; } - }); - - return paIn; - - }))); + DateInputExample.prototype.renderExample = function () { + return React.createElement(src_1.DateInput, tslib_1.__assign({}, this.state, { defaultValue: new Date() })); + }; + DateInputExample.prototype.renderOptions = function () { + return [ + [ + React.createElement(core_1.Switch, { checked: this.state.openOnFocus, label: "Open on input focus", key: "Focus", onChange: this.toggleFocus }), + React.createElement(core_1.Switch, { checked: this.state.closeOnSelection, label: "Close on selection", key: "Selection", onChange: this.toggleSelection }), + React.createElement(core_1.Switch, { checked: this.state.disabled, label: "Disabled", key: "Disabled", onChange: this.toggleDisabled }), + React.createElement(precisionSelect_1.PrecisionSelect, { label: "Time Precision", key: "precision", allowEmpty: true, value: this.state.timePrecision, onChange: this.toggleTimePrecision }), + ], + [React.createElement(formatSelect_1.FormatSelect, { key: "Format", onChange: this.toggleFormat, selectedValue: this.state.format })], + ]; + }; + return DateInputExample; + }(docs_1.BaseExample)); + exports.DateInputExample = DateInputExample; /***/ }), -/* 485 */ +/* 511 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Polish [pl] - //! author : Rafal Hirsz : https://github.com/evoL - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'); - var monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_'); - function plural(n) { - return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1); - } - function translate(number, withoutSuffix, key) { - var result = number + ' '; - switch (key) { - case 'm': - return withoutSuffix ? 'minuta' : 'minutę'; - case 'mm': - return result + (plural(number) ? 'minuty' : 'minut'); - case 'h': - return withoutSuffix ? 'godzina' : 'godzinę'; - case 'hh': - return result + (plural(number) ? 'godziny' : 'godzin'); - case 'MM': - return result + (plural(number) ? 'miesiące' : 'miesięcy'); - case 'yy': - return result + (plural(number) ? 'lata' : 'lat'); - } - } - - var pl = moment.defineLocale('pl', { - months : function (momentToFormat, format) { - if (!momentToFormat) { - return monthsNominative; - } else if (format === '') { - // Hack: if format empty we know this is used to generate - // RegExp by moment. Give then back both valid forms of months - // in RegExp ready format. - return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')'; - } else if (/D MMMM/.test(format)) { - return monthsSubjective[momentToFormat.month()]; - } else { - return monthsNominative[momentToFormat.month()]; - } - }, - monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'), - weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'), - weekdaysShort : 'ndz_pon_wt_śr_czw_pt_sob'.split('_'), - weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[Dziś o] LT', - nextDay: '[Jutro o] LT', - nextWeek: '[W] dddd [o] LT', - lastDay: '[Wczoraj o] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[W zeszłą niedzielę o] LT'; - case 3: - return '[W zeszłą środę o] LT'; - case 6: - return '[W zeszłą sobotę o] LT'; - default: - return '[W zeszły] dddd [o] LT'; - } - }, - sameElse: 'L' - }, - relativeTime : { - future : 'za %s', - past : '%s temu', - s : 'kilka sekund', - m : translate, - mm : translate, - h : translate, - hh : translate, - d : '1 dzień', - dd : '%d dni', - M : 'miesiąc', - MM : translate, - y : 'rok', - yy : translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } + var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(global) {/*! ***************************************************************************** + Copyright (c) Microsoft Corporation. All rights reserved. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use + this file except in compliance with the License. You may obtain a copy of the + License at http://www.apache.org/licenses/LICENSE-2.0 + + THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED + WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, + MERCHANTABLITY OR NON-INFRINGEMENT. + + See the Apache Version 2.0 License for specific language governing permissions + and limitations under the License. + ***************************************************************************** */ + /* global global, define, System, Reflect, Promise */ + var __extends; + var __assign; + var __rest; + var __decorate; + var __param; + var __metadata; + var __awaiter; + var __generator; + var __exportStar; + var __values; + var __read; + var __spread; + var __await; + var __asyncGenerator; + var __asyncDelegator; + var __asyncValues; + (function (factory) { + var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; + if (true) { + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports], __WEBPACK_AMD_DEFINE_RESULT__ = function (exports) { factory(createExporter(root, createExporter(exports))); }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } + else if (typeof module === "object" && typeof module.exports === "object") { + factory(createExporter(root, createExporter(module.exports))); + } + else { + factory(createExporter(root)); + } + function createExporter(exports, previous) { + return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; + } + }) + (function (exporter) { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + + __extends = function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + + __assign = Object.assign || function (t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + + __rest = function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) + t[p[i]] = s[p[i]]; + return t; + }; + + __decorate = function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + + __param = function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + }; + + __metadata = function (metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); + }; + + __awaiter = function (thisArg, _arguments, P, generator) { + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + + __generator = function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + }; + + __exportStar = function (m, exports) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; + }; + + __values = function (o) { + var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0; + if (m) return m.call(o); + return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + }; + + __read = function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + }; + + __spread = function () { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; + }; + + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + + __asyncGenerator = function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + }; + + __asyncDelegator = function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; } + }; + + __asyncValues = function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator]; + return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator](); + }; + + exporter("__extends", __extends); + exporter("__assign", __assign); + exporter("__rest", __rest); + exporter("__decorate", __decorate); + exporter("__param", __param); + exporter("__metadata", __metadata); + exporter("__awaiter", __awaiter); + exporter("__generator", __generator); + exporter("__exportStar", __exportStar); + exporter("__values", __values); + exporter("__read", __read); + exporter("__spread", __spread); + exporter("__await", __await); + exporter("__asyncGenerator", __asyncGenerator); + exporter("__asyncDelegator", __asyncDelegator); + exporter("__asyncValues", __asyncValues); }); - - return pl; - - }))); - + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }), -/* 486 */ +/* 512 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Portuguese [pt] - //! author : Jefferson : https://github.com/jalex79 - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var pt = moment.defineLocale('pt', { - months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'), - monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'), - weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'), - weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), - weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D [de] MMMM [de] YYYY', - LLL : 'D [de] MMMM [de] YYYY HH:mm', - LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm' - }, - calendar : { - sameDay: '[Hoje às] LT', - nextDay: '[Amanhã às] LT', - nextWeek: 'dddd [às] LT', - lastDay: '[Ontem às] LT', - lastWeek: function () { - return (this.day() === 0 || this.day() === 6) ? - '[Último] dddd [às] LT' : // Saturday + Sunday - '[Última] dddd [às] LT'; // Monday - Friday - }, - sameElse: 'L' - }, - relativeTime : { - future : 'em %s', - past : 'há %s', - s : 'segundos', - m : 'um minuto', - mm : '%d minutos', - h : 'uma hora', - hh : '%d horas', - d : 'um dia', - dd : '%d dias', - M : 'um mês', - MM : '%d meses', - y : 'um ano', - yy : '%d anos' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal : '%dº', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } - }); - - return pt; - - }))); + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var classes = __webpack_require__(513); + var react_day_picker_1 = __webpack_require__(514); + exports.IDatePickerLocaleUtils = react_day_picker_1.LocaleUtils; + exports.Classes = classes; + var dateUtils_1 = __webpack_require__(534); + exports.DateRangeBoundary = dateUtils_1.DateRangeBoundary; + var dateInput_1 = __webpack_require__(535); + exports.DateInput = dateInput_1.DateInput; + var datePicker_1 = __webpack_require__(538); + exports.DatePicker = datePicker_1.DatePicker; + exports.DatePickerFactory = datePicker_1.DatePickerFactory; + var dateTimePicker_1 = __webpack_require__(542); + exports.DateTimePicker = dateTimePicker_1.DateTimePicker; + var dateRangeInput_1 = __webpack_require__(544); + exports.DateRangeInput = dateRangeInput_1.DateRangeInput; + var dateRangePicker_1 = __webpack_require__(545); + exports.DateRangePicker = dateRangePicker_1.DateRangePicker; + exports.DateRangePickerFactory = dateRangePicker_1.DateRangePickerFactory; + var timePicker_1 = __webpack_require__(543); + exports.TimePicker = timePicker_1.TimePicker; + exports.TimePickerFactory = timePicker_1.TimePickerFactory; + exports.TimePickerPrecision = timePicker_1.TimePickerPrecision; /***/ }), -/* 487 */ -/***/ (function(module, exports, __webpack_require__) { +/* 513 */ +/***/ (function(module, exports) { - //! moment.js locale configuration - //! locale : Portuguese (Brazil) [pt-br] - //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - - - var ptBr = moment.defineLocale('pt-br', { - months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'), - monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'), - weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'), - weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), - weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D [de] MMMM [de] YYYY', - LLL : 'D [de] MMMM [de] YYYY [às] HH:mm', - LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm' - }, - calendar : { - sameDay: '[Hoje às] LT', - nextDay: '[Amanhã às] LT', - nextWeek: 'dddd [às] LT', - lastDay: '[Ontem às] LT', - lastWeek: function () { - return (this.day() === 0 || this.day() === 6) ? - '[Último] dddd [às] LT' : // Saturday + Sunday - '[Última] dddd [às] LT'; // Monday - Friday - }, - sameElse: 'L' - }, - relativeTime : { - future : 'em %s', - past : '%s atrás', - s : 'poucos segundos', - m : 'um minuto', - mm : '%d minutos', - h : 'uma hora', - hh : '%d horas', - d : 'um dia', - dd : '%d dias', - M : 'um mês', - MM : '%d meses', - y : 'um ano', - yy : '%d anos' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal : '%dº' - }); + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DATEPICKER = "pt-datepicker"; + exports.DATEPICKER_CAPTION = "pt-datepicker-caption"; + exports.DATEPICKER_CAPTION_CARET = "pt-datepicker-caption-caret"; + exports.DATEPICKER_CAPTION_SELECT = "pt-datepicker-caption-select"; + exports.DATEPICKER_DAY = "DayPicker-Day"; + exports.DATEPICKER_DAY_DISABLED = "DayPicker-Day--disabled"; + exports.DATEPICKER_DAY_OUTSIDE = "DayPicker-Day--outside"; + exports.DATEPICKER_DAY_SELECTED = "DayPicker-Day--selected"; + exports.DATEPICKER_FOOTER = "pt-datepicker-footer"; + exports.DATEPICKER_MONTH_SELECT = "pt-datepicker-month-select"; + exports.DATEPICKER_YEAR_SELECT = "pt-datepicker-year-select"; + exports.DATERANGEPICKER = "pt-daterangepicker"; + exports.DATERANGEPICKER_CONTIGUOUS = "pt-daterangepicker-contiguous"; + exports.DATERANGEPICKER_SINGLE_MONTH = "pt-daterangepicker-single-month"; + exports.DATERANGEPICKER_DAY_SELECTED_RANGE = "DayPicker-Day--selected-range"; + exports.DATERANGEPICKER_DAY_HOVERED_RANGE = "DayPicker-Day--hovered-range"; + exports.DATERANGEPICKER_SHORTCUTS = "pt-daterangepicker-shortcuts"; + exports.DATETIMEPICKER = "pt-datetimepicker"; + exports.TIMEPICKER = "pt-timepicker"; + exports.TIMEPICKER_ARROW_BUTTON = "pt-timepicker-arrow-button"; + exports.TIMEPICKER_ARROW_ROW = "pt-timepicker-arrow-row"; + exports.TIMEPICKER_DIVIDER_TEXT = "pt-timepicker-divider-text"; + exports.TIMEPICKER_HOUR = "pt-timepicker-hour"; + exports.TIMEPICKER_INPUT = "pt-timepicker-input"; + exports.TIMEPICKER_INPUT_ROW = "pt-timepicker-input-row"; + exports.TIMEPICKER_MILLISECOND = "pt-timepicker-millisecond"; + exports.TIMEPICKER_MINUTE = "pt-timepicker-minute"; + exports.TIMEPICKER_SECOND = "pt-timepicker-second"; + + +/***/ }), +/* 514 */ +/***/ (function(module, exports, __webpack_require__) { + + /* eslint-disable no-var */ + /* eslint-env node */ - return ptBr; + var DayPicker = __webpack_require__(515); + var DateUtils = __webpack_require__(528); + var LocaleUtils = __webpack_require__(529); + var ModifiersUtils = __webpack_require__(532); + var Weekday = __webpack_require__(531); + var Navbar = __webpack_require__(523); + var PropTypes = __webpack_require__(517); - }))); + module.exports = DayPicker.default || DayPicker; + module.exports.DateUtils = DateUtils.default || DateUtils; + module.exports.LocaleUtils = LocaleUtils.default || LocaleUtils; + module.exports.ModifiersUtils = ModifiersUtils.default || ModifiersUtils; + module.exports.WeekdayPropTypes = Weekday.WeekdayPropTypes; + module.exports.NavbarPropTypes = Navbar.NavbarPropTypes; + module.exports.PropTypes = PropTypes; /***/ }), -/* 488 */ +/* 515 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Romanian [ro] - //! author : Vlad Gurdiga : https://github.com/gurdiga - //! author : Valentin Agachi : https://github.com/avaly + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + 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; }; - function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - 'mm': 'minute', - 'hh': 'ore', - 'dd': 'zile', - 'MM': 'luni', - 'yy': 'ani' - }, - separator = ' '; - if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) { - separator = ' de '; - } - return number + separator + format[key]; - } + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - var ro = moment.defineLocale('ro', { - months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'), - monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'), - monthsParseExact: true, - weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'), - weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'), - weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'), - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY H:mm', - LLLL : 'dddd, D MMMM YYYY H:mm' - }, - calendar : { - sameDay: '[azi la] LT', - nextDay: '[mâine la] LT', - nextWeek: 'dddd [la] LT', - lastDay: '[ieri la] LT', - lastWeek: '[fosta] dddd [la] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'peste %s', - past : '%s în urmă', - s : 'câteva secunde', - m : 'un minut', - mm : relativeTimeWithPlural, - h : 'o oră', - hh : relativeTimeWithPlural, - d : 'o zi', - dd : relativeTimeWithPlural, - M : 'o lună', - MM : relativeTimeWithPlural, - y : 'un an', - yy : relativeTimeWithPlural - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } - }); + var _react = __webpack_require__(3); - return ro; + var _react2 = _interopRequireDefault(_react); - }))); - - -/***/ }), -/* 489 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Russian [ru] - //! author : Viktorminator : https://github.com/Viktorminator - //! Author : Menelion Elensúle : https://github.com/Oire - //! author : Коренберг Марк : https://github.com/socketpair + var _Caption = __webpack_require__(516); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _Caption2 = _interopRequireDefault(_Caption); + var _Navbar = __webpack_require__(523); - function plural(word, num) { - var forms = word.split('_'); - return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); - } - function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут', - 'hh': 'час_часа_часов', - 'dd': 'день_дня_дней', - 'MM': 'месяц_месяца_месяцев', - 'yy': 'год_года_лет' - }; - if (key === 'm') { - return withoutSuffix ? 'минута' : 'минуту'; - } - else { - return number + ' ' + plural(format[key], +number); - } - } - var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i]; + var _Navbar2 = _interopRequireDefault(_Navbar); - // http://new.gramota.ru/spravka/rules/139-prop : § 103 - // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637 - // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753 - var ru = moment.defineLocale('ru', { - months : { - format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'), - standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_') - }, - monthsShort : { - // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ? - format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'), - standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_') - }, - weekdays : { - standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'), - format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'), - isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/ - }, - weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'), - weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'), - monthsParse : monthsParse, - longMonthsParse : monthsParse, - shortMonthsParse : monthsParse, + var _Month = __webpack_require__(525); - // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки - monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, + var _Month2 = _interopRequireDefault(_Month); - // копия предыдущего - monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, + var _Day = __webpack_require__(530); - // полные названия с падежами - monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i, + var _Day2 = _interopRequireDefault(_Day); - // Выражение, которое соотвествует только сокращённым формам - monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY г.', - LLL : 'D MMMM YYYY г., HH:mm', - LLLL : 'dddd, D MMMM YYYY г., HH:mm' - }, - calendar : { - sameDay: '[Сегодня в] LT', - nextDay: '[Завтра в] LT', - lastDay: '[Вчера в] LT', - nextWeek: function (now) { - if (now.week() !== this.week()) { - switch (this.day()) { - case 0: - return '[В следующее] dddd [в] LT'; - case 1: - case 2: - case 4: - return '[В следующий] dddd [в] LT'; - case 3: - case 5: - case 6: - return '[В следующую] dddd [в] LT'; - } - } else { - if (this.day() === 2) { - return '[Во] dddd [в] LT'; - } else { - return '[В] dddd [в] LT'; - } - } - }, - lastWeek: function (now) { - if (now.week() !== this.week()) { - switch (this.day()) { - case 0: - return '[В прошлое] dddd [в] LT'; - case 1: - case 2: - case 4: - return '[В прошлый] dddd [в] LT'; - case 3: - case 5: - case 6: - return '[В прошлую] dddd [в] LT'; - } - } else { - if (this.day() === 2) { - return '[Во] dddd [в] LT'; - } else { - return '[В] dddd [в] LT'; - } - } - }, - sameElse: 'L' - }, - relativeTime : { - future : 'через %s', - past : '%s назад', - s : 'несколько секунд', - m : relativeTimeWithPlural, - mm : relativeTimeWithPlural, - h : 'час', - hh : relativeTimeWithPlural, - d : 'день', - dd : relativeTimeWithPlural, - M : 'месяц', - MM : relativeTimeWithPlural, - y : 'год', - yy : relativeTimeWithPlural - }, - meridiemParse: /ночи|утра|дня|вечера/i, - isPM : function (input) { - return /^(дня|вечера)$/.test(input); - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'ночи'; - } else if (hour < 12) { - return 'утра'; - } else if (hour < 17) { - return 'дня'; - } else { - return 'вечера'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/, - ordinal: function (number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - return number + '-й'; - case 'D': - return number + '-го'; - case 'w': - case 'W': - return number + '-я'; - default: - return number; - } - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } - }); + var _Weekday = __webpack_require__(531); - return ru; + var _Weekday2 = _interopRequireDefault(_Weekday); - }))); - - -/***/ }), -/* 490 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Sindhi [sd] - //! author : Narain Sagar : https://github.com/narainsagar + var _Helpers = __webpack_require__(527); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var Helpers = _interopRequireWildcard(_Helpers); + var _DateUtils = __webpack_require__(528); - var months = [ - 'جنوري', - 'فيبروري', - 'مارچ', - 'اپريل', - 'مئي', - 'جون', - 'جولاءِ', - 'آگسٽ', - 'سيپٽمبر', - 'آڪٽوبر', - 'نومبر', - 'ڊسمبر' - ]; - var days = [ - 'آچر', - 'سومر', - 'اڱارو', - 'اربع', - 'خميس', - 'جمع', - 'ڇنڇر' - ]; + var DateUtils = _interopRequireWildcard(_DateUtils); - var sd = moment.defineLocale('sd', { - months : months, - monthsShort : months, - weekdays : days, - weekdaysShort : days, - weekdaysMin : days, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd، D MMMM YYYY HH:mm' - }, - meridiemParse: /صبح|شام/, - isPM : function (input) { - return 'شام' === input; - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return 'صبح'; + var _LocaleUtils = __webpack_require__(529); + + var LocaleUtils = _interopRequireWildcard(_LocaleUtils); + + var _ModifiersUtils = __webpack_require__(532); + + var ModifiersUtils = _interopRequireWildcard(_ModifiersUtils); + + var _classNames = __webpack_require__(524); + + var _classNames2 = _interopRequireDefault(_classNames); + + var _keys = __webpack_require__(533); + + var _keys2 = _interopRequireDefault(_keys); + + var _PropTypes = __webpack_require__(517); + + var _PropTypes2 = _interopRequireDefault(_PropTypes); + + function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + 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; } + + function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + function _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; } + + var DayPicker = function (_Component) { + _inherits(DayPicker, _Component); + + function DayPicker(props) { + _classCallCheck(this, DayPicker); + + /* istanbul ignore next */ + // for the ignore above see: https://github.com/gotwarlost/istanbul/issues/690 + + var _this = _possibleConstructorReturn(this, (DayPicker.__proto__ || Object.getPrototypeOf(DayPicker)).call(this, props)); + + _initialiseProps.call(_this); + + _this.renderDayInMonth = _this.renderDayInMonth.bind(_this); + _this.showNextMonth = _this.showNextMonth.bind(_this); + _this.showPreviousMonth = _this.showPreviousMonth.bind(_this); + + _this.handleKeyDown = _this.handleKeyDown.bind(_this); + _this.handleDayClick = _this.handleDayClick.bind(_this); + _this.handleDayKeyDown = _this.handleDayKeyDown.bind(_this); + + _this.state = _this.getStateFromProps(props); + return _this; + } + + _createClass(DayPicker, [{ + key: 'componentWillReceiveProps', + value: function componentWillReceiveProps(nextProps) { + if (this.props.month !== nextProps.month) { + this.setState(this.getStateFromProps(nextProps)); + } + } + }, { + key: 'getDayNodes', + value: function getDayNodes() { + var outsideClassName = void 0; + if (this.props.classNames === _classNames2.default) { + // When using CSS modules prefix the modifier as required by the BEM syntax + outsideClassName = this.props.classNames.day + '--' + this.props.classNames.outside; + } else { + outsideClassName = '' + this.props.classNames.outside; + } + var dayQuery = this.props.classNames.day.replace(/ /g, '.'); + var outsideDayQuery = outsideClassName.replace(/ /g, '.'); + var selector = '.' + dayQuery + ':not(.' + outsideDayQuery + ')'; + return this.dayPicker.querySelectorAll(selector); + } + }, { + key: 'getNextNavigableMonth', + value: function getNextNavigableMonth() { + return DateUtils.addMonths(this.state.currentMonth, this.props.numberOfMonths); + } + }, { + key: 'getPreviousNavigableMonth', + value: function getPreviousNavigableMonth() { + return DateUtils.addMonths(this.state.currentMonth, -1); + } + }, { + key: 'allowPreviousMonth', + value: function allowPreviousMonth() { + var previousMonth = DateUtils.addMonths(this.state.currentMonth, -1); + return this.allowMonth(previousMonth); + } + }, { + key: 'allowNextMonth', + value: function allowNextMonth() { + var nextMonth = DateUtils.addMonths(this.state.currentMonth, this.props.numberOfMonths); + return this.allowMonth(nextMonth); + } + }, { + key: 'allowMonth', + value: function allowMonth(d) { + var _props = this.props, + fromMonth = _props.fromMonth, + toMonth = _props.toMonth, + canChangeMonth = _props.canChangeMonth; + + if (!canChangeMonth || fromMonth && Helpers.getMonthsDiff(fromMonth, d) < 0 || toMonth && Helpers.getMonthsDiff(toMonth, d) > 0) { + return false; + } + return true; + } + }, { + key: 'allowYearChange', + value: function allowYearChange() { + return this.props.canChangeMonth; + } + }, { + key: 'showMonth', + value: function showMonth(d, callback) { + var _this2 = this; + + if (!this.allowMonth(d)) { + return; + } + this.setState({ currentMonth: Helpers.startOfMonth(d) }, function () { + if (callback) { + callback(); } - return 'شام'; - }, - calendar : { - sameDay : '[اڄ] LT', - nextDay : '[سڀاڻي] LT', - nextWeek : 'dddd [اڳين هفتي تي] LT', - lastDay : '[ڪالهه] LT', - lastWeek : '[گزريل هفتي] dddd [تي] LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s پوء', - past : '%s اڳ', - s : 'چند سيڪنڊ', - m : 'هڪ منٽ', - mm : '%d منٽ', - h : 'هڪ ڪلاڪ', - hh : '%d ڪلاڪ', - d : 'هڪ ڏينهن', - dd : '%d ڏينهن', - M : 'هڪ مهينو', - MM : '%d مهينا', - y : 'هڪ سال', - yy : '%d سال' - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + if (_this2.props.onMonthChange) { + _this2.props.onMonthChange(_this2.state.currentMonth); + } + }); + } + }, { + key: 'showNextMonth', + value: function showNextMonth(callback) { + if (!this.allowNextMonth()) { + return; + } + var deltaMonths = this.props.pagedNavigation ? this.props.numberOfMonths : 1; + var nextMonth = DateUtils.addMonths(this.state.currentMonth, deltaMonths); + this.showMonth(nextMonth, callback); } - }); - - return sd; - - }))); - - -/***/ }), -/* 491 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Northern Sami [se] - //! authors : Bård Rolstad Henriksen : https://github.com/karamell + }, { + key: 'showPreviousMonth', + value: function showPreviousMonth(callback) { + if (!this.allowPreviousMonth()) { + return; + } + var deltaMonths = this.props.pagedNavigation ? this.props.numberOfMonths : 1; + var previousMonth = DateUtils.addMonths(this.state.currentMonth, -deltaMonths); + this.showMonth(previousMonth, callback); + } + }, { + key: 'showNextYear', + value: function showNextYear() { + if (!this.allowYearChange()) { + return; + } + var nextMonth = DateUtils.addMonths(this.state.currentMonth, 12); + this.showMonth(nextMonth); + } + }, { + key: 'showPreviousYear', + value: function showPreviousYear() { + if (!this.allowYearChange()) { + return; + } + var nextMonth = DateUtils.addMonths(this.state.currentMonth, -12); + this.showMonth(nextMonth); + } + }, { + key: 'focusFirstDayOfMonth', + value: function focusFirstDayOfMonth() { + this.getDayNodes()[0].focus(); + } + }, { + key: 'focusLastDayOfMonth', + value: function focusLastDayOfMonth() { + var dayNodes = this.getDayNodes(); + dayNodes[dayNodes.length - 1].focus(); + } + }, { + key: 'focusPreviousDay', + value: function focusPreviousDay(dayNode) { + var _this3 = this; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var dayNodes = this.getDayNodes(); + var dayNodeIndex = [].concat(_toConsumableArray(dayNodes)).indexOf(dayNode); + if (dayNodeIndex === 0) { + this.showPreviousMonth(function () { + return _this3.focusLastDayOfMonth(); + }); + } else { + dayNodes[dayNodeIndex - 1].focus(); + } + } + }, { + key: 'focusNextDay', + value: function focusNextDay(dayNode) { + var _this4 = this; + var dayNodes = this.getDayNodes(); + var dayNodeIndex = [].concat(_toConsumableArray(dayNodes)).indexOf(dayNode); - var se = moment.defineLocale('se', { - months : 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'), - monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'), - weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'), - weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'), - weekdaysMin : 's_v_m_g_d_b_L'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'MMMM D. [b.] YYYY', - LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm', - LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm' - }, - calendar : { - sameDay: '[otne ti] LT', - nextDay: '[ihttin ti] LT', - nextWeek: 'dddd [ti] LT', - lastDay: '[ikte ti] LT', - lastWeek: '[ovddit] dddd [ti] LT', - sameElse: 'L' - }, - relativeTime : { - future : '%s geažes', - past : 'maŋit %s', - s : 'moadde sekunddat', - m : 'okta minuhta', - mm : '%d minuhtat', - h : 'okta diimmu', - hh : '%d diimmut', - d : 'okta beaivi', - dd : '%d beaivvit', - M : 'okta mánnu', - MM : '%d mánut', - y : 'okta jahki', - yy : '%d jagit' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + if (dayNodeIndex === dayNodes.length - 1) { + this.showNextMonth(function () { + return _this4.focusFirstDayOfMonth(); + }); + } else { + dayNodes[dayNodeIndex + 1].focus(); + } } - }); - - return se; + }, { + key: 'focusNextWeek', + value: function focusNextWeek(dayNode) { + var _this5 = this; - }))); - - -/***/ }), -/* 492 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Sinhalese [si] - //! author : Sampath Sitinamaluwa : https://github.com/sampathsris + var dayNodes = this.getDayNodes(); + var dayNodeIndex = [].concat(_toConsumableArray(dayNodes)).indexOf(dayNode); + var isInLastWeekOfMonth = dayNodeIndex > dayNodes.length - 8; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (isInLastWeekOfMonth) { + this.showNextMonth(function () { + var daysAfterIndex = dayNodes.length - dayNodeIndex; + var nextMonthDayNodeIndex = 7 - daysAfterIndex; + _this5.getDayNodes()[nextMonthDayNodeIndex].focus(); + }); + } else { + dayNodes[dayNodeIndex + 7].focus(); + } + } + }, { + key: 'focusPreviousWeek', + value: function focusPreviousWeek(dayNode) { + var _this6 = this; + var dayNodes = this.getDayNodes(); + var dayNodeIndex = [].concat(_toConsumableArray(dayNodes)).indexOf(dayNode); + var isInFirstWeekOfMonth = dayNodeIndex <= 6; - /*jshint -W100*/ - var si = moment.defineLocale('si', { - months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'), - monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'), - weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'), - weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'), - weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'a h:mm', - LTS : 'a h:mm:ss', - L : 'YYYY/MM/DD', - LL : 'YYYY MMMM D', - LLL : 'YYYY MMMM D, a h:mm', - LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss' - }, - calendar : { - sameDay : '[අද] LT[ට]', - nextDay : '[හෙට] LT[ට]', - nextWeek : 'dddd LT[ට]', - lastDay : '[ඊයේ] LT[ට]', - lastWeek : '[පසුගිය] dddd LT[ට]', - sameElse : 'L' - }, - relativeTime : { - future : '%sකින්', - past : '%sකට පෙර', - s : 'තත්පර කිහිපය', - m : 'මිනිත්තුව', - mm : 'මිනිත්තු %d', - h : 'පැය', - hh : 'පැය %d', - d : 'දිනය', - dd : 'දින %d', - M : 'මාසය', - MM : 'මාස %d', - y : 'වසර', - yy : 'වසර %d' - }, - dayOfMonthOrdinalParse: /\d{1,2} වැනි/, - ordinal : function (number) { - return number + ' වැනි'; - }, - meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./, - isPM : function (input) { - return input === 'ප.ව.' || input === 'පස් වරු'; - }, - meridiem : function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'ප.ව.' : 'පස් වරු'; - } else { - return isLower ? 'පෙ.ව.' : 'පෙර වරු'; - } + if (isInFirstWeekOfMonth) { + this.showPreviousMonth(function () { + var previousMonthDayNodes = _this6.getDayNodes(); + var startOfLastWeekOfMonth = previousMonthDayNodes.length - 7; + var previousMonthDayNodeIndex = startOfLastWeekOfMonth + dayNodeIndex; + previousMonthDayNodes[previousMonthDayNodeIndex].focus(); + }); + } else { + dayNodes[dayNodeIndex - 7].focus(); + } } - }); - return si; - - }))); - - -/***/ }), -/* 493 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Slovak [sk] - //! author : Martin Minka : https://github.com/k2s - //! based on work of petrbela : https://github.com/petrbela + // Event handlers - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + }, { + key: 'handleKeyDown', + value: function handleKeyDown(e) { + e.persist(); + switch (e.keyCode) { + case _keys2.default.LEFT: + this.showPreviousMonth(); + break; + case _keys2.default.RIGHT: + this.showNextMonth(); + break; + case _keys2.default.UP: + this.showPreviousYear(); + break; + case _keys2.default.DOWN: + this.showNextYear(); + break; + default: + break; + } - var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'); - var monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_'); - function plural(n) { - return (n > 1) && (n < 5); - } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': // a few seconds / in a few seconds / a few seconds ago - return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami'; - case 'm': // a minute / in a minute / a minute ago - return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou'); - case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'minúty' : 'minút'); - } else { - return result + 'minútami'; - } - break; - case 'h': // an hour / in an hour / an hour ago - return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou'); - case 'hh': // 9 hours / in 9 hours / 9 hours ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'hodiny' : 'hodín'); - } else { - return result + 'hodinami'; - } - break; - case 'd': // a day / in a day / a day ago - return (withoutSuffix || isFuture) ? 'deň' : 'dňom'; - case 'dd': // 9 days / in 9 days / 9 days ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'dni' : 'dní'); - } else { - return result + 'dňami'; - } - break; - case 'M': // a month / in a month / a month ago - return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom'; - case 'MM': // 9 months / in 9 months / 9 months ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'mesiace' : 'mesiacov'); - } else { - return result + 'mesiacmi'; - } - break; - case 'y': // a year / in a year / a year ago - return (withoutSuffix || isFuture) ? 'rok' : 'rokom'; - case 'yy': // 9 years / in 9 years / 9 years ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'roky' : 'rokov'); - } else { - return result + 'rokmi'; - } - break; + if (this.props.onKeyDown) { + this.props.onKeyDown(e); + } } - } - - var sk = moment.defineLocale('sk', { - months : months, - monthsShort : monthsShort, - weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'), - weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'), - weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'), - longDateFormat : { - LT: 'H:mm', - LTS : 'H:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY H:mm', - LLLL : 'dddd D. MMMM YYYY H:mm' - }, - calendar : { - sameDay: '[dnes o] LT', - nextDay: '[zajtra o] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[v nedeľu o] LT'; - case 1: - case 2: - return '[v] dddd [o] LT'; - case 3: - return '[v stredu o] LT'; - case 4: - return '[vo štvrtok o] LT'; - case 5: - return '[v piatok o] LT'; - case 6: - return '[v sobotu o] LT'; - } - }, - lastDay: '[včera o] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[minulú nedeľu o] LT'; - case 1: - case 2: - return '[minulý] dddd [o] LT'; - case 3: - return '[minulú stredu o] LT'; - case 4: - case 5: - return '[minulý] dddd [o] LT'; - case 6: - return '[minulú sobotu o] LT'; - } - }, - sameElse: 'L' - }, - relativeTime : { - future : 'za %s', - past : 'pred %s', - s : translate, - m : translate, - mm : translate, - h : translate, - hh : translate, - d : translate, - dd : translate, - M : translate, - MM : translate, - y : translate, - yy : translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + }, { + key: 'handleDayKeyDown', + value: function handleDayKeyDown(day, modifiers, e) { + e.persist(); + switch (e.keyCode) { + case _keys2.default.LEFT: + Helpers.cancelEvent(e); + this.focusPreviousDay(e.target); + break; + case _keys2.default.RIGHT: + Helpers.cancelEvent(e); + this.focusNextDay(e.target); + break; + case _keys2.default.UP: + Helpers.cancelEvent(e); + this.focusPreviousWeek(e.target); + break; + case _keys2.default.DOWN: + Helpers.cancelEvent(e); + this.focusNextWeek(e.target); + break; + case _keys2.default.ENTER: + case _keys2.default.SPACE: + Helpers.cancelEvent(e); + if (this.props.onDayClick) { + this.handleDayClick(day, modifiers, e); + } + break; + default: + break; + } + if (this.props.onDayKeyDown) { + this.props.onDayKeyDown(day, modifiers, e); + } } - }); + }, { + key: 'handleDayClick', + value: function handleDayClick(day, modifiers, e) { + e.persist(); + if (modifiers.outside) { + this.handleOutsideDayClick(day); + } + this.props.onDayClick(day, modifiers, e); + } + }, { + key: 'handleOutsideDayClick', + value: function handleOutsideDayClick(day) { + var currentMonth = this.state.currentMonth; + var numberOfMonths = this.props.numberOfMonths; - return sk; + var diffInMonths = Helpers.getMonthsDiff(currentMonth, day); + if (diffInMonths > 0 && diffInMonths >= numberOfMonths) { + this.showNextMonth(); + } else if (diffInMonths < 0) { + this.showPreviousMonth(); + } + } + }, { + key: 'renderNavbar', + value: function renderNavbar() { + var _props2 = this.props, + labels = _props2.labels, + locale = _props2.locale, + localeUtils = _props2.localeUtils, + canChangeMonth = _props2.canChangeMonth, + navbarElement = _props2.navbarElement, + attributes = _objectWithoutProperties(_props2, ['labels', 'locale', 'localeUtils', 'canChangeMonth', 'navbarElement']); - }))); - - -/***/ }), -/* 494 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Slovenian [sl] - //! author : Robert Sedovšek : https://github.com/sedovsek + if (!canChangeMonth) return null; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var props = { + classNames: this.props.classNames, + className: this.props.classNames.navBar, + nextMonth: this.getNextNavigableMonth(), + previousMonth: this.getPreviousNavigableMonth(), + showPreviousButton: this.allowPreviousMonth(), + showNextButton: this.allowNextMonth(), + onNextClick: this.showNextMonth, + onPreviousClick: this.showPreviousMonth, + dir: attributes.dir, + labels: labels, + locale: locale, + localeUtils: localeUtils + }; + return _react2.default.isValidElement(navbarElement) ? _react2.default.cloneElement(navbarElement, props) : _react2.default.createElement(navbarElement, props); + } + }, { + key: 'renderDayInMonth', + value: function renderDayInMonth(day, month) { + var propModifiers = Helpers.getModifiersFromProps(this.props); + var dayModifiers = ModifiersUtils.getModifiersForDay(day, propModifiers); + if (DateUtils.isSameDay(day, new Date()) && !Object.prototype.hasOwnProperty.call(propModifiers, this.props.classNames.today)) { + dayModifiers.push(this.props.classNames.today); + } + if (day.getMonth() !== month.getMonth()) { + dayModifiers.push(this.props.classNames.outside); + } + var isOutside = day.getMonth() !== month.getMonth(); + var tabIndex = null; + if (this.props.onDayClick && !isOutside) { + tabIndex = -1; + // Focus on the first day of the month + if (day.getDate() === 1) { + tabIndex = this.props.tabIndex; + } + } + var key = '' + day.getFullYear() + day.getMonth() + day.getDate(); + var modifiers = {}; + dayModifiers.forEach(function (modifier) { + modifiers[modifier] = true; + }); - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': - return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami'; - case 'm': - return withoutSuffix ? 'ena minuta' : 'eno minuto'; - case 'mm': - if (number === 1) { - result += withoutSuffix ? 'minuta' : 'minuto'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'minuti' : 'minutama'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'minute' : 'minutami'; - } else { - result += withoutSuffix || isFuture ? 'minut' : 'minutami'; - } - return result; - case 'h': - return withoutSuffix ? 'ena ura' : 'eno uro'; - case 'hh': - if (number === 1) { - result += withoutSuffix ? 'ura' : 'uro'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'uri' : 'urama'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'ure' : 'urami'; - } else { - result += withoutSuffix || isFuture ? 'ur' : 'urami'; - } - return result; - case 'd': - return withoutSuffix || isFuture ? 'en dan' : 'enim dnem'; - case 'dd': - if (number === 1) { - result += withoutSuffix || isFuture ? 'dan' : 'dnem'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'dni' : 'dnevoma'; - } else { - result += withoutSuffix || isFuture ? 'dni' : 'dnevi'; - } - return result; - case 'M': - return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem'; - case 'MM': - if (number === 1) { - result += withoutSuffix || isFuture ? 'mesec' : 'mesecem'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'meseca' : 'mesecema'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'mesece' : 'meseci'; - } else { - result += withoutSuffix || isFuture ? 'mesecev' : 'meseci'; - } - return result; - case 'y': - return withoutSuffix || isFuture ? 'eno leto' : 'enim letom'; - case 'yy': - if (number === 1) { - result += withoutSuffix || isFuture ? 'leto' : 'letom'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'leti' : 'letoma'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'leta' : 'leti'; - } else { - result += withoutSuffix || isFuture ? 'let' : 'leti'; - } - return result; + return _react2.default.createElement( + _Day2.default, + { + key: '' + (isOutside ? 'outside-' : '') + key, + classNames: this.props.classNames, + day: day, + modifiers: modifiers, + modifiersStyles: this.props.modifiersStyles, + empty: isOutside && !this.props.enableOutsideDays && !this.props.fixedWeeks, + tabIndex: tabIndex, + ariaLabel: this.props.localeUtils.formatDay(day, this.props.locale), + ariaDisabled: isOutside || dayModifiers.indexOf('disabled') > -1, + ariaSelected: dayModifiers.indexOf('selected') > -1, + onMouseEnter: this.props.onDayMouseEnter, + onMouseLeave: this.props.onDayMouseLeave, + onKeyDown: this.handleDayKeyDown, + onTouchStart: this.props.onDayTouchStart, + onTouchEnd: this.props.onDayTouchEnd, + onFocus: this.props.onDayFocus, + onClick: this.props.onDayClick ? this.handleDayClick : undefined + }, + this.props.renderDay(day, modifiers) + ); } - } + }, { + key: 'renderMonths', + value: function renderMonths() { + var months = []; + var firstDayOfWeek = Helpers.getFirstDayOfWeekFromProps(this.props); - var sl = moment.defineLocale('sl', { - months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'), - monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'), - monthsParseExact: true, - weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'), - weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'), - weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM YYYY', - LLL : 'D. MMMM YYYY H:mm', - LLLL : 'dddd, D. MMMM YYYY H:mm' - }, - calendar : { - sameDay : '[danes ob] LT', - nextDay : '[jutri ob] LT', + for (var i = 0; i < this.props.numberOfMonths; i += 1) { + var month = DateUtils.addMonths(this.state.currentMonth, i); - nextWeek : function () { - switch (this.day()) { - case 0: - return '[v] [nedeljo] [ob] LT'; - case 3: - return '[v] [sredo] [ob] LT'; - case 6: - return '[v] [soboto] [ob] LT'; - case 1: - case 2: - case 4: - case 5: - return '[v] dddd [ob] LT'; - } - }, - lastDay : '[včeraj ob] LT', - lastWeek : function () { - switch (this.day()) { - case 0: - return '[prejšnjo] [nedeljo] [ob] LT'; - case 3: - return '[prejšnjo] [sredo] [ob] LT'; - case 6: - return '[prejšnjo] [soboto] [ob] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prejšnji] dddd [ob] LT'; - } + months.push(_react2.default.createElement( + _Month2.default, + { + key: i, + classNames: this.props.classNames, + month: month, + months: this.props.months, + weekdayElement: this.props.weekdayElement, + captionElement: this.props.captionElement, + fixedWeeks: this.props.fixedWeeks, + weekdaysShort: this.props.weekdaysShort, + weekdaysLong: this.props.weekdaysLong, + locale: this.props.locale, + localeUtils: this.props.localeUtils, + firstDayOfWeek: firstDayOfWeek, + footer: this.props.todayButton && this.renderTodayButton(), + showWeekNumbers: this.props.showWeekNumbers, + onCaptionClick: this.props.onCaptionClick, + onWeekClick: this.props.onWeekClick + }, + this.renderDayInMonth + )); + } + + if (this.props.reverseMonths) { + months.reverse(); + } + return months; + } + }, { + key: 'renderTodayButton', + value: function renderTodayButton() { + return _react2.default.createElement( + 'button', + { + tabIndex: 0, + className: this.props.classNames.todayButton, + 'aria-label': this.props.todayButton, + onClick: this.handleTodayButtonClick }, - sameElse : 'L' - }, - relativeTime : { - future : 'čez %s', - past : 'pred %s', - s : processRelativeTime, - m : processRelativeTime, - mm : processRelativeTime, - h : processRelativeTime, - hh : processRelativeTime, - d : processRelativeTime, - dd : processRelativeTime, - M : processRelativeTime, - MM : processRelativeTime, - y : processRelativeTime, - yy : processRelativeTime - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + this.props.todayButton + ); } - }); + }, { + key: 'render', + value: function render() { + var _this7 = this; - return sl; + var className = this.props.classNames.container; - }))); - - -/***/ }), -/* 495 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Albanian [sq] - //! author : Flakërim Ismani : https://github.com/flakerimi - //! author : Menelion Elensúle : https://github.com/Oire - //! author : Oerd Cukalla : https://github.com/oerd + if (!this.props.onDayClick) { + className = className + ' ' + this.props.classNames.interactionDisabled; + } + if (this.props.className) { + className = className + ' ' + this.props.className; + } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + return _react2.default.createElement( + 'div', + _extends({}, this.props.containerProps, { + className: className, + ref: function ref(el) { + _this7.dayPicker = el; + }, + role: 'application', + lang: this.props.locale, + tabIndex: this.props.canChangeMonth && this.props.tabIndex, + onKeyDown: this.handleKeyDown, + onFocus: this.props.onFocus, + onBlur: this.props.onBlur + }), + this.renderNavbar(), + this.renderMonths() + ); + } + }]); + return DayPicker; + }(_react.Component); - var sq = moment.defineLocale('sq', { - months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'), - monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'), - weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'), - weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'), - weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'), - weekdaysParseExact : true, - meridiemParse: /PD|MD/, - isPM: function (input) { - return input.charAt(0) === 'M'; - }, - meridiem : function (hours, minutes, isLower) { - return hours < 12 ? 'PD' : 'MD'; - }, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[Sot në] LT', - nextDay : '[Nesër në] LT', - nextWeek : 'dddd [në] LT', - lastDay : '[Dje në] LT', - lastWeek : 'dddd [e kaluar në] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'në %s', - past : '%s më parë', - s : 'disa sekonda', - m : 'një minutë', - mm : '%d minuta', - h : 'një orë', - hh : '%d orë', - d : 'një ditë', - dd : '%d ditë', - M : 'një muaj', - MM : '%d muaj', - y : 'një vit', - yy : '%d vite' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } - }); + DayPicker.VERSION = '5.5.3'; + DayPicker.propTypes = { + // Rendering months + initialMonth: _PropTypes2.default.instanceOf(Date), + month: _PropTypes2.default.instanceOf(Date), + numberOfMonths: _PropTypes2.default.number, + fromMonth: _PropTypes2.default.instanceOf(Date), + toMonth: _PropTypes2.default.instanceOf(Date), + canChangeMonth: _PropTypes2.default.bool, + reverseMonths: _PropTypes2.default.bool, + pagedNavigation: _PropTypes2.default.bool, + todayButton: _PropTypes2.default.string, + showWeekNumbers: _PropTypes2.default.bool, - return sq; + // Modifiers + selectedDays: _PropTypes2.default.oneOfType([_PropTypes.ModifierPropType, _PropTypes2.default.arrayOf(_PropTypes.ModifierPropType)]), + disabledDays: _PropTypes2.default.oneOfType([_PropTypes.ModifierPropType, _PropTypes2.default.arrayOf(_PropTypes.ModifierPropType)]), - }))); - - -/***/ }), -/* 496 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Serbian [sr] - //! author : Milan Janačković : https://github.com/milan-j + modifiers: _PropTypes2.default.object, + modifiersStyles: _PropTypes2.default.object, - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + // Localization + dir: _PropTypes2.default.string, + firstDayOfWeek: _PropTypes2.default.oneOf([0, 1, 2, 3, 4, 5, 6]), + labels: _PropTypes2.default.shape({ + nextMonth: _PropTypes2.default.string.isRequired, + previousMonth: _PropTypes2.default.string.isRequired + }).isRequired, + locale: _PropTypes2.default.string, + localeUtils: _PropTypes2.default.localeUtils, + months: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + weekdaysLong: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + weekdaysShort: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + // Customization + enableOutsideDays: _PropTypes2.default.bool, + fixedWeeks: _PropTypes2.default.bool, - var translator = { - words: { //Different grammatical cases - m: ['jedan minut', 'jedne minute'], - mm: ['minut', 'minute', 'minuta'], - h: ['jedan sat', 'jednog sata'], - hh: ['sat', 'sata', 'sati'], - dd: ['dan', 'dana', 'dana'], - MM: ['mesec', 'meseca', 'meseci'], - yy: ['godina', 'godine', 'godina'] - }, - correctGrammaticalCase: function (number, wordKey) { - return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]); - }, - translate: function (number, withoutSuffix, key) { - var wordKey = translator.words[key]; - if (key.length === 1) { - return withoutSuffix ? wordKey[0] : wordKey[1]; - } else { - return number + ' ' + translator.correctGrammaticalCase(number, wordKey); - } - } - }; + // CSS and HTML + classNames: _PropTypes2.default.shape({ + body: _PropTypes2.default.string, + container: _PropTypes2.default.string, + day: _PropTypes2.default.string.isRequired, + disabled: _PropTypes2.default.string.isRequired, + footer: _PropTypes2.default.string, + interactionDisabled: _PropTypes2.default.string, + month: _PropTypes2.default.string, + navBar: _PropTypes2.default.string, + outside: _PropTypes2.default.string.isRequired, + selected: _PropTypes2.default.string.isRequired, + today: _PropTypes2.default.string.isRequired, + todayButton: _PropTypes2.default.string, + week: _PropTypes2.default.string + }), + className: _PropTypes2.default.string, + containerProps: _PropTypes2.default.object, + tabIndex: _PropTypes2.default.number, - var sr = moment.defineLocale('sr', { - months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'), - monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'), - monthsParseExact: true, - weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'), - weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact : true, - longDateFormat: { - LT: 'H:mm', - LTS : 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sutra u] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[u] [nedelju] [u] LT'; - case 3: - return '[u] [sredu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay : '[juče u] LT', - lastWeek : function () { - var lastWeekDays = [ - '[prošle] [nedelje] [u] LT', - '[prošlog] [ponedeljka] [u] LT', - '[prošlog] [utorka] [u] LT', - '[prošle] [srede] [u] LT', - '[prošlog] [četvrtka] [u] LT', - '[prošlog] [petka] [u] LT', - '[prošle] [subote] [u] LT' - ]; - return lastWeekDays[this.day()]; - }, - sameElse : 'L' - }, - relativeTime : { - future : 'za %s', - past : 'pre %s', - s : 'nekoliko sekundi', - m : translator.translate, - mm : translator.translate, - h : translator.translate, - hh : translator.translate, - d : 'dan', - dd : translator.translate, - M : 'mesec', - MM : translator.translate, - y : 'godinu', - yy : translator.translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + // Custom elements + renderDay: _PropTypes2.default.func, + weekdayElement: _PropTypes2.default.oneOfType([_PropTypes2.default.element, _PropTypes2.default.func, _PropTypes2.default.instanceOf(_react.Component)]), + navbarElement: _PropTypes2.default.oneOfType([_PropTypes2.default.element, _PropTypes2.default.func, _PropTypes2.default.instanceOf(_react.Component)]), + captionElement: _PropTypes2.default.oneOfType([_PropTypes2.default.element, _PropTypes2.default.func, _PropTypes2.default.instanceOf(_react.Component)]), + + // Events + onBlur: _PropTypes2.default.func, + onFocus: _PropTypes2.default.func, + onKeyDown: _PropTypes2.default.func, + onDayClick: _PropTypes2.default.func, + onDayKeyDown: _PropTypes2.default.func, + onDayMouseEnter: _PropTypes2.default.func, + onDayMouseLeave: _PropTypes2.default.func, + onDayTouchStart: _PropTypes2.default.func, + onDayTouchEnd: _PropTypes2.default.func, + onDayFocus: _PropTypes2.default.func, + onMonthChange: _PropTypes2.default.func, + onCaptionClick: _PropTypes2.default.func, + onWeekClick: _PropTypes2.default.func + }; + DayPicker.defaultProps = { + classNames: _classNames2.default, + tabIndex: 0, + initialMonth: new Date(), + numberOfMonths: 1, + labels: { + previousMonth: 'Previous Month', + nextMonth: 'Next Month' + }, + locale: 'en', + localeUtils: LocaleUtils, + enableOutsideDays: false, + fixedWeeks: false, + canChangeMonth: true, + reverseMonths: false, + pagedNavigation: false, + showWeekNumbers: false, + renderDay: function renderDay(day) { + return day.getDate(); + }, + weekdayElement: _react2.default.createElement(_Weekday2.default, null), + navbarElement: _react2.default.createElement(_Navbar2.default, { classNames: _classNames2.default }), + captionElement: _react2.default.createElement(_Caption2.default, { classNames: _classNames2.default }) + }; + + var _initialiseProps = function _initialiseProps() { + var _this8 = this; + + this.getStateFromProps = function (props) { + var initialMonth = Helpers.startOfMonth(props.month || props.initialMonth); + var currentMonth = initialMonth; + + if (props.pagedNavigation && props.numberOfMonths > 1 && props.fromMonth) { + var diffInMonths = Helpers.getMonthsDiff(props.fromMonth, currentMonth); + currentMonth = DateUtils.addMonths(props.fromMonth, Math.floor(diffInMonths / props.numberOfMonths) * props.numberOfMonths); } - }); + return { currentMonth: currentMonth }; + }; - return sr; + this.dayPicker = null; - }))); + this.handleTodayButtonClick = function (e) { + _this8.showMonth(new Date()); + e.target.blur(); + }; + }; + + exports.default = DayPicker; /***/ }), -/* 497 */ +/* 516 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Serbian Cyrillic [sr-cyrl] - //! author : Milan Janačković : https://github.com/milan-j + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = Caption; + var _react = __webpack_require__(3); - var translator = { - words: { //Different grammatical cases - m: ['један минут', 'једне минуте'], - mm: ['минут', 'минуте', 'минута'], - h: ['један сат', 'једног сата'], - hh: ['сат', 'сата', 'сати'], - dd: ['дан', 'дана', 'дана'], - MM: ['месец', 'месеца', 'месеци'], - yy: ['година', 'године', 'година'] - }, - correctGrammaticalCase: function (number, wordKey) { - return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]); - }, - translate: function (number, withoutSuffix, key) { - var wordKey = translator.words[key]; - if (key.length === 1) { - return withoutSuffix ? wordKey[0] : wordKey[1]; - } else { - return number + ' ' + translator.correctGrammaticalCase(number, wordKey); - } - } - }; + var _react2 = _interopRequireDefault(_react); - var srCyrl = moment.defineLocale('sr-cyrl', { - months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'), - monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'), - monthsParseExact: true, - weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'), - weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'), - weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'), - weekdaysParseExact : true, - longDateFormat: { - LT: 'H:mm', - LTS : 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[данас у] LT', - nextDay: '[сутра у] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[у] [недељу] [у] LT'; - case 3: - return '[у] [среду] [у] LT'; - case 6: - return '[у] [суботу] [у] LT'; - case 1: - case 2: - case 4: - case 5: - return '[у] dddd [у] LT'; - } - }, - lastDay : '[јуче у] LT', - lastWeek : function () { - var lastWeekDays = [ - '[прошле] [недеље] [у] LT', - '[прошлог] [понедељка] [у] LT', - '[прошлог] [уторка] [у] LT', - '[прошле] [среде] [у] LT', - '[прошлог] [четвртка] [у] LT', - '[прошлог] [петка] [у] LT', - '[прошле] [суботе] [у] LT' - ]; - return lastWeekDays[this.day()]; - }, - sameElse : 'L' - }, - relativeTime : { - future : 'за %s', - past : 'пре %s', - s : 'неколико секунди', - m : translator.translate, - mm : translator.translate, - h : translator.translate, - hh : translator.translate, - d : 'дан', - dd : translator.translate, - M : 'месец', - MM : translator.translate, - y : 'годину', - yy : translator.translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } - }); + var _PropTypes = __webpack_require__(517); - return srCyrl; + var _PropTypes2 = _interopRequireDefault(_PropTypes); - }))); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function Caption(_ref) { + var classNames = _ref.classNames, + date = _ref.date, + months = _ref.months, + locale = _ref.locale, + localeUtils = _ref.localeUtils, + onClick = _ref.onClick; + + return _react2.default.createElement( + 'div', + { className: classNames.caption, onClick: onClick, role: 'heading' }, + months ? months[date.getMonth()] + ' ' + date.getFullYear() : localeUtils.formatMonthTitle(date, locale) + ); + } + + Caption.propTypes = { + date: _PropTypes2.default.instanceOf(Date), + months: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + locale: _PropTypes2.default.string, + localeUtils: _PropTypes2.default.localeUtils, + onClick: _PropTypes2.default.func, + classNames: _PropTypes2.default.shape({ + caption: _PropTypes2.default.string.isRequired + }).isRequired + }; /***/ }), -/* 498 */ +/* 517 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : siSwati [ss] - //! author : Nicolai Davies : https://github.com/nicolaidavies + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.ModifierPropType = undefined; + 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; }; + var _propTypes = __webpack_require__(518); - var ss = moment.defineLocale('ss', { - months : "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'), - monthsShort : 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'), - weekdays : 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'), - weekdaysShort : 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'), - weekdaysMin : 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'h:mm A', - LTS : 'h:mm:ss A', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY h:mm A', - LLLL : 'dddd, D MMMM YYYY h:mm A' - }, - calendar : { - sameDay : '[Namuhla nga] LT', - nextDay : '[Kusasa nga] LT', - nextWeek : 'dddd [nga] LT', - lastDay : '[Itolo nga] LT', - lastWeek : 'dddd [leliphelile] [nga] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'nga %s', - past : 'wenteka nga %s', - s : 'emizuzwana lomcane', - m : 'umzuzu', - mm : '%d emizuzu', - h : 'lihora', - hh : '%d emahora', - d : 'lilanga', - dd : '%d emalanga', - M : 'inyanga', - MM : '%d tinyanga', - y : 'umnyaka', - yy : '%d iminyaka' - }, - meridiemParse: /ekuseni|emini|entsambama|ebusuku/, - meridiem : function (hours, minutes, isLower) { - if (hours < 11) { - return 'ekuseni'; - } else if (hours < 15) { - return 'emini'; - } else if (hours < 19) { - return 'entsambama'; - } else { - return 'ebusuku'; - } - }, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'ekuseni') { - return hour; - } else if (meridiem === 'emini') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') { - if (hour === 0) { - return 0; - } - return hour + 12; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal : '%d', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } - }); + var _propTypes2 = _interopRequireDefault(_propTypes); - return ss; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - }))); + var PrimitiveTypes = _extends({ + localeUtils: _propTypes2.default.shape({ + formatMonthTitle: _propTypes2.default.func, + formatWeekdayShort: _propTypes2.default.func, + formatWeekdayLong: _propTypes2.default.func, + getFirstDayOfWeek: _propTypes2.default.func + }), + range: _propTypes2.default.shape({ + from: _propTypes2.default.instanceOf(Date), + to: _propTypes2.default.instanceOf(Date) + }), + after: _propTypes2.default.shape({ + after: _propTypes2.default.instanceOf(Date) + }), + before: _propTypes2.default.shape({ + before: _propTypes2.default.instanceOf(Date) + }) + }, _propTypes2.default); + + var ModifierPropType = exports.ModifierPropType = _propTypes2.default.oneOfType([PrimitiveTypes.after, PrimitiveTypes.before, PrimitiveTypes.range, _propTypes2.default.func, _propTypes2.default.array]); + + exports.default = PrimitiveTypes; /***/ }), -/* 499 */ +/* 518 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Swedish [sv] - //! author : Jens Alm : https://github.com/ulmus - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ - var sv = moment.defineLocale('sv', { - months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'), - monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), - weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'), - weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'), - weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'YYYY-MM-DD', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY [kl.] HH:mm', - LLLL : 'dddd D MMMM YYYY [kl.] HH:mm', - lll : 'D MMM YYYY HH:mm', - llll : 'ddd D MMM YYYY HH:mm' - }, - calendar : { - sameDay: '[Idag] LT', - nextDay: '[Imorgon] LT', - lastDay: '[Igår] LT', - nextWeek: '[På] dddd LT', - lastWeek: '[I] dddd[s] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'om %s', - past : 'för %s sedan', - s : 'några sekunder', - m : 'en minut', - mm : '%d minuter', - h : 'en timme', - hh : '%d timmar', - d : 'en dag', - dd : '%d dagar', - M : 'en månad', - MM : '%d månader', - y : 'ett år', - yy : '%d år' - }, - dayOfMonthOrdinalParse: /\d{1,2}(e|a)/, - ordinal : function (number) { - var b = number % 10, - output = (~~(number % 100 / 10) === 1) ? 'e' : - (b === 1) ? 'a' : - (b === 2) ? 'a' : - (b === 3) ? 'e' : 'e'; - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } - }); + if (false) { + var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' && + Symbol.for && + Symbol.for('react.element')) || + 0xeac7; - return sv; + var isValidElement = function(object) { + return typeof object === 'object' && + object !== null && + object.$$typeof === REACT_ELEMENT_TYPE; + }; - }))); + // By explicitly using `prop-types` you are opting into new development behavior. + // http://fb.me/prop-types-in-prod + var throwOnDirectAccess = true; + module.exports = require('./factoryWithTypeCheckers')(isValidElement, throwOnDirectAccess); + } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(519)(); + } /***/ }), -/* 500 */ +/* 519 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Swahili [sw] - //! author : Fahad Kassim : https://github.com/fadsel + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + 'use strict'; + var emptyFunction = __webpack_require__(520); + var invariant = __webpack_require__(521); + var ReactPropTypesSecret = __webpack_require__(522); - var sw = moment.defineLocale('sw', { - months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'), - monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'), - weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'), - weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'), - weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[leo saa] LT', - nextDay : '[kesho saa] LT', - nextWeek : '[wiki ijayo] dddd [saat] LT', - lastDay : '[jana] LT', - lastWeek : '[wiki iliyopita] dddd [saat] LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s baadaye', - past : 'tokea %s', - s : 'hivi punde', - m : 'dakika moja', - mm : 'dakika %d', - h : 'saa limoja', - hh : 'masaa %d', - d : 'siku moja', - dd : 'masiku %d', - M : 'mwezi mmoja', - MM : 'miezi %d', - y : 'mwaka mmoja', - yy : 'miaka %d' - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. + module.exports = function() { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === ReactPropTypesSecret) { + // It is still safe when called from React. + return; } - }); + invariant( + false, + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + + 'Use PropTypes.checkPropTypes() to call them. ' + + 'Read more at http://fb.me/use-check-prop-types' + ); + }; + shim.isRequired = shim; + function getShim() { + return shim; + }; + // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + var ReactPropTypes = { + array: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + + any: shim, + arrayOf: getShim, + element: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim + }; + + ReactPropTypes.checkPropTypes = emptyFunction; + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; + }; + + +/***/ }), +/* 520 */ +/***/ (function(module, exports) { + + "use strict"; + + /** + * Copyright (c) 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */ + + function makeEmptyFunction(arg) { + return function () { + return arg; + }; + } - return sw; + /** + * This function accepts and discards inputs; it has no side effects. This is + * primarily useful idiomatically for overridable function endpoints which + * always need to be callable, since JS lacks a null-call idiom ala Cocoa. + */ + var emptyFunction = function emptyFunction() {}; - }))); - + emptyFunction.thatReturns = makeEmptyFunction; + emptyFunction.thatReturnsFalse = makeEmptyFunction(false); + emptyFunction.thatReturnsTrue = makeEmptyFunction(true); + emptyFunction.thatReturnsNull = makeEmptyFunction(null); + emptyFunction.thatReturnsThis = function () { + return this; + }; + emptyFunction.thatReturnsArgument = function (arg) { + return arg; + }; + + module.exports = emptyFunction; /***/ }), -/* 501 */ +/* 521 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Tamil [ta] - //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404 + /** + * Copyright (c) 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + */ - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + 'use strict'; + /** + * Use invariant() to assert state which your program assumes to be true. + * + * Provide sprintf-style format (only %s is supported) and arguments + * to provide information about what broke and what you were + * expecting. + * + * The invariant message will be stripped in production, but the invariant + * will remain to ensure logic does not differ in production. + */ - var symbolMap = { - '1': '௧', - '2': '௨', - '3': '௩', - '4': '௪', - '5': '௫', - '6': '௬', - '7': '௭', - '8': '௮', - '9': '௯', - '0': '௦' - }; - var numberMap = { - '௧': '1', - '௨': '2', - '௩': '3', - '௪': '4', - '௫': '5', - '௬': '6', - '௭': '7', - '௮': '8', - '௯': '9', - '௦': '0' - }; + var validateFormat = function validateFormat(format) {}; - var ta = moment.defineLocale('ta', { - months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'), - monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'), - weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'), - weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'), - weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, HH:mm', - LLLL : 'dddd, D MMMM YYYY, HH:mm' - }, - calendar : { - sameDay : '[இன்று] LT', - nextDay : '[நாளை] LT', - nextWeek : 'dddd, LT', - lastDay : '[நேற்று] LT', - lastWeek : '[கடந்த வாரம்] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s இல்', - past : '%s முன்', - s : 'ஒரு சில விநாடிகள்', - m : 'ஒரு நிமிடம்', - mm : '%d நிமிடங்கள்', - h : 'ஒரு மணி நேரம்', - hh : '%d மணி நேரம்', - d : 'ஒரு நாள்', - dd : '%d நாட்கள்', - M : 'ஒரு மாதம்', - MM : '%d மாதங்கள்', - y : 'ஒரு வருடம்', - yy : '%d ஆண்டுகள்' - }, - dayOfMonthOrdinalParse: /\d{1,2}வது/, - ordinal : function (number) { - return number + 'வது'; - }, - preparse: function (string) { - return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // refer http://ta.wikipedia.org/s/1er1 - meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/, - meridiem : function (hour, minute, isLower) { - if (hour < 2) { - return ' யாமம்'; - } else if (hour < 6) { - return ' வைகறை'; // வைகறை - } else if (hour < 10) { - return ' காலை'; // காலை - } else if (hour < 14) { - return ' நண்பகல்'; // நண்பகல் - } else if (hour < 18) { - return ' எற்பாடு'; // எற்பாடு - } else if (hour < 22) { - return ' மாலை'; // மாலை - } else { - return ' யாமம்'; - } - }, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'யாமம்') { - return hour < 2 ? hour : hour + 12; - } else if (meridiem === 'வைகறை' || meridiem === 'காலை') { - return hour; - } else if (meridiem === 'நண்பகல்') { - return hour >= 10 ? hour : hour + 12; - } else { - return hour + 12; - } - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. + if (false) { + validateFormat = function validateFormat(format) { + if (format === undefined) { + throw new Error('invariant requires an error message argument'); } - }); + }; + } - return ta; + function invariant(condition, format, a, b, c, d, e, f) { + validateFormat(format); - }))); - + if (!condition) { + var error; + if (format === undefined) { + error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); + } else { + var args = [a, b, c, d, e, f]; + var argIndex = 0; + error = new Error(format.replace(/%s/g, function () { + return args[argIndex++]; + })); + error.name = 'Invariant Violation'; + } + + error.framesToPop = 1; // we don't care about invariant's own frame + throw error; + } + } + + module.exports = invariant; /***/ }), -/* 502 */ -/***/ (function(module, exports, __webpack_require__) { +/* 522 */ +/***/ (function(module, exports) { - //! moment.js locale configuration - //! locale : Telugu [te] - //! author : Krishna Chaitanya Thota : https://github.com/kcthota - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - + /** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ - var te = moment.defineLocale('te', { - months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'), - monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'), - monthsParseExact : true, - weekdays : 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'), - weekdaysShort : 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'), - weekdaysMin : 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'), - longDateFormat : { - LT : 'A h:mm', - LTS : 'A h:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY, A h:mm', - LLLL : 'dddd, D MMMM YYYY, A h:mm' - }, - calendar : { - sameDay : '[నేడు] LT', - nextDay : '[రేపు] LT', - nextWeek : 'dddd, LT', - lastDay : '[నిన్న] LT', - lastWeek : '[గత] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s లో', - past : '%s క్రితం', - s : 'కొన్ని క్షణాలు', - m : 'ఒక నిమిషం', - mm : '%d నిమిషాలు', - h : 'ఒక గంట', - hh : '%d గంటలు', - d : 'ఒక రోజు', - dd : '%d రోజులు', - M : 'ఒక నెల', - MM : '%d నెలలు', - y : 'ఒక సంవత్సరం', - yy : '%d సంవత్సరాలు' - }, - dayOfMonthOrdinalParse : /\d{1,2}వ/, - ordinal : '%dవ', - meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'రాత్రి') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'ఉదయం') { - return hour; - } else if (meridiem === 'మధ్యాహ్నం') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'సాయంత్రం') { - return hour + 12; - } - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'రాత్రి'; - } else if (hour < 10) { - return 'ఉదయం'; - } else if (hour < 17) { - return 'మధ్యాహ్నం'; - } else if (hour < 20) { - return 'సాయంత్రం'; - } else { - return 'రాత్రి'; - } - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. - } - }); + 'use strict'; - return te; + var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - }))); + module.exports = ReactPropTypesSecret; /***/ }), -/* 503 */ +/* 523 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Tetun Dili (East Timor) [tet] - //! author : Joshua Brooks : https://github.com/joshbrooks - //! author : Onorio De J. Afonso : https://github.com/marobo + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.NavbarPropTypes = undefined; + exports.default = Navbar; + var _react = __webpack_require__(3); - var tet = moment.defineLocale('tet', { - months : 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru'.split('_'), - monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez'.split('_'), - weekdays : 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu'.split('_'), - weekdaysShort : 'Dom_Seg_Ters_Kua_Kint_Sext_Sab'.split('_'), - weekdaysMin : 'Do_Seg_Te_Ku_Ki_Sex_Sa'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[Ohin iha] LT', - nextDay: '[Aban iha] LT', - nextWeek: 'dddd [iha] LT', - lastDay: '[Horiseik iha] LT', - lastWeek: 'dddd [semana kotuk] [iha] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'iha %s', - past : '%s liuba', - s : 'minutu balun', - m : 'minutu ida', - mm : 'minutus %d', - h : 'horas ida', - hh : 'horas %d', - d : 'loron ida', - dd : 'loron %d', - M : 'fulan ida', - MM : 'fulan %d', - y : 'tinan ida', - yy : 'tinan %d' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal : function (number) { - var b = number % 10, - output = (~~(number % 100 / 10) === 1) ? 'th' : - (b === 1) ? 'st' : - (b === 2) ? 'nd' : - (b === 3) ? 'rd' : 'th'; - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. + var _react2 = _interopRequireDefault(_react); + + var _PropTypes = __webpack_require__(517); + + var _PropTypes2 = _interopRequireDefault(_PropTypes); + + var _classNames = __webpack_require__(524); + + var _classNames2 = _interopRequireDefault(_classNames); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function Navbar(_ref) { + var classNames = _ref.classNames, + className = _ref.className, + showPreviousButton = _ref.showPreviousButton, + showNextButton = _ref.showNextButton, + onPreviousClick = _ref.onPreviousClick, + onNextClick = _ref.onNextClick, + labels = _ref.labels, + dir = _ref.dir; + + var previousClickHandler = dir === 'rtl' ? onNextClick : onPreviousClick; + var nextClickHandler = dir === 'rtl' ? onPreviousClick : onNextClick; + + var previousButton = showPreviousButton && _react2.default.createElement('span', { + role: 'button', + 'aria-label': labels.previousMonth, + key: 'previous', + className: classNames.navButtonPrev, + onClick: function onClick() { + return previousClickHandler(); } - }); + }); - return tet; + var nextButton = showNextButton && _react2.default.createElement('span', { + role: 'button', + 'aria-label': labels.nextMonth, + key: 'right', + className: classNames.navButtonNext, + onClick: function onClick() { + return nextClickHandler(); + } + }); - }))); + return _react2.default.createElement( + 'div', + { className: className || classNames.navBar }, + dir === 'rtl' ? [nextButton, previousButton] : [previousButton, nextButton] + ); + } + + var NavbarPropTypes = exports.NavbarPropTypes = { + classNames: _PropTypes2.default.shape({ + navBar: _PropTypes2.default.string.isRequired, + navButtonPrev: _PropTypes2.default.string.isRequired, + navButtonNext: _PropTypes2.default.string.isRequired + }), + className: _PropTypes2.default.string, + showPreviousButton: _PropTypes2.default.bool, + showNextButton: _PropTypes2.default.bool, + onPreviousClick: _PropTypes2.default.func, + onNextClick: _PropTypes2.default.func, + dir: _PropTypes2.default.string, + labels: _PropTypes2.default.shape({ + previousMonth: _PropTypes2.default.string.isRequired, + nextMonth: _PropTypes2.default.string.isRequired + }) + }; + + Navbar.propTypes = NavbarPropTypes; + + Navbar.defaultProps = { + classNames: _classNames2.default, + dir: 'ltr', + labels: { + previousMonth: 'Previous Month', + nextMonth: 'Next Month' + }, + showPreviousButton: true, + showNextButton: true + }; /***/ }), -/* 504 */ -/***/ (function(module, exports, __webpack_require__) { +/* 524 */ +/***/ (function(module, exports) { - //! moment.js locale configuration - //! locale : Thai [th] - //! author : Kridsada Thanabulpong : https://github.com/sirn - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; - + 'use strict'; - var th = moment.defineLocale('th', { - months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'), - monthsShort : 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'), - monthsParseExact: true, - weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), - weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference - weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY เวลา H:mm', - LLLL : 'วันddddที่ D MMMM YYYY เวลา H:mm' - }, - meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/, - isPM: function (input) { - return input === 'หลังเที่ยง'; - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return 'ก่อนเที่ยง'; - } else { - return 'หลังเที่ยง'; - } - }, - calendar : { - sameDay : '[วันนี้ เวลา] LT', - nextDay : '[พรุ่งนี้ เวลา] LT', - nextWeek : 'dddd[หน้า เวลา] LT', - lastDay : '[เมื่อวานนี้ เวลา] LT', - lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'อีก %s', - past : '%sที่แล้ว', - s : 'ไม่กี่วินาที', - m : '1 นาที', - mm : '%d นาที', - h : '1 ชั่วโมง', - hh : '%d ชั่วโมง', - d : '1 วัน', - dd : '%d วัน', - M : '1 เดือน', - MM : '%d เดือน', - y : '1 ปี', - yy : '%d ปี' - } + Object.defineProperty(exports, "__esModule", { + value: true }); + // Proxy object to map classnames when css modules are not used - return th; + exports.default = { + container: 'DayPicker', + interactionDisabled: 'DayPicker--interactionDisabled', + month: 'DayPicker-Month', + navBar: 'DayPicker-NavBar', + navButtonPrev: 'DayPicker-NavButton DayPicker-NavButton--prev', + navButtonNext: 'DayPicker-NavButton DayPicker-NavButton--next', + caption: 'DayPicker-Caption', + weekdays: 'DayPicker-Weekdays', + weekdaysRow: 'DayPicker-WeekdaysRow', + weekday: 'DayPicker-Weekday', + body: 'DayPicker-Body', + week: 'DayPicker-Week', + weekNumber: 'DayPicker-WeekNumber', + day: 'DayPicker-Day', + footer: 'DayPicker-Footer', + todayButton: 'DayPicker-TodayButton', - }))); + // default modifiers + today: 'today', + selected: 'selected', + disabled: 'disabled', + outside: 'outside' + }; /***/ }), -/* 505 */ +/* 525 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Tagalog (Philippines) [tl-ph] - //! author : Dan Hagman : https://github.com/hagmandan + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = Month; + var _react = __webpack_require__(3); - var tlPh = moment.defineLocale('tl-ph', { - months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'), - monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), - weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'), - weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), - weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'MM/D/YYYY', - LL : 'MMMM D, YYYY', - LLL : 'MMMM D, YYYY HH:mm', - LLLL : 'dddd, MMMM DD, YYYY HH:mm' - }, - calendar : { - sameDay: 'LT [ngayong araw]', - nextDay: '[Bukas ng] LT', - nextWeek: 'LT [sa susunod na] dddd', - lastDay: 'LT [kahapon]', - lastWeek: 'LT [noong nakaraang] dddd', - sameElse: 'L' - }, - relativeTime : { - future : 'sa loob ng %s', - past : '%s ang nakalipas', - s : 'ilang segundo', - m : 'isang minuto', - mm : '%d minuto', - h : 'isang oras', - hh : '%d oras', - d : 'isang araw', - dd : '%d araw', - M : 'isang buwan', - MM : '%d buwan', - y : 'isang taon', - yy : '%d taon' - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal : function (number) { - return number; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } - }); + var _react2 = _interopRequireDefault(_react); - return tlPh; + var _PropTypes = __webpack_require__(517); - }))); - - -/***/ }), -/* 506 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Klingon [tlh] - //! author : Dominika Kruk : https://github.com/amaranthrose + var _PropTypes2 = _interopRequireDefault(_PropTypes); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _Weekdays = __webpack_require__(526); + var _Weekdays2 = _interopRequireDefault(_Weekdays); - var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_'); + var _Helpers = __webpack_require__(527); - function translateFuture(output) { - var time = output; - time = (output.indexOf('jaj') !== -1) ? - time.slice(0, -3) + 'leS' : - (output.indexOf('jar') !== -1) ? - time.slice(0, -3) + 'waQ' : - (output.indexOf('DIS') !== -1) ? - time.slice(0, -3) + 'nem' : - time + ' pIq'; - return time; - } + var _DateUtils = __webpack_require__(528); - function translatePast(output) { - var time = output; - time = (output.indexOf('jaj') !== -1) ? - time.slice(0, -3) + 'Hu’' : - (output.indexOf('jar') !== -1) ? - time.slice(0, -3) + 'wen' : - (output.indexOf('DIS') !== -1) ? - time.slice(0, -3) + 'ben' : - time + ' ret'; - return time; - } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function translate(number, withoutSuffix, string, isFuture) { - var numberNoun = numberAsNoun(number); - switch (string) { - case 'mm': - return numberNoun + ' tup'; - case 'hh': - return numberNoun + ' rep'; - case 'dd': - return numberNoun + ' jaj'; - case 'MM': - return numberNoun + ' jar'; - case 'yy': - return numberNoun + ' DIS'; - } - } + function Month(_ref) { + var classNames = _ref.classNames, + month = _ref.month, + months = _ref.months, + fixedWeeks = _ref.fixedWeeks, + captionElement = _ref.captionElement, + weekdayElement = _ref.weekdayElement, + locale = _ref.locale, + localeUtils = _ref.localeUtils, + weekdaysLong = _ref.weekdaysLong, + weekdaysShort = _ref.weekdaysShort, + firstDayOfWeek = _ref.firstDayOfWeek, + onCaptionClick = _ref.onCaptionClick, + children = _ref.children, + footer = _ref.footer, + showWeekNumbers = _ref.showWeekNumbers, + onWeekClick = _ref.onWeekClick; - function numberAsNoun(number) { - var hundred = Math.floor((number % 1000) / 100), - ten = Math.floor((number % 100) / 10), - one = number % 10, - word = ''; - if (hundred > 0) { - word += numbersNouns[hundred] + 'vatlh'; - } - if (ten > 0) { - word += ((word !== '') ? ' ' : '') + numbersNouns[ten] + 'maH'; - } - if (one > 0) { - word += ((word !== '') ? ' ' : '') + numbersNouns[one]; - } - return (word === '') ? 'pagh' : word; - } + var captionProps = { + date: month, + classNames: classNames, + months: months, + localeUtils: localeUtils, + locale: locale, + onClick: onCaptionClick ? function (e) { + return onCaptionClick(month, e); + } : undefined + }; + var caption = _react2.default.isValidElement(captionElement) ? _react2.default.cloneElement(captionElement, captionProps) : _react2.default.createElement(captionElement, captionProps); - var tlh = moment.defineLocale('tlh', { - months : 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split('_'), - monthsShort : 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split('_'), - monthsParseExact : true, - weekdays : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), - weekdaysShort : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), - weekdaysMin : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[DaHjaj] LT', - nextDay: '[wa’leS] LT', - nextWeek: 'LLL', - lastDay: '[wa’Hu’] LT', - lastWeek: 'LLL', - sameElse: 'L' - }, - relativeTime : { - future : translateFuture, - past : translatePast, - s : 'puS lup', - m : 'wa’ tup', - mm : translate, - h : 'wa’ rep', - hh : translate, - d : 'wa’ jaj', - dd : translate, - M : 'wa’ jar', - MM : translate, - y : 'wa’ DIS', - yy : translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } - }); + var weeks = (0, _Helpers.getWeekArray)(month, firstDayOfWeek, fixedWeeks); - return tlh; + return _react2.default.createElement( + 'div', + { className: classNames.month, role: 'grid' }, + caption, + _react2.default.createElement(_Weekdays2.default, { + classNames: classNames, + weekdaysShort: weekdaysShort, + weekdaysLong: weekdaysLong, + firstDayOfWeek: firstDayOfWeek, + showWeekNumbers: showWeekNumbers, + locale: locale, + localeUtils: localeUtils, + weekdayElement: weekdayElement + }), + _react2.default.createElement( + 'div', + { className: classNames.body, role: 'rowgroup' }, + weeks.map(function (week) { + var weekNumber = void 0; + if (showWeekNumbers) { + weekNumber = (0, _DateUtils.getWeekNumber)(week[0]); + } + return _react2.default.createElement( + 'div', + { key: week[0].getTime(), className: classNames.week, role: 'row' }, + showWeekNumbers && _react2.default.createElement( + 'div', + { + className: classNames.weekNumber, + tabIndex: 0, + role: 'gridcell', + onClick: function onClick(e) { + return onWeekClick(weekNumber, week, e); + } + }, + weekNumber + ), + week.map(function (day) { + return children(day, month); + }) + ); + }) + ), + footer && _react2.default.createElement( + 'div', + { className: classNames.footer }, + footer + ) + ); + } - }))); - - -/***/ }), -/* 507 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Turkish [tr] - //! authors : Erhan Gundogan : https://github.com/erhangundogan, - //! Burak Yiğit Kaya: https://github.com/BYK + Month.propTypes = { + classNames: _PropTypes2.default.shape({ + month: _PropTypes2.default.string.isRequired, + body: _PropTypes2.default.string.isRequired, + week: _PropTypes2.default.string.isRequired + }).isRequired, - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + month: _PropTypes2.default.instanceOf(Date).isRequired, + months: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + fixedWeeks: _PropTypes2.default.bool, + captionElement: _PropTypes2.default.oneOfType([_PropTypes2.default.element, _PropTypes2.default.func, _PropTypes2.default.instanceOf(_react2.default.Component)]).isRequired, + weekdayElement: _PropTypes2.default.oneOfType([_PropTypes2.default.element, _PropTypes2.default.func, _PropTypes2.default.instanceOf(_react2.default.Component)]), - var suffixes = { - 1: '\'inci', - 5: '\'inci', - 8: '\'inci', - 70: '\'inci', - 80: '\'inci', - 2: '\'nci', - 7: '\'nci', - 20: '\'nci', - 50: '\'nci', - 3: '\'üncü', - 4: '\'üncü', - 100: '\'üncü', - 6: '\'ncı', - 9: '\'uncu', - 10: '\'uncu', - 30: '\'uncu', - 60: '\'ıncı', - 90: '\'ıncı' - }; + footer: _PropTypes2.default.node, + showWeekNumbers: _PropTypes2.default.bool, + onWeekClick: _PropTypes2.default.func, - var tr = moment.defineLocale('tr', { - months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'), - monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'), - weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'), - weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), - weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[bugün saat] LT', - nextDay : '[yarın saat] LT', - nextWeek : '[haftaya] dddd [saat] LT', - lastDay : '[dün] LT', - lastWeek : '[geçen hafta] dddd [saat] LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s sonra', - past : '%s önce', - s : 'birkaç saniye', - m : 'bir dakika', - mm : '%d dakika', - h : 'bir saat', - hh : '%d saat', - d : 'bir gün', - dd : '%d gün', - M : 'bir ay', - MM : '%d ay', - y : 'bir yıl', - yy : '%d yıl' - }, - dayOfMonthOrdinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/, - ordinal : function (number) { - if (number === 0) { // special case for zero - return number + '\'ıncı'; - } - var a = number % 10, - b = number % 100 - a, - c = number >= 100 ? 100 : null; - return number + (suffixes[a] || suffixes[b] || suffixes[c]); - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } - }); + locale: _PropTypes2.default.string.isRequired, + localeUtils: _PropTypes2.default.localeUtils.isRequired, + weekdaysLong: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + weekdaysShort: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + firstDayOfWeek: _PropTypes2.default.number.isRequired, - return tr; + onCaptionClick: _PropTypes2.default.func, - }))); + children: _PropTypes2.default.func.isRequired + }; /***/ }), -/* 508 */ +/* 526 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Talossan [tzl] - //! author : Robin van der Vliet : https://github.com/robin0van0der0v - //! author : Iustì Canun + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = Weekdays; + var _react = __webpack_require__(3); - // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals. - // This is currently too difficult (maybe even impossible) to add. - var tzl = moment.defineLocale('tzl', { - months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'), - monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'), - weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'), - weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'), - weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'), - longDateFormat : { - LT : 'HH.mm', - LTS : 'HH.mm.ss', - L : 'DD.MM.YYYY', - LL : 'D. MMMM [dallas] YYYY', - LLL : 'D. MMMM [dallas] YYYY HH.mm', - LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm' - }, - meridiemParse: /d\'o|d\'a/i, - isPM : function (input) { - return 'd\'o' === input.toLowerCase(); - }, - meridiem : function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'd\'o' : 'D\'O'; - } else { - return isLower ? 'd\'a' : 'D\'A'; - } - }, - calendar : { - sameDay : '[oxhi à] LT', - nextDay : '[demà à] LT', - nextWeek : 'dddd [à] LT', - lastDay : '[ieiri à] LT', - lastWeek : '[sür el] dddd [lasteu à] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'osprei %s', - past : 'ja%s', - s : processRelativeTime, - m : processRelativeTime, - mm : processRelativeTime, - h : processRelativeTime, - hh : processRelativeTime, - d : processRelativeTime, - dd : processRelativeTime, - M : processRelativeTime, - MM : processRelativeTime, - y : processRelativeTime, - yy : processRelativeTime - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } - }); + var _react2 = _interopRequireDefault(_react); - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - 's': ['viensas secunds', '\'iensas secunds'], - 'm': ['\'n míut', '\'iens míut'], - 'mm': [number + ' míuts', '' + number + ' míuts'], - 'h': ['\'n þora', '\'iensa þora'], - 'hh': [number + ' þoras', '' + number + ' þoras'], - 'd': ['\'n ziua', '\'iensa ziua'], - 'dd': [number + ' ziuas', '' + number + ' ziuas'], - 'M': ['\'n mes', '\'iens mes'], - 'MM': [number + ' mesen', '' + number + ' mesen'], - 'y': ['\'n ar', '\'iens ar'], - 'yy': [number + ' ars', '' + number + ' ars'] + var _PropTypes = __webpack_require__(517); + + var _PropTypes2 = _interopRequireDefault(_PropTypes); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function Weekdays(_ref) { + var classNames = _ref.classNames, + firstDayOfWeek = _ref.firstDayOfWeek, + showWeekNumbers = _ref.showWeekNumbers, + weekdaysLong = _ref.weekdaysLong, + weekdaysShort = _ref.weekdaysShort, + locale = _ref.locale, + localeUtils = _ref.localeUtils, + weekdayElement = _ref.weekdayElement; + + var days = []; + for (var i = 0; i < 7; i += 1) { + var weekday = (i + firstDayOfWeek) % 7; + var elementProps = { + key: i, + className: classNames.weekday, + weekday: weekday, + weekdaysLong: weekdaysLong, + weekdaysShort: weekdaysShort, + localeUtils: localeUtils, + locale: locale }; - return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]); + var element = _react2.default.isValidElement(weekdayElement) ? _react2.default.cloneElement(weekdayElement, elementProps) : _react2.default.createElement(weekdayElement, elementProps); + days.push(element); + } + + return _react2.default.createElement( + 'div', + { className: classNames.weekdays, role: 'rowgroup' }, + _react2.default.createElement( + 'div', + { className: classNames.weekdaysRow, role: 'row' }, + showWeekNumbers && _react2.default.createElement('div', { className: classNames.weekday }), + days + ) + ); } - return tzl; + Weekdays.propTypes = { + classNames: _PropTypes2.default.shape({ + weekday: _PropTypes2.default.string.isRequired, + weekdays: _PropTypes2.default.string.isRequired, + weekdaysRow: _PropTypes2.default.string.isRequired + }).isRequired, - }))); + firstDayOfWeek: _PropTypes2.default.number.isRequired, + weekdaysLong: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + weekdaysShort: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + showWeekNumbers: _PropTypes2.default.bool, + locale: _PropTypes2.default.string.isRequired, + localeUtils: _PropTypes2.default.localeUtils.isRequired, + weekdayElement: _PropTypes2.default.oneOfType([_PropTypes2.default.element, _PropTypes2.default.func, _PropTypes2.default.instanceOf(_react2.default.Component)]) + }; /***/ }), -/* 509 */ +/* 527 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Central Atlas Tamazight [tzm] - //! author : Abdel Said : https://github.com/abdelsaid + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + 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; }; - var tzm = moment.defineLocale('tzm', { - months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'), - monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'), - weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), - weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), - weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS: 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[ⴰⵙⴷⵅ ⴴ] LT', - nextDay: '[ⴰⵙⴽⴰ ⴴ] LT', - nextWeek: 'dddd [ⴴ] LT', - lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT', - lastWeek: 'dddd [ⴴ] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s', - past : 'ⵢⴰⵏ %s', - s : 'ⵉⵎⵉⴽ', - m : 'ⵎⵉⵏⵓⴺ', - mm : '%d ⵎⵉⵏⵓⴺ', - h : 'ⵙⴰⵄⴰ', - hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ', - d : 'ⴰⵙⵙ', - dd : '%d oⵙⵙⴰⵏ', - M : 'ⴰⵢoⵓⵔ', - MM : '%d ⵉⵢⵢⵉⵔⵏ', - y : 'ⴰⵙⴳⴰⵙ', - yy : '%d ⵉⵙⴳⴰⵙⵏ' - }, - week : { - dow : 6, // Saturday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. + exports.cancelEvent = cancelEvent; + exports.getFirstDayOfMonth = getFirstDayOfMonth; + exports.getDaysInMonth = getDaysInMonth; + exports.getModifiersFromProps = getModifiersFromProps; + exports.getFirstDayOfWeekFromProps = getFirstDayOfWeekFromProps; + exports.isRangeOfDates = isRangeOfDates; + exports.getMonthsDiff = getMonthsDiff; + exports.getWeekArray = getWeekArray; + exports.startOfMonth = startOfMonth; + + var _DateUtils = __webpack_require__(528); + + var _LocaleUtils = __webpack_require__(529); + + function cancelEvent(e) { + e.preventDefault(); + e.stopPropagation(); + } + + function getFirstDayOfMonth(d) { + return new Date(d.getFullYear(), d.getMonth(), 1, 12); + } + + function getDaysInMonth(d) { + var resultDate = getFirstDayOfMonth(d); + + resultDate.setMonth(resultDate.getMonth() + 1); + resultDate.setDate(resultDate.getDate() - 1); + + return resultDate.getDate(); + } + + function getModifiersFromProps(props) { + var modifiers = _extends({}, props.modifiers); + if (props.selectedDays) { + modifiers[props.classNames.selected] = props.selectedDays; + } + if (props.disabledDays) { + modifiers[props.classNames.disabled] = props.disabledDays; + } + return modifiers; + } + + function getFirstDayOfWeekFromProps(props) { + var firstDayOfWeek = props.firstDayOfWeek, + _props$locale = props.locale, + locale = _props$locale === undefined ? 'en' : _props$locale, + _props$localeUtils = props.localeUtils, + localeUtils = _props$localeUtils === undefined ? {} : _props$localeUtils; + + if (!isNaN(firstDayOfWeek)) { + return firstDayOfWeek; + } + if (localeUtils.getFirstDayOfWeek) { + return localeUtils.getFirstDayOfWeek(locale); + } + return 0; + } + + function isRangeOfDates(value) { + return !!(value && value.from && value.to); + } + + function getMonthsDiff(d1, d2) { + return d2.getMonth() - d1.getMonth() + 12 * (d2.getFullYear() - d1.getFullYear()); + } + + function getWeekArray(d) { + var firstDayOfWeek = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0, _LocaleUtils.getFirstDayOfWeek)(); + var fixedWeeks = arguments[2]; + + var daysInMonth = getDaysInMonth(d); + var dayArray = []; + + var week = []; + var weekArray = []; + + for (var i = 1; i <= daysInMonth; i += 1) { + dayArray.push(new Date(d.getFullYear(), d.getMonth(), i, 12)); + } + + dayArray.forEach(function (day) { + if (week.length > 0 && day.getDay() === firstDayOfWeek) { + weekArray.push(week); + week = []; } - }); + week.push(day); + if (dayArray.indexOf(day) === dayArray.length - 1) { + weekArray.push(week); + } + }); - return tzm; + // unshift days to start the first week + var firstWeek = weekArray[0]; + for (var _i = 7 - firstWeek.length; _i > 0; _i -= 1) { + var outsideDate = (0, _DateUtils.clone)(firstWeek[0]); + outsideDate.setDate(firstWeek[0].getDate() - 1); + firstWeek.unshift(outsideDate); + } - }))); - - -/***/ }), -/* 510 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Central Atlas Tamazight Latin [tzm-latn] - //! author : Abdel Said : https://github.com/abdelsaid + // push days until the end of the last week + var lastWeek = weekArray[weekArray.length - 1]; + for (var _i2 = lastWeek.length; _i2 < 7; _i2 += 1) { + var _outsideDate = (0, _DateUtils.clone)(lastWeek[lastWeek.length - 1]); + _outsideDate.setDate(lastWeek[lastWeek.length - 1].getDate() + 1); + lastWeek.push(_outsideDate); + } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + // add extra weeks to reach 6 weeks + if (fixedWeeks && weekArray.length < 6) { + var lastExtraWeek = void 0; + for (var _i3 = weekArray.length; _i3 < 6; _i3 += 1) { + lastExtraWeek = weekArray[weekArray.length - 1]; + var lastDay = lastExtraWeek[lastExtraWeek.length - 1]; + var extraWeek = []; - var tzmLatn = moment.defineLocale('tzm-latn', { - months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'), - monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'), - weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), - weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), - weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd D MMMM YYYY HH:mm' - }, - calendar : { - sameDay: '[asdkh g] LT', - nextDay: '[aska g] LT', - nextWeek: 'dddd [g] LT', - lastDay: '[assant g] LT', - lastWeek: 'dddd [g] LT', - sameElse: 'L' - }, - relativeTime : { - future : 'dadkh s yan %s', - past : 'yan %s', - s : 'imik', - m : 'minuḍ', - mm : '%d minuḍ', - h : 'saɛa', - hh : '%d tassaɛin', - d : 'ass', - dd : '%d ossan', - M : 'ayowr', - MM : '%d iyyirn', - y : 'asgas', - yy : '%d isgasn' - }, - week : { - dow : 6, // Saturday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. + for (var j = 0; j < 7; j += 1) { + var _outsideDate2 = (0, _DateUtils.clone)(lastDay); + _outsideDate2.setDate(lastDay.getDate() + j + 1); + extraWeek.push(_outsideDate2); + } + + weekArray.push(extraWeek); } - }); + } - return tzmLatn; + return weekArray; + } - }))); + function startOfMonth(d) { + var newDate = (0, _DateUtils.clone)(d); + newDate.setDate(1); + newDate.setHours(12, 0, 0, 0); // always set noon to avoid time zone issues + return newDate; + } /***/ }), -/* 511 */ -/***/ (function(module, exports, __webpack_require__) { +/* 528 */ +/***/ (function(module, exports) { - //! moment.js locale configuration - //! locale : Ukrainian [uk] - //! author : zemlanin : https://github.com/zemlanin - //! Author : Menelion Elensúle : https://github.com/Oire - - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.clone = clone; + exports.addMonths = addMonths; + exports.isSameDay = isSameDay; + exports.isDayBefore = isDayBefore; + exports.isDayAfter = isDayAfter; + exports.isPastDay = isPastDay; + exports.isFutureDay = isFutureDay; + exports.isDayBetween = isDayBetween; + exports.addDayToRange = addDayToRange; + exports.isDayInRange = isDayInRange; + exports.getWeekNumber = getWeekNumber; + /** + * Clone a date object. + * + * @export + * @param {Date} d The date to clone + * @return {Date} The cloned date + */ + function clone(d) { + return new Date(d.getTime()); + } - function plural(word, num) { - var forms = word.split('_'); - return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); + /** + * Return `d` as a new date with `n` months added. + * + * @export + * @param {[type]} d + * @param {[type]} n + */ + function addMonths(d, n) { + var newDate = clone(d); + newDate.setMonth(d.getMonth() + n); + return newDate; } - function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - 'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин', - 'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин', - 'dd': 'день_дні_днів', - 'MM': 'місяць_місяці_місяців', - 'yy': 'рік_роки_років' - }; - if (key === 'm') { - return withoutSuffix ? 'хвилина' : 'хвилину'; - } - else if (key === 'h') { - return withoutSuffix ? 'година' : 'годину'; - } - else { - return number + ' ' + plural(format[key], +number); - } + + /** + * Return `true` if two dates are the same day, ignoring the time. + * + * @export + * @param {Date} d1 + * @param {Date} d2 + * @return {Boolean} + */ + function isSameDay(d1, d2) { + if (!d1 || !d2) { + return false; + } + return d1.getDate() === d2.getDate() && d1.getMonth() === d2.getMonth() && d1.getFullYear() === d2.getFullYear(); } - function weekdaysCaseReplace(m, format) { - var weekdays = { - 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'), - 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'), - 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_') - }; - if (!m) { - return weekdays['nominative']; - } + /** + * Returns `true` if the first day is before the second day. + * + * @export + * @param {Date} d1 + * @param {Date} d2 + * @returns {Boolean} + */ + function isDayBefore(d1, d2) { + var day1 = clone(d1).setHours(0, 0, 0, 0); + var day2 = clone(d2).setHours(0, 0, 0, 0); + return day1 < day2; + } - var nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ? - 'accusative' : - ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ? - 'genitive' : - 'nominative'); - return weekdays[nounCase][m.day()]; + /** + * Returns `true` if the first day is after the second day. + * + * @export + * @param {Date} d1 + * @param {Date} d2 + * @returns {Boolean} + */ + function isDayAfter(d1, d2) { + var day1 = clone(d1).setHours(0, 0, 0, 0); + var day2 = clone(d2).setHours(0, 0, 0, 0); + return day1 > day2; } - function processHoursFunction(str) { - return function () { - return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT'; - }; + + /** + * Return `true` if a day is in the past, e.g. yesterday or any day + * before yesterday. + * + * @export + * @param {Date} d + * @return {Boolean} + */ + function isPastDay(d) { + var today = new Date(); + today.setHours(0, 0, 0, 0); + return isDayBefore(d, today); } - var uk = moment.defineLocale('uk', { - months : { - 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'), - 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_') - }, - monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'), - weekdays : weekdaysCaseReplace, - weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD.MM.YYYY', - LL : 'D MMMM YYYY р.', - LLL : 'D MMMM YYYY р., HH:mm', - LLLL : 'dddd, D MMMM YYYY р., HH:mm' - }, - calendar : { - sameDay: processHoursFunction('[Сьогодні '), - nextDay: processHoursFunction('[Завтра '), - lastDay: processHoursFunction('[Вчора '), - nextWeek: processHoursFunction('[У] dddd ['), - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - case 5: - case 6: - return processHoursFunction('[Минулої] dddd [').call(this); - case 1: - case 2: - case 4: - return processHoursFunction('[Минулого] dddd [').call(this); - } - }, - sameElse: 'L' - }, - relativeTime : { - future : 'за %s', - past : '%s тому', - s : 'декілька секунд', - m : relativeTimeWithPlural, - mm : relativeTimeWithPlural, - h : 'годину', - hh : relativeTimeWithPlural, - d : 'день', - dd : relativeTimeWithPlural, - M : 'місяць', - MM : relativeTimeWithPlural, - y : 'рік', - yy : relativeTimeWithPlural - }, - // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason - meridiemParse: /ночі|ранку|дня|вечора/, - isPM: function (input) { - return /^(дня|вечора)$/.test(input); - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return 'ночі'; - } else if (hour < 12) { - return 'ранку'; - } else if (hour < 17) { - return 'дня'; - } else { - return 'вечора'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/, - ordinal: function (number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - case 'w': - case 'W': - return number + '-й'; - case 'D': - return number + '-го'; - default: - return number; - } - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } - }); + /** + * Return `true` if a day is in the future, e.g. tomorrow or any day + * after tomorrow. + * + * @export + * @param {Date} d + * @return {Boolean} + */ + function isFutureDay(d) { + var tomorrow = new Date(new Date().getTime() + 24 * 60 * 60 * 1000); + tomorrow.setHours(0, 0, 0, 0); + return d >= tomorrow; + } - return uk; + /** + * Return `true` if day `d` is between days `d1` and `d2`, + * without including them. + * + * @export + * @param {Date} d + * @param {Date} d1 + * @param {Date} d2 + * @return {Boolean} + */ + function isDayBetween(d, d1, d2) { + var date = clone(d); + date.setHours(0, 0, 0, 0); + return isDayAfter(date, d1) && isDayBefore(date, d2) || isDayAfter(date, d2) && isDayBefore(date, d1); + } - }))); - - -/***/ }), -/* 512 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Urdu [ur] - //! author : Sawood Alam : https://github.com/ibnesayeed - //! author : Zack : https://github.com/ZackVision + /** + * Add a day to a range and return a new range. A range is an object with + * `from` and `to` days. + * + * @export + * @param {Date} day + * @param {Object} range + * @return {Object} Returns a new range object + */ + function addDayToRange(day) { + var range = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { from: null, to: null }; + var from = range.from, + to = range.to; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + if (!from) { + from = day; + } else if (from && to && isSameDay(from, to) && isSameDay(day, from)) { + from = null; + to = null; + } else if (to && isDayBefore(day, from)) { + from = day; + } else if (to && isSameDay(day, to)) { + from = day; + to = day; + } else { + to = day; + if (isDayBefore(to, from)) { + to = from; + from = day; + } + } + return { from: from, to: to }; + } - var months = [ - 'جنوری', - 'فروری', - 'مارچ', - 'اپریل', - 'مئی', - 'جون', - 'جولائی', - 'اگست', - 'ستمبر', - 'اکتوبر', - 'نومبر', - 'دسمبر' - ]; - var days = [ - 'اتوار', - 'پیر', - 'منگل', - 'بدھ', - 'جمعرات', - 'جمعہ', - 'ہفتہ' - ]; + /** + * Return `true` if a day is included in a range of days. + * + * @export + * @param {Date} day + * @param {Object} range + * @return {Boolean} + */ + function isDayInRange(day, range) { + var from = range.from, + to = range.to; - var ur = moment.defineLocale('ur', { - months : months, - monthsShort : months, - weekdays : days, - weekdaysShort : days, - weekdaysMin : days, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd، D MMMM YYYY HH:mm' - }, - meridiemParse: /صبح|شام/, - isPM : function (input) { - return 'شام' === input; - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return 'صبح'; - } - return 'شام'; - }, - calendar : { - sameDay : '[آج بوقت] LT', - nextDay : '[کل بوقت] LT', - nextWeek : 'dddd [بوقت] LT', - lastDay : '[گذشتہ روز بوقت] LT', - lastWeek : '[گذشتہ] dddd [بوقت] LT', - sameElse : 'L' - }, - relativeTime : { - future : '%s بعد', - past : '%s قبل', - s : 'چند سیکنڈ', - m : 'ایک منٹ', - mm : '%d منٹ', - h : 'ایک گھنٹہ', - hh : '%d گھنٹے', - d : 'ایک دن', - dd : '%d دن', - M : 'ایک ماہ', - MM : '%d ماہ', - y : 'ایک سال', - yy : '%d سال' - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } - }); + return from && isSameDay(day, from) || to && isSameDay(day, to) || from && to && isDayBetween(day, from, to); + } - return ur; + /** + * Return the year's week number (as per ISO, i.e. with the week starting from monday) + * for the given day. + * + * @export + * @param {Date} day + * @returns {Number} + */ + function getWeekNumber(day) { + var date = clone(day); + date.setHours(0, 0, 0); + date.setDate(date.getDate() + 4 - (date.getDay() || 7)); + return Math.ceil(((date - new Date(date.getFullYear(), 0, 1)) / 8.64e7 + 1) / 7); + } - }))); + exports.default = { + addDayToRange: addDayToRange, + addMonths: addMonths, + clone: clone, + getWeekNumber: getWeekNumber, + isDayAfter: isDayAfter, + isDayBefore: isDayBefore, + isDayBetween: isDayBetween, + isDayInRange: isDayInRange, + isFutureDay: isFutureDay, + isPastDay: isPastDay, + isSameDay: isSameDay + }; /***/ }), -/* 513 */ -/***/ (function(module, exports, __webpack_require__) { +/* 529 */ +/***/ (function(module, exports) { - //! moment.js locale configuration - //! locale : Uzbek [uz] - //! author : Sardor Muminov : https://github.com/muminoff + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.formatDay = formatDay; + exports.formatMonthTitle = formatMonthTitle; + exports.formatWeekdayShort = formatWeekdayShort; + exports.formatWeekdayLong = formatWeekdayLong; + exports.getFirstDayOfWeek = getFirstDayOfWeek; + exports.getMonths = getMonths; + var WEEKDAYS_LONG = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; + var WEEKDAYS_SHORT = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']; - var uz = moment.defineLocale('uz', { - months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'), - monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'), - weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'), - weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'), - weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'D MMMM YYYY, dddd HH:mm' - }, - calendar : { - sameDay : '[Бугун соат] LT [да]', - nextDay : '[Эртага] LT [да]', - nextWeek : 'dddd [куни соат] LT [да]', - lastDay : '[Кеча соат] LT [да]', - lastWeek : '[Утган] dddd [куни соат] LT [да]', - sameElse : 'L' - }, - relativeTime : { - future : 'Якин %s ичида', - past : 'Бир неча %s олдин', - s : 'фурсат', - m : 'бир дакика', - mm : '%d дакика', - h : 'бир соат', - hh : '%d соат', - d : 'бир кун', - dd : '%d кун', - M : 'бир ой', - MM : '%d ой', - y : 'бир йил', - yy : '%d йил' - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 4th is the first week of the year. - } - }); + var MONTHS = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; - return uz; + function formatDay(day) { + return day.toDateString(); + } - }))); - - -/***/ }), -/* 514 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Uzbek Latin [uz-latn] - //! author : Rasulbek Mirzayev : github.com/Rasulbeeek + function formatMonthTitle(d) { + return MONTHS[d.getMonth()] + ' ' + d.getFullYear(); + } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function formatWeekdayShort(i) { + return WEEKDAYS_SHORT[i]; + } + function formatWeekdayLong(i) { + return WEEKDAYS_LONG[i]; + } - var uzLatn = moment.defineLocale('uz-latn', { - months : 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'), - monthsShort : 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'), - weekdays : 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'), - weekdaysShort : 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'), - weekdaysMin : 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'D MMMM YYYY, dddd HH:mm' - }, - calendar : { - sameDay : '[Bugun soat] LT [da]', - nextDay : '[Ertaga] LT [da]', - nextWeek : 'dddd [kuni soat] LT [da]', - lastDay : '[Kecha soat] LT [da]', - lastWeek : '[O\'tgan] dddd [kuni soat] LT [da]', - sameElse : 'L' - }, - relativeTime : { - future : 'Yaqin %s ichida', - past : 'Bir necha %s oldin', - s : 'soniya', - m : 'bir daqiqa', - mm : '%d daqiqa', - h : 'bir soat', - hh : '%d soat', - d : 'bir kun', - dd : '%d kun', - M : 'bir oy', - MM : '%d oy', - y : 'bir yil', - yy : '%d yil' - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } - }); + function getFirstDayOfWeek() { + return 0; + } - return uzLatn; + function getMonths() { + return MONTHS; + } - }))); + exports.default = { + formatDay: formatDay, + formatMonthTitle: formatMonthTitle, + formatWeekdayShort: formatWeekdayShort, + formatWeekdayLong: formatWeekdayLong, + getFirstDayOfWeek: getFirstDayOfWeek, + getMonths: getMonths + }; /***/ }), -/* 515 */ +/* 530 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Vietnamese [vi] - //! author : Bang Nguyen : https://github.com/bangnk + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = Day; + var _react = __webpack_require__(3); - var vi = moment.defineLocale('vi', { - months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'), - monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'), - monthsParseExact : true, - weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'), - weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'), - weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'), - weekdaysParseExact : true, - meridiemParse: /sa|ch/i, - isPM : function (input) { - return /^ch$/i.test(input); - }, - meridiem : function (hours, minutes, isLower) { - if (hours < 12) { - return isLower ? 'sa' : 'SA'; - } else { - return isLower ? 'ch' : 'CH'; - } - }, - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'DD/MM/YYYY', - LL : 'D MMMM [năm] YYYY', - LLL : 'D MMMM [năm] YYYY HH:mm', - LLLL : 'dddd, D MMMM [năm] YYYY HH:mm', - l : 'DD/M/YYYY', - ll : 'D MMM YYYY', - lll : 'D MMM YYYY HH:mm', - llll : 'ddd, D MMM YYYY HH:mm' - }, - calendar : { - sameDay: '[Hôm nay lúc] LT', - nextDay: '[Ngày mai lúc] LT', - nextWeek: 'dddd [tuần tới lúc] LT', - lastDay: '[Hôm qua lúc] LT', - lastWeek: 'dddd [tuần rồi lúc] LT', - sameElse: 'L' - }, - relativeTime : { - future : '%s tới', - past : '%s trước', - s : 'vài giây', - m : 'một phút', - mm : '%d phút', - h : 'một giờ', - hh : '%d giờ', - d : 'một ngày', - dd : '%d ngày', - M : 'một tháng', - MM : '%d tháng', - y : 'một năm', - yy : '%d năm' - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal : function (number) { - return number; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } - }); + var _react2 = _interopRequireDefault(_react); - return vi; + var _classNames = __webpack_require__(524); - }))); - - -/***/ }), -/* 516 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Pseudo [x-pseudo] - //! author : Andrew Hood : https://github.com/andrewhood125 + var _classNames2 = _interopRequireDefault(_classNames); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + var _PropTypes = __webpack_require__(517); + var _PropTypes2 = _interopRequireDefault(_PropTypes); - var xPseudo = moment.defineLocale('x-pseudo', { - months : 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'), - monthsShort : 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'), - monthsParseExact : true, - weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'), - weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'), - weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'), - weekdaysParseExact : true, - longDateFormat : { - LT : 'HH:mm', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' - }, - calendar : { - sameDay : '[T~ódá~ý át] LT', - nextDay : '[T~ómó~rró~w át] LT', - nextWeek : 'dddd [át] LT', - lastDay : '[Ý~ést~érdá~ý át] LT', - lastWeek : '[L~ást] dddd [át] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'í~ñ %s', - past : '%s á~gó', - s : 'á ~féw ~sécó~ñds', - m : 'á ~míñ~úté', - mm : '%d m~íñú~tés', - h : 'á~ñ hó~úr', - hh : '%d h~óúrs', - d : 'á ~dáý', - dd : '%d d~áýs', - M : 'á ~móñ~th', - MM : '%d m~óñt~hs', - y : 'á ~ýéár', - yy : '%d ý~éárs' - }, - dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, - ordinal : function (number) { - var b = number % 10, - output = (~~(number % 100 / 10) === 1) ? 'th' : - (b === 1) ? 'st' : - (b === 2) ? 'nd' : - (b === 3) ? 'rd' : 'th'; - return number + output; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } - }); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function handleEvent(handler, day, modifiers) { + if (!handler) { + return undefined; + } + return function (e) { + e.persist(); + handler(day, modifiers, e); + }; + } /* eslint-disable jsx-a11y/no-static-element-interactions, react/forbid-prop-types */ + + function Day(_ref) { + var classNames = _ref.classNames, + modifiersStyles = _ref.modifiersStyles, + day = _ref.day, + tabIndex = _ref.tabIndex, + empty = _ref.empty, + modifiers = _ref.modifiers, + onMouseEnter = _ref.onMouseEnter, + onMouseLeave = _ref.onMouseLeave, + onClick = _ref.onClick, + onKeyDown = _ref.onKeyDown, + onTouchStart = _ref.onTouchStart, + onTouchEnd = _ref.onTouchEnd, + onFocus = _ref.onFocus, + ariaLabel = _ref.ariaLabel, + ariaDisabled = _ref.ariaDisabled, + ariaSelected = _ref.ariaSelected, + children = _ref.children; + + var className = classNames.day; + if (classNames !== _classNames2.default) { + // When using CSS modules prefix the modifier as required by the BEM syntax + className += ' ' + Object.keys(modifiers).join(' '); + } else { + className += Object.keys(modifiers).map(function (modifier) { + return ' ' + className + '--' + modifier; + }).join(''); + } - return xPseudo; + var style = void 0; + if (modifiersStyles) { + Object.keys(modifiers).filter(function (modifier) { + return !!modifiersStyles[modifier]; + }).forEach(function (modifier) { + style = Object.assign({}, style, modifiersStyles[modifier]); + }); + } - }))); - - -/***/ }), -/* 517 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Yoruba Nigeria [yo] - //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe + if (empty) { + return _react2.default.createElement('div', { role: 'gridcell', 'aria-disabled': true, className: className, style: style }); + } - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + return _react2.default.createElement( + 'div', + { + className: className, + tabIndex: tabIndex || 0, + style: style, + role: 'gridcell', + 'aria-label': ariaLabel, + 'aria-disabled': ariaDisabled.toString(), + 'aria-selected': ariaSelected.toString(), + onClick: handleEvent(onClick, day, modifiers), + onKeyDown: handleEvent(onKeyDown, day, modifiers), + onMouseEnter: handleEvent(onMouseEnter, day, modifiers), + onMouseLeave: handleEvent(onMouseLeave, day, modifiers), + onTouchEnd: handleEvent(onTouchEnd, day, modifiers), + onTouchStart: handleEvent(onTouchStart, day, modifiers), + onFocus: handleEvent(onFocus, day, modifiers) + }, + children + ); + } + Day.propTypes = { + classNames: _PropTypes2.default.shape({ + day: _PropTypes2.default.string.isRequired + }).isRequired, - var yo = moment.defineLocale('yo', { - months : 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'), - monthsShort : 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'), - weekdays : 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'), - weekdaysShort : 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'), - weekdaysMin : 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'), - longDateFormat : { - LT : 'h:mm A', - LTS : 'h:mm:ss A', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY h:mm A', - LLLL : 'dddd, D MMMM YYYY h:mm A' - }, - calendar : { - sameDay : '[Ònì ni] LT', - nextDay : '[Ọ̀la ni] LT', - nextWeek : 'dddd [Ọsẹ̀ tón\'bọ] [ni] LT', - lastDay : '[Àna ni] LT', - lastWeek : 'dddd [Ọsẹ̀ tólọ́] [ni] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'ní %s', - past : '%s kọjá', - s : 'ìsẹjú aayá die', - m : 'ìsẹjú kan', - mm : 'ìsẹjú %d', - h : 'wákati kan', - hh : 'wákati %d', - d : 'ọjọ́ kan', - dd : 'ọjọ́ %d', - M : 'osù kan', - MM : 'osù %d', - y : 'ọdún kan', - yy : 'ọdún %d' - }, - dayOfMonthOrdinalParse : /ọjọ́\s\d{1,2}/, - ordinal : 'ọjọ́ %d', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } - }); + day: _PropTypes2.default.instanceOf(Date).isRequired, + children: _PropTypes2.default.node.isRequired, - return yo; + ariaDisabled: _PropTypes2.default.bool, + ariaLabel: _PropTypes2.default.string, + ariaSelected: _PropTypes2.default.bool, + empty: _PropTypes2.default.bool, + modifiers: _PropTypes2.default.object, + modifiersStyles: _PropTypes2.default.object, + onClick: _PropTypes2.default.func, + onKeyDown: _PropTypes2.default.func, + onMouseEnter: _PropTypes2.default.func, + onMouseLeave: _PropTypes2.default.func, + onTouchEnd: _PropTypes2.default.func, + onTouchStart: _PropTypes2.default.func, + onFocus: _PropTypes2.default.func, + tabIndex: _PropTypes2.default.number + }; - }))); + Day.defaultProps = { + modifiers: {}, + empty: false + }; /***/ }), -/* 518 */ +/* 531 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Chinese (China) [zh-cn] - //! author : suupic : https://github.com/suupic - //! author : Zeno Zeng : https://github.com/zenozeng + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.WeekdayPropTypes = undefined; + exports.default = Weekday; + var _react = __webpack_require__(3); - var zhCn = moment.defineLocale('zh-cn', { - months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), - monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'), - weekdaysMin : '日_一_二_三_四_五_六'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'YYYY年MMMD日', - LL : 'YYYY年MMMD日', - LLL : 'YYYY年MMMD日Ah点mm分', - LLLL : 'YYYY年MMMD日ddddAh点mm分', - l : 'YYYY年MMMD日', - ll : 'YYYY年MMMD日', - lll : 'YYYY年MMMD日 HH:mm', - llll : 'YYYY年MMMD日dddd HH:mm' - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === '凌晨' || meridiem === '早上' || - meridiem === '上午') { - return hour; - } else if (meridiem === '下午' || meridiem === '晚上') { - return hour + 12; - } else { - // '中午' - return hour >= 11 ? hour : hour + 12; - } - }, - meridiem : function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return '凌晨'; - } else if (hm < 900) { - return '早上'; - } else if (hm < 1130) { - return '上午'; - } else if (hm < 1230) { - return '中午'; - } else if (hm < 1800) { - return '下午'; - } else { - return '晚上'; - } - }, - calendar : { - sameDay : '[今天]LT', - nextDay : '[明天]LT', - nextWeek : '[下]ddddLT', - lastDay : '[昨天]LT', - lastWeek : '[上]ddddLT', - sameElse : 'L' - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/, - ordinal : function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - case 'M': - return number + '月'; - case 'w': - case 'W': - return number + '周'; - default: - return number; - } - }, - relativeTime : { - future : '%s内', - past : '%s前', - s : '几秒', - m : '1 分钟', - mm : '%d 分钟', - h : '1 小时', - hh : '%d 小时', - d : '1 天', - dd : '%d 天', - M : '1 个月', - MM : '%d 个月', - y : '1 年', - yy : '%d 年' - }, - week : { - // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效 - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } - }); + var _react2 = _interopRequireDefault(_react); - return zhCn; + var _PropTypes = __webpack_require__(517); - }))); - - -/***/ }), -/* 519 */ -/***/ (function(module, exports, __webpack_require__) { - - //! moment.js locale configuration - //! locale : Chinese (Hong Kong) [zh-hk] - //! author : Ben : https://github.com/ben-lin - //! author : Chris Lam : https://github.com/hehachris - //! author : Konstantin : https://github.com/skfd + var _PropTypes2 = _interopRequireDefault(_PropTypes); - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function Weekday(_ref) { + var weekday = _ref.weekday, + className = _ref.className, + weekdaysLong = _ref.weekdaysLong, + weekdaysShort = _ref.weekdaysShort, + localeUtils = _ref.localeUtils, + locale = _ref.locale; + var title = void 0; + if (weekdaysLong) { + title = weekdaysLong[weekday]; + } else { + title = localeUtils.formatWeekdayLong(weekday, locale); + } + var content = void 0; + if (weekdaysShort) { + content = weekdaysShort[weekday]; + } else { + content = localeUtils.formatWeekdayShort(weekday, locale); + } - var zhHk = moment.defineLocale('zh-hk', { - months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), - monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'), - weekdaysMin : '日_一_二_三_四_五_六'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'YYYY年MMMD日', - LL : 'YYYY年MMMD日', - LLL : 'YYYY年MMMD日 HH:mm', - LLLL : 'YYYY年MMMD日dddd HH:mm', - l : 'YYYY年MMMD日', - ll : 'YYYY年MMMD日', - lll : 'YYYY年MMMD日 HH:mm', - llll : 'YYYY年MMMD日dddd HH:mm' - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { - return hour; - } else if (meridiem === '中午') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === '下午' || meridiem === '晚上') { - return hour + 12; - } - }, - meridiem : function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return '凌晨'; - } else if (hm < 900) { - return '早上'; - } else if (hm < 1130) { - return '上午'; - } else if (hm < 1230) { - return '中午'; - } else if (hm < 1800) { - return '下午'; - } else { - return '晚上'; - } - }, - calendar : { - sameDay : '[今天]LT', - nextDay : '[明天]LT', - nextWeek : '[下]ddddLT', - lastDay : '[昨天]LT', - lastWeek : '[上]ddddLT', - sameElse : 'L' - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, - ordinal : function (number, period) { - switch (period) { - case 'd' : - case 'D' : - case 'DDD' : - return number + '日'; - case 'M' : - return number + '月'; - case 'w' : - case 'W' : - return number + '週'; - default : - return number; - } - }, - relativeTime : { - future : '%s內', - past : '%s前', - s : '幾秒', - m : '1 分鐘', - mm : '%d 分鐘', - h : '1 小時', - hh : '%d 小時', - d : '1 天', - dd : '%d 天', - M : '1 個月', - MM : '%d 個月', - y : '1 年', - yy : '%d 年' - } - }); + return _react2.default.createElement( + 'div', + { className: className, role: 'columnheader' }, + _react2.default.createElement( + 'abbr', + { title: title }, + content + ) + ); + } - return zhHk; + var WeekdayPropTypes = exports.WeekdayPropTypes = { + weekday: _PropTypes2.default.number, + className: _PropTypes2.default.string, + locale: _PropTypes2.default.string, + localeUtils: _PropTypes2.default.localeUtils, - }))); + weekdaysLong: _PropTypes2.default.arrayOf(_PropTypes2.default.string), + weekdaysShort: _PropTypes2.default.arrayOf(_PropTypes2.default.string) + }; + + Weekday.propTypes = WeekdayPropTypes; /***/ }), -/* 520 */ +/* 532 */ /***/ (function(module, exports, __webpack_require__) { - //! moment.js locale configuration - //! locale : Chinese (Taiwan) [zh-tw] - //! author : Ben : https://github.com/ben-lin - //! author : Chris Lam : https://github.com/hehachris + 'use strict'; - ;(function (global, factory) { - true ? factory(__webpack_require__(404)) : - typeof define === 'function' && define.amd ? define(['../moment'], factory) : - factory(global.moment) - }(this, (function (moment) { 'use strict'; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.dayMatchesModifier = dayMatchesModifier; + exports.getModifiersForDay = getModifiersForDay; + var _DateUtils = __webpack_require__(528); - var zhTw = moment.defineLocale('zh-tw', { - months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), - monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'), - weekdaysMin : '日_一_二_三_四_五_六'.split('_'), - longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', - L : 'YYYY年MMMD日', - LL : 'YYYY年MMMD日', - LLL : 'YYYY年MMMD日 HH:mm', - LLLL : 'YYYY年MMMD日dddd HH:mm', - l : 'YYYY年MMMD日', - ll : 'YYYY年MMMD日', - lll : 'YYYY年MMMD日 HH:mm', - llll : 'YYYY年MMMD日dddd HH:mm' - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour : function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { - return hour; - } else if (meridiem === '中午') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === '下午' || meridiem === '晚上') { - return hour + 12; - } - }, - meridiem : function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return '凌晨'; - } else if (hm < 900) { - return '早上'; - } else if (hm < 1130) { - return '上午'; - } else if (hm < 1230) { - return '中午'; - } else if (hm < 1800) { - return '下午'; - } else { - return '晚上'; - } - }, - calendar : { - sameDay : '[今天]LT', - nextDay : '[明天]LT', - nextWeek : '[下]ddddLT', - lastDay : '[昨天]LT', - lastWeek : '[上]ddddLT', - sameElse : 'L' - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, - ordinal : function (number, period) { - switch (period) { - case 'd' : - case 'D' : - case 'DDD' : - return number + '日'; - case 'M' : - return number + '月'; - case 'w' : - case 'W' : - return number + '週'; - default : - return number; - } - }, - relativeTime : { - future : '%s內', - past : '%s前', - s : '幾秒', - m : '1 分鐘', - mm : '%d 分鐘', - h : '1 小時', - hh : '%d 小時', - d : '1 天', - dd : '%d 天', - M : '1 個月', - MM : '%d 個月', - y : '1 年', - yy : '%d 年' + var _Helpers = __webpack_require__(527); + + /** + * Return `true` if a date matches the specified modifier. + * + * @export + * @param {Date} day + * @param {Any} modifier + * @return {Boolean} + */ + function dayMatchesModifier(day, modifier) { + if (!modifier) { + return false; + } + var arr = Array.isArray(modifier) ? modifier : [modifier]; + return arr.some(function (mod) { + if (!mod) { + return false; + } + if (mod instanceof Date) { + return (0, _DateUtils.isSameDay)(day, mod); + } + if ((0, _Helpers.isRangeOfDates)(mod)) { + return (0, _DateUtils.isDayInRange)(day, mod); + } + if (mod.after) { + return (0, _DateUtils.isDayAfter)(day, mod.after); + } + if (mod.before) { + return (0, _DateUtils.isDayBefore)(day, mod.before); + } + if (mod.daysOfWeek) { + return mod.daysOfWeek.some(function (dayOfWeek) { + return day.getDay() === dayOfWeek; + }); } - }); + if (typeof mod === 'function') { + return mod(day); + } + return false; + }); + } - return zhTw; + /** + * Return the modifiers matching the given day for the given + * object of modifiers. + * + * @export + * @param {Date} day + * @param {Object} [modifiersObj={}] + * @return {Array} + */ + function getModifiersForDay(day) { + var modifiersObj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - }))); + return Object.keys(modifiersObj).reduce(function (modifiers, modifierName) { + var value = modifiersObj[modifierName]; + if (dayMatchesModifier(day, value)) { + modifiers.push(modifierName); + } + return modifiers; + }, []); + } + + exports.default = { dayMatchesModifier: dayMatchesModifier, getModifiersForDay: getModifiersForDay }; /***/ }), -/* 521 */ +/* 533 */ +/***/ (function(module, exports) { + + "use strict"; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = { + LEFT: 37, + UP: 38, + RIGHT: 39, + DOWN: 40, + ENTER: 13, + SPACE: 32, + ESC: 27 + }; + + +/***/ }), +/* 534 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var moment = __webpack_require__(336); + var DateRangeBoundary; + (function (DateRangeBoundary) { + DateRangeBoundary[DateRangeBoundary["START"] = 0] = "START"; + DateRangeBoundary[DateRangeBoundary["END"] = 1] = "END"; + })(DateRangeBoundary = exports.DateRangeBoundary || (exports.DateRangeBoundary = {})); + function areEqual(date1, date2) { + if (date1 == null && date2 == null) { + return true; + } + else if (date1 == null || date2 == null) { + return false; + } + else { + return date1.getTime() === date2.getTime(); + } + } + exports.areEqual = areEqual; + function areRangesEqual(dateRange1, dateRange2) { + if (dateRange1 == null && dateRange2 == null) { + return true; + } + else if (dateRange1 == null || dateRange2 == null) { + return false; + } + else { + var start1 = dateRange1[0], end1 = dateRange1[1]; + var start2 = dateRange2[0], end2 = dateRange2[1]; + var areStartsEqual = (start1 == null && start2 == null) || areSameDay(start1, start2); + var areEndsEqual = (end1 == null && end2 == null) || areSameDay(end1, end2); + return areStartsEqual && areEndsEqual; + } + } + exports.areRangesEqual = areRangesEqual; + function areSameDay(date1, date2) { + return (date1 != null && + date2 != null && + date1.getDate() === date2.getDate() && + date1.getMonth() === date2.getMonth() && + date1.getFullYear() === date2.getFullYear()); + } + exports.areSameDay = areSameDay; + function areSameMonth(date1, date2) { + return (date1 != null && + date2 != null && + date1.getMonth() === date2.getMonth() && + date1.getFullYear() === date2.getFullYear()); + } + exports.areSameMonth = areSameMonth; + function areSameTime(date1, date2) { + return (date1 != null && + date2 != null && + date1.getHours() === date2.getHours() && + date1.getMinutes() === date2.getMinutes() && + date1.getSeconds() === date2.getSeconds() && + date1.getMilliseconds() === date2.getMilliseconds()); + } + exports.areSameTime = areSameTime; + function clone(d) { + return new Date(d.getTime()); + } + exports.clone = clone; + function isDayInRange(date, dateRange, exclusive) { + if (exclusive === void 0) { exclusive = false; } + if (date == null) { + return false; + } + var day = clone(date); + var start = clone(dateRange[0]); + var end = clone(dateRange[1]); + day.setHours(0, 0, 0, 0); + start.setHours(0, 0, 0, 0); + end.setHours(0, 0, 0, 0); + return start <= day && day <= end && (!exclusive || (!areSameDay(start, day) && !areSameDay(day, end))); + } + exports.isDayInRange = isDayInRange; + function isDayRangeInRange(innerRange, outerRange) { + return ((innerRange[0] == null || isDayInRange(innerRange[0], outerRange)) && + (innerRange[1] == null || isDayInRange(innerRange[1], outerRange))); + } + exports.isDayRangeInRange = isDayRangeInRange; + function isMonthInRange(date, dateRange) { + if (date == null) { + return false; + } + var day = clone(date); + var start = clone(dateRange[0]); + var end = clone(dateRange[1]); + day.setDate(1); + start.setDate(1); + end.setDate(1); + day.setHours(0, 0, 0, 0); + start.setHours(0, 0, 0, 0); + end.setHours(0, 0, 0, 0); + return start <= day && day <= end; + } + exports.isMonthInRange = isMonthInRange; + exports.isTimeEqualOrGreaterThan = function (time, timeToCompare) { return time.getTime() >= timeToCompare.getTime(); }; + exports.isTimeEqualOrSmallerThan = function (time, timeToCompare) { return time.getTime() <= timeToCompare.getTime(); }; + function isTimeInRange(date, minDate, maxDate) { + var time = getDateOnlyWithTime(date); + var minTime = getDateOnlyWithTime(minDate); + var maxTime = getDateOnlyWithTime(maxDate); + var isTimeGreaterThanMinTime = exports.isTimeEqualOrGreaterThan(time, minTime); + var isTimeSmallerThanMaxTime = exports.isTimeEqualOrSmallerThan(time, maxTime); + if (exports.isTimeEqualOrSmallerThan(maxTime, minTime)) { + return isTimeGreaterThanMinTime || isTimeSmallerThanMaxTime; + } + return isTimeGreaterThanMinTime && isTimeSmallerThanMaxTime; + } + exports.isTimeInRange = isTimeInRange; + function getTimeInRange(time, minTime, maxTime) { + if (areSameTime(minTime, maxTime)) { + return maxTime; + } + else if (isTimeInRange(time, minTime, maxTime)) { + return time; + } + else if (isTimeSameOrAfter(time, maxTime)) { + return maxTime; + } + return minTime; + } + exports.getTimeInRange = getTimeInRange; + function isTimeSameOrAfter(date, dateToCompare) { + var time = getDateOnlyWithTime(date); + var timeToCompare = getDateOnlyWithTime(dateToCompare); + return exports.isTimeEqualOrGreaterThan(time, timeToCompare); + } + exports.isTimeSameOrAfter = isTimeSameOrAfter; + function getDateBetween(dateRange) { + var start = dateRange[0].getTime(); + var end = dateRange[1].getTime(); + var middle = start + (end - start) * 0.5; + return new Date(middle); + } + exports.getDateBetween = getDateBetween; + function getDateTime(date, time) { + if (date === null) { + return null; + } + else if (time === null) { + return new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0, 0); + } + else { + return new Date(date.getFullYear(), date.getMonth(), date.getDate(), time.getHours(), time.getMinutes(), time.getSeconds(), time.getMilliseconds()); + } + } + exports.getDateTime = getDateTime; + function getDateOnlyWithTime(date) { + return new Date(0, 0, 0, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()); + } + exports.getDateOnlyWithTime = getDateOnlyWithTime; + function isMomentNull(momentDate) { + return momentDate.parsingFlags().nullInput; + } + exports.isMomentNull = isMomentNull; + function isMomentValidAndInRange(momentDate, minDate, maxDate) { + return momentDate.isValid() && isMomentInRange(momentDate, minDate, maxDate); + } + exports.isMomentValidAndInRange = isMomentValidAndInRange; + function isMomentInRange(momentDate, minDate, maxDate) { + return momentDate.isBetween(minDate, maxDate, "day", "[]"); + } + exports.isMomentInRange = isMomentInRange; + function fromDateToMoment(date) { + if (date == null) { + return moment(null); + } + else if (typeof date === "string") { + return moment(date); + } + else { + return moment([ + date.getFullYear(), + date.getMonth(), + date.getDate(), + date.getHours(), + date.getMinutes(), + date.getSeconds(), + date.getMilliseconds(), + ]); + } + } + exports.fromDateToMoment = fromDateToMoment; + function fromMomentToDate(momentDate) { + if (momentDate == null) { + return undefined; + } + else { + return new Date(momentDate.year(), momentDate.month(), momentDate.date(), momentDate.hours(), momentDate.minutes(), momentDate.seconds(), momentDate.milliseconds()); + } + } + exports.fromMomentToDate = fromMomentToDate; + function fromDateRangeToMomentDateRange(dateRange) { + if (dateRange == null) { + return undefined; + } + return [fromDateToMoment(dateRange[0]), fromDateToMoment(dateRange[1])]; + } + exports.fromDateRangeToMomentDateRange = fromDateRangeToMomentDateRange; + function fromMomentDateRangeToDateRange(momentDateRange) { + if (momentDateRange == null) { + return undefined; + } + return [fromMomentToDate(momentDateRange[0]), fromMomentToDate(momentDateRange[1])]; + } + exports.fromMomentDateRangeToDateRange = fromMomentDateRangeToDateRange; + function getDatePreviousMonth(date) { + if (date.getMonth() === 0) { + return new Date(date.getFullYear() - 1, 11); + } + else { + return new Date(date.getFullYear(), date.getMonth() - 1); + } + } + exports.getDatePreviousMonth = getDatePreviousMonth; + function getDateNextMonth(date) { + if (date.getMonth() === 11) { + return new Date(date.getFullYear() + 1, 0); + } + else { + return new Date(date.getFullYear(), date.getMonth() + 1); + } + } + exports.getDateNextMonth = getDateNextMonth; + function toLocalizedDateString(momentDate, format, locale) { + var adjustedMomentDate = locale != null ? momentDate.locale(locale) : momentDate; + return adjustedMomentDate.format(format); + } + exports.toLocalizedDateString = toLocalizedDateString; + + +/***/ }), +/* 535 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(380); - var classNames = __webpack_require__(522); - var moment = __webpack_require__(404); + var tslib_1 = __webpack_require__(511); + var classNames = __webpack_require__(536); + var moment = __webpack_require__(336); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); - var dateUtils_1 = __webpack_require__(403); - var errors_1 = __webpack_require__(523); - var datePicker_1 = __webpack_require__(524); - var datePickerCore_1 = __webpack_require__(527); - var dateTimePicker_1 = __webpack_require__(528); + var dateUtils_1 = __webpack_require__(534); + var errors_1 = __webpack_require__(537); + var datePicker_1 = __webpack_require__(538); + var datePickerCore_1 = __webpack_require__(541); + var dateTimePicker_1 = __webpack_require__(542); var DateInput = (function (_super) { tslib_1.__extends(DateInput, _super); function DateInput(props, context) { @@ -68135,10 +70680,10 @@ _this.handleDateChange = function (date, hasUserManuallySelectedDate) { var prevMomentDate = _this.state.value; var momentDate = dateUtils_1.fromDateToMoment(date); - var isOpen = (!hasUserManuallySelectedDate - || _this.hasMonthChanged(prevMomentDate, momentDate) - || _this.hasTimeChanged(prevMomentDate, momentDate) - || !_this.props.closeOnSelection); + var isOpen = !hasUserManuallySelectedDate || + _this.hasMonthChanged(prevMomentDate, momentDate) || + _this.hasTimeChanged(prevMomentDate, momentDate) || + !_this.props.closeOnSelection; if (_this.props.value === undefined) { _this.setState({ isInputFocused: false, isOpen: isOpen, value: momentDate }); } @@ -68192,9 +70737,9 @@ _this.handleInputBlur = function (e) { var valueString = _this.state.valueString; var value = _this.createMoment(valueString); - if (valueString.length > 0 - && valueString !== _this.getDateString(_this.state.value) - && (!value.isValid() || !_this.isMomentInRange(value))) { + if (valueString.length > 0 && + valueString !== _this.getDateString(_this.state.value) && + (!value.isValid() || !_this.isMomentInRange(value))) { if (_this.props.value === undefined) { _this.setState({ isInputFocused: false, value: value, valueString: null }); } @@ -68240,9 +70785,7 @@ var dateString = this.state.isInputFocused ? valueString : this.getDateString(value); var date = this.state.isInputFocused ? this.createMoment(valueString) : value; var dateValue = this.isMomentValidAndInRange(value) ? dateUtils_1.fromMomentToDate(value) : null; - var popoverContent = this.props.timePrecision === undefined - ? React.createElement(datePicker_1.DatePicker, tslib_1.__assign({}, this.props, { onChange: this.handleDateChange, value: dateValue })) - : React.createElement(dateTimePicker_1.DateTimePicker, { onChange: this.handleDateChange, value: dateValue, datePickerProps: this.props, timePickerProps: { precision: this.props.timePrecision } }); + var popoverContent = this.props.timePrecision === undefined ? (React.createElement(datePicker_1.DatePicker, tslib_1.__assign({}, this.props, { onChange: this.handleDateChange, value: dateValue }))) : (React.createElement(dateTimePicker_1.DateTimePicker, { onChange: this.handleDateChange, value: dateValue, datePickerProps: this.props, timePickerProps: { precision: this.props.timePrecision } })); var _b = this.props, _c = _b.inputProps, inputProps = _c === void 0 ? {} : _c, _d = _b.popoverProps, popoverProps = _d === void 0 ? {} : _d; var ref = inputProps.ref, htmlInputProps = tslib_1.__rest(inputProps, ["ref"]); var inputClasses = classNames({ @@ -68278,16 +70821,16 @@ return nextMomentDate != null && !dateUtils_1.isMomentNull(prevMomentDate) && prevMomentDate.isValid(); }; DateInput.prototype.hasMonthChanged = function (prevMomentDate, nextMomentDate) { - return this.shouldCheckForDateChanges(prevMomentDate, nextMomentDate) - && nextMomentDate.month() !== prevMomentDate.month(); + return (this.shouldCheckForDateChanges(prevMomentDate, nextMomentDate) && + nextMomentDate.month() !== prevMomentDate.month()); }; DateInput.prototype.hasTimeChanged = function (prevMomentDate, nextMomentDate) { - return this.shouldCheckForDateChanges(prevMomentDate, nextMomentDate) - && this.props.timePrecision != null - && (nextMomentDate.hours() !== prevMomentDate.hours() - || nextMomentDate.minutes() !== prevMomentDate.minutes() - || nextMomentDate.seconds() !== prevMomentDate.seconds() - || nextMomentDate.milliseconds() !== prevMomentDate.milliseconds()); + return (this.shouldCheckForDateChanges(prevMomentDate, nextMomentDate) && + this.props.timePrecision != null && + (nextMomentDate.hours() !== prevMomentDate.hours() || + nextMomentDate.minutes() !== prevMomentDate.minutes() || + nextMomentDate.seconds() !== prevMomentDate.seconds() || + nextMomentDate.milliseconds() !== prevMomentDate.milliseconds())); }; DateInput.prototype.safeInvokeInputProp = function (name, e) { var _a = this.props.inputProps, inputProps = _a === void 0 ? {} : _a; @@ -68311,7 +70854,7 @@ /***/ }), -/* 522 */ +/* 536 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! @@ -68365,7 +70908,7 @@ /***/ }), -/* 523 */ +/* 537 */ /***/ (function(module, exports) { "use strict"; @@ -68387,21 +70930,21 @@ /***/ }), -/* 524 */ +/* 538 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(380); + var tslib_1 = __webpack_require__(511); var core_1 = __webpack_require__(179); - var classNames = __webpack_require__(522); + var classNames = __webpack_require__(536); var React = __webpack_require__(3); - var ReactDayPicker = __webpack_require__(383); - var Classes = __webpack_require__(382); - var DateUtils = __webpack_require__(403); - var Errors = __webpack_require__(523); - var datePickerCaption_1 = __webpack_require__(525); - var datePickerCore_1 = __webpack_require__(527); + var ReactDayPicker = __webpack_require__(514); + var Classes = __webpack_require__(513); + var DateUtils = __webpack_require__(534); + var Errors = __webpack_require__(537); + var datePickerCaption_1 = __webpack_require__(539); + var datePickerCore_1 = __webpack_require__(541); var DatePicker = (function (_super) { tslib_1.__extends(DatePicker, _super); function DatePicker(props, context) { @@ -68419,7 +70962,12 @@ var displayMonth = day.getMonth(); var displayYear = day.getFullYear(); var selectedDay = day.getDate(); - _this.setState({ displayMonth: displayMonth, displayYear: displayYear, selectedDay: selectedDay, value: newValue }); + _this.setState({ + displayMonth: displayMonth, + displayYear: displayYear, + selectedDay: selectedDay, + value: newValue, + }); } } if (!modifiers.disabled) { @@ -68544,7 +71092,12 @@ displayYear = nextProps.value.getFullYear(); selectedDay = nextProps.value.getDate(); } - this.setState({ displayMonth: displayMonth, displayYear: displayYear, selectedDay: selectedDay, value: nextProps.value }); + this.setState({ + displayMonth: displayMonth, + displayYear: displayYear, + selectedDay: selectedDay, + value: nextProps.value, + }); } _super.prototype.componentWillReceiveProps.call(this, nextProps); }; @@ -68556,10 +71109,7 @@ if (initialMonth != null && !DateUtils.isMonthInRange(initialMonth, [minDate, maxDate])) { throw new Error(Errors.DATEPICKER_INITIAL_MONTH_INVALID); } - if (maxDate != null - && minDate != null - && maxDate < minDate - && !DateUtils.areSameDay(maxDate, minDate)) { + if (maxDate != null && minDate != null && maxDate < minDate && !DateUtils.areSameDay(maxDate, minDate)) { throw new Error(Errors.DATEPICKER_MAX_DATE_INVALID); } if (value != null && !DateUtils.isDayInRange(value, [minDate, maxDate])) { @@ -68607,24 +71157,24 @@ /***/ }), -/* 525 */ +/* 539 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(380); + var tslib_1 = __webpack_require__(511); var core_1 = __webpack_require__(179); - var classNames = __webpack_require__(522); + var classNames = __webpack_require__(536); var React = __webpack_require__(3); - var Classes = __webpack_require__(382); - var Utils = __webpack_require__(526); + var Classes = __webpack_require__(513); + var Utils = __webpack_require__(540); var DatePickerCaption = (function (_super) { tslib_1.__extends(DatePickerCaption, _super); function DatePickerCaption() { var _this = _super !== null && _super.apply(this, arguments) || this; - _this.containerRefHandler = function (r) { return _this.containerElement = r; }; - _this.monthArrowRefHandler = function (r) { return _this.monthArrowElement = r; }; - _this.yearArrowRefHandler = function (r) { return _this.yearArrowElement = r; }; + _this.containerRefHandler = function (r) { return (_this.containerElement = r); }; + _this.monthArrowRefHandler = function (r) { return (_this.monthArrowElement = r); }; + _this.yearArrowRefHandler = function (r) { return (_this.yearArrowElement = r); }; _this.handleMonthSelectChange = function (e) { var month = parseInt(e.target.value, 10); core_1.Utils.safeInvoke(_this.props.onMonthChange, month); @@ -68642,17 +71192,19 @@ var displayMonth = date.getMonth(); var displayYear = date.getFullYear(); var months = localeUtils.getMonths(locale); - var startMonth = (displayYear === minYear) ? minDate.getMonth() : 0; - var endMonth = (displayYear === maxYear) ? maxDate.getMonth() + 1 : undefined; - var monthOptionElements = months.map(function (name, i) { - return React.createElement("option", { key: i, value: i.toString() }, name); - }).slice(startMonth, endMonth); + var startMonth = displayYear === minYear ? minDate.getMonth() : 0; + var endMonth = displayYear === maxYear ? maxDate.getMonth() + 1 : undefined; + var monthOptionElements = months + .map(function (name, i) { + return (React.createElement("option", { key: i, value: i.toString() }, name)); + }) + .slice(startMonth, endMonth); var years = [minYear]; for (var year = minYear + 1; year <= maxYear; ++year) { years.push(year); } var yearOptionElements = years.map(function (year, i) { - return React.createElement("option", { key: i, value: year.toString() }, year); + return (React.createElement("option", { key: i, value: year.toString() }, year)); }); if (displayYear > maxYear) { yearOptionElements.push(React.createElement("option", { key: "next", disabled: true, value: displayYear.toString() }, displayYear)); @@ -68687,7 +71239,7 @@ /***/ }), -/* 526 */ +/* 540 */ /***/ (function(module, exports) { "use strict"; @@ -68719,7 +71271,7 @@ /***/ }), -/* 527 */ +/* 541 */ /***/ (function(module, exports) { "use strict"; @@ -68771,19 +71323,19 @@ /***/ }), -/* 528 */ +/* 542 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(380); - var classNames = __webpack_require__(522); + var tslib_1 = __webpack_require__(511); + var classNames = __webpack_require__(536); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); - var Classes = __webpack_require__(382); - var DateUtils = __webpack_require__(403); - var datePicker_1 = __webpack_require__(524); - var timePicker_1 = __webpack_require__(529); + var Classes = __webpack_require__(513); + var DateUtils = __webpack_require__(534); + var datePicker_1 = __webpack_require__(538); + var timePicker_1 = __webpack_require__(543); var DateTimePicker = (function (_super) { tslib_1.__extends(DateTimePicker, _super); function DateTimePicker(props, context) { @@ -68802,7 +71354,7 @@ var value = DateUtils.getDateTime(_this.state.dateValue, timeValue); core_1.Utils.safeInvoke(_this.props.onChange, value, true); }; - var initialValue = (_this.props.value !== undefined) ? _this.props.value : _this.props.defaultValue; + var initialValue = _this.props.value !== undefined ? _this.props.value : _this.props.defaultValue; _this.state = { dateValue: initialValue, timeValue: initialValue, @@ -68840,18 +71392,18 @@ /***/ }), -/* 529 */ +/* 543 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(380); + var tslib_1 = __webpack_require__(511); var core_1 = __webpack_require__(179); - var classNames = __webpack_require__(522); + var classNames = __webpack_require__(536); var React = __webpack_require__(3); - var Classes = __webpack_require__(382); - var DateUtils = __webpack_require__(403); - var Utils = __webpack_require__(526); + var Classes = __webpack_require__(513); + var DateUtils = __webpack_require__(534); + var Utils = __webpack_require__(540); var TimePickerPrecision; (function (TimePickerPrecision) { TimePickerPrecision[TimePickerPrecision["MINUTE"] = 0] = "MINUTE"; @@ -68913,7 +71465,8 @@ case TimeUnit.MS: _this.updateState({ millisecondText: text }); break; - default: throw Error("Invalid TimeUnit"); + default: + throw Error("Invalid TimeUnit"); } } }; }; @@ -68952,23 +71505,51 @@ _a)); return (React.createElement("div", { className: classes }, React.createElement("div", { className: Classes.TIMEPICKER_ARROW_ROW }, - this.maybeRenderArrowButton(true, Classes.TIMEPICKER_HOUR, function () { return _this.incrementTime(TimeUnit.HOUR); }), - this.maybeRenderArrowButton(true, Classes.TIMEPICKER_MINUTE, function () { return _this.incrementTime(TimeUnit.MINUTE); }), - shouldRenderSeconds ? this.maybeRenderArrowButton(true, Classes.TIMEPICKER_SECOND, function () { return _this.incrementTime(TimeUnit.SECOND); }) : null, - shouldRenderMilliseconds ? this.maybeRenderArrowButton(true, Classes.TIMEPICKER_MILLISECOND, function () { return _this.incrementTime(TimeUnit.MS); }) : null), + this.maybeRenderArrowButton(true, Classes.TIMEPICKER_HOUR, function () { + return _this.incrementTime(TimeUnit.HOUR); + }), + this.maybeRenderArrowButton(true, Classes.TIMEPICKER_MINUTE, function () { + return _this.incrementTime(TimeUnit.MINUTE); + }), + shouldRenderSeconds + ? this.maybeRenderArrowButton(true, Classes.TIMEPICKER_SECOND, function () { + return _this.incrementTime(TimeUnit.SECOND); + }) + : null, + shouldRenderMilliseconds + ? this.maybeRenderArrowButton(true, Classes.TIMEPICKER_MILLISECOND, function () { + return _this.incrementTime(TimeUnit.MS); + }) + : null), React.createElement("div", { className: Classes.TIMEPICKER_INPUT_ROW }, this.renderInput(Classes.TIMEPICKER_HOUR, TimeUnit.HOUR, this.state.hourText), this.renderDivider(), this.renderInput(Classes.TIMEPICKER_MINUTE, TimeUnit.MINUTE, this.state.minuteText), shouldRenderSeconds ? this.renderDivider() : null, - shouldRenderSeconds ? this.renderInput(Classes.TIMEPICKER_SECOND, TimeUnit.SECOND, this.state.secondText) : null, + shouldRenderSeconds + ? this.renderInput(Classes.TIMEPICKER_SECOND, TimeUnit.SECOND, this.state.secondText) + : null, shouldRenderMilliseconds ? this.renderDivider(".") : null, - shouldRenderMilliseconds ? this.renderInput(Classes.TIMEPICKER_MILLISECOND, TimeUnit.MS, this.state.millisecondText) : null), + shouldRenderMilliseconds + ? this.renderInput(Classes.TIMEPICKER_MILLISECOND, TimeUnit.MS, this.state.millisecondText) + : null), React.createElement("div", { className: Classes.TIMEPICKER_ARROW_ROW }, - this.maybeRenderArrowButton(false, Classes.TIMEPICKER_HOUR, function () { return _this.decrementTime(TimeUnit.HOUR); }), - this.maybeRenderArrowButton(false, Classes.TIMEPICKER_MINUTE, function () { return _this.decrementTime(TimeUnit.MINUTE); }), - shouldRenderSeconds ? this.maybeRenderArrowButton(false, Classes.TIMEPICKER_SECOND, function () { return _this.decrementTime(TimeUnit.SECOND); }) : null, - shouldRenderMilliseconds ? this.maybeRenderArrowButton(false, Classes.TIMEPICKER_MILLISECOND, function () { return _this.decrementTime(TimeUnit.MS); }) : null))); + this.maybeRenderArrowButton(false, Classes.TIMEPICKER_HOUR, function () { + return _this.decrementTime(TimeUnit.HOUR); + }), + this.maybeRenderArrowButton(false, Classes.TIMEPICKER_MINUTE, function () { + return _this.decrementTime(TimeUnit.MINUTE); + }), + shouldRenderSeconds + ? this.maybeRenderArrowButton(false, Classes.TIMEPICKER_SECOND, function () { + return _this.decrementTime(TimeUnit.SECOND); + }) + : null, + shouldRenderMilliseconds + ? this.maybeRenderArrowButton(false, Classes.TIMEPICKER_MILLISECOND, function () { + return _this.decrementTime(TimeUnit.MS); + }) + : null))); var _a; }; TimePicker.prototype.componentWillReceiveProps = function (nextProps) { @@ -69039,8 +71620,7 @@ }; TimePicker.prototype.updateState = function (state) { var newState = state; - var hasNewValue = newState.value != null - && !DateUtils.areSameTime(newState.value, this.state.value); + var hasNewValue = newState.value != null && !DateUtils.areSameTime(newState.value, this.state.value); if (this.props.value == null) { if (hasNewValue) { newState = this.getFullStateFromValue(newState.value); @@ -69096,11 +71676,16 @@ } function getTimeUnit(date, unit) { switch (unit) { - case TimeUnit.HOUR: return date.getHours(); - case TimeUnit.MINUTE: return date.getMinutes(); - case TimeUnit.SECOND: return date.getSeconds(); - case TimeUnit.MS: return date.getMilliseconds(); - default: throw Error("Invalid TimeUnit"); + case TimeUnit.HOUR: + return date.getHours(); + case TimeUnit.MINUTE: + return date.getMinutes(); + case TimeUnit.SECOND: + return date.getSeconds(); + case TimeUnit.MS: + return date.getMilliseconds(); + default: + throw Error("Invalid TimeUnit"); } } function handleKeyEvent(e, actions, preventDefault) { @@ -69164,29 +71749,28 @@ case TimeUnit.MS: date.setMilliseconds(time); break; - default: throw Error("Invalid TimeUnit"); + default: + throw Error("Invalid TimeUnit"); } } exports.TimePickerFactory = React.createFactory(TimePicker); /***/ }), -/* 530 */ +/* 544 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(380); - var classNames = __webpack_require__(522); - var moment = __webpack_require__(404); + var tslib_1 = __webpack_require__(511); + var classNames = __webpack_require__(536); + var moment = __webpack_require__(336); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); - var dateUtils_1 = __webpack_require__(403); - var Errors = __webpack_require__(523); - var datePickerCore_1 = __webpack_require__(527); - var dateRangePicker_1 = __webpack_require__(531); - ; - ; + var dateUtils_1 = __webpack_require__(534); + var Errors = __webpack_require__(537); + var datePickerCore_1 = __webpack_require__(541); + var dateRangePicker_1 = __webpack_require__(545); var DateRangeInput = (function (_super) { tslib_1.__extends(DateRangeInput, _super); function DateRangeInput(props, context) { @@ -69204,9 +71788,7 @@ _this.renderInputGroup = function (boundary) { var inputProps = _this.getInputProps(boundary); var ref = inputProps.ref, htmlProps = tslib_1.__rest(inputProps, ["ref"]); - var handleInputEvent = (boundary === dateUtils_1.DateRangeBoundary.START) - ? _this.handleStartInputEvent - : _this.handleEndInputEvent; + var handleInputEvent = boundary === dateUtils_1.DateRangeBoundary.START ? _this.handleStartInputEvent : _this.handleEndInputEvent; var classes = classNames((_a = {}, _a[core_1.Classes.INTENT_DANGER] = _this.isInputInErrorState(boundary), _a), inputProps.className); @@ -69269,7 +71851,7 @@ return; } if (hoveredRange == null) { - var isEndInputFocused = (_this.state.boundaryToModify === dateUtils_1.DateRangeBoundary.END); + var isEndInputFocused = _this.state.boundaryToModify === dateUtils_1.DateRangeBoundary.END; _this.setState({ isEndInputFocused: isEndInputFocused, endHoverString: null, @@ -69280,17 +71862,13 @@ } else { var _a = dateUtils_1.fromDateRangeToMomentDateRange(hoveredRange), hoveredStart = _a[0], hoveredEnd = _a[1]; - var isStartInputFocused = (hoveredBoundary != null) - ? hoveredBoundary === dateUtils_1.DateRangeBoundary.START - : _this.state.isStartInputFocused; - var isEndInputFocused = (hoveredBoundary != null) - ? hoveredBoundary === dateUtils_1.DateRangeBoundary.END - : _this.state.isEndInputFocused; + var isStartInputFocused = hoveredBoundary != null ? hoveredBoundary === dateUtils_1.DateRangeBoundary.START : _this.state.isStartInputFocused; + var isEndInputFocused = hoveredBoundary != null ? hoveredBoundary === dateUtils_1.DateRangeBoundary.END : _this.state.isEndInputFocused; _this.setState({ isStartInputFocused: isStartInputFocused, isEndInputFocused: isEndInputFocused, endHoverString: _this.getFormattedDateString(hoveredEnd), - lastFocusedField: (isStartInputFocused) ? dateUtils_1.DateRangeBoundary.START : dateUtils_1.DateRangeBoundary.END, + lastFocusedField: isStartInputFocused ? dateUtils_1.DateRangeBoundary.START : dateUtils_1.DateRangeBoundary.END, shouldSelectAfterUpdate: _this.props.selectAllOnFocus, startHoverString: _this.getFormattedDateString(hoveredStart), wasLastFocusChangeDueToHover: true, @@ -69323,7 +71901,8 @@ case "mousedown": _this.handleInputMouseDown(); break; - default: break; + default: + break; } var inputProps = _this.getInputProps(boundary); var callbackFn = _this.getInputGroupCallbackForEvent(e, inputProps); @@ -69363,9 +71942,7 @@ _this.handleInputFocus = function (_e, boundary) { var _a = _this.getStateKeysAndValuesForBoundary(boundary), keys = _a.keys, values = _a.values; var inputString = _this.getFormattedDateString(values.selectedValue); - var boundaryToModify = (_this.state.wasLastFocusChangeDueToHover) - ? _this.state.boundaryToModify - : boundary; + var boundaryToModify = _this.state.wasLastFocusChangeDueToHover ? _this.state.boundaryToModify : boundary; _this.setState((_b = { isOpen: true, boundaryToModify: boundaryToModify @@ -69473,21 +72050,26 @@ var doBoundaryDatesOverlap = _this.doBoundaryDatesOverlap(selectedStart, dateUtils_1.DateRangeBoundary.START); var momentDateRange = [selectedStart, doBoundaryDatesOverlap ? moment(null) : selectedEnd]; return momentDateRange.map(function (selectedBound) { - return _this.isMomentValidAndInRange(selectedBound) - ? dateUtils_1.fromMomentToDate(selectedBound) - : undefined; + return _this.isMomentValidAndInRange(selectedBound) ? dateUtils_1.fromMomentToDate(selectedBound) : undefined; }); var _a; }; _this.getInputGroupCallbackForEvent = function (e, inputProps) { switch (e.type) { - case "blur": return inputProps.onBlur; - case "change": return inputProps.onChange; - case "click": return inputProps.onClick; - case "focus": return inputProps.onFocus; - case "keydown": return inputProps.onKeyDown; - case "mousedown": return inputProps.onMouseDown; - default: return undefined; + case "blur": + return inputProps.onBlur; + case "change": + return inputProps.onChange; + case "click": + return inputProps.onClick; + case "focus": + return inputProps.onFocus; + case "keydown": + return inputProps.onKeyDown; + case "mousedown": + return inputProps.onMouseDown; + default: + return undefined; } }; _this.getInputDisplayString = function (boundary) { @@ -69497,7 +72079,7 @@ return hoverString; } else if (isInputFocused) { - return (inputString == null) ? "" : inputString; + return inputString == null ? "" : inputString; } else if (dateUtils_1.isMomentNull(selectedValue)) { return ""; @@ -69531,14 +72113,10 @@ } }; _this.getInputProps = function (boundary) { - return (boundary === dateUtils_1.DateRangeBoundary.START) - ? _this.props.startInputProps - : _this.props.endInputProps; + return boundary === dateUtils_1.DateRangeBoundary.START ? _this.props.startInputProps : _this.props.endInputProps; }; _this.getInputRef = function (boundary) { - return (boundary === dateUtils_1.DateRangeBoundary.START) - ? _this.refHandlers.startInputRef - : _this.refHandlers.endInputRef; + return boundary === dateUtils_1.DateRangeBoundary.START ? _this.refHandlers.startInputRef : _this.refHandlers.endInputRef; }; _this.getFormattedDateString = function (momentDate, formatOverride) { if (dateUtils_1.isMomentNull(momentDate)) { @@ -69548,7 +72126,7 @@ return _this.props.invalidDateMessage; } else { - var format = (formatOverride != null) ? formatOverride : _this.props.format; + var format = formatOverride != null ? formatOverride : _this.props.format; return dateUtils_1.toLocalizedDateString(momentDate, format, _this.props.locale); } }; @@ -69563,7 +72141,7 @@ selectedValue: "selectedStart", }, values: { - controlledValue: (controlledRange != null) ? controlledRange[0] : undefined, + controlledValue: controlledRange != null ? controlledRange[0] : undefined, hoverString: _this.state.startHoverString, inputString: _this.state.startInputString, isInputFocused: _this.state.isStartInputFocused, @@ -69580,7 +72158,7 @@ selectedValue: "selectedEnd", }, values: { - controlledValue: (controlledRange != null) ? controlledRange[1] : undefined, + controlledValue: controlledRange != null ? controlledRange[1] : undefined, hoverString: _this.state.endHoverString, inputString: _this.state.endInputString, isInputFocused: _this.state.isEndInputFocused, @@ -69594,9 +72172,7 @@ var otherValue = _this.getStateKeysAndValuesForBoundary(otherBoundary).values.selectedValue; var currDate = _this.getDateForCallback(currValue); var otherDate = _this.getDateForCallback(otherValue); - return (currBoundary === dateUtils_1.DateRangeBoundary.START) - ? [currDate, otherDate] - : [otherDate, currDate]; + return currBoundary === dateUtils_1.DateRangeBoundary.START ? [currDate, otherDate] : [otherDate, currDate]; }; _this.getDateForCallback = function (momentDate) { if (dateUtils_1.isMomentNull(momentDate)) { @@ -69610,7 +72186,7 @@ } }; _this.getOtherBoundary = function (boundary) { - return (boundary === dateUtils_1.DateRangeBoundary.START) ? dateUtils_1.DateRangeBoundary.END : dateUtils_1.DateRangeBoundary.START; + return boundary === dateUtils_1.DateRangeBoundary.START ? dateUtils_1.DateRangeBoundary.END : dateUtils_1.DateRangeBoundary.START; }; _this.doBoundaryDatesOverlap = function (boundaryDate, boundary) { var allowSingleDayRange = _this.props.allowSingleDayRange; @@ -69628,9 +72204,7 @@ } }; _this.doesEndBoundaryOverlapStartBoundary = function (boundaryDate, boundary) { - return (boundary === dateUtils_1.DateRangeBoundary.START) - ? false - : _this.doBoundaryDatesOverlap(boundaryDate, boundary); + return boundary === dateUtils_1.DateRangeBoundary.START ? false : _this.doBoundaryDatesOverlap(boundaryDate, boundary); }; _this.isControlled = function () { return _this.props.value !== undefined; @@ -69641,9 +72215,7 @@ _this.isInputInErrorState = function (boundary) { var values = _this.getStateKeysAndValuesForBoundary(boundary).values; var isInputFocused = values.isInputFocused, hoverString = values.hoverString, inputString = values.inputString, selectedValue = values.selectedValue; - var boundaryValue = (isInputFocused) - ? _this.dateStringToMoment(inputString) - : selectedValue; + var boundaryValue = isInputFocused ? _this.dateStringToMoment(inputString) : selectedValue; if (hoverString != null) { return false; } @@ -69734,13 +72306,12 @@ return isFocused && inputRef !== undefined && document.activeElement !== inputRef; }; DateRangeInput.prototype.isNextDateRangeValid = function (nextMomentDate, boundary) { - return this.isMomentValidAndInRange(nextMomentDate) - && !this.doBoundaryDatesOverlap(nextMomentDate, boundary); + return this.isMomentValidAndInRange(nextMomentDate) && !this.doBoundaryDatesOverlap(nextMomentDate, boundary); }; DateRangeInput.prototype.getFormattedMinMaxDateString = function (props, propName) { var date = props[propName]; var defaultDate = DateRangeInput.defaultProps[propName]; - return this.getFormattedDateString(moment((date === undefined) ? defaultDate : date), props.format); + return this.getFormattedDateString(moment(date === undefined ? defaultDate : date), props.format); }; return DateRangeInput; }(core_1.AbstractComponent)); @@ -69766,24 +72337,24 @@ /***/ }), -/* 531 */ +/* 545 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(380); + var tslib_1 = __webpack_require__(511); var core_1 = __webpack_require__(179); - var classNames = __webpack_require__(522); + var classNames = __webpack_require__(536); var React = __webpack_require__(3); - var DayPicker = __webpack_require__(383); - var DateClasses = __webpack_require__(382); - var DateUtils = __webpack_require__(403); - var dateUtils_1 = __webpack_require__(403); - var Errors = __webpack_require__(523); - var monthAndYear_1 = __webpack_require__(532); - var datePickerCaption_1 = __webpack_require__(525); - var datePickerCore_1 = __webpack_require__(527); - var dateRangeSelectionStrategy_1 = __webpack_require__(533); + var DayPicker = __webpack_require__(514); + var DateClasses = __webpack_require__(513); + var DateUtils = __webpack_require__(534); + var dateUtils_1 = __webpack_require__(534); + var Errors = __webpack_require__(537); + var monthAndYear_1 = __webpack_require__(546); + var datePickerCaption_1 = __webpack_require__(539); + var datePickerCore_1 = __webpack_require__(541); + var dateRangeSelectionStrategy_1 = __webpack_require__(547); var DateRangePicker = (function (_super) { tslib_1.__extends(DateRangePicker, _super); function DateRangePicker(props, context) { @@ -69988,18 +72559,15 @@ if (initialMonth != null && !DateUtils.isMonthInRange(initialMonth, dateRange)) { throw new Error(Errors.DATERANGEPICKER_INITIAL_MONTH_INVALID); } - if (maxDate != null - && minDate != null - && maxDate < minDate - && !DateUtils.areSameDay(maxDate, minDate)) { + if (maxDate != null && minDate != null && maxDate < minDate && !DateUtils.areSameDay(maxDate, minDate)) { throw new Error(Errors.DATERANGEPICKER_MAX_DATE_INVALID); } if (value != null && !DateUtils.isDayRangeInRange(value, dateRange)) { throw new Error(Errors.DATERANGEPICKER_VALUE_INVALID); } - if (boundaryToModify != null - && boundaryToModify !== dateUtils_1.DateRangeBoundary.START - && boundaryToModify !== dateUtils_1.DateRangeBoundary.END) { + if (boundaryToModify != null && + boundaryToModify !== dateUtils_1.DateRangeBoundary.START && + boundaryToModify !== dateUtils_1.DateRangeBoundary.END) { throw new Error(Errors.DATERANGEPICKER_PREFERRED_BOUNDARY_TO_MODIFY_INVALID); } }; @@ -70013,7 +72581,7 @@ var shortcutElements = shortcuts.map(function (s, i) { return (React.createElement(core_1.MenuItem, { className: core_1.Classes.POPOVER_DISMISS_OVERRIDE, disabled: !_this.isShortcutInRange(s.dateRange), key: i, onClick: _this.getShorcutClickHandler(s.dateRange), text: s.label })); }); - return (React.createElement(core_1.Menu, { className: DateClasses.DATERANGEPICKER_SHORTCUTS }, shortcutElements)); + return React.createElement(core_1.Menu, { className: DateClasses.DATERANGEPICKER_SHORTCUTS }, shortcutElements); }; DateRangePicker.prototype.getShorcutClickHandler = function (nextValue) { var _this = this; @@ -70149,12 +72717,12 @@ /***/ }), -/* 532 */ +/* 546 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var dateUtils_1 = __webpack_require__(403); + var dateUtils_1 = __webpack_require__(534); var MonthAndYear = (function () { function MonthAndYear(month, year) { if (month !== null && year !== null) { @@ -70211,13 +72779,12 @@ /***/ }), -/* 533 */ +/* 547 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var dateUtils_1 = __webpack_require__(403); - ; + var dateUtils_1 = __webpack_require__(534); var DateRangeSelectionStrategy = (function () { function DateRangeSelectionStrategy() { } @@ -70274,7 +72841,7 @@ nextDateRange = this.createRangeForBoundary(boundary, null, nextOtherBoundaryDate); } else if (dateUtils_1.areSameDay(day, otherBoundaryDate)) { - var _a = (allowSingleDayRange) + var _a = allowSingleDayRange ? [otherBoundaryDate, otherBoundaryDate] : [boundaryDate, null], nextBoundaryDate = _a[0], nextOtherBoundaryDate = _a[1]; nextBoundary = allowSingleDayRange ? boundary : otherBoundary; @@ -70322,22 +72889,18 @@ return { dateRange: nextDateRange }; }; DateRangeSelectionStrategy.getOtherBoundary = function (boundary) { - return (boundary === dateUtils_1.DateRangeBoundary.START) - ? dateUtils_1.DateRangeBoundary.END - : dateUtils_1.DateRangeBoundary.START; + return boundary === dateUtils_1.DateRangeBoundary.START ? dateUtils_1.DateRangeBoundary.END : dateUtils_1.DateRangeBoundary.START; }; DateRangeSelectionStrategy.getBoundaryDate = function (boundary, dateRange) { - return (boundary === dateUtils_1.DateRangeBoundary.START) - ? dateRange[0] - : dateRange[1]; + return boundary === dateUtils_1.DateRangeBoundary.START ? dateRange[0] : dateRange[1]; }; DateRangeSelectionStrategy.isOverlappingOtherBoundary = function (boundary, boundaryDate, otherBoundaryDate) { - return (boundary === dateUtils_1.DateRangeBoundary.START) + return boundary === dateUtils_1.DateRangeBoundary.START ? boundaryDate > otherBoundaryDate : boundaryDate < otherBoundaryDate; }; DateRangeSelectionStrategy.createRangeForBoundary = function (boundary, boundaryDate, otherBoundaryDate) { - return (boundary === dateUtils_1.DateRangeBoundary.START) + return boundary === dateUtils_1.DateRangeBoundary.START ? [boundaryDate, otherBoundaryDate] : [otherBoundaryDate, boundaryDate]; }; @@ -70353,30 +72916,26 @@ /***/ }), -/* 534 */ +/* 548 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var core_1 = __webpack_require__(179); var React = __webpack_require__(3); - exports.FORMATS = [ - "MM/DD/YYYY", - "YYYY-MM-DD", - "YYYY-MM-DD HH:mm:ss", - ]; + exports.FORMATS = ["MM/DD/YYYY", "YYYY-MM-DD", "YYYY-MM-DD HH:mm:ss"]; exports.FormatSelect = function (props) { return (React.createElement(core_1.RadioGroup, { label: "Date format", onChange: props.onChange, selectedValue: props.selectedValue }, exports.FORMATS.map(function (value) { return React.createElement(core_1.Radio, { key: value, label: value, value: value }); }))); }; /***/ }), -/* 535 */ +/* 549 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var core_1 = __webpack_require__(179); var React = __webpack_require__(3); - var src_1 = __webpack_require__(381); + var src_1 = __webpack_require__(512); exports.PrecisionSelect = function (props) { return (React.createElement("label", { className: core_1.Classes.LABEL }, props.label == null ? props.label : "Precision", React.createElement("div", { className: core_1.Classes.SELECT }, @@ -70388,24 +72947,24 @@ /***/ }), -/* 536 */ +/* 550 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(380); + var tslib_1 = __webpack_require__(511); var core_1 = __webpack_require__(179); var docs_1 = __webpack_require__(172); - var classNames = __webpack_require__(522); - var moment = __webpack_require__(404); + var classNames = __webpack_require__(536); + var moment = __webpack_require__(336); var React = __webpack_require__(3); - var src_1 = __webpack_require__(381); + var src_1 = __webpack_require__(512); var FORMAT = "dddd, LL"; exports.Moment = function (_a) { var date = _a.date, _b = _a.format, format = _b === void 0 ? FORMAT : _b; var m = moment(date); if (m.isValid()) { - return React.createElement(core_1.Tag, { className: core_1.Classes.LARGE, intent: core_1.Intent.PRIMARY }, m.format(format)); + return (React.createElement(core_1.Tag, { className: core_1.Classes.LARGE, intent: core_1.Intent.PRIMARY }, m.format(format))); } else { return React.createElement(core_1.Tag, { className: classNames(core_1.Classes.LARGE, core_1.Classes.MINIMAL) }, "no date"); @@ -70424,9 +72983,9 @@ return _this; } DatePickerExample.prototype.renderExample = function () { - return React.createElement("div", { className: "docs-datetime-example" }, + return (React.createElement("div", { className: "docs-datetime-example" }, React.createElement(src_1.DatePicker, { className: core_1.Classes.ELEVATION_1, onChange: this.handleDateChange, showActionsBar: this.state.showActionsBar }), - React.createElement(exports.Moment, { date: this.state.date })); + React.createElement(exports.Moment, { date: this.state.date }))); }; DatePickerExample.prototype.renderOptions = function () { return [ @@ -70441,17 +73000,17 @@ /***/ }), -/* 537 */ +/* 551 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(380); + var tslib_1 = __webpack_require__(511); var core_1 = __webpack_require__(179); var docs_1 = __webpack_require__(172); var React = __webpack_require__(3); - var src_1 = __webpack_require__(381); - var formatSelect_1 = __webpack_require__(534); + var src_1 = __webpack_require__(512); + var formatSelect_1 = __webpack_require__(548); var DateRangeInputExample = (function (_super) { tslib_1.__extends(DateRangeInputExample, _super); function DateRangeInputExample() { @@ -70479,9 +73038,8 @@ }; DateRangeInputExample.prototype.renderOptions = function () { return [ + [React.createElement(formatSelect_1.FormatSelect, { key: "Format", onChange: this.toggleFormat, selectedValue: this.state.format })], [ - React.createElement(formatSelect_1.FormatSelect, { key: "Format", onChange: this.toggleFormat, selectedValue: this.state.format }), - ], [ React.createElement("label", { className: core_1.Classes.LABEL, key: "modifierslabel" }, "Modifiers"), React.createElement(core_1.Switch, { checked: this.state.allowSingleDayRange, label: "Allow single day range", key: "Allow single day range", onChange: this.toggleSingleDay }), React.createElement(core_1.Switch, { checked: this.state.closeOnSelection, label: "Close on selection", key: "Selection", onChange: this.toggleSelection }), @@ -70497,26 +73055,41 @@ /***/ }), -/* 538 */ +/* 552 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(380); + var tslib_1 = __webpack_require__(511); var core_1 = __webpack_require__(179); var docs_1 = __webpack_require__(172); - var moment = __webpack_require__(404); + var moment = __webpack_require__(336); var React = __webpack_require__(3); - var src_1 = __webpack_require__(381); - var datePickerExample_1 = __webpack_require__(536); + var src_1 = __webpack_require__(512); + var datePickerExample_1 = __webpack_require__(550); var MIN_DATE_OPTIONS = [ { label: "None", value: undefined }, - { label: "4 months ago", value: moment().add(-4, "months").toDate() }, - { label: "1 year ago", value: moment().add(-1, "years").toDate() }, + { + label: "4 months ago", + value: moment() + .add(-4, "months") + .toDate(), + }, + { + label: "1 year ago", + value: moment() + .add(-1, "years") + .toDate(), + }, ]; var MAX_DATE_OPTIONS = [ { label: "None", value: undefined }, - { label: "1 month ago", value: moment().add(-1, "months").toDate() }, + { + label: "1 month ago", + value: moment() + .add(-1, "months") + .toDate(), + }, ]; var DateRangePickerExample = (function (_super) { tslib_1.__extends(DateRangePickerExample, _super); @@ -70544,12 +73117,12 @@ var _a = this.state.dateRange, start = _a[0], end = _a[1]; var minDate = MIN_DATE_OPTIONS[this.state.minDateIndex].value; var maxDate = MAX_DATE_OPTIONS[this.state.maxDateIndex].value; - return React.createElement("div", { className: "docs-datetime-example" }, + return (React.createElement("div", { className: "docs-datetime-example" }, React.createElement(src_1.DateRangePicker, { allowSingleDayRange: this.state.allowSingleDayRange, contiguousCalendarMonths: this.state.contiguousCalendarMonths, className: core_1.Classes.ELEVATION_1, maxDate: maxDate, minDate: minDate, onChange: this.handleDateChange, shortcuts: this.state.shortcuts }), React.createElement("div", null, React.createElement(datePickerExample_1.Moment, { date: start }), React.createElement(core_1.Icon, { iconName: "arrow-right", iconSize: 20 }), - React.createElement(datePickerExample_1.Moment, { date: end }))); + React.createElement(datePickerExample_1.Moment, { date: end })))); }; DateRangePickerExample.prototype.renderOptions = function () { return [ @@ -70557,9 +73130,11 @@ React.createElement(core_1.Switch, { checked: this.state.allowSingleDayRange, key: "SingleDay", label: "Allow single day range", onChange: this.toggleSingleDay }), React.createElement(core_1.Switch, { checked: this.state.contiguousCalendarMonths, key: "Contiguous", label: "Constrain to contiguous months", onChange: this.toggleContiguousCalendarMonths }), React.createElement(core_1.Switch, { checked: this.state.shortcuts, key: "Shortcuts", label: "Show shortcuts", onChange: this.toggleShortcuts }), - ], [ + ], + [ this.renderSelectMenu("Minimum date", this.state.minDateIndex, MIN_DATE_OPTIONS, this.handleMinDateIndexChange), - ], [ + ], + [ this.renderSelectMenu("Maximum date", this.state.maxDateIndex, MAX_DATE_OPTIONS, this.handleMaxDateIndexChange), ], ]; @@ -70572,7 +73147,7 @@ }; DateRangePickerExample.prototype.renderSelectMenuOptions = function (options) { return options.map(function (option, index) { - return React.createElement("option", { key: index, value: index }, option.label); + return (React.createElement("option", { key: index, value: index }, option.label)); }); }; return DateRangePickerExample; @@ -70581,17 +73156,17 @@ /***/ }), -/* 539 */ +/* 553 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(380); + var tslib_1 = __webpack_require__(511); var core_1 = __webpack_require__(179); var docs_1 = __webpack_require__(172); var React = __webpack_require__(3); - var src_1 = __webpack_require__(381); - var datePickerExample_1 = __webpack_require__(536); + var src_1 = __webpack_require__(512); + var datePickerExample_1 = __webpack_require__(550); var DateTimePickerExample = (function (_super) { tslib_1.__extends(DateTimePickerExample, _super); function DateTimePickerExample() { @@ -70602,10 +73177,10 @@ } DateTimePickerExample.prototype.renderExample = function () { var timeProps = { precision: src_1.TimePickerPrecision.SECOND }; - return React.createElement("div", { className: "docs-datetime-example" }, + return (React.createElement("div", { className: "docs-datetime-example" }, React.createElement(src_1.DateTimePicker, { className: core_1.Classes.ELEVATION_1, timePickerProps: timeProps, onChange: this.handleDateChange }), React.createElement("div", null, - React.createElement(datePickerExample_1.Moment, { date: this.state.date, format: "LLLL" }))); + React.createElement(datePickerExample_1.Moment, { date: this.state.date, format: "LLLL" })))); }; return DateTimePickerExample; }(docs_1.BaseExample)); @@ -70613,18 +73188,18 @@ /***/ }), -/* 540 */ +/* 554 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(380); + var tslib_1 = __webpack_require__(511); var core_1 = __webpack_require__(179); var docs_1 = __webpack_require__(172); var React = __webpack_require__(3); - var precisionSelect_1 = __webpack_require__(535); - var src_1 = __webpack_require__(381); - var timePicker_1 = __webpack_require__(529); + var precisionSelect_1 = __webpack_require__(549); + var src_1 = __webpack_require__(512); + var timePicker_1 = __webpack_require__(543); var MinimumHours; (function (MinimumHours) { MinimumHours[MinimumHours["NONE"] = 0] = "NONE"; @@ -70708,7 +73283,7 @@ /***/ }), -/* 541 */ +/* 555 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -70716,17 +73291,18 @@ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); - __export(__webpack_require__(542)); - __export(__webpack_require__(558)); - __export(__webpack_require__(559)); - __export(__webpack_require__(560)); - __export(__webpack_require__(561)); - __export(__webpack_require__(562)); - __export(__webpack_require__(563)); + __export(__webpack_require__(556)); + __export(__webpack_require__(577)); + __export(__webpack_require__(578)); + __export(__webpack_require__(579)); + __export(__webpack_require__(580)); + __export(__webpack_require__(581)); + __export(__webpack_require__(582)); + __export(__webpack_require__(583)); /***/ }), -/* 542 */ +/* 556 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -70736,8 +73312,8 @@ var React = __webpack_require__(3); var core_1 = __webpack_require__(179); var docs_1 = __webpack_require__(172); - var src_1 = __webpack_require__(543); - var data_1 = __webpack_require__(557); + var src_1 = __webpack_require__(557); + var data_1 = __webpack_require__(576); var FilmMultiSelect = src_1.MultiSelect.ofType(); var INTENTS = [core_1.Intent.NONE, core_1.Intent.PRIMARY, core_1.Intent.SUCCESS, core_1.Intent.DANGER, core_1.Intent.WARNING]; var MultiSelectExample = (function (_super) { @@ -70791,9 +73367,7 @@ className: tagMinimal ? core_1.Classes.MINIMAL : "", intent: _this.state.intent ? INTENTS[index % INTENTS.length] : core_1.Intent.NONE, }); }; - var initialContent = this.state.hasInitialContent - ? React.createElement(core_1.MenuItem, { disabled: true, text: data_1.TOP_100_FILMS.length + " items loaded." }) - : undefined; + var initialContent = this.state.hasInitialContent ? (React.createElement(core_1.MenuItem, { disabled: true, text: data_1.TOP_100_FILMS.length + " items loaded." })) : (undefined); return (React.createElement(FilmMultiSelect, tslib_1.__assign({}, flags, { initialContent: initialContent, items: data_1.TOP_100_FILMS, itemPredicate: this.filterFilm, itemRenderer: this.renderFilm, noResults: React.createElement(core_1.MenuItem, { disabled: true, text: "No results." }), onItemSelect: this.handleFilmSelect, popoverProps: { popoverClassName: popoverMinimal ? core_1.Classes.MINIMAL : "" }, tagRenderer: this.renderTag, tagInputProps: { tagProps: getTagProps, onRemove: this.handleTagRemove }, selectedItems: this.state.films }))); }; MultiSelectExample.prototype.renderOptions = function () { @@ -70838,7 +73412,7 @@ /***/ }), -/* 543 */ +/* 557 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -70846,22 +73420,22 @@ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); - __export(__webpack_require__(544)); - __export(__webpack_require__(546)); + __export(__webpack_require__(558)); + __export(__webpack_require__(560)); /***/ }), -/* 544 */ +/* 558 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var classes = __webpack_require__(545); + var classes = __webpack_require__(559); exports.Classes = classes; /***/ }), -/* 545 */ +/* 559 */ /***/ (function(module, exports) { "use strict"; @@ -70875,10 +73449,12 @@ exports.SELECT_POPOVER = exports.SELECT + "-popover"; exports.TAG_INPUT = "pt-tag-input"; exports.TAG_INPUT_ICON = exports.TAG_INPUT + "-icon"; + exports.TIMEZONE_PICKER = "pt-timezone-picker"; + exports.TIMEZONE_PICKER_POPOVER = exports.TIMEZONE_PICKER + "-popover"; /***/ }), -/* 546 */ +/* 560 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -70886,18 +73462,19 @@ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); - __export(__webpack_require__(547)); - __export(__webpack_require__(548)); - __export(__webpack_require__(549)); - __export(__webpack_require__(552)); - __export(__webpack_require__(553)); - __export(__webpack_require__(554)); - __export(__webpack_require__(555)); - __export(__webpack_require__(556)); + __export(__webpack_require__(561)); + __export(__webpack_require__(563)); + __export(__webpack_require__(564)); + __export(__webpack_require__(562)); + __export(__webpack_require__(567)); + __export(__webpack_require__(569)); + __export(__webpack_require__(570)); + __export(__webpack_require__(568)); + __export(__webpack_require__(571)); /***/ }), -/* 547 */ +/* 561 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -70907,8 +73484,8 @@ var PureRender = __webpack_require__(307); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); - var _1 = __webpack_require__(546); - var Classes = __webpack_require__(545); + var Classes = __webpack_require__(559); + var queryList_1 = __webpack_require__(562); var Omnibox = Omnibox_1 = (function (_super) { tslib_1.__extends(Omnibox, _super); function Omnibox() { @@ -70916,17 +73493,15 @@ _this.state = { query: "", }; - _this.TypedQueryList = _1.QueryList.ofType(); + _this.TypedQueryList = queryList_1.QueryList.ofType(); _this.refHandlers = { - queryList: function (ref) { return _this.queryList = ref; }, + queryList: function (ref) { return (_this.queryList = ref); }, }; _this.renderQueryList = function (listProps) { var _a = _this.props, _b = _a.inputProps, inputProps = _b === void 0 ? {} : _b, isOpen = _a.isOpen, _c = _a.overlayProps, overlayProps = _c === void 0 ? {} : _c; var ref = inputProps.ref, htmlInputProps = tslib_1.__rest(inputProps, ["ref"]); var handleKeyDown = listProps.handleKeyDown, handleKeyUp = listProps.handleKeyUp; - var handlers = isOpen && !_this.isQueryEmpty() - ? { onKeyDown: handleKeyDown, onKeyUp: handleKeyUp } - : {}; + var handlers = isOpen && !_this.isQueryEmpty() ? { onKeyDown: handleKeyDown, onKeyUp: handleKeyUp } : {}; return (React.createElement(core_1.Overlay, tslib_1.__assign({ hasBackdrop: true }, overlayProps, { isOpen: isOpen, className: classNames(overlayProps.className, Classes.OMNIBOX_OVERLAY), onClose: _this.handleOverlayClose }), React.createElement("div", tslib_1.__assign({ className: classNames(listProps.className, Classes.OMNIBOX) }, handlers), React.createElement(core_1.InputGroup, tslib_1.__assign({ autoFocus: true, className: core_1.Classes.LARGE, leftIconName: "search", placeholder: "Search...", value: listProps.query }, htmlInputProps, { onChange: _this.handleQueryChange })), @@ -70954,7 +73529,7 @@ }; Omnibox.prototype.render = function () { var _a = this.props, initialContent = _a.initialContent, isOpen = _a.isOpen, itemRenderer = _a.itemRenderer, inputProps = _a.inputProps, noResults = _a.noResults, overlayProps = _a.overlayProps, restProps = tslib_1.__rest(_a, ["initialContent", "isOpen", "itemRenderer", "inputProps", "noResults", "overlayProps"]); - return React.createElement(this.TypedQueryList, tslib_1.__assign({}, restProps, { activeItem: this.state.activeItem, onActiveItemChange: this.handleActiveItemChange, onItemSelect: this.handleItemSelect, query: this.state.query, ref: this.refHandlers.queryList, renderer: this.renderQueryList })); + return (React.createElement(this.TypedQueryList, tslib_1.__assign({}, restProps, { activeItem: this.state.activeItem, onActiveItemChange: this.handleActiveItemChange, onItemSelect: this.handleItemSelect, query: this.state.query, ref: this.refHandlers.queryList, renderer: this.renderQueryList }))); }; Omnibox.prototype.componentWillReceiveProps = function (nextProps) { var isOpen = nextProps.isOpen; @@ -70970,12 +73545,14 @@ if (filteredItems.length === 0) { return noResults; } - return filteredItems.map(function (item, index) { return itemRenderer({ - index: index, - item: item, - handleClick: function (e) { return handleItemSelect(item, e); }, - isActive: item === activeItem, - }); }); + return filteredItems.map(function (item, index) { + return itemRenderer({ + index: index, + item: item, + handleClick: function (e) { return handleItemSelect(item, e); }, + isActive: item === activeItem, + }); + }); }; Omnibox.prototype.maybeRenderMenu = function (listProps) { var initialContent = this.props.initialContent; @@ -70987,7 +73564,7 @@ menuChildren = initialContent; } if (menuChildren != null) { - return (React.createElement(core_1.Menu, { ulRef: listProps.itemsParentRef }, menuChildren)); + return React.createElement(core_1.Menu, { ulRef: listProps.itemsParentRef }, menuChildren); } return undefined; }; @@ -71002,7 +73579,141 @@ /***/ }), -/* 548 */ +/* 562 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(305); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var QueryList = (function (_super) { + tslib_1.__extends(QueryList, _super); + function QueryList() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.refHandlers = { + itemsParent: function (ref) { return (_this.itemsParentRef = ref); }, + }; + _this.handleItemSelect = function (item, event) { + core_1.Utils.safeInvoke(_this.props.onActiveItemChange, item); + core_1.Utils.safeInvoke(_this.props.onItemSelect, item, event); + }; + _this.handleKeyDown = function (event) { + switch (event.keyCode) { + case core_1.Keys.ARROW_UP: + event.preventDefault(); + _this.moveActiveIndex(-1); + break; + case core_1.Keys.ARROW_DOWN: + event.preventDefault(); + _this.moveActiveIndex(1); + break; + default: + break; + } + core_1.Utils.safeInvoke(_this.props.onKeyDown, event); + }; + _this.handleKeyUp = function (event) { + var _a = _this.props, activeItem = _a.activeItem, onItemSelect = _a.onItemSelect, onKeyUp = _a.onKeyUp; + if (event.keyCode === core_1.Keys.ENTER) { + event.preventDefault(); + core_1.Utils.safeInvoke(onItemSelect, activeItem, event); + } + core_1.Utils.safeInvoke(onKeyUp, event); + }; + return _this; + } + QueryList.ofType = function () { + return QueryList; + }; + QueryList.prototype.render = function () { + var _a = this.props, renderer = _a.renderer, props = tslib_1.__rest(_a, ["renderer"]); + var filteredItems = this.state.filteredItems; + return renderer(tslib_1.__assign({}, props, { filteredItems: filteredItems, handleItemSelect: this.handleItemSelect, handleKeyDown: this.handleKeyDown, handleKeyUp: this.handleKeyUp, itemsParentRef: this.refHandlers.itemsParent })); + }; + QueryList.prototype.componentWillMount = function () { + this.setState({ filteredItems: getFilteredItems(this.props) }); + }; + QueryList.prototype.componentWillReceiveProps = function (nextProps) { + if (nextProps.items !== this.props.items || + nextProps.itemListPredicate !== this.props.itemListPredicate || + nextProps.itemPredicate !== this.props.itemPredicate || + nextProps.query !== this.props.query) { + this.shouldCheckActiveItemInViewport = true; + this.setState({ filteredItems: getFilteredItems(nextProps) }); + } + }; + QueryList.prototype.componentDidUpdate = function () { + var _this = this; + if (this.shouldCheckActiveItemInViewport) { + requestAnimationFrame(function () { return _this.scrollActiveItemIntoView(); }); + this.shouldCheckActiveItemInViewport = false; + } + if (this.getActiveIndex() < 0 && + (this.state.filteredItems.length !== 0 || this.props.activeItem !== undefined)) { + core_1.Utils.safeInvoke(this.props.onActiveItemChange, this.state.filteredItems[0]); + } + }; + QueryList.prototype.scrollActiveItemIntoView = function () { + var activeElement = this.getActiveElement(); + if (this.itemsParentRef != null && activeElement != null) { + var activeTop = activeElement.offsetTop, activeHeight = activeElement.offsetHeight; + var _a = this.itemsParentRef, parentOffsetTop = _a.offsetTop, parentScrollTop = _a.scrollTop, parentHeight = _a.clientHeight; + var _b = this.getItemsParentPadding(), paddingTop = _b.paddingTop, paddingBottom = _b.paddingBottom; + var activeBottomEdge = activeTop + activeHeight + paddingBottom - parentOffsetTop; + var activeTopEdge = activeTop - paddingTop - parentOffsetTop; + if (activeBottomEdge >= parentScrollTop + parentHeight) { + this.itemsParentRef.scrollTop = activeBottomEdge + activeHeight - parentHeight; + } + else if (activeTopEdge <= parentScrollTop) { + this.itemsParentRef.scrollTop = activeTopEdge - activeHeight; + } + } + }; + QueryList.prototype.getActiveElement = function () { + if (this.itemsParentRef != null) { + return this.itemsParentRef.children.item(this.getActiveIndex()); + } + return undefined; + }; + QueryList.prototype.getActiveIndex = function () { + return this.state.filteredItems.indexOf(this.props.activeItem); + }; + QueryList.prototype.getItemsParentPadding = function () { + var _a = getComputedStyle(this.itemsParentRef), paddingTop = _a.paddingTop, paddingBottom = _a.paddingBottom; + return { + paddingBottom: pxToNumber(paddingBottom), + paddingTop: pxToNumber(paddingTop), + }; + }; + QueryList.prototype.moveActiveIndex = function (direction) { + this.shouldCheckActiveItemInViewport = true; + var filteredItems = this.state.filteredItems; + var maxIndex = Math.max(filteredItems.length - 1, 0); + var nextActiveIndex = core_1.Utils.clamp(this.getActiveIndex() + direction, 0, maxIndex); + core_1.Utils.safeInvoke(this.props.onActiveItemChange, filteredItems[nextActiveIndex]); + }; + return QueryList; + }(React.Component)); + QueryList.displayName = "Blueprint.QueryList"; + exports.QueryList = QueryList; + function pxToNumber(value) { + return parseInt(value.slice(0, -2), 10); + } + function getFilteredItems(_a) { + var items = _a.items, itemPredicate = _a.itemPredicate, itemListPredicate = _a.itemListPredicate, query = _a.query; + if (core_1.Utils.isFunction(itemListPredicate)) { + return itemListPredicate(query, items); + } + else if (core_1.Utils.isFunction(itemPredicate)) { + return items.filter(function (item, index) { return itemPredicate(query, item, index); }); + } + return items; + } + + +/***/ }), +/* 563 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -71011,19 +73722,19 @@ var classNames = __webpack_require__(306); var PureRender = __webpack_require__(307); var React = __webpack_require__(3); - var react_popper_1 = __webpack_require__(312); + var react_popper_1 = __webpack_require__(313); var core_1 = __webpack_require__(179); - var tooltip2_1 = __webpack_require__(549); - var arrow_1 = __webpack_require__(550); - var popperUtils_1 = __webpack_require__(551); + var tooltip2_1 = __webpack_require__(564); + var arrow_1 = __webpack_require__(565); + var popperUtils_1 = __webpack_require__(566); var Popover2 = (function (_super) { tslib_1.__extends(Popover2, _super); function Popover2(props, context) { var _this = _super.call(this, props, context) || this; _this.isContentMounting = false; _this.refHandlers = { - popover: function (ref) { return _this.popoverElement = ref; }, - target: function (ref) { return _this.targetElement = ref; }, + popover: function (ref) { return (_this.popoverElement = ref); }, + target: function (ref) { return (_this.targetElement = ref); }, }; _this.handleContentMount = function () { if (_this.isContentMounting) { @@ -71046,10 +73757,10 @@ } }; _this.handleMouseEnter = function (e) { - if (_this.props.inline - && _this.isElementInPopover(e.target) - && _this.props.interactionKind === core_1.PopoverInteractionKind.HOVER_TARGET_ONLY - && !_this.props.openOnTargetFocus) { + if (_this.props.inline && + _this.isElementInPopover(e.target) && + _this.props.interactionKind === core_1.PopoverInteractionKind.HOVER_TARGET_ONLY && + !_this.props.openOnTargetFocus) { _this.handleMouseLeave(e); } else if (!_this.props.disabled) { @@ -71069,8 +73780,7 @@ }; _this.handleOverlayClose = function (e) { var eventTarget = e.target; - if (!core_1.Utils.elementIsOrContains(_this.targetElement, eventTarget) - || e.nativeEvent instanceof KeyboardEvent) { + if (!core_1.Utils.elementIsOrContains(_this.targetElement, eventTarget) || e.nativeEvent instanceof KeyboardEvent) { _this.setOpenState(false, e); } }; @@ -71127,7 +73837,7 @@ disabled: isOpen && children.target.type === tooltip2_1.Tooltip2 ? true : children.target.props.disabled, tabIndex: targetTabIndex, }); - var isContentEmpty = (children.content == null); + var isContentEmpty = children.content == null; if (isContentEmpty && !this.props.disabled && isOpen !== false && !core_1.Utils.isNodeEnv("production")) { console.warn("[Blueprint] Disabling with empty/whitespace content..."); } @@ -71174,8 +73884,8 @@ var popoverHandlers = { onClick: this.handlePopoverClick, }; - if ((interactionKind === core_1.PopoverInteractionKind.HOVER) - || (inline && interactionKind === core_1.PopoverInteractionKind.HOVER_TARGET_ONLY)) { + if (interactionKind === core_1.PopoverInteractionKind.HOVER || + (inline && interactionKind === core_1.PopoverInteractionKind.HOVER_TARGET_ONLY)) { popoverHandlers.onMouseEnter = this.handleMouseEnter; popoverHandlers.onMouseLeave = this.handleMouseLeave; } @@ -71183,8 +73893,8 @@ _b[core_1.Classes.DARK] = this.props.inheritDarkTheme && this.state.hasDarkParent, _b[core_1.Classes.MINIMAL] = this.props.minimal, _b), this.props.popoverClassName); - var isArrowEnabled = !this.props.minimal - && (modifiers.arrow == null || modifiers.arrow.enabled); + var isArrowEnabled = !this.props.minimal && + (modifiers.arrow == null || modifiers.arrow.enabled); var allModifiers = tslib_1.__assign({}, modifiers, { arrowOffset: { enabled: isArrowEnabled, fn: popperUtils_1.arrowOffsetModifier, @@ -71230,8 +73940,8 @@ return this.popoverElement != null && this.popoverElement.contains(element); }; Popover2.prototype.isHoverInteractionKind = function () { - return this.props.interactionKind === core_1.PopoverInteractionKind.HOVER - || this.props.interactionKind === core_1.PopoverInteractionKind.HOVER_TARGET_ONLY; + return (this.props.interactionKind === core_1.PopoverInteractionKind.HOVER || + this.props.interactionKind === core_1.PopoverInteractionKind.HOVER_TARGET_ONLY); }; return Popover2; }(core_1.AbstractComponent)); @@ -71270,7 +73980,7 @@ /***/ }), -/* 549 */ +/* 564 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -71280,7 +73990,7 @@ var PureRender = __webpack_require__(307); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); - var popover2_1 = __webpack_require__(548); + var popover2_1 = __webpack_require__(563); var Tooltip2 = (function (_super) { tslib_1.__extends(Tooltip2, _super); function Tooltip2() { @@ -71309,25 +74019,29 @@ /***/ }), -/* 550 */ +/* 565 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var React = __webpack_require__(3); - var react_popper_1 = __webpack_require__(312); + var react_popper_1 = __webpack_require__(313); var core_1 = __webpack_require__(179); - var popperUtils_1 = __webpack_require__(551); + var popperUtils_1 = __webpack_require__(566); var SVG_SHADOW_PATH = "M8.11 6.302c1.015-.936 1.887-2.922 1.887-4.297v26c0-1.378" + "-.868-3.357-1.888-4.297L.925 17.09c-1.237-1.14-1.233-3.034 0-4.17L8.11 6.302z"; var SVG_ARROW_PATH = "M8.787 7.036c1.22-1.125 2.21-3.376 2.21-5.03V0v30-2.005" + "c0-1.654-.983-3.9-2.21-5.03l-7.183-6.616c-.81-.746-.802-1.96 0-2.7l7.183-6.614z"; function getArrowAngle(placement) { switch (popperUtils_1.getPosition(placement)) { - case "top": return -90; - case "left": return 180; - case "bottom": return 90; - default: return 0; + case "top": + return -90; + case "left": + return 180; + case "bottom": + return 90; + default: + return 0; } } exports.getArrowAngle = getArrowAngle; @@ -71342,7 +74056,7 @@ /***/ }), -/* 551 */ +/* 566 */ /***/ (function(module, exports) { "use strict"; @@ -71357,19 +74071,26 @@ exports.isVerticalPosition = isVerticalPosition; function getOppositePosition(side) { switch (side) { - case "top": return "bottom"; - case "left": return "right"; - case "bottom": return "top"; - default: return "left"; + case "top": + return "bottom"; + case "left": + return "right"; + case "bottom": + return "top"; + default: + return "left"; } } exports.getOppositePosition = getOppositePosition; function getAlignment(placement) { var align = placement.split("-")[1]; switch (align) { - case "start": return "left"; - case "end": return "right"; - default: return "center"; + case "start": + return "left"; + case "end": + return "right"; + default: + return "center"; } } exports.getAlignment = getAlignment; @@ -71413,140 +74134,7 @@ /***/ }), -/* 552 */ -/***/ (function(module, exports, __webpack_require__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(305); - var React = __webpack_require__(3); - var core_1 = __webpack_require__(179); - var QueryList = (function (_super) { - tslib_1.__extends(QueryList, _super); - function QueryList() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.refHandlers = { - itemsParent: function (ref) { return _this.itemsParentRef = ref; }, - }; - _this.handleItemSelect = function (item, event) { - core_1.Utils.safeInvoke(_this.props.onActiveItemChange, item); - core_1.Utils.safeInvoke(_this.props.onItemSelect, item, event); - }; - _this.handleKeyDown = function (event) { - switch (event.keyCode) { - case core_1.Keys.ARROW_UP: - event.preventDefault(); - _this.moveActiveIndex(-1); - break; - case core_1.Keys.ARROW_DOWN: - event.preventDefault(); - _this.moveActiveIndex(1); - break; - default: break; - } - core_1.Utils.safeInvoke(_this.props.onKeyDown, event); - }; - _this.handleKeyUp = function (event) { - var _a = _this.props, activeItem = _a.activeItem, onItemSelect = _a.onItemSelect, onKeyUp = _a.onKeyUp; - if (event.keyCode === core_1.Keys.ENTER) { - event.preventDefault(); - core_1.Utils.safeInvoke(onItemSelect, activeItem, event); - } - core_1.Utils.safeInvoke(onKeyUp, event); - }; - return _this; - } - QueryList.ofType = function () { - return QueryList; - }; - QueryList.prototype.render = function () { - var _a = this.props, renderer = _a.renderer, props = tslib_1.__rest(_a, ["renderer"]); - var filteredItems = this.state.filteredItems; - return renderer(tslib_1.__assign({}, props, { filteredItems: filteredItems, handleItemSelect: this.handleItemSelect, handleKeyDown: this.handleKeyDown, handleKeyUp: this.handleKeyUp, itemsParentRef: this.refHandlers.itemsParent })); - }; - QueryList.prototype.componentWillMount = function () { - this.setState({ filteredItems: getFilteredItems(this.props) }); - }; - QueryList.prototype.componentWillReceiveProps = function (nextProps) { - if (nextProps.items !== this.props.items - || nextProps.itemListPredicate !== this.props.itemListPredicate - || nextProps.itemPredicate !== this.props.itemPredicate - || nextProps.query !== this.props.query) { - this.shouldCheckActiveItemInViewport = true; - this.setState({ filteredItems: getFilteredItems(nextProps) }); - } - }; - QueryList.prototype.componentDidUpdate = function () { - var _this = this; - if (this.shouldCheckActiveItemInViewport) { - requestAnimationFrame(function () { return _this.scrollActiveItemIntoView(); }); - this.shouldCheckActiveItemInViewport = false; - } - if (this.getActiveIndex() < 0 && - (this.state.filteredItems.length !== 0 || this.props.activeItem !== undefined)) { - core_1.Utils.safeInvoke(this.props.onActiveItemChange, this.state.filteredItems[0]); - } - }; - QueryList.prototype.scrollActiveItemIntoView = function () { - var activeElement = this.getActiveElement(); - if (this.itemsParentRef != null && activeElement != null) { - var activeTop = activeElement.offsetTop, activeHeight = activeElement.offsetHeight; - var _a = this.itemsParentRef, parentOffsetTop = _a.offsetTop, parentScrollTop = _a.scrollTop, parentHeight = _a.clientHeight; - var _b = this.getItemsParentPadding(), paddingTop = _b.paddingTop, paddingBottom = _b.paddingBottom; - var activeBottomEdge = activeTop + activeHeight + paddingBottom - parentOffsetTop; - var activeTopEdge = activeTop - paddingTop - parentOffsetTop; - if (activeBottomEdge >= parentScrollTop + parentHeight) { - this.itemsParentRef.scrollTop = activeBottomEdge + activeHeight - parentHeight; - } - else if (activeTopEdge <= parentScrollTop) { - this.itemsParentRef.scrollTop = activeTopEdge - activeHeight; - } - } - }; - QueryList.prototype.getActiveElement = function () { - if (this.itemsParentRef != null) { - return this.itemsParentRef.children.item(this.getActiveIndex()); - } - return undefined; - }; - QueryList.prototype.getActiveIndex = function () { - return this.state.filteredItems.indexOf(this.props.activeItem); - }; - QueryList.prototype.getItemsParentPadding = function () { - var _a = getComputedStyle(this.itemsParentRef), paddingTop = _a.paddingTop, paddingBottom = _a.paddingBottom; - return { - paddingBottom: pxToNumber(paddingBottom), - paddingTop: pxToNumber(paddingTop), - }; - }; - QueryList.prototype.moveActiveIndex = function (direction) { - this.shouldCheckActiveItemInViewport = true; - var filteredItems = this.state.filteredItems; - var maxIndex = Math.max(filteredItems.length - 1, 0); - var nextActiveIndex = core_1.Utils.clamp(this.getActiveIndex() + direction, 0, maxIndex); - core_1.Utils.safeInvoke(this.props.onActiveItemChange, filteredItems[nextActiveIndex]); - }; - return QueryList; - }(React.Component)); - QueryList.displayName = "Blueprint.QueryList"; - exports.QueryList = QueryList; - function pxToNumber(value) { - return parseInt(value.slice(0, -2), 10); - } - function getFilteredItems(_a) { - var items = _a.items, itemPredicate = _a.itemPredicate, itemListPredicate = _a.itemListPredicate, query = _a.query; - if (core_1.Utils.isFunction(itemListPredicate)) { - return itemListPredicate(query, items); - } - else if (core_1.Utils.isFunction(itemPredicate)) { - return items.filter(function (item, index) { return itemPredicate(query, item, index); }); - } - return items; - } - - -/***/ }), -/* 553 */ +/* 567 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -71556,8 +74144,9 @@ var PureRender = __webpack_require__(307); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); - var _1 = __webpack_require__(546); - var Classes = __webpack_require__(545); + var Classes = __webpack_require__(559); + var queryList_1 = __webpack_require__(562); + var tagInput_1 = __webpack_require__(568); var MultiSelect = MultiSelect_1 = (function (_super) { tslib_1.__extends(MultiSelect, _super); function MultiSelect() { @@ -71566,10 +74155,10 @@ isOpen: false, query: "", }; - _this.TypedQueryList = _1.QueryList.ofType(); + _this.TypedQueryList = queryList_1.QueryList.ofType(); _this.refHandlers = { - input: function (ref) { return _this.input = ref; }, - queryList: function (ref) { return _this.queryList = ref; }, + input: function (ref) { return (_this.input = ref); }, + queryList: function (ref) { return (_this.queryList = ref); }, }; _this.renderQueryList = function (listProps) { var _a = _this.props, _b = _a.tagInputProps, tagInputProps = _b === void 0 ? {} : _b, _c = _a.popoverProps, popoverProps = _c === void 0 ? {} : _c; @@ -71577,7 +74166,7 @@ var defaultInputProps = tslib_1.__assign({ placeholder: "Search..." }, tagInputProps.inputProps, { onChange: _this.handleQueryChange, ref: _this.refHandlers.input, value: query }); return (React.createElement(core_1.Popover, tslib_1.__assign({ autoFocus: false, canEscapeKeyClose: true, enforceFocus: false, isOpen: _this.state.isOpen, position: core_1.Position.BOTTOM_LEFT }, popoverProps, { className: classNames(listProps.className, popoverProps.className), onInteraction: _this.handlePopoverInteraction, popoverClassName: classNames(Classes.MULTISELECT_POPOVER, popoverProps.popoverClassName), popoverDidOpen: _this.handlePopoverDidOpen, popoverWillOpen: _this.handlePopoverWillOpen }), React.createElement("div", { onKeyDown: _this.getTargetKeyDownHandler(handleKeyDown), onKeyUp: _this.state.isOpen ? handleKeyUp : undefined }, - React.createElement(_1.TagInput, tslib_1.__assign({}, tagInputProps, { inputProps: defaultInputProps, className: classNames(Classes.MULTISELECT, tagInputProps.className), values: _this.props.selectedItems.map(_this.props.tagRenderer) }))), + React.createElement(tagInput_1.TagInput, tslib_1.__assign({}, tagInputProps, { inputProps: defaultInputProps, className: classNames(Classes.MULTISELECT, tagInputProps.className), values: _this.props.selectedItems.map(_this.props.tagRenderer) }))), React.createElement("div", { onKeyDown: _this.getTargetKeyDownHandler(handleKeyDown), onKeyUp: handleKeyUp }, React.createElement(core_1.Menu, { ulRef: listProps.itemsParentRef }, _this.renderItems(listProps))))); }; @@ -71602,20 +74191,22 @@ core_1.Utils.safeInvoke(_this.props.onItemSelect, item, e); } }; - _this.handlePopoverInteraction = function (nextOpenState) { return requestAnimationFrame(function () { - var _a = _this.props, _b = _a.popoverProps, popoverProps = _b === void 0 ? {} : _b, resetOnSelect = _a.resetOnSelect; - if (_this.input != null && _this.input !== document.activeElement) { - _this.setState({ - activeItem: resetOnSelect ? _this.props.items[0] : _this.state.activeItem, - isOpen: false, - query: resetOnSelect ? "" : _this.state.query, - }); - } - else if (!_this.props.openOnKeyDown) { - _this.setState({ isOpen: true }); - } - core_1.Utils.safeInvoke(popoverProps.onInteraction, nextOpenState); - }); }; + _this.handlePopoverInteraction = function (nextOpenState) { + return requestAnimationFrame(function () { + var _a = _this.props, _b = _a.popoverProps, popoverProps = _b === void 0 ? {} : _b, resetOnSelect = _a.resetOnSelect; + if (_this.input != null && _this.input !== document.activeElement) { + _this.setState({ + activeItem: resetOnSelect ? _this.props.items[0] : _this.state.activeItem, + isOpen: false, + query: resetOnSelect ? "" : _this.state.query, + }); + } + else if (!_this.props.openOnKeyDown) { + _this.setState({ isOpen: true }); + } + core_1.Utils.safeInvoke(popoverProps.onInteraction, nextOpenState); + }); + }; _this.handlePopoverWillOpen = function () { var _a = _this.props, _b = _a.popoverProps, popoverProps = _b === void 0 ? {} : _b, resetOnSelect = _a.resetOnSelect; if (resetOnSelect) { @@ -71659,7 +74250,7 @@ }; MultiSelect.prototype.render = function () { var _a = this.props, initialContent = _a.initialContent, itemRenderer = _a.itemRenderer, noResults = _a.noResults, openOnKeyDown = _a.openOnKeyDown, popoverProps = _a.popoverProps, resetOnSelect = _a.resetOnSelect, tagInputProps = _a.tagInputProps, restProps = tslib_1.__rest(_a, ["initialContent", "itemRenderer", "noResults", "openOnKeyDown", "popoverProps", "resetOnSelect", "tagInputProps"]); - return React.createElement(this.TypedQueryList, tslib_1.__assign({}, restProps, { activeItem: this.state.activeItem, onActiveItemChange: this.handleActiveItemChange, onItemSelect: this.handleItemSelect, query: this.state.query, ref: this.refHandlers.queryList, renderer: this.renderQueryList })); + return (React.createElement(this.TypedQueryList, tslib_1.__assign({}, restProps, { activeItem: this.state.activeItem, onActiveItemChange: this.handleActiveItemChange, onItemSelect: this.handleItemSelect, query: this.state.query, ref: this.refHandlers.queryList, renderer: this.renderQueryList }))); }; MultiSelect.prototype.renderItems = function (_a) { var activeItem = _a.activeItem, filteredItems = _a.filteredItems, handleItemSelect = _a.handleItemSelect; @@ -71670,12 +74261,14 @@ if (filteredItems.length === 0) { return noResults; } - return filteredItems.map(function (item, index) { return itemRenderer({ - index: index, - item: item, - handleClick: function (e) { return handleItemSelect(item, e); }, - isActive: item === activeItem, - }); }); + return filteredItems.map(function (item, index) { + return itemRenderer({ + index: index, + item: item, + handleClick: function (e) { return handleItemSelect(item, e); }, + isActive: item === activeItem, + }); + }); }; return MultiSelect; }(React.Component)); @@ -71688,7 +74281,7 @@ /***/ }), -/* 554 */ +/* 568 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -71698,16 +74291,177 @@ var PureRender = __webpack_require__(307); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); - var _1 = __webpack_require__(546); - var Classes = __webpack_require__(545); + var Classes = __webpack_require__(559); + var NONE = -1; + var TagInput = (function (_super) { + tslib_1.__extends(TagInput, _super); + function TagInput() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + activeIndex: NONE, + inputValue: "", + isInputFocused: false, + }; + _this.refHandlers = { + input: function (ref) { + _this.inputElement = ref; + var refHandler = _this.props.inputProps.ref; + if (core_1.Utils.isFunction(refHandler)) { + refHandler(ref); + } + }, + }; + _this.maybeRenderTag = function (tag, index) { + if (!tag) { + return null; + } + var tagProps = _this.props.tagProps; + var props = core_1.Utils.isFunction(tagProps) ? tagProps(tag, index) : tagProps; + return (React.createElement(core_1.Tag, tslib_1.__assign({ active: index === _this.state.activeIndex, "data-tag-index": index, key: tag + "__" + index, onRemove: _this.handleRemoveTag }, props), tag)); + }; + _this.handleContainerClick = function () { + if (_this.inputElement != null) { + _this.inputElement.focus(); + } + }; + _this.handleBlur = function () { + return requestAnimationFrame(function () { + if (_this.inputElement != null && !_this.inputElement.parentElement.contains(document.activeElement)) { + _this.setState({ activeIndex: NONE, isInputFocused: false }); + } + }); + }; + _this.handleInputFocus = function (event) { + _this.setState({ isInputFocused: true }); + core_1.Utils.safeInvoke(_this.props.inputProps.onFocus, event); + }; + _this.handleInputChange = function (event) { + _this.setState({ activeIndex: NONE, inputValue: event.currentTarget.value }); + core_1.Utils.safeInvoke(_this.props.inputProps.onChange, event); + }; + _this.handleInputKeyDown = function (event) { + var _a = event.currentTarget, selectionEnd = _a.selectionEnd, value = _a.value; + if (event.which === core_1.Keys.ENTER && value.length > 0) { + var _b = _this.props, onAdd = _b.onAdd, onChange = _b.onChange, values = _b.values; + var newValues = _this.getValues(value); + var shouldClearInput = core_1.Utils.safeInvoke(onAdd, newValues); + if (core_1.Utils.isFunction(onChange)) { + shouldClearInput = shouldClearInput || onChange(values.concat(newValues)); + } + if (shouldClearInput !== false) { + _this.setState({ inputValue: "" }); + } + } + else if (selectionEnd === 0 && _this.props.values.length > 0) { + if (event.which === core_1.Keys.ARROW_LEFT || event.which === core_1.Keys.ARROW_RIGHT) { + var nextIndex = _this.getNextActiveIndex(event.which === core_1.Keys.ARROW_RIGHT ? 1 : -1); + if (nextIndex !== _this.state.activeIndex) { + event.preventDefault(); + _this.setState({ activeIndex: nextIndex }); + } + } + else if (event.which === core_1.Keys.BACKSPACE) { + _this.handleBackspaceToRemove(event); + } + } + core_1.Utils.safeInvoke(_this.props.inputProps.onKeyDown, event); + }; + _this.handleRemoveTag = function (event) { + var index = +event.currentTarget.parentElement.getAttribute("data-tag-index"); + _this.removeIndexFromValues(index); + }; + return _this; + } + TagInput.prototype.render = function () { + var _a = this.props, className = _a.className, inputProps = _a.inputProps, leftIconName = _a.leftIconName, placeholder = _a.placeholder, values = _a.values; + var classes = classNames(core_1.Classes.INPUT, Classes.TAG_INPUT, (_b = {}, + _b[core_1.Classes.ACTIVE] = this.state.isInputFocused, + _b), className); + var isLarge = classes.indexOf(core_1.Classes.LARGE) > NONE; + var isSomeValueDefined = values.some(function (val) { return !!val; }); + var resolvedPlaceholder = placeholder == null || isSomeValueDefined ? inputProps.placeholder : placeholder; + return (React.createElement("div", { className: classes, onBlur: this.handleBlur, onClick: this.handleContainerClick }, + React.createElement(core_1.Icon, { className: Classes.TAG_INPUT_ICON, iconName: leftIconName, iconSize: isLarge ? 20 : 16 }), + values.map(this.maybeRenderTag), + React.createElement("input", tslib_1.__assign({ value: this.state.inputValue }, inputProps, { onFocus: this.handleInputFocus, onChange: this.handleInputChange, onKeyDown: this.handleInputKeyDown, placeholder: resolvedPlaceholder, ref: this.refHandlers.input, className: classNames(Classes.INPUT_GHOST, inputProps.className) })), + this.props.rightElement)); + var _b; + }; + TagInput.prototype.getNextActiveIndex = function (direction) { + var activeIndex = this.state.activeIndex; + if (activeIndex === NONE) { + return direction < 0 ? this.findNextIndex(this.props.values.length, -1) : NONE; + } + else { + return this.findNextIndex(activeIndex, direction); + } + }; + TagInput.prototype.findNextIndex = function (startIndex, direction) { + var values = this.props.values; + var index = startIndex + direction; + while (index > 0 && index < values.length && !values[index]) { + index += direction; + } + return core_1.Utils.clamp(index, 0, values.length); + }; + TagInput.prototype.getValues = function (inputValue) { + var separator = this.props.separator; + return (separator === false ? [inputValue] : inputValue.split(separator)) + .map(function (val) { return val.trim(); }) + .filter(function (val) { return val.length > 0; }); + }; + TagInput.prototype.handleBackspaceToRemove = function (event) { + var previousActiveIndex = this.state.activeIndex; + this.setState({ activeIndex: this.getNextActiveIndex(-1) }); + if (this.isValidIndex(previousActiveIndex)) { + event.preventDefault(); + this.removeIndexFromValues(previousActiveIndex); + } + }; + TagInput.prototype.removeIndexFromValues = function (index) { + var _a = this.props, onChange = _a.onChange, onRemove = _a.onRemove, values = _a.values; + core_1.Utils.safeInvoke(onRemove, values[index], index); + if (core_1.Utils.isFunction(onChange)) { + onChange(values.filter(function (_, i) { return i !== index; })); + } + }; + TagInput.prototype.isValidIndex = function (index) { + return index !== NONE && index < this.props.values.length; + }; + return TagInput; + }(core_1.AbstractComponent)); + TagInput.displayName = "Blueprint.TagInput"; + TagInput.defaultProps = { + inputProps: {}, + separator: ",", + tagProps: {}, + }; + TagInput = tslib_1.__decorate([ + PureRender + ], TagInput); + exports.TagInput = TagInput; + + +/***/ }), +/* 569 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(305); + var classNames = __webpack_require__(306); + var PureRender = __webpack_require__(307); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var Classes = __webpack_require__(559); + var queryList_1 = __webpack_require__(562); var Select = Select_1 = (function (_super) { tslib_1.__extends(Select, _super); - function Select() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { isOpen: false, query: "" }; - _this.TypedQueryList = _1.QueryList.ofType(); + function Select(props, context) { + var _this = _super.call(this, props, context) || this; + _this.TypedQueryList = queryList_1.QueryList.ofType(); _this.refHandlers = { - queryList: function (ref) { return _this.list = ref; }, + queryList: function (ref) { return (_this.list = ref); }, }; _this.renderQueryList = function (listProps) { var _a = _this.props, _b = _a.filterable, filterable = _b === void 0 ? true : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.inputProps, inputProps = _d === void 0 ? {} : _d, _e = _a.popoverProps, popoverProps = _e === void 0 ? {} : _e; @@ -71765,11 +74519,20 @@ core_1.Utils.safeInvoke(popoverProps.popoverWillClose); }; _this.handleQueryChange = function (event) { - var _a = _this.props.inputProps, inputProps = _a === void 0 ? {} : _a; - _this.setState({ query: event.currentTarget.value }); + var _a = _this.props, _b = _a.inputProps, inputProps = _b === void 0 ? {} : _b, onQueryChange = _a.onQueryChange; + var query = event.currentTarget.value; + _this.setState({ query: query }); core_1.Utils.safeInvoke(inputProps.onChange, event); + core_1.Utils.safeInvoke(onQueryChange, query); }; - _this.resetQuery = function () { return _this.setState({ activeItem: _this.props.items[0], query: "" }); }; + _this.resetQuery = function () { + var _a = _this.props, items = _a.items, onQueryChange = _a.onQueryChange; + var query = ""; + _this.setState({ activeItem: items[0], query: query }); + core_1.Utils.safeInvoke(onQueryChange, query); + }; + var query = props && props.inputProps && props.inputProps.value !== undefined ? props.inputProps.value : ""; + _this.state = { isOpen: false, query: query }; return _this; } Select.ofType = function () { @@ -71777,7 +74540,13 @@ }; Select.prototype.render = function () { var _a = this.props, filterable = _a.filterable, initialContent = _a.initialContent, itemRenderer = _a.itemRenderer, inputProps = _a.inputProps, noResults = _a.noResults, popoverProps = _a.popoverProps, restProps = tslib_1.__rest(_a, ["filterable", "initialContent", "itemRenderer", "inputProps", "noResults", "popoverProps"]); - return React.createElement(this.TypedQueryList, tslib_1.__assign({}, restProps, { activeItem: this.state.activeItem, onActiveItemChange: this.handleActiveItemChange, onItemSelect: this.handleItemSelect, query: this.state.query, ref: this.refHandlers.queryList, renderer: this.renderQueryList })); + return (React.createElement(this.TypedQueryList, tslib_1.__assign({}, restProps, { activeItem: this.state.activeItem, onActiveItemChange: this.handleActiveItemChange, onItemSelect: this.handleItemSelect, query: this.state.query, ref: this.refHandlers.queryList, renderer: this.renderQueryList }))); + }; + Select.prototype.componentWillReceiveProps = function (nextProps) { + var _a = nextProps.inputProps, nextInputProps = _a === void 0 ? {} : _a; + if (nextInputProps.value !== undefined && this.state.query !== nextInputProps.value) { + this.setState({ query: nextInputProps.value }); + } }; Select.prototype.componentDidUpdate = function (_prevProps, prevState) { if (this.state.isOpen && !prevState.isOpen && this.list != null) { @@ -71793,17 +74562,17 @@ if (filteredItems.length === 0) { return noResults; } - return filteredItems.map(function (item, index) { return itemRenderer({ - index: index, - item: item, - handleClick: function (e) { return handleItemSelect(item, e); }, - isActive: item === activeItem, - }); }); + return filteredItems.map(function (item, index) { + return itemRenderer({ + index: index, + item: item, + handleClick: function (e) { return handleItemSelect(item, e); }, + isActive: item === activeItem, + }); + }); }; Select.prototype.maybeRenderInputClearButton = function () { - return !this.isQueryEmpty() - ? React.createElement(core_1.Button, { className: core_1.Classes.MINIMAL, iconName: "cross", onClick: this.resetQuery }) - : undefined; + return !this.isQueryEmpty() ? (React.createElement(core_1.Button, { className: core_1.Classes.MINIMAL, iconName: "cross", onClick: this.resetQuery })) : (undefined); }; return Select; }(React.Component)); @@ -71816,7 +74585,7 @@ /***/ }), -/* 555 */ +/* 570 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -71826,8 +74595,8 @@ var PureRender = __webpack_require__(307); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); - var _1 = __webpack_require__(546); - var Classes = __webpack_require__(545); + var Classes = __webpack_require__(559); + var queryList_1 = __webpack_require__(562); var Suggest = Suggest_1 = (function (_super) { tslib_1.__extends(Suggest, _super); function Suggest() { @@ -71843,19 +74612,17 @@ openOnKeyDown: false, popoverProps: {}, }; - _this.TypedQueryList = _1.QueryList.ofType(); + _this.TypedQueryList = queryList_1.QueryList.ofType(); _this.refHandlers = { - input: function (ref) { return _this.input = ref; }, - queryList: function (ref) { return _this.queryList = ref; }, + input: function (ref) { return (_this.input = ref); }, + queryList: function (ref) { return (_this.queryList = ref); }, }; _this.renderQueryList = function (listProps) { var _a = _this.props, inputValueRenderer = _a.inputValueRenderer, _b = _a.inputProps, inputProps = _b === void 0 ? _this.DEFAULT_PROPS.inputProps : _b, _c = _a.popoverProps, popoverProps = _c === void 0 ? _this.DEFAULT_PROPS.popoverProps : _c; var _d = _this.state, isTyping = _d.isTyping, selectedItem = _d.selectedItem, query = _d.query; var ref = inputProps.ref, htmlInputProps = tslib_1.__rest(inputProps, ["ref"]); var handleKeyDown = listProps.handleKeyDown, handleKeyUp = listProps.handleKeyUp; - var inputValue = isTyping - ? query - : (selectedItem ? inputValueRenderer(selectedItem) : ""); + var inputValue = isTyping ? query : selectedItem ? inputValueRenderer(selectedItem) : ""; return (React.createElement(core_1.Popover, tslib_1.__assign({ autoFocus: false, enforceFocus: false, isOpen: _this.state.isOpen, position: core_1.Position.BOTTOM_LEFT }, popoverProps, { className: classNames(listProps.className, popoverProps.className), onInteraction: _this.handlePopoverInteraction, popoverClassName: classNames(Classes.SELECT_POPOVER, popoverProps.popoverClassName), popoverDidOpen: _this.handlePopoverDidOpen, popoverWillClose: _this.handlePopoverWillClose }), React.createElement(core_1.InputGroup, tslib_1.__assign({ placeholder: "Search...", value: inputValue }, htmlInputProps, { inputRef: _this.refHandlers.input, onChange: _this.handleQueryChange, onFocus: _this.handleInputFocus, onKeyDown: _this.getTargetKeyDownHandler(handleKeyDown), onKeyUp: _this.getTargetKeyUpHandler(handleKeyUp) })), React.createElement("div", { onKeyDown: handleKeyDown, onKeyUp: handleKeyUp }, @@ -71895,13 +74662,15 @@ }); core_1.Utils.safeInvoke(_this.props.onItemSelect, item, event); }; - _this.handlePopoverInteraction = function (nextOpenState) { return requestAnimationFrame(function () { - var _a = _this.props.popoverProps, popoverProps = _a === void 0 ? {} : _a; - if (_this.input != null && _this.input !== document.activeElement) { - _this.setState({ isOpen: false }); - } - core_1.Utils.safeInvoke(popoverProps.onInteraction, nextOpenState); - }); }; + _this.handlePopoverInteraction = function (nextOpenState) { + return requestAnimationFrame(function () { + var _a = _this.props.popoverProps, popoverProps = _a === void 0 ? {} : _a; + if (_this.input != null && _this.input !== document.activeElement) { + _this.setState({ isOpen: false }); + } + core_1.Utils.safeInvoke(popoverProps.onInteraction, nextOpenState); + }); + }; _this.handlePopoverDidOpen = function () { var _a = _this.props.popoverProps, popoverProps = _a === void 0 ? {} : _a; if (_this.queryList != null) { @@ -71938,10 +74707,10 @@ selectedItem: isTyping ? undefined : selectedItem, }); } - else if (openOnKeyDown - && which !== core_1.Keys.BACKSPACE - && which !== core_1.Keys.ARROW_LEFT - && which !== core_1.Keys.ARROW_RIGHT) { + else if (openOnKeyDown && + which !== core_1.Keys.BACKSPACE && + which !== core_1.Keys.ARROW_LEFT && + which !== core_1.Keys.ARROW_RIGHT) { _this.setState({ isOpen: true }); } if (_this.state.isOpen) { @@ -71966,7 +74735,7 @@ }; Suggest.prototype.render = function () { var _a = this.props, itemRenderer = _a.itemRenderer, inputProps = _a.inputProps, noResults = _a.noResults, popoverProps = _a.popoverProps, restProps = tslib_1.__rest(_a, ["itemRenderer", "inputProps", "noResults", "popoverProps"]); - return React.createElement(this.TypedQueryList, tslib_1.__assign({}, restProps, { activeItem: this.state.activeItem, onActiveItemChange: this.handleActiveItemChange, onItemSelect: this.handleItemSelect, query: this.state.query, ref: this.refHandlers.queryList, renderer: this.renderQueryList })); + return (React.createElement(this.TypedQueryList, tslib_1.__assign({}, restProps, { activeItem: this.state.activeItem, onActiveItemChange: this.handleActiveItemChange, onItemSelect: this.handleItemSelect, query: this.state.query, ref: this.refHandlers.queryList, renderer: this.renderQueryList }))); }; Suggest.prototype.componentDidUpdate = function (_prevProps, prevState) { if (this.state.isOpen && !prevState.isOpen && this.queryList != null) { @@ -71979,12 +74748,14 @@ if (filteredItems.length === 0) { return noResults; } - return filteredItems.map(function (item, index) { return itemRenderer({ - index: index, - item: item, - handleClick: function (e) { return handleItemSelect(item, e); }, - isActive: item === activeItem, - }); }); + return filteredItems.map(function (item, index) { + return itemRenderer({ + index: index, + item: item, + handleClick: function (e) { return handleItemSelect(item, e); }, + isActive: item === activeItem, + }); + }); }; return Suggest; }(React.Component)); @@ -71997,7 +74768,7 @@ /***/ }), -/* 556 */ +/* 571 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -72007,158 +74778,285 @@ var PureRender = __webpack_require__(307); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); - var Classes = __webpack_require__(545); - var NONE = -1; - var TagInput = (function (_super) { - tslib_1.__extends(TagInput, _super); - function TagInput() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.state = { - activeIndex: NONE, - inputValue: "", - isInputFocused: false, - }; - _this.refHandlers = { - input: function (ref) { - _this.inputElement = ref; - var refHandler = _this.props.inputProps.ref; - if (core_1.Utils.isFunction(refHandler)) { - refHandler(ref); - } - }, - }; - _this.maybeRenderTag = function (tag, index) { - if (!tag) { - return null; - } - var tagProps = _this.props.tagProps; - var props = core_1.Utils.isFunction(tagProps) ? tagProps(tag, index) : tagProps; - return (React.createElement(core_1.Tag, tslib_1.__assign({ active: index === _this.state.activeIndex, "data-tag-index": index, key: tag + "__" + index, onRemove: _this.handleRemoveTag }, props), tag)); - }; - _this.handleContainerClick = function () { - if (_this.inputElement != null) { - _this.inputElement.focus(); - } - }; - _this.handleBlur = function () { return requestAnimationFrame(function () { - if (_this.inputElement != null && !_this.inputElement.parentElement.contains(document.activeElement)) { - _this.setState({ activeIndex: NONE, isInputFocused: false }); - } - }); }; - _this.handleInputFocus = function (event) { - _this.setState({ isInputFocused: true }); - core_1.Utils.safeInvoke(_this.props.inputProps.onFocus, event); - }; - _this.handleInputChange = function (event) { - _this.setState({ activeIndex: NONE, inputValue: event.currentTarget.value }); - core_1.Utils.safeInvoke(_this.props.inputProps.onChange, event); + var Classes = __webpack_require__(559); + var select_1 = __webpack_require__(569); + var timezoneDisplayFormat_1 = __webpack_require__(572); + exports.TimezoneDisplayFormat = timezoneDisplayFormat_1.TimezoneDisplayFormat; + var timezoneItems_1 = __webpack_require__(574); + var timezoneUtils_1 = __webpack_require__(575); + var TypedSelect = select_1.Select.ofType(); + var TimezonePicker = (function (_super) { + tslib_1.__extends(TimezonePicker, _super); + function TimezonePicker(props, context) { + var _this = _super.call(this, props, context) || this; + _this.filterItems = function (query, items) { + if (query === "") { + return items; + } + var date = _this.state.date; + return timezoneUtils_1.filterWithQueryCandidates(items, query, function (item) { return timezoneUtils_1.getTimezoneQueryCandidates(item.timezone, date); }); + }; + _this.renderItem = function (itemProps) { + var item = itemProps.item, isActive = itemProps.isActive, handleClick = itemProps.handleClick; + var classes = classNames(core_1.Classes.MENU_ITEM, core_1.Classes.intentClass(), (_a = {}, + _a[core_1.Classes.ACTIVE] = isActive, + _a[core_1.Classes.INTENT_PRIMARY] = isActive, + _a)); + return (React.createElement(core_1.MenuItem, { key: item.key, className: classes, iconName: item.iconName, text: item.text, label: item.label, onClick: handleClick, shouldDismissPopover: false })); + var _a; }; - _this.handleInputKeyDown = function (event) { - var _a = event.currentTarget, selectionEnd = _a.selectionEnd, value = _a.value; - if (event.which === core_1.Keys.ENTER && value.length > 0) { - var _b = _this.props, onAdd = _b.onAdd, onChange = _b.onChange, values = _b.values; - var newValues = _this.getValues(value); - var shouldClearInput = core_1.Utils.safeInvoke(onAdd, newValues); - if (core_1.Utils.isFunction(onChange)) { - shouldClearInput = shouldClearInput || onChange(values.concat(newValues)); - } - if (shouldClearInput !== false) { - _this.setState({ inputValue: "" }); - } - } - else if (selectionEnd === 0 && _this.props.values.length > 0) { - if (event.which === core_1.Keys.ARROW_LEFT || event.which === core_1.Keys.ARROW_RIGHT) { - var nextIndex = _this.getNextActiveIndex(event.which === core_1.Keys.ARROW_RIGHT ? 1 : -1); - if (nextIndex !== _this.state.activeIndex) { - event.preventDefault(); - _this.setState({ activeIndex: nextIndex }); - } - } - else if (event.which === core_1.Keys.BACKSPACE) { - _this.handleBackspaceToRemove(event); - } + _this.handleItemSelect = function (timezone) { + if (_this.props.value === undefined) { + _this.setState({ value: timezone.timezone }); } - core_1.Utils.safeInvoke(_this.props.inputProps.onKeyDown, event); + core_1.Utils.safeInvoke(_this.props.onChange, timezone.timezone); }; - _this.handleRemoveTag = function (event) { - var index = +event.currentTarget.parentElement.getAttribute("data-tag-index"); - _this.removeIndexFromValues(index); + _this.handleQueryChange = function (query) { + _this.setState({ query: query }); }; + var value = props.value, _a = props.date, date = _a === void 0 ? new Date() : _a, showLocalTimezone = props.showLocalTimezone, _b = props.inputProps, inputProps = _b === void 0 ? {} : _b; + var query = inputProps.value !== undefined ? inputProps.value : ""; + _this.state = { date: date, value: value, query: query }; + _this.timezoneItems = timezoneItems_1.getTimezoneItems(date); + _this.initialTimezoneItems = timezoneItems_1.getInitialTimezoneItems(date, showLocalTimezone); return _this; } - TagInput.prototype.render = function () { - var _a = this.props, className = _a.className, inputProps = _a.inputProps, leftIconName = _a.leftIconName, placeholder = _a.placeholder, values = _a.values; - var classes = classNames(core_1.Classes.INPUT, Classes.TAG_INPUT, (_b = {}, - _b[core_1.Classes.ACTIVE] = this.state.isInputFocused, - _b), className); - var isLarge = classes.indexOf(core_1.Classes.LARGE) > NONE; - var isSomeValueDefined = values.some(function (val) { return !!val; }); - var resolvedPlaceholder = (placeholder == null || isSomeValueDefined) - ? inputProps.placeholder : placeholder; - return (React.createElement("div", { className: classes, onBlur: this.handleBlur, onClick: this.handleContainerClick }, - React.createElement(core_1.Icon, { className: Classes.TAG_INPUT_ICON, iconName: leftIconName, iconSize: isLarge ? 20 : 16 }), - values.map(this.maybeRenderTag), - React.createElement("input", tslib_1.__assign({ value: this.state.inputValue }, inputProps, { onFocus: this.handleInputFocus, onChange: this.handleInputChange, onKeyDown: this.handleInputKeyDown, placeholder: resolvedPlaceholder, ref: this.refHandlers.input, className: classNames(Classes.INPUT_GHOST, inputProps.className) })), - this.props.rightElement)); - var _b; + TimezonePicker.prototype.render = function () { + var _a = this.props, className = _a.className, disabled = _a.disabled, inputProps = _a.inputProps, popoverProps = _a.popoverProps; + var query = this.state.query; + var finalInputProps = tslib_1.__assign({ placeholder: "Search for timezones..." }, inputProps); + var finalPopoverProps = tslib_1.__assign({}, popoverProps, { popoverClassName: classNames(Classes.TIMEZONE_PICKER_POPOVER, popoverProps.popoverClassName) }); + return (React.createElement(TypedSelect, { className: classNames(Classes.TIMEZONE_PICKER, className), items: query ? this.timezoneItems : this.initialTimezoneItems, itemListPredicate: this.filterItems, itemRenderer: this.renderItem, noResults: React.createElement(core_1.MenuItem, { disabled: true, text: "No matching timezones." }), onItemSelect: this.handleItemSelect, resetOnSelect: true, resetOnClose: true, popoverProps: finalPopoverProps, inputProps: finalInputProps, disabled: disabled, onQueryChange: this.handleQueryChange }, this.renderButton())); }; - TagInput.prototype.getNextActiveIndex = function (direction) { - var activeIndex = this.state.activeIndex; - if (activeIndex === NONE) { - return direction < 0 ? this.findNextIndex(this.props.values.length, -1) : NONE; + TimezonePicker.prototype.componentWillReceiveProps = function (nextProps) { + var _a = nextProps.date, nextDate = _a === void 0 ? new Date() : _a, _b = nextProps.inputProps, nextInputProps = _b === void 0 ? {} : _b; + var dateChanged = this.state.date.getTime() !== nextDate.getTime(); + if (dateChanged) { + this.timezoneItems = timezoneItems_1.getTimezoneItems(nextDate); } - else { - return this.findNextIndex(activeIndex, direction); + if (dateChanged || this.props.showLocalTimezone !== nextProps.showLocalTimezone) { + this.initialTimezoneItems = timezoneItems_1.getInitialTimezoneItems(nextDate, nextProps.showLocalTimezone); } - }; - TagInput.prototype.findNextIndex = function (startIndex, direction) { - var values = this.props.values; - var index = startIndex + direction; - while (index > 0 && index < values.length && !values[index]) { - index += direction; + var nextState = {}; + if (dateChanged) { + nextState.date = nextDate; } - return core_1.Utils.clamp(index, 0, values.length); - }; - TagInput.prototype.getValues = function (inputValue) { - var separator = this.props.separator; - return (separator === false ? [inputValue] : inputValue.split(separator)) - .map(function (val) { return val.trim(); }) - .filter(function (val) { return val.length > 0; }); - }; - TagInput.prototype.handleBackspaceToRemove = function (event) { - var previousActiveIndex = this.state.activeIndex; - this.setState({ activeIndex: this.getNextActiveIndex(-1) }); - if (this.isValidIndex(previousActiveIndex)) { - event.preventDefault(); - this.removeIndexFromValues(previousActiveIndex); + if (this.state.value !== nextProps.value) { + nextState.value = nextProps.value; } - }; - TagInput.prototype.removeIndexFromValues = function (index) { - var _a = this.props, onChange = _a.onChange, onRemove = _a.onRemove, values = _a.values; - core_1.Utils.safeInvoke(onRemove, values[index], index); - if (core_1.Utils.isFunction(onChange)) { - onChange(values.filter(function (_, i) { return i !== index; })); + if (nextInputProps.value !== undefined && this.state.query !== nextInputProps.value) { + nextState.query = nextInputProps.value; } + this.setState(nextState); }; - TagInput.prototype.isValidIndex = function (index) { - return index !== NONE && index < this.props.values.length; + TimezonePicker.prototype.renderButton = function () { + var _a = this.props, disabled = _a.disabled, _b = _a.valueDisplayFormat, valueDisplayFormat = _b === void 0 ? timezoneDisplayFormat_1.TimezoneDisplayFormat.OFFSET : _b, defaultValue = _a.defaultValue, placeholder = _a.placeholder, _c = _a.buttonProps, buttonProps = _c === void 0 ? {} : _c; + var _d = this.state, date = _d.date, value = _d.value; + var finalValue = value ? value : defaultValue; + var displayValue = finalValue ? timezoneDisplayFormat_1.formatTimezone(finalValue, date, valueDisplayFormat) : undefined; + return (React.createElement(core_1.Button, tslib_1.__assign({ rightIconName: "caret-down", disabled: disabled, text: displayValue || placeholder }, buttonProps))); }; - return TagInput; + return TimezonePicker; }(core_1.AbstractComponent)); - TagInput.displayName = "Blueprint.TagInput"; - TagInput.defaultProps = { + TimezonePicker.displayName = "Blueprint.TimezonePicker"; + TimezonePicker.defaultProps = { + disabled: false, inputProps: {}, - separator: ",", - tagProps: {}, + placeholder: "Select timezone...", + popoverProps: {}, + showLocalTimezone: true, }; - TagInput = tslib_1.__decorate([ + TimezonePicker = tslib_1.__decorate([ PureRender - ], TagInput); - exports.TagInput = TagInput; + ], TimezonePicker); + exports.TimezonePicker = TimezonePicker; /***/ }), -/* 557 */ +/* 572 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var moment = __webpack_require__(334); + var timezoneMetadata_1 = __webpack_require__(573); + exports.TimezoneDisplayFormat = { + ABBREVIATION: "abbreviation", + COMPOSITE: "composite", + NAME: "name", + OFFSET: "offset", + }; + function formatTimezone(timezone, date, displayFormat) { + if (!timezone || !moment.tz.zone(timezone)) { + return undefined; + } + var _a = timezoneMetadata_1.getTimezoneMetadata(timezone, date), abbreviation = _a.abbreviation, offsetAsString = _a.offsetAsString; + switch (displayFormat) { + case exports.TimezoneDisplayFormat.ABBREVIATION: + return abbreviation !== undefined ? abbreviation : offsetAsString; + case exports.TimezoneDisplayFormat.NAME: + return timezone; + case exports.TimezoneDisplayFormat.OFFSET: + return offsetAsString; + case exports.TimezoneDisplayFormat.COMPOSITE: + return "" + timezone + (abbreviation ? " (" + abbreviation + ")" : "") + " " + offsetAsString; + default: + assertNever(displayFormat); + return undefined; + } + } + exports.formatTimezone = formatTimezone; + function assertNever(x) { + throw new Error("Unexpected value: " + x); + } + + +/***/ }), +/* 573 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var moment = __webpack_require__(334); + function getTimezoneMetadata(timezone, date) { + var timestamp = date.getTime(); + var zone = moment.tz.zone(timezone); + var zonedDate = moment.tz(timestamp, timezone); + var offset = zonedDate.utcOffset(); + var offsetAsString = zonedDate.format("Z"); + var abbreviation = getAbbreviation(timezone, timestamp); + return { + timezone: timezone, + abbreviation: abbreviation, + offset: offset, + offsetAsString: offsetAsString, + population: zone.population, + }; + } + exports.getTimezoneMetadata = getTimezoneMetadata; + function getAbbreviation(timezone, timestamp) { + var zone = moment.tz.zone(timezone); + if (zone) { + var abbreviation = zone.abbr(timestamp); + if (abbreviation.length > 0 && abbreviation[0] !== "-" && abbreviation[0] !== "+") { + return abbreviation; + } + } + return undefined; + } + + +/***/ }), +/* 574 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var moment = __webpack_require__(334); + var timezoneMetadata_1 = __webpack_require__(573); + var timezoneUtils_1 = __webpack_require__(575); + function getTimezoneItems(date) { + return moment.tz.names().map(function (timezone) { return toTimezoneItem(timezone, date); }); + } + exports.getTimezoneItems = getTimezoneItems; + function getInitialTimezoneItems(date, includeLocalTimezone) { + var populous = getPopulousTimezoneItems(date); + var local = getLocalTimezoneItem(date); + return includeLocalTimezone && local !== undefined ? [local].concat(populous) : populous; + } + exports.getInitialTimezoneItems = getInitialTimezoneItems; + function getLocalTimezoneItem(date) { + var timezone = timezoneUtils_1.getLocalTimezone(); + if (timezone !== undefined) { + var timestamp = date.getTime(); + var zonedDate = moment.tz(timestamp, timezone); + var offsetAsString = zonedDate.format("Z"); + return { + iconName: "locate", + key: timezone + "-local", + label: offsetAsString, + text: "Current timezone", + timezone: timezone, + }; + } + else { + return undefined; + } + } + exports.getLocalTimezoneItem = getLocalTimezoneItem; + function getPopulousTimezoneItems(date) { + var timezones = moment.tz.names().filter(function (timezone) { return /\//.test(timezone) && !/Etc\//.test(timezone); }); + var timezoneToMetadata = {}; + for (var _i = 0, timezones_1 = timezones; _i < timezones_1.length; _i++) { + var timezone = timezones_1[_i]; + timezoneToMetadata[timezone] = timezoneMetadata_1.getTimezoneMetadata(timezone, date); + } + timezones.sort(function (timezone1, timezone2) { + var _a = timezoneToMetadata[timezone1], offset1 = _a.offset, population1 = _a.population; + var _b = timezoneToMetadata[timezone2], offset2 = _b.offset, population2 = _b.population; + if (offset1 === offset2) { + if (population1 === population2) { + return timezone1 < timezone2 ? -1 : 1; + } + return population2 - population1; + } + return offset1 - offset2; + }); + var initialTimezones = []; + var prevOffset; + for (var _a = 0, timezones_2 = timezones; _a < timezones_2.length; _a++) { + var timezone = timezones_2[_a]; + var curOffset = timezoneToMetadata[timezone].offset; + if (prevOffset === undefined || prevOffset !== curOffset) { + initialTimezones.push(toTimezoneItem(timezone, date)); + prevOffset = curOffset; + } + } + return initialTimezones; + } + function toTimezoneItem(timezone, date) { + var _a = timezoneMetadata_1.getTimezoneMetadata(timezone, date), abbreviation = _a.abbreviation, offsetAsString = _a.offsetAsString; + return { + key: timezone, + label: offsetAsString, + text: timezone + (abbreviation ? " (" + abbreviation + ")" : ""), + timezone: timezone, + }; + } + + +/***/ }), +/* 575 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var fuzzaldrin_plus_1 = __webpack_require__(458); + var moment = __webpack_require__(334); + var timezoneMetadata_1 = __webpack_require__(573); + function getLocalTimezone() { + return moment.tz.guess(); + } + exports.getLocalTimezone = getLocalTimezone; + function getTimezoneQueryCandidates(timezone, date) { + var _a = timezoneMetadata_1.getTimezoneMetadata(timezone, date), abbreviation = _a.abbreviation, offsetAsString = _a.offsetAsString; + return [timezone, abbreviation, offsetAsString].filter(function (candidate) { return candidate !== undefined; }); + } + exports.getTimezoneQueryCandidates = getTimezoneQueryCandidates; + function filterWithQueryCandidates(items, query, getItemQueryCandidates) { + return fuzzaldrin_plus_1.filter(items.map(function (item, itemIndex) { return ({ + key: itemIndex, + value: getItemQueryCandidates(item).join("/"), + }); }), query, { key: "value" }).map(function (_a) { + var key = _a.key; + return items[key]; + }); + } + exports.filterWithQueryCandidates = filterWithQueryCandidates; + + +/***/ }), +/* 576 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -72269,7 +75167,7 @@ /***/ }), -/* 558 */ +/* 577 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -72279,8 +75177,8 @@ var React = __webpack_require__(3); var core_1 = __webpack_require__(179); var docs_1 = __webpack_require__(172); - var src_1 = __webpack_require__(543); - var data_1 = __webpack_require__(557); + var src_1 = __webpack_require__(557); + var data_1 = __webpack_require__(576); var FilmOmnibox = src_1.Omnibox.ofType(); var OmniboxExample = (function (_super) { tslib_1.__extends(OmniboxExample, _super); @@ -72292,7 +75190,7 @@ }; _this.handleResetChange = _this.handleSwitchChange("resetOnSelect"); _this.refHandlers = { - toaster: function (ref) { return _this.toaster = ref; }, + toaster: function (ref) { return (_this.toaster = ref); }, }; _this.handleClick = function (_event) { _this.setState({ isOpen: true }); @@ -72300,10 +75198,10 @@ _this.handleItemSelect = function (film) { _this.setState({ isOpen: false }); _this.toaster.show({ - message: React.createElement("span", null, + message: (React.createElement("span", null, "You selected ", React.createElement("strong", null, film.title), - "."), + ".")), }); }; _this.handleClose = function () { return _this.setState({ isOpen: false }); }; @@ -72363,26 +75261,25 @@ /***/ }), -/* 559 */ +/* 578 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(305); var classNames = __webpack_require__(306); - var PopperJS = __webpack_require__(320); + var PopperJS = __webpack_require__(321); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); var docs_1 = __webpack_require__(172); - var src_1 = __webpack_require__(543); + var src_1 = __webpack_require__(557); var INTERACTION_KINDS = [ { label: "Click", value: core_1.PopoverInteractionKind.CLICK.toString() }, { label: "Click (target only)", value: core_1.PopoverInteractionKind.CLICK_TARGET_ONLY.toString() }, { label: "Hover", value: core_1.PopoverInteractionKind.HOVER.toString() }, { label: "Hover (target only)", value: core_1.PopoverInteractionKind.HOVER_TARGET_ONLY.toString() }, ]; - var PLACEMENTS = PopperJS.placements - .map(function (p) { return React.createElement("option", { key: p, value: p }, p); }); + var PLACEMENTS = PopperJS.placements.map(function (p) { return (React.createElement("option", { key: p, value: p }, p)); }); var POPPER_DOCS = "https://popper.js.org/popper-documentation.html#modifiers"; var Popover2Example = (function (_super) { tslib_1.__extends(Popover2Example, _super); @@ -72412,12 +75309,14 @@ _this.setState({ interactionKind: interactionKind, hasBackdrop: hasBackdrop }); }); _this.handlePlacementChange = docs_1.handleStringChange(function (placement) { return _this.setState({ placement: placement }); }); - _this.handleBoundaryChange = docs_1.handleStringChange(function (boundary) { return _this.setState({ - modifiers: tslib_1.__assign({}, _this.state.modifiers, { preventOverflow: { - boundariesElement: boundary, - enabled: boundary.length > 0, - } }), - }); }); + _this.handleBoundaryChange = docs_1.handleStringChange(function (boundary) { + return _this.setState({ + modifiers: tslib_1.__assign({}, _this.state.modifiers, { preventOverflow: { + boundariesElement: boundary, + enabled: boundary.length > 0, + } }), + }); + }); _this.toggleEscapeKey = docs_1.handleBooleanChange(function (canEscapeKeyClose) { return _this.setState({ canEscapeKeyClose: canEscapeKeyClose }); }); _this.toggleInline = docs_1.handleBooleanChange(function (inline) { if (inline) { @@ -72481,12 +75380,14 @@ React.createElement("option", { value: "5" }, "Empty")))), React.createElement(core_1.Switch, { checked: this.state.inline, label: "Inline", key: "inline", onChange: this.toggleInline }), React.createElement(core_1.Switch, { checked: this.state.minimal, label: "Minimal (no arrow, simple transition)", key: "minimal", onChange: this.toggleMinimal }), - ], [ + ], + [ React.createElement("h5", { key: "int" }, "Interactions"), React.createElement(core_1.RadioGroup, { key: "interaction", label: "Interaction kind", selectedValue: this.state.interactionKind.toString(), options: INTERACTION_KINDS, onChange: this.handleInteractionChange }), React.createElement(core_1.Switch, { checked: this.state.canEscapeKeyClose, label: "Can escape key close", key: "escape", onChange: this.toggleEscapeKey }), React.createElement("br", { key: "break" }), - ], [ + ], + [ React.createElement("h5", { key: "mod" }, "Modifiers"), React.createElement(core_1.Switch, { checked: arrow.enabled, label: "Arrow", key: "arrow", onChange: this.getModifierChangeHandler("arrow") }), React.createElement(core_1.Switch, { checked: flip.enabled, label: "Flip", key: "flip", onChange: this.getModifierChangeHandler("flip") }), @@ -72547,7 +75448,7 @@ /***/ }), -/* 560 */ +/* 579 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -72557,8 +75458,8 @@ var React = __webpack_require__(3); var core_1 = __webpack_require__(179); var docs_1 = __webpack_require__(172); - var src_1 = __webpack_require__(543); - var data_1 = __webpack_require__(557); + var src_1 = __webpack_require__(557); + var data_1 = __webpack_require__(576); var FilmSelect = src_1.Select.ofType(); var SelectExample = (function (_super) { tslib_1.__extends(SelectExample, _super); @@ -72584,9 +75485,7 @@ } SelectExample.prototype.renderExample = function () { var _a = this.state, disabled = _a.disabled, film = _a.film, minimal = _a.minimal, flags = tslib_1.__rest(_a, ["disabled", "film", "minimal"]); - var initialContent = this.state.hasInitialContent - ? React.createElement(core_1.MenuItem, { disabled: true, text: data_1.TOP_100_FILMS.length + " items loaded." }) - : undefined; + var initialContent = this.state.hasInitialContent ? (React.createElement(core_1.MenuItem, { disabled: true, text: data_1.TOP_100_FILMS.length + " items loaded." })) : (undefined); return (React.createElement(FilmSelect, tslib_1.__assign({}, flags, { disabled: disabled, initialContent: initialContent, items: data_1.TOP_100_FILMS, itemPredicate: this.filterFilm, itemRenderer: this.renderFilm, noResults: React.createElement(core_1.MenuItem, { disabled: true, text: "No results." }), onItemSelect: this.handleValueChange, popoverProps: { popoverClassName: minimal ? core_1.Classes.MINIMAL : "" } }), React.createElement(core_1.Button, { rightIconName: "caret-down", text: film ? film.title : "(No selection)", disabled: disabled }))); }; @@ -72627,7 +75526,7 @@ /***/ }), -/* 561 */ +/* 580 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -72637,8 +75536,8 @@ var React = __webpack_require__(3); var core_1 = __webpack_require__(179); var docs_1 = __webpack_require__(172); - var src_1 = __webpack_require__(543); - var data_1 = __webpack_require__(557); + var src_1 = __webpack_require__(557); + var data_1 = __webpack_require__(576); var FilmSuggest = src_1.Suggest.ofType(); var SuggestExample = (function (_super) { tslib_1.__extends(SuggestExample, _super); @@ -72697,7 +75596,7 @@ /***/ }), -/* 562 */ +/* 581 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -72707,7 +75606,7 @@ var React = __webpack_require__(3); var core_1 = __webpack_require__(179); var docs_1 = __webpack_require__(172); - var src_1 = __webpack_require__(543); + var src_1 = __webpack_require__(557); var INTENTS = [core_1.Intent.NONE, core_1.Intent.PRIMARY, core_1.Intent.SUCCESS, core_1.Intent.DANGER, core_1.Intent.WARNING]; var VALUES = [ React.createElement("strong", null, "Albert"), @@ -72754,7 +75653,8 @@ [ React.createElement(core_1.Switch, { checked: this.state.fill, label: "Fill container width", key: "fill", onChange: this.handleFillChange }), React.createElement(core_1.Switch, { checked: this.state.large, label: "Large", key: "large", onChange: this.handleLargeChange }), - ], [ + ], + [ React.createElement("label", { key: "heading", className: core_1.Classes.LABEL }, "Tag props"), React.createElement(core_1.Switch, { checked: this.state.minimal, label: "Use minimal tags", key: "minimal", onChange: this.handleMinimalChange }), React.createElement(core_1.Switch, { checked: this.state.intent, label: "Cycle through intents", key: "intent", onChange: this.handleIntentChange }), @@ -72767,7 +75667,7 @@ /***/ }), -/* 563 */ +/* 582 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -72776,7 +75676,7 @@ var React = __webpack_require__(3); var core_1 = __webpack_require__(179); var docs_1 = __webpack_require__(172); - var src_1 = __webpack_require__(543); + var src_1 = __webpack_require__(557); var Tooltip2Example = (function (_super) { tslib_1.__extends(Tooltip2Example, _super); function Tooltip2Example() { @@ -72826,7 +75726,66 @@ /***/ }), -/* 564 */ +/* 583 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = __webpack_require__(305); + var React = __webpack_require__(3); + var core_1 = __webpack_require__(179); + var docs_1 = __webpack_require__(172); + var src_1 = __webpack_require__(557); + var TimezonePickerExample = (function (_super) { + tslib_1.__extends(TimezonePickerExample, _super); + function TimezonePickerExample() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.state = { + date: new Date(), + disabled: false, + showLocalTimezone: true, + targetDisplayFormat: src_1.TimezoneDisplayFormat.OFFSET, + timezone: "", + }; + _this.handleDisabledChange = docs_1.handleBooleanChange(function (disabled) { return _this.setState({ disabled: disabled }); }); + _this.handleShowLocalTimezoneChange = docs_1.handleBooleanChange(function (showLocalTimezone) { + return _this.setState({ showLocalTimezone: showLocalTimezone }); + }); + _this.handleFormatChange = docs_1.handleStringChange(function (targetDisplayFormat) { + return _this.setState({ targetDisplayFormat: targetDisplayFormat }); + }); + _this.handleTimezoneChange = function (timezone) { + _this.setState({ timezone: timezone }); + }; + return _this; + } + TimezonePickerExample.prototype.renderExample = function () { + var _a = this.state, date = _a.date, timezone = _a.timezone, targetDisplayFormat = _a.targetDisplayFormat, disabled = _a.disabled, showLocalTimezone = _a.showLocalTimezone; + return (React.createElement(src_1.TimezonePicker, { date: date, value: timezone, onChange: this.handleTimezoneChange, valueDisplayFormat: targetDisplayFormat, showLocalTimezone: showLocalTimezone, disabled: disabled })); + }; + TimezonePickerExample.prototype.renderOptions = function () { + return [ + [ + React.createElement(core_1.Switch, { checked: this.state.showLocalTimezone, label: "Show local timezone in initial list", key: "show-local-timezone", onChange: this.handleShowLocalTimezoneChange }), + React.createElement(core_1.Switch, { checked: this.state.disabled, label: "Disabled", key: "disabled", onChange: this.handleDisabledChange }), + ], + [this.renderDisplayFormatOption()], + ]; + }; + TimezonePickerExample.prototype.renderDisplayFormatOption = function () { + return (React.createElement(core_1.RadioGroup, { key: "display-format", label: "Display format", onChange: this.handleFormatChange, selectedValue: this.state.targetDisplayFormat }, + React.createElement(core_1.Radio, { label: "Abbreviation", value: src_1.TimezoneDisplayFormat.ABBREVIATION }), + React.createElement(core_1.Radio, { label: "Name", value: src_1.TimezoneDisplayFormat.NAME }), + React.createElement(core_1.Radio, { label: "Offset", value: src_1.TimezoneDisplayFormat.OFFSET }), + React.createElement(core_1.Radio, { label: "Composite", value: src_1.TimezoneDisplayFormat.COMPOSITE }))); + }; + return TimezonePickerExample; + }(docs_1.BaseExample)); + exports.TimezonePickerExample = TimezonePickerExample; + + +/***/ }), +/* 584 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -72834,29 +75793,29 @@ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); - __export(__webpack_require__(565)); - __export(__webpack_require__(620)); - __export(__webpack_require__(621)); - __export(__webpack_require__(622)); - __export(__webpack_require__(623)); - __export(__webpack_require__(624)); - __export(__webpack_require__(625)); - __export(__webpack_require__(626)); - __export(__webpack_require__(627)); + __export(__webpack_require__(585)); + __export(__webpack_require__(641)); + __export(__webpack_require__(642)); + __export(__webpack_require__(643)); + __export(__webpack_require__(644)); + __export(__webpack_require__(645)); + __export(__webpack_require__(646)); + __export(__webpack_require__(647)); + __export(__webpack_require__(648)); /***/ }), -/* 565 */ +/* 585 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); var docs_1 = __webpack_require__(172); - var src_1 = __webpack_require__(567); - var bigSpaceRocks = __webpack_require__(619); + var src_1 = __webpack_require__(587); + var bigSpaceRocks = __webpack_require__(640); exports.CellsLoadingConfiguration = { ALL: "all", FIRST_COLUMN: "first-column", @@ -72946,7 +75905,7 @@ /***/ }), -/* 566 */ +/* 586 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(global) {/*! ***************************************************************************** @@ -73162,58 +76121,58 @@ /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }), -/* 567 */ +/* 587 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - __webpack_require__(568); - var cell_1 = __webpack_require__(569); + __webpack_require__(588); + var cell_1 = __webpack_require__(589); exports.Cell = cell_1.Cell; - var editableCell_1 = __webpack_require__(578); + var editableCell_1 = __webpack_require__(598); exports.EditableCell = editableCell_1.EditableCell; - var jsonFormat_1 = __webpack_require__(581); + var jsonFormat_1 = __webpack_require__(601); exports.JSONFormat = jsonFormat_1.JSONFormat; - var truncatedFormat_1 = __webpack_require__(582); + var truncatedFormat_1 = __webpack_require__(602); exports.TruncatedPopoverMode = truncatedFormat_1.TruncatedPopoverMode; exports.TruncatedFormat = truncatedFormat_1.TruncatedFormat; - var column_1 = __webpack_require__(583); + var column_1 = __webpack_require__(603); exports.Column = column_1.Column; - var index_1 = __webpack_require__(584); + var index_1 = __webpack_require__(604); exports.Clipboard = index_1.Clipboard; exports.Grid = index_1.Grid; exports.Rect = index_1.Rect; exports.RenderMode = index_1.RenderMode; exports.Utils = index_1.Utils; - var draggable_1 = __webpack_require__(579); + var draggable_1 = __webpack_require__(599); exports.Draggable = draggable_1.Draggable; - var menus_1 = __webpack_require__(591); + var menus_1 = __webpack_require__(611); exports.CopyCellsMenuItem = menus_1.CopyCellsMenuItem; - var resizeHandle_1 = __webpack_require__(594); + var resizeHandle_1 = __webpack_require__(614); exports.Orientation = resizeHandle_1.Orientation; exports.ResizeHandle = resizeHandle_1.ResizeHandle; - var selectable_1 = __webpack_require__(595); + var selectable_1 = __webpack_require__(615); exports.DragSelectable = selectable_1.DragSelectable; - var columnHeaderCell_1 = __webpack_require__(598); + var columnHeaderCell_1 = __webpack_require__(618); exports.ColumnHeaderCell = columnHeaderCell_1.ColumnHeaderCell; exports.HorizontalCellDivider = columnHeaderCell_1.HorizontalCellDivider; - var rowHeaderCell_1 = __webpack_require__(600); + var rowHeaderCell_1 = __webpack_require__(620); exports.RowHeaderCell = rowHeaderCell_1.RowHeaderCell; - var editableName_1 = __webpack_require__(601); + var editableName_1 = __webpack_require__(621); exports.EditableName = editableName_1.EditableName; - var regions_1 = __webpack_require__(587); + var regions_1 = __webpack_require__(607); exports.ColumnLoadingOption = regions_1.ColumnLoadingOption; exports.RegionCardinality = regions_1.RegionCardinality; exports.Regions = regions_1.Regions; exports.RowLoadingOption = regions_1.RowLoadingOption; exports.SelectionModes = regions_1.SelectionModes; exports.TableLoadingOption = regions_1.TableLoadingOption; - var table_1 = __webpack_require__(602); + var table_1 = __webpack_require__(622); exports.Table = table_1.Table; /***/ }), -/* 568 */ +/* 588 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(global, process) { /*! @@ -77062,18 +80021,18 @@ /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(115))) /***/ }), -/* 569 */ +/* 589 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); - var classNames = __webpack_require__(570); + var tslib_1 = __webpack_require__(586); + var classNames = __webpack_require__(590); var React = __webpack_require__(3); - var Classes = __webpack_require__(571); - var utils_1 = __webpack_require__(572); + var Classes = __webpack_require__(591); + var utils_1 = __webpack_require__(592); var core_1 = __webpack_require__(179); - var loadableContent_1 = __webpack_require__(573); + var loadableContent_1 = __webpack_require__(593); exports.emptyCellRenderer = function () { return React.createElement(Cell, null); }; var Cell = (function (_super) { tslib_1.__extends(Cell, _super); @@ -77081,8 +80040,8 @@ return _super !== null && _super.apply(this, arguments) || this; } Cell.prototype.shouldComponentUpdate = function (nextProps) { - return !utils_1.Utils.shallowCompareKeys(this.props, nextProps, { exclude: ["style"] }) - || !utils_1.Utils.deepCompareKeys(this.props.style, nextProps.style); + return (!utils_1.Utils.shallowCompareKeys(this.props, nextProps, { exclude: ["style"] }) || + !utils_1.Utils.deepCompareKeys(this.props.style, nextProps.style)); }; Cell.prototype.render = function () { var _a = this.props, style = _a.style, intent = _a.intent, interactive = _a.interactive, loading = _a.loading, tooltip = _a.tooltip, truncated = _a.truncated, className = _a.className, wrapText = _a.wrapText; @@ -77097,7 +80056,10 @@ _c)); var modifiedChildren = React.Children.map(this.props.children, function (child) { if (style != null && React.isValidElement(child)) { - return React.cloneElement(child, { parentCellHeight: style.height, parentCellWidth: style.width }); + return React.cloneElement(child, { + parentCellHeight: style.height, + parentCellWidth: style.width, + }); } return child; }); @@ -77116,7 +80078,7 @@ /***/ }), -/* 570 */ +/* 590 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! @@ -77170,7 +80132,7 @@ /***/ }), -/* 571 */ +/* 591 */ /***/ (function(module, exports) { "use strict"; @@ -77285,21 +80247,14 @@ /***/ }), -/* 572 */ +/* 592 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var classNames = __webpack_require__(570); + var classNames = __webpack_require__(590); var React = __webpack_require__(3); - ; - var CSS_FONT_PROPERTIES = [ - "font-style", - "font-variant", - "font-weight", - "font-size", - "font-family", - ]; + var CSS_FONT_PROPERTIES = ["font-style", "font-variant", "font-weight", "font-size", "font-family"]; exports.Utils = { assignClasses: function (elem) { var extendedClasses = []; @@ -77335,7 +80290,7 @@ if (num <= 0) { return str; } - num = (num / 26) - 1; + num = num / 26 - 1; } }, toBase26CellName: function (rowIndex, columnIndex) { @@ -77409,8 +80364,8 @@ else { var keysA = Object.keys(objA); var keysB = Object.keys(objB); - return _shallowCompareKeys(objA, objB, { include: keysA }) - && _shallowCompareKeys(objA, objB, { include: keysB }); + return (_shallowCompareKeys(objA, objB, { include: keysA }) && + _shallowCompareKeys(objA, objB, { include: keysB })); } }, deepCompareKeys: function (objA, objB, keys) { @@ -77448,16 +80403,20 @@ } }, getShallowUnequalKeyValues: function (objA, objB, keys) { - var definedObjA = (objA == null) ? {} : objA; - var definedObjB = (objB == null) ? {} : objB; + var definedObjA = objA == null ? {} : objA; + var definedObjB = objB == null ? {} : objB; var filteredKeys = _filterKeys(definedObjA, definedObjB, keys == null ? { exclude: [] } : keys); - return _getUnequalKeyValues(definedObjA, definedObjB, filteredKeys, function (a, b, key) { return exports.Utils.shallowCompareKeys(a, b, { include: [key] }); }); + return _getUnequalKeyValues(definedObjA, definedObjB, filteredKeys, function (a, b, key) { + return exports.Utils.shallowCompareKeys(a, b, { include: [key] }); + }); }, getDeepUnequalKeyValues: function (objA, objB, keys) { - var definedObjA = (objA == null) ? {} : objA; - var definedObjB = (objB == null) ? {} : objB; - var filteredKeys = (keys == null) ? _unionKeys(definedObjA, definedObjB) : keys; - return _getUnequalKeyValues(definedObjA, definedObjB, filteredKeys, function (a, b, key) { return exports.Utils.deepCompareKeys(a, b, [key]); }); + var definedObjA = objA == null ? {} : objA; + var definedObjB = objB == null ? {} : objB; + var filteredKeys = keys == null ? _unionKeys(definedObjA, definedObjB) : keys; + return _getUnequalKeyValues(definedObjA, definedObjB, filteredKeys, function (a, b, key) { + return exports.Utils.deepCompareKeys(a, b, [key]); + }); }, guideIndexToReorderedIndex: function (oldIndex, newIndex, length) { if (newIndex < oldIndex) { @@ -77471,7 +80430,7 @@ } }, reorderedIndexToGuideIndex: function (oldIndex, newIndex, length) { - return (newIndex <= oldIndex) ? newIndex : newIndex + length; + return newIndex <= oldIndex ? newIndex : newIndex + length; }, reorderArray: function (array, from, to, length) { if (length === void 0) { length = 1; } @@ -77536,20 +80495,16 @@ }; function _shallowCompareKeys(objA, objB, keys) { return _filterKeys(objA, objB, keys).every(function (key) { - return objA.hasOwnProperty(key) === objB.hasOwnProperty(key) - && objA[key] === objB[key]; + return objA.hasOwnProperty(key) === objB.hasOwnProperty(key) && objA[key] === objB[key]; }); } function _deepCompareKeys(objA, objB, keys) { return keys.every(function (key) { - return objA.hasOwnProperty(key) === objB.hasOwnProperty(key) - && exports.Utils.deepCompareKeys(objA[key], objB[key]); + return objA.hasOwnProperty(key) === objB.hasOwnProperty(key) && exports.Utils.deepCompareKeys(objA[key], objB[key]); }); } function _isSimplePrimitiveType(value) { - return typeof value === "number" - || typeof value === "string" - || typeof value === "boolean"; + return typeof value === "number" || typeof value === "string" || typeof value === "boolean"; } function _filterKeys(objA, objB, keys) { if (isWhitelist(keys)) { @@ -77591,13 +80546,13 @@ /***/ }), -/* 573 */ +/* 593 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); - var PureRender = __webpack_require__(574); + var tslib_1 = __webpack_require__(586); + var PureRender = __webpack_require__(594); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); var LoadableContent = (function (_super) { @@ -77608,7 +80563,7 @@ return _this; } LoadableContent.prototype.componentWillReceiveProps = function (nextProps) { - if (!this.props.loading && nextProps.loading || this.props.variableLength !== nextProps.variableLength) { + if ((!this.props.loading && nextProps.loading) || this.props.variableLength !== nextProps.variableLength) { this.style = this.calculateStyle(nextProps.variableLength); } }; @@ -77631,7 +80586,7 @@ /***/ }), -/* 574 */ +/* 594 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -77640,8 +80595,8 @@ */ 'use strict'; - var warning = __webpack_require__(575); - var shallowEqual = __webpack_require__(577); + var warning = __webpack_require__(595); + var shallowEqual = __webpack_require__(597); @@ -77703,7 +80658,7 @@ /***/ }), -/* 575 */ +/* 595 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -77718,7 +80673,7 @@ 'use strict'; - var emptyFunction = __webpack_require__(576); + var emptyFunction = __webpack_require__(596); /** * Similar to invariant but only logs a warning if the condition is not met. @@ -77774,7 +80729,7 @@ module.exports = warning; /***/ }), -/* 576 */ +/* 596 */ /***/ (function(module, exports) { "use strict"; @@ -77817,7 +80772,7 @@ module.exports = emptyFunction; /***/ }), -/* 577 */ +/* 597 */ /***/ (function(module, exports) { /** @@ -77889,19 +80844,19 @@ module.exports = shallowEqual; /***/ }), -/* 578 */ +/* 598 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var React = __webpack_require__(3); var ReactDOM = __webpack_require__(33); var core_1 = __webpack_require__(179); - var Classes = __webpack_require__(571); - var utils_1 = __webpack_require__(572); - var draggable_1 = __webpack_require__(579); - var cell_1 = __webpack_require__(569); + var Classes = __webpack_require__(591); + var utils_1 = __webpack_require__(592); + var draggable_1 = __webpack_require__(599); + var cell_1 = __webpack_require__(589); var EditableCell = (function (_super) { tslib_1.__extends(EditableCell, _super); function EditableCell(props, context) { @@ -77944,9 +80899,9 @@ return _this; } EditableCell.prototype.shouldComponentUpdate = function (nextProps, nextState) { - return !utils_1.Utils.shallowCompareKeys(this.props, nextProps, { exclude: ["style"] }) - || !utils_1.Utils.shallowCompareKeys(this.state, nextState) - || !utils_1.Utils.deepCompareKeys(this.props, nextProps, ["style"]); + return (!utils_1.Utils.shallowCompareKeys(this.props, nextProps, { exclude: ["style"] }) || + !utils_1.Utils.shallowCompareKeys(this.state, nextState) || + !utils_1.Utils.deepCompareKeys(this.props, nextProps, ["style"])); }; EditableCell.prototype.componentWillReceiveProps = function (nextProps) { var value = nextProps.value; @@ -77970,21 +80925,18 @@ /***/ }), -/* 579 */ +/* 599 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); - var PureRender = __webpack_require__(574); + var tslib_1 = __webpack_require__(586); + var PureRender = __webpack_require__(594); var React = __webpack_require__(3); var ReactDOM = __webpack_require__(33); - var utils_1 = __webpack_require__(572); - var dragEvents_1 = __webpack_require__(580); - var REATTACH_PROPS_KEYS = [ - "stopPropagation", - "preventDefault", - ]; + var utils_1 = __webpack_require__(592); + var dragEvents_1 = __webpack_require__(600); + var REATTACH_PROPS_KEYS = ["stopPropagation", "preventDefault"]; var Draggable = (function (_super) { tslib_1.__extends(Draggable, _super); function Draggable() { @@ -78020,7 +80972,7 @@ /***/ }), -/* 580 */ +/* 600 */ /***/ (function(module, exports) { "use strict"; @@ -78110,11 +81062,12 @@ } }; DragEvents.prototype.isValidDragHandler = function (handler) { - return handler != null && (handler.onActivate != null - || handler.onDragMove != null - || handler.onDragEnd != null - || handler.onClick != null - || handler.onDoubleClick != null); + return (handler != null && + (handler.onActivate != null || + handler.onDragMove != null || + handler.onDragEnd != null || + handler.onClick != null || + handler.onDoubleClick != null)); }; DragEvents.prototype.attachDocumentEventListeners = function () { document.addEventListener("mousemove", this.handleMouseMove); @@ -78163,16 +81116,16 @@ /***/ }), -/* 581 */ +/* 601 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); - var classNames = __webpack_require__(570); + var tslib_1 = __webpack_require__(586); + var classNames = __webpack_require__(590); var React = __webpack_require__(3); - var Classes = __webpack_require__(571); - var truncatedFormat_1 = __webpack_require__(582); + var Classes = __webpack_require__(591); + var truncatedFormat_1 = __webpack_require__(602); var JSONFormat = (function (_super) { tslib_1.__extends(JSONFormat, _super); function JSONFormat() { @@ -78204,23 +81157,23 @@ detectTruncation: true, omitQuotesOnStrings: true, showPopover: truncatedFormat_1.TruncatedPopoverMode.WHEN_TRUNCATED, - stringify: function (obj) { return (JSON.stringify(obj, null, 2)); }, + stringify: function (obj) { return JSON.stringify(obj, null, 2); }, }; exports.JSONFormat = JSONFormat; /***/ }), -/* 582 */ +/* 602 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var core_1 = __webpack_require__(179); - var classNames = __webpack_require__(570); - var PureRender = __webpack_require__(574); + var classNames = __webpack_require__(590); + var PureRender = __webpack_require__(594); var React = __webpack_require__(3); - var Classes = __webpack_require__(571); + var Classes = __webpack_require__(591); var CONTENT_DIV_WIDTH_DELTA = 25; var TruncatedPopoverMode; (function (TruncatedPopoverMode) { @@ -78233,7 +81186,7 @@ function TruncatedFormat() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.state = { isTruncated: false }; - _this.handleContentDivRef = function (ref) { return _this.contentDiv = ref; }; + _this.handleContentDivRef = function (ref) { return (_this.contentDiv = ref); }; return _this; } TruncatedFormat.prototype.render = function () { @@ -78247,10 +81200,12 @@ var popoverClasses = classNames(Classes.TABLE_TRUNCATED_POPOVER, preformatted ? Classes.TABLE_POPOVER_WHITESPACE_PRE : Classes.TABLE_POPOVER_WHITESPACE_NORMAL); var popoverContent = React.createElement("div", { className: popoverClasses }, children); var className = classNames(this.props.className, Classes.TABLE_TRUNCATED_FORMAT); - var constraints = [{ + var constraints = [ + { attachment: "together", to: "window", - }]; + }, + ]; return (React.createElement("div", { className: className }, React.createElement("div", { className: Classes.TABLE_TRUNCATED_VALUE, ref: this.handleContentDivRef }, cellContent), React.createElement(core_1.Popover, { className: Classes.TABLE_TRUNCATED_POPOVER_TARGET, tetherOptions: { constraints: constraints }, content: popoverContent, position: core_1.Position.BOTTOM, useSmartArrowPositioning: true }, @@ -78258,7 +81213,7 @@ } else { var className = classNames(this.props.className, Classes.TABLE_TRUNCATED_FORMAT_TEXT); - return React.createElement("div", { className: className, ref: this.handleContentDivRef }, cellContent); + return (React.createElement("div", { className: className, ref: this.handleContentDivRef }, cellContent)); } }; TruncatedFormat.prototype.componentDidMount = function () { @@ -78277,7 +81232,7 @@ case TruncatedPopoverMode.WHEN_TRUNCATED: return detectTruncation ? this.state.isTruncated - : (truncateLength > 0 && content.length > truncateLength); + : truncateLength > 0 && content.length > truncateLength; default: return false; } @@ -78292,12 +81247,10 @@ } var isTruncated = this.state.isTruncated; var _a = this.contentDiv, containerHeight = _a.clientHeight, containerWidth = _a.clientWidth, actualContentHeight = _a.scrollHeight, contentWidth = _a.scrollWidth; - var actualContentWidth = isTruncated - ? contentWidth - CONTENT_DIV_WIDTH_DELTA - : contentWidth; - var shouldTruncate = (isTruncated && actualContentWidth === containerWidth) - || actualContentWidth > containerWidth - || actualContentHeight > containerHeight; + var actualContentWidth = isTruncated ? contentWidth - CONTENT_DIV_WIDTH_DELTA : contentWidth; + var shouldTruncate = (isTruncated && actualContentWidth === containerWidth) || + actualContentWidth > containerWidth || + actualContentHeight > containerHeight; this.setState({ isTruncated: shouldTruncate }); }; return TruncatedFormat; @@ -78316,15 +81269,15 @@ /***/ }), -/* 583 */ +/* 603 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); - var PureRender = __webpack_require__(574); + var tslib_1 = __webpack_require__(586); + var PureRender = __webpack_require__(594); var React = __webpack_require__(3); - var cell_1 = __webpack_require__(569); + var cell_1 = __webpack_require__(589); var Column = (function (_super) { tslib_1.__extends(Column, _super); function Column() { @@ -78342,27 +81295,27 @@ /***/ }), -/* 584 */ +/* 604 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var clipboard_1 = __webpack_require__(585); + var clipboard_1 = __webpack_require__(605); exports.Clipboard = clipboard_1.Clipboard; - var grid_1 = __webpack_require__(586); + var grid_1 = __webpack_require__(606); exports.Grid = grid_1.Grid; - var rect_1 = __webpack_require__(588); + var rect_1 = __webpack_require__(608); exports.Rect = rect_1.Rect; - var renderMode_1 = __webpack_require__(589); + var renderMode_1 = __webpack_require__(609); exports.RenderMode = renderMode_1.RenderMode; - var roundSize_1 = __webpack_require__(590); + var roundSize_1 = __webpack_require__(610); exports.RoundSize = roundSize_1.RoundSize; - var utils_1 = __webpack_require__(572); + var utils_1 = __webpack_require__(592); exports.Utils = utils_1.Utils; /***/ }), -/* 585 */ +/* 605 */ /***/ (function(module, exports) { "use strict"; @@ -78431,16 +81384,16 @@ /***/ }), -/* 586 */ +/* 606 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); - var regions_1 = __webpack_require__(587); - var Classes = __webpack_require__(571); - var rect_1 = __webpack_require__(588); - var utils_1 = __webpack_require__(572); + var tslib_1 = __webpack_require__(586); + var regions_1 = __webpack_require__(607); + var Classes = __webpack_require__(591); + var rect_1 = __webpack_require__(608); + var utils_1 = __webpack_require__(592); var Grid = (function () { function Grid(rowHeights, columnWidths, bleed, ghostHeight, ghostWidth) { if (bleed === void 0) { bleed = Grid.DEFAULT_BLEED; } @@ -78448,7 +81401,7 @@ if (ghostWidth === void 0) { ghostWidth = Grid.DEFAULT_GHOST_WIDTH; } var _this = this; this.getCumulativeWidthBefore = function (index) { - return (index === 0) ? 0 : _this.getCumulativeWidthAt(index - 1); + return index === 0 ? 0 : _this.getCumulativeWidthAt(index - 1); }; this.getCumulativeWidthAt = function (index) { if (_this.numCols === 0) { @@ -78462,7 +81415,7 @@ } }; this.getCumulativeHeightBefore = function (index) { - return (index === 0) ? 0 : _this.getCumulativeHeightAt(index - 1); + return index === 0 ? 0 : _this.getCumulativeHeightAt(index - 1); }; this.getCumulativeHeightAt = function (index) { if (_this.numRows === 0) { @@ -78578,9 +81531,7 @@ } var searchEnd = includeGhostCells ? Math.max(this.numRows, Grid.DEFAULT_MAX_ROWS) : this.numRows; var _a = this.getIndicesInInterval(rect.top, rect.top + rect.height, searchEnd, !includeGhostCells, this.getCumulativeHeightAt), start = _a.start, end = _a.end; - var rowIndexEnd = (limit > 0 && end - start > limit) - ? start + limit - : end; + var rowIndexEnd = limit > 0 && end - start > limit ? start + limit : end; return { rowIndexEnd: rowIndexEnd, rowIndexStart: start, @@ -78594,16 +81545,14 @@ } var searchEnd = includeGhostCells ? Math.max(this.numCols, Grid.DEFAULT_MAX_COLUMNS) : this.numCols; var _a = this.getIndicesInInterval(rect.left, rect.left + rect.width, searchEnd, !includeGhostCells, this.getCumulativeWidthAt), start = _a.start, end = _a.end; - var columnIndexEnd = (limit > 0 && end - start > limit) - ? start + limit - : end; + var columnIndexEnd = limit > 0 && end - start > limit ? start + limit : end; return { columnIndexEnd: columnIndexEnd, columnIndexStart: start, }; }; Grid.prototype.isGhostIndex = function (rowIndex, columnIndex) { - return (rowIndex >= this.numRows || columnIndex >= this.numCols); + return rowIndex >= this.numRows || columnIndex >= this.numCols; }; Grid.prototype.getExtremaClasses = function (rowIndex, columnIndex, rowEnd, columnEnd) { if (rowIndex === rowEnd && columnIndex === columnEnd) { @@ -78679,7 +81628,8 @@ right: 0, top: 0, }; - default: return { display: "none" }; + default: + return { display: "none" }; } }; Grid.prototype.getIndicesInInterval = function (min, max, count, useEndBleed, lookup) { @@ -78708,13 +81658,13 @@ /***/ }), -/* 587 */ +/* 607 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var Classes = __webpack_require__(571); - var utils_1 = __webpack_require__(572); + var Classes = __webpack_require__(591); + var utils_1 = __webpack_require__(592); var RegionCardinality; (function (RegionCardinality) { RegionCardinality[RegionCardinality["CELLS"] = 0] = "CELLS"; @@ -78729,21 +81679,11 @@ RegionCardinality.FULL_ROWS, RegionCardinality.CELLS, ], - COLUMNS_AND_CELLS: [ - RegionCardinality.FULL_COLUMNS, - RegionCardinality.CELLS, - ], - COLUMNS_ONLY: [ - RegionCardinality.FULL_COLUMNS, - ], + COLUMNS_AND_CELLS: [RegionCardinality.FULL_COLUMNS, RegionCardinality.CELLS], + COLUMNS_ONLY: [RegionCardinality.FULL_COLUMNS], NONE: [], - ROWS_AND_CELLS: [ - RegionCardinality.FULL_ROWS, - RegionCardinality.CELLS, - ], - ROWS_ONLY: [ - RegionCardinality.FULL_ROWS, - ], + ROWS_AND_CELLS: [RegionCardinality.FULL_ROWS, RegionCardinality.CELLS], + ROWS_ONLY: [RegionCardinality.FULL_ROWS], }; exports.ColumnLoadingOption = { CELLS: "cells", @@ -78916,8 +81856,7 @@ } continue; case RegionCardinality.CELLS: - if (intervalCompareFn(region.cols, query.cols) - && intervalCompareFn(region.rows, query.rows)) { + if (intervalCompareFn(region.cols, query.cols) && intervalCompareFn(region.rows, query.rows)) { return true; } continue; @@ -79016,10 +81955,10 @@ var maxCol; for (var _i = 0, cells_1 = cells; _i < cells_1.length; _i++) { var _a = cells_1[_i], row = _a[0], col = _a[1]; - minRow = (minRow == null || row < minRow) ? row : minRow; - maxRow = (maxRow == null || row > maxRow) ? row : maxRow; - minCol = (minCol == null || col < minCol) ? col : minCol; - maxCol = (maxCol == null || col > maxCol) ? col : maxCol; + minRow = minRow == null || row < minRow ? row : minRow; + maxRow = maxRow == null || row > maxRow ? row : maxRow; + minCol = minCol == null || col < minCol ? col : minCol; + maxCol = maxCol == null || col > maxCol ? col : maxCol; } if (minRow == null) { return null; @@ -79033,10 +81972,10 @@ if (region == null) { return false; } - if ((region.rows != null) && (region.rows[0] < 0 || region.rows[1] < 0)) { + if (region.rows != null && (region.rows[0] < 0 || region.rows[1] < 0)) { return false; } - if ((region.cols != null) && (region.cols[0] < 0 || region.cols[1] < 0)) { + if (region.cols != null && (region.cols[0] < 0 || region.cols[1] < 0)) { return false; } return true; @@ -79070,8 +82009,7 @@ return regionGroups; }; Regions.regionsEqual = function (regionA, regionB) { - return Regions.intervalsEqual(regionA.rows, regionB.rows) - && Regions.intervalsEqual(regionA.cols, regionB.cols); + return Regions.intervalsEqual(regionA.rows, regionB.rows) && Regions.intervalsEqual(regionA.cols, regionB.cols); }; Regions.expandRegion = function (oldRegion, newRegion) { var oldRegionCardinality = Regions.getRegionCardinality(oldRegion); @@ -79192,7 +82130,7 @@ /***/ }), -/* 588 */ +/* 608 */ /***/ (function(module, exports) { "use strict"; @@ -79259,11 +82197,11 @@ return clientY >= this.top && clientY <= this.top + this.height; }; Rect.prototype.equals = function (rect) { - return rect != null - && this.left === rect.left - && this.top === rect.top - && this.width === rect.width - && this.height === rect.height; + return (rect != null && + this.left === rect.left && + this.top === rect.top && + this.width === rect.width && + this.height === rect.height); }; return Rect; }()); @@ -79272,7 +82210,7 @@ /***/ }), -/* 589 */ +/* 609 */ /***/ (function(module, exports) { "use strict"; @@ -79282,24 +82220,23 @@ RenderMode[RenderMode["BATCH"] = 0] = "BATCH"; RenderMode[RenderMode["NONE"] = 1] = "NONE"; })(RenderMode = exports.RenderMode || (exports.RenderMode = {})); - ; /***/ }), -/* 590 */ +/* 610 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var React = __webpack_require__(3); - var Classes = __webpack_require__(571); + var Classes = __webpack_require__(591); var RoundSize = (function (_super) { tslib_1.__extends(RoundSize, _super); function RoundSize() { var _this = _super !== null && _super.apply(this, arguments) || this; - _this.setInternalRef = function (ref) { return _this.internalElement = ref; }; - _this.setContainerRef = function (ref) { return _this.containerElement = ref; }; + _this.setInternalRef = function (ref) { return (_this.internalElement = ref); }; + _this.setContainerRef = function (ref) { return (_this.containerElement = ref); }; return _this; } RoundSize.prototype.render = function () { @@ -79327,7 +82264,7 @@ /***/ }), -/* 591 */ +/* 611 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -79335,22 +82272,22 @@ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); - __export(__webpack_require__(592)); - __export(__webpack_require__(593)); + __export(__webpack_require__(612)); + __export(__webpack_require__(613)); /***/ }), -/* 592 */ +/* 612 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var core_1 = __webpack_require__(179); - var PureRender = __webpack_require__(574); + var PureRender = __webpack_require__(594); var React = __webpack_require__(3); - var clipboard_1 = __webpack_require__(585); - var regions_1 = __webpack_require__(587); + var clipboard_1 = __webpack_require__(605); + var regions_1 = __webpack_require__(607); var CopyCellsMenuItem = (function (_super) { tslib_1.__extends(CopyCellsMenuItem, _super); function CopyCellsMenuItem() { @@ -79378,12 +82315,12 @@ /***/ }), -/* 593 */ +/* 613 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var regions_1 = __webpack_require__(587); + var regions_1 = __webpack_require__(607); var MenuContext = (function () { function MenuContext(target, selectedRegions, numRows, numCols) { this.target = target; @@ -79410,17 +82347,17 @@ /***/ }), -/* 594 */ +/* 614 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); - var classNames = __webpack_require__(570); - var PureRender = __webpack_require__(574); + var tslib_1 = __webpack_require__(586); + var classNames = __webpack_require__(590); + var PureRender = __webpack_require__(594); var React = __webpack_require__(3); - var Classes = __webpack_require__(571); - var draggable_1 = __webpack_require__(579); + var Classes = __webpack_require__(591); + var draggable_1 = __webpack_require__(599); var Orientation; (function (Orientation) { Orientation[Orientation["HORIZONTAL"] = 1] = "HORIZONTAL"; @@ -79497,20 +82434,20 @@ /***/ }), -/* 595 */ +/* 615 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var core_1 = __webpack_require__(179); - var PureRender = __webpack_require__(574); + var PureRender = __webpack_require__(594); var React = __webpack_require__(3); - var FocusedCellUtils = __webpack_require__(596); - var utils_1 = __webpack_require__(572); - var dragEvents_1 = __webpack_require__(580); - var draggable_1 = __webpack_require__(579); - var regions_1 = __webpack_require__(587); + var FocusedCellUtils = __webpack_require__(616); + var utils_1 = __webpack_require__(592); + var regions_1 = __webpack_require__(607); + var dragEvents_1 = __webpack_require__(600); + var draggable_1 = __webpack_require__(599); var DragSelectable = (function (_super) { tslib_1.__extends(DragSelectable, _super); function DragSelectable() { @@ -79581,39 +82518,38 @@ return allowMultipleSelection && dragEvents_1.DragEvents.isAdditive(event); }; _this.handleUpdateExistingSelection = function (selectedRegionIndex, event) { - var _a = _this.props, onSelection = _a.onSelection, selectedRegions = _a.selectedRegions; + var selectedRegions = _this.props.selectedRegions; if (dragEvents_1.DragEvents.isAdditive(event)) { var nextSelectedRegions = selectedRegions.slice(); nextSelectedRegions.splice(selectedRegionIndex, 1); - onSelection(nextSelectedRegions); + _this.maybeInvokeSelectionCallback(nextSelectedRegions); if (nextSelectedRegions.length > 0) { var lastIndex = nextSelectedRegions.length - 1; _this.invokeOnFocusCallbackForRegion(nextSelectedRegions[lastIndex], lastIndex); } } else { - onSelection([]); + _this.maybeInvokeSelectionCallback([]); } }; _this.handleExpandSelection = function (region) { - var _a = _this.props, focusedCell = _a.focusedCell, onSelection = _a.onSelection, selectedRegions = _a.selectedRegions; + var _a = _this.props, focusedCell = _a.focusedCell, selectedRegions = _a.selectedRegions; _this.didExpandSelectionOnActivate = true; var nextSelectedRegions = _this.expandSelectedRegions(selectedRegions, region, focusedCell); - onSelection(nextSelectedRegions); + _this.maybeInvokeSelectionCallback(nextSelectedRegions); if (selectedRegions == null || selectedRegions.length === 0) { _this.invokeOnFocusCallbackForRegion(region); } }; _this.handleAddDisjointSelection = function (region) { - var _a = _this.props, onSelection = _a.onSelection, selectedRegions = _a.selectedRegions; + var selectedRegions = _this.props.selectedRegions; var nextSelectedRegions = regions_1.Regions.add(selectedRegions, region); - onSelection(nextSelectedRegions); + _this.maybeInvokeSelectionCallback(nextSelectedRegions); _this.invokeOnFocusCallbackForRegion(region, nextSelectedRegions.length - 1); }; _this.handleReplaceSelection = function (region) { - var onSelection = _this.props.onSelection; var nextSelectedRegions = [region]; - onSelection(nextSelectedRegions); + _this.maybeInvokeSelectionCallback(nextSelectedRegions); _this.invokeOnFocusCallbackForRegion(region); }; _this.invokeOnFocusCallbackForRegion = function (focusRegion, focusSelectionIndex) { @@ -79625,6 +82561,7 @@ _this.finishInteraction = function () { core_1.Utils.safeInvoke(_this.props.onSelectionEnd, _this.props.selectedRegions); _this.didExpandSelectionOnActivate = false; + _this.lastEmittedSelectedRegions = null; }; return _this; } @@ -79633,24 +82570,31 @@ return (React.createElement(draggable_1.Draggable, tslib_1.__assign({}, draggableProps, { preventDefault: false }), this.props.children)); }; DragSelectable.prototype.getDraggableProps = function () { - return this.props.onSelection == null ? {} : { - onActivate: this.handleActivate, - onClick: this.handleClick, - onDragEnd: this.handleDragEnd, - onDragMove: this.handleDragMove, - }; + return this.props.onSelection == null + ? {} + : { + onActivate: this.handleActivate, + onClick: this.handleClick, + onDragEnd: this.handleDragEnd, + onDragMove: this.handleDragMove, + }; }; DragSelectable.prototype.shouldIgnoreMouseDown = function (event) { var _a = this.props.ignoredSelectors, ignoredSelectors = _a === void 0 ? [] : _a; var element = event.target; - return !utils_1.Utils.isLeftClick(event) - || this.props.disabled - || ignoredSelectors.some(function (selector) { return element.closest(selector) != null; }); + var isLeftClick = utils_1.Utils.isLeftClick(event); + var isContextMenuTrigger = isLeftClick && event.ctrlKey; + return (!isLeftClick || + isContextMenuTrigger || + this.props.disabled || + ignoredSelectors.some(function (selector) { return element.closest(selector) != null; })); }; DragSelectable.prototype.maybeInvokeSelectionCallback = function (nextSelectedRegions) { - var _a = this.props, onSelection = _a.onSelection, selectedRegions = _a.selectedRegions; - if (!utils_1.Utils.deepCompareKeys(selectedRegions, nextSelectedRegions)) { + var onSelection = this.props.onSelection; + if (this.lastEmittedSelectedRegions == null || + !utils_1.Utils.deepCompareKeys(this.lastEmittedSelectedRegions, nextSelectedRegions)) { onSelection(nextSelectedRegions); + this.lastEmittedSelectedRegions = nextSelectedRegions; } }; DragSelectable.prototype.expandSelectedRegions = function (regions, region, focusedCell) { @@ -79680,14 +82624,14 @@ /***/ }), -/* 596 */ +/* 616 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); - var regions_1 = __webpack_require__(587); - var Errors = __webpack_require__(597); + var tslib_1 = __webpack_require__(586); + var regions_1 = __webpack_require__(607); + var Errors = __webpack_require__(617); function getInitialFocusedCell(enableFocus, focusedCellFromProps, focusedCellFromState, selectedRegions) { if (!enableFocus) { return undefined; @@ -79742,14 +82686,12 @@ throw new Error(Errors.TABLE_EXPAND_FOCUSED_REGION_MULTI_COLUMN_REGION); } } - return sourceIndex <= destinationIndex - ? [sourceIndex, destinationIndex] - : [destinationIndex, sourceIndex]; + return sourceIndex <= destinationIndex ? [sourceIndex, destinationIndex] : [destinationIndex, sourceIndex]; } /***/ }), -/* 597 */ +/* 617 */ /***/ (function(module, exports) { "use strict"; @@ -79759,27 +82701,32 @@ exports.COLUMN_HEADER_CELL_MENU_DEPRECATED = deprec + " menu is deprecated. Use renderMenu instead."; exports.ROW_HEADER_CELL_MENU_DEPRECATED = deprec + " menu is deprecated. Use renderMenu instead."; exports.QUADRANT_ON_SCROLL_UNNECESSARILY_DEFINED = ns + " onScroll need not be defined for any quadrant aside from the MAIN quadrant."; + exports.TABLE_EXPAND_FOCUSED_REGION_MULTI_COLUMN_REGION = ns + " Cannot expand a FULL_COLUMNS selection using a multi-column region."; + exports.TABLE_EXPAND_FOCUSED_REGION_MULTI_ROW_REGION = ns + "
Cannot expand a FULL_COLUMNS selection using a multi-row region."; exports.TABLE_NON_COLUMN_CHILDREN_WARNING = ns + "
Children of Table must be Columns\""; - exports.TABLE_NUM_FROZEN_COLUMNS_BOUND_WARNING = ns + "
numFrozenColumns must be in [0, number of columns]"; - exports.TABLE_NUM_FROZEN_ROWS_BOUND_WARNING = ns + "
numFrozenRows must be in [0, numRows]"; - exports.TABLE_EXPAND_FOCUSED_REGION_MULTI_ROW_REGION = ns + "
Cannot expand a FULL_COLUMNS selection using a multi-row region"; - exports.TABLE_EXPAND_FOCUSED_REGION_MULTI_COLUMN_REGION = ns + "
Cannot expand a FULL_COLUMNS selection using a multi-column region"; + exports.TABLE_NUM_FROZEN_COLUMNS_BOUND_WARNING = ns + "
numFrozenColumns must be in less than or equal to the number of columns. Clamping the value for you."; + exports.TABLE_NUM_FROZEN_COLUMNS_NEGATIVE = ns + "
requires numFrozenColumns to be greater than or equal to 0."; + exports.TABLE_NUM_FROZEN_ROWS_BOUND_WARNING = ns + "
numFrozenRows must be less than or equal to numRows. Clamping the value for you."; + exports.TABLE_NUM_FROZEN_ROWS_NEGATIVE = ns + "
requires numFrozenRows to be greater than or equal to 0."; + exports.TABLE_NUM_ROWS_ROW_HEIGHTS_MISMATCH = ns + "
requires rowHeights.length to equal numRows when both props are provided."; + exports.TABLE_NUM_ROWS_NEGATIVE = ns + "
requires numRows to be greater than or equal to 0."; + exports.TABLE_NUM_COLUMNS_COLUMN_WIDTHS_MISMATCH = ns + "
requires columnWidths.length to equal the number of s if provided."; /***/ }), -/* 598 */ +/* 618 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); - var classNames = __webpack_require__(570); + var tslib_1 = __webpack_require__(586); + var classNames = __webpack_require__(590); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); - var Classes = __webpack_require__(571); - var Errors = __webpack_require__(597); - var loadableContent_1 = __webpack_require__(573); - var headerCell_1 = __webpack_require__(599); + var Classes = __webpack_require__(591); + var Errors = __webpack_require__(617); + var loadableContent_1 = __webpack_require__(593); + var headerCell_1 = __webpack_require__(619); function HorizontalCellDivider() { return React.createElement("div", { className: Classes.TABLE_HORIZONTAL_CELL_DIVIDER }); } @@ -79800,10 +82747,10 @@ return _this; } ColumnHeaderCell.isHeaderMouseTarget = function (target) { - return target.classList.contains(Classes.TABLE_HEADER) - || target.classList.contains(Classes.TABLE_COLUMN_NAME) - || target.classList.contains(Classes.TABLE_INTERACTION_BAR) - || target.classList.contains(Classes.TABLE_HEADER_CONTENT); + return (target.classList.contains(Classes.TABLE_HEADER) || + target.classList.contains(Classes.TABLE_COLUMN_NAME) || + target.classList.contains(Classes.TABLE_INTERACTION_BAR) || + target.classList.contains(Classes.TABLE_HEADER_CONTENT)); }; ColumnHeaderCell.prototype.render = function () { var _a = this.props, isColumnReorderable = _a.isColumnReorderable, isColumnSelected = _a.isColumnSelected, menuIconName = _a.menuIconName, name = _a.name, renderName = _a.renderName, useInteractionBar = _a.useInteractionBar, spreadableProps = tslib_1.__rest(_a, ["isColumnReorderable", "isColumnSelected", "menuIconName", "name", "renderName", "useInteractionBar"]); @@ -79846,24 +82793,24 @@ if (this.props.children === null) { return undefined; } - return (React.createElement("div", { className: Classes.TABLE_HEADER_CONTENT }, this.props.children)); + return React.createElement("div", { className: Classes.TABLE_HEADER_CONTENT }, this.props.children); }; ColumnHeaderCell.prototype.maybeRenderDropdownMenu = function () { var _a = this.props, index = _a.index, menu = _a.menu, menuIconName = _a.menuIconName, renderMenu = _a.renderMenu; if (renderMenu == null && menu == null) { return undefined; } - var constraints = [{ + var constraints = [ + { attachment: "together", pin: true, to: "window", - }]; + }, + ]; var classes = classNames(Classes.TABLE_TH_MENU_CONTAINER, (_b = {}, _b[Classes.TABLE_TH_MENU_OPEN] = this.state.isActive, _b)); - var content = core_1.Utils.isFunction(renderMenu) - ? renderMenu(index) - : menu; + var content = core_1.Utils.isFunction(renderMenu) ? renderMenu(index) : menu; return (React.createElement("div", { className: classes }, React.createElement("div", { className: Classes.TABLE_TH_MENU_CONTAINER_BACKGROUND }), React.createElement(core_1.Popover, { tetherOptions: { constraints: constraints }, content: content, position: core_1.Position.BOTTOM, className: Classes.TABLE_TH_MENU, popoverDidOpen: this.handlePopoverDidOpen, popoverWillClose: this.handlePopoverWillClose, useSmartArrowPositioning: true }, @@ -79881,17 +82828,17 @@ /***/ }), -/* 599 */ +/* 619 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); - var classNames = __webpack_require__(570); + var tslib_1 = __webpack_require__(586); + var classNames = __webpack_require__(590); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); - var Classes = __webpack_require__(571); - var utils_1 = __webpack_require__(572); + var Classes = __webpack_require__(591); + var utils_1 = __webpack_require__(592); var HeaderCell = (function (_super) { tslib_1.__extends(HeaderCell, _super); function HeaderCell() { @@ -79902,8 +82849,8 @@ return _this; } HeaderCell.prototype.shouldComponentUpdate = function (nextProps) { - return !utils_1.Utils.shallowCompareKeys(this.props, nextProps, { exclude: ["style"] }) - || !utils_1.Utils.deepCompareKeys(this.props, nextProps, ["style"]); + return (!utils_1.Utils.shallowCompareKeys(this.props, nextProps, { exclude: ["style"] }) || + !utils_1.Utils.deepCompareKeys(this.props, nextProps, ["style"])); }; HeaderCell.prototype.renderContextMenu = function (_event) { var renderMenu = this.props.renderMenu; @@ -79932,31 +82879,29 @@ /***/ }), -/* 600 */ +/* 620 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); - var classNames = __webpack_require__(570); + var tslib_1 = __webpack_require__(586); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); - var Classes = __webpack_require__(571); - var Errors = __webpack_require__(597); - var loadableContent_1 = __webpack_require__(573); - var headerCell_1 = __webpack_require__(599); + var Classes = __webpack_require__(591); + var Errors = __webpack_require__(617); + var loadableContent_1 = __webpack_require__(593); + var headerCell_1 = __webpack_require__(619); var RowHeaderCell = (function (_super) { tslib_1.__extends(RowHeaderCell, _super); function RowHeaderCell() { return _super !== null && _super.apply(this, arguments) || this; } RowHeaderCell.prototype.render = function () { - var loadableContentDivClasses = classNames(Classes.TABLE_ROW_NAME_TEXT, Classes.TABLE_TRUNCATED_TEXT); var _a = this.props, isRowReorderable = _a.isRowReorderable, isRowSelected = _a.isRowSelected, spreadableProps = tslib_1.__rest(_a, ["isRowReorderable", "isRowSelected"]); return (React.createElement(headerCell_1.HeaderCell, tslib_1.__assign({ isReorderable: this.props.isRowReorderable, isSelected: this.props.isRowSelected }, spreadableProps), React.createElement("div", { className: Classes.TABLE_ROW_NAME }, React.createElement(loadableContent_1.LoadableContent, { loading: spreadableProps.loading }, - React.createElement("div", { className: loadableContentDivClasses }, spreadableProps.name))), + React.createElement("div", { className: Classes.TABLE_ROW_NAME_TEXT }, spreadableProps.name))), this.props.children, spreadableProps.loading ? undefined : spreadableProps.resizeHandle)); }; @@ -79971,17 +82916,17 @@ /***/ }), -/* 601 */ +/* 621 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var core_1 = __webpack_require__(179); - var classNames = __webpack_require__(570); - var PureRender = __webpack_require__(574); + var classNames = __webpack_require__(590); + var PureRender = __webpack_require__(594); var React = __webpack_require__(3); - var Classes = __webpack_require__(571); + var Classes = __webpack_require__(591); var EditableName = (function (_super) { tslib_1.__extends(EditableName, _super); function EditableName() { @@ -80000,47 +82945,49 @@ /***/ }), -/* 602 */ +/* 622 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var core_1 = __webpack_require__(179); var core_2 = __webpack_require__(179); - var classNames = __webpack_require__(570); + var classNames = __webpack_require__(590); var React = __webpack_require__(3); - var column_1 = __webpack_require__(583); - var Classes = __webpack_require__(571); - var clipboard_1 = __webpack_require__(585); - var Errors = __webpack_require__(597); - var grid_1 = __webpack_require__(586); - var FocusedCellUtils = __webpack_require__(596); - var ScrollUtils = __webpack_require__(603); - var rect_1 = __webpack_require__(588); - var renderMode_1 = __webpack_require__(589); - var utils_1 = __webpack_require__(572); - var columnHeader_1 = __webpack_require__(604); - var columnHeaderCell_1 = __webpack_require__(598); - var rowHeader_1 = __webpack_require__(610); - var resizeSensor_1 = __webpack_require__(611); - var guides_1 = __webpack_require__(612); - var regions_1 = __webpack_require__(613); - var locator_1 = __webpack_require__(614); - var tableQuadrant_1 = __webpack_require__(615); - var tableQuadrantStack_1 = __webpack_require__(616); - var regions_2 = __webpack_require__(587); - var tableBody_1 = __webpack_require__(617); + var column_1 = __webpack_require__(603); + var Classes = __webpack_require__(591); + var clipboard_1 = __webpack_require__(605); + var Errors = __webpack_require__(617); + var grid_1 = __webpack_require__(606); + var FocusedCellUtils = __webpack_require__(616); + var ScrollUtils = __webpack_require__(623); + var rect_1 = __webpack_require__(608); + var renderMode_1 = __webpack_require__(609); + var utils_1 = __webpack_require__(592); + var columnHeader_1 = __webpack_require__(624); + var columnHeaderCell_1 = __webpack_require__(618); + var rowHeader_1 = __webpack_require__(630); + var resizeSensor_1 = __webpack_require__(631); + var guides_1 = __webpack_require__(632); + var regions_1 = __webpack_require__(633); + var locator_1 = __webpack_require__(634); + var tableQuadrant_1 = __webpack_require__(635); + var tableQuadrantStack_1 = __webpack_require__(636); + var regions_2 = __webpack_require__(607); + var tableBody_1 = __webpack_require__(638); var Table = Table_1 = (function (_super) { tslib_1.__extends(Table, _super); function Table(props, context) { var _this = _super.call(this, props, context) || this; _this.refHandlers = { - columnHeader: function (ref) { return _this.columnHeaderElement = ref; }, - mainQuadrant: function (ref) { return _this.mainQuadrantElement = ref; }, - quadrantStack: function (ref) { return _this.quadrantStackInstance = ref; }, - rowHeader: function (ref) { return _this.rowHeaderElement = ref; }, - scrollContainer: function (ref) { return _this.scrollContainerElement = ref; }, + cellContainer: function (ref) { return (_this.cellContainerElement = ref); }, + columnHeader: function (ref) { return (_this.columnHeaderElement = ref); }, + mainQuadrant: function (ref) { return (_this.mainQuadrantElement = ref); }, + quadrantStack: function (ref) { return (_this.quadrantStackInstance = ref); }, + rootTable: function (ref) { return (_this.rootTableElement = ref); }, + rowHeader: function (ref) { return (_this.rowHeaderElement = ref); }, + scrollContainer: function (ref) { return (_this.scrollContainerElement = ref); }, }; _this.handleCopy = function (e) { var grid = _this.grid; @@ -80155,9 +83102,7 @@ var columnIndexEnd = showFrozenColumnsOnly ? numFrozenColumns : columnIndices.columnIndexEnd; var rowIndexStart = showFrozenRowsOnly ? 0 : rowIndices.rowIndexStart; var rowIndexEnd = showFrozenRowsOnly ? numFrozenRows : rowIndices.rowIndexEnd; - var onCompleteRender = quadrantType === tableQuadrant_1.QuadrantType.MAIN - ? _this.handleCompleteRender - : undefined; + var onCompleteRender = quadrantType === tableQuadrant_1.QuadrantType.MAIN ? _this.handleCompleteRender : undefined; return (React.createElement("div", null, React.createElement(tableBody_1.TableBody, { allowMultipleSelection: allowMultipleSelection, cellRenderer: _this.bodyCellRenderer, focusedCell: focusedCell, grid: grid, loading: _this.hasLoadingOption(loadingOptions, regions_2.TableLoadingOption.CELLS), locator: locator, onCompleteRender: onCompleteRender, onFocus: _this.handleFocus, onSelection: _this.getEnabledSelectionHandler(regions_2.RegionCardinality.CELLS), renderBodyContextMenu: renderBodyContextMenu, renderMode: renderMode, selectedRegions: selectedRegions, selectedRegionTransform: selectedRegionTransform, viewportRect: viewportRect, columnIndexStart: columnIndexStart, columnIndexEnd: columnIndexEnd, rowIndexStart: rowIndexStart, rowIndexEnd: rowIndexEnd, numFrozenColumns: showFrozenColumnsOnly ? numFrozenColumns : undefined, numFrozenRows: showFrozenRowsOnly ? numFrozenRows : undefined }), _this.maybeRenderRegions(_this.styleBodyRegion, quadrantType))); @@ -80179,8 +83124,9 @@ var numFrozenColumns = _this.props.numFrozenColumns; var cardinality = regions_2.Regions.getRegionCardinality(region); var style = _this.grid.getRegionStyle(region); - var canHideRightBorder = (quadrantType === tableQuadrant_1.QuadrantType.TOP_LEFT || quadrantType === tableQuadrant_1.QuadrantType.LEFT) - && numFrozenColumns != null && numFrozenColumns > 0; + var canHideRightBorder = (quadrantType === tableQuadrant_1.QuadrantType.TOP_LEFT || quadrantType === tableQuadrant_1.QuadrantType.LEFT) && + numFrozenColumns != null && + numFrozenColumns > 0; var fixedHeight = _this.grid.getHeight(); var fixedWidth = _this.grid.getWidth(); var alignmentCorrection = 1; @@ -80362,8 +83308,10 @@ default: break; } - if (newFocusedCell.row < 0 || newFocusedCell.row >= grid.numRows || - newFocusedCell.col < 0 || newFocusedCell.col >= grid.numCols) { + if (newFocusedCell.row < 0 || + newFocusedCell.row >= grid.numRows || + newFocusedCell.col < 0 || + newFocusedCell.col >= grid.numCols) { return; } var newSelectionRegions = [regions_2.Regions.cell(newFocusedCell.row, newFocusedCell.col)]; @@ -80398,9 +83346,9 @@ return; } var focusCellRegion = regions_2.Regions.getCellRegionFromRegion(selectedRegions[focusedCell.focusSelectionIndex], grid.numRows, grid.numCols); - if (focusCellRegion.cols[0] === focusCellRegion.cols[1] - && focusCellRegion.rows[0] === focusCellRegion.rows[1] - && selectedRegions.length === 1) { + if (focusCellRegion.cols[0] === focusCellRegion.cols[1] && + focusCellRegion.rows[0] === focusCellRegion.rows[1] && + selectedRegions.length === 1) { _this.handleFocusMove(e, direction); return; } @@ -80421,8 +83369,10 @@ break; } } - if (newFocusedCell.row < 0 || newFocusedCell.row >= grid.numRows || - newFocusedCell.col < 0 || newFocusedCell.col >= grid.numCols) { + if (newFocusedCell.row < 0 || + newFocusedCell.row >= grid.numRows || + newFocusedCell.col < 0 || + newFocusedCell.col >= grid.numCols) { return; } _this.handleFocus(newFocusedCell); @@ -80510,19 +83460,19 @@ _this.updateViewportRect = function (nextViewportRect) { _this.setState({ viewportRect: nextViewportRect }); var viewportRect = _this.state.viewportRect; - var didViewportChange = (viewportRect != null && !viewportRect.equals(nextViewportRect)) - || (viewportRect == null && nextViewportRect != null); + var didViewportChange = (viewportRect != null && !viewportRect.equals(nextViewportRect)) || + (viewportRect == null && nextViewportRect != null); if (didViewportChange) { _this.invokeOnVisibleCellsChangeCallback(nextViewportRect); } }; _this.getMaxFrozenColumnIndex = function () { var numFrozenColumns = _this.getNumFrozenColumnsClamped(); - return (numFrozenColumns != null) ? numFrozenColumns - 1 : undefined; + return numFrozenColumns != null ? numFrozenColumns - 1 : undefined; }; _this.getMaxFrozenRowIndex = function () { var numFrozenRows = _this.getNumFrozenRowsClamped(); - return (numFrozenRows != null) ? numFrozenRows - 1 : undefined; + return numFrozenRows != null ? numFrozenRows - 1 : undefined; }; _this.handleColumnResizeGuide = function (verticalGuides) { _this.setState({ verticalGuides: verticalGuides }); @@ -80530,8 +83480,6 @@ _this.handleRowResizeGuide = function (horizontalGuides) { _this.setState({ horizontalGuides: horizontalGuides }); }; - _this.setBodyRef = function (ref) { return _this.bodyElement = ref; }; - _this.setRootTableRef = function (ref) { return _this.rootTableElement = ref; }; var _a = _this.props, children = _a.children, columnWidths = _a.columnWidths, defaultRowHeight = _a.defaultRowHeight, defaultColumnWidth = _a.defaultColumnWidth, numRows = _a.numRows, rowHeights = _a.rowHeights; _this.childrenArray = React.Children.toArray(children); _this.columnIdToIndex = Table_1.createColumnIdIndex(_this.childrenArray); @@ -80539,7 +83487,7 @@ newColumnWidths = utils_1.Utils.assignSparseValues(newColumnWidths, columnWidths); var newRowHeights = utils_1.Utils.times(numRows, function () { return defaultRowHeight; }); newRowHeights = utils_1.Utils.assignSparseValues(newRowHeights, rowHeights); - var selectedRegions = (props.selectedRegions == null) ? [] : props.selectedRegions; + var selectedRegions = props.selectedRegions == null ? [] : props.selectedRegions; var focusedCell = FocusedCellUtils.getInitialFocusedCell(props.enableFocus, props.focusedCell, undefined, selectedRegions); _this.state = { columnWidths: newColumnWidths, @@ -80591,13 +83539,14 @@ Table.prototype.shouldComponentUpdate = function (nextProps, nextState) { var propKeysBlacklist = { exclude: Table_1.SHALLOW_COMPARE_PROP_KEYS_BLACKLIST }; var stateKeysBlacklist = { exclude: Table_1.SHALLOW_COMPARE_STATE_KEYS_BLACKLIST }; - return !utils_1.Utils.shallowCompareKeys(this.props, nextProps, propKeysBlacklist) - || !utils_1.Utils.shallowCompareKeys(this.state, nextState, stateKeysBlacklist) - || !utils_1.Utils.deepCompareKeys(this.props, nextProps, Table_1.SHALLOW_COMPARE_PROP_KEYS_BLACKLIST) - || !utils_1.Utils.deepCompareKeys(this.state, nextState, Table_1.SHALLOW_COMPARE_STATE_KEYS_BLACKLIST); + return (!utils_1.Utils.shallowCompareKeys(this.props, nextProps, propKeysBlacklist) || + !utils_1.Utils.shallowCompareKeys(this.state, nextState, stateKeysBlacklist) || + !utils_1.Utils.deepCompareKeys(this.props, nextProps, Table_1.SHALLOW_COMPARE_PROP_KEYS_BLACKLIST) || + !utils_1.Utils.deepCompareKeys(this.state, nextState, Table_1.SHALLOW_COMPARE_STATE_KEYS_BLACKLIST)); }; Table.prototype.componentWillReceiveProps = function (nextProps) { var _this = this; + _super.prototype.componentWillReceiveProps.call(this, nextProps); var children = nextProps.children, columnWidths = nextProps.columnWidths, defaultColumnWidth = nextProps.defaultColumnWidth, defaultRowHeight = nextProps.defaultRowHeight, enableFocus = nextProps.enableFocus, focusedCell = nextProps.focusedCell, numRows = nextProps.numRows, rowHeights = nextProps.rowHeights, selectedRegions = nextProps.selectedRegions, selectionModes = nextProps.selectionModes; var newChildArray = React.Children.toArray(children); var numCols = newChildArray.length; @@ -80641,20 +83590,24 @@ _c[Classes.TABLE_NO_HORIZONTAL_SCROLL] = this.shouldDisableHorizontalScroll(), _c[Classes.TABLE_SELECTION_ENABLED] = this.isSelectionModeEnabled(regions_2.RegionCardinality.CELLS), _c), className); - return (React.createElement("div", { className: classes, ref: this.setRootTableRef, onScroll: this.handleRootScroll }, - React.createElement(tableQuadrantStack_1.TableQuadrantStack, { bodyRef: this.setBodyRef, columnHeaderRef: this.refHandlers.columnHeader, grid: this.grid, handleColumnResizeGuide: this.handleColumnResizeGuide, handleColumnsReordering: this.handleColumnsReordering, handleRowResizeGuide: this.handleRowResizeGuide, handleRowsReordering: this.handleRowsReordering, isHorizontalScrollDisabled: this.shouldDisableHorizontalScroll(), isRowHeaderShown: isRowHeaderShown, isVerticalScrollDisabled: this.shouldDisableVerticalScroll(), numFrozenColumns: this.getNumFrozenColumnsClamped(), numFrozenRows: this.getNumFrozenRowsClamped(), onScroll: this.handleBodyScroll, quadrantRef: this.refHandlers.mainQuadrant, ref: this.refHandlers.quadrantStack, renderBody: this.renderBody, renderColumnHeader: this.renderColumnHeader, renderMenu: this.renderMenu, renderRowHeader: this.renderRowHeader, rowHeaderRef: this.refHandlers.rowHeader, scrollContainerRef: this.refHandlers.scrollContainer }), + return (React.createElement("div", { className: classes, ref: this.refHandlers.rootTable, onScroll: this.handleRootScroll }, + React.createElement(tableQuadrantStack_1.TableQuadrantStack, { bodyRef: this.refHandlers.cellContainer, columnHeaderRef: this.refHandlers.columnHeader, grid: this.grid, handleColumnResizeGuide: this.handleColumnResizeGuide, handleColumnsReordering: this.handleColumnsReordering, handleRowResizeGuide: this.handleRowResizeGuide, handleRowsReordering: this.handleRowsReordering, isHorizontalScrollDisabled: this.shouldDisableHorizontalScroll(), isRowHeaderShown: isRowHeaderShown, isVerticalScrollDisabled: this.shouldDisableVerticalScroll(), numFrozenColumns: this.getNumFrozenColumnsClamped(), numFrozenRows: this.getNumFrozenRowsClamped(), onScroll: this.handleBodyScroll, quadrantRef: this.refHandlers.mainQuadrant, ref: this.refHandlers.quadrantStack, renderBody: this.renderBody, renderColumnHeader: this.renderColumnHeader, renderMenu: this.renderMenu, renderRowHeader: this.renderRowHeader, rowHeaderRef: this.refHandlers.rowHeader, scrollContainerRef: this.refHandlers.scrollContainer }), React.createElement("div", { className: classNames(Classes.TABLE_OVERLAY_LAYER, "bp-table-reordering-cursor-overlay") }), React.createElement(guides_1.GuideLayer, { className: Classes.TABLE_RESIZE_GUIDES, verticalGuides: verticalGuides, horizontalGuides: horizontalGuides }))); var _c; }; Table.prototype.renderHotkeys = function () { - var hotkeys = [this.maybeRenderCopyHotkey(), this.maybeRenderSelectAllHotkey(), this.maybeRenderFocusHotkeys()]; - return (React.createElement(core_2.Hotkeys, null, hotkeys.filter(function (element) { return element !== undefined; }))); + var hotkeys = [ + this.maybeRenderCopyHotkey(), + this.maybeRenderSelectAllHotkey(), + this.maybeRenderFocusHotkeys(), + ]; + return React.createElement(core_2.Hotkeys, null, hotkeys.filter(function (element) { return element !== undefined; })); }; Table.prototype.componentDidMount = function () { var _this = this; this.validateGrid(); - this.locator = new locator_1.Locator(this.mainQuadrantElement, this.scrollContainerElement); + this.locator = new locator_1.Locator(this.mainQuadrantElement, this.scrollContainerElement, this.cellContainerElement); this.updateLocator(); this.updateViewportRect(this.locator.getViewportRect()); this.resizeSensorDetach = resizeSensor_1.ResizeSensor.attach(this.rootTableElement, function () { @@ -80677,26 +83630,41 @@ this.maybeScrollTableIntoView(); }; Table.prototype.validateProps = function (props) { - var children = props.children, numFrozenColumns = props.numFrozenColumns, numFrozenRows = props.numFrozenRows, numRows = props.numRows; + var children = props.children, columnWidths = props.columnWidths, numFrozenColumns = props.numFrozenColumns, numFrozenRows = props.numFrozenRows, numRows = props.numRows, rowHeights = props.rowHeights; var numColumns = React.Children.count(children); + if (numRows != null && numRows < 0) { + throw new Error(Errors.TABLE_NUM_ROWS_NEGATIVE); + } + if (numFrozenRows != null && numFrozenRows < 0) { + throw new Error(Errors.TABLE_NUM_FROZEN_ROWS_NEGATIVE); + } + if (numFrozenColumns != null && numFrozenColumns < 0) { + throw new Error(Errors.TABLE_NUM_FROZEN_COLUMNS_NEGATIVE); + } + if (numRows != null && rowHeights != null && rowHeights.length !== numRows) { + throw new Error(Errors.TABLE_NUM_ROWS_ROW_HEIGHTS_MISMATCH); + } + if (numColumns != null && columnWidths != null && columnWidths.length !== numColumns) { + throw new Error(Errors.TABLE_NUM_COLUMNS_COLUMN_WIDTHS_MISMATCH); + } React.Children.forEach(children, function (child) { var childType = child.type; - if (typeof childType === "string") { - console.warn(Errors.TABLE_NON_COLUMN_CHILDREN_WARNING); + if (typeof child === "string" || typeof childType === "string") { + throw new Error(Errors.TABLE_NON_COLUMN_CHILDREN_WARNING); } else { var isColumn = childType.prototype === column_1.Column.prototype || column_1.Column.prototype.isPrototypeOf(childType); if (!isColumn) { - console.warn(Errors.TABLE_NON_COLUMN_CHILDREN_WARNING); + throw new Error(Errors.TABLE_NON_COLUMN_CHILDREN_WARNING); } } }); - if (numFrozenColumns != null && (numFrozenColumns < 0 || numFrozenColumns > numColumns)) { - console.warn(Errors.TABLE_NUM_FROZEN_COLUMNS_BOUND_WARNING); - } - if (numFrozenRows != null && (numFrozenRows < 0 || (numRows != null && numFrozenRows > numRows))) { + if (numFrozenRows != null && numRows != null && numFrozenRows > numRows) { console.warn(Errors.TABLE_NUM_FROZEN_ROWS_BOUND_WARNING); } + if (numFrozenColumns != null && numFrozenColumns > numColumns) { + console.warn(Errors.TABLE_NUM_FROZEN_COLUMNS_BOUND_WARNING); + } }; Table.prototype.moveFocusCell = function (primaryAxis, secondaryAxis, isUpOrLeft, newFocusedCell, focusCellRegion) { var grid = this.grid; @@ -80717,12 +83685,8 @@ : newFocusedCell[secondaryAxis] > focusCellRegion[secondaryAxisPlural][1]; if (isSecondaryIndexOutOfBounds) { var newFocusCellSelectionIndex = newFocusedCell.focusSelectionIndex + movementDirection; - if (isUpOrLeft - ? newFocusCellSelectionIndex < 0 - : newFocusCellSelectionIndex >= selectedRegions.length) { - newFocusCellSelectionIndex = isUpOrLeft - ? selectedRegions.length - 1 - : 0; + if (isUpOrLeft ? newFocusCellSelectionIndex < 0 : newFocusCellSelectionIndex >= selectedRegions.length) { + newFocusCellSelectionIndex = isUpOrLeft ? selectedRegions.length - 1 : 0; } var newFocusCellRegion = regions_2.Regions.getCellRegionFromRegion(selectedRegions[newFocusCellSelectionIndex], grid.numRows, grid.numCols); newFocusedCell = { @@ -80756,11 +83720,13 @@ var viewportRect = this.state.viewportRect; var tableBottom = this.grid.getCumulativeHeightAt(this.grid.numRows - 1); var tableRight = this.grid.getCumulativeWidthAt(this.grid.numCols - 1); - var nextScrollTop = (tableBottom < viewportRect.top + viewportRect.height) - ? Math.max(0, tableBottom - viewportRect.height) + var nextScrollTop = tableBottom < viewportRect.top + viewportRect.height + ? + Math.max(0, tableBottom - viewportRect.height) : viewportRect.top; - var nextScrollLeft = (tableRight < viewportRect.left + viewportRect.width) - ? Math.max(0, tableRight - viewportRect.width) + var nextScrollLeft = tableRight < viewportRect.left + viewportRect.width + ? + Math.max(0, tableRight - viewportRect.width) : viewportRect.left; this.syncViewportPosition(nextScrollLeft, nextScrollTop); }; @@ -80856,13 +83822,10 @@ } }; Table.prototype.updateLocator = function () { - var rowHeaderWidth = this.rowHeaderElement == null ? 0 : this.rowHeaderElement.getBoundingClientRect().width; - var columnHeaderHeight = this.columnHeaderElement == null ? 0 : this.columnHeaderElement.getBoundingClientRect().height; - this.locator.setGrid(this.grid) + this.locator + .setGrid(this.grid) .setNumFrozenRows(this.getNumFrozenRowsClamped()) - .setNumFrozenColumns(this.getNumFrozenColumnsClamped()) - .setRowHeaderWidth(rowHeaderWidth) - .setColumnHeaderHeight(columnHeaderHeight); + .setNumFrozenColumns(this.getNumFrozenColumnsClamped()); }; Table.prototype.invokeOnVisibleCellsChangeCallback = function (viewportRect) { var columnIndices = this.grid.getColumnIndicesInRect(viewportRect); @@ -80912,12 +83875,12 @@ /***/ }), -/* 603 */ +/* 623 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var regions_1 = __webpack_require__(587); + var regions_1 = __webpack_require__(607); function getScrollPositionForRegion(region, currScrollLeft, currScrollTop, getLeftOffset, getTopOffset, numFrozenRows, numFrozenColumns) { if (numFrozenRows === void 0) { numFrozenRows = 0; } if (numFrozenColumns === void 0) { numFrozenColumns = 0; } @@ -80953,26 +83916,32 @@ return { scrollLeft: scrollLeft, scrollTop: scrollTop }; } exports.getScrollPositionForRegion = getScrollPositionForRegion; + function measureScrollBarThickness(element, direction) { + return direction === "horizontal" + ? element.offsetHeight - element.clientHeight + : element.offsetWidth - element.clientWidth; + } + exports.measureScrollBarThickness = measureScrollBarThickness; function getClampedScrollPosition(scrollOffset, frozenRegionCumulativeSize) { return Math.max(scrollOffset - frozenRegionCumulativeSize, 0); } /***/ }), -/* 604 */ +/* 624 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); - var classNames = __webpack_require__(570); + var tslib_1 = __webpack_require__(586); + var classNames = __webpack_require__(590); var React = __webpack_require__(3); - var Classes = __webpack_require__(571); - var index_1 = __webpack_require__(584); - var resizeHandle_1 = __webpack_require__(594); - var regions_1 = __webpack_require__(587); - var columnHeaderCell_1 = __webpack_require__(598); - var header_1 = __webpack_require__(605); + var Classes = __webpack_require__(591); + var index_1 = __webpack_require__(604); + var resizeHandle_1 = __webpack_require__(614); + var regions_1 = __webpack_require__(607); + var columnHeaderCell_1 = __webpack_require__(618); + var header_1 = __webpack_require__(625); var ColumnHeader = (function (_super) { tslib_1.__extends(ColumnHeader, _super); function ColumnHeader() { @@ -81055,30 +84024,24 @@ /***/ }), -/* 605 */ +/* 625 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var core_1 = __webpack_require__(179); - var classNames = __webpack_require__(570); + var classNames = __webpack_require__(590); var React = __webpack_require__(3); - var batcher_1 = __webpack_require__(606); - var Classes = __webpack_require__(571); - var utils_1 = __webpack_require__(572); - var reorderable_1 = __webpack_require__(608); - var resizable_1 = __webpack_require__(609); - var selectable_1 = __webpack_require__(595); - var regions_1 = __webpack_require__(587); - var SHALLOW_COMPARE_PROP_KEYS_BLACKLIST = [ - "focusedCell", - "selectedRegions", - ]; - var RESET_CELL_KEYS_BLACKLIST = [ - "indexEnd", - "indexStart", - ]; + var batcher_1 = __webpack_require__(626); + var Classes = __webpack_require__(591); + var utils_1 = __webpack_require__(592); + var reorderable_1 = __webpack_require__(628); + var resizable_1 = __webpack_require__(629); + var selectable_1 = __webpack_require__(615); + var regions_1 = __webpack_require__(607); + var SHALLOW_COMPARE_PROP_KEYS_BLACKLIST = ["focusedCell", "selectedRegions"]; + var RESET_CELL_KEYS_BLACKLIST = ["indexEnd", "indexStart"]; var Header = (function (_super) { tslib_1.__extends(Header, _super); function Header(props, context) { @@ -81097,14 +84060,12 @@ var coord = _this.props.getDragCoordinate(coords.current); var indexStart = _this.activationIndex; var indexEnd = _this.props.convertPointToIndex(coord); - return returnEndOnly - ? _this.props.toRegion(indexEnd) - : _this.props.toRegion(indexStart, indexEnd); + return returnEndOnly ? _this.props.toRegion(indexEnd) : _this.props.toRegion(indexStart, indexEnd); }; _this.locateDragForReordering = function (_event, coords) { var coord = _this.props.getDragCoordinate(coords.current); var guideIndex = _this.props.convertPointToIndex(coord, true); - return (guideIndex < 0) ? undefined : guideIndex; + return guideIndex < 0 ? undefined : guideIndex; }; _this.renderCells = function () { var _a = _this.props, indexStart = _a.indexStart, indexEnd = _a.indexEnd; @@ -81120,9 +84081,7 @@ }; _this.renderNewCell = function (index) { var extremaClasses = _this.props.getCellExtremaClasses(index, _this.props.indexEnd); - var renderer = _this.props.isGhostIndex(index) - ? _this.props.renderGhostCell - : _this.renderCell; + var renderer = _this.props.isGhostIndex(index) ? _this.props.renderGhostCell : _this.renderCell; return renderer(index, extremaClasses); }; _this.renderCell = function (index, extremaClasses) { @@ -81145,7 +84104,9 @@ _c); var modifiedHandleSizeChanged = function (size) { return _this.props.handleSizeChanged(index, size); }; var modifiedHandleResizeEnd = function (size) { return _this.props.handleResizeEnd(index, size); }; - var modifiedHandleResizeHandleDoubleClick = function () { return _this.props.handleResizeDoubleClick(index); }; + var modifiedHandleResizeHandleDoubleClick = function () { + return core_1.Utils.safeInvoke(_this.props.handleResizeDoubleClick, index); + }; var baseChildren = (React.createElement(selectable_1.DragSelectable, { allowMultipleSelection: _this.props.allowMultipleSelection, disabled: isEntireCellTargetReorderable, focusedCell: _this.props.focusedCell, ignoredSelectors: ["." + Classes.TABLE_REORDER_HANDLE_TARGET], key: getIndexClass(index), locateClick: _this.locateClick, locateDrag: _this.locateDragForSelection, onFocus: _this.props.onFocus, onSelection: _this.handleDragSelectableSelection, onSelectionEnd: _this.handleDragSelectableSelectionEnd, selectedRegions: selectedRegions, selectedRegionTransform: _this.props.selectedRegionTransform }, React.createElement(resizable_1.Resizable, { isResizable: _this.props.isResizable, maxSize: _this.props.maxSize, minSize: _this.props.minSize, onDoubleClick: modifiedHandleResizeHandleDoubleClick, onLayoutLock: _this.props.onLayoutLock, onResizeEnd: modifiedHandleResizeEnd, onSizeChanged: modifiedHandleSizeChanged, orientation: _this.props.resizeOrientation, size: _this.props.getCellSize(index) }, React.cloneElement(cell, cellProps)))); return _this.isReorderHandleEnabled() @@ -81163,12 +84124,12 @@ }; _this.isEntireCellTargetReorderable = function (isSelected) { var selectedRegions = _this.props.selectedRegions; - return _this.props.isReorderable - && isSelected - && _this.state.hasSelectionEnded - && regions_1.Regions.getRegionCardinality(selectedRegions[0]) === _this.props.fullRegionCardinality - && selectedRegions.length === 1 - && !_this.isReorderHandleEnabled(); + return (_this.props.isReorderable && + isSelected && + _this.state.hasSelectionEnded && + regions_1.Regions.getRegionCardinality(selectedRegions[0]) === _this.props.fullRegionCardinality && + selectedRegions.length === 1 && + !_this.isReorderHandleEnabled()); }; return _this; } @@ -81189,9 +84150,9 @@ } }; Header.prototype.shouldComponentUpdate = function (nextProps, nextState) { - return !utils_1.Utils.shallowCompareKeys(this.state, nextState) - || !utils_1.Utils.shallowCompareKeys(this.props, nextProps, { exclude: SHALLOW_COMPARE_PROP_KEYS_BLACKLIST }) - || !utils_1.Utils.deepCompareKeys(this.props, nextProps, SHALLOW_COMPARE_PROP_KEYS_BLACKLIST); + return (!utils_1.Utils.shallowCompareKeys(this.state, nextState) || + !utils_1.Utils.shallowCompareKeys(this.props, nextProps, { exclude: SHALLOW_COMPARE_PROP_KEYS_BLACKLIST }) || + !utils_1.Utils.deepCompareKeys(this.props, nextProps, SHALLOW_COMPARE_PROP_KEYS_BLACKLIST)); }; Header.prototype.componentWillUpdate = function (nextProps, nextState) { var resetKeysBlacklist = { exclude: RESET_CELL_KEYS_BLACKLIST }; @@ -81226,13 +84187,13 @@ /***/ }), -/* 606 */ +/* 626 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var core_1 = __webpack_require__(179); - var requestIdleCallback_1 = __webpack_require__(607); + var requestIdleCallback_1 = __webpack_require__(627); var Batcher = (function () { function Batcher() { var _this = this; @@ -81285,9 +84246,9 @@ _this.currentObjects[key] = callback.apply(undefined, _this.batchArgs[key]); }); var keysToAdd = this.setKeysDifference(this.batchArgs, this.currentObjects, addNewLimit); - keysToAdd.forEach(function (key) { return _this.currentObjects[key] = callback.apply(undefined, _this.batchArgs[key]); }); - this.done = this.setHasSameKeys(this.batchArgs, this.currentObjects) - && Object.keys(this.oldObjects).length === 0; + keysToAdd.forEach(function (key) { return (_this.currentObjects[key] = callback.apply(undefined, _this.batchArgs[key])); }); + this.done = + this.setHasSameKeys(this.batchArgs, this.currentObjects) && Object.keys(this.oldObjects).length === 0; }; Batcher.prototype.isDone = function () { return this.done; @@ -81315,8 +84276,7 @@ var aKeys = Object.keys(a); for (var i = 0; i < aKeys.length && (limit < 0 || result.length < limit); i++) { var key = aKeys[i]; - if ((operation === "difference" && a[key] && !b[key]) || - (operation === "intersect" && a[key] && b[key])) { + if ((operation === "difference" && a[key] && !b[key]) || (operation === "intersect" && a[key] && b[key])) { result.push(key); } } @@ -81346,7 +84306,7 @@ /***/ }), -/* 607 */ +/* 627 */ /***/ (function(module, exports) { "use strict"; @@ -81395,17 +84355,17 @@ /***/ }), -/* 608 */ +/* 628 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); - var PureRender = __webpack_require__(574); + var tslib_1 = __webpack_require__(586); + var PureRender = __webpack_require__(594); var React = __webpack_require__(3); - var utils_1 = __webpack_require__(572); - var draggable_1 = __webpack_require__(579); - var regions_1 = __webpack_require__(587); + var utils_1 = __webpack_require__(592); + var regions_1 = __webpack_require__(607); + var draggable_1 = __webpack_require__(599); var DragReorderable = (function (_super) { tslib_1.__extends(DragReorderable, _super); function DragReorderable() { @@ -81468,11 +84428,13 @@ return (React.createElement(draggable_1.Draggable, tslib_1.__assign({}, draggableProps, { preventDefault: false }), this.props.children)); }; DragReorderable.prototype.getDraggableProps = function () { - return this.props.onReordered == null ? {} : { - onActivate: this.handleActivate, - onDragEnd: this.handleDragEnd, - onDragMove: this.handleDragMove, - }; + return this.props.onReordered == null + ? {} + : { + onActivate: this.handleActivate, + onDragEnd: this.handleDragEnd, + onDragMove: this.handleDragMove, + }; }; DragReorderable.prototype.maybeSelectRegion = function (region) { var nextSelectedRegions = [region]; @@ -81493,16 +84455,16 @@ /***/ }), -/* 609 */ +/* 629 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); - var PureRender = __webpack_require__(574); + var tslib_1 = __webpack_require__(586); + var PureRender = __webpack_require__(594); var React = __webpack_require__(3); - var index_1 = __webpack_require__(584); - var resizeHandle_1 = __webpack_require__(594); + var index_1 = __webpack_require__(604); + var resizeHandle_1 = __webpack_require__(614); var Resizable = (function (_super) { tslib_1.__extends(Resizable, _super); function Resizable(props, context) { @@ -81582,19 +84544,19 @@ /***/ }), -/* 610 */ +/* 630 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); - var classNames = __webpack_require__(570); + var tslib_1 = __webpack_require__(586); + var classNames = __webpack_require__(590); var React = __webpack_require__(3); - var Classes = __webpack_require__(571); - var resizeHandle_1 = __webpack_require__(594); - var regions_1 = __webpack_require__(587); - var header_1 = __webpack_require__(605); - var rowHeaderCell_1 = __webpack_require__(600); + var Classes = __webpack_require__(591); + var resizeHandle_1 = __webpack_require__(614); + var regions_1 = __webpack_require__(607); + var header_1 = __webpack_require__(625); + var rowHeaderCell_1 = __webpack_require__(620); var RowHeader = (function (_super) { tslib_1.__extends(RowHeader, _super); function RowHeader() { @@ -81666,12 +84628,12 @@ /***/ }), -/* 611 */ +/* 631 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var Classes = __webpack_require__(571); + var Classes = __webpack_require__(591); var ResizeSensor = (function () { function ResizeSensor() { } @@ -81744,16 +84706,16 @@ /***/ }), -/* 612 */ +/* 632 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); - var classNames = __webpack_require__(570); + var tslib_1 = __webpack_require__(586); + var classNames = __webpack_require__(590); var React = __webpack_require__(3); - var Classes = __webpack_require__(571); - var utils_1 = __webpack_require__(572); + var Classes = __webpack_require__(591); + var utils_1 = __webpack_require__(592); var GuideLayer = (function (_super) { tslib_1.__extends(GuideLayer, _super); function GuideLayer() { @@ -81765,7 +84727,7 @@ var className = classNames(Classes.TABLE_OVERLAY, Classes.TABLE_VERTICAL_GUIDE, { "bp-table-vertical-guide-flush-left": offset === 0, }); - return (React.createElement("div", { className: className, key: index, style: style })); + return React.createElement("div", { className: className, key: index, style: style }); }; _this.renderHorizontalGuide = function (offset, index) { var style = { @@ -81774,7 +84736,7 @@ var className = classNames(Classes.TABLE_OVERLAY, Classes.TABLE_HORIZONTAL_GUIDE, { "bp-table-horizontal-guide-flush-top": offset === 0, }); - return (React.createElement("div", { className: className, key: index, style: style })); + return React.createElement("div", { className: className, key: index, style: style }); }; return _this; } @@ -81782,13 +84744,13 @@ if (this.props.className !== nextProps.className) { return true; } - return !utils_1.Utils.arraysEqual(this.props.verticalGuides, nextProps.verticalGuides) - || !utils_1.Utils.arraysEqual(this.props.horizontalGuides, nextProps.horizontalGuides); + return (!utils_1.Utils.arraysEqual(this.props.verticalGuides, nextProps.verticalGuides) || + !utils_1.Utils.arraysEqual(this.props.horizontalGuides, nextProps.horizontalGuides)); }; GuideLayer.prototype.render = function () { var _a = this.props, verticalGuides = _a.verticalGuides, horizontalGuides = _a.horizontalGuides, className = _a.className; - var verticals = (verticalGuides == null) ? undefined : verticalGuides.map(this.renderVerticalGuide); - var horizontals = (horizontalGuides == null) ? undefined : horizontalGuides.map(this.renderHorizontalGuide); + var verticals = verticalGuides == null ? undefined : verticalGuides.map(this.renderVerticalGuide); + var horizontals = horizontalGuides == null ? undefined : horizontalGuides.map(this.renderHorizontalGuide); return (React.createElement("div", { className: classNames(className, Classes.TABLE_OVERLAY_LAYER) }, verticals, horizontals)); @@ -81799,20 +84761,18 @@ /***/ }), -/* 613 */ +/* 633 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); - var classNames = __webpack_require__(570); + var tslib_1 = __webpack_require__(586); + var classNames = __webpack_require__(590); var React = __webpack_require__(3); - var Classes = __webpack_require__(571); - var utils_1 = __webpack_require__(572); - var regions_1 = __webpack_require__(587); - var UPDATE_PROPS_KEYS = [ - "className", - ]; + var Classes = __webpack_require__(591); + var utils_1 = __webpack_require__(592); + var regions_1 = __webpack_require__(607); + var UPDATE_PROPS_KEYS = ["className"]; var RegionLayer = (function (_super) { tslib_1.__extends(RegionLayer, _super); function RegionLayer() { @@ -81824,9 +84784,9 @@ return _this; } RegionLayer.prototype.shouldComponentUpdate = function (nextProps) { - return !utils_1.Utils.arraysEqual(this.props.regions, nextProps.regions, regions_1.Regions.regionsEqual) - || !utils_1.Utils.arraysEqual(this.props.regionStyles, nextProps.regionStyles, utils_1.Utils.shallowCompareKeys) - || !utils_1.Utils.shallowCompareKeys(this.props, nextProps, { include: UPDATE_PROPS_KEYS }); + return (!utils_1.Utils.arraysEqual(this.props.regions, nextProps.regions, regions_1.Regions.regionsEqual) || + !utils_1.Utils.arraysEqual(this.props.regionStyles, nextProps.regionStyles, utils_1.Utils.shallowCompareKeys) || + !utils_1.Utils.shallowCompareKeys(this.props, nextProps, { include: UPDATE_PROPS_KEYS })); }; RegionLayer.prototype.render = function () { return React.createElement("div", { className: Classes.TABLE_OVERLAY_LAYER }, this.renderRegionChildren()); @@ -81844,23 +84804,20 @@ /***/ }), -/* 614 */ +/* 634 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var Classes = __webpack_require__(571); - var rect_1 = __webpack_require__(588); - var utils_1 = __webpack_require__(572); + var Classes = __webpack_require__(591); + var rect_1 = __webpack_require__(608); + var utils_1 = __webpack_require__(592); var Locator = (function () { - function Locator(tableElement, bodyElement) { + function Locator(tableElement, scrollContainerElement, cellContainerElement) { var _this = this; this.tableElement = tableElement; - this.bodyElement = bodyElement; - this.rowHeaderWidth = 0; - this.columnHeaderHeight = 0; - this.numFrozenRows = 0; - this.numFrozenColumns = 0; + this.scrollContainerElement = scrollContainerElement; + this.cellContainerElement = cellContainerElement; this.convertCellIndexToClientX = function (index) { return _this.grid.getCumulativeWidthAt(index); }; @@ -81878,29 +84835,27 @@ return (cellTop + cellBottom) / 2; }; this.toGridX = function (clientX) { - var tableOffsetFromPageLeft = _this.tableElement.getBoundingClientRect().left; - var cursorOffsetFromTableLeft = clientX - tableOffsetFromPageLeft; - var cursorOffsetFromGridLeft = cursorOffsetFromTableLeft - _this.rowHeaderWidth; - var scrollOffsetFromTableLeft = _this.bodyElement.scrollLeft; - var isCursorWithinFrozenColumns = _this.numFrozenColumns != null - && _this.numFrozenColumns > 0 - && cursorOffsetFromGridLeft <= _this.grid.getCumulativeWidthBefore(_this.numFrozenColumns); + var gridOffsetFromPageLeft = _this.cellContainerElement.getBoundingClientRect().left; + var scrollOffsetFromGridLeft = _this.scrollContainerElement.scrollLeft; + var cursorOffsetFromGridLeft = clientX - (gridOffsetFromPageLeft + scrollOffsetFromGridLeft); + var isCursorWithinFrozenColumns = _this.numFrozenColumns != null && + _this.numFrozenColumns > 0 && + cursorOffsetFromGridLeft <= _this.grid.getCumulativeWidthBefore(_this.numFrozenColumns); return isCursorWithinFrozenColumns ? cursorOffsetFromGridLeft - : cursorOffsetFromGridLeft + scrollOffsetFromTableLeft; + : cursorOffsetFromGridLeft + scrollOffsetFromGridLeft; }; this.toGridY = function (clientY) { - var tableOffsetFromPageTop = _this.tableElement.getBoundingClientRect().top; - var cursorOffsetFromTableTop = clientY - tableOffsetFromPageTop; - var cursorOffsetFromGridTop = cursorOffsetFromTableTop - _this.columnHeaderHeight; - var scrollOffsetFromTableTop = _this.bodyElement.scrollTop; - var isCursorWithinFrozenRows = _this.numFrozenRows != null - && _this.numFrozenRows > 0 - && cursorOffsetFromGridTop <= _this.grid.getCumulativeHeightBefore(_this.numFrozenRows); - return isCursorWithinFrozenRows - ? cursorOffsetFromGridTop - : cursorOffsetFromGridTop + scrollOffsetFromTableTop; + var gridOffsetFromPageTop = _this.cellContainerElement.getBoundingClientRect().top; + var scrollOffsetFromGridTop = _this.scrollContainerElement.scrollTop; + var cursorOffsetFromGridTop = clientY - (gridOffsetFromPageTop + scrollOffsetFromGridTop); + var isCursorWithinFrozenRows = _this.numFrozenRows != null && + _this.numFrozenRows > 0 && + cursorOffsetFromGridTop <= _this.grid.getCumulativeHeightBefore(_this.numFrozenRows); + return isCursorWithinFrozenRows ? cursorOffsetFromGridTop : cursorOffsetFromGridTop + scrollOffsetFromGridTop; }; + this.numFrozenRows = 0; + this.numFrozenColumns = 0; } Locator.prototype.setGrid = function (grid) { this.grid = grid; @@ -81914,19 +84869,11 @@ this.numFrozenColumns = numFrozenColumns; return this; }; - Locator.prototype.setColumnHeaderHeight = function (columnHeaderHeight) { - this.columnHeaderHeight = columnHeaderHeight; - return this; - }; - Locator.prototype.setRowHeaderWidth = function (rowHeaderWidth) { - this.rowHeaderWidth = rowHeaderWidth; - return this; - }; Locator.prototype.getViewportRect = function () { - return new rect_1.Rect(this.bodyElement.scrollLeft, this.bodyElement.scrollTop, this.bodyElement.clientWidth, this.bodyElement.clientHeight); + return new rect_1.Rect(this.scrollContainerElement.scrollLeft, this.scrollContainerElement.scrollTop, this.scrollContainerElement.clientWidth, this.scrollContainerElement.clientHeight); }; Locator.prototype.getWidestVisibleCellInColumn = function (columnIndex) { - var cells = this.tableElement.getElementsByClassName(Classes.columnCellIndexClass(columnIndex)); + var cells = this.cellContainerElement.getElementsByClassName(Classes.columnCellIndexClass(columnIndex)); var max = 0; for (var i = 0; i < cells.length; i++) { var contentWidth = utils_1.Utils.measureElementTextContent(cells.item(i)).width; @@ -81938,8 +84885,7 @@ return max; }; Locator.prototype.getTallestVisibleCellInColumn = function (columnIndex) { - var cells = this.tableElement - .getElementsByClassName(Classes.columnCellIndexClass(columnIndex) + " " + Classes.TABLE_CELL); + var cells = this.cellContainerElement.getElementsByClassName(Classes.columnCellIndexClass(columnIndex) + " " + Classes.TABLE_CELL); var max = 0; for (var i = 0; i < cells.length; i++) { var cellValue = cells.item(i).querySelector("." + Classes.TABLE_TRUNCATED_VALUE); @@ -82001,17 +84947,17 @@ /***/ }), -/* 615 */ +/* 635 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var core_1 = __webpack_require__(179); - var classNames = __webpack_require__(570); + var classNames = __webpack_require__(590); var React = __webpack_require__(3); - var Classes = __webpack_require__(571); - var Errors = __webpack_require__(597); + var Classes = __webpack_require__(591); + var Errors = __webpack_require__(617); var QuadrantType; (function (QuadrantType) { QuadrantType[QuadrantType["MAIN"] = 0] = "MAIN"; @@ -82019,35 +84965,37 @@ QuadrantType[QuadrantType["LEFT"] = 2] = "LEFT"; QuadrantType[QuadrantType["TOP_LEFT"] = 3] = "TOP_LEFT"; })(QuadrantType = exports.QuadrantType || (exports.QuadrantType = {})); + exports.QUADRANT_TYPES = [QuadrantType.MAIN, QuadrantType.TOP, QuadrantType.LEFT, QuadrantType.TOP_LEFT]; var TableQuadrant = (function (_super) { tslib_1.__extends(TableQuadrant, _super); function TableQuadrant() { return _super !== null && _super.apply(this, arguments) || this; } TableQuadrant.prototype.render = function () { - var _a = this.props, isRowHeaderShown = _a.isRowHeaderShown, quadrantType = _a.quadrantType; + var _a = this.props, grid = _a.grid, isRowHeaderShown = _a.isRowHeaderShown, quadrantType = _a.quadrantType, renderBody = _a.renderBody; var showFrozenRowsOnly = quadrantType === QuadrantType.TOP || quadrantType === QuadrantType.TOP_LEFT; var showFrozenColumnsOnly = quadrantType === QuadrantType.LEFT || quadrantType === QuadrantType.TOP_LEFT; var className = classNames(Classes.TABLE_QUADRANT, this.getQuadrantCssClass(), this.props.className); - var maybeMenu = isRowHeaderShown ? this.props.renderMenu() : undefined; - var maybeRowHeader = isRowHeaderShown ? this.props.renderRowHeader(showFrozenRowsOnly) : undefined; - var columnHeader = this.props.renderColumnHeader(showFrozenColumnsOnly); + var maybeMenu = isRowHeaderShown && core_1.Utils.safeInvoke(this.props.renderMenu); + var maybeRowHeader = isRowHeaderShown && core_1.Utils.safeInvoke(this.props.renderRowHeader, showFrozenRowsOnly); + var maybeColumnHeader = core_1.Utils.safeInvoke(this.props.renderColumnHeader, showFrozenColumnsOnly); + var body = quadrantType != null ? renderBody(quadrantType, showFrozenRowsOnly, showFrozenColumnsOnly) : renderBody(); var bottomContainerStyle = { - height: this.props.grid.getHeight(), - width: this.props.grid.getWidth(), + height: grid.getHeight(), + width: grid.getWidth(), }; return (React.createElement("div", { className: className, style: this.props.style, ref: this.props.quadrantRef }, React.createElement("div", { className: Classes.TABLE_QUADRANT_SCROLL_CONTAINER, ref: this.props.scrollContainerRef, onScroll: this.props.onScroll, onWheel: this.props.onWheel }, React.createElement("div", { className: Classes.TABLE_TOP_CONTAINER }, maybeMenu, - columnHeader), + maybeColumnHeader), React.createElement("div", { className: Classes.TABLE_BOTTOM_CONTAINER, style: bottomContainerStyle }, maybeRowHeader, - React.createElement("div", { className: Classes.TABLE_QUADRANT_BODY_CONTAINER, ref: this.props.bodyRef }, this.props.renderBody(quadrantType, showFrozenRowsOnly, showFrozenColumnsOnly)))))); + React.createElement("div", { className: Classes.TABLE_QUADRANT_BODY_CONTAINER, ref: this.props.bodyRef }, body))))); }; TableQuadrant.prototype.validateProps = function (nextProps) { var quadrantType = nextProps.quadrantType; - if (nextProps.onScroll != null && quadrantType !== QuadrantType.MAIN) { + if (nextProps.onScroll != null && quadrantType != null && quadrantType !== QuadrantType.MAIN) { console.warn(Errors.QUADRANT_ON_SCROLL_UNNECESSARILY_DEFINED); } }; @@ -82074,17 +85022,20 @@ /***/ }), -/* 616 */ +/* 636 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var core_1 = __webpack_require__(179); var React = __webpack_require__(3); - var Classes = __webpack_require__(571); - var utils_1 = __webpack_require__(572); - var tableQuadrant_1 = __webpack_require__(615); + var Classes = __webpack_require__(591); + var ScrollUtils = __webpack_require__(623); + var utils_1 = __webpack_require__(592); + var tableQuadrant_1 = __webpack_require__(635); + var tableQuadrantStackCache_1 = __webpack_require__(637); + var DEFAULT_VIEW_SYNC_DELAY = 500; var TableQuadrantStack = (function (_super) { tslib_1.__extends(TableQuadrantStack, _super); function TableQuadrantStack(props, context) { @@ -82103,80 +85054,102 @@ _b); _this.wasMainQuadrantScrollChangedFromOtherOnWheelCallback = false; _this.renderMainQuadrantMenu = function () { - return _this.props.renderMenu(_this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.MAIN].menu); + return core_1.Utils.safeInvoke(_this.props.renderMenu, _this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.MAIN].menu); }; _this.renderTopQuadrantMenu = function () { - return _this.props.renderMenu(_this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.TOP].menu); + return core_1.Utils.safeInvoke(_this.props.renderMenu, _this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.TOP].menu); }; _this.renderLeftQuadrantMenu = function () { - return _this.props.renderMenu(_this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.LEFT].menu); + return core_1.Utils.safeInvoke(_this.props.renderMenu, _this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.LEFT].menu); }; _this.renderTopLeftQuadrantMenu = function () { - return _this.props.renderMenu(_this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.TOP_LEFT].menu); + return core_1.Utils.safeInvoke(_this.props.renderMenu, _this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.TOP_LEFT].menu); }; _this.renderMainQuadrantColumnHeader = function (showFrozenColumnsOnly) { var refHandler = _this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.MAIN].columnHeader; var resizeHandler = _this.handleColumnResizeGuideMain; - var reorderingHandler = _this.handleColumnsReorderingMain; - return _this.props.renderColumnHeader(refHandler, resizeHandler, reorderingHandler, showFrozenColumnsOnly); + var reorderingHandler = _this.handleColumnsReordering; + return core_1.Utils.safeInvoke(_this.props.renderColumnHeader, refHandler, resizeHandler, reorderingHandler, showFrozenColumnsOnly); }; _this.renderTopQuadrantColumnHeader = function (showFrozenColumnsOnly) { var refHandler = _this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.TOP].columnHeader; var resizeHandler = _this.handleColumnResizeGuideTop; - var reorderingHandler = _this.handleColumnsReorderingTop; - return _this.props.renderColumnHeader(refHandler, resizeHandler, reorderingHandler, showFrozenColumnsOnly); + var reorderingHandler = _this.handleColumnsReordering; + return core_1.Utils.safeInvoke(_this.props.renderColumnHeader, refHandler, resizeHandler, reorderingHandler, showFrozenColumnsOnly); }; _this.renderLeftQuadrantColumnHeader = function (showFrozenColumnsOnly) { var refHandler = _this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.LEFT].columnHeader; var resizeHandler = _this.handleColumnResizeGuideLeft; - var reorderingHandler = _this.handleColumnsReorderingLeft; - return _this.props.renderColumnHeader(refHandler, resizeHandler, reorderingHandler, showFrozenColumnsOnly); + var reorderingHandler = _this.handleColumnsReordering; + return core_1.Utils.safeInvoke(_this.props.renderColumnHeader, refHandler, resizeHandler, reorderingHandler, showFrozenColumnsOnly); }; _this.renderTopLeftQuadrantColumnHeader = function (showFrozenColumnsOnly) { var refHandler = _this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.TOP_LEFT].columnHeader; var resizeHandler = _this.handleColumnResizeGuideTopLeft; - var reorderingHandler = _this.handleColumnsReorderingTopLeft; - return _this.props.renderColumnHeader(refHandler, resizeHandler, reorderingHandler, showFrozenColumnsOnly); + var reorderingHandler = _this.handleColumnsReordering; + return core_1.Utils.safeInvoke(_this.props.renderColumnHeader, refHandler, resizeHandler, reorderingHandler, showFrozenColumnsOnly); }; _this.renderMainQuadrantRowHeader = function (showFrozenRowsOnly) { var refHandler = _this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.MAIN].rowHeader; var resizeHandler = _this.handleRowResizeGuideMain; - var reorderingHandler = _this.handleRowsReorderingMain; - return _this.props.renderRowHeader(refHandler, resizeHandler, reorderingHandler, showFrozenRowsOnly); + var reorderingHandler = _this.handleRowsReordering; + return core_1.Utils.safeInvoke(_this.props.renderRowHeader, refHandler, resizeHandler, reorderingHandler, showFrozenRowsOnly); }; _this.renderTopQuadrantRowHeader = function (showFrozenRowsOnly) { var refHandler = _this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.TOP].rowHeader; var resizeHandler = _this.handleRowResizeGuideTop; - var reorderingHandler = _this.handleRowsReorderingTop; - return _this.props.renderRowHeader(refHandler, resizeHandler, reorderingHandler, showFrozenRowsOnly); + var reorderingHandler = _this.handleRowsReordering; + return core_1.Utils.safeInvoke(_this.props.renderRowHeader, refHandler, resizeHandler, reorderingHandler, showFrozenRowsOnly); }; _this.renderLeftQuadrantRowHeader = function (showFrozenRowsOnly) { var refHandler = _this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.LEFT].rowHeader; var resizeHandler = _this.handleRowResizeGuideLeft; - var reorderingHandler = _this.handleRowsReorderingLeft; - return _this.props.renderRowHeader(refHandler, resizeHandler, reorderingHandler, showFrozenRowsOnly); + var reorderingHandler = _this.handleRowsReordering; + return core_1.Utils.safeInvoke(_this.props.renderRowHeader, refHandler, resizeHandler, reorderingHandler, showFrozenRowsOnly); }; _this.renderTopLeftQuadrantRowHeader = function (showFrozenRowsOnly) { var refHandler = _this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.TOP_LEFT].rowHeader; var resizeHandler = _this.handleRowResizeGuideTopLeft; - var reorderingHandler = _this.handleRowsReorderingTopLeft; - return _this.props.renderRowHeader(refHandler, resizeHandler, reorderingHandler, showFrozenRowsOnly); + var reorderingHandler = _this.handleRowsReordering; + return core_1.Utils.safeInvoke(_this.props.renderRowHeader, refHandler, resizeHandler, reorderingHandler, showFrozenRowsOnly); }; _this.handleMainQuadrantScroll = function (event) { if (_this.wasMainQuadrantScrollChangedFromOtherOnWheelCallback) { _this.wasMainQuadrantScrollChangedFromOtherOnWheelCallback = false; return; } - var nextScrollTop = _this.quadrantRefs[tableQuadrant_1.QuadrantType.MAIN].scrollContainer.scrollTop; - var nextScrollLeft = _this.quadrantRefs[tableQuadrant_1.QuadrantType.MAIN].scrollContainer.scrollLeft; + core_1.Utils.safeInvoke(_this.props.onScroll, event); + var mainScrollContainer = _this.quadrantRefs[tableQuadrant_1.QuadrantType.MAIN].scrollContainer; + var nextScrollTop = mainScrollContainer.scrollTop; + var nextScrollLeft = mainScrollContainer.scrollLeft; _this.quadrantRefs[tableQuadrant_1.QuadrantType.LEFT].scrollContainer.scrollTop = nextScrollTop; _this.quadrantRefs[tableQuadrant_1.QuadrantType.TOP].scrollContainer.scrollLeft = nextScrollLeft; - _this.props.onScroll(event); + _this.cache.setQuadrantScrollOffset(tableQuadrant_1.QuadrantType.LEFT, "scrollTop", nextScrollTop); + _this.cache.setQuadrantScrollOffset(tableQuadrant_1.QuadrantType.TOP, "scrollLeft", nextScrollLeft); + _this.syncQuadrantViewsDebounced(); }; _this.handleWheel = function (event) { + core_1.Utils.safeInvoke(_this.props.onScroll, event); _this.handleDirectionalWheel("horizontal", event.deltaX, tableQuadrant_1.QuadrantType.MAIN, [tableQuadrant_1.QuadrantType.TOP]); _this.handleDirectionalWheel("vertical", event.deltaY, tableQuadrant_1.QuadrantType.MAIN, [tableQuadrant_1.QuadrantType.LEFT]); - _this.props.onScroll(event); + _this.syncQuadrantViewsDebounced(); + }; + _this.handleDirectionalWheel = function (direction, delta, quadrantType, quadrantTypesToSync) { + var isHorizontal = direction === "horizontal"; + var scrollKey = isHorizontal ? "scrollLeft" : "scrollTop"; + var isScrollDisabled = isHorizontal + ? _this.props.isHorizontalScrollDisabled + : _this.props.isVerticalScrollDisabled; + if (!isScrollDisabled) { + _this.wasMainQuadrantScrollChangedFromOtherOnWheelCallback = true; + var nextScrollOffset_1 = _this.quadrantRefs[quadrantType].scrollContainer[scrollKey] + delta; + _this.quadrantRefs[quadrantType].scrollContainer[scrollKey] = nextScrollOffset_1; + _this.cache.setQuadrantScrollOffset(quadrantType, scrollKey, nextScrollOffset_1); + quadrantTypesToSync.forEach(function (quadrantTypeToSync) { + _this.quadrantRefs[quadrantTypeToSync].scrollContainer[scrollKey] = nextScrollOffset_1; + _this.cache.setQuadrantScrollOffset(quadrantTypeToSync, scrollKey, nextScrollOffset_1); + }); + } }; _this.handleColumnResizeGuideMain = function (verticalGuides) { _this.invokeColumnResizeHandler(verticalGuides, tableQuadrant_1.QuadrantType.MAIN); @@ -82192,7 +85165,7 @@ }; _this.invokeColumnResizeHandler = function (verticalGuides, quadrantType) { var adjustedGuides = _this.adjustVerticalGuides(verticalGuides, quadrantType); - _this.props.handleColumnResizeGuide(adjustedGuides); + core_1.Utils.safeInvoke(_this.props.handleColumnResizeGuide, adjustedGuides); }; _this.handleRowResizeGuideMain = function (verticalGuides) { _this.invokeRowResizeHandler(verticalGuides, tableQuadrant_1.QuadrantType.MAIN); @@ -82208,65 +85181,96 @@ }; _this.invokeRowResizeHandler = function (verticalGuides, quadrantType) { var adjustedGuides = _this.adjustHorizontalGuides(verticalGuides, quadrantType); - _this.props.handleRowResizeGuide(adjustedGuides); + core_1.Utils.safeInvoke(_this.props.handleRowResizeGuide, adjustedGuides); }; - _this.handleColumnsReorderingMain = function (oldIndex, newIndex, length) { - _this.invokeColumnsReorderingHandler(oldIndex, newIndex, length); - }; - _this.handleColumnsReorderingTop = function (oldIndex, newIndex, length) { - _this.invokeColumnsReorderingHandler(oldIndex, newIndex, length); - }; - _this.handleColumnsReorderingLeft = function (oldIndex, newIndex, length) { - _this.invokeColumnsReorderingHandler(oldIndex, newIndex, length); - }; - _this.handleColumnsReorderingTopLeft = function (oldIndex, newIndex, length) { - _this.invokeColumnsReorderingHandler(oldIndex, newIndex, length); - }; - _this.invokeColumnsReorderingHandler = function (oldIndex, newIndex, length) { + _this.handleColumnsReordering = function (oldIndex, newIndex, length) { var guideIndex = utils_1.Utils.reorderedIndexToGuideIndex(oldIndex, newIndex, length); var leftOffset = _this.props.grid.getCumulativeWidthBefore(guideIndex); var quadrantType = guideIndex <= _this.props.numFrozenColumns ? tableQuadrant_1.QuadrantType.TOP_LEFT : tableQuadrant_1.QuadrantType.TOP; var verticalGuides = _this.adjustVerticalGuides([leftOffset], quadrantType); - _this.props.handleColumnsReordering(verticalGuides); - }; - _this.handleRowsReorderingMain = function (oldIndex, newIndex, length) { - _this.invokeRowsReorderingHandler(oldIndex, newIndex, length); - }; - _this.handleRowsReorderingTop = function (oldIndex, newIndex, length) { - _this.invokeRowsReorderingHandler(oldIndex, newIndex, length); - }; - _this.handleRowsReorderingLeft = function (oldIndex, newIndex, length) { - _this.invokeRowsReorderingHandler(oldIndex, newIndex, length); - }; - _this.handleRowsReorderingTopLeft = function (oldIndex, newIndex, length) { - _this.invokeRowsReorderingHandler(oldIndex, newIndex, length); + core_1.Utils.safeInvoke(_this.props.handleColumnsReordering, verticalGuides); }; - _this.invokeRowsReorderingHandler = function (oldIndex, newIndex, length) { + _this.handleRowsReordering = function (oldIndex, newIndex, length) { var guideIndex = utils_1.Utils.reorderedIndexToGuideIndex(oldIndex, newIndex, length); var topOffset = _this.props.grid.getCumulativeHeightBefore(guideIndex); var quadrantType = guideIndex <= _this.props.numFrozenRows ? tableQuadrant_1.QuadrantType.TOP_LEFT : tableQuadrant_1.QuadrantType.LEFT; var horizontalGuides = _this.adjustHorizontalGuides([topOffset], quadrantType); - _this.props.handleRowsReordering(horizontalGuides); + core_1.Utils.safeInvoke(_this.props.handleRowsReordering, horizontalGuides); }; - _this.handleDirectionalWheel = function (direction, delta, quadrantType, quadrantTypesToSync) { - var isHorizontal = direction === "horizontal"; - var scrollKey = isHorizontal - ? "scrollLeft" - : "scrollTop"; - var isScrollDisabled = isHorizontal - ? _this.props.isHorizontalScrollDisabled - : _this.props.isVerticalScrollDisabled; - if (!isScrollDisabled) { - _this.wasMainQuadrantScrollChangedFromOtherOnWheelCallback = true; - var nextScrollPosition_1 = _this.quadrantRefs[quadrantType].scrollContainer[scrollKey] + delta; - _this.quadrantRefs[quadrantType].scrollContainer[scrollKey] = nextScrollPosition_1; - quadrantTypesToSync.forEach(function (quadrantTypeToSync) { - _this.quadrantRefs[quadrantTypeToSync].scrollContainer[scrollKey] = nextScrollPosition_1; - }); + _this.syncQuadrantViewsDebounced = function () { + var viewSyncDelay = _this.props.viewSyncDelay; + if (viewSyncDelay < 0) { + _this.syncQuadrantViews(); + } + else { + clearInterval(_this.debouncedViewSyncInterval); + _this.debouncedViewSyncInterval = setTimeout(_this.syncQuadrantViews, viewSyncDelay); + } + }; + _this.syncQuadrantViews = function () { + var mainRefs = _this.quadrantRefs[tableQuadrant_1.QuadrantType.MAIN]; + var mainColumnHeader = mainRefs.columnHeader; + var mainScrollContainer = mainRefs.scrollContainer; + var rowHeaderWidth = _this.measureDesiredRowHeaderWidth(); + var columnHeaderHeight = mainColumnHeader == null ? 0 : mainColumnHeader.clientHeight; + var nextMenuElementWidth = rowHeaderWidth; + var nextMenuElementHeight = columnHeaderHeight; + var leftQuadrantGridWidth = _this.getSecondaryQuadrantSize("width"); + var topQuadrantGridHeight = _this.getSecondaryQuadrantSize("height"); + var nextLeftQuadrantWidth = rowHeaderWidth + leftQuadrantGridWidth; + var nextTopQuadrantHeight = columnHeaderHeight + topQuadrantGridHeight; + var rightScrollBarWidth = ScrollUtils.measureScrollBarThickness(mainScrollContainer, "vertical"); + var bottomScrollBarHeight = ScrollUtils.measureScrollBarThickness(mainScrollContainer, "horizontal"); + _this.cache.setRowHeaderWidth(rowHeaderWidth); + _this.cache.setColumnHeaderHeight(columnHeaderHeight); + tableQuadrant_1.QUADRANT_TYPES.forEach(function (quadrantType) { + var scrollContainer = _this.quadrantRefs[quadrantType].scrollContainer; + _this.cache.setQuadrantScrollOffset(quadrantType, "scrollLeft", scrollContainer.scrollLeft); + _this.cache.setQuadrantScrollOffset(quadrantType, "scrollTop", scrollContainer.scrollTop); + }); + _this.setQuadrantRowHeaderSizes(rowHeaderWidth); + _this.setQuadrantMenuElementSizes(nextMenuElementWidth, nextMenuElementHeight); + _this.setQuadrantSize(tableQuadrant_1.QuadrantType.LEFT, "width", nextLeftQuadrantWidth); + _this.setQuadrantSize(tableQuadrant_1.QuadrantType.TOP, "height", nextTopQuadrantHeight); + _this.setQuadrantSize(tableQuadrant_1.QuadrantType.TOP_LEFT, "width", nextLeftQuadrantWidth); + _this.setQuadrantSize(tableQuadrant_1.QuadrantType.TOP_LEFT, "height", nextTopQuadrantHeight); + _this.setQuadrantOffset(tableQuadrant_1.QuadrantType.TOP, "right", rightScrollBarWidth); + _this.setQuadrantOffset(tableQuadrant_1.QuadrantType.LEFT, "bottom", bottomScrollBarHeight); + }; + _this.setQuadrantSize = function (quadrantType, dimension, value) { + _this.quadrantRefs[quadrantType].quadrant.style[dimension] = value + "px"; + }; + _this.setQuadrantOffset = function (quadrantType, side, value) { + _this.quadrantRefs[quadrantType].quadrant.style[side] = value + "px"; + }; + _this.setQuadrantRowHeaderSizes = function (width) { + var mainRowHeader = _this.quadrantRefs[tableQuadrant_1.QuadrantType.MAIN].rowHeader; + if (mainRowHeader == null) { + return; + } + var widthString = width + "px"; + mainRowHeader.style.width = widthString; + _this.quadrantRefs[tableQuadrant_1.QuadrantType.TOP].rowHeader.style.width = widthString; + _this.quadrantRefs[tableQuadrant_1.QuadrantType.LEFT].rowHeader.style.width = widthString; + _this.quadrantRefs[tableQuadrant_1.QuadrantType.TOP_LEFT].rowHeader.style.width = widthString; + }; + _this.setQuadrantMenuElementSizes = function (width, height) { + _this.setQuadrantMenuElementSize(tableQuadrant_1.QuadrantType.MAIN, width, height); + _this.setQuadrantMenuElementSize(tableQuadrant_1.QuadrantType.TOP, width, height); + _this.setQuadrantMenuElementSize(tableQuadrant_1.QuadrantType.LEFT, width, height); + _this.setQuadrantMenuElementSize(tableQuadrant_1.QuadrantType.TOP_LEFT, width, height); + }; + _this.setQuadrantMenuElementSize = function (quadrantType, width, height) { + var quadrantMenu = _this.quadrantRefs[quadrantType].menu; + if (quadrantMenu == null) { + return; } + quadrantMenu.style.width = width + "px"; + quadrantMenu.style.height = height + "px"; }; _this.throttledHandleMainQuadrantScroll = core_1.Utils.throttleReactEventCallback(_this.handleMainQuadrantScroll); _this.throttledHandleWheel = core_1.Utils.throttleReactEventCallback(_this.handleWheel, { preventDefault: true }); + _this.cache = new tableQuadrantStackCache_1.TableQuadrantStackCache(); return _this; var _a, _b; } @@ -82275,157 +85279,169 @@ this.wasMainQuadrantScrollChangedFromOtherOnWheelCallback = false; scrollContainer.scrollLeft = scrollLeft; scrollContainer.scrollTop = scrollTop; + this.syncQuadrantViews(); }; TableQuadrantStack.prototype.componentDidMount = function () { this.emitRefs(); - this.syncQuadrantSizes(); - this.syncQuadrantMenuElementWidths(); - core_1.Utils.safeInvoke(this.props.columnHeaderRef, this.findColumnHeader(tableQuadrant_1.QuadrantType.MAIN)); - core_1.Utils.safeInvoke(this.props.rowHeaderRef, this.findRowHeader(tableQuadrant_1.QuadrantType.MAIN)); + this.syncQuadrantViews(); }; - TableQuadrantStack.prototype.componentDidUpdate = function () { - this.emitRefs(); - this.syncQuadrantSizes(); - this.syncQuadrantMenuElementWidths(); - core_1.Utils.safeInvoke(this.props.columnHeaderRef, this.findColumnHeader(tableQuadrant_1.QuadrantType.MAIN)); - core_1.Utils.safeInvoke(this.props.rowHeaderRef, this.findRowHeader(tableQuadrant_1.QuadrantType.MAIN)); + TableQuadrantStack.prototype.componentDidUpdate = function (prevProps) { + if (this.props.numFrozenColumns !== prevProps.numFrozenColumns || + this.props.numFrozenRows !== prevProps.numFrozenRows || + this.props.isRowHeaderShown !== prevProps.isRowHeaderShown) { + this.emitRefs(); + this.syncQuadrantViews(); + } }; TableQuadrantStack.prototype.render = function () { - var _a = this.props, grid = _a.grid, isRowHeaderShown = _a.isRowHeaderShown, renderBody = _a.renderBody; + var _a = this.props, grid = _a.grid, isRowHeaderShown = _a.isRowHeaderShown, renderBody = _a.renderBody, throttleScrolling = _a.throttleScrolling; + var onMainQuadrantScroll = throttleScrolling + ? this.throttledHandleMainQuadrantScroll + : this.handleMainQuadrantScroll; + var onWheel = throttleScrolling ? this.throttledHandleWheel : this.handleWheel; return (React.createElement("div", { className: Classes.TABLE_QUADRANT_STACK }, - React.createElement(tableQuadrant_1.TableQuadrant, { bodyRef: this.props.bodyRef, grid: grid, isRowHeaderShown: isRowHeaderShown, onScroll: this.throttledHandleMainQuadrantScroll, onWheel: this.throttledHandleWheel, quadrantRef: this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.MAIN].quadrant, quadrantType: tableQuadrant_1.QuadrantType.MAIN, renderBody: renderBody, renderColumnHeader: this.renderMainQuadrantColumnHeader, renderMenu: this.renderMainQuadrantMenu, renderRowHeader: this.renderMainQuadrantRowHeader, scrollContainerRef: this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.MAIN].scrollContainer }), - React.createElement(tableQuadrant_1.TableQuadrant, { grid: grid, isRowHeaderShown: isRowHeaderShown, onWheel: this.throttledHandleWheel, quadrantRef: this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.TOP].quadrant, quadrantType: tableQuadrant_1.QuadrantType.TOP, renderBody: renderBody, renderColumnHeader: this.renderTopQuadrantColumnHeader, renderMenu: this.renderTopQuadrantMenu, renderRowHeader: this.renderTopQuadrantRowHeader, scrollContainerRef: this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.TOP].scrollContainer }), - React.createElement(tableQuadrant_1.TableQuadrant, { grid: grid, isRowHeaderShown: isRowHeaderShown, onWheel: this.throttledHandleWheel, quadrantRef: this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.LEFT].quadrant, quadrantType: tableQuadrant_1.QuadrantType.LEFT, renderBody: renderBody, renderColumnHeader: this.renderLeftQuadrantColumnHeader, renderMenu: this.renderLeftQuadrantMenu, renderRowHeader: this.renderLeftQuadrantRowHeader, scrollContainerRef: this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.LEFT].scrollContainer }), - React.createElement(tableQuadrant_1.TableQuadrant, { grid: grid, isRowHeaderShown: isRowHeaderShown, onWheel: this.throttledHandleWheel, quadrantRef: this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.TOP_LEFT].quadrant, quadrantType: tableQuadrant_1.QuadrantType.TOP_LEFT, renderBody: renderBody, renderColumnHeader: this.renderTopLeftQuadrantColumnHeader, renderMenu: this.renderTopLeftQuadrantMenu, renderRowHeader: this.renderTopLeftQuadrantRowHeader, scrollContainerRef: this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.TOP_LEFT].scrollContainer }))); + React.createElement(tableQuadrant_1.TableQuadrant, { bodyRef: this.props.bodyRef, grid: grid, isRowHeaderShown: isRowHeaderShown, onScroll: onMainQuadrantScroll, onWheel: onWheel, quadrantRef: this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.MAIN].quadrant, quadrantType: tableQuadrant_1.QuadrantType.MAIN, renderBody: renderBody, renderColumnHeader: this.renderMainQuadrantColumnHeader, renderMenu: this.renderMainQuadrantMenu, renderRowHeader: this.renderMainQuadrantRowHeader, scrollContainerRef: this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.MAIN].scrollContainer }), + React.createElement(tableQuadrant_1.TableQuadrant, { grid: grid, isRowHeaderShown: isRowHeaderShown, onWheel: onWheel, quadrantRef: this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.TOP].quadrant, quadrantType: tableQuadrant_1.QuadrantType.TOP, renderBody: renderBody, renderColumnHeader: this.renderTopQuadrantColumnHeader, renderMenu: this.renderTopQuadrantMenu, renderRowHeader: this.renderTopQuadrantRowHeader, scrollContainerRef: this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.TOP].scrollContainer }), + React.createElement(tableQuadrant_1.TableQuadrant, { grid: grid, isRowHeaderShown: isRowHeaderShown, onWheel: onWheel, quadrantRef: this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.LEFT].quadrant, quadrantType: tableQuadrant_1.QuadrantType.LEFT, renderBody: renderBody, renderColumnHeader: this.renderLeftQuadrantColumnHeader, renderMenu: this.renderLeftQuadrantMenu, renderRowHeader: this.renderLeftQuadrantRowHeader, scrollContainerRef: this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.LEFT].scrollContainer }), + React.createElement(tableQuadrant_1.TableQuadrant, { grid: grid, isRowHeaderShown: isRowHeaderShown, onWheel: onWheel, quadrantRef: this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.TOP_LEFT].quadrant, quadrantType: tableQuadrant_1.QuadrantType.TOP_LEFT, renderBody: renderBody, renderColumnHeader: this.renderTopLeftQuadrantColumnHeader, renderMenu: this.renderTopLeftQuadrantMenu, renderRowHeader: this.renderTopLeftQuadrantRowHeader, scrollContainerRef: this.quadrantRefHandlers[tableQuadrant_1.QuadrantType.TOP_LEFT].scrollContainer }))); }; TableQuadrantStack.prototype.generateQuadrantRefHandlers = function (quadrantType) { var _this = this; var reducer = function (agg, key) { - agg[key] = function (ref) { return _this.quadrantRefs[quadrantType][key] = ref; }; + agg[key] = function (ref) { return (_this.quadrantRefs[quadrantType][key] = ref); }; return agg; }; return ["columnHeader", "menu", "quadrant", "rowHeader", "scrollContainer"].reduce(reducer, {}); }; TableQuadrantStack.prototype.emitRefs = function () { - core_1.Utils.safeInvoke(this.props.columnHeaderRef, this.quadrantRefs[tableQuadrant_1.QuadrantType.MAIN].columnHeader); core_1.Utils.safeInvoke(this.props.quadrantRef, this.quadrantRefs[tableQuadrant_1.QuadrantType.MAIN].quadrant); core_1.Utils.safeInvoke(this.props.rowHeaderRef, this.quadrantRefs[tableQuadrant_1.QuadrantType.MAIN].rowHeader); + core_1.Utils.safeInvoke(this.props.columnHeaderRef, this.quadrantRefs[tableQuadrant_1.QuadrantType.MAIN].columnHeader); core_1.Utils.safeInvoke(this.props.scrollContainerRef, this.quadrantRefs[tableQuadrant_1.QuadrantType.MAIN].scrollContainer); }; - TableQuadrantStack.prototype.syncQuadrantMenuElementWidths = function () { - this.syncQuadrantMenuElementWidth(tableQuadrant_1.QuadrantType.MAIN); - this.syncQuadrantMenuElementWidth(tableQuadrant_1.QuadrantType.TOP); - this.syncQuadrantMenuElementWidth(tableQuadrant_1.QuadrantType.LEFT); - this.syncQuadrantMenuElementWidth(tableQuadrant_1.QuadrantType.TOP_LEFT); - }; - TableQuadrantStack.prototype.syncQuadrantMenuElementWidth = function (quadrantType) { - var mainQuadrantMenu = this.quadrantRefs[tableQuadrant_1.QuadrantType.MAIN].menu; - var mainQuadrantRowHeader = this.quadrantRefs[tableQuadrant_1.QuadrantType.MAIN].rowHeader; - var quadrantMenu = this.quadrantRefs[quadrantType].menu; - if (mainQuadrantMenu != null && mainQuadrantRowHeader != null && quadrantMenu != null) { - var width = mainQuadrantRowHeader.getBoundingClientRect().width; - quadrantMenu.style.width = width + "px"; - if (quadrantType !== tableQuadrant_1.QuadrantType.MAIN) { - var height = mainQuadrantMenu.getBoundingClientRect().height; - quadrantMenu.style.height = height + "px"; - } - } - }; - TableQuadrantStack.prototype.syncQuadrantSizes = function () { - var mainQuadrantScrollElement = this.quadrantRefs[tableQuadrant_1.QuadrantType.MAIN].scrollContainer; - var topQuadrantElement = this.quadrantRefs[tableQuadrant_1.QuadrantType.TOP].quadrant; - var topQuadrantRowHeaderElement = this.quadrantRefs[tableQuadrant_1.QuadrantType.TOP].rowHeader; - var leftQuadrantElement = this.quadrantRefs[tableQuadrant_1.QuadrantType.LEFT].quadrant; - var topLeftQuadrantElement = this.quadrantRefs[tableQuadrant_1.QuadrantType.TOP_LEFT].quadrant; - var topLeftQuadrantRowHeaderElement = this.quadrantRefs[tableQuadrant_1.QuadrantType.TOP_LEFT].rowHeader; + TableQuadrantStack.prototype.getSecondaryQuadrantSize = function (dimension) { var _a = this.props, grid = _a.grid, numFrozenColumns = _a.numFrozenColumns, numFrozenRows = _a.numFrozenRows; + var numFrozen = dimension === "width" ? numFrozenColumns : numFrozenRows; + var getterFn = dimension === "width" ? grid.getCumulativeWidthAt : grid.getCumulativeHeightAt; var BORDER_WIDTH_CORRECTION = 1; - var leftQuadrantGridContentWidth = numFrozenColumns > 0 - ? grid.getCumulativeWidthAt(numFrozenColumns - 1) - : BORDER_WIDTH_CORRECTION; - var topQuadrantGridContentHeight = numFrozenRows > 0 - ? grid.getCumulativeHeightAt(numFrozenRows - 1) - : BORDER_WIDTH_CORRECTION; - var _b = this.quadrantRefs[tableQuadrant_1.QuadrantType.MAIN], rowHeader = _b.rowHeader, columnHeader = _b.columnHeader; - var rowHeaderWidth = rowHeader == null ? 0 : rowHeader.getBoundingClientRect().width; - var columnHeaderHeight = columnHeader == null ? 0 : columnHeader.getBoundingClientRect().height; - topQuadrantElement.style.height = topQuadrantGridContentHeight + columnHeaderHeight + "px"; - leftQuadrantElement.style.width = leftQuadrantGridContentWidth + rowHeaderWidth + "px"; - topLeftQuadrantElement.style.width = leftQuadrantGridContentWidth + rowHeaderWidth + "px"; - topLeftQuadrantElement.style.height = topQuadrantGridContentHeight + columnHeaderHeight + "px"; - var scrollbarWidth = mainQuadrantScrollElement.offsetWidth - mainQuadrantScrollElement.clientWidth; - var scrollbarHeight = mainQuadrantScrollElement.offsetHeight - mainQuadrantScrollElement.clientHeight; - topQuadrantElement.style.right = scrollbarWidth + "px"; - leftQuadrantElement.style.bottom = scrollbarHeight + "px"; - this.maybeSyncRowHeaderSize(topQuadrantRowHeaderElement, rowHeaderWidth); - this.maybeSyncRowHeaderSize(topLeftQuadrantRowHeaderElement, rowHeaderWidth); - }; - TableQuadrantStack.prototype.maybeSyncRowHeaderSize = function (rowHeaderElement, width) { - if (rowHeaderElement == null) { - return; - } - var selector = "." + Classes.TABLE_ROW_HEADERS_CELLS_CONTAINER; - var elementToResize = rowHeaderElement.querySelector(selector); - elementToResize.style.width = width + "px"; + return numFrozen > 0 ? getterFn(numFrozen - 1) : BORDER_WIDTH_CORRECTION; }; - TableQuadrantStack.prototype.findColumnHeader = function (quadrantType) { - var quadrantElement = this.quadrantRefs[quadrantType].quadrant; - return quadrantElement.querySelector("." + Classes.TABLE_COLUMN_HEADERS); - }; - TableQuadrantStack.prototype.findRowHeader = function (quadrantType) { - var quadrantElement = this.quadrantRefs[quadrantType].quadrant; - return quadrantElement.querySelector("." + Classes.TABLE_ROW_HEADERS); + TableQuadrantStack.prototype.measureDesiredRowHeaderWidth = function () { + var mainRowHeader = this.quadrantRefs[tableQuadrant_1.QuadrantType.MAIN].rowHeader; + if (mainRowHeader == null) { + return 0; + } + else { + mainRowHeader.style.width = "auto"; + var desiredRowHeaderWidth = mainRowHeader.clientWidth; + return desiredRowHeaderWidth; + } }; TableQuadrantStack.prototype.adjustVerticalGuides = function (verticalGuides, quadrantType) { - var scrollAmount = this.quadrantRefs[quadrantType].scrollContainer.scrollLeft; - var rowHeaderWidth = this.getRowHeaderWidth(quadrantType); + var scrollAmount = this.cache.getQuadrantScrollOffset(quadrantType, "scrollLeft"); + var rowHeaderWidth = this.cache.getRowHeaderWidth(); var adjustedVerticalGuides = verticalGuides != null ? verticalGuides.map(function (verticalGuide) { return verticalGuide - scrollAmount + rowHeaderWidth; }) : verticalGuides; return adjustedVerticalGuides; }; TableQuadrantStack.prototype.adjustHorizontalGuides = function (horizontalGuides, quadrantType) { - var scrollAmount = this.quadrantRefs[quadrantType].scrollContainer.scrollTop; - var columnHeaderHeight = this.quadrantRefs[quadrantType].columnHeader.clientHeight; + var scrollAmount = this.cache.getQuadrantScrollOffset(quadrantType, "scrollTop"); + var columnHeaderHeight = this.cache.getColumnHeaderHeight(); var adjustedHorizontalGuides = horizontalGuides != null ? horizontalGuides.map(function (horizontalGuide) { return horizontalGuide - scrollAmount + columnHeaderHeight; }) : horizontalGuides; return adjustedHorizontalGuides; }; - TableQuadrantStack.prototype.getRowHeaderWidth = function (quadrantType) { - var rowHeader = this.quadrantRefs[quadrantType].rowHeader; - return rowHeader == null ? 0 : rowHeader.clientWidth; - }; return TableQuadrantStack; }(core_1.AbstractComponent)); TableQuadrantStack.defaultProps = { isHorizontalScrollDisabled: false, isRowHeaderShown: true, isVerticalScrollDisabled: false, + throttleScrolling: true, + viewSyncDelay: DEFAULT_VIEW_SYNC_DELAY, }; exports.TableQuadrantStack = TableQuadrantStack; /***/ }), -/* 617 */ +/* 637 */ +/***/ (function(module, exports, __webpack_require__) { + + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tableQuadrant_1 = __webpack_require__(635); + var TableQuadrantStackCache = (function () { + function TableQuadrantStackCache() { + this.reset(); + } + TableQuadrantStackCache.prototype.reset = function () { + this.cachedRowHeaderWidth = 0; + this.cachedColumnHeaderHeight = 0; + this.cachedMainQuadrantScrollOffsets = this.createScrollOffsetMap(); + this.cachedTopQuadrantScrollOffsets = this.createScrollOffsetMap(); + this.cachedLeftQuadrantScrollOffsets = this.createScrollOffsetMap(); + this.cachedTopLeftQuadrantScrollOffsets = this.createScrollOffsetMap(); + }; + TableQuadrantStackCache.prototype.getQuadrantScrollOffset = function (quadrantType, scrollKey) { + return this.getQuadrantScrollOffsetMap(quadrantType)[scrollKey]; + }; + TableQuadrantStackCache.prototype.getRowHeaderWidth = function () { + return this.cachedRowHeaderWidth; + }; + TableQuadrantStackCache.prototype.getColumnHeaderHeight = function () { + return this.cachedColumnHeaderHeight; + }; + TableQuadrantStackCache.prototype.setColumnHeaderHeight = function (height) { + this.cachedColumnHeaderHeight = height; + }; + TableQuadrantStackCache.prototype.setRowHeaderWidth = function (width) { + this.cachedRowHeaderWidth = width; + }; + TableQuadrantStackCache.prototype.setQuadrantScrollOffset = function (quadrantType, scrollKey, offset) { + this.getQuadrantScrollOffsetMap(quadrantType)[scrollKey] = offset; + }; + TableQuadrantStackCache.prototype.createScrollOffsetMap = function () { + return { scrollLeft: 0, scrollTop: 0 }; + }; + TableQuadrantStackCache.prototype.getQuadrantScrollOffsetMap = function (quadrantType) { + switch (quadrantType) { + case tableQuadrant_1.QuadrantType.MAIN: + return this.cachedMainQuadrantScrollOffsets; + case tableQuadrant_1.QuadrantType.TOP: + return this.cachedTopQuadrantScrollOffsets; + case tableQuadrant_1.QuadrantType.LEFT: + return this.cachedLeftQuadrantScrollOffsets; + default: + return this.cachedTopLeftQuadrantScrollOffsets; + } + }; + return TableQuadrantStackCache; + }()); + exports.TableQuadrantStackCache = TableQuadrantStackCache; + + +/***/ }), +/* 638 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var core_1 = __webpack_require__(179); - var classNames = __webpack_require__(570); + var classNames = __webpack_require__(590); var React = __webpack_require__(3); - var cell_1 = __webpack_require__(569); - var batcher_1 = __webpack_require__(606); - var Classes = __webpack_require__(571); - var contextMenuTargetWrapper_1 = __webpack_require__(618); - var rect_1 = __webpack_require__(588); - var renderMode_1 = __webpack_require__(589); - var utils_1 = __webpack_require__(572); - var menus_1 = __webpack_require__(591); - var selectable_1 = __webpack_require__(595); - var regions_1 = __webpack_require__(587); + var cell_1 = __webpack_require__(589); + var batcher_1 = __webpack_require__(626); + var Classes = __webpack_require__(591); + var contextMenuTargetWrapper_1 = __webpack_require__(639); + var rect_1 = __webpack_require__(608); + var renderMode_1 = __webpack_require__(609); + var utils_1 = __webpack_require__(592); + var menus_1 = __webpack_require__(611); + var selectable_1 = __webpack_require__(615); + var regions_1 = __webpack_require__(607); var UPDATE_PROPS_KEYS = [ "focusedCell", "grid", @@ -82450,7 +85466,6 @@ function TableBody() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.batcher = new batcher_1.Batcher(); - _this.isRenderingBatchedCells = false; _this.renderContextMenu = function (e) { var _a = _this.props, grid = _a.grid, onFocus = _a.onFocus, onSelection = _a.onSelection, renderBodyContextMenu = _a.renderBodyContextMenu, selectedRegions = _a.selectedRegions; var numRows = grid.numRows, numCols = grid.numCols; @@ -82481,8 +85496,8 @@ var baseCell = isGhost ? cell_1.emptyCellRenderer() : cellRenderer(rowIndex, columnIndex); var className = classNames(TableBody.cellClassNames(rowIndex, columnIndex), extremaClasses, (_b = {}, _b[Classes.TABLE_CELL_GHOST] = isGhost, - _b[Classes.TABLE_CELL_LEDGER_ODD] = (rowIndex % 2) === 1, - _b[Classes.TABLE_CELL_LEDGER_EVEN] = (rowIndex % 2) === 0, + _b[Classes.TABLE_CELL_LEDGER_ODD] = rowIndex % 2 === 1, + _b[Classes.TABLE_CELL_LEDGER_EVEN] = rowIndex % 2 === 0, _b), baseCell.props.className); var key = TableBody.cellReactKey(rowIndex, columnIndex); var rect = isGhost ? grid.getGhostCellRect(rowIndex, columnIndex) : grid.getCellRect(rowIndex, columnIndex); @@ -82502,17 +85517,12 @@ if (returnEndOnly === void 0) { returnEndOnly = false; } var start = _this.activationCell; var end = _this.props.locator.convertPointToCell(coords.current[0], coords.current[1]); - return returnEndOnly - ? regions_1.Regions.cell(end.row, end.col) - : regions_1.Regions.cell(start.row, start.col, end.row, end.col); + return returnEndOnly ? regions_1.Regions.cell(end.row, end.col) : regions_1.Regions.cell(start.row, start.col, end.row, end.col); }; return _this; } TableBody.cellClassNames = function (rowIndex, columnIndex) { - return [ - Classes.rowCellIndexClass(rowIndex), - Classes.columnCellIndexClass(columnIndex), - ]; + return [Classes.rowCellIndexClass(rowIndex), Classes.columnCellIndexClass(columnIndex)]; }; TableBody.cellReactKey = function (rowIndex, columnIndex) { return "cell-" + rowIndex + "-" + columnIndex; @@ -82539,13 +85549,11 @@ }; TableBody.prototype.render = function () { var _a = this.props, allowMultipleSelection = _a.allowMultipleSelection, focusedCell = _a.focusedCell, grid = _a.grid, numFrozenColumns = _a.numFrozenColumns, numFrozenRows = _a.numFrozenRows, onFocus = _a.onFocus, onSelection = _a.onSelection, renderMode = _a.renderMode, selectedRegions = _a.selectedRegions, selectedRegionTransform = _a.selectedRegionTransform; - var cells = (renderMode === renderMode_1.RenderMode.BATCH) - ? this.renderBatchedCells() - : this.renderAllCells(); + var cells = renderMode === renderMode_1.RenderMode.BATCH ? this.renderBatchedCells() : this.renderAllCells(); var defaultStyle = grid.getRect().sizeStyle(); var style = { - height: (numFrozenRows != null) ? grid.getCumulativeHeightAt(numFrozenRows - 1) : defaultStyle.height, - width: (numFrozenColumns != null) ? grid.getCumulativeWidthAt(numFrozenColumns - 1) : defaultStyle.width, + height: numFrozenRows != null ? grid.getCumulativeHeightAt(numFrozenRows - 1) : defaultStyle.height, + width: numFrozenColumns != null ? grid.getCumulativeWidthAt(numFrozenColumns - 1) : defaultStyle.width, }; return (React.createElement(selectable_1.DragSelectable, { allowMultipleSelection: allowMultipleSelection, focusedCell: focusedCell, locateClick: this.locateClick, locateDrag: this.locateDrag, onFocus: onFocus, onSelection: onSelection, onSelectionEnd: this.handleSelectionEnd, selectedRegions: selectedRegions, selectedRegionTransform: selectedRegionTransform }, React.createElement(contextMenuTargetWrapper_1.ContextMenuTargetWrapper, { className: classNames(Classes.TABLE_BODY_VIRTUAL_CLIENT, Classes.TABLE_CELL_CLIENT), renderContextMenu: this.renderContextMenu, style: style }, cells))); @@ -82580,13 +85588,7 @@ }; TableBody.prototype.maybeInvokeOnCompleteRender = function () { var _a = this.props, onCompleteRender = _a.onCompleteRender, renderMode = _a.renderMode; - if (renderMode === renderMode_1.RenderMode.BATCH - && this.isRenderingBatchedCells - && this.batcher.isDone()) { - this.isRenderingBatchedCells = false; - core_1.Utils.safeInvoke(onCompleteRender); - } - else if (renderMode === renderMode_1.RenderMode.NONE) { + if (renderMode === renderMode_1.RenderMode.NONE || (renderMode === renderMode_1.RenderMode.BATCH && this.batcher.isDone())) { core_1.Utils.safeInvoke(onCompleteRender); } }; @@ -82600,14 +85602,14 @@ /***/ }), -/* 618 */ +/* 639 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var core_1 = __webpack_require__(179); - var PureRender = __webpack_require__(574); + var PureRender = __webpack_require__(594); var React = __webpack_require__(3); var ContextMenuTargetWrapper = (function (_super) { tslib_1.__extends(ContextMenuTargetWrapper, _super); @@ -82616,7 +85618,7 @@ } ContextMenuTargetWrapper.prototype.render = function () { var _a = this.props, className = _a.className, children = _a.children, style = _a.style; - return React.createElement("div", { className: className, style: style }, children); + return (React.createElement("div", { className: className, style: style }, children)); }; ContextMenuTargetWrapper.prototype.renderContextMenu = function (e) { return this.props.renderContextMenu(e); @@ -82631,7 +85633,7 @@ /***/ }), -/* 619 */ +/* 640 */ /***/ (function(module, exports) { module.exports = [ @@ -82814,17 +85816,17 @@ ]; /***/ }), -/* 620 */ +/* 641 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); var docs_1 = __webpack_require__(172); - var src_1 = __webpack_require__(567); - var bigSpaceRocks = __webpack_require__(619); + var src_1 = __webpack_require__(587); + var bigSpaceRocks = __webpack_require__(640); var ColumnLoadingExample = (function (_super) { tslib_1.__extends(ColumnLoadingExample, _super); function ColumnLoadingExample() { @@ -82836,12 +85838,10 @@ _this.handleLoadingColumnChange = docs_1.handleNumberChange(function (loadingColumn) { return _this.setState({ loadingColumn: loadingColumn }); }); _this.renderCell = function (rowIndex, columnIndex) { var bigSpaceRock = bigSpaceRocks[rowIndex]; - return (React.createElement(src_1.Cell, null, bigSpaceRock[Object.keys(bigSpaceRock)[columnIndex]])); + return React.createElement(src_1.Cell, null, bigSpaceRock[Object.keys(bigSpaceRock)[columnIndex]]); }; _this.formatColumnName = function (columnName) { - return columnName - .replace(/([A-Z])/g, " $1") - .replace(/^./, function (firstCharacter) { return firstCharacter.toUpperCase(); }); + return columnName.replace(/([A-Z])/g, " $1").replace(/^./, function (firstCharacter) { return firstCharacter.toUpperCase(); }); }; _this.loadingOptions = function (columnIndex) { return columnIndex === _this.state.loadingColumn @@ -82851,7 +85851,7 @@ return _this; } ColumnLoadingExample.prototype.renderExample = function () { - return (React.createElement(src_1.Table, { numRows: bigSpaceRocks.length }, this.renderColumns())); + return React.createElement(src_1.Table, { numRows: bigSpaceRocks.length }, this.renderColumns()); }; ColumnLoadingExample.prototype.renderOptions = function () { var firstSpaceRock = bigSpaceRocks[0]; @@ -82879,15 +85879,15 @@ /***/ }), -/* 621 */ +/* 642 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var React = __webpack_require__(3); var docs_1 = __webpack_require__(172); - var src_1 = __webpack_require__(567); + var src_1 = __webpack_require__(587); var TableDollarExample = (function (_super) { tslib_1.__extends(TableDollarExample, _super); function TableDollarExample() { @@ -82904,26 +85904,22 @@ /***/ }), -/* 622 */ +/* 643 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); var docs_1 = __webpack_require__(172); - var src_1 = __webpack_require__(567); + var src_1 = __webpack_require__(587); var TableEditableExample = (function (_super) { tslib_1.__extends(TableEditableExample, _super); function TableEditableExample() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.state = { - columnNames: [ - "Please", - "Rename", - "Me", - ], + columnNames: ["Please", "Rename", "Me"], sparseCellData: { "1-1": "editable", "3-1": "validation 123", @@ -82977,9 +85973,9 @@ TableEditableExample.prototype.render = function () { var _this = this; var columns = this.state.columnNames.map(function (_, index) { - return (React.createElement(src_1.Column, { key: index, renderCell: _this.renderCell, renderColumnHeader: _this.renderColumnHeader })); + return React.createElement(src_1.Column, { key: index, renderCell: _this.renderCell, renderColumnHeader: _this.renderColumnHeader }); }); - return (React.createElement(src_1.Table, { numRows: 7 }, columns)); + return React.createElement(src_1.Table, { numRows: 7 }, columns); }; TableEditableExample.prototype.isValidValue = function (value) { return /^[a-zA-Z]*$/.test(value); @@ -83005,15 +86001,15 @@ /***/ }), -/* 623 */ +/* 644 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var React = __webpack_require__(3); var docs_1 = __webpack_require__(172); - var src_1 = __webpack_require__(567); + var src_1 = __webpack_require__(587); var LOCAL_TIMEZONE_OFFSET_MSEC = new Date().getTimezoneOffset() * 60 * 1000; var TIME_ZONES = [ ["-12:00", -12.0, "Etc/GMT+12"], @@ -83083,11 +86079,11 @@ var localDateTime = new Date(_this.date); localDateTime.setTime(localDateTime.getTime() + _this.data[row].offsetMsec); var formattedDateTime = localDateTime.toLocaleString("en-US", FORMAT_OPTIONS); - return React.createElement(src_1.Cell, null, - React.createElement(src_1.TruncatedFormat, null, formattedDateTime)); + return (React.createElement(src_1.Cell, null, + React.createElement(src_1.TruncatedFormat, null, formattedDateTime))); }; - _this.renderJSON = function (row) { return React.createElement(src_1.Cell, null, - React.createElement(src_1.JSONFormat, null, _this.data[row])); }; + _this.renderJSON = function (row) { return (React.createElement(src_1.Cell, null, + React.createElement(src_1.JSONFormat, null, _this.data[row]))); }; return _this; } TableFormatsExample.prototype.render = function () { @@ -83103,15 +86099,15 @@ /***/ }), -/* 624 */ +/* 645 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var React = __webpack_require__(3); var docs_1 = __webpack_require__(172); - var src_1 = __webpack_require__(567); + var src_1 = __webpack_require__(587); var NUM_ROWS = 20; var NUM_COLUMNS = 20; var NUM_FROZEN_ROWS = 2; @@ -83139,17 +86135,17 @@ /***/ }), -/* 625 */ +/* 646 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); var docs_1 = __webpack_require__(172); - var src_1 = __webpack_require__(567); - var bigSpaceRocks = __webpack_require__(619); + var src_1 = __webpack_require__(587); + var bigSpaceRocks = __webpack_require__(640); var TableLoadingExample = (function (_super) { tslib_1.__extends(TableLoadingExample, _super); function TableLoadingExample() { @@ -83167,12 +86163,10 @@ _this.handleRowHeadersLoading = docs_1.handleBooleanChange(function (rowHeadersLoading) { return _this.setState({ rowHeadersLoading: rowHeadersLoading }); }); _this.renderCell = function (rowIndex, columnIndex) { var bigSpaceRock = bigSpaceRocks[rowIndex]; - return (React.createElement(src_1.Cell, null, bigSpaceRock[Object.keys(bigSpaceRock)[columnIndex]])); + return React.createElement(src_1.Cell, null, bigSpaceRock[Object.keys(bigSpaceRock)[columnIndex]]); }; _this.formatColumnName = function (columnName) { - return columnName - .replace(/([A-Z])/g, " $1") - .replace(/^./, function (firstCharacter) { return firstCharacter.toUpperCase(); }); + return columnName.replace(/([A-Z])/g, " $1").replace(/^./, function (firstCharacter) { return firstCharacter.toUpperCase(); }); }; return _this; } @@ -83190,11 +86184,13 @@ return (React.createElement(src_1.Table, { numRows: bigSpaceRocks.length, loadingOptions: loadingOptions }, this.renderColumns())); }; TableLoadingExample.prototype.renderOptions = function () { - return [[ + return [ + [ React.createElement(core_1.Switch, { checked: this.state.cellsLoading, label: "Cells", key: "cells", onChange: this.handleCellsLoading }), React.createElement(core_1.Switch, { checked: this.state.columnHeadersLoading, label: "Column headers", key: "columnheaders", onChange: this.handleColumnHeadersLoading }), React.createElement(core_1.Switch, { checked: this.state.rowHeadersLoading, label: "Row headers", key: "rowheaders", onChange: this.handleRowHeadersLoading }), - ]]; + ], + ]; }; TableLoadingExample.prototype.renderColumns = function () { var _this = this; @@ -83210,16 +86206,16 @@ /***/ }), -/* 626 */ +/* 647 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); var docs_1 = __webpack_require__(172); - var src_1 = __webpack_require__(567); + var src_1 = __webpack_require__(587); var REORDERABLE_TABLE_DATA = [ ["A", "Apple", "Ape", "Albania", "Anchorage"], ["B", "Banana", "Boa", "Brazil", "Boston"], @@ -83291,17 +86287,17 @@ /***/ }), -/* 627 */ +/* 648 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = __webpack_require__(566); + var tslib_1 = __webpack_require__(586); var React = __webpack_require__(3); var core_1 = __webpack_require__(179); var docs_1 = __webpack_require__(172); - var src_1 = __webpack_require__(567); - var sumo = __webpack_require__(628); + var src_1 = __webpack_require__(587); + var sumo = __webpack_require__(649); var AbstractSortableColumn = (function () { function AbstractSortableColumn(name, index) { this.name = name; @@ -83310,8 +86306,8 @@ AbstractSortableColumn.prototype.getColumn = function (getCellData, sortColumn) { var _this = this; var menu = this.renderMenu(sortColumn); - var renderCell = function (rowIndex, columnIndex) { return (React.createElement(src_1.Cell, null, getCellData(rowIndex, columnIndex))); }; - var renderColumnHeader = function () { return (React.createElement(src_1.ColumnHeaderCell, { name: _this.name, menu: menu })); }; + var renderCell = function (rowIndex, columnIndex) { return React.createElement(src_1.Cell, null, getCellData(rowIndex, columnIndex)); }; + var renderColumnHeader = function () { return React.createElement(src_1.ColumnHeaderCell, { name: _this.name, menu: menu }); }; return (React.createElement(src_1.Column, { key: this.index, name: this.name, renderCell: renderCell, renderColumnHeader: renderColumnHeader })); }; return AbstractSortableColumn; @@ -83323,8 +86319,8 @@ } TextSortableColumn.prototype.renderMenu = function (sortColumn) { var _this = this; - var sortAsc = function () { return sortColumn(_this.index, function (a, b) { return (_this.compare(a, b)); }); }; - var sortDesc = function () { return sortColumn(_this.index, function (a, b) { return (_this.compare(b, a)); }); }; + var sortAsc = function () { return sortColumn(_this.index, function (a, b) { return _this.compare(a, b); }); }; + var sortDesc = function () { return sortColumn(_this.index, function (a, b) { return _this.compare(b, a); }); }; return (React.createElement(core_1.Menu, null, React.createElement(core_1.MenuItem, { iconName: "sort-asc", onClick: sortAsc, text: "Sort Asc" }), React.createElement(core_1.MenuItem, { iconName: "sort-desc", onClick: sortDesc, text: "Sort Desc" }))); @@ -83341,8 +86337,8 @@ } RankSortableColumn.prototype.renderMenu = function (sortColumn) { var _this = this; - var sortAsc = function () { return sortColumn(_this.index, function (a, b) { return (_this.compare(a, b)); }); }; - var sortDesc = function () { return sortColumn(_this.index, function (a, b) { return (_this.compare(b, a)); }); }; + var sortAsc = function () { return sortColumn(_this.index, function (a, b) { return _this.compare(a, b); }); }; + var sortDesc = function () { return sortColumn(_this.index, function (a, b) { return _this.compare(b, a); }); }; return (React.createElement(core_1.Menu, null, React.createElement(core_1.MenuItem, { iconName: "sort-asc", onClick: sortAsc, text: "Sort Rank Asc" }), React.createElement(core_1.MenuItem, { iconName: "sort-desc", onClick: sortDesc, text: "Sort Rank Desc" }))); @@ -83353,7 +86349,7 @@ return 1000; } var _a = match.slice(1), title = _a[0], rank = _a[1], side = _a[2]; - return RankSortableColumn.TITLES[title] * 100 + (side === "e" ? 0 : 1) + (parseInt(rank, 10) * 2); + return RankSortableColumn.TITLES[title] * 100 + (side === "e" ? 0 : 1) + parseInt(rank, 10) * 2; }; RankSortableColumn.prototype.compare = function (a, b) { return this.toRank(a) - this.toRank(b); @@ -83377,32 +86373,32 @@ RecordSortableColumn.prototype.renderMenu = function (sortColumn) { var _this = this; return (React.createElement(core_1.Menu, null, - React.createElement(core_1.MenuItem, { iconName: "sort-asc", onClick: function () { return (sortColumn(_this.index, _this.transformCompare(_this.toWins, false))); }, text: "Sort Wins Asc" }), - React.createElement(core_1.MenuItem, { iconName: "sort-desc", onClick: function () { return (sortColumn(_this.index, _this.transformCompare(_this.toWins, true))); }, text: "Sort Wins Desc" }), - React.createElement(core_1.MenuItem, { iconName: "sort-asc", onClick: function () { return (sortColumn(_this.index, _this.transformCompare(_this.toLosses, false))); }, text: "Sort Losses Asc" }), - React.createElement(core_1.MenuItem, { iconName: "sort-desc", onClick: function () { return (sortColumn(_this.index, _this.transformCompare(_this.toLosses, true))); }, text: "Sort Losses Desc" }), - React.createElement(core_1.MenuItem, { iconName: "sort-asc", onClick: function () { return (sortColumn(_this.index, _this.transformCompare(_this.toTies, false))); }, text: "Sort Ties Asc" }), - React.createElement(core_1.MenuItem, { iconName: "sort-desc", onClick: function () { return (sortColumn(_this.index, _this.transformCompare(_this.toTies, true))); }, text: "Sort Ties Desc" }))); + React.createElement(core_1.MenuItem, { iconName: "sort-asc", onClick: function () { return sortColumn(_this.index, _this.transformCompare(_this.toWins, false)); }, text: "Sort Wins Asc" }), + React.createElement(core_1.MenuItem, { iconName: "sort-desc", onClick: function () { return sortColumn(_this.index, _this.transformCompare(_this.toWins, true)); }, text: "Sort Wins Desc" }), + React.createElement(core_1.MenuItem, { iconName: "sort-asc", onClick: function () { return sortColumn(_this.index, _this.transformCompare(_this.toLosses, false)); }, text: "Sort Losses Asc" }), + React.createElement(core_1.MenuItem, { iconName: "sort-desc", onClick: function () { return sortColumn(_this.index, _this.transformCompare(_this.toLosses, true)); }, text: "Sort Losses Desc" }), + React.createElement(core_1.MenuItem, { iconName: "sort-asc", onClick: function () { return sortColumn(_this.index, _this.transformCompare(_this.toTies, false)); }, text: "Sort Ties Asc" }), + React.createElement(core_1.MenuItem, { iconName: "sort-desc", onClick: function () { return sortColumn(_this.index, _this.transformCompare(_this.toTies, true)); }, text: "Sort Ties Desc" }))); }; RecordSortableColumn.prototype.transformCompare = function (transform, reverse) { if (reverse) { - return function (a, b) { return (transform(b) - transform(a)); }; + return function (a, b) { return transform(b) - transform(a); }; } else { - return function (a, b) { return (transform(a) - transform(b)); }; + return function (a, b) { return transform(a) - transform(b); }; } }; RecordSortableColumn.prototype.toWins = function (a) { var match = RecordSortableColumn.WIN_LOSS_PATTERN.exec(a); - return (match == null) ? -1 : parseInt(match[1], 10); + return match == null ? -1 : parseInt(match[1], 10); }; RecordSortableColumn.prototype.toTies = function (a) { var match = RecordSortableColumn.WIN_LOSS_PATTERN.exec(a); - return (match == null || match[3] == null) ? -1 : parseInt(match[3], 10); + return match == null || match[3] == null ? -1 : parseInt(match[3], 10); }; RecordSortableColumn.prototype.toLosses = function (a) { var match = RecordSortableColumn.WIN_LOSS_PATTERN.exec(a); - return (match == null) ? -1 : parseInt(match[5], 10); + return match == null ? -1 : parseInt(match[5], 10); }; return RecordSortableColumn; }(AbstractSortableColumn)); @@ -83443,7 +86439,7 @@ }; _this.sortColumn = function (columnIndex, comparator) { var data = _this.state.data; - var sortedIndexMap = src_1.Utils.times(data.length, function (i) { return (i); }); + var sortedIndexMap = src_1.Utils.times(data.length, function (i) { return i; }); sortedIndexMap.sort(function (a, b) { return comparator(data[a][columnIndex], data[b][columnIndex]); }); @@ -83454,7 +86450,7 @@ TableSortableExample.prototype.render = function () { var _this = this; var numRows = this.state.data.length; - var columns = this.state.columns.map(function (col) { return (col.getColumn(_this.getCellData, _this.sortColumn)); }); + var columns = this.state.columns.map(function (col) { return col.getColumn(_this.getCellData, _this.sortColumn); }); return (React.createElement(src_1.Table, { numRows: numRows, renderBodyContextMenu: this.renderBodyContextMenu, selectionModes: src_1.SelectionModes.COLUMNS_AND_CELLS }, columns)); }; return TableSortableExample; @@ -83463,7 +86459,7 @@ /***/ }), -/* 628 */ +/* 649 */ /***/ (function(module, exports) { module.exports = [ @@ -84220,7 +87216,7 @@ ]; /***/ }), -/* 629 */ +/* 650 */ /***/ (function(module, exports) { module.exports = { @@ -85782,6 +88778,19 @@ "reference": "tooltip2", "route": "labs/tooltip2", "title": "Tooltip2" + }, + { + "children": [ + { + "title": "JavaScript API", + "level": 3, + "route": "labs/timezone-picker.javascript-api" + } + ], + "level": 2, + "reference": "timezone-picker", + "route": "labs/timezone-picker", + "title": "TimezonePicker" } ], "level": 1, @@ -88944,6 +91953,37 @@ "contentsRaw": "@# TagInput\n\n`TagInput` renders [`Tag`](#core/components/tag)s inside an input, followed by an actual text input. The container is merely styled to look like a Blueprint input; the actual editable element appears after the last tag. Clicking anywhere on the container will focus the text input for seamless interaction.\n\n@reactExample TagInputExample\n\n**`TagInput` must be controlled,** meaning the `values` prop is required and event handlers are strongly suggested. Typing in the input and pressing enter will **add new items** by invoking callbacks. A `separator` prop is supported to allow multiple items to be added at once; the default splits on commas.\n\n**Tags can be removed** by clicking their buttons, or by pressing backspace repeatedly. Arrow keys can also be used to focus on a particular tag before removing it. The cursor must be at the beginning of the text input for these interactions.\n\n**`Tag` appearance can be customized** with `tagProps`: supply an object to apply the same props to every tag, or supply a callback to apply dynamic props per tag. Tag `values` must be an array of strings so you may need a transformation step between your state and these props.\n\n`TagInput` provides granular `onAdd` and `onRemove` **event props**, which are passed the added or removed items in response to the user interactions above. It also provides `onChange`, which combines both events and is passed the updated `values` array, with new items appended to the end and removed items filtered away. Supply `inputProps` to customize the `` element or add your own event handlers.\n\n
\n
Handling long words
\n Set an explicit `width` on `.pt-tag-input` to cause long words to wrap onto multiple lines. Either supply a specific pixel value, or use `` to fill its container's width (try this in the example above).\n
\n\n@interface ITagInputProps\n", "metadata": {} }, + "timezone-picker": { + "reference": "timezone-picker", + "route": "labs/timezone-picker", + "title": "TimezonePicker", + "contents": [ + { + "tag": "heading", + "value": "TimezonePicker", + "level": 1, + "route": "labs/timezone-picker" + }, + "

TimezonePicker allows the user to select from a list of timezones.

\n", + { + "tag": "reactExample", + "value": "TimezonePickerExample" + }, + { + "tag": "heading", + "value": "JavaScript API", + "level": 2, + "route": "labs/timezone-picker.javascript-api" + }, + "

This component can be used in controlled or uncontrolled mode.\nUse the onChange prop to listen for changes to the selected timezone.\nYou can control the selected timezone by setting the value prop.\nOr, use the component in uncontrolled mode and specify an initial timezone by setting defaultValue.

\n

The date prop is used to determine the timezone offsets.\nThis is because a timezone usually has more than one offset from UTC due to daylight saving time.\nSee here\nand here\nfor more information.

\n

The initial list (shown before filtering) shows one timezone per timezone offset,\nusing the most populous location for each offset.\nMoment Timezone uses a similar heuristic for\nguessing the user's timezone.

\n

Moment Timezone is used internally for the list of available timezones and \ntimezone metadata.

\n
\n
Local timezone detection
\n We detect the local timezone when the showLocalTimezone prop is used.\n We cannot guarantee that we'll get the correct local timezone in all browsers.\n In supported browsers, the i18n API is used.\n In other browsers, Date methods and a population heuristic are used.\n See Moment Timezone's documentation\n for more information.\n
\n\n
import { TimezonePicker } from "@blueprintjs/labs";
 
export interface ITimezoneExampleState {
    timezone: string;
}
 
export class TimezoneExample extends React.PureComponent<{}, ITimezoneExampleState> {
    public state: ITimezoneExampleState = {
        timezone: "",
    };
 
    public render() {
        return (
            <TimezonePicker
                value={this.state.timezone}
                onChange={this.handleTimezoneChange}
            />
        );
    }
 
    private handleTimezoneChange = (timezone: string) => this.setState({ timezone });
}
", + { + "tag": "interface", + "value": "ITimezonePickerProps" + } + ], + "contentsRaw": "@# TimezonePicker\n\n`TimezonePicker` allows the user to select from a list of timezones.\n\n@reactExample TimezonePickerExample\n\n@## JavaScript API\n\nThis component can be used in controlled or uncontrolled mode.\nUse the `onChange` prop to listen for changes to the selected timezone.\nYou can control the selected timezone by setting the `value` prop.\nOr, use the component in uncontrolled mode and specify an initial timezone by setting `defaultValue`.\n\nThe `date` prop is used to determine the timezone offsets.\nThis is because a timezone usually has more than one offset from UTC due to daylight saving time.\nSee [here](https://momentjs.com/guides/#/lib-concepts/timezone-offset/)\nand [here](http://momentjs.com/timezone/docs/#/using-timezones/parsing-ambiguous-inputs/)\nfor more information.\n\nThe initial list (shown before filtering) shows one timezone per timezone offset,\nusing the most populous location for each offset.\nMoment Timezone uses a similar heuristic for\n[guessing](http://momentjs.com/timezone/docs/#/using-timezones/guessing-user-timezone/) the user's timezone.\n\n[Moment Timezone](http://momentjs.com/timezone/) is used internally for the list of available timezones and \ntimezone metadata.\n\n
\n
Local timezone detection
\n We detect the local timezone when the `showLocalTimezone` prop is used.\n We cannot guarantee that we'll get the correct local timezone in all browsers.\n In supported browsers, the [i18n API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/resolvedOptions) is used.\n In other browsers, `Date` methods and a population heuristic are used.\n See [Moment Timezone's documentation](https://momentjs.com/timezone/docs/#/using-timezones/guessing-user-timezone/)\n for more information.\n
\n\n```tsx\nimport { TimezonePicker } from \"@blueprintjs/labs\";\n\nexport interface ITimezoneExampleState {\n timezone: string;\n}\n\nexport class TimezoneExample extends React.PureComponent<{}, ITimezoneExampleState> {\n public state: ITimezoneExampleState = {\n timezone: \"\",\n };\n\n public render() {\n return (\n \n );\n }\n\n private handleTimezoneChange = (timezone: string) => this.setState({ timezone });\n}\n```\n\n@interface ITimezonePickerProps\n", + "metadata": {} + }, "tooltip2": { "reference": "tooltip2", "route": "labs/tooltip2", @@ -88979,7 +92019,7 @@ "level": 1, "route": "labs" }, - "
\n
Under construction
\n The @blueprintjs/labs NPM package contains unstable React components under active development by team members. It is an incubator and staging area for components as we refine the API design; as such, this package will never reach 1.0.0, and every minor version should be considered breaking.\n
\n\n\n", + "
\n
Under construction
\n The @blueprintjs/labs NPM package contains unstable React components under active development by team members. It is an incubator and staging area for components as we refine the API design; as such, this package will never reach 1.0.0, and every minor version should be considered breaking.\n
\n\n\n", { "tag": "page", "value": "select-component" @@ -89011,9 +92051,13 @@ { "tag": "page", "value": "tooltip2" + }, + { + "tag": "page", + "value": "timezone-picker" } ], - "contentsRaw": "\n@# Labs\n\n
\n
Under construction
\n The **[@blueprintjs/labs](https://www.npmjs.com/package/@blueprintjs/labs)** NPM package contains **unstable React components under active development by team members**. It is an incubator and staging area for components as we refine the API design; as such, this package will never reach 1.0.0, and every minor version should be considered breaking.\n
\n\n- [`Select`](#labs/select-component) for selecting items in a list.\n\n- [`Suggest`](#labs/suggest) for selecting items in a list, from a text input.\n\n- [`MultiSelect`](#labs/multi-select) for selecting multiple items in a list.\n\n- [`Omnibox`](#labs/omnibox) is a macOS spotlight-style typeahead component.\n\n- [`QueryList`](#labs/query-list) is a higher-order component that provides interactions between a query string and a list of items.\n\n- [`TagInput`](#labs/tag-input) is an input component for [`Tag`](#core/components/tag)s.\n\n- [`Popover2`](#labs/popover2) is an improvement over [`Popover`](#core/components/popover), using [Popper.js](https://popper.js.org/).\n\n- [`Tooltip2`](#labs/tooltip2) is like [`Tooltip`](#core/components/tooltip), but uses [`Popover2`](#labs/popover2).\n\n@page select-component\n@page suggest\n@page multi-select\n@page omnibox\n@page query-list\n@page tag-input\n@page popover2\n@page tooltip2\n", + "contentsRaw": "\n@# Labs\n\n
\n
Under construction
\n The **[@blueprintjs/labs](https://www.npmjs.com/package/@blueprintjs/labs)** NPM package contains **unstable React components under active development by team members**. It is an incubator and staging area for components as we refine the API design; as such, this package will never reach 1.0.0, and every minor version should be considered breaking.\n
\n\n- [`Select`](#labs/select-component) for selecting items in a list.\n\n- [`Suggest`](#labs/suggest) for selecting items in a list, from a text input.\n\n- [`MultiSelect`](#labs/multi-select) for selecting multiple items in a list.\n\n- [`Omnibox`](#labs/omnibox) is a macOS spotlight-style typeahead component.\n\n- [`QueryList`](#labs/query-list) is a higher-order component that provides interactions between a query string and a list of items.\n\n- [`TagInput`](#labs/tag-input) is an input component for [`Tag`](#core/components/tag)s.\n\n- [`Popover2`](#labs/popover2) is an improvement over [`Popover`](#core/components/popover), using [Popper.js](https://popper.js.org/).\n\n- [`Tooltip2`](#labs/tooltip2) is like [`Tooltip`](#core/components/tooltip), but uses [`Popover2`](#labs/popover2).\n\n- [`TimezonePicker`](#labs/timezone-picker) for selecting timezones.\n\n@page select-component\n@page suggest\n@page multi-select\n@page omnibox\n@page query-list\n@page tag-input\n@page popover2\n@page tooltip2\n@page timezone-picker\n", "metadata": { "reference": "labs" } @@ -101976,6 +105020,28 @@ "name": "TAG_INPUT_ICON", "tags": {}, "type": "string" + }, + { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/labs/dist/common/index.d.ts", + "name": "TIMEZONE_PICKER", + "tags": {}, + "type": "\"pt-timezone-picker\"" + }, + { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/labs/dist/common/index.d.ts", + "name": "TIMEZONE_PICKER_POPOVER", + "tags": {}, + "type": "string" } ] }, @@ -102778,111 +105844,6 @@ } ] }, - "IMenuItemProps": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/core/dist/components/menu/menuItem.d.ts", - "name": "IMenuItemProps", - "tags": {}, - "type": "interface", - "extends": [ - "IActionProps", - "ILinkProps" - ], - "properties": [ - { - "documentation": { - "contents": [ - "

Right-aligned label content, useful for displaying hotkeys.

\n" - ], - "contentsRaw": "Right-aligned label content, useful for displaying hotkeys.", - "metadata": {} - }, - "fileName": "packages/core/dist/components/menu/menuItem.d.ts", - "name": "label", - "tags": {}, - "type": "string | Element", - "optional": true - }, - { - "documentation": { - "contents": [ - "

Whether an enabled, non-submenu item should automatically close the\npopover it is nested within when clicked.

\n" - ], - "contentsRaw": "Whether an enabled, non-submenu item should automatically close the\npopover it is nested within when clicked.", - "metadata": {} - }, - "fileName": "packages/core/dist/components/menu/menuItem.d.ts", - "name": "shouldDismissPopover", - "tags": { - "default": "true" - }, - "type": "boolean", - "optional": true - }, - { - "documentation": { - "contents": [ - "

Array of props objects for submenu items.\nAn alternative to providing MenuItem components as children.

\n" - ], - "contentsRaw": "Array of props objects for submenu items.\nAn alternative to providing `MenuItem` components as `children`.", - "metadata": {} - }, - "fileName": "packages/core/dist/components/menu/menuItem.d.ts", - "name": "submenu", - "tags": {}, - "type": "IMenuItemProps[]", - "optional": true - }, - { - "documentation": { - "contents": [ - "

Width of margin from left or right edge of viewport. Submenus will\nflip to the other side if they come within this distance of that edge.\nThis has no effect if omitted or if useSmartPositioning is set to false.\nNote that these values are not CSS properties; they are used in\ninternal math to determine when to flip sides.

\n" - ], - "contentsRaw": "Width of `margin` from left or right edge of viewport. Submenus will\nflip to the other side if they come within this distance of that edge.\nThis has no effect if omitted or if `useSmartPositioning` is set to `false`.\nNote that these values are not CSS properties; they are used in\ninternal math to determine when to flip sides.", - "metadata": {} - }, - "fileName": "packages/core/dist/components/menu/menuItem.d.ts", - "name": "submenuViewportMargin", - "tags": {}, - "type": "{ left?: number; right?: number; }", - "optional": true - }, - { - "documentation": { - "contents": [ - "

Item text, required for usability.

\n" - ], - "contentsRaw": "Item text, required for usability. ", - "metadata": {} - }, - "fileName": "packages/core/dist/components/menu/menuItem.d.ts", - "name": "text", - "tags": {}, - "type": "string", - "optional": false - }, - { - "documentation": { - "contents": [ - "

Whether a submenu popover will try to reposition itself\nif there isn't room for it in its current position.\nThe popover opens right by default, but will try to flip\nleft if not enough space.

\n" - ], - "contentsRaw": "Whether a submenu popover will try to reposition itself\nif there isn't room for it in its current position.\nThe popover opens right by default, but will try to flip\nleft if not enough space.", - "metadata": {} - }, - "fileName": "packages/core/dist/components/menu/menuItem.d.ts", - "name": "useSmartPositioning", - "tags": { - "default": "true" - }, - "type": "boolean", - "optional": true - } - ] - }, "IOverlayableProps": { "documentation": { "contents": [], @@ -103523,6 +106484,125 @@ } ] }, + "IMenuItemProps": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/core/dist/components/menu/menuItem.d.ts", + "name": "IMenuItemProps", + "tags": {}, + "type": "interface", + "extends": [ + "IActionProps", + "ILinkProps" + ], + "properties": [ + { + "documentation": { + "contents": [ + "

Right-aligned label content, useful for displaying hotkeys.

\n" + ], + "contentsRaw": "Right-aligned label content, useful for displaying hotkeys.", + "metadata": {} + }, + "fileName": "packages/core/dist/components/menu/menuItem.d.ts", + "name": "label", + "tags": {}, + "type": "string | Element", + "optional": true + }, + { + "documentation": { + "contents": [ + "

Props to spread to Popover. Note that content cannot be changed.

\n" + ], + "contentsRaw": "Props to spread to `Popover`. Note that `content` cannot be changed. ", + "metadata": {} + }, + "fileName": "packages/core/dist/components/menu/menuItem.d.ts", + "name": "popoverProps", + "tags": {}, + "type": "any", + "optional": true + }, + { + "documentation": { + "contents": [ + "

Whether an enabled, non-submenu item should automatically close the\npopover it is nested within when clicked.

\n" + ], + "contentsRaw": "Whether an enabled, non-submenu item should automatically close the\npopover it is nested within when clicked.", + "metadata": {} + }, + "fileName": "packages/core/dist/components/menu/menuItem.d.ts", + "name": "shouldDismissPopover", + "tags": { + "default": "true" + }, + "type": "boolean", + "optional": true + }, + { + "documentation": { + "contents": [ + "

Array of props objects for submenu items.\nAn alternative to providing MenuItem components as children.

\n" + ], + "contentsRaw": "Array of props objects for submenu items.\nAn alternative to providing `MenuItem` components as `children`.", + "metadata": {} + }, + "fileName": "packages/core/dist/components/menu/menuItem.d.ts", + "name": "submenu", + "tags": {}, + "type": "IMenuItemProps[]", + "optional": true + }, + { + "documentation": { + "contents": [ + "

Width of margin from left or right edge of viewport. Submenus will\nflip to the other side if they come within this distance of that edge.\nThis has no effect if omitted or if useSmartPositioning is set to false.\nNote that these values are not CSS properties; they are used in\ninternal math to determine when to flip sides.

\n" + ], + "contentsRaw": "Width of `margin` from left or right edge of viewport. Submenus will\nflip to the other side if they come within this distance of that edge.\nThis has no effect if omitted or if `useSmartPositioning` is set to `false`.\nNote that these values are not CSS properties; they are used in\ninternal math to determine when to flip sides.", + "metadata": {} + }, + "fileName": "packages/core/dist/components/menu/menuItem.d.ts", + "name": "submenuViewportMargin", + "tags": {}, + "type": "{ left?: number; right?: number; }", + "optional": true + }, + { + "documentation": { + "contents": [ + "

Item text, required for usability.

\n" + ], + "contentsRaw": "Item text, required for usability. ", + "metadata": {} + }, + "fileName": "packages/core/dist/components/menu/menuItem.d.ts", + "name": "text", + "tags": {}, + "type": "string", + "optional": false + }, + { + "documentation": { + "contents": [ + "

Whether a submenu popover will try to reposition itself\nif there isn't room for it in its current position.\nThe popover opens right by default, but will try to flip\nleft if not enough space.

\n" + ], + "contentsRaw": "Whether a submenu popover will try to reposition itself\nif there isn't room for it in its current position.\nThe popover opens right by default, but will try to flip\nleft if not enough space.", + "metadata": {} + }, + "fileName": "packages/core/dist/components/menu/menuItem.d.ts", + "name": "useSmartPositioning", + "tags": { + "default": "true" + }, + "type": "boolean", + "optional": true + } + ] + }, "ICollapsibleListProps": { "documentation": { "contents": [], @@ -108669,813 +111749,1370 @@ }, { "documentation": { - "contents": [ - "

Called when the user selects a day.\nIf no days are selected, it will pass [null, null].\nIf a start date is selected but not an end date, it will pass [selectedDate, null].\nIf both a start and end date are selected, it will pass [startDate, endDate].

\n" - ], - "contentsRaw": "Called when the user selects a day.\nIf no days are selected, it will pass `[null, null]`.\nIf a start date is selected but not an end date, it will pass `[selectedDate, null]`.\nIf both a start and end date are selected, it will pass `[startDate, endDate]`.", + "contents": [ + "

Called when the user selects a day.\nIf no days are selected, it will pass [null, null].\nIf a start date is selected but not an end date, it will pass [selectedDate, null].\nIf both a start and end date are selected, it will pass [startDate, endDate].

\n" + ], + "contentsRaw": "Called when the user selects a day.\nIf no days are selected, it will pass `[null, null]`.\nIf a start date is selected but not an end date, it will pass `[selectedDate, null]`.\nIf both a start and end date are selected, it will pass `[startDate, endDate]`.", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangePicker.d.ts", + "name": "onChange", + "tags": {}, + "type": "(selectedDates: [Date, Date]) => void", + "optional": true + }, + { + "documentation": { + "contents": [ + "

Called when the user changes the hovered date range, either from mouseenter or mouseleave.\nWhen triggered from mouseenter, it will pass the date range that would result from next click.\nWhen triggered from mouseleave, it will pass undefined.

\n" + ], + "contentsRaw": "Called when the user changes the hovered date range, either from mouseenter or mouseleave.\nWhen triggered from mouseenter, it will pass the date range that would result from next click.\nWhen triggered from mouseleave, it will pass `undefined`.", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangePicker.d.ts", + "name": "onHoverChange", + "tags": {}, + "type": "(hoveredDates: [Date, Date], hoveredDay: Date, hoveredBoundary: DateRangeBoundary) => void", + "optional": true + }, + { + "documentation": { + "contents": [ + "

Whether shortcuts to quickly select a range of dates are displayed or not.\nIf true, preset shortcuts will be displayed.\nIf false, no shortcuts will be displayed.\nIf an array is provided, the custom shortcuts will be displayed.

\n" + ], + "contentsRaw": "Whether shortcuts to quickly select a range of dates are displayed or not.\nIf `true`, preset shortcuts will be displayed.\nIf `false`, no shortcuts will be displayed.\nIf an array is provided, the custom shortcuts will be displayed.", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangePicker.d.ts", + "name": "shortcuts", + "tags": { + "default": "true" + }, + "type": "boolean | IDateRangeShortcut[]", + "optional": true + }, + { + "documentation": { + "contents": [ + "

The currently selected DateRange.\nIf this prop is provided, the component acts in a controlled manner.

\n" + ], + "contentsRaw": "The currently selected `DateRange`.\nIf this prop is provided, the component acts in a controlled manner.", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangePicker.d.ts", + "name": "value", + "tags": {}, + "type": "[Date, Date]", + "optional": true + } + ] + }, + "IDateRangeInputProps": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangeInput.d.ts", + "name": "IDateRangeInputProps", + "tags": {}, + "type": "interface", + "extends": [ + "IDatePickerBaseProps", + "IProps" + ], + "properties": [ + { + "documentation": { + "contents": [ + "

Whether the start and end dates of the range can be the same day.\nIf true, clicking a selected date will create a one-day range.\nIf false, clicking a selected date will clear the selection.

\n" + ], + "contentsRaw": "Whether the start and end dates of the range can be the same day.\nIf `true`, clicking a selected date will create a one-day range.\nIf `false`, clicking a selected date will clear the selection.", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangeInput.d.ts", + "name": "allowSingleDayRange", + "tags": { + "default": "false" + }, + "type": "boolean", + "optional": true + }, + { + "documentation": { + "contents": [ + "

Whether the calendar popover should close when a date range is fully selected.

\n" + ], + "contentsRaw": "Whether the calendar popover should close when a date range is fully selected.", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangeInput.d.ts", + "name": "closeOnSelection", + "tags": { + "default": "true" + }, + "type": "boolean", + "optional": true + }, + { + "documentation": { + "contents": [ + "

Whether displayed months in the calendar are contiguous.\nIf false, each side of the calendar can move independently to non-contiguous months.

\n" + ], + "contentsRaw": "Whether displayed months in the calendar are contiguous.\nIf false, each side of the calendar can move independently to non-contiguous months.", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangeInput.d.ts", + "name": "contiguousCalendarMonths", + "tags": { + "default": "true" + }, + "type": "boolean", + "optional": true + }, + { + "documentation": { + "contents": [ + "

The default date range to be used in the component when uncontrolled.\nThis will be ignored if value is set.

\n" + ], + "contentsRaw": "The default date range to be used in the component when uncontrolled.\nThis will be ignored if `value` is set.", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangeInput.d.ts", + "name": "defaultValue", + "tags": {}, + "type": "[Date, Date]", + "optional": true + }, + { + "documentation": { + "contents": [ + "

Whether the text inputs are non-interactive.

\n" + ], + "contentsRaw": "Whether the text inputs are non-interactive.", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangeInput.d.ts", + "name": "disabled", + "tags": { + "default": "false" + }, + "type": "boolean", + "optional": true + }, + { + "documentation": { + "contents": [ + "

Props to pass to the end-date input group.\ndisabled and value will be ignored in favor of the top-level props on this component.\nref is not supported; use inputRef instead.

\n" + ], + "contentsRaw": "Props to pass to the end-date [input group](#core/components/forms/input-group.javascript-api).\n`disabled` and `value` will be ignored in favor of the top-level props on this component.\n`ref` is not supported; use `inputRef` instead.", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangeInput.d.ts", + "name": "endInputProps", + "tags": {}, + "type": "HTMLProps & IInputGroupProps", + "optional": true + }, + { + "documentation": { + "contents": [ + "

The format of each date in the date range. See options\nhere: http://momentjs.com/docs/#/displaying/format/

\n" + ], + "contentsRaw": "The format of each date in the date range. See options\nhere: http://momentjs.com/docs/#/displaying/format/", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangeInput.d.ts", + "name": "format", + "tags": { + "default": "\"YYYY-MM-DD\"" + }, + "type": "string", + "optional": true + }, + { + "documentation": { + "contents": [ + "

The error message to display when the selected date is invalid.

\n" + ], + "contentsRaw": "The error message to display when the selected date is invalid.", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangeInput.d.ts", + "name": "invalidDateMessage", + "tags": { + "default": "\"Invalid date\"" + }, + "type": "string", + "optional": true + }, + { + "documentation": { + "contents": [ + "

Called when the user selects a day.\nIf no days are selected, it will pass [null, null].\nIf a start date is selected but not an end date, it will pass [selectedDate, null].\nIf both a start and end date are selected, it will pass [startDate, endDate].

\n" + ], + "contentsRaw": "Called when the user selects a day.\nIf no days are selected, it will pass `[null, null]`.\nIf a start date is selected but not an end date, it will pass `[selectedDate, null]`.\nIf both a start and end date are selected, it will pass `[startDate, endDate]`.", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangeInput.d.ts", + "name": "onChange", + "tags": {}, + "type": "(selectedRange: [Date, Date]) => void", + "optional": true + }, + { + "documentation": { + "contents": [ + "

Called when the user finishes typing in a new date and the date causes an error state.\nIf the date is invalid, new Date(undefined) will be returned for the corresponding\nboundary of the date range.\nIf the date is out of range, the out-of-range date will be returned for the corresponding\nboundary of the date range (onChange is not called in this case).

\n" + ], + "contentsRaw": "Called when the user finishes typing in a new date and the date causes an error state.\nIf the date is invalid, `new Date(undefined)` will be returned for the corresponding\nboundary of the date range.\nIf the date is out of range, the out-of-range date will be returned for the corresponding\nboundary of the date range (`onChange` is not called in this case).", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangeInput.d.ts", + "name": "onError", + "tags": {}, + "type": "(errorRange: [Date, Date]) => void", + "optional": true + }, + { + "documentation": { + "contents": [ + "

The error message to display when the date selected is out of range.

\n" + ], + "contentsRaw": "The error message to display when the date selected is out of range.", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangeInput.d.ts", + "name": "outOfRangeMessage", + "tags": { + "default": "\"Out of range\"" + }, + "type": "string", + "optional": true + }, + { + "documentation": { + "contents": [ + "

The error message to display when the selected dates overlap.\nThis can only happen when typing dates in the input field.

\n" + ], + "contentsRaw": "The error message to display when the selected dates overlap.\nThis can only happen when typing dates in the input field.", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangeInput.d.ts", + "name": "overlappingDatesMessage", + "tags": { + "default": "\"Overlapping dates\"" + }, + "type": "string", + "optional": true + }, + { + "documentation": { + "contents": [ + "

The props to pass to the popover.\nautoFocus, content, and enforceFocus will be ignored to avoid compromising usability.

\n" + ], + "contentsRaw": "The props to pass to the popover.\n`autoFocus`, `content`, and `enforceFocus` will be ignored to avoid compromising usability.", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangeInput.d.ts", + "name": "popoverProps", + "tags": {}, + "type": "Partial", + "optional": true + }, + { + "documentation": { + "contents": [ + "

Whether the entire text field should be selected on focus.

\n" + ], + "contentsRaw": "Whether the entire text field should be selected on focus.", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangeInput.d.ts", + "name": "selectAllOnFocus", + "tags": { + "default": "false" + }, + "type": "boolean", + "optional": true + }, + { + "documentation": { + "contents": [ + "

Whether shortcuts to quickly select a range of dates are displayed or not.\nIf true, preset shortcuts will be displayed.\nIf false, no shortcuts will be displayed.\nIf an array is provided, the custom shortcuts will be displayed.

\n" + ], + "contentsRaw": "Whether shortcuts to quickly select a range of dates are displayed or not.\nIf `true`, preset shortcuts will be displayed.\nIf `false`, no shortcuts will be displayed.\nIf an array is provided, the custom shortcuts will be displayed.", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangeInput.d.ts", + "name": "shortcuts", + "tags": { + "default": "true" + }, + "type": "boolean | IDateRangeShortcut[]", + "optional": true + }, + { + "documentation": { + "contents": [ + "

Props to pass to the start-date input group.\ndisabled and value will be ignored in favor of the top-level props on this component.\nref is not supported; use inputRef instead.

\n" + ], + "contentsRaw": "Props to pass to the start-date [input group](#core/components/forms/input-group.javascript-api).\n`disabled` and `value` will be ignored in favor of the top-level props on this component.\n`ref` is not supported; use `inputRef` instead.", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangeInput.d.ts", + "name": "startInputProps", + "tags": {}, + "type": "HTMLProps & IInputGroupProps", + "optional": true + }, + { + "documentation": { + "contents": [ + "

The currently selected date range.\nIf the prop is strictly undefined, the component acts in an uncontrolled manner.\nIf this prop is anything else, the component acts in a controlled manner.\nTo display an empty value in the input fields in a controlled manner, pass [null, null].\nTo display an invalid date error in either input field, pass new Date(undefined)\nfor the appropriate date in the value prop.

\n" + ], + "contentsRaw": "The currently selected date range.\nIf the prop is strictly `undefined`, the component acts in an uncontrolled manner.\nIf this prop is anything else, the component acts in a controlled manner.\nTo display an empty value in the input fields in a controlled manner, pass `[null, null]`.\nTo display an invalid date error in either input field, pass `new Date(undefined)`\nfor the appropriate date in the value prop.", + "metadata": {} + }, + "fileName": "packages/datetime/dist/dateRangeInput.d.ts", + "name": "value", + "tags": {}, + "type": "[Date, Date]", + "optional": true + } + ] + }, + "IBaseExampleProps": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/docs/dist/components/baseExample.d.ts", + "name": "IBaseExampleProps", + "tags": {}, + "type": "interface", + "properties": [ + { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/docs/dist/components/baseExample.d.ts", + "name": "id", + "tags": {}, + "type": "string", + "optional": false + }, + { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/docs/dist/components/baseExample.d.ts", + "name": "themeName", + "tags": {}, + "type": "string", + "optional": false + } + ] + }, + "IDocsData": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/docs/dist/tags/defaults.d.ts", + "name": "IDocsData", + "tags": {}, + "type": "interface", + "extends": [ + "IKssPluginData", + "IMarkdownPluginData", + "ITypescriptPluginData" + ], + "properties": [] + }, + "IDocsMap": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/docs/dist/tags/reactDocs.d.ts", + "name": "IDocsMap", + "tags": {}, + "type": "interface", + "properties": [] + }, + "IExample": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/docs/dist/tags/reactExample.d.ts", + "name": "IExample", + "tags": {}, + "type": "interface", + "properties": [ + { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/docs/dist/tags/reactExample.d.ts", + "name": "render", + "tags": {}, + "type": "(props: { id: string; }) => Element", + "optional": false + }, + { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/docs/dist/tags/reactExample.d.ts", + "name": "sourceUrl", + "tags": {}, + "type": "string", + "optional": false + } + ] + }, + "IExampleMap": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/docs/dist/tags/reactExample.d.ts", + "name": "IExampleMap", + "tags": {}, + "type": "interface", + "properties": [] + }, + "IExampleProps": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/docs/dist/tags/reactExample.d.ts", + "name": "IExampleProps", + "tags": {}, + "type": "interface", + "properties": [ + { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/docs/dist/tags/reactExample.d.ts", + "name": "example", + "tags": {}, + "type": "IExample", + "optional": false + }, + { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/docs/dist/tags/reactExample.d.ts", + "name": "name", + "tags": {}, + "type": "string", + "optional": false + } + ] + }, + "ReactExample": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/docs/dist/tags/reactExample.d.ts", + "name": "ReactExample", + "tags": {}, + "type": "React.StatelessComponent", + "properties": [ + { + "documentation": { + "contents": [], + "contentsRaw": "", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangePicker.d.ts", - "name": "onChange", + "fileName": "packages/docs/dist/tags/reactExample.d.ts", + "name": "propTypes", "tags": {}, - "type": "(selectedDates: [Date, Date]) => void", - "optional": true + "type": "React.ValidationMap" }, { "documentation": { - "contents": [ - "

Called when the user changes the hovered date range, either from mouseenter or mouseleave.\nWhen triggered from mouseenter, it will pass the date range that would result from next click.\nWhen triggered from mouseleave, it will pass undefined.

\n" - ], - "contentsRaw": "Called when the user changes the hovered date range, either from mouseenter or mouseleave.\nWhen triggered from mouseenter, it will pass the date range that would result from next click.\nWhen triggered from mouseleave, it will pass `undefined`.", + "contents": [], + "contentsRaw": "", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangePicker.d.ts", - "name": "onHoverChange", + "fileName": "packages/docs/dist/tags/reactExample.d.ts", + "name": "contextTypes", "tags": {}, - "type": "(hoveredDates: [Date, Date], hoveredDay: Date, hoveredBoundary: DateRangeBoundary) => void", - "optional": true + "type": "React.ValidationMap" }, { "documentation": { - "contents": [ - "

Whether shortcuts to quickly select a range of dates are displayed or not.\nIf true, preset shortcuts will be displayed.\nIf false, no shortcuts will be displayed.\nIf an array is provided, the custom shortcuts will be displayed.

\n" - ], - "contentsRaw": "Whether shortcuts to quickly select a range of dates are displayed or not.\nIf `true`, preset shortcuts will be displayed.\nIf `false`, no shortcuts will be displayed.\nIf an array is provided, the custom shortcuts will be displayed.", + "contents": [], + "contentsRaw": "", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangePicker.d.ts", - "name": "shortcuts", - "tags": { - "default": "true" - }, - "type": "boolean | IDateRangeShortcut[]", - "optional": true + "fileName": "packages/docs/dist/tags/reactExample.d.ts", + "name": "defaultProps", + "tags": {}, + "type": "IExampleProps" }, { "documentation": { - "contents": [ - "

The currently selected DateRange.\nIf this prop is provided, the component acts in a controlled manner.

\n" - ], - "contentsRaw": "The currently selected `DateRange`.\nIf this prop is provided, the component acts in a controlled manner.", + "contents": [], + "contentsRaw": "", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangePicker.d.ts", - "name": "value", + "fileName": "packages/docs/dist/tags/reactExample.d.ts", + "name": "displayName", "tags": {}, - "type": "[Date, Date]", - "optional": true + "type": "string" } ] }, - "IDateRangeInputProps": { + "ITagRendererMap": { "documentation": { "contents": [], "contentsRaw": "", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangeInput.d.ts", - "name": "IDateRangeInputProps", + "fileName": "packages/docs/dist/tags/index.d.ts", + "name": "ITagRendererMap", + "tags": {}, + "type": "interface", + "properties": [] + }, + "IDocumentationProps": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/docs/dist/components/documentation.d.ts", + "name": "IDocumentationProps", "tags": {}, "type": "interface", "extends": [ - "IDatePickerBaseProps", "IProps" ], "properties": [ { "documentation": { "contents": [ - "

Whether the start and end dates of the range can be the same day.\nIf true, clicking a selected date will create a one-day range.\nIf false, clicking a selected date will clear the selection.

\n" + "

Default page to render in the absence of a hash route.

\n" ], - "contentsRaw": "Whether the start and end dates of the range can be the same day.\nIf `true`, clicking a selected date will create a one-day range.\nIf `false`, clicking a selected date will clear the selection.", + "contentsRaw": "Default page to render in the absence of a hash route.", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangeInput.d.ts", - "name": "allowSingleDayRange", - "tags": { - "default": "false" - }, - "type": "boolean", - "optional": true + "fileName": "packages/docs/dist/components/documentation.d.ts", + "name": "defaultPageId", + "tags": {}, + "type": "string", + "optional": false }, { "documentation": { "contents": [ - "

Whether the calendar popover should close when a date range is fully selected.

\n" + "

All the docs data from Documentalist.\nMust include at least { nav, pages } from the MarkdownPlugin.

\n" ], - "contentsRaw": "Whether the calendar popover should close when a date range is fully selected.", + "contentsRaw": "All the docs data from Documentalist.\nMust include at least `{ nav, pages }` from the MarkdownPlugin.", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangeInput.d.ts", - "name": "closeOnSelection", - "tags": { - "default": "true" - }, - "type": "boolean", - "optional": true + "fileName": "packages/docs/dist/components/documentation.d.ts", + "name": "docs", + "tags": {}, + "type": "IMarkdownPluginData", + "optional": false }, { "documentation": { "contents": [ - "

Whether displayed months in the calendar are contiguous.\nIf false, each side of the calendar can move independently to non-contiguous months.

\n" + "

Elements to render on the left side of the navbar, typically logo and title.\nAll elements will be wrapped in a single .pt-navbar-group.

\n" ], - "contentsRaw": "Whether displayed months in the calendar are contiguous.\nIf false, each side of the calendar can move independently to non-contiguous months.", + "contentsRaw": "Elements to render on the left side of the navbar, typically logo and title.\nAll elements will be wrapped in a single `.pt-navbar-group`.", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangeInput.d.ts", - "name": "contiguousCalendarMonths", + "fileName": "packages/docs/dist/components/documentation.d.ts", + "name": "navbarLeft", "tags": { - "default": "true" + "default": "\"Documentation\"" }, - "type": "boolean", + "type": "React.ReactNode", "optional": true }, { "documentation": { "contents": [ - "

The default date range to be used in the component when uncontrolled.\nThis will be ignored if value is set.

\n" + "

Element to render on the right side of the navbar, typically links and actions.\nAll elements will be wrapped in a single .pt-navbar-group.

\n" ], - "contentsRaw": "The default date range to be used in the component when uncontrolled.\nThis will be ignored if `value` is set.", + "contentsRaw": "Element to render on the right side of the navbar, typically links and actions.\nAll elements will be wrapped in a single `.pt-navbar-group`.", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangeInput.d.ts", - "name": "defaultValue", + "fileName": "packages/docs/dist/components/documentation.d.ts", + "name": "navbarRight", "tags": {}, - "type": "[Date, Date]", + "type": "React.ReactNode", "optional": true }, { "documentation": { "contents": [ - "

Whether the text inputs are non-interactive.

\n" + "

Callback invoked whenever the component props or state change (specifically,\ncalled in componentDidMount and componentDidUpdate).\nUse it to run non-React code on the newly rendered sections.

\n" ], - "contentsRaw": "Whether the text inputs are non-interactive.", + "contentsRaw": "Callback invoked whenever the component props or state change (specifically,\ncalled in `componentDidMount` and `componentDidUpdate`).\nUse it to run non-React code on the newly rendered sections.", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangeInput.d.ts", - "name": "disabled", - "tags": { - "default": "false" - }, - "type": "boolean", + "fileName": "packages/docs/dist/components/documentation.d.ts", + "name": "onComponentUpdate", + "tags": {}, + "type": "(pageId: string) => void", "optional": true }, { "documentation": { "contents": [ - "

Props to pass to the end-date input group.\ndisabled and value will be ignored in favor of the top-level props on this component.\nref is not supported; use inputRef instead.

\n" + "

Tag renderer functions. Unknown tags will log console errors.

\n" ], - "contentsRaw": "Props to pass to the end-date [input group](#core/components/forms/input-group.javascript-api).\n`disabled` and `value` will be ignored in favor of the top-level props on this component.\n`ref` is not supported; use `inputRef` instead.", + "contentsRaw": "Tag renderer functions. Unknown tags will log console errors. ", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangeInput.d.ts", - "name": "endInputProps", + "fileName": "packages/docs/dist/components/documentation.d.ts", + "name": "tagRenderers", "tags": {}, - "type": "HTMLProps & IInputGroupProps", - "optional": true - }, + "type": "{ [tag: string]: TagRenderer; }", + "optional": false + } + ] + }, + "IInheritedPropertyEntry": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/docs/dist/common/propsStore.d.ts", + "name": "IInheritedPropertyEntry", + "tags": {}, + "type": "interface", + "extends": [ + "ITsPropertyEntry" + ], + "properties": [ { "documentation": { - "contents": [ - "

The format of each date in the date range. See options\nhere: http://momentjs.com/docs/#/displaying/format/

\n" - ], - "contentsRaw": "The format of each date in the date range. See options\nhere: http://momentjs.com/docs/#/displaying/format/", + "contents": [], + "contentsRaw": "", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangeInput.d.ts", - "name": "format", - "tags": { - "default": "\"YYYY-MM-DD\"" - }, + "fileName": "packages/docs/dist/common/propsStore.d.ts", + "name": "inheritedFrom", + "tags": {}, "type": "string", "optional": true - }, + } + ] + }, + "IKeyEventMap": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/docs/dist/common/utils.d.ts", + "name": "IKeyEventMap", + "tags": {}, + "type": "interface", + "properties": [ { "documentation": { "contents": [ - "

The error message to display when the selected date is invalid.

\n" + "

event handler invoked on all events

\n" ], - "contentsRaw": "The error message to display when the selected date is invalid.", + "contentsRaw": "event handler invoked on all events ", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangeInput.d.ts", - "name": "invalidDateMessage", - "tags": { - "default": "\"Invalid date\"" - }, - "type": "string", + "fileName": "packages/docs/dist/common/utils.d.ts", + "name": "all", + "tags": {}, + "type": "React.EventHandler>", "optional": true - }, + } + ] + }, + "INPUT_GHOST": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/labs/dist/common/classes.d.ts", + "name": "INPUT_GHOST", + "tags": {}, + "type": "\"pt-input-ghost\"", + "properties": [] + }, + "MULTISELECT": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/labs/dist/common/classes.d.ts", + "name": "MULTISELECT", + "tags": {}, + "type": "\"pt-multi-select\"", + "properties": [] + }, + "MULTISELECT_POPOVER": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/labs/dist/common/classes.d.ts", + "name": "MULTISELECT_POPOVER", + "tags": {}, + "type": "string", + "properties": [] + }, + "OMNIBOX": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/labs/dist/common/classes.d.ts", + "name": "OMNIBOX", + "tags": {}, + "type": "\"pt-omnibox\"", + "properties": [] + }, + "OMNIBOX_OVERLAY": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/labs/dist/common/classes.d.ts", + "name": "OMNIBOX_OVERLAY", + "tags": {}, + "type": "string", + "properties": [] + }, + "SELECT_POPOVER": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/labs/dist/common/classes.d.ts", + "name": "SELECT_POPOVER", + "tags": {}, + "type": "string", + "properties": [] + }, + "TAG_INPUT": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/labs/dist/common/classes.d.ts", + "name": "TAG_INPUT", + "tags": {}, + "type": "\"pt-tag-input\"", + "properties": [] + }, + "TAG_INPUT_ICON": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/labs/dist/common/classes.d.ts", + "name": "TAG_INPUT_ICON", + "tags": {}, + "type": "string", + "properties": [] + }, + "TIMEZONE_PICKER": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/labs/dist/common/classes.d.ts", + "name": "TIMEZONE_PICKER", + "tags": {}, + "type": "\"pt-timezone-picker\"", + "properties": [] + }, + "TIMEZONE_PICKER_POPOVER": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/labs/dist/common/classes.d.ts", + "name": "TIMEZONE_PICKER_POPOVER", + "tags": {}, + "type": "string", + "properties": [] + }, + "IListItemsProps": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "IListItemsProps", + "tags": {}, + "type": "interface", + "extends": [ + "IProps" + ], + "properties": [ { "documentation": { "contents": [ - "

Called when the user selects a day.\nIf no days are selected, it will pass [null, null].\nIf a start date is selected but not an end date, it will pass [selectedDate, null].\nIf both a start and end date are selected, it will pass [startDate, endDate].

\n" + "

Customize querying of entire items array. Return new list of items.\nThis method can reorder, add, or remove items at will.\n(Supports filter algorithms that operate on the entire set, rather than individual items.)

\n

If defined with itemPredicate, this prop takes priority and the other will be ignored.

\n" ], - "contentsRaw": "Called when the user selects a day.\nIf no days are selected, it will pass `[null, null]`.\nIf a start date is selected but not an end date, it will pass `[selectedDate, null]`.\nIf both a start and end date are selected, it will pass `[startDate, endDate]`.", + "contentsRaw": "Customize querying of entire `items` array. Return new list of items.\nThis method can reorder, add, or remove items at will.\n(Supports filter algorithms that operate on the entire set, rather than individual items.)\n\nIf defined with `itemPredicate`, this prop takes priority and the other will be ignored.", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangeInput.d.ts", - "name": "onChange", + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "itemListPredicate", "tags": {}, - "type": "(selectedRange: [Date, Date]) => void", + "type": "(query: string, items: T[]) => T[]", "optional": true }, { "documentation": { "contents": [ - "

Called when the user finishes typing in a new date and the date causes an error state.\nIf the date is invalid, new Date(undefined) will be returned for the corresponding\nboundary of the date range.\nIf the date is out of range, the out-of-range date will be returned for the corresponding\nboundary of the date range (onChange is not called in this case).

\n" + "

Customize querying of individual items. Return true to keep the item, false to hide.\nThis method will be invoked once for each item, so it should be performant. For more complex\nqueries, use itemListPredicate to operate once on the entire array.

\n

If defined with itemListPredicate, this prop will be ignored.

\n" ], - "contentsRaw": "Called when the user finishes typing in a new date and the date causes an error state.\nIf the date is invalid, `new Date(undefined)` will be returned for the corresponding\nboundary of the date range.\nIf the date is out of range, the out-of-range date will be returned for the corresponding\nboundary of the date range (`onChange` is not called in this case).", + "contentsRaw": "Customize querying of individual items. Return `true` to keep the item, `false` to hide.\nThis method will be invoked once for each item, so it should be performant. For more complex\nqueries, use `itemListPredicate` to operate once on the entire array.\n\nIf defined with `itemListPredicate`, this prop will be ignored.", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangeInput.d.ts", - "name": "onError", + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "itemPredicate", "tags": {}, - "type": "(errorRange: [Date, Date]) => void", + "type": "(query: string, item: T, index: number) => boolean", "optional": true }, { "documentation": { "contents": [ - "

The error message to display when the date selected is out of range.

\n" + "

Array of items in the list.

\n" ], - "contentsRaw": "The error message to display when the date selected is out of range.", + "contentsRaw": "Array of items in the list. ", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangeInput.d.ts", - "name": "outOfRangeMessage", - "tags": { - "default": "\"Out of range\"" - }, - "type": "string", - "optional": true + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "items", + "tags": {}, + "type": "T[]", + "optional": false }, { "documentation": { "contents": [ - "

The error message to display when the selected dates overlap.\nThis can only happen when typing dates in the input field.

\n" + "

Callback invoked when an item from the list is selected,\ntypically by clicking or pressing enter key.

\n" ], - "contentsRaw": "The error message to display when the selected dates overlap.\nThis can only happen when typing dates in the input field.", + "contentsRaw": "Callback invoked when an item from the list is selected,\ntypically by clicking or pressing `enter` key.", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangeInput.d.ts", - "name": "overlappingDatesMessage", - "tags": { - "default": "\"Overlapping dates\"" - }, - "type": "string", - "optional": true - }, + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "onItemSelect", + "tags": {}, + "type": "(item: T, event?: SyntheticEvent) => void", + "optional": false + } + ] + }, + "IQueryListProps": { + "documentation": { + "contents": [], + "contentsRaw": "", + "metadata": {} + }, + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "IQueryListProps", + "tags": {}, + "type": "interface", + "extends": [ + "IListItemsProps" + ], + "properties": [ { "documentation": { "contents": [ - "

The props to pass to the popover.\nautoFocus, content, and enforceFocus will be ignored to avoid compromising usability.

\n" + "

The active item is the current keyboard-focused element.\nListen to onActiveItemChange for updates from interactions.

\n" ], - "contentsRaw": "The props to pass to the popover.\n`autoFocus`, `content`, and `enforceFocus` will be ignored to avoid compromising usability.", + "contentsRaw": "The active item is the current keyboard-focused element.\nListen to `onActiveItemChange` for updates from interactions.", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangeInput.d.ts", - "name": "popoverProps", + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "activeItem", "tags": {}, - "type": "Partial", - "optional": true + "type": "T", + "optional": false }, { "documentation": { "contents": [ - "

Whether the entire text field should be selected on focus.

\n" + "

Invoked when user interaction should change the active item: arrow keys move it up/down\nin the list, selecting an item makes it active, and changing the query may reset it to\nthe first item in the list if it no longer matches the filter.

\n" ], - "contentsRaw": "Whether the entire text field should be selected on focus.", + "contentsRaw": "Invoked when user interaction should change the active item: arrow keys move it up/down\nin the list, selecting an item makes it active, and changing the query may reset it to\nthe first item in the list if it no longer matches the filter.", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangeInput.d.ts", - "name": "selectAllOnFocus", - "tags": { - "default": "false" - }, - "type": "boolean", - "optional": true + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "onActiveItemChange", + "tags": {}, + "type": "(activeItem: T) => void", + "optional": false }, { "documentation": { "contents": [ - "

Whether shortcuts to quickly select a range of dates are displayed or not.\nIf true, preset shortcuts will be displayed.\nIf false, no shortcuts will be displayed.\nIf an array is provided, the custom shortcuts will be displayed.

\n" + "

Callback invoked when user presses a key, after processing QueryList's own key events\n(up/down to navigate active item). This callback is passed to renderer and (along with\nonKeyUp) can be attached to arbitrary content elements to support keyboard selection.

\n" ], - "contentsRaw": "Whether shortcuts to quickly select a range of dates are displayed or not.\nIf `true`, preset shortcuts will be displayed.\nIf `false`, no shortcuts will be displayed.\nIf an array is provided, the custom shortcuts will be displayed.", + "contentsRaw": "Callback invoked when user presses a key, after processing `QueryList`'s own key events\n(up/down to navigate active item). This callback is passed to `renderer` and (along with\n`onKeyUp`) can be attached to arbitrary content elements to support keyboard selection.", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangeInput.d.ts", - "name": "shortcuts", - "tags": { - "default": "true" - }, - "type": "boolean | IDateRangeShortcut[]", + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "onKeyDown", + "tags": {}, + "type": "React.EventHandler>", "optional": true }, { "documentation": { "contents": [ - "

Props to pass to the start-date input group.\ndisabled and value will be ignored in favor of the top-level props on this component.\nref is not supported; use inputRef instead.

\n" + "

Callback invoked when user releases a key, after processing QueryList's own key events\n(enter to select active item). This callback is passed to renderer and (along with\nonKeyDown) can be attached to arbitrary content elements to support keyboard selection.

\n" ], - "contentsRaw": "Props to pass to the start-date [input group](#core/components/forms/input-group.javascript-api).\n`disabled` and `value` will be ignored in favor of the top-level props on this component.\n`ref` is not supported; use `inputRef` instead.", + "contentsRaw": "Callback invoked when user releases a key, after processing `QueryList`'s own key events\n(enter to select active item). This callback is passed to `renderer` and (along with\n`onKeyDown`) can be attached to arbitrary content elements to support keyboard selection.", "metadata": {} }, - "fileName": "packages/datetime/dist/dateRangeInput.d.ts", - "name": "startInputProps", + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "onKeyUp", "tags": {}, - "type": "HTMLProps & IInputGroupProps", + "type": "React.EventHandler>", "optional": true }, { "documentation": { "contents": [ - "

The currently selected date range.\nIf the prop is strictly undefined, the component acts in an uncontrolled manner.\nIf this prop is anything else, the component acts in a controlled manner.\nTo display an empty value in the input fields in a controlled manner, pass [null, null].\nTo display an invalid date error in either input field, pass new Date(undefined)\nfor the appropriate date in the value prop.

\n" + "

Query string passed to itemListPredicate or itemPredicate to filter items.\nThis value is controlled: its state must be managed externally by attaching an onChange\nhandler to the relevant element in your renderer implementation.

\n" ], - "contentsRaw": "The currently selected date range.\nIf the prop is strictly `undefined`, the component acts in an uncontrolled manner.\nIf this prop is anything else, the component acts in a controlled manner.\nTo display an empty value in the input fields in a controlled manner, pass `[null, null]`.\nTo display an invalid date error in either input field, pass `new Date(undefined)`\nfor the appropriate date in the value prop.", - "metadata": {} - }, - "fileName": "packages/datetime/dist/dateRangeInput.d.ts", - "name": "value", - "tags": {}, - "type": "[Date, Date]", - "optional": true - } - ] - }, - "IBaseExampleProps": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/docs/dist/components/baseExample.d.ts", - "name": "IBaseExampleProps", - "tags": {}, - "type": "interface", - "properties": [ - { - "documentation": { - "contents": [], - "contentsRaw": "", + "contentsRaw": "Query string passed to `itemListPredicate` or `itemPredicate` to filter items.\nThis value is controlled: its state must be managed externally by attaching an `onChange`\nhandler to the relevant element in your `renderer` implementation.", "metadata": {} }, - "fileName": "packages/docs/dist/components/baseExample.d.ts", - "name": "id", + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "query", "tags": {}, "type": "string", "optional": false }, { "documentation": { - "contents": [], - "contentsRaw": "", + "contents": [ + "

Customize rendering of the component.\nReceives an object with props that should be applied to elements as necessary.

\n" + ], + "contentsRaw": "Customize rendering of the component.\nReceives an object with props that should be applied to elements as necessary.", "metadata": {} }, - "fileName": "packages/docs/dist/components/baseExample.d.ts", - "name": "themeName", + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "renderer", "tags": {}, - "type": "string", + "type": "(listProps: IQueryListRendererProps) => Element", "optional": false } ] }, - "IDocsData": { + "IQueryListRendererProps": { "documentation": { "contents": [], "contentsRaw": "", "metadata": {} }, - "fileName": "packages/docs/dist/tags/defaults.d.ts", - "name": "IDocsData", + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "IQueryListRendererProps", "tags": {}, "type": "interface", "extends": [ - "IKssPluginData", - "IMarkdownPluginData", - "ITypescriptPluginData" + "IProps" ], - "properties": [] - }, - "IDocsMap": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/docs/dist/tags/reactDocs.d.ts", - "name": "IDocsMap", - "tags": {}, - "type": "interface", - "properties": [] - }, - "IExample": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/docs/dist/tags/reactExample.d.ts", - "name": "IExample", - "tags": {}, - "type": "interface", "properties": [ { "documentation": { - "contents": [], - "contentsRaw": "", + "contents": [ + "

The item focused by the keyboard (arrow keys). This item should stand out visually from the rest.

\n" + ], + "contentsRaw": "The item focused by the keyboard (arrow keys). This item should stand out visually from the rest. ", "metadata": {} }, - "fileName": "packages/docs/dist/tags/reactExample.d.ts", - "name": "render", + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "activeItem", "tags": {}, - "type": "(props: { id: string; }) => Element", + "type": "T", "optional": false }, { "documentation": { - "contents": [], - "contentsRaw": "", + "contents": [ + "

Array of filtered items from the list (those that matched the predicate with the current query).\nSee items for the full unfiltered list.

\n" + ], + "contentsRaw": "Array of filtered items from the list (those that matched the predicate with the current `query`).\nSee `items` for the full unfiltered list.", "metadata": {} }, - "fileName": "packages/docs/dist/tags/reactExample.d.ts", - "name": "sourceUrl", + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "filteredItems", "tags": {}, - "type": "string", + "type": "T[]", "optional": false - } - ] - }, - "IExampleMap": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/docs/dist/tags/reactExample.d.ts", - "name": "IExampleMap", - "tags": {}, - "type": "interface", - "properties": [] - }, - "IExampleProps": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/docs/dist/tags/reactExample.d.ts", - "name": "IExampleProps", - "tags": {}, - "type": "interface", - "properties": [ + }, { "documentation": { - "contents": [], - "contentsRaw": "", + "contents": [ + "

Selection handler that should be invoked when a new item has been chosen,\nperhaps because the user clicked it.

\n" + ], + "contentsRaw": "Selection handler that should be invoked when a new item has been chosen,\nperhaps because the user clicked it.", "metadata": {} }, - "fileName": "packages/docs/dist/tags/reactExample.d.ts", - "name": "example", + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "handleItemSelect", "tags": {}, - "type": "IExample", + "type": "(item: T, event?: SyntheticEvent) => void", "optional": false }, { "documentation": { - "contents": [], - "contentsRaw": "", + "contents": [ + "

Keyboard handler for up/down arrow keys to shift the active item.\nAttach this handler to any element that should support this interaction.

\n" + ], + "contentsRaw": "Keyboard handler for up/down arrow keys to shift the active item.\nAttach this handler to any element that should support this interaction.", "metadata": {} }, - "fileName": "packages/docs/dist/tags/reactExample.d.ts", - "name": "name", + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "handleKeyDown", "tags": {}, - "type": "string", + "type": "React.EventHandler>", "optional": false - } - ] - }, - "ReactExample": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/docs/dist/tags/reactExample.d.ts", - "name": "ReactExample", - "tags": {}, - "type": "React.StatelessComponent", - "properties": [ + }, { "documentation": { - "contents": [], - "contentsRaw": "", + "contents": [ + "

Keyboard handler for enter key to select the active item.\nAttach this handler to any element that should support this interaction.

\n" + ], + "contentsRaw": "Keyboard handler for enter key to select the active item.\nAttach this handler to any element that should support this interaction.", "metadata": {} }, - "fileName": "packages/docs/dist/tags/reactExample.d.ts", - "name": "propTypes", + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "handleKeyUp", "tags": {}, - "type": "React.ValidationMap" + "type": "React.EventHandler>", + "optional": false }, { "documentation": { - "contents": [], - "contentsRaw": "", + "contents": [ + "

Array of all (unfiltered) items in the list.\nSee filteredItems for a filtered array based on query.

\n" + ], + "contentsRaw": "Array of all (unfiltered) items in the list.\nSee `filteredItems` for a filtered array based on `query`.", "metadata": {} }, - "fileName": "packages/docs/dist/tags/reactExample.d.ts", - "name": "contextTypes", + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "items", "tags": {}, - "type": "React.ValidationMap" + "type": "T[]", + "optional": false }, { "documentation": { - "contents": [], - "contentsRaw": "", + "contents": [ + "

A ref handler that should be applied to the HTML element that contains the rendererd items.\nThis is required for the QueryList to scroll the active item into view automatically.

\n" + ], + "contentsRaw": "A ref handler that should be applied to the HTML element that contains the rendererd items.\nThis is required for the `QueryList` to scroll the active item into view automatically.", "metadata": {} }, - "fileName": "packages/docs/dist/tags/reactExample.d.ts", - "name": "defaultProps", + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "itemsParentRef", "tags": {}, - "type": "IExampleProps" + "type": "(ref: HTMLElement) => void", + "optional": false }, { "documentation": { - "contents": [], - "contentsRaw": "", + "contents": [ + "

Controlled query string. Attach an onChange handler to the relevant\nelement to control this prop from your application's state.

\n" + ], + "contentsRaw": "Controlled query string. Attach an `onChange` handler to the relevant\nelement to control this prop from your application's state.", "metadata": {} }, - "fileName": "packages/docs/dist/tags/reactExample.d.ts", - "name": "displayName", + "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", + "name": "query", "tags": {}, - "type": "string" + "type": "string", + "optional": false } ] }, - "ITagRendererMap": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/docs/dist/tags/index.d.ts", - "name": "ITagRendererMap", - "tags": {}, - "type": "interface", - "properties": [] - }, - "IDocumentationProps": { + "ISelectProps": { "documentation": { "contents": [], "contentsRaw": "", "metadata": {} }, - "fileName": "packages/docs/dist/components/documentation.d.ts", - "name": "IDocumentationProps", + "fileName": "packages/labs/dist/components/select/select.d.ts", + "name": "ISelectProps", "tags": {}, "type": "interface", "extends": [ - "IProps" + "IListItemsProps" ], "properties": [ { "documentation": { "contents": [ - "

Default page to render in the absence of a hash route.

\n" + "

Whether the component is non-interactive.\nNote that you'll also need to disable the component's children, if appropriate.

\n" ], - "contentsRaw": "Default page to render in the absence of a hash route.", + "contentsRaw": "Whether the component is non-interactive.\nNote that you'll also need to disable the component's children, if appropriate.", "metadata": {} }, - "fileName": "packages/docs/dist/components/documentation.d.ts", - "name": "defaultPageId", + "fileName": "packages/labs/dist/components/select/select.d.ts", + "name": "disabled", + "tags": { + "default": "false" + }, + "type": "boolean", + "optional": true + }, + { + "documentation": { + "contents": [ + "

Whether the dropdown list can be filtered.\nDisabling this option will remove the InputGroup and ignore inputProps.

\n" + ], + "contentsRaw": "Whether the dropdown list can be filtered.\nDisabling this option will remove the `InputGroup` and ignore `inputProps`.", + "metadata": {} + }, + "fileName": "packages/labs/dist/components/select/select.d.ts", + "name": "filterable", + "tags": { + "default": "true" + }, + "type": "boolean", + "optional": true + }, + { + "documentation": { + "contents": [ + "

React child to render when query is empty.

\n" + ], + "contentsRaw": "React child to render when query is empty.", + "metadata": {} + }, + "fileName": "packages/labs/dist/components/select/select.d.ts", + "name": "initialContent", "tags": {}, - "type": "string", - "optional": false + "type": "React.ReactChild", + "optional": true }, { "documentation": { "contents": [ - "

All the docs data from Documentalist.\nMust include at least { nav, pages } from the MarkdownPlugin.

\n" + "

Props to spread to InputGroup. All props are supported except ref (use inputRef instead).\nIf you want to control the filter input, you can pass value and onChange here\nto override Select's own behavior.

\n" ], - "contentsRaw": "All the docs data from Documentalist.\nMust include at least `{ nav, pages }` from the MarkdownPlugin.", + "contentsRaw": "Props to spread to `InputGroup`. All props are supported except `ref` (use `inputRef` instead).\nIf you want to control the filter input, you can pass `value` and `onChange` here\nto override `Select`'s own behavior.", "metadata": {} }, - "fileName": "packages/docs/dist/components/documentation.d.ts", - "name": "docs", + "fileName": "packages/labs/dist/components/select/select.d.ts", + "name": "inputProps", "tags": {}, - "type": "IMarkdownPluginData", - "optional": false + "type": "IInputGroupProps & HTMLProps", + "optional": true }, { "documentation": { "contents": [ - "

Elements to render on the left side of the navbar, typically logo and title.\nAll elements will be wrapped in a single .pt-navbar-group.

\n" + "

Custom renderer for an item in the dropdown list. Receives a boolean indicating whether\nthis item is active (selected by keyboard arrows) and an onClick event handler that\nshould be attached to the returned element.

\n" ], - "contentsRaw": "Elements to render on the left side of the navbar, typically logo and title.\nAll elements will be wrapped in a single `.pt-navbar-group`.", + "contentsRaw": "Custom renderer for an item in the dropdown list. Receives a boolean indicating whether\nthis item is active (selected by keyboard arrows) and an `onClick` event handler that\nshould be attached to the returned element.", "metadata": {} }, - "fileName": "packages/docs/dist/components/documentation.d.ts", - "name": "navbarLeft", - "tags": { - "default": "\"Documentation\"" + "fileName": "packages/labs/dist/components/select/select.d.ts", + "name": "itemRenderer", + "tags": {}, + "type": "(itemProps: ISelectItemRendererProps) => Element", + "optional": false + }, + { + "documentation": { + "contents": [ + "

React child to render when filtering items returns zero results.

\n" + ], + "contentsRaw": "React child to render when filtering items returns zero results. ", + "metadata": {} }, - "type": "React.ReactNode", + "fileName": "packages/labs/dist/components/select/select.d.ts", + "name": "noResults", + "tags": {}, + "type": "React.ReactChild", "optional": true }, { "documentation": { "contents": [ - "

Element to render on the right side of the navbar, typically links and actions.\nAll elements will be wrapped in a single .pt-navbar-group.

\n" + "

Callback invoked when the query value changes,\nthrough user input or when the filter is reset.

\n" ], - "contentsRaw": "Element to render on the right side of the navbar, typically links and actions.\nAll elements will be wrapped in a single `.pt-navbar-group`.", + "contentsRaw": "Callback invoked when the query value changes,\nthrough user input or when the filter is reset.", "metadata": {} }, - "fileName": "packages/docs/dist/components/documentation.d.ts", - "name": "navbarRight", + "fileName": "packages/labs/dist/components/select/select.d.ts", + "name": "onQueryChange", "tags": {}, - "type": "React.ReactNode", + "type": "(query: string) => void", "optional": true }, { "documentation": { "contents": [ - "

Callback invoked whenever the component props or state change (specifically,\ncalled in componentDidMount and componentDidUpdate).\nUse it to run non-React code on the newly rendered sections.

\n" + "

Props to spread to Popover. Note that content cannot be changed.

\n" ], - "contentsRaw": "Callback invoked whenever the component props or state change (specifically,\ncalled in `componentDidMount` and `componentDidUpdate`).\nUse it to run non-React code on the newly rendered sections.", + "contentsRaw": "Props to spread to `Popover`. Note that `content` cannot be changed. ", "metadata": {} }, - "fileName": "packages/docs/dist/components/documentation.d.ts", - "name": "onComponentUpdate", + "fileName": "packages/labs/dist/components/select/select.d.ts", + "name": "popoverProps", "tags": {}, - "type": "(pageId: string) => void", + "type": "any", "optional": true }, { "documentation": { "contents": [ - "

Tag renderer functions. Unknown tags will log console errors.

\n" + "

Whether the filtering state should be reset to initial when the popover closes.\nThe query will become the empty string and the first item will be made active.

\n" ], - "contentsRaw": "Tag renderer functions. Unknown tags will log console errors. ", + "contentsRaw": "Whether the filtering state should be reset to initial when the popover closes.\nThe query will become the empty string and the first item will be made active.", "metadata": {} }, - "fileName": "packages/docs/dist/components/documentation.d.ts", - "name": "tagRenderers", - "tags": {}, - "type": "{ [tag: string]: TagRenderer; }", - "optional": false - } - ] - }, - "IInheritedPropertyEntry": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/docs/dist/common/propsStore.d.ts", - "name": "IInheritedPropertyEntry", - "tags": {}, - "type": "interface", - "extends": [ - "ITsPropertyEntry" - ], - "properties": [ + "fileName": "packages/labs/dist/components/select/select.d.ts", + "name": "resetOnClose", + "tags": { + "default": "false" + }, + "type": "boolean", + "optional": true + }, { "documentation": { - "contents": [], - "contentsRaw": "", + "contents": [ + "

Whether the filtering state should be reset to initial when an item is selected\n(immediately before onItemSelect is invoked). The query will become the empty string\nand the first item will be made active.

\n" + ], + "contentsRaw": "Whether the filtering state should be reset to initial when an item is selected\n(immediately before `onItemSelect` is invoked). The query will become the empty string\nand the first item will be made active.", "metadata": {} }, - "fileName": "packages/docs/dist/common/propsStore.d.ts", - "name": "inheritedFrom", - "tags": {}, - "type": "string", + "fileName": "packages/labs/dist/components/select/select.d.ts", + "name": "resetOnSelect", + "tags": { + "default": "false" + }, + "type": "boolean", "optional": true } ] }, - "IKeyEventMap": { + "ISelectItemRendererProps": { "documentation": { "contents": [], "contentsRaw": "", "metadata": {} }, - "fileName": "packages/docs/dist/common/utils.d.ts", - "name": "IKeyEventMap", + "fileName": "packages/labs/dist/components/select/select.d.ts", + "name": "ISelectItemRendererProps", "tags": {}, "type": "interface", "properties": [ { "documentation": { "contents": [ - "

event handler invoked on all events

\n" + "

Click handler that should be attached to item's onClick event.\nWill invoke Select onItemSelect prop with this item.

\n" ], - "contentsRaw": "event handler invoked on all events ", + "contentsRaw": "Click handler that should be attached to item's `onClick` event.\nWill invoke `Select` `onItemSelect` prop with this `item`.", "metadata": {} }, - "fileName": "packages/docs/dist/common/utils.d.ts", - "name": "all", + "fileName": "packages/labs/dist/components/select/select.d.ts", + "name": "handleClick", "tags": {}, - "type": "React.EventHandler>", - "optional": true + "type": "React.EventHandler>", + "optional": false + }, + { + "documentation": { + "contents": [ + "

Index of item in array of filtered items (not the absolute position of item in full array).

\n" + ], + "contentsRaw": "Index of item in array of filtered items (_not_ the absolute position of item in full array). ", + "metadata": {} + }, + "fileName": "packages/labs/dist/components/select/select.d.ts", + "name": "index", + "tags": {}, + "type": "number", + "optional": false + }, + { + "documentation": { + "contents": [ + "

Whether the item is active according to keyboard navigation.\nAn active item should have a distinct visual appearance.

\n" + ], + "contentsRaw": "Whether the item is active according to keyboard navigation.\nAn active item should have a distinct visual appearance.", + "metadata": {} + }, + "fileName": "packages/labs/dist/components/select/select.d.ts", + "name": "isActive", + "tags": {}, + "type": "boolean", + "optional": false + }, + { + "documentation": { + "contents": [ + "

The item being rendered

\n" + ], + "contentsRaw": "The item being rendered ", + "metadata": {} + }, + "fileName": "packages/labs/dist/components/select/select.d.ts", + "name": "item", + "tags": {}, + "type": "T", + "optional": false } ] }, - "INPUT_GHOST": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/labs/dist/common/classes.d.ts", - "name": "INPUT_GHOST", - "tags": {}, - "type": "\"pt-input-ghost\"", - "properties": [] - }, - "MULTISELECT": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/labs/dist/common/classes.d.ts", - "name": "MULTISELECT", - "tags": {}, - "type": "\"pt-multi-select\"", - "properties": [] - }, - "MULTISELECT_POPOVER": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/labs/dist/common/classes.d.ts", - "name": "MULTISELECT_POPOVER", - "tags": {}, - "type": "string", - "properties": [] - }, - "OMNIBOX": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/labs/dist/common/classes.d.ts", - "name": "OMNIBOX", - "tags": {}, - "type": "\"pt-omnibox\"", - "properties": [] - }, - "OMNIBOX_OVERLAY": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/labs/dist/common/classes.d.ts", - "name": "OMNIBOX_OVERLAY", - "tags": {}, - "type": "string", - "properties": [] - }, - "SELECT_POPOVER": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/labs/dist/common/classes.d.ts", - "name": "SELECT_POPOVER", - "tags": {}, - "type": "string", - "properties": [] - }, - "TAG_INPUT": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/labs/dist/common/classes.d.ts", - "name": "TAG_INPUT", - "tags": {}, - "type": "\"pt-tag-input\"", - "properties": [] - }, - "TAG_INPUT_ICON": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/labs/dist/common/classes.d.ts", - "name": "TAG_INPUT_ICON", - "tags": {}, - "type": "string", - "properties": [] - }, "IOmniboxProps": { "documentation": { "contents": [], @@ -110218,14 +113855,14 @@ } ] }, - "IListItemsProps": { + "ITagInputProps": { "documentation": { "contents": [], "contentsRaw": "", "metadata": {} }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "IListItemsProps", + "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", + "name": "ITagInputProps", "tags": {}, "type": "interface", "extends": [ @@ -110235,285 +113872,143 @@ { "documentation": { "contents": [ - "

Customize querying of entire items array. Return new list of items.\nThis method can reorder, add, or remove items at will.\n(Supports filter algorithms that operate on the entire set, rather than individual items.)

\n

If defined with itemPredicate, this prop takes priority and the other will be ignored.

\n" + "

React props to pass to the <input> element

\n" ], - "contentsRaw": "Customize querying of entire `items` array. Return new list of items.\nThis method can reorder, add, or remove items at will.\n(Supports filter algorithms that operate on the entire set, rather than individual items.)\n\nIf defined with `itemPredicate`, this prop takes priority and the other will be ignored.", + "contentsRaw": "React props to pass to the `` element ", "metadata": {} }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "itemListPredicate", + "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", + "name": "inputProps", "tags": {}, - "type": "(query: string, items: T[]) => T[]", + "type": "React.HTMLProps", "optional": true }, { "documentation": { "contents": [ - "

Customize querying of individual items. Return true to keep the item, false to hide.\nThis method will be invoked once for each item, so it should be performant. For more complex\nqueries, use itemListPredicate to operate once on the entire array.

\n

If defined with itemListPredicate, this prop will be ignored.

\n" + "

Name of the icon (the part after pt-icon-) to render on left side of input.

\n" ], - "contentsRaw": "Customize querying of individual items. Return `true` to keep the item, `false` to hide.\nThis method will be invoked once for each item, so it should be performant. For more complex\nqueries, use `itemListPredicate` to operate once on the entire array.\n\nIf defined with `itemListPredicate`, this prop will be ignored.", + "contentsRaw": "Name of the icon (the part after `pt-icon-`) to render on left side of input. ", "metadata": {} }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "itemPredicate", + "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", + "name": "leftIconName", "tags": {}, - "type": "(query: string, item: T, index: number) => boolean", + "type": "IconName", "optional": true }, { "documentation": { "contents": [ - "

Array of items in the list.

\n" - ], - "contentsRaw": "Array of items in the list. ", - "metadata": {} - }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "items", - "tags": {}, - "type": "T[]", - "optional": false - }, - { - "documentation": { - "contents": [ - "

Callback invoked when an item from the list is selected,\ntypically by clicking or pressing enter key.

\n" - ], - "contentsRaw": "Callback invoked when an item from the list is selected,\ntypically by clicking or pressing `enter` key.", - "metadata": {} - }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "onItemSelect", - "tags": {}, - "type": "(item: T, event?: SyntheticEvent) => void", - "optional": false - } - ] - }, - "IQueryListProps": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "IQueryListProps", - "tags": {}, - "type": "interface", - "extends": [ - "IListItemsProps" - ], - "properties": [ - { - "documentation": { - "contents": [ - "

The active item is the current keyboard-focused element.\nListen to onActiveItemChange for updates from interactions.

\n" - ], - "contentsRaw": "The active item is the current keyboard-focused element.\nListen to `onActiveItemChange` for updates from interactions.", - "metadata": {} - }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "activeItem", - "tags": {}, - "type": "T", - "optional": false - }, - { - "documentation": { - "contents": [ - "

Invoked when user interaction should change the active item: arrow keys move it up/down\nin the list, selecting an item makes it active, and changing the query may reset it to\nthe first item in the list if it no longer matches the filter.

\n" + "

Callback invoked when new tags are added by the user pressing enter on the input.\nReceives the current value of the input field split by separator into an array.\nNew tags are expected to be appended to the list.

\n

The input will be cleared after onAdd is invoked unless the callback explicitly\nreturns false. This is useful if the provided value is somehow invalid and should\nnot be added as a tag.

\n" ], - "contentsRaw": "Invoked when user interaction should change the active item: arrow keys move it up/down\nin the list, selecting an item makes it active, and changing the query may reset it to\nthe first item in the list if it no longer matches the filter.", + "contentsRaw": "Callback invoked when new tags are added by the user pressing `enter` on the input.\nReceives the current value of the input field split by `separator` into an array.\nNew tags are expected to be appended to the list.\n\nThe input will be cleared after `onAdd` is invoked _unless_ the callback explicitly\nreturns `false`. This is useful if the provided `value` is somehow invalid and should\nnot be added as a tag.", "metadata": {} }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "onActiveItemChange", + "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", + "name": "onAdd", "tags": {}, - "type": "(activeItem: T) => void", - "optional": false + "type": "(values: string[]) => boolean | void", + "optional": true }, { "documentation": { "contents": [ - "

Callback invoked when user presses a key, after processing QueryList's own key events\n(up/down to navigate active item). This callback is passed to renderer and (along with\nonKeyUp) can be attached to arbitrary content elements to support keyboard selection.

\n" + "

Callback invoked when new tags are added or removed. Receives the updated list of values:\nnew tags are appended to the end of the list, removed tags are removed at their index.

\n

Like onAdd, the input will be cleared after this handler is invoked unless the callback\nexplicitly returns false.

\n

This callback essentially implements basic onAdd and onRemove functionality and merges\nthe two handlers into one to simplify controlled usage.

\n

Note about typed usage: Your handler can declare a subset type of React.ReactNode[],\nsuch as string[] or Array<string | JSX.Element>, to match the type of your values array:

\n
<TagInput
     onChange={(values: string[]) => this.setState({ values })}
     values={["apple", "banana", "cherry"]}
/>
" ], - "contentsRaw": "Callback invoked when user presses a key, after processing `QueryList`'s own key events\n(up/down to navigate active item). This callback is passed to `renderer` and (along with\n`onKeyUp`) can be attached to arbitrary content elements to support keyboard selection.", + "contentsRaw": "Callback invoked when new tags are added or removed. Receives the updated list of `values`:\nnew tags are appended to the end of the list, removed tags are removed at their index.\n\nLike `onAdd`, the input will be cleared after this handler is invoked _unless_ the callback\nexplicitly returns `false`.\n\nThis callback essentially implements basic `onAdd` and `onRemove` functionality and merges\nthe two handlers into one to simplify controlled usage.\n\n**Note about typed usage:** Your handler can declare a subset type of `React.ReactNode[]`,\nsuch as `string[]` or `Array`, to match the type of your `values` array:\n```tsx\n this.setState({ values })}\n values={[\"apple\", \"banana\", \"cherry\"]}\n/>\n```", "metadata": {} }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "onKeyDown", + "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", + "name": "onChange", "tags": {}, - "type": "React.EventHandler>", + "type": "(values: ReactNode[]) => boolean | void", "optional": true }, { "documentation": { "contents": [ - "

Callback invoked when user releases a key, after processing QueryList's own key events\n(enter to select active item). This callback is passed to renderer and (along with\nonKeyDown) can be attached to arbitrary content elements to support keyboard selection.

\n" + "

Callback invoked when the user clicks the X button on a tag.\nReceives value and index of removed tag.

\n" ], - "contentsRaw": "Callback invoked when user releases a key, after processing `QueryList`'s own key events\n(enter to select active item). This callback is passed to `renderer` and (along with\n`onKeyDown`) can be attached to arbitrary content elements to support keyboard selection.", + "contentsRaw": "Callback invoked when the user clicks the X button on a tag.\nReceives value and index of removed tag.", "metadata": {} }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "onKeyUp", + "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", + "name": "onRemove", "tags": {}, - "type": "React.EventHandler>", + "type": "(value: string, index: number) => void", "optional": true }, { "documentation": { "contents": [ - "

Query string passed to itemListPredicate or itemPredicate to filter items.\nThis value is controlled: its state must be managed externally by attaching an onChange\nhandler to the relevant element in your renderer implementation.

\n" + "

Input placeholder text which will not appear if values contains any items\n(consistent with default HTML input behavior).\nUse inputProps.placeholder if you want the placeholder text to always appear.

\n

If you define both placeholder and inputProps.placeholder, then the former will appear\nwhen values is empty and the latter at all other times.

\n" ], - "contentsRaw": "Query string passed to `itemListPredicate` or `itemPredicate` to filter items.\nThis value is controlled: its state must be managed externally by attaching an `onChange`\nhandler to the relevant element in your `renderer` implementation.", + "contentsRaw": "Input placeholder text which will not appear if `values` contains any items\n(consistent with default HTML input behavior).\nUse `inputProps.placeholder` if you want the placeholder text to _always_ appear.\n\nIf you define both `placeholder` and `inputProps.placeholder`, then the former will appear\nwhen `values` is empty and the latter at all other times.", "metadata": {} }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "query", + "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", + "name": "placeholder", "tags": {}, "type": "string", - "optional": false - }, - { - "documentation": { - "contents": [ - "

Customize rendering of the component.\nReceives an object with props that should be applied to elements as necessary.

\n" - ], - "contentsRaw": "Customize rendering of the component.\nReceives an object with props that should be applied to elements as necessary.", - "metadata": {} - }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "renderer", - "tags": {}, - "type": "(listProps: IQueryListRendererProps) => Element", - "optional": false - } - ] - }, - "IQueryListRendererProps": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "IQueryListRendererProps", - "tags": {}, - "type": "interface", - "extends": [ - "IProps" - ], - "properties": [ - { - "documentation": { - "contents": [ - "

The item focused by the keyboard (arrow keys). This item should stand out visually from the rest.

\n" - ], - "contentsRaw": "The item focused by the keyboard (arrow keys). This item should stand out visually from the rest. ", - "metadata": {} - }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "activeItem", - "tags": {}, - "type": "T", - "optional": false - }, - { - "documentation": { - "contents": [ - "

Array of filtered items from the list (those that matched the predicate with the current query).\nSee items for the full unfiltered list.

\n" - ], - "contentsRaw": "Array of filtered items from the list (those that matched the predicate with the current `query`).\nSee `items` for the full unfiltered list.", - "metadata": {} - }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "filteredItems", - "tags": {}, - "type": "T[]", - "optional": false - }, - { - "documentation": { - "contents": [ - "

Selection handler that should be invoked when a new item has been chosen,\nperhaps because the user clicked it.

\n" - ], - "contentsRaw": "Selection handler that should be invoked when a new item has been chosen,\nperhaps because the user clicked it.", - "metadata": {} - }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "handleItemSelect", - "tags": {}, - "type": "(item: T, event?: SyntheticEvent) => void", - "optional": false + "optional": true }, { "documentation": { "contents": [ - "

Keyboard handler for up/down arrow keys to shift the active item.\nAttach this handler to any element that should support this interaction.

\n" + "

Element to render on right side of input.\nFor best results, use a small minimal button, tag, or spinner.

\n" ], - "contentsRaw": "Keyboard handler for up/down arrow keys to shift the active item.\nAttach this handler to any element that should support this interaction.", + "contentsRaw": "Element to render on right side of input.\nFor best results, use a small minimal button, tag, or spinner.", "metadata": {} }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "handleKeyDown", + "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", + "name": "rightElement", "tags": {}, - "type": "React.EventHandler>", - "optional": false + "type": "JSX.Element", + "optional": true }, { "documentation": { "contents": [ - "

Keyboard handler for enter key to select the active item.\nAttach this handler to any element that should support this interaction.

\n" + "

Separator pattern used to split input text into multiple values.\nExplicit false value disables splitting (note that onAdd will still receive an array of length 1).

\n" ], - "contentsRaw": "Keyboard handler for enter key to select the active item.\nAttach this handler to any element that should support this interaction.", + "contentsRaw": "Separator pattern used to split input text into multiple values.\nExplicit `false` value disables splitting (note that `onAdd` will still receive an array of length 1).", "metadata": {} }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "handleKeyUp", - "tags": {}, - "type": "React.EventHandler>", - "optional": false - }, - { - "documentation": { - "contents": [ - "

Array of all (unfiltered) items in the list.\nSee filteredItems for a filtered array based on query.

\n" - ], - "contentsRaw": "Array of all (unfiltered) items in the list.\nSee `filteredItems` for a filtered array based on `query`.", - "metadata": {} + "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", + "name": "separator", + "tags": { + "default": "\",\"" }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "items", - "tags": {}, - "type": "T[]", - "optional": false + "type": "string | false | RegExp", + "optional": true }, { "documentation": { "contents": [ - "

A ref handler that should be applied to the HTML element that contains the rendererd items.\nThis is required for the QueryList to scroll the active item into view automatically.

\n" + "

React props to pass to each Tag. Provide an object to pass the same props to every tag,\nor a function to customize props per tag.

\n

If you define onRemove here then you will have to implement your own tag removal\nhandling as TagInput's own onRemove handler will never be invoked.

\n" ], - "contentsRaw": "A ref handler that should be applied to the HTML element that contains the rendererd items.\nThis is required for the `QueryList` to scroll the active item into view automatically.", + "contentsRaw": "React props to pass to each `Tag`. Provide an object to pass the same props to every tag,\nor a function to customize props per tag.\n\nIf you define `onRemove` here then you will have to implement your own tag removal\nhandling as `TagInput`'s own `onRemove` handler will never be invoked.", "metadata": {} }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "itemsParentRef", + "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", + "name": "tagProps", "tags": {}, - "type": "(ref: HTMLElement) => void", - "optional": false + "type": "ITagProps | ((value: ReactNode, index: number) => ITagProps)", + "optional": true }, { "documentation": { "contents": [ - "

Controlled query string. Attach an onChange handler to the relevant\nelement to control this prop from your application's state.

\n" + "

Controlled tag values. Each value will be rendered inside a Tag, which can be customized\nusing tagProps. Therefore, any valid React node can be used as a TagInput value; falsy\nvalues will not be rendered.

\n

Note about typed usage: If you know your values will always be of a certain ReactNode\nsubtype, such as string or ReactChild, you can use that type on all your handlers\nto simplify type logic.

\n" ], - "contentsRaw": "Controlled query string. Attach an `onChange` handler to the relevant\nelement to control this prop from your application's state.", + "contentsRaw": "Controlled tag values. Each value will be rendered inside a `Tag`, which can be customized\nusing `tagProps`. Therefore, any valid React node can be used as a `TagInput` value; falsy\nvalues will not be rendered.\n\n__Note about typed usage:__ If you know your `values` will always be of a certain `ReactNode`\nsubtype, such as `string` or `ReactChild`, you can use that type on all your handlers\nto simplify type logic.", "metadata": {} }, - "fileName": "packages/labs/dist/components/query-list/queryList.d.ts", - "name": "query", + "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", + "name": "values", "tags": {}, - "type": "string", + "type": "ReactNode[]", "optional": false } ] @@ -110664,14 +114159,14 @@ } ] }, - "ISelectProps": { + "ISuggestProps": { "documentation": { "contents": [], "contentsRaw": "", "metadata": {} }, - "fileName": "packages/labs/dist/components/select/select.d.ts", - "name": "ISelectProps", + "fileName": "packages/labs/dist/components/select/suggest.d.ts", + "name": "ISuggestProps", "tags": {}, "type": "interface", "extends": [ @@ -110681,29 +114176,13 @@ { "documentation": { "contents": [ - "

Whether the component is non-interactive.\nNote that you'll also need to disable the component's children, if appropriate.

\n" - ], - "contentsRaw": "Whether the component is non-interactive.\nNote that you'll also need to disable the component's children, if appropriate.", - "metadata": {} - }, - "fileName": "packages/labs/dist/components/select/select.d.ts", - "name": "disabled", - "tags": { - "default": "false" - }, - "type": "boolean", - "optional": true - }, - { - "documentation": { - "contents": [ - "

Whether the dropdown list can be filtered.\nDisabling this option will remove the InputGroup and ignore inputProps.

\n" + "

Whether the popover should close after selecting an item.

\n" ], - "contentsRaw": "Whether the dropdown list can be filtered.\nDisabling this option will remove the `InputGroup` and ignore `inputProps`.", + "contentsRaw": "Whether the popover should close after selecting an item.", "metadata": {} }, - "fileName": "packages/labs/dist/components/select/select.d.ts", - "name": "filterable", + "fileName": "packages/labs/dist/components/select/suggest.d.ts", + "name": "closeOnSelect", "tags": { "default": "true" }, @@ -110713,30 +114192,30 @@ { "documentation": { "contents": [ - "

React child to render when query is empty.

\n" + "

Props to spread to InputGroup. All props are supported except ref (use inputRef instead).\nIf you want to control the filter input, you can pass value and onChange here\nto override Suggest's own behavior.

\n" ], - "contentsRaw": "React child to render when query is empty.", + "contentsRaw": "Props to spread to `InputGroup`. All props are supported except `ref` (use `inputRef` instead).\nIf you want to control the filter input, you can pass `value` and `onChange` here\nto override `Suggest`'s own behavior.", "metadata": {} }, - "fileName": "packages/labs/dist/components/select/select.d.ts", - "name": "initialContent", + "fileName": "packages/labs/dist/components/select/suggest.d.ts", + "name": "inputProps", "tags": {}, - "type": "React.ReactChild", + "type": "IInputGroupProps & HTMLProps", "optional": true }, { "documentation": { "contents": [ - "

Props to spread to InputGroup. All props are supported except ref (use inputRef instead).\nIf you want to control the filter input, you can pass value and onChange here\nto override Select's own behavior.

\n" + "

Custom renderer to transform an item into a string for the input value.

\n" ], - "contentsRaw": "Props to spread to `InputGroup`. All props are supported except `ref` (use `inputRef` instead).\nIf you want to control the filter input, you can pass `value` and `onChange` here\nto override `Select`'s own behavior.", + "contentsRaw": "Custom renderer to transform an item into a string for the input value. ", "metadata": {} }, - "fileName": "packages/labs/dist/components/select/select.d.ts", - "name": "inputProps", + "fileName": "packages/labs/dist/components/select/suggest.d.ts", + "name": "inputValueRenderer", "tags": {}, - "type": "IInputGroupProps & HTMLProps", - "optional": true + "type": "(item: T) => string", + "optional": false }, { "documentation": { @@ -110746,7 +114225,7 @@ "contentsRaw": "Custom renderer for an item in the dropdown list. Receives a boolean indicating whether\nthis item is active (selected by keyboard arrows) and an `onClick` event handler that\nshould be attached to the returned element.", "metadata": {} }, - "fileName": "packages/labs/dist/components/select/select.d.ts", + "fileName": "packages/labs/dist/components/select/suggest.d.ts", "name": "itemRenderer", "tags": {}, "type": "(itemProps: ISelectItemRendererProps) => Element", @@ -110760,36 +114239,22 @@ "contentsRaw": "React child to render when filtering items returns zero results. ", "metadata": {} }, - "fileName": "packages/labs/dist/components/select/select.d.ts", + "fileName": "packages/labs/dist/components/select/suggest.d.ts", "name": "noResults", "tags": {}, - "type": "React.ReactChild", - "optional": true - }, - { - "documentation": { - "contents": [ - "

Props to spread to Popover. Note that content cannot be changed.

\n" - ], - "contentsRaw": "Props to spread to `Popover`. Note that `content` cannot be changed. ", - "metadata": {} - }, - "fileName": "packages/labs/dist/components/select/select.d.ts", - "name": "popoverProps", - "tags": {}, - "type": "any", + "type": "string | Element", "optional": true }, { "documentation": { "contents": [ - "

Whether the filtering state should be reset to initial when the popover closes.\nThe query will become the empty string and the first item will be made active.

\n" + "

Whether the popover opens on key down or when the input is focused.

\n" ], - "contentsRaw": "Whether the filtering state should be reset to initial when the popover closes.\nThe query will become the empty string and the first item will be made active.", + "contentsRaw": "Whether the popover opens on key down or when the input is focused.", "metadata": {} }, - "fileName": "packages/labs/dist/components/select/select.d.ts", - "name": "resetOnClose", + "fileName": "packages/labs/dist/components/select/suggest.d.ts", + "name": "openOnKeyDown", "tags": { "default": "false" }, @@ -110799,186 +114264,144 @@ { "documentation": { "contents": [ - "

Whether the filtering state should be reset to initial when an item is selected\n(immediately before onItemSelect is invoked). The query will become the empty string\nand the first item will be made active.

\n" + "

Props to spread to Popover. Note that content cannot be changed.

\n" ], - "contentsRaw": "Whether the filtering state should be reset to initial when an item is selected\n(immediately before `onItemSelect` is invoked). The query will become the empty string\nand the first item will be made active.", + "contentsRaw": "Props to spread to `Popover`. Note that `content` cannot be changed. ", "metadata": {} }, - "fileName": "packages/labs/dist/components/select/select.d.ts", - "name": "resetOnSelect", - "tags": { - "default": "false" - }, - "type": "boolean", + "fileName": "packages/labs/dist/components/select/suggest.d.ts", + "name": "popoverProps", + "tags": {}, + "type": "any", "optional": true } ] }, - "ISelectItemRendererProps": { + "TimezoneDisplayFormat": { "documentation": { "contents": [], "contentsRaw": "", "metadata": {} }, - "fileName": "packages/labs/dist/components/select/select.d.ts", - "name": "ISelectItemRendererProps", + "fileName": "packages/labs/dist/components/timezone-picker/timezoneDisplayFormat.d.ts", + "name": "TimezoneDisplayFormat", "tags": {}, - "type": "interface", + "type": "{ ABBREVIATION: \"abbreviation\"; COMPOSITE: \"composite\"; NAME: \"name\"; OFFSET: \"offset\"; }", "properties": [ { "documentation": { - "contents": [ - "

Click handler that should be attached to item's onClick event.\nWill invoke Select onItemSelect prop with this item.

\n" - ], - "contentsRaw": "Click handler that should be attached to item's `onClick` event.\nWill invoke `Select` `onItemSelect` prop with this `item`.", + "contents": [], + "contentsRaw": "", "metadata": {} }, - "fileName": "packages/labs/dist/components/select/select.d.ts", - "name": "handleClick", + "fileName": "packages/labs/dist/components/timezone-picker/timezoneDisplayFormat.d.ts", + "name": "ABBREVIATION", "tags": {}, - "type": "React.EventHandler>", - "optional": false + "type": "\"abbreviation\"" }, { "documentation": { - "contents": [ - "

Index of item in array of filtered items (not the absolute position of item in full array).

\n" - ], - "contentsRaw": "Index of item in array of filtered items (_not_ the absolute position of item in full array). ", + "contents": [], + "contentsRaw": "", "metadata": {} }, - "fileName": "packages/labs/dist/components/select/select.d.ts", - "name": "index", + "fileName": "packages/labs/dist/components/timezone-picker/timezoneDisplayFormat.d.ts", + "name": "COMPOSITE", "tags": {}, - "type": "number", - "optional": false + "type": "\"composite\"" }, { "documentation": { - "contents": [ - "

Whether the item is active according to keyboard navigation.\nAn active item should have a distinct visual appearance.

\n" - ], - "contentsRaw": "Whether the item is active according to keyboard navigation.\nAn active item should have a distinct visual appearance.", + "contents": [], + "contentsRaw": "", "metadata": {} }, - "fileName": "packages/labs/dist/components/select/select.d.ts", - "name": "isActive", + "fileName": "packages/labs/dist/components/timezone-picker/timezoneDisplayFormat.d.ts", + "name": "NAME", "tags": {}, - "type": "boolean", - "optional": false + "type": "\"name\"" }, { "documentation": { - "contents": [ - "

The item being rendered

\n" - ], - "contentsRaw": "The item being rendered ", + "contents": [], + "contentsRaw": "", "metadata": {} }, - "fileName": "packages/labs/dist/components/select/select.d.ts", - "name": "item", + "fileName": "packages/labs/dist/components/timezone-picker/timezoneDisplayFormat.d.ts", + "name": "OFFSET", "tags": {}, - "type": "T", - "optional": false + "type": "\"offset\"" } ] }, - "ISuggestProps": { + "ITimezonePickerProps": { "documentation": { "contents": [], "contentsRaw": "", "metadata": {} }, - "fileName": "packages/labs/dist/components/select/suggest.d.ts", - "name": "ISuggestProps", + "fileName": "packages/labs/dist/components/timezone-picker/timezonePicker.d.ts", + "name": "ITimezonePickerProps", "tags": {}, "type": "interface", "extends": [ - "IListItemsProps" + "IProps" ], "properties": [ { "documentation": { "contents": [ - "

Whether the popover should close after selecting an item.

\n" - ], - "contentsRaw": "Whether the popover should close after selecting an item.", - "metadata": {} - }, - "fileName": "packages/labs/dist/components/select/suggest.d.ts", - "name": "closeOnSelect", - "tags": { - "default": "true" - }, - "type": "boolean", - "optional": true - }, - { - "documentation": { - "contents": [ - "

Props to spread to InputGroup. All props are supported except ref (use inputRef instead).\nIf you want to control the filter input, you can pass value and onChange here\nto override Suggest's own behavior.

\n" + "

Props to spread to the target Button.

\n" ], - "contentsRaw": "Props to spread to `InputGroup`. All props are supported except `ref` (use `inputRef` instead).\nIf you want to control the filter input, you can pass `value` and `onChange` here\nto override `Suggest`'s own behavior.", + "contentsRaw": "Props to spread to the target `Button`. ", "metadata": {} }, - "fileName": "packages/labs/dist/components/select/suggest.d.ts", - "name": "inputProps", + "fileName": "packages/labs/dist/components/timezone-picker/timezonePicker.d.ts", + "name": "buttonProps", "tags": {}, - "type": "IInputGroupProps & HTMLProps", + "type": "Partial", "optional": true }, { "documentation": { "contents": [ - "

Custom renderer to transform an item into a string for the input value.

\n" + "

The date to use when determining timezone offsets.\nA timezone usually has more than one offset from UTC due to daylight saving time.

\n" ], - "contentsRaw": "Custom renderer to transform an item into a string for the input value. ", + "contentsRaw": "The date to use when determining timezone offsets.\nA timezone usually has more than one offset from UTC due to daylight saving time.", "metadata": {} }, - "fileName": "packages/labs/dist/components/select/suggest.d.ts", - "name": "inputValueRenderer", - "tags": {}, - "type": "(item: T) => string", - "optional": false - }, - { - "documentation": { - "contents": [ - "

Custom renderer for an item in the dropdown list. Receives a boolean indicating whether\nthis item is active (selected by keyboard arrows) and an onClick event handler that\nshould be attached to the returned element.

\n" - ], - "contentsRaw": "Custom renderer for an item in the dropdown list. Receives a boolean indicating whether\nthis item is active (selected by keyboard arrows) and an `onClick` event handler that\nshould be attached to the returned element.", - "metadata": {} + "fileName": "packages/labs/dist/components/timezone-picker/timezonePicker.d.ts", + "name": "date", + "tags": { + "default": "now" }, - "fileName": "packages/labs/dist/components/select/suggest.d.ts", - "name": "itemRenderer", - "tags": {}, - "type": "(itemProps: ISelectItemRendererProps) => Element", - "optional": false + "type": "Date", + "optional": true }, { "documentation": { "contents": [ - "

React child to render when filtering items returns zero results.

\n" + "

Initial timezone that will display as selected, when the component is uncontrolled.\nThis should not be set if value is set.

\n" ], - "contentsRaw": "React child to render when filtering items returns zero results. ", + "contentsRaw": "Initial timezone that will display as selected, when the component is uncontrolled.\nThis should not be set if `value` is set.", "metadata": {} }, - "fileName": "packages/labs/dist/components/select/suggest.d.ts", - "name": "noResults", + "fileName": "packages/labs/dist/components/timezone-picker/timezonePicker.d.ts", + "name": "defaultValue", "tags": {}, - "type": "string | Element", + "type": "string", "optional": true }, { "documentation": { "contents": [ - "

Whether the popover opens on key down or when the input is focused.

\n" + "

Whether this component is non-interactive.

\n" ], - "contentsRaw": "Whether the popover opens on key down or when the input is focused.", + "contentsRaw": "Whether this component is non-interactive.", "metadata": {} }, - "fileName": "packages/labs/dist/components/select/suggest.d.ts", - "name": "openOnKeyDown", + "fileName": "packages/labs/dist/components/timezone-picker/timezonePicker.d.ts", + "name": "disabled", "tags": { "default": "false" }, @@ -110988,174 +114411,106 @@ { "documentation": { "contents": [ - "

Props to spread to Popover. Note that content cannot be changed.

\n" + "

Props to spread to the filter InputGroup.\nAll props are supported except ref (use inputRef instead).\nIf you want to control the filter input, you can pass value and onChange here\nto override Select's own behavior.

\n" ], - "contentsRaw": "Props to spread to `Popover`. Note that `content` cannot be changed. ", + "contentsRaw": "Props to spread to the filter `InputGroup`.\nAll props are supported except `ref` (use `inputRef` instead).\nIf you want to control the filter input, you can pass `value` and `onChange` here\nto override `Select`'s own behavior.", "metadata": {} }, - "fileName": "packages/labs/dist/components/select/suggest.d.ts", - "name": "popoverProps", - "tags": {}, - "type": "any", - "optional": true - } - ] - }, - "ITagInputProps": { - "documentation": { - "contents": [], - "contentsRaw": "", - "metadata": {} - }, - "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", - "name": "ITagInputProps", - "tags": {}, - "type": "interface", - "extends": [ - "IProps" - ], - "properties": [ - { - "documentation": { - "contents": [ - "

React props to pass to the <input> element

\n" - ], - "contentsRaw": "React props to pass to the `` element ", - "metadata": {} - }, - "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", + "fileName": "packages/labs/dist/components/timezone-picker/timezonePicker.d.ts", "name": "inputProps", "tags": {}, - "type": "React.HTMLProps", - "optional": true - }, - { - "documentation": { - "contents": [ - "

Name of the icon (the part after pt-icon-) to render on left side of input.

\n" - ], - "contentsRaw": "Name of the icon (the part after `pt-icon-`) to render on left side of input. ", - "metadata": {} - }, - "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", - "name": "leftIconName", - "tags": {}, - "type": "IconName", - "optional": true - }, - { - "documentation": { - "contents": [ - "

Callback invoked when new tags are added by the user pressing enter on the input.\nReceives the current value of the input field split by separator into an array.\nNew tags are expected to be appended to the list.

\n

The input will be cleared after onAdd is invoked unless the callback explicitly\nreturns false. This is useful if the provided value is somehow invalid and should\nnot be added as a tag.

\n" - ], - "contentsRaw": "Callback invoked when new tags are added by the user pressing `enter` on the input.\nReceives the current value of the input field split by `separator` into an array.\nNew tags are expected to be appended to the list.\n\nThe input will be cleared after `onAdd` is invoked _unless_ the callback explicitly\nreturns `false`. This is useful if the provided `value` is somehow invalid and should\nnot be added as a tag.", - "metadata": {} - }, - "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", - "name": "onAdd", - "tags": {}, - "type": "(values: string[]) => boolean | void", + "type": "IInputGroupProps & HTMLProps", "optional": true }, { "documentation": { "contents": [ - "

Callback invoked when new tags are added or removed. Receives the updated list of values:\nnew tags are appended to the end of the list, removed tags are removed at their index.

\n

Like onAdd, the input will be cleared after this handler is invoked unless the callback\nexplicitly returns false.

\n

This callback essentially implements basic onAdd and onRemove functionality and merges\nthe two handlers into one to simplify controlled usage.

\n

Note about typed usage: Your handler can declare a subset type of React.ReactNode[],\nsuch as string[] or Array<string | JSX.Element>, to match the type of your values array:

\n
<TagInput
     onChange={(values: string[]) => this.setState({ values })}
     values={["apple", "banana", "cherry"]}
/>
" + "

Callback invoked when the user selects a timezone.

\n" ], - "contentsRaw": "Callback invoked when new tags are added or removed. Receives the updated list of `values`:\nnew tags are appended to the end of the list, removed tags are removed at their index.\n\nLike `onAdd`, the input will be cleared after this handler is invoked _unless_ the callback\nexplicitly returns `false`.\n\nThis callback essentially implements basic `onAdd` and `onRemove` functionality and merges\nthe two handlers into one to simplify controlled usage.\n\n**Note about typed usage:** Your handler can declare a subset type of `React.ReactNode[]`,\nsuch as `string[]` or `Array`, to match the type of your `values` array:\n```tsx\n this.setState({ values })}\n values={[\"apple\", \"banana\", \"cherry\"]}\n/>\n```", + "contentsRaw": "Callback invoked when the user selects a timezone.", "metadata": {} }, - "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", + "fileName": "packages/labs/dist/components/timezone-picker/timezonePicker.d.ts", "name": "onChange", "tags": {}, - "type": "(values: ReactNode[]) => boolean | void", - "optional": true - }, - { - "documentation": { - "contents": [ - "

Callback invoked when the user clicks the X button on a tag.\nReceives value and index of removed tag.

\n" - ], - "contentsRaw": "Callback invoked when the user clicks the X button on a tag.\nReceives value and index of removed tag.", - "metadata": {} - }, - "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", - "name": "onRemove", - "tags": {}, - "type": "(value: string, index: number) => void", + "type": "(timezone: string) => void", "optional": true }, { "documentation": { "contents": [ - "

Input placeholder text which will not appear if values contains any items\n(consistent with default HTML input behavior).\nUse inputProps.placeholder if you want the placeholder text to always appear.

\n

If you define both placeholder and inputProps.placeholder, then the former will appear\nwhen values is empty and the latter at all other times.

\n" + "

Text to show when no timezone has been selected and there is no default.

\n" ], - "contentsRaw": "Input placeholder text which will not appear if `values` contains any items\n(consistent with default HTML input behavior).\nUse `inputProps.placeholder` if you want the placeholder text to _always_ appear.\n\nIf you define both `placeholder` and `inputProps.placeholder`, then the former will appear\nwhen `values` is empty and the latter at all other times.", + "contentsRaw": "Text to show when no timezone has been selected and there is no default.", "metadata": {} }, - "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", + "fileName": "packages/labs/dist/components/timezone-picker/timezonePicker.d.ts", "name": "placeholder", - "tags": {}, + "tags": { + "default": "\"Select timezone...\"" + }, "type": "string", "optional": true }, { "documentation": { "contents": [ - "

Element to render on right side of input.\nFor best results, use a small minimal button, tag, or spinner.

\n" + "

Props to spread to Popover. Note that content cannot be changed.

\n" ], - "contentsRaw": "Element to render on right side of input.\nFor best results, use a small minimal button, tag, or spinner.", + "contentsRaw": "Props to spread to `Popover`. Note that `content` cannot be changed. ", "metadata": {} }, - "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", - "name": "rightElement", + "fileName": "packages/labs/dist/components/timezone-picker/timezonePicker.d.ts", + "name": "popoverProps", "tags": {}, - "type": "JSX.Element", + "type": "any", "optional": true }, { "documentation": { "contents": [ - "

Separator pattern used to split input text into multiple values.\nExplicit false value disables splitting (note that onAdd will still receive an array of length 1).

\n" + "

Whether to show the local timezone at the top of the list of initial timezone suggestions.

\n" ], - "contentsRaw": "Separator pattern used to split input text into multiple values.\nExplicit `false` value disables splitting (note that `onAdd` will still receive an array of length 1).", + "contentsRaw": "Whether to show the local timezone at the top of the list of initial timezone suggestions.", "metadata": {} }, - "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", - "name": "separator", + "fileName": "packages/labs/dist/components/timezone-picker/timezonePicker.d.ts", + "name": "showLocalTimezone", "tags": { - "default": "\",\"" + "default": "true" }, - "type": "string | false | RegExp", + "type": "boolean", "optional": true }, { "documentation": { "contents": [ - "

React props to pass to each Tag. Provide an object to pass the same props to every tag,\nor a function to customize props per tag.

\n

If you define onRemove here then you will have to implement your own tag removal\nhandling as TagInput's own onRemove handler will never be invoked.

\n" + "

The currently selected timezone, e.g. "Pacific/Honolulu".\nIf this prop is provided, the component acts in a controlled manner.\nhttps://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones

\n" ], - "contentsRaw": "React props to pass to each `Tag`. Provide an object to pass the same props to every tag,\nor a function to customize props per tag.\n\nIf you define `onRemove` here then you will have to implement your own tag removal\nhandling as `TagInput`'s own `onRemove` handler will never be invoked.", + "contentsRaw": "The currently selected timezone, e.g. \"Pacific/Honolulu\".\nIf this prop is provided, the component acts in a controlled manner.\nhttps://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones", "metadata": {} }, - "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", - "name": "tagProps", + "fileName": "packages/labs/dist/components/timezone-picker/timezonePicker.d.ts", + "name": "value", "tags": {}, - "type": "ITagProps | ((value: ReactNode, index: number) => ITagProps)", + "type": "string", "optional": true }, { "documentation": { "contents": [ - "

Controlled tag values. Each value will be rendered inside a Tag, which can be customized\nusing tagProps. Therefore, any valid React node can be used as a TagInput value; falsy\nvalues will not be rendered.

\n

Note about typed usage: If you know your values will always be of a certain ReactNode\nsubtype, such as string or ReactChild, you can use that type on all your handlers\nto simplify type logic.

\n" + "

Format to use when displaying the selected (or default) timezone within the target element.

\n" ], - "contentsRaw": "Controlled tag values. Each value will be rendered inside a `Tag`, which can be customized\nusing `tagProps`. Therefore, any valid React node can be used as a `TagInput` value; falsy\nvalues will not be rendered.\n\n__Note about typed usage:__ If you know your `values` will always be of a certain `ReactNode`\nsubtype, such as `string` or `ReactChild`, you can use that type on all your handlers\nto simplify type logic.", + "contentsRaw": "Format to use when displaying the selected (or default) timezone within the target element.", "metadata": {} }, - "fileName": "packages/labs/dist/components/tag-input/tagInput.d.ts", - "name": "values", - "tags": {}, - "type": "ReactNode[]", - "optional": false + "fileName": "packages/labs/dist/components/timezone-picker/timezonePicker.d.ts", + "name": "valueDisplayFormat", + "tags": { + "default": "TimezoneDisplayFormat.OFFSET" + }, + "type": "TimezoneDisplayFormat", + "optional": true } ] }, @@ -115654,13 +119009,13 @@ }; /***/ }), -/* 630 */ +/* 651 */ /***/ (function(module, exports) { module.exports = [ { "name": "@blueprintjs/core", - "version": "1.28.0" + "version": "1.29.0" }, { "name": "@blueprintjs/datetime", @@ -115672,20 +119027,20 @@ }, { "name": "@blueprintjs/labs", - "version": "0.9.0" + "version": "0.10.0" }, { "name": "@blueprintjs/table", - "version": "1.25.0" + "version": "1.26.0" } ]; /***/ }), -/* 631 */ +/* 652 */ /***/ (function(module, exports) { module.exports = [ - "1.28.0" + "1.29.0" ]; /***/ }) diff --git a/packages/core/package.json b/packages/core/package.json index fbf05bc77b..bfb081e10a 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@blueprintjs/core", - "version": "1.28.0", + "version": "1.29.0", "description": "Core styles & components", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/packages/labs/package.json b/packages/labs/package.json index c8fca6a222..4bd44fb048 100644 --- a/packages/labs/package.json +++ b/packages/labs/package.json @@ -1,6 +1,6 @@ { "name": "@blueprintjs/labs", - "version": "0.9.0", + "version": "0.10.0", "description": "Incubator for unstable and in-development Blueprint components", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/packages/site-docs/package.json b/packages/site-docs/package.json index 77a5975369..ca772089ef 100644 --- a/packages/site-docs/package.json +++ b/packages/site-docs/package.json @@ -1,14 +1,14 @@ { "name": "blueprintjs.com/docs", - "version": "1.28.0", + "version": "1.29.0", "description": "Blueprint Docs", "private": true, "dependencies": { - "@blueprintjs/core": "^1.28.0", + "@blueprintjs/core": "^1.29.0", "@blueprintjs/datetime": "^1.22.0", "@blueprintjs/docs": "^1.1.1", - "@blueprintjs/labs": "^0.9.0", - "@blueprintjs/table": "^1.25.0", + "@blueprintjs/labs": "^0.10.0", + "@blueprintjs/table": "^1.26.0", "bourbon": "^4.2.2", "chroma-js": "^1.3.4", "classnames": "^2.2.5", diff --git a/packages/table/package.json b/packages/table/package.json index 0a7c5ce631..7454cc0056 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -1,6 +1,6 @@ { "name": "@blueprintjs/table", - "version": "1.25.0", + "version": "1.26.0", "description": "Scalable interactive table component", "main": "dist/index.js", "typings": "dist/index.d.ts",